This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH V2][PR gdb/8527] Fix interrupt (^C) in Solaris


This patch addresses an issue in Solaris, bug 8527.

This is my second submission for this issue with
changes recommended by Joel Brobecker:

* changelog formatting
* comments explaining reason for the change

The problem:

If gdb attaches to a process that either has no controlling
terminal, or the controlling terminal differs from the one
gdb is running under, hitting ^C doesn't interrupt the
debugged process.

The change makes it possible to interrupt/resume
without any apparent problems, but I don't know the
ramifications of these changes.  I ran across this
issue and a fix that was proposed 12 years ago.

Joel indicates this change has been in the Adacore
GDB branch for quite a long time.

Lastly:

* I don't have DejaGNU and I cannot get it built/installed
in a short time frame.  Suffice it to say this isn't a near-term
option.  I'm sorry, I would have ran the tests if I could.
* I'm working on an airgapped machine.  These changes
were hand-copied.  I won't be able to push these changes
myself.

-brian

Attachment: gdb-8527-patch.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]