OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
23 years ago* mn10300-tdep.c (mn10300_gdbarch_init): Rather than using
Jim Blandy [Wed, 9 May 2001 02:07:36 +0000 (02:07 +0000)]
* mn10300-tdep.c (mn10300_gdbarch_init): Rather than using
generic_pc_in_call_dummy, use pc_in_call_dummy_at_entry_point.

23 years agoUse gdbarch for most target parameters for the MN10300, rather
Jim Blandy [Wed, 9 May 2001 02:04:26 +0000 (02:04 +0000)]
Use gdbarch for most target parameters for the MN10300, rather
than the tm-*.h file.
* config/mn10300/tm-mn10300.h (MAX_REGISTER_VIRTUAL_SIZE,
REGISTER_BYTES, FP_REGNUM, BREAKPOINT_FROM_PC,
FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK, INNER_THAN,
SAVED_PC_AFTER_CALL, INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS,
FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC,
EXTRACT_RETURN_VALUE, EXTRACT_STRUCT_VALUE_ADDRESS,
STORE_RETURN_VALUE, STORE_STRUCT_RETURN, SKIP_PROLOGUE,
FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
FRAME_NUM_ARGS, POP_FRAME, USE_GENERIC_DUMMY_FRAMES, CALL_DUMMY,
CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
CALL_DUMMY_LOCATION, FIX_CALL_DUMMY, CALL_DUMMY_ADDRESS,
TARGET_READ_FP, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
SAVE_DUMMY_FRAME_TOS, PUSH_ARGUMENTS, PC_IN_CALL_DUMMY,
REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER):
Delete definitions.  We register gdbarch methods for these now.
(struct frame_info, struct type, struct value): Delete forward
declarations of these types; they're no longer necessary, since we
don't have function declarations here any more.
* mn10300-tdep.c: #include "arch-utils.h", to get declarations for
some default gdbarch methods.
(mn10300_store_struct_return): Return void, as expected by
gdbarch.
(mn10300_init_extra_frame_info): Take initial `fromleaf' argument,
as expected by gdbarch.
(mn10300_frame_init_saved_regs): Provide dummy definition for
this, as required by gdbarch.
(mn10300_gdbarch_init): Add mn10300_call_dummy_words, as expected
by gdbarch.  Register gdbarch methods or values for all the stuff
removed from tm-10300.h, listed above.

23 years agoReplace ui_out_list_{begin,end}() with ui_out_{begin,end}().
Andrew Cagney [Wed, 9 May 2001 01:33:10 +0000 (01:33 +0000)]
Replace ui_out_list_{begin,end}() with ui_out_{begin,end}().

23 years agoUse a stack of structures (instead of a simple array) to keep track of
Andrew Cagney [Wed, 9 May 2001 00:23:23 +0000 (00:23 +0000)]
Use a stack of structures (instead of a simple array) to keep track of
the top list.

23 years ago2001-05-08 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Tue, 8 May 2001 21:19:43 +0000 (21:19 +0000)]
2001-05-08  Michael Snyder  <msnyder@redhat.com>

* language.c (longest_local_hex_string_custom): Strlen test is
inverted -- reverse the sense of the test.

23 years ago * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
Ian Lance Taylor [Tue, 8 May 2001 17:44:00 +0000 (17:44 +0000)]
* coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
NULL or is not COFF.
(coff_i386_rtype_to_howto): Don't dump core if output section
owner is not COFF.

23 years agoRemove extraneous character in first line.
Ian Lance Taylor [Tue, 8 May 2001 17:14:35 +0000 (17:14 +0000)]
Remove extraneous character in first line.

23 years agomerge from gcc
DJ Delorie [Tue, 8 May 2001 14:35:18 +0000 (14:35 +0000)]
merge from gcc

23 years ago* config/i386/tm-i386v.h (struct frame_info, struct
Mark Kettenis [Tue, 8 May 2001 12:00:49 +0000 (12:00 +0000)]
* config/i386/tm-i386v.h (struct frame_info, struct
frame_saved_regs):  Remove declarations.
(i386_frame_num_args): Remove prototype.

23 years agoCheck Mode not Bank in order to determine rocesor mode.
Nick Clifton [Tue, 8 May 2001 08:28:28 +0000 (08:28 +0000)]
Check Mode not Bank in order to determine rocesor mode.

23 years ago * README: New file.
Keith Seitz [Mon, 7 May 2001 20:39:32 +0000 (20:39 +0000)]
    * README: New file.

        * configure.in: Check for executable filename extension.
        * Makefile.in: Add filename extensions.
        * configure: Regenerated.

        * defs: Fix typo setting _test(verbose).
        (gdbtk_test_file): New proc to load executables into gdbtk.
        (gdbtk_test_run): New proc to run executables on gdbtk.
        * browser.exp: Don't check if DISPLAY is set: let
        gdbtk_initialize_display do it all for us.
        Call gdbtk_done when finished with tests.
        * c_variable.exp: Ditto.
        * console.exp: Ditto.
        * cpp_variable.exp: Ditto.
        Only run tests if c++ is supported in the configuration.
        * srcwin.exp: Ditto the DISPLAY stuff.
        Accumulate all test results for the end and report them then.

        * browser.test: Use gdbtk_test_file and gdbtk_test_run
        to load and run an executable.
        * c_variable.test: Use gdbtk_test_file and gdbtk_test_run
        to load and run an executable.
        * srcwin.test: Ditto.
        * srcwin1.test: Ditto.
        * srcwin2.test: Ditto.
        * browser.test: (set_search_mode): Use "configure
        -value" not "entryset" to set the combobox's value. We need
        to have the command fired.
        (browser-3.5): Remove trailing whitespace which causes test to
        fail.
        (browser-4.4): Expect something rational. Regexp "\_1$" cannot
        match "func_10"!
        (browser-4.5): Ditto.
        (browser-5.12): Select all files for search to make test
        match description.
        (browser-6.2): Renamed from another test also calledd 6.1.
        (browser-7.1): Delete all breakpoints at once without from_tty.
        Select all entries in the comobox before invoking BP set/delete
        button.
        (browser-7.2): Ditto.

        * list0.c, list1.c, list0.h: New files. Grabbed from gdb.base.
        * srcwin.exp: Use these local files instead of those in gdb.base.

23 years ago * lib/gdb.exp (gdbtk_initialize_display): New proc which will
Keith Seitz [Mon, 7 May 2001 20:34:45 +0000 (20:34 +0000)]
    * lib/gdb.exp (gdbtk_initialize_display): New proc which will
        set up the display for testing.
        (gdbtk_start): Convert all paths to paths that tcl will like.
        Export target information to environment.
        (_gdbtk_xvfb_init): New proc to start Xvfb if available and
        necessary.
        (_gdbtk_xvfb_exit): New proc to kill Xvfb if necessary.
        (to_tcl_path): New proc to convert a given pathname into
        a path acceptible as an argument to a tcl command.
        (_gdbtk_export_target_info): New proc to export target info
        into the environment for gdbtk testing.
        (gdbtk_done): New proc to signal end-of-test.

23 years agoDrop self as mn10300 maintainer.
Andrew Cagney [Mon, 7 May 2001 20:02:26 +0000 (20:02 +0000)]
Drop self as mn10300 maintainer.

23 years agoZap some bogus #ifndef _WIN32 - hangover from WinGDB
Andrew Cagney [Mon, 7 May 2001 19:03:11 +0000 (19:03 +0000)]
Zap some bogus #ifndef _WIN32 - hangover from WinGDB

23 years ago* cgen asm/disasm
Frank Ch. Eigler [Mon, 7 May 2001 17:55:21 +0000 (17:55 +0000)]
* cgen asm/disasm

[opcodes/ChangeLog]
2001-05-07  Frank Ch. Eigler  <fche@redhat.com>

        * cgen-dis.in (default_print_insn): Tolerate min<base instructions
        even at end of a section.
        * cgen-ibld.in (extract_normal): Tolerate min!=base!=max instructions
        by ignoring precariously-unpacked insn_value in favor of raw buffer.

[cgen/ChangeLog]
2001-05-07  Frank Ch. Eigler  <fche@redhat.com>

        * iformat.scm (compute-insn-base-mask-length): Rewrite to tolerate
        various-base-length instruction sets.

23 years agomerge from gcc
DJ Delorie [Mon, 7 May 2001 16:21:15 +0000 (16:21 +0000)]
merge from gcc

23 years ago * library/globalpref.itb (build_win): Preserve the
Keith Seitz [Mon, 7 May 2001 15:43:23 +0000 (15:43 +0000)]
* library/globalpref.itb (build_win): Preserve the
current working directory.

23 years agoChangeLog cleanup: move all references to gdbtk stuff to gdb.gdbtk/ChangeLog (which
Keith Seitz [Mon, 7 May 2001 15:39:00 +0000 (15:39 +0000)]
ChangeLog cleanup: move all references to gdbtk stuff to gdb.gdbtk/ChangeLog (which
has been merged with gdb.gdbtk/ChangeLog-gdbtk).

23 years ago * disassemble.c (disassembler_usage): Remove unused attribute.
Alan Modra [Mon, 7 May 2001 09:21:56 +0000 (09:21 +0000)]
* disassemble.c (disassembler_usage): Remove unused attribute.

23 years ago * external.h: Fix typo.
Alan Modra [Mon, 7 May 2001 09:18:52 +0000 (09:18 +0000)]
* external.h: Fix typo.
* mips.h: Add/Extend many comments with reference to the MIPS ELF64
spec v. 2.4, available at e.g.
ftp://oss.sgi.com/pub/linux/mips/doc/ABI/ELF64.ps.
(EF_MIPS_UCODE): Define.
(EF_MIPS_OPTIONS_FIRST): Define.
(EF_MIPS_ARCH_ASE): Define.
(EF_MIPS_ARCH_ASE_MDMX): Define.
(EF_MIPS_ARCH_ASE_M16): Define.
(SHF_MIPS_ADDR): Renamed SHF_MIPS_ADDR32.
(SHF_MIPS_STRING): Renamed SHF_MIPS_ADDR64.
(SHF_MIPS_NODUPES): Define.
(ELF64_MIPS_R_SSYM): New MIPS ELF 64 relocation info access macro.
(ELF64_MIPS_R_TYPE3): Likewise.
(ELF64_MIPS_R_TYPE2): Likewise.
(ELF64_MIPS_R_TYPE): Likewise.
(OHW_R10KLDL): Define.

23 years ago * ecoff.c (bfd_debug_section): Fix initialization.
Alan Modra [Mon, 7 May 2001 09:15:26 +0000 (09:15 +0000)]
* ecoff.c (bfd_debug_section): Fix initialization.
* elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
is always a positive integer. Cast away sign mismatch.
* elf32-mips.c: Fix misleading comment and typo.
(_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
correct data type.
* elflink.c: Fix typo.
(_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
* ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.

23 years ago*** empty log message ***
Jim Blandy [Mon, 7 May 2001 06:10:25 +0000 (06:10 +0000)]
*** empty log message ***

23 years ago* mn10300.igen: Doc fixes.
Jim Blandy [Mon, 7 May 2001 04:52:00 +0000 (04:52 +0000)]
* mn10300.igen: Doc fixes.

23 years ago* restore.c: Make the code of caller0 correspond to its comment.
Jim Blandy [Mon, 7 May 2001 00:05:15 +0000 (00:05 +0000)]
* restore.c: Make the code of caller0 correspond to its comment.

23 years agoConsolidate save_inferior_ptid/restore_inferior_ptid implementation to
Kevin Buettner [Sun, 6 May 2001 22:22:03 +0000 (22:22 +0000)]
Consolidate save_inferior_ptid/restore_inferior_ptid implementation to
one source file.

23 years agoMake ptid_t related changes.
Kevin Buettner [Sun, 6 May 2001 21:06:35 +0000 (21:06 +0000)]
Make ptid_t related changes.

23 years agoImplement attach/detach for multi-threaded programs on Linux.
Mark Kettenis [Sun, 6 May 2001 17:00:44 +0000 (17:00 +0000)]
Implement attach/detach for multi-threaded programs on Linux.
* thread-db.c (keep_thread_db): Adjust comment.
(deactivate_target): Removed.
(thread_db_new_objfile): Don't call deactivate_target.  Implement
guts of deactivate_target inline instead.
(attach_thread): Call ATTACH_LWP unconditionally if defined.
(thread_db_attach): New function.
(thread_db_detach): Don't call deactivate_target.  Do necessary
cleanup inline instead.  Set inferior_ptid to LWP corresponding to
the current user-level thread.
(thread_db_kill): Set inferior_ptid to LWP corresponding to the
current user-level thread.
(thread_db_create_inferior): Deactivate target vector if
KEEP_THREAD_DB is zero.
(thread_db_mourn_inferior): Don't call deactivate_target.  Do
necessary cleanup inline instead.
(init_thread_db_ops): Initialize to_attach field to
thread_db_attach.
* lin-lwp.c (lin_lwp_mourn_inferior): Remove prototype.
(stop_wait_callback): Add prototype.
(init_lwp_list): Add comment about when to re-initialize the LWP
list.
(lin_lwp_attach_lwp): Only call ptrace for cloned processes.
Avoid adding publicates to the LWP list.  Only mark an LWP as
signalled if it doesn't correspond to a cloned process.
(lin_lwp_attach): Add initial process to the LWP list.  Make sure
it's stopped and fake a SIGSTOP.
(detach_callback): New function.
(lin_lwp_detach): Implement.
(lin_lwp_create_inferior): Don't re-initialize LWP list here.
Call child_ops.to_create_inferior directly instead of via
target_beneath local.
(lin_lwp_mourn_inferior): Call child_ops.to_mourn_inferior
directly instead of via target_beneath local.

23 years ago * symtab.c (lookup_symtab_1, lookup_partial_symtab): Use basename
Eli Zaretskii [Sun, 6 May 2001 06:07:20 +0000 (06:07 +0000)]
* symtab.c (lookup_symtab_1, lookup_partial_symtab): Use basename
instead of non-portable search for `/'.  Use FILENAME_CMP instead
of STREQ, to account for case-insensitive filesystems.
(top-level): #include "filenames.h".

