old-cross-binutils/gdb/solib-null.c
Pedro Alves 0542c86dbb * target.h (struct section_table): Rename to ...
(struct target_section): ... this.
	* exec.c: Adjust all references.
	* exec.h: Adjust all references.
	* nto-tdep.c: Adjust all references.
	* nto-tdep.h: Adjust all references.
	* ppc-linux-tdep.c: Adjust all references.
	* rs6000-nat.c: Adjust all references.
	* s390-tdep.c: Adjust all references.
	* solib-darwin.c: Adjust all references.
	* solib-frv.c: Adjust all references.
	* solib-irix.c: Adjust all references.
	* solib-null.c: Adjust all references.
	* solib-osf.c: Adjust all references.
	* solib-pa64.c: Adjust all references.
	* solib-som.c: Adjust all references.
	* solib-sunos.c: Adjust all references.
	* solib-svr4.c: Adjust all references.
	* solib-target.c: Adjust all references.
	* solib.c: Adjust all references.
	* solist.h: Adjust all references.
	* symfile.c: Adjust all references.
	* symfile.h: Adjust all references.
	* target.c: Adjust all references.
2009-05-22 23:49:14 +00:00

88 lines
2.2 KiB
C

/* Definitions for targets without shared libraries for GDB, the GNU Debugger.
Copyright (C) 2004, 2007, 2008, 2009 Free Software Foundation, Inc.
This file is part of GDB.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h"
#include "solist.h"
static struct so_list *
null_current_sos (void)
{
return NULL;
}
static void
null_special_symbol_handling (void)
{
}
static void
null_solib_create_inferior_hook (void)
{
}
static void
null_clear_solib (void)
{
}
static void
null_free_so (struct so_list *so)
{
xfree (so->lm_info);
}
static void
null_relocate_section_addresses (struct so_list *so,
struct target_section *sec)
{
}
static int
null_open_symbol_file_object (void *from_ttyp)
{
return 0;
}
static int
null_in_dynsym_resolve_code (CORE_ADDR pc)
{
return 0;
}
static struct target_so_ops null_so_ops;
extern initialize_file_ftype _initialize_null_solib; /* -Wmissing-prototypes */
void
_initialize_null_solib (void)
{
null_so_ops.relocate_section_addresses = null_relocate_section_addresses;
null_so_ops.free_so = null_free_so;
null_so_ops.clear_solib = null_clear_solib;
null_so_ops.solib_create_inferior_hook = null_solib_create_inferior_hook;
null_so_ops.special_symbol_handling = null_special_symbol_handling;
null_so_ops.current_sos = null_current_sos;
null_so_ops.open_symbol_file_object = null_open_symbol_file_object;
null_so_ops.in_dynsym_resolve_code = null_in_dynsym_resolve_code;
/* Set current_target_so_ops to null_so_ops if not already set. */
if (current_target_so_ops == 0)
current_target_so_ops = &null_so_ops;
}