[binutils-gdb] [gdb/python] Fix typos
Tom de Vries
vries@sourceware.org
Thu Mar 6 22:22:03 GMT 2025
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=586ccf782280eb8494dddd137c969291e4e958e1
commit 586ccf782280eb8494dddd137c969291e4e958e1
Author: Tom de Vries <tdevries@suse.de>
Date: Thu Mar 6 23:21:54 2025 +0100
[gdb/python] Fix typos
Fix typos:
...
gdb/python/py-framefilter.c:749: indention ==> indentation
gdb/python/py-framefilter.c:837: indention ==> indentation
gdb/python/py-lazy-string.c:35: sting ==> string
gdb/python/py-progspace.c:119: Retun ==> Return
gdb/python/py-progspace.c:139: Retun ==> Return
...
Diff:
---
gdb/python/py-framefilter.c | 4 ++--
gdb/python/py-lazy-string.c | 2 +-
gdb/python/py-progspace.c | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/gdb/python/py-framefilter.c b/gdb/python/py-framefilter.c
index 24e1c9173b6..88252b06144 100644
--- a/gdb/python/py-framefilter.c
+++ b/gdb/python/py-framefilter.c
@@ -746,7 +746,7 @@ using levels_printed_hash = gdb::unordered_set<frame_info *>;
OUT is the output stream to print to.
- INDENT is the level of indention for this frame (in the case of elided
+ INDENT is the level of indentation for this frame (in the case of elided
frames).
LEVELS_PRINTED is a hash-table containing all the frames for which the
@@ -834,7 +834,7 @@ py_print_frame (PyObject *filter, frame_filter_flags flags,
if (print_frame_info)
{
/* Elided frames are also printed with this function (recursively)
- and are printed with indention. */
+ and are printed with indentation. */
if (indent > 0)
out->spaces (indent * 4);
diff --git a/gdb/python/py-lazy-string.c b/gdb/python/py-lazy-string.c
index 1226c280174..d75f861705e 100644
--- a/gdb/python/py-lazy-string.c
+++ b/gdb/python/py-lazy-string.c
@@ -32,7 +32,7 @@ struct lazy_string_object {
/* Holds the encoding that will be applied to the string
when the string is printed by GDB. If the encoding is set
to None then GDB will select the most appropriate
- encoding when the sting is printed. */
+ encoding when the string is printed. */
char *encoding;
/* If TYPE is an array: If the length is known, then this value is the
diff --git a/gdb/python/py-progspace.c b/gdb/python/py-progspace.c
index bb44aa42567..4dbe18ef506 100644
--- a/gdb/python/py-progspace.c
+++ b/gdb/python/py-progspace.c
@@ -116,7 +116,7 @@ pspy_get_filename (PyObject *self, void *closure)
Py_RETURN_NONE;
}
-/* Implement the gdb.Progspace.symbol_file attribute. Retun the
+/* Implement the gdb.Progspace.symbol_file attribute. Return the
gdb.Objfile corresponding to the currently loaded symbol-file, or None
if no symbol-file is loaded. If the Progspace is invalid then raise an
exception. */
@@ -136,7 +136,7 @@ pspy_get_symbol_file (PyObject *self, void *closure)
Py_RETURN_NONE;
}
-/* Implement the gdb.Progspace.executable_filename attribute. Retun a
+/* Implement the gdb.Progspace.executable_filename attribute. Return a
string containing the name of the current executable, or None if no
executable is currently set. If the Progspace is invalid then raise an
exception. */
More information about the Gdb-cvs
mailing list