diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-07-06 22:23:02 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-08-17 21:08:57 -0400 |
commit | 10d8e25c4d1012ffec3838bb20bbe0b369e00fc0 (patch) | |
tree | 6c6103d7e324ad834959363079c9d592184023d6 /sim/common | |
parent | 9335d9f8235a13777ae058b1ad59f124b678f4fc (diff) | |
download | gdb-10d8e25c4d1012ffec3838bb20bbe0b369e00fc0.zip gdb-10d8e25c4d1012ffec3838bb20bbe0b369e00fc0.tar.gz gdb-10d8e25c4d1012ffec3838bb20bbe0b369e00fc0.tar.bz2 |
sim: nltvals: localize TARGET_<ERRNO> defines
Code should not be using these directly, instead they should be
resolving these dynamically via cb_host_to_target_errno maps.
Fix the Blackfin code and remove the defines out of the header
so no new code can rely on them.
Diffstat (limited to 'sim/common')
-rw-r--r-- | sim/common/gentmap.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sim/common/gentmap.c b/sim/common/gentmap.c index f1f1bc2..9f30e66 100644 --- a/sim/common/gentmap.c +++ b/sim/common/gentmap.c @@ -53,11 +53,6 @@ gen_targ_vals_h (void) printf ("#define TARGET_%s %d\n", t->symbol, t->value); printf ("\n"); - printf ("/* errno values */\n"); - for (t = &errno_tdefs[0]; t->symbol; ++t) - printf ("#define TARGET_%s %d\n", t->symbol, t->value); - printf ("\n"); - printf ("/* signal values */\n"); for (t = &signal_tdefs[0]; t->symbol; ++t) printf ("#define TARGET_%s %d\n", t->symbol, t->value); @@ -104,6 +99,7 @@ gen_targ_map_c (void) printf ("CB_TARGET_DEFS_MAP cb_init_errno_map[] = {\n"); for (t = &errno_tdefs[0]; t->symbol; ++t) { + printf ("#define TARGET_%s %d\n", t->symbol, t->value); printf ("#ifdef %s\n", t->symbol); printf (" { \"%s\", %s, TARGET_%s },\n", t->symbol, t->symbol, t->symbol); printf ("#endif\n"); |