How to use gdb-stub in bochs?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
TihijDon
Posts: 1
Joined: Mon Feb 28, 2005 12:00 am

How to use gdb-stub in bochs?

Post by TihijDon »

In "normal" bochs i was able to setup breakpoints, for example:
Normal bochs session wrote: 1. Restore factory default configuration
2. Read options from...
3. Edit options
4. Save options to...
5. Begin simulation
6. Quit now

Please choose one: [5]
Next at t=0
(0) [0x000ffff0] f000:fff0 (unk. ctxt): jmp f000:e05b ; ea5be000f0
<bochs:1> b 0x7c00
And now I have a problem in repeating this using gdb-stub, bochs was compiled with
configure option wrote:./configure --enable-gdb-stub
, starting session results in
bochs output wrote: 1. Restore factory default configuration
2. Read options from...
3. Edit options
4. Save options to...
5. Begin simulation
6. Quit now

Please choose one: [5]
Waiting for gdb connection on localhost:1234
gdb successfuly connects with
gdb command wrote:target remote localhost:1234
then give me
gdb message wrote:Remote debugging using localhost:1234
0x0000fff0 in ?? ()
But trying to setup breakpoints results in:
trying to b 0x7c00 wrote: (gdb) b 0x7c00
No symbol table is loaded. Use the "file" command.
(gdb)
So, gdb cant find information about symbol table in executable image, i can issue some "si" instruction, but cant set breakpoints and stuff. I tryed to "cont" and "contr-c" later, but after that i still cant set breakpoints, what am I doing wrong, help me please...
tihij_don
Posts: 1
Joined: Tue Mar 01, 2005 12:00 am

Re: How to use gdb-stub in bochs?

Post by tihij_don »

solved.
Post Reply