Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(725)

Issue 480002: Parse ARM unwind tables

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 2 months ago by Ted Mielczarek
Modified:
11 years, 7 months ago
Reviewers:
jimb, vasily.golubev
CC:
google-breakpad-dev_googlegroups.com, digit
Visibility:
Public.

Description

I wrote this patch a while ago to dump unwind info from Android system
libraries. It proved useful for that, but I never got around to thinking about
upstreaming it. The bulk of the code is originally from libunwind, but I
modified it to convert into our CFI records. It doesn't produce pretty symbol
files, but it seems to work. It's also severely lacking in unit tests.

Patch Set 1 #

Patch Set 2 : Updated patch #

Unified diffs Side-by-side diffs Delta from patch set Stats Patch
M Makefile.am View 1 2 chunks +6 lines, -0 lines 0 comments Download
M Makefile.in View 1 34 chunks +115 lines, -73 lines 0 comments Download
M aclocal.m4 View 1 12 chunks +49 lines, -27 lines 0 comments Download
M configure View 1 110 chunks +307 lines, -259 lines 0 comments Download
A src/common/arm_ex_reader.cc View 1 1 chunk +210 lines, -0 lines 0 comments Download
A src/common/arm_ex_reader.h View 1 1 chunk +40 lines, -0 lines 0 comments Download
A src/common/arm_ex_to_module.cc View 1 1 chunk +101 lines, -0 lines 0 comments Download
A src/common/arm_ex_to_module.h View 1 1 chunk +72 lines, -0 lines 0 comments Download
M src/common/linux/dump_symbols.cc View 1 3 chunks +31 lines, -0 lines 0 comments Download

Messages

Total messages: 10
Ted Mielczarek
12 years, 2 months ago #1
jimb
Wow, awesome. I haven't read it too carefully, but the way this is structured seems ...
12 years, 2 months ago #2
jimb
Do we need to bring this into like with the Google C++ Style Guide? Or ...
12 years, 2 months ago #3
Vasily
On 2012/10/05 17:11:29, Ted Mielczarek wrote: Hello. I am trying to implement the usage of ...
12 years, 1 month ago #4
Ted Mielczarek
It sounds like there's something wrong with the parsing here. I don't have intricate knowledge ...
12 years, 1 month ago #5
Vasily
I used gcc-4.5.3 for building the binary. I compiled my example inside the environment of ...
12 years, 1 month ago #6
Ted Mielczarek
On 2012/10/19 04:42:06, Vasily wrote: > I used gcc-4.5.3 for building the binary. I compiled ...
12 years, 1 month ago #7
Vasily
On 2012/10/19 10:47:12, Ted Mielczarek wrote: > On 2012/10/19 04:42:06, Vasily wrote: > > I ...
12 years, 1 month ago #8
Vasily
Hi I think that I solved the problem of SegFault on ARM binaries without debug ...
12 years, 1 month ago #9
Ted Mielczarek
11 years, 7 months ago #10
This is Vasily's updated version of my patch from
http://code.google.com/p/google-breakpad/issues/detail?id=503.

I found a bug in the handling of ARM_EXIDX_CMD_VFP_POP, we needed to use <= to
properly handle the input values. I get pretty sensible stacks when I use this
code to dump Android system libraries. I've also found that modern readelf has a
-u option to dump these tables, so it's handy for sanity checking the work here.
Sorry for letting this sit for so long, I just didn't have the time (or the
need) to look at it. I think we want to use this in Firefox, so I'll probably
work on cleaning it up and getting it into a landable state.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld 1004:630ec63f810e-tainted