public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/17756] New: gdb find command returns bogus results and can't find the matched value.
@ 2014-12-25  9:20 liuyefenglin at gmail dot com
  2014-12-25  9:32 ` [Bug gdb/17756] " liuyefenglin at gmail dot com
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: liuyefenglin at gmail dot com @ 2014-12-25  9:20 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2020-10-07 18:23 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-25  9:20 [Bug gdb/17756] New: gdb find command returns bogus results and can't find the matched value liuyefenglin at gmail dot com
2014-12-25  9:32 ` [Bug gdb/17756] " liuyefenglin at gmail dot com
2014-12-27  8:44 ` dje at google dot com
2015-08-07 17:35 ` matt.street at gmail dot com
2015-08-07 17:57 ` palves at redhat dot com
2020-07-23 17:33 ` tromey at sourceware dot org
2020-07-23 19:00 ` tromey at sourceware dot org
2020-07-23 19:07 ` tromey at sourceware dot org
2020-07-23 19:35 ` tromey at sourceware dot org
2020-10-07 18:13 ` cvs-commit at gcc dot gnu.org
2020-10-07 18:23 ` tromey at sourceware dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).