Commit Graph

14058 Commits

Author SHA1 Message Date
Pirama Arumuga Nainar 837eff22c8 Use delete[] to de-allocate pointers from new[]
Upstream clang has a new diagnostic, '-Wmismatched-new-delete' to
generate a warning (that becomes an error with -Werror) when delete is
used to deallocate pointers created with 'new[]'.  This patch fixes
'delete's that trigger this warning/error.

Change-Id: I7551e856b4b13bfae4cb78b5664d8652322683cf
2015-07-09 10:50:04 -07:00
Dan Albert 459df8f3a1 Turn on -Wformat-nonliteral.
Apparently there are two classes of this warning in clang.
-Wformat-security is only emitted for cases of
`func(nonliteral_fmt_string)` (no args), and -Wformat-nonliteral is
emitted for cases *with* arguments. For whatever reason, the latter
isn't included in -Wextra and must be manually enabled.

To make this more easily portable to Windows, move the existing
gnu_printf/__printf__ decision into base/macros.h as ATTRIBUTE_FORMAT.

Change-Id: I3b0990e1d1f0a2e9c13b32f5cd60478946cb5fc6
2015-07-09 10:47:24 -07:00
Elliott Hughes 9d748c8bf4 am a6241a02: Merge "Replace HAVE_WIN32_IPC with _WIN32."
* commit 'a6241a0298de5e773ef113626ca4686f9c038868':
  Replace HAVE_WIN32_IPC with _WIN32.
2015-07-09 17:29:46 +00:00
Elliott Hughes a6241a0298 Merge "Replace HAVE_WIN32_IPC with _WIN32." 2015-07-09 17:16:13 +00:00
Elliott Hughes 095307ec49 Replace HAVE_WIN32_IPC with _WIN32.
Change-Id: Ie9dc064fb23a4e4bd4856c9668784dec0be9d2d6
2015-07-09 10:03:18 -07:00
Daniel Rosenberg 64dffd3975 Remove creation of root directory folders
Folders in the root directory are now created during the build,
as we may be building without a ramdisk, and when we do that,
the root directory will be read-only.  With those changes,
these mkdirs will never need to run.

Change-Id: I49c63e8bfc71d28e3f938ed41f81d108359fa57a
2015-07-08 16:37:13 -07:00
Daniel Rosenberg bbe796d231 libcutils: fs_config: Add folders normally created in init.rc
When the ramdisk is built into the system image, we need to create
those folders during the build.

Change-Id: I40881940c75e379d7599dc1f743b35fbc7cc66e8
2015-07-08 16:37:13 -07:00
Daniel Rosenberg 58458b66d4 rootdir: Create folders in Android.mk
system.img may contain the root directory as well. In that case, we
need to create some folders init.rc would during the build.

Change-Id: I157ccbebf36bee9916f3f584551704ec481ae1d1
2015-07-08 16:37:13 -07:00
Christopher Ferris 0473a1ea51 am b6deb331: Merge "New property that determines when to wait for gdb."
* commit 'b6deb33120a2b84b64fbf63bf2ec17bc8d13d2e3':
  New property that determines when to wait for gdb.
2015-07-08 23:17:10 +00:00
Christopher Ferris b6deb33120 Merge "New property that determines when to wait for gdb." 2015-07-08 23:07:21 +00:00
Christopher Ferris d79f2bebcc New property that determines when to wait for gdb.
Use debug.debuggerd.wait_for_gdb being set to non-zero to
determine if debuggerd should stop and wait for someone to
attach gdb to the crashing process.

Bug: 22233908
Change-Id: Id55a1572b479a70d395b7270392ce6fb70dbfdca
2015-07-08 16:01:49 -07:00
Daniel Rosenberg 32933ff511 am dc4fa7f6: Merge "Fix "adb remount" for when the root directory is in system.img"
* commit 'dc4fa7f68a5cf2a2d94b9e2c401d7af0bcf2f5ca':
  Fix "adb remount" for when the root directory is in system.img
2015-07-08 20:27:31 +00:00
Daniel Rosenberg dc4fa7f68a Merge "Fix "adb remount" for when the root directory is in system.img" 2015-07-08 20:15:15 +00:00
Daniel Rosenberg d6eba89f83 Fix "adb remount" for when the root directory is in system.img
When the root directory has been built into system.img, it is
mounted at /.

Change-Id: If01d12efeaa53b4ae59e801a6e9b802a9ae5882d
2015-07-08 19:36:19 +00:00
Christopher Ferris 708e543827 am 41a0654e: Merge "Replace all _LOG error calls with ALOGE."
* commit '41a0654e2a76a8c639b2265513345cc4c268560d':
  Replace all _LOG error calls with ALOGE.
