Commit graph

186 commits

Author SHA1 Message Date
Elliott Hughes
429502d4da am d478aec2: am bd80e0d8: am 0ef3fa24: Merge "Changed maps output in debuggerd."
* commit 'd478aec2a9aea7c0e041a9c4f81202fa77862622':
  Changed maps output in debuggerd.
2014-06-17 23:02:01 +00:00
Elliott Hughes
e1f7c176f6 am 6419687f: am 929c7fe1: am 5bc6b5b8: Merge "Fixed logcat debug output issue."
* commit '6419687fe05ea5b64e3db4f380f45b157d6fa10a':
  Fixed logcat debug output issue.
2014-06-17 21:40:41 +00:00
Brigid Smith
7b2078eeb4 Changed maps output in debuggerd.
Now the map output is only sent to the tombstone, and the entire
contents of /prod/$PID/maps is logged, not just 3 lines.  Additionally,
crasher now supports "crasher SIGSEGV-non-null", which attempts to write to a
dereferenced function address, causing a SIGSEGV at a non-zero address.
This new crasher mode can be used to test the new maps output.

Bug: 15343662
Change-Id: I796d92e8352a6b9714bbbfe96f3143c56565ef2f
2014-06-17 15:32:22 -07:00
Brigid Smith
1babede38b Fixed logcat debug output issue.
Change-Id: Ibeb048b683ec11b05af23371e5e4b17cdd50fea0
2014-06-17 14:24:43 -07:00
Elliott Hughes
b3afd6c7f4 resolved conflicts for merge of 96021e03 to master
Change-Id: I60815f9581cdd5b43be5b0ef0612db3dcce2dcdb
2014-06-16 15:30:31 -07:00
Brigid Smith
62ba489ba0 Changing how debuggerd filters log messages to different locations.
The system by which debuggerd filters its output to different locations
is now based on an enum called logtype with easy to understand
categories for log messages (like THREAD, MEMORY, etc.) instead of the
old, fairly esoteric scope_flags variable.  Now much of the output that
previously went to logcat does not show up on the screen, but all output
can be found in the tombstone file.  In addition, the tombstone's
location is now printed so it can be located easily.

Bug: 15341747
Change-Id: Ia2f2051d1dfdea934d0e6ed220f24345e35ba6a2
2014-06-16 14:41:21 -07:00
Elliott Hughes
3daee33b96 am 047a1cdd: am 29413726: am 20df39a0: Merge "Adding ABI output to debuggerd tombstones."
* commit '047a1cdd119aa626b1ea603873efcd52f0d6ecbb':
  Adding ABI output to debuggerd tombstones.
2014-06-04 21:49:26 +00:00
Elliott Hughes
20df39a089 Merge "Adding ABI output to debuggerd tombstones." 2014-06-04 21:11:47 +00:00
Brigid Smith
9c8dacce55 Adding ABI output to debuggerd tombstones.
Bug: 15084471
Change-Id: If9fb260a3403e86f80928f2f5f79331fc0936030
2014-06-04 12:29:24 -07:00
Christopher Ferris
82cc77e8ed am 2e389193: am a8a7f001: Merge "Fix x86 and x86_64 builds."
* commit '2e389193b01adb2d8f75e6c4038caaab4334b3ab':
  Fix x86 and x86_64 builds.
2014-06-04 00:38:48 +00:00
Christopher Ferris
3520086e3d Fix x86 and x86_64 builds.
Change-Id: I1ee9117843aff2abe4067f288b8496d4bfc78c9e
2014-06-03 17:13:37 -07:00
Elliott Hughes
6a0e5ba424 am a005445a: am ddde05f3: Merge "[MIPS64] Build debuggerd for mips64"
* commit 'a005445a7a0901675bbd04395a9eb699639aea9e':
  [MIPS64] Build debuggerd for mips64
