From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32546 invoked by alias); 1 Mar 2006 04:03:34 -0000 Received: (qmail 32533 invoked by uid 22791); 1 Mar 2006 04:03:33 -0000 X-Spam-Check-By: sourceware.org Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (64.233.184.203) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 01 Mar 2006 04:03:32 +0000 Received: by wproxy.gmail.com with SMTP id 67so302441wri for ; Tue, 28 Feb 2006 20:03:31 -0800 (PST) Received: by 10.65.158.12 with SMTP id k12mr2324345qbo; Tue, 28 Feb 2006 20:03:30 -0800 (PST) Received: by 10.65.231.13 with HTTP; Tue, 28 Feb 2006 20:03:30 -0800 (PST) Message-ID: <214135380602282003s6cb7197foc74ce4e44cf981d9@mail.gmail.com> Date: Wed, 01 Mar 2006 04:03:00 -0000 From: "Carlos Eduardo Rodrigues de Almeida" To: gdb@sources.redhat.com Subject: Bug in MI command -data-dissasemble ?? MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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/msg00003.txt.bz2 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_app= _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