Posts Mentioning RSS Toggle Comment Threads | Keyboard Shortcuts

  • kusno mudiarto 5:14 pm on March 26, 2009 Permalink | Reply  

    Trace32 script to print stack frame to a file 

    A very simple scripts, but took me a while to found it. Basically in Trace32, I need to capture stack trace whenever a certain memory location is being written. I got tired of doing it manually, and have to copy & paste the stack trace everytime. Searching it in Google didn’t give me a clue, so I read through Trace32 manual to find out how to do it.

    Finally, I found the easy way to do it, here is the script / command in its glory:

    # printer.clipboard -> to redirect to clipboard
    # use this to redirect to file
    printer.open "c:/kusno_trace_1.txt"
    
    # command to be run inserted in the  the breakpoint
    wp.var.Frame
    
    # close printer after we're done
    printer.close
    

    The trick here is using printer to print the content of the var.Frame…

    Tags:

     
    • vineet 11:34 pm on September 16, 2009 Permalink

      Thanks… It is really useful…

  • kusno mudiarto 11:43 am on March 24, 2009 Permalink | Reply  

    Adding Custom Compilation Flags in XCode 

    I just found out how to add additional compilation Flags in XCode. It may looks stupid, but I couldn’t find it anywhere couple days ago :( .

    Basically just do “Get Info” on a project / target, and add user defined settings with this value :

    OTHER_CFLAGS and set the additional compilation flags : -DTARGET_OS_X -DMUDI_DEBUG

    edit:

    another additional flags : GCC_PREFIX_HEADER to specify your precompiled header – useful for static library

    Tags:

     
c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
esc
cancel