public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Bug in MI command -data-dissasemble ??
@ 2006-03-01  4:03 Carlos Eduardo Rodrigues de Almeida
  2006-03-03  0:51 ` Nick Roberts
  2006-03-03 17:21 ` Carlos Eduardo Rodrigues de Almeida
  0 siblings, 2 replies; 7+ messages in thread
From: Carlos Eduardo Rodrigues de Almeida @ 2006-03-01  4:03 UTC (permalink / raw)
  To: gdb

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-03-03 20:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-01  4:03 Bug in MI command -data-dissasemble ?? Carlos Eduardo Rodrigues de Almeida
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

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).