binutils-gdb.git
28 years ago * config/mips/nm-mips.h (get_longjmp_target): Add prototype.
Fred Fish [Wed, 14 Aug 1996 08:46:24 +0000 (08:46 +0000)]
* config/mips/nm-mips.h (get_longjmp_target): Add prototype.
* config/mips/nm-irix3.h (get_longjmp_target): Add prototype.
* remote-mips.c (mips_read_processor_type): Remove prototype.
* mips-tdep.c (gdb_print_insn_mips): Add prototype and make static.
* irix5-nat.c (fetch_core_registers): Add prototype.

28 years ago * config/tc-ppc.h (TC_FORCE_RELOCTION): Define if OBJ_XCOFF.
Ian Lance Taylor [Wed, 14 Aug 1996 01:02:04 +0000 (01:02 +0000)]
* config/tc-ppc.h (TC_FORCE_RELOCTION): Define if OBJ_XCOFF.
(ppc_force_relocation): Declare if OBJ_XCOFF.
* config/tc-ppc.c (ppc_force_relocation): New function if
OBJ_XCOFF.

28 years ago * elf.c (_bfd_elf_make_section_from_shdr): Treat sections whose
Ian Lance Taylor [Tue, 13 Aug 1996 21:39:37 +0000 (21:39 +0000)]
* elf.c (_bfd_elf_make_section_from_shdr): Treat sections whose
name begins with .gnu.linkonce as SEC_LINK_ONCE.  This is an
optimization for g++.

28 years agoIf one module has -mrelocatable-lib and the other doesn't, clear the -mrelocatable...
Michael Meissner [Tue, 13 Aug 1996 21:09:06 +0000 (21:09 +0000)]
If one module has -mrelocatable-lib and the other doesn't, clear the -mrelocatable-lib bit

28 years agoImprove -t options support to list all of the configuration macros & work standalone
Michael Meissner [Tue, 13 Aug 1996 17:29:04 +0000 (17:29 +0000)]
Improve -t options support to list all of the configuration macros & work standalone

28 years ago * remote-pa.c (boot_board): Add dummy params to make type compatible
Fred Fish [Tue, 13 Aug 1996 04:27:08 +0000 (04:27 +0000)]
* remote-pa.c (boot_board): Add dummy params to make type compatible
  for passing to add_com.
* scm-exp.c (scm_lreadr): Ensure svalue is not used uninitialized.
* buildsym.c (compare_line_numbers): Change function to match
prototype and also what qsort expects.

28 years agoResurrect code to increase timeout in "handle all print" cases in signals.exp.
Fred Fish [Tue, 13 Aug 1996 04:21:10 +0000 (04:21 +0000)]
Resurrect code to increase timeout in "handle all print" cases in signals.exp.

28 years ago * remote.c: Make remote_write_size public.
Mark Alexander [Tue, 13 Aug 1996 02:30:34 +0000 (02:30 +0000)]
* remote.c: Make remote_write_size public.
* sh-tdep.c (_initialize_sh_tdep): Set remote_write_size to 300
to prevent packet errors with some versions of CMON.
(Fixes PR 10254)

28 years ago * ansidecl.h: Change WIN32 to _WIN32.
Stu Grossman [Tue, 13 Aug 1996 00:04:17 +0000 (00:04 +0000)]
* ansidecl.h:  Change WIN32 to _WIN32.

28 years ago * defs.h: Define CONST_PTR as blank if compiling with Microsoft
Stu Grossman [Tue, 13 Aug 1996 00:01:37 +0000 (00:01 +0000)]
* defs.h:  Define CONST_PTR as blank if compiling with Microsoft
C, else it's `const'.
* c-lang.c c-lang.h ch-lang.c f-lang.c language.c m2-lang.c
scm-lang.c: Microsoft C can't hack const pointers.  Use CONST_PTR
macro instead.
* configure configure.in defs.h:  Use AC_C_CONST to figure out if
the compiler supports const.  Gets rid of some cruft in defs.h.
* dwarf2read.c:  <string.h> -> "gdb_string.h"
* remote-sim.c:  Add prototypes.  Fix call to gdbsim_kill.
* sparcl-tdep.c (download):  Add prototypes to write_routine and
start_routine args.

* mswin/gdbwin.c:  Don't include both varargs.h AND stdarg.h.  Get
rid of varargs.h  Include string.h.
* (gdbwin_update gdbwin_fputs regs_changed_f bpt_changed_f
update):  Fix prototypes, fix calls.
* (update):  Return value for catch_errors.
* (run_execute_command togdb_command_from_tty togdb_command):
Cleanup catching of errors from calls to execute_command.  Also,
dup command string to avoid modifying const strings.
* (togdb_breakinfo_i_init togdb_breakinfo_i_next):  Use 0 instead
of NULL when see if b->address isn't set.
* (bi_disable_bpt bi_enable_bpt bi_delete_all
bi_delete_breakpoint):  Add arg to calls to update.
* (gui_command):  Add prototype.
* (mswin_query):  Fix prototype.
* (_initialize_gdbwin):  Dup string to avoid modifying const.
* (info_path togdb_get_info_path):  Remove const from decls cuz
this can't be const (it points at malloc'ed memory).
* (togdb_searchpath):  Remove const from path.  Dup string to
avoid modifying const strings.
* rindex -> strrchr.
* (gdbwin_list_symbols):  Regexp param is const.
* Fix lots of refs to psymtabs to deref correct pointers.
* (togdb_set_breakpoint_sal):  Call set_breakpoint_sal with sal,
not &sal.
* mswin/gdbwin.h (togdb_searchpath togdb_get_info_path
toget_set_info_path):  Fix prototypes to match reality.
* mswin/gui.cpp:  Define _beginthreadex and _endthreadex routines
with proper prototypes.
* mswin/iface.cpp (gdbwin_fputs):  Define with correct number of args.
* mswin/ser-win32s.c:  Fix defs of min and max.
* mswin/serdll32.c (OpenComm16):  Make cbInQueue and cbOutQueue be
USHORT.
* (WriteComm16):  Change lpBug from LPVOID to LPCSTR.
* mswin/serdll32.h:  Fix prototypes for OpenComm16 and WriteComm16.

28 years ago * config/tc-mips.h (BYTE_ORDER): Don't define. No longer used.
Ian Lance Taylor [Mon, 12 Aug 1996 23:51:25 +0000 (23:51 +0000)]
* config/tc-mips.h (BYTE_ORDER): Don't define.  No longer used.

28 years agoTest whether /dev/zero works before attemping to us it
Michael Meissner [Mon, 12 Aug 1996 23:06:21 +0000 (23:06 +0000)]
Test whether /dev/zero works before attemping to us it

28 years ago * gdb.base/a1-selftest.exp (do_steps_and_nexts): New routine to
Fred Fish [Mon, 12 Aug 1996 22:38:30 +0000 (22:38 +0000)]
* gdb.base/a1-selftest.exp (do_steps_and_nexts): New routine to
encapsulate all the steps/nexts done during self test, starting
at main, and makes them less sensitive to optimization issues.
Add "hppa*-*-hpux*" to setup_xfail for "backtrace through
signal handler" test.
* gdb.threads/pthreads.exp: Only run this for native configs.
* gdb.base/signals.exp (test_handle_all_print): Remove code that
increased timeouts, it now makes no difference.
* gdb.base/structs.exp (do_function_calls): Add hppa*-*-hpux9*"
setup_xfails for "p fun5()", "p fun6()", "p fun7()", and "p fun8"
tests.
gdb.c++/virtfunc.exp (do_tests): Add "mips-*-irix5*" setup_xfail
for "runto test_calls(void)" test.

28 years agoMon Aug 12 14:30:37 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
Martin Hunt [Mon, 12 Aug 1996 21:32:03 +0000 (21:32 +0000)]
Mon Aug 12 14:30:37 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>

* d10v-opc.c (d10v_opcodes): Minor fixes to addi and bl.l.

28 years agofix for D10V.
Martin Hunt [Mon, 12 Aug 1996 18:04:58 +0000 (18:04 +0000)]
fix for D10V.

28 years agoFor PowerPC targets, build libraries with -mrelocatable-lib and -mno-eabi.
Michael Meissner [Mon, 12 Aug 1996 17:19:18 +0000 (17:19 +0000)]
For PowerPC targets, build libraries with -mrelocatable-lib and -mno-eabi.

28 years ago * rldefs.c: Get rid of define of SIGALRM if _WIN32 or __MSDOS__.
Stu Grossman [Mon, 12 Aug 1996 04:11:17 +0000 (04:11 +0000)]
* rldefs.c:  Get rid of define of SIGALRM if _WIN32 or __MSDOS__.
* Don't define ScreenCols/ScreenRows/... if cygwin32.
* sysdep-norm.h:  Don't include <malloc.h> if cygwin32.

28 years ago * main.c (main): Make sure command loop is used with cygwin32.
Stu Grossman [Mon, 12 Aug 1996 04:02:41 +0000 (04:02 +0000)]
* main.c (main):  Make sure command loop is used with cygwin32.
* terminal.h:  Allow cygwin32 to use termios.h.

28 years ago * config/mh-cygwin32 (CFLAGS): Define _WIN32 to be compatible
Stu Grossman [Mon, 12 Aug 1996 03:53:54 +0000 (03:53 +0000)]
* config/mh-cygwin32 (CFLAGS):  Define _WIN32 to be compatible
with normal Windows compilation environment.

28 years ago * rldefs.h: If __osf__is defined, include <termio.h> instead of
Fred Fish [Sun, 11 Aug 1996 22:05:41 +0000 (22:05 +0000)]
* rldefs.h:  If __osf__is defined, include <termio.h> instead of
<sgtty.h>.

28 years ago * gdb.base/term.exp: Set 7-bit strings, address off, width to 0,
Fred Fish [Sun, 11 Aug 1996 21:05:39 +0000 (21:05 +0000)]
* gdb.base/term.exp: Set 7-bit strings, address off, width to 0,
and don't expect address info in breakpoint confirmations.

28 years ago * gdb.base/list.exp (test_forward_search): Increase timeout
Fred Fish [Sun, 11 Aug 1996 19:16:55 +0000 (19:16 +0000)]
* gdb.base/list.exp (test_forward_search): Increase timeout
temporarily by 60 seconds for searching extremely long line,
  and then reset to old value when done.  Increase expect input
buffer to 10000.

28 years ago * elflink.h (elf_link_add_object_symbols): Do not resolve a common
Ian Lance Taylor [Sun, 11 Aug 1996 03:39:46 +0000 (03:39 +0000)]
* elflink.h (elf_link_add_object_symbols): Do not resolve a common
symbol against a STT_FUNC symbol in a shared library.

28 years agoFri Aug 9 17:48:28 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
Martin Hunt [Sat, 10 Aug 1996 00:50:28 +0000 (00:50 +0000)]
Fri Aug  9 17:48:28 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>

* config/tc-d10v.c: Fix problem with relocs.

28 years ago * xcofflink.c (xcoff_link_add_dynamic_symbols): If a descriptor
Ian Lance Taylor [Sat, 10 Aug 1996 00:15:30 +0000 (00:15 +0000)]
* xcofflink.c (xcoff_link_add_dynamic_symbols): If a descriptor
  symbol is found, automatically define the corresponding function
  code.
PR 10299.

28 years agoFri Aug 9 13:21:59 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
Martin Hunt [Fri, 9 Aug 1996 20:25:12 +0000 (20:25 +0000)]
Fri Aug  9 13:21:59 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>

* d10v-opc.c (d10v_opcodes): Correct 'mv' unit entry to EITHER.