23 years ago* breakpoint.c (check_duplicates): Use the breakpoint's type, not
Jim Blandy [Sun, 6 May 2001 01:35:57 +0000 (01:35 +0000)]
* breakpoint.c (check_duplicates): Use the breakpoint's type, not
its address, to decide whether it's a watchpoint or not.  Zero
is a valid code address.
(update_breakpoints_after_exec): Admonishing comments.
* breakpoint.h (struct breakpoint): Doc fixes.

23 years ago* breakpoint.c (check_duplicates): Take a breakpoint object as an
Jim Blandy [Sun, 6 May 2001 00:52:07 +0000 (00:52 +0000)]
* breakpoint.c (check_duplicates): Take a breakpoint object as an
argument, rather than an address and section.  All callers changed.

23 years ago * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
Richard Henderson [Fri, 4 May 2001 23:22:31 +0000 (23:22 +0000)]
    * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.

23 years ago2001-05-03 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Fri, 4 May 2001 21:07:01 +0000 (21:07 +0000)]
2001-05-03  Michael Snyder  <msnyder@redhat.com>

* config/sid.exp (gdb_target_sid): Check for error messages.
On error or timeout, don't make expect exit (which will terminate
all subsequent tests); instead just make gdb exit.
(gdb_load): Check for error messages.  On error or timeout,
return a negative value.

23 years ago2001-01-26 Felix Lee <flee@redhat.com>
Michael Snyder [Fri, 4 May 2001 21:02:12 +0000 (21:02 +0000)]
2001-01-26  Felix Lee  <flee@redhat.com>

* sid.exp (sid_exit): Pass host, not target, to remote_close.

2001-01-25  matthew green  <mrg@redhat.com>

* config/sid.exp (sid_start): Call `remote_push_conn' after firing
up sid.
(sid_exit): Call `remote_pop_conn' after GDB is gone.

2001-01-25  matthew green  <mrg@redhat.com>

* config/sid.exp (sid_start): Use `remote_spawn' instead of `spawn.'
Deprecate $sid_spawn_id.
(sid_exit): Remove code necessary only for `spawn.'

2001-01-25  matthew green  <mrg@redhat.com>

* config/sid.exp (sid_start): Handle sim,protocol of `sid.'

23 years ago* typo fix
Frank Ch. Eigler [Fri, 4 May 2001 17:46:00 +0000 (17:46 +0000)]
* typo fix

23 years ago* m32r disasm bug fix
Frank Ch. Eigler [Fri, 4 May 2001 17:45:19 +0000 (17:45 +0000)]
* m32r disasm bug fix

2001-05-04  Frank Ch. Eigler  <fche@redhat.com>

* m32r-dis.c, -asm.c, -ibld.c: Regenerated with disassembler fixes.

2001-05-04  Frank Ch. Eigler  <fche@redhat.com>

* cgen-dis.in (print_insn): Remove call to read_insn.  Instead,
assume incoming buffer already has the base insn loaded.  Handle
case of smaller-than-base instructions for variable-length case.

23 years agoAssorted fixes to pinsrw, pextrw, pmovmskb, movmskp, maskmovq.
Alan Modra [Fri, 4 May 2001 11:10:54 +0000 (11:10 +0000)]
Assorted fixes to pinsrw, pextrw, pmovmskb, movmskp, maskmovq.

23 years agoSet EF_ARM_HASENTRY if the start address is set.
Nick Clifton [Fri, 4 May 2001 08:32:21 +0000 (08:32 +0000)]
Set EF_ARM_HASENTRY if the start address is set.

23 years agoPhase 1 of the ptid_t changes. gdb-post-ptid_t-2001-05-03
Kevin Buettner [Fri, 4 May 2001 04:15:33 +0000 (04:15 +0000)]
Phase 1 of the ptid_t changes.

23 years ago* configure.in (noconfigdirs) [*-cygwin*, *-mingw*, *-beos]: Disable
Alexandre Oliva [Thu, 3 May 2001 20:31:54 +0000 (20:31 +0000)]
* configure.in (noconfigdirs) [*-cygwin*, *-mingw*, *-beos]: Disable
libgcj.

23 years ago * gdbtk.c (gdbtk_init): Include the command "warp_pointer"
Keith Seitz [Thu, 3 May 2001 18:13:21 +0000 (18:13 +0000)]
    * gdbtk.c (gdbtk_init): Include the command "warp_pointer"
        for all platforms. Used for testing ONLY.

        * util.tcl (gdbtk_read_defs): If there is an error reading
        the testsuite definition file, print the error message to
        stderr, not stdout. This will allow tcl to know that an error
        has occurred.
        (find_iwidgets_library): Make it work for running testsuites
        from installed directory.

        * main.tcl: If we failed to find iwidgets, check if the
        testsuite is running. If it is running, do not pop up
        a dialog box: just print out the error and exit.
        Initialize _test(verbose) for the testsuite.

23 years agoCompute value of _bfd_target_vector_entries based on the size of
Nick Clifton [Thu, 3 May 2001 17:49:49 +0000 (17:49 +0000)]
Compute value of _bfd_target_vector_entries based on the size of
 _bfd_target_vector and not bfd_target_vector.

23 years ago * rdi-share/devsw.c: Include <time.h> for struct tm gdb-pre-ptid_t-2001-05-03
Jonathan Larmour [Thu, 3 May 2001 13:42:12 +0000 (13:42 +0000)]
    * rdi-share/devsw.c: Include <time.h> for struct tm

23 years ago * config/djgpp/fnchange.lst: Add mappings for the new
Eli Zaretskii [Thu, 3 May 2001 13:25:21 +0000 (13:25 +0000)]
* config/djgpp/fnchange.lst: Add mappings for the new
opcodes/openrisc-* files.

23 years agoFix a typo.
Eli Zaretskii [Thu, 3 May 2001 10:24:19 +0000 (10:24 +0000)]
Fix a typo.

23 years ago2001-05-03 H.J. Lu <hjl@gnu.org>
H.J. Lu [Thu, 3 May 2001 06:18:09 +0000 (06:18 +0000)]
2001-05-03  H.J. Lu  <hjl@gnu.org>

* elfcode.h: Include "libiberty.h".

* elflink.h (elf_link_add_object_symbols): Set
elf_dt_name (abfd) to basename of the bfd filename.
(NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
of the bfd filename.

23 years ago * coff-alpha.c (reloc_nil): Likewise.
Andreas Jaeger [Thu, 3 May 2001 05:08:17 +0000 (05:08 +0000)]
    * coff-alpha.c (reloc_nil): Likewise.
        (alpha_ecoff_bad_format_hook): Likewise.
        (alpha_adjust_reloc_out): Likewise.
        (alpha_bfd_reloc_type_lookup): Likewise.
        (alpha_convert_external_reloc): Likewise.

23 years ago * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
Andreas Jaeger [Thu, 3 May 2001 04:46:27 +0000 (04:46 +0000)]
* elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
(elf_generic_info_to_howto_rel): Likewise.
* coff-alpha.c (reloc_nil): Likewise.
(alpha_ecoff_bad_format_hook): Likewise.
(alpha_adjust_reloc_out): Likewise.
(alpha_bfd_reloc_type_lookup): Likewise.
(alpha_convert_external_reloc): Likewise.
* elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
(elf64_alpha_reloc_bad): Likewise.
(elf64_alpha_reloc_gpdisp): Likewise.
(elf64_alpha_bfd_reloc_type_lookup): Likewise.
(elf64_alpha_info_to_howto): Likewise.
(elf64_alpha_add_symbol_hook): Likewise.
(elf64_alpha_create_got_section): Likewise.
(elf64_alpha_is_local_label_name): Likewise.
(elf64_alpha_merge_ind_symbols): Likewise.
* elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
(mips_elf64_get_reloc_upper_bound): Likewise.
* nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
(nlm_alpha_get_public_offset): Likewise.

23 years agoAdd gas and ld support for openrisc
Nick Clifton [Wed, 2 May 2001 18:14:31 +0000 (18:14 +0000)]
Add gas and ld support for openrisc

23 years ago2001-05-01 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Tue, 1 May 2001 20:39:51 +0000 (20:39 +0000)]
2001-05-01  Michael Snyder  <msnyder@redhat.com>

* lin-lwp.c: Change printf to fprintf_unfiltered.

23 years ago2001-05-01 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Tue, 1 May 2001 20:15:43 +0000 (20:15 +0000)]
2001-05-01  Michael Snyder  <msnyder@redhat.com>

* Makefile.in: Add rules for thread-db.o, lin-lwp.o, proc-service.o.

23 years ago * config/rs6000/tm-rs6000.h (IN_SOLIB_RETURN_TRAMPOLINE): Define.
Nicholas Duffek [Tue, 1 May 2001 19:36:11 +0000 (19:36 +0000)]
* config/rs6000/tm-rs6000.h (IN_SOLIB_RETURN_TRAMPOLINE): Define.
(rs6000_in_solib_return_trampoline): Declare.
* rs6000-tdep.c (rs6000_in_solib_return_trampoline): New
function.
(rs6000_skip_trampoline_code): Skip bigtoc fixup code.
* xcoffread.c (read_xcoff_symtab): Perform the ISFCN function
check after the CSECT check rather than before it.  Allocate
separate symtabs for CSECTs whose names begin with '@'.
(scan_xcoff_symtab): Don't ignore symbols beginning with '@'.
Activate the misc_func_recorded mechanism for whose names begin
with '@'.

23 years ago*** empty log message ***
Eli Zaretskii [Tue, 1 May 2001 08:54:08 +0000 (08:54 +0000)]
*** empty log message ***

23 years ago* ppcnbsd-nat.c (fetch_inferior_registers)
J.T. Conklin [Mon, 30 Apr 2001 23:57:27 +0000 (23:57 +0000)]
* ppcnbsd-nat.c (fetch_inferior_registers)
(store_inferior_registers, fetch_core_registers): Changed to use
fpreg[] instead of r_regs[] to access floating point registers.

23 years ago2001-04-30 Elena Zannoni <ezannoni@redhat.com>
Elena Zannoni [Mon, 30 Apr 2001 20:57:31 +0000 (20:57 +0000)]
2001-04-30  Elena Zannoni  <ezannoni@redhat.com>

      * sh-tdep.c: Get rid of the function prototypes.
      (sh_sh4_build_float_register_type): Move earlier in file.
      (fv_reg_base_num): Ditto.
      (dr_reg_base_num): Ditto.

23 years ago2001-04-30 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Mon, 30 Apr 2001 20:25:07 +0000 (20:25 +0000)]
2001-04-30  Michael Snyder  <msnyder@redhat.com>

* thread-db.c: Revert 2001-04-26 change for debugging output.
* lin-lwp.c: Ditto.
* lin-lwp.c: Add set/show debug lin-lwp command.  Use this
command to turn extra debugging output on / off.

23 years ago2001-04-30 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Mon, 30 Apr 2001 18:21:17 +0000 (18:21 +0000)]
2001-04-30  Michael Snyder  <msnyder@redhat.com>

* thread-db.c: Revert 2001-04-26 change for debugging output.
* lin-lwp.c:   Ditto.

23 years agoAlways initialize `p'.
Andrew Cagney [Mon, 30 Apr 2001 17:09:19 +0000 (17:09 +0000)]
Always initialize `p'.

23 years ago2000-04-27 H.J. Lu <hjl@gnu.org>
H.J. Lu [Mon, 30 Apr 2001 16:13:26 +0000 (16:13 +0000)]
2000-04-27  H.J. Lu  <hjl@gnu.org>

* elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
only for ELF_LINK_FORCED_LOCAL.
* elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
* elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
* elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.

* elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
if the symbol has hidden or internal visibility.

23 years ago * elf32-hppa.c (final_link_relocate): Branch to .+8 for
Alan Modra [Mon, 30 Apr 2001 13:34:41 +0000 (13:34 +0000)]
* elf32-hppa.c (final_link_relocate): Branch to .+8 for
calls to undefined weak symbols.

23 years ago * buildsym.c (start_subfile): Use FILENAME_CMP instead of STREQ.
Eli Zaretskii [Mon, 30 Apr 2001 10:30:27 +0000 (10:30 +0000)]
* buildsym.c (start_subfile): Use FILENAME_CMP instead of STREQ.
(top-level): #include filenames.h.

* dwarf2read.c (dwarf2_start_subfile): Use IS_ABSOLUTE_PATH and
FILENAME_CMP, to DTRT on non-Posix platforms.
(top-level): #include filenames.h.

23 years ago * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
Andreas Jaeger [Mon, 30 Apr 2001 10:30:05 +0000 (10:30 +0000)]
* elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
R_X86_64_GOTPCREL, don't use assignments instead of comparisons.

