This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug breakpoints/16853] New: Recursion on PowerPC - no break when stepping
- From: "andrej.krutak at sysgo dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Fri, 18 Apr 2014 07:08:59 +0000
- Subject: [Bug breakpoints/16853] New: Recursion on PowerPC - no break when stepping
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=16853
Bug ID: 16853
Summary: Recursion on PowerPC - no break when stepping
Product: gdb
Version: 7.7
Status: NEW
Severity: normal
Priority: P2
Component: breakpoints
Assignee: unassigned at sourceware dot org
Reporter: andrej.krutak at sysgo dot com
Created attachment 7555
--> https://sourceware.org/bugzilla/attachment.cgi?id=7555&action=edit
hanoi.c (demo program)
When trying to debug a code containing recursive function on qemu-ppc (60x),
GDB doesn't properly step lines. Using the attached hanoi.c, the following
doesn't work:
%<--------
b hanoi.c:43
r
step
# now the program should break
step
# now we should enter Hanoi()
%<--------
Instead, by doing the first step the program continues until the exit. On
qemu-e500, the first step does:
res: 3
0x0ff4ea7c in __write_nocancel () from //lib/libc.so.6
but the next one doesn't step into Hanoi(), again just continues until the
exit.
The same behavior is there with GDB 7.1, 7.2 and kernels 2.6.33, 2.6.34, 3.2.
Seems that the behavior is limited to PPC CPUs.
--
You are receiving this mail because:
You are on the CC list for the bug.