Ken Raeburn [Thu, 21 Oct 1993 19:50:06 +0000 (19:50 +0000)]
Set bfd_gas for all sparc targets. Added facility for keeping or rejecting
configurations still under development; default is to assume production
environment, and reject configs still being worked on. Mark Elf configurations
(except sparc and i386) as developmental. Deleted cases matching some generic
names in favor of more specific names. (E.g., when we get Alpha
support, we'll still only support VMS for Vax.)
Jim Kingdon [Thu, 21 Oct 1993 19:11:15 +0000 (19:11 +0000)]
gcc -Wall lint:
* coff-h8300.c, coffcode.h: Change shrink parameter
in *_reloc16_estimate to unsigned to match prototype.
* archive.c: Avoid "/*" in comment.
Ian Lance Taylor [Thu, 21 Oct 1993 17:13:38 +0000 (17:13 +0000)]
* elf32-mips.c: Include "seclet.h".
(mips_elf_fake_sections): Force size of .reginfo section to sizeof
Elf32_External_RegInfo.
(mips_elf_seclet_link): New function. Link the .reginfo section
specially, and pass everything else to the generic routine.
(bfd_elf32_bfd_seclet_link): Define macro.
* elf32-target.h: If bfd_elf32_bfd_seclet_link is already defined,
don't override it.
Stu Grossman [Thu, 21 Oct 1993 10:10:21 +0000 (10:10 +0000)]
* remote-udi.c (udi_store_registers, store_register): Use
UDI29KPC address space when modifying PC. It seems that you can't
modify the PC directly (at least in the isstip simulator).
Jim Kingdon [Thu, 21 Oct 1993 05:22:34 +0000 (05:22 +0000)]
* target.h: Put remote_debug declaration back here. Add baud_rate.
* remote.c, remote-udi.c, remote-utils.h: Let target.h take care of
declaring these. Those random externs all over are error prone.
* Move "set remotebaud" from remote-utils.c to main.c to it applies
to remote.c as well.
* xcoffread.c (xcoff_symfile_read), coffread.c (coff_symfile_read):
Sort symtabs for this objfile only, not for all objfiles.
* symfile.c, symfile.h (sort_all_symtab_syms): Remove; no longer used.
Jim Kingdon [Thu, 21 Oct 1993 04:41:56 +0000 (04:41 +0000)]
* xcoffread.c (xcoff_symfile_read), coffread.c (coff_symfile_read):
Sort symtabs for this objfile only, not for all objfiles.
* symfile.c, symfile.h (sort_all_symtab_syms): Remove; no longer used.
Stu Grossman [Thu, 21 Oct 1993 00:49:42 +0000 (00:49 +0000)]
* main.c: Make baud_rate and remote_debug be global variables,
remove #include "remote-utils.h". This makes it possible to build
GDB without remote-utils.c. Also, move setting of remote_debug
into main, so that all remote*.c files can use it (not just the
serial line ones). And, make baud_rate be an int.
* remote-udi.c: Change kiodebug to remote_debug.
* remote-utils.c: Move setting of baud rate and debug into main.c.
* remote-utils.h: Redefine sr_{get set}_debug and sr_{get set}_baud
to use baud_rate and remote_debug globals for compatibility.
* remote.c: Use remote_debug and baud_rate globals directly,
instead of sr_ functions, so that we don't need to load
remote-utils.c.
Ian Lance Taylor [Wed, 20 Oct 1993 20:37:40 +0000 (20:37 +0000)]
* libnlm.h (nlm_backend_data): Added signature field.
(nlm_signature): New macro.
* nlmcode.h (nlm_object_p, nlm_write_object_contents): Use the NLM
signature from the backend rather than the constant NLM_SIGNATURE.
* nlm32-i386.c (nlm32_i386_backend): Initialize signature field.
Ken Raeburn [Wed, 20 Oct 1993 20:04:17 +0000 (20:04 +0000)]
(HFILES): New variable, for use in "make dep".
(.dep): Depend on $(CFILES) and $(HFILES). Delete .dep1 and remake it, so that
"$?" is complete.
(.dep1): Don't need to remove .dep1 first.
(dep.sed): Depend on config.status, not Makefile.
(CFILES): Add nlm.c.
Jim Kingdon [Wed, 20 Oct 1993 17:15:45 +0000 (17:15 +0000)]
* Makefile.in (INTERNAL_LDFLAGS): New macro. The new part is
that we use CFLAGS and PROFILE_CFLAGS to link.
(gdb, rapp, kdb): Use INTERNAL_LDFLAGS instead of
LDFLAGS and/or GLOBAL_CFLAGS.
Stu Grossman [Wed, 20 Oct 1993 16:23:17 +0000 (16:23 +0000)]
* gdb.t{01 02 03 04 05 06 07 08 09 10 11 12 13 15 16
17}/Makefile.in: Make it possible to run the testsuite with Sun
make and CC = cross gcc by adding explicit build rules for .o
files.
Ken Raeburn [Wed, 20 Oct 1993 15:47:59 +0000 (15:47 +0000)]
* Makefile.in (OBJDUMP_FOR_TARGET): Define similar to AS_FOR_TARGET.
(check): Don't pass ASFLAGS variable.
(site.exp): Put ASFLAGS, OBJDUMP, OBJDUMPFLAGS into site.exp.
Ken Raeburn [Wed, 20 Oct 1993 15:38:42 +0000 (15:38 +0000)]
Makefile.in (OBJDUMP_FOR_TARGET): Define similar to AS_FOR_TARGET.
(check): Don't pass ASFLAGS variable.
(site.exp): Put ASFLAGS, OBJDUMP, OBJDUMPFLAGS into site.exp.
From Jeff Law:
lib/gas-defs.exp (objdump_start, objdump_finish): New functions
so that tests can parse the output of objdump looking for errors
in relocation entires, file headers and the like.
Jim Kingdon [Wed, 20 Oct 1993 03:58:18 +0000 (03:58 +0000)]
* mh-hp300: Don't define CFLAGS to empty. Why should hp300 be
different from anything else? ("gdb doesn't understand the native
debug format" isn't a good enough answer because we might be using
gcc).
Ian Lance Taylor [Tue, 19 Oct 1993 22:18:15 +0000 (22:18 +0000)]
* config/tc-m68k.h (AOUT_MACHTYPE): Define to be external variable
m68k_aout_machtype.
* config/tc-m68k.c (omagic): Remove obsolete and unused variable.
(m68k_aout_machtype): New variable, if OBJ_AOUT.
(md_assemble): Initialize m68k_aout_machtype based on
current_architecture, if OBJ_AOUT.
(md_parse_option): Remove obsolete reference to omagic.
Kung Hsu [Tue, 19 Oct 1993 22:17:57 +0000 (22:17 +0000)]
Modified Files:
ChangeLog
* values.c (value_virtual_fn_field): Fix the offset calculation
when calling virtual functions. (gdb.t22/virtfunc.exp).
* eval.c (evaluate_subexp): same as above.
Kung Hsu [Tue, 19 Oct 1993 21:20:37 +0000 (21:20 +0000)]
Modified Files:
values.c eval.c
* values.c (value_virtual_fn_field): Fix the offset calculation
when calling virtual functions. (gdb.t22/virtfunc.exp).
* eval.c (evaluate_subexp): same as above.
Ian Lance Taylor [Tue, 19 Oct 1993 19:55:52 +0000 (19:55 +0000)]
* configure.in (alpha-*-osf*): New target; use alpha.mt.
* Makefile.in (ALL_EMULATIONS): Added em_alpha.o.
(em_alpha.c): New target; use alpha.sh and alpha.sc.
* config/alphaosf.mh (NATIVE_LIB_DIRS, HOSTING_CRT0): Define.
* config/alpha.mt: New file.
* emulparams/alpha.sh: New file.
* scripttempl/alpha.sc: New file.
Ian Lance Taylor [Tue, 19 Oct 1993 19:41:44 +0000 (19:41 +0000)]
* coff-alpha.c: Implemented reloc handling for the linker, made
various other related changes.
* libecoff.h (ecoff_backend_data): Added rdata_in_text field.
Renamed finish_reloc to adjust_reloc_in. Added adjust_reloc_out
field.
(ecoff_bfd_get_relocated_section_contents): Don't define.
* ecoff.c (ecoff_sec_to_styp_flags, ecoff_styp_to_sec_flags):
Handle .lita section.
(ecoff_slurp_reloc_table): Handle RELOC_SECTION_FINI.
finish_reloc backend field renamed to adjust_reloc_in.
(ecoff_bfd_seclet_link): Adjust number of aux entries to
debug_align boundary.
(ecoff_compute_section_file_positions): If rdata_in_text put
.rdata section in text segment, not data segment. Put .pdata
section in text segment.
(ecoff_write_object_contents): Likewise. Also, call
adjust_reloc_out, and handle .lita, .xdata, .pdata, .fini and
absolute sections when writing out relocs.
* coffswap.h (coff_swap_aouthdr_out): For ALPHAECOFF, output 2 for
bldrev field, as on Alpha OSF/1. Padding field is now 2 bytes.
* coff-mips.c (mips_ecoff_swap_reloc_out): Added assertion.
(mips_adjust_reloc_in): Renamed from mips_finish_reloc.
(mips_adjust_reloc_out): New function (does nothing).
(mips_ecoff_backend_data): Initialize new fields.
(ecoff_bfd_get_relocation_section_contents): Define to be
bfd_generic_get_relocated_section_contents.
* reloc.c (bfd_perform_relocation): Added casts to avoid Alpha
OSF/1 cc bug.
Jim Kingdon [Mon, 18 Oct 1993 01:10:25 +0000 (01:10 +0000)]
* parse.c, parser-defs.h (follow_types): New function.
* c-exp.y (ptype : typebase abs_decl): Use it.
* c-exp.y (ptype): Add support for type qualifiers after the
typebase. The typebase rule already has support for them before
the typebase.
* Makefile.in: Change the expected number of shift/reduce
conflicts to 6. This is OK--the 2 new conflicts are basically the
same as one of the old ones.
Jim Kingdon [Sun, 17 Oct 1993 14:30:20 +0000 (14:30 +0000)]
* infrun.c (wait_for_inferior): Clean up comments which were at
the top of the file, making them more concise and moving them with
the code (Sorry, Randy, but these stream-of-consciousness comments
really have to go). Switch the order of the "&&", which makes
things clearer and turns out to be an improvement with respect to
side effects and speed.
Stu Grossman [Sun, 17 Oct 1993 09:12:58 +0000 (09:12 +0000)]
* procfs.c: Handle process exits more elegantly by trapping on
entry to _exit. Also, cleanup procinfo list when process dies of
it's own accord (as opposed to being killed).
Stu Grossman [Sun, 17 Oct 1993 01:02:57 +0000 (01:02 +0000)]
* procfs.c (procfs_wait): Losing Unixware can't do poll on /proc
files. Use PIOCWSTOP instead.
* corelow.c (add_to_thread_list): Fix arg to match prototype.
Jim Kingdon [Sat, 16 Oct 1993 04:37:45 +0000 (04:37 +0000)]
* stack.c (print_stack_frame): Put catch_errors around
print_frame_info so (for example) error printing source doesn't
cause auto-displays to get skipped in normal_stop.
Jim Kingdon [Sat, 16 Oct 1993 02:41:17 +0000 (02:41 +0000)]
* findvar.c (value_from_register): When preparing to cast a value
from REGISTER_VIRTUAL_TYPE to type, copy the REGISTER_VIRTUAL_SIZE;
the old code didn't copy the whole thing.
* valops.c (value_assign): Add comment.
* gdb.t12/scope.exp: Remove xfails, filename::var syntax should be
working now. Add an xfail if accesing a bss variable causes
a memory error if the target is not yet run.
* symtab.c (lookup_partial_symtab): If filename is not found and
contains no slashes, try again and compare without leading path
components.
* symtab.c (lookup_symtab_1): Replace open coded version of
lookup_partial_symtab with a function call.
David Edelsohn [Fri, 15 Oct 1993 09:29:32 +0000 (09:29 +0000)]
* ldlang.c (lang_size_sections, lang_common): ALIGN_N can't handle
types of different sizes (eg: 64 and 32 bits), so coerce.
* ld.h (ALIGN_N): Add warning about usage.
Jim Kingdon [Fri, 15 Oct 1993 04:26:06 +0000 (04:26 +0000)]
* fork-child.c (fork_inferior), remote-eb.c (eb_create_inferior),
remote-mon.c (monitor_create_inferior), remote-nindy.c
(nindy_create_inferior), remote-st.c (st2000_create_inferior),
remote-vx.c (vx_create_inferior): Remove CREATE_INFERIOR_HOOK; it
is replaced by init_trace_fun.
* config/convex/xm-convex.h, convex-xdep.c: Add comments explaining
how to do without CREATE_INFERIOR_HOOK for whoever fixes the Convex
port.
* Makefile.in: Add Mach files to ALLDEPFILES, etc.
* m3-nat.c: Clean up more hair--message(), cprocs.
* configure.in: Recognize Mach targets and hosts.
* config/ns32k/tm-umax.h: Add some #ifndef's so tm-ns32km3.h can
include this file.
* Mach headers in config/*/tm-*.h: Fix includes to match correct
locations of files.
Rob Savoye [Fri, 15 Oct 1993 03:41:58 +0000 (03:41 +0000)]
* remote-mon.c (general_open): Set dev_name. Minor tweaking to get
it working again.
* config/m68k/tm-monitor.h: Remove floating point register names
as there aren't any on any of the monitors that use this code.
Jim Kingdon [Fri, 15 Oct 1993 00:36:26 +0000 (00:36 +0000)]
* gdb.t24/demangle.exp: Clean up spacing (2 strings), inclusion of
constructor name (2 string), name of _GLOBAL_ demangling (2 strings),
name of __st* demangling (2 strings). Did Kung really get the
more than 95 others right without testing them?
* configure.in (configdirs): Add gdb.disasm
* gdb.disasm: New directory for GDB disassembler tests.
* gdb.disasm/hppa.{exp,s,mt}: Disassembly tests for the HPPA.