Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-6]: src/gnu/usr.sbin/dbsym Pull up revision 1.5 (requested by t...
details: https://anonhg.NetBSD.org/src/rev/b3353f10bace
branches: netbsd-1-6
changeset: 529246:b3353f10bace
user: he <he%NetBSD.org@localhost>
date: Sun Nov 03 13:29:08 2002 +0000
description:
Pull up revision 1.5 (requested by thorpej in ticket #785):
Pull in config.h if building as a host tool.
bfd_vma is not a pointer type, so use 0 instead of NULL.
diffstat:
gnu/usr.sbin/dbsym/dbsym.c | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r 392c0b2f2ef5 -r b3353f10bace gnu/usr.sbin/dbsym/dbsym.c
--- a/gnu/usr.sbin/dbsym/dbsym.c Sun Nov 03 13:25:11 2002 +0000
+++ b/gnu/usr.sbin/dbsym/dbsym.c Sun Nov 03 13:29:08 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dbsym.c,v 1.4 2002/04/08 14:20:41 bjh21 Exp $ */
+/* $NetBSD: dbsym.c,v 1.4.2.1 2002/11/03 13:29:08 he Exp $ */
/*
* Copyright (c) 2001 Simon Burge (for Wasabi Systems)
@@ -38,9 +38,13 @@
#endif /* not lint */
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: dbsym.c,v 1.4 2002/04/08 14:20:41 bjh21 Exp $");
+__RCSID("$NetBSD: dbsym.c,v 1.4.2.1 2002/11/03 13:29:08 he Exp $");
#endif /* not lint */
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <sys/param.h>
#include <sys/mman.h>
#include <sys/stat.h>
@@ -63,9 +67,9 @@
size_t offset;
} db_symtab_symbols[] = {
#define X_DB_SYMTAB 0
- { "_db_symtab", NULL, 0 },
+ { "_db_symtab", 0, 0 },
#define X_DB_SYMTABSIZE 1
- { "_db_symtabsize", NULL, 0 },
+ { "_db_symtabsize", 0, 0 },
{ NULL }
};
@@ -233,7 +237,7 @@
free(symbol_table);
for (s = symbols; s->name != NULL; s++) {
- if (s->vma == NULL)
+ if (s->vma == 0)
return (1);
for (p = abfd->sections; p != NULL; p = p->next) {
Home |
Main Index |
Thread Index |
Old Index