OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Apr 16, 2024 10:52 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: How to use gdb-stub in bochs?
PostPosted: Mon Feb 28, 2005 12:00 am 
Offline

Joined: Mon Feb 28, 2005 12:00 am
Posts: 1
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...


Top
 Profile  
 
 Post subject: Re: How to use gdb-stub in bochs?
PostPosted: Tue Mar 01, 2005 12:00 am 
Offline

Joined: Tue Mar 01, 2005 12:00 am
Posts: 1
solved.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], MichaelPetch and 849 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group