}
/* Get the simulated stack pointer */
-Addr VG_(get_stack_pointer) ( ThreadId tid )
+Addr VG_(get_SP) ( ThreadId tid )
{
return STACK_PTR( VG_(threads)[tid].arch );
}
-Addr VG_(get_EIP) ( ThreadId tid )
+Addr VG_(get_IP) ( ThreadId tid )
{
return INSTR_PTR( VG_(threads)[tid].arch );
}
if (ret == 0) {
Char file[100];
Int line;
- Addr eip = VG_(get_EIP)(tid);
+ Addr eip = VG_(get_IP)(tid);
if (!VG_(get_filename_linenum)(eip, file, sizeof(file), &line))
file[0] = 0;
list = end = NULL;
- eip = VG_(get_EIP)(tid);
+ eip = VG_(get_IP)(tid);
search_all_scopetabs(eip, &si, &scopeidx);
found = NULL;
keeplist = NULL;
- eip = VG_(get_EIP)(tid);
+ eip = VG_(get_IP)(tid);
list = VG_(get_scope_variables)(tid);
if (memaccount) {
EC_IP ecip;
if (clo_execontext == EC_Some)
- ecip = IP(VG_(get_EIP)(tid), prevstate, tls);
+ ecip = IP(VG_(get_IP)(tid), prevstate, tls);
else
ecip = EC(VG_(get_ExeContext)(tid), prevstate, tls);
setExeContext(a, ecip);
EC_IP ecip;
if (clo_execontext == EC_Some)
- ecip = IP(VG_(get_EIP)(tid), prevstate, tls);
+ ecip = IP(VG_(get_IP)(tid), prevstate, tls);
else
ecip = EC(VG_(get_ExeContext)(tid), prevstate, tls);
setExeContext(a, ecip);
( Bool (*p) ( Addr stack_min, Addr stack_max, void* d ),
void* d );
-/* Get the simulated %esp */
-extern Addr VG_(get_stack_pointer) ( ThreadId tid );
+/* Get parts of the client's state. */
+extern Addr VG_(get_SP) ( ThreadId tid );
+extern Addr VG_(get_IP) ( ThreadId tid );
/*====================================================================*/
extern void VG_(apply_ExeContext)( void(*action)(UInt n, Addr ip),
ExeContext* ec, UInt n_ips );
-/* Just grab the client's IP, as a much smaller and cheaper
- indication of where they are. Use is basically same as for
- VG_(get_ExeContext)() above.
-*/
-extern Addr VG_(get_EIP)( ThreadId tid );
-
/* For tools needing more control over stack traces: walks the stack to get
instruction pointers from the top stack frames for thread 'tid'. Maximum of
'n_ips' addresses put into 'ips'; 0 is the top of the stack, 1 is its
MAC_Error err_extra;
Bool just_below_esp;
- just_below_esp = is_just_below_ESP(
- VG_(get_stack_pointer)(tid),
- a
- );
+ just_below_esp = is_just_below_ESP( VG_(get_SP)(tid), a );
/* If this is caused by an access immediately below %ESP, and the
user asks nicely, we just ignore it. */