openresty-gdb-utils
openresty-gdb-utils copied to clipboard
GDB Utilities for OpenResty (including Nginx, ngx_lua, LuaJIT, and more)
when I use openresty 1.15.8.1 (gdb) lvmst Traceback (most recent call last): File "/home/icache/hcs/hcs.nginx/bin/openresty-gdb-utils/luajit21.py", line 613, in invoke L = get_cur_L() File "/home/icache/hcs/hcs.nginx/bin/openresty-gdb-utils/luajit21.py", line 131, in get_cur_L return gcref(G(mL)['cur_L'])['th'].address File...
``` >ldumpstack 0x40000378 index = 1 Traceback (most recent call last): File "luajit21.py", line 4064, in invoke gdb.execute("lval 0x%x" % ptr2int(tv)) gdb.error: No global L located (tried globalL and ngx_cycle)...
``` root@ip-172-30-5-125:/opt/openresty/nginx/conf/openresty-gdb-utils# gdb /usr/local/openresty/nginx/sbin/nginx 1627 GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1 Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you...