28 years ago * Makefile.in (LIB_INSTALL_DIR): New macro.
Tom Tromey [Fri, 9 Aug 1996 19:05:29 +0000 (19:05 +0000)]
* Makefile.in (LIB_INSTALL_DIR): New macro.
(TCL): Include @TCL_LD_SEARCH_FLAGS@.

28 years ago * cofflink.c (coff_link_add_symbols): Only set (*sym_hash)->numaux
Ian Lance Taylor [Fri, 9 Aug 1996 18:46:54 +0000 (18:46 +0000)]
* cofflink.c (coff_link_add_symbols): Only set (*sym_hash)->numaux
if sym.n_numaux is not zero.
(_bfd_coff_link_input_bfd): Permit the symbol and the hash table
entry to disagree about the number of aux entries if the symbol
has zero.

28 years ago * somread.c (som_symtab_read): Handle secondary definition
Jeff Law [Fri, 9 Aug 1996 18:43:54 +0000 (18:43 +0000)]
    * somread.c (som_symtab_read): Handle secondary definition
        symbols (aka weak symbols).

28 years ago * config/tc-sh.c (sh_do_align): If not BFD_ASSEMBLER, always align
Ian Lance Taylor [Fri, 9 Aug 1996 18:16:54 +0000 (18:16 +0000)]
* config/tc-sh.c (sh_do_align): If not BFD_ASSEMBLER, always align
with nops if not in data_section or bss_section.
PR 10312.

28 years ago * elf32-mips.c (mips_elf_check_relocs): Create the .rel.dyn
Ian Lance Taylor [Fri, 9 Aug 1996 16:47:15 +0000 (16:47 +0000)]
* elf32-mips.c (mips_elf_check_relocs): Create the .rel.dyn
section if it might be needed, not just if info->shared.
(mips_elf_adjust_dynamic_symbol): Make room for a null element at
the start of .rel.dyn if we are going to use it.
(mips_elf_finish_dynamic_sections): Only clear the first element
of .rel.dyn if the size is greater than zero.
Fix this case from c-torture:
extern int abort();
typedef int (*frob)();
frob f[] = {abort};
main()
{
  exit(0);
}

28 years ago * gdb.base/structs.exp: New tests for passing and returning
Jeff Law [Fri, 9 Aug 1996 16:38:19 +0000 (16:38 +0000)]
    * gdb.base/structs.exp: New tests for passing and returning
        structures.
        * gdb.base/structs.c: C source for test.
Sanitized away until we've got a valid copyright assignment from
Michael Snyder.

Only tested on the PA.  I assume other ports will needs some xfails
and other possible testsuite tweakage.

28 years ago * bind.c complete.c history.c readline.c: Don't include sys/file.h.
Stu Grossman [Fri, 9 Aug 1996 16:02:46 +0000 (16:02 +0000)]
* bind.c complete.c history.c readline.c:  Don't include sys/file.h.
* complete.c display.c parens.c readline.c rldefs.h rltty.c
signals.c tilde.c:  Change refs to _MSC_VER and __WIN32__ to _WIN32.
* signals.c (rl_signal_handler):  Ifdef out kill if _WIN32.
* sysdep-norm.h:  Ifdef out include of dirent.h if _WIN32.
Include malloc.h if _WIN32.

28 years ago * config/tm-hppa.h (EXTRACT_RETURN_VALUE): Fix thinko in
Jeff Law [Fri, 9 Aug 1996 15:12:48 +0000 (15:12 +0000)]
    * config/tm-hppa.h (EXTRACT_RETURN_VALUE): Fix thinko in
        last change.

28 years ago * xcofflink.c (xcoff_link_input_bfd): If we already called the
Ian Lance Taylor [Thu, 8 Aug 1996 21:15:32 +0000 (21:15 +0000)]
* xcofflink.c (xcoff_link_input_bfd): If we already called the
undefined_symbol callback for a symbol, then don't issue any more
warnings about loader relocs.
(_bfd_ppc_xcoff_relocate_section): Don't do any further processing
after calling the undefined_symbol callback.

28 years ago * xcofflink.c (XCOFF_MULTIPLY_DEFINED): Define.
Ian Lance Taylor [Thu, 8 Aug 1996 20:33:39 +0000 (20:33 +0000)]
* xcofflink.c (XCOFF_MULTIPLY_DEFINED): Define.
(xcoff_link_add_symbols): Permit multiple definitions of a symbol
as the AIX linker seems to do.
PR 10304.

28 years ago * lib/ld.exp: Use verbose -log instead of calling both verbose and
Ian Lance Taylor [Thu, 8 Aug 1996 18:29:59 +0000 (18:29 +0000)]
* lib/ld.exp: Use verbose -log instead of calling both verbose and
send_log.

28 years ago * symfile.c (symfile_bfd_open): Change ifdef from __WIN32__ to
Stu Grossman [Thu, 8 Aug 1996 17:17:35 +0000 (17:17 +0000)]
* symfile.c (symfile_bfd_open):  Change ifdef from __WIN32__ to
_WIN32.

28 years ago * somread.c: Rearrange order of includes to fix warnings under
Stu Grossman [Thu, 8 Aug 1996 17:14:02 +0000 (17:14 +0000)]
* somread.c:  Rearrange order of includes to fix warnings under
hpux-10.10.  Also don't include sys/file.h.

28 years agoThu Aug 8 12:43:52 1996 Klaus Kaempf <kkaempf@progis.de>
Ian Lance Taylor [Thu, 8 Aug 1996 16:45:05 +0000 (16:45 +0000)]
Thu Aug  8 12:43:52 1996  Klaus Kaempf  <kkaempf@progis.de>

* makefile.vms: Update for alpha-opc changes.

