From 1e96de833a703034395bd7f2b3d532e344035bb8 Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Thu, 8 Nov 2012 04:05:16 +0000 Subject: [PATCH] gdb/doc: 2012-11-08 Yao Qi * gdb.texinfo (Search): Add kindex for 'fo'. gdb: 2012-11-08 Yao Qi PR gdb/14777. * source.c (_initialize_source): Call add_com_alias to abbreviate 'forward-search' as 'fo'. --- gdb/ChangeLog | 6 ++++++ gdb/doc/ChangeLog | 4 ++++ gdb/doc/gdb.texinfo | 1 + gdb/source.c | 1 + 4 files changed, 12 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b0923ffc3b3..1cb1e6a7873 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2012-11-08 Yao Qi + + PR gdb/14777. + * source.c (_initialize_source): Call add_com_alias to abbreviate + 'forward-search' as 'fo'. + 2012-11-07 Pedro Alves * arm-tdep.c: Make defs.h be the first include. diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 50e9c8c12da..fd776bf1676 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,7 @@ +2012-11-08 Yao Qi + + * gdb.texinfo (Search): Add kindex for 'fo'. + 2012-11-05 Tom Tromey PR python/14802: diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index c2c77454a1c..c7777e64554 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -6955,6 +6955,7 @@ regular expression. @table @code @kindex search @kindex forward-search +@kindex fo @r{(@code{forward-search})} @item forward-search @var{regexp} @itemx search @var{regexp} The command @samp{forward-search @var{regexp}} checks each line, diff --git a/gdb/source.c b/gdb/source.c index bd11c63192e..307fecc402a 100644 --- a/gdb/source.c +++ b/gdb/source.c @@ -1953,6 +1953,7 @@ The address is also stored as the value of \"$_\".")); Search for regular expression (see regex(3)) from last line listed.\n\ The matching line number is also stored as the value of \"$_\".")); add_com_alias ("search", "forward-search", class_files, 0); + add_com_alias ("fo", "forward-search", class_files, 1); add_com ("reverse-search", class_files, reverse_search_command, _("\ Search backward for regular expression (see regex(3)) from last line listed.\n\ -- 2.30.2