This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
gdb/2146: remote_fetch_registers (int regnum) ... if (regnum >= 0) {
- From: roland dot puntaier at br-automation dot com
- To: gdb-gnats at sources dot redhat dot com
- Date: 14 Jul 2006 15:47:15 -0000
- Subject: gdb/2146: remote_fetch_registers (int regnum) ... if (regnum >= 0) {
- Reply-to: roland dot puntaier at br-automation dot com
>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: