Skip to content

Commit

Permalink
Add additional info to MIBreakpointInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-grant-work committed Sep 21, 2023
1 parent c354c63 commit cd64772
Showing 1 changed file with 39 additions and 8 deletions.
47 changes: 39 additions & 8 deletions src/mi/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,52 @@ export abstract class MIRequest<R> {
}

// Shared types
/** See {@link https://sourceware.org/gdb/current/onlinedocs/gdb.html/GDB_002fMI-Breakpoint-Information.html this documentation} for additional details. */
export interface MIBreakpointInfo {
disp: string;
enabled: 'y' | 'n';
number: string;
type: string;
disp: string;
enabled: string;
addr?: string;
func?: string;
file?: string; // docs are wrong
addr_flags?: string;
at?: string;
'catch-type'?: string;
cond?: string;
enable?: string;
'evaluated-by'?: 'host' | 'target';
file?: string; // docs say filname, but that is wrong
frame?: string;
fullname?: string;
func?: string;
ignore?: string;
inferior?: string;
installed?: 'y' | 'n';
line?: string;
threadGroups: string[];
times: string;
locations?: MILocation[];
mask?: string;
'original-location'?: string;
cond?: string;
// TODO there are a lot more fields here
pass?: string;
pending?: string;
script?: string;
task?: string;
thread?: string;
'thread-groups'?: string[];
times: string;
what?: string;
// TODO there are a few more fields here
}

/** See {@link https://sourceware.org/gdb/current/onlinedocs/gdb.html/GDB_002fMI-Breakpoint-Information.html this documentation} for additional details. */
export interface MILocation {
number: string;
enabled: 'y' | 'n' | 'N';
addr: string;
addr_flags?: string;
func?: string;
file?: string;
fullname?: string;
line?: string;
'thread-groups': string[];
}

export interface MIFrameInfo {
Expand Down

0 comments on commit cd64772

Please sign in to comment.