summaryrefslogtreecommitdiff
path: root/gdb
Commit message (Collapse)AuthorAgeFilesLines
* *** empty log message ***kettenis-i386newframe-20030308-branchpointgdbadmin2003-03-081-1/+1
|
* 2003-03-07 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-03-072-0/+13
| | | | | * gdb.texinfo (Debugging Output): Mention the "set/show debug frame" command.
* 2003-03-07 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-03-073-3/+6
| | | | | | * gdbarch.sh: Don't generate two macro definitions when an undefined macro taking no arguments. * gdbarch.h: Regenerate.
* 2002-03-07 Michal Ludvig <mludvig@suse.cz>Michal Ludvig2003-03-072-0/+30
| | | | | | * x86-64-tdep.c (x86_64_save_dummy_frame_tos) (x86_64_unwind_dummy_id): New functions. (x86_64_init_abi): Register these two new functions.
* 2003-03-07 Michal Ludvig <mludvig@suse.cz>Michal Ludvig2003-03-073-15/+34
| | | | | | | * x86-64-tdep.c (x86_64_function_has_prologue): New function. (x86_64_skip_prologue): Move prologue detection to separate function. * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
* *** empty log message ***gdbadmin2003-03-071-1/+1
|
* 2003-03-06 Martin M. Hunt <hunt@redhat.com>Martin Hunt2003-03-063-28/+9
| | | | | | | | | * generic/gdbtk-interp.c (gdbtk_interpreter_init): Remove unused variable. * generic/gdbtk-cmds.c (gdb_update_mem): Remove unused variable. (gdbtk_print_source): Deleted. (gdbtk_print_asm): Deleted.
* 2003-03-06 Martin M. Hunt <hunt@redhat.com>Martin Hunt2003-03-062-7/+6
| | | | * generic/gdbtk-bp.c (gdb_get_tracepoint_info): Return CORE_ADDR.
* 2003-03-06 Martin M. Hunt <hunt@redhat.com>Martin Hunt2003-03-063-84/+22
| | | | | | | | | * generic/gdbtk-cmds.c (gdb_disassemble): Deleted. (sprintf_append_element_to_obj): Deleted. * generic/gdbtk-bp.c (get_breakpoint_commands): Use Tcl_ListObjAppendElement() instead of sprintf_append_element_to_obj().
* 2003-03-05 Martin M. Hunt <hunt@redhat.com>Martin Hunt2003-03-062-6/+8
| | | | | | * library/srctextwin.itb (SrcTextWin::FillAssembly): Remove unused variables asm_lo_addr and asm_hi_addr. (FillMixed): Ditto.
* 2003-03-05 Martin M. Hunt <hunt@redhat.com>Martin Hunt2003-03-065-65/+151
| | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/gdbtk-cmds.c (Gdbtk_Init): Create gdb_CA_to_TAS. (gdb_load_disassembly): Now takes CORE_ADDRs. Returns CORE_ADDRs for low and high. (gdbtk_load_asm): Use CORE_ADDRs. (gdb_loc): Return CORE_ADDRs. (gdb_entry_point): Return CORE_ADDR. (gdb_incr_addr): Update description. (gdb_CA_to_TAS): New function. Takes a CORE_ADDR and returns a target sddress string. * generic/gdbtk-bp.c (gdb_find_bp_at_addr): Change to take a CORE_ADDR. (gdb_get_breakpoint_info): Returns a CORE_ADDR. (gdb_set_bp_addr): Takes a CORE_ADDR. * library/bpwin.itb (bp_add): Call gdb_CA_to_TAS before displaying address. (bp_modify): Ditto. * library/srcwin.itb (location): Call gdb_CA_to_TAS before displaying address. Don't add "0x" in front of address. (set_execution_status): Call gdb_CA_to_TAS before displaying address. Don't call [gdb_cmd printf] to format output. Weird.
* *** empty log message ***gdbadmin2003-03-061-1/+1
|
* 2003-03-05 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-03-058-37/+172
| | | | | | | | | | | | | | | | | * d10v-tdep.c (d10v_unwind_dummy_id): New function. (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos. * frame.c (get_prev_frame): Restructure the frame ID unwind code to use unwind_dummy_id when a dummy frame. * gdbarch.sh (unwind_dummy_id): New multi-arch method with predicate. * gdbarch.h, gdbarch.c: Regneerate. Index: doc/ChangeLog 2003-03-05 Andrew Cagney <cagney@redhat.com> * gdbint.texinfo (Target Architecture Definition): Document unwind_dummy_id. Cross reference unwind_dummy_id and SAVE_DUMMY_FRAME_TOS.
* 2003-03-05 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-03-052-20/+48
| | | | | | | * d10v-tdep.c (struct d10v_unwind_cache): Add field "base". (d10v_frame_unwind_cache): Rewrite code computing the base and SP. Do not use d10v_read_sp or d10v_read_fp when obtaining register values.
* 2003-03-05 Andrew Cagney <cagney@redhat.com>carlton_dictionary-20030305-mergeAndrew Cagney2003-03-052-27/+40
| | | | | | | | | | * d10v-tdep.c (struct frame_extra_info): Delete unused structure. (struct d10v_unwind_cache): Delete field "frameless". Replace "next_addr" with "sp_offset". Add "r11_offset". (d10v_frame_unwind_cache): Update. (prologue_find_regs): Update. When "mv r11, sp", save the "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that RN was saved in r11_offset.
* 2003-03-05 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-03-052-1/+11
| | | | | * frame.c (deprecated_update_frame_pc_hack): Also update the the cached PC value in the next frame.
* 2003-03-05 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-03-053-48/+50
| | | | | | | | | | | * frame.h (struct frame_info): Replace "id_unwind_cache_p" and "id_unwind_cache" with "id". (frame_id_unwind): Delete declaration. * frame.c (frame_id_unwind): Delete function. (get_prev_frame): Call the frame id unwind method directly. Store the returned next frame's ID value in NEXT_FRAME. Note that there is a problem with the wrong unwind ID being called with the wrong unwind cache.
* * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.Daniel Jacobowitz2003-03-052-0/+5
|
* * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".Daniel Jacobowitz2003-03-058-24/+187
| | | | | | | | | | | | | | | | | | | | | | | (auto_cp_abi): New variable. (current_cp_abi, num_cp_abis): Make static. (CP_ABI_MAX): Define. (cp_abis): Turn into an array. (value_virtual_fn_field): Fix formatting. (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now takes a pointer. (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd) (list_cp_abis, _initialize_cp_abi): New functions. * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove declarations for cp_abis, num_cp_abis, current_cp_abi, and switch_to_cp_abi. Update prototype for register_cp_abi. * Makefile.in (cp-abi.o): Update dependencies. * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default instead of switch_to_cp_abi. * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to register_cp_abi. * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to register_cp_abi. * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
* * gdb.texinfo (Configuring the current ABI): Document "set cp-abi"Daniel Jacobowitz2003-03-052-0/+32
| | | | and "show cp-abi".
* * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.Daniel Jacobowitz2003-03-054-9/+22
| | | | | | | * dwarf2loc.c: Include "regcache.h". (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use register_size. * Makefile.in (dwarf2loc.o): Update dependencies.
* * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when theTheodore A. Roth2003-03-052-1/+10
| | | | number of io registers reported by remote target is not a multiple of step.
* *** empty log message ***gdbadmin2003-03-051-1/+1
|
* 2003-03-04 David Carlton <carlton@math.stanford.edu>David Carlton2003-03-042-11/+32
| | | | | | | | * symtab.c (lookup_partial_symbol): Add linkage_name argument. (lookup_symbol_aux_psymtabs): Update call to lookup_partial_symbol. (lookup_transparent_type, find_main_psymtab) (make_symbol_overload_list): Ditto.
* 2003-03-04 David Carlton <carlton@math.stanford.edu>David Carlton2003-03-042-4/+36
| | | | | | | | | | * gdb.c++/templates.exp (do_tests): Accept valid const in "print Garply<Garply<char> >:: garply". (test_ptype_of_templates): KFAIL "ptype T5<int>" and "ptype t5i" with respect to PR c++/1111; note also PR c++/1113. (test_template_breakpoints): KFAIL "constructor breakpoint" with respect to PR c++/1062. KFAIL "destructor breakpoint" with respect to PR c++/1112.
* * MAINTAINERS (Write after approval): Update my email address.Kazu Hirata2003-03-042-1/+5
|
* *** empty log message ***gdbadmin2003-03-041-1/+1
|
* 2003-03-03 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-03-032-1/+12
| | | | | * gdbint.texinfo (Target Architecture Definition): Document register_type.
* 2003-03-03 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-03-032-5/+12
| | | | | | * stabs.texinfo (Structures): Use @samp and separate @var's instead of a single @var containing a comma separated list. (Unions): Ditto.
* 2003-03-03 Andrew Cagney <cagney@redhat.com>cagney_offbyone-20030303-branchpointAndrew Cagney2003-03-0335-123/+279
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional. * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with predicate. Replace MAX_REGISTER_RAW_SIZE. (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for MAX_REGISTER_VIRTUAL_SIZE. * regcache.c (legacy_max_register_raw_size): New function. (legacy_max_register_virtual_size): New function. * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define. (MAX_REGISTER_RAW_SIZE): Define. (legacy_max_register_raw_size): Declare. (legacy_max_register_virtual_size): Declare. * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE) (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update. * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE) (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto. * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE) (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto. * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto. * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto. * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto. * xstormy16-tdep.c (xstormy16_gdbarch_init): Update. * vax-tdep.c (vax_gdbarch_init): Update. * v850-tdep.c (v850_gdbarch_init): Update. * sparc-tdep.c (sparc_gdbarch_init): Update. * sh-tdep.c (sh_gdbarch_init): Update. * s390-tdep.c (s390_gdbarch_init): Update. * rs6000-tdep.c (rs6000_gdbarch_init): Update. * ns32k-tdep.c (ns32k_gdbarch_init): Update. * mn10300-tdep.c (mn10300_gdbarch_init): Update. * mips-tdep.c (mips_gdbarch_init): Update. * mcore-tdep.c (mcore_gdbarch_init): Update. * m68k-tdep.c (m68k_gdbarch_init): Update. * m68hc11-tdep.c (m68hc11_gdbarch_init): Update. * ia64-tdep.c (ia64_gdbarch_init): Update. * i386-tdep.c (i386_gdbarch_init): Update. * hppa-tdep.c (hppa_gdbarch_init): Update. * h8300-tdep.c (h8300_gdbarch_init): Update. * frv-tdep.c (frv_gdbarch_init): Update. * cris-tdep.c (cris_gdbarch_init): Update. * avr-tdep.c (avr_gdbarch_init): Update. * arm-tdep.c (arm_gdbarch_init): Update. * alpha-tdep.c (alpha_gdbarch_init): Update. * d10v-tdep.c (d10v_gdbarch_init): Do not set max_register_raw_size or max_register_virtual_size.
* 2003-02-28 David Carlton <carlton@math.stanford.edu>David Carlton2003-03-032-4/+35
| | | | | | | | | * gdb.c++/classes.exp (test_enums): KFAIL "ptype obj_with_enum" with respect to PR c++/57. KFAIL "print (ClassWithEnum::PrivEnum) 42" with respect to PR c++/826. Create "print ('ClassWithEnum::PrivEnum') 42"; KFAIL it with respect to PR c++/57.
* 2003-03-03 David Carlton <carlton@math.stanford.edu>David Carlton2003-03-032-2/+13
| | | | | * gdb.c++/templates.exp (do_tests): Convert the KFAILs with respect to PR c++/33 into FAILs.
* 2003-03-03 David Carlton <carlton@math.stanford.edu>David Carlton2003-03-034-12/+37
| | | | | | | | | | | | | | | * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from SYMBOL_MATCHES_NAME, add comment. (SYMBOL_MATCHES_NATURAL_NAME): New. * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME. (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto. * symtab.c (lookup_partial_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete unhelpful comment. (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Fix for PR c++/33.
* 2003-03-03 David Carlton <carlton@math.stanford.edu>David Carlton2003-03-033-14/+14
| | | | | | * symtab.h (SYMBOL_MATCHES_REGEXP): Delete. * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP by regexp matching against SYMBOL_NATURAL_NAME.
* 2003-03-03 David Carlton <carlton@math.stanford.edu>David Carlton2003-03-032-18/+44
| | | | | * linespec.c (find_method): Extract code into collect_methods. (collect_methods): New.
* 2003-03-03 Michael Chastain <mec@shout.net>Michael Chastain2003-03-032-2/+6
| | | | * configure.in: Update copyright years.
* 2003-03-03 Michael Chastain <mec@shout.net>Michael Chastain2003-03-032-1/+5
| | | | * Makefile.in: update copyright years.
* * Makefile.in (distclean): Remove config.log.Daniel Jacobowitz2003-03-032-1/+5
|
* *** empty log message ***gdbadmin2003-03-031-1/+1
|
* * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame andMark Kettenis2003-03-022-2/+7
| | | | get_frame_base.
* * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage ofMark Kettenis2003-03-022-1/+6
| | | | DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
* * arch-utils.c (generic_register_byte): Fix to use the loop indexStephane Carrez2003-03-022-1/+6
| | | | and not regnum when summing the size of all registers up to regnum.
* Fix merge botch in previous commit.Andrew Cagney2003-03-021-1/+0
|
* 2003-03-01 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-03-0233-131/+184
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename FRAME_INIT_SAVED_REGS. * gdbarch.h, gdbarch.c: Regenerate. * stack.c (frame_info): Update. * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update. (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update. (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update. * ns32k-tdep.c (ns32k_pop_frame): Update. * mips-tdep.c (mips_pop_frame): Update. * m68hc11-tdep.c (m68hc11_pop_frame): Update. * ia64-tdep.c (ia64_frame_chain): Update. (ia64_frame_saved_pc, ia64_get_saved_register): Update. (ia64_frameless_function_invocation): Update. (ia64_init_extra_frame_info): Update. (ia64_pop_frame_regular): Update. * frame.h (struct frame_info): Update comment. (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro. * frame.c (frame_saved_regs_register_unwind): Update. (frame_saved_regs_register_unwind): Update. (deprecated_generic_get_saved_register): Update. * cris-tdep.c: Update comment. * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro. * xstormy16-tdep.c (xstormy16_gdbarch_init): Update. * x86-64-tdep.c (x86_64_init_abi): Update. * vax-tdep.c (vax_gdbarch_init): Update. * v850-tdep.c (v850_gdbarch_init): Update. * sparc-tdep.c (sparc_gdbarch_init): Update. * sh-tdep.c (sh_gdbarch_init): Update. * s390-tdep.c (s390_gdbarch_init): Update. * rs6000-tdep.c (rs6000_gdbarch_init): Update. * ppc-linux-tdep.c (ppc_linux_init_abi): Update. * ns32k-tdep.c (ns32k_gdbarch_init): Update. * mn10300-tdep.c (mn10300_gdbarch_init): Update. * mips-tdep.c (mips_gdbarch_init): Update. * mcore-tdep.c (mcore_gdbarch_init): Update. * m68k-tdep.c (m68k_gdbarch_init): Update. * m68hc11-tdep.c (m68hc11_gdbarch_init): Update. * ia64-tdep.c (ia64_gdbarch_init): Update. * i386-tdep.c (i386_gdbarch_init): Update. * frv-tdep.c (frv_gdbarch_init): Update. * avr-tdep.c (avr_gdbarch_init): Update. * arm-tdep.c (arm_gdbarch_init): Update. * alpha-tdep.c (alpha_gdbarch_init): Update. 2003-03-01 Andrew Cagney <cagney@redhat.com> * gdbint.texinfo (Target Architecture Definition): Rename FRAME_INIT_SAVED_REGS to DEPRECATED_FRAME_INIT_SAVED_REGS.
* 2003-03-01 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-03-022-5/+24
| | | | | | * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to option enum and switch. When no windows, set the interpreter to INTERP_CONSOLE.
* 2003-03-01 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-03-022-10/+22
| | | | | * main.c (captured_main): Replace magic option characters with an enum.
* 2003-03-01 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-03-0231-135/+180
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename INIT_EXTRA_FRAME_INFO. * gdbarch.h, gdbarch.c: Regenerate. * arm-tdep.c: Update comments. * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto. * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto. * frame.h, avr-tdep.c: Ditto. * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO. (create_new_frame, legacy_get_prev_frame): Ditto. * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename. * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename. * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize deprecated_init_extra_frame_info instead of init_extra_frame_info. * x86-64-tdep.c (x86_64_init_abi): Ditto. * v850-tdep.c (v850_gdbarch_init): Ditto. * sparc-tdep.c (sparc_gdbarch_init): Ditto. * sh-tdep.c (sh_gdbarch_init): Ditto. * s390-tdep.c (s390_gdbarch_init): Ditto. * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto. * mn10300-tdep.c (mn10300_gdbarch_init): Ditto. * mips-tdep.c (mips_gdbarch_init): Ditto. * mcore-tdep.c (mcore_gdbarch_init): Ditto. * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto. * ia64-tdep.c (ia64_gdbarch_init): Ditto. * i386-interix-tdep.c (i386_interix_init_abi): Ditto. * hppa-tdep.c (hppa_gdbarch_init): Ditto. * h8300-tdep.c (h8300_gdbarch_init): Ditto. * frv-tdep.c (frv_gdbarch_init): Ditto. * cris-tdep.c (cris_gdbarch_init): Ditto. * avr-tdep.c (avr_gdbarch_init): Ditto. * arm-tdep.c (arm_gdbarch_init): Ditto. * alpha-tdep.c (alpha_gdbarch_init): Ditto. * rs6000-tdep.c (rs6000_gdbarch_init): Ditto. Index: doc/ChangeLog 2003-02-26 Andrew Cagney <cagney@redhat.com> * gdbint.texinfo: Rename INIT_EXTRA_FRAME_INFO to DEPRECATED_INIT_EXTRA_FRAME_INFO.
* *** empty log message ***gdbadmin2003-03-021-1/+1
|
* 2003-03-01 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-03-017-10/+168
| | | | | | | | | | | | | | | | | * gdbarch.sh (register_type): New function with predicate. (REGISTER_VIRTUAL_TYPE): Change to function with predicate. * gdbarch.h, gdbarch.c: Re-generate. * arch-utils.c (generic_register_byte): Use generic_register_size. (generic_register_size): When available, use gdbarch_register_type. * regcache.c (init_regcache_descr): When available, initialize the register type array using gdbarch_register_type. If the architecture supplies gdbarch_register_type, do not use the legacy regcache layout. * d10v-tdep.c (d10v_register_type): Replace d10v_register_virtual_type. (d10v_gdbarch_init): Set register_type instead of register_virtual_type.
* 2003-03-01 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-03-017-13/+29
| | | | | | | | | | | | | | * Makefile.in (ax-gdb.o): Update dependencies. * ax-gdb.c: Include "regcache.h". (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE. * findvar.c (value_of_register): Ditto. * infcmd.c (default_print_registers_info): Ditto. Index: mi/ChangeLog 2003-03-01 Andrew Cagney <cagney@redhat.com> * mi-main.c (get_register): Use register_type instead of REGISTER_VIRTUAL_TYPE.