summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1996-06-08 10:15:48 +0000
committerbde <bde@FreeBSD.org>1996-06-08 10:15:48 +0000
commit29f6977880e0deaaa21d3eb3f258721eca81f3b1 (patch)
tree1bb70f74006c4e38d819f1cbfc1c367d80aa2dd4 /sys/amd64
parentc27d4a25c1d410d1684b845e6b902c83d998e523 (diff)
downloadFreeBSD-src-29f6977880e0deaaa21d3eb3f258721eca81f3b1.zip
FreeBSD-src-29f6977880e0deaaa21d3eb3f258721eca81f3b1.tar.gz
Removed bogus `altfmt' code. No alternative formats are supported, but
altfmt was abused to sometimes screw up the disassembly of the bytes following unconditional jump instructions. Gas doesn't pad to a longword boundary like the comment said - that is the programmer's responsibility.
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/db_disasm.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/sys/amd64/amd64/db_disasm.c b/sys/amd64/amd64/db_disasm.c
index ab7ae80..363ff70 100644
--- a/sys/amd64/amd64/db_disasm.c
+++ b/sys/amd64/amd64/db_disasm.c
@@ -23,7 +23,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: db_disasm.c,v 1.13 1996/01/15 22:40:17 phk Exp $
+ * $Id: db_disasm.c,v 1.14 1996/03/28 20:35:03 wollman Exp $
*/
/*
@@ -1391,15 +1391,6 @@ db_disasm(loc, altfmt)
break;
}
}
-
- if (altfmt == 0) {
- if (inst == 0xe9 || inst == 0xeb) {
- /*
- * GAS pads to longword boundary after unconditional jumps.
- */
- loc = (loc + (4-1)) & ~(4-1);
- }
- }
db_printf("\n");
return (loc);
}
OpenPOWER on IntegriCloud