This is the mail archive of the
mailing list for the GDB project.
[RFC] Linux-specific ppc32 ABI
- From: Luis Machado <luisgpm at linux dot vnet dot ibm dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 10 Jan 2008 17:00:24 -0200
- Subject: [RFC] Linux-specific ppc32 ABI
- Reply-to: luisgpm at linux dot vnet dot ibm dot com
GDB currently handles stack frame creation when calling inferior
functions for SYSV/ppc32 through the ppc_sysv_abi_push_dummy_call(...)
method. GDB on Linux/ppc32 relies on this function as well since it
doesn't have an explicit implementation in ppc-linux-tdep.c.
The problem is that the implementation for
ppc_sysv_abi_push_dummy_call(...) has a problem that needs to be fixed,
related to the size of float parameters that are meant to be stored in
the stack during parameter passing in a function.
The question is, would it be safe to assume that SYSV would comply with
Linux ABI's especifications for ppc32, so it would only be necessary to
change the SYSV implementation, or would it be a better idea to just
write new Linux-specific code in ppc-linux-tdep.c?
The only difference between these two functions would be the fix for
float parameter passing through the stack and the place they're located:
"ppc-linux-tdep.c" vs "ppc-sysv-tdep.c".
I presume it's better to just write new Linux-specific code in case we
need to treat those ABI's differently in the future.
What do you think?
IBM Linux Technology Center