diff options
| author | Po Lu | 2023-02-10 18:57:51 +0800 |
|---|---|---|
| committer | Po Lu | 2023-02-10 18:57:51 +0800 |
| commit | a1941cd7a7dc9a6f6b7239ec7d4bd3bdf5d55fc9 (patch) | |
| tree | abbb940a86dfc835ff22ec40d5387ea4a20a9e55 /java/debug.sh | |
| parent | 60270d8ee30ee15b5ed74ac211b7cb35c58ad3f3 (diff) | |
| download | emacs-a1941cd7a7dc9a6f6b7239ec7d4bd3bdf5d55fc9.tar.gz emacs-a1941cd7a7dc9a6f6b7239ec7d4bd3bdf5d55fc9.zip | |
Update Android port
* doc/emacs/android.texi (Android Windowing): Remove yet another
limitation.
* java/debug.sh: Make this work on systems which prohibit
attaching to app processes from adbd.
* java/org/gnu/emacs/EmacsCopyArea.java (perform): Avoid
creating copies whenever possible.
* java/org/gnu/emacs/EmacsSurfaceView.java (EmacsSurfaceView):
Remove SurfaceView based implementation and use manual double
buffering with invalidate instead.
* java/org/gnu/emacs/EmacsView.java (EmacsView, handleDirtyBitmap)
(raise, lower, onDetachedFromWindow): Adjust accordingly.
* java/org/gnu/emacs/EmacsWindow.java (windowUpdated): Remove
function.
* src/sfntfont.c (sfntfont_open): Set font->max_width correctly.
Diffstat (limited to 'java/debug.sh')
| -rwxr-xr-x | java/debug.sh | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/java/debug.sh b/java/debug.sh index 7008664c049..2e95f9738c7 100755 --- a/java/debug.sh +++ b/java/debug.sh | |||
| @@ -267,10 +267,14 @@ if [ -z "$gdbserver" ]; then | |||
| 267 | gdbserver_bin=/system/bin/gdbserver | 267 | gdbserver_bin=/system/bin/gdbserver |
| 268 | else | 268 | else |
| 269 | gdbserver_bin=/data/local/tmp/gdbserver | 269 | gdbserver_bin=/data/local/tmp/gdbserver |
| 270 | gdbserver_cat="cat $gdbserver_bin | run-as $package sh -c \ | ||
| 271 | \"tee gdbserver > /dev/null\"" | ||
| 270 | 272 | ||
| 271 | # Upload the specified gdbserver binary to the device. | 273 | # Upload the specified gdbserver binary to the device. |
| 272 | adb -s $device push "$gdbserver" "$gdbserver_bin" | 274 | adb -s $device push "$gdbserver" "$gdbserver_bin" |
| 273 | adb -s $device shell chmod +x "$gdbserver_bin" | 275 | # Copy it to the user directory. |
| 276 | adb -s $device shell "$gdbserver_cat" | ||
| 277 | adb -s $device shell "run-as $package chmod +x gdbserver" | ||
| 274 | fi | 278 | fi |
| 275 | 279 | ||
| 276 | # Now start gdbserver on the device asynchronously. | 280 | # Now start gdbserver on the device asynchronously. |
| @@ -286,10 +290,9 @@ if [ -z "$gdbserver" ]; then | |||
| 286 | else | 290 | else |
| 287 | # Normally the program cannot access $gdbserver_bin when it is | 291 | # Normally the program cannot access $gdbserver_bin when it is |
| 288 | # placed in /data/local/tmp. | 292 | # placed in /data/local/tmp. |
| 289 | adb -s $device shell $gdbserver_bin --once \ | 293 | adb -s $device shell run-as $package "./gdbserver" --once \ |
| 290 | "+/data/local/tmp/debug.$package.socket" \ | 294 | "0.0.0.0:7654" --attach $pid >&5 & |
| 291 | --attach $pid >&5 & | 295 | gdb_socket="tcp:7654" |
| 292 | gdb_socket="localfilesystem:/data/local/tmp/debug.$package.socket" | ||
| 293 | fi | 296 | fi |
| 294 | 297 | ||
| 295 | # Wait until gdbserver successfully runs. | 298 | # Wait until gdbserver successfully runs. |