Skip to content

[Bug] Functions panel fetches from /get_locals — showing wrong data #200

@alikhere

Description

@alikhere

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:

  1. Start a debug session and step into a function that has local variables
  2. Open the Functions panel and trigger a refresh
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions