binutils-gdb.git
30 years ago * configure.in: Only set host_makefile_frag if config
David MacKenzie [Thu, 28 Apr 1994 22:04:49 +0000 (22:04 +0000)]
* configure.in: Only set host_makefile_frag if config
directory exists.

30 years agoBack-migrate minor changes in these files from 94Q1 progressive into devo:
Bill Cox [Thu, 28 Apr 1994 21:49:40 +0000 (21:49 +0000)]
Back-migrate minor changes in these files from 94Q1 progressive into devo:
dejagnu/ChangeLog, dejagnu/Makefile.in,
dejagnu/example/calc/Makefile.in, dejagnu/lib/remote.exp,
dejagnu/testsuite/Makefile.in,
dejagnu/testsuite/runtest.all/options.exp,
gcc/testsuite/config/unix.exp, gdb/testsuite/Makefile.in,
ld/ChangeLog, newlib/testsuite/ChangeLog, texinfo/testsuite/ChangeLog

30 years ago* annotate.texi: New file, to document annotations.
Jim Kingdon [Thu, 28 Apr 1994 21:43:10 +0000 (21:43 +0000)]
* annotate.texi: New file, to document annotations.

30 years ago * utils.c, defs.h (error_begin): New function.
Jim Kingdon [Thu, 28 Apr 1994 21:38:15 +0000 (21:38 +0000)]
* utils.c, defs.h (error_begin): New function.
(quit): Print annotation before printing the error message.
* main.c (return_to_top_level): Print annotation before doing the
longjmp.
* symtab.c (decode_line_1): Call error not warning and then
return_to_top_level.  Call error_begin and printf_unfiltered
rather calling warning (before calls to return_to_top_level).
* core.c (memory_error): Use error_begin, printf_unfiltered,
print_address_numeric and return_to_top_level instead of error.
Cleans up a FIXME-32x64.
* language.c (type_error, range_error): Call error_begin
not just target_terminal_ours.

30 years ago * dbxread.c (stabsect_build_psymtabs): Assign to sym_stab_info
Jim Kingdon [Thu, 28 Apr 1994 20:10:45 +0000 (20:10 +0000)]
* dbxread.c (stabsect_build_psymtabs): Assign to sym_stab_info
directly, rather than via DBX_SYMFILE_INFO.  A cast on the left
side of an assignment is non-portable.

30 years agoadd gdba.el
Jim Kingdon [Thu, 28 Apr 1994 19:47:46 +0000 (19:47 +0000)]
add gdba.el

30 years agox
Jim Kingdon [Thu, 28 Apr 1994 19:46:25 +0000 (19:46 +0000)]
x

30 years ago* annotate.texi: New file, to document annotations.
Jim Kingdon [Thu, 28 Apr 1994 19:43:30 +0000 (19:43 +0000)]
* annotate.texi: New file, to document annotations.

30 years agoOops, wrong file name
Jim Kingdon [Thu, 28 Apr 1994 18:34:29 +0000 (18:34 +0000)]
Oops, wrong file name

30 years agonew, emacs gdb mode with annotation stuff
Jim Kingdon [Thu, 28 Apr 1994 18:34:28 +0000 (18:34 +0000)]
new, emacs gdb mode with annotation stuff

30 years ago* annotate.texi: New file, to document annotations.
Jim Kingdon [Thu, 28 Apr 1994 16:54:02 +0000 (16:54 +0000)]
* annotate.texi: New file, to document annotations.

30 years ago(prompt_for_continue): Likewise for prompt-for-continue annotation.
Jim Kingdon [Thu, 28 Apr 1994 16:04:36 +0000 (16:04 +0000)]
(prompt_for_continue): Likewise for prompt-for-continue annotation.

30 years ago * utils.c (query): Change syntax of query annotations to be
Jim Kingdon [Thu, 28 Apr 1994 15:48:15 +0000 (15:48 +0000)]
* utils.c (query): Change syntax of query annotations to be
consistent with other input annotations.

30 years agonew, to document annotations
Jim Kingdon [Thu, 28 Apr 1994 14:43:44 +0000 (14:43 +0000)]
new, to document annotations

30 years ago * mdebugread.c (psymtab_to_symtab_1): Do not call sort_blocks
Peter Schauer [Thu, 28 Apr 1994 08:29:22 +0000 (08:29 +0000)]
* mdebugread.c (psymtab_to_symtab_1):  Do not call sort_blocks
for stabs symtabs.
* mips-tdep.c (mips_skip_prologue):  Handle prologues for functions
that have a stack frame size of 32k or larger (from Paul Flinders).
Remove #if 0'd code.

30 years ago* config/tc-mips.c (s_option): Only refer to g_switch_* variables if GPOPT is
Ken Raeburn [Thu, 28 Apr 1994 06:25:53 +0000 (06:25 +0000)]
* config/tc-mips.c (s_option): Only refer to g_switch_* variables if GPOPT is
defined.
(s_abicalls): Ditto.
(md_apply_fix): Cast char* to unsigned char* to avoid pointer mismatch.

30 years agoWed Apr 27 16:33:51 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Wed, 27 Apr 1994 23:35:49 +0000 (23:35 +0000)]
Wed Apr 27 16:33:51 1994  Stan Shebs  (shebs@andros.cygnus.com)

* lynx-nat.c (CANNOT_STORE_REGISTER): Add a fallback definition
for Lynx platforms that need it.
* config/nm-lynx.h (__LYNXOS): Define if not already defined.

30 years ago * procfs.c (procfs_wait): Use the signal from the pr_info rather
Jim Kingdon [Wed, 27 Apr 1994 23:10:26 +0000 (23:10 +0000)]
* procfs.c (procfs_wait): Use the signal from the pr_info rather
than trying to deduce it from the fault.

30 years ago * scripttempl/sa29200.sc: Align all sections to four byte
Ian Lance Taylor [Wed, 27 Apr 1994 20:04:55 +0000 (20:04 +0000)]
* scripttempl/sa29200.sc: Align all sections to four byte
boundaries.

30 years ago * printcmd.c (print_address_symbolic): Initialize name to empty
Steve Chamberlain [Wed, 27 Apr 1994 19:31:08 +0000 (19:31 +0000)]
* printcmd.c (print_address_symbolic): Initialize name to empty
string to avoid core dump if lookup fails.
* remote-e7000.c (printf_e7000debug): Error if target not open.

30 years ago* install.sh: If $dstdir exists, don't check whether each component does.
David MacKenzie [Wed, 27 Apr 1994 19:19:56 +0000 (19:19 +0000)]
* install.sh: If $dstdir exists, don't check whether each component does.

30 years ago * h8300.h (dec, inc): Get encoding right.
Steve Chamberlain [Wed, 27 Apr 1994 18:30:33 +0000 (18:30 +0000)]
* h8300.h (dec, inc): Get encoding right.

30 years ago * Makefile.in (syslex, sysinfo): Use CC_FOR_BUILD.
Steve Chamberlain [Wed, 27 Apr 1994 18:27:18 +0000 (18:27 +0000)]
* Makefile.in (syslex, sysinfo): Use CC_FOR_BUILD.
* coffdump.c, coffgroc.c, coffgrog.h, srconv.c, sysdump.c,
sysroff.info: Major changes.

30 years agoFix dos on H'digits..
Steve Chamberlain [Wed, 27 Apr 1994 18:19:42 +0000 (18:19 +0000)]
Fix dos on H'digits..

30 years ago * configure.in (i386-*-go32): Uses coff now.
Steve Chamberlain [Wed, 27 Apr 1994 18:15:14 +0000 (18:15 +0000)]
* configure.in (i386-*-go32): Uses coff now.
* gasp.c (main): Now takes -D on command line.
(show_usage): Describe new options.

30 years agoMore testcases.
Steve Chamberlain [Wed, 27 Apr 1994 18:03:31 +0000 (18:03 +0000)]
More testcases.

30 years ago * Makefile.in, configure.in: Support for go32 coff.
Steve Chamberlain [Wed, 27 Apr 1994 17:52:13 +0000 (17:52 +0000)]
* Makefile.in, configure.in: Support for go32 coff.
* config/i386-go32.mt: New file
* emulparams/i386go32.sh: New file
* scripttempl/i386go32.sc: New file

30 years agoTrying to make yesterday's "simplification" actually work...
Ken Raeburn [Wed, 27 Apr 1994 17:19:58 +0000 (17:19 +0000)]
Trying to make yesterday's "simplification" actually work...

30 years ago * nlm/gdbserve.c (putDebugChar): Install bug fix from i386-nlmstub.
Stu Grossman [Wed, 27 Apr 1994 05:50:42 +0000 (05:50 +0000)]
* nlm/gdbserve.c (putDebugChar):  Install bug fix from i386-nlmstub.
* (hex2mem):  Init ptr.
* General cleanups to use ConsolePrintf, standard prologues, etc...

30 years ago * i386-nlmstub.c: Update to be more in line with PIN stub.
Stu Grossman [Wed, 27 Apr 1994 05:50:14 +0000 (05:50 +0000)]
* i386-nlmstub.c:  Update to be more in line with PIN stub.
* nlm/gdbserve.c (putDebugChar):  Install bug fix from i386-nlmstub.
* (hex2mem):  Init ptr.
* General cleanups to use ConsolePrintf, standard prologues, etc...

30 years ago * gdb.t17/callfuncs.exp: More comments about t_func_values tests.
Jeff Law [Wed, 27 Apr 1994 05:24:08 +0000 (05:24 +0000)]
    * gdb.t17/callfuncs.exp: More comments about t_func_values tests.
        * gdb.t17/gdbme.c (t_func_values): Add comments about how and why
        the code has been restructured.

30 years ago[Sharp eyes, Jim...]
Stu Grossman [Wed, 27 Apr 1994 01:39:38 +0000 (01:39 +0000)]
[Sharp eyes, Jim...]
* remote.c:
* (get_offsets):  Temporary kludge to force data & bss sections to
have the same relocation.

30 years agoRemove new Mac files.
Stan Shebs [Wed, 27 Apr 1994 01:27:49 +0000 (01:27 +0000)]
Remove new Mac files.

30 years agoTue Apr 26 18:18:24 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Wed, 27 Apr 1994 01:21:56 +0000 (01:21 +0000)]
Tue Apr 26 18:18:24 1994  Stan Shebs  (shebs@andros.cygnus.com)

* objdump.c (print_section_stabs): Indicate the stab header symbol
more clearly, print numbers of unrecognized stab n_type values.

30 years agoTue Apr 26 18:10:40 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Wed, 27 Apr 1994 01:17:25 +0000 (01:17 +0000)]
Tue Apr 26 18:10:40 1994  Stan Shebs  (shebs@andros.cygnus.com)

* mpw-xconfig.in (archname): Only set ARCH_mips if targeting Mips.

30 years agoTue Apr 26 17:44:27 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Wed, 27 Apr 1994 00:55:59 +0000 (00:55 +0000)]
Tue Apr 26 17:44:27 1994  Stan Shebs  (shebs@andros.cygnus.com)

* mpw-make.in (MacGDB): New target, standalone Mac-hosted gdb.
(XDEPFILES): Define.
(main.c.o): Compile with gC instead of C.
* mac-defs.h: New file, menu etc definitions shared between
C and Rez files.
* macgdb.r: New file, Rez (resource compiler) resource
definitions.
* mac-xdep.c: New file, Mac host interface code.
* config/m68k/xm-mpw.h (PATHNAME_SEPARATOR): Rename to
DIRNAME_SEPARATOR.
(PATHNAME_SEPARATOR_STRING): Remove.
(SIGQUIT, SIGHUP): Define.
(fileno, R_OK): Define.

30 years agoTue Apr 26 17:20:03 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Wed, 27 Apr 1994 00:31:11 +0000 (00:31 +0000)]
Tue Apr 26 17:20:03 1994  Stan Shebs  (shebs@andros.cygnus.com)

* Makefile.in (em_m68klynx.c, em_i386lynx.c, em_sparclynx.c): Use
Lynx-specific script templates.
* configure.in (sparclite*-*-coff): Use coff-sparc.
* emulparams/i386lynx.sh (SCRIPT_NAME): Set to i386lynx.
* emulparams/sparclynx.sh (SCRIPT_NAME): Set to sparclynx.
(ENTRY): Set to __main.
* scripttempl/i386lynx.sc: New file, script for I386 Lynx.
* scripttempl/m68klynx.sc: Add insertion of ctor/dtor sections.
* scripttempl/sparclynx.sc: New file, script for uSparc Lynx.

30 years ago * i386-nlmstub.c: More changes to be compatible with remote.c.
Stu Grossman [Tue, 26 Apr 1994 22:39:20 +0000 (22:39 +0000)]
* i386-nlmstub.c:  More changes to be compatible with remote.c.

30 years agom68k changes - optional reg pfx, apollo, delta, init
Ken Raeburn [Tue, 26 Apr 1994 22:22:51 +0000 (22:22 +0000)]
m68k changes - optional reg pfx, apollo, delta, init

30 years ago* tc-m68k.c (flag_reg_prefix_optional): New variable. Initialized to value of
Ken Raeburn [Tue, 26 Apr 1994 22:21:15 +0000 (22:21 +0000)]
* tc-m68k.c (flag_reg_prefix_optional): New variable.  Initialized to value of
REGISTER_PREFIX_OPTIONAL, if defined, or zero.
(m68k_reg_parse): If flag_reg_prefix_optional is set, permit register prefix to
be absent.
(m68k_ip_op): Accept `&' also for immediate constants.
(insert_reg): Don't bother with (two!?) sanity checks of the symbol table when
inserting each register.
(m68k_parse_long_option): New function.  Set flag_reg_prefix_optional if
"register-prefix-optional" is passed.
* tc-m68k.h (REGISTER_PREFIX): Always define if not already defined.
(OPTIONAL_REGISTER_PREFIX): Don't define.
(REGISTER_PREFIX_OPTIONAL): If not already defined, define as zero
or one depending on M68KCOFF.

Some changes to help Apollo support, from troy@cbme.unsw.edu.au:
* tc-m68k.c (DATA, ADDR, SP, FPREG, COPNUM, BAD, BAC): Define as macros instead
of enumerators, since the Apollo compiler can't handle "enumVal1, enumVal2 =
enumVal1" when defining an enum type.
(make_pcrel_absolute) [NO_PCREL_RELOCS]: New function.
(tc_coff_fix2rtype) [NO_PCREL_RELOCS]: Generate only R_RELBYTE, R_DIR16, and
R_DIR32 relocs.
* tc-m68k.h [TE_APOLLO] (COFF_MAGIC, COFF_AOUTHDR_MAGIC): Use Apollo versions.
[TE_APOLLO] (OBJ_COFF_OMIT_OPTIONAL_HEADER): Undefine.  That is, do include the
optional header for Apollo target.
(COFF_MAGIC): Don't define as MC68MAGIC if it's already defined.

* tc-m68k.h [TE_DELTA] (LEX_PCT): Define as 1, so that `%' can be used within a
label name.

* tc-m68k.h (m68k_init_after_args): Declare.
(tc_init_after_args): Define as m68k_init_after_args.
* tc-m68k.c (m68k_init_after_args): New function, containing one-shot code from
md_assemble.  Added warning for combination of 68040 and 68851.
(md_assemble): Startup-time code deleted.

30 years ago * test-build.mk (HOLES): Add sleep; used by rcs/src/conf.sh.
Ian Lance Taylor [Tue, 26 Apr 1994 22:12:16 +0000 (22:12 +0000)]
* test-build.mk (HOLES): Add sleep; used by rcs/src/conf.sh.

30 years agoTue Apr 26 15:07:24 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Tue, 26 Apr 1994 22:10:10 +0000 (22:10 +0000)]
Tue Apr 26 15:07:24 1994  Stan Shebs  (shebs@andros.cygnus.com)

* cf-sparclynx.c (LYNXOS, COFF_LONG_FILENAMES): Define.
* coff-sparc.c (BADMAG): Recognize LYNXCOFFMAGIC.
(COFF_SPARC): Define.
* coffcode.h (coff_new_section_hook): If COFF_SPARC, set alignment
power of data and bss sections to 3.
* hosts/lynx.h (__LYNXOS): Define.

Brought over from 94Q1.

30 years ago * elf32-hppa.c (hppa_elf_reloc): Adjust the addend of relocations
Jeff Law [Tue, 26 Apr 1994 22:06:13 +0000 (22:06 +0000)]
    * elf32-hppa.c (hppa_elf_reloc): Adjust the addend of relocations
        against section symbols to avoid losing during ld -r.

30 years agoMon Apr 25 15:06:34 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Tue, 26 Apr 1994 21:56:36 +0000 (21:56 +0000)]
Mon Apr 25 15:06:34 1994  Stan Shebs  (shebs@andros.cygnus.com)

  * configure.in (*-*-lynxos*): Don't configure newlib for either
  native or cross Lynx.

Brought over from 94Q1.

30 years ago * scripttempl/mips.sc: Force _gp and .lit8 to be aligned to a 16
Ian Lance Taylor [Tue, 26 Apr 1994 21:49:45 +0000 (21:49 +0000)]
* scripttempl/mips.sc: Force _gp and .lit8 to be aligned to a 16
byte boundary, in case the global constructors do not take up an
even 16 bytes.

30 years agoTue Apr 26 12:54:52 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Tue, 26 Apr 1994 21:45:10 +0000 (21:45 +0000)]
Tue Apr 26 12:54:52 1994  Stan Shebs  (shebs@andros.cygnus.com)

* mpw-config.in (elf/mips.h): Add a forward include.

30 years ago* config/obj-coffbfd.c (fill_section): Check COFF_NOLOAD_PROBLEM
Ken Raeburn [Tue, 26 Apr 1994 21:28:49 +0000 (21:28 +0000)]
* config/obj-coffbfd.c (fill_section): Check COFF_NOLOAD_PROBLEM
also before setting STYP_NOLOAD for .bss section.

30 years ago* listing.c (list_symbol_table): Print "NO DEFINED SYMBOLS" and "NO UNDEFINED
Ken Raeburn [Tue, 26 Apr 1994 21:26:04 +0000 (21:26 +0000)]
* listing.c (list_symbol_table): Print "NO DEFINED SYMBOLS" and "NO UNDEFINED
SYMBOLS" if there aren't any, instead of displaying the header with an empty
list.

30 years agoA slight simplication.
Stan Shebs [Tue, 26 Apr 1994 19:53:12 +0000 (19:53 +0000)]
A slight simplication.

30 years ago * i386-nlmstub.c: An interim version till we get PIN for the x86.
Stu Grossman [Tue, 26 Apr 1994 17:24:59 +0000 (17:24 +0000)]
* i386-nlmstub.c:  An interim version till we get PIN for the x86.

30 years ago * dbxread.c (record_minimal_symbol): Record the section
Stu Grossman [Tue, 26 Apr 1994 17:14:52 +0000 (17:14 +0000)]
* dbxread.c (record_minimal_symbol):  Record the section
associated with the symbol to make dynmaic relocation work.
* (dbx_symfile_read, process_one_symbol):  Fixes to work around
Solaris brain-damage which don't apply to relocatable object
files.
* (stabsect_build_psymtabs):  New routine to read stabs out of an
arbitrarily named section.
* nlmread.c (nlm_symtab_read):  Read ALL syms from the NLM, not just
globals.
* (nlm_symfile_read):  Call stabsect_build_psymtabs to read the
stabs out of the nlm.
* partial-stabs.h (cases 'f' & 'F'):  Fixes to work around Solaris
brain-damage which don't apply to relocatable object files.
* remote.c (putpkt):  Improve error reporting and error handling.
* stabsread.c (define_symbol, scan_file_globals):  Record section
info in sym.

30 years ago * config/i386v4.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not
Ian Lance Taylor [Tue, 26 Apr 1994 16:42:52 +0000 (16:42 +0000)]
* config/i386v4.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not
exist, get crtbegin based on gcc -print-libgcc-file-name.
(HOSTING_LIBS): Similar change for ../gcc/crtend.o.

30 years ago * doc/Makefile.in (clean, distclean): Remove asconfig.texi.
Ian Lance Taylor [Mon, 25 Apr 1994 20:19:54 +0000 (20:19 +0000)]
* doc/Makefile.in (clean, distclean): Remove asconfig.texi.

30 years ago * Makefile.in (distclean): Remove $(PROGS) and underscore.c.
Ian Lance Taylor [Mon, 25 Apr 1994 20:15:04 +0000 (20:15 +0000)]
* Makefile.in (distclean): Remove $(PROGS) and underscore.c.

30 years agoas.c, read.c log entries i forgot to check in friday
Ken Raeburn [Mon, 25 Apr 1994 19:55:03 +0000 (19:55 +0000)]
as.c, read.c log entries i forgot to check in friday

30 years ago * elfcode.h (write_relocs): Undo patch of Apr 10; breaks Solaris.
Ian Lance Taylor [Mon, 25 Apr 1994 19:52:15 +0000 (19:52 +0000)]
* elfcode.h (write_relocs): Undo patch of Apr 10; breaks Solaris.

