Summary: | <<fhpd) print argv[1]>> gets an error | ||
---|---|---|---|
Product: | frysk | Reporter: | Andrew Cagney <cagney> |
Component: | general | Assignee: | Teresa Thomas <tthomas> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Last reconfirmed: | ||
Bug Depends on: | |||
Bug Blocks: | 2246, 5421 |
Description
Andrew Cagney
2007-11-27 19:48:58 UTC
Catch exceptions on memory errors while printing pointers. frysk-core/frysk/value/ChangeLog 2007-11-29 Teresa Thomas <tthomas@redhat.com> * PointerType.java (toPrint): Catch exception on memory error. What should happen given: (fhpd) print *(int*)1 The suggestion is to introduce an frysk.MemoryException.MemoryException(long address, <other information>, possible underlying RuntimeException) extends RuntimeException (or FryskException extends RUntimeException -- later). and "encourage" memory code in the core to catch and re-throw that. (fhpd) print argv[2] (char *) 0x0 " < Memory Error > " |