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]

gdb/2146: remote_fetch_registers (int regnum) ... if (regnum >= 0) {


>Number:         2146
>Category:       gdb
>Synopsis:       remote_fetch_registers (int regnum) ...   if (regnum >= 0) {
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 14 15:48:01 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     roland.puntaier@br-automation.com
>Release:        6.5
>Organization:
>Environment:

>Description:
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 {...
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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