php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
phpdbg_bp.h File Reference

Go to the source code of this file.

Data Structures

struct  _phpdbg_breakbase_t
 
struct  _phpdbg_breakfile_t
 
struct  _phpdbg_breaksymbol_t
 
struct  _phpdbg_breakmethod_t
 
struct  _phpdbg_breakopline_t
 
struct  _phpdbg_breakline_t
 
struct  _phpdbg_breakop_t
 
struct  _phpdbg_breakcond_t
 

Macros

#define PHPDBG_BREAK_FILE   0
 
#define PHPDBG_BREAK_FILE_PENDING   1
 
#define PHPDBG_BREAK_SYM   2
 
#define PHPDBG_BREAK_OPLINE   3
 
#define PHPDBG_BREAK_METHOD   4
 
#define PHPDBG_BREAK_COND   5
 
#define PHPDBG_BREAK_OPCODE   6
 
#define PHPDBG_BREAK_FUNCTION_OPLINE   7
 
#define PHPDBG_BREAK_METHOD_OPLINE   8
 
#define PHPDBG_BREAK_FILE_OPLINE   9
 
#define PHPDBG_BREAK_MAP   10
 
#define PHPDBG_BREAK_TABLES   11 /* }}} */
 
#define phpdbg_breakbase(name)
 

Typedefs

typedef struct _zend_opphpdbg_opline_ptr_t
 
typedef struct _phpdbg_breakbase_t phpdbg_breakbase_t
 
typedef struct _phpdbg_breakfile_t phpdbg_breakfile_t
 
typedef struct _phpdbg_breaksymbol_t phpdbg_breaksymbol_t
 
typedef struct _phpdbg_breakmethod_t phpdbg_breakmethod_t
 
typedef struct _phpdbg_breakopline_t phpdbg_breakopline_t
 
typedef struct _phpdbg_breakline_t phpdbg_breakline_t
 
typedef struct _phpdbg_breakop_t phpdbg_breakop_t
 
typedef struct _phpdbg_breakcond_t phpdbg_breakcond_t
 

Functions

PHPDBG_API void phpdbg_resolve_op_array_breaks (zend_op_array *op_array)
 
PHPDBG_API int phpdbg_resolve_op_array_break (phpdbg_breakopline_t *brake, zend_op_array *op_array)
 
PHPDBG_API int phpdbg_resolve_opline_break (phpdbg_breakopline_t *new_break)
 
PHPDBG_API HashTablephpdbg_resolve_pending_file_break_ex (const char *file, uint32_t filelen, zend_string *cur, HashTable *fileht)
 
PHPDBG_API void phpdbg_resolve_pending_file_break (const char *file)
 
PHPDBG_API void phpdbg_set_breakpoint_file (const char *filename, size_t path_len, zend_ulong lineno)
 
PHPDBG_API void phpdbg_set_breakpoint_symbol (const char *func_name, size_t func_name_len)
 
PHPDBG_API void phpdbg_set_breakpoint_method (const char *class_name, const char *func_name)
 
PHPDBG_API void phpdbg_set_breakpoint_opcode (const char *opname, size_t opname_len)
 
PHPDBG_API void phpdbg_set_breakpoint_opline (zend_ulong opline)
 
PHPDBG_API void phpdbg_set_breakpoint_opline_ex (phpdbg_opline_ptr_t opline)
 
PHPDBG_API void phpdbg_set_breakpoint_method_opline (const char *class, const char *method, zend_ulong opline)
 
PHPDBG_API void phpdbg_set_breakpoint_function_opline (const char *function, zend_ulong opline)
 
PHPDBG_API void phpdbg_set_breakpoint_file_opline (const char *file, zend_ulong opline)
 
PHPDBG_API void phpdbg_set_breakpoint_expression (const char *expression, size_t expression_len)
 
PHPDBG_API void phpdbg_set_breakpoint_at (const phpdbg_param_t *param)
 
PHPDBG_API phpdbg_breakbase_tphpdbg_find_breakpoint (zend_execute_data *)
 
PHPDBG_API void phpdbg_hit_breakpoint (phpdbg_breakbase_t *brake, bool output)
 
PHPDBG_API void phpdbg_print_breakpoints (zend_ulong type)
 
PHPDBG_API void phpdbg_print_breakpoint (phpdbg_breakbase_t *brake)
 
PHPDBG_API void phpdbg_reset_breakpoints (void)
 
PHPDBG_API void phpdbg_clear_breakpoints (void)
 
PHPDBG_API void phpdbg_delete_breakpoint (zend_ulong num)
 
PHPDBG_API void phpdbg_enable_breakpoints (void)
 
PHPDBG_API void phpdbg_enable_breakpoint (zend_ulong id)
 
PHPDBG_API void phpdbg_disable_breakpoint (zend_ulong id)
 
PHPDBG_API void phpdbg_disable_breakpoints (void)
 
PHPDBG_API phpdbg_breakbase_tphpdbg_find_breakbase (zend_ulong id)
 
