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/11519] New: gdb cannot print char * variables on Solaris 2/x86


For quite some time (at least since gdb 7.0), I've been unable to print char *
variables in gdb on Solaris 2/x86:

$ ./gdb ./gdb
GNU gdb (GDB) 7.1.50.20100416-cvs
[...]
(top-gdb) b main
Breakpoint 3 at 0x80dd33f: file /vol/gnu/src/binutils/src/gdb/gdb.c, line 28.
(top-gdb) run
(top-gdb) p argv
$1 = (char **) 0x8047904
(top-gdb) p argv[0] 
$2 = 0x8047a0c <error reading variable>
(top-gdb) printf "%s\n", $2
/vol/gnu/obj/src/gdb/gdb
(top-gdb) printf "%s\n", argv[0]
/vol/gnu/obj/src/gdb/gdb

This is extremely annoying and makes gdb next to unusable.

-- 
           Summary: gdb cannot print char * variables on Solaris 2/x86
           Product: gdb
           Version: 7.1
            Status: UNCONFIRMED
          Severity: critical
          Priority: P1
         Component: gdb
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: ro at TechFak dot Uni-Bielefeld dot DE
                CC: gdb-prs at sourceware dot org
 GCC build triplet: i386-pc-solaris2.11
  GCC host triplet: i386-pc-solaris2.11
GCC target triplet: i386-pc-solaris2.11


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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