aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2001-04-27(Changes from Daniel Berlin, with revisions by Jim Blandy.)Jim Blandy19-478/+972
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).
2001-04-262001-04-26 Michael Snyder <msnyder@redhat.com>Michael Snyder3-42/+49
* 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.
2001-04-262001-04-26 Michael Snyder <msnyder@redhat.com>Michael Snyder2-6/+7
* lin-lwp.c: Minor cleanups in comments.
2001-04-262001-04-26 Michael Snyder <msnyder@redhat.com>Michael Snyder3-5/+19
* target.c (normal_pid_to_str): Get rid of an ancient hack. * remote.c (remote_pid_to_str): New function for remote target.
2001-04-26* Makefile.in (idecode.o, op_utils.o, semantics.o, simops.o):Alexandre Oliva2-2/+7
Depend on targ-vals.h.
2001-04-262001-04-26 H.J. Lu <hjl@gnu.org>H.J. Lu2-1/+20
* elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is valid.
2001-04-26Add ability to pad code alignment frags with no-ops.Nick Clifton3-0/+127
2001-04-26* configure.in (noconfigdirs): Don't reset it from scratch in theAlexandre Oliva2-3/+8
target case; only append to it.
2001-04-26* configure.in (noconfigdirs) [hppa*-*-*, mips*-*-irix6*,Alexandre Oliva2-3/+25
sparc-*-solaris2.8]: Disable ${libgcj}.
2001-04-25* configure.in (libgcj_saved): Copy from $libgcj.Alexandre Oliva2-0/+22
(libgcj): Zero out if --enable-libgcj; add to noconfigdirs is --disable-libgcj.
2001-04-25* thanks, nickcFrank Ch. Eigler3-0/+9
2001-04-25 Frank Ch. Eigler <fche@redhat.com> * sim-load.c (sim_load_file): Put it back [...]
2001-04-25* externalize a functionFrank Ch. Eigler3-0/+11
2001-04-25 Frank Ch. Eigler <fche@redhat.com> * bfd-in.h (bfd_cache_close): Declare newly exported function. * bfd-in2.h: Regenerated.
2001-04-25Fix autoconf breakage + commit target.c, omitted in previous deltaNick Clifton6-171/+534
2001-04-25Check to see if the filename symbol has been initialised before extractingNick Clifton2-5/+11
its symbol index.
2001-04-252001-04-24 H.J. Lu <hjl@gnu.org>H.J. Lu2-5458/+3053
* configure: Regenerated with the right version of autoconf.
2001-04-24* c-typeprint.c (c_type_print_cv_qualifier): Don't print `const'Jim Blandy2-1/+10
qualifier on C++ references; all references are innately const.
2001-04-24* sparc.h: Fix typo.DJ Delorie2-1/+5
2001-04-24 * merge.c (struct sec_merge_hash_entry): Add alignment field.Jakub Jelinek2-47/+82
(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.
2001-04-24* gdb.c++/templates.exp: If we see the prompt for the overloadJim Blandy2-0/+5
list, but we haven't recognized any of the longer patterns, arrange for this test to fail, not hang.
2001-04-24* gdb.c++/classes.exp (ptype class A): Tolerate whitespaceJim Blandy2-1/+6
variations.
2001-04-24z8k fixesNick Clifton19-5754/+8144
2001-04-24Add OpenRISC supportNick Clifton23-3566/+7345
2001-04-232001-04-22 Michael Chastain <chastain@redhat.com>Michael Chastain4-54/+26
* gdb.c++/local.exp: Use the 'runto' library function. * gdb.c++/namespace.exp: Likewise. * gdb.c++/overload.exp: Likewise.
2001-04-232001-04-23 Bo Thorsen <bo@suse.de>Andreas Jaeger4-32/+99
* 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.
2001-04-21Revert call to bfd_cache_close().Andrew Cagney3-4/+6
2001-04-202000-04-20 Jason Eckhardt <jle@redhat.com>Jason Eckhardt2-1/+7
* config/tc-d10v.h (tc_frob_label): Update the symbol's frag since frag_now can change after d10v_cleanup is called.
2001-04-20* event-top.h: Fix formatting.Mark Kettenis2-17/+24
2001-04-20* ltconfig, ltmain.sh, ltcf-cxx.sh: Upgraded to libtool 1.4aAlexandre Oliva4-9/+18
1.641.2.228.
2001-04-19Obsolete MPW as host.Andrew Cagney14-1706/+1725
2001-04-19* bug fixFrank Ch. Eigler3-0/+10
2001-04-19 Frank Ch. Eigler <fche@redhat.com> * sim-utils.c (sim_analyze_program): Call bfd_cache_close after we're finished with its immediate use. * sim-load.c (sim_load_file): Ditto.
2001-04-19* i386-tdep.c (i386_frameless_function_invocation): New function.Mark Kettenis3-5/+26
* config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION): Redefine in terms of i386_frameless_function_invocation. Adjust comment. (i386_frameless_function_invocation): New prototype.
2001-04-192001-04-19 Andreas Jaeger <aj@suse.de>Andreas Jaeger2-15/+57
* elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions. (elf64_x86_64_plt_entry): Likewise. (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation. (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
2001-04-192001-04-18 Martin M. Hunt <hunt@redhat.com>Martin Hunt2-12/+19
* top.c (gdb_init): Don't call cli_out_new() to create global uiout if init_ui_hook is set. uiout will have to be initialized there.
2001-04-19#include "regcache.h".Andrew Cagney2-0/+5
2001-04-18* XScale coprocessor support.Matthew Green6-22/+284
2001-04-18 matthew green <mrg@redhat.com> * armcopro.c (write_cp15_reg): Set CHANGEMODE if endianness changes. (read_cp15_reg): Make non-static. (XScale_cp15_LDC): Update for write_cp15_reg() change. (XScale_cp15_MCR): Likewise. (XScale_cp15_write_reg): Likewise. (XScale_check_memacc): New function. Check for breakpoints being activated by memory accesses. Does not support the Branch Target Buffer. (XScale_set_fsr_far): New function. Set FSR and FAR for XScale. (XScale_debug_moe): New function. Set the debug Method Of Entry, if configured. (write_cp14_reg): Reset count counter if requested. * armdefs.h (struct ARMul_State): New members `LastTime' and `CP14R0_CCD' used for the timer/counters. (ARMul_CP13_R0_FIQ, ARMul_CP13_R0_IRQ, ARMul_CP13_R8_PMUS, ARMul_CP14_R0_ENABLE, ARMul_CP14_R0_CLKRST, ARMul_CP14_R0_CCD, ARMul_CP14_R0_INTEN0, ARMul_CP14_R0_INTEN1, ARMul_CP14_R0_INTEN2, ARMul_CP14_R0_FLAG0, ARMul_CP14_R0_FLAG1, ARMul_CP14_R0_FLAG2, ARMul_CP14_R10_MOE_IB, ARMul_CP14_R10_MOE_DB, ARMul_CP14_R10_MOE_BT, ARMul_CP15_R1_ENDIAN, ARMul_CP15_R1_ALIGN, ARMul_CP15_R5_X, ARMul_CP15_R5_ST_ALIGN, ARMul_CP15_R5_IMPRE, ARMul_CP15_R5_MMU_EXCPT, ARMul_CP15_DBCON_M, ARMul_CP15_DBCON_E1, ARMul_CP15_DBCON_E0): New defines for XScale registers. (XScale_check_memacc, XScale_set_fsr_far, XScale_debug_moe): Prototype. (ARMul_Emulate32, ARMul_Emulate26): Clean up function definition. (ARMul_Emulate32): Handle the clock counter and hardware instruction breakpoints. Call XScale_set_fsr_far() for software breakpoints and software interrupts. (LoadMult): Call XScale_set_fsr_far() for data aborts. (LoadSMult): Likewise. (StoreMult): Likewise. (StoreSMult): Likewise. * armemu.h (write_cp15_reg): Update prototype. * arminit.c (ARMul_NewState): Initialise CP14R0_CCD and LastTime. (ARMul_Abort): If XScale, check for FIQ and IRQ being enabled in CP13 register 0. * armvirt.c (GetWord): Call XScale_check_memacc(). (PutWord): Likewise.
2001-04-182001-04-17 Michael Snyder <msnyder@redhat.com>Michael Snyder2-1/+2
* i386-nat.c: Fix typo in comment.
2001-04-17* dlltool.c (do_default_excludes): Initialise to true.DJ Delorie2-1/+5
2001-04-17Fix thinko.Michael Snyder1-1/+1
2001-04-172001-04-17 Michael Snyder <msnyder@redhat.com>Michael Snyder2-0/+15
* solib.c (no_shared_libraries): New function. Discard all symbols from shared libraries. (_initialize_solib): Add command "nosharedlibrary" as complement to the command "sharedlibrary". Unloads symbols for all solibs.
2001-04-17* i386-tdep.c (i386_saved_pc_after_call): New function.Mark Kettenis3-5/+18
* config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Redefine in terms of i386_saved_pc_after_call. (i386_saved_pc_after_call): New prototype.
2001-04-17Obsolete NEWS and ISI systems (along with a few redundant m68k targets).Andrew Cagney20-629/+661
2001-04-172001-04-17 Michael Snyder <msnyder@redhat.com>Michael Snyder2-2/+29
* remote.c (remote_open_1): On opening the remote target, activate the solib_create_inferior_hook, so that it can detect when the target loads shared libraries. (remote_async_open_1): Ditto.
2001-04-172001-04-17 Michael Snyder <msnyder@redhat.com>Michael Snyder7-31/+77
* breakpoint.c (print_one_breakpoint): Handle 64-bit addresses. * tracepoint.c (tracepoints_info): Handle 64-bit addresses. * testsuite/gdb.trace/deltrace.exp: Allow for 64-bit addresses. * testsuite/gdb.trace/infotrace.exp: Ditto. * testsuite/gdb.trace/passcount.exp: Ditto. * testsuite/gdb.trace/while-stepping.exp: Ditto.
2001-04-172001-04-17 Michael Snyder <msnyder@redhat.com>Michael Snyder2-2/+8
* thread-db.c (check_thread_signals): When looping over all signals, ignore signal zero. (disable_thread_signals): Ditto.
2001-04-172001-04-17 Eirik Fuller <eirik@netapp.com>Michael Snyder2-1/+6
* thread.c (do_captured_thread_select): Allow the argument to the thread command to be an expression rather than a literal integer.
2001-04-17 * elf32-cris.c: Tweak comments related to dynamic linking.Hans-Peter Nilsson2-27/+118
(cris_elf_relocate_section): When not creating shared object, fill in the .got table for any symbol not in the dynamic symbol table. (elf_cris_finish_dynamic_symbol): When not creating shared object, only emit a .got.rela reloc if the symbol is in the dynamic symbol table. (cris_elf_check_relocs): Use variable r_type in all places rather than the original expression. Add default case in switch for reloc types. (elf_cris_size_dynamic_sections): Iterate over elf_cris_discard_excess_program_dynamics when not creating shared library. (elf_cris_discard_excess_dso_dynamics): Renamed from elf_cris_discard_copies. Correct typo, s/Rel/Rela/. (elf_cris_discard_excess_program_dynamics): New.
2001-04-17* i386-linux-tdep.c (i386_linux_saved_pc_after_call): UseMark Kettenis2-1/+6
read_memory_unsigned_integer instead of read_memory_integer.
2001-04-17 * solib-aix5.c (map_index_vs_section_name_okay): New function.Kevin Buettner2-2/+136
(aix5_relocate_main_executable): Don't use file offsets for determining corresponding sections and map file entries. Call map_index_vs_section_name_okay() to do this instead.
2001-04-172001-04-16 David O'Brien <obrien@FreeBSD.org>David O'Brien3-2/+7
* configure.in: Add the em type for FreeBSD targets. * configure: Regenerate. Approved by: Alan Modra <amodra@one.net.au> <20010414192409.C16364@squeak.one.net.au> Philip Blundell <philb@gnu.org> <E14o06W-0002IT-00@kings-cross.london.uk.eu.org>
2001-04-17Add code to retry certain open()s.Kevin Buettner2-9/+50