23 years ago * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
Andreas Jaeger [Sun, 29 Apr 2001 13:42:45 +0000 (13:42 +0000)]
* elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
out handled entries.
(elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
(elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
(elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
GOT32.

23 years agoRevert the last change on aclocal.m4.
H.J. Lu [Fri, 27 Apr 2001 21:25:04 +0000 (21:25 +0000)]
Revert the last change on aclocal.m4.

23 years agoAdd support for arm-vxworks target
Nick Clifton [Fri, 27 Apr 2001 17:12:17 +0000 (17:12 +0000)]
Add support for arm-vxworks target

23 years agoZap romp host.
Andrew Cagney [Fri, 27 Apr 2001 16:40:29 +0000 (16:40 +0000)]
Zap romp host.

23 years agoAll 5.1 obsolete targets are done.
Andrew Cagney [Fri, 27 Apr 2001 16:20:51 +0000 (16:20 +0000)]
All 5.1 obsolete targets are done.

23 years ago (Changes from Kevin Buettner, with minor update by Don Howard.)
Don Howard [Fri, 27 Apr 2001 16:06:53 +0000 (16:06 +0000)]
(Changes from Kevin Buettner, with minor update by Don Howard.)

* i387-nat.c (i387_supply_fxsave, i387_fill_fxsave, i387_tag): Fix
typos in which hexadecimal constants were really intended to be
binary constants.
(i387_tag): Swap logic regarding zero vs non-zero exponents.

23 years agoAdded myself to the write-after-approval list.
Don Howard [Fri, 27 Apr 2001 15:53:06 +0000 (15:53 +0000)]
Added myself to the write-after-approval list.

23 years agoAdd openRISC support in opcodes
Nick Clifton [Fri, 27 Apr 2001 13:33:30 +0000 (13:33 +0000)]
Add openRISC support in opcodes

23 years ago(Changes from Daniel Berlin, with revisions by Jim Blandy.)
Jim Blandy [Fri, 27 Apr 2001 00:19:09 +0000 (00:19 +0000)]
(Changes from Daniel Berlin, with revisions by Jim Blandy.)

Abstract out operations specific to particular C++ ABI's, and
invoke them through a function table.  This removes the C++ ABI
dependencies scattered throughout the code, and allows us to
cleanly add support for new C++ ABI's.
* cp-abi.h, cp-abi.h, gnu-v2-abi.c, hpacc-abi.c: New files.
* c-typeprint.c, c-valprint.c, dbxread.c, eval.c, gdbtypes.c,
jv-typeprint.c, linespec.c, symtab.c, typeprint.c, valops.c:
#include "cp-abi.h".  These files all use functions now declared
there.
* symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P):
Deleted.  These services are now provided by functions declared in
cp-abi.h.
* value.h (value_rtti_type, value_virtual_fn_field): Same.
* values.c (value_virtual_fn_field): Same, for this definition.
* valops.c (value_rtti_type): Same.
* c-typeprint.c (c_type_print_base): Use the functions from
"cp-abi.h", instead of the old macros, or hard-coded ABI-specific
tests.
* dbxread.c (record_minimal_symbol): Same.
* gdbtypes.c (get_destructor_fn_field, virtual_base_index,
virtual_base_index_skip_primaries): Same.
* jv-typeprint.c (java_type_print_base): Same.
* linespec.c (find_methods, decode_line_1): Same.
* symtab.c (gdb_mangle_name): Same.
* Makefile.in (SFILES): Add the new .c files mentioned above.
(cp_abi_h): New variable.
(COMMON_OBS): Add gnu-v2-abi.o, hpacc-abi.o, and cp-abi.o.
(cp-abi.o, gnu-v2-abi.o, hpacc-abi.o): New targets.
(c-typeprint.o, c-valprint.o, dbxread.o, eval.o, gdbtypes.o,
jv-typeprint.o, symtab.o, linespec.o, typeprint.o, valops.o): Add
dependency on $(cp_abi_h).

23 years ago2001-04-26 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Thu, 26 Apr 2001 23:14:20 +0000 (23:14 +0000)]
2001-04-26  Michael Snyder  <msnyder@redhat.com>

* thread-db.c (_initialize_thread_db): Add set/show command
"debug-linux-threads" for debugging output.
* lin-lwp.c (various): Use global "debug_linux_threads to
turn on extra debugging output.

23 years ago2001-04-26 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Thu, 26 Apr 2001 22:35:08 +0000 (22:35 +0000)]
2001-04-26  Michael Snyder  <msnyder@redhat.com>

* lin-lwp.c: Minor cleanups in comments.

23 years ago2001-04-26 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Thu, 26 Apr 2001 22:10:42 +0000 (22:10 +0000)]
2001-04-26  Michael Snyder  <msnyder@redhat.com>

* target.c (normal_pid_to_str): Get rid of an ancient hack.
* remote.c (remote_pid_to_str): New function for remote target.

23 years ago* Makefile.in (idecode.o, op_utils.o, semantics.o, simops.o):
Alexandre Oliva [Thu, 26 Apr 2001 19:23:16 +0000 (19:23 +0000)]
* Makefile.in (idecode.o, op_utils.o, semantics.o, simops.o):
Depend on targ-vals.h.

23 years ago2001-04-26 H.J. Lu <hjl@gnu.org>
H.J. Lu [Thu, 26 Apr 2001 19:09:20 +0000 (19:09 +0000)]
2001-04-26  H.J. Lu  <hjl@gnu.org>

* elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
valid.

23 years ago* configure.in (noconfigdirs): Don't reset it from scratch in the
Alexandre Oliva [Thu, 26 Apr 2001 05:42:15 +0000 (05:42 +0000)]
* configure.in (noconfigdirs): Don't reset it from scratch in the
target case; only append to it.

23 years ago* configure.in (noconfigdirs) [hppa*-*-*, mips*-*-irix6*,
Alexandre Oliva [Thu, 26 Apr 2001 05:32:29 +0000 (05:32 +0000)]
* configure.in (noconfigdirs) [hppa*-*-*, mips*-*-irix6*,
sparc-*-solaris2.8]: Disable ${libgcj}.

23 years ago* configure.in (libgcj_saved): Copy from $libgcj.
Alexandre Oliva [Wed, 25 Apr 2001 21:41:21 +0000 (21:41 +0000)]
* configure.in (libgcj_saved): Copy from $libgcj.
(libgcj): Zero out if --enable-libgcj; add to noconfigdirs is
--disable-libgcj.

23 years ago* thanks, nickc
Frank Ch. Eigler [Wed, 25 Apr 2001 21:14:28 +0000 (21:14 +0000)]
* thanks, nickc

2001-04-25  Frank Ch. Eigler  <fche@redhat.com>

* sim-load.c (sim_load_file): Put it back [...]

23 years ago* externalize a function
Frank Ch. Eigler [Wed, 25 Apr 2001 21:08:02 +0000 (21:08 +0000)]
* externalize a function

2001-04-25  Frank Ch. Eigler  <fche@redhat.com>

* bfd-in.h (bfd_cache_close): Declare newly exported function.
* bfd-in2.h: Regenerated.

23 years agoFix autoconf breakage + commit target.c, omitted in previous delta
Nick Clifton [Wed, 25 Apr 2001 19:09:29 +0000 (19:09 +0000)]
Fix autoconf breakage + commit target.c, omitted in previous delta

23 years ago* c-typeprint.c (c_type_print_cv_qualifier): Don't print `const'
Jim Blandy [Tue, 24 Apr 2001 23:12:50 +0000 (23:12 +0000)]
* c-typeprint.c (c_type_print_cv_qualifier): Don't print `const'
qualifier on C++ references; all references are innately const.

23 years ago* sparc.h: Fix typo.
DJ Delorie [Tue, 24 Apr 2001 18:32:27 +0000 (18:32 +0000)]
* sparc.h: Fix typo.

23 years ago * merge.c (struct sec_merge_hash_entry): Add alignment field.
Jakub Jelinek [Tue, 24 Apr 2001 17:55:57 +0000 (17:55 +0000)]
* merge.c (struct sec_merge_hash_entry): Add alignment field.
(struct sec_merge_hash): Remove alignment_power.
(sec_merge_hash_newfunc): Clear alignment.
(sec_merge_hash_lookup): Pass alignment as argument.
Use hashp->root.next, not hashp->next to walk the hash chain.
If a string already in the hashtable does not have required
alignment, create a new hashtable entry.
(sec_merge_init): Remove alignment_power argument.
(sec_merge_add): Add alignment argument.
(sec_merge_emit): Alignment is now a per-entity thing, not per
section.
(_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
for proper alignment.
Pass alignment information to sec_merge_add.

23 years ago* gdb.c++/templates.exp: If we see the prompt for the overload
Jim Blandy [Tue, 24 Apr 2001 17:47:42 +0000 (17:47 +0000)]
* gdb.c++/templates.exp: If we see the prompt for the overload
list, but we haven't recognized any of the longer patterns,
arrange for this test to fail, not hang.

23 years ago* gdb.c++/classes.exp (ptype class A): Tolerate whitespace
Jim Blandy [Tue, 24 Apr 2001 17:39:14 +0000 (17:39 +0000)]
* gdb.c++/classes.exp (ptype class A): Tolerate whitespace
variations.

23 years agoz8k fixes
Nick Clifton [Tue, 24 Apr 2001 15:22:25 +0000 (15:22 +0000)]
z8k fixes

23 years agoAdd OpenRISC support
Nick Clifton [Tue, 24 Apr 2001 15:08:16 +0000 (15:08 +0000)]
Add OpenRISC support

23 years ago * generic/gdbtk-cmds.c (gdb_entry_point): Return an empty
Keith Seitz [Mon, 23 Apr 2001 20:28:28 +0000 (20:28 +0000)]
* generic/gdbtk-cmds.c (gdb_entry_point): Return an empty
string when there is no active target (i.e., there is no
entry point to return yet).

23 years ago * generic/gdbtk-cmds.c (gdb_get_breakpoint_info): If unable
Keith Seitz [Mon, 23 Apr 2001 20:27:54 +0000 (20:27 +0000)]
* generic/gdbtk-cmds.c (gdb_get_breakpoint_info): If unable
to find the requested breakpoint for lookup, check if
it is about to be deleted and return information about
that breakpoint.
(gdb_get_tracepoint_info): Ditto for tracepoints.
* generic/gdbtk-hooks.c (gdbtk_deleted_bp): New global.
(gdbtk_delete_breakpoint): Remember the deleted breakpoint
for gdb_get_breakpoint_info, in case it is called during
the event notification.
(gdbtk_delete_tracepoints): Ditto for tracepoints.

23 years ago2001-04-22 Michael Chastain <chastain@redhat.com>
Michael Chastain [Mon, 23 Apr 2001 17:02:05 +0000 (17:02 +0000)]
2001-04-22  Michael Chastain  <chastain@redhat.com>

* gdb.c++/local.exp: Use the 'runto' library function.
* gdb.c++/namespace.exp: Likewise.
* gdb.c++/overload.exp: Likewise.

23 years ago2001-04-23 Bo Thorsen <bo@suse.de>
Andreas Jaeger [Mon, 23 Apr 2001 08:00:14 +0000 (08:00 +0000)]
2001-04-23  Bo Thorsen  <bo@suse.de>

* x86-64.h: Add vtable support.

2001-04-23  Bo Thorsen  <bo@suse.de>

* elf64-x86-64.c: Add c++ vtable hack.
Small whitespace and comment changes.

23 years agoRevert call to bfd_cache_close().
Andrew Cagney [Sat, 21 Apr 2001 22:50:55 +0000 (22:50 +0000)]
Revert call to bfd_cache_close().

23 years agoOther half of SetVariableEvent:
Keith Seitz [Fri, 20 Apr 2001 18:47:33 +0000 (18:47 +0000)]
Other half of SetVariableEvent:

* library/srctextwin.ith (handle_set_hook): Rename to set_variable.
* library/srctextwin.itb (set_variable): Handle SetVariableEvent.
(constructor): Remove gdb_set_hook.
(destructor): Ditto.
* library/srcbar.itcl: Inherit from GDBEventHandler.
(set_hook): Rename to set_variable and handle SetVariableEvent.
(constructor): Remove gdb_set_hook.
(destructor): Ditto.
* library/regwin.ith (handle_set_hook): Renamed to set_variable.
* library/regwin.itb (set_variable): Handle SetVariableEvent.
(constructor): Remove gdb_set_hook.
(destructor): Ditto.
* library/kod.ith (set_os): Renamed to "set_variable".
* library/kod.itb (set_variable): Handle SetVariableEvent.
(constructor): Remove gdb_set_hook.
(destructor): Ditto.
* library/tclIndex: Regenerated.

23 years agoEvent model revamp for "gdb_set_hook".
Keith Seitz [Fri, 20 Apr 2001 17:20:02 +0000 (17:20 +0000)]
Event model revamp for "gdb_set_hook".

* library/interface.tcl (gdbtk_tcl_set_variable): New proc.
* library/gdbevent.ith (SetVariableEvent): New event.
* library/gdbevent.itb (SetVariableEvent::get): Override
GDBEvent::get.
* library/ehandler.ith (set_variable): New public method.
* generic/gdbtk-hooks.c (gdbtk_set_hook): Let inteface function
gdbtk_tcl_set_variable do all the work.
* tclIndex: Regenerated.

23 years ago* event-top.h: Fix formatting.
Mark Kettenis [Fri, 20 Apr 2001 14:25:59 +0000 (14:25 +0000)]
* event-top.h: Fix formatting.

23 years ago* ltconfig, ltmain.sh, ltcf-cxx.sh: Upgraded to libtool 1.4a
Alexandre Oliva [Fri, 20 Apr 2001 09:28:05 +0000 (09:28 +0000)]
* ltconfig, ltmain.sh, ltcf-cxx.sh: Upgraded to libtool 1.4a
1.641.2.228.

23 years agoObsolete MPW as host.
Andrew Cagney [Thu, 19 Apr 2001 23:56:14 +0000 (23:56 +0000)]
Obsolete MPW as host.

23 years agoWhoops. Missed a file for the new event model check-in...
Keith Seitz [Thu, 19 Apr 2001 22:55:26 +0000 (22:55 +0000)]
Whoops. Missed a file for the new event model check-in...

23 years agoBreakpoint/tracepoint event notification using new event model...
Keith Seitz [Thu, 19 Apr 2001 22:51:02 +0000 (22:51 +0000)]
Breakpoint/tracepoint event notification using new event model...

* generic/gdbtk-cmds.c (gdb_set_bp): Use create_breakpoint_hook
to notify gui of changes.
(gdb_set_bp_addr): Ditto.
(gdb_get_breakpoint_info): Update comments to match reality.
* generic/gdbtk-hooks.c (breakpoint_notify): Only pass the
breakpoint number which generated the event.
(tracepoint_notify): Ditto for tracepoints.
* library/interface.tcl (gdb_breakpoint_change_hook): Mark
as deprecated and comment out definition.
(gdbtk_tcl_breakpoint): Use new GDBEvent event "breakpoint"
to notify rest of UI about breakpoint event.
(gdbtk_tcl_tracepoint): Ditto for "tracepoint" event.
* library/bpwin.ith (update): Renamed to "breakpoint".
(breakpoint): New public method.
(tracepoint): New public method.
(bp_add): Take event as argument instead of number.
(bp_modify): Ditto.
(bp_delete): Ditto.
* library/bpwin.itb (constructor): Remove
gdb_breakpoint_changed_hook.
(destructor): Ditto.
(build_win): Insert any existing breakpoints by
making BreakpointEvents for them.
(breakpoint): Renamed from "update" to handle
breakpoint events.
Remove code to deal with tracepoints.
(tracepoint): New method to handle tracepoint
events.
(bp_add): Deal with breakpoint events, not breakpoint
numbers.
(bp_modify): Ditto.
(bp_delete): Ditto.
* library/srctextwin.ith: Inherit from GDBWin.
(breakpoint): New public method.
(tracepoint): New public method.
* library/srctextwin.itb (constructor): Remove
gdb_breakpoint_changed_hook.
(destructor): Ditto.
(breakpoint): New method to handle breakpoint event.
(tracepoint): New method to handle tracepoint event.
(do_bp): Handle duplicate breakpoints for asm, too.
(remove_bp_at_line): Delete breakpoints by number, not
linespec. clear_command removes breakpoints from the
breakpoint_chain BEFORE deleting the breakpoint. delete_command
does this afterward (so we can call gdb_get_breakpoint_info on
an about-to-be-deleted breakpoint).