28 years agoThu Aug 8 12:32:56 1996 Klaus Kaempf <kkaempf@progis.de>
Ian Lance Taylor [Thu, 8 Aug 1996 16:42:41 +0000 (16:42 +0000)]
Thu Aug  8 12:32:56 1996  Klaus Kaempf  <kkaempf@progis.de>

Add support for openVMS/Alpha.
* as.h (PRINTF_LIKE): Don't define if VMS, for now.
* config/obj-evax.c: New file.
* config/obj-evax.h: New file.
* config/tc-alpha.c: Add support for EVAX format if OBJ_EVAX is
defined.
* config/tc-alpha.h: Add support for EVAX format if OBJ_EVAX is
defined.  Add case for bfd_target_evax_flavour.
* config/vms-a-conf.h: New file.
* conf-a-gas.com: New file.
* configure.in: Add target alpha-*-*vms*.
* configure: Rebuild.
* makefile.vms: New file.
* read.c (s_lcomm): Align bss_seg on 8 byte boundary if OBJ_EVAX.
Don't call ffs on openVMS/Alpha.

28 years agoThu Aug 8 12:27:52 1996 Klaus Kaempf <kkaempf@progis.de>
Ian Lance Taylor [Thu, 8 Aug 1996 16:29:04 +0000 (16:29 +0000)]
Thu Aug  8 12:27:52 1996  Klaus Kaempf  <kkaempf@progis.de>

* makefile.vms: Add better support for DEC C compilation.
Add new macros as in Makefile.in.

28 years agoThu Aug 8 12:21:56 1996 Klaus Kaempf <kkaempf@progis.de>
Ian Lance Taylor [Thu, 8 Aug 1996 16:27:21 +0000 (16:27 +0000)]
Thu Aug  8 12:21:56 1996  Klaus Kaempf  <kkaempf@progis.de>

* evax-alpha.c (evax_alpha_vec): Corrected flags, cleanup.
(evax_initialize): Remove evax_reloc_table.
(evax_close_and_cleanup): Ditto.
(reloc_nil): Ditto.
(alpha_howto_table): Remove ALPHA_R_SWREL32 and ALPHA_R_SWREL64
entries.
(evax_bfd_reloc_type_lookup): Ditto.
* evax-egsd.c (_bfd_evax_slurp_egsd): Add a few casts; set
cooked_size == raw_size.
* evax-emh.c (_bfd_evax_register_filename): Remove.
* evax-etir.c (etir_stc): Allow ETIR_S_C_STC_xx commands.
* evax-misc.c (add_new_contents): Malloc section at full size.
(_bfd_save_evax_section): Memcpy section contents directly.
* evax.h (ALPHA_R_SWREL32, ALPHA_R_SWREL64): Remove.
(evax_reloc_table): Remove.

* hosts/alphavms.h (O_ACCMODE): Define if needed.

* makefile.vms: Add better support for DEC C compilation
Add evax.h dependencies

* reloc.c (bfd_get_reloc_size): Add case for 16 byte reloc.
(BFD_RELOC_SWREL32,BFD_RELOC_SWREL64): Remove.
(BFD_RELOC_ALPHA_BASEREG): Remove.
* bfd-in2.h, libbfd.h: Rebuild.

28 years agoThu Aug 8 12:18:59 1996 Klaus Kaempf <kkaempf@progis.de>
Ian Lance Taylor [Thu, 8 Aug 1996 16:20:25 +0000 (16:20 +0000)]
Thu Aug  8 12:18:59 1996  Klaus Kaempf  <kkaempf@progis.de>

* make-all.com: Run config-a-gas.
* setup.com: Don't copy subdirectory files around.

28 years ago * archive.c (bsd_write_armap): Ifdef around calls to getuid and
Stu Grossman [Thu, 8 Aug 1996 15:23:01 +0000 (15:23 +0000)]
* archive.c (bsd_write_armap):  Ifdef around calls to getuid and
getgid if _WIN32 is defined.
* opncls.c (bfd_fdopenr):  Remove unnecessary WINGDB ifdef.

28 years ago * aoutx.h bfd-in.h bfd-in2.h opncls.c riscix.c som.c targets.c:
Stu Grossman [Thu, 8 Aug 1996 06:27:01 +0000 (06:27 +0000)]
* aoutx.h bfd-in.h bfd-in2.h opncls.c riscix.c som.c targets.c:
Change NO_FLAGS to BFD_NO_FLAGS to avoid conflict with an HPUX
include file.
* libbfd.c:  Create dummy getpagesize() macro if HAVE_GETPAGESIZE
isn't defined.

28 years ago * dbxread.c: Don't include param.h or sys/file.h.
Stu Grossman [Thu, 8 Aug 1996 04:52:49 +0000 (04:52 +0000)]
* dbxread.c:  Don't include param.h or sys/file.h.
* (dbx_symfile_read):  Determine symfile_relocatable from bfd
flags instead of file extension.  Also clean up a little bit.

28 years ago * dwarf2read.c dwarfread.c exec.c infcmd.c infrun.c main.c
Stu Grossman [Thu, 8 Aug 1996 02:50:22 +0000 (02:50 +0000)]
* dwarf2read.c dwarfread.c exec.c infcmd.c infrun.c main.c
mdebugread.c os9kread.c source.c top.c utils.c:  Don't
include param.h or sys/file.h (or unistd.h in some cases).
* defs.h exec.c inflow.c remote-array.c remote-e7000.c
sparcl-tdep.c terminal.h utils.c:  Replace all occurances of
__WIN32__, WINGDB, WIN32, etc... with _WIN32.
* main.c:  Remove #ifndef WINGDB around option processing.  Fix
bug with passing argc==0 and argv==NULL to getopt.
* (main) Remove calls to access() before source_command.  Let
soure_command handle access errors.
* maint.c (maintenance_dump_me):  #ifdef out for _WIN32.
* symtab.c (operator_chars):  Make this global for wingdb.
* top.c (disconnect):  #ifdef out for _WIN32.
* (source_command):  If got an error and from_tty, then call print
error, else just return quietly.
* utils.c (fatal_dump_core):  Can't kill ourselves under windows.
Just exit.
* (pollquit notice_quit):  #ifdef out stuff that doesn't exist
under windows.

