This is the mail archive of the gdb-prs@sourceware.org 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: gdb/2146: remote_fetch_registers (int regnum) ... if (regnum >= 0) {


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


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