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

roland.puntaier@br-automation.com roland.puntaier@br-automation.com
Fri Jul 14 15:48:00 GMT 2006


>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:



More information about the Gdb-prs mailing list