aboutsummaryrefslogtreecommitdiff
path: root/gdb/hppa-tdep.c
AgeCommit message (Collapse)AuthorFilesLines
2002-11-142002-11-13 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-11/+11
* regcache.h (deprecated_read_register_bytes): Rename read_register_bytes. (deprecated_write_register_bytes): Rename write_register_bytes. * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update. * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update. * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update. * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update. * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update. * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update. * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update. * config/nm-m3.h, config/h8500/tm-h8500.h: Update. * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update. * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update. * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update. * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update. * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update. * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update. 2002-11-13 Andrew Cagney <ac131313@redhat.com> * mi-main.c (mi_cmd_data_write_register_values): Use deprecated_write_register_bytes instead of write_register_bytes.
2002-11-08 Preparation work to convert the hppa targets to multiarch partial.Joel Brobecker1-0/+167
* hppa-tdep.c: Add new functions replacing macro bodies from config/pa/tm-hppa.h. These function will be used to initialize the gdbarch structure. Import some comments from tm-hppa.h, and place them where appropriate, to avoid loosing them when we cleanup this file. (hppa_reg_struct_has_addr): New function. (hppa_inner_than): New function. (hppa_stack_align): New function. (hppa_pc_requires_run_before_use): New function. (hppa_instruction_nullified): New function. (hppa_register_byte): New function. (hppa_register_virtual_type): New function. (hppa_store_struct_return): New function. (hppa_cannot_store_register): New function. (hppa_frame_args_address): New function. (hppa_frame_locals_address): New function. (hppa_smash_text_address): New function. (hppa_coerce_float_to_double): New function. Requires the inclusion of "language.h". * Makefile.in (hppa-tdep.o): Add dependency on language.h. * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this gdbarch-eligible macro to a call to the new associated function created in hppa-tdep.c. (INNER_THAN): Likewise. (STACK_ALIGN): Likewise. (PC_REQUIRES_RUN_BEFORE_USE): Likewise. (INSTRUCTION_NULLIFIED): Likewise. (REGISTER_BYTE): Likewise. (REGISTER_VIRTUAL_TYPE): Likewise. (STORE_STRUCT_RETURN): Likewise. (CANNOT_STORE_REGISTER): Likewise. (FRAME_ARGS_ADDRESS): Likewise. (FRAME_LOCALS_ADDRESS): Likewise. (SMASH_TEXT_ADDRESS): Likewise. (COERCE_FLOAT_TO_DOUBLE): Likewise. (ABOUT_TO_RETURN): Delete, as no longer used.
2002-11-07 Put in place the framework necessary for multiarching the hppa targets.Joel Brobecker1-0/+23
* hppa-tdep.c (hppa_gdbarch_init): New function. (hppa_dump_tdep): New function. (_initialize_hppa_tdep): Register the hppa gdbarch init function and tdep structure dumper. * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0 until the multi-arching conversion has partially been completed.
2002-11-07 * hppa-tdep.c (_initialize_hppa_tdep): Move function bodyJoel Brobecker1-45/+46
to end of file, to be more consistent with the pratice followed by other targets.
2002-10-30 * hppa-tdep.c (find_function_in_inferior): Remove this extern,Joel Brobecker1-4/+1
as this is already provided by value.h, and was actually causing a compilation error because of a conflict in parameter type declaration due to a missing const keyword. (low_text_segment_addres): Fix a compilation warning.
2002-10-242002-10-24 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni1-1/+1
* symtab.h (INIT_SAL): Delete macro. (init_sal): Export. * symtab.c (init_sal): New function. * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro to init_sal function call. (find_sal_from_funcs_and_line): Ditto. (all_sals_for_line): Ditto. * breakpoint.c (create_internal_breakpoint): Ditto. (create_fork_vfork_event_catchpoint): Ditto. (create_exec_event_catchpoint): Ditto. (parse_breakpoint_sals): Ditto. (watch_command_1): Ditto. (handle_gnu_4_16_catch_command): Ditto. (clear_command): Ditto. * hppa-tdep.c (child_enable_exception_callback): Ditto. * infcmd.c (run_stack_dummy): Ditto. * infrun.c (process_event_stop_test): Ditto. (check_sigtramp2): Ditto. (step_over_function): Ditto. * linespec.c (decode_line_2): Ditto. (decode_line_1): Ditto. * source.c (line_info): Ditto. * symtab.c (find_pc_sect_line): Ditto.
2002-05-05* frame.h (select_frame): Delete level parameter.Andrew Cagney1-3/+3
* stack.c (select_frame): Update. Use frame_relative_level to obtain the frame's level. (select_and_print_frame): Update call. (select_frame_command): Ditto. (up_silently_base): Ditto. (down_silently_base): Ditto. * ocd.c (ocd_start_remote): Ditto. * remote-rdp.c (remote_rdp_open): Ditto. * remote-mips.c (mips_initialize): Ditto. (common_open): Ditto. * remote-e7000.c (e7000_start_remote): Ditto. * m3-nat.c (select_thread): Ditto. * hppa-tdep.c (child_get_current_exception_event): Ditto. (child_get_current_exception_event): Ditto. * varobj.c (varobj_create): Ditto. (varobj_update): Ditto. (c_value_of_root): Ditto. * tracepoint.c (finish_tfind_command): Ditto. * corelow.c (core_open): Ditto. * arch-utils.c (generic_prepare_to_proceed): Ditto. * thread.c (info_threads_command): Ditto. (switch_to_thread): Ditto. * infrun.c (normal_stop): Ditto. (restore_selected_frame): Ditto. (restore_inferior_status): Ditto. * breakpoint.c (insert_breakpoints): Ditto. (watchpoint_check): Ditto. (bpstat_stop_status): Ditto. (do_enable_breakpoint): Ditto. * blockframe.c (flush_cached_frames): Ditto. (reinit_frame_cache): Ditto.
2002-04-24* arch-utils.h: Update copyright.Andrew Cagney1-2/+3
* gdbarch.sh (PC_IN_SIGTRAMP): Add. * gdbarch.h, gdbarch.c: Re-generate. * inferior.h (IN_SIGTRAMP): Delete definition. * arch-utils.c (legacy_pc_in_sigtramp): New function. * arch-utils.h (legacy_pc_in_sigtramp): Declare. * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP. (mips_dump_tdep): Do not print value of IN_SIGTRAMP. * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP. (find_proc_framesize): Ditto. * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto. (alpha_init_extra_frame_info): Ditto. * infrun.c (handle_inferior_event): Ditto. (handle_inferior_event): Ditto. (check_sigtramp2): Ditto. * blockframe.c (create_new_frame): Ditto. (get_prev_frame): Ditto. * ppc-linux-tdep.c: Update comments. * i386-linux-tdep.c: Update comments. * breakpoint.c (bpstat_what): Update comment. * gdbint.texinfo (Target Architecture Definition): Replace IN_SIGTRAMP with PC_IN_SIGTRAMP.
2002-04-12* defs.h (read_relative_register_raw_bytes): Delete declaration.Andrew Cagney1-8/+9
* frame.c (frame_register_read): New function. Return non-zero on success. (read_relative_register_raw_bytes_for_frame): Delete. (read_relative_register_raw_bytes): Delete. * frame.h (frame_register_read): Declare. * d30v-tdep.c: Update Copyright. Use frame_register_read. * sh-tdep.c: Ditto. * infcmd.c (do_registers_info): Ditto. * hppa-tdep.c: Ditto. * rs6000-tdep.c: Ditto. * h8500-tdep.c: Ditto. * mips-tdep.c: Ditto. * h8300-tdep.c: Ditto. * z8k-tdep.c: Ditto.
2002-03-27 * somread.c (som_symtab_read): Remove some commented out code andJeff Law1-1/+3
updated related comments. Do not set the minimal symbol table to mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope in a dynamic executable. * hppa-tdep.c (find_proc_framesize): Sanely handle the case where we are unable to find the minimal symbol for the given PC value.
2002-03-06* cli/cli-decode.c (set_cmd_completer): New function.Andrew Cagney1-1/+1
* command.h (set_cmd_completer): Declare. * cli/cli-decode.h (set_cmd_completer): Ditto. * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer. * cli/cli-cmds.c (init_cli_cmds): Ditto. * win32-nat.c (_initialize_inftarg): Ditto. * remote-rdi.c (_initialize_remote_rdi): Ditto. * proc-api.c (_initialize_proc_api): Ditto. * hppa-tdep.c (_initialize_hppa_tdep): Ditto. * source.c (_initialize_source): Ditto. * exec.c (_initialize_exec): Ditto. * solib.c (_initialize_solib): Ditto. * top.c (init_main): Ditto. * tracepoint.c (_initialize_tracepoint): Ditto. * symfile.c (_initialize_symfile): Ditto. * printcmd.c (_initialize_printcmd): Ditto. * infcmd.c (_initialize_infcmd): Ditto. * corefile.c (_initialize_core): Ditto.
2002-02-03 * breakpoint.c (break_at_finish_command): Really export.Peter Schauer1-0/+1
(break_at_finish_at_depth_command): Ditto. (tbreak_at_finish_command): Ditto. * hppa-tdep.c: Include completer.h. * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h). (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
2002-02-012002-02-01 Michael Snyder <msnyder@redhat.com>Michael Snyder1-15/+18
* hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
2002-02-012002-01-31 Michael Snyder <msnyder@redhat.com>Michael Snyder1-0/+32
* breakpoint.c (break_at_finish_command): Export. (break_at_finish_at_depth_command): Export. (tbreak_at_finish_command): Export. (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands. * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and "tbreak" commands, which are HPPA specific.
2002-01-13* hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byteAndrew Cagney1-1/+2
structures passed in registers.
2001-12-19 * config/pa/tm-hppa.h (STORE_RETURN_VALUE): Use hppa_store_return_value.Jeff Law1-0/+50
(EXTRACT_RETURN_VALUE): Similarly. * hppa-tdep.c (hppa_store_return_value): New function. (hppa_extract_return_value): New function.
2001-10-24Fix -Wformat for hpux.Andrew Cagney1-16/+19
2001-07-15s/value_ptr/struct value */Andrew Cagney1-9/+10
2001-06-06* arch-utils.c (generic_prepare_to_proceed): Allow for havingJonathan Larmour1-1/+4
stopped due to a Ctrl-C as well as breakpoints. * hppa-tdep.c (hppa_prepare_to_proceed): Add FIXME as this may not support thread switches after Ctrl-C. * lin-lwp.c (lin_lwp_prepare_to_proceed): Ditto. * linux-thread.c (linuxthreads_prepare_to_proceed): Ditto. * m3-nat.c (mach3_prepare_to_proceed): Ditto.
2001-05-12Tweeks from RDBrown to fix compiling on HP/UX using HP's compiler.Andrew Cagney1-1/+1
2001-05-04Phase 1 of the ptid_t changes.Kevin Buettner1-24/+24
2001-04-062001-04-06 David Smith <dsmith@redhat.com>David Smith1-1/+4
* arch-utils.c (default_prepare_to_proceed) (generic_prepare_to_proceed): Added new functions. * arch-utils.h: New function declarations for default_prepare_to_proceed() and generic_prepare_to_proceed(). * gdbarch.sh: Added PREPARE_TO_PROCEED. * gdbarch.c: Regenerated. * gdbarch.h: Regenerated. * inferior.h: Added get_last_target_status() declaration. * infrun.c (get_last_target_status): Added new function. (handle_inferior_event): Saves last pid and waitstatus, which will get returned by get_last_target_status(). * hppa-tdep.c (prepare_to_proceed): Added comment stating that prepare_to_proceed() is potentially redundant since default_prepare_to_proceed() has been added. * linux-thread.c (prepare_to_proceed): Ditto. * lin-lwp.c (prepare_to_proceed): Ditto. * m3-nat.c (prepare_to_proceed): Ditto.
2001-03-14Eliminate some uses of __STDC__.Andrew Cagney1-8/+0
2001-03-06Update/correct copyright notices.Kevin Buettner1-2/+2
2001-03-01Create new file regcache.h. Update all uses.Andrew Cagney1-1/+3
2000-09-02Protoization.Kevin Buettner1-4/+1
2000-08-102000-08-10 Kazu Hirata <kazu@hxi.com>Kazu Hirata1-1/+1
* hppa_tdep.c: Fix a comment typo.
2000-07-30Protoization.Kevin Buettner1-171/+75
2000-05-28PARAMS removal.Kevin Buettner1-38/+37
2000-05-15Cleanup delete_breakpoint cleanups.Andrew Cagney1-1/+1
2000-04-14* gdbarch.sh (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER): Two newJim Blandy1-4/+4
functions which architectures can redefine, defaulting to generic_pointer_to_address and generic_address_to_pointer. * findvar.c (extract_typed_address, store_typed_address, generic_pointer_to_address, generic_address_to_pointer): New functions. (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER): Provide default definitions. (extract_address, store_address): Doc fixes. * values.c (value_as_pointer): Doc fix. (value_from_pointer): New function. * defs.h (extract_typed_address, store_typed_address): New declarations. * inferior.h (generic_address_to_pointer, generic_pointer_to_address): New declarations. * value.h (value_from_pointer): New declaration. * ax-gdb.c (const_var_ref): Use value_from_pointer, not value_from_longest. * blockframe.c (generic_push_dummy_frame): Use read_pc and read_sp, not read_register. * c-valprint.c (c_val_print): Use extract_typed_address instead of extract_address to extract vtable entries and references. * cp-valprint.c (cp_print_value_fields): Use value_from_pointer instead of value_from_longest to extract the vtable's address. * eval.c (evaluate_subexp_standard): Use value_from_pointer instead of value_from_longest to compute `this', and for doing pointer-to-member dereferencing. * findvar.c (read_register): Use extract_unsigned_integer, not extract_address. (read_var_value): Use store_typed_address instead of store_address for building label values. (locate_var_value): Use value_from_pointer instead of value_from_longest. * hppa-tdep.c (find_stub_with_shl_get): Use value_from_pointer, instead of value_from_longest, to build arguments to __d_shl_get. * printcmd.c (set_next_address): Use value_from_pointer, not value_from_longest. (x_command): Use value_from_pointer, not value_from_longest. * tracepoint.c (set_traceframe_context): Use value_from_pointer, not value_from_longest. * valarith.c (value_add, value_sub): Use value_from_pointer, not value_from_longest. * valops.c (find_function_in_inferior, value_coerce_array, value_coerce_function, value_addr, hand_function_call): Same. * value.h (COERCE_REF): Use unpack_pointer, not unpack_long. * values.c (unpack_long): Use extract_typed_address to produce addresses from pointers and references, not extract_address. (value_from_longest): Use store_typed_address instead of store_address to produce pointer and reference values.
2000-02-09Replace ../include/wait.h with gdb_wait.h.Andrew Cagney1-1/+1
2000-02-02import gdb-2000-02-01 snapshotJason Molenda1-7/+6
1999-11-17import gdb-1999-11-16 snapshotJason Molenda1-1/+1
1999-10-05import gdb-1999-10-04 snapshotJason Molenda1-1/+1
1999-09-28import gdb-1999-09-28 snapshotJason Molenda1-8/+37
1999-09-22import gdb-1999-09-21Jason Molenda1-73/+271
1999-09-09import gdb-1999-09-08 snapshotStan Shebs1-44/+58
1999-08-31import gdb-1999-08-30 snapshotJason Molenda1-30/+76
1999-08-23import gdb-1999-08-23 snapshotJason Molenda1-164/+330
1999-08-16import gdb-1999-08-16 snapshotJason Molenda1-199/+52
1999-08-02import gdb-1999-08-02 snapshotJason Molenda1-19/+22
1999-07-19import gdb-1999-07-19 snapshotJason Molenda1-9/+16
1999-07-07import gdb-1999-07-07 post reformatJason Molenda1-916/+943
1999-06-07import gdb-1999-06-07 snapshotJason Molenda1-117/+111
1999-05-05import gdb-19990504 snapshotStan Shebs1-1/+1
1999-04-26import gdb-19990422 snapshotStan Shebs1-15/+12
1999-04-16Initial creation of sourceware repositorygdb-4_18-branchpointStan Shebs1-0/+4445
1999-04-16Initial creation of sourceware repositoryStan Shebs1-4437/+0
1998-12-31all remaining *.c *.h files from hp merge.David Taylor1-119/+1673