php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
phpdbg_watch.h File Reference
#include "phpdbg_cmd.h"

Go to the source code of this file.

Data Structures

struct  _phpdbg_watchpoint_t
 
struct  _phpdbg_watch_collision
 
struct  _phpdbg_watch_element
 
struct  phpdbg_watch_ht_info
 

Macros

#define PHPDBG_WATCH(name)
 
#define PHPDBG_WATCH_SIMPLE   0x01
 
#define PHPDBG_WATCH_RECURSIVE   0x02
 
#define PHPDBG_WATCH_ARRAY   0x04
 
#define PHPDBG_WATCH_OBJECT   0x08
 
#define PHPDBG_WATCH_NORMAL   (PHPDBG_WATCH_SIMPLE | PHPDBG_WATCH_RECURSIVE)
 
#define PHPDBG_WATCH_IMPLICIT   0x10
 
#define PHPDBG_WATCH_RECURSIVE_ROOT   0x20
 

Typedefs

typedef struct _phpdbg_watch_collision phpdbg_watch_collision
 
typedef struct _phpdbg_watchpoint_t phpdbg_watchpoint_t
 
typedef struct _phpdbg_watch_element phpdbg_watch_element
 

Enumerations

enum  phpdbg_watchtype {
  WATCH_ON_ZVAL , WATCH_ON_HASHTABLE , WATCH_ON_REFCOUNTED , WATCH_ON_STR ,
  WATCH_ON_HASHDATA , WATCH_ON_BUCKET
}
 

Functions

 PHPDBG_WATCH (array)
 
 PHPDBG_WATCH (delete)
 
 PHPDBG_WATCH (recursive)
 
void phpdbg_setup_watchpoints (void)
 
void phpdbg_destroy_watchpoints (void)
 
void phpdbg_purge_watchpoint_tree (void)
 
int phpdbg_watchpoint_segfault_handler (siginfo_t *info, void *context)
 
void phpdbg_create_addr_watchpoint (void *addr, size_t size, phpdbg_watchpoint_t *watch)
 
void phpdbg_create_zval_watchpoint (zval *zv, phpdbg_watchpoint_t *watch)
 
int phpdbg_delete_var_watchpoint (char *input, size_t len)
 
int phpdbg_create_var_watchpoint (char *input, size_t len)
 
int phpdbg_print_changed_zvals (void)
 
void phpdbg_list_watchpoints (void)
 
void phpdbg_watch_efree (void *ptr ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC)
 

Variables

const phpdbg_command_t phpdbg_watch_commands []
 

Macro Definition Documentation

◆ PHPDBG_WATCH

#define PHPDBG_WATCH ( name)
Value:
#define PHPDBG_COMMAND(name)
Definition phpdbg_cmd.h:167
zend_string * name

Definition at line 28 of file phpdbg_watch.h.

◆ PHPDBG_WATCH_ARRAY

#define PHPDBG_WATCH_ARRAY   0x04

Definition at line 54 of file phpdbg_watch.h.

◆ PHPDBG_WATCH_IMPLICIT

#define PHPDBG_WATCH_IMPLICIT   0x10

Definition at line 57 of file phpdbg_watch.h.

◆ PHPDBG_WATCH_NORMAL

#define PHPDBG_WATCH_NORMAL   (PHPDBG_WATCH_SIMPLE | PHPDBG_WATCH_RECURSIVE)

Definition at line 56 of file phpdbg_watch.h.

◆ PHPDBG_WATCH_OBJECT

#define PHPDBG_WATCH_OBJECT   0x08

Definition at line 55 of file phpdbg_watch.h.

◆ PHPDBG_WATCH_RECURSIVE

#define PHPDBG_WATCH_RECURSIVE   0x02

Definition at line 53 of file phpdbg_watch.h.

◆ PHPDBG_WATCH_RECURSIVE_ROOT

#define PHPDBG_WATCH_RECURSIVE_ROOT   0x20

Definition at line 58 of file phpdbg_watch.h.

◆ PHPDBG_WATCH_SIMPLE

#define PHPDBG_WATCH_SIMPLE   0x01

Definition at line 52 of file phpdbg_watch.h.

Typedef Documentation

◆ phpdbg_watch_collision

Definition at line 60 of file phpdbg_watch.h.

◆ phpdbg_watch_element

◆ phpdbg_watchpoint_t

Enumeration Type Documentation

◆ phpdbg_watchtype

Enumerator
WATCH_ON_ZVAL 
WATCH_ON_HASHTABLE 
WATCH_ON_REFCOUNTED 
WATCH_ON_STR 
WATCH_ON_HASHDATA 
WATCH_ON_BUCKET 

Definition at line 42 of file phpdbg_watch.h.

Function Documentation

◆ phpdbg_create_addr_watchpoint()

void phpdbg_create_addr_watchpoint ( void * addr,
size_t size,
phpdbg_watchpoint_t * watch )

◆ phpdbg_create_var_watchpoint()

int phpdbg_create_var_watchpoint ( char * input,
size_t len )

Definition at line 1410 of file phpdbg_watch.c.

◆ phpdbg_create_zval_watchpoint()

void phpdbg_create_zval_watchpoint ( zval * zv,
phpdbg_watchpoint_t * watch )

◆ phpdbg_delete_var_watchpoint()

int phpdbg_delete_var_watchpoint ( char * input,
size_t len )

◆ phpdbg_destroy_watchpoints()

void phpdbg_destroy_watchpoints ( void )

Definition at line 1506 of file phpdbg_watch.c.

◆ phpdbg_list_watchpoints()

void phpdbg_list_watchpoints ( void )

Definition at line 1245 of file phpdbg_watch.c.

◆ phpdbg_print_changed_zvals()

int phpdbg_print_changed_zvals ( void )

Definition at line 1157 of file phpdbg_watch.c.

◆ phpdbg_purge_watchpoint_tree()

void phpdbg_purge_watchpoint_tree ( void )

Definition at line 1534 of file phpdbg_watch.c.

◆ phpdbg_setup_watchpoints()

void phpdbg_setup_watchpoints ( void )

Definition at line 1453 of file phpdbg_watch.c.

◆ PHPDBG_WATCH() [1/3]

PHPDBG_WATCH ( array )

Printer Forward Declarations

◆ PHPDBG_WATCH() [2/3]

PHPDBG_WATCH ( delete )

◆ PHPDBG_WATCH() [3/3]

PHPDBG_WATCH ( recursive )

◆ phpdbg_watch_efree()

void phpdbg_watch_efree ( void *ptr ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC)

Definition at line 1204 of file phpdbg_watch.c.

◆ phpdbg_watchpoint_segfault_handler()

int phpdbg_watchpoint_segfault_handler ( siginfo_t * info,
void * context )

Definition at line 285 of file phpdbg_watch.c.

Variable Documentation

◆ phpdbg_watch_commands

const phpdbg_command_t phpdbg_watch_commands[]
extern

Definition at line 124 of file phpdbg_watch.c.