From: Ulrich Weigand <uweigand@de.ibm.com>
To: mark.kettenis@xs4all.nl (Mark Kettenis)
Cc: uweigand@de.ibm.com, gdb-patches@sources.redhat.com
Subject: Re: [COMMIT] Update s390-tdep.c to gdb_byte changes
Date: Mon, 16 May 2005 16:37:00 -0000 [thread overview]
Message-ID: <200505161240.j4GCe21a016326@53v30g15.boeblingen.de.ibm.com> (raw)
In-Reply-To: <200505161120.j4GBKY5J032444@elgar.sibelius.xs4all.nl> from "Mark Kettenis" at May 16, 2005 01:20:34 PM
Mark Kettenis wrote:
> Great. There are some casts in s390_return_value() that can go now,
> and s390_breakpoint_from_pc() should also be converted to use gdb_byte
> instead of unsigned char. Would be great if you could do that too.
Sorry for missing those. I've now applied the following patch, too.
Bye,
Ulrich
ChangeLog:
* s390-tdep.c (s390_return_value): Remove unnecessary casts.
(s390_breakpoint_from_pc): Change type of return value and
'breakpoint' to const gdb_byte *.
Index: gdb/s390-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/s390-tdep.c,v
retrieving revision 1.144
diff -c -p -r1.144 s390-tdep.c
*** gdb/s390-tdep.c 16 May 2005 10:55:03 -0000 1.144
--- gdb/s390-tdep.c 16 May 2005 12:20:37 -0000
*************** s390_return_value (struct gdbarch *gdbar
*** 2726,2733 ****
else if (length == 2*word_size)
{
regcache_cooked_write (regcache, S390_R2_REGNUM, in);
! regcache_cooked_write (regcache, S390_R3_REGNUM,
! (const char *)in + word_size);
}
else
internal_error (__FILE__, __LINE__, _("invalid return type"));
--- 2726,2732 ----
else if (length == 2*word_size)
{
regcache_cooked_write (regcache, S390_R2_REGNUM, in);
! regcache_cooked_write (regcache, S390_R3_REGNUM, in + word_size);
}
else
internal_error (__FILE__, __LINE__, _("invalid return type"));
*************** s390_return_value (struct gdbarch *gdbar
*** 2759,2766 ****
else if (length == 2*word_size)
{
regcache_cooked_read (regcache, S390_R2_REGNUM, out);
! regcache_cooked_read (regcache, S390_R3_REGNUM,
! (char *)out + word_size);
}
else
internal_error (__FILE__, __LINE__, _("invalid return type"));
--- 2758,2764 ----
else if (length == 2*word_size)
{
regcache_cooked_read (regcache, S390_R2_REGNUM, out);
! regcache_cooked_read (regcache, S390_R3_REGNUM, out + word_size);
}
else
internal_error (__FILE__, __LINE__, _("invalid return type"));
*************** s390_return_value (struct gdbarch *gdbar
*** 2778,2787 ****
/* Breakpoints. */
! static const unsigned char *
s390_breakpoint_from_pc (CORE_ADDR *pcptr, int *lenptr)
{
! static unsigned char breakpoint[] = { 0x0, 0x1 };
*lenptr = sizeof (breakpoint);
return breakpoint;
--- 2776,2785 ----
/* Breakpoints. */
! static const gdb_byte *
s390_breakpoint_from_pc (CORE_ADDR *pcptr, int *lenptr)
{
! static const gdb_byte breakpoint[] = { 0x0, 0x1 };
*lenptr = sizeof (breakpoint);
return breakpoint;
--
Dr. Ulrich Weigand
Linux on zSeries Development
Ulrich.Weigand@de.ibm.com
prev parent reply other threads:[~2005-05-16 12:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-16 12:40 Ulrich Weigand
2005-05-16 13:40 ` Mark Kettenis
2005-05-16 16:37 ` Ulrich Weigand [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200505161240.j4GCe21a016326@53v30g15.boeblingen.de.ibm.com \
--to=uweigand@de.ibm.com \
--cc=gdb-patches@sources.redhat.com \
--cc=mark.kettenis@xs4all.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox