diff options
author | mmetzger <mmetzger> | 2013-03-11 08:39:38 +0000 |
---|---|---|
committer | mmetzger <mmetzger> | 2013-03-11 08:39:38 +0000 |
commit | e18303882e1da2e4d72062566a5f87da210bdf5a (patch) | |
tree | 46c0830a1e8bd88e3775d19a42a61f00b5db8528 /gdb/target.h | |
parent | a9428e895bfba1ade2d65d4387c8740c0eb3f930 (diff) | |
download | gdb-e18303882e1da2e4d72062566a5f87da210bdf5a.tar.gz |
Add a new function to target.h to add an alias command for a target and mark it
deprecated. This is useful when renaming targets.
gdb/
* target.h (add_deprecated_target_alias): New.
* target.c (add_deprecated_target_alias): New.
Diffstat (limited to 'gdb/target.h')
-rw-r--r-- | gdb/target.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/target.h b/gdb/target.h index ceecca4f321..e98095e35f8 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -1788,6 +1788,11 @@ int target_verify_memory (const gdb_byte *data, extern void add_target (struct target_ops *); +/* Adds a command ALIAS for target T and marks it deprecated. This is useful + for maintaining backwards compatibility when renaming targets. */ + +extern void add_deprecated_target_alias (struct target_ops *t, char *alias); + extern void push_target (struct target_ops *); extern int unpush_target (struct target_ops *); |