Commit graph

7227 commits

Author SHA1 Message Date
Jeff Law
66a9a2633c * mips-tdep.c (mips32_decode_reg_save): Handle 128bit wide
GPR loads/stores generated on the r5900.
        (mips_find_saved_regs, mips32_skip_prologue): Likewise.
        * mips/tm-r5900.h (R5900_128BIT_GPR_HACK): Define.
        * mips/tm-txvu.h (R5900_128BIT_GPR_HACK): Likewise.
1998-04-24 17:39:54 +00:00
Keith Seitz
e4a3374fe0 * Makefile.in (install-only): Install help files. 1998-04-24 02:06:00 +00:00
Jason Molenda
29f35f37b3 Thu Apr 23 16:37:20 1998 Jason Molenda (crash@bugshack.cygnus.com)
* README:  Minor changes for 4.17 release.
1998-04-23 23:40:11 +00:00
Per Bothner
ffa157d8b1 * symfile.c (deduce_language_from_filename): .class implies java. 1998-04-23 22:47:00 +00:00
Jason Molenda
519aebdcc6 Thu Apr 23 12:56:19 1998 Jason Molenda (crash@bugshack.cygnus.com)
* gdb.c++/virtfunc.cc: Declare extern "C" printf to return int,
        not void.



fche says he vaguely remembers a problem with returning int instead of
void, but ISO C sez printf returns int, so let's see what happens.
1998-04-23 19:57:29 +00:00
Jason Molenda
7dc185bc04 oops, regenerated with old version of autoconf. 1998-04-23 19:54:06 +00:00
Jason Molenda
21cbc60c52 Thu Apr 23 12:52:21 1998 Philippe De Muyter <phdm@macqel.be>
* configure.in (strerror): Check if function must be declared.
        * acconfig.h (NEED_DECLARATION_STRERROR): New define slot.
        * gdb_string.h (strerror): Function declaration issued if
        NEED_DECLARATION_STRERROR.
        * configure, config.in : Files regenerated.
1998-04-23 19:53:35 +00:00
Jason Molenda
74d6ac44de Thu Apr 23 12:27:43 1998 Philippe De Muyter <phdm@macqel.be>
* symfile.c (simple_overlay_update_1): Do not prefix array address
        by `&'.
        * bcache.h (BCACHE_DATA_ALIGNMENT): Ditto.
        * tracepoint.c (encode_actions): Ditto.
        * language.c, complaints.c, utils.c (varargs.h): Do not include that
        file here, it is already included indirectly by defs.h.
        * dbxread.c (dbx_symfile_init, process_one_symbol): Cast xmalloc return
        value to the appropriate pointer type.
        * utils.c (floatformat_from_doublest): Ditto.
        * tracepoint.c (read_actions, _initialize_tracepoint): Ditto.
        (add_memrange): Likewise with xrealloc return value.
        * stabsread.c (ref_add): Ditto.
        * coffread.c (coff_symfile_init): Likewise for xmmalloc return value.
        * elfread.c (elf_symfile_read): Ditto.
        * os9kread.c (os9k_symfile_init): Ditto.
1998-04-23 19:31:51 +00:00
Tom Tromey
52dd717d63 * config.in: Rebuilt.
* acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_STPCPY, HAVE_GETTEXT,
	HAVE_LC_MESSAGES): Define.
1998-04-23 06:33:50 +00:00
Christopher Faylor
ecb3e4a19d Wed Apr 22 21:17:35 1998 Christopher Faylor <cgf@cygnus.com>
* gdbtk.c (_initialize_gdbtk): add cygwin32 specific code to
      allow `gdb -nw' to work when specified specified from a windows
      console-mode command line.
1998-04-23 01:26:23 +00:00
Tom Tromey
fcfc3c0c2d * configure: Rebuilt.
* configure.in: Call CY_GNU_GETTEXT.
	* Makefile.in (top_builddir): New macro.
	(INTL): Define to @INTLLIBS@.
	(INTL_DEPS): New macro.
	(CDEPS): Reference INTL_DEPS, not INTL.
1998-04-22 21:56:04 +00:00
Doug Evans
71f08cfc06 * txvu-tdep.c (txvu_print_insn): Fix thinko. 1998-04-22 20:45:08 +00:00
Jason Molenda
75a55dc37a Change "linux" usage to make rms usage + pick up jlimke's configure.in
change from yesterday.
1998-04-22 20:25:43 +00:00
Peter Schauer
b420cea7eb Handle missing shared libraries during the examination of a core
dump gracefully.
	* solib.c (find_solib):  Use catch_errors around call to
	solib_map_sections. Use warning instead of error if reading of
	the shared library name fails.
	(solib_map_sections):  Change return and argument types to make
	it callable from catch_errors.
	(symbol_add_stub):  Avoid GDB core dump if solib->abfd is NULL.
	* irix5-nat.c, osfsolib.c (xfer_link_map_member, solib_map_sections,
	symbol_add_stub):  Ditto.
1998-04-22 20:17:44 +00:00
Michael Meissner
f2a0822c05 Add intl library 1998-04-22 18:36:50 +00:00
Stan Shebs
e3147bf286 Humoring RMS by saying "GNU/Linux" instead of just "Linux" 1998-04-22 01:44:38 +00:00
Stan Shebs
b90b2ac2ee * gdb.texinfo (EDITION, DATE): Update and change to use ordinals
for the edition instead of confusing GDB-version-like numbers.
1998-04-22 01:14:08 +00:00
James Lemke
3e5fbf91b5 Add configure option --with-sim-funit for sim & gdb. 1998-04-21 21:14:09 +00:00
Jason Molenda
84b5277c27 Add a "keep-vr4320" section so that tm-vr4320.h and vr4320.mt are
removed by default.
1998-04-21 19:23:31 +00:00
Jason Molenda
5c17c67d06 Add ns32knbsd-nat.c to things-to-keep. 1998-04-21 17:08:22 +00:00
Jason Molenda
92aadf4623 Add branches.c. 1998-04-21 16:52:56 +00:00
Jason Molenda
93d03334ed Keep cygmon.exp. 1998-04-21 16:52:05 +00:00
Jason Molenda
5cf178d819 add i386sco5.mt, nm-i386sol2.h, tm-i386sco5.h, tm-i386sol2.h 1998-04-21 16:51:20 +00:00
Frank Ch. Eigler
88ff9e0600 * MIPS CPU-specific dissasembly extensions. Now TM_PRINT_INSN_MACH from tm.h
sets a default mach for disassembly, just like sparc port.  c.f. PR 15371.


Tue Apr 21 11:20:54 1998  Frank Ch. Eigler  <fche@cygnus.com>

	* mips-tdep.c (gdb_print_insn_mips): Disassemble MIPS instructions
 	with subtarget-specific `mach', rather than fixed default.
	* config/mips/tm-mips.h (TM_PRINT_INSN_MACH): New macro, default
	disassembly `mach'.
start-sanitize-r5900
	* config/mips/tm-r5900.h (TM_PRINT_INSN_MACH): Override.
end-sanitize-r5900
start-sanitize-sky
	* config/mips/tm-txvu.h (TM_PRINT_INSN_MACH): Override.
end-sanitize-sky
1998-04-21 15:38:13 +00:00
Jason Molenda
fa89ee43a5 Mon Apr 20 15:35:03 1998 Philippe De Muyter <phdm@macqel.be>
* coffread.c (decode_base_type): Treat a long field with size greater
        than TARGET_LONG_BIT as long long.
        * values.c (value_from_longest): Print code value in error message.
1998-04-20 22:36:00 +00:00
Jason Molenda
a38cd80ae7 Mon Apr 20 15:32:21 1998 Mark Kettenis <kettenis@phys.uva.nl>
* gdb/gdb_string.h (strdup): Declare only if not defined as a
        macro.

Mark glibc development versions are defining strdup as a macro and the
prototype hosees it.  Either way, this patch shouldn't cause problems.
1998-04-20 22:33:52 +00:00
Jason Molenda
1e50f1b441 Mon Apr 20 14:18:45 1998 J. Kean Johnston <jkj@sco.com>
* procfs.c: Added replacement macros for LWP stuff.  Fixed support
        for UnixWare / SVR4.2MP targets and any targets which use
        multi-file /proc entries.  Fixed support for hardware watchpoints.
        * solib.c: SCO needs some of the same code as SunOS. Change
        preprocessor conditionals.

        * config/i386/i386sco5.mt: New file.
        * config/i386/tm-i386sco5.h: New file.
        * config/i386/i386sco5.mh (NATDEPFILES): add i386v-nat.o.
        * config/i386/nm-i386v42mp.h
        (TARGET_HAS_HARDWARE_WATCHPOINTS): define.
        Add other macros for hardware assisted watchpoints.
        * config/i386/nm-i386sco5.h: Correct attributions.
        (TARGET_HAS_HARDWARE_WATCHPOINTS): define.
        * config/i386/nm-linux.h (target_remote_watchpoint): Pass
        'type' through to i386_insert_watchpoint.

Mon Apr 20 14:12:30 1998 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)

        * infrun.c (wait_for_inferior): Don't add signalled processes
        as new threads.
        * procfs.c (wait_fd): Note if LWP has exited.
        (procfs_wait): use GETPID to get process ID.


NOTE:  I didn't commit Kean's changes to configure.host/configure.tgt
yet because they are kind of bogus and I'm punting back to him to let
him figure out what he's trying to do.  So configuring for UnixWare
may not work just yet.
1998-04-20 21:25:40 +00:00
Stan Cox
7c0892b3c3 Added sparc86x support. 1998-04-18 22:45:37 +00:00
Jason Molenda
a17aca4705 Thu Apr 16 13:13:24 1998 Jason Molenda (crash@bugshack.cygnus.com)
* rdi-share/etherdrv.c (EthernetWrite): Use strerror to get
        error string if in an ANSI C-ish environment.
1998-04-16 20:14:51 +00:00
John Metzler
ea8122af14 Thu Apr 16 10:52:34 1998 John Metzler <jmetzler@cygnus.com>
* gdb.base/branches.c: Code with lots of loops and
 	subroutines. Used to test gdbs ability to single step through PC
 	changes, especially to test mips-tdep.c:mips_next_pc
1998-04-16 17:56:11 +00:00
Mark Alexander
4a3f4c4ca0 * sparc-tdep.c (SPARC_HAS_FPU): Define.
(sparc_extract_return_value): New function, required to handle
	machines without floating point.
	(sparc_store_return_value): Ditto.
	* config/sparc/tm-sparc.h (EXTRACT_RETURN_VALUE): Call
	sparc_extract_return_value instead of using inline code.
	(sparc_extract_return_value): Declare.
	(STORE_RETURN_VALUE): Call sparc_store_return_value instead
	of using inline code.
	(sparc_store_return_value): Declare.
1998-04-16 02:10:26 +00:00
Martin Hunt
65c0c9787f Wed Apr 15 12:19:42 1998 Martin M. Hunt <hunt@cygnus.com>
* solib.c (enable_break): Only call warning once
	instead of three times.
1998-04-15 19:18:41 +00:00
Stan Shebs
a4a3b11af0 Reflect departures of old gdbtk versions 1998-04-15 19:15:57 +00:00
Stan Shebs
3c59320fa9 End of another (shorter :-) ) era. Now only gdbtcl2 has a gdbtk interface. 1998-04-15 19:14:15 +00:00
Mark Alexander
e50f526e68 * sparc-tdep.c (sparc_extract_struct_value_address): Make it
work correctly on little-endian hosts.
	(sparc_push_arguments): New function.
	(gdb_print_insn_sparc): New function.
	(_initialize_sparc_tdep): Make gdb_print_insn_sparc the default
	disassembler, so that SPARClite-specific instructions will
	be recognized.
	* sparcl-tdep.c (readchar): Print debugging information.
	(debug_serial_write): New function, a replacement for SERIAL_WRITE
	that prints debugging information.
	* config/sparc/tm-sparc.h (PUSH_ARGUMENTS): Define.
	(sparc_push_arguments): Declare.
1998-04-15 00:25:58 +00:00
John Metzler
7431731060 * gdbcfgxref (xref_menu): Call new regex and wild card searches
Now you can type in a specific triple like mips64-vr4320-elf or
	somthing like mips*.h
	(triple_search) wildcardsearch): The new functions
1998-04-14 23:16:48 +00:00
John Metzler
a47fe057fd Tue Apr 14 15:43:49 1998 John Metzler <jmetzler@cygnus.com>
* configure.tgt: Switch over to use tm-4320.h. Since I switched to
 	MIPS EABI the fixes are no longer backward compatible with 4300.
	* tm-vr4320.h: Added
	* vr4320.mt:   Added
1998-04-14 23:09:06 +00:00
Frank Ch. Eigler
937ac38a3b * Changed one line in one C++ test case to hopefully
zap one group of persistent gdb testomat failures.

Mon Apr 13 22:32:51 1998 Frank Ch. Eigler <fche@cygnus.com>

	* gdb.c++/virtfunc.cc: Make extern "C" printf declaration pass
	more rigorous EGCS C++ error checking.
1998-04-14 02:39:44 +00:00
Martin Hunt
d2a3ee23fb Mon Apr 13 16:17:52 1998 Martin M. Hunt <hunt@cygnus.com>
* gdbtk.c (gdb_loadfile): Change fstat() call to stat().
	Needed because you can't convert a FILE* to an fd.
1998-04-13 23:18:21 +00:00
Elena Zannoni
e6e9507d63 Mon Apr 13 16:28:07 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* utils.c: (warning) added call to warning_hook

        * source.c: (find_source_lines) modified to call warning in case
        of source vs. executable time stamp mismatch. Simplified object
        file check. Initialized mtime to 0.

        * defs.h: added warning_hook prototype

        * top.c: added warning_hook prototype.

        * gdbtk.c: (perror_with_name_wrapper) new function to call
        perror_with_name safely.
        (gdb_loadfile) added source vs. executable time stamp check.
        (gdbtk_warning) new function to pass a warning message to the gui.
        (gdbtk_ignorable_warning) new function to pass a warning
        to the gui. Used only for the src. vs. exec check.
        (gdbtk_init) added warning_hook
        added include <sys/stat.h>
1998-04-13 21:54:22 +00:00
Fred Fish
8387d6dfd3 > * gdb.texinfo (hbreak, watch): Fix typo, "date" -> "data". 1998-04-13 21:47:38 +00:00
Keith Seitz
7234efcb53 * gdbtk.c (gdbtk_start_timer): Include on all platforms. Decrease
timer interval a little.
        (gdbtk_stop_timer): Include on all platforms.
        (gdbtk_wait): No more signals! Use a timer on all platforms to keep the
        GUI alive.
        (gdbtk_init): Remove FIOASYNC and all x_fd references. Now using timers
        on all platforms.
1998-04-13 20:05:15 +00:00
Keith Seitz
29d867f881 * config/sparc/tm-sun4os4.h (IS_STATIC_TRANSFORM_NAME): Add missing
definition.
1998-04-13 16:55:05 +00:00
Jason Molenda
f0fce3b80b Fri Apr 10 22:36:28 1998 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
Update support for x86 Solaris 2.
        * config/i386/tm-i386sol2.h, nm-i386sol2.h:  New configuration
        files for x86 Solaris 2.
        * config/i386/i386sol2.mt, i386sol2.mh:  Use them.
        * config/sparc/tm-sun4sol2.h (PROCFS_GET_CARRY):  New macro, extract
        carry flag from a given regset.
        (IS_STATIC_TRANSFORM_NAME):  New macro, check if a symbol name
        is a SunPro transformed name.
        * i386-tdep.c (sunpro_static_transform_name):  New function to
        extract the source name from a SunPro transformed name.
        * inferior.h (procfs_first_available, procfs_get_pid_fd):
        Add prototypes.
        * infrun.c (wait_for_inferior):  Handle breakpoint hit in
        signal handler without intervening stop in sigtramp.
        * procfs.c (procfs_lwp_creation_handler):  Use PROCFS_GET_CARRY
        instead of direct access to the status register.
        (procfs_get_pid_fd):  New function, returns procfs fd for a given pid.
        * sol-thread.c (ps_lgetLDT):  New function, returns LDT for a given
        lwpid.
        (sol_find_new_threads):  Handle failed libthread_db initialization
        gracefully.
        * stabsread.c (define_symbol):  Use IS_STATIC_TRANSFORM_NAME
        to check for a SunPro transformed symbol name.
1998-04-11 05:43:33 +00:00
Jason Molenda
baee3bc6e9 Fri Apr 10 22:38:12 1998 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
* gdb.base/help.exp:  Clean up `help set args' and `help show args'
        tests.
        * gdb.base/interrupt.exp:  Add "i*86-*-solaris2*" xfail for calling
        function when asleep.
        * gdb.base/signals.exp:  Add "i*86-*-solaris2*" xfails. Add comment
        for i*86 Linux and SVR4 signal handling problems.
        Remove linux xfail for `next to handler in signals_tests_1', fixed
        by recent infrun.c change.
        Limit backtrace to 10 frames to avoid timeout problems with infinite
        stack backtraces.
        Adjust expect pattern in `handle all print' test to match Apr 28 1997
        target.[ch] change.
1998-04-11 05:42:30 +00:00
Jason Molenda
6da4c15f22 Fri Apr 10 15:48:10 1998 Jason Molenda (crash@bugshack.cygnus.com)
* gdbtk.c (gdb_listfiles): Allocate space for 'files' dynamically.


Harumph, my change got lost in the foundry->devo merge.
1998-04-10 22:49:13 +00:00
John Metzler
c66e3d6479 * utils.c (fmthex): A formatting function for hexdumps 1998-04-10 17:59:12 +00:00
John Metzler
6aeec893aa Fri Apr 10 10:35:35 1998 John Metzler <jmetzler@cygnus.com>
*  mips-tdep.c (unpack_mips16): Fixed instruction decoding, lots of
 	bit pattern interpretations. mips_fetch_instruction does not work
 	for 16 bit instructions. Some confusion remains about sign
 	extension in backward branches.
	(mips32_relative_offset): Sign extension
	(mips32_next_pc): Major debugging, bit pattern interpretation
	(print_unpack): debugging printf
	(fetch_mips_16): new funtion, key on PC low bit, not symbol table
	(mips16_next_16): Initial major debugging of this function. Lots
 	of bit pattern mistakes.
	(mips_next_pc): key on low bit of PC, not symbol table.
	* symfile.c(generic_load) : Added a download verification which
 	reads back the loade code. Download chunk size is now a defined
 	macro. Fixed a bug in which downloading slips into loading one
 	byte at a time. Lower level functions in monitor.c can load long
 	sequences of bytes and make use of these fixups.  Referencing
 	bfd-start_address directly was incorrectly getting zero for start.
1998-04-10 17:42:12 +00:00
Ian Lance Taylor
cf93a3aa81 * mips-tdep.c (do_fp_register_row): Use alloca rather than arrays
with dynamic size.
1998-04-09 23:21:14 +00:00
Martin Hunt
1a509d60c2 Thu Apr 9 14:20:59 1998 Martin M. Hunt <hunt@cygnus.com>
* gdbtk.c (gdbtk_init): Remove redundant variable "IDE".
1998-04-09 22:03:19 +00:00