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

Issue 614002: [MIPS] Add support for Breakpad for MIPS (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 9 months ago by gordanac
Modified:
10 years, 7 months ago
CC:
chrisdearman, petar.jovanovic_imgtec.com
Base URL:
http://google-breakpad.googlecode.com/svn/trunk/src/
Visibility:
Public.

Description

[MIPS] Add support for Breakpad for MIPS

This change adds support for MIPS in the breakpad.
Based on original patches from Chris Dearman.

BUG: None
TEST: Running manual tests including unittests

Committed: https://code.google.com/p/google-breakpad/source/detail?r=1212

Patch Set 1 #

Patch Set 2 : [MIPS]: #

Patch Set 3 : [MIPS]: Adding missing changes so that breakpad compiles #

Total comments: 46

Patch Set 4 : Addressing code review comments from thestig. #

Total comments: 20

Patch Set 5 : Addressing comments from Ben Chan. #

Total comments: 12

Patch Set 6 : Addressing latest comments from thestig. #

Patch Set 7 : Putting back excidentaly deleted line. #

Total comments: 10

Patch Set 8 : Added unittest for stackwalker_mips class and few more changes as per code review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats Patch
M Makefile.am View 1 2 3 4 5 6 7 7 chunks +23 lines, -0 lines 0 comments Download
M Makefile.in View 1 2 3 4 5 6 7 30 chunks +158 lines, -0 lines 0 comments Download
M src/client/linux/handler/exception_handler.cc View 1 2 3 4 5 6 7 3 chunks +7 lines, -2 lines 0 comments Download
M src/client/linux/handler/exception_handler.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download
M src/client/linux/handler/exception_handler_unittest.cc View 1 2 3 4 5 6 7 14 chunks +35 lines, -19 lines 0 comments Download
M src/client/linux/minidump_writer/linux_core_dumper.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M src/client/linux/minidump_writer/linux_dumper.h View 1 2 3 4 5 6 7 2 chunks +7 lines, -1 line 0 comments Download
M src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M src/client/linux/minidump_writer/linux_ptrace_dumper.cc View 1 2 3 4 5 6 7 2 chunks +14 lines, -0 lines 0 comments Download
M src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -1 line 0 comments Download
M src/client/linux/minidump_writer/minidump_writer.cc View 1 2 3 4 5 6 7 6 chunks +82 lines, -3 lines 0 comments Download
M src/client/linux/minidump_writer/minidump_writer_unittest.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M src/common/dwarf/dwarf2reader.cc View 1 2 3 4 5 6 7 1 chunk +9 lines, -6 lines 0 comments Download
M src/common/dwarf_cfi_to_module.cc View 1 2 3 4 5 6 7 1 chunk +17 lines, -0 lines 0 comments Download
M src/common/dwarf_cfi_to_module.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M src/common/linux/dump_symbols.cc View 1 2 3 4 5 6 7 6 chunks +9 lines, -3 lines 0 comments Download
A src/google_breakpad/common/minidump_cpu_mips.h View 1 2 3 4 5 1 chunk +178 lines, -0 lines 0 comments Download
M src/google_breakpad/common/minidump_format.h View 1 2 3 4 5 6 7 2 chunks +1 line, -1 line 0 comments Download
M src/google_breakpad/processor/minidump.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M src/google_breakpad/processor/stack_frame_cpu.h View 1 2 3 4 5 6 7 1 chunk +66 lines, -0 lines 0 comments Download
M src/processor/minidump.cc View 1 2 3 4 5 6 7 6 chunks +133 lines, -0 lines 0 comments Download
M src/processor/minidump_processor.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M src/processor/minidump_stackwalk.cc View 1 2 3 4 5 6 7 2 chunks +58 lines, -1 line 0 comments Download
M src/processor/minidump_unittest.cc View 1 2 3 4 5 6 7 1 chunk +113 lines, -0 lines 0 comments Download
M src/processor/stackwalker.cc View 1 2 3 4 5 6 7 2 chunks +7 lines, -0 lines 0 comments Download
A src/processor/stackwalker_mips.cc View 1 2 3 4 5 6 7 1 chunk +302 lines, -0 lines 0 comments Download
A src/processor/stackwalker_mips.h View 1 2 3 4 5 6 7 1 chunk +85 lines, -0 lines 0 comments Download
A src/processor/stackwalker_mips_unittest.cc View 1 2 3 4 5 6 7 1 chunk +697 lines, -0 lines 0 comments Download
M src/processor/synth_minidump.cc View 1 2 3 4 5 6 7 1 chunk +36 lines, -0 lines 0 comments Download
M src/processor/synth_minidump.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M src/tools/linux/md2core/minidump-2-core.cc View 1 2 3 4 5 6 7 4 chunks +31 lines, -1 line 0 comments Download

Messages

Total messages: 10
Lei Zhang (chromium)
Here's a first pass. Mostly trying to help get the style right. https://breakpad.appspot.com/614002/diff/16001/configure File configure ...
10 years, 9 months ago #1
Ben Chan
https://breakpad.appspot.com/614002/diff/26001/src/client/linux/minidump_writer/linux_ptrace_dumper.cc File src/client/linux/minidump_writer/linux_ptrace_dumper.cc (right): https://breakpad.appspot.com/614002/diff/26001/src/client/linux/minidump_writer/linux_ptrace_dumper.cc#newcode214 src/client/linux/minidump_writer/linux_ptrace_dumper.cc:214: (void*)(DSP_BASE+(i*2)), &info->hi[i]); use c++ style cast https://breakpad.appspot.com/614002/diff/26001/src/client/linux/minidump_writer/linux_ptrace_dumper.cc#newcode216 src/client/linux/minidump_writer/linux_ptrace_dumper.cc:216: (void*)(DSP_BASE+(i*2)+1), ...
10 years, 9 months ago #2
Lei Zhang (chromium)
https://breakpad.appspot.com/614002/diff/39002/src/client/linux/handler/exception_handler.cc File src/client/linux/handler/exception_handler.cc (right): https://breakpad.appspot.com/614002/diff/39002/src/client/linux/handler/exception_handler.cc#newcode402 src/client/linux/handler/exception_handler.cc:402: // and 'float_state' is not a memeber of CrashContext. ...
10 years, 9 months ago #3
Lei Zhang (chromium)
https://breakpad.appspot.com/614002/diff/39002/src/google_breakpad/common/minidump_cpu_mips.h File src/google_breakpad/common/minidump_cpu_mips.h (right): https://breakpad.appspot.com/614002/diff/39002/src/google_breakpad/common/minidump_cpu_mips.h#newcode178 src/google_breakpad/common/minidump_cpu_mips.h:178: #endif /* GOOGLE_BREAKPAD_COMMON_MINIDUMP_CPU_MIPS_H__ */ nit: #endif // ... https://breakpad.appspot.com/614002/diff/39002/src/processor/stackwalker_mips.cc ...
10 years, 9 months ago #4
vapier
https://breakpad.appspot.com/614002/diff/63002/src/client/linux/handler/exception_handler_unittest.cc File src/client/linux/handler/exception_handler_unittest.cc (right): https://breakpad.appspot.com/614002/diff/63002/src/client/linux/handler/exception_handler_unittest.cc#newcode76 src/client/linux/handler/exception_handler_unittest.cc:76: __builtin___clear_cache(const_cast<char*>(memory), i thought mips provided __NR_cacheflush ? glibc/uClibc provide ...
10 years, 9 months ago #5
cjhopman
Adding ivan.penkov@gmail.com and mark@chromium.org as reviewers.
10 years, 9 months ago #6
mankapura
Add additional reviewers.
10 years, 9 months ago #7
Mark Mentovai
https://breakpad.appspot.com/614002/diff/63002/src/client/linux/handler/exception_handler_unittest.cc File src/client/linux/handler/exception_handler_unittest.cc (right): https://breakpad.appspot.com/614002/diff/63002/src/client/linux/handler/exception_handler_unittest.cc#newcode443 src/client/linux/handler/exception_handler_unittest.cc:443: const unsigned char kIllegalInstruction[] = { 0x48, 0x00, 0x00, ...
10 years, 9 months ago #8
Ivan Penkov
The main issue for me is that the MIPS stackwalker is missing unittests. https://breakpad.appspot.com/614002/diff/63002/src/processor/minidump.cc File ...
10 years, 9 months ago #9
Ivan Penkov
10 years, 8 months ago #10
LGTM.  The unit tests for the MIPS stack walker look good.
Sign in to reply to this message.

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