Commit graph

2440 commits

Author SHA1 Message Date
Jeff Law
7f43b9b70d * hppa-tdep.c (frameless_function_invocation): If no unwind
descriptor was found, then assume this was not a frameless
        function invocation.
        (frame_saved_pc): If the saved PC is in a linker stub, then
        return the return address which the linker stub will return to.
1994-04-06 00:51:50 +00:00
Jeff Law
4556842434 * xm-hppab.h: Never define USG.
* xm-hppah.h: Always define USG.
1994-04-05 22:31:21 +00:00
Per Bothner
b96bc1e41f * values.c (unpack_long, value_from_longest),
valarith.c (value_binop):  Allow TYPE_CODE_RANGE.
1994-04-05 20:10:31 +00:00
Jim Kingdon
d541230260 * symfile.c (deduce_language_from_filename): .cpp is a C++ extension. 1994-04-02 15:40:00 +00:00
Peter Schauer
38b9047360 For SVR4 targets, enable gdb to set breakpoints in shared
library functions before the executable is run.
	* elfread.c (elf_symtab_read):  Handle symbols for shared library
	functions.
	* sparc-tdep.c (in_solib_trampoline):  Renamed to in_plt_section
	and moved to objfiles.c.
	* objfiles.c (in_plt_section):  Moved to here from sparc-tdep.
	* config/tm-sysv4.h (IN_SOLIB_TRAMPOLINE):  Use new in_plt_section.
	* config/sparc/tm-sun4sol2.h (IN_SOLIB_TRAMPOLINE):  Removed,
	the new generic definition from tm-sysv4.h works for Solaris.
1994-04-01 08:50:03 +00:00
Ian Lance Taylor
70f42bae0b * elfread.c (elf_symtab_read): Change storage_needed,
number_of_symbols and i to long.  Rename get_symtab_upper_bound to
	bfd_get_symtab_upper_bound.  Check for errors from
	bfd_get_symtab_upper_bound and bfd_canonicalize_symtab.
	* nlmread.c (nlm_symtab_read): Same changes.
1994-03-30 22:10:18 +00:00
Jim Kingdon
34d265dc08 * xcoffread.c (xcoff_next_symbol_text): New function.
(read_xcoff_symtab): Set next_symbol_text_func to it.
	Move raw_symbol outside of read_xcoff_symtab.
1994-03-30 21:48:14 +00:00
Jim Kingdon
aece310f08 * remote.c (getpkt): Remove unused "out" label. 1994-03-30 19:44:53 +00:00
Jeff Law
bd2f0c8543 * breakpoint.c (print_it_normal): Allow GDB to notify the user
about more than one watchpoint being triggered.
1994-03-30 17:17:01 +00:00
Jim Kingdon
c2216bfd1b * config/m68k/tm-dpx2.h: Include tm-m68k.h not nonexistent tm-68k.h. 1994-03-30 16:25:08 +00:00
Peter Schauer
9e837b37a4 * blockframe.c (find_pc_partial_function): mst_file_text
symbols do not live in the shared library transfer table.
1994-03-30 10:29:36 +00:00
Peter Schauer
db2302cb93 * ch-exp.y (decode_integer_value, match_character_literal,
match_bitstring_literal):  Guard tolower calls with isupper,
	tolower on old BSD systems blindly subtracts a constant.
	* dbxread.c (read_ofile_symtab):  Check for __gnu_compiled_* as
	well when determining the producer of the object file.
	* mdebugread.c (has_opaque_xref):  New function to check for
	cross reference to an opaque aggregate.
	* mdebugread.c (parse_symbol, parse_partial_symbols):  Do not
	enter typedefs to opaque aggregates into the symbol tables.
	* mdebugread.c (parse_external):  Remove skip_procedures argument,
	it has always been 1.  Remove code that handled stProc symbols,
	it was never executed and was wrong, as the index of a
	stProc symbol points to the local symbol table and not to the
	auxiliary symbol info. Update caller.
	* mdebugread.c (parse_partial_symbols):  Do not enter external
	stProc symbols into the partial symbol table, they are already
	entered into the minimal symbol table.
	* config/i386/tm-symmetry.h:  Clean up, it is now only used for Dynix.
	Remove all conditionals and definitions for ptx.
	I386_REGNO_TO_SYMMETRY moved to here from symm-tdep.c.
	Fix addresses of floating point registers in REGISTER_U_ADDR.
	STORE_STRUCT_RETURN now handles cc and gcc conventions.
	FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC,
	IN_SIGTRAMP, SIGCONTEXT_PC_OFFSET defined to make backtracing through
	signal trampoline code work.
	* config/i386/xm-symmetry.h:  Clean up, it is now only used for Dynix.
	Remove all conditionals and definitions for ptx.
	Remove KDB definitions.
	* symm-nat.c (store_inferior_registers):  Fetch registers before
	storing them to obtain valid floating point control registers.
	Store fpu registers.
	* symm-nat.c (print_1167_control_word):  Dynix 3.1.1 defines
	FPA_PCR_CC_C0 and FPA_PCR_CC_C1, avoid duplicate case value.
	* symm-nat.c (fetch_inferior_registers, child_xfer_memory):
	Fix typos.
	* symm-nat.c (child_resume):  Update type of `signal' parameter.
	* symm-tdep.c (I386_REGNO_TO_SYMMETRY):  Moved to tm-symmetry.h.
1994-03-30 09:57:08 +00:00
Jeff Law
19cd0c1f75 * hppa-tdep.c (hppa_fix_call_dummy): Use an alternate method for
calling import stubs for functions in shared libraries.
1994-03-30 07:03:01 +00:00
Per Bothner
58cda66eeb * ch-exp.y: Implement SIZE(mode_name) and SIZE(expression). 1994-03-30 06:59:16 +00:00
Per Bothner
73cd3b4911 * ch-lang.c (chill_is_varying_struct): Magic string is
was "<var_length>" is now "__var_length" (more portable).
1994-03-30 05:23:00 +00:00
Jim Kingdon
0c9935502f * remote.c (getpkt): If we get a timeout, actually retry rather
than just giving up the first time it happens.
	* remote.c: Document sequence numbers.
	(remote_store_registers): Change syntax of 'P' request so that it
	never looks like a sequence number.
1994-03-30 03:50:23 +00:00
Kung Hsu
d80ff70c10 Modified Files:
ChangeLog os9kread.c remote-os9k.c

        * os9kread.c (record_minmal_symbol): add section_offset to
        relocate minimal symbol table.
        * os9kread.c (read_minimal_symbols): ditto.
        * os9kread.c (os9k_symfile_init): increase size of dbg and stb
        file names.
        * os9kread.c (read_os9k_psymtab): if there's no dbg file, just
        return. Also if file addr is 0 leave it 0, not to relocate.
        * remote-os9k.c (_initialize_remote_os9k): add 'set remotexon',
        'set remotexoff' and 'set remotelog' commands.
1994-03-30 00:18:29 +00:00
Jim Kingdon
4aa6fe102d * remote.c (remote_store_registers): Add 'P' request to set an
individual register.
	(remote_write_bytes, remote_read_bytes): Use %lx, not %x, to print
	a target address.
1994-03-29 20:43:48 +00:00
Jim Kingdon
649694ea87 * config/sparc/tm-sparc.h: Define USE_REGISTER_NOT_ARG.
* stabsread (define_symbol): If USE_REGISTER_NOT_ARG, go back to
	combining all 'p' and 'r' pairs into a LOC_REGPARM.
1994-03-26 16:00:02 +00:00
Jim Kingdon
72e35288c7 * command.c (do_setshow_command, case var_string): Never add a
space to the end of the string.
	* NEWS: Document this change.
	* .gdbinit: Add a space to the "set prompt" command.
1994-03-26 15:15:00 +00:00
Jim Kingdon
493424b108 * m3-nat.c, i386m3-nat.c, config/i386/i386m3.mh: Many minor
changes to make it compile (it doesn't link yet).
1994-03-26 04:20:44 +00:00
Jeff Law
de48213858 * hppa-tdep.c (skip_prologue): Do nothing if not at the beginning
of a function.
        (skip_trampoline_code): Rewrite and add support for argument
        relocation stubs stubs, import/export stubs, calls through
        "_sr4export" and cascaded trampolines.
1994-03-26 01:07:36 +00:00
Jim Kingdon
59144a8124 * config/i386/ptx.mh (XDEPFILES): Add coredep.o. Delete infptrace.o.
* symm-nat.c (child_wait, _initialize_symm_nat, kill_inferior):
	Supply alternate version if ATTACH_DETACH is not defined.
	* ptx4-nat.c, config/i386/{nm-ptx4.h, ptx4.mh, ptx.mt, ptx4.mt,
	tm-ptx.h, tm-ptx4.h, xm-ptx.h, xm-ptx4.h}: New files.
	* configure.in: Recognize i[34]86-sequent-sysv4* host.
1994-03-26 00:19:35 +00:00
Jeff Law
fdafbfad9e * hppa-tdep.c (skip_prologue): Return "pc" not zero
if no unwind descriptor is found.
1994-03-25 18:48:24 +00:00
Jeff Law
eb1167c65c * tm-hppa.h (NUM_REGS): Bump to 128 registers.
(REGISTER_NAMES): Add entries for "right-half" of FP registers.
        (REGISTER_RAW_SIZE, MAX_REGISTER_RAW_SIZE): Do not treat FP regs
        differently.  All registers are four bytes.
        (REGISTER_BYTES, REGISTER_BYTE): Simplify now that all registers are
        the same size.
        (REGISTER_VIRTUAL_TYPE): Use builtin_type_float for all FP regs.

        * hppa-tdep.c (pa_print_fp_reg): Update to print even numbered FP
        registers as both single and double values (fetching 2nd 32bit half
        as necessary).  Annotate each register printed with its precision.
1994-03-25 18:21:49 +00:00
Jeff Law
c8f75fe857 * paread.c (read_unwind_info): Fix off-by-one error. 1994-03-25 18:15:10 +00:00
Jim Kingdon
0c1af47ff0 * main.c (complete_command): Deal with it if arg is NULL. 1994-03-25 16:39:05 +00:00
Jim Kingdon
4df6dcd10d * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Revise comment
regarding using the PC--using the PC is necessary and all the
	FIXME comments in the world won't make it go away.
1994-03-25 01:38:24 +00:00
Jim Kingdon
2f3b7d8eb5 * valops.c (value_at, value_at_lazy): Give error if we dereference
a pointer to void.
	* gdbtypes.h: Fix comments regarding TYPE_CODE_VOID.
	* stabsread.c: Use 1, not 0, for TYPE_LENGTH of void types.
1994-03-24 18:32:31 +00:00
Jim Kingdon
553e18620a * stabsread.c (patch_block_stabs): Add comment about what happens
if the definition is in another compilation unit from the stab.
1994-03-24 17:03:23 +00:00
Jim Kingdon
acdec9542b * stabsread.c (patch_block_stabs): Don't create LOC_OPTIMIZED_OUT
symbols.  Reverts change of 2 Apr 1993.
1994-03-24 15:32:42 +00:00
Jim Kingdon
5801f3488e * dbxread.c (end_psymtab): Add comment about empty psymtabs. 1994-03-24 15:12:40 +00:00
Jim Kingdon
0997322359 * main.c (complete_command): New command, from Rick Sladkey
<jrs@world.std.com>.
	(symbol_completion_function): Don't declare rl_point and
	rl_line_buffer; they are now declared in readline.h.
	(show_commands): Don't declare history_base; it is declared in
	history.h.
	* command.c (lookup_cmd): Don't delete trailing whitespace.
1994-03-24 15:00:52 +00:00
Jim Kingdon
e552788b73 * gdbtypes.h, gdbtypes.c: Add comments regarding whether static
member functions have an element in args for a (nonexistent) this
	pointer.
1994-03-23 15:52:11 +00:00
Jeff Law
0a64709eb4 * config/pa/tm-hppao.h (NO_PC_SPACE_QUEUE_RESTORE): Define.
* hppa-tdep.c (hppa_pop_frame): Do not restore the PC space
        queue if NO_PC_SPACE_QUEUE_RESTORE is defined.
1994-03-23 04:16:32 +00:00
Jeff Law
84ad95c118 * stabsread.c (REG_STRUCT_HAS_ADDR): Accept additional argument
for the structure's type.  All callers changed.

        * valops.c (call_function_by_hand): Check REG_STRUCT_HAS_ADDR
        for each structure argument rather than assuming it's either
        true or false for all structure arguments.

        * config/pa/tm-hppa.h (REG_STRUCT_HAS_ADDR): Depend only
        on the length structure passed, not the compiler used.

        * config/sparc/tm-sparc.h (REG_STRUCT_HAS_ADDR): Accept additional
        argument for the structure's type.
1994-03-23 04:14:34 +00:00
Jim Kingdon
51f8393319 * values.c (set_internalvar): Don't set var->value until we are
sure there won't be an error().
1994-03-23 00:34:44 +00:00
Jim Kingdon
29f2ceed48 * remote.c (get_offsets): Reinstate comment which was in
remote_wait about use of SECT_OFF_TEXT and so on.
1994-03-22 23:44:39 +00:00
Stu Grossman
72bba93b85 Mon Mar 21 11:02:51 1994 Stu Grossman (grossman at cygnus.com)
* alpha-tdep.c:  Gobs of changes (many imported from mips-tdep) to
	improve remote debugging efficiency.  Also fixed problems with
	doing function calls for programs with no entry points.
	* infcmd.c (run_stack_dummy):  Use CALL_DUMMY_ADDRESS instead of
	entry_point_address.
	* inferior.h (PC_IN_CALL_DUMMY):  ditto.
	* mdebugread.c (parse_symbol, parse_procedure, parse_external,
	parse_lines):  Pass section_offsets info to these routines so that
	we can relocate symbol table entries upon readin.
	* (psymtab_to_symtab_1):  Set symtab->primary to tell
	objfile_relocate to do relocations for our symbols.
	* (ecoff_relocate_efi):  New routine to relocate adr field of PDRs
	(which hang off of the symbol table).
	* Use prim_record_minimal_symbols_and_info instead of
	prim_record_minimal_symbols to supply section info to make minimal
	symbol relocations work.
	* minsyms.c (prim_record_minimal_symbols_and_info):  If section is
	-1, try to deduce it from ms_type.
	* objfiles.c (objfile_relocate):  Use ALL_OBJFILE_SYMTABS where
	appropriate.  Handle relocation of MIPS_EFI symbols special. Also,
	add code to relocate objfile->sections data structure.
	* remote.c (get_offsets):  Use new protocol message to acquire
	section offsets from the target.
	* (remote_wait):  Get rid of relocation stuff.  That's all handled
	by objfile_relocate now.
	* config/alpha/alpha-nw.mt (TM_FILE):  Use tm-alphanw.h.
	* config/alpha/tm-alpha.h:  Define CALL_DUMMY_ADDRESS, and
	VM_MIN_ADDRESS.
	* config/alpha/tm-alphanw.h:  DECR_PC_AFTER_BREAK=0, VM_MIN_ADDRESS=0.
1994-03-21 19:57:38 +00:00
Jeff Law
4fd5eed484 * hppa-tdep.c (hppa_fix_call_dummy): Use value_ptr.
(hppa_push_arguments): Likewise.
1994-03-21 19:53:36 +00:00
David Edelsohn
7f695c077c * config/sparc/sp64.mt (SIMFILES): Use remote-sim.o now.
(TM_CLIBS): Define to -lm, the simulator uses the sqrt() function.
* config/sparc/tm-sp64.h (FPS_REGNUM, CPS_REGNUM): Define (so
sparc-tdep.c compiles).
(TARGET_PTR_BIT): Must be a constant now, fix at 64.
1994-03-20 23:45:33 +00:00
David Edelsohn
d148e8c4fe sparc-tdep.c (sparc_frame_find_save_regs): Use REGISTER_RAW_SIZE instead of 4. 1994-03-20 23:25:16 +00:00
David Edelsohn
d36889322e sp64-tdep.c (target_ptr_bit, set_target_ptr_bit): Deleted, can no longer set
this at run time.
1994-03-20 23:17:18 +00:00
Jim Kingdon
d0bff94e42 * config/m68k/{cisco.mt,tm-cisco.h}: New files.
* Makefile.in (ALLPARAM, ALLCONFIG): Add them.
	* configure.in: Recognize m68*-cisco*-*.
1994-03-19 19:53:31 +00:00
Jim Kingdon
94d4b71373 * Makefile.in (TAGS): Use variables directly, rather than using
find, to locate TM_FILE, XM_FILE, and NAT_FILE.  This is faster
	and means that these filenames no longer need be unique across all
	the config/* directories.
	* configure.in: Put the config/*/ into TM_FILE, etc.

	* m68k-stub.c (computeSignal): Return SIGFPE, not SIGURG, for chk
	and trapv exceptions.

	* target.h (struct section_table), objfiles.h (struct obj_section):
	Change name of field sec_ptr to the_bfd_section.  More mnemonic
	and avoids the (sort of, for the ptx compiler) name clash with
	the name of the typedef.
	* exec.c, xcoffexec.c, sparc-tdep.c, rs6000-nat.c, osfsolib.c,
	solib.c, irix5-nat.c, objfiles.c, remote.c: Change users.

	* utils.c: Include readline.h.
	* Makefile.in (utils.o): Add dependency.

	* remote.c (getpkt): Add support for run-length encoding.
1994-03-19 18:49:50 +00:00
Steve Chamberlain
8eec331072 * utils.c (prompt_for_continue): Call readline, not gdb_readline. 1994-03-19 03:16:10 +00:00
Jim Kingdon
20657f7106 * dstread.c (record_minimal_symbol): New arg objfile. Pass it to
prim_record_minimal_symbol.
	Callers: Pass it.
1994-03-19 01:41:51 +00:00
Jim Kingdon
ee6d646a4b * regex.c (EXTEND_BUFFER): Adjust pointers within buffer by
computing their offset from the start of the old buffer and adding
	to the new buffer, rather than by assuming we can add the
	difference between the old buffer and the new buffer (it might not
	fit in an int).  Merge in cosmetic differences from emacs regex.c
	version of this macro.
1994-03-18 18:34:36 +00:00
Jim Kingdon
478d38114b Fix typo. 1994-03-17 04:09:23 +00:00
Jim Kingdon
f8715549af * printcmd.c: Remove "set print fast-symbolic-addr off" command.
The which it worked around was fixed on 25 Feb 94 in coffread.c,
	so I'm nuking the command.
	* symtab.c (find_addr_symbol): Comment out, no longer used.
1994-03-16 20:09:55 +00:00
Jim Kingdon
a645ccc926 * main.c (main): Don't init_source_path for the -cd argument. Now
that source_path doesn't contain the current_directory from when
	GDB started up, init_source_path is no longer useful (and is
	harmful because it clobbers a source_path set in $HOME/.gdbinit).
1994-03-16 18:05:57 +00:00
Jim Kingdon
c42b8af8f7 * TODO: Remove item about line numbers being off. It is useless
and confusing without a reproducible test case (it mentions
	proceed(), but I was able to step through proceed without trouble).
1994-03-16 15:30:12 +00:00
Peter Schauer
ae6d035d28 For Sunos 4.x targets, enable gdb to set breakpoints in shared
library functions before the executable is run. Retrieve dynamic
	symbols from stripped executables.
	* symtab.h (minimal_symbol_type):  Add mst_solib_trampoline type.
	* parse.c (write_exp_msymbol), symmisc.c (dump_msymbols),
	symtab.c (list_symbols):  Handle mst_solib_trampoline.
	* minsyms.c (lookup_minimal_symbol):  Handle mst_solib_trampoline
	for all targets, remove IBM6000_TARGET dependencies.
	* dbxread.c (read_dbx_dynamic_symtab):  New function.
	* dbxread.c (dbx_symfile_read):  Use it.
	* dbxread.c (SET_NAMESTRING):  Set namestring to
	"<bad string table index>" instead of "foo" if the string index is
	corrupt.
	* xcoffread.c (read_xcoff_symtab):  Use mst_solib_trampoline instead
	of mst_unknown.
	* symtab.c (list_symbols):  Take from_tty as parameter and pass it
	to break_command. Handle mst_file_* minimal symbol types.
1994-03-15 21:46:32 +00:00
Kung Hsu
b427690aac Modified Files:
ChangeLog c-exp.y

        * c-exp.y(yylex): fix potential memory overflow.
1994-03-15 19:45:04 +00:00
Jim Kingdon
f93b941bde * environ.c (set_in_environ): Eliminate special handling of PATH and
GNUTARGET.
	* putenv.c: Removed, conflicts with system declaration of
	putenv on RS/6000 running AIX 3.2.5, and above change makes it
	unnecessary.
	* Makefile.in: Change accordingly.
	* procfs.c (procfs_create_inferior): Change comment accordingly.
1994-03-15 18:40:51 +00:00
Jim Kingdon
17221e410f * rs6000-tdep.c: Change value to value_ptr. 1994-03-15 18:07:30 +00:00
Jim Kingdon
c4ad6b0970 * i386m3-nat.c: Include floatformat.h.
(get_i387_state): Use memset not bzero.
1994-03-13 20:17:39 +00:00
Jim Kingdon
5fa83062a8 * Version 4.12.3.
* Makefile.in: Enable commented out getopt_h, bfd_h, etc.  Change
	ieee-float.h to floatformat.h.
1994-03-13 18:50:26 +00:00
Jim Kingdon
79f3d58629 * valprint.c (val_print_string): Ignore error if the error
happened after a terminating '\0'.

	* c-valprint.c (c_val_print): Never add 1 to return value from
	val_print_string; just return what it returns.
1994-03-13 18:37:27 +00:00
Jim Kingdon
8eb795981e * target.h (enum target_signal): Add TARGET_SIGNAL_FIRST, for
looping through all of the enums.
	* infrun.c (signals_info): Use it.
1994-03-13 17:47:15 +00:00
Jim Kingdon
8e4c7b3e25 * main.c (main): When printing warning about bad baud rate, don't
use warning(); it relies on current_target which isn't set up yet.
1994-03-11 18:18:47 +00:00
Jim Kingdon
d1bdad5760 * breakpoint.c (_initialize_breakpoint): Update docstring for
tbreak to match what the code actually does.  Don't mention tbreak
	in docstrings for "enable once" or "enable breakpoints once".
1994-03-11 16:31:57 +00:00
Jim Kingdon
c4de6b308e * breakpoint.c (_initialize_breakpoint): Update docstring for
tbreak to match what the code actually does.
1994-03-11 16:13:08 +00:00
Jim Kingdon
d78d4d1660 * symfile.h (ADD_PSYMBOL_VT_TO_LIST): Don't put a semicolon after
while (0).  That defeats the whole purpose of using do . . . while (0).
	* mdebugread.c (parse_partial_symbols): Don't use ?: expression as
	list for ADD_PSYMBOL_TO_LIST; the macro takes its address and
	using a ?: expression as an lvalue is not portable.
1994-03-10 18:25:33 +00:00
Peter Schauer
1037391405 * mdebugread.c (parse_type): Do not complain for types with
an `indexNil' aux index, these are simply undefined types.
	Remove indexNil check from caller of parse_type.
	* mdebugread.c (parse_partial_symbols):  Do not enter
	stGlobal, scCommon symbols into the minimal symbol table, their
	value is the size of the common, not its address.
	Handle scInit, scFini, scPData and scXData sections.
	Use minimal symbol type mst_file_* for stLabel symbols, instead of
	mst_*.
	Enter stProc symbols into the global_psymbols list once, not into
	the static_psymbols_list.
	Get rid of dummy psymtab if it is empty, to allow proper detection
	of stripped executables.
	* mdebugread.c (cross_ref):  Allow cross references to Fortran
	common blocks.
