Commit Graph

8115 Commits

Author SHA1 Message Date
Jeff Law 91f8701603 * printcmd.c (address_info): Use fprintf_symbol_filtered
to print the symbol name.

	* stabsread.c (define_symbol): Handle cfront lossage for
	struct/union/enums and typedefs.

	* partial-stab.h (case N_BINCL): Update psymtab_language
	as appropriate when changing subfiles.
	(case N_SOL): Update psymtab_language as appropriate when
	changing subfiles.  Add typedef for structs, unions, and enums
	when processing C++ files.
1993-11-11 23:27:21 +00:00
Jeff Law 3e80841e27 * elf32-hppa.c (hppa_elf_reloc): Remove DEFUN crud. Remove code
which is either commented out or ifdef'd out.  Add, update and
	clean comments.  Fix various indention and spacing problems.  Handle
	problems related to using "ble" to jump to a stub rather than "bl"
	(%r31 is trashed by "ble", but not by "bl").
	(NEW_INSTRUCTION): Put inside curly braces.
	(CURRENT_STUB_OFFSET): Fix indention problems.
	(hppa_elf_build_arg_reloc_stub): Fix indention and spacing problems.
	Add, update and clean comments.  Handle "ble" %r31 lossage problems.
	(hppa_elf_build_long_branch_stub): Likewise.
	(hppa_look_for_stubs_in_section): Likewise.
	(hppa_elf_stub_check): Remove obsolete function.

	* hppa_stubs.h: Add new instructions to deal with %r31 lossage
	problems.  Delete unused instructions.
1993-11-11 23:17:51 +00:00
Jim Kingdon 577379ab60 * stabs.texinfo (Stabs in ELF): Clarify how Bbss.bss work with respect
to picking which Bbss.bss symbol to use, and (because there seems to
	be no good way of doing it) re-write some of the text to make it
	sound like Bbss.bss isn't such a great idea after all (as currently
	designed).
1993-11-11 21:35:07 +00:00
Mark Eichin 7ae681949a if we're on lynx, set up GNU_MAKE and CONFIG_SHELL in FLAGS_TO_PASS to
override "generic" (ie. incorrect) values of "" and /usr/latest/bin/make
1993-11-11 20:35:30 +00:00
David D. Zuhn 062d092547 keep run.1 1993-11-11 20:07:08 +00:00
Jim Kingdon 3f73b7c868 * gdb.texinfo (C): In addition to saying people have to use g++ for
good results, say they have to use stabs.  Specifically say cfront
	doesn't work well.
	(Summary): Merge in information on Modula-2, Pascal, and Chill from
	the gdb README.  Add xrefs to places where the support for the various
	languages is described in detail.
1993-11-11 19:58:00 +00:00
Jim Kingdon 017dff7034 * README: Remove information on languages and just cite the (newly
updated) information in doc/gdb.texinfo instead.
1993-11-11 19:52:49 +00:00
David D. Zuhn ba8acf4679 keep pagas and utils 1993-11-11 19:50:02 +00:00
Jim Kingdon 66e8e483de * delta68-nat.c: Fix typos (add missing ");" and stuct -> struct). 1993-11-11 19:24:46 +00:00
Jim Kingdon d0454ea862 * config.guess: Recognize Sony news mips running newsos. 1993-11-11 18:07:50 +00:00
David D. Zuhn 835eaf4635 remove sh-hms from hppa 1993-11-11 03:09:24 +00:00
David Henkel-Wallace a99c9b6624 remove mh-unixware; we always use svr4 now. 1993-11-10 22:59:47 +00:00
Ian Lance Taylor ca16b5e55a * write.h (fixS): Rename fx_callj field to fx_tcbit.
* write.c, config/obj-coff.c, config/obj-coffbfd.c,
	config/tc-i960.c: Corresponding changes.
1993-11-10 22:06:06 +00:00
Mark Eichin 4d1259b118 changelog for build-all.mk semicolon change 1993-11-10 21:58:34 +00:00
Mark Eichin 1900e81550 all-cygnus, build-cygnus: "fi else" needs to be "fi ; else" 1993-11-10 21:56:23 +00:00
Jim Kingdon 71256429ca * dbxread.c (process_one_symbol, N_RBRAC): Don't clear
within_function just because local_symbols is NULL.  It appears
	that this bug has existed since the 10 Apr 89 change which started
	clearing within_function here.
1993-11-10 21:05:38 +00:00
Jim Kingdon 4023311b08 * dbxread.c: Remove BELIEVE_PCC_PROMOTION define. The code which
used this was moved to stabsread.c a long time ago.
1993-11-10 19:42:31 +00:00
Jim Kingdon 56756a5a28 * config/m68k/tm-m68k.h: Clean up CALL_DUMMY comment.
* config/m68k/{tm-hp300bsd.h,tm-hp300hpux.h,tm-m68k-em.h,
	tm-monitor.h,tm-sun3.h,tm-vx68.h}, config/sparc/tm-sparc.h:
	Define BELIEVE_PCC_PROMOTION.
