stoyan-shopov / turbo

A minimalistic frontend to the gdb debugger
MIT License
4 stars 0 forks source link

Disassembling functions via the custom context menu in the source file view is broken #6

Open stoyan-shopov opened 3 years ago

stoyan-shopov commented 3 years ago

Disassembling functions via the custom context menu in the source file view is broken. The reason for this is that subprograms in this view are displayed as declarations, e.g. int main(void), and the custom context menu handler uses this string in order to construct disassembly requests to gdb - this does not work, as instead of int main(void), only the identifier main should be used. There are probably issues with this elsewhere. A possible way to handle this is not to rely on the text in the tree widget, and instead to add a custom Qt role placeholder for holding the proper identifier string to be used.