30 years ago * elfcode.h (bfd_section_from_shdr): Use bfd_make_section_anyway
Ian Lance Taylor [Mon, 25 Apr 1994 19:36:51 +0000 (19:36 +0000)]
* elfcode.h (bfd_section_from_shdr): Use bfd_make_section_anyway
to create sections.  Check return value of recursive calls.
(bfd_section_from_phdr): Check return value of bfd_make_section.
(elf_symbol_from_bfd_symbol): Likewise.
(elf_object_p): Check return value of bfd_section_from_shdr.
(section_from_elf_index): Likewise.
(elf_slurp_symbol_table): Check return value of
section_from_elf_index.
(bfd_prstatus): Return boolean value.  Check return value of
bfd_make_section.
(bfd_fpregset): Likewise.
(bfd_prpsinfo): Return boolean value.
(elf_corefile_note): Check return values of bfd_prstatus,
bfd_fpregset, and bfd_prpsinfo.
(elf_core_file_p): Check return value of elf_corefile_note.

30 years ago * ldlang.c (lang_size_sections): When no address is given for a
Ian Lance Taylor [Mon, 25 Apr 1994 19:28:58 +0000 (19:28 +0000)]
* ldlang.c (lang_size_sections): When no address is given for a
section, align it according to its requirements.

