aboutsummaryrefslogtreecommitdiff
path: root/binutils/windmc.h
diff options
context:
space:
mode:
authorJoel Anderson <joelanderson333@gmail.com>2020-06-03 16:44:37 +0100
committerNick Clifton <nickc@redhat.com>2020-06-03 16:44:37 +0100
commit913e0fd47321873e1bfecedd73d5882b765fc8e6 (patch)
tree757a713b5e6bb5d7b396d27cdc2adccd76933ed0 /binutils/windmc.h
parent5144dfba285d9b467016b7a2f72f0240fda7ce8f (diff)
downloadgdb-913e0fd47321873e1bfecedd73d5882b765fc8e6.zip
gdb-913e0fd47321873e1bfecedd73d5882b765fc8e6.tar.gz
gdb-913e0fd47321873e1bfecedd73d5882b765fc8e6.tar.bz2
[PATCH] fix windmc typedef bug
While a typedef can be specified in message files for the messages following with the `MessageIdTypedef` directive, only the last typedef was honored by windmc. This corrects this behavior, matching mc.exe functionality. * windmc.h (struct mc_node): Add id_typecast field. * mcparse.y (message): Initialise the id_typecast field. * windmc.c (write_dbg): Use the id_typecast field as a parameter when calling write_dbg_define. (write_header): Likewise.
Diffstat (limited to 'binutils/windmc.h')
-rw-r--r--binutils/windmc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/binutils/windmc.h b/binutils/windmc.h
index 784ecc8..5c74124 100644
--- a/binutils/windmc.h
+++ b/binutils/windmc.h
@@ -66,6 +66,7 @@ typedef struct mc_node
unichar *symbol;
rc_uint_type id;
rc_uint_type vid;
+ unichar *id_typecast;
mc_node_lang *sub;
} mc_node;