Commit graph

2789 commits

Author SHA1 Message Date
Michael Meissner
629b6214ad Support saving saved regs with multiple stores in addition to store multiple instructions in prologue. 1995-03-03 17:39:37 +00:00
David Edelsohn
8b0f5a9df9 * sparc-tdep.c (decode_asi): New function.
(sparc_print_register_hook): Pretty print more v9 registers.
1995-03-03 09:06:51 +00:00
David Edelsohn
306d27ca4e * dwarfread.c (struct dieinfo): Use CORE_ADDR for at_{low,high}_pc.
(target_to_host): Change result type to CORE_ADDR.
1995-03-03 06:26:25 +00:00
Michael Meissner
dc59e98286 Minor code cleanup in rs6000-tdep.c 1995-03-02 21:51:30 +00:00
Per Bothner
1d19172b58 Forgot to check in ChangeLog entry for ch-exp.y (Feb 21). 1995-03-02 04:56:01 +00:00
David Edelsohn
762cf56f74 Various changes for sparc64.
* sparc-tdep.c (NUM_SPARC_FPREGS): Define.
	(SPARC_INTREG_SIZE): Define.
	(*): Use SPARC_INTREG_SIZE instead of REGISTER_RAW_SIZE (intreg)
	where appropriate.
	(enum branch_type): New value `done_retry'.
	(isbranch): Renamed from isannulled.  All callers changed.
	Support new sparc64 branch insns.
	(single_step): Handle done_retry.
	(sparc_extract_struct_value_address): Don't assume 4 byte regs.
	(get_saved_register): Likewise.
	(sparc_push_dummy_frame): Likewise.
	(sparc_frame_find_saved_regs): Likewise.
	(sparc_pop_frame): Likewise.  Don't refer to FPS_REGNUM, CPS_REGNUM,
	or PS_REGNUM if not sparc64.  sparc64 has 64 fp regs.
	(sparc64_extract_struct_value_address): New function.
	(dump_ccreg, sparc_print_register_hook): Likewise.
	* sp64-tdep.c: Deleted.
	* sparc/tm-sp64.h (GDB_TARGET_IS_SPARC64): Define.
	(NUM_REGS): Reduce by 2, cle/tle are in the pstate reg.
	(CC_HAS_LONG_LONG): Define.
	(REGISTER_NAMES): Delete cle/tle and reorganize.
	(PS_REGNUM, FPS_REGNUM, CPS_REGNUM): Delete, they're ifdef'd out of
	sparc-tdep.c now.
	(REGISTER_BYTES): Update.
	(REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW): Delete.
	(EXTRACT_RETURN_VALUE): Delete.  Use definition in tm-sparc.h.
	(NO_SINGLE_STEP): Likewise.
	* sparc/tm-sparc.h (EXTRACT_VALUE_RETURN): Don't assume 4 byte regs.
	* sparc/sp64.mt: Move simulator support ...
	* sparc/sp64sim.mt: ... to here.
1995-03-02 00:18:04 +00:00
Kung Hsu
7e869571e4 * config/i960/vxworks960.mt: add remote-vx960.o.
* config/m68k/vxworks68.mt: add remote-vx68.o.
1995-03-01 21:22:37 +00:00
Michael Meissner
8bfd30b27f Build without warnings under Linux. 1995-03-01 18:58:34 +00:00
Michael Meissner
ea082c0ac8 Add Linux yacc suport. 1995-03-01 17:23:41 +00:00
Jim Kingdon
bc28e68dad * hppa-tdep.c (pa_print_registers), monitor.c: Use
extract_unsigned_integer and friends, not SWAP_TARGET_AND_HOST.
	* defs.h, findvar.c: Move SWAP_TARGET_AND_HOST back to findvar.c.
	Rename it to SWAP_FLOATING to make it clear it is no longer for
	integers.
1995-03-01 07:18:04 +00:00
Kung Hsu
66aa7cf935 * defs.h (SWAP_TARGET_AND_HOST): check endianess at runtime not
compile time.
1995-03-01 02:13:06 +00:00
Kung Hsu
abed6bc2e1 * arc-tdep.c (_initialize_arc_tdep): set tm_print_insn according to
processor.
        * remote-arc.c (arc_wait): when a processor stops, stop other two
        processors too.
        * remote-arc.c (switch_command): switch tm_print_insn.
1995-03-01 01:39:12 +00:00
Kung Hsu
bc01beb5ea * vx-share/ptrace.h: merge in WRS new ptrace requests. 1995-03-01 00:27:31 +00:00
Kung Hsu
75988f9412 * defs.h: fix a syntax error. 1995-03-01 00:22:46 +00:00
Kung Hsu
161520dc02 * a29k-tdep.c (get_longjmp_target): add this function, from WRS.
* remote-vx.c: move read_register and write_register out to
        target specific files.
        * remote-vx29k.c (get_fp_contnets): add this function, from WRS.
1995-03-01 00:01:49 +00:00
Kung Hsu
326ae3e292 * defs.h: define SWAP_TARGET_AND_HOST macro.
* findvar.c, monitor.c, hppa-tdep.c: remove definition of
        SWAP_TARGET_AND_HOST.
1995-02-28 23:08:06 +00:00
Jim Kingdon
689409ca78 * alpha-tdep.c (find_proc_desc): Only attempt to set
PROC_LOCALOFF (found_heuristic) if found_heuristic is non-NULL.
1995-02-28 16:38:26 +00:00
Jim Kingdon
de7ad6d87d * alpha-tdep.c (find_proc_desc): Only attempt to set PROC_LOCALOFF
(found_heuristic) if found_heuristic is non-NULL.
1995-02-28 16:35:11 +00:00
Stan Shebs
431b7d5fff * monitor.c: General gcc -Wall lint cleanup and reformat.
(monitor_command): If no args, send an empty command.
1995-02-27 20:03:49 +00:00
Stu Grossman
82fc343234 * monitor.c (monitor_load_ascii_srec): Add a one second sleep
after send LOAD_CMD to prevent loss of first S-record.
1995-02-24 05:09:37 +00:00
Per Bothner
835c255965 * ch-exp.y (expression_conversion): Recognize 'ARRAY () TYPE (EXPR)'
(same as C's '(TYPE[])EXPR')
1995-02-22 07:43:01 +00:00
Stan Shebs
7f4b4b71a2 * top.c (print_gdb_version): Update the year. 1995-02-21 20:27:41 +00:00
Jim Kingdon
d940a47ef8 * Makefile.in (CC_FOR_TARGET,CXX_FOR_TARGET): Look for newlib in
`..' not in `../..'.
1995-02-19 22:36:18 +00:00
Peter Schauer
f5de490455 Sun Feb 19 11:05:28 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
* procfs.c (unconditionally_kill_inferior):  Don't issue a PIOCKILL
	in addition to a PIOCSSIG to kill the inferior.
