Commit graph

2429 commits

Author SHA1 Message Date
Stu Grossman
68ba2fa550 * i386-nlmstub.c: More changes to be compatible with remote.c. 1994-04-26 22:39:20 +00:00
Stu Grossman
d0e2b7671e * i386-nlmstub.c: An interim version till we get PIN for the x86. 1994-04-26 17:24:59 +00:00
Stu Grossman
a66e8382de * dbxread.c (record_minimal_symbol): Record the section
associated with the symbol to make dynmaic relocation work.
	* (dbx_symfile_read, process_one_symbol):  Fixes to work around
	Solaris brain-damage which don't apply to relocatable object
	files.
	* (stabsect_build_psymtabs):  New routine to read stabs out of an
	arbitrarily named section.
	* nlmread.c (nlm_symtab_read):  Read ALL syms from the NLM, not just
	globals.
	* (nlm_symfile_read):  Call stabsect_build_psymtabs to read the
	stabs out of the nlm.
	* partial-stabs.h (cases 'f' & 'F'):  Fixes to work around Solaris
	brain-damage which don't apply to relocatable object files.
	* remote.c (putpkt):  Improve error reporting and error handling.
	* stabsread.c (define_symbol, scan_file_globals):  Record section
	info in sym.
1994-04-26 17:14:52 +00:00
Jim Kingdon
fdb81aa1e2 * breakpoint.c (breakpoint_1): Annotate each field of output. Add
FIXME-32x64 comment.
1994-04-24 02:07:53 +00:00
Jim Kingdon
d084c93fe2 * infrun.c (wait_for_inferior): Move call to flush_cached_frames
to after call to target_wait.  This means that flush_cached_frames
	can call target_terminal_ours if it wants to.
	* infrun.c (wait_for_inferior) [HAVE_NONSTEPPABLE_WATCHPOINT]: Add
	comment about why the code is dubious.
1994-04-23 03:00:04 +00:00
Jim Kingdon
0a2e98a99e * stabsread.c (read_type): Call read_type, not nonexistent
os9k_read_type.
1994-04-22 23:49:51 +00:00
Kung Hsu
d5336fc5a4 Modified Files:
ChangeLog remote-os9k.c os9kread.c stabsread.c

        * remote-os9k.c (rombug_fetch_registers): set trace mode
        correctly.
        * remote-os9k.c (rombug_read_inferior_memory): cache data in
        buffer.
        * os9kread,c (read_os9k_psymtab): process file symbol to truncate
        extra info.
        * os9kread.c (os9k_read_ofile_symtab): proper casting of args
        passed to process_one_symbol.
        * stabsread.c (read_type): process os9k functio prototype.
1994-04-22 21:36:59 +00:00
Jim Kingdon
f5a0908f3b * solib.c (symbol_add_stub): If so->textsection is NULL, don't
dump core.
1994-04-22 18:29:23 +00:00
Jim Kingdon
da988c2013 * utils.c (prompt_for_continue): Annotate prompt.
(query): Annotate query.
	* printcmd.c (print_frame_args): Change syntax of argument
	annotation to make name and value part of a single group of
	annotations, not two separate groups.
	* cp-valprint.c (cp_print_value_fields): Likewise for fields.
	* valprint.c (val_print_array_elements): Change syntax of
	annotation to be more concise.
	* main.c, defs.h (command_line_input): New argument tells what
	string to include in the annotations.
	* symtab.c (decode_line_2), main.c (read_command_lines,
	command_loop): Change callers.
1994-04-22 03:01:25 +00:00
Jim Kingdon
eb1e37a3ae * printcmd.c (print_command_1): Add value-history-value annotation. 1994-04-21 23:49:33 +00:00
Jim Kingdon
9e8db4456e * breakpoint.c (watch_command): Use (CORE_ADDR)0, not NULL, for
target null pointer.
	* blockframe.c (find_frame_addr_in_frame_chain): Likewise.

	* printcmd.c (output_command): Annotate things we print here too.
	* Move declaration of print_value_flags from defs.h to value.h.
	* main.c (command_line_input): Call wrap_here as well as gdb_flush.
1994-04-21 21:19:58 +00:00
Peter Schauer
0683ac4b2c * dbxread.c (read_dbx_dynamic_symtab): Reinstall support for sun3,
BFD handles sun3 dynamic relocations now.
	* elfread.c (elf_symtab_read, elf_symfile_read):  Handle dynamic
	symbol table.
1994-04-21 17:09:31 +00:00
Jim Kingdon
96f7edbde8 * printcmd.c (print_command_1): Annotate the top-level expressions
that we print.
	(print_frame_args): Annotate each argument.
	* printcmd.c, defs.h (print_value_flags): New function.
	* cp-valprint.c (cp_print_value_fields): Annotate each field.
	* valprint.c (val_print_array_elements): Annotate each array element.
1994-04-21 04:28:08 +00:00
Peter Schauer
59746d9ff1 * findvar.c (read_var_value): Handle LOC_REPARM_ADDR case correctly,
the register contains a pointer to the type, not the type itself.
1994-04-20 20:28:32 +00:00
Jim Kingdon
6c803036a9 * main.c (main): Accept --annotate=N option and make --fullname
the same as --annotate=1.
	(command_line_input): Print annotatation before and after prompt.
	* blockframe.c (flush_cached_frames): Print annotation.
	* Rename frame_file_full_name to annotation_level and move it from
	symtab.h to defs.h.
	* source.c (identify_source_line): If annotation_level > 1,
	change output format.
	* breakpoint.c: Print annotation whenever a breakpoint changes.
	* main.c: New variable server_command.
	(command_line_input): Parse "server " and set server_command.
	(dont_repeat): Check server_command.
1994-04-20 19:23:30 +00:00
Jim Kingdon
963dbabee7 * xcoffread.c (xcoff_next_symbol_text): Don't return before
updating raw_symbol and symnum.  Return a value in the case where
	we complained.
1994-04-20 17:07:11 +00:00
Jim Kingdon
703e4251af * parse.c: Don't define block_found; it is defined in symtab.c.
* parser-defs.h: Add comment regarding block_found.
1994-04-20 15:48:08 +00:00
Jim Kingdon
d7a96d6771 * dstread.c, coffread.c: Don't define pending_blocks; buildsym.c
takes care of it.
1994-04-20 15:39:20 +00:00
Jeff Law
d782a99583 * hppa-tdep.c (internalize_unwind_info): Delete unused indexp
argument.
1994-04-19 16:47:30 +00:00
Peter Schauer
be78eb1ab1 * dbxread.c (read_dbx_dynamic_symtab): Relocate BFD symbols by
section vma. Do not read dynamic relocs for sun3 executables to
	avoid BFD assertion message.
1994-04-18 20:26:32 +00:00
Jeff Law
8bd8cef202 Fix typo. 1994-04-18 17:17:23 +00:00
Jeff Law
9c842e0c31 * nm-hppab.h (KERNEL_U_ADDR): Define.
(FIVE_ARG_PTRACE): Likewise.
        (CANNOT_STORE_REGISTER): Likewise.
        nm-hppah.h (KERNEL_U_ADDR): Define.
        (FIVE_ARG_PTRACE): Likewise.
        (CANNOT_STORE_REGISTER): Likewise.
        (NEED_TEXT_START_END): Likewise.

        * tm-hppah.h (NEED_TEXT_START_END): Delete definition.
        * xm-hppah.h (KERNEL_U_ADDR): Delete definition.
        (FIVE_ARG_PTRACE): Likewise.
        * xm-hppab.h (KERNEL_U_ADDR): Delete definition.
        (FIVE_ARG_PTRACE): Likewise.

        * hppa-tdep.c (read_unwind_info): Make static.
        (restore_pc_queue): Indirect through the target vector to
        reload the register state.
1994-04-18 17:16:56 +00:00
Jeff Law
c5152d4234 * paread.c (compare_unwind_entries): Delete function. It's been
moved into hppa-tdep.c.
        (read_unwind_info): Likewise.
        (pa_symfile_read): No longer call read_unwind_info.  The unwind
        tables will be read in as they are needed.

        * hppa-tdep.c (compare_unwind_entries): New function.
        (read_unwind_info, internalize_unwinds): Likewise.
        (find_unwind_entry): Read in unwind information on demand.
1994-04-17 05:22:39 +00:00
Stan Shebs
fad466eb6d Fri Apr 15 11:53:46 1994 Stan Shebs (shebs@andros.cygnus.com)
* source.c (DIRNAME_SEPARATOR): New macro, replaces all references
	to : in search path processing.
	* defs.h (qsort): Rename argument in prototype.
	* symtab.h (SAYMBOL_VALUE): Rename value field, avoids bugs in
	some compilers.
	* breakpoint.c, exec.c, mdebugread.c, mipsread.c, xcoffexec.c
	(false): Eliminate usages.
1994-04-15 21:55:49 +00:00
Steve Chamberlain
63eef03aba * h8500-tdep.c (initialize_h8500_tdep, large_command):
All references to value changed to value_ptrlage_command is now
	called big_command.
	All references to value changed to value_ptr.
	* remote-z8k.c (e7000_wait): Use target_waitstatus and SETSTOP
	* remote-hms.c (hms_wait): Timeout after five seconds.
	* ser-go32.c (dosasync_read): Poll if timeout < 0.
	* config/tm/tm-h8500.h (BEFORE_MAIN_LOOP_HOOK): Deleted.
	* config/sh/tm-sh.h (BREAKPOINT): Is now sleep opcode.
1994-04-15 18:43:07 +00:00
Jeff Law
6bc194d2b5 * procfs.c (procfs_wait): Protect watchpoint code with appropriate
#ifdefs.
	(procfs_set_watchpoint, procfs_stopped_by_watchpoint): Likewise.
1994-04-14 14:16:56 +00:00
Jeff Law
e6b8a17192 * procfs.c (procfs_wait): Protect watchpoint code with appropriate
#ifdefs.
1994-04-14 14:04:15 +00:00
Jeff Law
9ec767849e * config/mips/nm-irix4.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Define.
(STOPPED_BY_WATCHPOINT, HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
	(target_{insert,remove}_watchpoint): Likewise.
1994-04-14 03:13:52 +00:00
Jeff Law
999dd04b89 * breakpoint.h (enum bptype): Add bp_hardware_watchpoint and
bp_watchpoint_scope breakpoints.
	(struct breakpoint): Add val_chain and related_breakpoint fields
	for use by watchpoints.

	* breakpoint.c (within_scope): Delete.  No longer used.
	(TARGET_CAN_USE_HARDWARE_WATCHPOINT): Provide default definition.
	(target_{remove,insert}_watchpoint): Likewise.
	(can_use_hardware_watchpoint): New function.
	(remove_breakpoint): New function to remove a single breakpoint
	or hardware watchpoint.
	(insert_breakpoints): Handle insertion of hardware watchpoints.
	Store a copy of the value chain derived from the watchpoint
	expression.
	(remove_breakpoints): Simplify by using remove_breakpoint.
	(delete_breakpoint): Likewise.
	(watchpoint_check): Delete the watchpoint and watchpoint scope
	breakpoints when the watchpoint goes out of scope.  Save & restore
	the current frame after checking watchpoints.
	(breakpoint_init_inferior): Likewise (restarting the program
	makes all local watchpoints go out of scope).
	(bpstat_stop_status): Handle hardware watchpoints much like normal
	watchpoints. Delete the watchpoint and watchpoint scope breakpoint
	when the watchpoint goes out of scope.  Remove and reinsert all
	breakpoints before returning if we stopped when a hardware watchpoint
	fired.
	(watch_command): Use a hardware watchpoint when possible.  If
	watching a local expression, build a scope breakpoint too.
	(map_breakpoint_numbers): Also call given function for any
	related breakpoints.
	(disable_breakpoint): Never disable a scope breakpoint.
	(enable_breakpoint): Handle hardware breakpoints much like normal
	breakpoints, but recompute the watchpoint_scope breakpoint's
	frame and address  (if we have an associated scope breakpoint).
	(read_memory_nobpt): Handle hardware watchpoints like normal
	watchpoints.  When necessary handle watchpoint_scope breakpoints.
	(print_it_normal, bpstat_what, breakpoint_1, mention): Likewise.
	(clear_command, breakpoint_re_set_one, enable_command): Likewise.
	(disable_command): Likewise.

	* blockframe.c (find_frame_addr_in_frame_chain): New function.
	Extern prototype added to frame.h

	* infrun.c (wait_for_inferior): Set current_frame and select
	a frame before checking if we stopped due to a hardare watchpoint
	firing.  Handle stepping over hardware watchpoints.
	(normal_stop): Remove unnecessary call to select_frame.

	* value.h (value_release_to_mark): Declare.
	* values.c (value_release_to_mark): New function.

	* procfs.c (procfs_wait): Add cases for hardware watchpoints.
	(procfs_set_watchpoint, procfs_stopped_by_watchpoint): New functions.

	* hppab-nat.c (hppa_set_watchpoint): New function.

	* config/pa/nm-hppab.h (STOPPED_BY_WATCHPOINT): Define.
	(HAVE_STEPPABLE_WATCHPOINT): Define.
	(TARGET_CAN_USE_HARDWARE_WATCHPOINT): Define.
	(target_{insert,delete}_watchpoint): Define.
1994-04-13 21:57:00 +00:00
Stu Grossman
70e375c356 Mon Apr 11 19:21:27 1994 Stu Grossman (grossman at cygnus.com)
* xcoffread.c (read_xcoff_symtab):  Ignore symbols of class C_EXT,
	smtyp XTY_LD, sclass XMC_DS (external data segment label).  They
	often have the same names as debug symbols for functions, and
	confuse lookup_symbol().
1994-04-12 02:53:09 +00:00
Jim Kingdon
2ddeed277e * remote.c: Around redefinition of PBUFSIZE, adjust whitespace.
* config/pa/tm-hppa.h (REGISTER_BYTES): Use 4 rather than
	REGISTER_RAW_SIZE (1).
	Together these changes work around a bug in HP's compiler.  Both
	seem to be necessary.
1994-04-11 17:52:11 +00:00
Jeff Law
699daa9c10 * paread.c (pa_symtab_read): Handle ST_STUB symbols and symbols
with scope SS_EXTERNAL.  ST_ENTRY symbols in dynamic executables
        are type mst_solib_trampoline.
1994-04-11 16:19:03 +00:00
Jim Kingdon
7b2b07585e Fri Apr 8 17:14:37 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
* config/m68k/es1800.mt: Change comments.

Fri Apr  8 17:14:37 1994  Rob Savoye  (rob@darkstar.cygnus.com)

	* config/m68k/monitor.mt (TDEPFILES): Don't include remote-es.o.
1994-04-09 00:18:21 +00:00
Stu Grossman
790a14a88b * lynx-nat.c: Restore regmap structure for SPARC. It's needed
for core files.
1994-04-08 22:37:35 +00:00
Jim Kingdon
a110a1c30b * values.c (unpack_long): Remove obsolete comment about using a
switch statement.
1994-04-08 22:30:55 +00:00
Jim Kingdon
f3e4ac4af6 * symfile.c (symbol_file_command): Add comments about command syntax. 1994-04-08 21:56:12 +00:00
Peter Schauer
2fe3b329f6 * infrun.c (IN_SOLIB_TRAMPOLINE): Correct comment, trampolines
are in the .plt section.
	* minsyms.c (lookup_solib_trampoline_symbol_by_pc,
	find_solib_trampoline_target):  New functions for handling
	stepping into -g compiled shared libraries.
	* symtab.h (lookup_solib_trampoline_symbol_by_pc,
	find_solib_trampoline_target):  Add prototypes.
	* config/tm-sunos.h (IN_SOLIB_TRAMPOLINE, SKIP_TRAMPOLINE_CODE):
	Define to handle stepping into  -g compiled shared libraries.
	* config/tm-sysv4.h (SKIP_TRAMPOLINE_CODE):  Define to handle
	stepping into  -g compiled shared libraries.
	* configure.in:  Add mips-*-sysv4* support.
	* config/mips/mipsv4.mh, config/mips/mipsv4.mt,
	config/mips/tm-mipsv4.h, config/mips/xm-mipsv4.h, mipsv4-nat.c:
	New files for MIPS SVR4 support.
	* Makefile.in:  Update for new mipsv4 files.
	* alpha-tdep.c (heuristic_proc_desc, find_proc_desc):  Use
	read_next_frame_reg to obtain the frame relative stack pointer.
	* mips-tdep.c (heuristic_proc_desc):  Use read_next_frame_reg to
	obtain the frame relative stack pointer.
	* mdebugread.c (parse_partial_symbols, psymtab_to_symtab1):
	Handle stStatic and stStaticProc symbols in stabs-in-ecoff output
	by entering them into the minimal symbol table.
	* printcmd.c (print_scalar_formatted):  Do not try to unpack to
	a long for float formats.
	* solib.c:  Include "elf/mips.h" only if DT_MIPS_RLD_MAP does not
	get defined in <link.h>.
	* solib.c (solib_add):  Add shared library sections to the section
	table of the target before adding the symbols.
	* partial-stab.h:  Relocate static and global functions.
	* dbxread.c (read_dbx_symtab):  Remove unused variable
	end_of_text_address.  Relocate text_addr when passing it
	to end_psymtab.

	For Alpha OSF/1 targets, enable gdb to set breakpoints in shared
	library functions before the executable is run. Retrieve dynamic
	symbols from stripped executables.
	* mipsread.c (read_alphacoff_dynamic_symtab):  New function.
	* mipsread.c (mipscoff_symfile_read):  Use it. Issue warning message
	if no debugging symbols were found.
	* alpha-tdep.c (alpha_skip_prologue):  Silently return the unaltered
	pc if memory at the pc is not accessible and GDB_TARGET_HAS_SHARED_LIBS
	is defined.
	* config/alpha/nm-alpha.h (GDB_TARGET_HAS_SHARED_LIBS):  Define,
	OSF/1 has shared libraries.
1994-04-08 00:35:15 +00:00
Ian Lance Taylor
192b64e7f9 * dbxread.c (read_dbx_dynamic_symtab): Adjust for recent changes
to BFD handling of dynamic symbols.
1994-04-07 19:13:17 +00:00
Jeff Law
4f91591410 * hppa-tdep.c (hppa_fix_call_dummy): If FUN is a procedure label,
then gets its real address into FUN and its GOT/DP value into %r19.

        * tm-hppa.h (CALL_DUMMY): Use %r20, not %r19 as a temporary.
1994-04-06 00:56:36 +00:00
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