DynamoRIO / drmemory

Memory Debugger for Windows, Linux, Mac, and Android
Other
2.44k stars 262 forks source link

feature request: add option to display caller memory address in drstrace #2056

Open psec opened 7 years ago

psec commented 7 years ago

It would be useful to have the option to display the address of the caller or the return address in drstrace.

For example, the output under this option would read:

NtOpenSection ret addr: 0x00405340 arg 0: 0x001ffb5c (type=HANDLE*, size=0x4) arg 1: 0xf (type=unsigned int, size=0x4) ...

derekbruening commented 7 years ago

@mxmssh already added this I believe?

mxmssh commented 7 years ago

we have this option in drltrace (-print_ret_addr).

derekbruening commented 7 years ago

Right. For drstrace I would think just the direct caller would not normally be sufficient: it's going to always be a winapi routine (your NtOpenSection example must be some unusual app doing raw syscalls?). A callstack to connect it back to the app would be more useful.

derekbruening commented 7 years ago

A callstack feature is already under #1756. I would say close this one in favor of that.