1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

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.
This commit is contained in:
Bruce Evans 1996-06-08 10:15:48 +00:00
parent 5610112b22
commit 6f74588381
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=16213
2 changed files with 2 additions and 20 deletions

View File

@ -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);
}

View File

@ -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);
}