This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/17756] New: gdb find command returns bogus results and can't find the matched value.


https://sourceware.org/bugzilla/show_bug.cgi?id=17756

            Bug ID: 17756
           Summary: gdb find command returns bogus results and can't find
                    the matched value.
           Product: gdb
           Version: 6.8
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: liuyefenglin at gmail dot com

Version info:
GNU gdb (Wind River Linux Sourcery G++ 4.3a-335) 6.8.50.20080821-cvs
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

(gdb) info target 
    0x08048000 - 0x08048000 is load1
    0x080b2000 - 0x080b3000 is load2
    0x080b3000 - 0x09c9e000 is load3   //Should be heap region.
(gdb) show mem inaccessible-by-default 
Unknown memory addresses will be treated as RAM.


//find command returns bogus results
(gdb) find/w 0x080b3000,0x09c9e000,0x8988b90
0x837f948
1 pattern found.
(gdb) x 0x837f948
0x837f948:    0xb6976c0a


//find command can't find the matched value
(gdb) find/w 0x0837ba00,0x0837bb00,0x8988b90
0x837bac8
1 pattern found.
(gdb) x 0x837bac8
0x837bac8:    0x08988b90
(gdb) find/w 0x08370000,0x0837bb00,0x8988b90
Pattern not found.

It seems that the find command doesn't works well when the search region is
large. This command is very important to debug core dump of memory corruptions.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]