From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29301 invoked by alias); 14 Nov 2013 09:57:26 -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 29278 invoked by uid 48); 14 Nov 2013 09:57:26 -0000 From: "guosheng_gao at realsil dot com.cn" To: gdb-prs@sourceware.org Subject: [Bug gdb/16157] the function get_pc_function_start (CORE_ADDR pc) maybe inaccurate Date: Thu, 14 Nov 2013 09:57:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: guosheng_gao at realsil dot com.cn X-Bugzilla-Status: WAITING X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-q4/txt/msg00320.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D16157 --- Comment #9 from ggs334 --- > That's not sufficient, the frame that was frame #0 before the step must b= e=20 > frame #1 after the step for GDB to consider this was a subroutine call.= =20=20 > That's this part of the condition: > > && (frame_id_eq (frame_unwind_caller_id (get_current_frame ()), > ecs->event_thread->control.step_stack_frame_id) > Then I don't understand how that frame_id_eq returned true. Well, unless= =20 > both were outer_frame_id. Please check that. I have checked it, frame_id_eq() return true, but frame_unwind_caller_id() = and ecs->event_thread->control.step_stack_frame_id are not outer_frame_id. If frame_unwind_caller_id() can find a valid function address in register $= ra, the returned frame id id equal to=20 ecs->event_thread->control.step_stack_frame_id=20 and the vlaue is: struct frame_id { stack_addr=3D0xffffffff; code_addr=3D0x80001470;//The address of _start(entry point) special_addr=3D0x0; stack_addr_p=3D0x1; code_addr_p=3D0x1; special_addr_p=3D0x0; artificial_depth=3D0x0; }; If can't find a valid function address in register $ra, GDB will print =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D warning: GDB can't find the start of the function at 0xfffffffc. GDB is unable to find the start of the function at 0xfffffffc and thus can't determine the size of that function's stack frame. This means that GDB may be unable to access that stack frame, or the frames below it. This problem is most likely caused by an invalid program counter or stack pointer. However, if you think GDB should simply search farther back from 0xfffffffc for code which looks like the beginning of a function, you can increase the range of the search using the `set heuristic-fence-post' command. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D So=EF=BC=8CI think you are right=EF=BC=8Cmaybe something odd in the unwinde= r. But the unwinder is foreign for me, Can you give some advices? --=20 You are receiving this mail because: You are on the CC list for the bug. >>From gdb-prs-return-14695-listarch-gdb-prs=sources.redhat.com@sourceware.org Thu Nov 14 16:56:22 2013 Return-Path: Delivered-To: listarch-gdb-prs@sources.redhat.com Received: (qmail 32266 invoked by alias); 14 Nov 2013 16:56:22 -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 Delivered-To: mailing list gdb-prs@sourceware.org Received: (qmail 32225 invoked by uid 48); 14 Nov 2013 16:56:21 -0000 From: "tromey at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug c++/15975] info vtbl does not produce any information and set print vtbl on/off has no effect Date: Thu, 14 Nov 2013 16:56:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: c++ X-Bugzilla-Version: 7.6 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at redhat 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: cc Message-ID: In-Reply-To: References: 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: 2013-q4/txt/msg00321.txt.bz2 Content-length: 534 https://sourceware.org/bugzilla/show_bug.cgi?id=15975 Tom Tromey changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tromey at redhat dot com --- Comment #1 from Tom Tromey --- I think this is a compiler bug: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37237 -- You are receiving this mail because: You are on the CC list for the bug.