Commit graph

557 commits

Author SHA1 Message Date
Peter Schauer
2e793470f3 * config/mips/tm-irix5.h (IN_SIGTRAMP): Redefine for Irix 5,
Irix 5 has a standard _sigtramp signal handler.
1994-08-07 13:34:39 +00:00
Steve Chamberlain
7f4b5f94dd New file. (stan said I could put it here) 1994-08-04 23:59:24 +00:00
Stan Shebs
e63d646917 * config/i386/xm-i386v4.h, config/m68k/xm-m68kv4.h,
config/sparc/xm-sun4sol2.h (NORETURN): Don't define.
	* config/m88k/tm-cxux.h (ARCH_NUM_REGS): Undefine before defining.
1994-08-04 18:17:59 +00:00
Jean Marie Diaz
f4e0e098d2 * config/i386/i386m3.mh (NAT_CLIBS): Add -lmachid and -lnetname.
* m3-nat.c, config/nm-m3.h: #if 0 REQUEST_QUIT stuff.
	* m3-nat.c: Pass argument to return_to_top_level.
	Declare m3_kill_inferior before use.
	(port_chain_insert): In "can't happen" case, abort rather than
	setting `mid' to large decimal constant (which gcc warns about).
	(get_thread_name): Use cast to convert const char * to char *.
	(add_mach_specific_commands): #if 0 "thread break" command.
	(m3_trace_him): Call push_target.
	(mach_really_wait): New argument pid; remove unused
	variable pid.
	(intercept_exec_calls): Call target_terminal_init and
	target_terminal_inferior once the child execs.
	* infrun.c (proceed): Pass argument to PREPARE_TO_PROCEED.
1994-08-04 16:20:45 +00:00
Stu Grossman
cad1498f8a * Makefile.in: Add stuff to build nlmstub.
* Add rule for annotate.o to keep Sun make happy.
	* configure.in:  Add config for powerpc/Netware.

	* partial-stab.h (near N_SO):  Don't call START_PSYMTAB with null
	filename.  This speeds up handling of trailing N_SO stabs (they
	mark the end of a .o file).

	* target.c, target.h:  Change the way pushing and popping of
	targets work to support target overlays and inheritance.
	* corelow.c, hppa-tdep.c, inflow.c, remote-nindy.c, utils.c:
	Fixup references to current_target, due to previous changes.

	* config/i386/tm-i386nw.h:  Enable longjmp support.  More work is
	needed to get the address of longjmp out of the target.
1994-07-23 00:53:28 +00:00
Stan Shebs
f66c90b6bf * config/m88k/delta88.mh (MUNCH_DEFINE): Remove.
* config/m88k/delta88.mt, config/m88k/delta88v4.mh: Format
	consistently.
1994-07-17 21:10:21 +00:00
Stan Shebs
670a8e09e9 Harris CX/UX support, from Bob Rusk (rrusk@mail.csd.harris.com).
* configure.in (m88*-harris-cxux*): New configuration.
	* cxux-nat.c, config/m88k/cxux.mh, config/m88k/cxux.mt,
	config/m88k/xm-cxux.h, config/m88k/tm-cxux.h, config/m88k/nm-cxux.h:
	New files.
	* config/m88k/tm-m88k.h: Add comment about Harris OS.
	(TARGET_WRITE_PC): Pass pid through to register writers.

	* configure.in (m68*): Put vendor-only-specified host configs
	after vendor-and-os-specified configs.
	(m68*-atari-sysv4*, m68*-cbm-sysv4*): Replace with m68*-*-sysv4.
1994-07-17 21:08:42 +00:00
Stan Shebs
08df328495 Various updates 1994-07-12 01:43:09 +00:00
Stan Shebs
02176ddb29 Atari support, from Uwe Seimet (seimet@chemie.uni-kl.de).
* configure.in (m68*-atari-sysv4*): New configuration.
	(m68*-cbm-sysv4*): Use m68kv4 instead of amix.
	* m68k-tdep.c (R_PS): Define as R_SR if necessary.
	* config/m68k/m68kv4.mh, config/m68k/m68kv4.mt,
	config/m68k/tm-m68kv4.h, config/m68k/xm-m68kv4.h: New files.
	* config/m68k/amix.mh, config/m68k/amix.mt,
	config/m68k/tm-amix.h, config/m68k/xm-amix.h: Removed, superseded
	by m68kv4 files.
1994-07-12 00:36:42 +00:00
Peter Schauer
fb1b2bd0af * config/sparc/tm-sun4sol2.h (HANDLE_SVR4_EXEC_EMULATORS):
Define to enable handling of shared libraries for a.out executables,
	run under Solaris BCP.
1994-07-02 08:55:43 +00:00
Steve Chamberlain
bffce4c6b8 Use e7000-pc stuff. 1994-06-27 17:17:27 +00:00
Jeff Law
bfe2f12bd0 * somread.c: Renamed from paread.c. Changed function names and
comments to reflect that this file deals with SOM (an object file
	format), rather than the PA (a cpu).
	(Makefile.in): Chaned appropriately.
	(config/pa/hppabsd.mh, config/pa/hppahpux.mh): Likewise.
	* dbxread.c (somstab_build_psymtabs): Renamed from
	pastab_build_psymtabs.
1994-06-27 06:09:40 +00:00
Peter Schauer
5c3f264ff6 * core-sol2.c: New file to handle ELF and BCP core file flavours.
* config/sparc/sun4sol2.mh (NATDEPFILES):  Use it instead of
	core-svr4.
1994-06-24 16:27:52 +00:00
Peter Schauer
d6f049084a * config/mips/xm-makeva.h: Removed, no longer necessary. 1994-06-24 15:22:35 +00:00
Peter Schauer
591554fd29 * config/mips/xm-makeva.h: Removed, no longer necessary.
* Makefile.in, config/mips/xm-irix3.h, config/mips/xm-irix5.h,
	config/mips/xm-mips.h, config/mips/xm-news-mips.h,
	config/mips/xm-riscos.h:  Remove references to xm-makeva.h
1994-06-24 15:21:24 +00:00
Stan Shebs
b8ec8d4ab0 * mpw-make.in (VERSION): Update to 4.12.3.
(SiowGDB): New target, GDB using SIOW library.
	(init-new.c): New target, attempt to generate init.c from sources.
	(main.c.o, top.c.o): Put each in its own segment.
	* main.c (main) [MPW]: Always call mac_init.
	* utils.c (query) [MPW]: Always return "yes" if in MacGDB, output
	an extra newline otherwise.
	* mac-xdep.c: More comments in various places, remove junk.
	(mac_init): Add tests for MPW and SIOW.
	(use_wne, has_color_qd): Renamed.
	(use_color_qd): New variable.
	(grow_window): Only do console resizing to console window,
	call resize_console_window.
	(zoom_window): Call resize_console_window.
	(resize_console_window, scroll_text): New functions.
	(adjust_console_sizes): Always align viewrect to even multiples of
	text lines.
	(adjust_console_text): Always scroll by whole lines.
	(hacked_vfprintf, hacked_puts, hacked_fputc, hacked_putc): Force a
	recalculation of scroll positions if a newline was output.
	(hacked_fflush): Similarly, for flushing.
	(hacked_fgetc): New function, aborts if called in MacGDB.
	* ser-mac.c (mac_readchar): Rename starttime to start_time,
	remove debugging printf.
	(mac_write): Sleep on first 4 writes.
	(sec_sleep): New function, works like standard sleep.
	* macgdb.r: Adjust positioning and contents of About box.
	Set minimum size to 2000K, preferred size to 5000K.
	* config/m68k/xm-mpw.h (fgetc): Define as a macro.
1994-06-22 19:57:02 +00:00
Kung Hsu
733fa4c2f8 Modified Files:
tm-mips64.h tm-bigmips64.h

        * config/mips/tm-mips64.h: define FORCE_LONG_LONG to force LONGEST
        to be long long in gdb.
        * config/mips/tm-bigmips.h: ditto.
1994-06-21 21:09:13 +00:00
Stan Shebs
8c16485eb0 Keep v9 bits now. 1994-06-16 21:18:05 +00:00
Peter Schauer
020ed9bbb7 * config/m68k/dpx2.mh (NATDEPFILES): Remove duplicate inclusion
of inftarg.o.
	* config/m68k/tm-dpx2.h (CANNOT_STORE_REGISTER):  Define to inhibit
	writing of floating registers, the dpx2 kernel disallows it.
1994-06-12 11:11:39 +00:00
Kung Hsu
97f288325e Modified Files:
sparclite.mt

	* change sparclite-tdep.o to sparcl-tdep.o.
1994-06-11 00:03:28 +00:00
Kung Hsu
cd3508f16e Modified Files:
sparclite.mt tm-sparclite.h

        * config/sparc/sparclite.mt: add sparclite-tdep.o.
        * config/sparc/tm-sparclite.h: add hardware breakpoints support
        defiines and code.
1994-06-10 01:24:22 +00:00
Kung Hsu
7d5c4d30d8 Modified Files:
nm-hppab.h

        * config/pa/nm-hppab.h: change interface for target dependent
        code supporting watch point.
1994-06-10 01:23:20 +00:00
Kung Hsu
038a2f11f6 Modified Files:
nm-irix4.h

         * config/mips/nm-irix4.h: change interface for target dependent
        code supporting watch point.
1994-06-10 01:22:38 +00:00
Stu Grossman
a4b4f52058 * nlmread.c (nlm_symtab_read): Clean up a bit.
* (nlm_symfile_read):  Record bounds of main() so that backtrace
	command will know where to stop.
	* objfiles.c (objfile_relocate):  Relocate entry point/func info
	for backtrace as well.
	* objfiles.h:  Define values for invalid PCs for entry point info.
	* symfile.c (init_entry_point_info):  Initialize invalid values
	with aforementioned macros.
	* config/alpha/tm-alphanw.h:  Turn on FRAME_CHAIN_VALID_ALTERNATE
	to cause backtrace to stop when it gets back to main().
	* config/i386/tm-i386nw.h:  Ditto.
1994-06-09 06:30:38 +00:00
Jim Kingdon
d8fc877318 * source.c (find_source_lines): Always use code that was #ifdef
BROKEN_LARGE_ALLOCA.  Do the cleanup before returning, rather than
	leaving it on the chain.  Reindent much of this function.
	* config/sparc/{xm-sun4sol2.h,xm-sun4os4.h},
	config/i386/{xm-sun386.h,xm-i386m3.h,xm-i386mach.h},
	config/m68k/{sun3os4.h,xm-news.h,xm-hp300hpux.h},
	config/ns32k/xm-ns32km3.h: Remove all references to
	BROKEN_LARGE_ALLOCA; with the above change it is no longer needed.
	* main.c, fork-child.c, many config files: Remove all
	SET_STACK_LIMIT_HUGE code; with the above changes it should no
	longer be needed.

	* symtab.c (lookup_partial_symbol): Use if and abort, not assert.
	This avoids __eprintf troubles.

	* main.c (main): Surround in #ifndef MAIN_OVERRIDE.  Move
	initialization code which needs to be called even if we bypass the
	command line stuff into gdb_init.
	* utils.c (fputs_unfiltered): Surround in #ifndef
	FPUTS_UNFILTERED_OVERRIDE.
	* Makefile.in (libgdb.a): New target.

	* utils.c: Rearrange I/O stuff a bit so that all output goes
	through fputs_unfiltered.  Use vasprintf; removes arbitrary limit
	which made %s not work with arbitrarily large strings.
	* printcmd.c (printf_command): Use printf_filtered, not
	printf_unfiltered and printf, now that arbitrary limit is gone.
1994-05-14 19:37:57 +00:00
Stan Shebs
a6b26c4431 Changes for MacGDB:
Thu May 12 17:04:58 1994  Stan Shebs  (shebs@andros.cygnus.com)

	* mpw-make.in (INCLUDE_CFLAGS): Add readline source dir.
	(READLINE_CFLAGS, READLINE_SRC, READLINE_DIR): Uncomment.
	(TSOBS): Don't compile inflow.c.
	(all, install): Add MacGDB.
	* main.c (main): Do Mac-specific init and command loop if a
	standalone app, skip full option help message if compiling
	with MPW C.
	(gdb_readline): If MPW, add a newline after the (gdb) prompt.
	* utils.c (_initialize_utils): If MPW, don't try to use termcap to
	compute the window size.
	* config/m68k/xm-mpw.h (printf, fprintf, fputs, fputc, putc,
	fflush): Define as macros that expand into hacked_... versions.
	(StandAlone, mac_app): Declare.
	* macgdb.r (SIZE): Set the default partition to 4000K.
	* mac-xdep.c (readline.h, history.h): Include.
	(terminal.h): Don't include.
	(mac_app): Define.
	(gdb_has_a_terminal): Define Mac-specific version.
	(do_keyboard_command): Simplify search for command string.
	(readline): Define as gdb_readline.
	Add other history/readline stubs to make main gdb link.
	(hacked_fprintf, hacked_printf, hacked_vfprintf, hacked_fputs,
	hacked_fputc, hacked_fflush): New functions, intercept output to
	stdout and stderr, send to console window.
1994-05-13 00:31:31 +00:00
Jim Kingdon
3f5e2fb58f * procfs.c (procfs_wait): Reinstate code which deduces the signal
from the fault, #ifndef FAULTED_USE_SIGINFO.
	* config/sparc/tm-sun4sol2.h: Define FAULTED_USE_SIGINFO.
1994-05-03 15:13:26 +00:00
Stan Shebs
939baabee2 Tue Apr 26 17:44:27 1994 Stan Shebs (shebs@andros.cygnus.com)
* mpw-make.in (MacGDB): New target, standalone Mac-hosted gdb.
	(XDEPFILES): Define.
	(main.c.o): Compile with gC instead of C.
	* mac-defs.h: New file, menu etc definitions shared between
	C and Rez files.
	* macgdb.r: New file, Rez (resource compiler) resource
	definitions.
	* mac-xdep.c: New file, Mac host interface code.
	* config/m68k/xm-mpw.h (PATHNAME_SEPARATOR): Rename to
	DIRNAME_SEPARATOR.
	(PATHNAME_SEPARATOR_STRING): Remove.
	(SIGQUIT, SIGHUP): Define.
	(fileno, R_OK): Define.
1994-04-27 00:55:59 +00:00
Jeff Law
fe15373a50 * 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:18:12 +00:00
Steve Chamberlain
723a8cc532 * config/tm/tm-h8500.h (BEFORE_MAIN_LOOP_HOOK): Deleted. 1994-04-15 18:41:27 +00:00
Steve Chamberlain
2e2b27790c * config/sh/tm-sh.h (BREAKPOINT): Is now sleep opcode. 1994-04-15 18:41:05 +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
ccd7a7db10 * 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 22:02:52 +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
Peter Schauer
376f8f6844 * 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.
1994-04-08 00:37:48 +00:00
Peter Schauer
77af4652a7 * config/alpha/nm-alpha.h (GDB_TARGET_HAS_SHARED_LIBS): Define,
OSF/1 has shared libraries.
1994-04-08 00:36:54 +00:00
Peter Schauer
a9617bd573 * 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.
1994-04-08 00:36:08 +00:00
Jeff Law
853feb50c0 Fix typo in last change. 1994-04-06 01:11:08 +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
4556842434 * xm-hppab.h: Never define USG.
* xm-hppah.h: Always define USG.
1994-04-05 22:31:21 +00:00
Peter Schauer
5051b6f290 * config/sparc/tm-sun4sol2.h (IN_SOLIB_TRAMPOLINE): Removed,
the new generic definition from tm-sysv4.h works for Solaris.
1994-04-01 08:51:31 +00:00
Peter Schauer
94a5ac73e1 * config/tm-sysv4.h (IN_SOLIB_TRAMPOLINE): Use new in_plt_section. 1994-04-01 08:50:42 +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
8a19fe2188 * 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.
1994-03-30 10:00:00 +00:00
Jeff Law
a87c93b716 Put back include to tm-hppa.h mistakenly taken out during a recent checkin. 1994-03-29 18:36: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
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
503554725f Forgot this in recent commit. 1994-03-26 01:04:06 +00:00
Sean Eric Fagan
c929326f2a Stu apparantly forgot to update the .Sanitize file when he added
tm-alphanw.h.
1994-03-26 00:41: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