This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] gdb: Catch exceptions if the source file is not found
- From: Shahab Vahedi <shahab dot vahedi at gmail dot com>
- To: Tom Tromey <tom at tromey dot com>
- Cc: Andrew Burgess <andrew dot burgess at embecosm dot com>, gdb-patches at sourceware dot org, Shahab Vahedi <shahab at synopsys dot com>, Claudiu Zissulescu <claziss at synopsys dot com>, Francois Bedard <fbedard at synopsys dot com>
- Date: Thu, 6 Feb 2020 14:19:32 +0100
- Subject: Re: [PATCH] gdb: Catch exceptions if the source file is not found
- References: <20200122140818.84308-1-shahab.vahedi@gmail.com> <20200122154901.GK3865@embecosm.com> <20200122163217.GA3311@gmail.com> <87lfpyxcp3.fsf@tromey.com>
Hi Tom,
On Thu, Jan 23, 2020 at 11:14:16AM -0700, Tom Tromey wrote:
> >>>>> "Shahab" == Shahab Vahedi <shahab.vahedi@gmail.com> writes:
>
> Shahab> It is just a matter of time for me to write my _first_ test.
> Shahab> If the changes are OK, I will submit the test in a separate
> Shahab> patch if you don't mind. I just don't want this fix fall
> Shahab> through the cracks as apparently it did once according to
> Shahab> Tom.
>
> Is this needed for gdb 9? If so, then perhaps it can land on the branch
This issue does exist even in GDB 8.3. Nevertheless, I have included
the test into the latest patch [1]. That patch [1] has addressed the
latest remarks [2] from Andrew and should be fine.
A good way to check if the issue also happens for GDB 9 is by running
the test in a GDB 9 branch. I don't have one ready now, but if you
want I can give it a try.
Cheers,
Shahab
[1]
https://sourceware.org/ml/gdb-patches/2020-02/msg00127.html
[2]
https://sourceware.org/ml/gdb-patches/2020-02/msg00126.html
> without a test. For trunk there's normally no particular rush to get
> things in, and I think it would be good to have the test at the same
> time.
>
> Tom