On Thu, 21 Oct 2004, Dave Thorup wrote:
> Can you even use Guard Malloc with CFM applications?
You definitely can. I do it all the time (but not with CodeWarrior).
Some other info that may help you in the future:
Here's a little script you can make that makes it easier to
debug CFM apps (writing up a bug saying you'd like this as a standard script
would be good too)
--start script
#!/bin/sh
TEMPFILE=/tmp/.gdbHackArgs
echo "set args \"$1\"" > ${TEMPFILE}
gdb /System/Library/Frameworks/Carbon.framework/Versions/A/Support/LaunchCFMApp --command=${TEMPFILE}
--end script
If you call that DebugCFM for example, then you can just do:
DebugCFM /path/to/my/CFMapp
and not have to remember the other gunk.
Also you could put this in your .gdbinit file to not have to remember the
various paths:
define guardmalloc
set env DYLD_INSERT_LIBRARIES /usr/local/lib/libgmalloc.B.dylib
set env DYLD_FORCE_FLAT_NAMESPACE 1
end
then you can just say 'guardmalloc' at a gdb prompt before running the
app to turn it on.
--
top-posting: It's just a bad idea. Please don't respond to a message and
change the subject to start a new topic -- it messes up threaded email viewing.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
PerfOptimization-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/perfoptimization-dev/email@hidden
This email sent to email@hidden