Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Building gdb from cvs
@ 2009-05-07 20:51 Frank Middleton
  2009-05-08  0:01 ` Joel Brobecker
  0 siblings, 1 reply; 3+ messages in thread
From: Frank Middleton @ 2009-05-07 20:51 UTC (permalink / raw)
  To: gdb

Using the supplied SPARC version of gdb, printing of strings works

/usr/bin/gdb.6.3.50 --version
GNU gdb 6.3.50_2004-11-23-cvs
...
3	char *c = "ABCD";
(gdb) n
4	return 0;
(gdb) p c
$1 = 0x105a0 "ABCD"

But, in order to debug on SPARC, I am using a locally patched version
and printing of strings doesn't seem to work any more

/usr/local/bin/gdb --version
GNU gdb (GDB) 6.8.50.20090427-cvs
...
3	char *c = "ABCD";
(gdb) n
4	return 0;
(gdb) p c
$1 = 0x105a0 "

This must be an artifact of the way this was built (it uses gnu libiconv,
for example), or some kind of regression (unlikely).

Since it was built with a motley collection of Solaris and gnu libraries,
this is probably unreproducible. Can you guess as to which libraries you
think might be causing this so I can relink with the gnu ones instead?

Thanks


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

* Re: Building gdb from cvs
  2009-05-07 20:51 Building gdb from cvs Frank Middleton
@ 2009-05-08  0:01 ` Joel Brobecker
  2009-05-08  3:08   ` Frank Middleton
  0 siblings, 1 reply; 3+ messages in thread
From: Joel Brobecker @ 2009-05-08  0:01 UTC (permalink / raw)
  To: Frank Middleton; +Cc: gdb

> (gdb) p c
> $1 = 0x105a0 "

I've had something similar on AIX:
http://www.sourceware.org/ml/gdb-patches/2009-04/msg00704.html

I've just posted a new fix for the issue on AIX. Perhaps it's
the same for you as well.
http://www.sourceware.org/ml/gdb-patches/2009-05/msg00159.html

-- 
Joel


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

* Re: Building gdb from cvs
  2009-05-08  0:01 ` Joel Brobecker
@ 2009-05-08  3:08   ` Frank Middleton
  0 siblings, 0 replies; 3+ messages in thread
From: Frank Middleton @ 2009-05-08  3:08 UTC (permalink / raw)
  To: Joel Brobecker; +Cc: gdb

On 05/07/09 20:01, Joel Brobecker wrote:
>> (gdb) p c
>> $1 = 0x105a0 "
>
> I've had something similar on AIX:
> http://www.sourceware.org/ml/gdb-patches/2009-04/msg00704.html
>
> I've just posted a new fix for the issue on AIX. Perhaps it's
> the same for you as well.
> http://www.sourceware.org/ml/gdb-patches/2009-05/msg00159.html

Sure was, although the patch seems to have already been applied
to the current weekly snapshot.FWIW this has now been checked
out on SPARC/SunOS (snv103)...

Thanks!


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

end of thread, other threads:[~2009-05-08  3:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-07 20:51 Building gdb from cvs Frank Middleton
2009-05-08  0:01 ` Joel Brobecker
2009-05-08  3:08   ` Frank Middleton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox