Commit Graph

11464 Commits

Author SHA1 Message Date
Michael Snyder 62995fc4a5 2002-04-12 Michael Snyder <msnyder@redhat.com>
* eval.c: Indentation fix-ups.
2002-04-12 22:54:17 +00:00
Michael Snyder 169a7369fc 2002-04-12 Michael Snyder <msnyder@redhat.com>
* d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
	in case it gets applied to an address that is already
	in the instruction space.
2002-04-12 22:50:42 +00:00
Michael Snyder de74f71f00 2002-04-12 Michael Snyder <msnyder@redhat.com>
* cli/cli-decode.c (help_list): Allow long lines to wrap.
2002-04-12 22:44:18 +00:00
Don Howard 20f01a4665 2002-04-12 Don Howard <dhoward@redhat.com>
* cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
	max_user_call_depth.
	(init_cmd_lists): Initialize the new value;
	* cli/cli-script.c (execute_user_command): Limit the call depth of
	user defined commands.  This avoids a core-dump when user commands
	are infinitly recursive.
2002-04-12 22:31:23 +00:00
Kevin Buettner a88376a3e1 Delete DEFAULT_LR_SAVE. 2002-04-12 19:48:37 +00:00
Michael Snyder f2172603b5 2002-04-12 Michael Snyder <msnyder@redhat.com>
* source.c: White space fix-up.
2002-04-12 19:46:29 +00:00
Andrew Cagney cda5a58a3e * defs.h (read_relative_register_raw_bytes): Delete declaration.
* 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-04-12 18:18:59 +00:00
Kevin Buettner 2ea5f656d7 From Jimi X <jimix@watson.ibm.com>:
* rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
	64-bit SysV ABI.
2002-04-12 17:12:24 +00:00
Kevin Buettner 27b1578512 From Jimi X <jimix@watson.ibm.com>:
* rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
	bfd info.
2002-04-12 07:37:18 +00:00
Kevin Buettner 5d57ee30b3 From Jimi X <jimix@watson.ibm.com>:
* rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
	register sets for these processor variants.
2002-04-12 07:20:32 +00:00
gdbadmin c7b398788c *** empty log message *** 2002-04-12 00:00:33 +00:00
Daniel Jacobowitz bc1e36cac4 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/linux-low.c (usr_store_inferior_registers): Support
        registers which are allowed to fail to store.
        * gdbserver/linux-low.h (linux_target_ops): Likewise.
        * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
        (ppc_cannot_store_register): FPSCR may not be storable.
        * regformats/reg-ppc.dat: Support FPSCR.
2002-04-11 20:30:08 +00:00
Kevin Buettner e3f36dbd47 Add support for the fpscr register for Power / PowerPC targets. 2002-04-11 19:08:56 +00:00
Michael Snyder 943c9c25d6 2002-04-11 Michael Snyder <msnyder@redhat.com>
* configure.in: Autoconfiscate _SYSCALL32 define for solaris.
	* configure: Regenerate.
	* config.in: Regenerate.
	* acconfig.h: Add define for _SYSCALL32.
	* core-sol2.c: Remove #define _SYSCALL32.
	* solib-legacy.c: Remove #define _SYSCALL32.
2002-04-11 18:32:51 +00:00
Michael Snyder fda6ae12ae 2002-02-14 Michael Snyder <msnyder@redhat.com>
* gdb.base/gcore.exp: Relax recognition of function breakpoint.
2002-04-11 18:24:08 +00:00
Michael Snyder 670a52dbc7 2002-02-13 Michael Snyder <msnyder@redhat.com>
* config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
2002-04-11 18:13:21 +00:00
Martin Hunt 6b8426a663 2002-04-10 Martin M. Hunt <hunt@redhat.com>
* gdb.base/ending-run.exp: Fix pattern for Mips targets
	stepping out of main.