30 years ago * config/tc-hppa.c (pa_ip): 13 bit immediate constant (for break
Jeff Law [Sun, 24 Apr 1994 07:13:52 +0000 (07:13 +0000)]
    * config/tc-hppa.c (pa_ip): 13 bit immediate constant (for break
        instruction) is unsigned.

30 years ago * breakpoint.c (breakpoint_1): Annotate each field of output. Add
Jim Kingdon [Sun, 24 Apr 1994 02:07:53 +0000 (02:07 +0000)]
* breakpoint.c (breakpoint_1): Annotate each field of output.  Add
FIXME-32x64 comment.

30 years ago * infrun.c (wait_for_inferior): Move call to flush_cached_frames
Jim Kingdon [Sat, 23 Apr 1994 03:00:04 +0000 (03:00 +0000)]
* infrun.c (wait_for_inferior): Move call to flush_cached_frames
to after call to target_wait.  This means that flush_cached_frames
can call target_terminal_ours if it wants to.
* infrun.c (wait_for_inferior) [HAVE_NONSTEPPABLE_WATCHPOINT]: Add
comment about why the code is dubious.

30 years ago * stabsread.c (read_type): Call read_type, not nonexistent
Jim Kingdon [Fri, 22 Apr 1994 23:49:51 +0000 (23:49 +0000)]
* stabsread.c (read_type): Call read_type, not nonexistent
os9k_read_type.

30 years ago * nlmconv.c (setup_sections): Remove special handling of .reginfo
Ian Lance Taylor [Fri, 22 Apr 1994 22:13:23 +0000 (22:13 +0000)]
* nlmconv.c (setup_sections): Remove special handling of .reginfo
section.
(copy_sections): Likewise.
(alpha_mangle_relocs): Use bfd_ecoff_get_gp_value rather than the
special ECOFF .reginfo section.

30 years ago * config/obj-ecoff.c (ecoff_frob_file): Use bfd_ecoff_set_gp_value
Ian Lance Taylor [Fri, 22 Apr 1994 22:09:44 +0000 (22:09 +0000)]
* config/obj-ecoff.c (ecoff_frob_file): Use bfd_ecoff_set_gp_value
and bfd_ecoff_set_regmasks to set the GP value and the register
masks, rather than using the now obsolete fake .reginfo section.

30 years ago Get rid of the ECOFF .reginfo section hack.
Ian Lance Taylor [Fri, 22 Apr 1994 22:09:25 +0000 (22:09 +0000)]
Get rid of the ECOFF .reginfo section hack.
* ecoff.c (ecoff_mkobject_hook): Don't create a .reginfo section.
(ecoff_new_section_hook): Don't handle the .reginfo section.
(ecoff_sizeof_headers): Likewise.
(ecoff_get_section_contents): Likewise.
(ecoff_compute_section_file_positions): Likewise.
(ecoff_compute_reloc_file_positions): Likewise.
(ecoff_set_section_contents): Likewise.
(ecoff_write_object_contents): Likewise.
(ecoff_bfd_final_link): Likewise.
(ecoff_bfd_copy_private_bfd_data): Copy the GP value and the
register masks.
(bfd_ecoff_get_gp_value): New function.
(bfd_ecoff_set_gp_value): New function.
(bfd_ecoff_set_regmasks): New function.
* bfd-in.h (bfd_ecoff_get_gp_value): Declare.
(bfd_ecoff_set_gp_value): Declare.
(bfd_ecoff_set_regmasks): Declare.
* bfd-in2.h: Rebuilt.

30 years agoModified Files:
Kung Hsu [Fri, 22 Apr 1994 21:36:59 +0000 (21:36 +0000)]
Modified Files:
ChangeLog remote-os9k.c os9kread.c stabsread.c

        * remote-os9k.c (rombug_fetch_registers): set trace mode
        correctly.
        * remote-os9k.c (rombug_read_inferior_memory): cache data in
        buffer.
        * os9kread,c (read_os9k_psymtab): process file symbol to truncate
        extra info.
        * os9kread.c (os9k_read_ofile_symtab): proper casting of args
        passed to process_one_symbol.
        * stabsread.c (read_type): process os9k functio prototype.

30 years ago* config/obj-coff.c (obj_symbol_new_hook): Don't need to strip underscores,
Ken Raeburn [Fri, 22 Apr 1994 20:39:01 +0000 (20:39 +0000)]
* config/obj-coff.c (obj_symbol_new_hook): Don't need to strip underscores,
since symbol_new will already have done it.
* config/obj-coffbfd.c (obj_symbol_new_hook): Ditto.

30 years ago* listing.c (list_symbol_table): Don't print register symbols as undefined.
Ken Raeburn [Fri, 22 Apr 1994 20:36:39 +0000 (20:36 +0000)]
* listing.c (list_symbol_table): Don't print register symbols as undefined.

30 years ago Fix ECOFF objcopy to actually copy debugging information.
Ian Lance Taylor [Fri, 22 Apr 1994 20:32:51 +0000 (20:32 +0000)]
Fix ECOFF objcopy to actually copy debugging information.
* ecoff.c (ecoff_bfd_copy_private_bfd_data): New function.
(ecoff_get_extr): Assume that any ECOFF symbol with local clear is
an external symbol, rather than checking the symbol flags.  Only
check the flags for non-ECOFF symbols.
* ecofflink.c (bfd_ecoff_debug_externals): Don't crash if the
output_section field of the symbol section is NULL.
* libecoff.h (ecoff_bfd_copy_private_bfd_data): Declare as
function rather than defining as macro.

30 years ago * objcopy.c (copy_object): Call bfd_copy_private_bfd_data after
Ian Lance Taylor [Fri, 22 Apr 1994 20:27:30 +0000 (20:27 +0000)]
* objcopy.c (copy_object): Call bfd_copy_private_bfd_data after
copying everything else, to let it fiddle with the file in its
final state.

30 years ago * solib.c (symbol_add_stub): If so->textsection is NULL, don't
Jim Kingdon [Fri, 22 Apr 1994 18:29:23 +0000 (18:29 +0000)]
* solib.c (symbol_add_stub): If so->textsection is NULL, don't
dump core.

30 years ago * targets.c (bfd_target_vector): Add bfd_elf32_powerpc_vec.
Ian Lance Taylor [Fri, 22 Apr 1994 17:38:20 +0000 (17:38 +0000)]
* targets.c (bfd_target_vector): Add bfd_elf32_powerpc_vec.

30 years ago * objdump.c: Include libiberty.h.
Ian Lance Taylor [Fri, 22 Apr 1994 17:15:27 +0000 (17:15 +0000)]
* objdump.c: Include libiberty.h.
(display_target_list): If a format fails, just go on to the next
one.  Check return value of bfd_set_format.
(display_info_table): Likewise.  Don't increment loop variable in
for loop test, since that skips the first element.
(display_target_tables): Rewrite loop for clarity.  Ensure that it
always prints at least one element.

30 years ago * aout-adobe.c (aout_adobe_set_arch_mach): Check return value of
Ian Lance Taylor [Fri, 22 Apr 1994 17:11:37 +0000 (17:11 +0000)]
* aout-adobe.c (aout_adobe_set_arch_mach): Check return value of
bfd_default_set_arch_mach.  Accept bfd_arch_m68k as well as
bfd_arch_unknown.
* elfcode.h (elf_set_arch_mach): Don't check a list of ELF
architectures, just see if the desired architecture matches what
the ELF backend permits.

30 years ago * sh.h (SH_ARCH_MAGIC): Rename from SHMAGIC. SHMAGIC is used by
Ian Lance Taylor [Fri, 22 Apr 1994 17:06:23 +0000 (17:06 +0000)]
* sh.h (SH_ARCH_MAGIC): Rename from SHMAGIC.  SHMAGIC is used by
several targets to mean a shared library.
(SHBADMAG): Corresponding change.

30 years ago Follow convention in which each NLM header has an 8 byte stamp
Ian Lance Taylor [Fri, 22 Apr 1994 15:16:34 +0000 (15:16 +0000)]
Follow convention in which each NLM header has an 8 byte stamp
followed by a four byte length.
* libnlm.h (struct nlm_obj_tdata): Rename nlm_cygnus_section_hdr
to nlm_cygnus_ext_header, and change type to
Nlm_Internal_Cygnus_Ext_Header.
(nlm_cygnus_ext_header): Rename from nlm_cygnus_section_header.
* nlmcode.h (nlm_swap_auxiliary_headers_in): Use CyGnUsEx instead
of CyGnUsSeCs.  Rename from cygnus_section to cygnus_ext.  Require
length word to be 8.
(nlm_swap_auxiliary_headers_out): Rename from cygnus_section to
cygnus_ext.  Set length word to 8.
(nlm_compute_section_file_positions): Rename from cygnus_section
to cygnus_ext.

30 years ago * nlmconv.c (main): Use CyGnUsEx rather than CyGnUsSeCs for
Ian Lance Taylor [Fri, 22 Apr 1994 15:15:42 +0000 (15:15 +0000)]
* nlmconv.c (main): Use CyGnUsEx rather than CyGnUsSeCs for
sections header.  Rename from cygnus_sections to cygnus_ext.

30 years ago * nlmcode.h (nlm_swap_auxiliary_headers_in): Keep section table
Stu Grossman [Fri, 22 Apr 1994 05:59:24 +0000 (05:59 +0000)]
* nlmcode.h (nlm_swap_auxiliary_headers_in):  Keep section table
(from CyGnUsSeCs) in more permanent memory to keep section names
from getting trashed.

30 years ago * objdump.c (_DUMMY_NAME_): Don't define.
Ian Lance Taylor [Fri, 22 Apr 1994 03:47:57 +0000 (03:47 +0000)]
* objdump.c (_DUMMY_NAME_): Don't define.
(display_target_list): Use tmpnam to get a file name rather than
using _DUMMY_NAME_.  Unlink it when done.
(display_info_table): Likewise.

30 years ago * utils.c (prompt_for_continue): Annotate prompt.
Jim Kingdon [Fri, 22 Apr 1994 03:01:25 +0000 (03:01 +0000)]
* utils.c (prompt_for_continue): Annotate prompt.
(query): Annotate query.
* printcmd.c (print_frame_args): Change syntax of argument
annotation to make name and value part of a single group of
annotations, not two separate groups.
* cp-valprint.c (cp_print_value_fields): Likewise for fields.
* valprint.c (val_print_array_elements): Change syntax of
annotation to be more concise.
* main.c, defs.h (command_line_input): New argument tells what
string to include in the annotations.
* symtab.c (decode_line_2), main.c (read_command_lines,
command_loop): Change callers.

30 years ago* printcmd.c (print_command_1): Add value-history-value annotation.
Jim Kingdon [Thu, 21 Apr 1994 23:49:33 +0000 (23:49 +0000)]
* printcmd.c (print_command_1): Add value-history-value annotation.

30 years ago * Makefile.in (clean, distclean): Remove configdoc.texi.
Ian Lance Taylor [Thu, 21 Apr 1994 21:25:17 +0000 (21:25 +0000)]
* Makefile.in (clean, distclean): Remove configdoc.texi.

30 years ago * Makefile.in (clean): Don't remove GDBvn.texi (apparently on Jan
Jim Kingdon [Thu, 21 Apr 1994 21:24:30 +0000 (21:24 +0000)]
* Makefile.in (clean): Don't remove GDBvn.texi (apparently on Jan
16 I meant to make this change but did not).  Do remove gdb-cfg.texi.

