mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-10 12:22:20 +08:00
Rename function arguments to avoid shadowing global symbols of the same name.
This commit is contained in:
@ -1,3 +1,12 @@
|
|||||||
|
2002-07-31 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
* bfd.c (bfd_alt_mach_code): Rename parameter 'index' to
|
||||||
|
'alternative' in order to avoid shadowing global symbol of the
|
||||||
|
same name.
|
||||||
|
* bfd-in2.h: Regenerate.
|
||||||
|
* libbfd.h: Regenerate.
|
||||||
|
* libcoff.h: Regenerate.
|
||||||
|
|
||||||
2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
|
2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
|
||||||
|
|
||||||
* Makefile.am: Add n32 ABI support.
|
* Makefile.am: Add n32 ABI support.
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
/* DO NOT EDIT! -*- buffer-read-only: t -*- This file is automatically
|
/* DO NOT EDIT! -*- buffer-read-only: t -*- This file is automatically
|
||||||
generated from "bfd-in.h", "init.c", "opncls.c", "libbfd.c",
|
generated from "bfd-in.h", "init.c", "opncls.c", "libbfd.c" and
|
||||||
"section.c", "archures.c", "reloc.c", "syms.c", "bfd.c", "archive.c",
|
"section.c".
|
||||||
"corefile.c", "targets.c" and "format.c".
|
|
||||||
Run "make headers" in your build bfd/ to regenerate. */
|
Run "make headers" in your build bfd/ to regenerate. */
|
||||||
|
|
||||||
/* Main header file for the bfd library -- portable access to object files.
|
/* Main header file for the bfd library -- portable access to object files.
|
||||||
@ -3663,7 +3662,7 @@ extern bfd_byte *bfd_get_relocated_section_contents
|
|||||||
boolean, asymbol **));
|
boolean, asymbol **));
|
||||||
|
|
||||||
boolean
|
boolean
|
||||||
bfd_alt_mach_code PARAMS ((bfd *abfd, int index));
|
bfd_alt_mach_code PARAMS ((bfd *abfd, int alternative));
|
||||||
|
|
||||||
/* Extracted from archive.c. */
|
/* Extracted from archive.c. */
|
||||||
symindex
|
symindex
|
||||||
|
10
bfd/bfd.c
10
bfd/bfd.c
@ -1334,27 +1334,27 @@ FUNCTION
|
|||||||
bfd_alt_mach_code
|
bfd_alt_mach_code
|
||||||
|
|
||||||
SYNOPSIS
|
SYNOPSIS
|
||||||
boolean bfd_alt_mach_code(bfd *abfd, int index);
|
boolean bfd_alt_mach_code(bfd *abfd, int alternative);
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
|
|
||||||
When more than one machine code number is available for the
|
When more than one machine code number is available for the
|
||||||
same machine type, this function can be used to switch between
|
same machine type, this function can be used to switch between
|
||||||
the preferred one (index == 0) and any others. Currently,
|
the preferred one (alternative == 0) and any others. Currently,
|
||||||
only ELF supports this feature, with up to two alternate
|
only ELF supports this feature, with up to two alternate
|
||||||
machine codes.
|
machine codes.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
boolean
|
boolean
|
||||||
bfd_alt_mach_code (abfd, index)
|
bfd_alt_mach_code (abfd, alternative)
|
||||||
bfd *abfd;
|
bfd *abfd;
|
||||||
int index;
|
int alternative;
|
||||||
{
|
{
|
||||||
if (bfd_get_flavour (abfd) == bfd_target_elf_flavour)
|
if (bfd_get_flavour (abfd) == bfd_target_elf_flavour)
|
||||||
{
|
{
|
||||||
int code;
|
int code;
|
||||||
|
|
||||||
switch (index)
|
switch (alternative)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
code = get_elf_backend_data (abfd)->elf_machine_code;
|
code = get_elf_backend_data (abfd)->elf_machine_code;
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
/* DO NOT EDIT! -*- buffer-read-only: t -*- This file is automatically
|
/* DO NOT EDIT! -*- buffer-read-only: t -*- This file is automatically
|
||||||
generated from "libbfd-in.h", "init.c", "libbfd.c", "cache.c",
|
generated from "proto.str chew".
|
||||||
"reloc.c", "archures.c" and "elf.c".
|
|
||||||
Run "make headers" in your build bfd/ to regenerate. */
|
Run "make headers" in your build bfd/ to regenerate. */
|
||||||
|
|
||||||
/* libbfd.h -- Declarations used by bfd library *implementation*.
|
/* libbfd.h -- Declarations used by bfd library *implementation*.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* DO NOT EDIT! -*- buffer-read-only: t -*- This file is automatically
|
/* DO NOT EDIT! -*- buffer-read-only: t -*- This file is automatically
|
||||||
generated from "libcoff-in.h" and "coffcode.h".
|
generated from "proto.str chew".
|
||||||
Run "make headers" in your build bfd/ to regenerate. */
|
Run "make headers" in your build bfd/ to regenerate. */
|
||||||
|
|
||||||
/* BFD COFF object file private structure.
|
/* BFD COFF object file private structure.
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
2002-07-31 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
* addr2line.c (process_file): Rename parameter 'filename' to
|
||||||
|
'file_name' in order to avoid shadowing global symbol of the
|
||||||
|
same name.
|
||||||
|
(main): Likewise.
|
||||||
|
|
||||||
2002-07-30 Jakub Jelinek <jakub@redhat.com>
|
2002-07-30 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
* readelf.c (OPTION_DEBUG_DUMP): Define.
|
* readelf.c (OPTION_DEBUG_DUMP): Define.
|
||||||
|
@ -233,19 +233,19 @@ translate_addresses (abfd)
|
|||||||
/* Process a file. */
|
/* Process a file. */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
process_file (filename, target)
|
process_file (file_name, target)
|
||||||
const char *filename;
|
const char *file_name;
|
||||||
const char *target;
|
const char *target;
|
||||||
{
|
{
|
||||||
bfd *abfd;
|
bfd *abfd;
|
||||||
char **matching;
|
char **matching;
|
||||||
|
|
||||||
abfd = bfd_openr (filename, target);
|
abfd = bfd_openr (file_name, target);
|
||||||
if (abfd == NULL)
|
if (abfd == NULL)
|
||||||
bfd_fatal (filename);
|
bfd_fatal (file_name);
|
||||||
|
|
||||||
if (bfd_check_format (abfd, bfd_archive))
|
if (bfd_check_format (abfd, bfd_archive))
|
||||||
fatal (_("%s: can not get addresses from archive"), filename);
|
fatal (_("%s: can not get addresses from archive"), file_name);
|
||||||
|
|
||||||
if (! bfd_check_format_matches (abfd, bfd_object, &matching))
|
if (! bfd_check_format_matches (abfd, bfd_object, &matching))
|
||||||
{
|
{
|
||||||
@ -278,7 +278,7 @@ main (argc, argv)
|
|||||||
int argc;
|
int argc;
|
||||||
char **argv;
|
char **argv;
|
||||||
{
|
{
|
||||||
const char *filename;
|
const char *file_name;
|
||||||
char *target;
|
char *target;
|
||||||
int c;
|
int c;
|
||||||
|
|
||||||
@ -297,7 +297,7 @@ main (argc, argv)
|
|||||||
bfd_init ();
|
bfd_init ();
|
||||||
set_default_bfd_target ();
|
set_default_bfd_target ();
|
||||||
|
|
||||||
filename = NULL;
|
file_name = NULL;
|
||||||
target = NULL;
|
target = NULL;
|
||||||
while ((c = getopt_long (argc, argv, "b:Ce:sfHhVv", long_options, (int *) 0))
|
while ((c = getopt_long (argc, argv, "b:Ce:sfHhVv", long_options, (int *) 0))
|
||||||
!= EOF)
|
!= EOF)
|
||||||
@ -324,7 +324,7 @@ main (argc, argv)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'e':
|
case 'e':
|
||||||
filename = optarg;
|
file_name = optarg;
|
||||||
break;
|
break;
|
||||||
case 's':
|
case 's':
|
||||||
base_names = true;
|
base_names = true;
|
||||||
@ -346,13 +346,13 @@ main (argc, argv)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (filename == NULL)
|
if (file_name == NULL)
|
||||||
filename = "a.out";
|
file_name = "a.out";
|
||||||
|
|
||||||
addr = argv + optind;
|
addr = argv + optind;
|
||||||
naddr = argc - optind;
|
naddr = argc - optind;
|
||||||
|
|
||||||
process_file (filename, target);
|
process_file (file_name, target);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user