Commit Graph

11998 Commits

Author SHA1 Message Date
Stu Grossman
86db943ceb * defs.h, gdbtk.c (gdbtk_fputs), main.c (gdb_fputs), top.c: Add stream arg
to fputs_unfiltered_hook.  Differentiate stdout from stderr when
	passing text into tcl land.
	* defs.h, top.c, utils.c (error):  Add error_hook.
	* gdbtk.c:  Improve mechanism for capturing output values.
	* (full_filename):  Remove.
	* (gdb_cmd call_wrapper gdbtk_init):  Protect all calls from tcl
	land with call_wrapper.  This prevents longjmps (usually via
	error()) from jumping out of tcl/tk and leaving things in an
	indeterminate state.
	* gdbtk.tcl:  New view option to disable line numbers.  Put catch
	around most uses of gdb_cmd.  Add update button to reg config
	window.  Stop doing immediate updates when selecting registers.
	Change register view values into checkbuttons.
1994-12-16 01:07:35 +00:00
Ken Raeburn
243babd424 * Makefile.in (AS_FOR_TARGET, OBJDUMP_FOR_TARGET): Don't set.
(uninstall): Don't set OBJDUMP and OBJDUMPFLAGS in site.exp.
* config/default.exp: Default OBJDUMP and OBJDUMPFLAGS.  Use findfile and
transform procedures to determine objdump program name.
1994-12-16 00:19:40 +00:00
Jim Wilson
8b1f3552cf * config/tc-sh.c (md_begin): Use a local variable when
initializing md_relax_table to avoid errors about modifying a
	const data structure.
1994-12-15 23:30:01 +00:00
Stan Shebs
223e83068b * hosts/mpw.h: Include spin.h. 1994-12-15 22:08:53 +00:00
Ian Lance Taylor
2f19e36d97 * elfcode.h (elf_map_symbols): Only use section symbols whose
value is the start of the section, checking output_offset when
	using output_section.  When creating a new symbol, set the value
	to 0, since BFD symbol values are section relative.
1994-12-15 04:41:39 +00:00
Ian Lance Taylor
f5202354c3 * elfcode.h (elf_map_symbols): Only use section symbols whose
value is the start of the section.
1994-12-15 01:23:40 +00:00
Ken Raeburn
d0bfd8ec2b sanitize out arc stuff 1994-12-14 21:45:07 +00:00
Ken Raeburn
f8eccafb19 * lib/ld.exp (prune_system_crud): Define if not already defined, in case the
user isn't using the newest DejaGnu version that we haven't released to the net
yet.
1994-12-14 21:40:30 +00:00
Ken Raeburn
63ca9597f0 removed some unreachable code from objcopy 1994-12-14 21:37:00 +00:00
Ken Raeburn
09d7f0a658 expect simple-objcopy test to fail on hp300 1994-12-14 21:35:07 +00:00
Stan Shebs
1a8b189e1c * mpw-config.in (m68k-apple-macos, ppc-apple-macos,
i386-unknown-aout, i386-unknown-coff): New targets.
	(m68k-aout, m68k-coff): Remove targets.
	(mk.tmp): Add definition of EMUL.
1994-12-14 21:33:33 +00:00
Stan Shebs
d4d4c53c68 * progress.h: New file, empty definitions for progress macros. 1994-12-14 21:11:18 +00:00
Ken Raeburn
6273f92d2a disable bintest.o tests on hppa, fix minor sh-coff objcopy setup_xfail problem 1994-12-14 20:59:14 +00:00
Stan Shebs
a2905ef89e * config/m68k/xm-mpw.h (spin.h): Include.
(ALMOST_STDC): Only define if MPW_C.
	* config/m68k/tm-mac.h: New file, Mac target definitions.
1994-12-14 01:00:17 +00:00
Stan Shebs
9529275a91 Actually lose it 1994-12-14 00:47:58 +00:00
Stan Shebs
3bf210840f * mpw-config.in (m68k-apple-macos, ppc-apple-macos,
i386-unknown-aout): New targets.
	(mk.tmp): Add *DEPFILES definitions.
	* mpw-make.in: Remove gC rules, clean up definitions for other
        include files, bump version, fix bogus \ that should be \Option-d.
	(init.c): Build correctly.
	(mpw-init.c): Remove.
1994-12-14 00:47:32 +00:00
David Edelsohn
070ac72796 Initial arc-elf support. 1994-12-14 00:44:50 +00:00
Stan Shebs
b8b78f950d * breakpoint.c, infrun.c, printcmd.c: Change long command help
strings into concats of shorter ones, for picky ANSI compilers.
1994-12-13 23:36:31 +00:00
Ian Lance Taylor
d9f4c35f65 * gas/mips/jal-svr4pic.d: Fix 0-strings to work with 64-bit hosted
disassembly.
1994-12-13 23:28:17 +00:00
Ian Lance Taylor
7ac36f6470 * config/tc-ppc.c (tc_gen_reloc): Remove OBJ_ELF hack which
appears to no longer be needed.
1994-12-13 20:43:28 +00:00
Jim Kingdon
fd82583b42 * gdb.chill/Makefile.in: Put all rule before rules for pr-4975.o
and pr-5646.o, so "make" is the same as "make all, not "make
	pr-4975.o".
1994-12-13 19:30:31 +00:00
Ian Lance Taylor
1088e1483c * cpu-z8k.c (arch_info_struct): Make z8002 the default
architecture.
1994-12-13 18:33:05 +00:00
Ian Lance Taylor
6baef6d24a * config/tc-mips.c (macro_build): Accept BFD_RELOC_PCREL* without
requiring that the X_op_symbol be in the text_section.
	(macro): Change the test for a legel expression difference to
	correspond to changes in pseudo_set in read.c.
1994-12-13 16:07:02 +00:00
Stan Shebs
a23e2b7cde * mpw-config.in: Add mapping from configs to object file formats,
get VERSION from Makefile.in and add to mk.tmp.
	(mips-idt-ecoff) [TDEFINES]: Add TARGET_BYTES_BIG_ENDIAN.
	* mpw-make.in (VERSION, gC): Don't define.
	(ALL_CFLAGS): Remove -d flags.
	(config.h): Remove definition of MPW, add HAVE_STDARG_H,
	BFD_ASSEMBLER.
1994-12-13 03:52:01 +00:00
Stan Shebs
4fd067b80d * mpw-config.in: Create mk.tmp, define ARCHDEFS in it. 1994-12-13 03:41:18 +00:00
Stan Shebs
1d3c6d87ba * mpw-config.in: Edit the BFD version into bfd.h.
(m68k-apple-macos, ppc-apple-macos): New targets.
	* mpw-make.in: Remove use of gC in rules, add srcdir pathnames to
        more files.
1994-12-13 03:34:28 +00:00
Stan Shebs
e025097f56 * mpw-mh-mpw (EXTRALIBS): Always link in Math.o, CSANELIB.o,
and ToolLibs.o.
1994-12-13 01:16:49 +00:00
Stan Shebs
a2e2d994e4 * mpw-configure: Remove subdir-specific makefile hackery,
delete mk.tmp after using it.
	(TDEFINES): Set to empty.
1994-12-13 01:13:38 +00:00
Stan Shebs
eb8910888d Sparc flat register window support.
* sparc-tdep.c (sparc_insn_layout): New union, defines layout of
        instructions symbolically (used to be local to skip_prologue).
	(sparc_init_extra_frame_info): New function.
	(sparc_frame_chain): Add flat cases throughout.
	(skip_prologue): Add recognition of flat prologues.
	(sparc_frame_find_saved_regs): Add flat cases.
	(sparc_pop_frame): Ditto.
	* config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): New slots.
	(INIT_EXTRA_FRAME_INFO): Call sparc_init_extra_frame_info.
	(PRINT_EXTRA_FRAME_INFO): Define.
1994-12-13 01:11:49 +00:00
Stu Grossman
cb3313c147 * gdbtk.tcl (reg_config_menu create_registers_window
recompute_reg_display_list):  Use array instead of individual vars
	for register display list.
	* (recompute_reg_display_list update_registers):  Fix bug with not
	displaying all registers.
1994-12-13 01:04:38 +00:00
Jim Kingdon
c676d8274d * f-lang.c: Remove duplicate declaration of
builtin_type_f_integer, and only include it in the f_builtin_types
	once.

	* somread.c (som_symfile_read): Just assign to objfile->obj_private,
	not OBJ_UNWIND_INFO.  Assigning to a cast is a GCC-ism which
	the HP compiler doesn't like.
1994-12-12 21:21:10 +00:00
Stu Grossman
746d1df4a9 * gdbtk.c: New tcl commands: gdb_fetch_registers,
gdb_changed_register_list, and gdb_regnames.
	* gdbtk.tcl:  Use monochrome color model for now.
	* (delete_breakpoint_tag create_file_win):  Add breakdot support.
	* (create_file_win create_asm_win update_listing build_framework
	create_source_window create_command_window):  Re-org window
	creation to give all windows consistent look and feel.
	* (update_listing update_asm):  Change pc pointer to '->'.
	* (registers_command reg_config_menu create_registers_window
	populate_reg_window update_registers):  Revamp register window.
	Allow selection of registers to be displayed.  Highlight changed
	registers.
1994-12-12 20:50:08 +00:00
Stu Grossman
d9f1d487a6 * configure.in: Configure tk for hppa/hpux. 1994-12-12 20:12:43 +00:00
Ken Raeburn
384b93b1be * gas/all/gas.exp (comment.s test): Make the "\r" optional, since it depends on
tty modes.

* lib/gas-defs.exp (gas_start): Try using -nottycopy instead of -nottyinit.
1994-12-10 03:50:52 +00:00
Ken Raeburn
a55774a124 * write.c (write_relocs) [RELOC_EXPANSION_POSSIBLE]: Use bfd_install_relocation. 1994-12-10 02:10:44 +00:00
Ken Raeburn
3504635adc * ecoff.c (ecoff_set_gp_prolog_size): If there is no current routine, just
return.
1994-12-10 02:09:12 +00:00
Ken Raeburn
bd8696524a * config/tc-alpha.c (alpha_ip, case 'B', subcase 'c'): Use opcode value from
pattern instead of assuming jsr.
* config/alpha-opcode.h (jmp): Add a "1,Bc" form.
1994-12-10 02:06:26 +00:00
Ken Raeburn
1fd1309172 * gas/arm/gas.exp: The arm6 test should report errors, for now. 1994-12-10 01:28:29 +00:00
Stan Shebs
0dd47264fd * remote.c (remote_wait): Pass string instead of char to strcpy. 1994-12-09 23:54:02 +00:00
Ian Lance Taylor
4e59f36df8 * scripttempl/elf.sc: Move .ctors and .dtors from .text segment to
.data segment.  They must be writable when creating a shared
	library.  From H.J. Lu <hjl@nynexst.com>.
1994-12-09 22:24:03 +00:00
Ian Lance Taylor
a0020ea1a4 * aoutx.h (NAME(aout,link_add_symbols)): Similar change if the
first object is not an a.out object.
1994-12-09 22:18:49 +00:00
Ian Lance Taylor
4c124191db * elfcode.h (elf_bfd_link_add_symbols): If the first object in the
archive is not an ELF object, pass the archive to the add_symbols
	entry point appropriate for the first object.  From Eric Youngdale
	<eric@aib.com>.
1994-12-09 17:57:47 +00:00
Ian Lance Taylor
aeec67f08c * elf32-i386.c (elf_i386_relocate_section): Don't compute
relocation in cases where we won't use it.
	* elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
1994-12-09 17:44:45 +00:00
Jim Kingdon
2eafd7ae71 * gdbserver/low-lynx.c (mywait): Remove debugging printf. 1994-12-09 12:46:42 +00:00
Ian Lance Taylor
277187d793 * nlmconv.c (powerpc_mangle_relocs): Don't switch a reloc to use
the section symbol if the symbol is undefined.
1994-12-09 05:25:00 +00:00
Ken Raeburn
3c6dc75b41 * lib/gas-defs.exp: Use -i in expect_after command. 1994-12-09 01:20:07 +00:00
Ken Raeburn
b8f5275075 * Makefile.in (NM_FOR_TARGET): Use ../binutils/nm.new, not just plain nm. 1994-12-09 01:19:22 +00:00
Ken Raeburn
7e1e1f4d2f binutils-all/objdump.exp: handle "powerpc" cpu 1994-12-08 23:56:01 +00:00
Ken Raeburn
c574599626 added mips-gnu target for roland 1994-12-08 23:36:37 +00:00
Ken Raeburn
a8732972ae alpha, mips, m68k fixes 1994-12-08 23:28:05 +00:00