Commit Graph

6270 Commits

Author SHA1 Message Date
Stu Grossman 5621d991bf Add hpux-thread.c. 1996-10-09 08:46:25 +00:00
Stu Grossman 99283e8779 * defs.h: Remove decls of xmalloc and xrealloc. There is a
conflicting definition in libiberty.h.
1996-10-08 23:01:04 +00:00
Fred Fish a7f56d5aff Just some cleanups noticed while working on PR 10760
* dbxread.c (dbx_symfile_read): Call free_pending_blocks rather
	than poking global variable (which is now static).
	* hpread.c (hpread_build_psymtabs): Ditto.
	* os9kread.c (os9k_symfile_read): Ditto.
	* xcoffread.c (xcoff_initial_scan): Ditto.

	* buildsym.h (free_pending_blocks): Declare here.
	(pending_blocks): Remove declaration of global symbol.
	(free_pendings): Remove declaration of global symbol.
	(make_blockvector): Declare here.
	(record_pending_block): Declare here.

	* dstread.c (make_blockvector): Remove static copy that was old
	clone of version in buildsym.c.
	(process_dst_block): Call record_pending_block rather than doing
	it by hand.
	(read_dst_symtab): Ditto.

	* buildsym.c (make_blockvector): Make global rather than static,
	(record_pending_block): New function, code moved from finish_block.
	(finish_block): Use record_pending_block.
	(free_pending_blocks): New function.
	(really_free_pendings): Call free_pending_blocks.
	(pending_blocks): Make static instead of global.
	(free_pendings): Make static instead of global.
1996-10-08 19:00:38 +00:00
Stu Grossman e7b9847623 Add windows.mh and xm-windows.h 1996-10-08 17:27:11 +00:00
Stu Grossman 8a5c77a19e * config/i386/windows.mh config/i386/xm-windows.h:: New config
files to support building Wingdb (built under Microsoft build
	environment).
1996-10-08 17:12:06 +00:00
Stu Grossman 7d44ab7f63 Add osf-share directory. 1996-10-08 17:07:35 +00:00
Stu Grossman 5d394f7072 * Makefile.in: Add rule for hpux-thread.o (needs special header
files).
	* (SUBDIRS):  Remove mswin.
	* Change procedure for creating init.c.  Speeds things up quite a
	bit.
	* config.in configure configure.in:  Check for select, poll.
	* Check for OSF header files before including hpux-thread.o.
	* Don't configure doc or testsuite when building under MSVC.
	* findvar.c value.h (read_register_pid write_register_pid):  Make
	global.  Needed for hppa-tdep.c.
	* (supply_register):  Don't set pid to inferior_pid when supplying
	registers.
	* hppa-tdep.c (saved_pc_after_call):  frame_saved_pc ->
	FRAME_SAVED_PC.
	* (frame_saved_pc):  Change name to hppa_frame_saved_pc.
	* (hppa_pop_frame):  Don't use a pid of 0 with target_write_pc.
	Use write_pc instead, which uses the correct pid.
	* (target_read_pc target_write_pc):  Use read/write_register_pid
	instead of read/write_register to preserve the pid passed in.
	* inftarg.c (child_can_run):  Add flag child_suppress_run to allow
	hpux-threads.c to override this as a runnable target.
	* config/pa/nm-hppah.h:  Define target_new_objfile and
	target_pid_to_str.
	* config/pa/tm-hppa.h (FRAME_SAVED_PC):  Use hppa_frame_saved_pc
	instead of frame_saved_pc.
	* config/m68k/tm-m68k.h:  Define TARGET_M68K for Wingdb.
	* config/m68k/tm-monitor.h:  Use FRAME_CHAIN_VALID_ALTERNATE, since
	we can't easily determine the start file bounds with ELF.
	* config/mips/tm-mips.h:  Define TARGET_MIPS for Wingdb.
	* hpux-thread.c:  New file for HPUX/OSF thread support.
	* osf-share/{README AT386/cma_thread_io.h HP800/cma_thread_io.h
	RIOS/cma_thread_io.h cma_attr.h cma_deb_core.h cma_debug_client.h
	cma_errors.h cma_handle.h cma_init.h cma_list.h cma_mutex.h
	cma_sched.h cma_semaphore_defs.h cma_sequence.h cma_stack.h
	cma_stack_int.h cma_tcb_defs.h cma_util.h}:  New files for OSF
	thread support.
1996-10-08 17:06:17 +00:00
Fred Fish 7336948874 * buildsym.c (finish_block): Change innerblock_anon_complaint to
print the addresses as part of the complaint.  Add a complaint for
	cases where the block end address is smaller than the block start
	address, in case any such conditions slip through our fixup mechanism.
	* symmisc.c (dump_symtab): Only print blockvector for primary
 	symtabs, to avoid massive duplication of output due to secondary
 	symtabs that point to same blockvector.  Also do some minor
	formatting tweaks.
1996-10-07 17:58:56 +00:00
Per Bothner 7f8da359a8 Replace header_files global by per-objfile field.
* gdb-stabs.h (struct dbx_symfile_info):  Add fields header_files,
	n_header_files, n_allocated_header_files.
	* stabsread.h (header_files, n_header_files, n_allocated_header_files):
	Replace externs by macros HEADER_FILES, N_HEADER_FILES, and
	N_ALLOCATED_HEADER_FILES.
	* dbxread.c (dbx_symfile_finish):  Free HEADER_FILES.
	(free_header_files, init_header-files):  Don't free/init headerfiles.
	(various functions):  Use macros instead of header_files globals.
	* stabsread.c (various functions):  Likewise.
1996-10-07 17:45:29 +00:00
Jason Merrill e61a754e39 Sun Oct 6 22:43:06 1996 Jason Merrill <jason@yorick.cygnus.com>
* dwarf2read.c (read_tag_reference_type): New fn.
	(read_type_die): Call it.
	(dwarf_attr): Also look in the DIEs referred to by specification
 	or abstract_origin attributes.
1996-10-07 17:18:24 +00:00
Fred Fish 5bb23a95f4 * inferior.h (IN_SIGTRAMP): Pass pc to SIGTRAMP_START and
SIGTRAMP_END.
	* config/i386/tm-i386os9k.h (SIGTRAMP_START, SIGTRAMP_END):
	Define with dummy pc arg.
	* config/m68k/tm-nbsd.h: Ditto.
	* doc/gdbint.texinfo: Document that SIGTRAMP_START and
	SIGTRAMP_END are macros that take an single argument.
1996-10-03 17:05:00 +00:00
Stan Shebs 407e05d604 Fix a stutter
Fix a stutter
1996-10-01 05:15:10 +00:00
Fred Fish f646eef47b * gdb.base/interrupt.exp: Add i*86-*-linux* setup_xfail for
"p func1 ()" and note that rests of tests are skipped.
	* gdb.base/corefile.exp: Add i*86-*-linux* and m68*-*-hpux*
 	setup_xfails for "print func2::coremaker_local".
	Add i*86-*-linux* setup_xfail for "backtrace in corefile.exp".
	* gdb.base/mips_pro.exp: Restart gdb in this test so it isn't
	affected by the previous run test.
	* gdb.chill/misc.exp: Add m68*-*-hpux* setup_xfails for
	"print array () ubyte (foo)" and "print/x array () byte (\$i)"
	* gdb.chill/pr-8742.exp: Add m68*-*-hpux* setup_xfails for
	"pass int powerset tuple" and "pass modeless int powerset tuple".
	* gdb.chill/tests2.exp: Add m68*-*-hpux* setup xfails for
	"real write 4" and "real write 8".
	* gdb.shill/tuples.exp: Add i*86-*-linux* and m68*-*-hpux*
 	setup_xfails for "print vs1 after tuple assign 2",
	"print \$i after tuple assign 2", and
	"print vs2 after tuple assign 2".
	* lib/gdb.exp (gdb_test): When a gdb aborts, print a more
	meaningful error message and return -1 so the caller can
	suppress further tests and avoid a cascade of errors.
1996-10-01 03:29:45 +00:00
Fred Fish b51843d888 * defs.h: Remove define of PRIVATE_XMALLOC. 1996-10-01 03:04:13 +00:00
Stu Grossman 1a282a7d41 * config/v850/tm-v850.h: Use distinct register for PC, not EIPC. 1996-09-30 22:42:23 +00:00
Jeff Law e20c36baa7 * top.c (execute_control_command): Free values from while_control
and if_control conditions after evaluation to avoid storage leaks.
        From Peter Schauer.
Fixes 10442.
1996-09-30 17:16:35 +00:00
Fred Fish 4d99d4eaaf Make sanitize-v850 lines into comments and rebuild configure 1996-09-28 15:22:09 +00:00
Fred Fish 0d4c1152af Remade configure, which appears to have gotten out of sync
with the current files it is built from.
1996-09-28 15:14:27 +00:00
Stu Grossman 8d622d4c7c Sanitize for v850. 1996-09-28 01:23:45 +00:00
Stu Grossman 2652deb7e0 Sanitize v850 shit. 1996-09-28 01:16:06 +00:00
Stu Grossman 1fa83dcd66 Add configure. 1996-09-28 01:11:34 +00:00
Stu Grossman 0ce9347cea v850 shit 1996-09-28 01:08:10 +00:00
Stu Grossman f6c6791e0a Sanitize out v850 stuff. 1996-09-28 01:00:59 +00:00
Stu Grossman e281063162 * configure.in: Recognize v850 target.
* v850-tdep.c:  New file, NEC V850 target support.
	* config/v850/{v850.mt tm-v850.h}:  New files for NEC V850 support.
1996-09-28 00:59:13 +00:00
Stu Grossman 8b19233bfe v850 stuff 1996-09-28 00:53:37 +00:00
Peter Schauer be23e5a495 * infrun.c (wait_for_inferior): Update current_line and
current_symtab when stepping continues in the middle of a new line.
1996-09-27 21:51:32 +00:00
Fred Fish 50140ab2a7 * top.c (print_gdb_version): Rewrote to comply with new GNU coding
standards for the --version option.
	(print_gnu_advertisement): Remove, now part of print_gdb_version.
	(show_version): Remove call to print_gnu_advertisement.
	* top.h (print_gnu_advertisement): Remove prototype.
	* main.c (print_gdb_help): Move help to static function and
	add prototype.
	(main): Call print_gdb_help rather than inlining it.
	(main): Remove call to print_gnu_advertisement.
	* gdbtk.tcl (create_copyright_window): Increase timeout from
	15 seconds to 30 seconds.
1996-09-27 17:53:06 +00:00
Fred Fish 567417775d * gdb.base/a1-selftest.exp: Tweak tests to account for new
format for printing version.
	* gdb.base/default.exp: Ditto.
	* gdb.base/interrupt.exp: Fix problem with cascade of
	errors if child process dies while calling a function.
1996-09-27 17:50:47 +00:00
Michael Meissner fb0097a0cc fix typo 1996-09-27 17:39:01 +00:00
Michael Meissner d266afa994 Set the sizes of the basic types that do not match the defaults 1996-09-27 17:35:59 +00:00
Mark Alexander 54225fd023 * configure.in, config/i386/tm-linux.h: Fix configure
problem on older Linux systems that prevented core files
	from being recognized.
1996-09-27 06:13:24 +00:00
Stan Shebs 9ef70b290f always keep dbug-rom.c 1996-09-26 01:40:40 +00:00
Stan Shebs 4db5493944 * dbug-rom.c: New file, support for Motorola's dBUG monitor.
* config/m68k/monitor.mt (TDEPFILES): Add it.
	* NEWS: Mention it.
1996-09-26 01:38:52 +00:00
Martin Hunt 8626a9d58a Mon Sep 23 16:13:50 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
* tm-d10v.h (SAVED_PC_AFTER_CALL): Fixed.
	Now single-steps correctly.
1996-09-23 23:20:05 +00:00
Martin Hunt b70b03b0e8 Mon Sep 23 16:13:50 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
* config/d10v/tm-d10v.h (SAVED_PC_AFTER_CALL): Fixed.
	Now single-steps correctly.
	* d10v-tdep.c (d10v_pop_frame): Fixed.
1996-09-23 23:18:50 +00:00
Stan Shebs 12ffa10c1d * config/sh/tm-sh.h (REGISTER_NAMES): Move fp registers to
be consistent with GCC.
	(FPUL_REGNUM, etc): Renumber to match list changes.
	(ADDR_BITS_REMOVE): Delete.
	* sh-tdep.c (sh_reg_names, sh3_reg_names, sh3e_reg_names):
	Rearrange to match REGISTER_NAMES.
	* sh3-rom.c (sh3_regnames, sh3e_regnames): Ditto.
PR 9457
1996-09-20 23:20:58 +00:00
Martin Hunt 81dc176f58 Thu Sep 19 16:19:01 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
* d10v-tdep.c:  Stack chain should work now.
1996-09-19 23:21:56 +00:00
Martin Hunt 8ebc98911a Tue Sep 17 18:46:57 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
* tm-d10v.h: Snapshot.
1996-09-18 01:50:06 +00:00
Martin Hunt e05bda9f12 Tue Sep 17 18:46:57 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
* d10v-tdep.c, config/d10v/tm-d10v.h: Snapshot.
1996-09-18 01:49:50 +00:00
Ian Lance Taylor 88907d73ef * configure.in: Add cases for MIPS 5000 like MIPS 4300.
* configure: Rebuild.
1996-09-17 16:23:23 +00:00
Dawn Perchik 5b59224e91 * ser-e7kpc.c: Added wingdb support for target e7000pc. 1996-09-17 10:16:30 +00:00
Jackie Smith Cashion 1db0c2f75c Tue Sep 17 10:56:52 1996 James G. Smith <jsmith@cygnus.co.uk>
* remote-mips.c (pmon_wait): CAIRO PMON does not require forced
 	re-entry back into debug mode.
1996-09-17 10:03:02 +00:00
Jackie Smith Cashion aeb8f981df Mon Sep 16 14:32:58 1996 James G. Smith <jsmith@cygnus.co.uk>
* remote-mips.c (mips_load): Ensure that the PC is explicitly
 	loaded after a load to a CAIRO PMON system.
1996-09-16 13:37:02 +00:00
Fred Fish c03e48e87f * Makefile.in (just-check): Add path to sibling expect dir
to environment variable specified by RPATH_ENVVAR.
PR 10489 (forgot one path)
1996-09-14 01:40:32 +00:00
Fred Fish 1d5eb13704 * Makefile.in (INTERNAL_LDFLAGS): Add @HLDFLAGS@ to list.
(HLDENV): Set to @HLDENV@.
	(gdb): Prefix link command line with $(HLDENV).
	* configure.in: Add support to test for --enable-shared and
	generate appropriate values for HLDFLAGS and HLDENV.
	* configure: Regenerated with autoconf.
PR 10489
1996-09-14 00:09:24 +00:00
Fred Fish 20ece5977c * Makefile.in (RPATH_ENVVAR): New var, set to @RPATH_ENVVAR@.
(just-check): Add shared library paths for libstdc++, tk,
	tcl, bfd, and opcodes to the environment variable specified
	in RPATH_ENVVAR.
	* configure.in: Add support to recognize --enable-shared flag
	and generate correct value for RPATH_ENVVAR.
	* configure: Regenerated with autoconf.
1996-09-14 00:04:09 +00:00
Fred Fish 0be55272b4 * alpha-nat.c (fetch_core_registers): Match Sep 4 gdbcore.h prototype
change for core_read_registers in struct core_fns.
	* core-regset.c (fetch_core_registers): Ditto & add prototype.
	* core-sol2.c (fetch_core_registers): Ditto & add prototype.
	* i386aix-nat.c (fetch_core_registers): Ditto & add prototype.
	* i386b-nat.c (fetch_core_registers): Ditto.
	* i386mach-nat.c (fetch_core_registers): Ditto & add prototype.
	* irix4-nat.c (fetch_core_registers): Ditto.
	* irix5-nat.c (fetch_core_registers): Ditto.
	* lynx-nat.c (fetch_core_registers): Ditto & add prototype.
	* m68knbsd-nat.c (fetch_core_registers): Ditto.
	* mips-nat.c (fetch_core_registers): Ditto & add prototype.
	* rs6000-nat.c (fetch_core_registers): Ditto.
	* sparc-nat.c (fetch_core_registers): Ditto.
	* sun3-nat.c (fetch_core_registers): Ditto & add prototype.
	* ultra3-nat.c (fetch_core_registers): Ditto & add prototype.

	* alpha-nat.c (register_addr): Match Sep 4 gdbcore.h prototype change.
	* delta68-nat.c (register_addr): Ditto.
	* gdbserver/low-linux.c (register_addr): Ditto.
	* gdbserver/low-hppabsd.c (register_addr): Ditto.
	* i386m3-nat.c (register_addr): Ditto.
	* mips-nat.c (register_addr): Ditto.
	* ultra3-nat.c (register_addr): Ditto.
1996-09-09 03:14:35 +00:00
Fred Fish 948a9d9233 * alpha-nat.c (fetch_core_registers): Match Sep 4 gdbcore.h prototype
change for core_read_registers in struct core_fns.
	* core-regset.c (fetch_core_registers): Ditto & add prototype.
	* core-sol2.c (fetch_core_registers): Ditto & add prototype.
	* i386aix-nat.c (fetch_core_registers): Ditto & add prototype.
	* i386b-nat.c (fetch_core_registers): Ditto.
	* i386mach-nat.c (fetch_core_registers): Ditto & add prototype.
	* irix4-nat.c (fetch_core_registers): Ditto.
	* irix5-nat.c (fetch_core_registers): Ditto.
	* lynx-nat.c (fetch_core_registers): Ditto & add prototype.
	* m68knbsd-nat.c (fetch_core_registers): Ditto.
	* mips-nat.c (fetch_core_registers): Ditto & add prototype.
	* rs6000-nat.c (fetch_core_registers): Ditto.
	* sparc-nat.c (fetch_core_registers): Ditto.
	* sun3-nat.c (fetch_core_registers): Ditto & add prototype.
	* ultra3-nat.c (fetch_core_registers): Ditto & add prototype.

	* alpha-nat.c (register_addr): Match Sep 4 gdbcore.h prototype change.
	* delta68-nat.c (register_addr): Ditto.
	* gdbserver/low-linux.c (register_addr): Ditto.
	* gdbserver/low-hppabsd.c (register_addr): Ditto.
	* i386m3-nat.c (register_addr): Ditto.
	* mips-nat.c (register_addr): Ditto.
	* ultra3-nat.c (register_addr): Ditto.
1996-09-09 03:01:49 +00:00
Stu Grossman 7bd1f0c5f9 * blockframe.c (inside_main_func): Cleanup slightly. Move
mainsym def into the block it's used in.
	* configure.in configure:  Allow NATDEPFILES to be recognized in
	.mh files regardless of whitespace.

	* cpu32bug-rom.c (cpu32bug_cmds):  Change load_response string to
	keep downloads from hanging.

	* remote-wiggler.c:  Add support for flash upgrades.
	* (wiggler_error):  Fix message format.  Add new error code.
	* (wiggler_write_byets):  Error code is hex.  Report errors with
	proper routine name.
	* (wiggler_read_byets):  Report errors with proper routine name.
	* (get_packet):  Add support for new flash commands.
	* (wiggler_load):  Call clear_symtab_users() to reset things
	properly after download.
	* (flash_xfer_memory bdm_update_flash_command):  New funxtions to
	support flash upgrades for Wiggler.
	* (_initialize_remote_wiggler):  Add `bdm update-flash' command.
1996-09-08 23:33:23 +00:00
Geoffrey Noer 28984bef98 restore the space that need to be present 1996-09-06 22:13:06 +00:00