Commit Graph

11376 Commits

Author SHA1 Message Date
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