PHPDBG_API phpdbg_breakbase_tphpdbg_find_breakbase_ex (zend_ulong id, HashTable **table, zend_ulong *numkey, zend_string **strkey)
 
PHPDBG_API void phpdbg_export_breakpoints (FILE *handle)
 
PHPDBG_API void phpdbg_export_breakpoints_to_string (char **str)
 

Macro Definition Documentation

◆ PHPDBG_BREAK_COND

#define PHPDBG_BREAK_COND   5

Definition at line 28 of file phpdbg_bp.h.

◆ PHPDBG_BREAK_FILE

#define PHPDBG_BREAK_FILE   0

Definition at line 23 of file phpdbg_bp.h.

◆ PHPDBG_BREAK_FILE_OPLINE

#define PHPDBG_BREAK_FILE_OPLINE   9

Definition at line 32 of file phpdbg_bp.h.

◆ PHPDBG_BREAK_FILE_PENDING

#define PHPDBG_BREAK_FILE_PENDING   1

Definition at line 24 of file phpdbg_bp.h.

◆ PHPDBG_BREAK_FUNCTION_OPLINE

#define PHPDBG_BREAK_FUNCTION_OPLINE   7

Definition at line 30 of file phpdbg_bp.h.

◆ PHPDBG_BREAK_MAP

#define PHPDBG_BREAK_MAP   10

Definition at line 33 of file phpdbg_bp.h.

◆ PHPDBG_BREAK_METHOD

#define PHPDBG_BREAK_METHOD   4

Definition at line 27 of file phpdbg_bp.h.

◆ PHPDBG_BREAK_METHOD_OPLINE

#define PHPDBG_BREAK_METHOD_OPLINE   8

Definition at line 31 of file phpdbg_bp.h.

◆ PHPDBG_BREAK_OPCODE

#define PHPDBG_BREAK_OPCODE   6

Definition at line 29 of file phpdbg_bp.h.

◆ PHPDBG_BREAK_OPLINE

#define PHPDBG_BREAK_OPLINE   3

Definition at line 26 of file phpdbg_bp.h.

◆ PHPDBG_BREAK_SYM

#define PHPDBG_BREAK_SYM   2

Definition at line 25 of file phpdbg_bp.h.

◆ PHPDBG_BREAK_TABLES

#define PHPDBG_BREAK_TABLES   11 /* }}} */

Definition at line 34 of file phpdbg_bp.h.

◆ phpdbg_breakbase

#define phpdbg_breakbase ( name)
Value:
int id; \
uint8_t type; \
zend_ulong hits; \
bool disabled; \
const char *name /* }}} */
zend_ffi_type * type
Definition ffi.c:3812
uint32_t zend_ulong
Definition zend_long.h:43
zend_string * name

Definition at line 40 of file phpdbg_bp.h.

Typedef Documentation

◆ phpdbg_breakbase_t

◆ phpdbg_breakcond_t

Breakpoint condition based representation

◆ phpdbg_breakfile_t

Breakpoint file-based representation

◆ phpdbg_breakline_t

Breakpoint opline based representation

◆ phpdbg_breakmethod_t

Breakpoint method based representation

◆ phpdbg_breakop_t

Breakpoint opcode based representation

◆ phpdbg_breakopline_t

Breakpoint opline num based representation

◆ phpdbg_breaksymbol_t

Breakpoint symbol-based representation

◆ phpdbg_opline_ptr_t

typedef struct _zend_op* phpdbg_opline_ptr_t

Definition at line 37 of file phpdbg_bp.h.

Function Documentation

◆ phpdbg_clear_breakpoints()

PHPDBG_API void phpdbg_clear_breakpoints ( void )

Definition at line 1254 of file phpdbg_bp.c.

◆ phpdbg_delete_breakpoint()

PHPDBG_API void phpdbg_delete_breakpoint ( zend_ulong num)

Definition at line 1190 of file phpdbg_bp.c.

◆ phpdbg_disable_breakpoint()

PHPDBG_API void phpdbg_disable_breakpoint ( zend_ulong id)

Definition at line 1404 of file phpdbg_bp.c.

◆ phpdbg_disable_breakpoints()

PHPDBG_API void phpdbg_disable_breakpoints ( void )

Definition at line 1418 of file phpdbg_bp.c.

◆ phpdbg_enable_breakpoint()

PHPDBG_API void phpdbg_enable_breakpoint ( zend_ulong id)

Definition at line 1395 of file phpdbg_bp.c.

◆ phpdbg_enable_breakpoints()

PHPDBG_API void phpdbg_enable_breakpoints ( void )

Definition at line 1413 of file phpdbg_bp.c.

◆ phpdbg_export_breakpoints()

PHPDBG_API void phpdbg_export_breakpoints ( FILE * handle)

Definition at line 109 of file phpdbg_bp.c.

◆ phpdbg_export_breakpoints_to_string()

PHPDBG_API void phpdbg_export_breakpoints_to_string ( char ** str)

Definition at line 117 of file phpdbg_bp.c.

◆ phpdbg_find_breakbase()

