mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-29 07:10:55 +08:00
* objfiles.h: Change type of obj_private to void pointer.
* pa64solib.c: Update copyright. Don't include "assert.h", use strcmp instead of STREQ, use LONGEST, do not use PTR * somsolib.c: Ditto.
This commit is contained in:
@ -1,5 +1,10 @@
|
|||||||
2002-06-08 Andrew Cagney <ac131313@redhat.com>
|
2002-06-08 Andrew Cagney <ac131313@redhat.com>
|
||||||
|
|
||||||
|
* objfiles.h: Change type of obj_private to void pointer.
|
||||||
|
* pa64solib.c: Update copyright. Don't include "assert.h", use
|
||||||
|
strcmp instead of STREQ, use LONGEST, do not use PTR
|
||||||
|
* somsolib.c: Ditto.
|
||||||
|
|
||||||
* config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
|
* config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
|
||||||
bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
|
bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
|
||||||
bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
|
bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
|
||||||
|
@ -360,7 +360,7 @@ struct objfile
|
|||||||
so that it gets freed automatically when reading a new object
|
so that it gets freed automatically when reading a new object
|
||||||
file. */
|
file. */
|
||||||
|
|
||||||
PTR obj_private;
|
void *obj_private;
|
||||||
|
|
||||||
/* Set of relocation offsets to apply to each section.
|
/* Set of relocation offsets to apply to each section.
|
||||||
Currently on the psymbol_obstack (which makes no sense, but I'm
|
Currently on the psymbol_obstack (which makes no sense, but I'm
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/* Handle HP ELF shared libraries for GDB, the GNU Debugger.
|
/* Handle HP ELF shared libraries for GDB, the GNU Debugger.
|
||||||
Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
|
|
||||||
|
Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of GDB.
|
This file is part of GDB.
|
||||||
|
|
||||||
@ -47,7 +48,6 @@
|
|||||||
#include "gdb-stabs.h"
|
#include "gdb-stabs.h"
|
||||||
#include "gdb_stat.h"
|
#include "gdb_stat.h"
|
||||||
#include "gdbcmd.h"
|
#include "gdbcmd.h"
|
||||||
#include "assert.h"
|
|
||||||
#include "language.h"
|
#include "language.h"
|
||||||
#include "regcache.h"
|
#include "regcache.h"
|
||||||
|
|
||||||
@ -109,7 +109,7 @@ static int pa64_solib_st_size_threshold_exceeded;
|
|||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
CORE_ADDR dld_flags_addr;
|
CORE_ADDR dld_flags_addr;
|
||||||
long long dld_flags;
|
LONGEST dld_flags;
|
||||||
sec_ptr dyninfo_sect;
|
sec_ptr dyninfo_sect;
|
||||||
boolean have_read_dld_descriptor;
|
boolean have_read_dld_descriptor;
|
||||||
boolean is_valid;
|
boolean is_valid;
|
||||||
@ -251,7 +251,7 @@ pa64_solib_add_solib_objfile (struct so_list *so, char *name, int from_tty,
|
|||||||
|
|
||||||
/* Now find the true lowest section in the shared library. */
|
/* Now find the true lowest section in the shared library. */
|
||||||
sec = NULL;
|
sec = NULL;
|
||||||
bfd_map_over_sections (tmp_bfd, find_lowest_section, (PTR) &sec);
|
bfd_map_over_sections (tmp_bfd, find_lowest_section, &sec);
|
||||||
|
|
||||||
if (sec)
|
if (sec)
|
||||||
{
|
{
|
||||||
@ -283,7 +283,7 @@ pa64_solib_add_solib_objfile (struct so_list *so, char *name, int from_tty,
|
|||||||
sizeof (obj_private_data_t));
|
sizeof (obj_private_data_t));
|
||||||
obj_private->unwind_info = NULL;
|
obj_private->unwind_info = NULL;
|
||||||
obj_private->so_info = NULL;
|
obj_private->so_info = NULL;
|
||||||
so->objfile->obj_private = (PTR) obj_private;
|
so->objfile->obj_private = obj_private;
|
||||||
}
|
}
|
||||||
|
|
||||||
obj_private = (obj_private_data_t *) so->objfile->obj_private;
|
obj_private = (obj_private_data_t *) so->objfile->obj_private;
|
||||||
@ -1224,13 +1224,13 @@ bfd_lookup_symbol (bfd *abfd, char *symname)
|
|||||||
if (storage_needed > 0)
|
if (storage_needed > 0)
|
||||||
{
|
{
|
||||||
symbol_table = (asymbol **) xmalloc (storage_needed);
|
symbol_table = (asymbol **) xmalloc (storage_needed);
|
||||||
back_to = make_cleanup (xfree, (PTR) symbol_table);
|
back_to = make_cleanup (xfree, symbol_table);
|
||||||
number_of_symbols = bfd_canonicalize_symtab (abfd, symbol_table);
|
number_of_symbols = bfd_canonicalize_symtab (abfd, symbol_table);
|
||||||
|
|
||||||
for (i = 0; i < number_of_symbols; i++)
|
for (i = 0; i < number_of_symbols; i++)
|
||||||
{
|
{
|
||||||
sym = *symbol_table++;
|
sym = *symbol_table++;
|
||||||
if (STREQ (sym->name, symname))
|
if (strcmp (sym->name, symname) == 0)
|
||||||
{
|
{
|
||||||
/* Bfd symbols are section relative. */
|
/* Bfd symbols are section relative. */
|
||||||
symaddr = sym->value + sym->section->vma;
|
symaddr = sym->value + sym->section->vma;
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
/* Handle HP SOM shared libraries for GDB, the GNU Debugger.
|
/* Handle HP SOM shared libraries for GDB, the GNU Debugger.
|
||||||
Copyright 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
|
|
||||||
Free Software Foundation, Inc.
|
Copyright 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 Free
|
||||||
|
Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of GDB.
|
This file is part of GDB.
|
||||||
|
|
||||||
@ -38,7 +39,6 @@
|
|||||||
#include "gdb-stabs.h"
|
#include "gdb-stabs.h"
|
||||||
#include "gdb_stat.h"
|
#include "gdb_stat.h"
|
||||||
#include "gdbcmd.h"
|
#include "gdbcmd.h"
|
||||||
#include "assert.h"
|
|
||||||
#include "language.h"
|
#include "language.h"
|
||||||
#include "regcache.h"
|
#include "regcache.h"
|
||||||
|
|
||||||
@ -319,7 +319,7 @@ som_solib_add_solib_objfile (struct so_list *so, char *name, int from_tty,
|
|||||||
sizeof (obj_private_data_t));
|
sizeof (obj_private_data_t));
|
||||||
obj_private->unwind_info = NULL;
|
obj_private->unwind_info = NULL;
|
||||||
obj_private->so_info = NULL;
|
obj_private->so_info = NULL;
|
||||||
so->objfile->obj_private = (PTR) obj_private;
|
so->objfile->obj_private = obj_private;
|
||||||
}
|
}
|
||||||
|
|
||||||
obj_private = (obj_private_data_t *) so->objfile->obj_private;
|
obj_private = (obj_private_data_t *) so->objfile->obj_private;
|
||||||
|
Reference in New Issue
Block a user