From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22260 invoked by alias); 3 Mar 2006 17:21:14 -0000 Received: (qmail 22244 invoked by uid 22791); 3 Mar 2006 17:21:13 -0000 X-Spam-Check-By: sourceware.org Received: from zproxy.gmail.com (HELO zproxy.gmail.com) (64.233.162.195) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 03 Mar 2006 17:21:11 +0000 Received: by zproxy.gmail.com with SMTP id i1so750169nzh for ; Fri, 03 Mar 2006 09:21:09 -0800 (PST) Received: by 10.65.250.11 with SMTP id c11mr1550705qbs; Fri, 03 Mar 2006 09:21:09 -0800 (PST) Received: by 10.65.231.13 with HTTP; Fri, 3 Mar 2006 09:21:09 -0800 (PST) Message-ID: <214135380603030921x67047848k4ad854dee2f09444@mail.gmail.com> Date: Fri, 03 Mar 2006 17:21:00 -0000 From: "Carlos Eduardo Rodrigues de Almeida" To: gdb@sources.redhat.com Subject: Re: Bug in MI command -data-dissasemble ?? In-Reply-To: <214135380602282003s6cb7197foc74ce4e44cf981d9@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <214135380602282003s6cb7197foc74ce4e44cf981d9@mail.gmail.com> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-03/txt/msg00026.txt.bz2 Hi all, I'll try to figure out what is going on.. Is there some document that describes the organization of the GDB code?? Is there some place where I can grab more information? Thank you. Eduardo On 3/1/06, Carlos Eduardo Rodrigues de Almeida wrote: > 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=3Dmi2 > ~"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=3D"mi_cmd_disassemble: Invalid line number" > (gdb) > -data-disassemble -f gip_app.cpp -l 68 -n 1 -- 1 > ^done,asm_insns=3D[{address=3D"0x000000000040d7e0",func-name=3D"_Z12gip_a= pp_initPc",offset=3D"0",inst=3D"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=3D"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 >