aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2004-02-102004-02-10 Andrew Cagney <cagney@redhat.com>Andrew Cagney24-158/+132
* defs.h: Do not include "tui.h". * gdb_curses.h: New file. * tui/tui-hooks.h: New file. * tui/tui.h (tui_update_all_exec_infos): Delete declaration. (tui_install_hooks, tui_remove_hooks): Delete declarations. (tui_initialize_io): Delete declaration. (tui_initialize_readline: Delete redundant declaration. (struct tui_point): Delete definition. * tui/tui-data.h (struct tui_point): Define. * cli/cli-decode.c [TUI]: Include "tui/tui.h". * utils.c: Include "tui/tui.h". * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h". * printcmd.c [TUI]: Include "tui/tui.h". * cli/cli-cmds.c [TUI]: Include "tui/tui.h". * tui/tui-command.c: Include "gdb_curses.h". * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto. * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto. * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto. * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto. * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h". * Makefile.in: Update all dependencies. (tui_hooks_h, gdb_curses_h): Define. (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
2004-02-102004-02-10 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2-3/+9
* objfiles.h (struct objfile): Remove unused fields auxf1 and auxf2. Add comments about some other rarely used fields.
2004-02-102004-02-10 Arnaud Charlet <charlet@act-europe.fr>,DJ Delorie5-52/+397
Nathanael Nerode <neroden@gcc.gnu.org> PR ada/6637, PR ada/5911 Merge with libada-branch: * configure.in, Makefile.tpl, Makefile.def: Add target-libada, with appropriate dependencies. Add --enable-libada configure switch. * configure, Makefile.in: Regenerate.
2004-02-102004-02-10 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-3/+8
* Makefile.in (init.c): Fix script removing duplicates. Problem reported by Peter Schauer.
2004-02-10*** empty log message ***gdbadmin1-1/+1
2004-02-092004-02-09 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni6-11/+31
* bcache.c (bcache_xmalloc): Use obstack_init instead of obstack_specify_allocation. * objfiles.c (allocate_objfile): Ditto. * solib-sunos.c (solib_add_common_symbols) (allocate_rt_common_objfile): Ditto. * symfile.c (reread_symbols): Ditto. * gdb_obstack.h: Add comment.
2004-02-09daily updateAlan Modra1-1/+1
2004-02-09 * gdb.threads/thread-specific.exp: Stop early if no threads areDaniel Jacobowitz2-0/+10
found.
2004-02-092004-02-09 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2-47/+116
* linespec.c (decode_line_1, locate_first_half) (decode_compound, lookup_prefix_sym): Update comments. Delete old commented out code.
2004-02-09 * cp-namespace.c (check_one_possible_namespace_symbol): Don't useDaniel Jacobowitz2-10/+17
obstack_free.
2004-02-092004-02-09 Andrew Cagney <cagney@redhat.com>Andrew Cagney3-16/+48
* blockframe.c (find_pc_partial_function): If find_pc_overlay fails, try find_pc_section. Fix PR c++/1267. * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section instead of find_pc_mapped_section. (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do not default to the section containing PC. Fix PR symtab/1519.
2004-02-09 * emulparams/armelf.sh, emulparams/armelf_linux.sh: MoveDaniel Jacobowitz3-2/+8
.note.gnu.arm.ident to after allocated sections. Mark its address as 0.
2004-02-09 * config/tc-arm.c (md_begin): Mark .note.gnu.arm.ident asDaniel Jacobowitz2-0/+8
read-only.
2004-02-09 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.Daniel Jacobowitz6-0/+13
* emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise. * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise. * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise. * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
2004-02-09 * gas/sh/basic.exp: Don't do sh4a tests for sh5.Kaz Kojima2-5/+12
2004-02-09Add support for relaxing the 32bit ldc/stc instructions.Nick Clifton10-7/+194
2004-02-09 * read.h (IGNORE_OPCODE_CASE): Do not define. Replace with ...Nathan Sidwell4-4/+15
(TC_CASE_SENSITIVE): ... this. * read.c: Replace IGNORE_OPCODE_CASE with TC_CASE_SENSITIVE. * doc/internals.texi (TC_CASE_SENSITIVE): Document.
2004-02-092004-02-09 Michael Chastain <mec.gnu@mindspring.com>Michael Chastain2-2/+6
* gdb.base/pending.exp: Remove extra \n from gdb_test calls.
2004-02-09Catch GOT offsets for a symbol which have no associated GOT subsection.Nick Clifton2-3/+19
2004-02-09 * bfd-elf.h (elf_backend_name_local_section_symbols): New hook.Richard Sandiford6-1/+50
* elf.c (swap_out_syms): Use it to decide whether local section symbols should be named. * elfxx-target.h (elf_backend_name_local_section_symbols): New macro. * elfxx-mips.h (_bfd_mips_elf_name_local_section_symbols): Declare. (elf_backend_name_local_section_symbols): Define. * elfxx-mips.c (_bfd_mips_elf_name_local_section_symbols): New.
2004-02-092004-02-09 Andrew Cagney <cagney@redhat.com>Andrew Cagney3-6/+324
* Makefile.in (mips-tdep.o): Update dependencies. * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and "trad-frame.h". (mips_unwind_pc): Return the pseudo PC register. (mips_unwind_dummy_id): New function. (mips16_fetch_instruction): New function. (mips32_fetch_instruction): New function. (struct mips_frame_cache): Define. (mips_mdebug_frame_cache): New function. (mips_mdebug_frame_this_id): New function. (mips_mdebug_frame_prev_register): New function. (mips_mdebug_frame_unwind): Define. (mips_mdebug_frame_sniffer): New function. (mips_mdebug_frame_base_address): New function. (mips_mdebug_frame_base): Define. (mips_mdebug_frame_base_sniffer): New function. (mips_gdbarch_init): Append unwind and base sniffers. Set unwind_dummy_id.
2004-02-092004-02-08 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-3/+6
* frame.c: Print both the register number and name.
2004-02-09*** empty log message ***gdbadmin1-1/+1
2004-02-08daily updateAlan Modra1-1/+1
2004-02-08 * lib/gdb.exp (gdb_breakpoint): Fail on unexpected pendingDaniel Jacobowitz2-2/+7
breakpoints.
2004-02-082004-02-08 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-38/+58
* Makefile.in (OBS): Delete. (INIT_FILES): Replace OBS with COMMON_OBS. (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition. (init.c): Eliminate duplicates. Merge two greps and a sed into a single sed. Make .c and .o patterns more robust.
2004-02-08* sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie usingMark Kettenis2-2/+31
the PT_WCOOKIE request.
2004-02-082004-02-08 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-0/+11
* mips-tdep.c (mips_unwind_pc): New function. (mips_gdbarch_init): Set mips_unwind_pc.
2004-02-082004-02-08 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-6/+10
* frame.c (legacy_saved_regs_this_id): Return a null frame ID. (get_frame_id): Allow the UNKNOWN_FRAME. (frame_register_unwind, get_frame_type): Ditto.
2004-02-082004-02-08 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-5/+26
* frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P and DEPRECATED_FP_REGNUM. Don't assume that the lack of unwind_dummy_id indicates a legacy frame.
2004-02-082004-02-08 Andrew Cagney <cagney@redhat.com>Andrew Cagney3-6/+9
* configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS. * configure: Re-generate.
2004-02-082004-02-08 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-19/+25
* mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind methods.
2004-02-082004-02-08 Andrew Cagney <cagney@redhat.com>Andrew Cagney4-481/+456
* configure.in (CONFIG_ALL): Set to Makefile target, and not makefile macro. * configure: Re-generate. (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto. * Makefile.in (SUBDIR_CLI_CLEAN): Delete. (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete. (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete. (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete. (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete. (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete. (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete. (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete. (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
2004-02-082004-02-07 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-31/+28
* Makefile.in: Update all dependencies.
2004-02-082004-02-07 Andrew Cagney <cagney@redhat.com>Andrew Cagney4-622/+594
* configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete. * configure: Re-generate (with correct autoconf). * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS. (CONFIG_LIB_OBS, CONFIG_INITS): Delete. (COMMON_OBS): Add "main.o" and "annotate.o". (ANNOTATE_OBS): Delete. (OBS): Remove ANNOTATE_OBS. (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove CONFIG_INITS. (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link against CONFIG_OBS and "main.o". (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete. (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
2004-02-08 * config/sim.exp (gdb_load): Handle $arg == "".Daniel Jacobowitz4-9/+19
* lib/gdb.exp (gdb_run_cmd): Honor gdb,do_reload_on_run. * gdb.objc/basicclass.exp: Use gdb_run_cmd.
2004-02-082004-02-07 Andrew Cagney <cagney@redhat.com>Andrew Cagney12-35/+38
* tui/tui-command.c: Include "gdb_string.h", delete register attribute, use ISO-C function signatures. * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto. * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto. * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto. * tui/tui.c: Ditto.
2004-02-082004-02-07 Andrew Cagney <cagney@redhat.com>Andrew Cagney15-1854/+1600
* tui/tui-command.c: Change variable and function names to lower case. * tui/tui-data.c, tui/tui-disasm.c: Ditto. * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto. * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto. * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto. * tui/tui-winsource.c, tui/tui.c: Ditto.
2004-02-08*** empty log message ***gdbadmin1-1/+1
2004-02-072004-02-07 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2-0/+10
* gdb.base/maint.exp: Update test to reflect obstack changes.
2004-02-072004-02-07 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni23-152/+180
* buildsym.c (free_pending_blocks, finish_block) (record_pending_block, make_blockvector, end_symtab): Replace symbol_obstack with objfile_obstack. * coffread.c (process_coff_symbol, coff_read_struct_type) (coff_read_enum_type): Ditto. * cp-namespace.c (initialize_namespace_symtab) (check_one_possible_namespace_symbol): Ditto. * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file) (dwarf2_symbol_mark_computed): Ditto. * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto. * elfread.c (elf_symtab_read): Ditto. * hpread.c (hpread_symfile_init, hpread_symfile_init) (hpread_read_enum_type, hpread_read_function_type) (hpread_read_doc_function_type, hpread_process_one_debug_symbol): Ditto. * jv-lang.c (get_java_class_symtab, add_class_symbol) (java_link_class_type): Ditto. * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab) (new_symbol): Ditto. * minsyms.c (install_minimal_symbols): Ditto. * objfiles.c (allocate_objfile): Remove init of symbol_obstack. (terminate_minimal_symbol_table): Replace symbol_obstack with objfile_obstack. (free_objfile): Remove freeing of symbol_obstack. * objfiles.h: Remove symbol_obstack field. * pa64solib.c (add_to_solist): Replace symbol_obstack with objfile_obstack. * solib-sunos.c (allocate_rt_common_objfile): Remove init of symbol_obstack. (solib_add_common_symbols): Replace symbol_obstack with objfile_obstack. * somsolib.c (som_solib_add): Ditto. * stabsread.c (patch_block_stabs, define_symbol, read_enum_type) (common_block_start, common_block_end): Ditto. * symfile.c (reread_symbols): Remove freeing and init of symbol_obstack. (allocate_symtab): Rename symbol_obstack to objfile_obstack. * symfile.h: Update comment. * symmisc.c (print_objfile_statistics): Remove symbol_obstack stats printing. * symtab.c (symbol_set_names): Replace symbol_obstack with objfile_obstack. * symtab.h (struct general_symbol_info, struct minimal_symbol): Update comments. * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC) (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with objfile_obstack.
2004-02-07daily updateAlan Modra1-1/+1
2004-02-072004-02-07 Andrew Cagney <cagney@redhat.com>Andrew Cagney18-1042/+1063
* tui/tui.h: Do not include <stdarg.h>, <string.h>, and "ansidecl.h". Do not undef "reg" and "chtype". Fix case of fields and variables. * tui/tui-wingeneral.h (m_beVisible): Delete macro. (m_beInvisible): Delete macro. * tui/tui-data.h: Fix case case fields and variables. (m_genWinPtrIsNull): Delete macro. (tui_win_list): Rename winList. (TUI_SRC_WIN): Rename srcWin. (TUI_DISASM_WIN): Rename disassemWin. (TUI_DATA_WIN): Rename dataWin. (TUI_CMD_WIN): Rename cmdWin. (m_genWinPtrNotNull): Delete macro. (m_winPtrIsNull): Delete macro. (m_winPtrNotNull): Delete macro. (tui_win_is_source_type): Replace m_winIsSourceType (tui_win_is_auxillary): Replace m_winIsAuzillary. (tui_win_has_locator): Replace m_hasLocator. (tui_set_win_highlight): Replace m_setWinHighlightOn and m_setWinHighlightOff. * tui/tui-data.c: Update references. (tui_win_is_source_type, tui_set_win_highlight): New functions. (tui_win_has_locator, tui_win_is_auxillary): New functions. * tui/tui-command.c, tui/tui-disasm.c: Update references. * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto. * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto. * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto. * tui/tui-winsource.c, tui/tui.c: Ditto.
2004-02-07* sparc-tdep.h (sparc_fetch_wcookie): New prototype.Mark Kettenis3-0/+21
* sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle StackGhost.
2004-02-07* sparc-tdep.c (sparc32_frame_prev_register): Rename localMark Kettenis2-7/+13
variable `i6' to `i7'. (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
2004-02-072004-02-07 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni20-94/+126
* dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab, coffstab_build_psymtabs, elfstab_build_psymtabs) (stabsect_build_psymtabs): Replace psymbol_obstack with objfile_obstack. * dwarf2-frame.c (decode_frame_entry_1): Ditto. * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section): Ditto. * dwarfread.c (scan_compilation_units): Ditto. * elfread.c (elfstab_offset_sections): Ditto. * hppa-tdep.c (read_unwind_info): Ditto. * hpread.c (hpread_build_psymtabs, hpread_start_psymtab) (hpread_end_psymtab): Ditto. * mdebugread.c (mdebug_build_psymtabs, add_pending) (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs): Ditto. * mips-tdep.c (non_heuristic_proc_desc): Ditto. * objfiles.c (add_to_objfile_sections) (build_objfile_section_table): Ditto. (allocate_objfile): Remove init of psymbol_obstack. (free_objfile): Remove freeing of psymbol_obstack. * objfiles.h (struct objfile): Remove field psymbol_obstack. Update comments. * pa64solib.c (pa64_solib_add_solib_objfile): Replace psymbol_obstack with objfile_obstack. * solib-sunos.c (allocate_rt_common_objfile): Remove init of psymbol_obstack. * somread.c (som_symfile_offsets, init_import_symbols) (init_export_symbols): Replace psymbol_obstack with objfile_obstack. * somsolib.c (som_solib_add_solib_objfile): Ditto. * symfile.c (default_symfile_offsets, syms_from_objfile) (reread_symbols): Remove freeing and init of psymbol_obstack. (cashier_psymtab): Update comment. * symmisc.c (print_objfile_statistics): Don't report stats for psymbol obstack. * symtab.h (struct general_symbol_info, struct partial_symtab): Update comments. * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym) (xcoff_symfile_offsets): Replace psymbol_obstack with objfile_obstack.
2004-02-072004-02-07 Andrew Cagney <cagney@redhat.com>Andrew Cagney14-190/+179
* tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition. (TuiPoint, TuiPointPtr): Ditto. (TuiStatus, TuiStatusPtr): Ditto. (TuiWinType, TuiWinTypePtr): Ditto. (struct tui_point): Rename _TuiPoint. (tui_get_low_disassembly_address): Rename tuiGetLowDisassemblyAddress. (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos. (tuiFree): Delete declaration. (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions. (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions. * tui/tui.c (tuiFree): Delete function. * cli/cli-cmds.c (disassemble_command): Update references. * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto. * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto. * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto. * tui/tui-winsource.c: Ditto.
2004-02-072004-02-07 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni14-74/+110
* objfiles.h (struct objfile): Add objfile_obstack field. Remove type_obstack field. * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn, read_structure_scope read_enumeration, new_symbol): Replace type_obstack with objfile_obstack. * dwarfread.c (struct_type, enum_type): Ditto. * gdbtypes.c (alloc_type, alloc_type_instance, init_type) (lookup_fundamental_type): Ditto. * gdbtypes.h (TYPE_ALLOC): Ditto. * hpread.c (hpread_read_enum_type, hpread_read_function_type) (hpread_read_doc_function_type, hpread_read_struct_type) (fix_static_member_physnames, hpread_read_array_type) (hpread_read_subrange_type, hpread_type_lookup): Ditto. * jv-lang.c (java_lookup_class, type_from_class, type_from_class) (java_link_class_type): Ditto. * mdebugread.c (parse_type): Ditto. * objfiles.c (allocate_objfile, free_objfile): Ditto. * solib-sunos.c (solib_add_common_symbols): Ditto. * stabsread.c (define_symbol, read_type, read_member_functions, read_cpp_abbrev, read_one_struct_field): Ditto. * symfile.c (reread_symbols): Ditto. * symmisc.c (print_objfile_statistics): Ditto.
2004-02-072004-02-07 Andrew Cagney <cagney@redhat.com>Andrew Cagney14-529/+544
* tui/tui-data.h (tui_win_element): Rename TuiWinElement. (tui_exec_info_content): Rename TuiExecInfoContent. (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions. (TuiWinInfo, TuiWinInfoPtr): Ditto. (TuiScrollDirection, TuiScrollDirectionPtr): Ditto. (TuiList, TuiListPtr): Ditto. (TuiLayoutType, TuiLayoutTypePtr): Ditto. (TuiDataType, TuiDataTypePtr): Ditto. (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto. (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto. (TuiLayoutDef, TuiLayoutDefPtr): Ditto. (TuiSourceElement, TuiSourceElementPtr): Ditto. (TuiDataElement, TuiDataElementPtr): Ditto. (TuiWinElement, TuiWinElementPtr): Ditto. (TuiDataInfo, TuiDataInfoPtr): Ditto. (TuiCommandElement, TuiCommandElementPtr): Ditto. (TuiLocatorElement, TuiLocatorElementPtr): Ditto. (TuiWhichElement, TuiWhichElementPtr): Ditto. (TuiSourceInfo, TuiSourceInfoPtr): Ditto. (TuiCommandInfo, TuiCommandInfoPtr): Ditto. * tui/tui-command.c, tui/tui-data.c: Update references. * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto. * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto. * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto. * tui/tui-winsource.c, tui/tui.c: Ditto.
2004-02-07* dwarf2-frame.h: Update copyright.Mark Kettenis3-100/+142
(enum dwarf2_frame_reg_rule): New. (struct dwarf2_frame_state_reg): New. (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern. * dwarf2-frame.c: Update copyright. (enum dwarf2_reg_rule): Remove. (struct dwarf2_frame_state): Remove defenition of `struct dwarf2_frame_state_reg'. (read_reg): Call get_frame_arch to get the architecture instead of using CURRENT_GDBARCH. (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with DWARF2_FRAME_. (dwarf2_frame_init_reg): New function. (dwarf2_frame_cache): Call get_frame_arch to get the architecture instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to initialize the register state. Prefix old `enum dwarf2_reg_rule' tags with DWARF2_FRAME_. (dwarf2_frame_prev_register): Call get_frame_arch to get the architecture instead of using CURRENT_GDBARCH. Prefix old `enum dwarf2_reg_rule' tags with DWARF2_FRAME_.