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/15205] New: GDB document about option "-fullname" isinconsistent with the behavior in CLI


http://sourceware.org/bugzilla/show_bug.cgi?id=15205

             Bug #: 15205
           Summary: GDB document about option "-fullname" is inconsistent
                    with the behavior in CLI
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
        AssignedTo: unassigned@sourceware.org
        ReportedBy: asmwarrior@gmail.com
    Classification: Unclassified


Hi, in the GDB document, it said:
http://sourceware.org/gdb/current/onlinedocs/gdb/Mode-Options.html

QUOTE:
-fullname
-f
    gnu Emacs sets this option when it runs gdb as a subprocess. It tells gdb
to output the full file name and line number in a standard, recognizable
fashion each time a stack frame is displayed (which includes each time your
program stops). This recognizable format looks like two `\032' characters,
followed by the file name, line number and character position separated by
colons, and a newline. The Emacs-to-gdb interface program uses the two `\032'
characters as a signal to display the source code for the frame. 

It looks like running the "bt" command does not print the two \032 characters,
but in other cases, like the "next" command, it do have the \032s. Please see
the log message below, I'm testing under Windows.

E:\code\cb\test_code\mortenr2012-01-15\bin\Debug>gdb -fullname
mortenr2012-01-15
.exe
GNU gdb (GDB) 7.5.50.20130217-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 "mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from
E:\code\cb\test_code\mortenr2012-01-15\bin\Debug\mortenr201
2-01-15.exe...done.
(gdb) b 19
Breakpoint 1 at 0x40173d: file main.cpp, line 19.
(gdb) r
Starting program:
E:\code\cb\test_code\mortenr2012-01-15\bin\Debug\mortenr2012-0
1-15.exe
[New Thread 4056.0x6fc]

Breakpoint 1, main () at main.cpp:19
[\032\032]E:\code\cb\test_code\mortenr2012-01-15\main.cpp:19:346:beg:0x40173d
(gdb) next
[\032\032]E:\code\cb\test_code\mortenr2012-01-15\main.cpp:20:359:beg:0x401742
(gdb) next
[\032\032]E:\code\cb\test_code\mortenr2012-01-15\main.cpp:21:372:beg:0x401747
(gdb) bt
#0  main () at main.cpp:21
(gdb)

Please note that the "[\032\032]" can not copied from the Command windows, so
I wrote my own as placeholder. I don't see "[\032\032]" printed in the bt
command.

-- 
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]