Commit Graph

8571 Commits

Author SHA1 Message Date
Jim Kingdon 4bfe9e81cd * stabsread.c (define_symbol): If we choose not to combine
two symbols, don't just ignore the second (LOC_REGISTER) one.
	* printcmd.c (print_frame_args): If we have a LOC_ARG and a
	LOC_REGISTER, use the LOC_ARG not the LOC_REGISTER.
1993-12-29 18:42:52 +00:00
Jim Kingdon 6c06a518bf * stabs.texinfo (Cross-References): `::' is for nested types only
within <>.
	(Structures): Document static members.
1993-12-29 16:22:31 +00:00
Fred Fish 96e5cb2138 * solib.c (DEBUG_BASE): Remove macro and all references.
* solib.c (debug_base_symbols):  Add array of symbols to lookup.
	* solib.c (IGNORE_FIRST_LINK_MAP_ENTRY):  Add macro.
	* solib.c (look_for_base, locate_base):  Use debug_base_symbols.
	* solib.c (find_solib):  Use IGNORE_FIRST_LINK_MAP_ENTRY.
1993-12-28 23:15:20 +00:00
Kung Hsu bbc2cef268 CVS:
Modified Files:
	ChangeLog c-exp.y

        * c-exp.y : fix grammar to parse ellipsis (...)
	(fix pr4218)
1993-12-28 20:11:25 +00:00
Ian Lance Taylor d1b44e837e * elf.c (bfd_elf_generic_reloc): If this is not an inplace reloc,
then skip bfd_perform_relocation even if the addend is non-zero.
1993-12-28 17:45:14 +00:00
Kung Hsu 279a3cfdfb Modified Files:
ChangeLog stabsread.c

        * stabsread.c (read_type): fix problem when reading static member
        of a class. caused by change to allow :: inside template
        instantiated name.
1993-12-28 02:46:34 +00:00
Mark Eichin f2f824ae57 * config/i386-linux.mt: delete ".sh" from genscripts argument
(change made to genscripts on July 21...)

This is all it took for linux-native ld to build. It isn't necessarily useful,
particularly as gcc is still configured to pass -m486 and -dll-verbose, which
this ld doesn't parse...
1993-12-27 19:39:55 +00:00
Jim Kingdon 168e808729 * stabs.texinfo: Document S type attribute. 1993-12-27 18:59:39 +00:00
Jim Kingdon 666e7e4121 * gdbtypes.h: Expand on comments for TYPE_CODE_BITSTRING and
TYPE_CODE_STRING a bit.
1993-12-27 18:56:23 +00:00
Jim Kingdon 30ae2c91cb * m68k-tdep.c (m68k_skip_prologue, m68k_find_saved_regs):
Allow pea %fp; move.l %sp, %fp instead of link instruction to
	set up the new frame.
1993-12-27 18:44:07 +00:00
Jim Kingdon d6bbac399c * main.c (init_main): Change "set remotedebug" back to var_zinteger
from var_boolean.
1993-12-27 18:26:57 +00:00
Jim Kingdon 240972ecfb * minsyms.c (prim_record_minimal_symbol): Call
prim_record_minimal_symbol_and_info rather than duplicating code.
1993-12-27 17:49:00 +00:00
Jim Kingdon 8d60affde9 * minsyms.c, symtab.h (prim_record_minimal_symbol{,_and_info}),
coffread.c (record_minimal_symbol),
	xcoffread.c (RECORD_MINIMAL_SYMBOL), callers: Add objfile parameter.
1993-12-27 17:47:28 +00:00
Jim Kingdon dfb4a50861 * c-exp.y (yylex): Don't try to deal with nested types. 1993-12-27 17:27:45 +00:00
Jim Kingdon 2d2fc7e464 * cp-valprint.c (cplus_print_value): Call check_stub_type on
TYPE_BASECLASS (type, i) before we look at its name.
1993-12-27 17:01:03 +00:00
Jim Kingdon 404f69a80b * dbxread.c: Move default definition of GCC_COMPILED_FLAG_SYMBOL
from here . . .
	* symtab.h: . . . to here.
	* dbxread.c (record_minimal_symbol): Move check for gcc{,2}_compiled.
	and __gnu_compiled* from here . . .
	* minsyms.c (prim_record_minimal_symbol_and_info): . . . to here.
	* minsyms.c (prim_record_minimal_symbol): Call
	prim_record_minimal_symbol_and_info rather than duplicating code.
1993-12-27 16:31:56 +00:00
Jeff Law e7386e3225 Add comment about breakpoint vector usage. 1993-12-27 04:52:47 +00:00
Jeff Law e89d48dd88 * stabs.texinfo: Add notes about stabs-in-som where appropriate. 1993-12-27 04:47:59 +00:00
Jeff Law 2f8c3639fa * dbxread.c (process_one_symbol): Handle stabs-in-som just like
stabs-in-elf.
        (pastab_build_psymtabs): Likewise.

        * hppa-tdep.c: Change all comments to reference %r3 or frame pointer
        rather than %r4.
        (frame_chain, skip_prologue, dig_rp_from_stack): Handle %r3 as the
        frame pointer.

        * config/pa/tm-hppa.h (FP_REGNUM): Define as %r3.
        (FIND_FRAME_SAVED_REGS): Handle %r3 as frame pointer.
        (CALL_DUMMY): Likewise.
1993-12-27 04:46:05 +00:00
Jim Kingdon b02fd8caa2 * exec.c (exec_file_command): If error occurs after we have opened
exec_bfd but before we call push_target, make sure to close exec_bfd.
1993-12-26 23:33:14 +00:00
Jim Kingdon b2f03c3027 Sun Dec 26 16:59:39 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
* infrun.c (wait_for_inferior): Remove confusing and inaccurate
	stuff about subroutine calls, return, etc., from comment which
	says "We've wandered out of the step range.".

Sun Dec 26 09:18:10 1993  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)

	* infrun.c (wait_for_inferior): When checking whether the line has
	changed, check the symtab as well.
1993-12-26 23:06:56 +00:00
Jim Kingdon 5461330147 * gdbtypes.c (force_to_range_type): Use switch statement.
complain() not warning() if the TYPE_CODE isn't one we know how to
	deal with gracefully.  Use builtin_type_int not
	lookup_fundamental_type (the objfile we passed to
	lookup_fundamental_type was sometimes NULL).
1993-12-26 22:37:47 +00:00
Torbjorn Granlund 45db9cafcf Making HPPA assembler case sensitive where it should be, and speeding it up
a factor of 2.
1993-12-26 22:36:02 +00:00
Jim Kingdon f4f0d17487 * valops.c (call_function_by_hand, push_word), defs.h (push_word),
convex-xdep.c, m88k-nat.c, i386m3-nat.c, mips-tdep.c, mipsm3-nat.c,
	ns32km3-nat.c, remote-bug.c, m88k-tdep.c, remote-hms.c, remote-mips.c,
	config/gould/tm-np1.h, hppa-tdep.c (hppa_fix_call_dummy), remote-vx.c:
	Use REGISTER_SIZE, unsigned LONGEST, and
	{store,extract}_unsigned_integer, instead of sizeof
	(REGISTER_TYPE) and REGISTER_TYPE.
	* All tm.h files: Change REGISTER_TYPE to REGISTER_SIZE.
	* hppa-tdep.c (pa_print_fp_reg): Remove unused variable val.

	* Makefile.in (ALLDEPFILES): Remove i386ly-nat.c and m68kly-nat.c.
	Add lynx-nat.c.
1993-12-26 18:10:22 +00:00
Jeff Law 192c3eeb94 * hppa-tdep.c (init_extra_frame_info): Correctly adjust the base
of the current frame when "fromleaf" is true.  Do not adjust the
        frame base of the innermost frame if it is a leaf function.
1993-12-26 04:06:32 +00:00
Jeff Law 068b08ebf9 No longer needed. 1993-12-26 04:03:38 +00:00
Jeff Law 28958ab2d0 * configure.in: Nuke hacks which were used to get a special
version of GAS for HPPA configurations.
1993-12-26 04:02:36 +00:00
Jim Kingdon 28f851f93a * stabsread.c (define_symbol): Only combine a p/r pair into a
LOC_REGPARM if REG_STRUCT_HAS_ADDR.
1993-12-25 19:50:45 +00:00
Jim Kingdon 008d4449a7 Sat Dec 25 09:50:29 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
* valops.c (value_struct_elt): Check for (value)-1 return from
	search_struct_method.
1993-12-25 19:28:47 +00:00
Jim Kingdon 04f566a356 * defs.h: Move definitions of TARGET_*_BIT after include of tm.h.
The old way (using #undef in tm.h) was ugly and asking for
	trouble, because it makes it possible for some file to use the
	wrong definition.  Move definition of HOST_CHAR_BIT after definition
	of TARGET_CHAR_BIT.
	* config/alpha/tm-alpha.h, config/h8300/tm-h8300.h,
	config/h8500/tm-h8500.h, config/z8k/tm-z8k.h: Don't undef TARGET_*_BIT
	before defining them.
1993-12-25 18:44:22 +00:00
Jim Kingdon 504ccfd788 * mdebugread.c: Change the builtin_type_* in this file to
mdebug_type_* and make them static.  Use TYPE_CODE_ERROR for
	complex and float decimal.
1993-12-25 18:04:33 +00:00
Jim Kingdon ca603cff1e * printcmd.c (disassemble_command): Call wrap_here between printing
address and printing instruction.
1993-12-25 15:58:46 +00:00
Jim Kingdon 7677d4fda4 * stabsread.c (read_type): Don't fall through 'S' case (the case it
was falling though happened to do the thing thing ("break;") but that
	is hardly a good thing to assume).
1993-12-24 20:43:29 +00:00
Jim Kingdon 8ba154e2f0 remove stray <<<<< from CVS 1993-12-24 19:05:23 +00:00
Ian Lance Taylor 9ef23d71b3 Various entries. 1993-12-23 17:29:32 +00:00
Ian Lance Taylor 6336b309dc gcc -Wall lint:
* ar.c (main): Put parens around assignment used as truth value.
	* objdump.c (display_bfd): Declare return value as void.
	(stab_print): Use "" instead of 0 to initialize array.
	(dump_stabs_1): Print vma using printf_vma.
	(display_info): Put parens around assignment used as truth value.
	* strings.c (print_strings): Cast printf arguments.
1993-12-23 17:29:06 +00:00
Per Bothner 852b3831ce * valops.c (value_coerce_array): Handle STRINGs as well as ARRAYs. 1993-12-21 22:22:45 +00:00
Per Bothner cba009211a * ch-exp.y (match_dollar_tokens): Fix off-by-one bug.
* ch-lang.c (chill_is_varying_struct), ch-lang.h:  New function.
	* ch-lang.c (chill_printstr):  Use double quotes, not single quotes.
	* ch-typeprint.c (chill_type_print_base):  Handle TYPE_CODE_BITSTRING.
	Improve printing of TYPE_CODE_STRING, TYPE_CODE_SET, and
	TYPE_CODE_STRUCT (including checking chill_is_varying_struct).
	Print TYPE_DUMMY_RANGE by printing its TYPE_TARGET_TYPE.
	Handle TYPE_CODE_ENUM.
	* ch-valprint.c (chill_val_print):  Handle TYPE_CODE_BITSTRING.
	For TYPE_CODE_STRING, never print address.  Handle VARYING strings.
	* gdbtypes.c (force_to_range_type):  New.
	* gdbtypes.c (create_set_type):  Make work, following Chill layout.
	* gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND, TYPE_DUMMY_RANGE): New.
	* stabsread.c (read_type):  Distinguish string and bitstring from
	char-array and set.
	* valarith.c (value_subscript), valops.c (value_coerce_array):
	Handle STRINGs as well as ARRAYs.
	* valarith.c (value_bit_index):  Fix think.  Use new macros.
1993-12-21 22:18:51 +00:00
Ken Raeburn 0c3cab7aac Add TODO list item from observing Solaris assembler. 1993-12-21 17:54:38 +00:00
Ken Raeburn a2805287bd changes so far 1993-12-21 17:47:38 +00:00
Ken Raeburn cd83759cfa (coff_write_relocs) [SWAP_OUT_RELOC_OFFSET]: Copy addend to r_offset field. 1993-12-21 17:41:45 +00:00
Ken Raeburn 4d4023b875 added coff-sparc.c to CFILES, rebuilt dependencies 1993-12-21 17:27:20 +00:00
Ken Raeburn 29c4b8befb (aix386_core_file_p): Use cd_regs[0] for computing the offsetof because AIX
/bin/cc does not like to take the address of an array.  (From Minh Tran-Le.)
1993-12-21 17:24:10 +00:00
Ken Raeburn 0a75cb6cd8 sparc-coff reloc, symbols.c BSF_* changes 1993-12-20 21:54:33 +00:00
Ken Raeburn e67a0640a0 * write.c (adjust_reloc_syms) [RELOC_REQUIRES_SYMBOL]: If no symbol is present
(i.e., relocation against absolute), create a phony local symbol, and use it in
the reloc.
(fixup_segment): When adjusting a reloc with an absolute symbol, have
TC_FORCE_RELOCATION control clearing add_symbolP too.

* config/tc-sparc.h (RELOC_REQUIRES_SYMBOL): Define.
1993-12-20 21:53:01 +00:00
David D. Zuhn c4e349acbf no cvs on rs6000 1993-12-20 21:09:41 +00:00
Ken Raeburn d3e3010b0b md_end, listing, obj-coff changes 1993-12-20 16:58:19 +00:00
Ken Raeburn 6868afe647 * as.c (main): Only invoke md_end if it's defined as a macro.
* tc.h (md_end): Don't declare it.
* config/tc-*.[ch] (md_end): Deleted, in cases where it doesn't do anything.
* config/tc-vax.c (vip_end): Deleted null function.
* config/tc-mips.c (md_mips_end): Renamed from md_end.
* config/tc-mips.h (md_mips_end): Declare.
(md_end): New macro, calls md_mips_end.

* write.c (write_object_file): Don't close output file.
* as.c (main): Close output file (if needed) after calling listing_print, which
should be after calling write_object_file, which sets the frag addresses.
1993-12-20 16:48:00 +00:00
Ken Raeburn 7e1766ba87 whitespace 1993-12-20 16:43:37 +00:00
Ken Raeburn 8b13fa4e5c * as.c (main): Call listing_print before BFD gets closed, when symbol data
hasn't been freed up yet.
1993-12-20 15:43:23 +00:00