This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/11519] New: gdb cannot print char * variables on Solaris 2/x86
- From: "ro at TechFak dot Uni-Bielefeld dot DE" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 19 Apr 2010 16:22:23 -0000
- Subject: [Bug gdb/11519] New: gdb cannot print char * variables on Solaris 2/x86
- Reply-to: sourceware-bugzilla at sourceware dot org
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.