mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-06 19:54:18 +00:00
Add an explanatory message for when instruction decoding fails.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4817
This commit is contained in:
parent
65e1e0b804
commit
c8792e1e81
@ -780,6 +780,15 @@ VgSchedReturnCode VG_(scheduler) ( ThreadId tid )
|
||||
}
|
||||
|
||||
case VEX_TRC_JMP_NODECODE:
|
||||
#define M(a) VG_(message)(Vg_UserMsg, a);
|
||||
M("Your program just tried to execute an instruction that Valgrind");
|
||||
M("did not recognise. This might be because your program has a bug");
|
||||
M("and erroneously jumped to a non-code location. If you are running");
|
||||
M("Memcheck, you might have just seen a warning about a bad jump,");
|
||||
M("which is a good indication that this is so. Or it might be" );
|
||||
M("because the instruction is unimplemented in Valgrind; if you");
|
||||
M("think this is the case, or you are not sure, please let us know.");
|
||||
#undef M
|
||||
VG_(synth_sigill)(tid, VG_(get_IP)(tid));
|
||||
break;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user