This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Update comment for target::get_thread_local_address.


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=cd250a1898bb6fdb41f4a1063dbcfac04affcd11

commit cd250a1898bb6fdb41f4a1063dbcfac04affcd11
Author: John Baldwin <jhb@FreeBSD.org>
Date:   Tue Mar 12 13:39:02 2019 -0700

    Update comment for target::get_thread_local_address.
    
    There isn't an 'objfile' parameter, instead 'load_module_addr' is used
    to indicate the executable or shared library.  Also, the function
    throws errors rather than returning error values.
    
    gdb/ChangeLog:
    
    	* target.h (target::get_thread_local_address): Update comment.

Diff:
---
 gdb/ChangeLog | 4 ++++
 gdb/target.h  | 4 ++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f025452..2edc6d5 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
 2019-03-12  John Baldwin  <jhb@FreeBSD.org>
 
+	* target.h (target::get_thread_local_address): Update comment.
+
+2019-03-12  John Baldwin  <jhb@FreeBSD.org>
+
 	* solib-svr4.c (svr4_fetch_objfile_link_map): Look for
 	objfile->separate_debug_objfile_backlink if not NULL.
 
diff --git a/gdb/target.h b/gdb/target.h
index c95151a..5fe6aa7 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -718,9 +718,9 @@ struct target_ops
       TARGET_DEFAULT_NORETURN (tcomplain ());
     /* Return the thread-local address at OFFSET in the
        thread-local storage for the thread PTID and the shared library
-       or executable file given by OBJFILE.  If that block of
+       or executable file given by LOAD_MODULE_ADDR.  If that block of
        thread-local storage hasn't been allocated yet, this function
-       may return an error.  LOAD_MODULE_ADDR may be zero for statically
+       may throw an error.  LOAD_MODULE_ADDR may be zero for statically
        linked multithreaded inferiors.  */
     virtual CORE_ADDR get_thread_local_address (ptid_t ptid,
 						CORE_ADDR load_module_addr,


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]