<< 49/55 >>
First Last

Call tracing

For each symbols, generates code like

  pusha
  mov "fopen", %rsi
  call dump_func_name
  popa
  jmp fopen

% LD_MAC_TRACE_FUNCTIONS=1 ./mach/hello.c.bin

 calling puts(2)
 Hello, world!
 calling exit(1)

It was pretty useful for debugging