From b3c6f32543f7c7e3a2ef5d70681424fb77e64731 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Tue, 25 Sep 2007 14:44:12 -0700 Subject: X86: Fix for uninitialized variables in stacktrace code. --HG-- extra : convert_revision : d19a03d8c14eb93a99f2c1838a9caa1286804c81 --- src/arch/x86/stacktrace.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/arch') diff --git a/src/arch/x86/stacktrace.cc b/src/arch/x86/stacktrace.cc index bf7059dea..300e8dcd0 100644 --- a/src/arch/x86/stacktrace.cc +++ b/src/arch/x86/stacktrace.cc @@ -154,12 +154,15 @@ namespace X86ISA bool StackTrace::decodeStack(MachInst inst, int &disp) { + disp = 0; return true; } bool StackTrace::decodeSave(MachInst inst, int ®, int &disp) { + reg = 0; + disp = 0; return true; } -- cgit v1.2.3