Bochs with GDB stub,can't disassemble

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
diurpaneus
Posts: 3
Joined: Sun Oct 10, 2010 10:14 am

Bochs with GDB stub,can't disassemble

Post 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?
diurpaneus
Posts: 3
Joined: Sun Oct 10, 2010 10:14 am

Re: Bochs with GDB stub,can't disassemble

Post 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
Post Reply