From: Elena Zannoni <ezannoni@cygnus.com>
To: gdb-patches@sources.redhat.com
Cc: kevinb@cygnus.com
Subject: [RFA] rs6000-nat.c fetch_register error condition.
Date: Thu, 20 Dec 2001 09:11:00 -0000 [thread overview]
Message-ID: <15394.4270.245910.8192@localhost.localdomain> (raw)
I am trying to break down the Altivec patch in smaller pieces that
don't require a ptrace interface.
I thought this bit had been approved by Kevin in
http://sources.redhat.com/ml/gdb-patches/2001-11/msg00564.html
but it wasn't.
Kevin, OK to commit?
Elena
2001-12-20 Elena Zannoni <ezannoni@redhat.com>
* rs6000-nat.c (fetch_register): Don't error out unless the
register number is really bogus.
Index: rs6000-nat.c
===================================================================
RCS file: /cvs/uberbaum/gdb/rs6000-nat.c,v
retrieving revision 1.18
diff -u -r1.18 rs6000-nat.c
--- rs6000-nat.c 2001/12/19 14:14:52 1.18
+++ rs6000-nat.c 2001/12/20 16:57:30
@@ -206,9 +206,12 @@
/* Bogus register number. */
else if (regno > LAST_UISA_SP_REGNUM)
- fprintf_unfiltered (gdb_stderr,
- "gdb error: register no %d not implemented.\n",
- regno);
+ {
+ if (regno >= NUM_REGS)
+ fprintf_unfiltered (gdb_stderr,
+ "gdb error: register no %d not implemented.\n",
+ regno);
+ }
/* Fixed-point registers. */
else
next reply other threads:[~2001-12-20 17:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-20 9:11 Elena Zannoni [this message]
2001-12-20 14:16 ` Kevin Buettner
2001-12-20 15:32 ` Elena Zannoni
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=15394.4270.245910.8192@localhost.localdomain \
--to=ezannoni@cygnus.com \
--cc=gdb-patches@sources.redhat.com \
--cc=kevinb@cygnus.com \
/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