debugger icon indicating copy to clipboard operation
debugger copied to clipboard

Support Make code and use it when the target stops at a location where there is no function

Open xusheng6 opened this issue 3 years ago • 1 comments

Thanks Peter for this: https://github.com/Vector35/binaryninja-api/blob/dev/python/examples/make_code.py.

Right now, the debugger aggressively creates new functions when the target stops at a location where there is no function. This causes several problems, especially it creates a new function inside of the dynamic loader, which then triggers LOTS of other new functions to be added. All of these are of little use.

xusheng6 avatar Apr 07 '22 06:04 xusheng6

I added support for make code in https://github.com/Vector35/debugger_native/commit/fd60f5ba9d768ca769fcf7fe6a9e38d817a752e2. And then I tested using it for showing location where there is no code. However, the result is not as good as what we have now (i.e., defining a function at the stopped address). So I somehow think we should keep the current behavior, while offering the opportunity to view, e.g., a buffer, as code.

I am moving this out of the 3.1 milestone. I should come back and deal with it later.

xusheng6 avatar Apr 13 '22 10:04 xusheng6