Commit Graph

48511 Commits

Author SHA1 Message Date
Andrew Cagney 67e27301b8 2005-05-30 Andrew Cagney <cagney@gnu.org>
* MAINTAINERS: Drop architecture and target vectors.
2005-05-30 18:35:12 +00:00
DJ Delorie e947292179 merge from gcc 2005-05-30 01:12:16 +00:00
gdbadmin d6dba7e9fc *** empty log message *** 2005-05-30 00:00:34 +00:00
Alan Modra 6cfc98393f daily update 2005-05-30 00:00:27 +00:00
Richard Henderson fabcb3612f * readelf.c (get_alpha_dynamic_type): New.
(get_dynamic_type): Call it.
2005-05-29 23:18:51 +00:00
Richard Henderson 484124bb04 * alpha.h (DT_ALPHA_PLTRO): New. 2005-05-29 23:18:26 +00:00
Richard Henderson 8d6d53d427 * emulparams/elf64alpha.sh (PLT): New.
(TEXT_PLT): New.
        * emultempl/alphaelf.em (disable_relaxation): New.
        (limit_32bit): Rename from elf64alpha_32bit; update all users.
        (elf64_alpha_use_secureplt): Declare.
        (bfd_elf64_alpha_vec, bfd_elf64_alpha_freebsd_vec): Declare.
        (alpha_after_open): New.
        (alpha_before_allocation): New.
        (OPTION_NO_RELAX, OPTION_SECUREPLT, OPTION_NO_SECUREPLT): New.
        (PARSE_AND_LIST_LONGOPTS): Include them.
        (PARSE_AND_LIST_OPTIONS): Likewise.
        (PARSE_AND_LIST_ARGS_CASES): Likewise.
        (LDEMUL_AFTER_OPEN, LDEMUL_BEFORE_ALLOCATION): New.
        * scripttempl/elf.sc (TEXT_PLT): New.
        (PLT): Use it.
2005-05-29 23:16:09 +00:00
Richard Henderson 6ec7057aa5 * configure.in (--enable-secureplt): New.
* elf64-alpha.c (INSN_LDA, INSN_LDAH, INSN_LDQ, INSN_BR): New.
        (INSN_SUBQ, INSN_S4SUBQ, INSN_JMP): New.
        (INSN_A, INSN_AB, INSN_ABC, INSN_ABO, INSN_AD): New.
        (elf64_alpha_use_secureplt): New.
        (OLD_PLT_HEADER_SIZE, OLD_PLT_ENTRY_SIZE): New.
        (NEW_PLT_HEADER_SIZE, NEW_PLT_ENTRY_SIZE): New.
        (PLT_HEADER_SIZE, PLT_ENTRY_SIZE): Conditionalize on secureplt.
        (ALPHA_ELF_LINK_HASH_PLT_LOC): Remove.
        (struct alpha_elf_link_hash_entry): Add plt_offset.
        (PLT_HEADER_WORD1, PLT_HEADER_WORD2, PLT_HEADER_WORD3): Remove.
        (PLT_HEADER_WORD4, PLT_ENTRY_WORD1, PLT_ENTRY_WORD2): Remove.
        (PLT_ENTRY_WORD3): Remove.
        (elf64_alpha_create_dynamic_sections): If secureplt, set SEC_READONLY
        on .plt and create .got.plt.
        (elf64_alpha_output_extsym): Remove .plt frobbing for symbol values.
        (get_got_entry): Initialize plt_offset.
        (elf64_alpha_want_plt): New.
        (elf64_alpha_check_relocs): Use it.
        (elf64_alpha_adjust_dynamic_symbol): Likewise.  Don't allocate
        plt entries here.
        (elf64_alpha_calc_got_offsets_for_symbol): Don't report internal
        error as user error.
        (elf64_alpha_size_plt_section_1): Allocate one plt entry per
        got subsection.
        (elf64_alpha_size_plt_section): Size .got.plt section.
        (elf64_alpha_size_rela_got_1): Don't allocate relocations if
        plt entries used.
        (elf64_alpha_size_dynamic_sections): Call elf64_alpha_size_plt_section.
        Add PLTRO DYNAMIC entry.
        (elf64_alpha_finish_dynamic_symbol): Generate secureplt format.
        (elf64_alpha_finish_dynamic_sections): Likewise.
2005-05-29 23:13:39 +00:00
Eli Zaretskii c24162389c * config/djgpp/fnchange.lst: Add mappings for linux-ppc-low.c and
linux-ppc64-low.c.
2005-05-29 07:36:10 +00:00
Bob Rossi 034dad6fa1 This is a cleanup change. It is the beggining of allowing GDB/MI to be
better understood (internally).
2005-05-29 03:13:19 +00:00
Joel Brobecker 0915f927ad * gdb.arch/alpha-step.c: New file.
* gdb.arch/alpha-step.exp: New testcase.
2005-05-29 01:58:53 +00:00
Joel Brobecker 551e4f2e42 * alpha-tdep.c (alpha_next_pc): Use correct register number
for floating-point branch instructions.
2005-05-29 01:54:44 +00:00
gdbadmin 3be16b6f91 *** empty log message *** 2005-05-29 00:00:33 +00:00
Alan Modra ef5a3c08cc daily update 2005-05-29 00:00:05 +00:00
Daniel Jacobowitz 4a5e53e83f PR backtrace/1760
* frame.c (backtrace_limit): Change type to int.
	(get_prev_frame): Update backtrace limit support.
	(_initialize_frame): Use add_setshow_integer_cmd for backtrace_limit.
2005-05-28 22:51:37 +00:00
Daniel Jacobowitz eee84df140 gdb/
* configure.tgt (powerpc64-*-linux*): Enable gdbserver.
	* regformats/reg-ppc64.dat: New file.
gdbserver/
	* Makefile.in (SFILES): Add linux-ppc64-low.c.
	(linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
	* configure.srv: Add powerpc64-*-linux*.
	* linux-ppc64-low.c: New file.
2005-05-28 22:09:04 +00:00
Daniel Jacobowitz 3133ddbf1d 2005-05-28 David Daney <ddaney@avtrex.com>
* elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections):  Move
	calculation of DT_RELSZ to occur after all dynamic relocations
	are created.
2005-05-28 22:00:27 +00:00
DJ Delorie 01e94249b6 merge from gcc 2005-05-28 19:49:24 +00:00
Daniel Jacobowitz cedea75781 From Wu Zhou <woodzltc@cn.ibm.com>:
* remote.c (struct gdb_ext_thread_info): Fix a comment typo.
	(remote_unpack_thread_info_response): Likewise.
2005-05-28 18:57:13 +00:00
Daniel Jacobowitz 3b113db73f * cli/cli-setshow.c (do_setshow_command): Partially revert previous
change.  Cast to "char **" for var_string.
2005-05-28 18:27:28 +00:00
Daniel Jacobowitz 03f4d4c7dc * cp-name-parser.y (parse_escape): Revert previous change. Return
the input character by default.
2005-05-28 16:48:58 +00:00
Daniel Jacobowitz c6826062e5 * dwarf2-frame.c (dwarf2_frame_prev_register): Use gdb_byte.
* i386-linux-nat.c (fetch_register, store_register, supply_gregset)
	(fill_gregset): Likewise.
	* i386-tdep.c (i386_frame_prev_register)
	(i386_sigtramp_frame_prev_register): Likewise.
	* linux-nat.c (linux_nat_xfer_memory, linux_nat_make_corefile_notes):
	Likewise.
	* linux-thread-db.c (thread_db_xfer_memory): Likewise.
	* remote.c (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint):
	Likewise.
	* target.c (debug_to_insert_hw_breakpoint)
	(debug_to_remove_hw_breakpoint, update_current_target): Likewise.
2005-05-28 16:44:29 +00:00
Andreas Jaeger 3652791261 2005-05-28 Eli Zaretskii <eliz@gnu.org>
* configure.in: Add snprintf and vsnprintf to AC_CHECK_DECLS.
	* config.in, configure: Regenerate.
2005-05-28 11:44:49 +00:00
Hans-Peter Nilsson 4a72630ae7 * MAINTAINERS: Change cris-elf state to non-broken.
* cp-name-parser.y (parse_escape): Initialize target_char to zero.
2005-05-28 08:49:13 +00:00
Hans-Peter Nilsson c318251408 * cris/Makefile.in (stamp-v32fmloop): Depend on stamp-v10fmloop. 2005-05-28 08:47:30 +00:00
Alan Modra 6cea420ad8 daily update 2005-05-28 00:00:07 +00:00
gdbadmin b27a77a4e8 *** empty log message *** 2005-05-28 00:00:04 +00:00
Mark Mitchell dae043d2cb * config/default.exp (CC): Use find_gcc.
(CFLAGS): Define, if no definition is provided.
	(CXX): Likewise.
	(CXXFLAGS): Likewise.
2005-05-27 17:27:03 +00:00
Orjan Friberg 5114e29d63 2005-05-27 Orjan Friberg <orjanf@axis.com>
* cris-tdep.c (crisv32_scan_prologue): Add.
	(cris_frame_unwind_cache, cris_skip_prologue): Call
	crisv32_scan_prologue when debugging CRISv32.
2005-05-27 14:36:13 +00:00
Orjan Friberg fafb59f131 * Tweaked last ChangeLog entry. 2005-05-27 13:51:06 +00:00
Orjan Friberg e2a2a3e8b6 2005-05-27 Orjan Friberg <orjanf@axis.com>
* cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
	(cris_frame_prev_register, cris_sigtramp_frame_prev_register)
	(cris_return_value): Use gdb_byte for byte buffers.
	(struct cris_frame_unwind, struct cris_frame_base): Fix formatting.
2005-05-27 13:47:59 +00:00
Zack Weinberg adbaf9485a * config/tc-arm.h (TC_FIX_TYPE): Change to int.
(TC_INIT_FIX_DATA): Initialize to 0, not NULL.
	* config/tc-arm.c (fix_new_arm): Remove now-unnecessary cast.
	(md_apply_fix3): Delete fix_is_thumb variable; refer to
	fixP->tc_fix_data directly in the sole place it was used.
	Explicitly truncate value, *valP, fixP->fx_addnumber, and
	fixP->fx_offset to 32 bits, for consistent behavior between 32-
	and 64-bit hosts.
2005-05-27 07:11:45 +00:00
Jan Beulich 5656b6b85e gas/
2005-05-27  Jan Beulich  <jbeulich@novell.com>

	* config/tc-ia64.c (struct proc_pending): New.
	(unwind): Replace proc_start with proc_pending.
	(unwind_diagnostic): Check unwind.proc_pending.sym.
	(dot_proc): Replace unwind.proc_start with unwind.proc_pending.sym.
	Check if previous proc not closed. Record all entry points.
	(dot_endp): Replace unwind.proc_start with unwind.proc_pending.sym.
	Set symbol sizes for entry points recorded in dot_proc. Check
	arguments for consistency with respective .proc's.
	(md_assemble): Replace unwind.proc_start with
	unwind.proc_pending.sym.

gas/testsuite/
2005-05-27  Jan Beulich  <jbeulich@novell.com>

	* gas/ia64/proc.l: Adjust.
2005-05-27 06:28:04 +00:00
Jan Beulich 75214fb04b gas/
2005-05-27  Jan Beulich  <jbeulich@novell.com>

	* config/tc-ia64.c (emit_one_bundle): Restrict scope of ptr, end_ptr,
	and last_ptr. Check all in-use slots for first one with non-NULL
	unwind_record. Don't reload end_ptr before second update round.
2005-05-27 06:25:22 +00:00
Chris Demetriou 79524e0524 2005-05-26 Chris Demetriou <cgd@netbsd.org>
* MAINTAINERS (Write After Approval): Remove myself.
2005-05-27 04:51:52 +00:00
Andrew Cagney c68a6671d7 2005-05-27 Andrew Cagney <cagney@gnu.org>
* jv-lang.c (get_java_utf8_name): Add cast.
	(evaluate_subexp_java): Use gdb_byte for buffers.
	* jv-valprint.c (java_value_print, java_value_print): Use gdb_byte
	for buffers.
	* scm-lang.c (scm_get_field, scm_unpack)
	(scm_evaluate_string): Use gdb_byte for buffers.
	(scm_lookup_name): Add cast.
	* scm-valprint.c (scm_scmval_print, scm_scmval_print): Use
	gdb_byte for buffers.
	* tui/tui.h (tui_get_command_dimension): Make parameters unsigned.
	* tui/tui.c (tui_get_command_dimension): Make parameters unsigned.
	* value.h (check_field): Change "name" to a string.
	* valops.c (check_field): Change "name" to a string.
	* scm-lang.h (scm_parse): Use gdb_byte for buffers.
	* source.c (get_current_source_symtab_and_line)
	(set_current_source_symtab_and_line): Initialize all fields of sal
	structures.
	* cli/cli-cmds.c (list_command): Use gdb_byte for buffers.
2005-05-27 04:39:33 +00:00
gdbadmin b4d165ff8c *** empty log message *** 2005-05-27 00:00:33 +00:00
Alan Modra 93396ada10 daily update 2005-05-27 00:00:06 +00:00
Andreas Schwab f93e81d68b * configure.host (HOSTING_LIBS): Add libunwind.a if it exists. 2005-05-26 22:23:15 +00:00
Chris Demetriou d81ffbc49a 2005-05-26 Chris Demetriou <cgd@netbsd.org>
* MAINTAINERS: Update my mail address, move myself to the
        "Past maintainers" section.
2005-05-26 21:37:09 +00:00
Chris Demetriou e70cb6cd9a 2005-05-26 David Ung <davidu@mips.com>
* mips.igen (mips32r2, mips64r2): New ISA models.  Add new model
        tags to all instructions which are applicable to the new ISAs.
        (do_ror, do_dror, ROR, RORV, DROR, DROR32, DRORV): Add, moved from
        vr.igen.
        * mips3264r2.igen: New file for MIPS 32/64 revision 2 specific
        instructions.
        * vr.igen (do_ror, do_dror, ROR, RORV, DROR, DROR32, DRORV): Move
        to mips.igen.
        * configure.ac (mipsisa32r2*-*-*, mipsisa64r2*-*-*): Add new targets.
        * configure: Regenerate.
2005-05-26 21:31:57 +00:00
Andrew Cagney 47b667dea5 2005-05-26 Andrew Cagney <cagney@gnu.org>
* command.h (add_setshow_integer_cmd): Make VAR an integer.
	* cli/cli-decode.c (add_setshow_integer_cmd): Update to match.
	* valops.c (value_string): Add a cast.
	* eval.c (evaluate_subexp_standard): Use gdb_byte for byte buffers.
	* breakpoint.c (re_enable_breakpoints_in_shlibs): Use gdb_byte for
	byte buffers.
	* target.h (struct target_ops): For to_insert_hw_breakpoint and
	to_remove_hw_breakpoint use gdb_byte for byte buffer parameters.
	* breakpoint.h (struct bp_location): Make shadow_contents a
	gdb_byte buffer.
	* cli/cli-setshow.c (do_setshow_command): Fix cast.
	* cli/cli-dump.c (restore_section_callback)
	(restore_binary_file): Use gdb_byte for byte buffers.
	* proc-service.c (ps_ptwrite, ps_ptread, ps_pdwrite): Fix casts.
	(ps_xfer_memory): Use gdb_byte for byte buffers.
	* tracepoint.c (mem2hex): Use gdb_byte for byte buffers, and char
	for string buffers.
	* ser-tcp.c (net_open): Make len a socklen_t.
2005-05-26 20:49:03 +00:00
Andrew Cagney ffed450932 2005-05-26 Andrew Cagney <cagney@gnu.org>
* gdb.texinfo: Note that Elena Zannoni, Fernando Nasser, and
	Andrew Cagney implemented the original GDB/MI.
2005-05-26 19:28:23 +00:00
Maciej W. Rozycki 1bc8074d91 * elfxx-mips.c (_bfd_mips_elf_section_processing): Warn and
stop processing of options if one of invalid size is
encountered.
(_bfd_mips_elf_section_from_shdr): Likewise.
(_bfd_mips_elf_fake_sections): Reset the type of empty special
sections.
2005-05-26 18:51:11 +00:00
Jim Wilson 7c06efaa64 Fix issues noticed while reviewing Jan Beulich's MLX template bug fix.
* config/tc-ia64.c (extra_goodness): Update comment.
(md_begin): Add debugging code to print best_template table.
2005-05-26 18:46:12 +00:00
Richard Henderson 75fed80d13 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Remove
plt_old_section, plt_old_value.
        (elf64_alpha_adjust_dynamic_symbol): Don't set it.
        (elf64_alpha_size_plt_section_1): Don't use it.
2005-05-26 16:14:33 +00:00
Jakub Jelinek 24639c7dfe * elfcode.h (elf_object_p): Fail if e_shoff != 0, e_shnum == 0 and
first shdr has sh_size == 0.  Fail if e_shnum is large to cause
	arithmetic overflow when allocating the i_shdr array.
	Sanity check sh_link and sh_info fields.  Fix e_shstrndx sanity check.
2005-05-26 07:41:13 +00:00
Richard Henderson a7519a3c05 * elf64-alpha.c: Update all function definitions to ISO C. Remove
all function prototypes; rearrange functions into def-use order.
2005-05-26 07:14:03 +00:00
Jim Wilson 913ccbda02 Patch from Steve Ellcey for ia64-hpux testsuite failure.
gas/ia64/global.d: Change --sym to --syms.
2005-05-26 00:41:43 +00:00
gdbadmin fc5e907626 *** empty log message *** 2005-05-26 00:00:37 +00:00