Re: gdb and variadic functions

Krister Olofsson <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
Hi,

yes I know that the versions is very old but it's the latest released
for FreeBSD/ARM that I can find. Porting a new version could take some
time...

//Krister

On 10/29/2013 04:09 PM, Tom Tromey wrote:
>>>>>> "Krister" == Krister Olofsson <[email protected]> writes:
> 
> Krister> Building with -gstabs results in wrong value of argc and building with
> Krister> -fvar-tracking gives wrong values of arguments in variadic functions.
> 
> It's better not to use stabs.
> 
> Krister> gcc version 4.2.1 20070719  [FreeBSD]
> Krister> GNU gdb 6.1.1 [FreeBSD]
> 
> You're using an old version of gcc and an amazingly old version of gdb.
> 
> Using more current versions makes your test case work for me.  So the
> simple answer is that you are probably seeing a bug that was fixed
> sometime in the last 6 years (gcc) or 9 years (gdb).
> 
> Offhand I don't know what the bug might be.
> 
> Tom
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.