binutils-gdb.git
29 years ago* config/obj-coff.c (size_section): Handle rs_space like rs_fill, but make sure
Ken Raeburn [Tue, 10 Jan 1995 01:41:54 +0000 (01:41 +0000)]
* config/obj-coff.c (size_section): Handle rs_space like rs_fill, but make sure
fr_symbol is null.
(fill_section): Ditto.

29 years ago * interp.c: Remove def of INLINE. This comes from bfd.h. Also,
Stu Grossman [Mon, 9 Jan 1995 23:46:03 +0000 (23:46 +0000)]
* interp.c:  Remove def of INLINE.  This comes from bfd.h.  Also,
declare IOMEM before using it.

29 years ago* gdb.base/signals.exp: Call gdb_exit and gdb_start.
Jim Kingdon [Mon, 9 Jan 1995 22:24:12 +0000 (22:24 +0000)]
* gdb.base/signals.exp: Call gdb_exit and gdb_start.

29 years ago * gdb.base/help.exp: Replace most of docstrings for "info signals"
Jim Kingdon [Mon, 9 Jan 1995 21:32:53 +0000 (21:32 +0000)]
* gdb.base/help.exp: Replace most of docstrings for "info signals"
and "signal" with ".*".

29 years ago * elfcode.h (elf_link_add_object_symbols): It's reasonable for no
Ian Lance Taylor [Mon, 9 Jan 1995 20:52:59 +0000 (20:52 +0000)]
* elfcode.h (elf_link_add_object_symbols): It's reasonable for no
flags to be set, so don't insist otherwise.

29 years ago* configure.in (rs6000-*-*): Don't build gas.
Jim Kingdon [Mon, 9 Jan 1995 17:50:42 +0000 (17:50 +0000)]
* configure.in (rs6000-*-*): Don't build gas.

29 years agoAdd 1995 to copyright.
Jeff Law [Mon, 9 Jan 1995 04:35:48 +0000 (04:35 +0000)]
Add 1995 to copyright.

29 years ago * TODO: Add note about "handle all nostop".
Jim Kingdon [Sun, 8 Jan 1995 23:03:28 +0000 (23:03 +0000)]
* TODO: Add note about "handle all nostop".

* gdb.base/{sigall.c, sigall.exp}: New test.
* gdb.base/Makefile.in: Add it.

29 years ago * target.c, target.h (target_signal_from_command): New function.
Jim Kingdon [Sun, 8 Jan 1995 22:13:21 +0000 (22:13 +0000)]
* target.c, target.h (target_signal_from_command): New function.
* infrun.c (handle_command, signals_info), infcmd.c
(signal_command): Use it.
* infrun.c, infcmd.c: Update docstrings for these commands.

* target.h (enum target_signal), target.c (signals), target.c
(target_signal_from_host, target_signal_to_host): Add
TARGET_SIGNAL_REALTIME_* and TARGET_SIGNAL_PRIO for lynx.
* config/tm-lynx.h: Define signal numbers for realtime events.

29 years ago * config/tc-mips.c (mips_ip): Fix handling of floating point
Ian Lance Taylor [Sun, 8 Jan 1995 21:17:56 +0000 (21:17 +0000)]
* config/tc-mips.c (mips_ip): Fix handling of floating point
values when GPOPT is not defined.

29 years ago * dbxread.c (process_one_symbol): Handle N_FUN symbols
Peter Schauer [Sat, 7 Jan 1995 15:30:58 +0000 (15:30 +0000)]
* dbxread.c (process_one_symbol):  Handle N_FUN symbols
for Sun acc 3.0 under SunOS4.

Changes to improve handling of runtime common symbols
under SunOS4.
* minsyms.c (get_symbol_leading_char):  New routine to determine
the leading symbol character for an objfile.
(prim_record_minimal_symbol_and_info, install_minimal_symbols):
Use it.
* objfiles.h (rt_common_objfile):  New global, points to objfile
containing the runtime common minimal symbols.
* objfiles.c (free_objfile):  Mark rt_common_objfile as
unallocated before freeing it.
* solib.c (allocate_rt_common_objfile):  New routine to allocate
an objfile for the runtime common minimal symbols.
(solib_add_common_symbols):  Allocate an objfile for the runtime
common symbols if necessary and put common symbols into it.
Clean up code and comments.
(solib_add, special_symbol_handling):  Cleanup comments regarding
runtime common symbols.
* stabsread.c (scan_file_globals_1):  New routine, contains
old scan_file_globals code. Checks if there are any unresolved
global symbols before starting the expensive minimal symbol table
search.
(scan_file_globals):  Now calls scan_file_globals_1 for the passed
objfile and eventually for the runtime common objfile. Complains
about any unresolved global symbols and removes them from the
global symbol chain to avoid dangling pointers into the symbol
table if the symbol table is reread.

29 years agosanitization
Stan Shebs [Sat, 7 Jan 1995 01:35:41 +0000 (01:35 +0000)]
sanitization

29 years agoKeep/lose gdbtk docs
Stan Shebs [Sat, 7 Jan 1995 01:21:01 +0000 (01:21 +0000)]
Keep/lose gdbtk docs

29 years ago * gdbgui.texinfo: New file, manual for GUI (gdbtk) users.
Stan Shebs [Sat, 7 Jan 1995 01:20:09 +0000 (01:20 +0000)]
* gdbgui.texinfo: New file, manual for GUI (gdbtk) users.
* Makefile.in (gdbgui.dvi, gdbgui.info): New actions.

29 years ago * dis-asm.h: Make idempotent.
Ian Lance Taylor [Fri, 6 Jan 1995 22:48:48 +0000 (22:48 +0000)]
* dis-asm.h: Make idempotent.

29 years ago* config/tc-alpha.c (alpha_ip): Delay calls to emit_add64 until after any
Ken Raeburn [Fri, 6 Jan 1995 22:02:27 +0000 (22:02 +0000)]
* config/tc-alpha.c (alpha_ip): Delay calls to emit_add64 until after any
remaining operands are also known to match.

29 years ago* gasp.c: Include string.h. Put config.h before other includes.
Ken Raeburn [Fri, 6 Jan 1995 22:00:50 +0000 (22:00 +0000)]
* gasp.c: Include string.h.  Put config.h before other includes.

29 years ago * elfcode.h (elf_slurp_symbol_table): Don't set BSF_GLOBAL for an
Ian Lance Taylor [Fri, 6 Jan 1995 21:50:28 +0000 (21:50 +0000)]
* elfcode.h (elf_slurp_symbol_table): Don't set BSF_GLOBAL for an
undefined or common symbol.
(elf_link_add_object_symbols): Likewise.

29 years ago * Makefile.in (install_only uninstall): Indent for clarity
Stu Grossman [Fri, 6 Jan 1995 01:55:45 +0000 (01:55 +0000)]
* Makefile.in (install_only uninstall):  Indent for clarity

* core.c (dis_asm_read_memory):  Add call to
dis_asm_read_memory_hook to provide alternate way for disassembler
to read memory.

* defs.h:  Protect from multiple inclusion.  Add decl for
dis_asm_read_memory_hook.

* gdbtk.c (finish_saving_output):  Don't do anything if not saving
output.
* (breakpoint_notify):  Don't send null filename to tcl.
* (gdb_eval):  New tcl command to eval an expression.
* (gdb_disassemble):  New tcl command to do disassembly.  This
allows tcl code to choose between exec file and target memeory,
and can also do mixed source and assembly.
* (gdbtk_init):  Move reading of gdbtk.tcl to the end to make sure
that more of the environment is set up.  Also, create link between
gdb and tcl vars disassemble{-_}from{-_}exec.

* gdbtk.tcl:  New expression window support.
* Make assembly window be 80 columns wide.
* Use new disassembly method.  Add menu items to select
disassembly from exec file or target.
* Change View menubar item to Options.

* Get rid of Stack, Breakpoints, Signals, and Variables Windows,
since they don't exist yet.

* Pop up a copyright window on startup.

* top.c:  Make window startup be the default.
* Add dis_asm_read_memory_hook.

29 years ago * lib/gdb.exp, gdb.base/corefile.exp: Supply -nw as argument
Stan Shebs [Fri, 6 Jan 1995 01:37:18 +0000 (01:37 +0000)]
* lib/gdb.exp, gdb.base/corefile.exp: Supply -nw as argument
when invoking GDB, suppresses any windowing interface.

29 years ago * mpw-configure: Use tr-7to8 instead of mpw-7to8.
Stan Shebs [Thu, 5 Jan 1995 20:54:20 +0000 (20:54 +0000)]
* mpw-configure: Use tr-7to8 instead of mpw-7to8.

29 years agoKeep last year's ChangeLog
Stan Shebs [Thu, 5 Jan 1995 19:44:58 +0000 (19:44 +0000)]
Keep last year's ChangeLog

29 years ago * stabsread.c (define_symbol): Handle `a' symbol type used for
Jeff Law [Thu, 5 Jan 1995 08:18:13 +0000 (08:18 +0000)]
* stabsread.c (define_symbol): Handle `a' symbol type used for
reference parameter passed in a register.

29 years ago * Makefile.in: Use /x/x/ instead of /brokensed/brokensed/, to
Ian Lance Taylor [Thu, 5 Jan 1995 04:56:44 +0000 (04:56 +0000)]
* Makefile.in: Use /x/x/ instead of /brokensed/brokensed/, to
reduce command line length.
(AS_FOR_TARGET): Check for as.new, not Makefile.
(NM_FOR_TARGET): Check for nm.new, not Makefile.

