51
Programming with NASM / Re: gdb and debug symbols
« Last post by decuser on March 02, 2024, 09:51:33 PM »I don't have "Code" anywhere. I have a .text section.
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