This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] ari tweeks for s390
- To: gdb-patches at sources dot redhat dot com
- Subject: [patch] ari tweeks for s390
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Wed, 31 Oct 2001 20:56:00 -0500
FYI,
The attached fixes some ari problems in the s390. Others were fixed in
earlier patches. The files scored:
s390-nat.c
2
s390-tdep.c
7
enjoy,
Andrew
http://sources.redhat.com/gdb/ari/
2001-10-31 Andrew Cagney <ac131313@redhat.com>
* s390-nat.c (s390_remove_watchpoint): Use xfree.
(s390_insert_watchpoint): Use xmalloc.
Index: s390-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/s390-nat.c,v
retrieving revision 1.2
diff -p -r1.2 s390-nat.c
*** s390-nat.c 2001/10/13 22:13:35 1.2
--- s390-nat.c 2001/11/01 02:51:51
*************** int
*** 138,144 ****
s390_insert_watchpoint (int pid, CORE_ADDR addr, int len, int rw)
{
CORE_ADDR hi_addr = addr + len - 1;
! watch_area *newarea = (watch_area *) malloc (sizeof (watch_area));
if (newarea)
--- 138,144 ----
s390_insert_watchpoint (int pid, CORE_ADDR addr, int len, int rw)
{
CORE_ADDR hi_addr = addr + len - 1;
! watch_area *newarea = (watch_area *) xmalloc (sizeof (watch_area));
if (newarea)
*************** s390_remove_watchpoint (int pid, CORE_AD
*** 205,211 ****
}
if (matchCurr)
{
! free (matchCurr);
watch_area_cnt--;
if (watch_area_cnt)
{
--- 205,211 ----
}
if (matchCurr)
{
! xfree (matchCurr);
watch_area_cnt--;
if (watch_area_cnt)
{