This is the mail archive of the gdb-prs@sources.redhat.com 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]

cli/1080: `show integer -1' is very large


>Number:         1080
>Category:       cli
>Synopsis:       `show integer -1' is very large
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 20 03:58:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     ac131313 at redhat dot com
>Release:        unknown-1.0
>Organization:
>Environment:

>Description:
Note the sequence:

(gdb) set remote hardware-breakpoint-limit 0 
(gdb) show remote hardware-breakpoint-limit 0
The maximum number of target hardware breakpoints is 0.
(gdb) set remote hardware-breakpoint-limit 1
(gdb) show remote hardware-breakpoint-limit 0
The maximum number of target hardware breakpoints is 1.
(gdb) set remote hardware-breakpoint-limit -1
(gdb) show remote hardware-breakpoint-limit 0
The maximum number of target hardware breakpoints is 4294967295.

the variable is a `zinteger' which should be -ve not infinite.
>How-To-Repeat:
          /* else fall through */

Missing `break;', need we say more :-)

        case var_zinteger:
          fprintf_filtered (stb->stream, "%u", *(unsigned int *) c->var);
          break;
>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]