Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] mips-o64-extract-return-value
@ 2003-11-20  1:08 Michael Snyder
  2003-11-20  1:23 ` Andrew Cagney
  0 siblings, 1 reply; 12+ messages in thread
From: Michael Snyder @ 2003-11-20  1:08 UTC (permalink / raw)
  To: gdb-patches, cagney

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

Hi Andrew,

This change fixes 100s of FAILs for mips64-elf, 'cause gdb can't
find the function's return value.  It follows some work that you
were apparently doing w.r.t. the mips internal register representation.

I suspect that the same thing needs to be done for mips_eabi_extract...,
but I haven't tested that.  What do you think?

I'll probably try doing something similar for store_return_value too.

Michael


[-- Attachment #2: extract --]
[-- Type: text/plain, Size: 1165 bytes --]

2003-11-19  Michael Snyder  <msnyder@redhat.com>

	* mips-tdep.c (mips_o64_extract_return_value):
	Correct for raw reg / virtual reg scheme.

Index: mips-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/mips-tdep.c,v
retrieving revision 1.254
diff -p -r1.254 mips-tdep.c
*** mips-tdep.c	16 Nov 2003 22:46:49 -0000	1.254
--- mips-tdep.c	20 Nov 2003 01:00:31 -0000
*************** mips_o64_extract_return_value (struct ty
*** 4681,4692 ****
    return_value_location (valtype, &hi, &lo);
  
    memcpy (valbuf + lo.buf_offset,
! 	  regbuf + DEPRECATED_REGISTER_BYTE (lo.reg) + lo.reg_offset,
  	  lo.len);
  
    if (hi.len > 0)
      memcpy (valbuf + hi.buf_offset,
! 	    regbuf + DEPRECATED_REGISTER_BYTE (hi.reg) + hi.reg_offset,
  	    hi.len);
  }
  
--- 4681,4692 ----
    return_value_location (valtype, &hi, &lo);
  
    memcpy (valbuf + lo.buf_offset,
! 	  regbuf + DEPRECATED_REGISTER_BYTE (NUM_REGS + lo.reg) + lo.reg_offset,
  	  lo.len);
  
    if (hi.len > 0)
      memcpy (valbuf + hi.buf_offset,
! 	    regbuf + DEPRECATED_REGISTER_BYTE (NUM_REGS + hi.reg) + hi.reg_offset,
  	    hi.len);
  }
  

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

end of thread, other threads:[~2003-11-25 22:15 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-20  1:08 [RFA] mips-o64-extract-return-value Michael Snyder
2003-11-20  1:23 ` Andrew Cagney
2003-11-20 21:28   ` Michael Snyder
2003-11-20 21:54     ` Andrew Cagney
2003-11-21  1:04       ` Michael Snyder
2003-11-21 16:14         ` Andrew Cagney
2003-11-21 21:53           ` Michael Snyder
2003-11-22  0:13             ` Andrew Cagney
2003-11-22  1:01               ` Michael Snyder
2003-11-22  1:05                 ` Daniel Jacobowitz
2003-11-25 22:04                   ` Michael Snyder
2003-11-25 22:15   ` Michael Snyder

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