binsync / libbs

A library for writing plugins in any decompiler: includes API lifting, common data formatting, and GUI abstraction!
BSD 2-Clause "Simplified" License
63 stars 4 forks source link

Who call this set_artifact?? #72

Closed 5angjun closed 3 months ago

5angjun commented 3 months ago

Hello, I'm sangjun who is interested in your project. However, I want to analyze how you figure out the changes of decompilation code in BinSync.

So I need too analyze the libbs. But i cannot find the root of this things.

While investigating various functions, I came across one called set_artifact which seems to be a main feature, but it's difficult to analyze because there are no apparent calls to it. Could you provide some tips?

image

mahaloz commented 3 months ago

Hi @5angjun, recall that libbs is a Library, which means that some functions may not be called within this project, but are instead used by projects that use this library, like BinSync.

In this case set_artifact was used in BinSync up until recently. It was replaced by this line for simplicity: https://github.com/binsync/binsync/blob/1b51353cbedc4b8f8f4650687fd2aa1403ed8543/binsync/controller.py#L129

Do a search for how that object is used, and you'll be able to see how it does the same thing. If this function continues to be unused for a long period, it may get deprecated.

5angjun commented 3 months ago

Very Thanks for applying. I is so much helpful.

this is really interesting project i have ever seen😀😀

mahaloz commented 3 months ago

Thank you!