Open theSprog opened 1 week ago
Hi, this sure seems like a great feature to add. Thanks for suggestion. It seems easy for functions that are defined in the same compilation unit or passed by name, however I'm not yet sure about the ones from libraries. I'm busy right now, so I'll look into it on the next week.
Hi, this sure seems like a great feature to add. Thanks for suggestion.你好,这看起来确实是一个很棒的功能。感谢您的建议。 It seems easy for functions that are defined in the same compilation unit or passed by name, however I'm not yet sure about the ones from libraries.对于在同一编译单元中定义或按名称传递的函数来说,这似乎很容易,但是我还不确定库中的函数。 I'm busy right now, so I'll look into it on the next week.我现在很忙,所以下周再研究一下。
cool😎
Okay, so:
debuginfod
. In case the info is not available locally, it might take relatively long to download it, making program "hang". In which case I would rather only have same-executable function name/type resolution for clang.Implemented for locally defined functions. You can see formatting in function.c test. It doesn't work for functions that get inlined (yet).
Ok, I've seen it. I've tested it and found it works well for my debugging needs.
And I tried other functions, it seems don't work for function in lib, such as printf
.
But now it's enough good for me to debug
I believe this feature is now complete enough for its intended purpose. feel free to close this issue, or keep it open if you plan to enhance it further
Thank you for your time ! 😃
Although it's still rough around the edges, it should now work for all functions, i.e. printf
(in GCC, only local in clang).
Could you test it?
Hi, First of all, thanks for this amazing library! I've been experimenting with it and found it incredibly useful.
I noticed that while uprintf can handle function pointers nicely, it currently cannot print the signatures of external functions like those from libc. For example:
I believe this could be a valuable addition because:
Here's roughly what I imagine the output could look like:
Let me know your thoughts on this!