|
Start refactoring to reduce executable type knowledge.
This creates executable detection functions, a globally shared enum for
describing an executable type, and reduces the number of classes and
locations with executable specific knowledge.
These changes, along with moving architecture specific classes into their
own files should make it easier to produce special purpose clients that
only contain the code required to apply their own form of patch.
DisassemblerWin32EXE, ImagePE, CourgetteWin32X86PatchGenerator, and
CourgetteWin32X86Patcher, and ensemble handling are all heavily affected here.
This should have no effect on the behavior of the system yet, and is instead
all prep-work.
BUG=None
TEST=Unittests
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=103879
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+202 lines, -586 lines) |
Patch |
 |
M |
courgette/courgette.h
|
View
|
1
|
2 chunks |
+15 lines, -2 lines |
0 comments
|
Download
|
 |
M |
courgette/courgette.gyp
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
courgette/courgette_tool.cc
|
View
|
|
3 chunks |
+14 lines, -13 lines |
0 comments
|
Download
|
 |
M |
courgette/disassembler.h
|
View
|
|
2 chunks |
+2 lines, -9 lines |
0 comments
|
Download
|
 |
M |
courgette/disassembler.cc
|
View
|
|
3 chunks |
+16 lines, -392 lines |
0 comments
|
Download
|
 |
A |
courgette/disassembler_win32_x86.h
|
View
|
|
1 chunk |
+56 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
courgette/disassembler_win32_x86.cc
|
View
|
|
3 chunks |
+5 lines, -79 lines |
0 comments
|
Download
|
 |
M |
courgette/encode_decode_unittest.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
courgette/encoded_program_fuzz_unittest.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
courgette/ensemble.h
|
View
|
|
3 chunks |
+12 lines, -10 lines |
0 comments
|
Download
|
 |
M |
courgette/ensemble.cc
|
View
|
|
2 chunks |
+42 lines, -55 lines |
0 comments
|
Download
|
 |
M |
courgette/ensemble_apply.cc
|
View
|
1
|
1 chunk |
+11 lines, -5 lines |
0 comments
|
Download
|
 |
M |
courgette/ensemble_create.cc
|
View
|
1
2
3
|
1 chunk |
+14 lines, -10 lines |
0 comments
|
Download
|
 |
M |
courgette/win32_x86_generator.h
|
View
|
|
2 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
courgette/win32_x86_patcher.h
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
Total messages: 12 (0 generated)
|