1995-02-19 19:08:34 +00:00
Per Bothner
fda36387eb * parse.c (follow_types): Given (TYPE[]) (i.e. with no length),
create a 0-length array type, and set BOUND_CANNOT_BE_DETERMINED.
	* valops.c (value_cast):  If a cast like (TYPE[])VALUE (i.e. array
	of unknown length) use sizeof(VALUE)/sizeof(TYPE) as the length.
	* c-typeprint.c (c_type_print_varspec_suffix):  If array length
	is 0, print it, but not if upper_bound is BOUND_CANNOT_BE_DETERMINED.
1995-02-17 23:20:29 +00:00
Michael Meissner
92c6bf4d3a Rewrite Linux insque/remque support again. 1995-02-16 21:09:22 +00:00
Michael Meissner
fed9a8d46e Only protect insque/remque on Linux. 1995-02-15 22:57:53 +00:00
Michael Meissner
677653a077 Define TEXT_SEGMENT_BASE as 1 for ppc-eabi; Make dcache.c compilable on Linux. 1995-02-15 18:51:31 +00:00
Jim Kingdon
5466f20ff2 * expression.h: Move declaration of evaluate_subexp_with_coercion
from here...
	* value.h: ...to here.
	* expression.h: Don't include value.h
1995-02-14 22:02:49 +00:00
Jim Kingdon
a686510408 * expression.h: Move include of value.h until after declaration of
enum exp_opcode.
1995-02-14 20:01:30 +00:00
Stan Shebs
d5c8cefe19 * remote-e7000.c: Comprehensive cleanup; removal of dead code,
simplify code, declare things, format to standards.
	(inferior.h, value.h, command.h, remote-utils.h): Include.
	(e7000_login): Rename to e7000_login_command.
	(e7000_ftp): Rename to e7000_ftp_command.
	(e7000_drain): Rename to e7000_drain_command.
