Binutils with MCST patches
Go to file
Pedro Alves 237fc4c9cd Implement displaced stepping.
gdb/
	* gdbarch.sh (max_insn_length): New 'variable'.
	(displaced_step_copy, displaced_step_fixup)
	(displaced_step_free_closure, displaced_step_location): New
	functions.
	(struct displaced_step_closure): Add forward declaration.
	* gdbarch.c, gdbarch.h: Regenerated.

	* arch-utils.c: #include "objfiles.h".
	(simple_displaced_step_copy_insn)
	(simple_displaced_step_free_closure)
	(displaced_step_at_entry_point): New functions.
	* arch-utils.h (simple_displaced_step_copy_insn)
	(simple_displaced_step_free_closure)
	(displaced_step_at_entry_point): New prototypes.

	* i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
	(I386_MAX_MATCHED_INSN_LEN): ... this.
	(i386_absolute_jmp_p, i386_absolute_call_p)
	(i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
	(i386_displaced_step_fixup): New functions.
	(struct i386_insn, i386_match_insn): Update.
	(i386_gdbarch_init): Set gdbarch_max_insn_length.
	* i386-tdep.h (I386_MAX_INSN_LEN): New.
	(i386_displaced_step_fixup): New prototype.
	* i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
	Register gdbarch_displaced_step_copy,
	gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
	and gdbarch_displaced_step_location functions.

	* infrun.c (debug_displaced): New variable.
	(show_debug_displaced): New function.
	(struct displaced_step_request): New struct.
	(displaced_step_request_queue, displaced_step_ptid)
	(displaced_step_gdbarch, displaced_step_closure)
	(displaced_step_original, displaced_step_copy)
	(displaced_step_saved_copy, can_use_displaced_stepping): New
	variables.
	(show_can_use_displaced_stepping, use_displaced_stepping)
	(displaced_step_clear, cleanup_displaced_step_closure)
	(displaced_step_dump_bytes, displaced_step_prepare)
	(displaced_step_clear_cleanup, write_memory_ptid)
	(displaced_step_fixup): New functions.
	(resume): Call displaced_step_prepare.
	(proceed): Call read_pc once, and remember the value.  If using
	displaced stepping, don't remove breakpoints.
	(handle_inferior_event): Call displaced_step_fixup.  Add some
	debugging output.  When we try to step over a breakpoint, but get
	a signal to deliver to the thread instead, ensure the step-resume
	breakpoint is actually inserted.  If a thread hop is needed, and
	displaced stepping is enabled, don't remove breakpoints.
	(init_wait_for_inferior): Call displaced_step_clear.
	(_initialize_infrun): Add "set debug displaced" command.  Add
	"maint set can-use-displaced-stepping" command.  Clear
	displaced_step_ptid.
	* inferior.h (debug_displaced): Declare variable.
	(displaced_step_dump_bytes): Declare function.

	* Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
	dependencies.

	gdb/testsuite/
	* gdb.asm/asmsrc1.s: Add scratch space.

	gdb/doc/
	* gdb.texinfo (Debugging Output): Document "set/show debug
	displaced".
	(Maintenance Commands): Document "maint set/show
	can-use-displaced-stepping".
2008-05-02 16:49:54 +00:00
bfd daily update 2008-05-02 00:00:05 +00:00
binutils * readelf.c (print_symbol): Add code to display non-printing characters. 2008-05-01 14:34:51 +00:00
config 2008-04-23 Paolo Bonzini <bonzini@gnu.org> 2008-04-23 10:24:41 +00:00
cpu * mt.opc (parse_imm16): Apply 2007-09-26 opcodes/mt-asm.c change 2008-01-29 03:50:23 +00:00
elfcpp * elfcpp_file.h (class Elf_file): Add large_shndx_offset_ field. 2008-04-19 18:33:19 +00:00
etc * standards.texi: Import 22 July 2007 version. 2007-08-13 09:45:22 +00:00
gas missed from 20080414 commit for e500mc support 2008-04-30 06:47:24 +00:00
gdb Implement displaced stepping. 2008-05-02 16:49:54 +00:00
gold * target-reloc.h (relocate_section): Fix dead-pointer bug. 2008-05-01 02:01:23 +00:00
gprof bfd/ 2008-04-23 16:11:47 +00:00
include * mips.h (INSN_MACRO): Move it up to the the pinfo macros. 2008-04-28 16:59:27 +00:00
intl merge from gcc 2008-04-18 15:14:13 +00:00
ld 2008-05-02 H.J. Lu <hongjiu.lu@intel.com> 2008-05-02 15:11:49 +00:00
libdecnumber merge from gcc 2008-04-18 15:14:13 +00:00
libiberty merge from gcc 2008-04-21 22:30:17 +00:00
opcodes * mips-opc.c (mips_builtin_opcodes): Set field `match' to 0 for 2008-04-29 23:27:01 +00:00
readline PR gdb/544 2008-03-24 12:59:51 +00:00
sim 2008-04-14 Hans Kester <kester.hans@gmail.com> 2008-04-14 15:15:18 +00:00
texinfo
.cvsignore
COPYING
COPYING.LIB
COPYING.LIBGLOSS 2007-12-19 Jeff Johnston <jjohnstn@redhat.com> 2007-12-19 20:47:45 +00:00
COPYING.NEWLIB 2007-12-19 Jeff Johnston <jjohnstn@redhat.com> 2007-12-19 19:12:23 +00:00
COPYING3 * COPYING3: New file. Contains version 3 of the GNU General Public License. 2007-07-17 13:50:23 +00:00
COPYING3.LIB * COPYING3: New file. Contains version 3 of the GNU General Public License. 2007-07-17 13:50:23 +00:00
ChangeLog 2008-04-18 Paolo Bonzini <bonzini@gnu.org> 2008-04-18 11:07:31 +00:00
MAINTAINERS * MAINTAINERS: Replace reference to configure.in with reference to configure.ac. 2008-04-18 08:55:06 +00:00
Makefile.def * Makefile.def: check-gold depends upon all-binutils. 2008-04-07 21:58:34 +00:00
Makefile.in 2008-04-18 Paolo Bonzini <bonzini@gnu.org> 2008-04-18 11:07:31 +00:00
Makefile.tpl 2008-04-18 Paolo Bonzini <bonzini@gnu.org> 2008-04-18 11:07:31 +00:00
README
README-maintainer-mode
compile
config-ml.in 2007-11-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 2007-11-29 15:36:39 +00:00
config.guess * config.sub, config.guess: Update from upstream sources. 2008-04-14 09:28:35 +00:00
config.rpath * config.rpath: Add AIX 6 support. 2008-03-13 19:27:44 +00:00
config.sub * config.sub, config.guess: Update from upstream sources. 2008-04-14 09:28:35 +00:00
configure 2008-04-18 Paolo Bonzini <bonzini@gnu.org> 2008-04-18 11:07:31 +00:00
configure.ac 2008-04-18 Paolo Bonzini <bonzini@gnu.org> 2008-04-18 11:07:31 +00:00
depcomp
djunpack.bat
install-sh
libtool.m4 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 2008-03-16 06:49:28 +00:00
ltgcc.m4 2007-05-31 Paolo Bonzini <bonzini@gnu.org> 2007-05-31 06:40:36 +00:00
ltmain.sh 2007-05-25 Andreas Tobler <a.tobler@schweiz.org> 2007-05-25 19:56:24 +00:00
ltoptions.m4 * ltmain.sh: Update from GCC. 2007-05-24 17:33:42 +00:00
ltsugar.m4 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 2008-03-16 06:49:28 +00:00
ltversion.m4 * ltmain.sh: Update from GCC. 2007-05-24 17:33:42 +00:00
lt~obsolete.m4 2007-07-05 H.J. Lu <hongjiu.lu@intel.com> 2007-07-05 17:57:04 +00:00
makefile.vms
missing
mkdep
mkinstalldirs
move-if-change
setup.com
src-release * src-release (GDB_SUPPORT_DIRS): Add libdecnumber. 2007-10-11 18:15:02 +00:00
symlink-tree
ylwrap

README

		   README for GNU development tools

This directory contains various GNU compilers, assemblers, linkers, 
debuggers, etc., plus their support routines, definitions, and documentation.

If you are receiving this as part of a GDB release, see the file gdb/README.
If with a binutils release, see binutils/README;  if with a libg++ release,
see libg++/README, etc.  That'll give you info about this
package -- supported targets, how to use it, how to report bugs, etc.

It is now possible to automatically configure and build a variety of
tools with one command.  To build all of the tools contained herein,
run the ``configure'' script here, e.g.:

	./configure 
	make

To install them (by default in /usr/local/bin, /usr/local/lib, etc),
then do:
	make install

(If the configure script can't determine your type of computer, give it
the name as an argument, for instance ``./configure sun4''.  You can
use the script ``config.sub'' to test whether a name is recognized; if
it is, config.sub translates it to a triplet specifying CPU, vendor,
and OS.)

If you have more than one compiler on your system, it is often best to
explicitly set CC in the environment before running configure, and to
also set CC when running make.  For example (assuming sh/bash/ksh):

	CC=gcc ./configure
	make

A similar example using csh:

	setenv CC gcc
	./configure
	make

Much of the code and documentation enclosed is copyright by
the Free Software Foundation, Inc.  See the file COPYING or
COPYING.LIB in the various directories, for a description of the
GNU General Public License terms under which you can copy the files.

REPORTING BUGS: Again, see gdb/README, binutils/README, etc., for info
on where and how to report problems.