aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2001-01-24 02:34:07 +0000
committerAlan Modra <amodra@gmail.com>2001-01-24 02:34:07 +0000
commit8855cbcaee0bef033091975fde7ea2678b622016 (patch)
tree42760ad266ecea2426c458b38e7cd0170bd848a8 /binutils
parentef0997542c5c996e43f9a8fb339a1f742bd2cd4a (diff)
downloadgdb-8855cbcaee0bef033091975fde7ea2678b622016.zip
gdb-8855cbcaee0bef033091975fde7ea2678b622016.tar.gz
gdb-8855cbcaee0bef033091975fde7ea2678b622016.tar.bz2
* stabs.c: Update copyright. Include "filenames.h".
(parse_stab): Use IS_ABSOLUTE_PATH. Ignore N_WARNING stabs.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/stabs.c20
2 files changed, 10 insertions, 15 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 573f833..dd86b65 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2001-01-24 Mark Elbrecht <snowball3@bigfoot.com>
+
+ * stabs.c: Update copyright. Include "filenames.h".
+ (parse_stab): Use IS_ABSOLUTE_PATH. Ignore N_WARNING stabs.
+
2001-01-23 Jakub Jelinek <jakub@redhat.com>
* readelf.c (process_version_sections): Check if VERDEF or VERNEED
diff --git a/binutils/stabs.c b/binutils/stabs.c
index 90f7666..daea301 100644
--- a/binutils/stabs.c
+++ b/binutils/stabs.c
@@ -1,5 +1,6 @@
/* stabs.c -- Parse stabs debugging information
- Copyright (C) 1995, 96, 97, 98, 99, 2000 Free Software Foundation, Inc.
+ Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001
+ Free Software Foundation, Inc.
Written by Ian Lance Taylor <ian@cygnus.com>.
This file is part of GNU Binutils.
@@ -33,6 +34,7 @@
#include "demangle.h"
#include "debug.h"
#include "budbg.h"
+#include "filenames.h"
/* Meaningless definition needs by aout64.h. FIXME. */
#define BYTES_IN_WORD 4
@@ -40,14 +42,6 @@
#include "aout/aout64.h"
#include "aout/stab_gnu.h"
-#ifndef DIR_SEPARATOR
-#ifdef _WIN32
-#define DIR_SEPARATOR '\\'
-#else
-#define DIR_SEPARATOR '/'
-#endif
-#endif
-
/* The number of predefined XCOFF types. */
#define XCOFF_TYPE_COUNT 34
@@ -568,12 +562,7 @@ parse_stab (dhandle, handle, type, desc, value, string)
f = info->so_string;
- if ( (string[0] == '/')
- || (string[0] == DIR_SEPARATOR)
- || ( (DIR_SEPARATOR == '\\')
- && (string[1] == ':')
- && ( (string[2] == DIR_SEPARATOR)
- || (string[2] == '/'))))
+ if (IS_ABSOLUTE_PATH (string))
info->so_string = xstrdup (string);
else
info->so_string = concat (info->so_string, string,
@@ -706,6 +695,7 @@ parse_stab (dhandle, handle, type, desc, value, string)
case N_OBJ:
case N_ENDM:
case N_MAIN:
+ case N_WARNING:
break;
}