1994-03-10 09:28:18 +00:00
Jim Kingdon
fddb9bda70 * stabsread.c (common_block_end, fix_common_block): Stash the
struct pending * in the SYMBOL_TYPE, not the SYMBOL_NAMESPACE, so
	as to not assume that a pointer fits in an enum.
1994-03-10 03:57:57 +00:00
Kung Hsu
d9389f37d5 Modified Files:
ChangeLog os9kread.c stabsread.c remote-os9k.c symfile.c
	target.c

        * os9kread.c (fill_sym): check compiler verion number for pre-
        UltraC compiler.
        * os9kread.c (os9k_process_one_symbol): address of symbol is
        relative to section not module.
        * stabsread.c (define_symbol): add symbol type 's' as local
        symbol for os9k.
        * remote-os9k.c: add command 'set monitor_log' to turn on or off
        monitor logging.
        * remote-os9k.c: fix bug in delete breakpoint, single step trace.
        * remote-os9k.c: fix bug in 'set remotebaud' function.
        * remote-os9k.c (rombug_link): minimize checking so to improve
        speed.
        * symfile.c (symfile_command): check if failed to link, also make
        the command be able to accept more than one filenames.
        * target.c (target_link): check if failed to link with rombug.
1994-03-10 03:13:52 +00:00
Jim Kingdon
cdc7029d49 * remote-es.c (es1800_child_ops): Don't declare it static. 1994-03-09 23:24:31 +00:00
Jim Kingdon
352c21dd9b * config/i386/tm-i386v4.h: Give just macro name, not args, to #undef. 1994-03-08 19:45:32 +00:00
Jim Kingdon
9d2b8d50f4 * dbxread.c: New variable lowest_text_address.
(record_minimal_symbol, read_dbx_symtab): Set it.
	(read_dbx_symtab): Use lowest_text_address + text_size instead of
	end_of_text_address.
	* config/gould/tm-pn.h: Add comment regarding END_OF_TEXT_DEFAULT.
1994-03-08 18:22:56 +00:00
Jim Kingdon
7944822188 * parser-defs.h: Add "extern" to start of variable declarations so
we don't end up with commons.
	* parse.c: Define these variables.
1994-03-08 15:25:00 +00:00
Jim Kingdon
ce2f21b2cd * irix5-nat.c (find_solib): Cast o_path to CORE_ADDR when using it
as one.
1994-03-08 15:01:55 +00:00
Jim Kingdon
7810d333c9 * alpha-tdep.c: Change value to value_ptr. 1994-03-08 14:56:30 +00:00
Peter Schauer
a6e21fba51 * solib.c (elf_locate_base): New function to locate the address
of the dynamic linker's runtime structure in the dynamic info section.
	* solib.c (locate_base):  Use it instead of iterating over the list
	of mapped address segments.
	* solib.c (look_for_base, bfd_lookup_symbol):  Removed, no longer
	necessary.