2015-07-08 19:27:12 +00:00
Christopher Ferris 41a0654e2a Merge "Replace all _LOG error calls with ALOGE." 2015-07-08 19:16:03 +00:00
Elliott Hughes dba00aab92 am c9aeae27: Merge "Fix debuggerd\'s gdbclient instructions."
* commit 'c9aeae27403db86e1ec30c953f1d0fd6ae63b184':
  Fix debuggerd's gdbclient instructions.
2015-07-07 22:02:11 +00:00
Elliott Hughes c9aeae2740 Merge "Fix debuggerd's gdbclient instructions." 2015-07-07 21:42:24 +00:00
Elliott Hughes 39a28c2526 Fix debuggerd's gdbclient instructions.
We improved gdbclient to make the process simpler, but didn't update
debuggerd to match.

Bug: http://b/22233857
Change-Id: If4137943f567a9e566a3ac7f485c9b1eab2c68e9
2015-07-07 14:34:39 -07:00
Elliott Hughes f4bb11d298 am 913ef1ca: Merge "Fixed a documentation error in protocol.txt"
* commit '913ef1ca5adb7f04b8e7282565ae98c656ebf90b':
  Fixed a documentation error in protocol.txt
2015-07-06 18:00:42 +00:00
Elliott Hughes 913ef1ca5a Merge "Fixed a documentation error in protocol.txt" 2015-07-06 17:51:12 +00:00
Derrick Bonafilia 36da715f2f Fixed a documentation error in protocol.txt
Prior to the documentation told users to pass 0 in as
the first argument to write messages, when they should
be outting in their local-id. It is now corrected.

Change-Id: Ia2c6c84f95383baa5ca471493a29a39e5173b604
Signed-off-by: Derrick Bonafilia <dbonafilia@google.com>
2015-07-06 10:19:28 -07:00
Calin Juravle 845f829fe0 am f9fd0d5a: Merge "Add static versions for libbacktrace and libnativebridge. Bug fixes."
* commit 'f9fd0d5af917ed5016b3430359ee53f1730fdc85':
  Add static versions for libbacktrace and libnativebridge. Bug fixes.
2015-07-02 10:39:28 +00:00
Calin Juravle f9fd0d5af9 Merge "Add static versions for libbacktrace and libnativebridge. Bug fixes." 2015-07-02 10:29:33 +00:00
Calin Juravle 28042b5627 Add static versions for libbacktrace and libnativebridge. Bug fixes.
Change-Id: Ic68ac15b2676e4f475330c8e7bb34e0d48783686
2015-07-02 02:09:20 +01:00
Christopher Ferris b36b592338 Replace all _LOG error calls with ALOGE.
The debuggerd code sometimes calls _LOG(..., logtype::ERROR, ...)
and sometimes ALOGE(). Standardize on ALOGE since the _LOG message
will wind up in the tombstone in weird places, but using ALOGE
will wind up in the logcat portion of the tombstone.

Bug: 21467089
Change-Id: Ie893f5e91d45b48ef3f5864c3a714e60ac848fb3
2015-07-01 13:23:19 -07:00
Evgenii Stepanov 7d4fc4495a am 8c047830: Merge "Fix ODR issues in ART."
* commit '8c0478309e86c6c6d47124035a23f958fa7f08c4':
  Fix ODR issues in ART.
2015-06-30 22:34:41 +00:00
Evgenii Stepanov 8c0478309e Merge "Fix ODR issues in ART." 2015-06-30 22:19:22 +00:00
Elliott Hughes b40ebc5433 am 6d1e6ec3: Merge "Consistently use strerror in libutils."
* commit '6d1e6ec36fe47432739b06501894670c10f3d953':
  Consistently use strerror in libutils.
2015-06-30 21:56:44 +00:00
Elliott Hughes 6d1e6ec36f Merge "Consistently use strerror in libutils." 2015-06-30 21:47:21 +00:00
Elliott Hughes 6ed68cc412 Consistently use strerror in libutils.
It's easier for people to debug, and side-steps the problem that errno
values differ between architectures.

Bug: http://b/17458391
Change-Id: I1db9b2cbb653839d3936b91e37e5cff02671318a
2015-06-30 10:41:15 -07:00
Evgenii Stepanov 953314fc21 Fix ODR issues in ART.
Linking against both libziparchive-host and libz-host results in
libz loaded twice (because it is also linked statically in
libziparchive).

