This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: exp/1811: "set var x = y" doesn't work properly if sizeof(x) < sizeof(register)


Synopsis: "set var x = y" doesn't work properly if sizeof(x) < sizeof(register)

State-Changed-From-To: open->feedback
State-Changed-By: cagney
State-Changed-When: Thu Nov 18 15:05:32 2004
State-Changed-Why:
    Check:
    
      else if (CONVERT_REGISTER_P (regnum, type))
        {
          /* The ISA/ABI need to something weird when obtaining the
             specified value from this register.  It might need to
             re-order non-adjacent, starting with REGNUM (see MIPS and
             i386).  It might need to convert the [float] register into
             the corresponding [integer] type (see Alpha).  The assumption
             is that REGISTER_TO_VALUE populates the entire value
             including the location.  */
          REGISTER_TO_VALUE (frame, regnum, type, VALUE_CONTENTS_RAW (v));
          VALUE_LVAL (v) = lval_register;
          VALUE_FRAME_ID (v) = get_frame_id (frame);
          VALUE_REGNUM (v) = regnum;
    
    you should be able to perform arbitrary conversions.

http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=1811


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]