GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
debug.cc File Reference
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <limits>
#include <set>
#include <string>
#include "dNDArray.h"
#include "bp-table.h"
#include "defun.h"
#include "error.h"
#include "errwarn.h"
#include "file-ops.h"
#include "help.h"
#include "input.h"
#include "interpreter-private.h"
#include "interpreter.h"
#include "lo-sysdep.h"
#include "octave-preserve-stream-state.h"
#include "ov-usr-fcn.h"
#include "ov.h"
#include "ovl.h"
#include "pager.h"
#include "parse.h"
#include "pt-eval.h"
#include "unwind-prot.h"
#include "utils.h"
#include "variables.h"
Include dependency graph for debug.cc:

Go to the source code of this file.

Functions

static octave_value bp_lines_to_ov (const octave::bp_table::bp_lines &lines)
 
static octave_value_list do_dbstack (octave::interpreter &interp, const octave_value_list &args, int nargout, std::ostream &os)
 
static void do_dbtype (std::ostream &os, const std::string &name, int start, int end)
 
static void do_dbupdown (octave::interpreter &interp, const octave_value_list &args, const std::string &who)
 
OCTAVE_EXPORT octave_value_list F__db_next_breakpoint_quiet__ (octave::interpreter &interp, const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list Fdbclear (octave::interpreter &interp, const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list Fdbcont (octave::interpreter &interp, const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list Fdbdown (octave::interpreter &interp, const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list Fdblist (octave::interpreter &interp, const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list Fdbquit (octave::interpreter &interp, const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list Fdbstack (octave::interpreter &interp, const octave_value_list &args, int nargout)
 
OCTAVE_EXPORT octave_value_list Fdbstatus (octave::interpreter &interp, const octave_value_list &args, int nargout)
 
OCTAVE_EXPORT octave_value_list Fdbstep (octave::interpreter &interp, const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list Fdbstop (octave::interpreter &interp, const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list Fdbtype (octave::interpreter &interp, const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list Fdbup (octave::interpreter &interp, const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list Fdbwhere (octave::interpreter &interp, const octave_value_list &, int)
 
OCTAVE_EXPORT octave_value_list Fisdebugmode (octave::interpreter &interp, const octave_value_list &args, int)
 
void show_octave_dbstack (void)
 

Function Documentation

◆ bp_lines_to_ov()

static octave_value bp_lines_to_ov ( const octave::bp_table::bp_lines &  lines)
static

Definition at line 65 of file debug.cc.

References Array< T, Alloc >::resize().

Referenced by Fdbstop().

◆ do_dbstack()

static octave_value_list do_dbstack ( octave::interpreter &  interp,
const octave_value_list args,
int  nargout,
std::ostream &  os 
)
static

◆ do_dbtype()

static void do_dbtype ( std::ostream &  os,
const std::string &  name,
int  start,
int  end 
)
static

Definition at line 567 of file debug.cc.

References fcn_file_in_path(), and ifstream().

Referenced by Fdblist(), and Fdbtype().

◆ do_dbupdown()

static void do_dbupdown ( octave::interpreter &  interp,
const octave_value_list args,
const std::string &  who 
)
static

Definition at line 987 of file debug.cc.

References octave_value::is_string(), octave_value_list::length(), n, and octave_value::string_value().

Referenced by Fdbdown(), and Fdbup().

◆ F__db_next_breakpoint_quiet__()

OCTAVE_EXPORT octave_value_list F__db_next_breakpoint_quiet__ ( octave::interpreter &  interp,
const octave_value_list args,
int   
)

◆ Fdbclear()

OCTAVE_EXPORT octave_value_list Fdbclear ( octave::interpreter &  interp,
const octave_value_list args,
int   
)

Definition at line 298 of file debug.cc.

References ovl().

◆ Fdbcont()

OCTAVE_EXPORT octave_value_list Fdbcont ( octave::interpreter &  interp,
const octave_value_list args,
int   
)

Definition at line 1118 of file debug.cc.

References error(), ovl(), and print_usage().

Referenced by main_window::debug_continue().

◆ Fdbdown()

OCTAVE_EXPORT octave_value_list Fdbdown ( octave::interpreter &  interp,
const octave_value_list args,
int   
)

Definition at line 1037 of file debug.cc.

References do_dbupdown(), and ovl().

◆ Fdblist()

OCTAVE_EXPORT octave_value_list Fdblist ( octave::interpreter &  interp,
const octave_value_list args,
int   
)

◆ Fdbquit()

OCTAVE_EXPORT octave_value_list Fdbquit ( octave::interpreter &  interp,
const octave_value_list args,
int   
)

Definition at line 1141 of file debug.cc.

References error(), ovl(), and print_usage().

Referenced by main_window::debug_quit().

◆ Fdbstack()

OCTAVE_EXPORT octave_value_list Fdbstack ( octave::interpreter &  interp,
const octave_value_list args,
int  nargout 
)

Definition at line 981 of file debug.cc.

References do_dbstack(), and octave_stdout.

◆ Fdbstatus()

◆ Fdbstep()

OCTAVE_EXPORT octave_value_list Fdbstep ( octave::interpreter &  interp,
const octave_value_list args,
int   
)

◆ Fdbstop()

◆ Fdbtype()

OCTAVE_EXPORT octave_value_list Fdbtype ( octave::interpreter &  interp,
const octave_value_list args,
int   
)

Definition at line 619 of file debug.cc.

References do_dbtype(), error(), octave_user_code::fcn_file_name(), max(), min(), octave_stdout, and ovl().

◆ Fdbup()

OCTAVE_EXPORT octave_value_list Fdbup ( octave::interpreter &  interp,
const octave_value_list args,
int   
)

Definition at line 1022 of file debug.cc.

References do_dbupdown(), and ovl().

◆ Fdbwhere()

OCTAVE_EXPORT octave_value_list Fdbwhere ( octave::interpreter &  interp,
const octave_value_list ,
int   
)

Definition at line 557 of file debug.cc.

References octave_stdout, and ovl().

◆ Fisdebugmode()

OCTAVE_EXPORT octave_value_list Fisdebugmode ( octave::interpreter &  interp,
const octave_value_list args,
int   
)

Definition at line 1174 of file debug.cc.

References ovl(), and print_usage().

Referenced by octave_qscintilla::contextmenu_run().

◆ show_octave_dbstack()

void show_octave_dbstack ( void  )

Definition at line 938 of file debug.cc.

References __get_interpreter__(), and do_dbstack().