From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1141) id 9949D382E2A2; Fri, 20 May 2022 14:17:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9949D382E2A2 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Joel Brobecker To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Fix non-pointer type compilation error in aix-thread.c X-Act-Checkin: binutils-gdb X-Git-Author: Aditya Vidyadhar Kamath X-Git-Refname: refs/heads/master X-Git-Oldrev: b43771b045fb5616da3964f2994eefbe8ae70d32 X-Git-Newrev: f270fd72f6694daa74cbd4d42a1ed3aaeddb8e38 Message-Id: <20220520141710.9949D382E2A2@sourceware.org> Date: Fri, 20 May 2022 14:17:10 +0000 (GMT) X-BeenThere: gdb-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 May 2022 14:17:10 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Df270fd72f669= 4daa74cbd4d42a1ed3aaeddb8e38 commit f270fd72f6694daa74cbd4d42a1ed3aaeddb8e38 Author: Aditya Vidyadhar Kamath Date: Fri May 20 07:16:34 2022 -0700 Fix non-pointer type compilation error in aix-thread.c =20 In aix-thread.c we use ms->value_address () to get the symbol address. This triggers the following compiler error... =20 base operand of '->' has non-pointer type 'bound_minimal_symbol' =20 ... because ms is not a pointer. =20 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 *sy= mbols, int count) gdb_printf (gdb_stdlog, " returning PDC_FAILURE\n"); return PDC_FAILURE; } - symbols[i].addr =3D ms->value_address (); + symbols[i].addr =3D ms.value_address (); } if (debug_aix_thread) gdb_printf (gdb_stdlog, " symbols[%d].addr =3D %s\n", @@ -969,7 +969,7 @@ pd_enable (void) ms =3D lookup_minimal_symbol (stub_name, NULL, NULL); if (ms.minsym =3D=3D NULL) return; - pd_brk_addr =3D ms->value_address (); + pd_brk_addr =3D ms.value_address (); if (!create_thread_event_breakpoint (target_gdbarch (), pd_brk_addr)) return;