diff options
author | Markus Metzger <mmetzger@sourceware.org> | 2013-03-11 08:39:38 +0000 |
---|---|---|
committer | Markus Metzger <mmetzger@sourceware.org> | 2013-03-11 08:39:38 +0000 |
commit | b48d48ebed2efed429a1e6b92603d784b703a4ab (patch) | |
tree | 59c3c0dd37156b8ee7614b005ccbe04692cd87b5 /gdb/target.h | |
parent | a950d57c9fcf0b82e9b625398c24bf9c70717c0f (diff) | |
download | gdb-b48d48ebed2efed429a1e6b92603d784b703a4ab.zip gdb-b48d48ebed2efed429a1e6b92603d784b703a4ab.tar.gz gdb-b48d48ebed2efed429a1e6b92603d784b703a4ab.tar.bz2 |
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 ceecca4..e98095e 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 *); |