Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!ginosko!uunet!lll-winken!arisia!mdixon
From: mdixon@thelonius.PARC.xerox.com (Mike Dixon)
Newsgroups: comp.sys.next
Subject: finding defaults
Message-ID: 
Date: 18 Aug 89 20:41:03 GMT
Sender: news@arisia.Xerox.COM
Distribution: comp
Organization: Xerox PARC, Palo Alto, CA
Lines: 13

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 '
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