This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug backtrace/14646] [x32] backtrace doesn't work


http://sourceware.org/bugzilla/show_bug.cgi?id=14646

--- Comment #9 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2012-10-01 17:59:26 UTC ---
OK, you are right; GCC has built it as x32 but the kernel executes it as
x86_64:

$ file x32
x32: ELF 32-bit LSB executable, x86-64, version 1 (SYSV), statically linked,
not stripped

(gdb) disas
Dump of assembler code for function f:
=> 0x00400094 <+0>:    push   %rbp
[...]
(gdb) p/x $sp
$1 = 0xffffce20
(gdb) stepi
0x00400095    1    int f (void) {
(gdb) p/x $sp
$2 = 0xffffce18

-- 
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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]