1995-02-13 00:26:39 +00:00
Stan Shebs
faf4dcd7f3 * irix5-nat.c (string.h): Include near beginning of file. 1995-02-12 22:59:44 +00:00
Jim Kingdon
18d3d85907 * valops.c (value_arg_coerce): Use VALUE_TYPE not SYMBOL_TYPE on
arg, it is a value not a symbol.

	gcc -Wall lint:
	* eval.c: Move declaration of evaluate_subexp_with_coercion from here..
	* expression.h: ..to here.
	* expression.h: Include value.h.
	* ch-lang.c (evaluate_subexp_chill): Add default case in switch.
1995-02-12 21:54:20 +00:00
Per Bothner
7398958c7d * language.h (struct language_defn): New field evaluate_exp.
* c-lang.c (c_language_defn, cplus_language_defn, asm_langauge_defn),
	f-lang.c (f_language_defn), language.c (unknown_language_defn,
	auto_language_defn, local_language_defn), m2-lang.c (m2_language_defn):
	Set evaluate_exp to evaluate_subexp_standard.
	* ch-lang.c (evaluate_subexp_chill):  New function.  Chill-specific
	support for MULTI_SUBSCRIPT.
	(chill_language_defn):  Set evaluate_exp to evaluate_subexp_chill.
	* eval.c (enum noside):  Move from here ....
	* expression.h (enum noside):  ... to here.
	(evaluate_subexp_standard):  New prototype.
	* eval.c (evaluate_subexp):  Renamed to evaluate_subexp_standard.
	Removed lo-longer-needed test for chill_varying_type.
	(evaluate_subexp):  New.  Calls exp->language_defn->evaluate_exp.
1995-02-12 19:21:04 +00:00
Per Bothner
60438e8e3e * ch-exp.y (maybe_expression_list): New non-terminal.
(primitive_value):  Allow empty parameter list.
1995-02-12 19:18:00 +00:00
Per Bothner
7c606261da * symtab.c (add_param_to_type): Remove (commented-out) function,
since that functionality has been re-written.
	* coffread.c:  Remove commented-out add_param_to_type support.
	* mdebugread.c (parse_symbol):  Likewise.
	* stabsread.c (define_symbol):  Likewise.
