From: Tom Tromey <tom@tromey.com>
To: Aditya Vidyadhar Kamath <akamath996@gmail.com>
Cc: ulrich.weigand@de.ibm.com, simon.marchi@polymtl.ca,
tom@tromey.com, gdb-patches@sourceware.org,
Aditya.Kamath1@ibm.com, sangamesh.swamy@in.ibm.com,
PRAJWAL.B.MEHENDARKAR@ibm.com
Subject: Re: [PATCH v5] Fix crash in AIX when current working directory is NULL
Date: Fri, 24 Jul 2026 07:25:17 -0600 [thread overview]
Message-ID: <87cxwcr03m.fsf@tromey.com> (raw)
In-Reply-To: <20260723072131.35657-2-akamath996@gmail.com> (Aditya Vidyadhar Kamath's message of "Thu, 23 Jul 2026 12:51:32 +0530")
>>>>> Aditya Vidyadhar Kamath <akamath996@gmail.com> writes:
Sorry about this, but I didn't closely read the test in the earlier
reviews.
> + /* Exec GDB. */
> + char **gdb_args = malloc ((argc - 1) * sizeof (char *));
> + gdb_args[0] = (char *) gdb_path;
> + for (int i = 3; i < argc; i++)
> + gdb_args[i - 2] = argv[i];
> + gdb_args[argc - 2] = NULL;
execing gdb seems problematic, for instance with a cross build gdb won't
be the same host architecture as this test program.
Is it not possible to start gdb, change its directory, and then remove
the working directory from the .exp file?
Tom
next prev parent reply other threads:[~2026-07-24 13:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-23 7:21 Aditya Vidyadhar Kamath
2026-07-24 13:25 ` Tom Tromey [this message]
2026-07-27 6:48 ` Aditya Kamath
2026-07-27 12:02 ` Ulrich Weigand
2026-07-28 7:00 ` Aditya Kamath
2026-07-28 10:09 ` Ulrich Weigand
2026-07-28 12:35 ` Aditya Kamath
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=87cxwcr03m.fsf@tromey.com \
--to=tom@tromey.com \
--cc=Aditya.Kamath1@ibm.com \
--cc=PRAJWAL.B.MEHENDARKAR@ibm.com \
--cc=akamath996@gmail.com \
--cc=gdb-patches@sourceware.org \
--cc=sangamesh.swamy@in.ibm.com \
--cc=simon.marchi@polymtl.ca \
--cc=ulrich.weigand@de.ibm.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