28 years agoIf HAVE_TERMOS_STRUCTURE is not defined, make sure HAVE_TCGETATTR is also not defined.
Michael Meissner [Thu, 8 Aug 1996 00:17:48 +0000 (00:17 +0000)]
If HAVE_TERMOS_STRUCTURE is not defined, make sure HAVE_TCGETATTR is also not defined.

28 years ago * gdb.base/list.exp (test_forward_search): Fix to handle very
Fred Fish [Wed, 7 Aug 1996 22:38:24 +0000 (22:38 +0000)]
* gdb.base/list.exp (test_forward_search): Fix to handle very
long source line without overflowing expect's input buffer.

28 years ago * ld-scripts/phdrs.exp: New test.
Ian Lance Taylor [Wed, 7 Aug 1996 22:20:39 +0000 (22:20 +0000)]
* ld-scripts/phdrs.exp: New test.
* ld-scripts/phdrs.s, ld-scripts/phdrs.t: New files.

28 years ago * symbols.c (resolve_symbol_value): Handle addition or subtraction
Ian Lance Taylor [Wed, 7 Aug 1996 20:13:50 +0000 (20:13 +0000)]
* symbols.c (resolve_symbol_value): Handle addition or subtraction
by a constant before entering the main switch.  Reject attempts to
apply an arithmetic function to non-absolute symbols, except for
the special case of subtraction of two symbols in the same
section.

28 years ago * cpu-i386.c (i8086_arch): Architecture info for the i8086.
Ian Lance Taylor [Wed, 7 Aug 1996 20:10:14 +0000 (20:10 +0000)]
* cpu-i386.c (i8086_arch): Architecture info for the i8086.

28 years ago * config/slite-gdb.exp (gdb_start): Use "full_buffer", not
Tom Tromey [Wed, 7 Aug 1996 19:17:09 +0000 (19:17 +0000)]
    * config/slite-gdb.exp (gdb_start): Use "full_buffer", not
        "buffer_full".

        * config/nind-gdb.exp (gdb_start): Use "full_buffer", not
        "buffer_full".

        * config/mips-gdb.exp (gdb_start): Use "full_buffer", not
        "buffer_full".

        * lib/gdb.exp (gdb_test): Correct pattern is "full_buffer", not
        "buffer_full".

28 years agoAllow simulator to build on other machines than x86
Michael Meissner [Wed, 7 Aug 1996 18:48:07 +0000 (18:48 +0000)]
Allow simulator to build on other machines than x86

28 years agoWed Aug 7 14:43:51 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
Ian Lance Taylor [Wed, 7 Aug 1996 18:44:27 +0000 (18:44 +0000)]
Wed Aug  7 14:43:51 1996  Philippe De Muyter  <phdm@info.ucl.ac.be>

* core.c (read_function_mappings): Cast xmalloc return.

28 years agoWed Aug 7 14:40:48 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
Ian Lance Taylor [Wed, 7 Aug 1996 18:43:48 +0000 (18:43 +0000)]
Wed Aug  7 14:40:48 1996  Philippe De Muyter  <phdm@info.ucl.ac.be>

* configure.in: Call BFD_NEED_DECLARATION on strstr and sbrk.
* acconfig.h (NEED_DECLARATION_STRSTR): New macro.
(NEED_DECLARATION_SBRK): New macro.
* configure, config.in: Rebuild.
* sysdep.h (strstr): Declare if NEED_DECLARATION_STRSTR.
* ldmain.c (sbrk): Declare if HAVE_SBRK and
NEED_DECLARATION_SBRK.

28 years agoWed Aug 7 14:27:33 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
Ian Lance Taylor [Wed, 7 Aug 1996 18:30:39 +0000 (18:30 +0000)]
Wed Aug  7 14:27:33 1996  Philippe De Muyter  <phdm@info.ucl.ac.be>

* configure.in: Call BFD_NEED_DECLARATION on strstr and sbrk.
* acconfig.h (NEED_DECLARATION_STRSTR): New macro.
(NEED_DECLARATION_SBRK): New macro.
* configure, config.in: Rebuild.
* bucomm.h (strstr): Declare if NEED_DECLARATION_STRSTR.
(sbrk): Declare if HAVE_SBRK and NEED_DECLARATION_SBRK.

28 years agoWed Aug 7 14:19:03 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
Ian Lance Taylor [Wed, 7 Aug 1996 18:23:08 +0000 (18:23 +0000)]
Wed Aug  7 14:19:03 1996  Philippe De Muyter  <phdm@info.ucl.ac.be>

* configure.in: Make GAS_CHECK_DECL_NEEDED include <string.h> or
<strings.h> if they exist.  Call GAS_CHECK_DECL_NEEDED on strstr
and sbrk.
* acconfig.h (NEED_DECLARATION_STRSTR): New macro.
(NEED_DECLARATION_SBRK): New macro.
* configure, conf.in: Rebuild.
* as.h: Only include <strings.h> if HAVE_STRINGS_H.
(strstr): Declare if NEED_DECLARATION_STRSTR.
* as.c: If HAVE_SBRK and NEED_DECLARATION_SBRK, declare sbrk.

28 years agoWed Aug 7 14:11:44 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
Ian Lance Taylor [Wed, 7 Aug 1996 18:17:22 +0000 (18:17 +0000)]
Wed Aug  7 14:11:44 1996  Philippe De Muyter  <phdm@info.ucl.ac.be>

