/* Convex stuff for GDB.
- Copyright (C) 1990 Free Software Foundation, Inc.
+ Copyright (C) 1990, 1991 Free Software Foundation, Inc.
This file is part of GDB.
if (arg)
{
- if (sscanf (arg, "0x%x", ®num) == 1
- || sscanf (arg, "%d", ®num) == 1)
- {
- if (regnum > 0)
- regnum &= ~0x8000;
- }
- else if (sscanf (arg, "$c%d", ®num) == 1)
+ if (sscanf (arg, "$c%d", ®num) == 1) {
;
- else if (sscanf (arg, "$C%d", ®num) == 1)
+ } else if (sscanf (arg, "$C%d", ®num) == 1) {
;
- else
+ } else {
regnum = parse_and_eval_address (arg);
+ if (regnum > 0)
+ regnum &= ~0x8000;
+ }
if (regnum >= 64)
error ("%s: invalid register name.", arg);