Nemiver  0.3
Public Types | Public Member Functions | List of all members
nemiver::IDebugger::Breakpoint Class Reference

a breakpoint descriptor More...

#include <nmv-i-debugger.h>

Public Types

enum  Type { UNDEFINED_TYPE = 0, STANDARD_BREAKPOINT_TYPE, WATCHPOINT_TYPE, COUNTPOINT_TYPE }
 

Public Member Functions

 Breakpoint ()
 
void clear ()
 clear this instance of breakpoint More...
 
accessors
string id () const
 
string parent_id () const
 
void id (string &s) const
 
int number () const
 
void number (int a_in)
 
int sub_breakpoint_number () const
 
bool enabled () const
 
void enabled (bool a_in)
 
const Addressaddress () const
 
Addressaddress ()
 
void address (const string &a_in)
 
const string & function () const
 
void function (const string &a_in)
 
const string & expression () const
 
void expression (const string &a_expr)
 
const UStringfile_name () const
 
void file_name (const UString &a_in)
 
const UStringfile_full_name () const
 
void file_full_name (const UString &a_in)
 
int line () const
 
void line (int a_in)
 
const string & condition () const
 
void condition (const string &a_cond)
 
bool has_condition () const
 
int nb_times_hit () const
 
void nb_times_hit (int a_nb)
 
int initial_ignore_count () const
 
void initial_ignore_count (int a)
 
int ignore_count () const
 
void ignore_count (int a)
 
bool is_read_watchpoint () const
 
void is_read_watchpoint (bool f)
 
bool is_write_watchpoint () const
 
void is_write_watchpoint (bool f)
 
bool is_pending () const
 
void is_pending (bool a)
 
bool has_multiple_locations () const
 
void append_sub_breakpoint (Breakpoint &b)
 
const vector< Breakpoint > & sub_breakpoints () const
 
int parent_breakpoint_number () const
 
bool is_sub_breakpoint () const
 
Type type () const
 
void type (Type a_type)
 

Detailed Description

a breakpoint descriptor

Member Enumeration Documentation

◆ Type

Enumerator
UNDEFINED_TYPE 
STANDARD_BREAKPOINT_TYPE 
WATCHPOINT_TYPE 
COUNTPOINT_TYPE 

Constructor & Destructor Documentation

◆ Breakpoint()

nemiver::IDebugger::Breakpoint::Breakpoint ( )
inline

Member Function Documentation

◆ address() [1/3]

Address& nemiver::IDebugger::Breakpoint::address ( )
inline

◆ address() [2/3]

const Address& nemiver::IDebugger::Breakpoint::address ( ) const
inline

◆ address() [3/3]

void nemiver::IDebugger::Breakpoint::address ( const string &  a_in)
inline

◆ append_sub_breakpoint()

void nemiver::IDebugger::Breakpoint::append_sub_breakpoint ( Breakpoint b)
inline

◆ clear()

void nemiver::IDebugger::Breakpoint::clear ( )
inline

clear this instance of breakpoint

References nemiver::common::Address::clear().

Referenced by nemiver::Output::OutOfBandRecord::clear().

◆ condition() [1/2]

const string& nemiver::IDebugger::Breakpoint::condition ( ) const
inline

◆ condition() [2/2]

void nemiver::IDebugger::Breakpoint::condition ( const string &  a_cond)
inline

◆ enabled() [1/2]

bool nemiver::IDebugger::Breakpoint::enabled ( ) const
inline

◆ enabled() [2/2]

void nemiver::IDebugger::Breakpoint::enabled ( bool  a_in)
inline

◆ expression() [1/2]

const string& nemiver::IDebugger::Breakpoint::expression ( ) const
inline

◆ expression() [2/2]

void nemiver::IDebugger::Breakpoint::expression ( const string &  a_expr)
inline

◆ file_full_name() [1/2]

const UString& nemiver::IDebugger::Breakpoint::file_full_name ( ) const
inline

◆ file_full_name() [2/2]

void nemiver::IDebugger::Breakpoint::file_full_name ( const UString a_in)
inline

◆ file_name() [1/2]

const UString& nemiver::IDebugger::Breakpoint::file_name ( ) const
inline

◆ file_name() [2/2]

void nemiver::IDebugger::Breakpoint::file_name ( const UString a_in)
inline

◆ function() [1/2]

const string& nemiver::IDebugger::Breakpoint::function ( ) const
inline

◆ function() [2/2]

void nemiver::IDebugger::Breakpoint::function ( const string &  a_in)
inline

◆ has_condition()

bool nemiver::IDebugger::Breakpoint::has_condition ( ) const
inline

