我可以檢查非結構類型,但檢查時結構,總是得到「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