Commit Graph

10061 Commits

Author SHA1 Message Date
Jim Kingdon
a0cf46812c * utils.c, defs.h (error_begin): New function.
(quit): Print annotation before printing the error message.
	* main.c (return_to_top_level): Print annotation before doing the
	longjmp.
	* symtab.c (decode_line_1): Call error not warning and then
	return_to_top_level.  Call error_begin and printf_unfiltered
	rather calling warning (before calls to return_to_top_level).
	* core.c (memory_error): Use error_begin, printf_unfiltered,
	print_address_numeric and return_to_top_level instead of error.
	Cleans up a FIXME-32x64.
	* language.c (type_error, range_error): Call error_begin
	not just target_terminal_ours.
1994-04-28 21:38:15 +00:00
Jim Kingdon
21ad7c45a4 * dbxread.c (stabsect_build_psymtabs): Assign to sym_stab_info
directly, rather than via DBX_SYMFILE_INFO.  A cast on the left
	side of an assignment is non-portable.
1994-04-28 20:10:45 +00:00
Jim Kingdon
dec525ce9a add gdba.el 1994-04-28 19:47:46 +00:00
Jim Kingdon
f2db73374e x 1994-04-28 19:46:25 +00:00
Jim Kingdon
7e3c7c4078 * annotate.texi: New file, to document annotations. 1994-04-28 19:43:30 +00:00
Jim Kingdon
6ef873c063 Oops, wrong file name 1994-04-28 18:34:29 +00:00
Jim Kingdon
c9d4b5efe7 new, emacs gdb mode with annotation stuff 1994-04-28 18:34:28 +00:00
Jim Kingdon
a936321888 * annotate.texi: New file, to document annotations. 1994-04-28 16:54:02 +00:00
Jim Kingdon
4dd876ac2e (prompt_for_continue): Likewise for prompt-for-continue annotation. 1994-04-28 16:04:36 +00:00
Jim Kingdon
d8742f4673 * utils.c (query): Change syntax of query annotations to be
consistent with other input annotations.
1994-04-28 15:48:15 +00:00
Jim Kingdon
9b58556978 new, to document annotations 1994-04-28 14:43:44 +00:00
Peter Schauer
11d2698207 * mdebugread.c (psymtab_to_symtab_1): Do not call sort_blocks
for stabs symtabs.
	* mips-tdep.c (mips_skip_prologue):  Handle prologues for functions
	that have a stack frame size of 32k or larger (from Paul Flinders).
	Remove #if 0'd code.
1994-04-28 08:29:22 +00:00
Ken Raeburn
17f0b355ee * config/tc-mips.c (s_option): Only refer to g_switch_* variables if GPOPT is
defined.
(s_abicalls): Ditto.
(md_apply_fix): Cast char* to unsigned char* to avoid pointer mismatch.
1994-04-28 06:25:53 +00:00
Stan Shebs
aa17521656 Wed Apr 27 16:33:51 1994 Stan Shebs (shebs@andros.cygnus.com)
* lynx-nat.c (CANNOT_STORE_REGISTER): Add a fallback definition
	for Lynx platforms that need it.
	* config/nm-lynx.h (__LYNXOS): Define if not already defined.
1994-04-27 23:35:49 +00:00
Jim Kingdon
890634eda7 * procfs.c (procfs_wait): Use the signal from the pr_info rather
than trying to deduce it from the fault.
1994-04-27 23:10:26 +00:00
Ian Lance Taylor
e6d84626b4 * scripttempl/sa29200.sc: Align all sections to four byte
boundaries.
1994-04-27 20:04:55 +00:00
Steve Chamberlain
c0c9b9232f * printcmd.c (print_address_symbolic): Initialize name to empty
string to avoid core dump if lookup fails.
	* remote-e7000.c (printf_e7000debug): Error if target not open.
1994-04-27 19:31:08 +00:00
David MacKenzie
835578f34d * install.sh: If $dstdir exists, don't check whether each component does. 1994-04-27 19:19:56 +00:00
Steve Chamberlain
2578b9a323 * h8300.h (dec, inc): Get encoding right. 1994-04-27 18:30:33 +00:00
Steve Chamberlain
7bf6856e9c * Makefile.in (syslex, sysinfo): Use CC_FOR_BUILD.
* coffdump.c, coffgroc.c, coffgrog.h, srconv.c, sysdump.c,
	sysroff.info: Major changes.
1994-04-27 18:27:18 +00:00
Steve Chamberlain
6d65841ba1 Fix dos on H'digits.. 1994-04-27 18:19:42 +00:00
Steve Chamberlain
fa1a86f302 * configure.in (i386-*-go32): Uses coff now.
* gasp.c (main): Now takes -D on command line.
	(show_usage): Describe new options.
1994-04-27 18:15:14 +00:00
Steve Chamberlain
a5f4bc3075 More testcases. 1994-04-27 18:03:31 +00:00
Steve Chamberlain
6c86b9ff98 * Makefile.in, configure.in: Support for go32 coff.
* config/i386-go32.mt: New file
	* emulparams/i386go32.sh: New file
	* scripttempl/i386go32.sc: New file
1994-04-27 17:52:13 +00:00
Ken Raeburn
eccc57e5ff Trying to make yesterday's "simplification" actually work... 1994-04-27 17:19:58 +00:00
Stu Grossman
5a3a28f2ae * nlm/gdbserve.c (putDebugChar): Install bug fix from i386-nlmstub.
* (hex2mem):  Init ptr.
	* General cleanups to use ConsolePrintf, standard prologues, etc...
1994-04-27 05:50:42 +00:00
Stu Grossman
a49666feb0 * i386-nlmstub.c: Update to be more in line with PIN stub.
* nlm/gdbserve.c (putDebugChar):  Install bug fix from i386-nlmstub.
	* (hex2mem):  Init ptr.
	* General cleanups to use ConsolePrintf, standard prologues, etc...
1994-04-27 05:50:14 +00:00
Jeff Law
9b63f09c7d * gdb.t17/callfuncs.exp: More comments about t_func_values tests.
* gdb.t17/gdbme.c (t_func_values): Add comments about how and why
        the code has been restructured.
1994-04-27 05:24:08 +00:00
Stu Grossman
1624c38fd7 [Sharp eyes, Jim...]
* remote.c:
	* (get_offsets):  Temporary kludge to force data & bss sections to
	have the same relocation.
1994-04-27 01:39:38 +00:00
Stan Shebs
e632f85ee1 Remove new Mac files. 1994-04-27 01:27:49 +00:00
Stan Shebs
22111f0eb2 Tue Apr 26 18:18:24 1994 Stan Shebs (shebs@andros.cygnus.com)
* objdump.c (print_section_stabs): Indicate the stab header symbol
	more clearly, print numbers of unrecognized stab n_type values.
1994-04-27 01:21:56 +00:00
Stan Shebs
89451c928b Tue Apr 26 18:10:40 1994 Stan Shebs (shebs@andros.cygnus.com)
* mpw-xconfig.in (archname): Only set ARCH_mips if targeting Mips.
1994-04-27 01:17:25 +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
Stan Shebs
028f887219 Tue Apr 26 17:20:03 1994 Stan Shebs (shebs@andros.cygnus.com)
* Makefile.in (em_m68klynx.c, em_i386lynx.c, em_sparclynx.c): Use
	Lynx-specific script templates.
	* configure.in (sparclite*-*-coff): Use coff-sparc.
	* emulparams/i386lynx.sh (SCRIPT_NAME): Set to i386lynx.
	* emulparams/sparclynx.sh (SCRIPT_NAME): Set to sparclynx.
	(ENTRY): Set to __main.
	* scripttempl/i386lynx.sc: New file, script for I386 Lynx.
	* scripttempl/m68klynx.sc: Add insertion of ctor/dtor sections.
	* scripttempl/sparclynx.sc: New file, script for uSparc Lynx.
1994-04-27 00:31:11 +00:00
Stu Grossman
68ba2fa550 * i386-nlmstub.c: More changes to be compatible with remote.c. 1994-04-26 22:39:20 +00:00
Ken Raeburn
926ffe9446 m68k changes - optional reg pfx, apollo, delta, init 1994-04-26 22:22:51 +00:00
Ken Raeburn
326aa685fe * tc-m68k.c (flag_reg_prefix_optional): New variable. Initialized to value of
REGISTER_PREFIX_OPTIONAL, if defined, or zero.
(m68k_reg_parse): If flag_reg_prefix_optional is set, permit register prefix to
be absent.
(m68k_ip_op): Accept `&' also for immediate constants.
(insert_reg): Don't bother with (two!?) sanity checks of the symbol table when
inserting each register.
(m68k_parse_long_option): New function.  Set flag_reg_prefix_optional if
"register-prefix-optional" is passed.
* tc-m68k.h (REGISTER_PREFIX): Always define if not already defined.
(OPTIONAL_REGISTER_PREFIX): Don't define.
(REGISTER_PREFIX_OPTIONAL): If not already defined, define as zero
or one depending on M68KCOFF.

Some changes to help Apollo support, from troy@cbme.unsw.edu.au:
* tc-m68k.c (DATA, ADDR, SP, FPREG, COPNUM, BAD, BAC): Define as macros instead
of enumerators, since the Apollo compiler can't handle "enumVal1, enumVal2 =
enumVal1" when defining an enum type.
(make_pcrel_absolute) [NO_PCREL_RELOCS]: New function.
(tc_coff_fix2rtype) [NO_PCREL_RELOCS]: Generate only R_RELBYTE, R_DIR16, and
R_DIR32 relocs.
* tc-m68k.h [TE_APOLLO] (COFF_MAGIC, COFF_AOUTHDR_MAGIC): Use Apollo versions.
[TE_APOLLO] (OBJ_COFF_OMIT_OPTIONAL_HEADER): Undefine.  That is, do include the
optional header for Apollo target.
(COFF_MAGIC): Don't define as MC68MAGIC if it's already defined.

* tc-m68k.h [TE_DELTA] (LEX_PCT): Define as 1, so that `%' can be used within a
label name.

* tc-m68k.h (m68k_init_after_args): Declare.
(tc_init_after_args): Define as m68k_init_after_args.
* tc-m68k.c (m68k_init_after_args): New function, containing one-shot code from
md_assemble.  Added warning for combination of 68040 and 68851.
(md_assemble): Startup-time code deleted.
1994-04-26 22:21:15 +00:00
Ian Lance Taylor
05deed9a58 * test-build.mk (HOLES): Add sleep; used by rcs/src/conf.sh. 1994-04-26 22:12:16 +00:00
Stan Shebs
380c60b19a Tue Apr 26 15:07:24 1994 Stan Shebs (shebs@andros.cygnus.com)
* cf-sparclynx.c (LYNXOS, COFF_LONG_FILENAMES): Define.
	* coff-sparc.c (BADMAG): Recognize LYNXCOFFMAGIC.
	(COFF_SPARC): Define.
	* coffcode.h (coff_new_section_hook): If COFF_SPARC, set alignment
	power of data and bss sections to 3.
	* hosts/lynx.h (__LYNXOS): Define.

Brought over from 94Q1.
1994-04-26 22:10:10 +00:00
Jeff Law
6c101bcf78 * elf32-hppa.c (hppa_elf_reloc): Adjust the addend of relocations
against section symbols to avoid losing during ld -r.
1994-04-26 22:06:13 +00:00
Stan Shebs
89c2748635 Mon Apr 25 15:06:34 1994 Stan Shebs (shebs@andros.cygnus.com)
* configure.in (*-*-lynxos*): Don't configure newlib for either
 	native or cross Lynx.

Brought over from 94Q1.
1994-04-26 21:56:36 +00:00
Ian Lance Taylor
c435aba810 * scripttempl/mips.sc: Force _gp and .lit8 to be aligned to a 16
byte boundary, in case the global constructors do not take up an
	even 16 bytes.
1994-04-26 21:49:45 +00:00
Stan Shebs
1c32f15edd Tue Apr 26 12:54:52 1994 Stan Shebs (shebs@andros.cygnus.com)
* mpw-config.in (elf/mips.h): Add a forward include.
1994-04-26 21:45:10 +00:00
Ken Raeburn
fb51366fe8 * config/obj-coffbfd.c (fill_section): Check COFF_NOLOAD_PROBLEM
also before setting STYP_NOLOAD for .bss section.
1994-04-26 21:28:49 +00:00
Ken Raeburn
b46f83f2d9 * listing.c (list_symbol_table): Print "NO DEFINED SYMBOLS" and "NO UNDEFINED
SYMBOLS" if there aren't any, instead of displaying the header with an empty
list.
1994-04-26 21:26:04 +00:00
Stan Shebs
96c805d83c A slight simplication. 1994-04-26 19:53:12 +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
Ian Lance Taylor
cde7350107 * config/i386v4.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not
exist, get crtbegin based on gcc -print-libgcc-file-name.
	(HOSTING_LIBS): Similar change for ../gcc/crtend.o.
1994-04-26 16:42:52 +00:00
Ian Lance Taylor
497c179acb * doc/Makefile.in (clean, distclean): Remove asconfig.texi. 1994-04-25 20:19:54 +00:00