Commit graph

11582 commits

Author SHA1 Message Date
Greg Hackmann
e6b793c7b0 libadf: enable -Werror
Bug: 19606869

Change-Id: If2ea55732e71e8288641b6b34d229b367fd3fb3b
Signed-off-by: Greg Hackmann <ghackmann@google.com>
2015-03-10 15:14:38 -07:00
Greg Hackmann
39b0c1c67d libadf: tests: fix signed/unsigned comparison warnings
Bug: 19606869

Change-Id: I29cfa363b6640cc13973c1023d2f4ea1a97e3af2
Signed-off-by: Greg Hackmann <ghackmann@google.com>
2015-03-10 15:14:38 -07:00
Dimitry Ivanov
b27bd94896 Merge "Generate gnu hash for arm only" 2015-03-10 16:51:37 +00:00
Goran Jakovljevic
3947d5da3f Generate gnu hash for arm only
Fixes mips build failure caused by:
https://android-review.googlesource.com/#/c/139580/

As previously discussed [1], MIPS does not support GNU-style ELF hashes.

[1] https://android-review.googlesource.com/#/c/49282/2/tests/Android.mk

Change-Id: I757fef1d47663da3e414f5771dfc580ea7aa3732
2015-03-10 09:47:23 -07:00
Elliott Hughes
ad571cdd2c Merge "Add backtrace support for mips64." 2015-03-10 04:26:33 +00:00
Elliott Hughes
ed5b81c9e5 Merge "Fix LP32 build." 2015-03-10 04:11:22 +00:00
Elliott Hughes
8ac94d3a54 Fix LP32 build.
Change-Id: I66e084330e7a32eac639d06187e780ffa0ad7b14
2015-03-09 21:10:10 -07:00
Elliott Hughes
9cce837d02 Merge "Increase output width for wchan and pc on 64 bit targets." 2015-03-10 03:33:53 +00:00
Chris Dearman
08b3466bc2 Increase output width for wchan and pc on 64 bit targets.
Also switch wchan to the textual form, since most of us
don't know kernel addresses off by heart.

Change-Id: I8e28d910034d8171c5b994189b16114f80f38d2f
2015-03-09 20:26:10 -07:00
Dmitriy Ivanov
19833d2488 Merge "Generate sysv hash for liblog" 2015-03-10 02:44:20 +00:00
Douglas Leung
2ea9a32434 Add backtrace support for mips64.
Change-Id: I12ea2fcbe6780bb596f51988eae1ceafcec858df
2015-03-09 18:43:10 -07:00
Dan Albert
ad5ed361a7 Merge "Fix build from -Werror=maybe-uninitialized." 2015-03-10 01:32:00 +00:00
Dmitriy Ivanov
692c0e41e1 Generate sysv hash for liblog
Bug: 19059885
Change-Id: I6fff4372504e3ca0d870c5cafe6f19d412787923
2015-03-09 18:30:54 -07:00
Dan Albert
83ca56ac98 Fix build from -Werror=maybe-uninitialized.
This won't actually ever be uninitialized because the code will take a
failure path if the code that initializes it fails. The goto seems to
thwart this check though.

Not sure why this is only firing on userdebug builds yet. I'll look in
to it tomorrow.

Change-Id: Ie9d837d6baea255d2a4d169355b53dfd775eacce
2015-03-09 18:29:07 -07:00
Dan Albert
5f2ccb0efd Merge "Move adb to C++." 2015-03-10 00:58:06 +00:00
Dan Albert
bac3474a82 Move adb to C++.
I keep trying to clean things up and needing std::strings. Might as
well just do this now.

usb_linux_client.c is going to stay as C because GCC isn't smart
enough to deal with the designated initializers it uses (though for
some reason it is in C mode).

The Darwin files are staying as C because I don't have a way to test
that they build.

The Windows files are staying as C because while I can actually build
for them, it's slow and painful.

Change-Id: I75367d29205a9049d34460032b3bb36384f43941
2015-03-09 14:06:11 -07:00
Dan Albert
9b1fd969a7 Merge "Fix a writex transcription error." 2015-03-09 20:29:07 +00:00
Dan Albert
f3519a8747 Fix a writex transcription error.
Change-Id: I71b11127d41ebac6caf68926089c5a3b99d8c21e
2015-03-09 13:22:02 -07:00
Dan Albert
332c288130 Merge "Make the root/unroot test more robust." 2015-03-09 18:15:05 +00:00
Dan Albert
857d7db69d Make the root/unroot test more robust.
* Check the current adb user to choose the order of root/unroot.
* Re-root the device when finished.

Change-Id: I47a14b89e2c405bd63722e4d2043fcc629fb5e58
2015-03-09 10:45:50 -07:00
Mark Salyzyn
c50f767e7e Merge "logd: build cleanup" 2015-03-09 17:20:08 +00:00
Mark Salyzyn
95b467888c logd: build cleanup
- Hard code the "auditd" event tag

Change-Id: I5f76fd286628be5c0ca819e8ed775648c0d2fa44
2015-03-09 10:02:51 -07:00
Elliott Hughes
0ffaa2b75a Merge "Fix __android_log_assert to abort." 2015-03-09 15:14:52 +00:00
Elliott Hughes
02ff4b8feb Fix __android_log_assert to abort.
If you rely on __builtin_trap, it's likely to use an illegal instruction,
which is a misleading way to abort. If we just call abort, it's more
immediately obvious that we've aborted.

