aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2002-12-12 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.Alan Modra2-2/+5
(md_show_usage): Fix signed/unsigned warning.
2002-12-12 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.Alan Modra2-27/+16
(calcop): Ditto for reg_prefix var. (hexval): Add cast to fix signed/unsigned warning. (md_number_to_disp): Delete unused function. (md_number_to_field): Likewise. (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl. (match_name): Prototype. (get_bf2): Prototype. (get_bf_offset_expression): Prototype.
2002-12-12 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.Alan Modra3-40/+52
(md_undefined_symbol <ignore>): Likewise. (md_create_short_jump <all args>): Likewise. (md_create_long_jump <all args>): Likewise. (md_convert_frag <abfd, sec>): Likewise. (md_apply_fix3 <segment>): Likewise. (md_section_align <segment>): Likewise. (md_pcrel_from_section <sec>): Likewise. (tc_gen_reloc <section>): Likewise. (reg_m, reg_n, immediate): Delete unused vars. (dump_literals): Fix signed/unsigned warning. (enter_literal): Likewise. (parse_imm): Likewise. Also fix format string. (parse_mem): Remove unused var. (md_assemble <LS>): Abort on unexpected inst. (md_atof): Remove declaration of atof_ieee. (md_parse_option): Remove unused vars. (md_apply_fix3): Fix format strings, cast args. (tc_gen_reloc): Delete unused var. * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
2002-12-12 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.Alan Modra2-30/+20
(md_undefined_symbol <name>): Likewise. (md_convert_frag <abfd>): Likewise. (tc_gen_reloc <seg>): Likewise. (check_operand <insn>): Likewise. (md_convert_frag): Fix format strings. (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
2002-12-12 * config/tc-openrisc.c (ignore_pseudo): Prototype.Alan Modra3-9/+11
(md_atof): Remove declaration of atof_ieee. * config/tc-or32.c (parse_operand): Prototype non-BFD too. (md_apply_fix3): Fix bogus >>='s. (md_undefined_symbol): Delete unused var.
2002-12-12* elf-m10300.c (elf32_mn10300_link_hash_newfunc): ReorderAlexandre Oliva2-1/+6
initializers to match struct declaration.
2002-12-12 * pj.h (pj_opc_info_t): Add union.Alan Modra6-17/+50
* pj-dis.c (print_insn_pj): Adjust for pj_opc_info_t change. * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype. (c_to_r, ipush_code, fake_opcode, alias): Likewise. (fake_opcode): Adjust for pj_opc_int_t change. (md_begin): Likewise. (md_assemble): Likewise. (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc instead of non-existent third arg of parse_exp_save_ilp. (md_parse_option): Correct "little" and "big" calls.
2002-12-12 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.Alan Modra2-2/+7
(md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED. (tc_gen_reloc <section>): Likewise.
2002-12-12 * config/tc-tic30.c: #include stdarg.h or varargs.h.Alan Modra5-97/+100
(debug): Rewrite using VA_* macros. (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args. (md_convert_frag): Likewise. (md_parse_option): Likewise. (md_show_usage): Likewise. (md_undefined_symbol): Likewise. (tc_gen_reloc): Likewise. (md_operand): Likewise. (tc_aout_pre_write_hook): Delete. (struct tic30_insn): Make "operands" unsigned. (struct tic30_par_insn): Likewise. (md_assemble): Likewise for "count", "i" and "numops". (tic30_parallel_insn): Likewise for vars here. (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison. * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty. * config/tc-tic80.c (obj_coff_section): Delete declaration. (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args. (md_undefined_symbol): Likewise. (md_parse_option): Likewise. (md_convert_frag): Likewise. (tc_coff_symbol_emit_hook): Likewise. (md_atof): Remove declaration of atof_ieee. (const_overflow): Warning fixes, tidy. (get_operands): Delete unused vars. (internal_error_a): Adjust format string to expect a long for arg. (find_opcode): Warning fixes, simplify. (build_insn): Cast internal_error_a arg. (md_begin): Likewise. (md_apply_fix3): Likewise. (md_assemble): Delete unused var. * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
2002-12-12 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.Alan Modra5-2340/+1546
(whatreg, parse_reg, parse_exp): Make static, prototype. (checkfor, regword, regaddr, get_ctrl_operand): Prototype. (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise. (get_operand, get_operands, get_specific, newfix): Likewise. (apply_fix, build_bytes): Likewise. (md_atof): Remove declaration of atof_ieee. (tc_aout_fix_to_chars): Delete. (md_begin): Constify "opcode". Don't try to init opcode->idx. Fix s_unseg call. (md_parse_option): Fix s_segm and s_unseg calls. * z8kgen.c: Include "libiberty.h". (opt, args, toks): Fix initializer warnings. (chewname): Make "name" a char **. Return mnemonic trimmed of operands. (gas): Improve emitted "DO NOT EDIT" warning. Format emitted opcode_entry_type, and make "nicename" and "name" const. Make z8k_table const too. Formatting. Generate idx as gas needs it. * z8k-opc.h: Regenerate.
2002-12-12 * dlltool.c (mcore_elf_gen_out_file): Replace all occurrences ofAlan Modra3-45/+33
dyn_string_append with dyn_string_append_cstr. * emul_aix.c (ar_emul_aix_create): Remove unused function.
2002-12-12Comment typo fixes.Alan Modra6-6/+15
2002-12-12 * elf32-i386.c (elf_i386_finish_dynamic_sections): Add output_offsetAlan Modra4-42/+79
to DT_JMPREL. Use srelplt input section size for DT_PLTRELSZ and DT_RELSZ adjustment, not output section. Avoid writing tags when unchanged. Don't assume linker script is sane, adjust DT_REL too. * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Just use raw size of srelplt for DT_PLTRELSZ. Use srelplt input section size for DT_RELASZ adjustment, not output section. Avoid writing tags when unchanged. Adjust DT_RELA. * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Tweaks for better formatting. Avoid writing tags when unchanged. Adjust DT_RELA.
2002-12-12* Makefile.tpl (configure-target-rda): Depend on $(ALL_GCC_C).Alexandre Oliva3-0/+7
* Makefile.in: Rebuilt.
2002-12-125.3 released.Andrew Cagney1-0/+4
2002-12-12* elfxx-mips.c (mips_elf_calculate_relocation): Don't divideAlexandre Oliva2-1/+5
addend by 4.
2002-12-12* gas/mips/beq.d: Comment out branches to undefined symbols,Alexandre Oliva15-122/+122
no longer supported. * gas/mips/beq.s: Likewise. * gas/mips/bge.d: Likewise. * gas/mips/bge.s: Likewise. * gas/mips/bgeu.d: Likewise. * gas/mips/bgeu.s: Likewise. * gas/mips/blt.d: Likewise. * gas/mips/blt.s: Likewise. * gas/mips/bltu.d: Likewise. * gas/mips/bltu.s: Likewise. * gas/mips/mips.exp: Change branch-misc-2 test to run_list_test. * gas/mips/branch-misc-2.d: Removed. * gas/mips/branch-misc-2.s: Added branches to undefined symbols. * gas/mips/branch-misc-2.l: New.
2002-12-12* tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.Alexandre Oliva2-43/+28
Adjust callers. (RELAX_BRANCH_RELOC_S2): Delete. (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches. Do not handle BFD_RELOC_16_PCREL. (macro_build, mips_ip): Likewise. (md_pcrel_from): Return 4 for undefined symbols regardless of mips_pic. (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches. Don't dereference howto if no such relocation is available. Do not apply hack for in-place zero addend in NEWABI. (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
2002-12-12* ld-mips-elf/mips-elf.exp: Remove branch-misc-2 test.Alexandre Oliva3-31/+5
* ld-mips-elf/branch-misc-2.d: Removed.
2002-12-12Alan Modra <amodra@bigpond.net.au>Alexandre Oliva2-1/+25
2002-12-12* config/tc-mn10300.c (set_arch_mach): Change argument type toAlexandre Oliva2-2/+10
avoid warnings. (r_register_name, xr_register_name): Add prototype declarations.
2002-12-12* elfxx-mips.c (struct mips_got_entry): New.Alexandre Oliva2-87/+144
(struct mips_got_info): Added got_entries field. (mips_elf_got_entry_hash, mips_elf_got_entry_eq): New functions. (mips_elf_local_got_index, mips_elf_got_page, mips_elf_got16_entry): Re-implement in terms of new... (mips_elf_create_local_got_entry): Rewrite to use got_entries. Change return type. (mips_elf_highest): Warning clean-up. (mips_elf_create_got_section): Initialize got_entries. (_bfd_mips_elf_check_relocs): Use got_entries to estimate local got size. (_bfd_mips_elf_size_dynamic_sections): Do not account for GOT_PAGE entries, since we now reuse GOT16 entries.
2002-12-12 * corelow.c (init_core_ops): Delete references to to_require_attachDaniel Jacobowitz10-173/+58
and to_require_detach. * exec.c (init_exec_ops): Likewise. * hppah-nat.c (child_follow_fork): Call hppa_require_attach and hppa_require_detach directly. * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete. * inftarg.c (child_detach): Remove. (child_detach_from_process): Rename to child_detach, remove after_fork argument. (child_attach): Remove. (child_attach_to_process): Rename to child_attach, remove after_fork argument. (init_child_ops): Delete references to to_require_attach and to_require_detach. * infttrace.c (hppa_require_attach): Update comment. * target.c (cleanup_target, update_current_target) (init_dummy_target, setup_target_debug): Delete references to to_require_attach and to_require_detach. (find_default_require_detach, find_default_require_attach) (debug_to_require_attach, debug_to_require_detach): Remove functions. * target.h (struct target_ops): Remove to_require_attach and to_require_detach. (target_require_attach, target_require_detach): Delete macros. (find_default_require_detach, find_default_require_attach): Delete prototypes. * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
2002-12-122002-12-11 Andrew Cagney <ac131313@redhat.com>Andrew Cagney3-0/+19
* frame.c (get_frame_extra_info): New function. * frame.h (get_frame_extra_info): Declare.
2002-12-12*** empty log message ***gdbadmin1-1/+1
2002-12-11daily updateAlan Modra1-1/+1
2002-12-112002-12-06 Andrew Cagney <ac131313@redhat.com>Andrew Cagney5-37/+54
* breakpoint.h (struct breakpoint): Replace frame with frame_id. (set_momentary_breaokpoint): Replace `struct frame_info' parameter with `struct frame_id'. (set_longjmp_resume_breakpoint): Ditto. * infrun.c (handle_inferior_event): Update. * breakpoint.c (watch_command_1, until_break_command): Update. * infrun.c (handle_inferior_event, check_sigtramp2): Update. (handle_inferior_event, step_over_function): Update. * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update. (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update. (set_momentary_breakpoint, deprecated_frame_in_dummy): Update. * infcmd.c (finish_command, run_stack_dummy): Update.
2002-12-11Convert complain() to complaint().Kevin Buettner2-195/+179
2002-12-112002-12-11 Andrew Cagney <cagney@redhat.com>Andrew Cagney6-17/+27
* frame.c (deprecated_get_frame_saved_regs): Rename get_frame_saved_regs. * frame.h (deprecated_get_frame_saved_regs): Update declaration. * sparc-tdep.c: Update. * hppa-tdep.c: Update. * h8500-tdep.c: Update.
2002-12-11 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)Kevin Buettner7-11/+22
(ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of ``char *'' for return and parameter types. * gdbarch.h, gdbarch.c: Regenerate. * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change return type from ``char *'' to ``const char *''. * c-typeprint.c (c_type_print_modifier): Make ``address_space_id'' const.
2002-12-112002-12-11 David Carlton <carlton@math.stanford.edu>David Carlton3-7/+35
* gdb.c++/m-data.exp: Add test for members that shadow global variables: see PR gdb/804. * gdb.c++/m-data.cc: Ditto.
2002-12-11* i386-tdep.c: Include "dummy-frame.h".Mark Kettenis2-4/+10
(i386_frame_chain, i386_frame_saved_pc): Replace DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame. (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
2002-12-11 * configure: Fix bug put in by gremlins.Nathanael Nerode2-1/+3
2002-12-112002-12-10 Nathanael Nerode <neroden@gcc.gnu.org>Nathanael Nerode4-41/+21
* Makefile.tpl: Substitute more autoconfily. * configure: Substitute more autoconfily. * Makefile.in: Regenerate.
2002-12-11Fix date on changelog entry :-/Andrew Cagney1-1/+1
2002-12-112002-12-10 Andrew Cagney <cagney@redhat.com>Andrew Cagney38-95/+246
* gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC. Change to a function with predicate. * gdbarch.h, gdbarch.c: Re-generate. * frame.c (get_prev_frame): Update. Test DEPRECATED_INIT_FRAME_PC_P. * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update. * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update. * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update. * alpha-tdep.c (alpha_gdbarch_init): Update. * mn10300-tdep.c (mn10300_gdbarch_init): Update. * mips-tdep.c (mips_gdbarch_init): Update. * i386-interix-tdep.c (i386_interix_init_abi): Update. * arm-tdep.c: Update comments. * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc. * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto. * frv-tdep.c (frv_gdbarch_init): Ditto. * x86-64-tdep.c (x86_64_init_abi): Ditto. * ia64-tdep.c (ia64_gdbarch_init): Ditto. * s390-tdep.c (s390_gdbarch_init): Ditto. * v850-tdep.c (v850_gdbarch_init): Ditto. * vax-tdep.c (vax_gdbarch_init): Ditto. * sh-tdep.c (sh_gdbarch_init): Ditto. * ns32k-tdep.c (ns32k_gdbarch_init): Ditto. * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto. * mcore-tdep.c (mcore_gdbarch_init): Ditto. * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto. * i386-tdep.c (i386_gdbarch_init): Ditto. * d10v-tdep.c (d10v_gdbarch_init): Ditto. * cris-tdep.c (cris_gdbarch_init): Ditto. * avr-tdep.c (avr_gdbarch_init): Ditto. * arm-tdep.c (arm_gdbarch_init): Ditto. * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro. (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
2002-12-11 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change toDaniel Jacobowitz10-253/+254
CHILD_FOLLOW_FORK. * hppah-nat.c (saved_vfork_pid): Add. (child_post_follow_vfork): Remove. (child_follow_fork): New function. (child_wait): Call detach_breakpoints after receiving the child vfork. Call child_resume directly instead of going through resume (). Make sure we have the exec before reporting the vfork. * inferior.h (follow_inferior_reset_breakpoints): Add prototype. * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove. (follow_fork): New function. Call target_follow_fork. (follow_inferior_reset_breakpoints): New function broken out from old follow_inferior_fork. (resume): Remove hack to follow exec after vfork. * inftarg.c (child_post_follow_vfork): Remove. (child_follow_fork): New function. (init_child_ops): Replace to_post_follow_vfork with to_follow_fork. * target.c (cleanup_target): Replace to_post_follow_vfork with to_follow_fork. (update_current_target): Likewise. (setup_target_debug): Likewise. (debug_to_post_follow_vfork): Remove. (debug_to_follow_fork): New function. * target.h (struct target_ops): Replace to_post_folow_vfork with to_follow_fork. (child_post_follow_vfork): Remove prototype. (child_follow_fork): Add prototype. (target_post_follow_vfork): Remove macro. (target_follow_fork): Add macro. testsuite/ * gdb.base/foll-vfork.exp: Re-enable test on HP/UX.
2002-12-11 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.Daniel Jacobowitz4-49/+113
(child_post_follow_vfork): Cancel pending exec event if we follow the parent. (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary events have been processed. Return a fake TARGET_WAITKIND_EXECD event at the following wait call if necessary. * infrun.c (follow_vfork): Don't follow_exec here. (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD case about HP/UX 10.20. Remove code pushed down to hppah-nat.c:child_wait. * infttrace.c (child_resume): Use TT_PROC_CONTINUE if vfork_in_flight is set.
2002-12-11 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNOREDaniel Jacobowitz4-32/+37
for the parent's fork event. * infrun.c (handle_inferior_event): Only expect one fork event. Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment. * target.h: Update comment for TARGET_WAITKIND_IGNORE.
2002-12-11*** empty log message ***gdbadmin1-1/+1
2002-12-10daily updateAlan Modra1-1/+1
2002-12-102002-12-10 Andrew Cagney <ac131313@redhat.com>Andrew Cagney2-10/+2
* PROBLEMS: Delete reference to PR gdb/725.
2002-12-102002-12-10 Andrew Cagney <ac131313@redhat.com>Andrew Cagney2-0/+5
* MAINTAINERS (gdb.c++): Add David Carlton.
2002-12-10fix spelling typoNick Clifton1-1/+1
2002-12-10Add support for displaying extension to DWARF2 used by Unified Parallel CNick Clifton5-6/+38
compiler.
2002-12-10Allow an otherwise unrepresentable read-only section that lies after .textNick Clifton3-36/+76
and before .data to be written into the output file and included in a_text.
2002-12-10* lib/ld-lib.exp (is_elf_format): Match NetBSD ELF targets.Jason Thorpe2-0/+17
2002-12-10 * emultempl/elf32.em (struct orphan_save): Add os_tail field.Alan Modra2-0/+28
(gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement list too.
2002-12-102002-12-09 Aldy Hernandez <aldyh@redhat.com>Aldy Hernandez3-4/+10
* gas/ppc/booke.d: Fix msync and mbar to reflect reality. * gas/ppc/e500.d: Fix m[tf]pmr to reflect reality.
2002-12-102002-12-09 David Carlton <carlton@math.stanford.edu>David Carlton3-2/+7
* cli/cli-setshow.c: #include <readline/tilde.h> after defs.h. * cli/cli-cmds.c: Ditto.