From 52935b4e812f413beaf294b24e5677c0324f98b6 Mon Sep 17 00:00:00 2001 From: "ted.mielczarek@gmail.com" Date: Mon, 17 Sep 2012 14:01:28 +0000 Subject: 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 --- src/google_breakpad/processor/minidump.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/google_breakpad') 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. -- cgit v1.2.1