Commit Graph

18654 Commits

Author SHA1 Message Date
Dan Albert
53bc2e2f1e Update uchar.h from bionic.
char16_t and char32_t should not be defined when building as C. For
GCC they are, but not for clang. Pull in the updated bionic header
which has the fix for this.

Change-Id: I41b292ece36af79bbe835706bee4441b298215ff
2015-12-04 11:29:12 -08:00
Dan Albert
4efb18d5f5 Fix complex.h for clang.
From the comment about __NDK_FPABI__ vs __NDK_FPABI_MATH__:

    NOTE: Disable for clang for now unless _NDK_MATH_NO_SOFTFP=1, because clang before 3.4 doesn't
          allow change of calling convension for builtin and produces error message reads:

            a.i:564:6: error: function declared 'aapcs' here was previously declared without calling convention
            int  sin(double d) __attribute__((pcs("aapcs")));
                ^
            a.i:564:6: note: previous declaration is here

This applies to current clang as well, not just pre-3.4. Mark these
math functions as math functions.

Change-Id: I001b31df540aa3f61eec049f89346cbf2f11f128
2015-12-04 11:22:26 -08:00
Christopher Ferris
07bf64b28a Merge "Modify the dso rule to allow spaces in [] names." 2015-12-01 06:06:11 +00:00
Christopher Ferris
c14b612ba1 Modify the dso rule to allow spaces in [] names.
Some of the map names have spaces in them, but only the ones that look
like:

[anon:atexit handlers]

So allow spaces between a [ and a ].

Change-Id: I09f1b50533fcd2e79acda199dcc3fb99c6d8428f
2015-11-30 16:29:57 -08:00
Shinichiro Hamaji
6cf9ae5b6b Merge "Generate .toc for android_stubs_current.jar" 2015-11-21 00:42:12 +00:00
Shinichiro Hamaji
6198f07189 Generate .toc for android_stubs_current.jar
This should be landed before we merge the main change, which
defines define-jar-to-toc-rule.

https://android-review.googlesource.com/#/c/181833/

Bug: 24597504
Change-Id: Icc3394690fb7949cfb89eff951ce3c394d273205
2015-11-19 17:14:15 +09:00
Josh Gao
95e0260252 Merge "adb: update tests for push/pull directory change." 2015-11-11 23:22:47 +00:00
Elliott Hughes
95f81b0afa Merge "adb unittest: make test_unicode_paths stricter" 2015-11-11 17:10:59 +00:00
Spencer Low
08d0622fa5 adb unittest: make test_unicode_paths stricter
After pushing to a Unicode path, use 'adb shell ls' to verify that the
path was created with the right name. This verifies that the UTF-16 to
UTF-8 conversion is done properly.

When pulling to a Unicode path, verify that the local file has been
created with the expected name. This should test UTF-16 to UTF-8
(command line to internal data structures) and UTF-8 to UTF-16 (internal
data structures to CreateFileW()).

Change-Id: I8b80aae731cf0d058cb0c3259e7f58256e86b771
Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
2015-11-10 23:30:35 -08:00
Josh Gao
7fe79d6515 adb: update tests for push/pull directory change.
Bug: http://b/25394682
Change-Id: Iaae5ceedc7a38e9981503a81136966939c6d7280
2015-11-07 17:56:19 -08:00
Josh Gao
084d084bbc Merge "adb: add tests for pushing/pulling empty dirs." 2015-11-07 00:53:02 +00:00
Josh Gao
cdf675849c adb: add tests for pushing/pulling empty dirs.
Change-Id: I840a31fc8f37939a1166ac39700363a8b79cc3be
2015-11-06 15:01:48 -08:00
David Pursell
fbc9027558 Merge "adb: fix device module for non-shell_v2 usage." 2015-11-05 22:12:11 +00:00
David Pursell
51f2cc2185 adb: fix device module for non-shell_v2 usage.
The device.py module was incorrectly querying the return code when the
shell_v2 return code isn't available.

This CL fixes it by specifying the return code probe as an argument
list rather than a single string argument. This means that before the
device was executing something like this:

  /system/bin/sh getprop '; echo $?'

which didn't do what we wanted. Now it does something like this:

  /system/bin/sh getprop ; echo $?