2014-06-04 00:12:08 +00:00
Elliott Hughes
3c9f410e16 am 0d31d487: am d3b61d18: Merge "Clean up the debuggerd makefile."
* commit '0d31d4877ca451c9e15a0651ab2b4827556afeff':
  Clean up the debuggerd makefile.
2014-06-04 00:11:51 +00:00
Elliott Hughes
ddde05f3ee Merge "[MIPS64] Build debuggerd for mips64" 2014-06-03 23:26:33 +00:00
Duane Sand
a80b759857 [MIPS64] Build debuggerd for mips64
Change-Id: I361e9668baa218fc01e723c2df1a34ca6329cf47
2014-06-03 16:24:57 -07:00
Elliott Hughes
8c597684b1 Clean up the debuggerd makefile.
In particular, turn on -Wunused, which is globally off by default
thanks to build/core/config.mk.

Change-Id: Iba3ee1c0726f43eced972a53959f0e1cd97190c9
2014-06-03 15:12:07 -07:00
Mark Salyzyn
accd09581e am 73334e60: am 1e4cfe06: am 5df557f6: Merge "logd: logcat: debuggerd: audit logs to events and main"
* commit '73334e60530ac68c8b4686316924c225fd037a84':
  logd: logcat: debuggerd: audit logs to events and main
2014-05-27 23:01:16 +00:00
Mark Salyzyn
e4369d68a2 logd: logcat: debuggerd: audit logs to events and main
- auditd spawn log copy to events and main
- logcat delete events as one of the default logs
- debuggerd do not collect events.
- squish multiple spaces
- switch from strcpy to memmove for overlapping buffers

BUG: 14626551
Change-Id: I89b30273ce931ed2b25a53ea9be48e77f4c1bbf4
2014-05-27 14:29:56 -07:00
Elliott Hughes
879715333a am b7fdf4fa: am 4077acd2: am 21be143a: Merge "Fix register dump and back trace after a crash."
* commit 'b7fdf4fa82ca8c7446434df65562e833f4dac986':
  Fix register dump and back trace after a crash.
2014-05-22 00:33:58 +00:00
Douglas Leung
6254f32f21 Fix register dump and back trace after a crash.
Change-Id: Ie5f6624b9dcf81d84769b9cdaf9d8a301c8826f7
Signed-off-by: Douglas Leung <douglas@mips.com>
2014-05-21 16:41:20 -07:00
Elliott Hughes
bb8e90e87e am f6aa4863: am 343e49e3: am 0296be9d: Merge "Teach debuggerd the name of SIGTRAP."
* commit 'f6aa4863a2f1e6f37685520de7f85c96f7b6f1d3':
  Teach debuggerd the name of SIGTRAP.
2014-05-17 08:34:57 +00:00
Elliott Hughes
a323b504a7 Teach debuggerd the name of SIGTRAP.
Also add SIGTRAP to the list of signals we don't want to double fault on.

Bug: 15024256
Change-Id: I23ab80800563c007fcd3e42527329fedf762f0c8
2014-05-16 21:12:17 -07:00
Elliott Hughes
20b40738bf am 2aa894f3: am 2f1cddfd: am 541859db: Merge "Remove the broken LED flashing code from debuggerd."
* commit '2aa894f3736f6d93fd119b28ea9eb6c531187b68':
  Remove the broken LED flashing code from debuggerd.
2014-05-17 04:09:25 +00:00
Elliott Hughes
27ab751c7b Remove the broken LED flashing code from debuggerd.
Change-Id: I4d0cbe14daa90ac5f91ce4597584448ee3c65dda
2014-05-16 20:54:36 -07:00
Elliott Hughes
7393ba0bfd am 227c3b6c: am a04bad63: am 9cb0b571: Merge "Output correct gdbserver instructions from debuggerd."
* commit '227c3b6ce7ef8c011ad2f3d9bebf9a25c4fffb4b':
  Output correct gdbserver instructions from debuggerd.