30 years ago * breakpoint.c (watch_command): Use (CORE_ADDR)0, not NULL, for
Jim Kingdon [Thu, 21 Apr 1994 21:19:58 +0000 (21:19 +0000)]
* breakpoint.c (watch_command): Use (CORE_ADDR)0, not NULL, for
target null pointer.
* blockframe.c (find_frame_addr_in_frame_chain): Likewise.

* printcmd.c (output_command): Annotate things we print here too.
* Move declaration of print_value_flags from defs.h to value.h.
* main.c (command_line_input): Call wrap_here as well as gdb_flush.

30 years ago * gdb.t00/default.exp (set write): Allow any number of \r and/or
Jim Kingdon [Thu, 21 Apr 1994 20:08:42 +0000 (20:08 +0000)]
* gdb.t00/default.exp (set write): Allow any number of \r and/or
\n, not just one of each.

* gdb.t07/gdbme.c (main): Don't take address of an array; SunOS4
/bin/cc gives a warning if you do.

30 years ago * config/tc-mips.c (append_insn): Permit branches to be switched
Ian Lance Taylor [Thu, 21 Apr 1994 19:53:25 +0000 (19:53 +0000)]
* config/tc-mips.c (append_insn): Permit branches to be switched
with the preceding instruction even if .set nobopt has been seen.
.set nobopt actually controls whether to bring up an instruction
from the branch target, which gas does not currently support.

30 years agoModified Files:
Kung Hsu [Thu, 21 Apr 1994 18:56:39 +0000 (18:56 +0000)]
Modified Files:
ChangeLog

        * gdb.t24/demangle.exp: change expect pattern of
        __t10ListS_link1ZUiRCUiPT0

30 years ago Clean up uses of _bfd_dummy_target (from Peter Schauer).
Ian Lance Taylor [Thu, 21 Apr 1994 18:19:22 +0000 (18:19 +0000)]
Clean up uses of _bfd_dummy_target (from Peter Schauer).
* libbfd.c (_bfd_dummy_target): Set bfd_error_wrong_format.
* nlm-target.h (nlm_core_file_p): Define as _bfd_dummy_target, not
NULL.
* srec.c (srec_vec): Use _bfd_dummy_target, not NULL, in
_bfd_check_format.
(symbolsrec_vec): Likewise.
* tekhex.c (tekhex_vec): Likewise.

30 years ago * dbxread.c (read_dbx_dynamic_symtab): Reinstall support for sun3,
Peter Schauer [Thu, 21 Apr 1994 17:09:31 +0000 (17:09 +0000)]
* dbxread.c (read_dbx_dynamic_symtab):  Reinstall support for sun3,
BFD handles sun3 dynamic relocations now.
* elfread.c (elf_symtab_read, elf_symfile_read):  Handle dynamic
symbol table.

