aboutsummaryrefslogtreecommitdiff
path: root/gdb/guile
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2021-05-27 13:59:01 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2021-05-27 14:00:07 -0400
commite0f25bd9717c7973197095523db7c1cdc956cea2 (patch)
tree69041b783e0a83083475fc4390423bdee176ebe3 /gdb/guile
parent3947f654eabb1b6ccf8aad11ece46dc4b027f0f0 (diff)
downloadgdb-e0f25bd9717c7973197095523db7c1cdc956cea2.zip
gdb-e0f25bd9717c7973197095523db7c1cdc956cea2.tar.gz
gdb-e0f25bd9717c7973197095523db7c1cdc956cea2.tar.bz2
gdb: make add_info_alias accept target as a cmd_list_element
Same idea as previous patch, but for add_info_alias. gdb/ChangeLog: * command.h (add_info_alias): Accept target as cmd_list_element. Update callers. Change-Id: If830d423364bf42d7bea5ac4dd3a81adcfce6f7a
Diffstat (limited to 'gdb/guile')
-rw-r--r--gdb/guile/guile.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/guile/guile.c b/gdb/guile/guile.c
index a707c89..3b1fca3 100644
--- a/gdb/guile/guile.c
+++ b/gdb/guile/guile.c
@@ -790,10 +790,11 @@ This command is only a placeholder.")
&show_guile_list, 0, &showlist);
add_alias_cmd ("gu", "guile", class_obscure, 1, &showlist);
- add_basic_prefix_cmd ("guile", class_obscure,
- _("Prefix command for Guile info displays."),
- &info_guile_list, 0, &infolist);
- add_info_alias ("gu", "guile", 1);
+ cmd_list_element *info_guile_cmd
+ = add_basic_prefix_cmd ("guile", class_obscure,
+ _("Prefix command for Guile info displays."),
+ &info_guile_list, 0, &infolist);
+ add_info_alias ("gu", info_guile_cmd, 1);
/* The name "print-stack" is carried over from Python.
A better name is "print-exception". */