From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29103 invoked by alias); 10 Oct 2011 12:30:29 -0000 Received: (qmail 29035 invoked by uid 22791); 10 Oct 2011 12:30:28 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_JV,TW_XJ X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 10 Oct 2011 12:30:09 +0000 From: "aburgess at broadcom dot com" To: gdb-prs@sourceware.org Subject: [Bug cli/12444] disassemble /m errors on inlined code? Date: Mon, 10 Oct 2011 12:30:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: cli X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: aburgess at broadcom dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2011-q4/txt/msg00042.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=12444 --- Comment #2 from Andrew Burgess 2011-10-10 12:30:01 UTC --- Created attachment 5970 --> http://sourceware.org/bugzilla/attachment.cgi?id=5970 Simple example of this issue I also ran into this issue, though my example is not an inline function I believe it's the same cause. I've attached merged-test.tar.bz2, which contains the test, to run just, $ tar -xjvf merged-test.tar.bz2 $ cd merged-test $ make test Testing merged files... gdb -x cmds.gdb merged.x GNU gdb (GDB) 7.1-ubuntu Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i486-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /home/andrew/merge-file-issue2/merged-test/merged.x...done. +disassemble /m main Dump of assembler code for function main: 3 { 0x080483b4 <+0>: push %ebp 0x080483b5 <+1>: mov %esp,%ebp 0x080483b7 <+3>: and $0xfffffff0,%esp 4 return function (); 0x080483ba <+6>: call 0x80483c3 5 } 0x080483bf <+11>: mov %ebp,%esp 0x080483c1 <+13>: pop %ebp 0x080483c2 <+14>: ret End of assembler dump. +disassemble /m function Dump of assembler code for function function: /home/andrew/merge-file-issue2/merged-test/cmds.gdb:4: Error in sourced command file: Line number 0 out of range; foo.c has 7 lines. (gdb) -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.