Commit Graph

8749 Commits

Author SHA1 Message Date
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
Andrew Cagney 16cadf399a Add -Wuninitialized. 2000-05-23 11:28:14 +00:00
Andrew Cagney 6e8cb14ae5 IRIX GCC fixes from 5.0 branch. 2000-05-23 07:49:05 +00:00
Andrew Cagney b08dff7bbe From branch. Bump VERSION number. 2000-05-23 03:22:29 +00:00
Andrew Cagney 74b7792f0f Purge (almost) make_cleanup_func. 2000-05-22 09:02:23 +00:00
Andrew Cagney 004527cbbb Purge procfs.c of make_cleanup_func. 2000-05-22 06:17:35 +00:00
Andrew Cagney e41a3b1ac5 Eliminate make_cleanup_func from top.c 2000-05-22 05:43:39 +00:00
Andrew Cagney 5683e87aa5 Replace preg() with phex(). Cleanup monitor.c. 2000-05-22 02:07:19 +00:00
Mark Kettenis e8475ad463 * i387-tdep.c (print_i387_value): Cast &value to (char *) in
pointer arithmetic.  Fixes a bug which manifested itself on
FreeBSD.
2000-05-21 21:21:20 +00:00
J.T. Conklin d4b2399a9c * target.h (target_memory_bfd_section): Removed declaration.
* target.c (target_memory_bfd_section): Removed.
* exec.c (xfer_memory): Removed #if'ed-out code which referenced
target_memory_bfd_section.

* target.h (target_read_memory_section): Removed declaration.
* target.c (target_read_memory_section): Removed.
(target_xfer_memory): Update, removed bfd_section argument.
(target_read_string, target_read_memory, target_write_memory):
Update for above change.

* gdbcore.h (read_memory_section): Removed declaration.
* corefile.c (read_memory_section): Removed.
* jv-lang.c (get_java_utf8_name): Changed calls to
read_memory_section to read_memory.
* printcmd.c (printf_command): Likewise.
* valops.c (value_at, value_fetch_lazy): Likewise.
2000-05-20 10:29:51 +00:00
Jimmy Guo 4ab64e140e update 2000-05-19 19:19:34 +00:00
Jimmy Guo d387afa3a7 regenerate 2000-05-19 19:14:45 +00:00
J.T. Conklin e42180d7b4 * configure.host, configure.tgt (powerpc-*-netbsd*): New entry.
* config/powerpc/nbsd.mh, config/powerpc/nbsd.mt,
config/powerpc/tm-nbsd.h, config/powerpc/nm-nbsd.h,
config/powerpc/xm-nbsd.h: New files.
2000-05-18 23:43:58 +00:00
Michael Snyder 1a570b2f5f 2000-05-12 Michael Snyder <msnyder@.cygnus.com>
* gdb.base/break.exp (bp on small function, optimized file):
        Add a second pass pattern.  The behavior differs here between stabs
        and dwarf for one-line functions.  Stabs preserves two line symbols
        (one before the prologue and one after) with the same line number,
        but dwarf regards these as duplicates and discards one of them.
        Therefore the address after the prologue (where the breakpoint is)
        has no exactly matching line symbol, and GDB reports the breakpoint
        as if it were in the middle of a line rather than at the beginning.
2000-05-17 17:10:19 +00:00
Michael Snyder aca52a9bcc 2000-05-12 Michael Snyder <msnyder@.cygnus.com>
* config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Define.
2000-05-17 17:09:27 +00:00
Eli Zaretskii 74b2d06784 * gdb/config/djgpp/README: Fine-tune installation instructions
based on user reports.
2000-05-17 11:49:53 +00:00
Eli Zaretskii d3229ae3bd * mmalloc/Makefile.in (install-info): Make sure $(infodir) exists.
Run install-info program on the installed Info files.
	* gdb/doc/Makefile.in (install-info): Run install-info on installed
	Info files.
