gdb behaves differently for symbols in the .bss, vs. symbols in .data
问题 I recently started learning assembly language for the Intel x86-64 architecture using YASM. While solving one of the tasks suggested in a book (by Ray Seyfarth) I came to following problem: When I place some characters into a buffer in the .bss section, I still see an empty string while debugging it in gdb. Placing characters into a buffer in the .data section shows up as expected in gdb. segment .bss result resb 75 buf resw 100 usage resq 1 segment .data str_test db 0, 0, 0, 0 segment .text