From: Yao Qi Date: Wed, 28 Nov 2012 11:56:15 +0000 (+0000) Subject: gdb/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7e20dfcd947ceb8b6f48863e9bae82205a63cc8a;p=binutils-gdb.git gdb/ 2012-11-28 Yao Qi * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to abbreviate 'delete tracepoints' to 'delete tr'. * corefile.c (_initialize_core): Call add_alias_cmd to abbreviate 'set gnutarget' to 'set g'. * value.c (_initialize_values): Call add_alias_cmd to abbreviate 'show convenience' to 'show conv'. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9f2ed17a34f..757e64ad4ed 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,12 @@ +2012-11-28 Yao Qi + + * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to + abbreviate 'delete tracepoints' to 'delete tr'. + * corefile.c (_initialize_core): Call add_alias_cmd to + abbreviate 'set gnutarget' to 'set g'. + * value.c (_initialize_values): Call add_alias_cmd to abbreviate + 'show convenience' to 'show conv'. + 2012-11-27 Joel Brobecker * sparc-sol2-nat.c (supply_gregset): Fix first parameter in diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 5749fa70ad0..57d443439ca 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -16339,6 +16339,7 @@ Delete specified tracepoints.\n\ Arguments are tracepoint numbers, separated by spaces.\n\ No argument means delete all tracepoints."), &deletelist); + add_alias_cmd ("tr", "tracepoints", class_trace, 1, &deletelist); c = add_cmd ("tracepoints", class_trace, disable_trace_command, _("\ Disable specified tracepoints.\n\ diff --git a/gdb/corefile.c b/gdb/corefile.c index 78dbbc2b86d..eab715d807f 100644 --- a/gdb/corefile.c +++ b/gdb/corefile.c @@ -456,6 +456,7 @@ Use `set gnutarget auto' to specify automatic detection."), set_gnutarget_command, show_gnutarget_string, &setlist, &showlist); + add_alias_cmd ("g", "gnutarget", class_files, 1, &setlist); if (getenv ("GNUTARGET")) set_gnutarget (getenv ("GNUTARGET")); diff --git a/gdb/value.c b/gdb/value.c index 2a1e1f262d8..07130ed4606 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -3384,6 +3384,7 @@ A few convenience variables are given values automatically:\n\ Convenience functions are defined via the Python API." #endif ), &showlist); + add_alias_cmd ("conv", "convenience", no_class, 1, &showlist); add_cmd ("values", no_set_class, show_values, _("\ Elements of value history around item number IDX (or last ten)."),