Page 1 of 1

Bochs with GDB stub,can't disassemble

Posted: Mon Oct 11, 2010 2:32 pm
by diurpaneus
Hi,
I have this problem, I can't use the disassemble instruction in gdb running the gdb stub in Bochs. First I set the architecture:

Code: Select all

set architecture i8086
Then I connect to the stub:

Code: Select all

target remote localhost:1234
Then I set a breakpoint like this:

Code: Select all

b *0x7c00
and the debugger breaks but when I type:

Code: Select all

disassemble 0x7c00 0x7c0f

I get:

Code: Select all

A syntax error in expression, near `0x7c0f'.
I compiled bochs with the --enable-gdb-stub. Why isn't it working?

Re: Bochs with GDB stub,can't disassemble

Posted: Tue Oct 12, 2010 10:17 am
by diurpaneus
I found out the problem. It seems the syntax for the disassemble instruction changed from the old version I was using once. The new instruction looks like this:

Code: Select all

disassemble 0x7c00, 0x7c0f
and not:

Code: Select all

disassemble 0x7c00 0x7c0f