1993-11-10 19:32:22 +00:00
Jim Kingdon 447bc3edeb * dstread.c (dst_sym_fns): Update for flavours.
* symfile.c (find_sym_fns): Add kludge for apollo like for rs/6000.
	* dstread.c (dst_symfile_offsets): Set objfile->num_sections.
1993-11-10 16:31:17 +00:00
Jim Kingdon 89ce0c8f50 gcc -Wall lint:
* thread.c: Include "gdbcmd.h" and <ctype.h>.
	* Makefile.in: Update dependency.
	* thread.c (thread_command): Remove unused variable p.
	* values.c (unpack_double): Use len instead of TYPE_LENGTH (type).
	* valprint.c (print_floating): Correctly check sign bit now that
	we are using unsigned arithmetic.
	* symtab.c (find_pc_line_range): Remove unused variables exact_match,
	ind, and l.
1993-11-10 15:58:48 +00:00
Kung Hsu 27ed24c364 Modified Files:
valarith.c ChangeLog

        * valarith.c (value_x_binop): fix search operator in class bug
        * valarith.c (value_x_unop): fix search operator in class bug
1993-11-10 01:47:09 +00:00
Jim Kingdon 7fb951392a * Makefile.in (init.c): Add udi2go32.o to list of files that we
should not try to search for _initialize_* functions.

	* remote-udi.c (udi_wait): Change UDIGdb_StdoutReady back to
	UDIStdoutReady.  It accidentally got changed on 24 Oct 93 when
	stdout was changed to gdb_stdout.  Likewise for UDIGetStdout,
	UDIStderrReady, and UDIGetStderr.
1993-11-10 01:34:39 +00:00
Mark Eichin fb682d6970 don't ever use sh explicitly
for lynxos, set SHELL=/bin/bash
1993-11-09 23:32:04 +00:00
Mark Eichin c8f1aa31aa add patsubst %-lynxos to subst-from-hell in stamp-[34]stage-compared.
Maybe someday I'll learn enough of gnumake to turn this into something
reasonable...
1993-11-09 22:07:50 +00:00
Thomas Lord 753a74d977 Same as last time (putc_unfiltered) only this time having saved the
modified source before checking it in.
1993-11-09 21:29:50 +00:00
Ian Lance Taylor 346f04146c Entries for several checkins. 1993-11-09 21:28:19 +00:00
Thomas Lord eb279da1db Fixed too many args to putc_unfiltered. 1993-11-09 21:15:55 +00:00
Ian Lance Taylor a5ccdad1fc * elfcode.h (elf_object_p): Rather than looking through an array
of architectures, get the ELF EM_xxx code from the backend
	information.  Let the generic ELF target match any EM_xxx code not
	matched by another ELF target.  Call elf_backend_object_p to let
	the backend do more checks and set global information.
	* libelf.h (struct elf_backend_data): Added elf_machine_code and
	elf_backend_object_p fields.
	(struct bfd_elf_arch_map): Removed.
	(bfd_elf_arch_map, bfd_elf_arch_map_size): Don't declare.
	* elf32-target.h, elf64-target.h: Initialize elf_machine_code
	field with ELF_MACHINE_CODE.  Initialize elf_backend_object_p
	field with elf_backend_object_p (if it is defined).
	* elf32-gen.c, elf32-hppa.c, elf32-i386.c, elf32-i860.c,
	elf32-m68k.c, elf32-m88k.c, elf32-mips.c, elf32-sparc.c,
	elf64-gen.c (ELF_MACHINE_CODE): Defined.
	* elf32-mips.c: Include ecoffswap.h to get ECOFF swapping
	routines.
	(mips_elf_object_p): Set the right machine number.
	(mips_elf_ecoff_debug_swap): Defined.
	(elf_backend_object_p): Defined to be mips_elf_object_p.
	(elf_backend_ecoff_debug_swap): Defined to be
	mips_elf_ecoff_debug_swap.
	* elf.c (bfd_elf_arch_map, bfd_elf_arch_map_size): Removed.

	* elf32-mips.c (elf_mips_howto_table): Don't complain on overflow
	for R_MIPS_26.  Correct overflow detection requires matching the
	upper four bits of the destination against the PC.  From Ted Lemon
	<mellon@pepper.ncd.com>.

	* elf32-hppa.c (elf_hppa_reloc_type_lookup): Return type
	should point to const data.
