Käännös ja linkitys kyllä sujui moitteetta mutta millä optioilla tiedostosta saa symboolitaulukon gdb:n käyttöön?
[matti@cable-117-241 a]$ nasm -f elf -l prog38.lst prog38.asm
[matti@cable-117-241 a]$ ld -s -o prog38 prog38.o
[matti@cable-117-241 a]$ gdb prog38
GNU gdb Red Hat Linux (6.3.0.0-1.21rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...
(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) start
No symbol table loaded. Use the "file" command.
(gdb)
[matti@cable-117-241 a]$ nasm -f elf -l prog38.lst prog38.asm
[matti@cable-117-241 a]$ ld -s -o prog38 prog38.o
[matti@cable-117-241 a]$ gdb prog38
GNU gdb Red Hat Linux (6.3.0.0-1.21rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...
(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) start
No symbol table loaded. Use the "file" command.
(gdb)
Vastaukset
Vanhimmat
Ei vielä vastauksia
Aloittaja odottaa vastauksia. Kerro oma näkemyksesi ensimmäisenä.