OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Apr 18, 2024 12:38 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Debugging Kernel with gdb along with bochs
PostPosted: Thu Jun 01, 2017 11:39 pm 
Offline
Member
Member

Joined: Sat Apr 29, 2017 6:56 am
Posts: 26
Hello
I enable bochs gdb stub , and everything went good, but when i connect to bochs with port 1234 , connection times out.


gdbstub: enabled=1, port=1234, text_base=0, data_base=0, bss_base=0

The bochs waits for connection on port 1234. when i use to connect to the boch on new terminal , connection times out , no error, just time out


$gdb
.
.
.
gdb> target remote :1234 and target remote localhost:1234 , i tried both


Top
 Profile  
 
 Post subject: Re: Debugging Kernel with gdb along with bochs
PostPosted: Fri Jun 02, 2017 12:32 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4594
Location: Chichester, UK
Just a thought - you haven't got a firewall blocking access to that port on the loopback interface?


Top
 Profile  
 
 Post subject: Re: Debugging Kernel with gdb along with bochs
PostPosted: Fri Jun 02, 2017 1:04 am 
Offline
Member
Member

Joined: Sat Apr 29, 2017 6:56 am
Posts: 26
I think No, i tested with qemu it is working fine . I changed the port numbler too(GDB) . But fails. I used -gdb tcp::1234,ipv4 Option(for Qemu Works) , so are there any changes to be done for bochs config


Top
 Profile  
 
 Post subject: Re: Debugging Kernel with gdb along with bochs
PostPosted: Fri Jun 02, 2017 1:33 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4594
Location: Chichester, UK
Is there a reason that you want to use Bochs rather than qemu?


Top
 Profile  
 
 Post subject: Re: Debugging Kernel with gdb along with bochs
PostPosted: Fri Jun 02, 2017 8:34 am 
Offline
Member
Member

Joined: Sat Apr 29, 2017 6:56 am
Posts: 26
The debugging process not working quite well with qemu.


Top
 Profile  
 
 Post subject: Re: Debugging Kernel with gdb along with bochs
PostPosted: Fri Jun 02, 2017 12:24 pm 
Offline
Member
Member

Joined: Thu Aug 13, 2015 4:57 pm
Posts: 384
yerri07 wrote:
The debugging process not working quite well with qemu.

That means nothing to me, probably as little to others. Obviously you should have it working with Bochs as well, but in what way does it not work with Qemu?


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

All times are UTC - 6 hours


Who is online

Users browsing this forum: SemrushBot [Bot] and 234 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