1995-02-12 18:54:50 +00:00
Per Bothner
5222ca60be * valops.c (value_arg_coerce): Now takes param_type argument.
(call_function_by_hand):  Convert arguments with value_arg_coerce
	early, and overwrite original args with converted args.
	No longer need multiple calls to value_arg_coerce.
	(value_arg_push):  Removed.
	* hppa-tdep.c (hppa_push_arguments):  No longer call value_arg_coerce.
	* mips-tdep.c (mips_push_arguments):  Likewise.
	* alpha-tdep.c (alpha_push_arguments):  Likewise.
	* rs6000-tdep.c (push_arguments, ran_out_of_registers_for_arguments):
	Likewise.
	* value.h (value_arg_coerce):  Remove declaration.  (It's now static.)

	* valops.c (value_cast):  Do COERCE_VARYING_ARRAY after COERCE_REF.
1995-02-12 18:51:42 +00:00
Per Bothner
27202b6a47 * buildsym.c (finish_block): If finishing a function without known
parameter type info, set that from parameter symbols.
	* c-typeprint.c (c_type_print_varspec_suffix):  For TYPE_CODE_FUNC,
	print parameter types, if available.
	* ch-typeprint.c (chill_type_print_base):  Likewise.

	* gdbtypes.h (struct type):  Remove function type field.
	(TYPE_FUNCTION_TYPE):  Remove macro.  We can't as simply re-use
	function types now that we're also storing parameter types.
	And the payoff is much less.
	* gdbtypes.c (make_function_type):  Don't use/set TYPE_FUNCTION_TYPE.
	(recursive_dump_type):  Don't print TYPE_FUNCTION_TYPE.
	* dwarfread.c (read_subroutine_type):  Don't set TYPE_FUNCTION_TYPE.
1995-02-12 18:46:45 +00:00
Jim Kingdon
21af55c92d * buildsym.c (start_subfile): Set language for f2c like for cfront. 1995-02-12 17:53:34 +00:00
Stan Shebs
76a457c016 * Makefile.in (CLIBS): Add $(LIBIBERTY) before, in addition to
after, any host/target/native libraries.
	* dcache.c (insque, remque): Remove declarations.
	* gdbtypes.h (type_code): Remove trailing comma.

	From Peter Schauer:
	* xcoffread.c (read_xcoff_symtab) [C_HIDEXT]: Move #ifdef
	STATIC_NODEBUG_VARS inside case.
1995-02-10 00:02:15 +00:00
Jim Kingdon
137a07e69d * config/sparc/tm-sun4sol2.h: Define STATIC_TRANSFORM_NAME.
* partial-stab.h: Call it.
	* stabsread.c (define_symbol) [STATIC_TRANSFORM_NAME]: Call
	STATIC_TRANSFORM_NAME to get the name and use minimal symbols to
	get the address.
	* sparc-tdep.c (solaris_static_transform_name): New function.
1995-02-09 20:21:46 +00:00
Jeff Law
506af7a79c * somread.c (som_symtab_read): Handle dynamic relocation for both
text and data symbols.
	(som_symfile_offsets): If objfile is a shared library, then get
	text and data offsets from the shared library structures.
	* somsolib.c (som_solib_add): Copy the bfd pointer from the
	objfile rather than reopening the file again.
	(som_solib_section_offsets): New function.
	* somsolib.h (som_solib_section_offsets): Declare.
1995-02-09 19:16:47 +00:00
Jim Kingdon
2d336b1b51 * config/sparc/tm-sun4sol2.h, dbxread.c: Rename
N_SO_ADDRESS_MAYBE_MISSING to SOFUN_ADDRESS_MAYBE_MISSING.
	* symtab.h (minimal_symbol) [SOFUN_ADDRESS_MAYBE_MISSING]: Add
	filename field.
	* elfread.c (record_minimal_symbol_and_info),
	minsyms.c, symtab.h (prim_record_minimal_symbol_and_info): Return
	newly created symbol.
	* elfread.c (elf_symtab_read) [SOFUN_ADDRESS_MAYBE_MISSING]:
	Set filename field of minimal symbol.
	* symmisc.c (dump_msymbols) [SOFUN_ADDRESS_MAYBE_MISSING]:
	Print filename field.
	* minsyms.c, symtab.h (lookup_minimal_symbol): New arg sfile.
	* symm-tdep.c, somsolib.c, hppa-tdep.c, c-exp.y, f-exp.y,
	m2-exp.y, nindy-tdep.c, m3-nat.c, irix5-nat.c, hpread.c,
	os9kread.c, breakpoint.c, alpha-tdep.c, valops.c, symtab.c,
	printcmd.c, dbxread.c: Change callers to pass NULL for sfile.
	* dbxread.c (process_one_symbol) [SOFUN_ADDRESS_MAYBE_MISSING]:
	Find address of function from minimal symbols.
	* partial-stab.h, case 'f', 'F': Call find_stab_function_addr
	instead of getting pst->textlow from the stab.
	* minsyms.c (find_stab_function_addr): New function.
1995-02-09 07:00:45 +00:00
Rob Savoye
151e7820c7 * monitor.c: Fix so all the output shows up in the GUI command
window.
1995-02-09 02:21:40 +00:00
Jim Kingdon
f64a8968db Fix it so whitespace works out right even with sanitization 1995-02-07 04:46:18 +00:00
Stan Shebs
9c4ecee67e * i386-tdep.c (_initialize_i386_tdep): Put void decl on separate
line, so init.c generation works correctly.
start-sanitize-arc
	* arc-tdep.c (_initialize_arc_tdep): Ditto.
end-sanitize-arc
1995-02-07 03:01:16 +00:00
Stan Shebs
ddc0c38d2f various ChangeLog housekeeping, and
Sat Feb  4 13:29:52 1995  Stan Shebs  <shebs@andros.cygnus.com>

	* config/m68k/est.mt (TDEPFILES): Remove m68k-pinsn.o.
1995-02-07 02:44:25 +00:00
Rob Savoye
046970407b * config/mips/idt.mt: Add support for the lsi33k target.
* config/sparc/sun4sol2.mh: Add support for ser-tcp.
1995-02-06 22:00:10 +00:00
Rob Savoye
16b3ea5edd * config/mips/idt.mt: Add support for ser-tcp and the lsi33k
target.
	* array-rom.c: Finish the rest of the support commands needed by
	GDB.
	* mips-tdep.c: Add LSI33k register names and processor type.
1995-02-06 21:48:44 +00:00
Jim Kingdon
d039851f9f * gdbtk.c (gdb_disassemble): Deference pointer to function before
calling it (pre-ANSI compilers generally require this).
1995-02-06 04:39:14 +00:00