diff options
author | jkh <jkh@FreeBSD.org> | 1993-11-22 19:05:31 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1993-11-22 19:05:31 +0000 |
commit | f730dcb859b04033394ea8bb7d1779924096679a (patch) | |
tree | cb8cd18f92fb4a62f1d48d446dac83ee8c7bfadf /libexec/rtld-aout/i386 | |
parent | b19cf9d9a8d512fd84dadd2593c3802b4ef18c36 (diff) | |
download | FreeBSD-src-f730dcb859b04033394ea8bb7d1779924096679a.zip FreeBSD-src-f730dcb859b04033394ea8bb7d1779924096679a.tar.gz |
Some of the latest changes from Paul K (taken from NetBSD-current).
Diffstat (limited to 'libexec/rtld-aout/i386')
-rw-r--r-- | libexec/rtld-aout/i386/md.c | 10 | ||||
-rw-r--r-- | libexec/rtld-aout/i386/md.h | 4 |
2 files changed, 11 insertions, 3 deletions
diff --git a/libexec/rtld-aout/i386/md.c b/libexec/rtld-aout/i386/md.c index c0b7eba..2344565 100644 --- a/libexec/rtld-aout/i386/md.c +++ b/libexec/rtld-aout/i386/md.c @@ -27,7 +27,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: md.c,v 1.2 1993/11/09 04:19:16 paul Exp $ + * $Id: md.c,v 1.3 1993/11/15 20:58:20 paul Exp $ */ #include <sys/param.h> @@ -236,6 +236,14 @@ struct relocation_info *rp, *r; r->r_copy = 1; } +void +md_set_breakpoint(where, savep) +long where; +long *savep; +{ + *savep = *(long *)where; + *(char *)where = BPT; +} #ifdef NEED_SWAP diff --git a/libexec/rtld-aout/i386/md.h b/libexec/rtld-aout/i386/md.h index ecd1815..ca46e81 100644 --- a/libexec/rtld-aout/i386/md.h +++ b/libexec/rtld-aout/i386/md.h @@ -1,5 +1,5 @@ /* - * $Id: md.h,v 1.3 1993/10/24 00:52:40 pk Exp $ - I386 dependent definitions + * $Id: md.h,v 1.2 1993/11/09 04:19:17 paul Exp $ - I386 dependent definitions */ @@ -50,7 +50,7 @@ typedef struct jmpslot { #define NOP 0x90 #define CALL 0xe890 /* NOP + CALL opcode */ #define JUMP 0xe990 /* NOP + JMP opcode */ -#define TRAP 0xcc /* INT 3 */ +#define BPT 0xcc /* breakpoint: INT 3 */ /* * Byte swap defs for cross linking |