2000-05-17 11:45:56 +00:00
Andrew Cagney d80380145f Minor maint et.al. tweeks. 2000-05-17 08:46:20 +00:00
Andrew Cagney e2bdc01eaa Change v850 break-point instruction to loop. Get around lack of 16
bit breakpoint.
2000-05-17 06:51:28 +00:00
Andrew Cagney 7ae383524c Review TODO. 2000-05-16 09:00:20 +00:00
Andrew Cagney 10adc9b50e Rename mi/ChangeLog-mi -> mi/ChangeLog 2000-05-16 05:07:53 +00:00
Andrew Cagney e2f9c47491 Make free_current_contents more robust. Use in MI. 2000-05-16 04:57:49 +00:00
Andrew Cagney 56e290f494 Cleanup discard_minimal_symbols cleanup. 2000-05-16 04:07:39 +00:00
Andrew Cagney 1ed2a1352d Fix signature of add_set_enum_cmd. Change VAR parameter to char**.
Cleanup signature of add_set_cmd.  Change VAR parameter to void*.
2000-05-16 03:03:13 +00:00
Andrew Cagney dfb0df6c34 Remove stray extern declaration of wrap_value_subscript(). 2000-05-16 02:50:23 +00:00
Andrew Cagney 5c65bbb629 Cleanup bfd_close() cleanups. 2000-05-16 02:43:39 +00:00
Andrew Cagney 2a00c9ceff Add notes on register cache. 2000-05-15 23:10:56 +00:00
Joern Rennecke 63978407cb sh-dsp support, simulator speedup by using host byte order:
sim:
	* Makefile.in (interp.o): Depends on ppi.c .
	(ppi.c): New rule.
	* gencode.c (printonmatch, think, genopc): Deleted.
	(MAX_NR_STUFF): Now 42.
	(tab): Add SH-DSP CPU instructions.
	Amalgamate ldc / stc / lds / sts instructions with similar
	bit patterns.  Fix opcodes of stc Rm_BANK,@-<REG_N>.
	Fix semantics of lds.l @<REG_N>+,MACH (no sign extend).
	(movsxy_tab): New array.
	For movs, change MMMM field to GGGG, and mmmm field to MMMM.
	Added entries for movx, movy and parallel processing insns.
	(ppi_tab): New array.
	(qfunc): Stabilize sort.
	(expand_opcode): Handle [01][01]NN, [01][01]xx and [01][01]yy.
	Handle 'M', 'G' 's' 'X', 'a', 'Y' and 'A'.
	(dumptable): Now takes three arguments.  Changed all callers.
	Emit just one contigous jump table.
	(filltable): Now takes an argument.  Changed all callers.
	Make index static.
	(ppi_moves, expand_ppi_code, ppi_filltable, ppi_gensim): New functions.
	(gensim_caselist): New function, broken out of gensim.
	Handle opcode fields 'x', 'y', 's', 'M', 'G', 'X', 'a', and 'Y'.
	Handle ref '9'.
	(gensim): Handle 'N' in code field and '8' in refs field.
	Call gensim_caselist - twice.
	(ppi_index): New static variable.
	(main): Unsupport default action.
	Add dsp support for -x / -s option.  Add -p option.
	* interp.c (sh_jump_table, sh_dsp_table, ppi_table): Declare.
	(saved_state_type): Rearrange to allow amalgamated ldc / stc /
	lds / sts to work efficiently.
	(target_dsp): New static variable.
	(GBR, VBR, SSR, SPC, MACH, MACL): Reflect saved_state_type change.
	(FPUL, Rn_BANK, SET_Rn_BANK, M, Q, S, T, SR_BL, SR_RB): Likewise.
	(SR_MD, SR_RC, SET_SR_BIT, GET_SR, SET_RC, GET_FPSCR): Likewise.
	(RS, RE, MOD, MOD_ME, DSP_R): Likewise.
	(set_fpscr1): Likewise.  Use target_dsp to check for dsp.
	(MOD_MSi, SIG_BUS_FETCH): Deleted.
	(CREG, SREG, PR, SR_MASK_DMY, SR_MASK_DMX, SR_DMY): New macros.
	(SR_DMX, DSR, MOD_DELTA, GET_DSP_GRD): Likewise.
	(SET_MOD): Reflect saved_state_type change.  Set MOD_DELTA instead
	of MOD_MS, and encode SR_DMY / SR_DMX into high word of MOD_ME.
	(set_sr): Reflect saved_state_type change.  Fix SR_RB handling.
	Use SET_MOD.
	(MA, L, TL, TB): Now controlled by ACE_FAST.
	(SEXT32): Just cast to int.
	(SIGN32): Fixed to only shift by 31.
	(CHECK_INSN_PTR): SIGBUS at insn fetch now represented by insn_end 0.
	(ppi_insn): Declare.
	(ppi.c): Include.
	(init_dsp): Set target_dsp.  When it changes, switch end of
	sh_jump_table with sh_dsp_table.
	(sim_resume) Don't declare sh_jump_table0.  Use sh_jump_table instead.
	Don't Declare PR if it's #defined.
	Fix single-stepping (Was broken in Mar  6 16:59:10 patch).
	(sim_store_register, sim_read_register): Translate accesses to
	reflect saved_state_type change.

	* interp.c (set_sr): Set sr.
	(SET_RC, MOD, MOD_MS, MOD_ME, SET_MOD, MOD_MS, MOD_ME): New macros.
	(set_fpscr1): Don't bank-switch fpu registers when simulating sh-dsp.
	(DSP_R): Fix definition.
	(sim_resume): Remove outdated SET_SR use.

	* interp.c (saved_state): New members for struct member asregs:
	rs, re, insn_end, xram_start, yram_start.
	(struct loop_bounds): New struct.
	(SKIP_INSN): New macro.
	(get_loop_bounds): New function.
	(endianw): Renamed to global_endianw.
	(maskw): negated bits.
	(PC): Now insn_ptr.
	(SR_MASK_RC, SR_RC_INCREMENT, SR_RC, RAISE_EXCEPTION): New macros.
	(RS, RE, DSP_R, DSP_GRD, A1, A0, X0, X1, Y0, Y1, M0, A1G): Likewise.
	(M1, A0G, RIAT, PT2H, PH2T, SET_NIP, CHECK_INSN_PTR): Likewise.
	(SIG_BUS_FETCH): Likewise
	(raise_exception, riat_fast): New functions.
	(raise_buserror, sim_stop): Use raise_exception.
	(PROCESS_SPECIAL_ADDRESS): Use xram_start / yram_start.
	(BUSERROR, WRITE_BUSERROR, READ_BUSERROR):
	Reverse sense of mask argument.
	(FP_OP, set_dr): Use RAISE_EXCEPTION.
	(wlat_fast, wwat_fast, wbat_fast, rlat_fast, rwat_fast, rbat_fast):
	Declare.  Remove redundant masking.
	(wwat_fast, rwat_fast): Add argument endianw.  Changed callers.
	(MA): Updated for change pc -> PC.
	(Delay_Slot): Use RIAT.
	(empty): Deleted.
	(trap): Remove argument little_endian.  Add argument endianw.
	Changed all callers.  Use raise_exception.
	(macw): Add argument endainw.  Changed all callers.
	(init_dsp): New function, extended after broken out of init_pointers.
	(sim_resume): Replace pc with insn_ptr.  Replace little_endian with
	endianw.  Replace nia with nip.  Reverse sense of maskb / maskw /
	maskl.  Implement logic for zero-overhead loops.  Don't try to
	interpret garbage when getting a SIGBUS at insn fetch.
	(sim_open): Call init_dsp.
	* gencode.c (tab): Use SET_NIP instead of nia = .  Use PH2T / PT2H /
	RAISE_EXCEPTION where appropriate.
	Add extra cycles for brai, braf , bsr, bsrf, jmp, jsr.

	* interp.c (sim_store_register, sim_fetch_register):
	Do proper endianness switch.

	* interp.c (saved_state_type): New members for struct member asregs:
	xymem_select, xmem, ymem, xmem_offset, ymem_offset.
	(special_address): Delete.
	(BUSERROR): Now a two-argument predicate.
	(PROCESS_SPECIAL_ADDRESS, WRITE_BUSERROR, READ_BUSERROR): New macros.
	(wlat_little, wwat_little, wbat_any, wlat_big, wwat_big): Delete.
	(process_wlat_addr, process_wwat_addr): New functions.
	(process_wbat_addr, process_rlat_addr, process_rwat_addr): Likewise.
	(process_rbat_addr): Likewise.
	(wlat_fast, wwat_fast, wbat_fast): Use WRITE_BUSERROR.
	(rlat_little, rwat_little, rbat_any, rlat_big, rwat_big): Delete.
	(rlat_fast, rwat_fast, rbat_fast): Use READ_BUSERROR.
	(RWAT, RLAT, RBAT, WWAT, WLAT, WBAT): Delete SLOW versions.
	(do_rdat, trap): Delete SLOW code.
	(SEXT32, SIGN32): New macros.
	(swap, swap16): Now integer in - integer out.  Changed all callers.
	(strswaplen, strnswap): Delete SLOW versions.
	(init_pointers): Initialize dsp memory selection (preliminary).
	(sim_store_register, sim_fetch_register): Use swap instead of
	big / little endian read / write functions.

	* interp.c (maskl): Deleted.
	(endianw, endianb): New variables.
	(special_address): Now inline.
	(bp_holder): Put raising of buserror there, rename to:
	(raise_buserror).
	(BUSERROR): Now yields a value.  Changed all users.
	(wbat_big): Delete.
	(wlat_fast, wwat_fast, wbat_fast): New functions.
	(rlat_fast, rwat_fast, rbat_fast): Likewise.
	(RWAT, RLAT, RBAT, WWAT, WLAT, WBAT): Use new functions.
	(do_rdat, do_wdat): Likewise.  Take maskl argument instead of
	little_endian one.  Changed caller macros.
	(swap, swap16): Use w[rw]lat_big / w[rw]lat_little directly.
	(strswaplen, strnswap): New functions.
	(trap): Use them to fix up endian mismatches;
	disable SYS_execve and SYS_execv; fix double address translation for
	SYS_pipe and SYS_stat.
	(sym_write, sym_read): Add endianness translation.
	(sym_store_register, sym_fetch_register): Add maskl local variable.
	(sim_open): Set endianw and endianb.

gdb:

	* sh-tdep.c (sh_dsp_reg_names, sh3_dsp_reg_names): New arrays.
	(sh_processor_type_table): Add entries for bfd_mach_sh_dsp and
	 bfd_mach_sh3_dsp.
	(sh_show_regs): Floating point registers are called fr0-fr15.
	For sh4, display fpul, fpscr and fr0-fr15 / dr0-dr14 as appropriate.
	Handle sh-dsp and sh3-dsp.
	config/sh/tm-sh.h (REGISTER_VIRTUAL_TYPE): sh-dsp / sh3-dsp
	don't have floating point registers.
	(DSR_REGNUM, A0G_REGNUM, A0_REGNUM, A1G_REGNUM, A1_REGNUM): Define.
	(M0_REGNUM, M1_REGNUM, X0_REGNUM, X1_REGNUM, Y0_REGNUM): Likewise.
	(Y1_REGNUM, MOD_REGNUM, RS_REGNUM, RE_REGNUM, R0B_REGNUM): Likewise.
2000-05-15 21:12:42 +00:00
Andrew Cagney 47cf603ed4 Cleanup cleanups - delete use of make_cleanup_func as cast. 2000-05-15 11:48:50 +00:00
Eli Zaretskii 4f0aafb38a * Makefile.in (gdbtypes.o, varobj.o): Depend on wrapper.h.
* wrapper.h (gdb_value_subscript, wrap_value_subscript): Add
	prototypes.
2000-05-15 07:10:04 +00:00
Andrew Cagney d1e3cf4998 Convert SAVE_DUMMY_FRAME_TOS to multi-arch. 2000-05-15 06:27:18 +00:00
Andrew Cagney f23d52e0a5 Cleanup free_agent_expr cleanups. 2000-05-15 06:15:27 +00:00
Andrew Cagney 4d6140d95e Cleanup delete_breakpoint cleanups. 2000-05-15 05:54:02 +00:00
Andrew Cagney 3339cf8b68 Move core_addr_lessthan and core_addr_greaterthan to arch-utils. 2000-05-15 03:56:30 +00:00
Andrew Cagney b02eeafb14 Use make_cleanup_ui_out_stream_delete(). 2000-05-15 03:16:15 +00:00
Andrew Cagney 5bfb05ca59 Fix IRIX cc warnings. Fix ui_out functions that didn't return a value. 2000-05-15 01:44:40 +00:00
Kevin Buettner 8216cda9b4 For IA-64, allow ``finish'' to land on caller rather than on next executable
line after the caller.
2000-05-13 01:38:05 +00:00
Kevin Buettner bf9198f149 Fix typo in sign extension code in dwarf2_const_value_data(). 2000-05-13 00:51:35 +00:00
Andrew Cagney 3fffcb5ea7 Mention UnixWare thread problem. 2000-05-12 10:50:50 +00:00
Andrew Cagney 6bc37a9656 Doc weak symbol problem. 2000-05-12 10:42:02 +00:00
Andrew Cagney a7cb598ae6 Add Stan to authors attempt two. Also add et.al. 2000-05-12 10:30:32 +00:00
Andrew Cagney 8c70017bcc Add Andrew Cagney. Add Stan Shebs as an author. 2000-05-12 10:23:54 +00:00
Andrew Cagney 6736fc7be9 Update section on kernel debugging. 2000-05-12 10:15:16 +00:00
Andrew Cagney 47a8d4ba5d Handle case of 32 ABI saving 32 bit registers on stack when target
has 64 bit ISA.
2000-05-12 09:21:30 +00:00
Andrew Cagney 216a600b17 Fix tipo 32->64 in MIPS_EABI. 2000-05-12 04:51:22 +00:00
Andrew Cagney 746a987d82 Check -W options before using them. 2000-05-12 04:37:00 +00:00
Elena Zannoni 2ec466f950 2000-05-11 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* coffread.c (coff_symtab_read): In the case of C_THUMBEXT |
 	C_THUMBEXTFUNC | C_EXT, sec will never ever be the index for
 	.rodata, because cs_to_section doesn't deal with .rodata. Fix test
 	accordingly.
2000-05-11 20:39:58 +00:00
Andrew Cagney 381323f4f8 Only try to print a macro when it is defined (in gdbarch_dump). 2000-05-11 11:49:21 +00:00
Andrew Cagney aba7b4b6d0 Update README file to 5.0. 2000-05-11 07:55:25 +00:00
Andrew Cagney 0dadbba0df Add preliminary support for IRIX's n32 abi to the MIPS's multi-arch code. 2000-05-11 03:40:08 +00:00
Elena Zannoni 9e12421610 2000-05-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* solib.c (symbol_add_stub): Remember the index and the name of
        the section with the lowest address. Use this data (instead of
        data from .text) to pass info into symbol_file_add.

        * elfread.c (record_minimal_symbol_and_info): Use the section
        where the symbol lives to get the index, instead of guessing.
2000-05-11 00:36:17 +00:00
Michael Snyder 5af923b0f0 2000-05-10 Michael Snyder <msnyder@seadog.cygnus.com>
Make Sparc a Multi-Arch target.  Discard PARAMS macro (require ANSI).
	* sparc-tdep.c: include arch-utils.h.
	(SPARC_HAS_FPU, FP_REGISTER_BYTES, FP_MAX_REG NUM, SPARC_INTREG_SIZE,
	DUMMY_REG_SAVE_OFFSET): provide multi-arch-compatible definitions.
	(GDB_TARGET_IS_SPARC64): make into a runtime test.
	(struct frame_extra_info): Define, use instead of the macro.
	(Many places): Use alloca instead of statically allocated buffers
	that depend on a multi-arch variable such as MAX_REGISTER_RAW_SIZE.
	(sparc_extract_struct_value_address): Accept a pointer arg instead
	of an array sized by REGISTER_BYTES.
	(examine_prologue): Accept a pointer to an array of CORE_ADDR,
	instead of the defunct struct frame_saved_regs.  Recognize new
	Sparc64 store instructions as part of the prologue.  Ignore the
	destination of a frame store when parsing the prologue (so long
	as it's on the stack).
	(sparc_push_dummy_frame): Fix incorrect buffer offset for PSTATE.
	(sparc_frame_find_saved_regs): Accept a ptr to an array of CORE_ADDR
	instead of the defunct struct frame_saved_regs.
	(supply_gregset): Discard unnecessary 'zerobuf': just send NULL to
	supply_register.  Provide 4-byte offset to compensate for diff
	between size of the prgreg_t elements on a 64-bit host and size
	of the registers for a 32-bit target.  Fill all inaccessible regs
	with zero so they won't keep being requested again and again.
	(fill_gregset): Handle 32/64 size difference between registers
	and prgreg_t.  Handle as many new 64-bit regs as possible.
	(supply_fpregset, fill_fpregset): Attempt to handle 64-bit world.
	(sparc_push_arguments): Rename to sparc32_push_arguments.
	Copy arguments into registers as well as onto stack, so that the
	CALL_DUMMY (code pushed onto the target stack) is not required.
	(sparc_extract_return_value): Rename to sparc32_extract_return_value.
	(sparc_store_return_value): Use memset instead of bzero.
	Use write_register_gen instead of write_register_bytes.
	(sparclet_store_return_value): New function.
	(_initialize_sparc_tdep): Call register_gdbarch_init to activate
	the gdbarch multi-architecture system.
	(sp64_push_arguments): Rename to sparc64_push_arguments.
	Extend to store arguments in general registers as well as on stack.
	(sparc64_extract_return_value): Rename to sp64_extract_return_value.
	Use as a private function, to be called by the new external function
	sparc64_extract_return_value.
	(sparclet_extract_return_value): New function.
	(sparc32_stack_align, sparc64_stack_align, sparc32_register_name,
	sparc64_register_name, sparc_print_extra_frame_info,
	sparclite_register_name, sparclet_register_name,
	sparc_push_return_address, sparc64_use_struct_convention,
	sparc32_store_struct_return, sparc64_store_struct_return,
	sparc32_register_virtual_type, sparc64_register_virtual_type,
	sparc32_register_size, sparc64_register_size,
	sparc32_register_byte, sparc64_register_byte,
	sparc_gdbarch_skip_prologue, sparc_convert_to_virtual,
	sparc_convert_to_raw, sparc_frame_init_saved_regs,
	sparc_frame_address, sparc_gdbarch_fix_call_dummy,
	sparc_coerce_float_to_double, sparc_call_dummy_address,
	sparc_y_regnum, sparc_reg_struct_has_addr, sparc_intreg_size,
	sparc_return_value_on_stack): New functions supporting multi-arch.
	(sparc_gdbarch_init): New function; initialize multi-arch.
	(struct gdbarch_tdep): Define, use for private multi-arch data.
	* config/sparc/tm-sparc.h: Move definitions around, enclose with
	#ifdef GDB_MULTI_ARCH tests, provide some multi-arch alternate
	definitions.  Add enums for register names, to help debugging gdb.
	This header file must work for non-multi-arch and for multi-arch.
	* config/sparc/tm-sp64.h: Add GDB_MULTI_ARCH configuration.  Also add
	AT_ENTRY_POINT definitions for CALL_DUMMY, for non-multi-arch case.
	Define GDB_MULTI_ARCH.
	* config/sparc/tm-sparclet.h: Add GDB_MULTI_ARCH configuration.
	Do not define GDB_MULTI_ARCH (bfd does not correctly identify target).
	* config/sparc/tm-sparclite.h: Ditto.
	* config/sparc/tm-sun4sol2.h: Define GDB_MULTI_ARCH.
	* sparclet-rom.c (sparclet_regnames): Initialize explicitly, to
	avoid using deprecated REGISTER_NAMES macro.
	* Makefile.in: Let sparc-tdep.c depend on arch-utils.h.
2000-05-10 20:07:25 +00:00
Michael Snyder 6005439332 2000-05-08 Michael Snyder <msnyder@seadog.cygnus.com>
* gdbarch.sh: Add FP0_REGNUM to list of multi-arched register numbers.
        * gdbarch.c, gdbarch.h: Regenerate.
        * core-regset.c: Change FP0_REGNUM to a runtime test.
        * procfs.c: Ditto.
        * sun3-nat.c: Ditto.
        * sparc-tdep.c: Ditto.

        * i386mach-nat.c: Remove unnecessary ifdef for FP0_REGNUM.
        * ptx4-nat.c: Ditto.

        * sol-thread.c (sol_thread_create_inferior): only add the thread
        to the thread list if it is not already in there.
        (prototypes for thread_db func ptrs): pretty up formatting.
2000-05-10 17:38:16 +00:00
Eli Zaretskii 598ca718d0 * gdb.texinfo: Proofreading changes from Brian Youmans. 2000-05-09 08:24:34 +00:00
Michael Snyder e245aa6b05 2000-05-08 Michael Snyder <msnyder@seadog.cygnus.com>
* sol-thread.c (sol_thread_create_inferior): only add the thread
        to the thread list if it is not already in there.
        (prototypes for thread_db func ptrs): pretty up formatting.
2000-05-08 22:34:38 +00:00
Michael Snyder 89cb06a200 2000-05-08 Michael Snyder <msnyder@seadog.cygnus.com>
* gdb.base/interrupt.exp: Make "pass" message say "send"
        rather than "send_gdb" (for consistancy).
2000-05-08 22:18:05 +00:00
Eli Zaretskii ed0a91a5fa * djunpack.bat: Change the Sed script to replace @V@ in fnchange.lst
with the version name.

	* config/djgpp/djconfig.sh: Use more warning switches.

	* config/djgpp/fnchange.lst: Replace the leading gdb-0222 with the
        @V@ placebo.
2000-05-08 15:06:27 +00:00
Andrew Cagney d929b26ff1 Move some of the MIPS n32 ABI configuration options into the mips
multi-arch vector.
2000-05-08 02:53:04 +00:00
Andrew Cagney 327fce13c5 * procfs.c (PROCFS_TRACE): Delete definition.
* proc-utils.h (PROCFS_NOTE, PROC_PRETTYFPRINT_STATUS): Always define.
2000-05-07 23:09:45 +00:00
Eli Zaretskii 502d24d454 Typo correction, again from Brian Youmans. 2000-05-07 10:57:54 +00:00
Eli Zaretskii d68fc55938 * gdbmi.texinfo: Lots of typos and grammar fixes from Brian
Youmans <3diff@flib.gnu.ai.mit.edu>.
2000-05-07 10:55:24 +00:00
Michael Snyder e919ea793d 2000-04-28 Michael Snyder <msnyder@seadog.cygnus.com>
* gdb.base/break.exp: When compiled with -O2 optimization,
        gdb may not stop at the first line of main, due to code motion.
2000-05-05 21:50:23 +00:00
Michael Snyder 103b3ef54f 2000-05-05 Michael Snyder <msnyder@seadog.cygnus.com>
* procfs.c: Cleanup of procfs tracing.  Move defines and
        prototypes to proc-utils.h
        * proc-utils.h: Define tracing macros.  Declare trace functions.
        * proc-api.c: Make procfs tracing a runtime option.
        (prepare_to_trace): New function, abstracted out of several
        places.  Open a trace file if one is required.
        (ioctl_with_trace, write_with_trace, open_with_trace,
        close_with_trace, wait_with_trace, lseek_with_trace):
        Report errno if an error occurs in a system call.
        (write_with_trace): Make 2nd arg void *, to agree with write.
2000-05-05 20:56:10 +00:00
Elena Zannoni b8d39351ea 2000-05-04 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* elfread.c (elf_symtab_read): The calculation of 'offset'
         must be done for each symbol, not just once. The index
         used must be the index of the section where 'sym' resides,
         not .text.
2000-05-05 19:09:27 +00:00
Michael Snyder 6c1a54b22b 2000-05-05 Michael Snyder <msnyder@seadog.cygnus.com>
* procfs.c (many functions): change int cmd; to long cmd;
        Solaris /proc API calls this parameter a long, and requires it
        for 64-bit hosts (where sizeof(long) != sizeof(int)).  UnixWare
        calls it an int, but on existing UnixWare hosts, int and long
        are the same size.  So long it must be.  If a future UnixWare
        version has problems with this, we'll have to use autoconf.
        * proc-api.c (write_with_trace): use long instead of int.
2000-05-05 18:29:33 +00:00
Michael Snyder f5b8946ca6 2000-05-03 Michael Snyder <msnyder@seadog.cygnus.com>
* solib.c (elf_locate_base, info_sharedlibrary_command):
        Look at the bfd to determine if it is elf32 or elf64, rather
        than using an ifdef.  This makes it runtime teststable and
        multi-arch.
2000-05-05 18:14:27 +00:00
Mark Kettenis 318b21ef35 * i386-linux-nat.c: Define PT_READ_U and PT_WRITE_U if they're not
already defined.
2000-05-04 19:25:57 +00:00
Mark Kettenis e441088d68 * infrun.c (handle_inferior_event): Add missing call to keep_going
and missing return when handling an ordinary signal from the
inferior.
2000-05-04 17:32:49 +00:00
Elena Zannoni b8fbeb1874 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* objfiles.h (SECT_OFF_DATA, SECT_OFF_TEXT, SECT_OFF_BSS,
        SECT_OFF_RODATA): Define as functions of OBJFILE.  Add
        sect_index_text, sect_index_data, sect_index_rodata,
        sect_index_bss to objfile structure.
        * gdb-stabs.h (SECT_OFF_DATA, SECT_OFF_TEXT, SECT_OFF_BSS,
        SECT_OFF_RODATA): Remove.
        * objfiles.c (allocate_objfile): Initialize
        sect_index_{text,data,bss,rodata} to -1, for error detection.

        * symfile.c (default_symfile_offsets): Initialize
        sect_index_{text,data,bss,rodata} from bfd information.
        * xcoffread.c (xcoff_symfile_offsets): Ditto.
        * somread.c (som_symfile_offsets): Initialize
        sect_index_{text,data,bss,rodata}.

        * coffread.c, dbxread.c, elfread.c, hp-psymtab-read.c,
        hp-symtab-read.c, hpread.c, mdebugread.c, minsyms.c,
        mipsread.c, objfiles.c, os9kread.c, pa64solib.c, partial-stab.h,
        remote-os9k.c, remote-vx.c, remote.c, rs6000-nat.c, somsolib.c,
        stabsread.c, symfile.c, xcoffread.c:
        Update use of SECT_OFF_{TEXT,DATA,BSS,RODATA} to depend on the
        current objfile.

        * xcoffread.c: Add new field objfile to find_targ_sec_arg.
2000-05-04 16:52:34 +00:00
Andrew Cagney 70d1b0e820 Remove more defunct macros. 2000-05-04 14:16:51 +00:00
Andrew Cagney 6878c38321 Cleanups. Zap unused macros. 2000-05-04 11:10:22 +00:00
Daniel Berlin 5ae3d4361a Insert missing entry 2000-05-03 21:55:28 +00:00
Mark Kettenis d41707c868 * infrun.c (handle_inferior_event): When doing a "next", and
stepping out of a signal handler into its calling trampoline
ignore the value of step_frame_address.
(step_over_function): Only modify step_resume_breakpoint->frame if
the value of step_frame_address is non-zero.
2000-05-03 20:16:05 +00:00
Michael Snyder 86110418ab 2000-05-03 Michael Snyder <msnyder@seadog.cygnus.com>
* monitor.c (monitor_fetch_register): MAX_REGISTER_RAW_SIZE
        is not static in the MULTI_ARCH world, so don't use it in a
        static array declaration.
2000-05-03 18:21:52 +00:00
Elena Zannoni 54cf9c0344 Tue May 2 13:17:21 2000 Elena Zannoni (ezannoni@makita.cygnus.com)
* symtab.c (in_prologue): From Jim Blandy. Rewrite, more
        intelligently, making sure we use the information from the
        symbol tables fully.
2000-05-03 13:45:17 +00:00
H.J. Lu 02240683a5 2000-05-02 H.J. Lu <hjl@gnu.org>
* ia64-tdep.c (ia64_gdbarch_init): Reference to ELFOSABI_NONE
	instead of ELFOSABI_SYSV.
2000-05-02 17:57:02 +00:00
Andrew Cagney 0386318224 Multi-arch NPC_REGNUM NNPC_REGNUM. 2000-05-02 09:36:57 +00:00
Andrew Cagney d7446e7568 revert 1.9. Not approved. 2000-05-02 08:59:35 +00:00
Andrew Cagney 33489c5bed re-do how gdbarch provides non-multi arch defaults so that non-
multi-arch gdbservers can continue to compile.
2000-05-02 08:57:21 +00:00
Andrew Cagney 5d15e25250 Add JimB to global checkin list 2000-05-02 08:34:08 +00:00
Andrew Cagney 2ea493eb71 Add ElenaZ to symtabs maintainers list. 2000-05-02 07:41:04 +00:00
Andrew Cagney 258e969385 Make Syd Polk principal maintainer. 2000-05-02 07:30:40 +00:00
Nicholas Duffek bf0184bec9 * gdb.texinfo (Command Files): Mention -x, use @enumerate for
startup sequence, minor edits.
2000-05-01 21:22:42 +00:00
Stan Shebs 5330533d30 Remove obsolete Gould configuration:
* configure.host, configure.tgt: Remove Gould configs.
	* Makefile.in: Remove Gould-related actions.
	* gould-xdep.c, gould-tdep.c, config/gould/*: Remove files.
	* NEWS: Mention removal.
2000-05-01 16:12:10 +00:00
Jim Blandy e5419804c4 * gdbint.texinfo (RETURN_VALUE_ON_STACK): Document. 2000-05-01 16:12:01 +00:00
Eli Zaretskii 41afff9a41 * annotate.texi: Remove "@syncodeindex fn cp", it causes grief in
TeX.

	* gdb.texinfo: Add "@syncodeindex fn cp".  Convert all entries
	"@kindex f" into "@kindex f (foo)", otherwise we get index entries
	like `n' and `s' which look weird.  Convert some of the @kindex to
	@vindex, when they refer to variables, not commands.
2000-05-01 08:34:36 +00:00
Andrew Cagney 7d4187854f From 2000-04-28 Andreas Jaeger <aj@suse.de>:
Properly check for GCC version number.
2000-05-01 05:45:36 +00:00
Andrew Cagney 33e16fad05 Do not use @value{GDBN in @nodes. 2000-05-01 04:34:06 +00:00
Mark Kettenis a6abb2c0e9 2000-04-30 Mark Kettenis <kettenis@gnu.org>
Fix single-stepping out of signal trampolines.
	* config/i386/nm-linux.h (CHILD_RESUME): Define.
	* i386-linux-nat.c (child_resume): New function.
2000-04-30 09:34:13 +00:00
Andrew Cagney dad41f9aa4 Convert SKIP_PROLOGUE_FRAMELESS_P into PROLOGUE_FRAMELESS_P. 2000-04-29 08:55:45 +00:00
Andrew Cagney 1bd54964ac From "Serge Nikulin" <nikulin@actsw.amat.com>:
Don't trip on NULL function name in sigtramp.
2000-04-28 05:50:19 +00:00
Michael Snyder 06b8da7db5 2000-04-27 Michael Snyder <msnyder@seadog.cygnus.com>
* gdbarch.sh (d10v_daddr_p, d10v_iaddr_p, d10v_convert_daddr_to_raw,
        d10v_convert_iaddr_to_raw): make these multi-arch functions optional.
        * gdbarch.c, gdbarch.h: regenerate
2000-04-28 05:21:23 +00:00
Andrew Cagney 2b5fe715f5 Cast function to correct type. 2000-04-28 03:10:44 +00:00
Michael Snyder cbda0a99a3 2000-04-27 Michael Snyder <msnyder@seadog.cygnus.com>
* jv-valprint.c (java_val_print): Add arg declaration,
        fix compiler warning.
        * corelow.c (core_open): Call set_gdbarch_from_file so that
        gdbarch becomes aware of the architecture encoded in the
        corefile.
        * findvar.c (write_register_gen): Export this useful interface.
        * value.h (write_register_gen): Declare.
2000-04-27 15:33:01 +00:00
Elena Zannoni a034fba4ec 2000-04-27 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* cxux-nat.c (add_shared_symbol_files): Don't treat .text section
 	as special in the section_addr_info structure.
	* pa64solib.c (pa64_solib_add_solib_objfile): Ditto.
	* osfsolib.c (symbol_add_stub): Ditto.
	* irix5-nat.c (symbol_add_stub): Ditto.
2000-04-27 15:11:14 +00:00
Andrew Cagney 28d069e647 Include "arch-utils.h". 2000-04-27 04:25:45 +00:00
Michael Snyder 02d5252fb1 2000-04-26 Michael Snyder <msnyder@seadog.cygnus.com>
* procfs.c (comments): Eliminate "???" in comments, which GCC
	wants to interpret as a trigraph.  (fill_gregset, supply_gregset,
	fill_fpregset, supply_fpregset): declare.
	(procfs_wait): Sysargs is a long, change printf format to match.
	(test-mapping, mapping_test, test_mapping_cmd) Remove (test only).
2000-04-27 01:04:52 +00:00
Michael Snyder b943d152e8 * proc-api.c (write_with_trace): Change 'arg' from long to int.
Treat 'off_t' and 'size_t' as unsigned long in printfs.
        (lseek_with_trace): Treat 'off_t' as unsigned long in printf.
2000-04-27 00:53:41 +00:00
Michael Snyder 1960c4001c 2000-04-26 Michael Snyder <msnyder@seadog.cygnus.com>
* gdb.base/call-ar-st.exp: Bail out if target is sparclet.
        This test depends on parsing the printf output from the target.
        Since the sparclet stub doesn't do stdio, this will never work.
        * gdb.base/call-rt-st.exp: ditto.
        * gdb.base/call-strs: ditto.
2000-04-27 00:45:19 +00:00
Michael Snyder fa4e99ecee 2000-04-26 Michael Snyder <msnyder@seadog.cygnus.com>
* wrapper.h: fix minor comment typo.
2000-04-27 00:41:49 +00:00
Andrew Cagney b2f4b24dd7 Document IRIX->ARM cross compile problem. 2000-04-27 00:23:02 +00:00
Michael Snyder 4261bedc92 2000-04-26 Michael Snyder <msnyder@seadog.cygnus.com>
* utils.c (internal_verror): Call target_terminal_ours.
2000-04-27 00:15:14 +00:00
Andrew Cagney 8b0ceefcd4 Add section discussing future changes to output syntax. 2000-04-26 23:39:53 +00:00
Kevin Buettner 146bcf0cb0 Add mapping ia64-linux-nat.c -> ia64linux-nat.c. 2000-04-26 21:27:35 +00:00
Philippe De Muyter c13c43fdda * ax-gdb.c (agent_command): Remove now useless cast of
`free_current_contents' when passed to `make_cleanup'.
	* coffread.c (coff_symfile_read): Ditto.
	* dwarf2read.c (dwarf2_add_member_fn, read_array_type): Ditto.
	(dwarf_decode_lines): Ditto.
	* eval.c (parse_and_eval_address, parse_and_eval_address_1): Ditto.
	(parse_and_eval, parse_to_comma_and_eval): Ditto.
	* parse.c (parse_exp_1): Ditto.
	* printcmd.c (print_command_1, output_command, set_command): Ditto.
	(x_command, print_frame_args, printf_command): Ditto.
	* top.c (execute_control_command): Ditto.
	* tracepoint.c (validate_actionline): Ditto.
	* typeprint.c (whatis_exp, ptype_command): Ditto.
	(maintenance_print_type): Ditto.
2000-04-26 12:41:48 +00:00
Andrew Cagney 4fd99b5a5d Document bfd/doc/Makefile.in TEXINPUTS problem. 2000-04-26 08:12:39 +00:00
Kevin Buettner 8064c6ae87 Add arch-utils.h to IA-64 *-tdep.c files. 2000-04-26 07:16:15 +00:00
Michael Snyder 72229eb7a0 2000-04-25 Michael Snyder <msnyder@seadog.cygnus.com>
* blockframe.c: Fix a minor typo in a comment.
2000-04-26 02:53:02 +00:00
Kevin Buettner 0927a22b9a Recognize store instructions in examine_prologue(). 2000-04-25 23:18:35 +00:00
Glen McCready 380b774b2d Tue Apr 25 13:51:58 2000 glen mccready <gkm@pobox.com>
* rs6000-nat.c (xcoff_relocate_symtam): Recover from the wrong
	patch being applied `Fri Apr  7 13:44:38 2000'.
2000-04-25 17:55:36 +00:00
Kevin Buettner 244bc1085b Handle signal handler frames and call dummy frames. 2000-04-25 06:36:52 +00:00
Michael Snyder b84b7669fb 2000-04-24 Michael Snyder <msnyder@seadog.cygnus.com>
* gdb.base/miscexprs.exp: make sizeof long array test portable.

        * gdb.base/ending-run.exp: After connecting to a remote target,
        but before running, the target will appear to be in a random
        location.  Specify both a file and a line for breakpoints.
        Also, the function that calls main may be called 'init'
        rather than 'start'.
2000-04-24 21:32:51 +00:00
Eli Zaretskii 7162c0cabe * Makefile.in (GDBMI_DIR): New variable.
(SET_TEXINPUTS): Add $(GDBMI_DIR).
	(SFILES_DOC): Add $(GDBMI_DIR)/gdbmi.texinfo.
	(gdbmi.texinfo): New target, for texi2roff.
	(gdb.me, gdb.ms, gdb.mm): Depend on gdbmi.texinfo.
	(gdb.info, gdb_toc.html): Add "-I ${GDBMI_DIR}".

	* gdb.texinfo (Top): Add GDB/MI to the main menu and @include
	gdbmi.texinfo.
	(Mode Options): Add xref to GDB/MI docs and remove a FIXME
	comment.

	* gdbmi.texinfo: Lots of changes, to include this document as part
	of the GDB manual.

	* TODO, NEWS: Update due to inclusion of gdbmi.texinfo in the GDB
	manual.
2000-04-23 08:15:49 +00:00
Eli Zaretskii 878798ce46 Fix the date of the last entry. 2000-04-23 07:35:44 +00:00
Eli Zaretskii 6cafa39f7c * djunpack.bat: New file.
* config/djgpp/README: Explain how to unpack using djunpack.bat.
2000-04-23 07:23:05 +00:00
Christopher Faylor dc8d251e9c Fix typo in comment. 2000-04-22 15:54:56 +00:00
Andrew Cagney d03e67c95f Convert REG_STRUCT_HAS_ADDR to multi-arch. Use REG_STRUCT_HAS_ADDR_P
in conversion.
2000-04-22 06:44:39 +00:00
Elena Zannoni c221dafc2e 2000-04-21 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* gdb-stabs.h (SECT_OFF_MAX): Increase to 40.
2000-04-21 14:33:33 +00:00
Elena Zannoni 0aa9cf965c 2000-04-21 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* win32-nat.c  (handle_load_dll): Don't treat .text as a special
 	section anymore.
	* somread.c (som_symfile_offsets): Ditto.
	* somsolib.c (som_solib_add_solib_objfile): Ditto.
2000-04-21 14:24:45 +00:00
Andrew Cagney 889ec156e6 Make Jimmy Guo H.P. maintainer. 2000-04-21 06:19:27 +00:00
Andrew Cagney c85871a391 Make help_all static. 2000-04-21 05:21:55 +00:00
Andrew Cagney 23964bcd46 * d10v-tdep.c (d10v_gdbarch_init): Initialize stack_align.
(d10v_stack_align): Make static.
* config/d10v/tm-d10v.h (STACK_ALIGN): Delete.
2000-04-21 04:21:21 +00:00
Andrew Cagney 2ada493ad1 * valops.c (hand_function_call): Replace #ifdef STACK_ALIGN with
run-time test for STACK_ALIGN_P.
* gdbarch.sh: Add support for function and variable predicates.
(STACK_ALIGN): Add.  Implement with predicate - STACK_ALIGN_P.
* gdbarch.h, gdbarch.c: Re-generate.
2000-04-21 04:17:18 +00:00
Andrew Cagney 2f9429aea3 * defs.h, utils.c (free_current_contents): Change parameter to
void*.

From Philippe De Muyter  <phdm@macqel.be>:
* printcmd.c (print_address_symbolic): Call `make_cleanup' with
`(free_current_contents, &x)', not `(free, x)'.
* utils.c (free_current_contents): Do not `free (NULL)'.

* printcmd.c (print_address_symbolic): Cleanup after a failed
call to build_address_symbolic.
2000-04-21 04:10:18 +00:00
Christopher Faylor 61c37cee5d * wince-stub.c (FREE): New macro.
(mempool): Just free any buffer prior to reuse.  Don't bother with realloc.
(flag_single_step): New function.
(skip_message): Detect "helpful" Windows CE messages and skip sending them to
the host.
(wait_for_debug_event): Use skip_message to avoid sending debug messages to the
host.
(dispatch): Prelimary implementation of single step detection.
* wince.c: Rework SH single stepping code to be more consistent with other
wince targets.
(handle_output_debug_string): Allow first chance exceptions to come through
since they seem to be all that we get on some versions of Windows CE.
(check_for_step): New function, conditionally compiled based on target.
(regptr): Delete obsolete function.
(handle_exception): Detect illegal instructions.
(get_child_debug_event): Return success only if event code matches target.
(child_create_inferior): Reflect change to get_child_debug_event arguments.
2000-04-21 03:04:35 +00:00
Christopher Faylor 8a892701f5 * win32-nat.c (thread_rec): Be more defensive about suspending already
suspended threads.
(safe_symbol_file_add_stub): New function.
(safe_symbole_file_add_cleanup): New function.
(safe_symbol_file_add): New function.
(handle_load_dll): Use wrapper to add DLL symbol information to avoid bogus
errors from non-stabs DLLs.
(handle_exception): Add work around for detection of first exception breakpoint
which does not seem to occur on W2K.  Detect more "signals" that can be
effectively passed to the debuggee.  Reorganize to eliminate continue_status
global.
(child_continue): Reorganize to eliminate continue_status global.
(child_wait): Ditto.
(child_resume): Ditto.
(get_child_debug_event): Ditto.  Recognize when an a breakpoint exception
should be ignored.  Change method for signalling when an important event has
occured to the caller.
(child_create_inferior): Use new method for noticing when get_child_debug_event
has found something interesting.
2000-04-21 02:26:14 +00:00
Glen McCready c18e0d23bd Fri Apr 7 13:44:38 2000 glen mccready <gkm@pobox.com>
* rs6000-nat.c (xcoff_relocate_symtab): Grow buffer if ptrace()
          fails due to lack of space.
2000-04-20 23:54:45 +00:00
Glen McCready 49a5a3a3e3 Fri Mar 24 12:10:38 2000 glen mccready <gkm@pobox.com>
* command.c, command.h (help_all): Add functionality to display
        a complete listing of available commands.
2000-04-20 23:51:01 +00:00
Scott Bambrough 41c49b06c4 Changes to support core files and linux threads.
2000-04-20  Scott Bambrough <scottb@netwinder.org>

	* arm-linux-nat.c (PIDGET, TIDGET): New.
	(get_thread_id, GET_THREAD_ID): New.
	(fetch_nwfpe_register, store_nwfpe_register): New.
	(fetch_register, store_register): New.
	(fetch_fpregister, store_fpregister): New.
	(fill_gregset, supply_gregset): New.
	(fill_fpregset, supply_fpregset): New.
	(fetch_fpregs): Modified to use thread id's.
	(store_fpregs): Modified to use thread id's and
	fetch_nwfpe_register.
	(fetch_regs): Modified to use thread id's.
	(store_regs): Modified to use thread id's.
	(fetch_inferior_registers): Modified to handle single register
	fetches.
	(store_inferior_registers): Modified to handle single register
	stores.
	(arm_linux_register_u_addr): Removed.

	* configure.tgt: Added gdbserver to configdirs for arm*-*-linux*.

	* config/arm/linux.mh
	(NATDEPFILES): Removed core-aout.o.  Added core-regset.o.
	(LOADLIBES): Define.

	* config/arm/nm-linux.h: Include config/nm-linux.h.
	(ATTACH_DETACH): Removed.  Defined in config/nm-linux.h.
	(REGISTER_U_ADDR): Removed.
	(SVR4_SHARED_LIBS): Removed.  Defined in config/nm-linux.h.
	(#include "solib.h"): Removed.  Included via config/nm-linux.h.
2000-04-20 21:13:19 +00:00
Andrew Cagney ef346e0411 Append NULL to enum based commands follow-fork and scheduler-locking. 2000-04-20 11:00:34 +00:00
Andrew Cagney ba886e9d72 * gdbarch.sh: Make multi-arch variable defaults, defaults for non-
multi-arch targets.
(TARGET_BFD_VMA_BIT, IEEE_FLOAT, CALL_DUMMY_WORDS,
SIZEOF_CALL_DUMMY_WORDS): Update.
* inferior.h (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Default
provided by gdbarch.
(CALL_DUMMY_P): Add FIXME. gdbarch should provide default.
* valprint.c (IEEE_FLOAT): Default provided by gdbarch.
2000-04-20 04:24:04 +00:00
Jim Blandy b209c575e3 *** empty log message *** 2000-04-19 23:22:26 +00:00
Jim Blandy 71a9f22e4f Bring RETURN_VALUE_ON_STACK under gdbarch's control.
* gdbarch.sh (RETURN_VALUE_ON_STACK): New entry.
* gdbarch.c, gdbarch.h: Regenerated.
* arch-utils.c (default_return_value_on_stack): New function.
* arch-utils.h (default_return_value_on_stack): New declaration.
* values.c (RETURN_VALUE_ON_STACK): Delete default definition.
2000-04-19 23:22:14 +00:00
Jim Blandy ceef0e3054 For real this time.
* i386v-nat.c (i386_insert_nonaligned_watchpoint): Use a
two-dimensional array, instead of faking it with explicit index
arithmetic.
2000-04-19 23:19:04 +00:00
Jim Blandy 4e32685259 I figured out what was going on.
Since nobody had made any changes to i386v-nat.c on sourceware since
the repository was started, we were still getting the version from the
vendor branch.  (If you don't understand how the vendor branch works,
treasure your innocence.)  I naively assumed that, to see what changes
had been introduced in version 1.2, one should diff it with 1.1,
as they say in TV Guide, "with hilarious results".

This change simply restores i386v-nat.c to what it used to be before I
started bungling around.  The text of this revision should be
identical to that of revision 1.1.1.3, which was the former head of
the trunk.  (Yes, 1.1.1.3 was the head of the trunk.  As I said,
treasure your innocence.)
2000-04-19 23:17:18 +00:00
Jim Blandy 77d2aaae45 My last commit introduced a bunch of mysterious whitespace changes; I
don't know where they came from.  They weren't intentional, so this
change reverts them.
2000-04-19 23:02:56 +00:00
Jim Blandy 8f0a00f878 *** empty log message *** 2000-04-19 22:56:22 +00:00
Jim Blandy 8557886114 * i386v-nat.c (i386_insert_nonaligned_watchpoint): Use a
two-dimensional array, instead of faking it with explicit index
arithmetic.
2000-04-19 22:55:38 +00:00
Jim Blandy 72a0cf8f17 * minsyms.c (prim_record_minimal_symbol_and_info): Doc fix.
(Thanks to Guy Harris.)
2000-04-19 21:13:09 +00:00
Elena Zannoni 8956470d36 2000-04-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* xcoffsolib.c (solib_add): Fix call to vmap_symtab().
2000-04-19 13:08:49 +00:00
Peter Schauer c2d1645f06 * TODO: Update. 2000-04-19 10:33:21 +00:00
Andrew Cagney e55e8cee85 Document -Wreturn-type problem. 2000-04-19 09:15:32 +00:00
Andrew Cagney 90515c233a From Peter Schauer: Add `mt i' alias for `mt info'. 2000-04-19 07:59:12 +00:00
Andrew Cagney 7194c49b36 From Peter Schauer: Add `info r' alias for `info registers'. 2000-04-19 07:51:26 +00:00
Andrew Cagney df02e9ed85 * bcache.c (free_bcache): Do not free NULL. 2000-04-19 07:08:35 +00:00
Andrew Cagney 9debab2f37 * TODO: Cleanup.
* NEWS: Update GDB version.  Duplicate paragraph explaining obsolete.
2000-04-19 07:01:08 +00:00
Andrew Cagney 747d1ccb27 Document real fix to problem of tui/Makefile not being deleted. 2000-04-19 03:37:07 +00:00
Jim Blandy c41dbdb813 *** empty log message *** 2000-04-18 19:10:41 +00:00
Andrew Cagney 784f35f92c Add full set of cleanup rules. 2000-04-18 08:04:59 +00:00
Andrew Cagney 92e9dde927 Do not delete testcmds. 2000-04-18 08:03:40 +00:00
Elena Zannoni a5a5122549 2000-04-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* gdb.base/help.exp: Update output for add-symbol-file command.
2000-04-17 16:14:37 +00:00
Elena Zannoni d167840fc5 2000-04-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* gdb.texinfo (Files): Update description of add-symbol-file
        command.
2000-04-17 16:12:39 +00:00
Elena Zannoni e7cf9df194 2000-04-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* symfile.h (struct section_addr_info ): Remove fields for special
 	treatment of .text, .data and .bss sections.

	* solib.c (symbol_add_stub): The special field text_addr is not
 	available anymore. Search for the .text field the hard way.

	* symfile.c (build_section_addr_info_from_section_table): Don't
 	fill in {text, data, bss}_addr any more.
	(default_symfile_offsets): Don't use {text, data, bss}_addr fields
 	to fill in section_offsets for objfile.
	(syms_from_objfile): Don't deal with {text, data, bss}_addr as a
 	special case anymore.
        (add_symbol_file_command): Ditto.
2000-04-17 16:09:04 +00:00
Elena Zannoni 4da95fc42d 2000-04-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
symfile.c: (symbol_file_command): Remove support for rombug, to
 	simplify code.
2000-04-17 15:59:56 +00:00
Elena Zannoni db162d44d7 2000-04-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* symfile.c (add_symbol_file_command): Rewrite the arguments
 	processing part. Simplify syntax of command. Remove support for
 	rombug.
	(_initialize_symfile): Update help message for add-symbol-file
 	command.
2000-04-17 15:47:17 +00:00
Eli Zaretskii 5beae2cf40 Fixed incorrect date on the previous entry. 2000-04-17 10:56:17 +00:00
Eli Zaretskii 8487521e34 * gdb.texinfo (Porting GDB): Don't use @value in the node name, it
prevents the build (and is generally a Bad Idea).
2000-04-17 10:46:50 +00:00
Eli Zaretskii 00e4a2e455 * gdb.texinfo (Protocol): Prevent makeinfo from complaining about
a comma inside @var.
	(Command Files): Index markup changes from Dmitry Sivachenko
	<dima@Chg.RU>.
2000-04-17 10:42:13 +00:00
Andrew Cagney 301ab94d77 Only dump IEEE_FLOAT when defined. 2000-04-17 05:59:42 +00:00
Andrew Cagney bc1821e659 * remote.c (REMOTE_TRANSLATE_XFER_ADDRESS), mem-break.c
(MEMORY_INSERT_BREAKPOINT, MEMORY_REMOVE_BREAKPOINT), target.h
(BREAKPOINT_FROM_PC), valops.c (COERCE_FLOAT_TO_DOUBLE),
gdbarch.sh (D10V_MAKE_DADDR, D10V_MAKE_IADDR,
FRAMELESS_FUNCTION_INVOCATION, REGISTER_CONVERTIBLE,
REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW,
REGISTER_NAME), findvar.c (POINTER_TO_ADDRESS,
ADDRESS_TO_POINTER): Delete default definition.  Handled by
gdbarch.

* gdbarch.sh: Make multi-arch defaults, defaults for non-
multi-arch targets.
(REGISTER_NAME, COERCE_FLOAT_TO_DOUBLE, REGISTER_CONVERTIBLE,
REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW,
D10V_MAKE_DADDR, D10V_MAKE_IADDR, BREAKPOINT_FROM_PC,
MEMORY_INSERT_BREAKPOINT, MEMORY_REMOVE_BREAKPOINT,
REMOTE_TRANSLATE_XFER_ADDRESS, FRAMELESS_FUNCTION_INVOCATION):
Provide default/legacy implementation.
(REGISTER_NAMES, CALL_DUMMY): Allow legacy definition.
* gdbarch.h, gdbarch.c: Re-generate.
2000-04-17 02:27:37 +00:00
Jim Blandy 0ce865f26f *** empty log message *** 2000-04-16 16:04:59 +00:00
Jim Blandy c0aba12e91 * findvar.c (store_typed_address, extract_typed_address): Fix
function names in error messages.
2000-04-16 16:04:53 +00:00
Eli Zaretskii 39ec565510 * Makefile.in (LN_S): Define.
(gdb-cfg.texi, gdb.dvi, links2roff, inc-hist.texinfo): Don't
	invoke "ln -s" unless it is known to work.

	* configure.in (AC_PROG_LN_S): Add.
2000-04-16 08:47:41 +00:00
Eli Zaretskii 6c9d75b842 * config/djgpp/config.sed: Fix the lines which edit clean: and
uninstall-info: targets.
2000-04-16 08:16:03 +00:00