Description
webapp/src/components/Functions/Functions.jsx is calling /get_locals which runs info locals in GDB. That command returns local variables of the current stack frame, not functions. The panel is called "Functions" and should be showing program functions via info functions, but there's no /get_functions route on the backend yet — looks like a copy-paste from another component that was never corrected.
To reproduce:
- Start a debug session and step into a function that has local variables
- Open the Functions panel and trigger a refresh
- The panel shows local variable data instead of a list of program functions
Expected behavior: The Functions panel lists program functions via info functions.
Fix involves:
- Adding a
/get_functions route to gdbui_server/main.py that runs info functions
- Updating the fetch in
Functions.jsx to call /get_functions instead
Description
webapp/src/components/Functions/Functions.jsxis calling/get_localswhich runsinfo localsin GDB. That command returns local variables of the current stack frame, not functions. The panel is called "Functions" and should be showing program functions viainfo functions, but there's no/get_functionsroute on the backend yet — looks like a copy-paste from another component that was never corrected.To reproduce:
Expected behavior: The Functions panel lists program functions via
info functions.Fix involves:
/get_functionsroute togdbui_server/main.pythat runsinfo functionsFunctions.jsxto call/get_functionsinstead