php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
phpdbg_list.c File Reference
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <unistd.h>
#include <fcntl.h>
#include "phpdbg.h"
#include "phpdbg_list.h"
#include "phpdbg_utils.h"
#include "phpdbg_prompt.h"
#include "php_streams.h"
#include "zend_exceptions.h"

Go to the source code of this file.

Macros

#define PHPDBG_LIST_COMMAND_D(f, h, a, m, l, s, flags)
 

Functions

 if (phpdbg_safe_class_lookup(param->method.class, strlen(param->method.class), &ce)==SUCCESS)
 
 if (phpdbg_safe_class_lookup(param->str, param->len, &ce)==SUCCESS)
 
void phpdbg_list_file (zend_string *filename, uint32_t count, int offset, uint32_t highlight)
 
void phpdbg_list_function (const zend_function *fbc)
 
void phpdbg_list_function_byname (const char *str, size_t len)
 
zend_op_arrayphpdbg_compile_file (zend_file_handle *file, int type)
 
zend_op_arrayphpdbg_init_compile_file (zend_file_handle *file, int type)
 
zend_op_arrayphpdbg_compile_string (zend_string *source_string, const char *filename, zend_compile_position position)
 
void phpdbg_init_list (void)
 
void phpdbg_list_update (void)
 

Variables

const phpdbg_command_t phpdbg_list_commands []
 
return SUCCESS
 
 else
 

Macro Definition Documentation

◆ PHPDBG_LIST_COMMAND_D

#define PHPDBG_LIST_COMMAND_D ( f,
h,
a,
m,
l,
s,
flags )
Value:
char s[4]
Definition cdf.c:77
#define PHPDBG_COMMAND_D_EXP(name, tip, alias, handler, children, args, parent, flags)
Definition phpdbg_cmd.h:158
const phpdbg_command_t phpdbg_prompt_commands[]
$obj a
Definition test.php:84

Definition at line 36 of file phpdbg_list.c.

Function Documentation

◆ if() [1/2]

if ( phpdbg_safe_class_lookup(param->method.class, strlen(param->method.class), &ce) = SUCCESS)

Definition at line 91 of file phpdbg_list.c.

◆ if() [2/2]

if ( phpdbg_safe_class_lookup(param->str, param->len, &ce) = SUCCESS)

Definition at line 113 of file phpdbg_list.c.

◆ phpdbg_compile_file()

zend_op_array * phpdbg_compile_file ( zend_file_handle * file,
int type )

Definition at line 229 of file phpdbg_list.c.

◆ phpdbg_compile_string()

zend_op_array * phpdbg_compile_string ( zend_string * source_string,
const char * filename,
zend_compile_position position )

Definition at line 312 of file phpdbg_list.c.

◆ phpdbg_init_compile_file()

zend_op_array * phpdbg_init_compile_file ( zend_file_handle * file,
int type )

Definition at line 277 of file phpdbg_list.c.

◆ phpdbg_init_list()

void phpdbg_init_list ( void )

Definition at line 358 of file phpdbg_list.c.

◆ phpdbg_list_file()

void phpdbg_list_file ( zend_string * filename,
uint32_t count,
int offset,
uint32_t highlight )

Definition at line 130 of file phpdbg_list.c.

◆ phpdbg_list_function()

void phpdbg_list_function ( const zend_function * fbc)

Definition at line 172 of file phpdbg_list.c.

◆ phpdbg_list_function_byname()

void phpdbg_list_function_byname ( const char * str,
size_t len )

Definition at line 186 of file phpdbg_list.c.

◆ phpdbg_list_update()

void phpdbg_list_update ( void )

Definition at line 365 of file phpdbg_list.c.

Variable Documentation

◆ else

else
Initial value:
{
phpdbg_error("Could not find the class %s", param->method.class)
#define phpdbg_error(strfmt,...)
Definition phpdbg_out.h:43

Definition at line 102 of file phpdbg_list.c.

◆ phpdbg_list_commands

const phpdbg_command_t phpdbg_list_commands[]
Initial value:
= {
PHPDBG_LIST_COMMAND_D(lines, "lists the specified lines", 'l', list_lines, NULL, "l", PHPDBG_ASYNC_SAFE),
PHPDBG_LIST_COMMAND_D(class, "lists the specified class", 'c', list_class, NULL, "s", PHPDBG_ASYNC_SAFE),
PHPDBG_LIST_COMMAND_D(method, "lists the specified method", 'm', list_method, NULL, "m", PHPDBG_ASYNC_SAFE),
PHPDBG_LIST_COMMAND_D(func, "lists the specified function", 'f', list_func, NULL, "s", PHPDBG_ASYNC_SAFE),
}
#define NULL
Definition gdcache.h:45
zend_ulong lines
Definition phpdbg.h:311
#define PHPDBG_END_COMMAND
Definition phpdbg_cmd.h:171
#define PHPDBG_ASYNC_SAFE
Definition phpdbg_cmd.h:84
#define PHPDBG_LIST_COMMAND_D(f, h, a, m, l, s, flags)
Definition phpdbg_list.c:36
execute_data func

Definition at line 39 of file phpdbg_list.c.

◆ SUCCESS

return SUCCESS
Initial value:
{
phpdbg_list_function_byname(param->str, param->len)
void phpdbg_list_function_byname(const char *str, size_t len)

Definition at line 84 of file phpdbg_list.c.