GDB shows fake short arguments (?????)
Daniel Jacobowitz
drow@mvista.com
Sun Jan 26 22:37:00 GMT 2003
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
More information about the Gdb
mailing list