71
Programming with NASM / Re: gdb and debug symbols
« Last post by decuser on March 02, 2024, 02:47:47 PM »and I've tried it with no -F, -F stabs, and -Fdwarf, same result.
section .data
EOLs: db 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10
section .text
global _start
_start:
nop
info address EOLs
Symbol "EOLs" is at 0x402000 in a file compiled without debugging.
(gdb) x/16bx &EOLs
0x402000 <EOLs>: 0x0a 0x0a 0x0a 0x0a 0x0a 0x0a 0x0a 0x0a
0x402008: 0x0a 0x0a 0x0a 0x0a 0x0a 0x0a 0x0a 0x0a
(gdb) x/16bx 0x402000
0x402000 <EOLs>: 0x0a 0x0a 0x0a 0x0a 0x0a 0x0a 0x0a 0x0a
0x402008: 0x0a 0x0a 0x0a 0x0a 0x0a 0x0a 0x0a 0x0a