diff options
Diffstat (limited to 'include/bfd.h')
-rw-r--r-- | include/bfd.h | 45 |
1 files changed, 21 insertions, 24 deletions
diff --git a/include/bfd.h b/include/bfd.h index 425e9ff..3f44d55 100644 --- a/include/bfd.h +++ b/include/bfd.h @@ -78,8 +78,8 @@ typedef unsigned long bfd_word; typedef unsigned long bfd_size; typedef unsigned long symvalue; typedef unsigned long bfd_size_type; -#define printf_vma(x) printf( "%08x", x) -#define fprintf_vma(s,x) fprintf(s, "%08x", x) +#define printf_vma(x) printf( "%08lx", x) +#define fprintf_vma(s,x) fprintf(s, "%08lx", x) #endif typedef unsigned int flagword; /* 32 bits of flags */ @@ -914,7 +914,7 @@ struct _bfd */ char *iostream; - /* Is the file being cached @xref{Caching}. + /* Is the file being cached @xref{File Caching}. */ boolean cacheable; @@ -1050,18 +1050,6 @@ before); else determine modify time, cache it, and return it. #define bfd_stat_arch_elt(abfd, stat) \ BFD_SEND (abfd, _bfd_stat_arch_elt,(abfd, stat)) - /* Special entry points for gdb to swap in coff symbol table parts */ - -#define bfd_coff_swap_aux_in(abfd, ext, type, class, in) \ - BFD_SEND (abfd, _bfd_coff_swap_aux_in, (abfd, ext, type, class, in)) - -#define bfd_coff_swap_sym_in(abfd, ext, in) \ - BFD_SEND (abfd, _bfd_coff_swap_sym_in, (abfd, ext, in)) - -#define bfd_coff_swap_lineno_in(abfd, ext, in) \ - BFD_SEND (abfd, _bfd_coff_swap_lineno_in, (abfd, ext, in)) - - /* What this does */ PROTO(symindex, bfd_get_next_mapent, (bfd *, symindex, carsym **)); @@ -1078,6 +1066,22 @@ NULL is returned when there are no more. */ PROTO(bfd*, bfd_openr_next_archived_file, (bfd *archive, bfd *previous)); +/* Returns a read-only string explaining what program was running when +it failed and produced the core file being read + +*/ +PROTO(CONST char *, bfd_core_file_failing_command, (bfd *)); +/* Returns the signal number which caused the core dump which generated +the file the bfd is attatched to. + +*/ +PROTO(int, bfd_core_file_failing_signal, (bfd *)); +/* Returns @code{true} if the core file attatched to @var{core_bfd} was +generated by a run of the executable file attatched to @var{exec_bfd}, +or else @code{false}. +*/ +PROTO(boolean, core_file_matches_executable_p, + (bfd *core_bfd, bfd *exec_bfd)); /* The relocation routine returns as a status an enumerated type: */ @@ -1138,7 +1142,7 @@ typedef struct reloc_cache_entry /* Pointer to how to perform the required relocation */ - struct reloc_howto_struct *howto; + CONST struct reloc_howto_struct *howto; } arelent; /* The @code{reloc_howto_type} is a structure which contains all the @@ -1263,6 +1267,7 @@ PROTO(bfd_reloc_status_enum_type, asection *input_section, bfd *output_bfd)); /* @node bfd_target +@subsection bfd_target This structure contains everything that BFD knows about a target. It includes things like its byte order, name, what routines to call to do various operations, etc. @@ -1519,13 +1524,5 @@ returns a pointer to a const string "invalid", "object", "archive", "core" or "unknown" depending upon the value of the enumeration. */ PROTO(CONST char *, bfd_format_string, (bfd_format)); - -/* Core file stuff */ - -PROTO(CONST char *, bfd_core_file_failing_command, (bfd *)); -PROTO(int, bfd_core_file_failing_signal, (bfd *)); -PROTO(boolean, core_file_matches_executable_p, - (bfd *core_bfd, bfd *exec_bfd)); - #endif |