aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2002-12-132002-12-13 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston5-12/+330
* mi-cmds.c (-environment-directory) Change to use mi_cmd_env_dir, (-environment-cd): Change to use mi_cmd_env_cd,. (-environment-pwd): Change to use mi_cmd_env_pwd. (-environment-path): Change to use mi_cmd_env_path. * mi-cmds.h (mi_cmd_env_cd, mi_cmd_env_dir): New prototypes. (mi_cmd_env_path, mi_cmd_env_pwd): Ditto. * mi-cmd-env.c: New file. Part of fix for PR gdb/741. * gdbmi.texinfo (environment-cd): Update output and example. (environment-pwd): Ditto. (environment-dir): Update output, description, and examples. (environment-path): Ditto.
2002-12-132002-12-13 Andrew Cagney <ac131313@redhat.com>Andrew Cagney5-3/+137
* frame.h (frame_id_unwind): Declare. (struct frame_info): Add fields id_unwind, id_unwind_cache_p and id_unwind_cache. (frame_id_unwind_ftype): Declare. * frame.c (frame_id_unwind): New function. (set_unwind_by_pc): Add unwind_id parameter. Initialized. (create_new_frame, get_prev_frame): Pass id_unwind to set_unwind_by_pc. (frame_saved_regs_id_unwind): New function. (frame_saved_regs_id_unwind): New function. * dummy-frame.c (dummy_frame_id_unwind): New function. (struct dummy_frame): Add field id. (generic_push_dummy_frame): Initialize `id'. * dummy-frame.h (dummy_frame_id_unwind): Declare.
2002-12-132002-12-13 Andrew Cagney <ac131313@redhat.com>Andrew Cagney4-42/+28
* infcmd.c (run_stack_dummy): Create a frame ID directly and then pass that to set_momentary_breakpoint. Move comments to where they belong. * frame.h (set_current_frame): Delete declaration. * frame.c (set_current_frame): Delete function.
2002-12-132002-12-13 Andrew Cagney <ac131313@redhat.com>Andrew Cagney3-4/+18
* frame.c (frame_extra_info_zalloc): New function. * frame.h (frame_extra_info_zalloc): Declare.
2002-12-13 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introducedJoel Brobecker2-1/+6
in the previous prototype change to set_momentary_breakpoint.
2002-12-13Added --prefix-symbols <prefix> option to rename all symbols by adding theNick Clifton4-46/+140
given prefix to the begining of the symbol name. This is useful to provide name space seperation regardless of how the object file was created. Added --prefix-sections <prefix> and --prefix-alloc-sections <prefix> options to rename all sections (or all sections with the alloc flag set) by adding the given prefix to the begining of the symbol name.
2002-12-132002-12-12 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston3-1/+259
* COPYING.NEWLIB: Update list of alternate Regent of California licenses and discuss official revoking of advertising clause. * COPYING.LIBGLOSS: Ditto.
2002-12-13 * config/obj-vms.c: Formatting. Include fnctl.h.Alan Modra2-85/+165
(Create_VMS_Object_File): Fix creat call for sane unix systems. (Object_Record_Offset): Make it a size_t. (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning. (VMS_TBT_Routine_End <Size>): Make var unsigned long. (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT. (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED. (vms_fixup_data_section <data_size>): Add here instead. * config/e-criself.c: Fix typo in last change.
2002-12-13*** empty log message ***gdbadmin1-1/+1
2002-12-12 * config/e-criself.c: Fix typo in last change.Alan Modra2-3/+7
2002-12-12daily updateAlan Modra1-1/+1
2002-12-12 * pj-opc.c (pj_opc_info): Add braces around union initializer.Alan Modra2-511/+512
2002-12-12 * write.c (write_object_file): Fix signed/unsigned warning.Alan Modra9-67/+33
* config/e-crisaout.c (crisaout_bfd_name): Prototype. * config/e-criself.c (criself_bfd_name): Prototype. * config/obj-aout.c (s_sect): Remove unused function. * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED. * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF. (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED. * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise. * config/obj-vms.c (setup_basic_type <spnt>): Likewise. (VMS_RSYM_Parse <Current_Routine>): Likewise. (vms_fixup_text_section <text_siz>): Likewise. (synthesize_data_segment <data_size>): Likewise. (vms_fixup_xtors_section <sect_no>): Likewise. (structure_count): Don't use implicit int type.
2002-12-12 * config/tc-a29k.c (insert_sreg): Prototype.Alan Modra3-14/+29
(define_some_regs): Prototype, make static. (parse_operand): Likewise. (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED. (md_show_usage <stream>): Likewise. (md_section_align <segment>): Likewise. (md_convert_frag <all args>): Likewise. (md_estimate_size_before_relax <all args>): Likewise. (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s. * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
2002-12-12 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.Alan Modra2-14/+24
(md_undefined_symbol <name>): Likewise. (md_convert_frag <all args>): Likewise. (write_long <opcode>): Likewise. (tc_gen_reloc <seg>): Likewise. (md_estimate_size_before_relax <all args>): Likewise. (md_apply_fix3 <seg>): Likewise. (s_d30v_align <ignore>): Likewise. (build_insn): Correct format string. (md_apply_fix3): Likewise.
2002-12-12 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,Daniel Jacobowitz2-36/+8
and saw_child_exec. (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove references to saw_parent_fork, saw_child_fork, and saw_child_exec. (stop_stepping): Remove outdated check for child vfork events.
2002-12-12 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.Alan Modra2-17/+27
(md_undefined_symbol <name>): Likewise. (md_convert_frag <all args>): Likewise. (md_cgen_lookup_reloc <insn>): Likewise. (md_begin): Delete unused vars. (md_assemble): Likewise. (md_estimate_size_before_relax): Likewise. (fr30_relax_frag): #if 0 out, seems unused. (md_atof): Remove declaration of atof_ieee. (restore_colon): Prototype.
2002-12-12 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.Alan Modra2-3/+22
(frv_find_in_vliw): Likewise. (frv_debug_tomcat): Likewise. (frv_adjust_vliw_count): Likewise. (frv_tomcat_shuffle): Likewise. (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to frv_find_in_vliw call. (md_atof): Remove declaration of atof_ieee.
2002-12-12 * h8500-opc.h (h8500_table): Add missing initializers to quietAlan Modra5-981/+1026
warnings. * config/tc-h8500.c (cons): Delete declaration. (md_begin <opcode>): Constify. (displacement_size, immediate_size, absolute_size): Remove. (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED. (tc_crawl_symbol_chain <headers>): Likewise. (md_undefined_symbol <name>): Likewise. (tc_headers_hook <headers>): Likewise. (md_parse_option <c,arg>): Likewise. (md_show_usage <stream>): Likewise. (md_convert_frag <headers, seg>): Likewise. (tc_coff_symbol_emit_hook <ignore>): Likewise. (md_atof): Remove declaration of atof_ieee. (tc_aout_fix_to_chars): Remove unused function. (parse_reg): Prototype. (parse_exp): Prototype. (skip_colonthing): Prototype. Use &&, not & in logical expressions. (parse_reglist): Prototype. (get_operand): Prototype. (get_operands): Prototype. (get_specific): Prototype. Make "this_index" signed. (check): Prototype, make static. (insert): Prototype (build_relaxable_instruction): Prototype, make static. (build_bytes): Prototype. (wordify_scb): Prototype. * config/tc-h8500.h (start_label): Declare. (tc_coff_sizemachdep): Declare.
2002-12-12 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.Alan Modra2-21/+43
(i370_rmode <unused>): Likewise. (i370_csect <unused>): Likewise. (i370_dc <unused>): Likewise. (i370_ds <unused>): Likewise. (i370_elf_lcomm <unused>): Likewise. (i370_ltorg <ignore>): Likewise. (i370_using <ignore>): Likewise. (i370_drop <ignore>): Likewise. (i370_byte <ignore>): Likewise. (i370_tc <ignore>): Likewise. (md_estimate_size_before_relax <fragp, seg>): Likewise. (md_convert_frag <all args>): Likewise. (md_undefined_symbol <name>): Likewise. (md_pcrel_from_section <sec>): Likewise. (tc_gen_reloc <seg>): Likewise. (i370_section_letter): #if 0 unused functions. (i370_section_word, i370_section_type, i370_section_flags): Likewise. (symbol_locate): Prototype.
2002-12-12 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.Alan Modra2-22/+4
(md_number_to_disp, md_number_to_field): Remove. (md_apply_fix3): Correct format string and cast "fup".
2002-12-12 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.Alan Modra2-91/+117
(s_endian <ignore>): Likewise. (md_undefined_symbol <name>): Likewise. (tc_crawl_symbol_chain <headers>): Likewise. (tc_set_bal_of_call): Likewise. (tc_coff_symbol_emit_hook <symbolP>): Likewise. (i960_handle_align <fragp>): Likewise. (i960_validate_fix <this_segment_type>): Likewise (tc_gen_reloc <section>): Likewise. (tc_coff_symbol_emit_hook): Only define for OBJ_COFF. (struct memS, struct regop): Forward declare. (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args, get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb, parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop, reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax, targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype. (md_chars_to_number, md_number_to_imm): Make static, prototype. (md_number_to_field): Likewise. (md_number_to_disp): Remove unused function. (md_atof): Remove declaration of atof_ieee. (md_apply_fix3): Correct md_number_to_imm call.
2002-12-12 * config/tc-ip2k.c (md_assemble): Warning fix.Alan Modra2-6/+8
2002-12-12 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.Alan Modra3-11/+51
(fill_insn <ignore>): Likewise. (debug_sym <ignore>): Likewise. (md_undefined_symbol <name>): Likewise. (m32r_scomm <ignore>): Likewise. (md_convert_frag <abfd>): Likewise. (md_cgen_lookup_reloc <insn>): Likewise. (m32r_record_hi16 <seg>): Likewise. (md_estimate_size_before_relax): #if 0 old_fr_fix. (allow_m32rx): Prototype. (first_writes_to_seconds_operands): Prototype. (writes_to_pc): Prototype. (can_make_parallel): Prototype. (make_parallel): Prototype. (target_make_parallel): Prototype. (assemble_two_insns): Prototype. (m32r_record_hi16): Prototype. (md_atof): Remove declaration of atof_ieee. * config/tc-m32r.h (m32r_fix_adjustable): Declare. (m32r_force_relocation): Prototype. (m32r_elf_section_change_hook): Prototype.
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