Bug: http://b/25470461
Change-Id: I5e20da31ec7ecc782c6146d8b38d752d52082860
2015-11-05 11:26:42 -08:00
Elliott Hughes
1ccb0e835d Merge "unittest for sending data thru adb forward/reverse; --no-rebind unittest" 2015-11-05 17:55:05 +00:00
Spencer Low
5e50d6b443 unittest for sending data thru adb forward/reverse; --no-rebind unittest
Added --no-rebind unittest to test fix
a6b340af123b82e3aaa33cb2a0d45f637eeb4759

Change-Id: I2286b7f652c84fbc79d8860c9a04594d3284ee68
Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
2015-11-04 22:12:26 -08:00
Dan Albert
a21dd542fb Merge "Rename android-M to android-23." 2015-11-05 01:01:13 +00:00
Josh Gao
58860bfdb9 Merge "adb: add more push/pull tests."
am: 86d58fb9f8

* commit '86d58fb9f89617056192604ec2a3aa67b910017e':
  adb: add more push/pull tests.
2015-11-03 02:27:30 +00:00
Josh Gao
86d58fb9f8 Merge "adb: add more push/pull tests." 2015-11-03 02:22:08 +00:00
Josh Gao
6b8dcee6e6 adb: add more push/pull tests.
Bug: http://b/25324823
Change-Id: I7a24fcd7c0c76469877b4af4d5a3b99750aea750
2015-11-02 18:21:04 -08:00
Dan Albert
cea6641901 Rename android-M to android-23.
Change-Id: I37241592cc2354e785f518e5830e8bf9f788b0c9
2015-11-02 13:50:06 -08:00
Yabin Cui
b328d11563 Merge "adb: add test for forward/reverse commands."
am: 3e51ffff49

* commit '3e51ffff4941861b254474330fbdcdb06e7010fd':
  adb: add test for forward/reverse commands.
2015-11-02 21:44:49 +00:00
Yabin Cui
3e51ffff49 Merge "adb: add test for forward/reverse commands." 2015-11-02 21:35:02 +00:00
Yabin Cui
0e54d10df7 adb: add test for forward/reverse commands.
Bug: 25355808
Change-Id: Idc636569b0699c2acc3bf674fdcfd25c74b83121
2015-11-02 12:21:52 -08:00
Josh Gao
da2d3e03be Merge changes I35aae129,I59239c39,Id685bf74,Ic4f27fdb,I2a2b6b50
am: 2a74fe2f63

* commit '2a74fe2f63ab7675c355bd207aeb1c988f0404f0':
  Add a gdb_flags argument to gdbrunner.start_gdb.
  Allow gdbrunner.start_gdbserver to not upload gdbserver.
  Add get_pids helper to gdbrunner.
  Don't throw when we fail to find a device.
  Allow selection of adb command.
2015-10-29 20:15:30 +00:00
Josh Gao
2a74fe2f63 Merge changes I35aae129,I59239c39,Id685bf74,Ic4f27fdb,I2a2b6b50
* changes:
  Add a gdb_flags argument to gdbrunner.start_gdb.
  Allow gdbrunner.start_gdbserver to not upload gdbserver.
  Add get_pids helper to gdbrunner.
  Don't throw when we fail to find a device.
  Allow selection of adb command.
2015-10-29 20:07:50 +00:00
Josh Gao
acc0ba81cc Add a gdb_flags argument to gdbrunner.start_gdb.
Change-Id: I35aae1290f97a33c55e9bddd2b986a7c3e93d1df
2015-10-28 15:20:57 -07:00
Josh Gao
2c7e952f1c Allow gdbrunner.start_gdbserver to not upload gdbserver.
Change-Id: I59239c3989ccd91755407e65b0d2f8183482564c
2015-10-28 14:22:03 -07:00
Josh Gao
aacbc2318d Add get_pids helper to gdbrunner.
Change-Id: Id685bf740bde382c62a02fa4d6f03717bae91f50
2015-10-28 14:22:02 -07:00
Josh Gao
44b84a8e03 Don't throw when we fail to find a device.
Instead, set it to None and let the caller handle things.

Change-Id: Ic4f27fdb52ebd6bc5b4048e4e688ec7bd2509bfa
2015-10-28 14:21:59 -07:00
Josh Gao
3fd43b5bf4 Allow selection of adb command.
This is useful for ndk-gdb.py on Windows.

Change-Id: I2a2b6b50ae00bcfc530c555f06c945b4f53f9999
2015-10-28 14:18:55 -07:00
David Pursell
65156a0f30 Merge "adb: update adb PTY tests."
am: 303d809adf

