This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug backtrace/14646] [x32] backtrace doesn't work
- From: "jan.kratochvil at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Mon, 01 Oct 2012 16:55:45 +0000
- Subject: [Bug backtrace/14646] [x32] backtrace doesn't work
- Auto-submitted: auto-generated
- References: <bug-14646-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=14646
--- Comment #5 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2012-10-01 16:55:45 UTC ---
While normal GDB testfiles run only on the native arch I believe x32 testfiles
could have an exception to run (also) with x86_64 testsuite run target.
Fedora 16 x86_64
gcc -o x32 x32.c -Wall -g -nostdlib -mx32
gdb ./x32
----------------------------
int f (void) {
volatile int i = 4, j = 2;
return i * 10 + j; }
int _start (void) {
f ();
return 0; }
----------------------------
gcc -dumpmachine
x86_64-unknown-linux-gnu
----------------------------
GNU gdb (GDB) 7.5.50.20120930-cvs
This GDB was configured as "x86_64-unknown-linux-gnu".
(gdb) b _start
Breakpoint 1 at 0x4000c1: file x32.c, line 5.
(gdb) r
Starting program: /home/jkratoch/t/x32
Breakpoint 1, _start () at x32.c:5
5 f ();
(gdb) s
f () at x32.c:2
2 volatile int i = 4, j = 2;
(gdb) fini
Run till exit from #0 f () at x32.c:2
_start () at x32.c:6
6 return 0; }
Value returned is $1 = 42
(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.