public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: "Carlos Eduardo Rodrigues de Almeida" <eduardo.almeida@gmail.com>
To: gdb@sources.redhat.com
Subject: Bug in MI command -data-dissasemble ??
Date: Wed, 01 Mar 2006 04:03:00 -0000	[thread overview]
Message-ID: <214135380602282003s6cb7197foc74ce4e44cf981d9@mail.gmail.com> (raw)

Hi all,
I was trying the -data-disassemble command and I found something strange.
I think with a session I can explain better:


[eduardo@~/lab3/Debug]$gdb -i=mi2
~"GNU gdb 6.4\n"
~"Copyright 2005 Free Software Foundation, Inc.\n"
~"GDB is free software, covered by the GNU General Public License, and
you are\n"
~"welcome to change it and/or distribute copies of it under certain
conditions.\n"
~"Type \"show copying\" to see the conditions.\n"
~"There is absolutely no warranty for GDB.  Type \"show warranty\" for
details.\n"
~"This GDB was configured as \"x86_64-pc-linux-gnu\"."
~"\n"
(gdb)
-file-exec-and-symbols lab3
~"Using host libthread_db library \"/lib/libthread_db.so.1\".\n"
^done
(gdb)
-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.

Thank you,
Eduardo

             reply	other threads:[~2006-03-01  4:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-01  4:03 Carlos Eduardo Rodrigues de Almeida [this message]
2006-03-03  0:51 ` Nick Roberts
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=214135380602282003s6cb7197foc74ce4e44cf981d9@mail.gmail.com \
    --to=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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).