Отладка ассемблера с помощью gdb и bochs
Я сделал файл изображения helloos.img
от nasm helloos.nas -o helloos.img
и по конфигурации я могу успешно запустить bochs, который уже скомпилирован поддерживаемым GDB. Но когда я попытался отладить код с помощью gdb, хотя gdb может успешно подключаться к bochs, я не могу установить точку останова, вывод консоли показан ниже:
Last login: Sat Nov 18 19:17:08 on ttys001
meis-MacBook-Pro:~ tan$ gdb
GNU gdb (GDB) 8.0.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin16.7.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
(gdb) target remote localhost:1234
Remote debugging using localhost:1234
warning: No executable has been specified and target does not support
determining executable automatically. Try using the "file" command.
0x0000fff0 in ?? ()
(gdb) break 1
No symbol table is loaded. Use the "file" command.
(gdb)
как я могу исправить эту проблему?