* commit '303d809adf23a204b2e55ee8ffcd3047d2f19276':
  adb: update adb PTY tests.
2015-10-27 15:45:25 +00:00
David Pursell
303d809adf Merge "adb: update adb PTY tests." 2015-10-27 15:39:32 +00:00
Elliott Hughes
15bff50d13 Merge "Add a test for "adb pull" error reporting."
am: e395541d56

* commit 'e395541d568c25a89624a8d0d8b0e6cd80f69f5d':
  Add a test for "adb pull" error reporting.
2015-10-26 17:38:25 +00:00
Elliott Hughes
e395541d56 Merge "Add a test for "adb pull" error reporting." 2015-10-26 17:30:48 +00:00
David Pursell
e0146c4335 adb: update adb PTY tests.
adb PTY behavior has been updated to match ssh more closely. This CL
updates the PTY tests accordingly.

Bug: http://b/24565284
Change-Id: I01208eac62c54eba1c2f97b334a18c4c19d77ea2
2015-10-26 10:12:08 -07:00
Elliott Hughes
a7aa6e2b1d Add a test for "adb pull" error reporting.
Bug: http://b/6205106
Change-Id: I2093c3d451361d48056b85c8017acb032a3ff478
2015-10-23 21:55:31 -07:00
Josh Gao
d5e4ae425c Merge "gdbclient.py: set directory for gdb."
am: 66bb9fa2cd

* commit '66bb9fa2cd8f13e0965f99c2b28ab8f0eb4e8e9e':
  gdbclient.py: set directory for gdb.
2015-10-22 23:37:39 +00:00
Josh Gao
66bb9fa2cd Merge "gdbclient.py: set directory for gdb." 2015-10-22 23:20:01 +00:00
Josh Gao
19f18ce06a gdbclient.py: set directory for gdb.
Make sure gdb knows where the source files are, even when gdbclient.py
isn't being run from the root directory.

Change-Id: I8f604ba58f4c06b26f2a1f8e917e2a1c1c137ccd
2015-10-22 16:19:02 -07:00
Yohann Roussel
fb3e9e0582 Merge "Change jack/dex target dependency to jack script"
am: 865c462b1a

* commit '865c462b1a5d30c745309196f49d25d64236697d':
  Change jack/dex target dependency to jack script
2015-10-22 10:50:48 +00:00
Yohann Roussel
865c462b1a Merge "Change jack/dex target dependency to jack script" 2015-10-22 10:46:37 +00:00
Josh Gao
39dcda2619 Merge "adb/test_device.py: fix finding md5 command on pre-L platforms"
am: a80834e943

* commit 'a80834e943292c4c8f1366f8133908576b32373c':
  adb/test_device.py: fix finding md5 command on pre-L platforms
2015-10-22 01:09:47 +00:00
Josh Gao
a80834e943 Merge "adb/test_device.py: fix finding md5 command on pre-L platforms" 2015-10-22 01:05:59 +00:00
David Pursell
c1dc431456 Merge "gdb: allow gdbclient.py to find local files."
am: 644db98ff2

* commit '644db98ff21e5499ce3e1f89338881e89e750261':
  gdb: allow gdbclient.py to find local files.
2015-10-21 18:52:29 +00:00
David Pursell
644db98ff2 Merge "gdb: allow gdbclient.py to find local files." 2015-10-21 18:41:33 +00:00
David Pursell
639d1c491a gdb: allow gdbclient.py to find local files.
gdbclient.py is always downloading the stripped version of executable
files from the device. This CL first tries to find the unstripped local
file before falling back to the stripped version.

Bug: http://b/24947939
Change-Id: I7a49d0d8b28590ee99ce892d3e3476921f4ae974
2015-10-21 10:25:25 -07:00
Yohann Roussel
bf579123c5 Change jack/dex target dependency to jack script
Instead of jack.jar.

(cherry picked from commit 1d489a3333)

Change-Id: I92b4183feb50189a994603f35444ff1bc4872da8
2015-10-21 17:03:12 +02:00
Josh Gao
59ad70aee9 Merge "device.py: fix _subprocess_Popen cleanup."
am: 5db18adc60

* commit '5db18adc607a0509b0646deda9c20b16a6b5f2b7':
  device.py: fix _subprocess_Popen cleanup.
2015-10-21 00:02:31 +00:00
Josh Gao
5db18adc60 Merge "device.py: fix _subprocess_Popen cleanup." 2015-10-20 23:56:38 +00:00