我可以检查非结构类型,但检查时结构,总是得到“Function "struct" not defined.
”:如何在gdb中列出结构信息?
(gdb) l ngx_http_request_t
10
11 #include <ngx_config.h>
12 #include <ngx_core.h>
13
14
15 typedef struct ngx_http_request_s ngx_http_request_t;
16 typedef struct ngx_http_upstream_s ngx_http_upstream_t;
17 typedef struct ngx_http_cache_s ngx_http_cache_t;
18 typedef struct ngx_http_file_cache_s ngx_http_file_cache_t;
19 typedef struct ngx_http_log_ctx_s ngx_http_log_ctx_t;
(gdb) l struct ngx_http_request_s
Function "struct" not defined.
是否有可能在gdb?
对于lldb,该命令是'im loo -t ngx_http_request_t'(对于ldb用户而言,Google代表gdb) – holgac 2015-06-30 09:17:31