When printing a <<char*>> (such as argv[1]) that is null, the output looks like: (char*) 0x1234 "Error: ... the string should only be printed when the memory is accessable (at least the first character).
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 > "