29 years ago * gdbtk.tcl (build_framework): Add standard commands menu, more
Stan Shebs [Thu, 5 Jan 1995 03:58:18 +0000 (03:58 +0000)]
* gdbtk.tcl (build_framework): Add standard commands menu, more
windows to standard windows menu.
(not_implemented_yet): Clarify message.

29 years ago * mpw-make.in (init.c): Use open-brace instead of mpw-open-brace.
Stan Shebs [Thu, 5 Jan 1995 02:39:47 +0000 (02:39 +0000)]
* mpw-make.in (init.c): Use open-brace instead of mpw-open-brace.

29 years ago * defs.h: move include tm.h up, so that the type LONGEST can
Kung Hsu [Thu, 5 Jan 1995 00:49:29 +0000 (00:49 +0000)]
    * defs.h: move include tm.h up, so that the type LONGEST can
        also based on the target requirement to determine. In this case
        target mips64.

29 years ago * som.c (bfd_section_from_som_symbol): Only return sections which
Jeff Law [Thu, 5 Jan 1995 00:34:07 +0000 (00:34 +0000)]
* som.c (bfd_section_from_som_symbol): Only return sections which
correspond to subspaces.

29 years ago * lib/ld.exp: Use [which $ld] rather than [file exists $ld] to see
Ian Lance Taylor [Wed, 4 Jan 1995 23:59:43 +0000 (23:59 +0000)]
* lib/ld.exp: Use [which $ld] rather than [file exists $ld] to see
if the linker exists.

29 years ago * mpw-config.in (archname): Compute from the config.
Stan Shebs [Wed, 4 Jan 1995 23:05:52 +0000 (23:05 +0000)]
* mpw-config.in (archname): Compute from the config.
(BFD_MACHINES, ARCHDEFS): Put into mk.tmp.

29 years ago * som.c (som_begin_writing): Don't forget to bump the
Jeff Law [Wed, 4 Jan 1995 21:15:42 +0000 (21:15 +0000)]
* som.c (som_begin_writing): Don't forget to bump the
total_subspaces when writing the unloadable subspaces.

29 years ago * config.guess: Merge from FSF.
Per Bothner [Wed, 4 Jan 1995 21:01:44 +0000 (21:01 +0000)]
* config.guess:  Merge from FSF.

29 years ago * remote-os9k.c (rombug_open): catch exception e in rombug.
Kung Hsu [Wed, 4 Jan 1995 20:31:40 +0000 (20:31 +0000)]
    * remote-os9k.c (rombug_open): catch exception e in rombug.
        * remote-os9k.c (rombug_wait): print message before register display
        from rombug.

29 years ago* top.c (locate_arg): Call strchr not index.
Jim Kingdon [Wed, 4 Jan 1995 17:46:40 +0000 (17:46 +0000)]
* top.c (locate_arg): Call strchr not index.

29 years ago * ch-exp.y (literal): Recognize NULL.
Per Bothner [Wed, 4 Jan 1995 01:07:15 +0000 (01:07 +0000)]
* ch-exp.y (literal):  Recognize NULL.
(tuple):  Parse simple unlabelled tuples.
* eval.c (evaluate_subexp case OP_ARRAY):  Use expect_type to
evaluate brace-initializer-expressions depending on context.
(evaluate_subexp case UNOP_CAST):  Pass the target type as
expected type when evaluating the expression.

29 years ago * ch-typeprint.c (chill_type_print_base): Get names of PTR and
Per Bothner [Wed, 4 Jan 1995 01:04:15 +0000 (01:04 +0000)]
* ch-typeprint.c (chill_type_print_base):  Get names of PTR and
BOOL from TYPE_NAME.
* ch-valprint.c (chill_print_type_scalar):  New function, to handle
TYPE_CODE_RANGE better than print_type_scalar does.
(chill_val_print_array_elements):  Use above new function.

29 years ago * mpw-make.in (DebugOptions): Remove define of DEBUG_BFD_SEND.
Stan Shebs [Tue, 3 Jan 1995 20:15:20 +0000 (20:15 +0000)]
* mpw-make.in (DebugOptions): Remove define of DEBUG_BFD_SEND.

29 years agokeep sim-gdb.exp
Stan Shebs [Tue, 3 Jan 1995 01:45:57 +0000 (01:45 +0000)]
keep sim-gdb.exp

29 years ago * config/sim-gdb: New file, simulator testing support.
Stan Shebs [Tue, 3 Jan 1995 01:44:08 +0000 (01:44 +0000)]
* config/sim-gdb: New file, simulator testing support.

29 years agoFixes PR 6111
Stan Shebs [Mon, 2 Jan 1995 23:45:38 +0000 (23:45 +0000)]
Fixes PR 6111
* remote-udi.c (udi_load): Tell symbol_file_add that the
program being loaded is the main program.

