public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Fix non-pointer type compilation error in aix-thread.c
@ 2022-05-20 14:17 Joel Brobecker
  0 siblings, 0 replies; only message in thread
From: Joel Brobecker @ 2022-05-20 14:17 UTC (permalink / raw)
  To: gdb-cvs

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

commit f270fd72f6694daa74cbd4d42a1ed3aaeddb8e38
Author: Aditya Vidyadhar Kamath <ADITYA.VIDYADHAR.KAMATH@ibm.com>
Date:   Fri May 20 07:16:34 2022 -0700

    Fix non-pointer type compilation error in aix-thread.c
    
    In aix-thread.c we use ms->value_address () to get the symbol address.
    This triggers the following compiler error...
    
         base operand of '->'  has non-pointer type 'bound_minimal_symbol'
    
    ... because ms is not a pointer.
    
    This commit fixes this error by using ms.value_address () instead.

Diff:
---
 gdb/aix-thread.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gdb/aix-thread.c b/gdb/aix-thread.c
index 4e41cde6694..ecd8200b692 100644
--- a/gdb/aix-thread.c
+++ b/gdb/aix-thread.c
@@ -360,7 +360,7 @@ pdc_symbol_addrs (pthdb_user_t user, pthdb_symbol_t *symbols, int count)
 		gdb_printf (gdb_stdlog, " returning PDC_FAILURE\n");
 	      return PDC_FAILURE;
 	    }
-	  symbols[i].addr = ms->value_address ();
+	  symbols[i].addr = ms.value_address ();
 	}
       if (debug_aix_thread)
 	gdb_printf (gdb_stdlog, "  symbols[%d].addr = %s\n",
@@ -969,7 +969,7 @@ pd_enable (void)
   ms = lookup_minimal_symbol (stub_name, NULL, NULL);
   if (ms.minsym == NULL)
     return;
-  pd_brk_addr = ms->value_address ();
+  pd_brk_addr = ms.value_address ();
   if (!create_thread_event_breakpoint (target_gdbarch (), pd_brk_addr))
     return;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-20 14:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-20 14:17 [binutils-gdb] Fix non-pointer type compilation error in aix-thread.c Joel Brobecker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).