Commit graph

205 commits

Author SHA1 Message Date
Elliott Hughes
dfc3490c90 am 7e3a492f: am 6f185dea: am e080be57: Merge "Fixed tid/pid mixup in debuggerd gdbclient output."
* commit '7e3a492ff205a2e5ac5880e95dbb5bd0fa634cff':
  Fixed tid/pid mixup in debuggerd gdbclient output.
2014-06-27 18:45:36 +00:00
Mark Salyzyn
d4b6d18d7e resolved conflicts for merge of ab5b8603 to master
Change-Id: I857725640bc77f04d93f04c52efc73335122e5ea
2014-06-27 11:25:37 -07:00
Mark Salyzyn
e43290d7ed tombstone: log output header suppressed in crash
Bug: 15520846
Change-Id: I18934cc60af3dda98ab729fbabc4c7a66834512e
2014-06-27 10:32:22 -07:00
Elliott Hughes
e080be5754 Merge "Fixed tid/pid mixup in debuggerd gdbclient output." 2014-06-26 18:34:59 +00:00
Brigid Smith
75582957cf Fixed tid/pid mixup in debuggerd gdbclient output.
Now the debugging output shows the tid of the crashed thread instead of
the pid of the process that crashed.

Change-Id: I637f409ff02d73d458edc6d1a5c462c21d128211
2014-06-27 09:21:12 -07:00
Michael Wright
42552bc660 am 9eb6e1bc: am 3888cefc: am 949bd4c2: Merge "Print ABI in backtraces."
* commit '9eb6e1bcbc54f4e2c4317a0c997e0623091ddece':
  Print ABI in backtraces.
2014-06-25 01:59:18 +00:00
Michael Wright
80f596984e Print ABI in backtraces.
This lets the stack tool figure out which toolchain to use
automatically.

Change-Id: Ia235d6904622423fe6fbc7b0315a1861e52a41ad
2014-06-24 17:14:26 -07:00
Elliott Hughes
929842aaf9 am 1e462eb5: am b1939864: am c4a09654: Merge "Fixed pathname for connecting to debugger."
* commit '1e462eb50a853424feda24e7de0dd8f1eaa92a12':
  Fixed pathname for connecting to debugger.
2014-06-24 19:38:52 +00:00
Brigid Smith
20c214f857 Fixed pathname for connecting to debugger.
The debug output was still showing the pathname that worked with
gdbclient before my changes, and therefore did not work after the fact.

Change-Id: Ie12d79f5346088914ce0a70bda69780707b31d31
2014-06-24 10:04:41 -07:00
Brigid Smith
f473200d35 Fixing debuggerd header output.
PID and TID output line was missing.

Change-Id: I609af5727bc22ea0b97f3975ddb3cf0102910bc2
2014-06-23 11:03:40 -07:00
Elliott Hughes
db40a578c4 am 089d3c93: am e09c8a06: am e1f17ebb: Merge "Fixing debuggerd header output."
* commit '089d3c93adfadc25a9b66760969865812a4c49c1':
  Fixing debuggerd header output.
2014-06-23 19:54:09 +00:00
Brigid Smith
2e8290463e Maps output now marks the fault address location.
If the fault address is not within a mapped region, it logs an error
message after the output.  Otherwise, it prefixes the location of the
fault address with "--->" to make it easier to locate.

Change-Id: I330adaade4402ffeb09f1a6d34a944c2f054d06d
2014-06-20 09:30:16 -07:00
Elliott Hughes
545b127a78 am d3ef8f41: am 2520f1eb: am 37d7fdbb: Merge "Maps output now marks the fault address location."
* commit 'd3ef8f416b9cd9609a0002e186fb2ab45a0a312d':
  Maps output now marks the fault address location.
2014-06-20 18:19:44 +00:00
Elliott Hughes
9363b2668e am e8b65473: am dc0261f9: am 030ba83c: Merge "Updated non-ARM archs to reflect logging changes."
* commit 'e8b654733931eaf5c63d816ae41f7d38ac146e36':
  Updated non-ARM archs to reflect logging changes.
2014-06-19 20:21:00 +00:00
Elliott Hughes
787a2a697e Fix debuggerd "format '%p'" build breakage.
Change-Id: I589d44485e55c23d1f1a6edfa8310a90cac2429e
2014-06-19 12:42:01 -07:00
Elliott Hughes
e6880b7453 resolved conflicts for merge of 476b069a to master
Change-Id: I647232e584ba29c0a7b57e1f6e520f05f7986bb1
2014-06-19 11:15:45 -07:00
Brigid Smith
50eb546ec1 Removed log.quiet and log = NULL cases from debuggerd.
Now the functionality implemented by these semi-confusing cases has been
replaced with the same logtype enum behavior that is easier to
understand, and cases that used log-looking behavior to print to logcat
(when log = NULL) now use the more transparent ALOGE/ALOGD functions.

Change-Id: I7e38f2d4ca74a828df4d2266b3ea34edd3c6f5bb
2014-06-19 10:59:01 -07:00
Brigid Smith
e17f267b2a Updated non-ARM archs to reflect logging changes.
Change-Id: I0af865881c19ea4a57ec1aa9455bc32c08a60d75
2014-06-19 11:33:38 -07:00
Elliott Hughes
e901c1bf8a Fix debuggerd "format '%p'" build breakage.
Change-Id: I589d44485e55c23d1f1a6edfa8310a90cac2429e
2014-06-19 11:46:27 -07: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
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
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