29 years agoStart this year's ChangeLog.
Stan Shebs [Mon, 2 Jan 1995 21:27:44 +0000 (21:27 +0000)]
Start this year's ChangeLog.

29 years ago * config/m68k/tm-est.h: Remove cruft.
Steve Chamberlain [Sat, 31 Dec 1994 02:06:11 +0000 (02:06 +0000)]
* config/m68k/tm-est.h:  Remove cruft.

29 years ago * config/m68k/tm-est.h: Remove cruft.
Steve Chamberlain [Sat, 31 Dec 1994 02:00:09 +0000 (02:00 +0000)]
* config/m68k/tm-est.h:  Remove cruft.

29 years agoHandle .space directive with non-constant operand:
Ken Raeburn [Sat, 31 Dec 1994 00:08:40 +0000 (00:08 +0000)]
Handle .space directive with non-constant operand:

* read.c (s_space): Rewrite to handle general expressions.  Generate rs_space
frags for non-constant values.
* write.c (cvt_frag_to_fill): Treat rs_align_code and rs_space like rs_align
and rs_org.  Verify that fr_offset is non-negative, and force frag type to
rs_fill only after assertion checks.
(relax_segment): Treat rs_align_code like rs_align.  Treat rs_space like rs_org
in the first switch; in the second, force the operand to a constant, and use it
for the growth size.

29 years ago * gdbtk.tcl (FSBox): New proc, File Selection Box code from exmh.
Stan Shebs [Sat, 31 Dec 1994 00:00:53 +0000 (00:00 +0000)]
* gdbtk.tcl (FSBox): New proc, File Selection Box code from exmh.
(not_implemented_yet): New proc.
(build_framework): Add various file commands to file menu.

29 years ago* as.h (relax_substateT): Now defined to be unsigned int.
Ken Raeburn [Fri, 30 Dec 1994 23:59:23 +0000 (23:59 +0000)]
* as.h (relax_substateT): Now defined to be unsigned int.
(relax_stateT): Separate typedef from enum definition.
(enum _relax_state): Reordered for better punctuation.  Added new values
rs_align_code and rs_space.
(lineno, struct lineno_struct): Unused, deleted.

For friendlier assertion-failure messages:
* as.h: No longer include assert.h.
(as_assert): Declare.
(assert): New definition, calls as_assert longer needed.
(__PRETTY_FUNCTION__): Provide default for older versions of gcc.
* messages.c (as_assert): New function.
* gdbinit.in: Put a breakpoint there.

29 years ago* Makefile.in (dependencies): Make $(OBJS) depend on as.h and everything it
Ken Raeburn [Fri, 30 Dec 1994 23:56:14 +0000 (23:56 +0000)]
* Makefile.in (dependencies): Make $(OBJS) depend on as.h and everything it
includes.  Delete those files from per-file dependencies.

29 years ago* listing.c (list_symbol_table): Build a format string based on the size of the
Ken Raeburn [Fri, 30 Dec 1994 23:54:59 +0000 (23:54 +0000)]
* listing.c (list_symbol_table): Build a format string based on the size of the
value to be printed, as long as "unsigned long" is at least as wide, after
handling the special case of 4-byte values.

29 years agoSanitize out gdbtk references unless keep-gdbtk specified
Stan Shebs [Fri, 30 Dec 1994 23:42:46 +0000 (23:42 +0000)]
Sanitize out gdbtk references unless keep-gdbtk specified

29 years ago* gas/i386/pushw.l: Fixed whitespace to match current listing style.
Ken Raeburn [Fri, 30 Dec 1994 23:15:52 +0000 (23:15 +0000)]
* gas/i386/pushw.l: Fixed whitespace to match current listing style.

