OSDN Git Service

Print the command line and ABI in stack dumps like debuggerd.
authorJeff Brown <jeffbrown@google.com>
Thu, 11 Sep 2014 01:41:18 +0000 (18:41 -0700)
committerBrian Carlstrom <bdc@google.com>
Thu, 11 Sep 2014 23:13:00 +0000 (16:13 -0700)
commitb4fffc702abc8aebac2c34eaf852aec52be87eb3
tree4f9e8ddba864ccb6b6bda8925405c45cb00d0bce
parent77f46bbe03cde911bc4b36ff8e7807e8ceaa9f90
Print the command line and ABI in stack dumps like debuggerd.

Ensure the heading is "Cmd line:" just like debuggerd and
as it used to be in Dalvik.
Fix a missing newline.
Trim all training nulls from the command line.
Don't bother printing the original command line if unset.
Add the ABI to the dump to help the native stack symbol tool.

Bug: 17474152

(cherry picked from commit 09865b8aa2d85f2824fbdac8034cab01629e8adc)

Change-Id: I52d55660276092ed73b61d5e0708460ec39f1a4a
runtime/signal_catcher.cc