* [bug] problem printing local vars in shared lib function
@ 2008-10-27 23:10 Michael Snyder
2008-10-28 8:08 ` André Pönitz
0 siblings, 1 reply; 3+ messages in thread
From: Michael Snyder @ 2008-10-27 23:10 UTC (permalink / raw)
To: gdb
Does this sound familiar to anybody? X86_64...
I have a local shared library function, built with -g,
gdb has its symbols and can list it, step into it, step
within it etc.
I can print the values of the function parameters, but
not the values of local (automatic) variables. These
are not statics but autos on the stack.
GDB complains that the memory is inaccessible when
I use "print", but if I use "examine" ('x'), it works
fine and displays the value.
Doesn't seem to matter what the type of the variable is.
Stack variables in the main executable program (ie. not
in the shared library) work fine.
I've even tried this with -gstabs as opposed to dwarf.
Same symptom.
Executable: GNU gdb 6.8-debian
OS: Ubuntu Hardy (8.0.4) x86_64, kernel 2.6.24-19-generic
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [bug] problem printing local vars in shared lib function
2008-10-27 23:10 [bug] problem printing local vars in shared lib function Michael Snyder
@ 2008-10-28 8:08 ` André Pönitz
2008-10-28 18:06 ` Michael Snyder
0 siblings, 1 reply; 3+ messages in thread
From: André Pönitz @ 2008-10-28 8:08 UTC (permalink / raw)
To: gdb
On Tuesday 28 October 2008 00:03:42 Michael Snyder wrote:
> Does this sound familiar to anybody? X86_64...
>
> I have a local shared library function, built with -g,
> gdb has its symbols and can list it, step into it, step
> within it etc.
>
> I can print the values of the function parameters, but
> not the values of local (automatic) variables. These
> are not statics but autos on the stack.
Is this function a constructor?
If so, it sounds familiar ;-}
Andre'
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [bug] problem printing local vars in shared lib function
2008-10-28 8:08 ` André Pönitz
@ 2008-10-28 18:06 ` Michael Snyder
0 siblings, 0 replies; 3+ messages in thread
From: Michael Snyder @ 2008-10-28 18:06 UTC (permalink / raw)
To: André Pönitz; +Cc: gdb
André Pönitz wrote:
> On Tuesday 28 October 2008 00:03:42 Michael Snyder wrote:
>> Does this sound familiar to anybody? X86_64...
>>
>> I have a local shared library function, built with -g,
>> gdb has its symbols and can list it, step into it, step
>> within it etc.
>>
>> I can print the values of the function parameters, but
>> not the values of local (automatic) variables. These
>> are not statics but autos on the stack.
>
> Is this function a constructor?
>
> If so, it sounds familiar ;-}
No, I don't think so, I believe it was an ordinary
function, and in fact I think the problem was demonstrated
to me in several different shlib functions.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-10-28 18:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-27 23:10 [bug] problem printing local vars in shared lib function Michael Snyder
2008-10-28 8:08 ` André Pönitz
2008-10-28 18:06 ` Michael Snyder
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox