Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No debugging symbols found in src/lua #4

Open
lua-rocks opened this issue Sep 6, 2021 · 0 comments
Open

No debugging symbols found in src/lua #4

lua-rocks opened this issue Sep 6, 2021 · 0 comments

Comments

@lua-rocks
Copy link

  • compile lua with debug symbols
cd lua-5.3.6
make linux CFLAGS=-g
make[1]: Entering directory '/home/luarocks/.lua/src/lua-5.3.6/src'
make all SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -ldl -lreadline"
make[2]: Entering directory '/home/luarocks/.lua/src/lua-5.3.6/src'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/luarocks/.lua/src/lua-5.3.6/src'
make[1]: Leaving directory '/home/luarocks/.lua/src/lua-5.3.6/src'
  • start gdb
gdb lua-5.3.6/src/lua
GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 9.2
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from src/lua...
(No debugging symbols found in src/lua)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant