Fix typos in symtab_symbol_info

Message ID 20190212234857.25186-1-tom@tromey.com
State New
Headers show
Series
  • Fix typos in symtab_symbol_info
Related show

Commit Message

Tom Tromey Feb. 12, 2019, 11:48 p.m.
symtab_symbol_info has a couple of messages that say "regulation
expression".  I think "regular expression" was meant, so this patch
changes it.

gdb/ChangeLog
2019-02-12  Tom Tromey  <tom@tromey.com>

	* symtab.c (symtab_symbol_info): Fix typos.

gdb/testsuite/ChangeLog
2019-02-12  Tom Tromey  <tom@tromey.com>

	* gdb.base/info_qt.exp: Update.
---
 gdb/ChangeLog                      | 4 ++++
 gdb/symtab.c                       | 4 ++--
 gdb/testsuite/ChangeLog            | 4 ++++
 gdb/testsuite/gdb.base/info_qt.exp | 4 ++--
 4 files changed, 12 insertions(+), 4 deletions(-)

-- 
2.17.2

Comments

Kevin Buettner Feb. 20, 2019, 4:17 p.m. | #1
On Tue, 12 Feb 2019 16:48:57 -0700
Tom Tromey <tom@tromey.com> wrote:

> symtab_symbol_info has a couple of messages that say "regulation

> expression".  I think "regular expression" was meant, so this patch

> changes it.

> 

> gdb/ChangeLog

> 2019-02-12  Tom Tromey  <tom@tromey.com>

> 

> 	* symtab.c (symtab_symbol_info): Fix typos.

> 

> gdb/testsuite/ChangeLog

> 2019-02-12  Tom Tromey  <tom@tromey.com>

> 

> 	* gdb.base/info_qt.exp: Update.


LGTM.

Patch

diff --git a/gdb/symtab.c b/gdb/symtab.c
index ad2a1599a3d..005ea23da8d 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -4722,7 +4722,7 @@  symtab_symbol_info (bool quiet,
 	  if (t_regexp != NULL)
 	    printf_filtered
 	      (_("All %ss matching regular expression \"%s\""
-		 " with type matching regulation expression \"%s\":\n"),
+		 " with type matching regular expression \"%s\":\n"),
 	       classnames[kind], regexp, t_regexp);
 	  else
 	    printf_filtered (_("All %ss matching regular expression \"%s\":\n"),
@@ -4733,7 +4733,7 @@  symtab_symbol_info (bool quiet,
 	  if (t_regexp != NULL)
 	    printf_filtered
 	      (_("All defined %ss"
-		 " with type matching regulation expression \"%s\" :\n"),
+		 " with type matching regular expression \"%s\" :\n"),
 	       classnames[kind], t_regexp);
 	  else
 	    printf_filtered (_("All defined %ss:\n"), classnames[kind]);
diff --git a/gdb/testsuite/gdb.base/info_qt.exp b/gdb/testsuite/gdb.base/info_qt.exp
index 9b9292f6c0b..f023f0b1430 100644
--- a/gdb/testsuite/gdb.base/info_qt.exp
+++ b/gdb/testsuite/gdb.base/info_qt.exp
@@ -234,10 +234,10 @@  with_test_prefix "rest of args as single regexp" {
 	"single regexp"
 
     gdb_test "info functions -t uvw abc def" \
-	"All functions matching regular expression \\\"abc def\\\" with type matching regulation expression \\\"uvw\\\":" \
+	"All functions matching regular expression \\\"abc def\\\" with type matching regular expression \\\"uvw\\\":" \
 	"-t noquote single regexp"
 
     gdb_test "info functions -t 'uvw xyz' abc def" \
-	"All functions matching regular expression \\\"abc def\\\" with type matching regulation expression \\\"uvw xyz\\\":" \
+	"All functions matching regular expression \\\"abc def\\\" with type matching regular expression \\\"uvw xyz\\\":" \
 	"-t quote single regexp"
 }