Bug 4215 - print 0x1 - 0x2 ;; hpd does not do hex subtraction.
Summary: print 0x1 - 0x2 ;; hpd does not do hex subtraction.
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Stan Cox
URL:
Keywords:
Depends on:
Blocks: 2246
  Show dependency treegraph
 
Reported: 2007-03-19 16:37 UTC by Nurdin Premji
Modified: 2008-04-23 20:47 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nurdin Premji 2007-03-19 16:37:45 UTC
]$ fhpd 
(fhpd) print
(fhpd) print 0xbfd9b440 - 0xbfd9b3d4
java.lang.NumberFormatException: number overflow (pos=7) : bfd9b440
   at java.lang.Integer.parseInt(libgcj.so.7rh)
   at java.lang.Integer.parseInt(libgcj.so.7rh)
   at frysk.expr.CppTreeParser.expr(fhpd)
   at frysk.expr.CppTreeParser.expr(fhpd)
   at frysk.expr.CppTreeParser.expr(fhpd)
   at frysk.cli.hpd.SymTab.print(fhpd)
   at frysk.cli.hpd.CLI$PrintHandler.handle(fhpd)
   at frysk.cli.hpd.CLI.execCommand(fhpd)
   at fhpd.main(fhpd)
Internal debugger error:  number overflow (pos=7) : bfd9b440
Comment 1 Nurdin Premji 2007-06-26 17:27:04 UTC
hpd does hex subtraction but values are printed in binary.
I.e.

(fhpd) print 0xbfd9b440 - 0xbfd9b3d4
108
Comment 2 Stan Cox 2008-04-23 20:47:44 UTC
(fhpd) print 0x1 - 0x3
-2