This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA 3/3] Document 'set|show exec-file-mismatch (reload|warn|off)'
- From: Tom Tromey <tom at tromey dot com>
- To: "Christian Biesinger via gdb-patches" <gdb-patches at sourceware dot org>
- Cc: Philippe Waroquiers <philippe dot waroquiers at skynet dot be>, Christian Biesinger <cbiesinger at google dot com>
- Date: Tue, 07 Jan 2020 17:52:12 -0700
- Subject: Re: [RFA 3/3] Document 'set|show exec-file-mismatch (reload|warn|off)'
- References: <20191221143632.15990-1-philippe.waroquiers@skynet.be> <20191221143632.15990-4-philippe.waroquiers@skynet.be> <CAPTJ0XFS8ey34xpdHxU-uX_qiyLxv3WoQPpa1_hXu_eB5LNkUQ@mail.gmail.com>
Christian> When would someone set this to off, or even warn? I'm wondering is it makes
Christian> sense to add this setting vs always having the reload behavior?
Last time this stuff came up, it turned out there are users who point
gdb at the file with debug symbols while debugging a stripped version on
the target. IIRC, at the time, build-id and separate debuginfo weren't
widely used, so this was the main way to do this kind of thing.
I don't know if this is still important. I've only run into trouble
with this behavior, so I welcome the new default at least.
Tom