This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: GDB shows fake short arguments (?????)
On Sun, Jan 26, 2003 at 10:45:13PM +0100, Creep wrote:
>
> Hello. I was debugging a program and a weird thing occured.
> I'm not actually sure if this is a bug or a normal behavior :S.
> I just can't quite imagine such thing could be unnoticed.
> # gdb --version
> GNU gdb 4.18
>
> Any ideas?
It's just a debug info problem with the compiler you're using; GDB
stops too early in the function. If you use GCC 3.2 you'll probably
get better results. If you're debugging unoptimized code and you don't
want to switch compilers, GDB 5.3 contains a workaround which may help.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer