STABS records for 64-bit function arguments via registers in i386

kew@emc.com kew@emc.com
Wed Oct 13 15:19:00 GMT 2010


Hi

In i386 architecture (32 bit) gcc can optimize a static function to pass 
function arguments via registers (instead of in the stack). For 64-bit 
arguments, it uses 2 registers, but gdb reports only 1 (via "info 
scope") when the binary being debugged is compiled using the STABS 
debugging format.

I checked using objdump and could see indeed only 1 N_RSYM record being 
given (so no wonder gdb would only report 1 register).

How does the STABS debugging format indicate the 2 registers used for 
passing 64 function arguments in i386 architecture? Is this supported? 
If not, what's the process to add support for it?

If this is not the right mailing list to ask this question, sorry and 
please if you could refer me to the right mailing list, I'd appreciate it.

Thanks
Andrew



More information about the Gdb mailing list