diff options
author | Michael Snyder <msnyder@specifix.com> | 2000-07-12 23:16:45 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@specifix.com> | 2000-07-12 23:16:45 +0000 |
commit | 7bb4c887a785ad3034bf177e332053bace9159e2 (patch) | |
tree | 91777683ad4f021f13e1c9a71ce19eb773b80bf5 /gdb/parse.c | |
parent | 8a3d1a2d7a286a82141a74fe4672384a7b1a97ea (diff) | |
download | gdb-7bb4c887a785ad3034bf177e332053bace9159e2.tar.gz |
* parse.c (target_map_name_to_register): Include pseudo-regs.
Diffstat (limited to 'gdb/parse.c')
-rw-r--r-- | gdb/parse.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gdb/parse.c b/gdb/parse.c index a39c21dcfcb..d17dd9f278d 100644 --- a/gdb/parse.c +++ b/gdb/parse.c @@ -131,7 +131,15 @@ target_map_name_to_register (str, len) return i; } - /* Try standard aliases */ + /* Try pseudo-registers, if any. */ + for (i = NUM_REGS; i < NUM_REGS + NUM_PSEUDO_REGS; i++) + if (REGISTER_NAME (i) && len == strlen (REGISTER_NAME (i)) + && STREQN (str, REGISTER_NAME (i), len)) + { + return i; + } + + /* Try standard aliases. */ for (i = 0; i < num_std_regs; i++) if (std_regs[i].name && len == strlen (std_regs[i].name) && STREQN (str, std_regs[i].name, len)) |