This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/15511] New: source prints confusing output when processing nested source includes.


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 <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>.
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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]