2014-05-17 03:43:53 +00:00
Elliott Hughes
d9bf2b2137 Output correct gdbserver instructions from debuggerd.
Bug: 15021938
Change-Id: I2df433d939f5f83ed2a2a30af357b83e4d8e5331
2014-05-16 19:51:41 -07:00
Elliott Hughes
1bcfe061aa am a7952c5c: am 5e742107: am c4afc192: Merge "Add SIGTRAP support to crasher and debuggerd."
* commit 'a7952c5c5911f612fd1f99259f2e06dc9d1b319d':
  Add SIGTRAP support to crasher and debuggerd.
2014-05-17 00:50:00 +00:00
Elliott Hughes
c4afc19236 Merge "Add SIGTRAP support to crasher and debuggerd." 2014-05-17 00:39:22 +00:00
Elliott Hughes
7e35ae8fc8 Add SIGTRAP support to crasher and debuggerd.
Bug: 15024256
Change-Id: I3f34993fcfd9799306852b0a2195db468370be6e
2014-05-16 17:27:59 -07:00
Mark Salyzyn
eb25db1706 resolved conflicts for merge of f742788a to master
Change-Id: I4f902eb0df09a32cbc19fcccc0747bb6a8e3a48c
2014-05-16 14:02:13 -07:00
Mark Salyzyn
989980c55d logd: logcat: debuggerd: auditd logs to events
- auditd switch to recording logs to events log id
- logcat add events as one of the default logs
- debuggerd collect events log as well.

ToDo: debuggerd & bugreport collect intermixed logs.

BUG: 14626551
Change-Id: I958f0e729b7596748be57488a38824db5645be7b
2014-05-15 08:50:50 -07:00
Elliott Hughes
322d2dc264 am 4776e2e4: am 1f64d7e1: am b4866128: Merge "Fix mips debuggerd <corkscrew/ptrace.h> build breakage."
* commit '4776e2e4322b072d278e0ace012a770758973de8':
  Fix mips debuggerd <corkscrew/ptrace.h> build breakage.
2014-05-08 18:00:51 +00:00
Elliott Hughes
99d4a697c7 Fix mips debuggerd <corkscrew/ptrace.h> build breakage.
The uapi headers have everything we need, and the corkscrew
header files have been removed.

Change-Id: I274b44463638112f1ab290926094c094c9253586
2014-05-07 15:42:41 -07:00
Christopher Ferris
8a1469083d am 0fd6750e: am fdadb420: am b52a48af: Merge "Log stack even if tombstone cannot be created."
* commit '0fd6750ed3116d29cc49cc721fbbd38b3033aa0f':
  Log stack even if tombstone cannot be created.
2014-05-05 23:37:12 +00:00
Christopher Ferris
c5bb49a138 Log stack even if tombstone cannot be created.
Bug: 14498701
Change-Id: I62c271bef2f73166eeb91d3fa3ce1e1b724a081f
2014-05-05 15:01:14 -07:00
Mark Salyzyn
e49a116657 am d007b59f: am 44bec3ad: am 6f3f7d71: Merge "debuggerd: turn on -Werror"
* commit 'd007b59ffa7800fa12e80fa3a070d6e6fe477ae0':
  debuggerd: turn on -Werror
2014-05-02 22:18:21 +00:00
Mark Salyzyn
f1a8dfa0eb debuggerd: turn on -Werror
- Deal with some -Wunused / -Wunused-variable issues

Change-Id: I39849fe30170f69d1cab7d4ad2629b3a49e14ee7
2014-05-02 14:16:00 -07:00
Elliott Hughes
84a445b4f5 am 29941ec8: am f8db4afb: am ab3d49b0: Merge "Use the si_code value bionic passes us."
* commit '29941ec81705bdcad2b43f0059e1288304c523e8':
  Use the si_code value bionic passes us.
