public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [RFAv2 0/3] New option 'set exec-file-mismatch (ask|warn|off)'.  Fixes PR gdb/17626.
@ 2020-01-11 18:11 Philippe Waroquiers
  2020-01-11 18:11 ` [RFAv2 1/3] Implement 'set/show exec-file-mismatch' Philippe Waroquiers
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Philippe Waroquiers @ 2020-01-11 18:11 UTC (permalink / raw)
  To: gdb-patches

New option 'set exec-file-mismatch (ask|warn|off)'.  Fixes PR gdb/17626.

This option allows to tell GDB to detect and possibly handle mismatched
exec-files.

A recurrent problem with GDB is that GDB uses the wrong exec-file
when using the attach/detach commands successively.
Also, in case the user specifies a file on the command line but attaches
to the wrong PID, this error is not made visible and gives a not user
understandable behaviour.

RFA 1/3 Implement 'set/show exec-file-mismatch'.
   implements the option.
RFA 2/2 modifies gdb.base/attach.exp to test the option.
RFA 3/3 documents the option in NEWS and in gdb.texinfo

This is the second version of the RFA.
This version handles the comments of Eli about the documentation.
As discussed, the option values have been changed to 'ask|warn|off'
(ask was previouly reload).

Some early comments were given by Tom on the RFC.
Some feedback related to these comments:
  * I have styled the warning/error messages mentionning files in exec.c

  * Related to new lines in the warning message: many other warning
    messages have new lines.  I have kept them, as it looks to me that
    the message is more clear like that.  Of course, I can remove them
    if deemed better without.

  * What happens if the inferior execs another program ?
    This option only controls the behaviour when attaching to a running
    program.  The behaviour of 'exec' is not changed: GDB already properly
    determines the executable to use after exec.



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-01-25 11:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-11 18:11 [RFAv2 0/3] New option 'set exec-file-mismatch (ask|warn|off)'. Fixes PR gdb/17626 Philippe Waroquiers
2020-01-11 18:11 ` [RFAv2 1/3] Implement 'set/show exec-file-mismatch' Philippe Waroquiers
2020-01-11 18:11 ` [RFAv2 2/3] Test 'set exec-file-mismatch ask|warn|off' Philippe Waroquiers
2020-01-11 18:19 ` [RFAv2 3/3] Document 'set|show exec-file-mismatch (ask|warn|off)' Philippe Waroquiers
2020-01-11 18:44   ` Eli Zaretskii
2020-01-23 14:55 ` PING Re: [RFAv2 0/3] New option 'set exec-file-mismatch (ask|warn|off)'. Fixes PR gdb/17626 Philippe Waroquiers
2020-01-23 21:23   ` Tom Tromey
2020-01-25 16:47     ` Philippe Waroquiers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).