This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] gdb: Check for nullptr when computing srcpath
- From: "Christian Biesinger via gdb-patches" <gdb-patches at sourceware dot org>
- To: Aaron Merey <amerey at redhat dot com>
- Cc: gdb-patches <gdb-patches at sourceware dot org>
- Date: Thu, 27 Feb 2020 13:33:04 -0600
- Subject: Re: [PATCH] gdb: Check for nullptr when computing srcpath
- References: <CAJDtP-Q8E=Kyf4n8-o3OJ=gKjR4e+sHKTA0FbL0h8uTqF-NmnQ@mail.gmail.com>
- Reply-to: Christian Biesinger <cbiesinger at google dot com>
+ if (build_id != nullptr && srcpath.size () > 0)
I usually prefer !srcpath.empty ()
Also, I would like to second simark's suggestion for git-send-email!
Christian
On Thu, Feb 27, 2020 at 12:00 PM Aaron Merey <amerey@redhat.com> wrote:
>
>