Do not call art-on macro by default.
If you are debugging a native process, SIGSEGV gets ignored by default.
The gdbclient bash function has been modified to only call the art-on
macro when running gdbclient app_processXX.
Also, print a warning in case someone is trying to debug a native
process using app_process.
Bug: 17815162
Change-Id: I0666e6713b0a03ee713be7827c5b671938f2c263
(cherry picked from commit 436b740b70)
This commit is contained in:
committed by
Dmitriy Ivanov
parent
187be4adee
commit
5661570266
@@ -71,6 +71,9 @@ define art-on
|
||||
set breakpoint pending auto
|
||||
|
||||
printf "ART debugging mode is enabled.\n"
|
||||
printf "If you are debugging a native only process, you need to\n"
|
||||
printf "re-enable normal SIGSEGV handling using this command:\n"
|
||||
printf " handle SIGSEGV print stop\n"
|
||||
set $art_debug_enabled = 1
|
||||
else
|
||||
printf "ART debugging mode is already enabled.\n"
|
||||
@@ -104,7 +107,3 @@ document art-off
|
||||
|
||||
Use the command "art-on" to enable ART debugging mode.
|
||||
end
|
||||
|
||||
# switch on ART debugging
|
||||
art-on
|
||||
|
||||
|
||||
Reference in New Issue
Block a user