Andrew Cagney
0ef75e1148
2003-06-10 Andrew Cagney <cagney@redhat.com>
...
* remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
* Makefile.in (remote-fileio.o): Update dependencies.
* remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
include <setjmp.h>, or <sys/types.h> conditional on USG.
(remote_fio_jmp_buf): Delete global variable.
2003-06-10 19:29:57 +00:00
Corinna Vinschen
449092f6f4
* Makefile.in: Add dependencies for remote-fileio.o.
...
* remote-fileio.c: New file implementing the remote File-I/O protocol.
* remote-fileio.h: New header file defining remote File-I/O interface.
* remote.c (remote_write_bytes, remote_read_bytes): Remove
static storage class.
(remote_wait, remote_async_wait): Call remote_fileio_request() on
'F' packet.
(_initialize_remote): Call initialize_remote_fileio().
* remote.h: Declare remote_write_bytes() and remote_read_bytes().
* Makefile.in (REMOTE_OBS): Add remote-fileio.o
(SFILES): Add remote-fileio.c.
Add dependencies for building remote-fileio.o. Add remote-fileio.h to
dependencies for building remote.o.
* defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
* main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
(captured_main): Initialize new ui_files.
* ui-file.c: Add read and fgets input functions.
(ui_file_new): set ui_file_fputs and ui_file_read to null functions.
(null_file_read): New function.
(ui_file_read): New function.
(set_ui_file_read): New function.
(stdio_file_read): New function.
* ui-file.h: New type ui_file_read_ftype.
(set_ui_file_read): Declare.
(ui_file_read): Declare.
2003-06-10 14:37:04 +00:00
Andrew Cagney
248de703d4
2003-06-09 Andrew Cagney <cagney@redhat.com>
...
* frame.h (deprecated_unwind_get_saved_register): Rename
generic_unwind_get_saved_register, update comments.
* mips-tdep.c (mips_get_saved_register): Update.
* frame.c (deprecated_unwind_get_saved_register): Update.
2003-06-09 22:20:43 +00:00
Andrew Cagney
0ed8aa572b
2003-06-09 Andrew Cagney <cagney@redhat.com>
...
* vax-tdep.c (vax_frame_locals_address): Delete function.
(vax_gdbarch_init): Do not set frame_locals_address.
* m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
(m68hc11_gdbarch_init): Do not set frame_locals_address.
* s390-tdep.c (s390_frame_args_address): Delete function.
(s390_gdbarch_init): Do not set frame_args_address or
frame_locals_address.
* ns32k-tdep.c (ns32k_frame_locals_address): Delete.
(ns32k_gdbarch_init): Do not set frame_locals_address.
* hppa-tdep.c (hppa_frame_args_address): Delete function.
(hppa_frame_locals_address): Delete function.
(hppa_gdbarch_init): Do not set frame_args_address, or
frame_locals_address.
* arm-tdep.c (arm_frame_args_address): Delete.
(arm_frame_locals_address): Delete.
(arm_gdbarch_init): Do not set frame_args_address, or
frame_locals_address.
2003-06-09 20:08:56 +00:00
Andrew Cagney
983a287a6f
2003-06-09 Andrew Cagney <cagney@redhat.com>
...
* gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
* gdbarch.h, gdbarch.c: Re-generate.
* arch-utils.h (frame_num_args_unknown): Delete both declarations.
* arch-utils.c (frame_num_args_unknown): Delete function.
* stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
(frame_info): Use FRAME_NUM_ARGS_P.
* arm-tdep.c (arm_frame_num_args): Delete function.
(arm_gdbarch_init): Do not set frame_num_args.
* config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
* hppa-tdep.c (hppa_frame_num_args): Delete function.
(hppa_gdbarch_init): Do not set frame_num_args.
* config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
* xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
frame_num_args to default frame_num_args_unknown.
* 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.
* rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
* mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
* mips-tdep.c (mips_gdbarch_init): Ditto.
* mcore-tdep.c (mcore_gdbarch_init): Ditto.
* m68k-tdep.c (m68k_gdbarch_init): Ditto.
* m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
* ia64-tdep.c (ia64_gdbarch_init): Ditto.
* i386-tdep.c (i386_gdbarch_init): Ditto.
* h8300-tdep.c (h8300_gdbarch_init): Ditto.
* frv-tdep.c (frv_gdbarch_init): Ditto.
* d10v-tdep.c (d10v_gdbarch_init): Ditto.
* cris-tdep.c (cris_gdbarch_init): Ditto.
* avr-tdep.c (avr_gdbarch_init): Ditto.
* alpha-tdep.c (alpha_gdbarch_init): Ditto.
2003-06-09 17:35:59 +00:00
Andrew Cagney
8d3b0994cd
2003-06-09 Andrew Cagney <cagney@redhat.com>
...
* printcmd.c (print_frame_nameless_args): Moved to "stack.c".
(print_frame_args): Moved to "stack.c".
* stack.c: Include "gdb_assert.h".
(print_frame_nameless_args): Moved from "printcmd.c", made static.
(print_frame_args): Moved from "printcmd.c".
* frame.h (print_frame_args): Delete declaration.
* Makefile.in (stack.o): Update dependencies.
2003-06-09 15:20:21 +00:00
Andrew Cagney
25e3a86bb1
2003-06-08 Andrew Cagney <cagney@redhat.com>
...
* frame.c (get_prev_frame): Remove reference to
frame_args_address_correct in comments.
* frame-base.c (default_frame_args_address): Delete code
conditional on FRAME_ARGS_ADDRESS_CORRECT.
* vax-tdep.c (vax_frame_args_address_correct): Delete.
(vax_frame_args_address): Merge in vax_frame_args_address_correct.
* config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
(vax_frame_args_address_correct): Delete declaration.
Index: doc/ChangeLog
2003-06-08 Andrew Cagney <cagney@redhat.com>
* gdbint.texinfo (Target Architecture Definition): Delete
documentation on FRAME_ARGS_ADDRESS_CORRECT.
2003-06-09 02:10:35 +00:00
Andrew Cagney
a9e5fdc219
2003-06-08 Andrew Cagney <cagney@redhat.com>
...
* gdbarch.sh (UNWIND_SP): Add.
* gdbarch.h, gdbarch.c: Re-generate.
* frame.c (frame_sp_unwind): New function.
(get_frame_sp): New function.
* frame.h (get_frame_sp, frame_sp_unwind): Declare.
* regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
value.
* d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
(d10v_gdbarch_init): Set unwind_sp instead of read_sp.
2003-06-08 Andrew Cagney <cagney@redhat.com>
* gdbint.texinfo (Target Architecture Definition): Document
"unwind_sp". Cross reference "unwind_sp" and TARGET_READ_SP.
2003-06-09 01:02:07 +00:00
Andrew Cagney
7fec2c59fb
2003-06-08 Andrew Cagney <cagney@redhat.com>
...
Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
REMOTE_BREAKPOINT.
* remote.c: Update.
* config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
(DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
* config/m68k/tm-sun3.h: Update.
* config/m68k/tm-m68klynx.h: Update.
* config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
2003-06-08 22:51:49 +00:00
Andrew Cagney
8983bd8343
2003-06-08 Andrew Cagney <cagney@redhat.com>
...
* trad-frame.h (struct trad_frame_saved_reg): Rename "struct
trad_frame". Update comments.
* d10v-tdep.c (struct d10v_unwind_cache): Update.
* trad-frame.c (trad_frame_alloc_saved_regs): Update.
(trad_frame_register_value, trad_frame_prev_register): Update.
2003-06-08 22:10:12 +00:00
Andrew Cagney
b9362cc7a8
2003-06-08 Andrew Cagney <cagney@redhat.com>
...
* acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
from GCC's acinclude.m4.
* configure.in: Check for getopt's delcaration.
* aclocal.m4, config.in, configure: Re-generate.
* main.c (error_init): Delete declaration.
* defs.h (error_init): Declare.
* rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
(rs6000_convert_from_func_ptr_addr): Make static.
(_initialize_rs6000_tdep): Add declaration.
* cli/cli-cmds.c (dont_repeat): Delete declaration.
(show_commands, set_verbose, show_history): Delete declaration.
* top.h (set_verbose): Add declaration.
(show_history, set_history, show_commands): Add declaration.
(do_restore_instream_cleanup): Add declaration.
* objc-lang.c (specialcmp): Make static.
(print_object_command): Make static.
(find_objc_msgsend): Make static.
(find_objc_msgcall_submethod_helper): Make static.
(find_objc_msgcall_submethod): Make static.
(_initialize_objc_language): Add declaration.
(find_implementation_from_class): Make static.
(find_implementation): Make static.
* objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
* objc-lang.h (lookup_struct_typedef): Add declaration.
* cli/cli-interp.c (_initialize_cli_interp): Add declaration.
* cli/cli-script.c (clear_hook_in_cleanup): Make static.
(do_restore_user_call_depth): Make static.
(do_restore_instream_cleanup): Delete declaration.
(dont_repeat): Delete declaration.
* cli/cli-decode.c (add_abbrev_cmd): Delete function.
* cli/cli-dump.c (_initialize_cli_dump): Add declaration.
* reggroups.c (_initialize_reggroup): Add declaration.
* cp-support.c (_initialize_cp_support): Add declaration.
* cp-abi.c (_initialize_cp_abi): Add declaration.
* hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
* gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
(_initialize_gnu_v3_abi): Add declaration.
* gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
(_initialize_gnu_v2_abi): Add declaration.
* frame-base.c (_initialize_frame_base): Add declaration.
* doublest.c (floatformat_from_length): Make static.
* frame-unwind.c (_initialize_frame_unwind): Add declaration.
* frame.c (create_sentinel_frame): Make static.
(_initialize_frame): Add declaration.
* top.c (do_catch_errors): Make static.
(gdb_rl_operate_and_get_next_completion): Make static.
* typeprint.c: Include "typeprint.h".
* sentinel-frame.c (sentinel_frame_prev_register): Make static.
(sentinel_frame_this_id): Make static.
* p-valprint.c (_initialize_pascal_valprint): Add declaration.
* ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
* dwarf2-frame.c (dwarf2_frame_cache): Make static.
* p-exp.y (push_current_type, pop_current_type): ISO C declaration.
* dwarf2expr.h (dwarf_expr_context): ISO C declaration.
* maint.c (maintenance_print_architecture): Make static.
* signals/signals.c (_initialize_signals): Add declaration.
* std-regs.c (_initialize_frame_reg): Add declaration.
* jv-exp.y (push_variable): ISO C definition.
(push_qualified_expression_name): Ditto.
* memattr.c (_initialize_mem): Add declaration.
* remote.c (remote_check_watch_resources): Make static.
(remote_stopped_by_watchpoint): Make static.
(remote_stopped_data_address): Make static.
* d10v-tdep.c (nr_dmap_regs): Make static.
(a0_regnum): Make static.
(d10v_frame_unwind_cache): Make static.
(d10v_frame_p): Make static.
* osabi.c (show_osabi): Make static.
(_initialize_gdb_osabi): Add extern declaration.
* gdbtypes.c (make_qualified_type): Make static.
(safe_parse_type): Make static.
* macrocmd.c (_initialize_macrocmd): Add extern declaration.
* macrotab.c (macro_bcache_free): Make static.
* interps.c (interp_set_quiet): Make static.
(interpreter_exec_cmd): Make static.
* stack.h (select_frame_command): New file.
* stack.c: Include "stack.h".
(select_frame_command_wrapper): Delete function.
(select_frame_command): Make global.
* infcall.c: Include "infcall.h".
* linespec.c: Include "linespec.h".
* symfile.c (sections_overlap): Make static.
* cp-support.h (cp_initialize_namespace): ISO C declaration.
* charset.c (_initialize_charset): Add missing prototype.
* regcache.c (init_legacy_regcache_descr): Make static.
(do_regcache_xfree): Make static.
(regcache_xfer_part): Make static.
(_initialize_regcache): Add missing prototype.
* breakpoint.c (parse_breakpoint_sals): Make static.
(breakpoint_sals_to_pc): Make static.
* interps.h (clear_interpreter_hooks): ISO C declaration.
* Makefile.in (stack_h): Define.
(stack.o, typeprint.o, mi-main.o): Update dependencies.
(mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
Index: mi/ChangeLog
2003-06-08 Andrew Cagney <cagney@redhat.com>
* mi-parse.c (_initialize_mi_parse): Delete function.
* mi-main.c: Include "mi-main.h".
* mi-interp.c (_initialize_mi_interp): Add declaration.
* mi-cmd-stack.c: Include "stack.h".
(select_frame_command_wrapper): Delete extern declaration.
(mi_cmd_stack_select_frame): Replace select_frame_command_wrapper
with select_frame_command.
2003-06-08 18:27:14 +00:00
Andrew Cagney
a0f267c701
2003-06-08 Andrew Cagney <cagney@redhat.com>
...
* Makefile.in (d10v-tdep.o): Update dependencies.
(SFILES): Add trad-frame.c.
(trad_frame_h): Define.
(COMMON_OBS): Add trad-frame.o.
(trad-frame.o): Specify dependencies.
* d10v-tdep.c: Include "trad-frame.h".
(saved_regs_unwinder): Delete function.
(d10v_frame_prev_register): Use trad_frame_prev_register.
(struct d10v_unwind_cache): Change type of "saved_regs" to "struct
trad_frame", delete "regs" and "prev_sp".
(prologue_find_regs): Use trad-frame.
* trad-frame.h, trad-frame.c: New files.
2003-06-08 16:09:46 +00:00
Mark Kettenis
4538b4f4c4
* dwarf2cfi.c, dwarf2cfi.h: Remove.
2003-06-08 12:43:02 +00:00
Adam Fedor
a0273b2f03
* gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
...
(OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
(find_implementation, resolve_msgsend, resolve_msgsend_stret,
resolve_msgsend_super, resolve_msgsend_super_stret):
Use it.
2003-06-08 02:31:24 +00:00
Andrew Cagney
3a6c33433d
2003-06-07 Andrew Cagney <cagney@redhat.com>
...
* symfile.h: Re-indent, clean up comments.
2003-06-07 23:50:23 +00:00
Andrew Cagney
b46e02f67c
2003-06-07 Andrew Cagney <cagney@redhat.com>
...
* inferior.h (deprecated_write_sp): Replace
generic_target_write_sp.
* regcache.c (deprecated_write_sp): Replace
generic_target_write_sp.
* 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.
* 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.
* h8300-tdep.c (h8300_gdbarch_init): Update.
* frv-tdep.c (frv_gdbarch_init): Update.
* cris-tdep.c (cris_gdbarch_init): Update.
* config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
2003-06-07 22:38:56 +00:00
Andrew Cagney
a42e117c79
2003-06-07 Andrew Cagney <cagney@redhat.com>
...
* dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
Assert that PC_REGNUM is valid.
(dwarf2_frame_prev_register): Add comments on SP_REGNUM.
2003-06-07 19:05:51 +00:00
Andrew Cagney
bd1ce8ba9b
2003-06-07 Andrew Cagney <cagney@redhat.com>
...
* gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
* gdbarch.h, gdbarch.c: Regenerate.
* mn10300-tdep.c: Include "gdb_assert.h".
(mn10300_read_fp): New function.
(mn10300_gdbarch_init): Set deprecated_target_read_fp to
mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
* ia64-tdep.c: Include "gdb_assert.h".
(ia64_read_fp): New function.
(ia64_gdbarch_init): Set deprecated_target_read_fp to
ia64_read_sp. Do not set read_sp to generic_target_read_sp.
* regcache.c (generic_target_read_sp): Delete function.
(read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
* inferior.h (generic_target_read_sp): Delete declaration.
* frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
generic_target_read_sp.
* m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
* sparc-tdep.c (sparc_gdbarch_init): Ditto
* sh-tdep.c (sh_gdbarch_init): Ditto.
* rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
* Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
2003-06-07 18:08:25 +00:00
Andrew Cagney
ec5cbaecff
2003-06-07 Andrew Cagney <cagney@redhat.com>
...
* gdbarch.sh: Comment each field of startup_gdbarch.
* gdbarch.h, gdbarch.c: Re-generate.
2003-06-07 17:09:19 +00:00
Andrew Cagney
cde9ea4808
2003-06-07 Andrew Cagney <cagney@redhat.com>
...
* gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
* gdbarch.h, gdbarch.c: Re-generate.
* regcache.c: Update comments on read_pc et.al.
(generic_target_read_pc): Delete function.
(read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
* inferior.h (generic_target_read_pc): Delete declaration.
* frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
generic_target_read_pc.
* sparc-tdep.c (sparc_gdbarch_init): Ditto.
* sh-tdep.c (sh_gdbarch_init): Ditto.
* rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
* m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2003-06-07 16:23:12 +00:00
Andrew Cagney
9a90a78063
2003-06-07 Andrew Cagney <cagney@redhat.com>
...
* elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
"index" with "special_local_sect". Use strcmp instead of STREQ.
Append period to coments.
2003-06-07 15:51:05 +00:00
Mark Mitchell
a39a16c41b
* elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
...
(elfstab_offset_sections): Likewise.
* gdb-stabs.h (stab_section_info): Likewise.
* i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
* objfiles.c (objfile_relocate): Likewise.
* pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
* remote.c (get_offsets): Likewise.
(remote_cisco_objfile_relocate): Likewise.
* somread.c (som_symfile_offsets): Likewise.
* symfile.c (alloc_section_addr_info): New function.
(build_section_addr_info_from_section_tab): Use it.
(free_section_addr_info): Adjust.
(default_symfile_offsets): Avoid use of SECT_OFF_MAX.
(syms_from_objfile): Allocate local_addr dynamically.
(symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
dynamically.
(add_symbol_file_command): Allocate sect_opts dynamically.
(reread_symbols): Avoid use of SECT_OFF_MAX.
* symfile.h (section_addr_info): Do not use MAX_SECTIONS.
(alloc_section_addr_info): Declare it.
* symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
* win32-nat.c (solib_symbols_add): Allocate section_addrs
dynamically.
* xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
2003-06-06 23:33:00 +00:00
Andrew Cagney
20c6c2f878
2003-06-06 Andrew Cagney <cagney@redhat.com>
...
* d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
(d10v_frame_unwind_cache): Do not set "return_pc".
2003-06-06 21:27:35 +00:00
Michael Snyder
884a26c8a6
2003-06-06 Michael Snyder <msnyder@redhat.com>
...
* h8300-tdep.c: Make tidy (long lines).
2003-06-06 18:48:08 +00:00
Andrew Cagney
530741408f
Fix changelog, contained more than happened.
2003-06-06 13:55:58 +00:00
Michal Ludvig
088ce4403f
2003-06-06 Michal Ludvig <mludvig@suse.cz>
...
* x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
to regcache_collect().
2003-06-06 10:04:20 +00:00
Joel Brobecker
7d773d96db
* hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
...
pc_in_sigtramp multiarch method.
(hppa_hpux_som_init_abi): Use it.
(hppa_hpux_elf_init_abi): Likewise.
* config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
macro has been multiarched.
* config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
macro here, as hppa64 isn't multiarched yet.
2003-06-06 00:22:00 +00:00
Andrew Cagney
1df6926e87
2003-06-05 Andrew Cagney <cagney@redhat.com>
...
* Makefile.in (value_h): Add $(frame_h).
* value.h: Include "frame.h".
(struct value): Replace "frame_addr" with "frame_id".
(VALUE_FRAME_ID): Replace VALUE_FRAME.
* values.c (allocate_value): Use VALUE_FRAME_ID.
(value_copy): Use VALUE_FRAME_ID.
* findvar.c (value_from_register): Use VALUE_FRAME_ID.
* valops.c (value_assign): Update. Use frame_find_by_id.
2003-06-05 20:59:16 +00:00
Michal Ludvig
6b53acc622
2003-06-05 Michal Ludvig <mludvig@suse.cz>
...
* x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
in each pass.
2003-06-05 18:54:34 +00:00
Jeff Johnston
4d9850d366
2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
...
* thread-db.c (check_event): For create/death event breakpoints,
loop through all messages to ensure that we read the message
corresponding to the breakpoint we are at.
2003-06-05 18:22:02 +00:00
Michael Snyder
8efca6bae5
2003-06-04 Michael Snyder <msnyder@redhat.com>
...
* h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
2003-06-05 02:41:57 +00:00
Mark Kettenis
0912c7f2c2
* dwarf2-frame.c (struct comp_unit): Add member `dbase'.
...
(read_encoded_value): Handle DW_EH_PE_datarel encoding.
(dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
when handling .eh_frame sections.
2003-06-04 21:03:23 +00:00
Joel Brobecker
4e37032562
* config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
...
prepare_to_proceed procedure instead of the hppa-specific one.
* hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
2003-06-04 20:55:02 +00:00
Jeff Johnston
b757528ff6
2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
...
* acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
* config.in: Regenerated.
* configure.in: Add test for syscall function and check for
__NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
* configure: Regenerated.
* lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
<sys/syscall.h>.
(kill_lwp): New function that uses tkill syscall or
uses kill, depending on whether threading model is nptl or not.
All callers of kill() changed to use kill_lwp().
(lin_lwp_wait): Make special check when WIFEXITED occurs to
see if all threads have already exited in the nptl model.
(stop_and_resume_callback): New callback function used by the
lin_lwp_wait thread exit handling code.
(stop_wait_callback): Check for threads already having exited and
delete such threads fromt the lwp list when discovered.
(stop_callback): Don't assert retcode of kill call.
Roland McGrath <roland@redhat.com>
* i386-linux-nat.c (ps_get_thread_area): New function needed by
nptl libthread_db.
2003-06-04 20:51:29 +00:00
Richard Henderson
b21fd293ac
* alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
...
(alpha_sigtramp_frame_this_id): Use get_frame_memory.
(alpha_sigtramp_frame_prev_register): Likewise.
(alpha_heuristic_frame_prev_register): Likewise.
* alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
2003-06-04 16:44:29 +00:00
Richard Henderson
087779b16b
* alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
...
alpha-specific register id names.
(alpha_mdebug_frame_unwind_cache): Likewise.
(alpha_mdebug_frame_prev_register): Likewise.
2003-06-04 16:40:50 +00:00
Richard Henderson
baa490c486
* alpha-tdep.c (alpha_dwarf2_init_abi): New.
...
* alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
* alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
* alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
unwind routines.
* alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
* config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
* config/alpha/nbsd.mt (TDEPFILES): Likewise.
* alpha-linux-tdep.c: Remove unnecessary includes.
* Makefile.in (alpha-linux-tdep.o): Update.
2003-06-04 06:22:17 +00:00
Joel Brobecker
f534e522c9
* alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
...
references to struct frame_info fields by calls to the equivalent
accessors. Necessary now that frame_info is opaque.
2003-06-04 05:50:35 +00:00
Joel Brobecker
4035536ba4
* alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
...
(alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
structure, field no longer exists.
2003-06-04 05:44:13 +00:00
Joel Brobecker
0bd79c5c09
* config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
...
* alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
2003-06-04 05:25:10 +00:00
Joel Brobecker
37bb6d9f02
* alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
...
references to struct frame_info fields by calls to the equivalent
accessors. Necessary now that frame_info is opaque.
2003-06-04 05:20:55 +00:00
Joel Brobecker
852ee05c45
* alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
...
(alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
structure, field no longer exists.
2003-06-04 05:17:26 +00:00
Theodore A. Roth
7d58c67dbb
* remote.c (init_remote_state): Compute sizeof_g_packet by
...
accumulation of the size of all registers instead of blindly using
DEPRECATED_REGISTER_BYTES.
2003-06-04 04:31:37 +00:00
Michael Snyder
0a48e7e826
2003-06-03 Michael Snyder <msnyder@redhat.com>
...
* config/h8300/tm-h8300.h (h8300sxmode): Declare.
* h8300-tdep.c (h8300_gdbarch_init): Set machine mode
for h8300sx.
2003-06-04 00:25:03 +00:00
Joel Brobecker
9798ab0d69
* alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
...
* Makefile.in (alpha-osf1-tdep.o): Update dependencies.
2003-06-03 23:52:41 +00:00
Andrew Cagney
00b037e213
2003-06-03 Andrew Cagney <cagney@redhat.com>
...
* sparc-tdep.c (sparc_convert_to_virtual): Delete function.
(sparc_convert_to_raw): Delete function.
(sparc_gdbarch_init): Do not set register_convert_to_raw or
register_convert_to_virtual.
2003-06-03 21:02:49 +00:00
Jeff Johnston
043b2f77bb
2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
...
* thread-db.c (thread_db_mourn_inferior): Unpush thread target
layer if not dealing with a statically-linked threaded program.
2003-06-03 20:00:56 +00:00
Kris Warkentin
f43caff87c
2003-06-03 Kris Warkentin <kewarken@qnx.com>
...
* solib.c (solib_open): Update comment to reflect actual search order.
2003-06-03 19:16:34 +00:00
Andrew Cagney
ae1e741769
2003-06-03 Andrew Cagney <cagney@redhat.com>
...
* frame.c (get_frame_memory_signed): New function.
(get_frame_memory, get_frame_memory_unsigned): New function.
(get_frame_arch): New function.
* frame.h (get_frame_signed_memory, get_frame_arch): Declare.
(get_frame_memory, get_frame_unsigned_memory): Declare.
* d10v-tdep.c (d10v_frame_unwind_cache): Use
get_frame_memory_unsigned and get_frame_arch.
(d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
2003-06-03 18:53:37 +00:00
Raoul Gough
cb12384428
MAINTAINERS (write after approval): Add myself
2003-06-03 09:55:51 +00:00
Jim Blandy
1bb792e9e8
* s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
...
elements of gregset_t are 64 bits each, but access registers
are still 32 bits, so they're packed two per gregset_t
element. Unpack/pack them properly.
2003-06-03 05:36:53 +00:00
David Carlton
aee8d8ba8a
2003-06-02 David Carlton <carlton@bactrian.org>
...
* linespec.c (find_methods): Break out code into
add_matching_methods and add_constructors.
(add_matching_methods): New.
(add_constructors): Ditto.
2003-06-03 02:56:04 +00:00
Andrew Cagney
bf7488d21d
2003-06-02 Andrew Cagney <cagney@redhat.com>
...
* alpha-tdep.c (alpha_gdbarch_init): Set convert_register_p,
register_to_value, and value_to_register, instead of
register_convertible, register_convert_to_raw, and
register_convert_to_virtual.
* rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
* ia64-tdep.c (ia64_gdbarch_init): Ditto.
* i386-tdep.c (i386_gdbarch_init): Ditto.
* sparc-tdep.c (sparc_print_registers): Delete call to
REGISTER_CONVERTIBLE.
(sparc_gdbarch_init): Do not set register_convertible.
* m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
* frv-tdep.c (frv_gdbarch_init): Ditto.
* cris-tdep.c (cris_gdbarch_init): Ditto.
2003-06-03 01:24:42 +00:00
Elena Zannoni
adedef68ce
2003-06-02 Elena Zannoni <ezannoni@redhat.com>
...
* target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
* symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
(syms_from_objfile): Ditto.
2003-06-02 23:20:47 +00:00
Andreas Schwab
650fcc9108
* m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
...
(_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
2003-06-02 22:56:52 +00:00
Richard Henderson
df4a182bcb
* alpha-tdep.c (alpha_register_reggroup_p): Zero is only
...
a member of all_reggroup.
2003-06-02 22:54:01 +00:00
Richard Henderson
c483c494a0
* alpha-tdep.c (alpha_register_type): Change from _virtual_type.
...
(alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
(alpha_lds, alpha_sts): New.
(alpha_convert_register_p): Change from _register_convertible.
(alpha_register_to_value): Change from _convert_to_virtual;
restructure and fail for type sizes other than 4 or 8.
(alpha_value_to_register): Similarly.
(alpha_extract_return_value): Use alpha_sts.
(alpha_store_return_value): Use alpha_lds.
(alpha_gdbarch_init): Update hooks.
2003-06-02 22:43:31 +00:00
Richard Henderson
b38b6be24b
* alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
...
regnum identifiers.
(alpha_sigtramp_register_address): Likewise.
2003-06-02 21:55:59 +00:00
Richard Henderson
98a8e1e505
* alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
...
(alpha_supply_fp_regs, alpha_fill_fp_regs): New.
* alpha-tdep.h: Declare them.
* alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
Remove zerobuf. Don't error on UNIQUE.
(fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
(ALPHA_REGSET_UNIQUE): Provide default.
(supply_gregset): Use alpha_supply_int_regs.
(fill_gregset): Use alpha_fill_int_regs.
(supply_fpregset): Use alpha_supply_fp_regs.
(fill_fpregset): Use alpha_fill_fp_regs.
* alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
(alphabsd_supply_reg): Use alpha_supply_int_regs.
(alphabsd_fill_reg): Use alpha_fill_int_regs.
(alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
(alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
* config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
2003-06-02 20:57:16 +00:00
Richard Henderson
f75d70ccb3
* alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
2003-06-02 20:55:13 +00:00
Richard Henderson
67dfac5232
* alpha-tdep.c (alpha_extract_return_value): Use internal_error.
...
(alpha_store_return_value): Likewise.
2003-06-02 20:46:41 +00:00
David Carlton
0cf566ec65
2003-06-02 David Carlton <carlton@math.stanford.edu>
...
* block.c (contained_in): Add 'const' to arguments.
(block_function): Ditto.
* block.h: Update declarations for block_function and
contained_in.
2003-06-02 18:36:33 +00:00
David Carlton
cdef89d011
2003-06-02 David Carlton <carlton@math.stanford.edu>
...
* objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
* c-valprint.c (c_val_print): Delete unneeded variable 's'.
* p-valprint.c (pascal_val_print): Ditto.
* ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
2003-06-02 18:08:16 +00:00
Richard Henderson
eb4edb88d8
* alpha-tdep.c (alpha_push_dummy_call): Use
...
builtin_type_ieee_double_little instead of builtin_type_double.
2003-06-02 16:18:32 +00:00
Richard Henderson
0ede8ecaa0
* alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
...
sign-extension of 32-bit values.
(alpha_store_return_value): Similarly.
2003-06-02 16:17:54 +00:00
Richard Henderson
7b5e1cb37d
* alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
...
(alpha_extract_return_value): Likewise.
(alpha_store_return_value): Likewise.
2003-06-02 16:16:52 +00:00
Richard Henderson
24064b5c1a
* alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
...
(alpha_store_return_value): Error on IEEE Quad floats.
2003-06-02 16:16:14 +00:00
Richard Henderson
5ec2bb9908
* alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
...
(alpha_extract_struct_value_address): Likewise.
(alpha_store_return_value): Likewise.
(alpha_store_struct_return): Remove.
(alpha_gdbarch_init): Update hook registration to match.
2003-06-02 16:15:34 +00:00
Richard Henderson
14696584bb
* alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
...
deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
macros where appropriate.
(alpha_register_convert_to_raw): Similarly. Use unpack_long.
(alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
2003-06-02 16:14:54 +00:00
Richard Henderson
7266705675
* alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
...
for SP, GP; void_func_ptr for PC; non-language-specific types
for all others.
* alpha-tdep.h (ALPHA_GP_REGNUM): New.
2003-06-02 16:13:58 +00:00
Richard Henderson
6dd77b815f
* top.h (lim_at_start): Declare.
...
* main.c (captured_main): Set it.
* top.c (lim_at_start): Define.
(command_loop): Use it instead of &environ.
* event-top.c (command_handler): Likewise.
* gdb.base/selftest.exp: Next over lim_at_start initialization.
2003-06-02 16:02:59 +00:00
Jason Thorpe
f4dbdb5468
* mipsnbsd-tdep.c: Update copyright years.
...
(fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
2003-06-02 04:58:26 +00:00
Richard Henderson
8f28595645
* Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
...
(alpha-linux-tdep.o): Update dependencies.
(alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
* alpha-mdebug-tdep.c: Remove unneeded includes.
2003-06-02 04:34:37 +00:00
Richard Henderson
615967cb25
* alpha-tdep.c (alpha_register_reggroup_p): New.
...
(alpha_gdbarch_init): Register it.
2003-06-02 04:32:19 +00:00
Andrew Cagney
b59661bd15
2003-06-01 Andrew Cagney <cagney@redhat.com>
...
* dwarfread.c: Eliminate "register"
(decode_die_type): Eliminate assignment within "if".
(struct_type, decode_array_element_type): Ditto.
(dwarf_read_array_type, read_tag_pointer_type): Ditto.
(read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
(decode_modified_type, completedieinfo): Ditto.
* block.c: Eliminate "register".
(blockvector_for_pc_sect): Eliminate assignment within "if".
* cp-support.h (struct symbol): Opaque declaration.
* breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
2003-06-02 04:16:24 +00:00
Richard Henderson
5ef165c2ea
* alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
...
(_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
2003-06-02 03:38:09 +00:00
Adam Fedor
143985b7f3
* gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
...
* gdbarch.[ch]: Regenerate.
* hppa-tdep.c (hppa_fetch_pointer_argument): New function.
(hppa_gdbarch_init): Set it in the gdbarch vector.
* i386-tdep.c (i386_fetch_pointer_argument): New
(i386_gdbarch_init): Set it into gdbarch.
* rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
(rs6000_gdbarch_init): Set it in gdbarch.
* sparc-tdep.c (sparc_fetch_pointer_argument): New
(sparc_gdbarch_init): Set it in gdbarch.
2003-06-02 02:54:35 +00:00
Andrew Cagney
7c0b4a2066
2003-06-01 Andrew Cagney <cagney@redhat.com>
...
* defs.h (extract_address): Delete declaration.
* findvar.c (extract_address): Delete function.
* xstormy16-tdep.c (xstormy16_extract_return_value): Replace
extract_address with the inline equivalent,
extract_unsigned_integer.
(xstormy16_extract_struct_value_address): Ditto.
(xstormy16_pointer_to_address): Ditto.
* vax-tdep.c (vax_extract_struct_value_address): Ditto.
* v850-tdep.c (v850_push_arguments): Ditto.
(v850_extract_return_value): Ditto.
(v850_extract_struct_value_address): Ditto.
* sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
(sparcnbsd_get_longjmp_target_64): Ditto.
* sparc-tdep.c (sparc_frame_saved_pc): Ditto.
(get_longjmp_target): Ditto.
* sh-tdep.c (sh_extract_struct_value_address): Ditto.
(sh64_extract_struct_value_address): Ditto.
(sh_push_arguments): Ditto.
(sh64_push_arguments): Ditto.
* remote-vxsparc.c (vx_read_register): Ditto.
* ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
* ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
* mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
* mipsv4-nat.c (get_longjmp_target): Ditto.
* mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
* mips-nat.c (get_longjmp_target): Ditto.
* mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
* mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
* m68k-tdep.c (m68k_get_longjmp_target): Ditto.
* m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
* irix5-nat.c (get_longjmp_target): Ditto.
* irix4-nat.c (get_longjmp_target): Ditto.
* ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
(ia64_push_arguments): Ditto.
* hpux-thread.c (hpux_thread_store_registers): Ditto.
* h8300-tdep.c (h8300_push_arguments): Ditto.
(h8300_store_return_value): Ditto.
(h8300_extract_struct_value_address): Ditto.
* frv-tdep.c (frv_extract_struct_value_address): Ditto.
(frv_push_arguments): Ditto.
* avr-tdep.c (avr_pointer_to_address): Ditto.
(avr_push_arguments): Ditto.
* arm-tdep.c (arm_push_dummy_call): Ditto.
(arm_get_longjmp_target): Ditto.
* arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
* alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
(alpha_get_longjmp_target): Ditto.
2003-06-02 02:09:40 +00:00
Andrew Cagney
ae0167b9b5
2003-06-01 Andrew Cagney <cagney@redhat.com>
...
* solib-irix.c (extract_mips_address): Inline extract_address,
replacing it with extract_signed_integer.
* solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
(LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
(first_link_map_member, open_symbol_file_object): Ditto.
(svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
* solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
(LM_NEXT, LM_NAME): Ditto.
2003-06-01 23:00:55 +00:00
Richard Henderson
44d8858367
* alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
...
* alpha-tdep.c (alpha_register_name): Remove vfp entry.
(alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
(alpha_cannot_store_register): Likewise.
* alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
* alpha-nat.c (supply_gregset): Likewise.
* alphanbsd-tdep.c (fetch_core_registers): Likewise.
2003-06-01 21:46:37 +00:00
Andrew Cagney
310e9b6a18
2003-06-01 Andrew Cagney <cagney@redhat.com>
...
* infcall.c (call_function_by_hand): Update comment on
DEPRECATED_DUMMY_WRITE_SP.
* mips-tdep.c (mips_gdbarch_init): Do not set
deprecated_dummy_write_sp.
(mips_eabi_push_dummy_call): Set the SP register.
(mips_o64_push_dummy_call): Set the SP register.
(mips_o32_push_dummy_call): Set the SP register.
(mips_n32n64_push_dummy_call): Set the SP register.
2003-06-01 19:02:19 +00:00
Richard Henderson
5ab8487279
* alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
...
instead of ALPHA_MAX_REGISTER_RAW_SIZE.
(supply_gregset): Likewise.
* alpha-tdep.c (alpha_store_return_value): Likewise.
(alpha_get_longjmp_target): Likewise.
(alpha_register_name): Constify array.
(alpha_gdbarch_init): Remove deprecated_fp_regnum,
deprecated_register_size, deprecated_register_bytes,
deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
* alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
(ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
2003-06-01 18:44:13 +00:00
Richard Henderson
09cc52fd98
* alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
...
from arg_reg_buffer to regcache to avoid double conversion.
2003-06-01 18:42:30 +00:00
Mark Kettenis
c7f1635919
* i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
...
SP_REGNUM.
* i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
* i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
2003-06-01 16:45:02 +00:00
Richard Henderson
7131cb6efd
* dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
...
(decode_frame_entry): Set it. Skip FDE augmentation.
2003-06-01 16:08:54 +00:00
Richard Henderson
f3e0f90b5d
* dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
...
not overlapping PC_REGNUM.
2003-06-01 16:04:50 +00:00
Richard Henderson
c88e30c0a0
* alpha-tdep.c (alpha_push_dummy_call): Transmography from
...
alpha_push_arguments. Don't dump argument register data to
the target stack. Fix float and 128-bit long double semantics.
Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
(alpha_fix_call_dummy): Remove.
(alpha_call_dummy_words): Remove.
(alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
2003-06-01 16:02:50 +00:00
Richard Henderson
f1a559ae83
* alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
2003-06-01 15:53:56 +00:00
Andrew Cagney
95404a3ece
2003-06-01 Andrew Cagney <cagney@redhat.com>
...
* mips-tdep.c (is_mips16_addr): New function.
(make_mips16_addr, unmake_mips16_addr): New functions.
(pc_is_mips16, mips_fetch_instruction): Use.
(gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
(gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
(mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
TARGET_MIPS.
* config/mips/tm-mips.h: Update copyright.
(TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
(DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
(IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
* config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
(TM_PRINT_INSN_MACH): Delete.
* config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
2003-06-01 15:45:57 +00:00
Andrew Cagney
5e04534667
2003-06-01 Andrew Cagney <cagney@redhat.com>
...
* configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
mips*-*-riscos* and mips*-*-sysv* onto mips.
* config/mips/mips64.mt: New file.
* config/mips/mips.mt: New file.
* config/mips/littlemips.mt: Delete file.
* config/mips/decstation.mt: Delete file.
* config/mips/vr4300el.mt: Delete file.
* config/mips/vr5000el.mt: Delete file.
* config/mips/vr5000.mt: Delete file.
* config/mips/vr4100.mt: Delete file.
* config/mips/vr4xxxel.mt: Delete file.
* config/mips/vr4300.mt: Delete file.
* config/mips/vr4xxx.mt: Delete file.
* config/mips/bigmips.mt: Delete file.
* config/mips/bigmips64.mt: Delete file.
* config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
* config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
* config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
* config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
* config/mips/tm-tx39.h: Include "tm-mips.h" instead of
"tm-bigmips.h".
* config/mips/tm-irix3.h: Ditto.
* config/mips/tm-mipsv4.h: Ditto.
* config/mips/tm-embed.h: Ditto.
* config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
"tm-bigmips64.h".
* config/mips/tm-vr5000el.h: Delete file.
* config/mips/tm-tx39l.h: Delete file.
* config/mips/tm-vr4300el.h: Delete file.
* config/mips/tm-vr4xxxel.h: Delete file.
* config/mips/tm-vr4300.h: Delete file.
* config/mips/tm-vr4100.h: Delete file.
* config/mips/tm-vr4xxx.h: Delete file.
* config/mips/tm-vr5000.h: Delete file.
* config/mips/tm-embedl64.h: Delete file.
* config/mips/tm-embedl.h: Delete file.
* config/mips/tm-embed64.h: Delete file.
* config/mips/tm-bigmips64.h: Delete file.
* config/mips/tm-bigmips.h: Delete file.
2003-06-01 14:45:28 +00:00
Mark Kettenis
97a5b208dc
Fix gdb/1216.
...
* shnbsd-nat.c: Include "sh-tdep.h".
2003-06-01 12:31:26 +00:00
Mark Kettenis
2473a4a982
From Richard Henderson <rth@redhat.com>:
...
* dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
2003-06-01 09:19:40 +00:00
Andrew Cagney
e0f7ec5940
2003-05-31 Andrew Cagney <cagney@redhat.com>
...
* mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
forward declaration.
(mips16_heuristic_proc_desc): Pass temp_saved_regs.
(mips16_heuristic_proc_desc): Pass temp_saved_regs.
(mips_find_saved_regs): Use set_reg_offset.
(mips_frame_init_saved_regs): Delete function.
(mips_pop_frame): Call mips_find_saved_regs instead of
DEPRECATED_FRAME_INIT_SAVED_REGS.
2003-06-01 01:36:34 +00:00
Andrew Cagney
68dcc709bf
2003-05-31 Andrew Cagney <cagney@redhat.com>
...
* mips-tdep.c (mips_gdbarch_init): Do not set
deprecated_max_register_raw_size, register_virtual_size, and
deprecated_max_register_virtual_size.
2003-05-31 22:56:29 +00:00
Mark Kettenis
6405b0a631
* i386-tdep.c: Include "dwarf2-frame.h".
...
(i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
* Makefile.in (i386-tdep.o): Update dependencies.
2003-05-31 21:13:20 +00:00
Mark Kettenis
cfc14b3aa6
* dwarf2-frame.c, dwarf2-frame.h: New files.
...
* Makefile.in (SFILES): Add dwarf2-frame.c.
(dwarf2_frame_h): Define.
(COMMON_OBS): Add dwarf2-frame.o.
(dwarf2-frame.o): Add dependencies.
2003-05-31 19:18:05 +00:00
Andreas Jaeger
6a2751d273
* x86-64-linux-nat.c: Fix comment.
2003-05-31 18:00:04 +00:00
Mark Kettenis
10f93086fb
* x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
...
function signature.
2003-05-31 16:54:18 +00:00
Mark Kettenis
1c3545aea9
* i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
...
have a sigcontext_addr handler.
* x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
sigcontext_addr handler.
2003-05-31 16:49:18 +00:00
Andrew Cagney
e11c53d2ed
2003-05-31 Andrew Cagney <cagney@redhat.com>
...
* mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
(print_fp_register_row): Replace do_fp_register_row.
(mips_print_fp_register): Add "file" and "frame" parameters.
(mips_print_register): Add "file" and "frame" parameters.
(mips_print_registers_info): Replace mips_do_registers_info.
(mips_gdbarch_init): Set print_registers_info instead of
deprecated_do_registers_info.
(mips_read_fp_register_single): Add "frame" parameter.
(mips_read_fp_register_double): Add "frame" parameter.
2003-05-31 16:36:28 +00:00
Mark Kettenis
709134492b
* i386-tdep.c (i386_register_name): Check for MMX registers first.
...
Fixes a bug where GDB would print the wrong register names for
targets without SSE.
2003-05-31 16:25:13 +00:00
Mark Kettenis
2b5e07495d
* x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
...
(x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
registers.
* x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
(x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
TDEP->sc_sp_offset.
2003-05-31 16:11:47 +00:00
Mark Kettenis
a338618604
From Michal Ludvig <mludvig@suse.cz>:
...
* i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
and `sc_num_regs'.
(I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
I386_ST0_REGNUM): Move here from...
* i386-tdep.c: ... here.
(I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
(i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
registers if possible.
(i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
* i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
Remove variables.
(i386bsd_sc_reg_offset): New variable.
(i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
TDEP->sc_sp_offset.
(i386fbsd_sc_reg_offset): New variable.
(i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
TDEP->sc_num_regs.
(i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
variables.
(i386fbsd4_sc_reg_offset): New variable.
(i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
TDEP->sc_sp_offset.
* i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
(i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
* i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
Remove variables.
(i386nbsd_sc_reg_offset): New variable.
(i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
TDEP->sc_sp_offset.
* i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
Remove variables.
(i386obsd_sc_reg_offset): New variable.
(i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
TDEP->sc_sp_offset.
* i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
for frame pointer offset in `struct sigcontext'.
2003-05-31 16:08:06 +00:00
Andrew Cagney
25ab47902d
2003-05-31 Andrew Cagney <cagney@redhat.com>
...
* mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
architecture methods call_dummy_words, sizeof_call_dummy_words,
push_return_address, store_struct_return, and fix_call_dummy. Set
push_dummy_call instead of deprecated_push_arguments.
(mips_store_struct_return): Delete function.
(mips_fix_call_dummy): Delete function.
(mips_push_return_address): Delete function.
(mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
RA_REGNUM and T9_REGNUM.
(mips_n32n64_push_dummy_call): Ditto for
mips_n32n64_push_arguments.
(mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
(mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
2003-05-31 15:17:05 +00:00
Andrew Cagney
6a65450a7c
2003-05-31 Andrew Cagney <cagney@redhat.com>
...
* gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
"dummy_addr" to "bp_addr".
* infcall.c (call_function_by_hand): Pass "funaddr" to
gdbarch_push_dummy_call.
* gdbarch.h, gdbarch.c: Re-generate.
* i386-tdep.c (i386_push_dummy_call): Update.
* arm-tdep.c (arm_push_dummy_call): Update.
* d10v-tdep.c (d10v_push_dummy_call): Update.
2003-05-31 14:20:31 +00:00
Mark Kettenis
c4f35dd8e1
* x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
...
variable declarations.
(x86_64_register_number, x86_64_register_name): Remove prototypes.
(x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
x86_64_init_frame_pc, x86_64_init_frame_pc,
x86_64_function_has_prologue): Remove prototypes.
(X86_64_NUM_GREGS): New define.
(x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
* x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
"dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
(RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
XMM1_REGNUM): Remove defines.
(X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
X86_64_XMM1_REGNUM): New defines.
(struct x86_64_register_info): Renamed from `struct
register_info'. Remove `size' member.
(x86_64_register_info_table): Remove variable.
(x86_64_register_info): New variable.
(X86_64_NUM_REGS): New define.
(X86_64_NUM_GREGS): Remove define.
(x86_64_num_regs, x86_64_num_gregs): Remove variables.
(x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
Remove variables.
(x86_54_dwarf2_reg_to_regnum): Remove function.
(x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
(x86_64_dwarf_reg_to_regnum): New function.
(x86_64_register_name): Rewrite.
(x86_64_register_raw_size): Remove function.
(x86_64_register_byte_table): Remove variable.
(x86_64_register_byte): Remove function.
(x86_64_register_virtual_type): Remove function.
(x86_64_register_type): New function.
(x86_64_register_convertible, x86_64_register_convert_to_virtual,
x86_64_register_convert_to_raw): Remove functions.
(x86_64_push_return_address, x86_64_pop_frame): Remove functon.
(x86_64_use_struct_convention): Make static. Adjust for renamed
defines.
(x86_64_frame_init_saved_regs): Remove function.
(x86_64_push_arguments): Make static. Change to accept a regcache
as argument.
(x86_64_store_return_value, x86_64_extract_return_value): Make
static. Rewrite based on i386 counterparts.
(x86_64_push_dummy_call): New function.
(X86_64_NUM_SAVED_REGS): New define.
(x86_64_register_number): Remove function.
(x86_64_store_struct_return): Remove function.
(x86_64_frameless_function_invocation,
x86_64_function_has_prologue): Remove functions.
(PROLOG_BUFSIZE): Remove define.
(struct x86_64_frame_cache): New structure.
(x86_64_alloc_frame_cache, x86_64_analyze_prologue,
x86_64_frame_cache, x86_64_frame_this_id,
x86_64_frame_prev_register, x86_64_frame_p,
x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
functions.
(x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
variables.
(x86_64_skip_prologue): Rewrite in terms of
x86_64_analyze_prologue.
(x86_64_frame_base_address): New function.
(x86_64_frame_base): New variable.
(x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
(x86_64_init_abi): Set register_type and push_dummy_call. Don't
set deprecated_fp_regnum, deprecated_register_size,
deprecated_register_bytes, register_raw_size, register_byte,
register_virtual_type, register_convertiable,
register_convert_to_virtual, convert_to_raw,
deprecated_get_saved_register, deprecated_target_read_fp,
deprecated_push_arguments, deprecated_push_return_address,
deprecated_pop_frame, deprecated_store_struct_return,
deprecated_frame_init_saved_regs, deprecated_frame_chain,
frameless_function_invocation, deprecated_frame_saved_pc,
deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
dwarf2_build_frame_info, deprecated_init_extra_frame_info,
deprecated_init_frame_pc and virtual_frame_pointer. Call
frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
and x86_64_frame_p. Call frame_base_set_default to register
x86_64_frame_base.
(I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
(x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
(_initialize_x86_64_tdep): Remove function.
* x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
(LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
define.
(X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
(x86_64_linux_sigcontext_addr): Rewrite.
(x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
x86_64_linux_frame_saved_pc): Remove functions.
(x86_64_linux_pc_in_sigtramp): Renamed from
x86_64_linux_in_sigtramp. Try harder to recognize a signal
trampoline.
(x86_64_linux_frame_chain, x86_64_init_frame_pc):
Remove_functions.
(x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
* x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
(x86_64_regmap): Rename to regmap.
(GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
x86_64_num_gregs.
(supply_gregset, fill_gregset): Likewise. Use regmap instead of
x86_64_regmap.
(x86_64_fxsave_offset): Remove function.
(supply_fpregset): Simply call x86_64_supply_fxsave.
(fill_fpregset): Simply call x86_64_fill_fxsave.
(fetch_inferior_registers, store_inferior_registers): Avoid
asignment in if-statement.
(LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
(fetch_core_registers): Remove function.
(linux_elf_core_fns): Remove.
(offsetoff): Don't define.
(_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
* config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
* config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
add core-regset.o.
* config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
protection against multiple includes instead of NM_X86_64_h. Add
various comments. Include "config/nm-linux.h". Don't include
<signal.h>.
(REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
GET_THREAD_SIGNALS): Remove defines.
(x86_64_register_u_addr, kernel_u_size,
lin_thread_get_thread_signals): Remove prototypes.
(PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
[HAVE_LINK_H]: Don't include "solib.h".
[HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
* config/i386/tm-x86-64linux.h: Fix comments.
* Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
x86-64-tdep.o): Update dependencies.
2003-05-31 08:15:38 +00:00
Andrew Cagney
c8f55a7b39
2003-05-30 Andrew Cagney <cagney@redhat.com>
...
* config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
Change parameter type to a "struct regcache *".
2003-05-31 03:42:58 +00:00
Andrew Cagney
c25083afe3
2003-05-30 Andrew Cagney <cagney@redhat.com>
...
* gdbarch.sh: Regardless of the multi-arch level, always define
the macro when not already defined.
* gdbarch.h, gdbarch.c: Re-generate.
2003-05-31 03:23:47 +00:00
Richard Henderson
fbe586aede
* alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
...
(alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
(alpha_mdebug_frame_this_id): Likewise.
(alpha_mdebug_frame_prev_register): Likewise.
(alpha_mdebug_frame_base_address): Likewise.
(alpha_mdebug_frame_locals_address): Likewise.
(alpha_mdebug_frame_args_address): Likewise.
(struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
* alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
(alpha_heuristic_frame_unwind_cache): Make static; add missing
loop increment.
(alpha_heuristic_frame_this_id): Make static.
(alpha_heuristic_frame_prev_register): Likewise.
(alpha_heuristic_frame_base_address): Likewise.
* alpha-tdep.h: Update.
2003-05-31 00:27:46 +00:00
Mark Kettenis
acd5c79833
* i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
...
(I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
defenitions.
(IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
* i386-tdep.c: Mark functions that are 64-bit safe as such.
(I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
I386_ST0_REGNUM): New defines.
(CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
codestream_get): Remove define.
(codestream_next_addr, condestream_addr, condestream_buf,
codestream_off, codestream_cnt): Remove variables.
(codestream_fill, codestream_seek, codestream_read): Remove
functions.
(i386_follow_jump): Rewrite to avoid usage of removed codestream
functionality.
(i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
i386_frame_saved_pc, i386_saved_pc_after_call,
i386_frame_num_args, i386_frame_init_saved_regs,
i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
i386_push_arguments): Remove functions.
(i386_skip_prologue): Rewrite to avoid usage of removed codestream
functionality. Use i386_analyze_prologue instead of
i386_get_frame_setup.
(I386_NUM_SAVED_REGS): New define.
(struct i386_frame_cache): New structure.
(i386_alloc_frame_cache, i386_analyze_struct_return,
i386_skip_probe, i386_analyze_frame_setup,
i386_analyze_register_saves, i386_analyze_prologue,
i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
i386_frame_prev_register, i386_sigtramp_frame_cache,
i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
New functions.
(i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
New variables.
(LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
I386_EAX_REGNUM and I386_EDX_REGNUM.
(i386_extract_return_value, i386_store_return_value): Use
I386_ST0_REGNUM where appropriate.
(i386_extract_struct_value_address): Rewrite to use extract_address.
(i386_svr4_pc_in_sigtramp): Add comment.
(i386_svr4_sigcontext_addr): Rewrite.
(i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
TDEP->sc_sp_offset.
(i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
of new defines. Set push_dummy_call, don't set
deprecated_push_arguments, deprecated_push_return_address,
deprecated_pop_frame. Don't set parm_boundary. Don't set
deprecated_frame_chain, deprecated_frame_saved_pc,
deprecated_saved_pc_after_call. Set unwind_dummy_id,
save_dummy_frame_tos, unwind_pc. Call
frame_unwind_append_predicate and frame_base_set_default. Don't
set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
Don't set frameless_function_invocation. Don't set
deprecated_register_bytes, deprecated_register_size,
deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
* i386-linux-tdep.c: Fix formatting in some comments.
(LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
redundant parentheses.
(I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
(i386_linux_sigcontext_addr): Use it. Rewrite.
(find_minsym_and_objfile): Change name of second argument.
(skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
changed. Use frame_pc_unwind instead of
DEPRECATED_SAVED_PC_AFTER_CALL.
(i386_linux_init_abi): Don't set deprecated_register_bytes.
* i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
* i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
unwinder.
* i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
"dummy-frame.h".
(i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
(_initialize_i386_cygwin_tdep): New prototype.
(i386_cygwin_init_abi): Don't set deprecated_frame_chain and
deprecated_frame_chain_valid.
* i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
Rely on the SVR4 defaults.
* config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
* Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
2003-05-30 19:24:30 +00:00
Andrew Cagney
c89b70f16b
2003-05-30 Andrew Cagney <cagney@redhat.com>
...
* infcall.c (call_function_by_hand): Always call
DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
2003-05-30 18:43:38 +00:00
Richard Henderson
85b32d2290
* alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop increment.
2003-05-30 18:41:39 +00:00
Jim Blandy
bfe51b1e32
Use gdbarch methods for solib stuff on PowerPC Linux.
...
* config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
show through.
* ppc-linux-tdep.c (ppc_linux_init_abi): Register
IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
giving the same effect as the #definitions above.
2003-05-30 03:44:05 +00:00
Adam Fedor
1abf022c0c
* objc-lang.c (CONVERT_FUNCPTR): Remove macro
...
(find_implementation_from_class): Replace it with the standard
case i.e. do nothing.
2003-05-30 02:45:21 +00:00
Richard Henderson
d2427a719b
* alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
...
(alpha_linux_sigtramp_offset): Use it. Make static.
(alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
update for new frame model.
* alpha-mdebug-tdep.c: New file.
* alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
(alpha_osf1_init_abi): Install it.
* alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
(linked_proc_desc_table): Remove.
(alpha_frame_past_sigtramp_frame): Remove.
(alpha_dynamic_sigtramp_offset): Remove.
(ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
(alpha_proc_desc_is_dyn_sigtramp): Remove.
(alpha_set_proc_desc_is_dyn_sigtramp): Remove.
(push_sigtramp_desc): Remove.
(alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
(alpha_cannot_store_register): Likewise.
(alpha_sigcontext_addr): Remove.
(alpha_find_saved_regs): Remove.
(alpha_frame_init_saved_regs): Remove.
(alpha_init_frame_pc_first): Remove.
(read_next_frame_reg): Remove.
(alpha_frame_saved_pc): Remove.
(alpha_saved_pc_after_call): Remove.
(temp_proc_desc, temp_saved_regs): Remove.
(alpha_about_to_return): Remove.
(cached_proc_desc): Remove.
(alpha_frame_chain): Remove.
(alpha_print_extra_frame_info): Remove.
(alpha_init_extra_frame_info): Remove.
(alpha_frame_locals_address): Remove.
(alpha_frame_args_address): Remove.
(alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
(alpha_push_dummy_frame): Remove.
(alpha_pop_frame): Remove.
(alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
(alpha_read_insn): New.
(alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
for different insn encodings.
(alpha_in_lenient_prologue): Remove.
(struct alpha_sigtramp_unwind_cache): New.
(alpha_sigtramp_frame_unwind_cache): New.
(alpha_sigtramp_register_address): New.
(alpha_sigtramp_frame_this_id): New.
(alpha_sigtramp_frame_prev_register): New.
(alpha_sigtramp_frame_unwind): New.
(alpha_sigtramp_frame_p): New.
(struct alpha_heuristic_unwind_cache): New.
(alpha_heuristic_proc_start): Rename from heuristic_proc_start;
don't count nop insns that occur between functions.
(alpha_heuristic_frame_unwind_cache): New; incorporate much of
heuristic_proc_desc, but without the mdebug wrapping.
(alpha_heuristic_frame_this_id): New.
(alpha_heuristic_frame_prev_register): New.
(alpha_heuristic_frame_unwind): New.
(alpha_heuristic_frame_p): New.
(alpha_heuristic_frame_base_address): New.
(alpha_heuristic_frame_base): New.
(alpha_unwind_dummy_id): New.
(alpha_unwind_pc): New.
(alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
frame related deprecated initializations; install replacements.
(alpha_dump_tdep): Remove.
* alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
(alpha_read_insn, alpha_after_prologue,
alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
alpha_heuristic_frame_prev_register,
alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
* config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
* config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
* config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
2003-05-29 23:02:53 +00:00
Andrew Cagney
93ec1121ed
2003-05-29 Andrew Cagney <cagney@redhat.com>
...
* gdb_assert.h (gdb_assert_fail): Provide different definitions
dependant on the availability of ASSERT_FUNCTION.
(ASSERT_FUNCTION): Do not define when there is no function name.
2003-05-29 21:22:45 +00:00
Kevin Buettner
98f08d3d9b
From Jimi X <jimix@watson.ibm.com>:
...
* rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
2003-05-29 19:47:14 +00:00
Jim Blandy
0897f59bfa
* ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
...
argument to ptrace to int; the system headers should give it the
right type, and pointers don't fit in ints on powerpc64-*-*.
2003-05-28 22:39:02 +00:00
H.J. Lu
1489836332
2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
...
* dwarf2read.c (process_die): Handle DW_TAG_try_block and
DW_TAG_catch_block.
2003-05-28 20:25:10 +00:00
Elena Zannoni
a7a4879762
2003-05-26 Elena Zannoni <ezannoni@redhat.com>
...
* stabsread.c (dbx_lookup_type): Make static.
(read_type): Ditto.
(add_undefined_type): Ditto.
* stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
not export.
2003-05-26 19:35:53 +00:00
Elena Zannoni
f5479e9c58
2003-05-26 Elena Zannoni <ezannoni@redhat.com>
...
* hpread.c (hpread_has_name): Make static.
(hpread_psymtab_to_symtab): Ditto.
(file_exists): Ditto.
(hpread_call_pxdb): Ditto.
(hpread_pxdb_needed): Ditto.
(hpread_quick_traverse): Ditto.
(hpread_get_header): Ditto.
(hpread_get_lntt): Ditto.
(hpread_get_slt): Ditto.
(class_of): Ditto.
2003-05-26 19:34:06 +00:00
Andreas Schwab
78bf922a93
* m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
...
stack_align and deprecated_extra_stack_alignment_needed.
(m68k_stack_align): Delete.
2003-05-25 21:15:20 +00:00
Andreas Schwab
eb2e12d711
* m68k-tdep.c (m68k_register_raw_size): Remove cast.
...
(m68k_register_virtual_size): Likewise.
(altos_skip_prologue): Remove obsolete function.
(isi_frame_num_args): Likewise.
(news_frame_num_args): Likewise.
(m68k_fix_call_dummy): Make static.
(m68k_push_dummy_frame): Likewise.
(m68k_pop_frame): Likewise.
(m68k_skip_prologue): Likewise.
(m68k_frame_init_saved_regs): Likewise.
(m68k_saved_pc_after_call): Likewise.
(m68k_get_longjmp_target): Make multi-arch.
(m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
structure. Register m68k_get_longjmp_target if enabled.
* m68k-tdep.h (struct gdbarch_tdep): Define.
* config/m68k/tm-m68k.h: Don't include "regcache.h".
* Makefile.in (config.status): Also depend on configure.tgt
and configure.host.
(m68klinux-tdep.o): Update dependencies.
* configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
* m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
(M68K_LINUX_JB_PC): Define.
(m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
and take additional parameter.
(m68k_linux_sigtramp_saved_pc): Update.
(m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
m68k_linux_pc_in_sigtramp, in_plt_section,
find_solib_trampoline_target.
* config/m68k/tm-linux.h: Don't include any tm headers.
(START_INFERIOR_TRAPS_EXPECTED): Remove definition.
(JB_ELEMENT_SIZE): Likewise.
(JB_PC): Likewise.
(GET_LONGJMP_TARGET): Likewise.
(IN_SIGTRAMP): Likewise.
(SVR4_SHARED_LIBS): Define this and include "solib.h".
2003-05-25 18:50:55 +00:00
Mark Kettenis
eb2c22dc71
* sparc-tdep.c (sparc32_do_push_arguments): New function.
...
(sparc32_push_arguments): Re-implement by calling
sparc32_do_push_arguments.
2003-05-25 15:47:26 +00:00
Mark Kettenis
44b7b84e51
* sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
...
SPARC_O1_REGNUM): New defines.
(sparc32_extract_return_value): Rewrite to operate on a regcache.
(sparc32_store_return_value): New function.
(sparc_extract_struct_value_address): Rewrite to operate on a
regcache.
(sparc_gdbarch_init): Don't set
deprecated_extract_struct_value_address. Set
extract_struct_value_address instead. Don't set
deprecated_extract_return_value and deprecated_store_return_value
for 32-bit targets. Set extract_return_value and
store_return_value instead.
* config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
DEPRECTAED_EXTRACT_RETURN_VALUE,
DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
(STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
(sparc_store_return_value): Remove prototype.
(sparc32_store_return_value): New prototype.
(sparc32_extract_return_value, sparc_extract_struct_value_address):
Adjust prototypes.
2003-05-25 11:58:08 +00:00
Mark Kettenis
f6ad61e3d5
* sparcnbsd-tdep.c: Include "gdb_string.h".
2003-05-24 12:45:12 +00:00
Andrew Cagney
b276f1bbc9
2003-05-23 Andrew Cagney <cagney@redhat.com>
...
* p-valprint.c (pascal_val_print): Replace extract_address with
the inline equivalent extract_unsigned_integer.
* jv-valprint.c (java_value_print): Ditto.
* ada-valprint.c (ada_val_print_1): Ditto.
* ada-lang.h (EXTRACT_ADDRESS): Ditto.
2003-05-24 03:21:42 +00:00
Theodore A. Roth
e76c5fcc46
* blockframe.c (frameless_look_for_prologue): Remove unused
...
after_prologue variable.
2003-05-23 17:05:19 +00:00
Mark Kettenis
2cdd89cb84
* blockframe.c (get_pc_function_start): Rewrite to avoid
...
asignments in if-statements.
2003-05-23 16:59:13 +00:00
Elena Zannoni
182d43bc6e
2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
...
Committed by Elena Zannoni <ezannoni@redhat.com>.
* coffread.c(coff_symtab_read): Do relocate static symbols from PE
files, don't relocate absolute symbols (and do use mst_abs).
2003-05-23 16:16:00 +00:00
Andrew Cagney
e8f3fcdde6
2003-05-23 Andrew Cagney <cagney@redhat.com>
...
* objc-lang.c: Include "gdb_assert.h".
(objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
(CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
(gdb_check, gdb_check_fatal): Delete functions.
(read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
gdb_assert.
(parse_selector, parse_method, find_methods, find_imps): Ditto.
* Makefile.in (objc-lang.o): Update dependencies.
2003-05-23 16:02:30 +00:00
Ian Lance Taylor
3c23e6fb7e
* disasm.c (gdb_disassemble_info): Initialize disassemble_info
...
with fprintf_filtered, not fprintf_unfiltered.
2003-05-22 23:00:15 +00:00
Andrew Cagney
af1342ab7f
2003-05-22 Andrew Cagney <cagney@redhat.com>
...
* stack.c (frame_info): Inline extract_address, replacing it with
extract_unsigned_integer.
* findvar.c (unsigned_pointer_to_address): Ditto.
* dwarf2loc.c (dwarf_expr_read_reg): Ditto.
* dwarf2expr.c (dwarf2_read_address): Ditto.
* frame.c (frame_pc_unwind): Update comment.
* dummy-frame.c (deprecated_read_register_dummy): Update comment.
2003-05-22 18:37:05 +00:00
Jeff Johnston
47e242eca4
2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
...
* infptrace.c (detach): Call print_sys_errmsg rather than
perror_with_name to issue warning message when errno is non-zero
after calling ptrace detach.
2003-05-22 15:46:20 +00:00
Joel Brobecker
e2ac8128ef
* config/pa/tm-hppa.h: Delete some unused macros. Move some
...
macro definitions from here...
* hppa-tdep.c: ...to there.
2003-05-22 02:04:05 +00:00
Kevin Buettner
92b3541e35
* mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
...
register_ptrace_addr(). Fix all callers.
2003-05-20 23:54:34 +00:00
Andreas Schwab
55809acbfc
* Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
...
dependencies.
* m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
end.
* m68klinux-tdep.c (m68k_linux_init_abi): New function.
(_initialize_m68k_linux_tdep): New function.
(m68k_linux_frame_saved_pc): Make static.
(m68k_linux_extract_return_value): Likewise.
(m68k_linux_store_return_value): Likewise.
(m68k_linux_extract_struct_value_address): Likewise.
* config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
Remove.
(DEPRECATED_STORE_RETURN_VALUE): Remove.
(DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
(DEPRECATED_FRAME_SAVED_PC): Remove.
2003-05-20 23:44:23 +00:00
Kris Warkentin
0fbc10f791
Fix regset numbering.
2003-05-20 21:35:28 +00:00
David Carlton
58da2eb212
2003-05-19 David Carlton <carlton@bactrian.org>
...
* gdb.c++/rtti.exp: New file, containing tests for PR c++/488.
* gdb.c++/rtti.h, gdb.c++/rtti1.cc, gdb.c++/rtti2.cc: Ditto.
2003-05-19 David Carlton <carlton@bactrian.org>
* config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
2003-05-20 04:08:19 +00:00
David Carlton
1fcb515536
2003-05-19 David Carlton <carlton@bactrian.org>
...
Partial fix for PR c++/827.
* cp-support.h: Include symtab.h.
Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
* cp-namespace.c: Update contributors.
(cp_lookup_symbol_nonlocal): New.
(lookup_namespace_scope, cp_lookup_symbol_namespace)
(lookup_symbol_file): Ditto.
* c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
* block.h: Declare block_scope, block_using, block_global_block.
* block.c (block_scope): New.
(block_using, block_global_block): Ditto.
* Makefile.in (cp_support_h): Depend on symtab_h.
* config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
2003-05-19 David Carlton <carlton@bactrian.org>
* gdb.c++/namespace.exp: Add namespace scope and anonymous
namespace tests.
Bump copyright date.
* gdb.c++/namespace.cc: Add anonymous namespace and namespace C.
(main): Call C::D::marker2.
* gdb.c++/namespace1.cc: New file.
2003-05-20 03:56:29 +00:00
David Carlton
5f9a71c3d7
2003-05-19 David Carlton <carlton@bactrian.org>
...
* language.h (struct language_defn): Add 'la_value_of_this'
and 'la_lookup_symbol_nonlocal' members.
* symtab.h: Declare basic_lookup_symbol_nonlocal,
lookup_symbol_static, lookup_symbol_global,
lookup_symbol_aux_block.
* symtab.c (lookup_symbol_aux): Call language hooks to determine
if we should search fields of this and how to do static/global
lookup.
(lookup_symbol_aux_block): Make extern.
(basic_lookup_symbol_nonlocal): New.
(lookup_symbol_static, lookup_symbol_global): Ditto.
* ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
'la_lookup_symbol_nonlocal' members.
* c-lang.c (c_language_defn, cplus_language_defn)
(asm_language_defn, minimal_language_defn): Ditto.
* jv-lang.c (java_language_defn): Ditto.
* language.c (unknown_language_defn, auto_language_defn)
(local_language_defn): Ditto.
* m2-lang.c (m2_language_defn): Ditto.
* objc-lang.c (objc_language_defn): Ditto.
* scm-lang.c (scm_language_defn): Ditto.
* f-lang.c (f_language_defn): Ditto, and include value.h as well.
* p-lang.c (pascal_language_defn): Ditto for both.
* Makefile.in (f-lang.o): Depend on value_h.
(p-lang.o): Ditto.
2003-05-20 01:55:18 +00:00
David Carlton
89a9d1b163
2003-05-19 David Carlton <carlton@bactrian.org>
...
* block.h: Declare block_static_block.
* block.c (block_static_block): New.
* symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
lookup_symbol_aux_local, calling block_static_block instead.
(lookup_symbol_aux_local): Delete 'static_block' argument.
2003-05-20 01:26:58 +00:00
David Carlton
eed3f8ab35
2003-05-19 David Carlton <carlton@bactrian.org>
...
* symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
2003-05-20 01:12:47 +00:00
Michal Ludvig
a09d8bdab7
2003-05-19 Michal Ludvig <mludvig@suse.cz>
...
* x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
register numbers mapping.
2003-05-19 06:28:44 +00:00
Adam Fedor
6963682839
* symtab.c (completion_list_objc_symbol): New function.
...
(make_symbol_completion_list): Use it to add ObjC symbols
when looking though the list.
(language_search_unquoted_string): New function.
(make_file_symbol_completion_list): Use it.
2003-05-19 02:34:34 +00:00
Andreas Schwab
d0b45d99e8
* Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
...
dependencies.
* config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
as m68k_linux_extract_return_value.
(DEPRECATED_STORE_RETURN_VALUE): Define as
m68k_linux_store_return_value.
(DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
m68k_linux_extract_struct_value_address.
* m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
get_next_frame, get_frame_base, get_frame_pc.
(m68k_linux_frame_saved_pc): Use get_frame_base.
(m68k_linux_extract_return_value): New function.
(m68k_linux_store_return_value): New function.
(m68k_linux_extract_struct_value_address): New function.
* config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
2003-05-18 21:10:11 +00:00
Andreas Schwab
55baeb8469
* c-exp.y (typebase): Remove duplicate occurence of
...
`SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
of lookup_signed_typename.
2003-05-18 17:39:45 +00:00
Mark Kettenis
b6b08ebfbf
* dwarf2loc.c (find_location_expression): Change type of second
...
argument to `size_t *'.
(loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
for size variable.
2003-05-18 15:49:51 +00:00
David Carlton
5ad1c190f3
2003-05-18 David Carlton <carlton@bactrian.org>
...
* symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
'linkage_name'. Add comment.
(lookup_symbol_aux_local): Rename 'mangled_name' argument to
'linkage_name'.
(lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
(lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
(lookup_block_symbol): Ditto.
2003-05-18 15:29:31 +00:00
Andrew Cagney
b8b527c5a9
2003-05-16 Andrew Cagney <cagney@redhat.com>
...
* gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
* gdbarch.h, gdbarch.c: Re-generate.
* arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
* TODO (REGISTER_BYTES): Delete reference.
* alpha-tdep.c (alpha_gdbarch_init): Update.
* 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.
* ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
(ns32k_gdbarch_init_32382): Update.
* mn10300-tdep.c (mn10300_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.
* i386-linux-tdep.c (i386_linux_init_abi): 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.
* sparc-tdep.c (sparc_pop_frame): Update.
* rs6000-tdep.c (rs6000_pop_frame): Update.
* remote.c (init_remote_state): Update.
(remote_prepare_to_store): Update.
* remote-vx.c (vx_prepare_to_store): Update.
* remote-sds.c (sds_fetch_registers): Update.
(sds_prepare_to_store): Update.
* remote-array.c: Update.
* regcache.c (init_legacy_regcache_descr): Update.
(init_regcache_descr): Update.
* mips-tdep.c (mips_eabi_extract_return_value): Update.
(mips_o64_extract_return_value): Update.
* irix5-nat.c (fetch_core_registers): Update.
* irix4-nat.c (fetch_core_registers): Update.
* i386-tdep.h: Update.
* hppa-tdep.c (pa_do_registers_info): Update.
(pa_do_strcat_registers_info): Update.
* cris-tdep.c (cris_register_bytes_ok): Update.
* config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
* config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
* config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
* config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
* config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
* config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
* config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
* config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
* config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
* config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
* config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
* config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
(REGISTER_BYTES_OK): Update.
* config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
* config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
Index: doc/ChangeLog
2003-05-16 Andrew Cagney <cagney@redhat.com>
* gdbint.texinfo (Target Architecture Definition): Replace
REGISTER_BYTES with DEPRECATED_REGISTER_BYTES. Fix typo,
DEPRECATED_REGISTER_SIZE instead of REGISTER_BYTE.
Index: mi/ChangeLog
2003-05-16 Andrew Cagney <cagney@redhat.com>
* mi-main.c (mi_setup_architecture_data):
2003-05-17 06:00:01 +00:00