aboutsummaryrefslogtreecommitdiff
path: root/gdb/cadillac.c
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1992-06-27 19:16:47 +0000
committerFred Fish <fnf@specifix.com>1992-06-27 19:16:47 +0000
commit74fb91be98e302d465b5770e0f5b661fa96d5d46 (patch)
tree0e353a80c4b024f7528dfe74799638c73cac90ed /gdb/cadillac.c
parent5b88adf7a241897a0752ed4c44686d6ba95796bc (diff)
downloadgdb-74fb91be98e302d465b5770e0f5b661fa96d5d46.zip
gdb-74fb91be98e302d465b5770e0f5b661fa96d5d46.tar.gz
gdb-74fb91be98e302d465b5770e0f5b661fa96d5d46.tar.bz2
* sparc-pinsn.c: Use <string.h> rather than "string.h", for
consistency with all other gdb files. * cadillac.c: Use <string.h> rather than <strings.h>. * cadillac.c (kernel_dispatch): Convert rindex usage to strrchr. * Makefile.in (MAKE): Remove definition for consistency with other Makefile.in files and to fix problem with recursive makes.
Diffstat (limited to 'gdb/cadillac.c')
-rwxr-xr-xgdb/cadillac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/cadillac.c b/gdb/cadillac.c
index ef9e1e8..4f59924 100755
--- a/gdb/cadillac.c
+++ b/gdb/cadillac.c
@@ -43,7 +43,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <signal.h>
#include <sys/errno.h>
#include <termios.h>
-#include <strings.h>
+#include <string.h>
/* Non-zero means that we're doing the cadillac interface. */
int cadillac = 0;
@@ -949,7 +949,7 @@ kernel_dispatch(queue)
char *tail;
int skipped;
- tail = rindex(req->newBreakpoint.fileName.text, '/');
+ tail = strrchr(req->newBreakpoint.fileName.text, '/');
if (!tail)
tail = req->newBreakpoint.fileName.text;
else