From f270fd72f6694daa74cbd4d42a1ed3aaeddb8e38 Mon Sep 17 00:00:00 2001 From: Aditya Vidyadhar Kamath Date: Fri, 20 May 2022 07:16:34 -0700 Subject: [PATCH] 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. --- 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; -- 2.30.2