* configure.in: Call BFD_NEEDED_DECLARATION on strstr and
realloc.
* acconfig.h (NEED_DECLARATION_STRSTR): New macro.
(NEED_DECLARATION_REALLOC): New macro.
* configure, config.in: Rebuild.
* sysdep.h (strstr): Declare if NEED_DECLARATION_STRSTR.
(realloc): Declare if NEED_DECLARATION_REALLOC.

28 years ago * configure.in (configdirs): Add gdb.threads.
Fred Fish [Wed, 7 Aug 1996 18:14:56 +0000 (18:14 +0000)]
* configure.in (configdirs): Add gdb.threads.
* configure: Regenerated with autoconf.
* gdb.threads/{config.in, pthreads.c, pthreads.exp}: New.
* gdb.threads/{Makefile.in, configure.in}: Complete rewrites.
* gdb.threads/configure: New, generated with autoconf.

28 years ago * config/tc-mips.c (md_section_align): Do align if OBJ_ELF, but
Ian Lance Taylor [Wed, 7 Aug 1996 17:17:33 +0000 (17:17 +0000)]
* config/tc-mips.c (md_section_align): Do align if OBJ_ELF, but
not to more than a 16 byte boundary.

28 years ago * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Tweak for
Jeff Law [Wed, 7 Aug 1996 16:32:44 +0000 (16:32 +0000)]
    * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Tweak for
        structures > 4 bytes in size.
Fixing more structure return problems.

28 years ago Based on patches from Eric Valette <valette@crf.canon.fr>:
Ian Lance Taylor [Wed, 7 Aug 1996 16:14:09 +0000 (16:14 +0000)]
Based on patches from Eric Valette <valette@crf.canon.fr>:
* elf32-i386.c (enum reloc_type): Add FIRST_INVALID_RELOC,
LAST_INVALID_RELOC, R_386_16, R_386_PC16, R_386_8, R_386_PC8.
(elf_howto_table): Add entries for new relocs.
(elf_i386_reloc_type_lookup): Handle new relocs.
(elf_i386_info_to_howto): Just call abort.
(elf_i386_info_to_howto_rel): Check that the reloc type is valid.
(elf_i386_relocate_section): Likewise.

28 years ago * valops.c (call_function_by_hand): Handle aligning stacks that
Jeff Law [Wed, 7 Aug 1996 16:05:19 +0000 (16:05 +0000)]
    * valops.c (call_function_by_hand): Handle aligning stacks that
        grow up correctly.
        * config/pa/tm-hppa.h (USE_STRUCT_CONVENTION): Define.
        (STACK_ALIGN): Define.
        * hppa-tdep.c (hppa_alignof): Don't demand a minumim two byte
        alignment on structs/unions.
Fixing assorted structure passing/return problems reported by the net.

28 years ago * i386-dis.c (print_insn_i386): Actually return the correct value.
Ian Lance Taylor [Wed, 7 Aug 1996 15:56:13 +0000 (15:56 +0000)]
* i386-dis.c (print_insn_i386): Actually return the correct value.
  (ONE, OP_ONE): #ifdef out; not used.

28 years ago * config/tc-i386.c (tc_gen_reloc): Accept all relocs; remove
Ian Lance Taylor [Wed, 7 Aug 1996 15:54:33 +0000 (15:54 +0000)]
* config/tc-i386.c (tc_gen_reloc): Accept all relocs; remove
#ifndef OBJ_ELF lines.  From Eric Valette <valette@crf.canon.fr>.
(tc_gen_reloc): If out of memory call as_fatal rather than
assert.  If no howto found, call as_bad_where rather than
as_fatal.  Change the error message slightly.  Set howto to a
non-NULL value in order to keep going.

28 years agoTue Aug 6 12:58:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
Martin Hunt [Tue, 6 Aug 1996 20:01:07 +0000 (20:01 +0000)]
Tue Aug  6 12:58:03 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>

* tc-d10v.c: Added code to support 32-bit fixups for stabs.

28 years agoTue Aug 6 12:58:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
Martin Hunt [Tue, 6 Aug 1996 20:00:50 +0000 (20:00 +0000)]
Tue Aug  6 12:58:03 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>

* config/tc-d10v.c: Added code to support 32-bit fixups for stabs.

28 years agoTue Aug 6 12:54:56 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
Martin Hunt [Tue, 6 Aug 1996 19:56:21 +0000 (19:56 +0000)]
Tue Aug  6 12:54:56 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>

* elf32-d10v.c (elf_d10v_howto_table): Added R_D10V_32.

28 years ago * lib/gdb.exp (gdb_test_exact): Turn \n in pattern into \r\n.
Fred Fish [Tue, 6 Aug 1996 19:20:25 +0000 (19:20 +0000)]
* lib/gdb.exp (gdb_test_exact): Turn \n in pattern into \r\n.

28 years ago * gas/h8300/misch.s: Reenable "eepmov.w" test.
Jeff Law [Tue, 6 Aug 1996 17:18:10 +0000 (17:18 +0000)]
    * gas/h8300/misch.s: Reenable "eepmov.w" test.
        * gas/h8300/miscs.s: Likewise.
        * gas/h8300/h8300.exp: Check for correct assembly of "eepmov.w"
        on the H8/300H and H8/S.  Don't expect it to fail.

28 years ago * config/tc-h8300.c (get_specific): New operand "size" derived
Jeff Law [Tue, 6 Aug 1996 17:17:34 +0000 (17:17 +0000)]
    * config/tc-h8300.c (get_specific): New operand "size" derived
        from ".b", ".w" and ".l" extensions.  All callers changed.  If
        the base instruction has no operands, then use the size to
        determine which specific instruction to use.
Fixing eepmov instructions.

28 years ago7/30 release from Andrew
Michael Meissner [Tue, 6 Aug 1996 15:55:32 +0000 (15:55 +0000)]
7/30 release from Andrew