2014-04-26 03:33:27 +00:00
Elliott Hughes
855fcc3114 Use the si_code value bionic passes us.
Bionic needs to re-raise various signals, which means the si_code
debuggerd sees has been clobbered. If bionic sends us the original
si_code value, we can use that instead of the one we see when the
ptrace the crashed process' siginfo.

Change-Id: If116a6bc667d55a6fb39b74f96673292af4e4c8c
2014-04-25 20:20:39 -07:00
Elliott Hughes
a92330c7e2 am b791f04c: am e5d38ad8: am dc5442c0: Merge "Add missing si_code values to debuggerd."
* commit 'b791f04c02af8ae7058b8d597d601e4e94ceb8e0':
  Add missing si_code values to debuggerd.
2014-04-24 23:22:49 +00:00
Elliott Hughes
bd395b9a14 Add missing si_code values to debuggerd.
Also add static_asserts so we'll be notified if any more new ones show up.

Change-Id: I3a502dd4da35354e1ac65865191d31ccdacef298
2014-04-24 13:53:22 -07:00
Elliott Hughes
cef3eff0d9 am 6d7a2ee4: am b1bcd9c3: am 6798914b: Merge "Improve liblog\'s fatal logging."
* commit '6d7a2ee4e8b590071042ae424a3e8c951f198a8f':
  Improve liblog's fatal logging.
2014-04-24 20:52:48 +00:00
Elliott Hughes
da6b2e2fd7 Improve liblog's fatal logging.
This makes LOG_ALWAYS_FATAL and LOG_ALWAYS_FATAL_IF as good as regular
assert(3).

Change-Id: I0666684d30cae7baf23c64b33d35c1e43f81acf0
2014-04-24 13:28:24 -07:00
Mark Salyzyn
297c19d75f am f7770d59: am 19697f3e: am 3ad0af6d: Merge "logd: liblog: logcat: debuggerd: Add LOG_ID_CRASH"
* commit 'f7770d59dfdc5b3b6fe94f167636b75c1c5d4a81':
  logd: liblog: logcat: debuggerd: Add LOG_ID_CRASH
2014-04-17 23:33:50 +00:00
Mark Salyzyn
99f47a9e7c logd: liblog: logcat: debuggerd: Add LOG_ID_CRASH
Change-Id: Iea453764a1a4fc1661f461f10c641c30150e4d20
2014-04-16 15:38:50 -07:00
Colin Cross
66d4797673 am 47de0060: am bd514144: am 47770b73: Merge "debuggerd: use LOCAL_MULTILIB"
* commit '47de0060757b90737f1a409acd99fa4372efbf07':
  debuggerd: use LOCAL_MULTILIB
2014-03-27 18:29:25 +00:00
Colin Cross
87a6b1d799 debuggerd: use LOCAL_MULTILIB
Use LOCAL_MULTILIB to build multiple versions of executables
instead of manually creating two build rules.

Change-Id: I1a993ff7b5f527a88735f46eec9822bb97d16490
2014-03-26 15:16:23 -07:00
Colin Cross
fb31448b6f am c5f3e0dc: am 594f0917: am a6b77056: Merge "build debuggerd and debuggerd64 on 64-bit architectures"
* commit 'c5f3e0dc092a3132b93d6784103c089ea9cf12ce':
  build debuggerd and debuggerd64 on 64-bit architectures
2014-02-13 20:38:00 +00:00
Colin Cross
579c9bc8a4 build debuggerd and debuggerd64 on 64-bit architectures
Change-Id: I1518d45ae0c5e0fed31d071fdaf19a67bad1bdfc
2014-02-12 22:32:26 -08:00
Nick Kralevich
3049f23915 am e41420bd: am 488b5eaf: am 2e7347d6: Merge "Convert all selinux_android_restorecon and _setfilecon calls to new API."
* commit 'e41420bd8cbaa69f6eaca524b2412cb92a6d18a3':
  Convert all selinux_android_restorecon and _setfilecon calls to new API.
2014-02-13 00:19:47 +00:00