Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Aditya Kamath <Aditya.Kamath1@ibm.com>
To: Ulrich Weigand <Ulrich.Weigand@de.ibm.com>,
	"akamath996@gmail.com" <akamath996@gmail.com>,
	"tom@tromey.com" <tom@tromey.com>,
	"simon.marchi@polymtl.ca" <simon.marchi@polymtl.ca>
Cc: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>,
	SANGAMESH MALLAYYA <sangamesh.swamy@in.ibm.com>
Subject: Re: [PATCH] Fix AIX SIGSEGV for multi thread debugging.
Date: Wed, 24 Jun 2026 09:07:17 +0000	[thread overview]
Message-ID: <LV8PR15MB64886338C9BC5012ED912ED6D6ED2@LV8PR15MB6488.namprd15.prod.outlook.com> (raw)
In-Reply-To: <db2b82790043bbf00e21b4d4d153239fb229fba4.camel@de.ibm.com>

[-- Attachment #1: Type: text/plain, Size: 1401 bytes --]

Thank you.

I have pushed the same.

https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=5c5998bb64bf567ec9194208522a5fde7e6e01cb

From: Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
Date: Tuesday, 23 June 2026 at 5:27 PM
To: akamath996@gmail.com <akamath996@gmail.com>; tom@tromey.com <tom@tromey.com>; simon.marchi@polymtl.ca <simon.marchi@polymtl.ca>
Cc: gdb-patches@sourceware.org <gdb-patches@sourceware.org>; SANGAMESH MALLAYYA <sangamesh.swamy@in.ibm.com>; Aditya Kamath <Aditya.Kamath1@ibm.com>
Subject: Re: [PATCH] Fix AIX SIGSEGV for multi thread debugging.

Aditya Vidyadhar Kamath <akamath996@gmail.com> wrote:

>diff --git a/gdb/aix-thread.c b/gdb/aix-thread.c
>index 675d8d5070c..5ac71d22237 100644
>--- a/gdb/aix-thread.c
>+++ b/gdb/aix-thread.c
>@@ -974,7 +974,12 @@ pd_enable (inferior *inf)
>     = lookup_minimal_symbol (current_program_space, stub_name);
>   if (ms.minsym == NULL)
>     return;
>-  data->pd_brk_addr = ms.value_address ();
>+
>+  /* On AIX, symbols can be function descriptors, so we need to
>resolve
>+     them to get the actual code address.  */
>+  if (!msymbol_is_function (ms.objfile, ms.minsym, &data-
>>pd_brk_addr))
>+    return;
>+
>   if (!create_thread_event_breakpoint (current_inferior ()->arch (),
>                                      data->pd_brk_addr))
>     return;

This is OK.

Thanks,
Ulrich

[-- Attachment #2: Type: text/html, Size: 3634 bytes --]

      reply	other threads:[~2026-06-24  9:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-22  7:03 Aditya Vidyadhar Kamath
2026-06-23 11:57 ` Ulrich Weigand
2026-06-24  9:07   ` Aditya Kamath [this message]

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=LV8PR15MB64886338C9BC5012ED912ED6D6ED2@LV8PR15MB6488.namprd15.prod.outlook.com \
    --to=aditya.kamath1@ibm.com \
    --cc=Ulrich.Weigand@de.ibm.com \
    --cc=akamath996@gmail.com \
    --cc=gdb-patches@sourceware.org \
    --cc=sangamesh.swamy@in.ibm.com \
    --cc=simon.marchi@polymtl.ca \
    --cc=tom@tromey.com \
    /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