mahaloz / decomp2dbg

A plugin to introduce interactive symbols into your debugger from your decompiler
BSD 2-Clause "Simplified" License
621 stars 39 forks source link

#87 add client symbol cache for gdb #88

Closed unknown321 closed 10 months ago

unknown321 commented 10 months ago

I was unable to test symbol renaming while debugging, see log https://gist.github.com/unknown321/3fc213ee8592cc509e4f4d35dd071f8b. Symbols are renamed in ghidra interface, but plugin receives old names, so every symbol update in gdb is zero length.

Chose set as cache instead of dict because of key collisions - there were multiple "case" symbols with same name, but different addresses. Addresses as keys are not reliable - what if decompiler generates object and function at the same address?

mahaloz commented 10 months ago

I like it for now! Thanks for the PR