Bug in MI command -data-dissasemble ??

Nick Roberts
2006-03-03T00:51:44Z

...
> -data-disassemble -f /home/eduardo/libgip/src/gip_app.cpp -l 68 -n 1 -- 1
> &"mi_cmd_disassemble: Invalid line number\n"
> ^error,msg="mi_cmd_disassemble: Invalid line number"
> (gdb)
> -data-disassemble -f gip_app.cpp -l 68 -n 1 -- 1
> ^done,asm_insns=[{address="0x000000000040d7e0",func-name="_Z12gip_app_initPc",offset="0",inst="mov
> %rbx,0xfffffffffffffff0(%rsp)"}]
> (gdb)
> -data-disassemble -f /home/eduardo/libgip/src/gip_app1.cpp -l 68 -n 1 -- 1
> &"mi_cmd_disassemble: Invalid filename.\n"
> ^error,msg="mi_cmd_disassemble: Invalid filename."
> (gdb)
>
>
> The gip_app.cpp is a file of a library I used to compile lab3.
> When I use the complete path (/home/eduardo/libgip/src/gip_app.cpp)
> GDB gives me error messge invalid LINE number. When I use only the
> file name(gip_app.cpp) the disassemble works. The path is right
> because when I specify a wrong file GDB gives me another
> message(Invalid filename)
>
> I think this is a bug.. at least the message is wrong.. the line
> number is valid.

It is also odd that you specified mixed source and disassembly (--1) but got
only disassembly in the output (--0). Perhaps it has something to with 64 bit
opeartion. It seems to work fine for me with i686-pc-linux-gnu.

Incidently, for Emacs I currently just use the CLI command "disassemble".

--
Nick http://www.inet.net.nz/~nickrob