Remote Debugging with bochs
Posted: Tue Sep 11, 2012 2:10 pm
Hi, I have run into a very strange problem :
I tried debugging the kernel remotely using gdb. And all I get is
The symbol file for the debugger is correct. After inserting the breakpoint, gdb gave me this information
Also , the bochsrc.txt is as below :-
The bochsout.txt gives me this string :
This ac0 causes the thread stopped in main line to be output I guess. But what is the error? I compiled it using ./configure --enable-gdb-stub.
Please help me find the error.I will recompile bochs in the morning , but gdb could save a lot of time . Bochs internal debugger works fine too. But I don't need debugging at assembly level granularity .
I tried debugging the kernel remotely using gdb. And all I get is
Code: Select all
[Thread <main>] #1 stopped.
0x00000000 in ?? ()
(gdb)
Continuing.
[Thread <main>] #1 stopped.
0x00000000 in ?? ()
(gdb)
Continuing.
[Thread <main>] #1 stopped.
0x00000000 in ?? ()
(gdb)
Continuing.
Code: Select all
b main
Note: breakpoint -1 also set at pc 0xc0100036.
Breakpoint 1 at 0xc0100036: file ./syscore/kernel_main.c, line 39
Code: Select all
megs: 32
romimage: file=/home/sankalps/Downloads/bochs-20120815/bios/BIOS-bochs-legacy , address=0xf0000
vgaromimage: file=/home/sankalps/Downloads/bochs-20120815/bios/VGABIOS-lgpl-latest
floppya: 1_44=floppy.img, status=inserted
boot: a
log: bochsout.txt
gdbstub: enabled=1, port=1234
mouse: enabled=0
Code: Select all
00000000000i[GDBST] setting breakpoint at c0100036
00000000000i[XGUI ] Mouse capture off
00000000000i[XGUI ] Mouse capture off
00000000000i[XGUI ] Mouse capture off
00000000001i[GDBST] stopped with ac0
00000000001i[XGUI ] Mouse capture off
00000000001i[XGUI ] Mouse capture off
00000000001i[GDBST] Removing breakpoint at c0100036
Please help me find the error.I will recompile bochs in the morning , but gdb could save a lot of time . Bochs internal debugger works fine too. But I don't need debugging at assembly level granularity .