mdixon@thelonius.PARC.xerox.com (Mike Dixon) (08/19/89)
i worked out the following strategy for tracking down which defaults
an application reads. it's more reliable and much less painful than
reading through a 'strings' listing...
a) 'gdb <application>'
b) 'break NXRegisterDefaults' (or 'break 0x6066220', if there are no symbols)
c) 'run'
d) when it hits the break, try 'x/4wx $sp'. if third word is zero, 'cont'
e) 'p {char *}0xZZZZ@24', where 0xZZZZ is the fourth word displayed
by the previous operation (if that doesn't get them all, increase the 24)
--
Mike Dixon Xerox PARC mdixon@arisia.xerox.com