Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* ARM PATCH fix extract_return_value and store_return_value
@ 2002-12-14  6:33 Richard Earnshaw
  2003-01-24  3:10 ` Michael Snyder
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Earnshaw @ 2002-12-14  6:33 UTC (permalink / raw)
  To: gdb-patches; +Cc: Richard.Earnshaw, Michael Snyder

[-- Attachment #1: Type: text/plain, Size: 1140 bytes --]


This patch cleans up the way the ARM tdep code handles extracting and 
storing return values.  Not only does it convert the methods to the new 
regcache abstraction but it also fixes (at least I hope it fixes) the 
big-endian problems that Michael was reporting on a big-endian ARM.

Michael, I've only run this through a little-endian testsuite.  Could you 
let me know if it solves the problems you were reporting.

R.

2002-12-14  Richard Earnshaw  <rearnsha@arm.com>

	* arm-tdep.c (convert_from_extended): New argument to hold the
	type of floating point result we want to convert to.  Make input 
	argument const.  Fix all callers.
	(convert_to_extended): Similarly.
	(arm_extract_return_value): Now takes a regcache argument.  Change
	code to use regcache accessor functions.  Correctly extract 
	smaller-than-word results on big-endian machines.
	(arm_store_return_value): Now takes a regcache argument.  Change
	code to use regcache accessor functions.  Correctly zero/sign extend
	smaller than word results before storing into r0.
	(arm_gdbarch_init): Register new-style extract_return_value and
	store_return_value functions.



[-- Attachment #2: gdb-retval.patch --]
[-- Type: application/x-patch , Size: 10781 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-01-24 19:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-14  6:33 ARM PATCH fix extract_return_value and store_return_value Richard Earnshaw
2003-01-24  3:10 ` Michael Snyder
2003-01-24 11:13   ` Richard Earnshaw
2003-01-24 19:45     ` Michael Snyder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox