This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gdb and variadic functions


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 <krister.olofsson@gmail.com> 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
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]