This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/14647] New: [x32] "next" doesn't work with -O -g
- From: "hjl.tools at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Sat, 29 Sep 2012 19:13:18 +0000
- Subject: [Bug gdb/14647] New: [x32] "next" doesn't work with -O -g
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=14647
Bug #: 14647
Summary: [x32] "next" doesn't work with -O -g
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: gdb
AssignedTo: unassigned@sourceware.org
ReportedBy: hjl.tools@gmail.com
Classification: Unclassified
On Linux/x32, I got
[hjl@gnu-tools-1 tmp]$ cat x.c
void bar ();
int
main ()
{
bar ();
return 0;
}
[hjl@gnu-tools-1 tmp]$ cat y.c
void
bar ()
{
}
[hjl@gnu-tools-1 tmp]$ gcc -O -mx32 -g x.c y.c
[hjl@gnu-tools-1 tmp]$ gdb a.out
GNU gdb (GDB) 7.5.50.20120925-cvs
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /tmp/a.out...done.
(gdb) b main
Breakpoint 1 at 0x40038c: file x.c, line 5.
(gdb) r
Starting program: /tmp/a.out
Breakpoint 1, main () at x.c:5
5 {
(gdb) next
6 bar ();
(gdb)
bar () at y.c:3
3 {
(gdb)
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.