This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Bug in MI command -data-dissasemble ??
- From: Nick Roberts <nickrob at snap dot net dot nz>
- To: "Carlos Eduardo Rodrigues de Almeida" <eduardo dot almeida at gmail dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Fri, 3 Mar 2006 13:50:11 +1300
- Subject: Bug in MI command -data-dissasemble ??
- References: <214135380602282003s6cb7197foc74ce4e44cf981d9@mail.gmail.com>
...
> -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