Commit Graph

8712 Commits

Author SHA1 Message Date
Nicholas Duffek 546022221a * gdb.c++/misc.cc (class ClassParam, class_param): Define.
(use_methods): New function.
	(main): Call use_methods().
	* gdb.c++/classes.exp (test_method_param_class): New procedure.
	(do_tests): Call test_method_param_class.
2000-07-09 05:16:11 +00:00
Nicholas Duffek 6b1ba9a002 * gdbtypes.c (is_ancestor): Infer type equivalence from name
equivalence.
	(rank_one_type): Use strcmp instead of == to compare type names.
	Don't swap parm with arg when checking TYPE_CODE_REF types.
	* valops.c (find_overload_match): Fix indentation.  Compare
	parameter rankings to 0..9, 10..99, and 100+ instead of 0, 10,
	and 100.
2000-07-09 05:15:50 +00:00
Nicholas Duffek 2bec05724f * gdb.c++/classes.exp (test_nonexistant_members): Fix name
spelling.
	(test_enums): New procedure.  Move enum tests from end of script
	to here.  Set breakpoint on function name instead of line number.
	* gdb.c++/misc.cc (ClassWithEnum): Move past Foo definitions.
	(enums2): New marker function.
	(enums1): New function.
	(main): Call enums1().  Move enum tests to enums1().
2000-07-09 05:10:13 +00:00
Nicholas Duffek bd79f7577d * stabs.texinfo: Fix spelling errors.
(String Field): FILE-NUMBER starts from 0, not 1.
2000-07-07 23:44:16 +00:00
Nicholas Duffek 470d566602 * xcoffread.c (read_symbol_nvalue): Return CORE_ADDR.
* rs6000-tdep.c (rs6000_pop_frame): Make addr CORE_ADDR type.
2000-07-07 22:00:09 +00:00
Andrew Cagney f7b9e9fc07 More mult-arch conversions: IEEE_FLOAT, SKIP_PROLOGUE,
SAVED_PC_AFTER_CALL, DECR_PC_AFTER_BREAK, BREAKPOINT_FROM_PC,
INNER_THAN.
2000-07-07 09:19:03 +00:00
Mark Kettenis f19ebbbc84 * config/i386/tm-linux.h: Add longjmp support.
(JB_ELEMENT_SIZE, JB_PC): New defines.
(GET_LONGJMP_TARGET): Define.
(get_longjmp_target): Add prototype.
2000-07-07 00:30:35 +00:00
Mark Kettenis a48bb0b384 * breakpoint.c (bpstat_what): Keep returning
BPSTAT_WHAT_SET_LONGJMP_RESUME when hitting multiple longjmp()
breakpoints instead of signalling an error by returning
BPSTAT_WHAT_STOP_NOISY.
2000-07-07 00:20:29 +00:00
Michael Snyder 65c1106637 2000-07-06 Michael Snyder <msnyder@cleaver.cygnus.com>
* mips-tdep.c: Replace '16' with bfd_mach_mips16 where appropriate.
2000-07-06 23:17:32 +00:00
Christopher Faylor 00373e55b6 * infcmd.c (attach_command): Move "stop_soon_quietly" setting inside
ATTACH_NO_WAIT conditional since we are not about to stop soon if we're not
calling wait_for_inferior.
2000-07-06 20:58:33 +00:00
Eli Zaretskii 5f208f6d22 Remove \centerline from the blurb. Patch from Brian Youmans. 2000-07-05 13:11:41 +00:00
Andrew Cagney 90f59acafb Keep NATDEPFILES on a single line. 2000-07-05 11:11:58 +00:00
Andrew Cagney 95cbc9830c Set SER_HARDWIRET to ser-go32.c when *go32* or *djgpp*. 2000-07-05 10:55:17 +00:00
Andrew Cagney e2273c6d9d Replace command_loop_marker() with null_cleanup(). 2000-07-05 10:36:41 +00:00
Andrew Cagney 409a3f64ac Check for <sys/poll.h>. 2000-07-05 10:25:43 +00:00
Andrew Cagney a5cb8284bf Pass infodir down to sub-makes. 2000-07-05 08:12:04 +00:00
Andrew Cagney 5d35f0ac05 Update TODO. 2000-07-05 08:05:53 +00:00
Mark Kettenis 37d4dc7404 * TODO: Update. 2000-07-04 22:55:42 +00:00
Andrew Cagney 78492fde3d Rewrite gdb.asm so that it doesn't assume a C comiler (or any C
support).
2000-07-04 02:47:08 +00:00
Andrew Cagney 49a2cef8b7 Replace jumbo pattern match with gdb_expect_list(). 2000-07-04 02:38:05 +00:00
Elena Zannoni 2bfa91eece 2000-07-03 Christopher Faylor <cgf@cygnus.com>
Committed by Elena Zannoni <ezannoni@cygnus.com>
	* sh-tdep.c (sh_skip_prologue): Change prologue matching for modern
	compilers.
	(sh_frame_find_saved_regs): Ditto.
	(sh_find_callers_reg): Stop if pc is zero.
2000-07-03 18:59:36 +00:00
Andrew Cagney 9e294fb82f Revert previous ser-unix change. Locks up serial device. 2000-07-01 08:02:53 +00:00
Andrew Cagney 45f9696ab6 Restore setting of SER_HARDWIRE. Lost during rs6000 merge. 2000-07-01 05:49:13 +00:00
Kevin Buettner 1b2a2f903f Params elimination. 2000-06-27 06:45:43 +00:00
Eli Zaretskii cc542d3bd4 * Makefile.in (install-info): Support installation from outside of
the source directory.  Reported by Mark Harig
        <markh@frazier.landmark.com>.
2000-06-25 08:12:30 +00:00
Andrew Cagney e8b1d41126 Tipo. 2000-06-23 14:00:13 +00:00
Andrew Cagney 566f0f7aa5 For EABI, start allocting space on the stack when the registers are
full.  Not when the number of args == 8.
2000-06-23 11:06:31 +00:00
Andrew Cagney 97c3646ff2 Add support for auto_boolean (true, false or auto). 2000-06-23 08:12:27 +00:00
Andrew Cagney f09ded2422 When FP registers are full, store FP arguments on stack and not in
integer registers.
2000-06-23 07:44:00 +00:00
Kevin Buettner f777891334 PARAMS elimination. 2000-06-22 07:16:20 +00:00
Pierre Muller 6b2463a3ee * typo problems in last commit fixed 2000-06-21 10:21:14 +00:00
Pierre Muller c6fd39cde9 2000-06-21 Pierre Muller <muller@ics.u-strasbg.fr>
* symfile.c (init_filename_language_table) add ".pas", ".p" and ".pp"
   as pascal source file extensions.
2000-06-21 09:59:51 +00:00
J.T. Conklin f3b288016c * gdb.texinfo: Fix typo, $bpnum is set to last breakpoint number. 2000-06-20 22:13:17 +00:00
Kevin Buettner f6dd1e7029 PARAMS elimination. 2000-06-20 07:13:39 +00:00
J.T. Conklin 8c9cdfe810 * remote-nindy.c (nindy_fetch_word, nindy_store_word): Removed
(nindy_xfer_inferior_memory): Use dcache_xfer_memory() instead of
breaking transfer into chunks and using nindy_fetch_word() and
nindy_store_word().

* remote-bug.c (bug_xfer_memory): Use dcache_xfer_memory() instead
of breaking transfer into chunks and using gr_fetch_word() and
gr_store_word().

* remote.c (remote_fetch_word, remote_store_word): Removed.

* remote-utils.h (gr_fetch_word, gr_store_word): Removed.
* remote-utils.c (gr_fetch_word, gr_store_word): Removed.

* dcache.h (dcache_fetch, dcache_poke, dcache_poke_block): Removed.
* dcache.c (dcache_fetch, dcache_poke): Removed.
2000-06-19 18:59:07 +00:00
Elena Zannoni 3e6c8688d2 2000-06-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* gdb.base/maint.exp: Add 'maint print architecture' item to output
        of 'help maint print' command.
2000-06-19 14:56:21 +00:00
Pierre Muller 750ba3824f * defs.h: define language_pascal in language enumeration.
* language.h: define _LANG_pascal macro.
    * language.c: add language_pascal support in all language dependant functions.
2000-06-19 10:14:22 +00:00
Andrew Cagney 9ff5cbe93a Re-do multi-line tests using gdb_expect_list(). 2000-06-18 03:45:35 +00:00
Kevin Buettner 692248f335 PARAMS elimination. 2000-06-18 00:23:24 +00:00
Andrew Cagney 9ace04976e Add ``set debug mips'' command. Add much debugging. 2000-06-17 15:18:21 +00:00
Andrew Cagney 9a0149c65a For MIPS_EABI, squeeze simple floating point structs into an FP register. 2000-06-17 14:33:56 +00:00
Andrew Cagney 59d521c179 Remove arbitrary printf output limit placed on pmon targets 2000-06-17 14:00:31 +00:00
Andrew Cagney 4a7f7ba82c EABI64 was selecting EABI32 2000-06-17 05:42:50 +00:00
Nicholas Duffek 7a78ae4e6b * rs6000-tdep.c: Changes throughout for multi-arch 64-bit
support.  Incorporate most of tm-rs6000.h.
	(find_toc_address_hook): Rename to rs6000_find_toc_address_hook.
	(rs6000_set_host_arch_hook): Declare.
	(read_memory_addr): Define.
	(pop_frame): Rename to rs6000_pop_frame.
	(rs6000_pop_frame, rs6000_fix_call_dummy, rs6000_push_arguments,
	rs6000_frame_saved_pc, rs6000_frame_chain): Remove non-generic
	dummy frame handling.
	(branch_dest, rs6000_pop_frame, rs6000_skip_trampoline_code,
	rs6000_frame_saved_pc, frame_get_saved_regs,
	frame_initial_stack_address, rs6000_frame_chain,
	rs6000_convert_from_func_ptr_addr): Call read_memory_addr instead
	of read_memory_integer.
	(branch_dest, rs6000_pop_frame, rs6000_push_arguments,
	rs6000_skip_trampoline_code, rs6000_frame_saved_pc,
	frame_get_saved_regs, frame_initial_stack_address,
	rs6000_frame_chain): Replace 4 with TDEP->wordsize.
	(skip_prologue): Recognize some 64-bit stack adjustments.
	(push_dummy_frame, pop_dummy_frame, set_processor,
	show_processor): Delete.
	(frame_get_saved_regs): Manipulate saved register addresses using
	CORE_ADDR instead of int.
	(rs6000_create_inferior): New function.
	(register_names_*[]): Change to struct reg registers_*[].
	(variants[]): Assimilate into multi-arch approach.
	(register_names_*[], variants[]): Refer to pre-PowerPC
	architectures as POWER instead of RS6000.
	* rs6000-nat.c: Ubiquitous changes for 64-bit support.
	(vmap_secs, xcoff_relocate_symtab): Cast addresses
	to unsigned long to avoid sign-extension errors.
	(set_host_arch): New function.
	(xcoff_relocate_symtab): Try disabling usleep(36000) workaround.
	(rs6000_core_fns): Use new bfd_target_xcoff_flavour.
	(_initialize_core_rs6000): Initialize rs6000_set_host_arch_hook.
	* symfile.c (find_sym_fns): Remove special xcoff kludge.
	* xcoffread.c (secnum_to_bfd_section): Initialize args.objfile.
	(process_linenos): Query line struct size from coff
	backend instead of using compile-time constant.
	(enter_line_range): Likewise.
	(read_xcoff_symtab): Pass "XCOFF64" instead of "XCOFF" to
	record_debugformat() if appropriate.
	(process_xcoff_symbol): Access symbol addresses using
	SYMBOL_VALUE_ADDRESS instead of SYMBOL_VALUE.
	(read_symbol_lineno): Retrieve XCOFF64 symbol names from strtbl.
	(scan_xcoff_symtab): Likewise.  Query syment struct size from
	coff backend instead of using compile-time constant.
	(xcoff_sym_fns): Set flavour to bfd_target_xcoff_flavour.
	* Makefile.in (INTERNAL_LDFLAGS): Add $(MH_LDFLAGS) to list of flags
	that this Makefile variable get set to.  (From Kevin Buettner.)
	* config/powerpc/aix.mh (MH_LDFLAGS): Add linker flags so that
	the TOC doesn't overflow.  (From Kevin Buettner.)
	* config/powerpc/tm-ppc-aix.h: Move config decisions to
	multi-arched rs6000-tdep.c.
	* config/rs6000/tm-rs6000.h: Likewise.
	(GDB_MULTI_ARCH): Define.
	(skip_trampoline_code): Rename to rs6000_skip_trampoline_code.
	(is_magic_function_pointer): Replace with
	rs6000_convert_from_func_ptr_addr.
	(TARGET_CREATE_INFERIOR_HOOK): Define.
	(find_toc_address_hook): Rename to rs6000_find_toc_address_hook.
	(rs6000_set_host_arch_hook): Declare.
	* config/rs6000/nm-rs6000.h (CHILD_XFER_MEMORY): Define.
2000-06-16 21:02:22 +00:00
Jim Blandy eebc33dfb3 File list is incorrect. 2000-06-16 06:28:54 +00:00
Kevin Buettner ac1d108362 PARAMS elimination. 2000-06-16 02:11:36 +00:00
Michael Snyder cbfbd72afe 2000-06-15 Michael Snyder <msnyder@cygnus.com>
* utils.c: Fix comment typo.
2000-06-15 20:40:29 +00:00
Michael Snyder 716c501e94 2000-06-15 Michael Snyder <msnyder@seadog.cygnus.com>
* valops.c (value_cast): Break up long lines.
2000-06-15 18:54:48 +00:00
Jim Blandy 5f8e8eb64a *** empty log message *** 2000-06-14 23:31:23 +00:00
Jim Blandy ce5d95e1bc 2000-06-14 Jim Blandy <jimb@redhat.com>
* dwarf2read.c (dump_die): Use the proper printf format for
	printing DW_UNSND values; they're longs now.

	* dwarf2read.c (dump_die): We can read DW_FORM_data8 now, on
	at least some platforms, so print it out too.

2000-06-14  James E. Wilson  <wilson@bletchleypark.cygnus.com>

	* dwarf2read.c (struct attribute): Change unsnd and snd field types
	to long.
	(read_8_bytes): Change return type to long.
	(read_unsigned_leb128): Change return type to long.  Change type of
	local result to long.  Cast argument of left shift to long.
	(read_signed_leb128): Likewise.
2000-06-14 23:29:06 +00:00
Pierre Muller 373a824730 2000-06-14 Pierre Muller <muller@ics.u-strasbg.fr>
Add support for Pascal language. Part 1: new files.
	* p-exp.y, p-lang.c, p-lang.h, p-typeprint.c, p-valprint.c: New files.
2000-06-14 12:27:59 +00:00
Kevin Buettner b37bcaa80e PARAMS elimination. 2000-06-14 00:59:07 +00:00
Jeff Law 5ec846f9cf * configure.host (hppa*64*): Renamed from hppa2.0w per
gcc/binutils changes.
        * configure.tgt: Similarly.
2000-06-13 15:21:27 +00:00
Kevin Buettner 9ac12c358e Use PT_CFM in place of PT_CR_IFS. 2000-06-13 03:17:11 +00:00
Michael Snyder 2c8f79c2da 2000-06-12 Michael Snyder <msnyder@cleaver.cygnus.com>
* breakpoint.c (breakpoint_thread_match): Fix comment.
2000-06-12 21:17:21 +00:00
Michael Snyder 7346e70f2e 2000-06-02 Michael Snyder <msnyder@seadog.cygnus.com>
* gdb.base/annota1.exp (run until main breakpoint): Loosen up
       the regular expression: accept an (almost) arbitrary sequence of
       "frames-invalid" and "breakpoints-invalid" messages both before
       and after the "starting" message.
2000-06-12 20:34:00 +00:00
Fernando Nasser 8903de4f9c 2000-06-12 Fernando Nasser <fnasser@cygnus.com>
* valops.c (value_assign): Adjust the length to take into
        consideration that we are not starting from the beginning.
2000-06-12 14:39:14 +00:00
Elena Zannoni 34e924c066 * symfile.c (add_symbol_file_command): Properly reformat "else if"
code.
	* coffread.c (coff_symtab_read): Ditto.
2000-06-12 14:05:44 +00:00
Andrew Cagney 80b756a06c ser-tcp.o moved to configure.in. 2000-06-12 06:34:32 +00:00
Andrew Cagney d63c00533f Update TODO - SER_HARDWIRE problem was fixed. 2000-06-12 06:12:14 +00:00
Andrew Cagney aff38e615a Set SER_HARDWIRE using autoconf instead of via XDEPFILES. Include
ser-tcp.o by default.
2000-06-12 06:09:06 +00:00
Andrew Cagney 5213ab0692 Multi-arch GDB_TARGET_IS_MIPS64. 2000-06-12 04:35:39 +00:00
Andrew Cagney 2475bac391 Print all known but not yet multi-arched values. 2000-06-12 03:33:26 +00:00
Mark Kettenis a7769679c2 * config/i386/tm-i386.h: Add forward declaration of `struct value'.
(FIX_CALL_DUMMY): Redefined to call i386_fix_call_dummy.
(i386_fix_call_dummy): Add prototype.
* i386-tdep.c (i386_fix_call_dummy): New function based on the
code from the old FIX_CALL_DUMMY macro.
2000-06-12 01:44:35 +00:00
Kevin Buettner 8ab8638139 Eliminate use of PARAMS. 2000-06-12 01:33:49 +00:00
Daniel Berlin 66a55e80fc Forgot a file 2000-06-12 01:31:41 +00:00
Andrew Cagney 63e69063c6 Don't try to dump void macros (when non multi-arch). They could
contain C statements.
2000-06-12 00:35:34 +00:00
Christopher Faylor cfc3008e2f * exec.c (exec_file_attach): Add .exe extension when __CYGWIN__. 2000-06-11 16:07:51 +00:00
Christopher Faylor 7c5c87c02d * win32-nat.c (safe_symbol_file_add_args): Store old gdb_stderr and gdb_stdout
here.
(safe_symbol_file_add_stub): Redirect gdb_stdout as well as stderr.
(safe_symbol_file_add_cleanup): Restore gdb_stdout.
(info_dll_command): Use the pager for displaying DLLs since there are often
quite a few.
2000-06-11 02:34:40 +00:00
Andrew Cagney 5c8cc33173 Trim targ_arches to just the first. 2000-06-11 01:39:08 +00:00
Andrew Cagney 4b9b395931 Re-implement gdbach_dump() so that it prints out the macro values.
Add ``maint print arch'' command.
Add ``gdbarch_register()'' function that also takes gdbarch_dump_tdep().
Use in mips-tdep.c.
2000-06-10 05:37:47 +00:00
Kevin Buettner dee8b1a1c5 Eliminate PARAMS. 2000-06-10 01:32:12 +00:00
Fernando Nasser 4acafb8638 2000-06-08 Fernando Nasser <fnasser@cygnus.com>
* config/i386/tm-embed.h: New file.  Specific for embedded targets
        like i386-elf, i386-coff and i386-aout.
        * config/i386/embed.mt (): Specify tm-embed.h instead of the System V
        header file.
2000-06-09 23:32:48 +00:00
Fernando Nasser cddf60497b 2000-06-08 Fernando Nasser <fnasser@cygnus.com>
* MAINTAINERS: Add myself to gdbtk list.
2000-06-09 23:22:16 +00:00
Klee Dienes 14765d3709 Add ChangeLog entry for change to MAINTAINERS on 2000-06-01 (sorry Andrew!) 2000-06-09 22:14:43 +00:00
Kevin Buettner 364693ab23 Define U_REGS_OFFSET. 2000-06-09 18:21:59 +00:00
Fernando Nasser ce844ae26d 2000-06-08 Fernando Nasser <fnasser@cygnus.com>
* configure.in: Replace misplaced CONFIG_ADD by the correct
        CONFIG_CLEAN.
        * configure, config.in: Regenerate.
2000-06-09 03:35:09 +00:00
Fernando Nasser a88c1392bd 2000-06-08 Fernando Nasser <fnasser@cygnus.com>
* values.c (value_primitive_field): Copy VALUE_REGNO as well.
        With typed registers we may have the location information in this field,
        in addition to VALUE_ADDRESS (which was already being copied).
2000-06-09 00:51:55 +00:00
Andrew Cagney bf64bfd6ba MIPS is always multi-arch enabled. 2000-06-08 06:35:40 +00:00
Andrew Cagney b0069a1775 Delete MIPS_DEFAULT_FPU from config/mips/*.h 2000-06-08 04:51:10 +00:00
Andrew Cagney 1ba607adba Use config.bfd to determine the default architecture and byte order.
Flush all BYTE_ORDER_DEFAULT macros from mips. Can rely on BFD's value.
2000-06-08 04:00:56 +00:00
Andrew Cagney e28d556f6b Botch in previous change. Was comparing against "ask" instead of
follow_fork_mode_ask.
2000-06-08 01:52:44 +00:00
Andrew Cagney 53904c9e67 Change signature of function add_set_enum_cmd() so that it uses
constant character pointers.  Update everything.
As a consequence fix infrun's follow-fork plugging a small memory leak.
2000-06-08 00:52:56 +00:00
Andrew Cagney 6ecce94d48 Purge last remaining make_cleanup_func. 2000-06-07 04:43:30 +00:00
Andrew Cagney b4a2023990 The attatched moves the remaining guff from gdbarch.{h,c,sh} to
arch-utils.{h,c}.  The ``set architecutre'' and ``set endian''
commands (part of the move) were implemented to use add_set_enum_cmd()
so that ``set architecture <tab>'' works.
2000-06-07 04:38:02 +00:00
Andrew Cagney 17c579bd62 Use ``set remote memory-read-packet-size'' instead of ``set endian
big'' in deprecate test.
2000-06-07 04:14:02 +00:00
Michael Snyder 3e0bf9f1f0 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
* configure.in: Enable autoconf to find curses.h on Solaris 2.8.
	* configure: Regenerate.
2000-06-07 01:14:07 +00:00
Michael Snyder e5f9ba7b27 2000-06-02 Michael Snyder <msnyder@seadog.cygnus.com>
* gdb.c++/local.exp: This test has never been known to work with g++.
2000-06-06 20:17:13 +00:00
Daniel Berlin b9d836b67a Properly fill changelog entry 2000-06-06 15:09:41 +00:00
Andrew Cagney aa8910955a Accept an enum immediately when it is an exact match - wouldn't accept
``d10v'' when the choice was d10v{,:ts2,:ts3}.
2000-06-06 12:13:53 +00:00
Andrew Cagney 69c49926bb Mips is always TARGET_BYTE_ORDER_SELECTABLE_P 1. 2000-06-06 07:00:45 +00:00
Andrew Cagney 193e3b1a00 Move generic_register_convertible_not and frame_num_args_unknown from
gdbarch.* to arch-utils.*.
2000-06-06 06:45:19 +00:00
Andrew Cagney ef31c1ea0e Delete TARGET_MONITOR_PROMPT. 2000-06-06 06:19:57 +00:00
Daniel Berlin 55b13a653e Revert an accidental commit 2000-06-06 00:38:10 +00:00
Daniel Berlin 357e46e7c9 C++ improvements 2000-06-05 20:49:53 +00:00
Daniel Berlin e6d71bf34e New tests, fix old tests, make more tests work 2000-06-05 20:47:28 +00:00
Mark Kettenis 422ea4b878 * acconfig.h, configure.in, i386bsd.c (HAVE_STRUCT_REG_R_FS):
Renamed from HAVE_R_FS.
(HAVE_STRUCT_REG_GS): Renamed from HAVE_R_GS.
* configure, config.in: Regenerated.
2000-06-05 18:59:40 +00:00
Andrew Cagney 26099b4aa4 More updates. 2000-06-05 05:20:58 +00:00
Andrew Cagney ac2e2ef7e2 Add host_pointer_to_address() and address_to_host_pointer(). Add
signed_pointer_to_address() etc.  Rename generic_pointer_to_address()
to unsigned_pointer_to_address() etc.
2000-06-04 13:46:37 +00:00
Andrew Cagney 8e6a3c35b9 Eliminate safe_strsignal(). 2000-06-04 01:58:49 +00:00
Kevin Buettner 507f3c78fb Eliminate PARAMS from function pointer declarations. 2000-06-04 00:41:10 +00:00
Christopher Faylor 450005e7c2 * win32-nat.c (safe_symbol_file_add_cleanup): Ensure that gdb_stderr is flushed
before deleting and restoring it.
(safe_symbol_file_add): Ensure that gdb_stderr is flushed before reassigning
it.
(handle_load_dll): Split into two functions so that WFI can handle shared
library events.
(child_solib_loaded_library_pathname): New function.
(child_clear_solibs): New function.  Clears shared library list.
(child_solib_add): New function.  Adds shared library symbols.
(dll_symbol_command): New function.  Handles "dll-symbol" command.
(info_dll_command): New function.  Handles info "sharedlibrary" command.
(handle_exceptions): Eliminate 'ignore_trap' argument.
(get_child_debug_event): Eliminate two arguments.  Return "pid" when
appropriate.  Break out on most events to allow WFI to handle stuff.
(child_wait): Accomodate get_child_debug_event changes.
(child_attach): Clear thread list and list of loaded dlls.
(child_create_inferior): Clear list of loaded dlls.  Use wait_for_inferior in a
loop to look for first "trap".
(child_resume): Avoid accessing a possibly-freed thread pointer.
(_initialize_inftarg): Add "dll-symbols", "sharedlibrary", and "info
dll", and "info sharedlibrary" commands.
* config/i386/tm-cygwin.h: Add some shared library (aka DLL) hooks.
2000-06-04 00:28:17 +00:00
Christopher Faylor 29fe111d82 * win32-nat.c: Fix up gcc warnings throughout.
(handle_load_dll): Change DLL name to lower case.
(handle_exception): Add a second argument indicating whether a breakpoint
should be ignored.  Return a 0 if the breakpoint was ignored.
(get_child_debug_event): Pass argument to handle_exception to control whether a
breakpoint should be ignored.
(child_create_inferior): Use modern cygwin API.  Explicitly clear last_sig.
Pass FIRST_EXCEPTION to get_child_debug_event for detection of first
breakpoint.

* configure.in: Eliminate unneeded WINDRES/DLLTOOL tests left over after last change.
* configure: Regenerate.
2000-06-03 05:04:14 +00:00
Christopher Faylor 95ca63c499 * configure.in: Detect correct versions of ranlib and windres when
cross-compiling.
* configure: Regenerate.
2000-06-03 03:27:30 +00:00
J.T. Conklin b0cb5b8de2 * configure.tgt: Add pattern for i[3456]86-*-netbsdelf*.
* config/i386/nbsdelf.mt: New file.
* config/i386/tm-nbsdelf.h: New file.

* config/i386/tm-nbsd.h: change include of tm-nbsd.h to
the more explicit config/tm-nbsd.h.
2000-06-02 23:15:28 +00:00
Mark Kettenis 66c9e0f2b8 * alphabsd-nat.c (supply_fpregset): Substract FP0_REGNUM from
register number when used as index into fpr_regs array.
2000-06-02 19:04:51 +00:00
Andrew Cagney f0d4cc9e0e Multiarch TARGET_FLOAT_FORMAT, TARGET_DOUBLE_FORMAT,
TARGET_LONG_DOUBLE_FORMAT.  Update d10v.
2000-06-02 01:59:13 +00:00
Mark Kettenis 1b3739704e * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define. 2000-06-01 22:29:37 +00:00
Michael Snyder d5cb3e0e0d 2000-06-01 Michael Snyder <msnyder@seadog.cygnus.com>
* sol-thread.c (rw_common): Circumstances (eg. a bug in Sun's
        thread_db library) may cause this function to be called with an
        illegal address, in which case procfs_to_xfer_memory will
        return zero.  Return an error code instead of looping forever.
2000-06-01 22:19:03 +00:00
Andrew Cagney 78566ebe2d More updates. 2000-06-01 10:26:00 +00:00
J.T. Conklin ca04024df1 * configure.host: Add patterns for i[3456]86-*-netbsdaout*
and i[3456]86-*-netbsdelf*.
* config/i386/nm-nbsdelf.h: New file.
* config/i386/nbsdelf.mh: New file.

* config/i386/nm-nbsd.h: change include of nm-nbsd.h to
the more explicit config/nm-nbsd.h.
* config/i386/tm-nbsd.h: change include of tm-i386bsd.h to
tm-i386.h.
(SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Define.
-------------------------------------------------------------------
2000-06-01 04:13:36 +00:00
Mark Kettenis 139760b7f9 * NEWS: Mention FreeBSD/Alpha and FreeBSD/i386 3.x and up as new
native configurations.
2000-05-31 23:27:44 +00:00
Mark Kettenis b051bfa499 * i386bsd-nat.c: Include "gregset.h".
(CANNOT_STORE_REGISTER): Define to cannot_fetch_register instead
of CANNOT_FETCH_REGISTER, if not already defined.
(supply_gregset): Call supply_register with NULL as its second
argument instead of supplying our own zeroed out buffer.
(fill_gregset): Copy contents of correct registers instead of the
contents of register REGNO.
2000-05-31 23:14:19 +00:00
Kevin Buettner 6cf014052f Revert PARAMS removal. 2000-05-31 21:26:48 +00:00
Mark Kettenis 59c948892b * configure.host, configure.tgt (alpha*-*-freebsd*): New entry. 2000-05-31 20:54:55 +00:00
Mark Kettenis 448628fe90 Add support for FreeBSD/Alpha.
* alphabsd-nat.c, config/alpha/fbsd.mh, config/alpha/fbsd.mt,
config/alpha/nm-fbsd.h, config/alpha/tm-fbsd.h,
config/alpha/xm-fbsd.h: New files.
2000-05-31 20:26:46 +00:00
Michael Snyder 7b079aad98 Forgotten ChangeLog entry from an earlier commit. 2000-05-31 15:33:42 +00:00
Pierre Muller 1bf0ae9615 * MAINTAINERS: Add myself to 'Write After Approval' list 2000-05-31 10:26:46 +00:00
Andrew Cagney 449f3b6ca7 Import texinfo.tex from texinfo-4.0.
Add support for ``make pdf'' to the gdb/doc directory using pdftex.
2000-05-31 10:18:58 +00:00
Klee Dienes 4db6cb88da Add MAINTAINERS entries for Mac OS X / Objective-C code to be contributed by Apple. 2000-05-30 21:06:42 +00:00
Andrew Cagney 4afc966c4c Further re-arange into distinct sections. 2000-05-30 08:52:57 +00:00
Andrew Cagney 0b8f9e4d9d * gdbarch.sh: Add field ``postdefault''. Rename fields
``startup'' and ``default'' to ``staticdefault'' and
``predefault''.  Fix initialization of valid_p.  Create/compare
gdbarch.log.
2000-05-30 01:29:26 +00:00
Andrew Cagney 0a415da9b7 Move/rename GDB_GREGSET_T definitions for solaris 2. 2000-05-30 00:03:57 +00:00
Andrew Cagney 5bd987222f Purge symtab of make_cleanup_func.
Pass correct arg to make_cleanup_free_search_symbols.
2000-05-29 13:18:15 +00:00
Kevin Buettner 8f0b51af07 Fix GDB_GREGSET_T, GDB_FPREGSET_T typos. 2000-05-28 16:26:17 +00:00
Kevin Buettner a14ed312fd PARAMS removal. 2000-05-28 01:12:42 +00:00
Michael Snyder c60c0f5f88 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
* gregset.h: New file.  Typedefs for gdb_gregset_t and
        gdb_fpregset_t, prototypes for supply_gregset and friends.
        * procfs.c: Include gregset.h.  Delete local prototypes for
        supply_gregset etc., and local typedef gdb_gregset_t etc.
        * sol-thread.c: Include gregset.h, delete local prototypes,
        add appropriate casts to gdb_gregset_t.
        * uw-thread.c, lin-thread.c, core-sol2.c, core-regset.c,
        sparc-tdep.c, ptx4-nat.c, ppc-linux-nat.c, mipsv4-nat.c,
        m88k-nat.c, m68klinux-nat.c, m68k-tdep.c, irix5-nat.c,
        irix4-nat.c, ia64-linux-nat.c, i386v4-nat.c, cxux-nat.c,
        arm-linux-nat.c, alpha-nat.c: Include gregset.h.
        * config/nm-linux.h: Define GDB_GREGSET_T, GDB_FPREGET_T.
        * config/sparc/tm-sun4sol2.h: Ditto.
2000-05-26 23:22:41 +00:00
Andrew Cagney fbc75a324a Fix bitrot in tui-file.c. 2000-05-26 06:15:49 +00:00
Andrew Cagney 2894793a7b Configure TUI to use <ncurses.h> when available. 2000-05-26 04:11:34 +00:00
Scott Bambrough a52e6aac8a Replace SKIP_SOLIB_RESOLVER stub with something that works.
2000-05-25  Scott Bambrough <scottb@netwinder.org>

	* arm-linux-tdep.c (find_minsym_and_objfile): New.
	(skip_hurd_resolver): New.
	(arm_linux_skip_solib_resolver): New.
	(arm_skip_solib_resolver): Removed.

	* config/arm/tm-linux.h (SKIP_SOLIB_RESOLVER): Changed to use
	arm_linux_skip_solib_resolver.
2000-05-25 18:24:33 +00:00
Mark Kettenis 7dfa765cc1 * acconfig.h (HAVE_R_FS, HAVE_R_GS): Add.
* configure.in: Add checks for r_fs and r_gs members of
`struct reg'.
* config.in, configure: Regenerated.
2000-05-25 17:18:01 +00:00
Eli Zaretskii b1eeef9a6e * ser-go32.c: Remove PARAMS. 2000-05-25 13:55:48 +00:00
Andrew Cagney 4b14d3e4e0 Replace <sys/dir.h> (and <dirent.h>) with "gdb_dirent.h". 2000-05-25 06:49:01 +00:00
Andrew Cagney 944d780c6e Re-generate config.in. 2000-05-25 04:44:33 +00:00
Andrew Cagney 85ff3c5244 File rename tweeks. 2000-05-25 03:57:48 +00:00
Andrew Cagney ed952ac512 Have TUI use the same configury mechanism as MI. 2000-05-25 01:50:50 +00:00
Andrew Cagney 0aaf65d72f Update JimI's e-mail addres.
Update TODO - FreeBSD mostly fixed.
2000-05-25 01:07:17 +00:00
Mark Kettenis e6031aeb52 Add support for FreeBSD/i386 ELF.
* i386bsd-nat.c: New file.
* config/i386/tm-fbsd.h (HAVE_I387_REGS): Define.
Include "i386/tm-i386.h" instead of "i386/tm-i386b.h".
(NUM_REGS): Remove redefinition.
(USE_STRUCT_CONVENTION): Define.
(i386_float_info): Remove prototype.
(FLOAT_INFO): Remove define.
(JB_ELEMENT_SIZE): Define to 4.
(JB_PC): Define to 0.
(GET_LONGJMP_TARGET): Define.
(SIGTRAMP_START, SIGTRAMP_END): Define.
(SIGCONTEXT_PC_OFFSET): Define.
(IN_SOLIB_CALL_TRAMPOLINE): Only define if !SVR4_SHARED_LIBS
* config/i386/nm-fbsd.h (PTRACE_ARG3_TYPE): Define to caddr_t.
(FETCH_INFERIOR_REGISTERS): Define.
(ATTACH_DETACH): Define.
(kernel_u_size): Remove PARAMS.
(register_u_addr): Use CORE_ADDR in prototype where appropriate.
Remove PARAMS.
(SVR4_SHARED_LIBS) [FREEBSD_ELF || __ELF__ && !FREEBSD_AOUT]:
Define.
[SVR4_SHARED_LIBS]: Include "elf/common.h".
Only define aliases for struct members from <link.h> if
!SVR4_SHARED_LIBS.
* config/i386/xm-fbsd.h: New file.
* config/i386/fbsd.mt (TDEPFILES): Remove solib.o.
* config/i386/fbsd.mh (NATDEPFILES): Remove i386b-nat.o.  Add
core-regset.o i387-nat.o i386bsd-nat.o.
2000-05-24 22:32:58 +00:00
Michael Snyder 0f2c5ba5c5 2000-05-24 Michael Snyder <msnyder@seadog.cygnus.com>
* findvar.c (value_from_register): Factor code, simplify logic.
2000-05-24 17:25:39 +00:00
Michael Snyder ab9d50c7a8 2000-05-17 Michael Snyder <msnyder@seadog.cygnus.com>
* config/sparc/tm-sun4sol2.h: Turn on multi-arch.
        * sparc-tdep.c (gdb_print_insn_sparc): Remove temp. multi-arch hack.
2000-05-24 17:17:46 +00:00
Michael Snyder 0a791409a5 2000-05-18 Michael Snyder <msnyder@seadog.cygnus.com>
* gdb.base/annota1.exp (annotate-signal-handler-caller):
      Relax the regular expression a little, make it pass on Solaris 8.
2000-05-24 17:14:50 +00:00
Michael Snyder 96dd789021 2000-05-17 Michael Snyder <msnyder@seadog.cygnus.com>
* config/sparc/tm-sun4sol2.h: Turn on multi-arch.
      sparc-tdep.c (gdb_print_insn_sparc): Remove temporary multi-arch hack.
2000-05-24 17:13:47 +00:00
Eli Zaretskii 48e934c645 * gdb.texinfo: Remove duplicate @syncodeindex. From Brian
Youmans.
2000-05-24 16:20:24 +00:00
Andrew Cagney 9e9c5ae78a et al. not et.al. 2000-05-24 11:39:44 +00:00
J.T. Conklin 9cebe72f24 * config/i386/nbsd.mt (TDEPFILES): Move solib.o from here...
* config/i386/nbsd.mh (NATDEPFILES): ...to here.
* config/m68k/nbsd.mt (TDEPFILES): Move solib.o from here...
* config/m68k/nbsd.mh (NATDEPFILES): ...to here.
* config/ns32k/nbsd.mt (TDEPFILES): Move solib.o from here...
* config/ns32k/nbsd.mh (NATDEPFILES): ...to here.

* config/powerpc/nbsd.mt (GDBSERVER_DEPFILES): Add low-nbsd.o.
* configure.tgt (powerpc-*-netbsd*): add gdbserver to configdirs.
* gdbserver/low-nbsd.c (initialize_arch): Define for PPC.
(fetch_inferior_registers): Likewise.
(store_inferior_registers): Likewise.

* gdbserver/low-nbsd.c (fetch_inferior_registers): Handle X86
floating point registers.
(store_inferior_registers): Likewise.
-------------------------------------------------------------------
2000-05-24 04:16:28 +00:00
Andrew Cagney c741b251b9 Remove quotes from arround for loop arg. 2000-05-24 02:18:18 +00:00
Mark Kettenis b2450fc5b6 * i387-nat.h, i387-nat.c: New files. 2000-05-23 23:44:44 +00:00
Alexandre Oliva 863e0fe46a * config/sparc/nm-linux.h: Include config/nm-linux.h.
* config/powerpc/nm-linux.h: Likewise.
2000-05-23 20:34:09 +00:00
David Taylor 9af9729377 one line fix by Gregory Lielens <Gregory.Lielens@fft.be> to fix a problem
with the printing of complex numbers (it would print the real part twice).
2000-05-23 15:56:33 +00:00
Andrew Cagney f5ff8c83c8 Add make_cleanup_close() function. 2000-05-23 14:48:13 +00:00