From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13093 invoked by alias); 3 Mar 2006 00:51:44 -0000 Received: (qmail 13083 invoked by uid 22791); 3 Mar 2006 00:51:43 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 03 Mar 2006 00:51:40 +0000 Received: from kahikatea.snap.net.nz (p202-124-114-86.snap.net.nz [202.124.114.86]) by viper.snap.net.nz (Postfix) with ESMTP id 0445C747853; Fri, 3 Mar 2006 13:51:28 +1300 (NZDT) Received: by kahikatea.snap.net.nz (Postfix, from userid 500) id 1DD0988B5; Fri, 3 Mar 2006 13:50:12 +1300 (NZDT) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17415.37571.232420.232229@kahikatea.snap.net.nz> Date: Fri, 03 Mar 2006 00:51:00 -0000 To: "Carlos Eduardo Rodrigues de Almeida" Cc: gdb@sources.redhat.com Subject: Bug in MI command -data-dissasemble ?? In-Reply-To: <214135380602282003s6cb7197foc74ce4e44cf981d9@mail.gmail.com> 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/msg00024.txt.bz2 ... > -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