30 years ago * libelf.h (elf_obj_tdata): Add members for dynamic symbol table
Peter Schauer [Thu, 21 Apr 1994 17:01:12 +0000 (17:01 +0000)]
* libelf.h (elf_obj_tdata):  Add members for dynamic symbol table
handling.
* elfcode.h (bfd_section_from_shdr):  Handle dynamic symbol table.
* elfcode.h (elf_slurp_symbol_table):  Take additional parameter
to select static or dynamic symbol table and return number of
symbols slurped or -1 on error.
* elfcode.h (elf_get_symtab):  Set bfd symcount from
elf_slurp_symbol_table result.
* elfcode.h (elf_get_dynamic_symtab_upper_bound,
elf_canonicalize_dynamic_symtab):  New functions to handle dynamic
symbol table.
* elf32-target.h, elf64-target.h (BFD_JUMP_TABLE_DYNAMIC):
Change to handle dynamic symbol table, provide default definitions
for dynamic relocs.
* aoutx.h (howto_table_std, NAME(aout,swap_std_reloc_out),
NAME(aout,swap_std_reloc_in), aout_link_input_section_std,
aout_link_reloc_link_order):  Handle r_jmptable and r_relative
relocations.

30 years ago * nlmconv.c (secsec): New static variable.
Ian Lance Taylor [Thu, 21 Apr 1994 16:15:00 +0000 (16:15 +0000)]
* nlmconv.c (secsec): New static variable.
(main): Create .nlmsections section in output BFD.  Store
information about it in sections header.
(setup_sections): Allocate space in sections header.
(copy_sections): Copy zero sized sections.  Put information about
each section in the sections header.

30 years ago * libnlm.h (struct nlm_obj_tdata): Add nlm_cygnus_section_hdr
Ian Lance Taylor [Thu, 21 Apr 1994 16:13:01 +0000 (16:13 +0000)]
* libnlm.h (struct nlm_obj_tdata): Add nlm_cygnus_section_hdr
field.
(nlm_cygnus_section_header): New accessor macro.
* nlmcode.h (nlm_object_p): Free new tdata structure if failure.
Add fixed sections before swapping in auxiliary headers.  After
adding sections, treat errors as real, not as wrong format.
(nlm_swap_auxiliary_headers_in): Swap in the sections header; add
sections to the BFD for each section it describes.
(nlm_swap_auxiliary_headers_out): Swap out the sections header.
(nlm_compute_section_file_positions): Account for the size of the
sections header.

30 years ago * internal.h (struct nlm_internal_cygnus_section_header): Define.
Ian Lance Taylor [Thu, 21 Apr 1994 15:58:02 +0000 (15:58 +0000)]
* internal.h (struct nlm_internal_cygnus_section_header): Define.
* external.h (struct nlmNAME(external_cygnus_section_header):
Define.

30 years ago * printcmd.c (print_command_1): Annotate the top-level expressions
Jim Kingdon [Thu, 21 Apr 1994 04:28:08 +0000 (04:28 +0000)]
* printcmd.c (print_command_1): Annotate the top-level expressions
that we print.
(print_frame_args): Annotate each argument.
* printcmd.c, defs.h (print_value_flags): New function.
* cp-valprint.c (cp_print_value_fields): Annotate each field.
* valprint.c (val_print_array_elements): Annotate each array element.

30 years ago* config/obj-coff.h, config/obj-coff.c: Deleted all code used only when
Ken Raeburn [Wed, 20 Apr 1994 23:01:40 +0000 (23:01 +0000)]
* config/obj-coff.h, config/obj-coff.c: Deleted all code used only when
BFD_ASSEMBLER is not defined, and all conditionals relating to such code.  No
such targets remain.

Fixes for stabs-in-coff:
* config/obj-coff.c: Include subsegs.h.
(coff_frob_section): New function.
(obj_coff_init_stab_section): New function.
* config/obj-coff.h (obj_coff_init_stab_section, coff_frob_section): Declare.
(obj_frob_section): New macro; uses coff_frob_section.
(INIT_STAB_SECTION): New macro; uses obj_coff_init_stab_section.

30 years ago* config/tc-sparc.c (md_section_align): Always round up to multiple of
Ken Raeburn [Wed, 20 Apr 1994 22:58:13 +0000 (22:58 +0000)]
* config/tc-sparc.c (md_section_align): Always round up to multiple of
alignment power specified in bfd target vector.

30 years ago* gasp.c: Include ctype.h.
Ken Raeburn [Wed, 20 Apr 1994 22:48:12 +0000 (22:48 +0000)]
* gasp.c: Include ctype.h.

30 years ago* coff-sparc.c (sparccoff_vec): Change minimum alignment power to 2, so that
Ken Raeburn [Wed, 20 Apr 1994 22:44:52 +0000 (22:44 +0000)]
* coff-sparc.c (sparccoff_vec): Change minimum alignment power to 2, so that
stab sections can be multiples of 4 bytes only.

30 years ago* hosts/i386aix.h: Changes to avoid prototypes conflicts with the ones defined
Ken Raeburn [Wed, 20 Apr 1994 22:42:57 +0000 (22:42 +0000)]
* hosts/i386aix.h: Changes to avoid prototypes conflicts with the ones defined
in stdlib.h.  (From Minh Tran-Le.)

30 years ago * findvar.c (read_var_value): Handle LOC_REPARM_ADDR case correctly,
Peter Schauer [Wed, 20 Apr 1994 20:28:32 +0000 (20:28 +0000)]
* findvar.c (read_var_value):  Handle LOC_REPARM_ADDR case correctly,
the register contains a pointer to the type, not the type itself.