context
Get a full snapshot of the current debugging context after a stop event, including current frame, function arguments, local variables, and source listing around the current line.
Instructions
Return a full snapshot of the current debugging context.
Combines the most commonly needed post-stop information into one call:
Current frame: function, file, and line number
Function arguments
Local variables
Source listing around the current line
Call this immediately after any stop event (breakpoint hit, step, interrupt) to orient yourself before deciding on the next action.
Note: this resets GDB's internal source-listing position to the current PC, which cancels any forward scrolling done by previous list_source calls.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |