Commit Graph

3324 Commits

Author SHA1 Message Date
Peter Schauer 677183693d * partial-stab.h (case N_ENDM): Finish current partial symbol
table for Solaris 2 cc.
1996-03-19 20:50:13 +00:00
Jeff Law a466b86aac * rs6000-nat.c (exec_one_dummy_insn): Don't clobber the
PC in the registers array.  From Peter Schauer.
1996-03-19 17:40:12 +00:00
Fred Fish 0ef22be97f * symfile.c (reread_symbols): Reinitialize bcache struct
members to zero using memset.  Also use memset to reinit
	global_psymbols and static_psymbols, rather than explicitly
	resetting each structure member.
1996-03-18 21:24:48 +00:00
Fred Fish 315206699f * configure.in: Add fragment to create stamp-h.
From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
	* configure.in (AC_CHECK_HEADERS):  Check for link.h.
	* configure:  Regenerate with autoconf.
	* config.h.in:  Regenerate with autoheader.
	* config/i386/nm-linux.h:  Include solib.h only if HAVE_LINK_H
	is defined.
	* solib.c:  Exclude most of the code if HAVE_LINK_H is not defined.
	* config/i386/linux.mh:  Reinstate XM_CLIBS, it is needed for
	older a.out based systems.
1996-03-17 06:28:57 +00:00
Fred Fish d58ffc6cc6 * i386v4-nat.c (defs.h): Include before testing HAVE_SYS_PROCFS_H. 1996-03-17 01:08:19 +00:00
Fred Fish bfcf3112c4 Forgot during last checkin.
* config.h.in: New file.
	* Makefile.in (distclean): Remove config.h and stamp-h during distclean.
	(config.h, stamp-h): New targets to remake config.h when necessary.
1996-03-17 00:53:34 +00:00
Fred Fish db210d08e4 * acconfig.h: New file, for autoheader.
* configure.in (AC_CONFIG_HEADER): Add, generate config.h.
	* configure: Regenerate.
	* Makefile.in (defs_h): Add config.h
	* defs.h (config.h): Include before any other includes or defines.
	* i386-tdep.c (gdb_string.h): Move include after include of defs.h.
1996-03-17 00:36:07 +00:00
Fred Fish d5fde1c906 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
* Makefile.in (INSTALLED_LIBS):  Make sure that @LIBS@ will not
	result in an empty line, to work around a bug in native Ultrix 4.4
	and OSF/1-3.2C make.
1996-03-16 21:58:00 +00:00
Fred Fish 3dedc867b7 * configure.in: Add gdbserver to configdirs under linux.
* configure: Regenerate.
1996-03-16 21:46:56 +00:00
J.T. Conklin f727efb55d * config/i386/nm-nbsd.h (FLOAT_INFO): Comment out.
* config/i386/tm-nbsd.h (NUM_REGS): Define.
1996-03-15 20:12:35 +00:00
Jeff Law a404ea2596 * solib.c (solib_break_names): Add _r_debug_state for
vanilla SVR4 implementations.  From Peter Schauer.
1996-03-14 17:32:12 +00:00
Steve Chamberlain 1ef980b961 Mon Mar 11 11:02:47 1996 Steve Chamberlain <sac@slash.cygnus.com>
With Michael Snyder:
	* i386-tdep.c (skip_trampoline_code): Fix strncmp length.
	* win32-nat.c (CHECK, DEBUG*, debug_*): New.
	(handle_load_dll): Don't reload symbols.
	(handle_exception):  Use the DEBUG_* names.
	(child_wait): Add DEBUG_* code.
	(_initialize_inftarg): Add new commands to set debug_ names.
1996-03-11 19:08:57 +00:00
Jeff Law 803a31a3c8 * From Peter Schauer:
* breakpoint.c (insert_breakpoints): Use ALL_BREAKPOINTS_SAFE.
        (bpstat_stop_status): Likewise.
        (remove_solib_event_breakpoints): Likewise.
        (clear_momentary_breakpoints): Likewise.
        (re_enable_breakpoints_in_shlibs): Don't reenable a breakpoint
        if we still can't read the memory for that breakpoint.
        (mention): Add bp_shlib_event case to keep gcc quiet.
1996-03-11 16:21:51 +00:00
Ian Lance Taylor 4972c44eb3 * defs.h (extract_long_unsigned_integer): Declare.
* findvar.c (extract_long_unsigned_integer): New function.
	* printcmd.c (print_scalar_formatted): Use it.
	* valprint.c (val_print_type_code_int): Likewise.
1996-03-08 16:43:02 +00:00
Stan Shebs 00dd4fd9ad * infcmd.c (do_registers_info): Ignore anonymous registers.
* sh-tdep.c (set processor): New command to set specific
	processor type.
	(sh_reg_names, sh3_reg_names): Arrays of register names for
	SH and SH3 processors.
	(sh_set_processor_type): New function.
	* sh3-rom.c (sh3_open): Call it.
	(sh3_regname): Add names of all the bank registers.
	(sh3_supply_register): Clean up formatting.
	* config/sh/tm-sh.h (NUM_REGS, NUM_REALREGS): Increase to include
 	bank registers.
	(REGISTER_NAMES): Add names of bank registers.
	(FP15_REGNUM): Define.
	(REGISTER_VIRTUAL_TYPE): Use it.
	* monitor.c: Clean up some comments.
1996-03-08 02:04:19 +00:00
J.T. Conklin 43ece84dc3 * i386b-nat.c: Revert part of Mar 5 change. FreeBSD collapsed the
s* and t* symbols too.
1996-03-07 20:13:45 +00:00
Jackie Smith Cashion 5a367b09e3 Thu Mar 7 15:18:51 1996 James G. Smith <jsmith@cygnus.co.uk>
* symfile.c (generic_load): Avoid division by zero.
1996-03-07 15:25:33 +00:00
Jeff Law 653fed07a6 * breakpoint.c (bfd_lookup_symbol): Provide for all SVR4 systems,
not just those with HANDLE_SVR4_EXEC_EMULATORS.
Fixes linux native build problem.
1996-03-07 01:00:04 +00:00
Jeff Law 27b6a1fa2e * From Peter Schauer:
* breakpoint.c (internal_breakpoint_number): Move to file scope.
        (create_solib_event_breakpoint): Use an internal breakpoint number.
1996-03-06 16:36:13 +00:00
Wilfried Moser bb901438ce * valarith.c (value_in): Change builtin_type_chill_bool to
LA_BOOL_TYPE.
1996-03-06 08:35:05 +00:00
Wilfried Moser c105168f76 * ch-exp.c (parse_primval): Handle CARD, MAX, MIN.
(match_string_literal): Handle control sequence.
        (match_character_literal): Deto.

        * ch-lang.c (chill_printchar): Change formating of nonprintable
        characters from C'xx' to ^(num).
        (chill_printstr): Deto.
        (value_chill_card, value_chill_max_min): New functions to process
        Chill's CARD, MAX, MIN.
        (evaluate_subexp_chill): Process UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN.

        * expression.h (exp_opcode): Add UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN
        for Chill's CARD, MAX, MIN.

        * valarith.c (value_in): Add processing of TYPE_CODE_RANGE
        and change return type from builtin_type_int to
        builtin_type_chill_bool.
1996-03-06 08:02:45 +00:00
Stan Shebs b4692cbc5e * config/nm-nbsd.h (link_object, lo_name, etc): Move to here
from config/nm-nbsd.h.
	* config/sparc/nm-nbsd.h (regs, fp_status, etc): Move to here
	from config/sparc/tm-nbsd.h.
1996-03-06 04:01:02 +00:00
Stan Shebs d009ffd8ac * config/m68k/nm-hp300hpux.h (FIVE_ARG_PTRACE): Define here
instead of in config/m68k/xm-hp300hpux.h.
1996-03-06 02:58:19 +00:00
J.T. Conklin d554e554da * i386b-nat.c, m68knbsd-nat.c (fetch_core_registers): Provide
implementation for NetBSD systems.
1996-03-05 20:09:21 +00:00
Per Bothner 8d67b75aa2 * valarith.c (binop_user_defined_p): Return 0 for BINOP_CONCAT.
(value_concat):  Handle varying strings (add COERCE_VARYING_ARRAY).
This fixes PR chill/9078.
1996-03-05 08:20:22 +00:00
Per Bothner 02e6e53d84 * ch-lang.c (evaluate_subexp_chill case MULTI_SUBSCRIPT): Error
if "function" is pointer to non-function.
Fixes PR chill/9095.
1996-03-05 07:48:20 +00:00
Stan Shebs f935141e4c * top.c (print_gdb_version): Update copyright year. 1996-03-05 02:13:33 +00:00
Jeff Law 11be829fa1 * From Peter Schauer:
* infrun.c (wait_for_inferior): Remove breakpoints and
        switch terminal settings before calling SOLIB_ADD.
        * solib.c (enable_break, SVR4 variant): Don't map in symbols
        for the dynamic linker, the namespace pollution causes real
        problems.
1996-03-04 21:50:10 +00:00
Jackie Smith Cashion 4f005fea32 Sun Mar 3 17:18:57 1996 James G. Smith <jsmith@cygnus.co.uk>
* remote-mips.c (common_breakpoint): Explicitly terminate the
 	returned buffer.
1996-03-03 17:20:15 +00:00
Stan Shebs cf3c093871 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
* remote.c (remote_detach): Send a command 'D' to the target
	when detaching, update the function's comments.
1996-02-29 06:39:05 +00:00
Fred Fish 8fe2b2c53e * Makefile.in (VERSION): Bump version to 4.15.2 to establish
baseline for gdb 4.16 rerelease testing.
1996-02-28 23:53:00 +00:00
Jeff Law a4f39c0651 * somsolib.c (som_solib_create_inferior_hook): Before returning
call clear_symtab_users.
Fixes minor hpux problem with 7763 patches.
1996-02-28 20:36:27 +00:00
Stan Shebs 8fa6fcf829 * configure.in (mips*-*-vxworks*): New config.
* configure: Regenerated.

	* config/mips/vxmips.mt, config/mips/tm-vxmips.h: New files.
	* remote-vxmips.c (vx_convert_to_virtual, vx_convert_from_virtual):
	Remove, never used.
1996-02-25 22:05:00 +00:00
Peter Schauer a97a483ca8 * partial-stab.h (case N_FUN): Function symbols generated
by SPARCworks cc have a meaningless zero value, do not update
	pst->textlow if the function symbol value is zero.

	* stabsread.c (define_symbol):  Initialize SYMBOL_TYPE field
	for function prototype declaration symbols.
1996-02-24 20:32:48 +00:00
Stu Grossman b5eccf7482 * remote-e7000.c (e7000_load): New routine to download via the
network.
	* (e7000_wait):  Don't backup PC when we hit a breakpoint.
	Apparantly new sh2 pods get this right...
	* (e7000_ops):  Add call to e7000_load.
1996-02-24 06:39:44 +00:00
J.T. Conklin b7f3b6d5e6 * config/m68k/{nbsd.mh,nbsd.mt,nm-nbsd.h,tm-nbsd.h,xm-nbsd.h},
m68knbsd-nat.c: New files, support for NetBSD/m68k.

* configure.in (m68k-*-netbsd*): New config.
* configure: Regenerated.
1996-02-22 09:11:16 +00:00
Fred Fish 6a6a552a29 * standalone.c (open, _initialize_standalone): Fix obvious typos
reported by Martin Pool <martin@citr.uq.oz.au>.
1996-02-22 01:58:53 +00:00
Jeff Law 13f6c7eac1 * solib.c (solib_create_inferior_hook): Fix thinko.
Don't screw sunos4 with 7763 fixes..
1996-02-21 21:27:08 +00:00
Jeff Law 464c6c5f3f * solib.c (solib_break_names): Define for Solaris and Linux.
(enable_break): For SVR4 systems, first try to use the debugger
        interfaces in the dynamic linker to track shared library events
        as they happen, then fall back to BKPT_AT_SYMBOL code.  Convert
        BKPT_AT_SYMBOL code to use shared library event breakpoints.
        (solib_create_inferior_hook): Simplify BKPT_AT_SYMBOL code,
        it no longer needs to restart/wait on the inferior.
        * symfile.c (find_lowest_section): No longer static.
        * symfile.h (find_lowest_section): Corresponding changes.
Wraps up 7763 work, simplifies BKPT_AT_SYMBOL code somewhat, and allows
debugging of startup code.
1996-02-21 07:04:03 +00:00
Jeff Law 9263da6f13 Commit misplaced ChangeLog entry. 1996-02-21 06:41:25 +00:00
Fred Fish 45c5fa7891 * valops.c (COERCE_FLOAT_TO_DOUBLE): Define default value.
(value_arg_coerce): Use COERCE_FLOAT_TO_DOUBLE.
1996-02-21 03:36:07 +00:00
J.T. Conklin eb224848cd * config/{i386,ns32k}/nbsd.mh (NATDEPFILES): Remove core-aout.o. 1996-02-21 02:00:10 +00:00
J.T. Conklin 48d27324a4 * config/nm-nbsd.h (FETCH_INFERIOR_REGISTERS): Defined.
* config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
#ifdef'd out definitions ---  Causes serious gdb failures on
the i386.  Need to investigate further before enabling.

* i386b-nat.c (fetch_inferior_registers, store_inferior_registers,
fetch_core_registers): New functions.  These functions are defined
if FETCH_INFERIOR_REGISTERS is set.  Registers are fetched/stored
with ptrace PT_GETREGS/PT_SETREGS.
1996-02-21 01:52:37 +00:00
Stu Grossman 95f6f9269f * findvar.c (extract_floating store_floating): Replace `long
double' with `DOUBLEST'.
1996-02-21 00:57:10 +00:00
J.T. Conklin cb91ea567f * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
Define.
1996-02-20 07:11:38 +00:00
Fred Fish 0708e99fc2 * dwarfread.c (add_partial_symbol): Use ADD_PSYMBOL_ADDR_TO_LIST
for CORE_ADDR values.
	(new_symbol): Use SYMBOL_VALUE_ADDRESS for CORE_ADDR values.
	* symfile.h (add_psymbol_{,addr}to_list): Add prototypes.
1996-02-19 20:46:43 +00:00
Peter Schauer 08dc1eeb45 * mipsread.c (mipscoff_symfile_read): Unconditionally add
alpha coff dynamic symbols for all symbol files.  Makes skipping
	over the trampoline code work when stepping from a function in a
	shared library into a function in a different shared library.
1996-02-18 23:09:04 +00:00
Stu Grossman 1d6afd7fc1 * config/sparc/tm-sparc.h: Define PS_FLAG_CARRY. Define
RETURN_VALUE_ON_STACK to return long doubles on the stack.
1996-02-18 17:34:09 +00:00
Fred Fish 176b2bee3f * Makefile.in (ch-exp.o): Add dependencies.
(various): Add gdb_string.h to dependencies that need it.
1996-02-17 23:51:55 +00:00
Fred Fish dcb6a7c007 * symmisc.c (print_symbol_bcache_statistics): Update description for
printing byte cache statistics.
1996-02-17 17:35:36 +00:00