28 years ago * gdb.base/signals.exp (test_handle_all_print): Test separately for
Fred Fish [Tue, 6 Aug 1996 01:18:18 +0000 (01:18 +0000)]
* gdb.base/signals.exp (test_handle_all_print): Test separately for
each signal's status in the output of "handle all print".
* lib/gdb.exp (gdb_test): Document that the pattern must NOT include
the \r\n sequence that immediately precedes the gdb prompt.
* gdb.base/a1-selftest.exp: Save original timeout and restore
after test.

28 years ago * elf.c (_bfd_elf_make_section_from_shdr): For a loadable section,
Ian Lance Taylor [Mon, 5 Aug 1996 20:45:55 +0000 (20:45 +0000)]
* elf.c (_bfd_elf_make_section_from_shdr): For a loadable section,
only get the LMA from the phdr if they are in the same part of the
file.

28 years ago * ldlex.l: Recognize OVERLAY.
Ian Lance Taylor [Mon, 5 Aug 1996 20:37:52 +0000 (20:37 +0000)]
* ldlex.l: Recognize OVERLAY.
* ldgram.y: Add section_phdr field to %union.
(section): Handle phdr_opt result.  Add OVERLAY case.
(opt_exp_without_type): New nonterminal.
(phdr_opt): Return list of phdrs.
(overlay_section): New nonterminal.
* ldlang.c: Include <ctype.h>.
(lang_leave_output_section_statement): Add phdrs parameter.
Change all callers.
(lang_section_in_phdr): Remove.
(overlay_vma, overlay_lmn, overlay_max): New static variables.
(struct overlay_list): Define.
(overlay_list): New static variable.
(lang_enter_overlay, lang_enter_overlay_section): New functions.
(lang_leave_overlay_section, lang_leave_overlay): New functions.
* ldlang.h (lang_leave_output_section_statement): Update
declaration for new parameter.
(lang_section_in_phdr): Don't declare.
(lang_enter_overlay, lang_enter_overlay_section): Declare.
(lang_leave_overlay_section, lang_leave_overlay): Declare.
* ld.texinfo (Overlays): New node under SECTIONS, documenting
overlays.

* ldlex.l: Recognize MAX and MIN.
* ldgram.y (MAX, MIN): New terminals.
(exp): Recognize MAX and MIN.
* ldexp.c (fold_binary): Handle MAX and MIN.
* ld.texinfo (Arithmetic Functions): Document MAX and MIN.

* ld.texinfo (PHDRS): Use @cindex, not @kindex, for program header
index entries.

* ldgram.y (SIZEOF, ADDR): Do not specify type.

28 years ago * ldcref.c (check_nocrossref): Skip symbols with no output
Ian Lance Taylor [Mon, 5 Aug 1996 20:28:39 +0000 (20:28 +0000)]
* ldcref.c (check_nocrossref): Skip symbols with no output
sections.

28 years ago * config/tc-i960.c (mem_fmt): Call parse_expr before emit.
Ian Lance Taylor [Mon, 5 Aug 1996 18:21:50 +0000 (18:21 +0000)]
* config/tc-i960.c (mem_fmt): Call parse_expr before emit.
PR 10274.

28 years ago * elf.c (map_sections_to_segments): Rewrite tests for starting a
Ian Lance Taylor [Mon, 5 Aug 1996 17:45:58 +0000 (17:45 +0000)]
* elf.c (map_sections_to_segments): Rewrite tests for starting a
new segment to make them more comprehensible.  If the relationship
between the LMA and the VMA changed, start a new segment.  Don't
check dynsec when deciding whether to start a new segment for a
writeable section; -N will now handle this.

28 years ago * ld-scripts/crossref.exp: On a29k targets, use --defsym to define
Ian Lance Taylor [Mon, 5 Aug 1996 02:29:34 +0000 (02:29 +0000)]
* ld-scripts/crossref.exp: On a29k targets, use --defsym to define
V_SPILL and V_FILL.

28 years ago * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Define to "int *",
Fred Fish [Sun, 4 Aug 1996 23:40:18 +0000 (23:40 +0000)]
* config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Define to "int *",
which is the documented type under at least AIX 3 and AIX 4.

28 years ago * gdb.disasm/hppa.s: Export fmemLRbug_tests_4 as a ST_CODE
Jeff Law [Sun, 4 Aug 1996 16:21:16 +0000 (16:21 +0000)]
    * gdb.disasm/hppa.s: Export fmemLRbug_tests_4 as a ST_CODE
        symbol.

28 years ago * config/alpha/alpha-osf3.mh (MMALLOC_CFLAGS): Define NO_MMCHECK to
Fred Fish [Sat, 3 Aug 1996 11:27:21 +0000 (11:27 +0000)]
* config/alpha/alpha-osf3.mh (MMALLOC_CFLAGS): Define NO_MMCHECK to
not install consistency checks.

28 years ago * config/alpha/alpha-osf3.mh (XM_FILE): Change from xm-alpha.h to
Fred Fish [Sat, 3 Aug 1996 11:18:20 +0000 (11:18 +0000)]
* config/alpha/alpha-osf3.mh (XM_FILE): Change from xm-alpha.h to
xm-alphaosf.h.

28 years agoFri Aug 2 17:47:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
Martin Hunt [Sat, 3 Aug 1996 00:49:00 +0000 (00:49 +0000)]
Fri Aug  2 17:47:03 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>

* d10v-opc.c (d10v_operands): Added 2 accumulator sub instructions.
Changed subi operand type to treat 0 as 16.

28 years agoFri Aug 2 17:44:24 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
Martin Hunt [Sat, 3 Aug 1996 00:45:58 +0000 (00:45 +0000)]
Fri Aug  2 17:44:24 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>

* d10v_sim.h, simops.c: Snapshot

28 years ago * config/vx-gdb.exp (gdb_start): Fix syntax of `$shell_id < 0'.
Brendan Kehoe [Sat, 3 Aug 1996 00:38:50 +0000 (00:38 +0000)]
* config/vx-gdb.exp (gdb_start): Fix syntax of `$shell_id < 0'.

