diff options
author | ted.mielczarek@gmail.com <ted.mielczarek@gmail.com@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2012-09-17 14:01:28 +0000 |
---|---|---|
committer | ted.mielczarek@gmail.com <ted.mielczarek@gmail.com@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2012-09-17 14:01:28 +0000 |
commit | 52935b4e812f413beaf294b24e5677c0324f98b6 (patch) | |
tree | 69bafaa55473940b8568f001ea068fde445a5452 /src/google_breakpad/processor | |
parent | Make my_str_len/my_itos take uintmax_t (diff) | |
download | breakpad-52935b4e812f413beaf294b24e5677c0324f98b6.tar.xz |
Add a GetInstructionPointer method to MinidumpException
R=mark at https://breakpad.appspot.com/444003/
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1039 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/google_breakpad/processor')
-rw-r--r-- | src/google_breakpad/processor/minidump.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/google_breakpad/processor/minidump.h b/src/google_breakpad/processor/minidump.h index 3dfbef2b..03337796 100644 --- a/src/google_breakpad/processor/minidump.h +++ b/src/google_breakpad/processor/minidump.h @@ -178,6 +178,10 @@ class MinidumpContext : public MinidumpStream { // MD_CONTEXT_* bits masked out. Returns 0 on failure. u_int32_t GetContextCPU() const; + // A convenience method to get the instruction pointer out of the + // MDRawContext, since it varies per-CPU architecture. + bool GetInstructionPointer(u_int64_t* ip) const; + // Returns raw CPU-specific context data for the named CPU type. If the // context data does not match the CPU type or does not exist, returns // NULL. |