php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
phpdbg_bp.c File Reference
#include "zend.h"
#include "zend_hash.h"
#include "phpdbg.h"
#include "phpdbg_bp.h"
#include "phpdbg_utils.h"
#include "zend_globals.h"
#include "ext/standard/php_string.h"

Go to the source code of this file.

Macros

#define PHPDBG_BREAK_MAPPING(id, table)
 
#define PHPDBG_BREAK_UNMAPPING(id)
 
#define PHPDBG_BREAK_INIT(b, t)
 
#define WIN32_PATH_CHECK   0
 

Functions

PHPDBG_API void phpdbg_reset_breakpoints (void)
 
PHPDBG_API void phpdbg_export_breakpoints (FILE *handle)
 
PHPDBG_API void phpdbg_export_breakpoints_to_string (char **str)
 
PHPDBG_API void phpdbg_set_breakpoint_file (const char *path, size_t path_len, zend_ulong line_num)
 
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_symbol (const char *name, size_t name_len)
 
PHPDBG_API void phpdbg_set_breakpoint_method (const char *class_name, const char *func_name)
 
PHPDBG_API void phpdbg_set_breakpoint_opline (zend_ulong opline)
 
PHPDBG_API int phpdbg_resolve_op_array_break (phpdbg_breakopline_t *brake, zend_op_array *op_array)
 
PHPDBG_API void phpdbg_resolve_op_array_breaks (zend_op_array *op_array)
 
PHPDBG_API int phpdbg_resolve_opline_break (phpdbg_breakopline_t *new_break)
 
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_opcode (const char *name, size_t name_len)
 
PHPDBG_API void phpdbg_set_breakpoint_opline_ex (phpdbg_opline_ptr_t opline)
 
PHPDBG_API void phpdbg_set_breakpoint_expression (const char *expr, size_t expr_len)
 
PHPDBG_API void phpdbg_set_breakpoint_at (const phpdbg_param_t *param)
 
PHPDBG_API phpdbg_breakbase_tphpdbg_find_breakpoint (zend_execute_data *execute_data)
 
PHPDBG_API void phpdbg_delete_breakpoint (zend_ulong num)
 
PHPDBG_API void phpdbg_clear_breakpoints (void)
 
PHPDBG_API void phpdbg_hit_breakpoint (phpdbg_breakbase_t *brake, bool output)
 
PHPDBG_API void phpdbg_print_breakpoint (phpdbg_breakbase_t *brake)
 
PHPDBG_API void phpdbg_enable_breakpoint (zend_ulong id)
 
PHPDBG_API void phpdbg_disable_breakpoint (zend_ulong id)
 
PHPDBG_API void phpdbg_enable_breakpoints (void)
 
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_print_breakpoints (zend_ulong type)
 

Macro Definition Documentation

◆ PHPDBG_BREAK_INIT

#define PHPDBG_BREAK_INIT ( b,
t )
Value:
do {\
memset(&b, 0, sizeof(b)); \
b.id = PHPDBG_G(bp_count)++; \
b.type = t; \
b.disabled = 0;\
b.hits = 0; \
} while(0)
#define PHPDBG_G(v)
Definition phpdbg.h:102
int bp_count
Definition phpdbg.h:267

Definition at line 52 of file phpdbg_bp.c.

◆ PHPDBG_BREAK_MAPPING

#define PHPDBG_BREAK_MAPPING ( id,
table )
Value:
_phpdbg_break_mapping(id, table)

Definition at line 48 of file phpdbg_bp.c.

◆ PHPDBG_BREAK_UNMAPPING

#define PHPDBG_BREAK_UNMAPPING ( id)
Value:
HashTable bp[PHPDBG_BREAK_TABLES]
Definition phpdbg.h:231
#define PHPDBG_BREAK_MAP
Definition phpdbg_bp.h:33
ZEND_API zend_result ZEND_FASTCALL zend_hash_index_del(HashTable *ht, zend_ulong h)
Definition zend_hash.c:1692

Definition at line 49 of file phpdbg_bp.c.

◆ WIN32_PATH_CHECK

#define WIN32_PATH_CHECK   0

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 * expr,
size_t expr_len )

Definition at line 902 of file phpdbg_bp.c.

◆ phpdbg_set_breakpoint_file()

PHPDBG_API void phpdbg_set_breakpoint_file ( const char * path,
size_t path_len,
zend_ulong line_num )

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 * name,
size_t name_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 * name,
size_t name_len )

Definition at line 404 of file phpdbg_bp.c.