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

AC_GDB Class Reference

#include <ac_gdb.H>

Collaboration diagram for AC_GDB:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 AC_GDB (AC_GDB_Interface *proc, int port)
 ~AC_GDB ()
void process_bp ()
bool stop (unsigned int decoded_pc)
void exit (int ac_exit_status)
void disable ()
void enable ()
int is_disabled ()
void connect ()
void set_port (int port)
int get_port ()

Detailed Description

GDB protocol support

Definition at line 67 of file ac_gdb.H.


Constructor & Destructor Documentation

AC_GDB::AC_GDB AC_GDB_Interface proc,
int  port
 

Constructor: create a GDB communication instance with the processor specific functions, implemented in proc. The simulator will then listen for GDB connections at port

Parameters:
proc processor specific functions that know how to read/write memory/registers.
port which port to listen for connections
Returns:
new AC_GDB instance

Definition at line 102 of file ac_gdb.cpp.

References disable(), and set_port().

Here is the call graph for this function:

AC_GDB::~AC_GDB  ) 
 

Destructor: Destroy AC_GDB instance

Definition at line 116 of file ac_gdb.cpp.


Member Function Documentation

void AC_GDB::connect  ) 
 

Establish TCP Connection

Definition at line 417 of file ac_gdb.cpp.

References exit().

Here is the call graph for this function:

void AC_GDB::disable  ) 
 

Disable GDB support

Definition at line 758 of file ac_gdb.cpp.

Referenced by AC_GDB().

void AC_GDB::enable  ) 
 

Enable GDB support

Definition at line 765 of file ac_gdb.cpp.

void AC_GDB::exit int  ac_exit_status  ) 
 

Send exit status to GDB.

Parameters:
ac_exit_status exit status from process.

Definition at line 307 of file ac_gdb.cpp.

Referenced by connect().

int AC_GDB::get_port  ) 
 

Get GDB port.

Returns:
current gdb port

Definition at line 796 of file ac_gdb.cpp.

int AC_GDB::is_disabled  ) 
 

Return if GDB Support is disabled or not

Returns:
1 if it's disabled, 0 otherwise;

Definition at line 776 of file ac_gdb.cpp.

void AC_GDB::process_bp  ) 
 

Process the next packet from gdb and take the needed action.

Definition at line 487 of file ac_gdb.cpp.

void AC_GDB::set_port int  port  ) 
 

Set GDB port. Just have effect on next AC_GDB::connect().

Parameters:
port new port

Definition at line 787 of file ac_gdb.cpp.

Referenced by AC_GDB().

bool AC_GDB::stop unsigned int  decoded_pc  ) 
 

Return if the processor must stop or not. It must stop if it's the first time, it's in step mode or there's a breakpoint for that address.

Parameters:
decoded_pc decoded program counter (PC, current address).
Returns:
true if it must stop, false otherwise.

Definition at line 475 of file ac_gdb.cpp.

References Breakpoints::exists().

Here is the call graph for this function:


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