This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Extract the return value in finish_command on Xtensa.
- From: Andrew Cagney <cagney at gnu dot org>
- To: Chris Zankel <zankel at tensilica dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Wed, 14 Jul 2004 15:38:34 -0400
- Subject: Re: Extract the return value in finish_command on Xtensa.
- References: <40F31BA9.2060101@tensilica.com>
I am working on a port of GDB to the Xtensa architecture.
Unfortunately, it is impossible on Xtensa to extract the return value once the 'callee' has returned to the 'caller' without analyzing the call instruction (if there was one). Depending on the call instruction, the return value can be in register a6, a10, oder a14.
Puzzled expression. The ABI should specify which return-value
convention will be used?
I suspect you'll need to explain a little more about your architecture.
Andrew