Page 1 of 1

Debugging Kernel with gdb along with bochs

Posted: Thu Jun 01, 2017 11:39 pm
by yerri07
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

Re: Debugging Kernel with gdb along with bochs

Posted: Fri Jun 02, 2017 12:32 am
by iansjack
Just a thought - you haven't got a firewall blocking access to that port on the loopback interface?

Re: Debugging Kernel with gdb along with bochs

Posted: Fri Jun 02, 2017 1:04 am
by yerri07
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

Re: Debugging Kernel with gdb along with bochs

Posted: Fri Jun 02, 2017 1:33 am
by iansjack
Is there a reason that you want to use Bochs rather than qemu?

Re: Debugging Kernel with gdb along with bochs

Posted: Fri Jun 02, 2017 8:34 am
by yerri07
The debugging process not working quite well with qemu.

Re: Debugging Kernel with gdb along with bochs

Posted: Fri Jun 02, 2017 12:24 pm
by LtG
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?