◆ has_multiple_locations()

bool nemiver::IDebugger::Breakpoint::has_multiple_locations ( ) const
inline

Test whether this breakpoint has multiple location.

Each location is then represented by a sub-breakpoint, that is a child breakpoint of this instance of breakpoint. The sub-breakpoints can be retrieved by the sub_breakpoints below.

◆ id() [1/2]

string nemiver::IDebugger::Breakpoint::id ( ) const
inline

Getter of the ID of this breakpoint. If the breakpoint is a sub breakpoint, its id has the form of the string "5.4" where 5 is the number of the parent breakpoint and 4 is the number of this sub breakpoint.

Returns
the ID this breakpoint.

References nemiver::str_utils::int_to_string().

◆ id() [2/2]

void nemiver::IDebugger::Breakpoint::id ( string &  s) const
inline

Getter of the ID of this breakpoint. If the breakpoint is a sub breakpoint, its id has the form of the string "5.4" where 5 is the number of the parent breakpoint and 4 is the number of this sub breakpoint.

Parameters
sout parameter. Set to the ID of this breakpoint.

◆ ignore_count() [1/2]

int nemiver::IDebugger::Breakpoint::ignore_count ( ) const
inline

This is the current ignore count present on the breakpoint. It gets decremented each time the breakpoint is hit.

◆ ignore_count() [2/2]

void nemiver::IDebugger::Breakpoint::ignore_count ( int  a)
inline

◆ initial_ignore_count() [1/2]

int nemiver::IDebugger::Breakpoint::initial_ignore_count ( ) const
inline

This is the ignore count as set by the user through the user interface.

◆ initial_ignore_count() [2/2]

void nemiver::IDebugger::Breakpoint::initial_ignore_count ( int  a)
inline

◆ is_pending() [1/2]

bool nemiver::IDebugger::Breakpoint::is_pending ( ) const
inline

◆ is_pending() [2/2]

void nemiver::IDebugger::Breakpoint::is_pending ( bool  a)
inline

◆ is_read_watchpoint() [1/2]

bool nemiver::IDebugger::Breakpoint::is_read_watchpoint ( ) const
inline

◆ is_read_watchpoint() [2/2]

void nemiver::IDebugger::Breakpoint::is_read_watchpoint ( bool  f)
inline

◆ is_sub_breakpoint()

bool nemiver::IDebugger::Breakpoint::is_sub_breakpoint ( ) const
inline

◆ is_write_watchpoint() [1/2]

bool nemiver::IDebugger::Breakpoint::is_write_watchpoint ( ) const
inline

◆ is_write_watchpoint() [2/2]

void nemiver::IDebugger::Breakpoint::is_write_watchpoint ( bool  f)
inline

◆ line() [1/2]

int nemiver::IDebugger::Breakpoint::line ( ) const
inline

◆ line() [2/2]

void nemiver::IDebugger::Breakpoint::line ( int  a_in)
inline

◆ nb_times_hit() [1/2]

int nemiver::IDebugger::Breakpoint::nb_times_hit ( ) const
inline

◆ nb_times_hit() [2/2]

void nemiver::IDebugger::Breakpoint::nb_times_hit ( int  a_nb)
inline

◆ number() [1/2]

int nemiver::IDebugger::Breakpoint::number ( ) const
inline

Getter of the number of this breakpoint. Note that if this is a sub breakpoint, what you might want is the number of the parent breakpoint.

Returns
the integer number of this breakpoint.

◆ number() [2/2]

void nemiver::IDebugger::Breakpoint::number ( int  a_in)
inline

◆ parent_breakpoint_number()

int nemiver::IDebugger::Breakpoint::parent_breakpoint_number ( ) const
inline

◆ parent_id()

string nemiver::IDebugger::Breakpoint::parent_id ( ) const
inline

Getter of the ID of the parent of this breakpoint.

Note that (at least for GDB) only parent breakpoints can be deleted by ID

Returns
the ID of the parent of this breakpoint.

References nemiver::str_utils::int_to_string().

◆ sub_breakpoint_number()

int nemiver::IDebugger::Breakpoint::sub_breakpoint_number ( ) const
inline

◆ sub_breakpoints()

const vector<Breakpoint>& nemiver::IDebugger::Breakpoint::sub_breakpoints ( ) const
inline

◆ type() [1/2]

Type nemiver::IDebugger::Breakpoint::type ( ) const
inline

◆ type() [2/2]

void nemiver::IDebugger::Breakpoint::type ( Type  a_type)
inline

The documentation for this class was generated from the following file: