public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/11519] New: gdb cannot print char * variables on Solaris 2/x86
@ 2010-04-19 16:22 ro at TechFak dot Uni-Bielefeld dot DE
  2010-04-19 22:49 ` [Bug gdb/11519] " tromey at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: ro at TechFak dot Uni-Bielefeld dot DE @ 2010-04-19 16:22 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug gdb/11519] gdb cannot print char * variables on Solaris 2/x86
  2010-04-19 16:22 [Bug gdb/11519] New: gdb cannot print char * variables on Solaris 2/x86 ro at TechFak dot Uni-Bielefeld dot DE
@ 2010-04-19 22:49 ` tromey at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: tromey at redhat dot com @ 2010-04-19 22:49 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From tromey at redhat dot com  2010-04-19 22:49 -------


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

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-04-19 22:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-19 16:22 [Bug gdb/11519] New: gdb cannot print char * variables on Solaris 2/x86 ro at TechFak dot Uni-Bielefeld dot DE
2010-04-19 22:49 ` [Bug gdb/11519] " tromey at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).