aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorPeter Schauer <Peter.Schauer@mytum.de>1997-03-15 08:53:41 +0000
committerPeter Schauer <Peter.Schauer@mytum.de>1997-03-15 08:53:41 +0000
commitac7a8760f52dc95b10eb07c370224b0ae19b66d4 (patch)
treeb28ec79428073525e2a04c0f3ad5f093f9f16b09 /gdb
parent2adb092c95241e0a4b56c31047b7027921b40e60 (diff)
downloadgdb-ac7a8760f52dc95b10eb07c370224b0ae19b66d4.zip
gdb-ac7a8760f52dc95b10eb07c370224b0ae19b66d4.tar.gz
gdb-ac7a8760f52dc95b10eb07c370224b0ae19b66d4.tar.bz2
* breakpoint.c (insert_breakpoints, watchpoint_check,
bpstat_stop_status): Do not disable watchpoints going out of scope. (insert_breakpoints): Make sure that the current frame is valid before calling find_frame_addr_in_frame_chain. * top.c (setup_user_args): Handle quotes and backslashes. (print_gdb_version): Update copyright year.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog10
-rw-r--r--gdb/top.c39
2 files changed, 45 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 6e61906..722efff 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,13 @@
+Sat Mar 15 00:50:46 1997 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
+
+ * breakpoint.c (insert_breakpoints, watchpoint_check,
+ bpstat_stop_status): Do not disable watchpoints going out of scope.
+ (insert_breakpoints): Make sure that the current frame is valid
+ before calling find_frame_addr_in_frame_chain.
+
+ * top.c (setup_user_args): Handle quotes and backslashes.
+ (print_gdb_version): Update copyright year.
+
Fri Mar 14 15:44:03 1997 Ian Lance Taylor <ian@cygnus.com>
* Makefile.in (elfread.o): Depend upon elf-bfd.h and elf/mips.h.
diff --git a/gdb/top.c b/gdb/top.c
index 3afa8c9..de2069a 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -1,5 +1,5 @@
/* Top level stuff for GDB, the GNU debugger.
- Copyright 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996
+ Copyright 1986, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 1997
Free Software Foundation, Inc.
This file is part of GDB.
@@ -1025,6 +1025,9 @@ setup_user_args (p)
while (*p)
{
char *start_arg;
+ int squote = 0;
+ int dquote = 0;
+ int bsquote = 0;
if (arg_count >= MAXUSERARGS)
{
@@ -1042,8 +1045,36 @@ setup_user_args (p)
user_args->a[arg_count].arg = p;
/* Get to the end of this argument. */
- while (*p && *p != ' ' && *p != '\t')
- p++;
+ while (*p)
+ {
+ if (((*p == ' ' || *p == '\t')) && !squote && !dquote && !bsquote)
+ break;
+ else
+ {
+ if (bsquote)
+ bsquote = 0;
+ else if (*p == '\\')
+ bsquote = 1;
+ else if (squote)
+ {
+ if (*p == '\'')
+ squote = 0;
+ }
+ else if (dquote)
+ {
+ if (*p == '"')
+ dquote = 0;
+ }
+ else
+ {
+ if (*p == '\'')
+ squote = 1;
+ else if (*p == '"')
+ dquote = 1;
+ }
+ p++;
+ }
+ }
user_args->a[arg_count].len = p - start_arg;
arg_count++;
@@ -2763,7 +2794,7 @@ print_gdb_version (stream)
/* Second line is a copyright notice. */
- fprintf_filtered (stream, "Copyright 1996 Free Software Foundation, Inc.\n");
+ fprintf_filtered (stream, "Copyright 1997 Free Software Foundation, Inc.\n");
/* Following the copyright is a brief statement that the program is
free software, that users are free to copy and change it on