aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.c
diff options
context:
space:
mode:
authorChristopher Faylor <me+cygwin@cgf.cx>1998-11-05 14:08:48 +0000
committerChristopher Faylor <me+cygwin@cgf.cx>1998-11-05 14:08:48 +0000
commit3cee93ac7a3fec53c2499862c9f68413e5f6043d (patch)
tree8cc7af225dfc2a2cb2bd32986b79e8dc65acc1f1 /gdb/top.c
parent8015bd27ec2403f0b9bbe0eeef3a0beb114b0f48 (diff)
downloadgdb-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/top.c')
-rw-r--r--gdb/top.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/top.c b/gdb/top.c
index 18be649..5d3c116 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -1447,7 +1447,15 @@ gdb_readline (prrompt)
}
if (c == '\n')
+#ifndef CRLF_SOURCE_FILES
break;
+#else
+ {
+ if (input_index > 0 && result[input_index - 1] == '\r')
+ input_index--;
+ break;
+ }
+#endif
result[input_index++] = c;
while (input_index >= result_size)