From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8001 invoked by alias); 21 May 2013 16:40:42 -0000 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 Received: (qmail 7963 invoked by uid 48); 21 May 2013 16:40:42 -0000 From: "luis_gustavo at mentor dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/15511] New: source prints confusing output when processing nested source includes. Date: Tue, 21 May 2013 16:40:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: luis_gustavo at mentor 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: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 X-SW-Source: 2013-q2/txt/msg00305.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=15511 Bug #: 15511 Summary: source prints confusing output when processing nested source includes. Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: gdb AssignedTo: unassigned@sourceware.org ReportedBy: luis_gustavo@mentor.com Classification: Unclassified Consider two files: foo.inc -- source bar.inc -- bar.inc -- INVALIDCOMMAND -- Run the following: ./gdb -ex "source foo.inc" GNU gdb (GDB) 7.6.50.20130520-cvs Copyright (C) 2013 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 "--host=x86_64-unknown-linux-gnu --target=arm-eabi". Type "show configuration" for configuration details. For bug reporting instructions, please see: . foo.inc:1: Error in sourced command file: COMMAND:1: Error in sourced command file: Undefined command: "INVALIDCOMMAND". Try "help". (gdb) The expected output should be the following: foo.inc:1: Error in sourced command file: bar.inc:1: Error in sourced command file: -- 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.