Commit Graph

6130 Commits

Author SHA1 Message Date
Fred Fish 9422fadb91 * dwarf2read.c (struct filenames): Change internal "struct file"
to "struct fileinfo" to avoid conflict with "struct file" in
	<sys/file.h> on HPUX and Solaris.
1996-07-20 18:33:27 +00:00
Fred Fish efd14e4595 * gdbtk.tcl (delete_expr): Unset corresponding element of
expr_update_list when destroying an expression.
	(create_expr_window): Initialize expr_num, delete_expr_num,
	and expr_update_list here when each new expression window
	is created, rather than once at startup.
PR 9383
1996-07-20 17:21:36 +00:00
Stan Shebs bb5a10fef4 Always keep dwarf2read.c 1996-07-19 21:31:55 +00:00
Stan Shebs fcf0554956 * dwarf2read.c: New file, DWARF 2 reader originally contributed by
Brent Benson, with additions by Gary Funck and Jerry Kreuscher.
	* Makefile.in (COMMON_OBS): Add dwarf2read.o.
	(SFILES): Add dwarf2read.c.
	(dwarf2read.o): Add build rule.
	* symfile.h (dwarf2_has_info, dwarf2_build_psymtabs): Declare
	exported functions.
	* elfread.c (elf_symfile_read): Call them.
	(elf_symtab_read) [HARRIS_TARGET]: Skip some special symbols.
1996-07-19 21:16:13 +00:00
Geoffrey Noer 3f17fed8f1 Thu Jul 18 01:22:01 1996 Geoffrey Noer <noer@cygnus.com>
* symfile.c (symfile_bfd_open):
        * exec.c (exec_file_command): for __GO32__ and __WIN32__ systems,
        free the user from having to type the .exe extension.
1996-07-18 08:29:09 +00:00
Mark Alexander 2531b169ee * mon960-rom.c: Shorten the mon960_inits string to a single
carriage return; this prevents a hang on connecting immediately
	after powerup, when MON960 is attempting autobaud detection.
1996-07-17 14:00:46 +00:00
Mark Alexander 48b497edfe * a29k-tdep.c (get_saved_register): Allow PC to be modified
when innermost frame is selected, but not in outer frames.
PR 9012
1996-07-17 06:52:31 +00:00
Stu Grossman 76420d4630 * command.c (do_setshow_command): Don't segfault when showing
var_string and var_string_noescape vars that are NULL.

From the fsf:
	* solib.c (solib_absolute_prefix, solib_search_path): New variables.
	(_initialize_solib): Add set/show commands for those variables.
	(solib_map_sections): Implement searching using them.
1996-07-17 06:41:25 +00:00
Stu Grossman 647e52ea3a Changes from the FSF for Hurd thread support. 1996-07-17 06:03:26 +00:00
David Edelsohn 2dcfc9c781 * win32-nat.c (handle_load_dll): dos_path_to_unix_path renamed to
cygwin32_conv_to_posix_path.
	(child_create_inferior): unix_path_to_dos_path renamed to
	cygwin32_conv_to_win32_path.  Rewrite code to translate PATH.
1996-07-15 23:57:36 +00:00
Stu Grossman 91550191be * defs.h printcmd.c: Create global disassemble_info structure
tm_print_insn_info.
	* gdbtk.c (gdb_disassemble):  Setup di.mach from
	tm_print_insn_info.mach, and set endian from TARGET_BYTE_ORDER.
	* i386-tdep.c (set_assembly_language_command):  set
	tm_print_insn_info.mach to the appropriate value for 386 or 8086
	disassembly.
	* printcmd.c (print_insn):  Move init of disassembler_info to
	_initialize_printcmd.  Set endian for disassembler here.
	* sparc-tdep.c:  Set tm_print_insn_info.mach as appropriate to
	select sparc/sparclite.
	* config/sparc/{tm-sparc.h tm-sparclite.h}:  Get rid of
	TM_PRINT_INSN.  Set TM_PRINT_INSN_MACH to
	bfd_mach_sparc/bfd_mach_sparc_sparclite.
1996-07-15 23:54:39 +00:00
Fred Fish ade7264c94 Check in an entry that somehow got missed long ago. 1996-07-13 14:55:30 +00:00
Fred Fish d369b2139b * hpread.c (hpread_lookup_type): Use xmmalloc/xmrealloc rather
than xmalloc/xrealloc.
1996-07-13 05:34:40 +00:00
Fred Fish 0a4d0a494e Fix thinko in previous patch 1996-07-13 04:50:40 +00:00
Fred Fish c0e6ae2e2e * objfiles.c (map_to_file): Error return from mmalloc_findbase is
a NULL pointer, not a -1.
Fix oops from a previous checkin.
1996-07-13 01:12:11 +00:00
Stu Grossman 892d7e9f20 * gdb.texinfo: Document `set assembly-language'. 1996-07-12 18:11:24 +00:00
Stu Grossman f33b2c132b * i386-tdep.c (set_assembly_language_command): New routine to
select between i386 and i8086 instruction sets for disassembly.
	New command `set assembly-language {i386 i8086}'.
1996-07-12 17:18:53 +00:00
Mark Alexander f3138a7ca1 * monitor.c (monitor_write_memory, monitor_read_memory_single):
Disable use of "long long" memory read/write commands; can't
	use them because we hold the values to read/write in an int
	variable, and because strtoul fails on values that exceed the
	size of a long.  This fixes breakpoint problems on MON960.
1996-07-12 04:18:13 +00:00
Fred Fish 4853b6d11c * config/m68k/xm-hp300hpux.h (HAVE_MMAP): Remove definition.
* config/pa/xm-hppah.h (HAVE_MMAP): Ditto.
1996-07-12 00:19:15 +00:00
Stan Shebs 42d0ec72f0 * remote.texi: Update list of stubs in the GDB distribution.
Humoring JT :-)
1996-07-11 20:53:41 +00:00
Fred Fish 5410991408 * Makefile.in (MMALLOC_CFLAGS): Eliminate intermediate MMALLOC_DISABLE
and MMALLOC_CHECK macros, and add comment indicating how host dependent
	makefile fragment should modify MMALLOC_CFLAGS to not use mmalloc, or
	to use it but to not do heap corruption checking.
	* gdbserver/Makefile.in: Ditto.
	* utils.c (init_malloc): Replace warning() use with direct call of
	fprintf_unfiltered, since current_target has not yet been set and thus
 	we cannot use warning().  If we try to use mmcheck and it fails,
	suggest that this configuration needs NO_MMCHECK or MMCHECK_FORCE
 	defined.  Other small mmalloc related cleanups.
	* config/sparc/sun4os4.mh (MMALLOC_CFLAGS): Define MMCHECK_FORCE to 1.
	* config/alpha/alpha-osf2.mh (MMALLOC_CFLAGS): Set to -DNO_MMCHECK.

	* config/sparc/xm-sun4os4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
	* config/i386/xm-i386v4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
	* config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
	* config/m68k/xm-hp300hpux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
	* config/m68k/xm-m68kv4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT);
	* config/m68k/xm-sun3os4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
	* config/pa/xm-hppah.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
	* config/sparc/xm-sun4sol2.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
	Remove obsolete defines.

	* config/alpha/alpha-linux.mh (MMALLOC_DISABLE):
	* config/alpha/alpha-osf1.mh (MMALLOC_DISABLE):
	* config/rs6000/rs6000.mh (MMALLOC_DISABLE):
	* config/rs6000/aix4.mh (MMALLOC_DISABLE):
	* config/powerpc/aix4.mh (MMALLOC_DISABLE):
	* config/powerpc/aix.mh (MMALLOC_DISABLE):
	* config/ns32k/ns32km3.mh (MMALLOC_DISABLE):
	* config/mips/mipsm3.mh (MMALLOC_DISABLE):
	* config/mips/decstation.mh (MMALLOC_DISABLE):
	* config/m88k/cxux.mh (MMALLOC_DISABLE):
	* config/i386/i386mk.mh (MMALLOC_DISABLE):
	* config/i386/i386m3.mh (MMALLOC_DISABLE):
	* config/i386/i386gnu.mh (MMALLOC_DISABLE):
	Use MMALLOC_CFLAGS instead.
1996-07-11 07:41:51 +00:00
Jeff Law 4679717d34 * h8300-tdep.c: Remove some outdated comments.
(h8300_skip_prologue): Rework to be more correct for the H8/300H.
        Handle stm.l insns for the H8/S.
        (examine_prologue): Likewise.
HMSE stuff.
1996-07-10 04:44:23 +00:00
Raymond Jou 15aec61ca7 * ser-mac.c (mac_close): Change a typo SetSetBuf to SerSetBuf. 1996-07-10 00:05:46 +00:00
Michael Meissner 30c2702d79 Forgot to commit .Sanitize after last checkin 1996-07-09 17:43:08 +00:00
Mark Alexander ee7b308fe4 * mon960-rom.c (mon960_open): Add floating point detection to
prevent hang on non-FPU processors (PR 9775).
	(mon960_cmds): Swap setmem.cmdw and setmem.cmdl to fix problem
	setting breakpoints and improve loading speed.
1996-07-08 15:53:36 +00:00
Fred Fish ace4b8d75a (laying some groundwork for a fix for PR 8443)
* coffread.c (record_minimal_symbol): Don't presave name string
	on symbol_obstack before passing to prim_record_minimal_symbol.
	It now handles saving the string itself.
	* dbxread.c (read_dbx_dynamic_symtab): Ditto.
	* mipsread.c (read_alphacoff_dynamic_symtab): Ditto.
	* os9kread.c (record_minimal_symbol): Ditto.
	* solib.c (solib_add_common_symbols): Ditto.

	* coffread.c (coff_symtab_read): Don't presave name string on
	symbol_obstack before passing to prim_record_minimal_symbol_and_info.
	It now handles saving the string itself.
	* dbxread.c (record_minimal_symbol): Ditto.
	* elfread.c (record_minimal_symbol_and_info): Ditto.

	* dstread.c (record_minimal_symbol): Remove static function that just
	called prim_record_minimal_symbol with the same args (after change to
 	prim_record_minimal_symbol to do it's own name string saves).
	* nlmread.c (record_minimal_symbol): Ditto.
	* somread.c (record_minimal_symbol): Ditto.

	* hpread.c (hpread_read_enum_type): Save symbol name on symbol obstack.
	(hpread_read_function_type): Ditto.
	(hpread_process_one_debug_symbol): Ditto.
	* mdebugread.c (parse_symbol): Ditto.
	(new_symbol): Ditto.
	* minsyms.c (prim_record_minimal_symbol_and_info): Ditto.

	* coffread.c (process_coff_symbol): Use obsavestring to save
	SYMBOL_NAME, rather than obstack_copy0.
	* dstread.c (create_new_symbol): Ditto
	* symfile.c (obconcat): Ditto.
	* stabsread.c (patch_block_stabs): Ditto.
	* xcoffread.c (SYMNAME_ALLOC): Ditto.

	* symfile.c (obsavestring): Update comments
	* solib.c (solib_add_common_symbols): Remove local var origname.
1996-07-08 09:05:18 +00:00
Mark Alexander b7cc3e7530 Add linux.mh and xm-linux.h. 1996-07-07 04:19:55 +00:00
Jeff Law 239889fdc8 No longer need to sanitize away h8s. 1996-07-05 18:43:31 +00:00
Stu Grossman bc859e6361 * configure: Re-build with autoconf-2.10. 1996-07-04 01:17:14 +00:00
Stu Grossman 89e673a481 * sparcl-tdep.c (_initialize_sparc_tdep) config/sparc/tm-sparc.h,
config/sparc/tm-sparclite.h:  Initialize tm_print_insn from
	TM_PRINT_INSN, which comes from the tm file.

	* Makefile.in (INTERNAL_LDFLAGS):  Add in flags from configure.
	* configure configure.in:  Only make sol-thread.o for native.
	Also, switch to dlopened libthread_db.so.1.
	* sol-thread.c:  Switch to using dlopen to get the thread_db
	library.

	* configure, configure.in:  Change test for libthread_db to only
	work for configs where build/host/target are the same.
1996-07-04 00:49:25 +00:00
Mark Alexander e74acce48c * coffread.c, dbxread.c, elfread.c, mipsread.c, nlmread.c,
os9kread.c: Replace identical sym_offsets functions with
	default_symfile_offsets.
	* somread.c (som_symfile_offsets): Use new SIZEOF_SECTION_OFFSETS
	macro to allocate section_offsets.
	* symfile.c (default_symfile_offsets): New function.
	* symfile.h: Declare default_symfile_offsets.
	* symtab.h: Define SIZEOF_SECTION_OFFSETS macro to
	simplify allocation of section_offsets.
1996-07-03 05:11:40 +00:00
Michael Meissner eafdda3d8d Add stub support for Linux on PowerPC 1996-07-02 19:09:59 +00:00
Stan Shebs 6687c9531d From Raymond Jou <rjou@mexican.cygnus.com>:
* mpw-make.sed: Add lines to whack out autoconf hook
        @CONFIG_LDFLAGS@.
1996-07-01 21:40:02 +00:00
Mark Alexander 97fd185a48 * remote-e7000.c (e7000_stop): New function.
PR 9935
1996-07-01 18:11:07 +00:00
David Edelsohn 146ff25228 (all-cfg.text): @set SPARCLET.
(gdb-texinfo): Add sparclet.
(remote.texi): Restore vxworks clobberage.  Fix sparclet typos.
1996-06-30 05:32:38 +00:00
Dawn Perchik 6905de2875 * remote.texi: Add documentation for target Sparclet. 1996-06-29 09:15:11 +00:00
David Edelsohn 7afcc4e838 Keep sparclet.mt. 1996-06-28 23:47:43 +00:00
Dawn Perchik d6ea322fbc * configure,configure.in: Add target sparclet.
* monitor.h,monitor.c:
    Added monitor flags MO_NO_ECHO_ON_SETMEM (don't expect echo on
    setmem command), MO_RUN_FIRST_TIME (if command to start process
    running on target is different from one to continue execution),
    MO_HEX_PREFIX (if addresses from monitor have a "0x" prefix).
    * monitor.c,parse.c,sparc-tdep.c:
    Don't require strings in the registers array.  This is to allow
    NULLs to be place holders in the tm-*.h file so that only minor
    changes are needed when a new processor is introduced (eg, one
    without floating point).
    * sparc-tdep.c: Conditionally remove dependancies on floating point.
    * sparclet-rom.c,config/sparc/sparclet.mt,config/sparc/tm-sparclet.h:
    New files for target sparclet.
    * symfile.c: Add option for 2nd parameter on load command : a load
    offset added to the vma of each section.
1996-06-28 14:28:20 +00:00
Dawn Perchik 012be3cec3 * configure,configure.in: Add target sparclet.
* monitor.h,monitor.c:
    Added monitor flags MO_NO_ECHO_ON_SETMEM (don't expect echo on
    setmem command), MO_RUN_FIRST_TIME (if command to start process
    running on target is different from one to continue execution),
    MO_HEX_PREFIX (if addresses from monitor have a "0x" prefix).
    * monitor.c,parse.c,sparc-tdep.c:
    Don't require strings in the registers array.  This is to allow
    NULLs to be place holders in the tm-*.h file so that only minor
    changes are needed when a new processor is introduced (eg, one
    without floating point).
    * sparc-tdep.c: Conditionally remove dependancies on floating point.
    * sparclet-rom.c,config/sparc/sparclet.mt,config/sparc/tm-sparclet.h:
    New files for target sparclet.
    * symfile.c: Add option for 2nd parameter on load command : a load
    offset added to the vma of each section.
1996-06-28 14:03:13 +00:00
Dawn Perchik 265c044ac1 * main.c (main): Add option "l" for setting remote_timeout. 1996-06-28 12:42:10 +00:00
Dawn Perchik cb1709aeac * remote-e7000.c,remote.c,target.h,top.c:
Add set option "remote_timeout" for setting remote_timeout.
        Add set option "use_hard_breakpoints" for setting hardware
        .vs. memory breakpoints.
1996-06-28 12:27:08 +00:00
Dawn Perchik 56a4bf5339 * remote-e7000.c (e7000_parse_device): New function.
Add option "tcp_remote" to target command if using
        tcp to connect to a remote host which is then connected
        via serial port to the e7000 (for exampole, a port master).
        (e7000_open): Change to call e7000_parse_device.
1996-06-28 11:39:58 +00:00
Dawn Perchik f7ce02f4b3 * monitor.c (monitor_debug): Fix remotedebug buffering. 1996-06-28 10:53:37 +00:00
Fred Fish 5fc34cfdfb * gdb.base/signals.exp (test_handle_all_print): Temporarily increase
timeout by 60 seconds.
1996-06-28 05:28:59 +00:00
Fred Fish c137ee9799 * config/unix-gdb.exp: Increase default timeout from 30 to 60 sec.
* config/netware.exp (gdb_run_cmd): Restore old timeout before doing
	error return.
1996-06-28 03:35:05 +00:00
Stan Shebs 99afd18871 * config/i386/cygwin32.mh, config/powerpc/cygwin32.mh
(NATDEPFILES): Add a space.
1996-06-28 01:40:32 +00:00
Fred Fish 302fcffb7e * lib/gdb.exp (default_gdb_start): When reporting a timeout during
gdb initialization, also report how long dejagnu waited.  Restore
	old timeout before doing error return.  Temporarily increase timeout
 	by 3 minutes to allow for slow startups over heavy NFS use.
1996-06-28 00:30:45 +00:00
Wilfried Moser 81508b2759 * gdbtypes.c (create_array_type): If TYPE_LENGTH (result_type)
is zero, set TYPE_FLAG_TARGET_STUB to force reevaluation of the type.

        * ch-exp.c (calculate_array_length): Function removed.
1996-06-26 13:13:45 +00:00
Fred Fish a26fa899a0 * lib/gdb.exp: Report timeout value for verbosity level 2.
* config/gdbserver.exp: Ditto.
	* config/hppro.exp: Ditto.
	* config/mips-gdb.exp: Ditto.
	* config/monitor.exp: Ditto.
	* config/netware.exp: Ditto.
	* config/sim-gdb.exp: Ditto.
	* config/slite-gdb.exp: Ditto.
	* config/udi-gdb.exp: Ditto.
	* config/unix-gdb.exp: Ditto.
	* config/vx-gdb.exp: Ditto.
	* gdb.base/a1-selftest.exp: Ditto.
	* gdb.base/a2-run.exp: Ditto.
	* gdb.base/break.exp: Ditto.
	* gdb.base/corefile.exp: Ditto.
	* gdb.base/list.exp: Ditto.
	* gdb.base/recurse.exp: Ditto.
	* gdb.base/scope.exp: Ditto.
	* gdb.base/signals.exp: Ditto.
1996-06-26 04:38:38 +00:00
Martin Hunt ebea03669c * remote-e7000.c (e7000_read_inferior_memory_large): New function.
(e7000_xfer_inferior_memory): Call it.
PR 9754
1996-06-26 00:51:14 +00:00