This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
Re: gdb/2146: remote_fetch_registers (int regnum) ... if (regnum >= 0) {
- From: Daniel Jacobowitz <drow at false dot org>
- To: nobody at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 17 Jul 2006 03:28:02 -0000
- Subject: Re: gdb/2146: remote_fetch_registers (int regnum) ... if (regnum >= 0) {
- Reply-to: Daniel Jacobowitz <drow at false dot org>
The following reply was made to PR gdb/2146; it has been noted by GNATS.
From: Daniel Jacobowitz <drow@false.org>
To: roland.puntaier@br-automation.com
Cc: gdb-gnats@sources.redhat.com
Subject: Re: gdb/2146: remote_fetch_registers (int regnum) ... if (regnum >= 0) {
Date: Sun, 16 Jul 2006 23:25:09 -0400
On Fri, Jul 14, 2006 at 03:47:15PM -0000, roland.puntaier@br-automation.com wrote:
> remote.c:
> remote_fetch_registers (int regnum)
> {
> ...
> if (regnum >= 0) {
> ...
>
> should'nt the if block end after the switch statement as it does in remote_store_registers.
>
> For me gdb terminates itself after finding out that regnum is not regnum >= 0 in
> fetch_register_using_p {... regcache_raw_supply {...
Yes, probably. I think there are more problems with 'p' packet support
in current versions of GDB; it may work better in the next release.
--
Daniel Jacobowitz
CodeSourcery