* gas/all/gas.exp: Mark test p1480.s expected to pass, even with listings.
[requires patches that'll be checked in soon]

29 years ago * Allow up to 10 whitespace separated arguments to user defined
Jeff Law [Fri, 30 Dec 1994 19:53:39 +0000 (19:53 +0000)]
    * Allow up to 10 whitespace separated arguments to user defined
        commands.
        * top.c (struct user_args): Structure for holding arguments to
        user defined commands.
        (print_command_line): Delete unused "tmp_chain" variable.  Clean
        up flow control by having cases exit in the same manner.
        Before executing a command or evaluating an expression, substitute
        the current $arg0..$arg9 values if the command/expression uses them.
        (arg_cleanup): New function.
        (setup_user_args, locate_arg, insert_args): Likewise.
        (execute_user_command): Allow arguments to user defined commands.

        * Allow if/while commands to be used within a breakpoint command
        list.
        * breakpoint.c (bpstat_do_actions): Call execute_control_command
        rather than execute_command (passes entire command structure rather
        than just the command line text).
        (breakpoint_1): Use "print_command_line" to print a breakpoint
        command line (including control structures).
        * gdbcmd.h (execute_control_command): Provide extern decl.
        (print_command_line): Likewise.
        * top.c (execute_control_command): No longer static.
        (print_command_line): New function to recursively print a command
        line, including control structures.

29 years ago * hppa-tdep.c (pa_print_registers): Extract register values stored
Rob Savoye [Fri, 30 Dec 1994 01:47:27 +0000 (01:47 +0000)]
* hppa-tdep.c (pa_print_registers): Extract register values stored
in big endian format on big and little endian hosts.

29 years ago * array-rom.c: Support for Array Tech LSI33k based RAID disk
Rob Savoye [Fri, 30 Dec 1994 01:39:24 +0000 (01:39 +0000)]
* array-rom.c: Support for Array Tech LSI33k based RAID disk
controller board.
* configure.in: Recognize "mips*-*-ecoff*" rather than
"mips*-idt-ecoff*" so it'll work for the LSI33k.

29 years ago * monitor.[ch], op50-rom.c, rom68k-rom.c, w89k-rom.c: Add support
Rob Savoye [Fri, 30 Dec 1994 01:26:37 +0000 (01:26 +0000)]
* monitor.[ch], op50-rom.c, rom68k-rom.c, w89k-rom.c: Add support
to monitor config structure for supported baud rates for a target
and variable stop bits.
* monitor.c (monitor_fetch_register): Store register values in big
endian format on any host.

29 years ago * h8300-dis.c (bfd_h8_disassemble): Add support for 2 bit
Steve Chamberlain [Thu, 29 Dec 1994 06:16:23 +0000 (06:16 +0000)]
* h8300-dis.c (bfd_h8_disassemble): Add support for 2 bit
immediates.

29 years ago * ldwrite.c (clone_section): Create a symbol with the
Steve Chamberlain [Thu, 29 Dec 1994 06:06:56 +0000 (06:06 +0000)]
* ldwrite.c (clone_section): Create a symbol with the
same name as the section.

29 years ago * interp.c (BUSERROR): New macro.
Steve Chamberlain [Thu, 29 Dec 1994 05:28:20 +0000 (05:28 +0000)]
* interp.c (BUSERROR): New macro.
([r|w][bwl]at[little|big]) New functions.
(sim_resume): If GO32 check for interrupt every now
and again.  Decrement PC if SIGBUS seen.
* run.c (main):  Return result of simulated _exit.

29 years ago * config/tc-hppa.c (pa_subspace): For sections with the ZERO
Jeff Law [Thu, 29 Dec 1994 03:59:28 +0000 (03:59 +0000)]
* config/tc-hppa.c (pa_subspace): For sections with the ZERO
attribute, set the "bss" field in the appropriate seginfo structure.

29 years ago * som.c (som_write_fixups): Use SEC_HAS_CONTENTS to identify
Jeff Law [Thu, 29 Dec 1994 03:56:20 +0000 (03:56 +0000)]
* som.c (som_write_fixups): Use SEC_HAS_CONTENTS to identify
bss-like sections.
(som_get_section_contents): Likewise.
(som_set_section_contents): Likewise.

29 years ago * hppa-tdep.c (hppa_fix_call_dummy): Prefer import stubs over
Jeff Law [Thu, 29 Dec 1994 02:31:10 +0000 (02:31 +0000)]
* hppa-tdep.c (hppa_fix_call_dummy): Prefer import stubs over
export stubs and actual shared library functions so that lazy
binding works correctly.  Try both __d_plt_call and __gcc_plt_call
trampolines for calling import stubs.

29 years ago * a29k-tdep.c (pop_frame): Fix a variable name.
Stan Shebs [Wed, 28 Dec 1994 23:42:23 +0000 (23:42 +0000)]
* a29k-tdep.c (pop_frame): Fix a variable name.

29 years ago * hppa-tdep.c (push_dummy_frame): Refine code to determine what
Jeff Law [Wed, 28 Dec 1994 21:55:21 +0000 (21:55 +0000)]
* hppa-tdep.c (push_dummy_frame): Refine code to determine what
space ID to place in the stack & inf_status structure.
(hppa_pop_frame): Don't walk through trampoline code if popping a
call dummy frame.
(hppa_fix_call_dummy): Call the stack dummy directly if the
current PC is in a shared library.

29 years ago* subsegs.h: Include obstack.h.
Ken Raeburn [Wed, 28 Dec 1994 20:02:03 +0000 (20:02 +0000)]
* subsegs.h: Include obstack.h.

* as.h (struct frag): Enable align* components now.

29 years ago * hppa-tdep.c (push_dummy_frame): Return type is void. Clear
Jeff Law [Wed, 28 Dec 1994 19:33:08 +0000 (19:33 +0000)]
* hppa-tdep.c (push_dummy_frame): Return type is void.  Clear
in_syscall bit in flags.  Don't depend on the PC queue registers
when in_syscall is set, they're not valid.
* config/pa/tm-hppa.h (PUSH_DUMMY_FRAME): Pass inf_status down to
push_dummy_frame.
(SR4_REGNUM): Define.

* hppa-tdep.c: Misc. lint changes.

29 years ago * gdb.base/interrupt.exp: Test calling func1 twice.
Jeff Law [Wed, 28 Dec 1994 19:23:34 +0000 (19:23 +0000)]
* gdb.base/interrupt.exp: Test calling func1 twice.

29 years ago * breakpoint.c (watchpoint_check): Don't bother restoring the
Jeff Law [Tue, 27 Dec 1994 21:52:00 +0000 (21:52 +0000)]
* breakpoint.c (watchpoint_check): Don't bother restoring the
"selected" frame anymore, it's not necessary.  Initialize the
frame cache before trying to find the current frame in the frame
chain.

29 years agocoffgen.c changes checked in last tuesday -- forgot to check in the log entry
Ken Raeburn [Tue, 27 Dec 1994 21:41:33 +0000 (21:41 +0000)]
coffgen.c changes checked in last tuesday -- forgot to check in the log entry

29 years ago * som.c (setup_sections): Turn off SEC_HAS_CONTENTS for bss-like
Jeff Law [Tue, 27 Dec 1994 21:05:10 +0000 (21:05 +0000)]
* som.c (setup_sections): Turn off SEC_HAS_CONTENTS for bss-like
sections.

29 years ago * somsolib.c (som_solib_add): Return without loading any shared
Jeff Law [Tue, 27 Dec 1994 19:36:00 +0000 (19:36 +0000)]
* somsolib.c (som_solib_add): Return without loading any shared
libraries if symfile_objfile is NULL.
(som_solib_create_inferior_hook): Likewise.

29 years ago * remote-est.c: New file supports EST-300 CPU32 background
Steve Chamberlain [Sat, 24 Dec 1994 01:12:47 +0000 (01:12 +0000)]
* remote-est.c:  New file supports EST-300 CPU32 background
mode ICE.
* remote-utils.c (sr_com):  Call registers_changed.
* configure.in (m68*-*-est*):  New configuration.
* config/m68k/tm-est.h:  New file.

29 years agoNew files.
Steve Chamberlain [Sat, 24 Dec 1994 01:09:37 +0000 (01:09 +0000)]
New files.

29 years ago * Makefile.in (CLIBS): Put LIBIBERTY last.
Stu Grossman [Sat, 24 Dec 1994 00:32:14 +0000 (00:32 +0000)]
* Makefile.in (CLIBS):  Put LIBIBERTY last.
* gdbtk.c (gdbtk_wait gdbtk_init):  Portability improvements for
SIGIO handling.

29 years ago * ser-tcp.c (tcp_open): Cast to struct sockaddr when passing to
Jim Kingdon [Fri, 23 Dec 1994 01:46:19 +0000 (01:46 +0000)]
* ser-tcp.c (tcp_open): Cast to struct sockaddr when passing to
function which expects that.

29 years ago* nlm/gdbserve.c, nlm/ppc.c, nlm/ppc.h: Don't try to use
J.T. Conklin [Thu, 22 Dec 1994 21:33:00 +0000 (21:33 +0000)]
* nlm/gdbserve.c, nlm/ppc.c, nlm/ppc.h: Don't try to use
  ALTERNATE_MEM_FUNCS.

29 years ago * gdb.base/list.exp (test_forward_search): Set timeout higher
Jim Kingdon [Thu, 22 Dec 1994 00:32:15 +0000 (00:32 +0000)]
* gdb.base/list.exp (test_forward_search): Set timeout higher
when we'll be getting lots of output from gdb.

* gdb.base/a1-selftest.exp: Move code that was inside expect -re
"init_malloc" to after the expect statement.  Run it if that
regexp is taken, but also for two others which happen if source
cannot be found.

29 years ago * monitor.c: Now supports xmodem as a remoteloadprotocol.
Rob Savoye [Wed, 21 Dec 1994 21:02:56 +0000 (21:02 +0000)]
* monitor.c: Now supports xmodem as a remoteloadprotocol.

29 years agoOpps. Check in correct version of last elf32-hppa.c change.
Jeff Law [Wed, 21 Dec 1994 17:34:50 +0000 (17:34 +0000)]
Opps.  Check in correct version of last elf32-hppa.c change.

29 years ago * config/mips/xm-irix4.h, config/mips/xm-irix5.h: #define
Stu Grossman [Wed, 21 Dec 1994 07:03:40 +0000 (07:03 +0000)]
* config/mips/xm-irix4.h, config/mips/xm-irix5.h:  #define
_BSD_COMPAT to get reliable signal handling (needed for GDBtk).

29 years ago * i386linux.c (linux_add_one_symbol): Don't do anything Linux
Ian Lance Taylor [Wed, 21 Dec 1994 00:46:03 +0000 (00:46 +0000)]
* i386linux.c (linux_add_one_symbol): Don't do anything Linux
specific if this is not a Linux hash table.  From Eric Youngdale
<eric@aib.com>.

29 years ago Patches from kkojima@mix.or.jp (Kazumoto Kojima):
Ian Lance Taylor [Wed, 21 Dec 1994 00:36:26 +0000 (00:36 +0000)]
Patches from kkojima@mix.or.jp (Kazumoto Kojima):
* mipsbsd.c (mips_howto_table_ext): Change sizes of memory relocs
apply to from two bytes to four bytes.
* MY(reloc_howto_type_lookup): Handle BFD_RELOC_CTOR.

29 years ago * ar.c (main): Ignore 'f' modifier used on HP/UX 9.
Ian Lance Taylor [Wed, 21 Dec 1994 00:15:14 +0000 (00:15 +0000)]
* ar.c (main): Ignore 'f' modifier used on HP/UX 9.

29 years ago* frags.c (frag_init): Call obstack_begin on `frags'.
Ken Raeburn [Tue, 20 Dec 1994 22:42:03 +0000 (22:42 +0000)]
* frags.c (frag_init): Call obstack_begin on `frags'.
* subsegs.c (subsegs_begin): Don't do it here.
* as.c (main): Call frag_init before subsegs_begin.

* frags.c (frag_append_1_char): New function.
* frags.h (frag_append_1_char): Declare it.
(FRAG_APPEND_1_CHAR): Call it.  Old definition is commented out for now.

* as.h (struct frag): Added (but commented out) new fields for tracking current
alignment.
(frag_now_fix): Changed macro to function declaration.
* frags.c (frag_now_fix): Define function here.
(frag_new): Use it instead of accessing `frags' directly.
* frags.h (frags): Change comment to indicate it shouldn't be accessed directly.
* subsegs.h (struct frchain): New field frch_obstack, intended to eventually
replace global `frags' obstack.
* subsegs.c (subseg_set_rest): Use frag_now_fix instead of accessing `frags'
directly.  Initialize fields of new frchainS explicitly instead of with memset.
* config/obj-coff.c (obj_coff_ln) [!BFD_ASSEMBLER]: Use frag_now_fix.
* config/tc-mips.c (s_loc), config/obj-vms.c (vms_resolve_symbol_redef),
symbols.c (colon): Likewise.

29 years ago * gdb.base/printcmds.exp: New test, for printing register before
Jim Kingdon [Tue, 20 Dec 1994 21:07:52 +0000 (21:07 +0000)]
* gdb.base/printcmds.exp: New test, for printing register before
program is running.

29 years ago * sparc-tdep.c, a29k-tdep.c, findvar.c (get_saved_register):
Jim Kingdon [Tue, 20 Dec 1994 21:06:13 +0000 (21:06 +0000)]
* sparc-tdep.c, a29k-tdep.c, findvar.c (get_saved_register):
if !target_has_registers, call error().

29 years ago* elfcode.h (assign_file_positions_except_relocs): In assertion, force all
Ken Raeburn [Tue, 20 Dec 1994 20:31:36 +0000 (20:31 +0000)]
* elfcode.h (assign_file_positions_except_relocs): In assertion, force all
values to the same type.

29 years ago* config/tc-m68k.c (md_apply_fix_2): Use offsetT and addressT instead of long
Ken Raeburn [Tue, 20 Dec 1994 20:23:41 +0000 (20:23 +0000)]
* config/tc-m68k.c (md_apply_fix_2): Use offsetT and addressT instead of long
and unsigned long.
(md_apply_fix): Cast value before passing it.

29 years ago* config/obj-aout.h, config/obj-coff.c, config/obj-elf.h, config/obj-som.h,
Ken Raeburn [Tue, 20 Dec 1994 20:07:41 +0000 (20:07 +0000)]
* config/obj-aout.h, config/obj-coff.c, config/obj-elf.h, config/obj-som.h,
config/tc-h8500.c, config/tc-hppa.c, config/tc-hppa.h, config/tc-sh.c,
config/tc-z8k.c: Don't rely on use of ".." when including header files.
* config/tc-rce.c: Ditto.

* config/obj-coff.c (fixup_segment): Reformat condition in an `if' statement.

29 years ago* Makefile.in (SUBDIR_INCLUDES): Deleted.
Ken Raeburn [Tue, 20 Dec 1994 19:59:57 +0000 (19:59 +0000)]
* Makefile.in (SUBDIR_INCLUDES): Deleted.

29 years ago * value.h: Remove obsolete comments about FRAME vs struct
Jim Kingdon [Tue, 20 Dec 1994 19:49:18 +0000 (19:49 +0000)]
* value.h: Remove obsolete comments about FRAME vs struct
frame_info *.

29 years ago * coff-h8300.c (howto_table): All relocs get a special function.
Steve Chamberlain [Tue, 20 Dec 1994 19:13:55 +0000 (19:13 +0000)]
* coff-h8300.c (howto_table): All relocs get a special function.
(special): Never do anything when linking -r.

29 years ago * elf32-i386.c (elf_i386_relocate_section): Correct and expand the
Ian Lance Taylor [Tue, 20 Dec 1994 19:07:11 +0000 (19:07 +0000)]
* elf32-i386.c (elf_i386_relocate_section): Correct and expand the
list of cases for which relocation need not be computed.
* elf32-sparc.c (elf32_sparc_relocate_section): Likewise.

29 years ago * config/obj-coff.h: Include bfd/libcoff.h, not libcoff.h.
Ian Lance Taylor [Tue, 20 Dec 1994 18:44:46 +0000 (18:44 +0000)]
* config/obj-coff.h: Include bfd/libcoff.h, not libcoff.h.

29 years ago * mips-opc.c: Add dli as a synonym for li.
Ian Lance Taylor [Tue, 20 Dec 1994 16:27:45 +0000 (16:27 +0000)]
* mips-opc.c: Add dli as a synonym for li.

29 years ago * elf32-hppa.c (elf32_hppa_read_symext_info): Delete do_locals and
Jeff Law [Tue, 20 Dec 1994 06:17:09 +0000 (06:17 +0000)]
* elf32-hppa.c (elf32_hppa_read_symext_info): Delete do_locals and
do_globals arguments, always read symbol extension information for
globals and locals.  All callers changed.
(elf32_hppa_size_stubs): Rework to only read symbol extension
information once for each input bfd.  Another 10% improvement in
linker performance.

29 years ago * config/tc-hppa.c (pa_subspace): Make sure SEC_HAS_CONTENTS is
Jeff Law [Mon, 19 Dec 1994 22:33:35 +0000 (22:33 +0000)]
* config/tc-hppa.c (pa_subspace): Make sure SEC_HAS_CONTENTS is
clear for a section with the "ZERO" attribute.

29 years ago * ld.h (split_by_reloc, split_by_file): New flags.
Steve Chamberlain [Mon, 19 Dec 1994 22:16:27 +0000 (22:16 +0000)]
* ld.h (split_by_reloc, split_by_file): New flags.
* ldwrite.c  (clone_section, split_sections): New functions.
* lexsup.c (parse_args): Understand new split options.

29 years ago * config/tc-mips.c (load_register): Rewrite to handle O_big 64 bit
Ian Lance Taylor [Mon, 19 Dec 1994 22:02:01 +0000 (22:02 +0000)]
* config/tc-mips.c (load_register): Rewrite to handle O_big 64 bit
constants.
(mips_ip): Accept O_big constants in case 'I'.  Change case
'i'/'j' to treat an O_big constant as an out of range value.

29 years ago * Reduce useless symbols for ELF in an attempt to make smaller
Jeff Law [Mon, 19 Dec 1994 21:23:20 +0000 (21:23 +0000)]
* Reduce useless symbols for ELF in an attempt to make smaller
objects and speed up the linker.
* config/tc-hppa.c (struct call_info): Replace end_symbol field
with a size field.
(hppa_elf_mark_end_function): Delete unneeded function.
(pa_build_unwind_subspace): For the 2nd unwind relocation, use
the function symbol + function size instead of a special symbol
for the end of the function.
(process_exit): Compute the function size here.  Don't call
hppa_elf_mark_end_of_function anymore.
(pa_procend): Likewise.
(hppa_fix_adjustable): Only reject 32bit relocations for SOM.
(elf_hppa_final_processing): Simplify.

29 years agoVarious arc stuff.
David Edelsohn [Mon, 19 Dec 1994 21:07:43 +0000 (21:07 +0000)]
Various arc stuff.

29 years ago * config/tc-arc.c (arc_insert_operand): Change reg parm to pointer
David Edelsohn [Mon, 19 Dec 1994 21:05:59 +0000 (21:05 +0000)]
* config/tc-arc.c (arc_insert_operand): Change reg parm to pointer
to table entry.  All callers changed.
(md_shortopts): New argument -mmult.
(md_parse_option): Recognize it.
(md_show_usage): Print it.
(md_begin): If -mmult, say we have the new multiply and shift insns.
(md_assemble): Fix reloc generation for 32 bit immediate values.
Clean up modifier handling.  Try next insn if fake operand says there's
an error.  Update to new syntax of insertion/extraction fns.
Recognize predefined aux regs.  Don't abort if insertion fn missing.