1993-11-09 21:08:58 +00:00
Mark Eichin e4d7f4c779 * Makefile.in (BASE_FLAGS_TO_PASS): pass SHELL.
(needed for CONFIG_SHELL to actually work)
1993-11-09 20:57:07 +00:00
Ian Lance Taylor ea5a60a1ea * nlmconv.c (i386_mangle_relocs): Adjust reloc address by
section output_offset.
1993-11-09 20:23:47 +00:00
Stan Shebs 0f5bc78309 Fix a braino 1993-11-09 19:43:51 +00:00
Roland Pesch c79890ee1a Fixed a few regular typos (@var for @value). 1993-11-09 19:07:05 +00:00
Jim Kingdon 7714a8b593 * utils.c (quit): Also call gdb_flush on standard output and error. 1993-11-09 18:50:22 +00:00
Jim Kingdon 36c848dbaf * .gdbinit: Remove "source /.gdbinit". It causes a spurious error
if /.gdbinit doesn't exist (and I know of no convention of putting
	something in /.gdbinit).
1993-11-09 18:28:04 +00:00
Ian Lance Taylor 95469b0290 * libelf.h: Added some comments.
(struct elf_backend_data): Added elf_backend_ecoff_debug_swap
	field.  Removed unused write_relocs field.
	* elf32-target.h: Adjusted elf_backend_data initialization
	accordingly.
	* elf64-target.h: Corrected elf_backend_data initialization to
	fill in all fields and to set elf_64_p to 1.
1993-11-09 16:33:28 +00:00
Jeff Law 7420b02b8d * Makefile.in (distclean): Delete config-stamp and config.h 1993-11-09 09:57:02 +00:00
Jeff Law f41f3d72ec * config/tc-hppa.c (evaluate_absolute): Avoid relying on
ANSI-C features.
1993-11-09 09:52:59 +00:00
Jeff Law 48153d49ce * config/tc-hppa.c (pa_type_args): Renamed from pa_export_args.
Accept new argument "is_export".  All callers changed.  When
        processing a .export directive for a function, do not allow
        the user to set the type to "CODE", instead warn and set the
        type to "ENTRY".
1993-11-09 08:51:02 +00:00
Kung Hsu aa074e84be Modified Files:
cp-valprint.c ChangeLog

        * cp-valprint.c (cp_print_value_fields): change output from <no
        value> to <optimized out or zero length>
1993-11-09 02:22:12 +00:00
Jeffrey Wheat 99c411063e RUNTEST = test for existance of a runtest in the source tree first. 1993-11-09 01:42:17 +00:00
Ian Lance Taylor 7b8106b484 * elfcode.h (bfd_section_from_shdr): Remove duplicate assignment
to filepos in SHT_STRTAB case.
	(assign_file_position_for_section): Set BFD section filepos as
	well as ELF section sh_offset.
1993-11-08 23:33:56 +00:00
Ian Lance Taylor e2756048da * reloc.c: Use const instead of CONST.
(bfd_perform_relocation): Make variable howto a const pointer.
	* bfd-in2.h, libbfd.h: Rebuilt.
1993-11-08 23:22:49 +00:00
Jim Kingdon de759c833b * Makefile.in: Remove unused variable GCC. Remove "#CC=cc" line
which doesn't really relate to anything.
1993-11-08 23:18:46 +00:00
Jim Kingdon 058470e1dc * Makefile.in (CC_FOR_TARGET): Test for existence of gcc/xgcc, not
for existence of gcc/Makefile.
1993-11-08 23:12:38 +00:00
Jim Kingdon 3971f61b9c * gdb.t20/gdbme.cc: Add comment about pmi being optimized out. 1993-11-08 22:58:34 +00:00
David D. Zuhn d5b2cb761e update for datasheet 1993-11-08 21:20:52 +00:00
Jim Kingdon 97f298e851 * inflow.c (terminal_init_inferior), infptrace.c (child_resume):
Add comments about use of Lynx PIDGET and how we will want to
	clean it up.
1993-11-08 18:16:06 +00:00
Jim Kingdon b857d95635 * stabs.texinfo: Clean up stuff about visibility and virtual
characters.

	* stabs.texinfo (N_M2C): Cite Sun doc.
1993-11-08 17:54:29 +00:00
Jim Kingdon 1dfaef6225 * stabsread.c (read_one_struct_field): Don't give up on unknown
visibility character, just shove it in fip->list->visibility.
	(read_baseclasses): Don't give up on unknown virtual or visibility
	characters, just assume a reasonable default, complain, and keep
	going.
	(attach_fields_to_type): Complain on unrecognized visibility.
	One result of all this is that '9' (VISIBILITY_IGNORE) can be used
	in a stab as well as being something which GDB uses internally.
1993-11-08 17:27:48 +00:00
Ian Lance Taylor 9226253a41 * config/tc-mips.c (mips_ip, printInsn): Handle 'k' (from Ted
Lemon <mellon@pepper.ncd.com>).
	(mips_ip): Permit odd numbered floating point registers if -mips3.
1993-11-08 17:09:18 +00:00