28 years ago * ldgram.y (LOADADDR): New terminal.
Ian Lance Taylor [Fri, 2 Aug 1996 19:01:58 +0000 (19:01 +0000)]
* ldgram.y (LOADADDR): New terminal.
(exp): Handle LOADADDR.
* ldlex.l: Recognize LOADADDR.
* ldexp.c (exp_print_token): Add LOADADDR.
(fold_name): Implement LOADADDR.
* ldlang.c (exp_init_os): Treat LOADADDR like ADDR.
* ld.texinfo (Arithmetic Functions): Document LOADADDR.

28 years ago * config/tc-mips.c (md_section_align): Don't change addr if
Ian Lance Taylor [Fri, 2 Aug 1996 15:30:09 +0000 (15:30 +0000)]
* config/tc-mips.c (md_section_align): Don't change addr if
OBJ_ELF.
PR 10181.

28 years ago * config/tc-hppa.c: Revert yesterday's changes.
Jeff Law [Fri, 2 Aug 1996 05:52:41 +0000 (05:52 +0000)]
    * config/tc-hppa.c: Revert yesterday's changes.
Trying another approach to the EH problem.

28 years ago * libhppa.h: Remove "esel" changes. Not the right approach.
Jeff Law [Fri, 2 Aug 1996 04:50:08 +0000 (04:50 +0000)]
    * libhppa.h: Remove "esel" changes.  Not the right approach.
        * som.c: Corresponding changes.
        (som_bfd_derive_misc_symbol_info): Use ST_DATA for symbols
        which don't have a SOM symbol type associated with them.
        Reverses a 1994 change.
More PA EH tweakage (to get exception handling tables properly relocated
in shared libraries).

28 years agochanges for new tcl/tk:
Tom Tromey [Fri, 2 Aug 1996 02:43:27 +0000 (02:43 +0000)]
changes for new tcl/tk:
        * gdbtk.c (mainWindow): Deleted.
        (cleanup_init): Don't destroy main window.
        (gdbtk_init): Main window now created by Tk_Init.

        * configure.in: Most X checks now handled automatically by Tk.
        Use new macros to find Tcl/Tk.
        * aclocal.m4: New version for new Tcl/Tk; from Don Libes.
        * config.in, configure: Regenerated.

        * Makefile.in (TCL, TCL_CFLAGS, TK, TK_CFLAGS, X11_CFLAGS,
        X11_LDFLAGS, X11_LIBS): Changed for new Tcl and Tk.

28 years agoThu Aug 1 17:05:24 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
Martin Hunt [Fri, 2 Aug 1996 00:23:31 +0000 (00:23 +0000)]
Thu Aug  1 17:05:24 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>

* ChangeLog, Makefile.in, configure, configure.in, d10v_sim.h,
gencode.c, interp.c, simops.c: Created.

28 years agoThu Aug 1 17:08:41 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
Martin Hunt [Fri, 2 Aug 1996 00:22:58 +0000 (00:22 +0000)]
Thu Aug  1 17:08:41 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>

* configure.in (d10v-*-*): Added D10V simulator.

28 years agorework crossref test
Ian Lance Taylor [Thu, 1 Aug 1996 18:33:47 +0000 (18:33 +0000)]
rework crossref test

28 years ago * ld-scripts/crossref.exp: New test.
Ian Lance Taylor [Thu, 1 Aug 1996 18:12:22 +0000 (18:12 +0000)]
* ld-scripts/crossref.exp: New test.
* ld-scripts/cross1.c, ld-scripts/cross2.c: New files.
* ld-scripts/crossref.t: New file.

28 years ago * ld.h (check_nocrossrefs): Declare.
Ian Lance Taylor [Thu, 1 Aug 1996 17:35:49 +0000 (17:35 +0000)]
* ld.h (check_nocrossrefs): Declare.
* ldlang.h (struct lang_nocrossref): Define.
(struct lang_nocrossrefs): Define.
(nocrossref_list): Declare.
(lang_add_nocrossref): Declare.
* ldlex.l: Recognize NOCROSSREFS keyword.
* ldgram.y (%union): Add nocrossref field.
(NOCROSSREFS): New terminal.
(ifile_p1): Recognize NOCROSSREFS.
(nocrossref_list): New nonterminal.
* ldlang.c (nocrossref_list): Define.
(lang_add_nocrossref): New function.
* ldmain.c (main): If nocrossref_list is not NULL, call
check_nocrossrefs.
(warning_callback): Free symbols if there is no place to store
them.
(notice): Call add_cref if nocrossref_list is not NULL.
* ldcref.c: Include "ldexp.h" and "ldlang.h".
(check_nocrossrefs): New function.
(check_nocrossref): New static function.
(struct check_refs_info): Define.
(check_refs, check_reloc_refs): New static functions.
* Makefile.in: Rebuild dependencies.
* ld.texinfo (Option Commands): Document NOCROSSREFS.

28 years ago * config/mips/tm-mips.h (TM_MIPS_H): Enclose file contents in
Fred Fish [Thu, 1 Aug 1996 17:30:37 +0000 (17:30 +0000)]
* config/mips/tm-mips.h (TM_MIPS_H): Enclose file contents in
this, define when contents are included.
(mips_read_processor_type): Add prototype.
* config/mips/xm-mips.h: Remove strdup decl, now in gdb_string.h
* mdebugread.c (ecoff_relocate_efi): Add prototype.
(fixup_sigtramp): Only needed when TM_MIPS_H is defined.

28 years ago * ld.texinfo (Section Placement): Improve the wording of the
Ian Lance Taylor [Thu, 1 Aug 1996 17:10:52 +0000 (17:10 +0000)]
* ld.texinfo (Section Placement): Improve the wording of the
wildcard documentation.  Mention that wildcards are only searched
for on the command line, not in the file system.