PHPDBG_API phpdbg_breakbase_t * phpdbg_find_breakbase ( zend_ulong id)

Definition at line 1422 of file phpdbg_bp.c.

◆ phpdbg_find_breakbase_ex()

PHPDBG_API phpdbg_breakbase_t * phpdbg_find_breakbase_ex ( zend_ulong id,
HashTable ** table,
zend_ulong * numkey,
zend_string ** strkey )

Definition at line 1431 of file phpdbg_bp.c.

◆ phpdbg_find_breakpoint()

PHPDBG_API phpdbg_breakbase_t * phpdbg_find_breakpoint ( zend_execute_data * execute_data)

Definition at line 1142 of file phpdbg_bp.c.

◆ phpdbg_hit_breakpoint()

PHPDBG_API void phpdbg_hit_breakpoint ( phpdbg_breakbase_t * brake,
bool output )

Definition at line 1273 of file phpdbg_bp.c.

◆ phpdbg_print_breakpoint()

PHPDBG_API void phpdbg_print_breakpoint ( phpdbg_breakbase_t * brake)

Definition at line 1282 of file phpdbg_bp.c.

◆ phpdbg_print_breakpoints()

PHPDBG_API void phpdbg_print_breakpoints ( zend_ulong type)

Definition at line 1446 of file phpdbg_bp.c.

◆ phpdbg_reset_breakpoints()

PHPDBG_API void phpdbg_reset_breakpoints ( void )

Definition at line 96 of file phpdbg_bp.c.

◆ phpdbg_resolve_op_array_break()

PHPDBG_API int phpdbg_resolve_op_array_break ( phpdbg_breakopline_t * brake,
zend_op_array * op_array )

Definition at line 500 of file phpdbg_bp.c.

◆ phpdbg_resolve_op_array_breaks()

PHPDBG_API void phpdbg_resolve_op_array_breaks ( zend_op_array * op_array)

Definition at line 536 of file phpdbg_bp.c.

◆ phpdbg_resolve_opline_break()

PHPDBG_API int phpdbg_resolve_opline_break ( phpdbg_breakopline_t * new_break)

Definition at line 572 of file phpdbg_bp.c.

◆ phpdbg_resolve_pending_file_break()

PHPDBG_API void phpdbg_resolve_pending_file_break ( const char * file)

Definition at line 389 of file phpdbg_bp.c.

◆ phpdbg_resolve_pending_file_break_ex()

PHPDBG_API HashTable * phpdbg_resolve_pending_file_break_ex ( const char * file,
uint32_t filelen,
zend_string * cur,
HashTable * fileht )

Definition at line 343 of file phpdbg_bp.c.

◆ phpdbg_set_breakpoint_at()

PHPDBG_API void phpdbg_set_breakpoint_at ( const phpdbg_param_t * param)

Definition at line 915 of file phpdbg_bp.c.

◆ phpdbg_set_breakpoint_expression()

PHPDBG_API void phpdbg_set_breakpoint_expression ( const char * expression,
size_t expression_len )

Definition at line 902 of file phpdbg_bp.c.

◆ phpdbg_set_breakpoint_file()

PHPDBG_API void phpdbg_set_breakpoint_file ( const char * filename,
size_t path_len,
zend_ulong lineno )

Definition at line 256 of file phpdbg_bp.c.

◆ phpdbg_set_breakpoint_file_opline()

PHPDBG_API void phpdbg_set_breakpoint_file_opline ( const char * file,
zend_ulong opline )

Definition at line 738 of file phpdbg_bp.c.

◆ phpdbg_set_breakpoint_function_opline()

PHPDBG_API void phpdbg_set_breakpoint_function_opline ( const char * function,
zend_ulong opline )

Definition at line 692 of file phpdbg_bp.c.

◆ phpdbg_set_breakpoint_method()

PHPDBG_API void phpdbg_set_breakpoint_method ( const char * class_name,
const char * func_name )

Definition at line 435 of file phpdbg_bp.c.

◆ phpdbg_set_breakpoint_method_opline()

PHPDBG_API void phpdbg_set_breakpoint_method_opline ( const char * class,
const char * method,
zend_ulong opline )

Definition at line 639 of file phpdbg_bp.c.

◆ phpdbg_set_breakpoint_opcode()

PHPDBG_API void phpdbg_set_breakpoint_opcode ( const char * opname,
size_t opname_len )

Definition at line 784 of file phpdbg_bp.c.

◆ phpdbg_set_breakpoint_opline()

PHPDBG_API void phpdbg_set_breakpoint_opline ( zend_ulong opline)

Definition at line 479 of file phpdbg_bp.c.

◆ phpdbg_set_breakpoint_opline_ex()

PHPDBG_API void phpdbg_set_breakpoint_opline_ex ( phpdbg_opline_ptr_t opline)

Definition at line 806 of file phpdbg_bp.c.

◆ phpdbg_set_breakpoint_symbol()

PHPDBG_API void phpdbg_set_breakpoint_symbol ( const char * func_name,
size_t func_name_len )

Definition at line 404 of file phpdbg_bp.c.