Change-Id: Ib34eef60200a702c2d7fbca3589b324992e78eab
2015-06-29 16:27:44 -07:00
Elliott Hughes eb73219cbe am b80ed906: Merge "adb server: don\'t close stale fd when TCP transport is closed"
* commit 'b80ed9069623efa3d48ac318c2c7585882d9b5d1':
  adb server: don't close stale fd when TCP transport is closed
2015-06-29 22:49:03 +00:00
Elliott Hughes b80ed90696 Merge "adb server: don't close stale fd when TCP transport is closed" 2015-06-29 22:32:19 +00:00
Yusuke Sato 95a37e756e am 692dc75d: Merge "Rename ZipEntryName to ZipString"
* commit '692dc75d9fbf5c256cd8c66219a930ae0fe9f523':
  Rename ZipEntryName to ZipString
2015-06-29 18:01:16 +00:00
Yusuke Sato 692dc75d9f Merge "Rename ZipEntryName to ZipString" 2015-06-29 17:49:39 +00:00
Yusuke Sato 6d43d448ef am f5a59f92: Merge "Add |optional_suffix| to StartIteration()"
* commit 'f5a59f929e9833e840df6da2131f2b45cb373e36':
  Add |optional_suffix| to StartIteration()
2015-06-29 17:18:31 +00:00
Yusuke Sato f5a59f929e Merge "Add |optional_suffix| to StartIteration()" 2015-06-29 17:04:34 +00:00
Yusuke Sato 07447544ad Rename ZipEntryName to ZipString
since the struct is now used for other purposes. Also add some
comparator functions to the struct to simplify zip_archive.cc.

This is a follow-up CL for f1d3d3b247.

Bug: 21957428
Change-Id: I60d4171eeacc561d59226d946e9eb5f9c96d80cf
2015-06-26 10:34:01 -07:00
Yusuke Sato f1d3d3b247 Add |optional_suffix| to StartIteration()
so that PackageManagerService can iterate over files with a
specific file extension like ".so".

(cherry picked from commit a4a80693d9)

Bug: 21957428
Change-Id: I36ba3c33a8b366a65f67cb6d156067c5caca1151
2015-06-25 14:10:05 -07:00
Mark Salyzyn f32bc723f0 am 3c233b36: Merge "logd: serialize accesses to stats helpers"
* commit '3c233b36c2ffd6e1186ccc3d2c7c7e40b0a3c066':
  logd: serialize accesses to stats helpers
2015-06-25 15:39:29 +00:00
Mark Salyzyn 3c233b36c2 Merge "logd: serialize accesses to stats helpers" 2015-06-25 15:32:29 +00:00
Mark Salyzyn ed777e9eec logd: serialize accesses to stats helpers
Quick low-risk to resolve possible hash table corruption.
Resolved an unlikely path memory leak.

ToDo: replace lock with nested lock so no lock
      helpers are required.

Bug: 22068332
Change-Id: I303ab06608502c7d61d42f111a9c43366f184d0c
2015-06-25 07:39:24 -07:00
Elliott Hughes 4d2b0716c5 am 1a3334f2: Merge "Fix Mac fastboot build."
* commit '1a3334f22965f531449d890c1a97811fa249a754':
  Fix Mac fastboot build.
2015-06-24 20:40:47 +00:00
Elliott Hughes 1a3334f229 Merge "Fix Mac fastboot build." 2015-06-24 20:28:49 +00:00
Elliott Hughes fbcb93abe2 Fix Mac fastboot build.
Change-Id: I516c07cee39845caaa47608604eeb30ce15f06cb
2015-06-24 13:28:24 -07:00
Elliott Hughes 0401645033 am 9137d65e: Merge "Improve the "device \'(null)\' not found" error."
* commit '9137d65e9ba7e8a83440e1e2058ad19b2d6b6434':
  Improve the "device '(null)' not found" error.
2015-06-24 19:42:32 +00:00
Elliott Hughes c078d54adc am 75d47421: Merge "Move fastboot\'s Windows code to C++."
* commit '75d47421d0fc1458fad97c32e7fcb6e2d94f3f44':
  Move fastboot's Windows code to C++.
2015-06-24 19:42:31 +00:00
Elliott Hughes cb7f5f5111 am feddd582: Merge "Move fastboot\'s Mac OS code to C++."
* commit 'feddd582e7194e034c291f42528dc3f30d496b53':
  Move fastboot's Mac OS code to C++.
2015-06-24 19:42:30 +00:00
Elliott Hughes 9137d65e9b Merge "Improve the "device '(null)' not found" error." 2015-06-24 19:31:20 +00:00