diff options
author | Ivan Penkov <ivanpe@chromium.org> | 2016-02-16 11:46:04 -0800 |
---|---|---|
committer | Ivan Penkov <ivanpe@chromium.org> | 2016-02-16 11:46:04 -0800 |
commit | dee15c254745e7703abca30f4498372b6fe8bf0c (patch) | |
tree | 73ba01abc857512f97745682ad18578e63f686b6 /src/processor/exploitability_linux.h | |
parent | Ensure Linux minidump writer flushes minidump header early. (diff) | |
download | breakpad-dee15c254745e7703abca30f4498372b6fe8bf0c.tar.xz |
Fixing a flaky Linux exploitability unittest.
BUG=https://code.google.com/p/chromium/issues/detail?id=584174
R=mmandlis@chromium.org
Review URL: https://codereview.chromium.org/1697963002 .
Diffstat (limited to 'src/processor/exploitability_linux.h')
-rw-r--r-- | src/processor/exploitability_linux.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/processor/exploitability_linux.h b/src/processor/exploitability_linux.h index 93c5082f..e3ff13b6 100644 --- a/src/processor/exploitability_linux.h +++ b/src/processor/exploitability_linux.h @@ -86,6 +86,13 @@ class ExploitabilityLinux : public Exploitability { const unsigned int MAX_OBJDUMP_BUFFER_LEN, char *objdump_output_buffer); + // Parses the objdump output given in |objdump_output_buffer| and extracts + // the line of the first instruction into |instruction_line|. Returns true + // when the instruction line is successfully extracted. + static bool GetObjdumpInstructionLine( + const char *objdump_output_buffer, + string *instruction_line); + // Tokenizes out the operation and operands from a line of instruction // disassembled by objdump. This method modifies the pointers to match the // tokens of the instruction, and returns if the tokenizing was a success. |