List Info

Thread: General user of GDB - stuck!




General user of GDB - stuck!
user name
2008-04-28 22:13:59
Hi,

I'm currently using "GNU gdb 5.3 for gnat 3.16a1
(20030729)"
I'm using this on a Red-Hat version of Linux and debugging
a C/C++ application.

Something is happening in GDB that I have not come across
before.
I'm not an expert on debuggers so I was hoping someone might
know
the answer.

When I debug the application at application level (i.e. at a
frame
above any shared libraries), data that I print (i.e. gdb>
p some_variable)
is fine. As soon as I descend into a frame in one of our
shared libraries
(a .so file) data that I print appears as garbage. I know it
isn't really
garbage though because printf() statements of the data are
fine, and
variables populated by the shared library look normal once
the IP has
returned from shared library.

Not all of our shared libraries behave this way. What might
I look for
in the building of this particular shared library that might
be the
cause. This shared library is a C++ library with a C
interface.

Thanks,

-- 
Jevon Kendon



Re: General user of GDB - stuck!
country flaguser name
United States
2008-04-29 13:58:25
On Tue, 2008-04-29 at 13:13 +1000, Jevon Kendon wrote:
> Hi,
> 
> I'm currently using "GNU gdb 5.3 for gnat 3.16a1
(20030729)"
> I'm using this on a Red-Hat version of Linux and
debugging
> a C/C++ application.

gdb-5.3 was released in 2002.  That's way too old for any
maintaining, and really too old to use.  Please see if you
can install a later version.  

If your Red Hat version is that old as well, you might 
want to think about upgrading that too.




Re: General user of GDB - stuck!
country flaguser name
United States
2008-04-29 15:04:24
Michael Snyder wrote:
> On Tue, 2008-04-29 at 13:13 +1000, Jevon Kendon wrote:
>> Hi,
>>
>> I'm currently using "GNU gdb 5.3 for gnat
3.16a1 (20030729)"
>> I'm using this on a Red-Hat version of Linux and
debugging
>> a C/C++ application.
> 
> gdb-5.3 was released in 2002.  That's way too old for
any
> maintaining, and really too old to use.  Please see if
you
> can install a later version.  
> 
> If your Red Hat version is that old as well, you might

> want to think about upgrading that too.

Note that gnat 3.16a1 is of similar museum antiquity 
> 
> 


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )