aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2001-03-19 11:28:20 +0000
committerAlan Modra <amodra@gmail.com>2001-03-19 11:28:20 +0000
commit2e98d2de04d92a7486ea1007f82c93510aed16b1 (patch)
treeaef9ee50dad5490c8658be525b09239606d847cd /include
parentd394a3392ef4043d5d74ae5618e9c866fa1b185b (diff)
downloadgdb-2e98d2de04d92a7486ea1007f82c93510aed16b1.zip
gdb-2e98d2de04d92a7486ea1007f82c93510aed16b1.tar.gz
gdb-2e98d2de04d92a7486ea1007f82c93510aed16b1.tar.bz2
Fix register name printed in warning message.
Diffstat (limited to 'include')
-rw-r--r--include/opcode/ChangeLog4
-rw-r--r--include/opcode/i386.h3
2 files changed, 7 insertions, 0 deletions
diff --git a/include/opcode/ChangeLog b/include/opcode/ChangeLog
index ce26821..eef5c4d 100644
--- a/include/opcode/ChangeLog
+++ b/include/opcode/ChangeLog
@@ -1,3 +1,7 @@
+2001-03-19 Alan Modra <alan@linuxcare.com.au>
+
+ * i386.h (REGNAM_AL, REGNAM_AX, REGNAM_EAX): Define.
+
2001-02-28 Igor Shevlyakov <igor@windriver.com>
* m68k.h: new defines for Coldfire V4. Update mcf to know
diff --git a/include/opcode/i386.h b/include/opcode/i386.h
index 1af44fb..f480dd4 100644
--- a/include/opcode/i386.h
+++ b/include/opcode/i386.h
@@ -1340,6 +1340,7 @@ static const reg_entry i386_regtab[] = {
/* make %st first as we test for it */
{"st", FloatReg|FloatAcc, 0, 0},
/* 8 bit regs */
+#define REGNAM_AL 1 /* Entry in i386_regtab. */
{"al", Reg8|Acc, 0, 0},
{"cl", Reg8|ShiftCount, 0, 1},
{"dl", Reg8, 0, 2},
@@ -1365,6 +1366,7 @@ static const reg_entry i386_regtab[] = {
{"r14b", Reg8, RegRex64|RegRex, 6},
{"r15b", Reg8, RegRex64|RegRex, 7},
/* 16 bit regs */
+#define REGNAM_AX 25
{"ax", Reg16|Acc, 0, 0},
{"cx", Reg16, 0, 1},
{"dx", Reg16|InOutPortReg, 0, 2},
@@ -1382,6 +1384,7 @@ static const reg_entry i386_regtab[] = {
{"r14w", Reg16, RegRex, 6},
{"r15w", Reg16, RegRex, 7},
/* 32 bit regs */
+#define REGNAM_EAX 41
{"eax", Reg32|BaseIndex|Acc, 0, 0}, /* Must be in ax + 16 slot */
{"ecx", Reg32|BaseIndex, 0, 1},
{"edx", Reg32|BaseIndex, 0, 2},