Bug: 19644330
Change-Id: I63a962e4748aec7b019ea94b007593e478a3b61a
2015-03-07 11:21:37 -08:00
Elliott Hughes
6385d626a5 Merge "Remove toolbox's obsolete 'wipe' command." 2015-03-07 19:19:23 +00:00
Elliott Hughes
bfa9d6a3c4 Remove toolbox's obsolete 'wipe' command.
It hasn't worked in some time (it removes /data/dalvik-cache, which is
required by art), and if you're prepared to reboot (to let init put back
all the directories a working system needs) there are other ways to wipe
data (such as "fastboot format userdata reboot").

Bug: 19644330
Change-Id: Ib074ea21cc28409a506d66d75060bb4ad85539e2
2015-03-07 11:07:10 -08:00
Dmitriy Ivanov
137c819e16 Merge "Remove some more gotos" 2015-03-06 22:38:06 +00:00
Dmitriy Ivanov
1f741e51bc Remove some more gotos
Change-Id: I9c4b3a5aecf4011653933b051e67605a6feb123f
2015-03-06 14:26:37 -08:00
Elliott Hughes
d73df6abb6 Merge "Fix outdated comments in grab-bootchart.sh." 2015-03-06 22:18:55 +00:00
Dmitriy Ivanov
3445cfe2b2 Merge "Reapply -Wold-style-cast" 2015-03-06 22:09:20 +00:00
Dmitriy Ivanov
f94e159007 Reapply -Wold-style-cast
Added pragmas to disable checks for the method
 using libz.h macros.

Change-Id: I25aa1adf09f3ecff61d8fea6306b24b37990ab46
2015-03-06 13:57:43 -08:00
Elliott Hughes
7c0c15f0ed Fix outdated comments in grab-bootchart.sh.
I've been deliberately vague about the name of the readme because I want to
come back and switch to markdown, but that probably won't happen today.

Change-Id: I60651703709bbfd499227f882eb949396e8f4f6c
2015-03-06 13:25:32 -08:00
Dmitriy Ivanov
25d2a1a916 Merge "Fix build: Remove -Wold-style-cast" 2015-03-06 21:11:49 +00:00
Dmitriy Ivanov
34d1b0fa63 Fix build: Remove -Wold-style-cast
libz.h has macros using old-style-cast.

Change-Id: I48f7d85805c7c34e1453c863da3c9e734a57d479
2015-03-06 13:07:52 -08:00
Mark Salyzyn
4f0520fe6c Merge "Revert "liblog: logprint use <endian.h>"" 2015-03-06 20:52:52 +00:00
Dmitriy Ivanov
34671b8100 Merge "Remove some gotos" 2015-03-06 20:51:48 +00:00
Mark Salyzyn
8470dad24f Revert "liblog: logprint use <endian.h>"
This reverts commit 66bfc5ccbd.

Bug: 19634248
Change-Id: I7c4851a247042193674f226fd0d5c5663e8074c7
2015-03-06 20:46:31 +00:00
Dmitriy Ivanov
3ea93da3c2 Remove some gotos
Change-Id: I0e162c8e0a700940f4302786b8523e5b2f5e5c27
2015-03-06 12:45:03 -08:00
Dmitriy Ivanov
8b1a94c07c Merge "Cleanup old-style-cast warnings" 2015-03-06 20:43:42 +00:00
Dmitriy Ivanov
4b8b148a8c Merge "Remove unnecessary allocation of FileMaps" 2015-03-06 20:43:20 +00:00
Dmitriy Ivanov
f4cb8e2ac2 Cleanup old-style-cast warnings
Change-Id: I6e17fd993557cbf78ade787f112794358aee39c8
2015-03-06 10:50:56 -08:00
Dmitriy Ivanov
4b67f8339d Remove unnecessary allocation of FileMaps
Change-Id: I97bb72b9edeee5b3eff4ffd21a761a1af472a3b5
2015-03-06 10:22:34 -08:00
Mark Salyzyn
88492ec4e1 Merge "liblog: build cleanup" 2015-03-05 19:23:32 +00:00
Mark Salyzyn
1b79369877 liblog: build cleanup
- Drop CYGWIN build checking
- Hard code the "liblog" event tag
- Drop use of internal WITH_MINGW

Change-Id: I7b63bd7fa4471f340f356b477a0e5e25fe83a851
2015-03-05 11:10:00 -08:00
Mark Salyzyn
b6c411cf07 Merge "liblog: logprint use <endian.h> part three" 2015-03-05 02:42:43 +00:00
Mark Salyzyn
31dd00fcf5 liblog: logprint use <endian.h> part three
Fix host/sdk builds:
- Drop logprint from list of host products
- Drop <endian.h> for FAKE_LOG_DEVICE

Change-Id: I8aa854413ff6d809f0b04987cf913eb228e4213c
2015-03-04 17:40:04 -08:00
Mark Salyzyn
051222c243 Merge changes I12d6aa4e,I9e802113,I2b30e0fc,Iaf387b9e
* changes:
  logcat: remove dead label code
  logcat: do not stop on unexpected log ID
  Revert "logd: Add minimum time bucket statistics"
  liblog: Instrument logging of logd write drops
2015-03-05 01:12:06 +00:00
Mark Salyzyn
e53d17c15f Merge "liblog: logprint use <endian.h> part deux" 2015-03-05 00:23:21 +00:00
Mark Salyzyn
f8d62a0107 liblog: logprint use <endian.h> part deux
Change-Id: I042194d0f5ec444dd192ee9da50d6b48d556f8ac
2015-03-04 16:20:50 -08:00
Andreas Gampe
291ce5b82d Merge "Fs_mgr: Fix format code" 2015-03-04 22:03:35 +00:00