diff options
author | Christopher Faylor <me+cygwin@cgf.cx> | 1998-11-05 14:08:48 +0000 |
---|---|---|
committer | Christopher Faylor <me+cygwin@cgf.cx> | 1998-11-05 14:08:48 +0000 |
commit | 3cee93ac7a3fec53c2499862c9f68413e5f6043d (patch) | |
tree | 8cc7af225dfc2a2cb2bd32986b79e8dc65acc1f1 /gdb/config | |
parent | 8015bd27ec2403f0b9bbe0eeef3a0beb114b0f48 (diff) | |
download | gdb-3cee93ac7a3fec53c2499862c9f68413e5f6043d.zip gdb-3cee93ac7a3fec53c2499862c9f68413e5f6043d.tar.gz gdb-3cee93ac7a3fec53c2499862c9f68413e5f6043d.tar.bz2 |
* top.c (gdb_readline): Allow CRLF line termination on systems
which define CRLF_SOURCE_FILES.
* win32-nat.c: 1) Add thread support, 2) fix ability to attach to
a running process, and 3) implement limited support for cygwin
signals.
(thread_rec): New function.
(child_add_thread): Ditto.
(child_init_thread_list): Ditto.
(child_delete_thread): Ditto.
(do_child_fetch_inferior_registers): Ditto.
(do_child_store_inferior_registers): Ditto.
(handle_output_debug_string): Ditto.
(child_fetch_inferior_registers): Use do_* function to perform
operation.
(child_store_inferior_registers): Ditto.
(child_continue): Ditto.
(child_thread_alive): Ditto.
(cygwin_pid_to_str): Ditto.
(handle_load_dll): Reorganize, add first attempt at reading
dll names from attached processes. Change info messages to provide
more information when dll is already loaded.
(handle_exception): Changes mandated by new thread-aware structures.
(child_wait): Track thread creation/destruction. Handle cygwin
signals.
(child_create_inferior): Ditto.
(child_resume): Ditto.
(child_kill_inferior): Ditto. Close child process handle to avoid a
handle leak.
(child_ops): Fill out child_ops fields that deal with threads.
* config/i386/tm-cygwin32.h: Declare function and macro needed
for converting a cygwin "pid" to a string.
* config/i386/xm-cygwin32.h: define HAVE_SIGSETMASK as 0 since
sigsetmask is not defined in cygwin.
Diffstat (limited to 'gdb/config')
-rw-r--r-- | gdb/config/i386/tm-cygwin32.h | 4 | ||||
-rw-r--r-- | gdb/config/i386/xm-cygwin32.h | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/config/i386/tm-cygwin32.h b/gdb/config/i386/tm-cygwin32.h index f7464ba..b1ad894 100644 --- a/gdb/config/i386/tm-cygwin32.h +++ b/gdb/config/i386/tm-cygwin32.h @@ -119,7 +119,9 @@ double_to_i387 PARAMS ((char *, char *)); #define NAMES_HAVE_UNDERSCORE - #define IN_SOLIB_CALL_TRAMPOLINE(pc, name) skip_trampoline_code (pc, name) #define SKIP_TRAMPOLINE_CODE(pc) skip_trampoline_code (pc, 0) extern CORE_ADDR skip_trampoline_code PARAMS ((CORE_ADDR pc, char *name)); + +extern char *cygwin_pid_to_str PARAMS ((int pid)); +#define target_pid_to_str(PID) cygwin_pid_to_str (PID) diff --git a/gdb/config/i386/xm-cygwin32.h b/gdb/config/i386/xm-cygwin32.h index b722f97..4482780 100644 --- a/gdb/config/i386/xm-cygwin32.h +++ b/gdb/config/i386/xm-cygwin32.h @@ -34,3 +34,5 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Define this if source files use \r\n rather than just \n. */ #define CRLF_SOURCE_FILES + +#define HAVE_SIGSETMASK 0 |