1994-03-07 22:01:58 +00:00
Jeff Law
70e43abe7c * hppa-tdep.c (pc_in_linker_stub): Move decl to beginning of file.
(pc_in_interrupt_handler): New function.  Also add PARAM decl.
        (find_proc_framesize): Deal with HPUX setting SAVE_SP bit for
        signal trampoline and interrupt routines.
        (frame_saved_pc): Handle signal trampolines and interrupt routines.
        (frame_chain, frame_chain_valid): Likewise.
        (hppa_frame_find_saved_regs): Likewise.  Also deal with special
        saved regs convention for SP.

        * tm-hppa[bho].h: FRAME_FIND_SAVED_PC_IN_SIGTRAMP): Define.
        (FRAME_BASE_BEFORE_SIGTRAMP): Define.
        (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Define.

        * tm-hppah.h (IN_SIGTRAMP): Define.
1994-03-04 17:54:41 +00:00
Jim Kingdon
93dc341439 * ch-exp.y (match_simple_name_string): Accept '_' as well as an
alphabetic character as the start of a name.
1994-03-04 03:12:05 +00:00
Jim Kingdon
b855dfe7eb * sparclite/Makefile.in (all install): Build and install aload. 1994-03-04 02:58:28 +00:00
Jim Kingdon
d9a5e91f87 * configure.in: Accept i[34]86-*-*sysv32 because that is what
config.guess and config.sub produce.
1994-03-04 01:38:57 +00:00
Jim Kingdon
833a289566 * mips-tdep.c: Change value to value_ptr. 1994-03-03 20:42:59 +00:00
Jim Kingdon
82a2edfbcf * breakpoint.c, breakpoint.h, c-valprint.c, ch-valprint.c,
cp-valprint.c, eval.c, expprint.c, findvar.c, language.c,
	objfiles.h, infcmd.c, printcmd.c, stack.c, typeprint.c,
	valarith.c, valops.c, valprint.c, value.h, values.c: Replace
	value with value_ptr.  This is for the ptx compiler.
	* objfiles.h, target.h: Don't declare a "sec_ptr" field using a
	"sec_ptr" typedef.
	* symm-nat.c: Add a bunch of stuff for symmetry's ptrace stuff.
	#if 0 i386_float_info.
	* symm-tdep.c (round): Remove.  Also remove sgttyb.
	* symm-tdep.c: Remove lots of stuff which duplicates stuff from
	i386-tdep.c.  Remove register_addr and ptx_coff_regno_to_gdb.
	* i386-tdep.c (i386_frame_find_saved_regs): Put in
	I386_REGNO_TO_SYMMETRY check in case it is needed for Dynix
	someday.
	* config/i386/nm-symmetry.h: Change KERNEL_U_ADDR.  Move
	stuff from PTRACE_READ_REGS, PTRACE_WRITE_REGS macros to
	symm-nat.c.  Define CHILD_WAIT and declare child_wait().
	* config/i386/tm-symmetry.h: Remove call function stuff; stuff in
	tm-i386v.h is apparently OK.
	* config/i386/xm-symmetry.h [_SEQUENT_]: Define HAVE_TERMIOS not
	HAVE_TERMIO.  Define MEM_FNS_DECLARED, NEED_POSIX_SETPGID, and
	USE_O_NOCTTY.
1994-03-03 01:00:57 +00:00
Peter Schauer
c485c7a9dd * osfsolib.c (xfer_link_map_member): Update to use new
target_read_string interface.
1994-03-02 20:14:07 +00:00
Jim Kingdon
d1c0c6cf7b * infrun.c (wait_for_inferior): In checking
remove_breakpoints_on_following_step, check
	through_sigtramp_breakpoint as well as step_resume_breakpoint.
1994-03-02 17:49:45 +00:00
Jim Kingdon
25200748a2 * os9kread.c (os9k_process_one_symbol): Rename
VARIABLES_INSIDE_BLOCK to OS9K_VARIABLES_INSIDE_BLOCK.
	* symfile.c (symbol_file_command): Check for (CORE_ADDR)-1, not
	(CORE_ADDR)0, from target_link, since that is what it uses.
	Process name at end, not during parsing (like we did before Kung's
	change), so that -readnow and -mapped can appear anywhere.
	Make text_relocation a local variable.
	* config/i386/i386os9k.mt: Fix comment.
	* Makefile.in (ALLDEPFILES): Add remote-os9k.c.
	* os9kread.c: Put "comments" after #endif inside /* */.
	* stabsread.h: Add os9k_stabs variable.
	* stabsread.c (start_stabs), os9kread.c (os9k_process_one_symbol):
	Set it.
	* stabsread.c (define_symbol): If os9k_stabs, put a 'V' symbol
	descriptor in global_symbols not local_symbols.
	(read_type): If os9k_stabs, accept 'c', 'i', and 'b' type
	descriptors.
	(read_type): If os9k_stabs, accept function parameters after 'f'
	type descriptor.
	(read_array_type): If os9k_stabs, don't expect index type and
	expect lower and upper to be separated by ',' not ';'.
	(read_enum_type): If os9k_stabs, read a number before the first
	enumeration constant.
	(os9k_init_type_vector): New function.
	(dbx_lookup_type): Call it when starting new type vector.
	* config/i386/tm-i386os9k.h: Define BELIEVE_PCC_PROMOTION.
	* (os9k_process_one_symbol): Call define_symbol not os9k_define_symbol.
	* os9kstab.c: Removed.
	* Makefile.in: Update accordingly.
	* objfiles.c (objfile_relocate_data): Removed.
	* remote-os9k.c (rombug_wait): Call objfile_relocate
	not objfile_relocate_data.
	* objfiles.h, objfiles.c: Remove find_pc_objfile.
	* remote-os9k.c (rombug_wait): Call find_pc_section not
	find_pc_objfile.
	* main.c (quit_command): Check inferior_pid; revert Kung change.
	* remote-os9k.c (rombug_create_inferior): Set inferior_pid.
1994-03-02 03:01:34 +00:00
Kung Hsu
1340861c99 Modified Files:
ChangeLog objfiles.c objfiles.h symfile.c target.c main.c
	Makefile.in configure.in
Added Files:
	os9kread.c os9kstab.c remote-os9k.c

        * os9kread.c: New file to read os9000 style symbo table.
        * os9kstab.c: new file to read os9000 style stabs.
        * remote-os9k.c: remote protocol talking to os9000 rombug monitor.
        * objfiles.c (find_pc_objfile): new function to search objfile
        from pc.
        * objfiles.c (objfile_relocate_data): new function to relocate
        data symbols in symbol table.
        * objfiles.h: Add two aux fields in struct objfile to handle
        multiple symbol table files situation like in os9000.
        * symfile.c: Change so 'symbol-file' command can handle multiple
        files. Also call target_link() to get relocation infos.
        * target.c (target_link): new function to get relocation info when
        a symbol file is requested to load.
        * main.c (quit_command): take out 'inferior_pid != 0' condition,
        because in cross mode there's no inferior pid, bit they need to
        be detached.
        Makefile.in: add os9kread.c os9kstab.c and .o's.
        configure.in: add i386os9k target.
        config/i386/i386os9k.mt: new add.
        config/i386/tm-i386os9k.h: new add.
1994-03-01 23:13:56 +00:00
Peter Schauer
137b6849c6 * config/sparc/tm-sun4sol2.h (IN_SIGTRAMP): Handle ucbsigvechandler.
* sparc-tdep.c (sparc_frame_saved_pc):  Handle ucbsigvechandler.
1994-03-01 21:18:53 +00:00
Jim Kingdon
4ad0021ebc * target.c, target.h (target_read_string): Provide error detection to
caller.  Put string in malloc'd space, so caller need not impose
	arbitrary limits.
	* solib.c (find_solib): Update to use new interface.
	* irix5-nat.c (find_solib): Read o_path from inferior
	(clear_solib): Free storage for o_path.
	* valprint.c (val_print_string): Add comments.
1994-03-01 21:00:18 +00:00
Peter Schauer
e3d6ec4a0d * symtab.c (decode_line_1): Handle the case when skip_quoted does not
advance `p'.
1994-03-01 07:57:01 +00:00
Jim Kingdon
30974778c1 * value.h (struct value): Add modifiable field.
* values.c (allocate_value, record_latest_value, value_copy): Set it.
	(record_latest_value): Don't mess with VALUE_LVAL of value.
	* valops.c (value_assign): Check it.  Reword existing error
	message on not_lval.
1994-03-01 02:20:39 +00:00
Jim Kingdon
b5aff26825 * mips-tdep.c (mips_step_skips_delay), config/mips/tm-mips.h
(STEP_SKIPS_DELAY): Added.
	* infrun.c (proceed) [STEP_SKIPS_DELAY]: Check for a breakpoint in
	the delay slot.
1994-03-01 00:15:07 +00:00
Jim Kingdon
c8ff77bea3 * valprint.c (val_print_string): If errcode is set, always print
an error, regardless of force_ellipsis.  In the non-EIO case,
	just print the error message rather than calling error().  Don't
	access *(bufptr-1) if bufptr points to the start of the buffer.
	When looking for '\0', don't increment bufptr and addr if bufptr
	started out already at limit.  If an error happens on fetching the
	first character, don't print the string.
1994-02-28 22:44:21 +00:00
Jim Kingdon
2882219f5b * config/m68k/tm-apollo68b.h: Remove HAVE_68881 define; it is
obsolete.

	* i387-tdep.c, i386-tdep.c i386v-nat.c, i386aix-nat.c,
	i386m3-nat.c, config/m68k/tm-m68k.h, i960-tdep.c
	config/i960/tm-i960.h, remote-nindy.c, config/m88k/tm-m88k.h,
	m88k-tdep.c: Use floatformat.h instead of ieee-float.h.
	* sparc-tdep.c: Remove now-obsolete ieee-float.h stuff
	* findvar.c: Update comment regarding ieee-float.h.
1994-02-28 06:17:35 +00:00
Peter Schauer
28ee4b4289 * config/i386/tm-i386v4.h (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP,
FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC):
	Define to make backtracing through the various sigtramp handlers
	work.
	* i386-tdep.c (i386v4_sigtramp_saved_pc):  New routine to fetch
	the saved pc from ucontext on the stack for SVR4 signal handling.
1994-02-27 21:24:16 +00:00
Jim Kingdon
c20c1bdf99 * remote.c, remote-mon.c, remote-utils.c, remote-utils.h,
target.h, remote-es.c, remote-nindy.c: Don't set baud rate if
	baud_rate is -1.  Remove sr_get_baud_rate and sr_set_baud_rate;
	just use the global variable itself.  When printing baud rate,
	don't print a baud rate if baud_rate is -1.
1994-02-26 01:52:39 +00:00
Jim Kingdon
25354cef30 * coffread.c (read_coff_symtab): Pass mst_file_* to
record_minimal_symbol for C_STAT symbols.  Put C_EXT and C_STAT
	symbols in the minimal symbols regardless of SDB_TYPE.
1994-02-25 17:45:38 +00:00
Jim Kingdon
bcc3771841 * breakpoint.h (enum bptype): New type bp_through_sigtramp.
(bpstat_what_main_action): New code BPSTAT_WHAT_THROUGH_SIGTRAMP.
	* breakpoint.c (bpstat_what): Return BPSTAT_WHAT_THROUGH_SIGTRAMP
	if we hit a bp_through_sigtramp breakpoint.  Remove kludge which
	ignored bs->stop for a bp_step_resume breakpoint.
	* infrun.c (wait_for_inferior): Make a through_sigtramp_breakpoint
	which performs one (the check_sigtramp2 one) of the functions
	which had been handled by the step_resume_breakpoint.  For each
	use of the step_resume_breakpoint, make it still use the
	step_resume_breakpoint, use the through_sigtramp_breakpoint, or
	operate on both.
	Deal with BPSTAT_WHAT_THROUGH_SIGTRAMP return from bpstat_what.
	When setting the frame address of the step resume breakpoint, set
	it to the address for frame *before* the call instruction is
	executed, not after.
1994-02-25 09:12:29 +00:00
Jim Kingdon
3fed1c4a60 * mips-tdep.c (mips_print_register): Print integers using
print_scalar_formatted rather than duplicating all the
	CC_HAS_LONG_LONG and so on.
	(mips_push_dummy_frame): Use read_register_gen rather than using
	read_register and then putting it back in target format with
	store_unsigned_integer.  If registers are more than 4 bytes, give
	an error rather than have some registers overwrite other
	registers.
	#if 0 unused include of opcode/mips.h.
1994-02-25 04:23:19 +00:00
Jim Kingdon
7126c1d055 * defs.h: Revert Kung change regarding FORCE_LONG_LONG. 1994-02-24 16:54:03 +00:00
Jeff Law
6bfd168c65 * confiugre.in (hppa*-*-osf*): New configuration.
* config/pa/hppaosf.mt: New target makefile fragment.
        * config/pa/tm-hppao.h: New target include file.
1994-02-24 16:10:15 +00:00
Peter Schauer
8ce2cfc039 * dwarfread.c: Remove second inclusion of <sys/types.h>, which
causes problems if <sys/types.h> has no multiple inclusion protection.
1994-02-24 13:33:45 +00:00
Peter Schauer
5c07a10bb4 * exec.c (print_section_info): Print entry point for exec_bfd only.
* ser-unix.c (wait_for):  Fix typo in HAVE_TERMIO case.
1994-02-24 12:40:39 +00:00
Stu Grossman
75a006d94f * sparc-stub.c (trap_low): Make trap handler work for arbitrary
numbers of register windows.
1994-02-24 01:49:15 +00:00
Jeff Law
fce7695f7d * tm-hppa.h (CALL_DUMMY): Add two NOP instructions to the end of
the call dummy to avoid kernel bugs in HPUX, BSD, and OSF1.
        (CALL_DUMMY_LENGTH): Changed accordingly.
1994-02-24 00:31:46 +00:00
Stu Grossman
318ee78a71 * sparclite/hello.c: Add factorial function for testing.
* salib.c:  Use macros instead of constants for I/O addresses to
	make 931 support easier.
	* sparclite.h:  Change constraint for LOC to "rJ" to force use of
	register in sta/lda instructions.
1994-02-24 00:25:58 +00:00
Jim Kingdon
56dd4126bb * dbxread.c (process_one_symbol): Set
block_address_function_relative for COFF like we do for ELF and SOM.
1994-02-23 18:42:05 +00:00
Peter Schauer
847d977530 * mdebugread.c (new_psymtab): Pass in section_offsets and set
them in the pst.
	* mdebugread.c (handle_psymbol_enumerators):  New function to enter
	the enumerators of an ecoff enum into the partial symbol table.
	* mdebugread.c (parse_partial_symbols):  Call it.
	* symfile.c (reread_symbols):  Initialize objfile->*_psymbols.next.
	* symmisc.c (dump_psymtab):  Fix typo, clean up output of section
	offsets. Cast psymtab->read_symtab to PTR before passing it to
	gdb_print_address.
	* i386-tdep.c (i386_skip_prologue):  Skip over instructions that
	set up the global offset table pointer in pic compiled code.
	* config/mips/tm-mips.h (FIX_CALL_DUMMY):  For big endian targets,
	error() on TYPE_CODE_FLT arguments whose size is greater than 8,
	swap all other TYPE_CODE_FLT arguments as mips_push_arguments
	ensures that floats are promoted to doubles before they are pushed
	on the stack.
1994-02-19 11:24:36 +00:00
Stu Grossman
9f35e15a65 * sparclite/Makefile.in, sparclite/salib.c, sparclite/sparclite.h:
Fixup cache_on and flush_i_cache so that they work for both the
	930 and 932 processors.  Rewrite most low level funcs (uart
	access & cache stuff) to use new ASI access macros in sparclite.h.
	Also make it easy to access second serial port.
1994-02-19 07:18:09 +00:00
Ian Lance Taylor
56173dc599 * hp300ux-nat.c: Don't incloude <sys/dir.h>, <sys/ioctl.h>, or
<sys/stat.h>; not needed.
1994-02-19 03:20:20 +00:00
Jim Kingdon
c84bab2d70 * stack.c (print_frame_info): In "pathological" case, don't
distrust the line number information.
1994-02-19 01:21:33 +00:00
Kung Hsu
748d77d761 Modified Files:
ChangeLog mips-tdep.c valprint.c

        * mips-tdep.c (mips_print_register): handle 64 bits register.
        * valprint.c (print_longest): fix a bug in printing 64 bits value.
1994-02-19 00:57:49 +00:00
Jim Kingdon
1eb89b9efb * Version 4.12.2. 1994-02-18 22:15:01 +00:00
Jim Kingdon
ef1a05401b * Makefile.in (install): Do the sed for program_transform_name
ourselves instead of worrying about INSTALL_XFORM.  This enables
	users to override INSTALL_PROGRAM in the standard way.

	* Makefile.in (c-exp.tab.o, ch-exp.tab.o, m2-exp.tab.o): Don't
	depend on Makefile.in.
1994-02-18 21:01:55 +00:00
Jim Kingdon
fb0f423133 * defs.h, valprint.c: Make longest_to_int a function not a macro.
Only test against INT_MIN if a LONGEST is bigger than an int.
1994-02-18 17:47:43 +00:00
Jim Kingdon
889f1f0339 * README: Change GhostScript to Ghostscript. 1994-02-18 16:31:01 +00:00
Jim Kingdon
d5cb2f7d1a * config/rs6000/{tm-rs6000lynx.h,nm-rs6000lynx.h,xm-rs6000lynx.h}:
Rename to tm-rs6000ly.h, nm-rs6000ly.h, xm-rs6000ly.h for 14
	character file names.
	* Makefile.in (ALLPARAM): Add these files.
1994-02-18 15:55:21 +00:00
Jim Kingdon
662f3b3f1f * config/mips/littlemips64.mt: Rename to mipsel64.mt for 14
character file names.
	Makefile.in: Add Kung's new mips64 files.
1994-02-18 15:42:48 +00:00
Kung Hsu
70126bf94e Modified Files:
ChangeLog configure.in defs.h mips-tdep.c

        * configure.in: add mips64-*-elf, mips64-*-ecoff, mips64el-*-elf,
        mips64el-*-ecoff and mips64-big-*.
        * defs.h: get rid of FORCE_LONG_LONG.
        * mips-tdep.c (mips_find_saved_regs): add sd and sdc1 instruction
        parsing. Change register size to be MIPS_REGSIZE.
1994-02-18 01:38:08 +00:00
David MacKenzie
c4a081e172 * corelow.c, exec.c, irix5-nat.c, mipsread.c, objfiles.c,
osfsolib.c, rs6000-nat.c, solib.c, symfile.c, utils.c,
	xcoffexec.c: Use bfd_get_error and bfd_set_error and new error names.
1994-02-17 18:19:25 +00:00
Steve Chamberlain
3b5442f9c8 * remote-hms.c (readchar, hms_open, hms_fetch_register): Made more robust.
(remove_commands, add_commands): Add/remove hms-drain when target
	is connected.
1994-02-12 05:52:11 +00:00
Stu Grossman
d87d7b10af * configure.in: Add Lynx/rs6000 support.
* lynx-nat.c:  Clean up some Sparc stuff.  Clean up ptrace error
	messages.  Add rs6000 support.  Don't try to modify unwritable
	registers.
	* rs6000-nat.c:  Move lots of native dependent stuff (like core
	file support) from rs6000-tdep.c & xcoffexec.c to here.
	* rs6000-tdep.c:  Move native dependent stuff to nat.c.
	* xcoffexec.c:  Move native dependent stuff to nat.c.
	* config/rs6000/nm-rs6000.h:  Move defs of SOLIB_* macros to here
	from tm	file.
	* config/rs6000/tm-rs6000.h:  Remove defs of SOLIB_* funcs, cuz they're
	really native.
	* config/rs6000/tm-rs6000lynx.h, config/rs6000/xm-rs6000lynx.h:
	New files to support Lynx/rs6000.
1994-02-12 01:08:29 +00:00
Peter Schauer
ba47c66add * README: Remove note about gcc warnings on alpha, these should be
gone now.
	* c-exp.y, ch-exp.y, core.c, corelow.c, eval.c, fork-child.c,
	m2-exp.y, minsyms.c, nlmread.c, parse.c, putenv.c, regex.c
	remote-utils.c, stabsread.c:  Include <string.h>.
	* regex.c:  Include "defs.h", change re_comp argument to const char *.
	* infptrace.c (fetch_register, store_inferior_registers):  Change
	regaddr to type CORE_ADDR.
	* config/alpha/alpha-nw.mt, config/alpha/alpha-osf1.mt (MT_CFLAGS):
	Remove, no longer necessary now that we use bfd_vma for a CORE_ADDR.
1994-02-08 09:01:03 +00:00
Jim Kingdon
ea5dad7f09 * config/m68k/{m68k-em.mt,tm-m68k-em.h}: Remove; no longer used.
* configure.in: Remove comment about m68k-em.mt.
	* Makefile.in: Remove references.
1994-02-07 17:04:47 +00:00
Jim Kingdon
6ddba99277 * defs.h [BFD64]: Use BFD_HOST_64_BIT, not nonexistent
BFD_HOST_64_TYPE.
1994-02-07 16:25:25 +00:00
Jim Kingdon
1dd29bef1b * target.c (target_preopen): If target_kill doesn't remove the
target from the stack, use pop_target to do it.
1994-02-07 01:31:15 +00:00
Jim Kingdon
704aea4326 * coffread.c (process_coff_symbol, case C_TPDEF): Don't set name
of TYPE_CODE_PTR or TYPE_CODE_FUNC types.  This parallels similar
	changes to stabsread.c from summer 1993.
1994-02-07 00:53:43 +00:00
Jim Kingdon
4a00e1de7b * remote-udi.c (udi_files_info): If prog_name is NULL, just skip
printing the program, rather than passing NULL to printf.
	(udi_detach): Set udi_session_id to -1 so that udi_close doesn't
	try to call UDIDisconnect again.  Print better message.
	(udi_kill): Just call UDIDisconnect ourselves, rather than doing
	it via udi_close.
	(udi_open): Unpush UDI target after target_preopen, now that
	udi_kill doesn't pop the target.
	(udi_create_inferior): If udi_session_id is negative, open a new
	TIP rather than giving an error.
1994-02-06 23:34:13 +00:00
Jim Kingdon
01cd70b985 * config/mips/mipsm3.mh, config/i386/i386m3.mh,
config/ns32k/ns32km3.mh: Define NAT_FILE.
	* config/nm-m3.h: Change guard from _OS_MACH3_H_ and _OS_MACH3_H
	(it was inconsistent and namespace-wrong) to NM_M3_H.
	* m3-nat.c (mach_really_wait): Change parameter name to ourstatus.
	(m3_open): New function.
	(m3_ops): Use it.
	* TODO: Update Mach section.

	* Makefile.in: Remove "rapp" stuff; it is superseded by gdbserver.
1994-02-06 22:38:28 +00:00
Per Bothner
d41b3eed26 * printcmd.c (printf_command): Add missing single-letter
backslash-escape sequences, and improve error message.
1994-02-06 21:29:32 +00:00
Jim Kingdon
842cf83162 * corelow.c (solib_add_stub, core_open): Pass address of from_tty
rather than trying to shove an int into a pointer and back out
	again.  This avoids compiler warnings.
1994-02-06 16:16:39 +00:00
Jim Kingdon
7343d7167f * defs.h (alloca): Declare as void *, not char *, on hpux.
Don't prototype it, just declare the return type.
1994-02-06 15:00:00 +00:00
Peter Schauer
57a9fee313 * config/i386/tm-sun386.h, config/i386/tm-symmetry.h
(REGISTER_CONVERT_TO_RAW):  Add missing backslash.
1994-02-06 11:32:46 +00:00
Jim Kingdon
021b10e345 * remote-mips.c (mips_fetch_registers): If regno is FP_REGNUM or
ZERO_REGNUM, just read it as zero without talking to the board.
1994-02-05 22:29:06 +00:00
Jim Kingdon
8b0a85bad1 * config/i386/tm-i386aix.h (REGISTER_CONVERT_TO_RAW): Add missing
backslash.
	* i386-tdep.c (i386_extract_return_value): Pass TYPE_LENGTH (type)
	to store_floating, not nonexistent variable len.
1994-02-05 20:38:12 +00:00
Jim Kingdon
aa56c7161b * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
New functions.
	(mips_store_word): Change calling convention to return errors, and
	to provide old contents if the caller wants it.
	(mips_xfer_memory): Deal with errors from mips_store_word.
	* config/mips/tm-idt.h, config/mips/tm-idtl.h: Remove BREAKPOINT
	define now that remote-mips.c doesn't use BREAKPOINT.
1994-02-05 20:30:35 +00:00
Jim Kingdon
29fc92e81a * remote-e7000.c: Replace "snoop" command (e7000_noecho) with
remote_debug.
1994-02-05 18:50:52 +00:00
Jim Kingdon
a1bd6534de * config/rs6000/tm-rs6000.h (STORE_STRUCT_RETURN): Don't cast
to unsigned int.
1994-02-05 16:12:18 +00:00
Peter Schauer
65e98f5b2f * value.h (print_longest): Rename "value" to "val" in prototype
declaration because some compilers don't like arguments whose
	names are the same as types.
	* remote.c (remote_xfer_memory):  Cast "myaddr" to unsigned char *
	before passing it to remote_*_bytes.
1994-02-05 13:37:00 +00:00
Steve Chamberlain
678ee700bc (hms_fetch_register): Take out REGISTER_TYPE. 1994-02-05 01:06:21 +00:00
Steve Chamberlain
edd01519b9 Fri Feb 4 15:53:18 1994 Steve Chamberlain (sac@cygnus.com)
* h8500-tdep.c (saved_pc_after_call): The size of the
	pc is memory model dependent. (segmented_command,
	unsegmented_command, _initialize_h8500_tdep): New commands to
	change memory model.
	* remote-7000.c (initialize_remote_e7000): Change name of snoop
	command.
	* remote-hms.c (hms_load): Remove breakpoints when loaded.
	(hms_wait): Use new status structure
	(hms_open): Push the target here. (hms_before_main_loop): Not
	here.  (supply_val, hms_fetch_register, hms_store_register):  Cope
	with H8/500 names too.
	* sh-tdep.c (show_regs, initialize_sh_tdep): New command to print
	all registers in a compact way.
1994-02-05 00:22:08 +00:00
Jim Kingdon
9c01440dd2 * config/rs6000/tm-rs6000.h: Declare rs6000_struct_return_address
as CORE_ADDR to match definition in rs6000-tdep.c.
1994-02-04 15:55:04 +00:00
Peter Schauer
4386eff2d1 * dwarfread.c (process_dies): Skip nested TAG_compile_unit DIEs.
* dwarfread.c (add_partial_symbol):  Do not enter opaque aggregate
	definitions into the psymtab.
1994-02-04 09:19:35 +00:00
Jim Kingdon
d351c7a6b3 * remote-udi.c (udi_attach): If no arguments, print error. 1994-02-04 02:22:53 +00:00
Fred Fish
4901e77de7 * Makefile.in (VERSION): Bump to 4.12.1
* NEWS, README:  Update to match 4.12 release.
1994-02-04 01:37:20 +00:00
Jim Kingdon
159ada029b * stabsread.c (read_sun_builtin_type): Skip the semicolon at the end
of the type if present.
1994-02-03 19:28:30 +00:00
Jim Kingdon
b1de1647fe * valarith.c (value_binop): Figure out type ourself based on
sizeof (LONGEST) rather than relying on BUILTIN_TYPE_LONGEST.  The
	point is that we don't depend on CC_HAS_LONG_LONG anymore.
1994-02-03 03:58:26 +00:00
Jim Kingdon
ce85559495 * language.h, c-lang.c, ch-lang.c, m2-lang.c, language.c: Remove
longest_int and longest_unsigned_int.
1994-02-03 03:44:15 +00:00
Jim Kingdon
eade0c6ce8 * printcmd.c (decode_format): Don't blithely set the size for
an address to 'w'.  Make it 'g' or 'h', depending on TARGET_PTR_BIT.

	* defs.h: Just typedef CORE_ADDR to bfd_vma.  Include bfd.h.
	If BFD64, make a LONGEST a BFD_HOST_64_BIT.
	* defs.h (longest_to_int): Don't depend on CC_HAS_LONG_LONG; instead
	always just check against INT_MIN and INT_MAX (this also fixes things
	if sizeof (long) > sizeof (int), e.g. Alpha).
	* config/pa/tm-hppa.h, config/i386/sun386.h, config/rs6000/tm-rs6000.h:
	Don't define LONGEST or BUILTIN_TYPE_LONGEST.
	* gdbtypes.h: Remove BUILTIN_TYPE_LONGEST and
	BUILTIN_TYPE_UNSIGNED_LONGEST.
	* language.h, c-lang.c, ch-lang.c, m2-lang.c: Remove longest_int
	and longest_unsigned_int.
	* value.h (struct value): Just align to LONGEST, rather than worrying
	about CC_HAS_LONG_LONG.
	* valarith.c (value_binop, _initialize_valarith): Figure out type
	ourself based on sizeof (LONGEST) rather than relying on
	BUILTIN_TYPE_LONGEST.  The point is that we don't depend on
	CC_HAS_LONG_LONG anymore.
	* valprint.c (val_print_type_code_int): Just call
	extract_unsigned_integer directly, rather than going through
	unpack_long.
	* printcmd.c (decode_format): Remove code which would sometimes
	change 'g' size to 'w' for integers.  print_scalar_formatted handles
	printing huge integers well enough, thank you.
1994-02-03 03:18:58 +00:00
Jim Kingdon
719d9abbd2 * command.c (add_set_cmd, no_just_help_class_command): Change
to make this the sfunc, not cfunc, since that is how we call it.
	* command.h: Comment difference between sfunc and cfunc.
	* demangle.c (set_demangling_command): Add third arg since that
	is how it is called.
	(_initialize_demangler): Use sfunc, not cfunc, for
	set_demangling_command, since that is how it is called.
	Remove show_demangling_command; it has no effect.
1994-02-02 20:20:59 +00:00
Jim Kingdon
5b3591ab5c * command.c (shell_escape): Report errors correctly (with error
message from strerror).
1994-02-02 19:58:31 +00:00
Ian Lance Taylor
37f24dc945 * xcoffread.c (read_xcoff_symtab): Change CSECT_LEN to use
x_scnlen.l rather than x_scnlen to match corresponding change in
	coff/internal.h.
1994-02-02 19:37:52 +00:00
Jim Kingdon
61932a8ee9 * gdbtypes.h, ch-typeprint.c, ch-valprint.c:
Change comments regarding TYPE_CODE_BOOL.
	* language.c (boolean_type): Always return 1 for TYPE_CODE_BOOL,
	regardless of the language.
	(value_true): Just call value_logical_not regardless of language.
	* coffread.c (coff_read_enum_type), stabsread.c (read_enum_type):
	Remove #if 0'd code which makes some enums TYPE_CODE_BOOL.
	* language.h: Improve comment for la_builtin_type_vector.
	* m2-lang.c (_initialize_m2_language): Don't add any fields to
	builtin_type_m2_bool.
1994-02-02 17:20:45 +00:00
Jim Kingdon
7bec77b47d * config/m88k/{tm-delta88.h,tm-delta88v4.h}, m88k-tdep.c:
Define IN_SIGTRAMP and backtrace correctly through signal handlers.
1994-02-01 22:17:29 +00:00
Jim Kingdon
8afd05c039 Tue Feb 1 22:13:25 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
* procfs.c (wait_fd):  Handle EINTR error return from PIOCWSTOP ioctl
	by restarting the ioctl.
1994-02-01 21:46:17 +00:00
Jim Kingdon
10b9bb562e * target.h (target_wait): Add comment about calling
return_to_top_level.
1994-02-01 21:19:48 +00:00
Ian Lance Taylor
bf8d9d28c6 * coffread.c (read_one_sym): bfd_coff_swap_aux_in now takes
additional arguments.
	* xcoffread.c (read_xcoff_symtab, read_symbol_lineno): Likewise.
1994-02-01 17:26:01 +00:00
Stu Grossman
efe3ff3ef0 * sparc-stub.c: Remove unnecessary #include of memory.h. 1994-02-01 00:12:20 +00:00
Jim Kingdon
14d7956255 * mips-tdep.c: Remove code which sets saved_regs from
init_extra_frame_info and put it in new function mips_find_saved_regs.
	(READ_FRAME_REG): Remove macro and replace uses with the expansion.
	* mips-tdep.c, config/mips/tm-mips.h: When examining ->saved_regs,
	check if it is NULL and call mips_find_saved_regs if so.
1994-01-31 21:22:44 +00:00
Jim Kingdon
47d52968df * remote-mips.c: Use unfiltered, not filtered, output most places. 1994-01-31 18:22:06 +00:00
Jim Kingdon
37dea45f89 * blockframe.c (get_prev_frame_info): Detect and stop an infinite
backtrace.  Revise comments.
1994-01-31 17:18:58 +00:00
Peter Schauer
0434c1a0c9 * mdebugread.c (parse_procedure): Remove _sigtramp kludges for
alpha and irix. The _sigtramp case has to be handled properly
	in the tdep files if we have no ecoff debugging info.
	* alpha-tdep.c (alpha_frame_saved_pc, alpha_frame_chain),
	mips-tdep.c (mips_frame_saved_pc):  Handle signal handler frames
	without PC_REGNUM kludge.
	* mdebugread.c (fixup_sigtramp), mips-tdep.c (read_next_frame_reg):
	Clean up handling of mips sigtramp frames, improve comments.
1994-01-31 16:23:48 +00:00
Jeff Law
d64956faaf * paread.c (read_unwind_info)
* paread.c (pa_symtab_read): Update the "check_strange_names"
        filter to match GCC's current output.  Filter out section symbols
        (which the HP linker sometimes puts in the wrong place).
1994-01-30 07:28:03 +00:00
Jim Kingdon
3a479851ff * serial.h (SERIAL_SET_TTY_STATE): Comment return value.
* remote-es.c: Extensive changes to update to current conventions.
1994-01-29 19:07:02 +00:00
Jim Kingdon
a0b352c098 * Makefile.in (TAGS): Just echo one line, rather than the whole thing.
* Makefile.in: Remove all references to sparcly-nat.c.

	* Makefile.in (HFILES_NO_SRCDIR): Include dcache.h remote-utils.h
	remote-sim.h directly, rather than via $(remote_utils_h).  This avoids
	duplicating serial.h and target.h.

	* Makefile.in: Don't set M_INSTALL and M_UNINSTALL.  These variables
	are not used anywhere (a 5 Oct 1993 change removed the uses).
1994-01-29 17:30:44 +00:00
Jim Kingdon
7a78db151e * Makefile.in: Don't set M_INSTALL and M_UNINSTALL. These variables
are not used anywhere (a 5 Oct 1993 change removed the uses).
1994-01-29 17:17:28 +00:00
Jim Kingdon
895efe6b57 * config/m68k/monitor.mt (TDEPFILE): Add remote-es.o.
* config/m68k/es1800.mt: Add comment.
	* remote-es.c: Comment out entire file until it can be fixed.
1994-01-29 17:13:42 +00:00
Jim Kingdon
9db58d3ab4 * ser-unix.c (wait_for, hardwire_readchar) [HAVE_TERMIO, HAVE_TERMIOS]:
If the timeout is too big to fit in c_cc[VTIME], then do multiple reads
	to achieve the desired timeout.
	* serial.h (serial_t): Add field timeout_remaining.
1994-01-29 16:12:35 +00:00
Jim Kingdon
f28c6e3813 * c-exp.y (yylex): Reenable nested type code. 1994-01-29 00:59:50 +00:00
Jim Kingdon
7f2ffa58eb * a29k-tdep.c (examine_tag): Add comment regarding argcount. 1994-01-28 22:42:31 +00:00
Jim Kingdon
796d1fd3fb * remote-mips.c (mips_ops): Fix docstring. 1994-01-28 22:06:01 +00:00
Jim Kingdon
97cc042806 * remote-udi.c (udi_close, udi_detach, udi_kill): Add comments.
* infptrace.c (kill_inferior): Add comments.
	* main.c (quit_command): Call target_close after we kill or
	detach.
	* remote-udi.c (udi_close): Don't error() if QUITTING.
1994-01-28 21:58:12 +00:00
Jim Kingdon
ddd0223e94 * config/m68k/tm-monitor.h: Changes to bring this into accordance
with the old tm-m68k-em.h:
	(GDBINIT_FILENAME, DEFAULT_PROMPT): Remove.
	(HAVE_68881): Don't undefine; this #define is obsolete.
	(REGISTER_NAMES): Don't muck with it; what tm-m68k.h has is fine.
	Add FIXME regarding GET_LONGJMP_TARGET.
1994-01-28 21:10:07 +00:00
Jim Kingdon
b09f44d2c9 * remote-udi.c (udi_close, udi_detach, udi_kill): Add comments. 1994-01-28 20:43:59 +00:00
Rob Savoye
0ffba0293e * configure.in: Make m68k-coff and aout add monitor support in
addition to the standard serial support.
1994-01-28 18:58:54 +00:00
Jim Kingdon
bb7cb9828e * mdebugread.c (psymtab_to_symtab_1): Don't complain on stLabel with
index indexNil.
1994-01-28 16:56:58 +00:00
Jim Kingdon
9fdb3f7aad * config/pa/tm-hppa.h: Define macro SMASH_TEXT_ADDRESS.
* elfread.c (record_minimal_symbol_and_info),
	dwarfread.c (process_dies), paread.c (pa_symtab_read): Use it.
1994-01-28 16:25:25 +00:00
Jim Kingdon
6202263d81 * i386-stub.c: Add ".text" right before "mem_fault:". 1994-01-28 02:50:18 +00:00
Jim Kingdon
9c41f6a680 * main.c (baud_rate): Add FIXME comment about printing -1 value.
* remote-utils.c (usage): Fix message to be accurate and conform
	more closely to normal conventions.

	* remote-utils.c (gr_files_info): Have the exec_bfd test control
	whether to show information about exec_bfd, and not control whether
	to show information about device and speed.

	* remote-utils.c (gr_open): If sr_get_device returns NULL, give
	usage message, don't dump core.

	* remote-bug.c (bug_write_memory): Use alloca, not GCC extension
	for variable size array.
	(bug_fetch_register, bug_store_register): Rename "value" to
	"fpreg_buf" because some compilers don't like variables whose
	names are the same as types.
	(bug_store_register): Use a cast when converting char * to
	unsigned char *.
1994-01-28 02:18:39 +00:00
Jim Kingdon
d5c551c9df * symmisc.c (maintenance_print_symbols): Don't refer to the name
of the command in error message (the text was referring to the old
	name of the command).

	* symmisc.c (dump_symtab): Fix args to fprintf_filtered.
1994-01-28 00:46:43 +00:00
Jim Kingdon
0e4ad984b1 * c-typeprint.c (c_type_print_base): Have SHOW == 0 mean to print
full details on structure elements without names.  This partially
	reverts the changes of 1 Jul 1993 and 31 Aug 1993; I think this aspect
	of those changes was accidental.
1994-01-27 23:55:10 +00:00
Jim Kingdon
577da8cbbd * stack.c (parse_frame_specification): If SETUP_ARBITRARY_FRAME is
defined, make it an error to specify a single argument which is not
	a frame number.
1994-01-27 21:44:40 +00:00
Jim Kingdon
a28d16d380 * Makefile.in (version.c), main.c (print_gdb_version): Use
host_alias and target_alias, not host_canonical and
	target_canonical, to print configuration.
1994-01-27 20:19:13 +00:00
Jim Kingdon
d92f3f0853 * parse.c (write_exp_msymbol): Use new type msymbol_addr_type instead
of builtin_type_long.  It is necessary to get a type which is
	TARGET_PTR_BIT bits in size; builtin_type_long might not be big enough.
1994-01-27 01:23:50 +00:00
Jim Kingdon
833e0d94cc Fix many sins which will come up in 32 bit x 64 bit GDB, and
various miscellaneous things discovered in the process:
	* printcmd.c, defs.h (print_address_numeric): New function.
	* c-valprint.c (c_val_print), ch-valprint.c (chill_val_print)
	breakpoint.c (describe_other_breakpoints, breakpoint_1, mention),
	cp-valprint.c (cplus_print_value), infcmd.c (jump_command),
	printcmd.c, stack.c, symfile.c, symmisc.c, valprint.c:
	Use it.
	* utils.c, defs.h (gdb_print_address): New function.
	* expprint (dump_expression), gdbtypes.h: Use it.
	* breakpoint.c (describe_other_breakpoints),
	symmisc.c (dump_symtab, print_symbol):
	Use filtered not unfiltered I/O.
	(remove_breakpoints): Remove BREAKPOINT_DEBUG code.  Might as well
	just run gdb under a debugger for this (and it had problems with
	printing addresses, how to print b->shadow, etc.).
	* buildsym.c (make_blockvector), core.c (memory_error),
	exec.c (print_section_info), maint.c (print_section_table),
	mdebugread.c (parse_procedure), solib.c, source.c, symfile.c,
	symmisc.c, symtab.c, valops.c, valprint.c, xcoffexec.c:
	Add comments saying code is broken.  Marked with "FIXME-32x64".
	* dbxread.c (process_one_symbol), partial-stab.h (default),
	remote-vx.c (vx_run_files_info):
	Don't cast int being passed to local_hex_string.
	* symmisc.c (print_symbol): Don't cast long being passed to %lx.
	* symtab.h (general_symbol_info): Add comment about SYMBOL_VALUE
	only being a long.
	* symmisc.c (print_symbol): Print "offset" in message for LOC_ARG
	and LOC_LOCAL.
	* printcmd.c (print_address): Remove #if 0 code with ADDR_BITS_REMOVE.
	* source.c: Include <sys/types.h> regardless of USG.
1994-01-27 00:36:05 +00:00
Peter Schauer
67e9b3b31b * valops.c (value_assign): Set `type' after coercing toval.
* c-valprint.c (c_val_print), ch-valprint.c (chill_val_print):
	Use extract_unsigned_integer to get the address of a reference.
1994-01-25 21:03:56 +00:00
Jim Kingdon
3bc45b7a1a Improve ChangeLog entry for HAVE_SIGSETMASK to discuss what ANSI specifies
(just for kicks).
1994-01-25 18:51:54 +00:00
Jim Kingdon
91a0575c8a * stabsread.c (STABS_CONTINUE, error_type), partial-stab.h:
AIX can use ? instead of \ for continuation.  Deal with it.
1994-01-25 17:28:05 +00:00
Jim Kingdon
364648978f * paread.c (read_unwind_info): Just assign to objfile->obj_private,
not OBJ_UNWIND_INFO.  Assigning to a cast is a GCC-ism which
	the HP compiler in ANSI mode doesn't like.

	* main.c: When defaulting HAVE_SIGSETMASK based on USG, just do it
	based on USG, rather than defining HAVE_SIGSETMASK to an expression
	containing defined.  This is for the HP compiler in ANSI mode.
1994-01-25 16:39:10 +00:00
John Gilmore
2ba6182bbc * sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
Clean up the changes of 11 Jan, as recommended by Peter Schauer.
1994-01-25 04:54:05 +00:00
Per Bothner
96b6b765fc * ch-exp.y (match_string_literal): Allow a zero-length string.
* ch-lang.c (chill_printstr):  Don't print zero-length string funny.
1994-01-23 20:42:00 +00:00
Jim Kingdon
dfd4c728fa * i386aix-nat.c (i386_float_info): Reverse order of registers before
passing them to print_387_status.
	(print_387_status): Don't subtract top from 7 before using it.
	* i387-tdep.c: Remove comment about AIX wanting "top" subtracted
	from 7; the above explains it.
1994-01-22 22:14:04 +00:00
Peter Schauer
5efd597b3c * mips-tdep.c (init_extra_frame_info): Use frame relative stack
pointer value when fixing up the frame at the start of a function
1994-01-22 20:45:55 +00:00
Stu Grossman
e90445c997 * lynx-nat.c (fetch_core_registers): Load the I & L regs for the
Sparc from the stack.
1994-01-22 20:34:37 +00:00
Jim Kingdon
864df7e6f3 * remote-mips.c (mips_initialize): Clear mips_initializing via
cleanup chain, not directly.

	* ser-unix.c (wait_for) [HAVE_TERMIO, HAVE_TERMIOS]: Make a timeout
	of -1 mean forever, like in the HAVE_SGTTY case.  Warn if we are
	munging the timeout due to the limited range of c_cc[VTIME].
1994-01-22 19:16:02 +00:00
Jim Kingdon
08f74b9271 * fork-child.c, inferior.h (fork_inferior): New argument shell_file.
* procfs.c (procfs_create_inferior), inftarg.c (child_create_inferior),
	m3-nat.c (m3_create_inferior): Pass it.
	* procfs.c: Remove ptrace function.  It was declared in a way which
	conflicted with the prototype in unistd.h on Solaris.
1994-01-22 17:36:41 +00:00
Peter Schauer
cdcf48bea9 * sparc-tdep.c (frame_saved_pc): Get the pc from the saved pc
in the sigcontext if it is a signal trampoline frame.
	* config/sparc/tm-sun4sol2.h (IN_SIGTRAMP, SIGCONTEXT_PC_OFFSET):
	Define for Solaris2.
1994-01-22 09:40:17 +00:00
Stu Grossman
8bf94f44bc * sparc-tdep.c, lynx-nat.c, config/sparc/tm-sparc.h,
config/sparc/tm-sparclynx.h:  Move defs of FRAME_SAVED_I0/L0 to
	tm-sparc.h so they can be overridden if necessary.
1994-01-22 08:42:14 +00:00
Stu Grossman
d575ddc0ef * lynx-nat.c: Add Sparc support.
* sparcly-nat.c:  Remove.  It's useless.
	* config/sparc/nm-sparclynx.h:  Rewrite.
	* config/sparc/sparclynx.mh (NATDEPFILES):  Replace sparcly-nat.o
	with lynx-nat.o
	* config/sparc/tm-sparclynx.h:  Rewrite.
1994-01-22 01:58:55 +00:00
Ian Lance Taylor
0024027986 * rs6000-pinsn.c: Use the new disassembler in the opcodes
directory.  Old code was discarded, since the new opcode table has
	a different format.
1994-01-22 00:16:18 +00:00
Fred Fish
a2608ea10e * Makefile.in (realclean): Remove info files per make-stds.texi. 1994-01-21 22:31:50 +00:00
Jim Kingdon
6545c6a085 * dbxread.c (end_psymtab): Only patch psymtab textlow and texthigh
if N_SO_ADDRESS_MAYBE_MISSING is defined.
	* config/sparc/tm-sun4sol2.h: Define it.
1994-01-21 17:53:57 +00:00
Jim Kingdon
cd5ee29439 Thu Jan 20 15:04:24 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
* printcmd.c (print_address_symbolic):  Unconditionally use msymbol
	if we did not find a symbol.
1994-01-21 17:43:32 +00:00
Jeff Law
918fea3e3c * infptrace.c (child_xfer_memory): Only use if CHILD_XFER_MEMORY
is not defined.

	* hppab-nat.c (call_ptrace): Delete redundant function.
	(kill_inferior, attach, detach, child_resume): Likewise.
	(child_xfer_memory): Likewise.

	* hppah-nat.c (call_ptrace): Delete redundant function.
	(kill_inferior, attach, detach, child_resume): Likewise.

	* config/pa/hppabsd.mh (NATDEPFILES): Add infptrace.o.

	* config/pa/hppahpux.mh (NATDEPFILES): Add infptrace.o.

	* config/pa/nm-hppab.h (FETCH_INFERIOR_REGISTERS): Define.

	* config/pa/nm-hppah.h (FETCH_INFERIOR_REGISTERS): Define.
	(CHILD_XFER_MEMORY): Define.
	(PT_*): Define so that generic infptrace.c code can be used.
1994-01-21 16:22:51 +00:00
Jim Kingdon
1b880e74fb * xcoffread.c (xcoff_symfile_read): Make second parameter a
struct section_offsets *, not a (nonexistent) struct section_offset *.
1994-01-21 14:44:29 +00:00
Jim Kingdon
6657a0c7ea * xcoffread.c (read_xcoff_symtab): Make main_aux just a union
internal_xcoff_symtab, not an array of one of them.  Change lots of
	"main_aux" to "&main_aux" and so on.
1994-01-21 14:38:58 +00:00
Jim Kingdon
27ad511f84 * coffread.c, xcoffread.c: Include <coff/internal.h>
before "symfile.h".
1994-01-21 14:26:20 +00:00
Jim Kingdon
dbb0fae2de * coffread.c (coff_getfilename): Make it not static. 1994-01-21 00:34:07 +00:00
Jim Kingdon
d4a0983ab0 * xcoffread.c (read_xcoff_symtab): complain() not abort().
* xcoffread.c (struct coff_symbol): Rename c_nsyms to c_naux (removes
	a completely gratuitous difference between xcoffread.c and coffread.c).
1994-01-20 22:38:03 +00:00
Jim Kingdon
d7e7e85159 * infrun.c (wait_for_inferior): Don't set frame for
step_resume_breakpoint for IN_SIGTRAMP cases.

	* infrun.c (wait_for_inferior), breakpoint.h (struct bpstat_what),
	breakpoint.c (bpstat_what): Move step_resume from its own field of
	the struct bpstat_what into the main_action.  Make it override
	other breakpoints.  This is a conservative change in the sense
	that before the step resume breakpoint was a breakpoint.c
	breakpoint, hitting the step resume breakpoint overrode even
	calling bpstat_stop_status.
1994-01-19 21:14:40 +00:00
Peter Schauer
f1de67d323 * infrun.c (normal_stop): Set stop_pc after popping the dummy frame
in case execution was stopped in the called function.
	* stack.c (print_frame_info, frame_info):  If backtracing through
	a call dummy, handle the starting source line number on a line
	boundary like backtracing through sigtramp.
	* sparc-tdep.c (sparc_frame_find_saved_regs):  Get frame address
	for call dummy frame right.  Remove old test for dummy frame,
	it has been unused at least since gdb-3.5.
	* sparc-tdep.c (sparc_push_dummy_frame):  Set return address register
	of the dummy frame.
1994-01-19 20:45:30 +00:00
Jim Kingdon
c6e0f918e2 * infcmd.c (signal_command): Accept 0 as legitimate signal number. 1994-01-18 21:20:28 +00:00
Jim Kingdon
db4340a625 * infrun.c (signals_info), target.c (target_signal_from_name):
Use ugly casts to avoid enumvar < enumvar or enumvar++.
1994-01-18 19:13:38 +00:00
Jim Kingdon
d881dd869f * ser-unix.c (hardwire_noflush_set_tty_state): Don't muck with ICANON.
* inflow.c (terminal_ours_1): When discussing how to deal with the
	tty state, make note of query() as well as readline.
1994-01-18 04:29:34 +00:00
Jim Kingdon
4d4f2d50c8 * infrun.c (_initialize_infrun): Add TARGET_SIGNAL_POLL to list of
signals for which stop and print are cleared by default.
1994-01-18 04:14:34 +00:00
Jeff Law
c7f3b703a3 * config/pa/tm-hppa.h (unwind_table_entry): Use one of the
reserved fields to hold a stub unwind entry type.  Fix typo.
        (stub_unwind_entry): New structure for raw stub unwind entries.
        (stub_unwind_types): The types of stubs we may encounter.
        (UNWIND_ENTRY_SIZE, STUB_UNWIND_ENTRY_SIZE): New defines.
        * hppa-tdep.c (rp_saved): Use additional information provided
        by linker stub unwind descriptors.
        (frameless_function_invocation): Likewise.
        (frame_chain_valid): Likewise.
        * paread.c (compare_unwind_entries): New function for sorting
        unwind table entries.
        (read_unwind_info): Rewrite to remove dependency on host endianness.
        Read in data from the $UNWIND_END$ subspace which contains linker
        stub unwind descriptors.  Merge that data into the basic unwind
        table.
1994-01-18 04:04:36 +00:00
Jeff Law
5c38fcee3f * hppab-nat.c (_initialize_kernel_u_addr): Delete unwanted functions. 1994-01-18 04:02:06 +00:00
Jim Kingdon
af8b790667 * xcoffread.c (read_xcoff_symtab, case C_FILE): Accept the name
from either the symbol name or the auxent.
	* coffread.c, symfile.h (coff_getfilename): Renamed from getfilename,
	no longer static.
1994-01-18 03:42:30 +00:00
Fred Fish
0e7da49c55 * Makefile.in (ALLPARAM): Change irix5.h to nm-irix5.h. 1994-01-17 21:36:29 +00:00
Peter Schauer
b90811f914 * README: Update notes for alpha port. 1994-01-17 17:18:18 +00:00
Jim Kingdon
24a11a7998 * i960-tdep.c (i960_fault_to_signal): Return TARGET_SIGNAL_ILL
for operation fault, constraint fault, and type fault.
1994-01-17 16:18:17 +00:00
Jim Kingdon
623d738026 * Makefile.in (init.c): Add comment explaining formatting conventions. 1994-01-17 00:58:29 +00:00
Jim Kingdon
a39f77396e * c-exp.y (parse_number): Assign to temporary between the right
shifts, to work around a bug in the SCO compiler.
1994-01-17 00:23:49 +00:00
Jim Kingdon
0791922161 * Makefile.in (ALLCONFIG, ALLPARAM, ALLDEPFILES, HFILES_NO_SRCDIR):
Add various files which were added to GDB recently.
1994-01-16 22:45:13 +00:00
Jim Kingdon
91cc45dacc * xcoffread.c (process_xcoff_symbol): Only change 'V' to 'S' if not
within_function.
1994-01-16 20:09:59 +00:00
Jim Kingdon
b76dcd4b68 * Makefile.in: Add mostlyclean target. 1994-01-16 17:47:47 +00:00
Jim Kingdon
d7a5ff3c82 * Version 4.11.4. 1994-01-16 03:43:22 +00:00
Per Bothner
8b564df836 * main.c (show_commands): Make return type of extern
history_get be HIST_ENTRY, rather than struct _hist_entry.
	(The latter loses with the upcoming merged readline.)
1994-01-16 03:35:19 +00:00
Jim Kingdon
ab5f79719c * minsyms.c (prim_record_minimal_symbol_and_info): Make tempstring
const char *, not char *.
1994-01-16 03:23:50 +00:00
Jim Kingdon
fb155ce31a * symtab.h (struct symbol): Make section short, not unsigned short. 1994-01-16 03:14:21 +00:00
Jim Kingdon
8704184584 * symtab.c (lookup_symbol): Add comment about QUIT here. 1994-01-16 02:39:50 +00:00
Jim Kingdon
f29351d98b * utils.c (fputs_unfiltered): Call fputs, not fputs_maybe_filtered. 1994-01-15 20:14:43 +00:00
Jim Kingdon
a9b32d6192 * c-exp.y (parse_number): Check for overflow regardless of range
checking.  Fix overflow check to use unsigned LONGEST, not
	unsigned int.

	* c-exp.y (parse_number): Make it so that integer constants are
	builtin_type_long_long if builtin_type_long isn't big enough or if
	an "LL" suffix is used.  Properly handle "UL" or "LU" suffixes.
1994-01-15 17:14:18 +00:00
Jim Kingdon
dac317dc3f * c-typeprint.c (c_type_print_varspec_suffix, case TYPE_CODE_FUNC):
Print our "()" first, then recurse for the target type.
1994-01-15 15:27:49 +00:00
Jim Kingdon
831a39d7c3 * remote-udi.c (udi_create_inferior): Quote empty execfile argument. 1994-01-15 04:28:18 +00:00
Jim Kingdon
4c0b3e57c1 * gdbserver/low-lynx.c: Include <sys/wait.h> not /usr/include/wait.h. 1994-01-15 03:51:40 +00:00
Jim Kingdon
44a09a68f2 * utils.c (request_quit): Re-establish signal handler regardless
of USG.

	* config/mips/xm-irix4.h: Define HAVE_TERMIOS.
1994-01-15 03:43:01 +00:00
Jim Kingdon
9850662034 * i960-tdep.c: Include target.h. 1994-01-15 02:56:47 +00:00
Stan Shebs
658821b9fa Fri Jan 14 17:12:28 1994 Stan Shebs (shebs@andros.cygnus.com)
* lynx-nat.c (sys/wait.h): Don't use absolute pathname.
1994-01-15 01:15:55 +00:00
Jim Kingdon
4e8bc56fb5 * Makefile.in (ALLPARAM): Add config/nm-lynx.h. 1994-01-14 19:19:56 +00:00
Ian Lance Taylor
aeb145f80b * remote-mips.c (mips_request, mips_wait): Correct prototypes. 1994-01-14 16:52:22 +00:00
Jim Kingdon
d253eb7aa0 * config/i386/xm-linux.h: Define HAVE_TERMIOS. 1994-01-14 16:41:35 +00:00
Peter Schauer
52b3045e8e * config/alpha/tm-alpha.h (CALL_DUMMY): Improve comment. 1994-01-14 09:22:44 +00:00
Jim Kingdon
d0acb092fd * remote-vx.c (vx_wait): Only call i960_fault_to_signal if I80960
is defined.  Otherwise just report TARGET_SIGNAL_UNKNOWN.
1994-01-13 23:06:03 +00:00
Jim Kingdon
63dcc38026 Add search to target vector (#if 0'd until after 4.12):
* target.h (to_search, target_search): Add.
	* gdbcore.h, core.c (generic_search): Add.
	* remote.c (remote_search): Add.
	* a29k-tdep.c (init_frame_info): Use target_search to find traceback
	tag.
1994-01-13 18:44:06 +00:00
Jim Kingdon
d6596eee9f * printcmd.c (print_address_symbolic): If set print fast-symbolic-addr
is on, call find_pc_function rather than relying just on the minimal
	symbols (probably only matters for symbol readers which don't put
	statics in the minimal symbols, but changing this strikes me as
	not conservative enough).
	Initialize name_location in all cases.
	If no symbol and no msymbol, don't print anything symbolic.
1994-01-13 17:41:40 +00:00
Jim Kingdon
ae682b8061 * a29k-tdep.c (push_dummy_frame): Add comment about saving lr0. 1994-01-13 15:38:00 +00:00
John Gilmore
314e6bf3c1 * printcmd.c (print_address_symbolic): Make it search the
symtabs for variables as well as functions.  Add `set print
fast-symbolic-addr' and default it to fast (the old way).
Print line numbers for data items as well as functions.

* symtab.c (find_addr_symbol):  Return the symtab and the symbol
address, if a symbol is found (take two more args pointing to
where to store these results).

* symtab.h (find_addr_symbol):  Add prototype.
1994-01-13 05:04:40 +00:00
Jim Kingdon
470dfa0ca0 * objfiles.h: Fix comments to reflect the fact that the phrase
"top of stack" always refers to where the pushing and popping takes
	place, regardless of whether it is at the highest or lowest address.
1994-01-13 00:34:18 +00:00
Peter Schauer
a8c498978e * mdebugread.c (parse_symbol): Do not set TYPE_TAG_NAME for
compiler generated tag names.
	* mdebugread.c (parse_type):  Handle cross references to qualified
	aggregate types.
	* valops.c (value_struct_elt):  Improve error message if the
	address of a method is requested from an object instance.
	* valops.c (search_struct_method):  Make name_matched non-static
	to get it initialized correctly.
1994-01-12 21:27:51 +00:00
Jim Kingdon
4ad942bffd * go32-xdep.c: Remove unused function uerror.
(sigsetmask): Declare return type.  Declare argument (to match the
	way it is called).  Explicitly return 0.
1994-01-12 19:47:27 +00:00
John Gilmore
21578747f0 * symtab.h (struct symbol, general_symbol_info, minimal_symbol,
partial_symbol):  Shrink the storage sizes of symbols, by making
enums into 1-byte bitfields when compiled __GNUC__, moving all the
enums and small ints to the end of each struct to improve
alignment, and switching the section number from int to unsigned short.
1994-01-12 09:53:06 +00:00
John Gilmore
e0ea0fbd41 * symtab.c (find_addr_symbol): New routine that will find the nearest
symbol associated with an address.  It does so by exhaustive
search of the symtabs, so it's slow but complete.
1994-01-12 08:18:55 +00:00