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