public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
From: Joel Brobecker <brobecke@sourceware.org>
To: gdb-cvs@sourceware.org
Subject: [binutils-gdb] Fix non-pointer type compilation error in aix-thread.c
Date: Fri, 20 May 2022 14:17:10 +0000 (GMT)	[thread overview]
Message-ID: <20220520141710.9949D382E2A2@sourceware.org> (raw)

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;


                 reply	other threads:[~2022-05-20 14:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220520141710.9949D382E2A2@sourceware.org \
    --to=brobecke@sourceware.org \
    --cc=gdb-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).