2002-04-11 03:31:26 +00:00
gdbadmin 6b2d8da01f *** empty log message *** 2002-04-11 00:00:03 +00:00
Andrew Cagney d8c0a2e707 * stack.c (select_frame): Cleanup internal error message, do not
use %p.
2002-04-10 23:32:33 +00:00
Andrew Cagney 7cc19214aa * stack.c (select_frame): Check that selected_frame and the
specified level are as expected.
* blockframe.c (get_prev_frame): Set the `level' from next_frame.
Update copyright.
* frame.h (struct frame_info): Add field `level'.  Update
copyright.
Work-in-progress PR gdb/464.
2002-04-10 22:14:02 +00:00
Andrew Cagney 67a2b77eff * maint.c (maint_print_section_info): Rename print_section_info.
(print_bfd_section_info, print_objfile_section_info): Update.
* inferior.h (struct gdbarch): Add opaque declaration.
* gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
* gdbarch.h: Regenerate.
2002-04-10 22:00:20 +00:00
Michal Ludvig 8cfda98c96 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
(PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
	(kernel_u_size): Added.
	* config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
	(PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
2002-04-10 12:12:36 +00:00
Michael Chastain 268182205b 2002-04-09 Michael Chastain <mec@shout.net>
* gdbint.texinfo (Obsolete Conditionals): Remove references to
	PYRAMID_* macros.
2002-04-10 05:11:35 +00:00
Michael Chastain 34af487575 2002-04-09 Michael Chastain <mec@shout.net>
* gdb.c++/local.cc (main): Move call to marker1() inside nested
	scope so that the nested scope tests will make sense.
	* gdb.c++/local.exp: Write patterns that actually work with gcc
	(the HP patterns "were never known to work with gcc").
	Keep the old aCC patterns too.
2002-04-10 03:52:57 +00:00
Jim Ingham ca439ad26a 2002-04-04 Jim Ingham <jingham@apple.com>
* valarith.c (find_size_for_pointer_math): New function, either returns
       the size for a pointer's target, returns 1 for void *, or errors for
       incomplete types.
       (value_add, value_sub): use find_size_for_pointer_math.
2002-04-10 00:11:51 +00:00
gdbadmin 070ccb2d01 *** empty log message *** 2002-04-10 00:00:04 +00:00
Daniel Jacobowitz 2f2893d916 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
* linux-low.c (linux_look_up_symbols): New hook.
        (linux_target_ops): Add linux_look_up_symbols.
        * remote-utils.c (decode_address): New function.
        (look_up_one_symbol): New function.
        * server.c (handle_query): Call target look_up_symbols hook.
        * server.h (look_up_one_symbol): Add prototype.
        * target.h (struct target_ops): Add look_up_symbols hook.
2002-04-09 23:52:06 +00:00
Daniel Jacobowitz d64b884136 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
        * ChangeLog: Correct paths in last ChangeLog entry.
2002-04-09 22:58:00 +00:00
Daniel Jacobowitz 2ec06d2e41 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
* linux-low.h: Remove obsolete prototypes.
	(struct linux_target_ops): New.
	(extern the_low_target): New.
	* linux-low.c (num_regs, regmap): Remove declarations.
	(register_addr): Use the_low_target explicitly.
	(fetch_register): Likewise.
	(usr_fetch_inferior_registers): Likewise.
	(usr_store_inferior_registers): Likewise.
	* linux-arm-low.c (num_regs): Remove.
	(arm_num_regs): Define.
	(arm_regmap): Renamed from regmap, made static.
	(arm_cannot_fetch_register): Renamed from cannot_fetch_register,
	made static.
	(arm_cannot_store_register): Renamed from cannot_store_register,
	made static.
	(the_low_target): New.
	* linux-i386-low.c (num_regs): Remove.
	(i386_num_regs): Define.
	(i386_regmap): Renamed from regmap, made static.
	(i386_cannot_fetch_register): Renamed from cannot_fetch_register,
	made static.
	(i386_cannot_store_register): Renamed from cannot_store_register,
	made static.
	(the_low_target): New.
	* linux-ia64-low.c (num_regs): Remove.
	(ia64_num_regs): Define.
	(ia64_regmap): Renamed from regmap, made static.
	(ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
	made static.
	(ia64_cannot_store_register): Renamed from cannot_store_register,
	made static.
	(the_low_target): New.
	* linux-m68k-low.c (num_regs): Remove.
	(m68k_num_regs): Define.
	(m68k_regmap): Renamed from regmap, made static.
	(m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
	made static.
	(m68k_cannot_store_register): Renamed from cannot_store_register,
	made static.
	(the_low_target): New.
	* linux-mips-low.c (num_regs): Remove.
	(mips_num_regs): Define.
	(mips_regmap): Renamed from regmap, made static.
	(mips_cannot_fetch_register): Renamed from cannot_fetch_register,
	made static.
	(mips_cannot_store_register): Renamed from cannot_store_register,
	made static.
	(the_low_target): New.
	* linux-ppc-low.c (num_regs): Remove.
	(ppc_num_regs): Define.
	(ppc_regmap): Renamed from regmap, made static.
	(ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
	made static.
	(ppc_cannot_store_register): Renamed from cannot_store_register,
	made static.
	(the_low_target): New.
	* linux-s390-low.c (num_regs): Remove.
	(s390_num_regs): Define.
	(s390_regmap): Renamed from regmap, made static.
	(s390_cannot_fetch_register): Renamed from cannot_fetch_register,
	made static.
	(s390_cannot_store_register): Renamed from cannot_store_register,
	made static.
	(the_low_target): New.
	* linux-sh-low.c (num_regs): Remove.
	(sh_num_regs): Define.
	(sh_regmap): Renamed from regmap, made static.
	(sh_cannot_fetch_register): Renamed from cannot_fetch_register,
	made static.
	(sh_cannot_store_register): Renamed from cannot_store_register,
	made static.
	(the_low_target): New.
	* linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
	(the_low_target): New.
2002-04-09 22:44:43 +00:00
Michael Snyder 80f8a6eba5 2002-04-05 Michael Snyder <msnyder@redhat.com>
* breakpoint.c (clear_command): Rewrite middle section to
	combine two loops with identical control conditions.
	Add a cleanup to eliminate a memory leak.
2002-04-09 22:33:25 +00:00
Andrew Cagney 96cb11df6d * frame.c (read_relative_register_raw_bytes_for_frame): Do not
override FP_REGNUM with frame->fp.  Update copyright.
* parse.c (num_std_regs, std_regs): Delete.
(target_map_name_to_register): Do not search std_regs.  Update
function description.
* parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
declarations.  Update copyright.
Fix PR gdb/251.
2002-04-09 22:14:39 +00:00
Daniel Jacobowitz c3a3ccc760 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/Makefile.in: Add stamp-h target.
        * gdbserver/configure.in: Create stamp-h.
        * gdbserver/configure: Regenerated.
2002-04-09 21:25:29 +00:00
Daniel Jacobowitz ce3a066d93 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/inferiors.c: New file.
        * gdbserver/target.c: New file.
        * gdbserver/target.h: New file.
        * gdbserver/Makefile.in:  Add target.o and inferiors.o.  Update
        dependencies.
        * gdbserver/linux-low.c (inferior_pid): New static variable,
        moved from server.c.
        (linux_create_inferior): Renamed from create_inferior.
        Call add_inferior.  Return 0 on success instead of a PID.
        (linux_attach): Renamed from myattach.
        (linux_kill): Renamed from kill_inferior.  Call clear_inferiors ().
        (linux_thread_alive): Renamed from mythread_alive.
        (linux_wait): Renamed from mywait.  Call clear_inferiors () if the
        child dies.
        (linux_resume): Renamed from myresume.  Add missing ``return 0''.
        (regsets_store_inferior_registers): Correct error message.
        Add missing ``return 0''.
        (linux_fetch_registers): Renamed from fetch_inferior_registers.
        (linux_store_registers): Renamed from store_inferior_registers.
        (linux_read_memory): Renamed from read_inferior_memory.
        (linux_write_memory): Renamed from write_inferior_memory.
        (linux_target_ops): New structure.
        (initialize_low): Call set_target_ops ().
        * gdbserver/remote-utils.c (unhexify): New function.
        (hexify): New function.
        (input_interrupt): Send signals to ``signal_pid''.
        * gdbserver/server.c (inferior_pid): Remove.
        (start_inferior): Update create_inferior call.
        (attach_inferior): Call add_inferior.
        (handle_query): New function.
        (main): Call handle_query for `q' packets.
        * gdbserver/server.h: Include "target.h".  Remove obsolete prototypes.
        Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
2002-04-09 21:17:45 +00:00
Daniel Jacobowitz 0729219dab 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/Makefile.in: Add WARN_CFLAGS.  Update configury
        dependencies.
        * gdbserver/configure.in: Check for <string.h>
        * gdbserver/configure: Regenerate.
        * gdbserver/config.in: Regenerate.
        * gdbserver/gdbreplay.c: Include needed system headers.
        (remote_open): Remove strchr prototype.
        * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
        * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
        (supply_register_by_name): Likewise.
        (collect_register): Change buf argument to void *.
        (collect_register_by_name): Likewise.
        * gdbserver/regcache.h: Add missing prototypes.
        * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
        * gdbserver/server.c (handle_query): New function.
        (attached): New static variable, moved out of main.
        (main): Quiet longjmp clobber warnings.
        * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT.  Update prototypes.
        * gdbserver/utils.c (error): Remove NORETURN.
        (fatal): Likewise.
2002-04-09 21:11:35 +00:00
Daniel Jacobowitz 97658e92df 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
* symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
        after the last symbol in a block.
2002-04-09 20:51:33 +00:00
Daniel Jacobowitz 2d1676a068 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
* gdb.base/attach.exp: Correct target board test.
2002-04-09 20:48:45 +00:00
Pierre Muller 6044e3ebce 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
* p-exp.y (yylex): Handle also the fact that is_a_field_of_this
	is non zero as a found symbol.
2002-04-09 10:52:41 +00:00
Andrew Cagney 0406ec40ea * findvar.c: Include "builtin-regs.h".
(value_of_register): Call value_of_builtin_reg when applicable.
* parse.c: Include "builtin-regs.h" and "gdb_assert.h".
(target_map_name_to_register): Call
builtin_reg_map_name_to_regnum.
* Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
(COMMON_OBS): Add builtin-regs.o and std-regs.o.
(builtin_regs_h): Define.
(builtin-regs.o): New target.
(findvar.o): Add $(builtin_regs_h).
* builtin-regs.c, builtin-regs.h: New files.
* std-regs.c: New file.
Partial fix for PR gdb/251.
2002-04-09 03:06:14 +00:00
Kevin Buettner 56a6dfb9de * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
it's no longer required.
2002-04-09 02:26:10 +00:00
Andrew Cagney 3a808432dd * Makefile.in (gdbtk-wrapper.o): Add missing dependencies. 2002-04-09 01:52:57 +00:00
Kevin Buettner 7c40d5414c * rs6000-tdep.c (rs6000_software_single_step): Use
rs6000_breakpoint_from_pc() to fetch breakpoint instruction
	and size.  Use target_insert_breakpoint() and
	target_remove_breakpoint() to insert and remove breakpoints
	instead of explicit memory reads and writes.
2002-04-09 01:41:46 +00:00
Kevin Buettner cc9836a8aa * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
* rs6000-tdep.c (rs6000_push_arguments): Eliminate
	ELF_OBJECT_FORMAT ifdef.
2002-04-09 00:53:28 +00:00
Kevin Buettner 7495d1dc3f From Jimi X <jimix@watson.ibm.com>:
* rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
2002-04-09 00:10:09 +00:00
gdbadmin e8969f3538 *** empty log message *** 2002-04-09 00:00:33 +00:00
Kevin Buettner 4288e83618 From Jimi X <jimix@watson.ibm.com>:
* rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
	definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
2002-04-08 22:56:46 +00:00
Michael Chastain 3a63e3f9b9 2002-04-08 Michael Chastain <mec@shout.net>
* gdb.c++/method.exp: Require "const ... A * ..." for "ptype this"
	in a const method.  Add some xfail and fail cases for configurations
	that do not emit the "const ...".
2002-04-08 22:43:15 +00:00
Mark Kettenis a4e4e50196 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
s/asprintf/xasprintf/.
(fbsd_make_corefile_notes): s/strdup/xstrdup/.
2002-04-08 21:53:00 +00:00
Michael Chastain f18dabd22e 2002-04-07 Michael Chastain <mec@shout.net>
* gdb.c++/method.exp: Use gdb_test instead of send_gdb/gdb_expect.
	Accept "A * const" and "const A * const" as type of "this".
	Fix spelling of getFunky throughout.  Make messages uniform.
2002-04-08 07:25:37 +00:00
Elena Zannoni 27cdacdbd0 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
* mi-cmd-disas.c: Run through indent.
2002-04-08 00:43:22 +00:00
Elena Zannoni 8f0eea0e54 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
* mi-cmd-disas.c (dump_insns): New function.
        (do_mixed_source_and_assembly): New function.
        (do_assembly_only): New function.
        (do_disassembly): New function.
        (mi_cmd_disassemble): Rewrite using smaller, more modular
        functions.
2002-04-08 00:38:10 +00:00
Elena Zannoni 0fcddd82b6 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
Work around for PR gdb/285:
	* gdb.asm/asm-source.exp: Bail out if multilibs are detected.
2002-04-08 00:01:06 +00:00
gdbadmin bccbc969e1 *** empty log message *** 2002-04-08 00:00:32 +00:00
Elena Zannoni 16a8534aff 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
* gdb.asm/asm-source.exp: Build symbolic link to arch specific
        instructions file at run time instead of configure time.
        Sometimes we run the test in a directory that is not the one we
        configured in.
        * gdb.asm/configure.in: Delete creation of symlink.
        * gdb.asm/configure: Regenerate.
2002-04-07 23:57:23 +00:00
Elena Zannoni 7aa83cacfa 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
* remote-e7000.c (write_small, e7000_read_inferior_memory,
	e7000_read_inferior_memory_large, e7000_insert_breakpoint,
	e7000_remove_breakpoint): Use paddr_nz() to print addresses.
2002-04-07 23:32:40 +00:00
Andrew Cagney 006defbaa8 I believe Jeff Law denies responsability for this one:
* config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
* config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
* config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
Work-around for PR gdb/366.
2002-04-07 22:34:31 +00:00
Elena Zannoni cf1fcca124 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
* sh-tdep.c (sh_fp_frame_init_saved_regs,
	sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
	information.
2002-04-07 22:13:20 +00:00
Andrew Cagney 3f289e6fd4 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
maintainer.
2002-04-07 21:22:19 +00:00
Andrew Cagney 129188f6b2 * README (Reporting Bugs in GDB): Document the bug web page as the
prefered way of submitting bugs.
Fix PR gdb/402.

* gdb.texinfo (Bug Reporting): Document that the web is the
prefered way of submitting bug reports.
(Bug Reporting): Delete the s-mail address as the last resort.
2002-04-07 19:09:58 +00:00
Andrew Cagney 1200cd6e7e * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
-1.  Update comment.
* gdbarch.h, gdbarch.c: Re-generate.
2002-04-07 02:16:46 +00:00
gdbadmin 2bb5238aee *** empty log message *** 2002-04-07 00:00:33 +00:00
Andreas Schwab 2853c33c33 * m68klinux-nat.c (fill_fpregset): Properly pass address of
buffer to regcache_collect.
2002-04-06 23:42:15 +00:00
Andrew Cagney c2169756a8 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
* gdbarch.c, gdbarch.h: Re-generate.
2002-04-06 20:50:10 +00:00
Andrew Cagney 25f1b00810 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
declaration.  Fix -Werror.
2002-04-06 18:28:20 +00:00
Daniel Jacobowitz 6c1e5d11fe Correct bad checkin (missing semicolon somehow) 2002-04-06 03:07:59 +00:00
Daniel Jacobowitz 5926342628 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
* gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
        * gdbarch.c: Regenerate.
2002-04-06 02:39:10 +00:00
Michael Snyder f5db4da3d7 2002-04-05 Michael Snyder <msnyder@redhat.com>
* cli/cli-dump.c (restore_section_callback): Use paddr_nz.
2002-04-06 01:52:34 +00:00
H.J. Lu ad3dcc5cf2 2002-04-05 H.J. Lu (hjl@gnu.org)
* solib-svr4.c (bkpt_names): Add "__start".
2002-04-06 01:51:35 +00:00
Andrew Cagney f32e7a74f7 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
as test for 64 bit target.
2002-04-06 00:19:44 +00:00
Andrew Cagney 8227c0ffb1 * h8500-tdep.c (h8500_write_fp): Delete function.
* dwarf2cfi.c (cfi_write_fp): Document as not used.
* mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
* ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
* m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
* rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
* s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
(s390_write_fp):
* sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
* x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
* d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
(d10v_write_fp): Delete function.
* inferior.h (write_fp, generic_target_write_fp): Delete
declarations.
* regcache.c (generic_target_write_fp): Delete function.
(write_fp): Delete function.
* gdbarch.sh (TARGET_WRITE_FP): Delete.
* gdbarch.h, gdbarch.c: Regenerate.
* config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
* config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
(sparc64_write_fp): Delete declaration.
* config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
(h8500_write_fp): Delete declaration.
2002-04-06 00:02:52 +00:00
gdbadmin 6553d8d2ab *** empty log message *** 2002-04-06 00:00:03 +00:00
Andrew Cagney 2757dd8645 * sparc-tdep.c (sparc64_write_fp): Delete.
(sparc_push_dummy_frame): Replace write_fp call with code to store
the FP directly.
(sparc_gdbarch_init): Do not initialize write_fp.
2002-04-05 23:38:07 +00:00
Kevin Buettner c69255e19c * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
clause.
2002-04-05 22:36:32 +00:00
Jim Blandy ae767bfb78 gdb/ChangeLog:
* stack.c (get_selected_block): Add new argument `addr_in_block',
used to return the exact code address we used to select the block,
not just the block.
* blockframe.c (get_frame_block, get_current_block): Same.
* frame.h (get_frame_block, get_current_block,
get_selected_block): Update declarations.
* linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.

gdb/mi/ChangeLog:
* mi-cmd-stack.c (list_args_or_locals): Pass new arg to
get_frame_block.  (See entry in gdb/ChangeLog.)
2002-04-05 22:04:43 +00:00
Michael Snyder 84d2ac95e4 2002-04-05 Michael Snyder <msnyder@redhat.com>
* breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
	warning message.
2002-04-05 19:16:15 +00:00
Joel Brobecker 24181d81cc Document the addition of the new xfullpath.exp testcase. 2002-04-05 16:45:04 +00:00
Joel Brobecker 989d314b85 New testcase. 2002-04-05 16:43:57 +00:00
Joel Brobecker 596aa3bf50 Document changes relative to the new xfullpath function. 2002-04-05 16:43:14 +00:00
Joel Brobecker f079a2e599 (lookup_symtab): Use the new xfullpath function, in order to be able to
match a filename with either the real filename, or the name of any
symbolic link to this file.
(lookup_partial_symtab): Ditto.
2002-04-05 16:42:04 +00:00
Joel Brobecker a89f66e45b (openp): Use xfullpath in place of gdb_realpath to avoid resolving the
basename part of filenames when the associated file is a symbolic link.
This fixes a potential inconsistency between the filenames known to GDB
and the filenames it prints in the annotations.
2002-04-05 16:40:45 +00:00
Joel Brobecker 08b204d1d1 (xfullpath): Add declaration. 2002-04-05 16:39:36 +00:00
Joel Brobecker 303c8ebdfe (xfullpath): New function. 2002-04-05 16:39:11 +00:00
Elena Zannoni 46fe161328 2002-04-05 Elena Zannoni <ezannoni@redhat.com>
* mi-cmd-disas.c (mi_cmd_disassemble): Use TARGET_PRINT_INSN
	instead of tm_print_insn.
	Update copyright year.
2002-04-05 15:59:23 +00:00
Daniel Jacobowitz 7cdb710751 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
* gdb.asm/Makefile.in: Correct dependencies.

        * gdb.asm/powerpc.inc: New file.
        * gdb.asm/asm-source.exp: Add PowerPC.
        * gdb.asm/configure.in: Likewise.
        * gdb.asm/configure: Regenerated.
2002-04-05 02:48:33 +00:00
Daniel Jacobowitz a7d17088c5 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
* gdb.base/relocate.exp: New file.
        * gdb.base/relocate.c: New file.
2002-04-05 02:45:48 +00:00
Michael Snyder c02f570307 2002-04-04 Michael Snyder <msnyder@redhat.com>
* breakpoint.c: Add support for hardware breakpoints in overlays.
	(overlay_events_enabled): New state variable.
	(insert_breakpoints): Use overlay_events_enabled to decide
	whether to attempt to set a breakpoint at the overlay load addr.
	Handle bp_hardware_breakpoint as well as bp_breakpoint.
	(remove_breakpoint): Use overlay_events_enabled to decide
	whether breakpoints need to be removed from overlay load addr.
	Handle bp_hardware_breakpoint as well as bp_breakpoint.
	(bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
	(create_overlay_event_breakpoint, enable_overlay_breakpoints,
	disable_overlay_breakpoints): Update overlay_events_enabled.
2002-04-05 02:35:26 +00:00
Fred Fish cd72150368 2002-04-04 Fred Fish <fnf@redhat.com>
* gdb.base/step-test.exp: Update comment regarding stopping in
	memcpy/bcopy calls inserted as part of the compiler runtime.
2002-04-05 00:30:09 +00:00
gdbadmin c82891d613 *** empty log message *** 2002-04-05 00:00:03 +00:00
Daniel Jacobowitz 5fb290d7a3 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
* dwarf2read.c (struct function_range): New.
        (cu_first_fn, cu_last_fn, cu_cached_fn): New.
        (check_cu_functions): New.
        (read_file_scope): Initialize global function lists.
        Call dwarf_decode_line after processing children.
        (read_func_scope): Add to global function list.
        (dwarf_decode_lines): Call check_cu_functions everywhere
        record_line is called.  Call record_line with a linenumber
        of 0 to mark sequence ends.
2002-04-04 22:26:43 +00:00
Daniel Jacobowitz b0c0ea31a1 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
* mi-cmd-disas.c (mi_cmd_disassemble): Skip end-of-function
        markers in the line table.
2002-04-04 20:23:36 +00:00
Michael Snyder b22ad7a776 2002-04-04 Michael Snyder <msnyder@redhat.com>
* gdb.base/ovlymgr.c: Add overlay event breakpoint support.
2002-04-04 19:48:09 +00:00
Michal Ludvig 7b3fabf05e * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI change sync 2002-04-04 13:18:59 +00:00
Jim Blandy bce58c0993 * configure.in: Call AC_C_INLINE.
* configure: Regenerated.
2002-04-04 00:12:41 +00:00
gdbadmin ab66ab6bce *** empty log message *** 2002-04-04 00:00:02 +00:00
Daniel Jacobowitz 5f279fa6a9 2002-04-03 Daniel Jacobowitz <drow@mvista.com>
* lib/gdb.exp (gdb_test): Move -notransfer inside of gdb_expect.
        (gdb_expect): Remove $notransfer hack.
2002-04-03 16:17:11 +00:00
Daniel Jacobowitz dd0fd3cee7 2002-04-02 Daniel Jacobowitz <drow@mvista.com>
* gdb.c++/classes.exp ("calling method for small class"): Match
        updated register output.
2002-04-03 01:35:23 +00:00
gdbadmin 40954583a1 *** empty log message *** 2002-04-03 00:00:33 +00:00
gdbadmin 7d798d03fe *** empty log message *** 2002-04-02 00:00:03 +00:00
Daniel Jacobowitz 2fccf04a44 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
* rs6000-tdep.c: Change #include of "bfd/libcoff.h"
        and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
2002-04-01 05:58:45 +00:00
gdbadmin 4a36419c3c *** empty log message *** 2002-04-01 00:00:32 +00:00
Mark Kettenis a5941fbf4a * NEWS: Mention gcore support on FreeBSD/i386. 2002-03-31 17:53:00 +00:00