Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
d5aca39f
Commit
d5aca39f
authored
Nov 23, 2018
by
galjonsfigur
Committed by
Terry Ellison
Nov 23, 2018
Browse files
Fix build problem with luac.cross when DEVELOPMENT_USE_GDB is used (#2569)
parent
bb9a5977
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/lua/lauxlib.c
View file @
d5aca39f
...
...
@@ -958,12 +958,12 @@ LUALIB_API void luaL_assertfail(const char *file, int line, const char *message)
#endif
}
#ifdef
DEVELOPMENT_USE_GDB
#if
def
ined(
DEVELOPMENT_USE_GDB
) && !defined(LUA_CROSS_COMPILER)
/*
* This is a simple stub used by lua_assert() if DEVELOPMENT_USE_GDB is defined.
* Instead of crashing out with an assert error, this hook starts the GDB remote
* stub if not already running and then issues a break. The rationale here is
* that when testing the developer mig
g
ht be using screen/PuTTY to work ineractively
* that when testing the developer might be using screen/PuTTY to work in
t
eractively
* with the Lua Interpreter via UART0. However if an assert triggers, then there
* is the option to exit the interactive session and start the Xtensa remote GDB
* which will then sync up with the remote GDB client to allow forensics of the error.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment