Bug 11519 - gdb cannot print char * variables on Solaris 2/x86
Summary: gdb cannot print char * variables on Solaris 2/x86
Status: RESOLVED DUPLICATE of bug 10908
Alias: None
Product: gdb
Classification: Unclassified
Component: gdb (show other bugs)
Version: 7.1
: P1 critical
Target Milestone: 7.1
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-19 16:22 UTC by Rainer Orth
Modified: 2010-04-19 22:49 UTC (History)
1 user (show)

See Also:
Host: i386-pc-solaris2.11
Target: i386-pc-solaris2.11
Build: i386-pc-solaris2.11
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rainer Orth 2010-04-19 16:22:20 UTC
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.
Comment 1 Tom Tromey 2010-04-19 22:49:14 UTC

*** This bug has been marked as a duplicate of 10908 ***