Property | Type | Description | |
---|---|---|---|
countSIGINT | int | ||
inCriticalRegion | bool | ||
m_GDBRunMode | bool | ||
m_unknownCode | bool |
Method | Description | |
---|---|---|
EventDispatcher ( |
Constructor. Starts the thread responsible for handling asynchronous GDB output.
|
|
breakpointHit ( uint ID, string threadID ) : void |
Update VS when a breakpoint is hit in GDB.
|
|
continueExecution ( ) : void |
Called after the debug engine has set the initial breakpoints, or to resume a process that was interrupted.
|
|
createVar ( string name, bool &hasVsNdK_ ) : string |
Creates a variable object.
|
|
deleteBreakpoint ( uint GDB_ID ) : bool |
Delete a breakpoint in GDB.
|
|
deleteVar ( string name, bool hasVsNdK_ ) : void |
Deletes a previously created variable object and all of its children.
|
|
enableBreakpoint ( uint GDB_ID, bool fEnable ) : bool |
Enable or disable a breakpoint.
|
|
endDebugSession ( uint exitCode ) : void |
Ends the debug session by closing GDB, sending the appropriate events to the SDM, and breaking out of all buffer- and event-listening loops.
|
|
enterCriticalRegion ( ) : bool |
Control access to a critical region, that manipulates some of the debug engine variables, like its state. This is done to avoid a race condition that can happen when user modifies a breakpoint condition at run time and the same breakpoint is hit. When that happens, only one event will be handled at a time.
|
|
getDocumentContext ( string filename, uint line ) : |
Returns the document context needed for showing the location of the current instruction pointer.
|
|
getStackDepth ( string threadID ) : int |
Return the depth of the stack.
|
|
getStackFrames ( ) : string |
List the frames currently on the stack.
|
|
getVariablesForFrame ( uint frameIndex, string threadID ) : string |
List the names of local variables and function arguments for the selected frame.
|
|
ignoreHitCount ( uint GDB_ID, int ignore ) : bool |
Ignore a given number of hit counts in GDB.
|
|
killProcess ( ) : void |
Kill the child process in which your program is running under gdb.
|
|
leaveCriticalRegion ( ) : void |
Leave the critical region, that manipulates some of the debug engine variables, like its state. This is done to avoid a race condition that can happen when user modifies a breakpoint condition at run time and the same breakpoint is hit. When that happens, only one event will be handled at a time.
|
|
listChildren ( string name ) : string |
Return a list of the children of the specified variable object.
|
|
lockedBreakpoint ( |
Lock a breakpoint before updating its hit counts and/or condition. This is done to avoid a race condition that can happen when user modifies a breakpoint condition at run time and the same breakpoint is hit. When that happens, only one event will be handled at a time.
|
|
prepareToModifyBreakpoint ( ) : void |
Interrupt the debugged process if necessary before changing a breakpoint.
|
|
resetHitCount ( |
Reset current hit count in GDB. There is no way to reset hit counts in GDB. To implement this functionality, the specified GDB breakpoint is deleted and a new one is created with the same conditions, substituting the GDB_ID of the VS breakpoint.
|
|
resumeFromInterrupt ( ) : void |
If the process was running when the breakpoint was changed, resume the process.
|
|
selectThread ( string id ) : void |
Make "id" the current thread.
|
|
setBreakpoint ( string func, uint &GDB_ID, uint &GDB_line, string &GDB_filename, string &GDB_address ) : bool |
Set a breakpoint given a function name.
|
|
setBreakpoint ( string filename, uint line, uint &GDB_ID, uint &GDB_line, string &GDB_filename, string &GDB_address ) : bool |
Set a breakpoint given a filename and line number.
|
|
setBreakpointCondition ( uint GDB_ID, string condition ) : bool |
Set breakpoint condition in GDB.
|
|
unlockBreakpoint ( |
Unlock a breakpoint after updating its hit counts and/or condition. This is done to avoid a race condition that can happen when user modifies a breakpoint condition at run time and the same breakpoint is hit. When that happens, only one event will be handled at a time.
|
|
updateHitCount ( uint ID, uint hitCount ) : void |
Update hit count.
|
Method | Description | |
---|---|---|
setBreakpointImpl ( string command, string command2, uint &GDB_ID, uint &GDB_line, string &GDB_filename, string &GDB_address ) : bool |
Code to set the breakpoint in GDB and then confirm and set in Visual Studio
|
public EventDispatcher ( |
||
engine | The AD7Engine object that represents the DE. | |
return | System |
public breakpointHit ( uint ID, string threadID ) : void | ||
ID | uint | Breakpoint ID from GDB. |
threadID | string | Thread ID. |
return | void |
public createVar ( string name, bool &hasVsNdK_ ) : string | ||
name | string | Name of the variable. |
hasVsNdK_ | bool | Boolean value that indicates if the variable name has the prefix VsNdK_. |
return | string |
public deleteBreakpoint ( uint GDB_ID ) : bool | ||
GDB_ID | uint | Breakpoint ID in GDB. |
return | bool |
public deleteVar ( string name, bool hasVsNdK_ ) : void | ||
name | string | Name of the variable. |
hasVsNdK_ | bool | Boolean value that indicates if the variable name has the prefix VsNdK_. |
return | void |
public enableBreakpoint ( uint GDB_ID, bool fEnable ) : bool | ||
GDB_ID | uint | Breakpoint ID in GDB. |
fEnable | bool | If true, enable the breakpoint. If false, disable it. |
return | bool |
public endDebugSession ( uint exitCode ) : void | ||
exitCode | uint | The exit code. |
return | void |
public getDocumentContext ( string filename, uint line ) : |
||
filename | string | File name. |
line | uint | Line number. |
return |
public getStackDepth ( string threadID ) : int | ||
threadID | string | Thread ID. |
return | int |
public getVariablesForFrame ( uint frameIndex, string threadID ) : string | ||
frameIndex | uint | Frame number. |
threadID | string | Thread ID. |
return | string |
public ignoreHitCount ( uint GDB_ID, int ignore ) : bool | ||
GDB_ID | uint | Breakpoint ID in GDB. |
ignore | int | Number of hit counts to ignore. |
return | bool |
public listChildren ( string name ) : string | ||
name | string | Variable name. |
return | string |
public lockedBreakpoint ( |
||
bbp | Breakpoint to be locked. | |
hit | bool | True if user is adding/modifying count and conditions upon which a breakpoint is fired. It is also true /// when event dispatcher is handling a breakpoint hit. |
cond | bool | True if user is adding/modifying conditions under which a conditional breakpoint fires. It is also true /// when event dispatcher is handling a breakpoint hit. |
return | bool |
public resetHitCount ( |
||
bbp | The VS breakpoint. | |
resetCondition | bool | Is false when this method is called by SetCondition, true if not. Used to avoid setting /// breakpoint conditions again in case it is called by SetCondition method. |
return | bool |
public selectThread ( string id ) : void | ||
id | string | Thread ID. |
return | void |
public setBreakpoint ( string func, uint &GDB_ID, uint &GDB_line, string &GDB_filename, string &GDB_address ) : bool | ||
func | string | Function name. |
GDB_ID | uint | Returns the breakpoint ID in GDB. |
GDB_line | uint | Returns the breakpoint Line Number. |
GDB_filename | string | Returns the breakpoint File Name. |
GDB_address | string | Returns the Breakpoint Address. |
return | bool |
public setBreakpoint ( string filename, uint line, uint &GDB_ID, uint &GDB_line, string &GDB_filename, string &GDB_address ) : bool | ||
filename | string | Full path and filename for the code source. |
line | uint | The line number for the breakpoint. |
GDB_ID | uint | Returns the breakpoint ID in GDB. |
GDB_line | uint | Returns the breakpoint Line Number. |
GDB_filename | string | Returns the breakpoint File Name. |
GDB_address | string | Returns the Breakpoint Address. |
return | bool |
public setBreakpointCondition ( uint GDB_ID, string condition ) : bool | ||
GDB_ID | uint | Breakpoint ID in GDB. |
condition | string | Condition to be set. When empty (""), means to remove any previous condition. |
return | bool |
public unlockBreakpoint ( |
||
bbp | Breakpoint to be locked. | |
hit | bool | True if user is adding/modifying count and conditions upon which a breakpoint is fired. It is also true /// when event dispatcher is handling a breakpoint hit. |
cond | bool | True if user is adding/modifying conditions under which a conditional breakpoint fires. It is also true /// when event dispatcher is handling a breakpoint hit. |
return | void |
public updateHitCount ( uint ID, uint hitCount ) : void | ||
ID | uint | Breakpoint ID in GDB. |
hitCount | uint | Hit count. |
return | void |