Main Page | Modules | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages | Examples

Breakpoints Class Reference

#include <breakpoints.H>

List of all members.

Public Member Functions

 Breakpoints (int quant)
 ~Breakpoints ()
int add (unsigned int address)
int exists (unsigned int address)
int remove (unsigned int address)

Protected Attributes

unsigned int * bp
int quantMax
int quant


Detailed Description

Breakpoint data structure.

Keep breakpoints in crescent order, can check if a given breakpoint exists. It's fixed size.

Definition at line 49 of file breakpoints.H.


Constructor & Destructor Documentation

Breakpoints::Breakpoints int  quant  ) 
 

Constructor

Parameters:
quant how many breakpoints to support

Definition at line 41 of file breakpoints.cpp.

References bp, and quantMax.

Breakpoints::~Breakpoints  ) 
 

Destructor

Definition at line 57 of file breakpoints.cpp.

References bp.


Member Function Documentation

int Breakpoints::add unsigned int  address  ) 
 

Add breakpoint at address

Parameters:
address where to put breakpoint
0 on success, -1 otherwise

Definition at line 70 of file breakpoints.cpp.

References bp, quant, and quantMax.

int Breakpoints::exists unsigned int  address  ) 
 

Check if breakpoint exists

Parameters:
address the address to be checked
Returns:
1 if there is a breakpoint, 0 otherwise

Definition at line 124 of file breakpoints.cpp.

References bp, quant, and quantMax.

Referenced by AC_GDB::stop().

int Breakpoints::remove unsigned int  address  ) 
 

Remove breakpoint at address

Parameters:
address the address to have breakpoint removed
0 on success, -1 otherwise

Definition at line 97 of file breakpoints.cpp.

References bp, quant, and quantMax.


Member Data Documentation

unsigned int* Breakpoints::bp [protected]
 

breakpoint array

Definition at line 58 of file breakpoints.H.

Referenced by add(), Breakpoints(), exists(), remove(), and ~Breakpoints().

int Breakpoints::quant [protected]
 

current count

Definition at line 60 of file breakpoints.H.

Referenced by add(), exists(), and remove().

int Breakpoints::quantMax [protected]
 

Maximum supported breakpoints, that is, the parameter given to constructor

Definition at line 59 of file breakpoints.H.

Referenced by add(), Breakpoints(), exists(), and remove().


The documentation for this class was generated from the following files:
Generated on Thu Jun 24 08:30:09 2004 for ArchC by doxygen 1.3.4