Stan Shebs [Wed, 14 Dec 1994 00:47:32 +0000 (00:47 +0000)]
* mpw-config.in (m68k-apple-macos, ppc-apple-macos,
i386-unknown-aout): New targets.
(mk.tmp): Add *DEPFILES definitions.
* mpw-make.in: Remove gC rules, clean up definitions for other
include files, bump version, fix bogus \ that should be \Option-d.
(init.c): Build correctly.
(mpw-init.c): Remove.
Ian Lance Taylor [Tue, 13 Dec 1994 16:07:02 +0000 (16:07 +0000)]
* config/tc-mips.c (macro_build): Accept BFD_RELOC_PCREL* without
requiring that the X_op_symbol be in the text_section.
(macro): Change the test for a legel expression difference to
correspond to changes in pseudo_set in read.c.
Stan Shebs [Tue, 13 Dec 1994 03:52:01 +0000 (03:52 +0000)]
* mpw-config.in: Add mapping from configs to object file formats,
get VERSION from Makefile.in and add to mk.tmp.
(mips-idt-ecoff) [TDEFINES]: Add TARGET_BYTES_BIG_ENDIAN.
* mpw-make.in (VERSION, gC): Don't define.
(ALL_CFLAGS): Remove -d flags.
(config.h): Remove definition of MPW, add HAVE_STDARG_H,
BFD_ASSEMBLER.
Stan Shebs [Tue, 13 Dec 1994 03:34:28 +0000 (03:34 +0000)]
* mpw-config.in: Edit the BFD version into bfd.h.
(m68k-apple-macos, ppc-apple-macos): New targets.
* mpw-make.in: Remove use of gC in rules, add srcdir pathnames to
more files.
Stu Grossman [Tue, 13 Dec 1994 01:04:38 +0000 (01:04 +0000)]
* gdbtk.tcl (reg_config_menu create_registers_window
recompute_reg_display_list): Use array instead of individual vars
for register display list.
* (recompute_reg_display_list update_registers): Fix bug with not
displaying all registers.
Jim Kingdon [Mon, 12 Dec 1994 21:21:10 +0000 (21:21 +0000)]
* f-lang.c: Remove duplicate declaration of
builtin_type_f_integer, and only include it in the f_builtin_types
once.
* somread.c (som_symfile_read): Just assign to objfile->obj_private,
not OBJ_UNWIND_INFO. Assigning to a cast is a GCC-ism which
the HP compiler doesn't like.
Stu Grossman [Mon, 12 Dec 1994 20:50:08 +0000 (20:50 +0000)]
* gdbtk.c: New tcl commands: gdb_fetch_registers,
gdb_changed_register_list, and gdb_regnames.
* gdbtk.tcl: Use monochrome color model for now.
* (delete_breakpoint_tag create_file_win): Add breakdot support.
* (create_file_win create_asm_win update_listing build_framework
create_source_window create_command_window): Re-org window
creation to give all windows consistent look and feel.
* (update_listing update_asm): Change pc pointer to '->'.
* (registers_command reg_config_menu create_registers_window
populate_reg_window update_registers): Revamp register window.
Allow selection of registers to be displayed. Highlight changed
registers.
Ken Raeburn [Sat, 10 Dec 1994 02:06:26 +0000 (02:06 +0000)]
* config/tc-alpha.c (alpha_ip, case 'B', subcase 'c'): Use opcode value from
pattern instead of assuming jsr.
* config/alpha-opcode.h (jmp): Add a "1,Bc" form.
* scripttempl/elf.sc: Move .ctors and .dtors from .text segment to
.data segment. They must be writable when creating a shared
library. From H.J. Lu <[email protected]>.
* elfcode.h (elf_bfd_link_add_symbols): If the first object in the
archive is not an ELF object, pass the archive to the add_symbols
entry point appropriate for the first object. From Eric Youngdale
<[email protected]>.
* elf32-i386.c (elf_i386_relocate_section): Don't compute
relocation in cases where we won't use it.
* elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
Jim Kingdon [Thu, 8 Dec 1994 23:20:11 +0000 (23:20 +0000)]
* frame.h: Restore pre-Nov 3 comments about FRAME_FP with minor
changes. They are correct, unlike the post-Nov 3 comment
(FRAME_FP doesn't have any machine-independent relationship with
FP_REGNUM or any other such notion of a "frame pointer").
Jim Kingdon [Thu, 8 Dec 1994 22:54:33 +0000 (22:54 +0000)]
* gdbserver/remote-utils.c (write_ok): Write "OK", not "Ok", to
match stubs and protocol spec.
* gdbserver/remote-utils.c (remote_open): Cast to struct sockaddr
when passing to function which expects that.
The following changes aren't quite enough to make things work with
LynxOS (apprently kernel problems).
* infrun.c (wait_for_inferior): When resuming new thread, pass pid
not -1 for remote case.
* thread.c (info_threads_command): Give error if !target_has_stack.
* infrun.c (start_remote): Call init_thread_list.
* thread.c (info_threads_command): Don't call kill for remote
debugging target.
* target.c (normal_pid_to_str): Print "thread" not "process" for
remote.
* remote.c, gdbserver/*: Add 'H', 'S', and 'C' requests, 'X'
response, and `thread' part of 'T' response.
* gdbserver/*: If program exits, send packet to GDB before
exiting. Handle termination with a signal the same as exiting
with an exitstatus.
* remote.c: Don't try to kill program after getting an 'X'
response.
* infrun.c (wait_for_inferior): Add comment about kill versus mourn.
Ken Raeburn [Thu, 8 Dec 1994 20:47:46 +0000 (20:47 +0000)]
* pc532-mach.c (NAME): Define to use ns32kaout prefix.
* ns32knetbsd.c (NAME): Ditto.
(ns32kaout_32_get_section_contents): Define to standard aout-32 version.
Stan Shebs [Thu, 8 Dec 1994 03:05:49 +0000 (03:05 +0000)]
* gdb.base/list.exp: Adjust expectations to reflect changes in
list1.c.
(test_forward_search): New test proc.
* gdb.base/list1.c (long_line): New function, has long source line.
Rob Savoye [Wed, 7 Dec 1994 21:47:22 +0000 (21:47 +0000)]
* hppa-tdep.c: Use GDB_TARGET_IS_PA_ELF so SOM target support will
stop being linked in.
* config/pa/tm-hppap.h: New file. Set GDB_TARGET_IS_PA_ELF,
otherwise it looks like BSD-ELF.
Rob Savoye [Wed, 7 Dec 1994 21:26:22 +0000 (21:26 +0000)]
* hppa-tdep.c: Use GDB_TARGET_IS_PA_ELF so SOM target support will
stop being linked in.
* config/pa/tm-hppap.h: New file. Set GDB_TARGET_IS_PA_ELF,
otherwise it looks like BSD-ELF.
Stan Shebs [Sat, 3 Dec 1994 00:19:03 +0000 (00:19 +0000)]
* solib.c (auto_solib_add_at_startup): New global.
(solib_create_inferior_hook): Call solib_add only if
auto_solib_add_at_startup is nonzero.
(_initialize_solib): New command "set auto-solib-add".
* emultempl/miposecoff.em: New file.
* emulparams/mipsidt.sh (TEMPLATE_NAME): Set to mipsecoff.
* emulparams/mipsidtl.sh (TEMPLATE_NAME): Likewise.
* scripttempl/mips.sc: Put .rel.sdata sections in .text, and
provide __runtime_reloc_start and __runtime_reloc_stop if they are
used. Align _fdata to a 16 byte boundary.
* Makefile.in (emipsidt.c): Depend upon mipsecoff.em rather than
generic.em.
(emipsidtl.c): Likewise.
(check): Pass CC_FOR_HOST and CFLAGS_FOR_HOST to runtest.
Jeff Law [Thu, 1 Dec 1994 05:34:30 +0000 (05:34 +0000)]
* somsolib.c (som_solib_get_got_by_pc): New function.
* somsolib.h (som_solib_get_got_by_pc): Add extern decl.
* hppa-tdep.c (hppa_fix_call_dummy): Handle case where FUN is the
function's export stub or real address in a shared library.
Jeff Law [Thu, 1 Dec 1994 04:08:29 +0000 (04:08 +0000)]
* gdb.disasm/hppa.s: Break the large branching tests into smaller
tests so as not to overflow expect's input buffers.
* gdb.disasm/hppa.exp: Corresponding changes.
Ken Raeburn [Tue, 29 Nov 1994 20:31:40 +0000 (20:31 +0000)]
* tc-alpha.c (in_range_signed, in_range_unsigned): New routines, split from
in_range.
(in_range): Deleted. All calls changed to in_range_*signed.
(create_lita_section): Macro deleted. Single use expanded in place.
(alpha_ip): Handle `t' and `8' operand types.
(md_apply_fix): Handle BFD_RELOC_12_PCREL. Print name of unhandled relocation
types.
* alpha-opcode.h: Added HALT and DRAINA. Disabled MOVI, since it doesn't work,
and isn't supported by the native assembler.
Stan Shebs [Mon, 28 Nov 1994 23:26:58 +0000 (23:26 +0000)]
* top.c (command_line_input): If annotation suffix is NULL,
replace it with an empty string.
(read_next_line): Pass "command" as annotation suffix to
command_line_input.