From: Nick Roberts <nickrob@snap.net.nz>
To: "Carlos Eduardo Rodrigues de Almeida" <eduardo.almeida@gmail.com>
Cc: gdb@sources.redhat.com
Subject: Bug in MI command -data-dissasemble ??
Date: Fri, 03 Mar 2006 00:51:00 -0000 [thread overview]
Message-ID: <17415.37571.232420.232229@kahikatea.snap.net.nz> (raw)
In-Reply-To: <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
next prev parent reply other threads:[~2006-03-03 0:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-01 4:03 Carlos Eduardo Rodrigues de Almeida
2006-03-03 0:51 ` Nick Roberts [this message]
2006-03-03 17:21 ` Carlos Eduardo Rodrigues de Almeida
2006-03-03 17:22 ` Daniel Jacobowitz
2006-03-03 19:39 ` Carlos Eduardo Rodrigues de Almeida
2006-03-03 19:44 ` Daniel Jacobowitz
2006-03-03 20:11 ` Nick Roberts
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=17415.37571.232420.232229@kahikatea.snap.net.nz \
--to=nickrob@snap.net.nz \
--cc=eduardo.almeida@gmail.com \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox