mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-03-02 11:50:48 -08:00
Update Android port
* java/debug.sh (is_root): Go back to using unix sockets; allow adb to forward them correctly. * java/org/gnu/emacs/EmacsInputConnection.java (getExtractedText): Don't print text if NULL. * java/org/gnu/emacs/EmacsService.java (EmacsService): New field `imSyncInProgress'. (updateIC): If an IM sync might be in progress, avoid deadlocks. * java/org/gnu/emacs/EmacsView.java (onCreateInputConnection): Set `imSyncInProgress' across synchronization point. * src/android.c (android_check_query): Use __atomic_store_n. (android_answer_query): New function. (android_begin_query): Set `android_servicing_query' to 2. Check once, and don't spin waiting for query to complete. (android_end_query): Use __atomic_store_n. (android_run_in_emacs_thread): Compare-and-exchange flag. If originally 1, fail. * src/textconv.c (really_set_composing_text): Clear conversion region if text is empty.
This commit is contained in:
parent
733a6776f9
commit
57903519eb
6 changed files with 126 additions and 22 deletions
|
|
@ -19,6 +19,7 @@
|
|||
## along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
set -m
|
||||
set -x
|
||||
oldpwd=`pwd`
|
||||
cd `dirname $0`
|
||||
|
||||
|
|
@ -310,22 +311,26 @@ rm -f /tmp/file-descriptor-stamp
|
|||
|
||||
if [ -z "$gdbserver" ]; then
|
||||
if [ "$is_root" = "yes" ]; then
|
||||
adb -s $device shell $gdbserver_bin --once \
|
||||
adb -s $device shell $gdbserver_bin --multi \
|
||||
"+/data/local/tmp/debug.$package.socket" --attach $pid >&5 &
|
||||
gdb_socket="localfilesystem:/data/local/tmp/debug.$package.socket"
|
||||
else
|
||||
adb -s $device shell run-as $package $gdbserver_bin --once \
|
||||
else
|
||||
adb -s $device shell run-as $package $gdbserver_bin --multi \
|
||||
"+debug.$package.socket" --attach $pid >&5 &
|
||||
gdb_socket="localfilesystem:$app_data_dir/debug.$package.socket"
|
||||
fi
|
||||
else
|
||||
# Normally the program cannot access $gdbserver_bin when it is
|
||||
# placed in /data/local/tmp.
|
||||
adb -s $device shell run-as $package $gdbserver_cmd --once \
|
||||
"0.0.0.0:7654" --attach $pid >&5 &
|
||||
gdb_socket="tcp:7654"
|
||||
adb -s $device shell run-as $package $gdbserver_cmd --multi \
|
||||
"+debug.$package.socket" --attach $pid >&5 &
|
||||
gdb_socket="localfilesystem:$app_data_dir/debug.$package.socket"
|
||||
fi
|
||||
|
||||
# In order to allow adb to forward to the gdbserver socket, make the
|
||||
# app data directory a+x.
|
||||
adb -s $device shell run-as $package chmod a+x $app_data_dir
|
||||
|
||||
# Wait until gdbserver successfully runs.
|
||||
line=
|
||||
while read -u 5 line; do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue