Commit Graph

14850 Commits

Author SHA1 Message Date
Daniel Jacobowitz 7ed85d2635 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
TYPE_VPTR_FIELDNO is valid.
2003-08-22 20:45:55 +00:00
Mark Kettenis eb0d3137b1 * utils.c (set_width_command): Remove prototypes.
(set_screen_size): New prototype.
(init_page_info): Simplify by fetching the screen size from
Readline.  Call set_screen_size.
(set_screen_size): New function.
(set_width): Add missing whitespace in comment.
(set_width_command): Call set_screen_size.
(set_height_command): New function.
(initialize_utils): Fix formatting.  Make "set height" command
call set_height_command.  Remove redundant code that turns off
pagination if output isn't a terminal.  Remove redundant call to
set_width_command.
2003-08-22 20:23:15 +00:00
Mark Kettenis 3567a8eaa2 * sparc64-tdep.h (sparc64_regnum): Fix comment.
(sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
(sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
* sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
`case' keyword.
(sparc64_register_info): Give the reister with number
SPARC64_STATE_REGNUM a name.
(sparc64_pseudo_register_write): Add support for %cwp, %pstate,
%asi and %ccr.
(sparc64_push_dummy_call): Take BIAS into account when checking
stcak alignment.
(sparc_software_single_step): Remove assertions that check whether
NPC and NNPC were zero.
(sparc_supply_rwindow): Make public.  Merge functionality with
sparc64_supply_rwindow.
(sparc_fill_rwindow): Make public.  Merge functionality with
sparc64_fill_rwindow.
(sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
* sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
* sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
sparc_supply_rwindow instead of sparc64_supply_rwindow.
2003-08-22 18:52:50 +00:00
Mark Kettenis 7e6d0ac8cf * reggroups.c: Add whitespace after declarations of local
variables in functions.
2003-08-22 09:49:01 +00:00
Michael Chastain 72e5f48470 2003-08-21 Michael Chastain <mec@shout.net>
* gdbtypes.h: Change array bound type from an int to enum.
2003-08-22 05:05:56 +00:00
Andrew Cagney 435ac22849 2003-08-21 Andrew Cagney <cagney@redhat.com>
* config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
	* config/sparc/tm-sparc.h: Ditto.
	* config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
	unconditionally.
	* config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
2003-08-22 00:35:32 +00:00
gdbadmin 9839561f87 *** empty log message *** 2003-08-22 00:00:32 +00:00
Mark Kettenis 0d0e1a63ef * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
(register_objfile_data, set_objfile_data, objfile_data): New
prototypes.
* objfiles.c (objfile_alloc_data, objfile_free_data): New
prototypes.
(allocate_objfile): Call objfile_alloc_data.
(free_objfile): Call objfile_free_data.
(struct objfile_data): New.
(struct objfile_data_registration): New.
(struct objfile_data_registry): New.
(objfile_data_registry): New variable.
(register_objfile_data): New function.
(objfile_alloc_data, objfile_free_data): New functions.
(set_objfile_data, objfile_data): New functions.
* dwarf2-frame.c (dwarf2_frame_data): New variable.
(dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
(_initialize_dwarf2_frame): New function and prototype.
2003-08-21 22:35:33 +00:00
Andrew Cagney d90cf509bd 2003-08-21 Andrew Cagney <cagney@redhat.com>
* sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
	a specific architecture.
	* arch-utils.h (set_architecture_from_arch_mach): Delete
	declaration.
	(target_architecture_hook): Delete declaration.
	* arch-utils.c: Delete non GDB_MULTI_ARCH includes.
	(default_float_format): Assume GDB_MULTI_ARCH.
	(default_double_format): Assume GDB_MULTI_ARCH.
	(set_endian_from_file): Delete function.
	(arch_ok): Delete function.
	(set_arch): Delete function.
	(set_architecture_from_arch_mach): Delete function.
	(set_architecture_from_file): Delete function.
	(set_architecture): Assume GDB_MULTI_ARCH.
	(set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
2003-08-21 20:43:10 +00:00
Mark Kettenis 8b39fe56a2 Rewrite FreeBSD/sparc64 native configuration.
* sparcbsd-nat.c, sparcbsd-nat.h: New files.
* sparc64fbsd-nat.c: New file.
* sparc64fbsd-tdep.c: New file.
* sparc64-tdep.c sparc64-tdep.h: New files.
* Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
sparc64fbsd-tdep.o): New dependencies.
(SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
and sparc64fbsd-tdep.c.
(sparc64_tdep_h, sparcbsd_nat_h): New variables.
* config/sparc/fbsd.mh: Remove copyright notice.
(NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
sparcbsd-nat.o.
* config/sparc/fbsd.mt: Remove copyright notice.
(TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
solib-legacy.o.  Add sparc64-tdep.o and sparc64fbsd-tdep.o.
* config/sparc/nm-fbsd.h: Don't include "elf/common.h".
(SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
* config/sparc/tm-fbsd.h: Don't include "solib.h" and
"sparc/tm-sp64.h".
(SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
(GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2003-08-21 20:38:46 +00:00
Michael Chastain a7f19c79e3 2003-08-21 Michael Chastain <mec@shout.net>
* symtab.h: Add doco on the space critical structures and
	some measurements of space usage.
2003-08-21 19:55:32 +00:00
Michael Snyder da08ea5b1e 2003-08-21 Michael Snyder <msnyder@redhat.com>
* tracepoint.c (trace_dump_command): Trace break address
	is subject to DECR_PC_AFTER_BREAK.
        (set_traceframe_context): Make "trace_line" an int.
        Fixes suggested	by Mark	Newman	 <mark.newman@lmco.com>
2003-08-21 18:09:54 +00:00
Michael Snyder 6df2bf5047 2003-08-20 Michael Snyder <msnyder@redhat.com>
* sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
        * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
        FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
        argument passing.
        (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
        functions, replace sh_push_dummy_call.
        (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2003-08-21 00:01:31 +00:00
gdbadmin 49d481ae28 *** empty log message *** 2003-08-21 00:00:32 +00:00
Michael Chastain 0955bbf0c0 2003-08-20 Michael Chastain <mec@shout.net>
* gdbtypes.h (struct main_type): Rearrange to save space.
2003-08-20 23:00:06 +00:00
Michael Snyder 260a4188fe 2003-08-20 Michael Snyder <msnyder@redhat.com>
* trad-frame.c: Comment typo fix.
2003-08-20 22:30:17 +00:00
Kevin Buettner 8baa6f9257 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
(frv_frame_init_saved_regs): Add declaration.
	(frame_extra_info): Add new field ``saved_regs''.
	(frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
	(frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
	Update frame related code.
	(frv_extract_struct_value_address): Adjust formatting.
	* Makefile.in (frv-tdep.o): Update dependencies.
	* config/frv/tm-frv.h (target_insert_watchpoint)
	(target_remove_watchpoint, target_insert_hw_breakpoint)
	(target_remove_hw_breakpoint): Delete these macros.
	(remote_insert_watchpoint, remote_remove_watchpoint)
	(remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
	these declarations.
2003-08-20 20:22:41 +00:00
Michael Chastain 8719393994 2003-08-20 Michael Chastain <mec@shout.net>
* defs.h (ENUM_BITFIELD): New macro.
	* symtab.h (ENUM_BITFIELD): Use it.
	(BYTE_BITFIELD): Remove old macro, which was already disabled.
2003-08-20 17:39:18 +00:00
gdbadmin c436e3bdec *** empty log message *** 2003-08-20 00:00:02 +00:00
Shrinivas Atre 062103babe 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
* MAINTAINERS (write after approval): Add myself.
2003-08-19 09:55:59 +00:00
gdbadmin f7d7447293 *** empty log message *** 2003-08-19 00:00:31 +00:00
Andrew Cagney 8b148df9ac Index: ChangeLog
2003-08-18  Andrew Cagney  <cagney@redhat.com>

	* gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
	* gdbarch.h, gdbarch.c: Re-generate.
	* infcall.c (call_function_by_hand): Adjust the SP by
	frame_red_zone_size before allocating any stack space.
	* rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
	* x86-64-tdep.c (x86_64_frame_align): New function.
	(x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".

	* x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
	Remove code adjusting SP so that it skips over the Red Zone.

Index: doc/ChangeLog
2003-08-18  Andrew Cagney  <cagney@redhat.com>

	* gdbint.texinfo (Target Architecture Definition): Document
	"frame_red_zone_size".
2003-08-18 20:04:56 +00:00
Mark Kettenis 954a4db8ea * NEWS (New native configurations): Mention FreeBSD/amd64. 2003-08-18 18:20:19 +00:00
Andrew Cagney 1a2415489f 2003-08-18 Andrew Cagney <cagney@redhat.com>
* m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
	"dwarf2_build_frame_info".  Append "m68k_frame_sniffer" instead of
	"m68k_frame_p".
	(m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2003-08-18 17:35:16 +00:00
Mark Kettenis f82b2acd90 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace. 2003-08-18 17:33:26 +00:00
Michal Ludvig 4056d25828 2003-08-18 Michal Ludvig <mludvig@suse.cz>
* config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
	Define.
	* i386-linux-nat.c: Include "linux-nat.h".
	(child_post_startup_inferior): New function.
2003-08-18 13:42:13 +00:00
gdbadmin 6785ad22dd *** empty log message *** 2003-08-18 00:00:32 +00:00
Mark Kettenis c945b932a4 * gdb.arch/i386-prologue.exp: Add testcase for PR backtrace/1338.
* gdb.arch/i386-prologue.c (gdb1338): Add function.
2003-08-17 23:18:31 +00:00
Mark Kettenis 99ab4326f1 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
at the start of a frameless function.  This probably fixes PR
backtrace/1338.
2003-08-17 23:16:44 +00:00
Michael Chastain c8d5f0d664 2003-08-17 Michael Chastain <mec@shout.net>
* symfile.c (find_sym_fns): Remove special case for apollo target.
2003-08-17 22:33:08 +00:00
Daniel Jacobowitz 9016a515a3 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
(PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
	(linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
	(linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
	(linux_supports_tracevforkdone): New function.
	(linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
	TRACEVFORKDONE.
	(child_follow_fork): Handle vfork.
	(linux_handle_extended_wait): Likewise.  Also handle exec.
	(child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
	* NEWS: Mention fork tracing.
2003-08-17 20:17:02 +00:00
Daniel Jacobowitz c538c11c48 * lin-lwp.c (child_wait): Call linux_record_stopped_pid. 2003-08-17 18:52:59 +00:00
Daniel Jacobowitz 4de4c07c6b * Makefile.in (i386-linux-nat.o): Update dependencies.
* config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
	* config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
	(CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
	* i386-linux-nat.c: Include "linux-nat.h".
	(child_post_startup_inferior): New function.
	* i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
	* infptrace.c (kill_inferior): Wrap in #ifdef.
	* lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
	attaching to each LWP.
	(child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
	(init_lin_lwp_ops): Fill in some more operations.
	* linux-nat.h (linux_enable_event_reporting)
	(linux_handle_extended_wait, linux_child_post_startup_inferior): New
	prototypes.
	* linux-nat.c (linux_enable_event_reporting): New function.
	(child_post_attach, linux_child_post_startup_inferior)
	(child_post_startup_inferior, child_follow_fork)
	(linux_handle_extended_wait, kill_inferior): New functions.
2003-08-17 18:22:25 +00:00
Daniel Jacobowitz 2b66634bab * mi-var-display.exp (-var-list-children weird): Accept function
pointers with argument types.
	* mi1-var-display.exp (-var-list-children weird): Likewise.
	* mi2-var-display.exp (-var-list-children weird): Likewise.
2003-08-17 17:23:13 +00:00
Daniel Jacobowitz a356f73bbf * gdb.base/annota3.exp: Add missing newline. 2003-08-17 16:50:59 +00:00
Andrew Cagney 7996bcec1c 2003-08-16 Andrew Cagney <cagney@redhat.com>
* gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
	* gdbarch.h, gdbarch.c: Re-generate.
2003-08-17 01:06:47 +00:00
gdbadmin 7ce11a6b2d *** empty log message *** 2003-08-17 00:00:01 +00:00
Mark Kettenis 3d48a7a0f9 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define. 2003-08-16 18:57:37 +00:00
Mark Kettenis de0b6abbe5 Really check this in now. 2003-08-16 18:52:43 +00:00
Andrew Cagney 7989c619f9 2003-08-16 Andrew Cagney <cagney@redhat.com>
* NEWS: Mention that "set prompt-escape-char" was deleted.
	* top.c (get_prompt_1): Delete function.
	(gdb_prompt_escape):
	(init_main): Do not clear "gdb_prompt_escape".  Delete "set
	prompt-escape-char" command.
	(MAX_PROMPT_SIZE): Delete macro.
	(get_prompt): Simplify, do not call get_prompt_1.
2003-08-16 18:38:46 +00:00
Andrew Cagney 4677b45628 Oops, merge lost Makefile.in:printcmd.o part of change:
2003-08-16  Andrew Cagney  <cagney@redhat.com>

	* Makefile.in (printcmd.o, valprint.o): Do not try to build with
	-Werror.  -Wformat-nonliteral problems.
2003-08-16 17:49:12 +00:00
Andrew Cagney 07978cd823 2003-08-16 Andrew Cagney <cagney@redhat.com>
* Makefile.in (printcmd.o, valprint.o): Do not try to build with
	-Werror.  -Wformat-nonliteral problems.
2003-08-16 17:44:51 +00:00
gdbadmin c1521daae3 *** empty log message *** 2003-08-16 00:00:01 +00:00
Joel Brobecker 3ff7cf9eed Further multiarching work mostly for hppa64-*-hpux11:
* hppa-tdep.h: New file.
        * hppa-tdep.c: #include hppa-tdep.c.
        (hppa32_num_regs): Renamed from hppa_num_regs.
        (hppa64_num_regs): New constant.
        (hppa64_call_dummy_breakpoint_offset): New constant.
        (hppa32_call_dummy_length): New constant.
        (hppa64_call_dummy_length): New constant.
        (hppa32_stack_align): Make name 32bit explicit.
        (hppa32_register_virtual_type): Likewise.
        (hppa32_extract_return_value): Likewise.
        (hppa32_use_struct_convention): Likewise.
        (hppa32_store_return_value): Likewise.
        (hppa64_register_virtual_type): New function.
        (hppa64_extract_return_value): New function.
        (hppa64_use_struct_convention): New function.
        (hppa64_store_return_value): New function.
        (hppa_frame_locals_address): Remove declaration, function does
        not exist anymore.
        (hppa_register_byte): Add support for PA64 ABI.
        (hppa_gdbarch_init): Add support for PA64 ABI.
        * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
        Make name 32bit explicit.
        (hppa32_hpux_frame_base_before_sigtramp): Likewise.
        (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
        (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
        (hppa64_hpux_frame_base_before_sigtramp): New function.
        (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
        * config/pa/tm-hppa64.h: Remove macros that are no longer
        necessary now that the gdbarch vector is properly setup.
        Transform some macros into function calls. Some minor cleanup.
        * config/pa/tm-hppah.h: Update function calls in macros
        following the function renaming in hppa-hpux-tdep.c.
        * Makefile.in (hppa_tdep_h): New variable.
        (hppa-tdep.o): Add dependency over hppa_tdep_h.
2003-08-15 23:02:05 +00:00
gdbadmin 3c6f55dab2 *** empty log message *** 2003-08-15 00:00:02 +00:00
Michael Snyder 5d05ca6d4c 2003-08-14 Michael Snyder <msnyder@redhat.com>
* disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2003-08-14 21:39:05 +00:00
Michael Chastain 483417b818 2003-08-06 Michael Chastain <mec@shout.net>
* gdb.java/jmisc1.exp: Add test for pr gdb/1322.
2003-08-14 19:11:10 +00:00
Joel Brobecker 37ba2569e3 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
       routine.
2003-08-14 00:23:51 +00:00
gdbadmin f47cb86a65 *** empty log message *** 2003-08-14 00:00:01 +00:00
Michael Snyder aed7f26ad3 2003-08-13 Michael Snyder <msnyder@redhat.com>
* frv-tdep.c (frv_push_arguments): Use	deprecated ftype.
	(frv_saved_pc_after_call): Use	deprecated ftype.
        (stupid_useless_init_extra_frame_info): Remove orphan prototype.
	(frv_remote_translate_xfer_address): Remove.
	(frv_gdbarch_init): Use	generic_remote_translate_xfer_address.
2003-08-13 21:59:20 +00:00
Joel Brobecker 752d4ac100 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
initialization after the common gdbarch initialization, not before.
2003-08-13 18:57:01 +00:00
Joel Brobecker 1426ac1daf * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
(ADDR_BITS_REMOVE): Remove, redundant.
2003-08-13 18:05:40 +00:00
Joel Brobecker b6fbdd1dbd * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
gdbarch method to clear the 2 low bits of text addresses.
2003-08-13 17:09:09 +00:00
gdbadmin f1893f393e *** empty log message *** 2003-08-13 00:00:01 +00:00
Michael Snyder c99c59c39d 2003-08-12 Michael Snyder <msnyder@redhat.com>
* gdb.base/float.exp: Add test for SH.
2003-08-12 22:27:19 +00:00
Andrew Cagney 44160db329 2003-08-12 Andrew Cagney <cagney@redhat.com>
* Makefile.in (dsrec.o): Update dependencies.
	* dsrec.c: Include "gdb_assert.h".
	(make_srec): Use snprintf instead of sprintf, use a literal format
	string.
2003-08-12 19:34:20 +00:00
Andrew Cagney bcf7d3caa2 2003-08-12 Andrew Cagney <cagney@redhat.com>
* frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
	FRAME_OBSTACK_ZALLOC.
2003-08-12 17:45:13 +00:00
Kevin Buettner 49ed40de4e * i386-tdep.c (i386_gdbarch_init): Enable default support for
SSE registers.
2003-08-12 16:12:33 +00:00
gdbadmin 525a8324cd *** empty log message *** 2003-08-12 00:00:01 +00:00
Michael Snyder 3d67be836a 2003-07-22 Michael Snyder <msnyder@redhat.com>
* gdb.disasm/8300s.s: Fix syntax of bsr insn.

        * gdb.disasm/h8300s.exp : Minor changes in disassembler output require
        patterns to be more general, accepting old and new output.
        Some output chars (such as '+') also must be quoted.
        Some addresses are displayed numerically instead of
        symbolically.
2003-08-11 23:20:05 +00:00
Mark Kettenis b246147cd3 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
amd64fbsd_sc_reg_offset): Add extern declarations.
* amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
declarations.
2003-08-11 16:55:21 +00:00
gdbadmin 198c746dd3 *** empty log message *** 2003-08-11 00:00:01 +00:00
Ben Elliston d95fdc0d1a * MAINTAINERS (write after approval): Update my mail address. 2003-08-10 22:05:14 +00:00
Andrew Cagney cf6a0e73af 2003-08-10 Andrew Cagney <cagney@redhat.com>
* Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2003-08-10 19:58:21 +00:00
Mark Kettenis e2dbbd2d95 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
i386obsd_sigtramp_start, i386obsd_sigtramp_end,
i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
i386bsd_sc_reg_offset): Add extern declarations.
* i386obsd-nat.c: Include "i386-tdep.h"
(_initialize_i386obsd_nat): Remove extern declarations.
* i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
declarations.
* i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
declarations.
2003-08-10 18:32:09 +00:00
Mark Kettenis f837910f91 * i386-tdep.c (i386_register_to_value): Use get_frame_register
instead of frame_read_register.
(i386_fetch_pointer_argument): Use get_frame_register_unsigned
instead of frame_read_register.  Use I386_ESP_REGNUM instead of
SP_REGNUM.
(i386_frame_prev_register): Use frame_unwind_register_unsigned
instead of frame_unwind_unsigned_register.  Use
I386_EFLAGS_REGISTER instead of PS_REGNUM.
(i386_get_longjmp_target): Use regcache_read_unsigned_register
instead of read_register.  Use builtin_type_void_data_ptr instead
of builtin_type_void_func_ptr when extracting the address of the
jmp_buf.
(i386_extract_return_value, i386_store_return_value,
i386_pseudo_register_read, i386_pseudo_register_write): Use
register_size instead REGISTER_RAW_SIZE.

(i387_print_float_info): Use get_frame_register and
get_frame_register_unsigned instead of frame_register_read.
2003-08-10 18:06:05 +00:00
Andrew Cagney edcf254de8 2003-08-10 Andrew Cagney <cagney@redhat.com>
* infcall.c (call_function_by_hand): Use xstrprintf instead of
	sprintf.  Make "name" constant.
2003-08-10 17:19:23 +00:00
Mark Kettenis 192285c6b9 * i387-tdep.c (i387_register_to_value): Use get_frame_register
instead of frame_read_register.
2003-08-10 17:01:32 +00:00
Mark Kettenis f0925262c7 * i386fbsd-nat.c: Include "i386-tdep.h".
(child_resume): Make `eflags' an ULONGEST.  Use
regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
instead of register_read and register_write.
2003-08-10 16:46:08 +00:00
Mark Kettenis a144416fe3 * i386bsd-nat.c (fetch_inferior_registers,
store_inferior_registers): Don't use && at the end of a line.
(_initialize_i386bsd_nat): Fix typo.
2003-08-10 16:22:15 +00:00
Mark Kettenis fec74868a2 * frame.c (_initialize_frame): Add missing backslash. 2003-08-10 14:56:23 +00:00
Mark Kettenis 87232496c6 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
and supply_register instead of manipulating the register buffer
directly.

From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2003-08-10 14:05:47 +00:00
Mark Kettenis c9b9de0b07 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
* config/i386/nm-i386sol2.h
(TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2003-08-10 13:49:33 +00:00
Mark Kettenis 26604a3475 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
* i386-tdep.c (i386_analyze_frame_setup): Recognize more
instructions that GCC likes to mingle into the prologue.  Fixes
gdb/1253 and gdb/1255.
2003-08-10 12:15:16 +00:00
Mark Kettenis 55ed75018d * gdb.arch/i386-prologue.c, gdb.arch/i386-prologue.exp: New files. 2003-08-10 11:55:58 +00:00
gdbadmin 9e9fe3e30d *** empty log message *** 2003-08-10 00:00:32 +00:00
Andrew Cagney 25d29d7093 2003-08-09 Andrew Cagney <cagney@redhat.com>
Fix GDB PR cli/926.
	* cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
	* command.h (add_setshow_uinteger_cmd): Declare.
	* frame.c (set_backtrace_cmd): New function.
	(show_backtrace_cmd): New function.
	* frame.c (_initialize_frame): Replace "set/show
	backtrace-below-main" with "set/show backtrace past-main".  Add
	command "set/show backtrace limit".
	(backtrace_past_main): Rename "backtrace_below_main".
	(backtrace_limit): New variable.
	(get_prev_frame): Update.  Check the backtrace_limit.

2003-08-09  Andrew Cagney  <cagney@redhat.com>

	* gdb.texinfo (Backtrace): Replace "set/show backtrace-below-main"
	with "set/show backtrace past-main" and "set/show backtrace
	limit".

Index: doc/gdb.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v
retrieving revision 1.174
diff -u -r1.174 gdb.texinfo
--- doc/gdb.texinfo	8 Aug 2003 01:58:00 -0000	1.174
+++ doc/gdb.texinfo	9 Aug 2003 14:57:10 -0000
@@ -3922,27 +3922,40 @@
 value, indicating that your program has stopped at the beginning of the
 code for line @code{993} of @code{builtin.c}.

-@kindex set backtrace-below-main
-@kindex show backtrace-below-main
+@kindex set backtrace past-main
+@kindex show backtrace past-main
+@kindex set backtrace limit
+@kindex show backtrace limit

-Most programs have a standard entry point---a place where system libraries
-and startup code transition into user code.  For C this is @code{main}.
-When @value{GDBN} finds the entry function in a backtrace it will terminate
-the backtrace, to avoid tracing into highly system-specific (and generally
-uninteresting) code.  If you need to examine the startup code, then you can
-change this behavior.
+Most programs have a standard user entry point---a place where system
+libraries and startup code transition into user code.  For C this is
+@code{main}.  When @value{GDBN} finds the entry function in a backtrace
+it will terminate the backtrace, to avoid tracing into highly
+system-specific (and generally uninteresting) code.
+
+If you need to examine the startup code, or limit the number of levels
+in a backtrace, you can change this behavior:

 @table @code
-@item set backtrace-below-main off
+@item set backtrace past-main
+@itemx set backtrace past-main on
+Backtraces will continue past the user entry point.
+
+@item set backtrace past-main off
 Backtraces will stop when they encounter the user entry point.  This is the
 default.

-@item set backtrace-below-main
-@itemx set backtrace-below-main on
-Backtraces will continue past the user entry point to the top of the stack.
+@item show backtrace past-main
+Display the current user entry point backtrace policy.
+
+@item set backtrace limit @var{n}
+@itemx set backtrace limit 0
+@cindex backtrace limit
+Limit the backtrace to @var{n} levels.  A value of zero means
+unlimited.

-@item show backtrace-below-main
-Display the current backtrace policy.
+@item show backtrace limit
+Display the current limit on backtrace levels.
 @end table

 @node Selection
2003-08-09 15:10:09 +00:00
Andrew Cagney 9ebf4acf53 2003-08-09 Andrew Cagney <cagney@redhat.com>
* defs.h (xstrprintf): Declare.
	* utils.c (xstrprintf): New function.
	* breakpoint.c (insert_breakpoints): Replace sprintf and
	non-literal format strings, with xstrprintf and cleanups.
	(delete_breakpoint,breakpoint_re_set): Ditto.
	(commands_command, insert_breakpoints): Ditto.
	(bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
	(break_at_finish_command_1): Ditto.
2003-08-09 14:57:30 +00:00
Andrew Cagney 3771659b8b 2003-08-09 Andrew Cagney <cagney@redhat.com>
* MAINTAINERS (language support): List Adam Fedor as Objective C
	maintainer.
2003-08-09 14:38:53 +00:00
gdbadmin af2bbf6cf1 *** empty log message *** 2003-08-09 00:00:33 +00:00
Joel Brobecker b4263afab4 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
are now multiarched.
2003-08-08 22:26:38 +00:00
Joel Brobecker d84defb1b6 * config/pa/tm-hppa64.h: Remove lots of macros that are no
longer necessary now that hppa64 is partially multiarch'ed.
2003-08-08 22:10:48 +00:00
Andrew Cagney f786f61510 2003-08-08 Andrew Cagney <cagney@redhat.com>
* interps.c (interp_set): Check for a NULL "old_interp".

Index: mi/ChangeLog
2003-08-08  Andrew Cagney  <cagney@redhat.com>

	* mi-main.c (captured_mi_execute_command): Add "mi2" and "mi3" to
	interpreters that hack around CLI.
	* mi-interp.c (mi3_command_loop): New function.
	(mi_interpreter_resume): Check for "mi3", default to "mi2".
2003-08-08 19:00:08 +00:00
H.J. Lu c938e9b01d gdb/
2003-08-08  H.J. Lu  <hongjiu.lu@intel.com>

	* Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
	(install-only): Support DESTDIR.
	(uninstall): Likewise.
	(install-gdbtk): Likewise.

gdb/doc/

2003-08-08  H.J. Lu  <hongjiu.lu@intel.com>

	* Makefile.in (install-info): Support DESTDIR.
	(install-html): Likewise.

gdb/gdbserver/

2003-08-08  H.J. Lu  <hongjiu.lu@intel.com>

	* Makefile.in (install-only): Create dest dir. Support DESTDIR.
	(uninstall): Support DESTDIR.

mmalloc/

2003-08-08  H.J. Lu  <hongjiu.lu@intel.com>

	* Makefile.in (install-info): Create dest dir. Support DESTDIR.
	(install): Likewise.
2003-08-08 17:30:37 +00:00
Elena Zannoni 9a146a111f 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
* symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
	contains something meaningful at all times.
2003-08-08 14:04:02 +00:00
Andrew Cagney 64fabec204 2003-08-07 Andrew Cagney <cagney@redhat.com>
Patch from Nick Roberts.
	* gdb.texinfo (Using GDB under GNU Emacs): Fix/update key
	bindings.  Remove description of send-gdb-command.
2003-08-08 01:58:00 +00:00
Brendan Conoboy 62599e9995 Add periods to my changelog entries 2003-08-08 01:09:56 +00:00
Brendan Conoboy 7a76ced5c4 Mon Jul 21 20:10:16 UTC 2003 Brendan Conoboy <blc@redhat.com>
* configure.host: Set gdb_host_cpu=arm when host_cpu=xscale
2003-08-08 00:47:50 +00:00
Brendan Conoboy 7f313d077f Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
* configure.srv: Add xscale*linux copy of arm*linux entry.
2003-08-08 00:47:28 +00:00
Brendan Conoboy 562961552f Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
* MAINTAINERS (write after approval): Added self
2003-08-08 00:41:54 +00:00
gdbadmin c8f88e278e *** empty log message *** 2003-08-08 00:00:31 +00:00
Andrew Cagney 9710e734be 2003-08-07 Andrew Cagney <cagney@redhat.com>
* inferior.h (AT_SYMBOL): Define.
	* blockframe.c (inside_entry_file): Check for AT_SYMBOL.
	* infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
	* mips-tdep.c (mips_call_dummy_address): Delete function.
	(mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
	set call_dummy_address.
2003-08-07 23:41:57 +00:00
Andrew Cagney 98b3ab7391 2003-08-07 Andrew Cagney <cagney@redhat.com>
* language.c (op_error): Delete function.
	(binop_type_check): Delete function.
	* language.h (type_op_error, range_op_error): Delete macros.
	(op_error): Delete declaration.
2003-08-07 22:35:03 +00:00
Elena Zannoni 1a371f2e64 2003-08-07 Elena Zannoni <ezannoni@redhat.com>
* gdb.base/completion.exp: Remove reduntant completion test
       on filename.
2003-08-07 17:58:44 +00:00
Elena Zannoni e0f353ceed 2003-08-07 Elena Zannoni <ezannoni@redhat.com>
* gdb.base/attach.exp, gdb.base/detach.exp, gdb.base/gcore.exp,
        gdb.mi/mi-basics.exp, gdb.threads/gcore-thread.exp,
        gdb.trace/save-trace.exp: Make sure that full pathnames are
        escaped correctly.
2003-08-07 17:55:41 +00:00
Elena Zannoni 5710a1afa9 2003-08-07 Elena Zannoni <ezannoni@redhat.com>
* configure.in: Don't generate config.h from config.hin.
        * configure: Regenerate.
        * config.hin: Remove file.
        * gdb.mi/pthreads.c: Remove include of config.h, and other ifdefs.
        * gdb.threads/pthreads.c: Ditto.
2003-08-07 17:49:22 +00:00
Andrew Cagney 2fcf52f0db Index: ChangeLog
2003-08-07  Andrew Cagney  <cagney@redhat.com>

	* interps.h (INTERP_MI2, INTERP_MI3): Define.

Index: doc/ChangeLog
2003-08-07  Andrew Cagney  <cagney@redhat.com>

	* gdb.texinfo (Mode Options): Mention that "mi2" was included in
	GDB 6.0.

Index: mi/ChangeLog
2003-08-07  Andrew Cagney  <cagney@redhat.com>

	* mi-interp.c (_initialize_mi_interp): Register "mi2" and "mi3".
	Make "mi" select "mi2".

Index: testsuite/gdb.mi/ChangeLog
2003-08-07  Andrew Cagney  <cagney@redhat.com>

	* mi2-basics.exp: Copy base MI .exp file, set MIFLAGS to -i=mi2.
	* mi2-break.exp, mi2-cli.exp, mi2-console.exp: Ditto.
	* mi2-disassemble.exp, mi2-eval.exp, mi2-file.exp: Ditto.
	* mi2-hack-cli.exp, mi2-pthreads.exp, mi2-read-memory.exp: Ditto.
	* mi2-regs.exp, mi2-return.exp, mi2-simplerun.exp: Ditto.
	* mi2-stack.exp, mi2-stepi.exp, mi2-syn-frame.exp: Ditto.
	* mi2-until.exp, mi2-var-block.exp, mi2-var-child.exp: Ditto.
	* mi2-var-cmd.exp, mi2-var-display.exp, mi2-watch.exp: Ditto.
2003-08-07 17:47:42 +00:00
Michal Ludvig fd83badabb 2003-08-07 Michal Ludvig <mludvig@suse.cz>
* x86-64-tdep.c (x86_64_push_arguments): Skip the red zone.
2003-08-07 11:26:42 +00:00
Michal Ludvig abd4220e18 2003-08-07 Michal Ludvig <mludvig@suse.cz>
* x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
2003-08-07 07:51:14 +00:00
Kazuhiro Inaoka 29ceeffbde 2003-08-07 Kei Sakamoto <sakamoto.kei@renesas.com>
* MAINTAINERS (write after approval): Move Kei Sakamoto to the proper place.
2003-08-07 05:22:45 +00:00
Kazuhiro Inaoka fbb78a6881 2003-08-07 Kei Sakamoto <sakamoto.kei@renesas.com>
* MAINTAINERS (write after approval): Add myself.
2003-08-07 05:01:32 +00:00
Daniel Jacobowitz dcd81ce97c From Kei Sakamoto <sakamoto.kei@renesas.com>:
* gdb.asm/asm-source.exp : Add -lgloss to link-flags.
	* gdb.asm/m32r.inc : Remove an illegal nop after bl instruction.
	Replace ld24 with seth/add3.
2003-08-07 04:04:57 +00:00
gdbadmin 51cacde563 *** empty log message *** 2003-08-07 00:00:31 +00:00
Andrew Cagney 086432e254 2003-08-06 Andrew Cagney <cagney@redhat.com>
* gdb.texinfo (Mode Options): Mention that level three is the
	highest available and that level 2 is deprecated.
	(Annotations Overview): Mention annotation levels. Cross reference
	to "Limitations of the Annotation Interface" in annotate.texi.
	(TODO, Value Annotations, Frame Annotations): Delete section.
	(Displays, Breakpoint Info): Delete.
2003-08-06 15:13:10 +00:00
gdbadmin b675324d69 *** empty log message *** 2003-08-06 00:00:02 +00:00
Andrew Cagney d303380bd9 2003-08-05 Andrew Cagney <cagney@redhat.com>
* mi-cmd-env.c (env_execute_cli_command): Use an explicit "%s %s"
	when constructing the run command.
	(mi_cmd_env_cd, mi_cmd_env_path, mi_cmd_env_dir): Simplify command
	string removing the "%s".
2003-08-05 19:55:17 +00:00
Andrew Cagney 9dd5f34f8d 2003-08-05 Andrew Cagney <cagney@redhat.com>
* reggroups.c (reggroup_next): Check for the final entry.
2003-08-05 18:08:59 +00:00
Andrew Cagney ab4e3d93a0 2003-08-04 Andrew Cagney <cagney@redhat.com>
* monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
	* cli/cli-script.c (define_command): Call query directly, instead
	of passing it a buffer.
	* ocd.c (ocd_error): Pass error a constant format string.
	* remote-mips.c (mips_error): Use fputs_filtered.
2003-08-05 02:44:50 +00:00
Andrew Cagney 1062ca825e 2003-08-04 Andrew Cagney <cagney@redhat.com>
* solib-svr4.c (_initialize_svr4_solib): Update
	register_gdbarch_data call.
	* mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2003-08-05 02:38:06 +00:00
gdbadmin 519f2b3b13 *** empty log message *** 2003-08-05 00:00:01 +00:00
Andrew Cagney b2af646b30 2003-08-04 Andrew Cagney <cagney@redhat.com>
* mi-cmds.h (struct mi_cli): Define.
	(struct mi_cmd): Change type of "cli" to "struct mi_cli".
	* mi-cmds.c (mi_cmds): Update table.
	* mi-parse.c (mi_parse): Update.
	* mi-main.c (mi_execute_cli_command): Add "args_p" parameter, make
	others constant.
	(mi_cmd_execute): Update call.
	(captured_mi_execute_command): Ditto.
2003-08-04 23:18:50 +00:00
Andrew Cagney fcc1c85c67 2003-08-04 Andrew Cagney <cagney@redhat.com>
* gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
	(register_gdbarch_data): Delete "free" parameter.  Update
	comments.
	* gdbarch.h, gdbarch.c: Re-generate.
	* reggroups.c (_initialize_reggroup): Update.
	* gnu-v3-abi.c (init_gnuv3_ops): Update.
	* frame-base.c (_initialize_frame_base): Update.
	* frame-unwind.c (_initialize_frame_unwind): Update.
	* user-regs.c (_initialize_user_regs): Update.
	* remote.c (_initialize_remote): Update.
	* regcache.c (_initialize_regcache): Update.
2003-08-04 22:24:44 +00:00
Andrew Cagney 116f06eabf 2003-08-04 Andrew Cagney <cagney@redhat.com>
* regcache.c (xfree_regcache_descr): Delete function.
	(_initialize_regcache): Update call to register_gdbarch_data.
	(init_regcache_descr, init_legacy_regcache_descr): Use
	GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2003-08-04 21:12:46 +00:00
Andrew Cagney e5e78edc1a 2003-08-04 Andrew Cagney <cagney@redhat.com>
* remote.c (free_remote_state): Delete function.
	(_initialize_remote): Update register_gdbarch_data.
	(init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
	GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2003-08-04 20:52:27 +00:00
Andrew Cagney e5249f67ac 2003-08-04 Andrew Cagney <cagney@redhat.com>
* agentexpr.texi: Delete @bye.
	* Makefile.in (STABS_DOC_SOURCE_INCLUDES): Add "fdl.texi"
	(stabs.info): Add $(srcdir) to include search path.
	(html): Depend on "annotate_toc.html", and not "annotate.html".
	* stabs.texinfo: Ditto.  Include "fdl.texi".
	* gdbint.texinfo: Update copyright statement's list of invariant
	sections.
2003-08-04 20:43:57 +00:00
Andrew Cagney 6c7d17ba3a 2003-08-04 Andrew Cagney <cagney@redhat.com>
* reggroups.c (struct reggroup_el): Define.
	(struct reggroups): Delete field "nr_group".  Replace array
	"group" with a "first" to "last" linked list.
	(reggroups_init): Update.  Allocate using gdbarch's obstack.
	(reggroups_free): Delete function.
	(add_group): Update.  Add "el" parameter.
	(reggroup_add): Pass gdbarch obstack allocated space to add_group.
	(default_groups): Update.
	(reggroup_next): Replace reggroups.
	(reggroups_dump): Update.
	(_initialize_reggroup): Pass XMALLOC allocated space to add_group.
	* regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
	* infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2003-08-04 20:34:10 +00:00
Daniel Jacobowitz 95cd630eae * tui-interp.c: Include "cli-out.h".
(tui_resume): Update tui_old_uiout's stream to gdb_stdout.
2003-08-04 19:28:17 +00:00
Daniel Jacobowitz 89b7795b14 * Makefile.in (tui-interp.o): Update dependencies. 2003-08-04 19:28:05 +00:00
David Carlton 306d9ac513 2003-08-04 David Carlton <carlton@kealia.com>
* charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
	to internal_error call.
	* source.c (forward_search_command): Add "%s" format argument.
	(reverse_search_command): Ditto.
	* top.c (quit_confirm): Ditto.
	* cli/cli-setshow.c (do_setshow_command): Ditto.
	* cp-valprint.c (cp_print_class_method): Replace
	{f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
	(cp_print_class_member): Ditto.
	* event-top.c (command_line_handler): Ditto.
	* linux-proc.c (linux_info_proc_cmd): Ditto.
	* p-typeprint.c (pascal_type_print_base): Ditto.
	* p-valprint.c (pascal_object_print_class_method): Ditto.
	(pascal_object_print_class_member): Ditto.
	* printcmd.c (print_scalar_formatted,printf_command): Ditto.
	* remote.c (remote_cisco_section_offsets): Ditto.
	* top.c (command_line_input): Ditto.
	* utils.c (vwarning,error_stream,quit): Ditto.
	* valprint.c (print_floating,print_binary_chars)
	(print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.

2003-08-04  David Carlton  <carlton@kealia.com>

	* mi-main.c (mi_error_last_message): Add "%s" second argument to
	xasprintf call.

2003-08-04  David Carlton  <carlton@kealia.com>

	* generic/gdbtk.c (gdbtk_source_start_file): Add "%s" first
	argument to error call.
	(tk_command): Ditto.
	(view_command): Ditto.
2003-08-04 17:08:24 +00:00
Andrew Cagney 57bfe1774e 2003-08-04 Andrew Cagney <cagney@redhat.com>
* frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2003-08-04 15:42:43 +00:00
gdbadmin 3ab6b7717b *** empty log message *** 2003-08-04 00:00:31 +00:00
Andrew Cagney e546b9999e 2003-08-02 Andrew Cagney <cagney@redhat.com>
* config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
	gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
	amd64fbsd-nat.c.
2003-08-03 02:42:16 +00:00
Andrew Cagney 6009d8848e 2003-08-02 Andrew Cagney <cagney@redhat.com>
* gdb.base/annota3.exp: New file.
	* gdb.base/annota3.c: New file.
	* gdb.c++/annota3.exp: New file.
	* gdb.c++/annota3.cc: New file.
2003-08-03 01:57:13 +00:00
gdbadmin 79c4b3369f *** empty log message *** 2003-08-03 00:00:01 +00:00
Andrew Cagney 91092ee55b 2003-08-02 Andrew Cagney <cagney@redhat.com>
* Makefile.in: Update all dependencies and definitions.
2003-08-02 20:11:48 +00:00
Adam Fedor 889f28e262 * linespec.c (is_objc_method_format): New function
(decode_line_1, locate_first_half): Use it.
Fixes PR objc/1298
2003-08-02 03:59:40 +00:00
gdbadmin 4ef893318a *** empty log message *** 2003-08-02 00:00:32 +00:00
Andrew Cagney 880bc914e0 2003-08-01 Andrew Cagney <cagney@redhat.com>
* NEWS: Mention that m32r is multi-arch.
	From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
	* configure.tgt: Recognize m32r-*-*.
	* config/m32r/tm-m32r.h: Delete file.
	* config/m32r/m32r.mt: New file.
	* m32r-rom.c (m32r_upload_command): Use hostent only when
        gethostname succeeds, in order to avoid a compilation
        warning.
	* m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
	compiler warning.
2003-08-01 21:14:33 +00:00
Michael Snyder 19f5934377 2003-08-01 Michael Snyder <msnyder@redhat.com>
* sh-tdep.c (sh_frame_align): New gdbarch method.
	(sh_gdbarch_init): Set up frame_align method.
2003-08-01 19:52:49 +00:00
gdbadmin fc14043136 *** empty log message *** 2003-08-01 00:00:01 +00:00
Michael Snyder 4e7d75111e 2003-07-31 Michael Snyder <msnyder@redhat.com>
* value.h, values.c, infcall.c,	infcmd.c: Revert 07-30	change,
        which is already covered by the	new frames infrastructure.
2003-07-31 23:41:25 +00:00
Andrew Cagney 6302298482 2003-07-31 Andrew Cagney <cagney@redhat.com>
* user-regs.c (struct user_reg): Add "next" link.
	(struct user_regs): Replace "user" with "first" and "last" links.
	(append_user_reg): Add pre-allocated "reg" parameter.
	(builtin_user_regs): Provide initial value for "last".
	(user_reg_add_builtin): XMALLOC memory for append_user_reg.
	(user_regs_init): Allocate memory from the gdbarch obstack.
	(user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
	(user_reg_map_name_to_regnum): Rewrite to search the user_reg
	linked list.
	(usernum_to_user_reg): New function.
	(user_reg_map_regnum_to_name): Use usernum_to_user_reg.
	(value_of_user_reg): Use usernum_to_user_reg.
	(user_regs_free): Delete function.
	(_initialize_user_regs): Update register_gdbarch_data call.
2003-07-31 21:42:39 +00:00
Daniel Jacobowitz 7cf6e574cf * dwarf2read.c (new_symbol): Use var_decode_location for parameters. 2003-07-31 21:05:38 +00:00
gdbadmin 83d6e8576f *** empty log message *** 2003-07-31 00:00:01 +00:00
Michael Snyder c48a845bff 2003-07-30 Michael Snyder <msnyder@redhat.com>
* structs.h (value_being_returned): Add a struct_addr argument.
	* infcall.c (call_function_by_hand): Pass struct_addr to
	value_being_returned.
	* infcmd.c (print_return_value): Pass zero as struct_addr.
	* values.c (value_being_returned): If struct_addr is passed,
	use it instead of trying to recover it from the inferior.
2003-07-30 20:59:10 +00:00
Kevin Buettner f0d8db1927 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
the prologue analyzer won't need to attempt to extract the pc
	value from the woefully incomplete dummy frame.
	(mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
	possible.  Disable code which modifies the frame.
2003-07-30 20:44:46 +00:00
Andrew Cagney e6f672d252 2003-07-28 Andrew Cagney <cagney@redhat.com>
* Makefile.in (INFO_DEPS): Add annotate.info.
	(dvi, ps, html, pdf): Add annotate.
	(ANNOTATE_DOC_SOURCE_INCLUDES): New macro.
	(ANNOTATE_DOC_BUILD_INCLUDES): New macro.
	(ANNOTATE_DOC_FILES): New macro.
	(ANNOTATE_TEX_TMPS): New macro.
	(annotate.info, annotate_toc.html): Specify dependencies.
	(annotate.ps, annotate.pdf, annotate.dvi): Ditto.
	* annotate.texinfo: Rename annotate.texi.  Get building.  Add
	"Migrating to GDB/MI" and "Limitations of the Annotation
	Interface" chapters.  Mention why it is not part of the user
	guide.  Update copyright notice.  Include "fdl.texi".
2003-07-30 04:14:38 +00:00
gdbadmin c2480cf5bd *** empty log message *** 2003-07-30 00:00:02 +00:00
Michael Chastain 51514e061b 2003-07-29 Michael Chastain <mec@shout.net>
* gdb.threads/tls.c (spin): Check errno only if sem_wait
	actually failed.
	(do_pass): Likewise.
	* gdb.threads/tls.exp: Always initialize no_of_threads.
2003-07-29 21:51:25 +00:00
Andrew Cagney e5c113a1de 2003-07-28 Andrew Cagney <cagney@redhat.com>
* annotate.c (annotate_breakpoints_headers): Restrict annotation
	to level 2.
	(annotate_breakpoints_table, annotate_record): Ditto.
	(annotate_breakpoints_table_end, annotate_field_begin): Ditto.
	(annotate_field_name_end, annotate_field_value): Ditto.
	(annotate_field_end, annotate_frame_source_begin): Ditto.
	(annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
	(annotate_frame_source_line, annotate_frame_source_end): Ditto.
	(annotate_frame_begin, annotate_frame_function_name): Ditto.
	(annotate_frame_address_end, annotate_frame_address): Ditto.
	(annotate_frame_args, annotate_frame_end): Ditto.
	(annotate_frame_where, annotate_arg_begin): Ditto.
	(annotate_arg_name_end, annotate_arg_value): Ditto.
	(annotate_arg_end, annotate_signal_handler_caller): Ditto.
	(annotate_function_call, annotate_signal_name): Ditto.
	(annotate_signal_string, annotate_signal_name_end): Ditto.
	(annotate_signal_string_end, annotate_value_history_begin): Ditto.
	(annotate_value_begin, annotate_value_history_value): Ditto.
	(annotate_value_history_end, annotate_value_end): Ditto.
	(annotate_display_begin, annotate_display_number_end): Ditto.
	(annotate_display_format, annotate_display_expression): Ditto.
	(annotate_display_expression_end, annotate_display_value): Ditto.
	(annotate_display_end, annotate_array_section_begin): Ditto.
	(annotate_elt_rep, annotate_elt_rep_end): Ditto.
	(annotate_elt, annotate_array_section_end): Ditto.
2003-07-29 03:17:08 +00:00
gdbadmin b559779dbc *** empty log message *** 2003-07-29 00:00:01 +00:00
Andrew Cagney bb1db0499b 2003-07-28 Andrew Cagney <cagney@redhat.com>
* regcache.c (struct regcache_descr): Update comments on
	nr_raw_registers.
	(init_legacy_regcache_descr): Don't set nr_raw_registers or
	sizeof_raw_register_valid_p.
	(init_regcache_descr): Set nr_raw_registers and
	sizeof_raw_register_valid_p before calling
	init_legacy_regcache_descr.
2003-07-28 15:41:19 +00:00
Andrew Cagney 20e6603c81 2003-07-28 Andrew Cagney <cagney@redhat.com>
* mips-tdep.c (print_gp_register_row): Print the GPR's register
	MOD NUM_REGS.
2003-07-28 15:31:08 +00:00
Daniel Jacobowitz db7429406e * thread.c (info_threads_command): Use get_selected_frame ().
Check that there is at least one non-sentinel frame.
2003-07-28 13:02:12 +00:00
Daniel Jacobowitz 4ee6625b53 * gdb.threads/print-threads.exp (test_all_threads): Loosen KFAIL
pattern.
	* gdb.threads/tls-shared.exp: Don't use gdb_suppress_entire_file.
	* gdb.threads/tls.exp: Recognize one case of the host library not
	supporting TLS.
2003-07-28 00:57:29 +00:00
gdbadmin 0473009e8b *** empty log message *** 2003-07-28 00:00:31 +00:00
Stephane Carrez ce7f4371ed * m68hc11-tdep.c (struct frame_extra_info): Remove.
(m68hc11_pop_frame): Remove.
	(m68hc11_frame_saved_pc): Remove.
	(m68hc11_frame_chain): Remove.
	(m68hc11_frame_init_saved_regs): Remove.
	(m68hc11_init_extra_frame_info): Remove.
	(m68hc11_store_struct_return): Remove.
	(m68hc11_saved_pc_after_call): Remove.
	(m68hc11_call_dummy_address): Remove.
2003-07-27 21:39:44 +00:00
Stephane Carrez 1ea653ae0a * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
frame unwind information.
	(m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
	and adapted for frame unwinding.
	(m68hc11_skip_prologue): Update to scan prologue in temporary object.
	(m68hc11_unwind_pc): New function.
	(m68hc11_frame_unwind_cache): New function to analyze frames.
	(m68hc11_frame_this_id): New function to create new frame struct.
	(m68hc11_frame_prev_register): New function to unwind a register from
	the frame.
	(m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
	(m68hc11_frame_p): New function for the above.
	(m68hc11_frame_base_address): New function to return fp of frame.
	(m68hc11_frame_args_address): Update for frame.
	(m68hc11_frame_base): Default 68hc11/68hc12 frame.
	(m68hc11_unwind_sp): New function.
	(m68hc11_unwind_dummy_id): New function.
	(m68hc11_gdbarch_init): Install the above frames; remove deprecated
	calls.
2003-07-27 21:24:41 +00:00
Andrew Cagney 225f2bf663 2003-07-27 Andrew Cagney <cagney@redhat.com>
* gdb.base/fileio.exp: Use SH when running commands using
	remote_exec.
2003-07-27 21:24:09 +00:00
Stephane Carrez c8a7f6ac64 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
(m68hc11_guess_from_prologue): Advance the pc and frame size only
	when we are beyond the current pc.
2003-07-27 20:54:17 +00:00
Stephane Carrez 3dc990bfb6 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
from m68hc11_push_arguments.
	(m68hc11_push_arguments): Remove.
	(m68hc11_push_return_address): Remove.
	(m68hc11_gdbarch_init): Install the above; remove above deprecated
	handlers; remove deprecated_extra_stack_alignment_needed.
2003-07-27 20:27:29 +00:00
Andrew Cagney 222e5d1d25 2003-07-27 Andrew Cagney <cagney@redhat.com>
* config/pa/tm-hppa.h (init_frame_pc_default): Declare.
	* infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
	REAL_PC and not the pointer.
	* hppa-hpux-tdep.c: Include frame.h
2003-07-27 17:27:17 +00:00
Andrew Cagney a7e9a47e42 2003-07-27 Andrew Cagney <cagney@redhat.com>
* config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
	GDB_MULTI_ACH_PARTIAL.
2003-07-27 16:38:23 +00:00
Andrew Cagney a5abd0000b Doh! configure.tgt was not part of the change. 2003-07-27 15:42:20 +00:00
Andrew Cagney 7e3dd49eac 2003-07-27 Andrew Cagney <cagney@redhat.com>
Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
	* m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
	operator at start and not end of line.
	(decode_prologue): Ditto.
	(m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
	frame_unwind_register_unsigned instead of
	frame_unwind_unsigned_register.
	(m32r_read_pc): Use regcache_cooked_read_unsigned instead of
	read_register.
	(m32r_push_dummy_call): Use register_size instead of
	REGISTER_RAW_SIZE.
	(m32r_frame_sniffer): Replace m32r_frame_p.
	(m32r_gdbarch_init): Call frame_unwind_append_sniffer.
	* m32r-rom.c (report_transfer_performance): Delete extern
	declaration.
	(m32r_load, m32r_upload_command): Use print_transfer_performance
	instead of report_transfer_performance.
	(_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
	/ add_show_from_set.
2003-07-27 15:38:16 +00:00
gdbadmin 6fbedbbcb6 *** empty log message *** 2003-07-27 00:00:32 +00:00
Andrew Cagney 0880807f72 2003-07-26 Andrew Cagney <cagney@redhat.com>
* m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
	store_return_value and extract_struct_value_address.
2003-07-26 22:49:15 +00:00
Daniel Jacobowitz 64ae926944 PR c++/1267
* minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
	NULL, default to the section containing PC.
2003-07-26 22:03:38 +00:00
Stephane Carrez 72ffddc928 * gdb.texinfo (TUI Keys): Document C-x o key to switch active window. 2003-07-26 07:38:54 +00:00
gdbadmin 05105a9926 *** empty log message *** 2003-07-26 00:00:02 +00:00
gdbadmin dec6218090 *** empty log message *** 2003-07-25 00:00:01 +00:00
Stephane Carrez 3fc14bdbc9 * tui.c (tui_rl_other_window): New function to switch the TUI active
window and give focus to a next window.
	(tui_initialize_readline): Bind it to c-x o.
	(tui_rl_next_keymap): Activate TUI mode when entering SingleKey mode.
2003-07-24 20:23:17 +00:00
Stephane Carrez e286caf282 * NEWS: Mention "regs" deprecated for m68hc11 too.
* m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
	(m68hc11_print_register): New function to print out one register.
	(m68hc11_print_registers_info): New function to print registers.
	(show_regs): Deprecate and use the above.
	(m68hc11_gdbarch_init): Install the print_registers_info.
2003-07-24 19:59:33 +00:00
Daniel Jacobowitz 3b2fc2ea68 * linux-arm-low.c (arm_reinsert_addr): New function.
(the_low_target): Add arm_reinsert_addr.
2003-07-24 19:03:50 +00:00
Daniel Jacobowitz a9f12a31ac * gdbint.texinfo (libgdb components): Correct a GDB to GDBN. 2003-07-24 18:56:37 +00:00
Daniel Jacobowitz b1fe945553 * gdb.texinfo (Server): Mention pidof. 2003-07-24 18:55:04 +00:00
Daniel Jacobowitz bcb27c9f96 From Kei Sakamoto <sakamoto.kei@renesas.com>:
* gdb.base/relocate.c (dummy): New padding array.
2003-07-24 18:45:43 +00:00
Jeff Johnston 705b278bd1 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
* ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
        that we have a SIGTRAP before returning non-zero.
2003-07-24 16:42:54 +00:00
gdbadmin b888c773dc *** empty log message *** 2003-07-24 00:00:02 +00:00
Stephane Carrez 80b9fe0393 * tui.c (tui_enable): Call tuiRefreshAll to make sure the window
is accurate.
2003-07-23 21:40:59 +00:00
Stephane Carrez 6385821035 * tui-interp.c (tui_resume): Enable tui when we expected it.
(tui_suspend): Remember in which TUI mode we are.
	(_initialize_tui_interp): Use the tui interpreter even when no
	other interpreter was set and define in which TUI mode to start.
2003-07-23 21:22:14 +00:00
Elena Zannoni 63cd419876 2003-07-23 Michal Ludvig <mludvig@suse.cz>
Elena Zannoni  <ezannoni@redhat.com>

 	* linespec.c (decode_line_2): Avoid crash if
 	find_function_start_sal() returns empty record.
2003-07-23 19:24:31 +00:00
Michael Snyder 686d097cef 2003-07-23 Michael Snyder <msnyder@redhat.com>
* gdb.base/return2.exp: Don't test long-long return.
2003-07-23 18:53:34 +00:00
Michael Snyder 57ba3b854e 2003-07-23 Michael Snyder <msnyder@redhat.com>
* gdb.disasm/t01_mov.s: New file, h8300sx disassembly tests.
	* gdb.disasm/t01_mov.exp: Ditto.
	* gdb.disasm/t02_mova.s: Ditto.
	* gdb.disasm/t02_mova.exp: Ditto.
	* gdb.disasm/t03_add.s: Ditto.
	* gdb.disasm/t03_add.exp: Ditto.
	* gdb.disasm/t04_sub.s: Ditto.
	* gdb.disasm/t04_sub.exp: Ditto.
	* gdb.disasm/t05_cmp.s: Ditto.
	* gdb.disasm/t05_cmp.exp: Ditto.
	* gdb.disasm/t06_ari2.s: Ditto.
	* gdb.disasm/t06_ari2.exp: Ditto.
	* gdb.disasm/t07_ari3.s: Ditto.
	* gdb.disasm/t07_ari3.exp: Ditto.
	* gdb.disasm/t08_or.s: Ditto.
	* gdb.disasm/t08_or.exp: Ditto.
	* gdb.disasm/t09_xor.s: Ditto.
	* gdb.disasm/t09_xor.exp: Ditto.
	* gdb.disasm/t10_and.s: Ditto.
	* gdb.disasm/t10_and.exp: Ditto.
	* gdb.disasm/t11_logs.s: Ditto.
	* gdb.disasm/t11_logs.exp: Ditto.
	* gdb.disasm/t12_bit.s: Ditto.
	* gdb.disasm/t12_bit.exp: Ditto.
	* gdb.disasm/t13_otr.s: Ditto.
	* gdb.disasm/t13_otr.exp: Ditto.
2003-07-23 18:46:14 +00:00
Andreas Schwab 6926787d2b * ia64-tdep.c (ia64_print_insn): New function.
(ia64_gdbarch_init): Set print_insn to it.
	(_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
	deprecated_tm_print_insn_info.
2003-07-23 18:32:20 +00:00
Elena Zannoni e00759efb0 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
* gdb.threads/tls.exp :Add kfail for 'info address' case.
2003-07-23 03:08:26 +00:00
Michael Snyder 708cc1b6ac 2003-07-22 Michael Snyder <msnyder@redhat.com>
* h8300-tdep.c (h8300_extract_return_value): Teach it how to
        handle 8-bit returns (long long).
        (h8300h_extract_return_value): Ditto.
        (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2003-07-23 01:25:55 +00:00
gdbadmin 53946b3266 *** empty log message *** 2003-07-23 00:00:31 +00:00
Andrew Cagney aebd7893d9 2003-07-22 Andrew Cagney <cagney@redhat.com>
* gdbarch.c Include "gdb_obstack.h".
	(struct gdbarch): Add an "obstack".
	(alloc_gdbarch_data): Allocate the gdbarch data using
	GDBARCH_OBSTACK_CALLOC.
	(free_gdbarch_data): Delete function.
	(gdbarch_obstack_zalloc): New function.
	(gdbarch_free): Free the obstack, do not call free_gdbarch_data.
	Assert that the architecture is not initialized.
	(gdbarch_alloc): Allocate an obstack, allocate the architecture
	vector from the obstack.
	(alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
	architecture obstack.
	(GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
	(set_gdbarch_data): Assert that the data is not initialized.
	(struct gdbarch_data): Delete member "free".
	(register_gdbarch_data): Do not initialize "free".
	* gdbarch.h, gdbarch.c: Re-generate.
2003-07-22 19:49:58 +00:00
Elena Zannoni 32ffcbeda5 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
* dwarf2loc.c (locexpr_describe_location): Fix typos.
2003-07-22 18:24:42 +00:00
Andrew Cagney 153721e664 2003-07-22 Andrew Cagney <cagney@redhat.com>
* configure.in (build_warnings): Add -Wformat-nonliteral.
	* configure: Re-generate.

2003-07-22  Andrew Cagney  <cagney@redhat.com>

	* gdbint.texinfo (Coding): Add -Wformat-nonliteral to -Werror
	list.
2003-07-22 18:18:10 +00:00
Elena Zannoni c193f044f3 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
dwarf2loc.c (locexpr_describe_location): Fix typo.
2003-07-22 18:16:05 +00:00
Elena Zannoni 8bc2021fdc 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
* gdb.threads/tls.c : New file.
        * gdb.threads/tls.exp : New file.
        * gdb.threads/tls-main.c : New file.
        * gdb.threads/tls-shared.c : New file.
        * gdb.threads/tls-shared.exp : New file.
2003-07-22 15:49:45 +00:00
Elena Zannoni c3228f1238 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
* findvar.c (read_var_value): Remove case for thread local storage
	variables.  It is now entirely handled by the dwarf2 location
	expression code.
	* printcmd.c (address_info): Ditto.
	* symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
	enumeration value.
	(struct symbol): Remove objfile field, which was used by
	LOC_THREAD_LOCAL_STATIC only.
	* dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
	* dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
	usage of objfile pointer.
	* dwarf2loc.c (locexpr_describe_location): Add case to handle
	thread local variables.
	Add include of objfiles.h.
	* dwarf2expr.c (execute_stack_op): Add comments about thread local
	storage variables.
	* Makefile.in (dwarf2loc.o): Update dependencies.
2003-07-22 15:41:59 +00:00
Andrew Cagney aef9bcd2e7 2003-07-22 Andrew Cagney <cagney@redhat.com>
* config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
	get_frame_base.
	(FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
	(FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
	(struct value): Add opaque declaration.
	(DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2003-07-22 12:48:23 +00:00
Andreas Schwab 89320c4c5d * gdb.asm/powerpc.inc (gdbasm_startup): Force alignment. 2003-07-22 12:16:37 +00:00
gdbadmin 478a0352b7 *** empty log message *** 2003-07-22 00:00:02 +00:00
Andrew Cagney d95a89033d 2003-07-21 Andrew Cagney <cagney@redhat.com>
From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
	* m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2003-07-21 18:56:05 +00:00
gdbadmin e4b5a1e447 *** empty log message *** 2003-07-21 00:00:01 +00:00
Stephane Carrez 4db73d4977 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
regcache_cooked_read_unsigned instead of read_register.
	(m68hc11_saved_pc_after_call): Likewise.
	(m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
	instead of write_register.
	(m68hc11_register_type): New function.
	(m68hc11_register_virtual_type): Remove.
	(m68hc11_store_return_value): Convert to use the regcache.
	(m68hc11_extract_struct_value_address): Likewise.
	(m68hc11_gdbarch_init): Remove deprecated ops for register to use
	m68hc11_register_type; undeprecate store_return_value and
	extract_struct_value_address.
2003-07-20 18:36:27 +00:00
Andreas Schwab 180dea7cce * gdb.base/selftest.exp (do_steps_and_nexts): Add more patterns
due to insn reordering.
2003-07-20 17:39:16 +00:00
Stephane Carrez ef2b8fcdd8 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
and translate to use regcache.
	(m68hc11_gdbarch_init): Undeprecate extract_return_value.
2003-07-20 14:18:14 +00:00
gdbadmin 0be6005c96 *** empty log message *** 2003-07-20 00:00:02 +00:00
gdbadmin 34b60dc34a *** empty log message *** 2003-07-19 00:00:32 +00:00
Andrew Cagney 625b0b9752 2003-07-18 Andrew Cagney <cagney@redhat.com>
* gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
	* gdbarch.h, gdbarch.c: Re-generate.
	* i386-tdep.c (i386_gdbarch_init): Do not set
	DWARF2_BUILD_FRAME_INFO.
	* elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
	unconditionally.
	* alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
	DWARF2_BUILD_FRAME_INFO.
2003-07-18 21:31:50 +00:00
Andrew Cagney 22b0d388c7 2003-07-18 Andrew Cagney <cagney@redhat.com>
From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
        * disasm.c (gdb_disassemble_info): Initilize di.arch.
2003-07-18 20:16:23 +00:00
Andrew Cagney 1ce5d6dda5 2003-07-18 Andrew Cagney <cagney@redhat.com>
* dwarf2-frame.c (dwarf2_frame_sniffer): Use
	frame_unwind_address_in_block, instead of frame_pc_unwind.
	(dwarf2_frame_cache): Ditto.
2003-07-18 19:59:27 +00:00
Andrew Cagney e6e5e94cb8 2003-07-18 Andrew Cagney <cagney@redhat.com>
* user-regs.h (struct gdbarch): Declare opaque.
	* ui-out.h (struct ui_file): Declare opaque.
	* dwarf2-frame.h (struct frame_info): Declare opaque.
2003-07-18 19:01:14 +00:00
Kris Warkentin 5483d879bd 2003-07-18 Kris Warkentin <kewarken@qnx.com>
* nto-procfs.c: Clean ARI hits.  Change #include <..> to
#include ....
(procfs_meminfo): Change strerror to safe_strerror.
(procfs_can_run): Remove K&R badness.
2003-07-18 17:15:33 +00:00
Michael Snyder 278a7cf7f0 2003-07-17 Michael Snyder <msnyder@redhat.com>
* remote-sim.c: Comment typo fix.
2003-07-18 00:21:00 +00:00