From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11323 invoked by alias); 25 Dec 2014 09:20:05 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 11299 invoked by uid 48); 25 Dec 2014 09:20:05 -0000 From: "liuyefenglin at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/17756] New: gdb find command returns bogus results and can't find the matched value. Date: Thu, 25 Dec 2014 09:20:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 6.8 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: liuyefenglin at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-q4/txt/msg00437.txt.bz2 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 (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.