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]

gdb/431: ``set input-radix 1'' changes radix



>Number:         431
>Category:       gdb
>Synopsis:       ``set input-radix 1'' changes radix
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 17 07:48:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     ac131313@redhat.com
>Release:        GNU gdb 2002-03-17-cvs
>Organization:
>Environment:

>Description:
Contrary to what the error message claims, GDB does let the user set the input radix to 0 or 1.

The set input radix code needs to maintain two variables - one with the current input radix and one with the just entered value.

Suspect output-radix has similar problems.

>How-To-Repeat:
ac131313@nettle$ ./gdb/gdb
GNU gdb 2002-03-17-cvs
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "powerpc-unknown-netbsd1.5ZA".
(gdb) set input-radix 1
Nonsense input radix ``decimal 1''; input radix unchanged.
(gdb) show input-radix 
Default input radix for entering numbers is 1.
(gdb) set output-radix 1
Invalid number "1".
(gdb) 
>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]