aboutsummaryrefslogtreecommitdiff
path: root/gdb/procfs.c
diff options
context:
space:
mode:
authorPeter Schauer <Peter.Schauer@mytum.de>1996-02-03 11:32:34 +0000
committerPeter Schauer <Peter.Schauer@mytum.de>1996-02-03 11:32:34 +0000
commit255181a9ed97f7f2d8a283bc48e5b3f9f324beb8 (patch)
treeb1be7f543a0a4d4d2718423ca80bb5b3798f87ef /gdb/procfs.c
parentc2b6884b9717eb48570f4e602b09f70ce9744aa4 (diff)
downloadgdb-255181a9ed97f7f2d8a283bc48e5b3f9f324beb8.zip
gdb-255181a9ed97f7f2d8a283bc48e5b3f9f324beb8.tar.gz
gdb-255181a9ed97f7f2d8a283bc48e5b3f9f324beb8.tar.bz2
* dwarfread.c (read_func_scope): Avoid GDB core dumps if
AT_name tag is missing. * procfs.c (procfs_stopped_by_watchpoint): Fix logic when FLTWATCH and FLTKWATCH are defined. * remote.c (remote_read_bytes): Advance memaddr for transfers, return number of bytes transferred for partial reads. * top.c (init_signals): Reset SIGTRAP to SIG_DFL.
Diffstat (limited to 'gdb/procfs.c')
-rw-r--r--gdb/procfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/procfs.c b/gdb/procfs.c
index 55dc5bd..edc062b 100644
--- a/gdb/procfs.c
+++ b/gdb/procfs.c
@@ -1,5 +1,5 @@
/* Machine independent support for SVR4 /proc (process file system) for GDB.
- Copyright 1991, 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
+ Copyright 1991, 1992, 1993, 1994, 1995, 1996 Free Software Foundation, Inc.
Written by Fred Fish at Cygnus Support.
This file is part of GDB.
@@ -3711,7 +3711,7 @@ procfs_stopped_by_watchpoint(pid)
what = pi->prstatus.pr_what;
if (why == PR_FAULTED
#if defined (FLTWATCH) && defined (FLTKWATCH)
- && (what == FLTWATCH) || (what == FLTKWATCH)
+ && (what == FLTWATCH || what == FLTKWATCH)
#else
#ifdef FLTWATCH
&& (what == FLTWATCH)