don't overwrite the CTF info with the symbol table.
This commit is contained in:
parent
9917eb09cf
commit
3f6811bc27
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: kern_ksyms.c,v 1.69 2013/01/17 14:36:36 matt Exp $ */
|
/* $NetBSD: kern_ksyms.c,v 1.70 2013/04/07 00:49:45 chs Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2008 The NetBSD Foundation, Inc.
|
* Copyright (c) 2008 The NetBSD Foundation, Inc.
|
||||||
@ -71,7 +71,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: kern_ksyms.c,v 1.69 2013/01/17 14:36:36 matt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: kern_ksyms.c,v 1.70 2013/04/07 00:49:45 chs Exp $");
|
||||||
|
|
||||||
#if defined(_KERNEL) && defined(_KERNEL_OPT)
|
#if defined(_KERNEL) && defined(_KERNEL_OPT)
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
@ -508,7 +508,7 @@ ksyms_addsyms_elf(int symsize, void *start, void *end)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
addsymtab("netbsd", symstart, symsize, strstart, strsize,
|
addsymtab("netbsd", symstart, symsize, strstart, strsize,
|
||||||
&kernel_symtab, start, ctfstart, ctfsize, ksyms_nmap);
|
&kernel_symtab, symstart, ctfstart, ctfsize, ksyms_nmap);
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
aprint_normal("Loaded initial symtab at %p, strtab at %p, # entries %ld\n",
|
aprint_normal("Loaded initial symtab at %p, strtab at %p, # entries %ld\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user