This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[obish/cris] Delete extract_struct_value_address
- From: Andrew Cagney <cagney at gnu dot org>
- To: gdb-patches at sources dot redhat dot com, orjanf at axis dot com
- Date: Sat, 17 Jan 2004 14:02:44 -0500
- Subject: [obish/cris] Delete extract_struct_value_address
Orjan,
The attached deletes cris's implementation of
extract_struct_value_address. Knowing two things make deleting it
relatively obvious:
- infrun.c's been rewritten so that it never calls
extract_struct_value_address, hence the "trick" of saving the return
value's address in a global is never exploited
- as the comments note, the ABI doesn't preserve the return address
register and hence the other potential caller (code trying to extract
the return value) doesn't apply
BTW, suggest looking at "return_value", implementing it has a dramatic
effect on the test results from structs.exp.
enjoy, (committed)
Andrew