X86: Fix for uninitialized variables in stacktrace code.
authorGabe Black <gblack@eecs.umich.edu>
Tue, 25 Sep 2007 21:44:12 +0000 (14:44 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Tue, 25 Sep 2007 21:44:12 +0000 (14:44 -0700)
--HG--
extra : convert_revision : d19a03d8c14eb93a99f2c1838a9caa1286804c81

src/arch/x86/stacktrace.cc

index bf7059dea716fedbcfff2c74622e8702811a2381..300e8dcd024e5a35179225b69549f123d638b996 100644 (file)
@@ -154,12 +154,15 @@ namespace X86ISA
     bool
     StackTrace::decodeStack(MachInst inst, int &disp)
     {
+        disp = 0;
         return true;
     }
 
     bool
     StackTrace::decodeSave(MachInst inst, int &reg, int &disp)
     {
+        reg = 0;
+        disp = 0;
         return true;
     }