]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
make function names more uniform
authorNicholas Nethercote <njn@valgrind.org>
Tue, 22 Mar 2005 04:02:43 +0000 (04:02 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Tue, 22 Mar 2005 04:02:43 +0000 (04:02 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3406

coregrind/vg_main.c
coregrind/vg_symtab2.c
coregrind/vg_symtypes.c
helgrind/hg_main.c
include/tool.h.base
memcheck/mac_needs.c

index dccdc5775189261696ff9307d7bf9b8878c46f48..c924cbf4ad7db8fe5b0db87e21461519a390e4ec 100644 (file)
@@ -324,12 +324,12 @@ void VG_(unimplemented) ( Char* msg )
 }
 
 /* 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 );
 }
index 54e9ebdaed1302c725c6c1bdcdc2426ff080bd79..9cb2a123ad68e1b33667f550f5aa7eca19bd911d 100644 (file)
@@ -2046,7 +2046,7 @@ static UInt *regaddr(ThreadId tid, Int regno)
    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;
@@ -2073,7 +2073,7 @@ Variable *VG_(get_scope_variables)(ThreadId tid)
 
    list = end = NULL;
 
-   eip = VG_(get_EIP)(tid);
+   eip = VG_(get_IP)(tid);
    
    search_all_scopetabs(eip, &si, &scopeidx);
 
index 26a2e0a55f46ab6726e8c863bcab47fa28357e20..4f4b7648e13985be651ca0b6ea5300628f8455fa 100644 (file)
@@ -712,7 +712,7 @@ Char *VG_(describe_addr)(ThreadId tid, Addr addr)
    found = NULL;
    keeplist = NULL;
 
-   eip = VG_(get_EIP)(tid);
+   eip = VG_(get_IP)(tid);
    list = VG_(get_scope_variables)(tid);
 
    if (memaccount) {
index 8d87e4ff542332f7887bc2f3d7d0b11d0204797c..bf9a9d479d88fdc061843539b74b9ea796fa69f5 100644 (file)
@@ -3033,7 +3033,7 @@ static void eraser_mem_read_word(Addr a, ThreadId tid)
       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);
@@ -3138,7 +3138,7 @@ static void eraser_mem_write_word(Addr a, ThreadId tid)
       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);
index ef7779fdff17ad2b9d2784421d363efa2a4b97b1..2ef0f8e3ee0c5a4cab6e8c6b310e52d2c5fe3a22 100644 (file)
@@ -296,8 +296,9 @@ extern ThreadId VG_(first_matching_thread_stack)
                         ( 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 );
 
 
 /*====================================================================*/
@@ -610,12 +611,6 @@ extern ExeContext* VG_(get_ExeContext) ( 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
index d005388836eb7abd1b1726ed70a6c80c8029b744..8612a72ad36f58e2a6b0ae33a3f315aba3c1f7f0 100644 (file)
@@ -441,10 +441,7 @@ void MAC_(record_address_error) ( ThreadId tid, Addr a, Int size,
    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. */