gdb_get_frame_info
Retrieve current stack frame details for debugging Nintendo Switch executables in gdb-multiarch, enabling precise analysis of program execution state.
Instructions
Get information about the current stack frame.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The get_frame_info method in the GDBSession class communicates with GDB using the -stack-info-frame command to retrieve information about the currently selected stack frame.
def get_frame_info(self) -> dict[str, Any]: """ Get information about the current stack frame. Returns: Dict with current frame information """ result = self.execute_command("-stack-info-frame") if result["status"] == "error": return result mi_result = self._extract_mi_result(result) or {} frame = mi_result.get("frame", {}) return {"status": "success", "frame": frame} - src/gdb_multiarch_mcp/server.py:266-270 (registration)The gdb_get_frame_info tool is registered with the MCP server, defining its name and input schema (which is empty in this case).
Tool( name="gdb_get_frame_info", description="Get information about the current stack frame.", inputSchema=NO_ARGS_SCHEMA, ), - src/gdb_multiarch_mcp/server.py:476-477 (handler)The server.py file contains the tool handling logic that maps the gdb_get_frame_info command to the session.get_frame_info() method call.
elif name == "gdb_get_frame_info": result = session.get_frame_info()