Commit Graph

16629 Commits

Author SHA1 Message Date
Jim Blandy f65f91b509 * ppc-tdep.h: Delete unused 'regoff' member.
* rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
2004-06-02 03:06:23 +00:00
gdbadmin f4d82318a1 *** empty log message *** 2004-06-02 00:00:34 +00:00
Michael Chastain d4687fa094 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
Fix PR symtab/1661.
	* hpread.c (hpread_pxdb_needed): Call memset after alloca.
	(hpread_read_struct_type): Likewise.
2004-06-01 22:39:23 +00:00
Andrew Cagney c6902d4692 2004-06-01 Andrew Cagney <cagney@gnu.org>
* mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
	instead of xasprintf.
	* mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
	(mi_cmd_thread_select, mi_cmd_thread_list_ids)
	(mi_cmd_data_list_register_names)
	(mi_cmd_data_list_changed_registers)
	(mi_cmd_data_list_register_values)
	(get_register, mi_cmd_data_write_register_values)
	(mi_cmd_data_write_register_values)
	(mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
	(mi_cmd_target_download, mi_cmd_target_select)
	(mi_cmd_data_read_memory, mi_cmd_data_write_memory)
	(mi_execute_cli_command, mi_execute_async_cli_command)
	(mi_execute_async_cli_command): Ditto.
	* mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
	* mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
2004-06-01 13:33:58 +00:00
Andrew Cagney 6085fc2d26 2004-06-01 Andrew Cagney <cagney@gnu.org>
* mi/mi-cmds.h (mi_error_last_message): Delete declaration.
	* mi/mi-interp.c (mi_cmd_interpreter_exec): Call
	error_last_message instead of mi_error_last_message.
	* mi/mi-main.c (mi_error_last_message): Delete function.
2004-06-01 13:15:02 +00:00
Andrew Cagney de169ec977 2004-06-01 Andrew Cagney <cagney@gnu.org>
* mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
	"invalid number of columns" error.  Delete redundant "out of
	memory" check.
2004-06-01 12:55:33 +00:00
gdbadmin 2331a567b3 *** empty log message *** 2004-06-01 00:00:40 +00:00
Mark Kettenis 6cfb204197 * i386bsd-nat.c: Don't include <sys/procfs.h>.
(gregset_t, fpregset_t): Remove typedefs.
(CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
(REG_OFFSET): Rename argument.
(i386bsd_r_reg_offset): Rename from reg_offset.
(REG_ADDR): Remove macro.
(cannot_fetch_register, supply_gregset, fill_gregset): Remove
functions.
(i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
(fetch_inferior_registers): Use `struct reg' and `struct fpreg'
instead of gregset_t and fpregset_t.  Use i386bsd_supply_gregset
instead of supply_gregset.
(store_inferior_registers): Use `struct reg' and `struct fpreg'
instead of gregset_t and fpregset_t.  Use i386bsd_collect_gregset
instead of fill_gregset.
(register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
2004-05-31 11:20:41 +00:00
Mark Kettenis 1fc7d51975 * i386bsd-nat.c: Don't include "gregset.h".
(supply_gregset, fill_gregset): Make static.
(supply_fpregset, fill_fpregset): Remove.
* Makefile.in (i386bsd-nat.o): Update dependencies.
2004-05-31 10:01:18 +00:00
gdbadmin f531fcbcc2 *** empty log message *** 2004-05-31 00:00:33 +00:00
Mark Kettenis 448724fb16 * fbsd-proc.c: Include "regcache.h", "regset.h" and
"gdb_assert.h".  Con't include "gregset.h".
(fbsd_make_corefile_notes): Use regset-based core file support
instead off fill_gregset and fill_fpregset.
* Makefile.in (fbsd-proc.o): Update dependencies.
2004-05-30 18:29:10 +00:00
Mark Kettenis 5ca8ca7c88 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
instructions.
(m88k_frame_prev_register): Simplify code a bit.
2004-05-30 18:16:31 +00:00
Mark Kettenis 593adc2349 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
(amd64_collect_fpregset): New function.
(amd64_regset_from_core_section): Use amd64_collect_fpregset.
2004-05-30 16:56:08 +00:00
Mark Kettenis 8d1b517b97 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM. 2004-05-30 14:31:29 +00:00
Mark Kettenis 7fdafb5ae3 * i386-tdep.c (i386_supply_gregset): Adjust comment.
(i386_collect_gregset): New function.
(i386_supply_fpregset): Adjust comment.
(i386_collect_fpregset): New function.
(i386_regset_from_core_section): Use i386_collect_gregset and
i386_collect_fpregset.
2004-05-30 14:13:49 +00:00
Mark Kettenis 8693c41972 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
handle VALUEP being null.
2004-05-30 14:11:00 +00:00
gdbadmin 4f992c32bb *** empty log message *** 2004-05-30 00:00:02 +00:00
Mark Kettenis 2c34abbec7 * regset.h (collect_regset_ftype): Unconstify fourth argument. 2004-05-29 22:28:57 +00:00
Mark Kettenis 1698f4e78c * MAINTAINERS: Undelete m88k. Add myself as maintainer. 2004-05-29 15:12:23 +00:00
Mark Kettenis d3dd7f2947 Fix botched checkin. 2004-05-29 15:10:41 +00:00
Mark Kettenis 4cd28409c5 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
assembler in OpenBSD 3.5-current.
(amd64obsd_sigcontext_addr): Likewise.
2004-05-29 15:09:18 +00:00
Mark Kettenis 45d134d8e0 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
assembler in OpenBSD 3.5-current.
(amd64obsd_sigcontext_addr): Likewise.

* MAINTAINERS: Undelete m88k.  Add myself as maintainer.
2004-05-29 12:38:24 +00:00
gdbadmin 859e469117 *** empty log message *** 2004-05-29 00:00:07 +00:00
Jim Blandy 691d145a72 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
register set, so our regcache isn't declared "legacy" and our E500
pseudoregister read and write functions aren't ignored.
(rs6000_register_byte, rs6000_register_raw_size,
rs6000_register_virtual_type, rs6000_register_convertible,
rs6000_register_convert_to_virtual,
rs6000_register_convert_to_raw): Deleted.
(rs6000_register_type, rs6000_convert_register_p,
rs6000_register_to_value, rs6000_value_to_register): New
functions.
(rs6000_gdbarch_init): Don't register
gdbarch_deprecated_register_size,
gdbarch_deprecated_register_bytes,
gdbarch_deprecated_register_byte,
gdbarch_deprecated_register_raw_size,
gdbarch_deprecated_register_virtual_type,
gdbarch_deprecated_register_convertible,
gdbarch_deprecated_register_convert_to_virtual, or
gdbarch_deprecated_register_convert_to_raw methods.  Instead,
register gdbarch_register_type, gdbarch_convert_register_p,
gdbarch_register_to_value, and gdbarch_value_to_register methods.
2004-05-28 21:59:37 +00:00
Jim Blandy 18ed0c4eb8 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
(rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
functions, updated to match the register numberings used in GCC.
(rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
rs6000_dwarf2_reg_to_regnum as register number conversions
functions for STABS and Dwarf2.
2004-05-28 18:56:37 +00:00
gdbadmin 3c7475d3c6 *** empty log message *** 2004-05-28 00:00:03 +00:00
gdbadmin 3b0f9eb73a *** empty log message *** 2004-05-27 00:00:02 +00:00
Jim Blandy 7a8f1e6b98 * gdb.arch/e500-prologue.exp, gdb.arch/e500-prologue.c: New tests. 2004-05-26 16:03:52 +00:00
Randolph Chung 779af9e343 2004-05-26 Randolph Chung <tausq@debian.org>
* infttrace.h (target_waitkind): Forward declare type instead of pulling
	in header file.
2004-05-26 15:38:40 +00:00
Joel Brobecker c23968a218 * NEWS: Document new "start" command. 2004-05-26 06:32:01 +00:00
Randolph Chung 3a7d1c27ef 2004-05-25 Randolph Chung <tausq@debian.org>
* hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
	hppa-linux.
2004-05-26 05:51:39 +00:00
Randolph Chung 436134168c 2004-05-25 Randolph Chung <tausq@debian.org>
* hppa-hpux-tdep.c (offsetof): Define.
	(hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
	(hppa32_hpux_frame_base_before_sigtramp)
	(hppa32_hpux_frame_find_saved_regs_in_sigtramp)
	(hppa64_hpux_frame_saved_pc_in_sigtramp)
	(hppa64_hpux_frame_base_before_sigtramp)
	(hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
	functions.
	(struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
	(hppa_hpux_sigtramp_frame_unwind_cache)
	(hppa_hpux_sigtramp_frame_this_id)
	(hppa_hpux_sigtramp_frame_prev_register)
	(hppa_hpux_sigtramp_frame_unwind)
	(hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
	(hppa_hpux_init_abi): Register sigtramp unwinder.
	* Makefile.in (hppa-hpux-tdep.o): Update dependencies.
2004-05-26 05:31:39 +00:00
Randolph Chung 6d1be3f186 2004-05-25 Randolph Chung <tausq@debian.org>
* hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
	and multiple stack unwinds.
	(hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
2004-05-26 04:02:24 +00:00
gdbadmin b057cbf032 *** empty log message *** 2004-05-26 00:00:32 +00:00
Andrew Cagney 97c34f656c 2004-05-25 Andrew Cagney <cagney@gnu.org>
* symfile.h (symbol_file_add_from_memory): Delete declaration.
	* symfile-mem.h: Delete file.
	* symfile-mem.c: Do not include "symfile-mem.h".
	(symbol_file_add_from_memory): Make static. Use "struct bfd" and
	"struct bfd_section".  When an error do not bother returning NULL.
	(add_symbol_file_from_memory_command): Use "struct bfd" and
	"struct bfd_section".
	* Makefile.in (symfile_mem_h): Delete.
	(symfile-mem.o): Update dependencies.
2004-05-25 21:55:43 +00:00
Nick Roberts aeea8b7740 New file. 2004-05-25 20:03:05 +00:00
Nick Roberts e23cbd82ff *** empty log message *** 2004-05-25 20:02:20 +00:00
Andrew Cagney 20d2ca3e86 2004-05-25 Andrew Cagney <cagney@gnu.org>
* inftarg.c: Include "observer.h".
	(child_attach, child_create_inferior): Notify inferior_created.
	* corelow.c: Include "observer.h".
	(core_open): Notify inferior_created.
	* Makefile.in (inftarg.o, corelow.o): Update dependencies.
2004-05-25 16:04:07 +00:00
Andrew Cagney c27cda74c7 2004-05-25 Andrew Cagney <cagney@gnu.org>
* target.h (struct target_ops): Add from_tty to
	to_create_inferior.
	(target_create_inferior, find_default_create_inferior): Update.
	* infcmd.c (run_command): Update.
	* wince.c (child_create_inferior): Update.
	* win32-nat.c (child_create_inferior): Update.
	* uw-thread.c (uw_thread_create_inferior): Update.
	* thread-db.c (thread_db_create_inferior): Update.
	* target.c (debug_to_create_inferior)
	(find_default_create_inferior): Update.
	(maybe_kill_then_create_inferior): Update.
	* sol-thread.c (sol_thread_create_inferior): Update.
	* remote.c (extended_remote_async_create_inferior)
	(extended_remote_create_inferior): Update.
	* remote-vx.c (vx_create_inferior): Update.
	* remote-st.c (st2000_create_inferior): Update.
	* remote-sim.c (gdbsim_create_inferior): Update.
	* remote-sds.c (sds_create_inferior): Update.
	* remote-rdp.c (remote_rdp_create_inferior): Update.
	* remote-rdi.c (arm_rdi_create_inferior): Update.
	* remote-m32r-sdi.c (m32r_create_inferior): Update.
	* remote-e7000.c (e7000_create_inferior): Update.
	* procfs.c (procfs_create_inferior): Update.
	* ocd.c (ocd_create_inferior): Update.
	* ocd.h (ocd_create_inferior): Update.
	* nto-procfs.c (procfs_create_inferior): Update.
	* monitor.c (monitor_create_inferior): Update.
	* lin-lwp.c (lin_lwp_create_inferior): Update.
	* inftarg.c (child_create_inferior): Update.
	* hpux-thread.c (hpux_thread_create_inferior): Update.
	* gnu-nat.c (gnu_create_inferior): Update.
2004-05-25 14:58:31 +00:00
Andrew Cagney 1db2a7980c 2004-05-25 Andrew Cagney <cagney@gnu.com>
* MAINTAINERS: Update e-mail address.
2004-05-25 13:41:46 +00:00
Randolph Chung 81bb344354 2004-05-24 Randolph Chung <tausq@debian.org>
* gdb.asm/asm-source.exp: Enable test for hppa-linux target.
	* gdb.asm/pa.inc: New file.
2004-05-25 04:07:05 +00:00
Randolph Chung 007d08bb90 2004-05-24 Randolph Chung <tausq@debian.org>
* thread.c (info_threads_command, thread_apply_all_command)
	(thread_apply_command, thread_command, do_captured_thread_select):
	Remove HPUXHPPA-specific code.
2004-05-25 03:59:29 +00:00
Randolph Chung 69e7b95e2e 2004-05-24 Randolph Chung <tausq@debian.org>
* hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
	unused symbols.
	* hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
	references.
2004-05-25 03:55:23 +00:00
gdbadmin 2ae9e72eb0 *** empty log message *** 2004-05-25 00:00:35 +00:00
Joel Brobecker 4e8b076386 * gdb.texinfo (Starting): Document new start command. 2004-05-24 23:53:58 +00:00
Joel Brobecker a4d5f2e026 * infcmd.c (kill_if_already_running): New function, extracted
from run_command().
        (run_command): Replace extracted code by call to
        kill_if_already_running().
        (start_command): New function.
        (_initialize_infcmd): Add "start" command.
2004-05-24 23:48:25 +00:00
Mark Kettenis bf2ca189e8 Add OpenBSD/m88k support.
* NEWS (New native configurations): Mention OpenBSD/m88k.
* m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
* Makefile.in (m88k_tdep_h): New variable.
(ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
(m88kbsd-nat.o, m88k-tdep.o): New dependencies.
* configure.host: Add m88*-*-openbsd*.
* configure.tgt: Add m88*-*-openbsd*.
2004-05-24 21:00:09 +00:00
Jim Blandy 80fadb1152 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
to approve changes.
2004-05-24 18:13:22 +00:00
Kevin Buettner 19e2d14b47 * symtab.c (fixup_section): Search section table when lookup by
name fails.
2004-05-24 16:11:17 +00:00
Randolph Chung 1b07b47063 2004-05-24 Randolph Chung <tausq@debian.org>
* hppa-tdep.c: Fix handling of 8-byte structures; they should not
	be "small_struct".
2004-05-24 15:36:31 +00:00