This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FYI: reformat parameters of gdb/psymtab.c::recursively_search_psymtabs


Hello,

(a minor style violation issue I noticed while reading the code)

This is just to make sure one of the parameters doesn't end past
the 80 characters limit. And while at it, since all parameters were
on their own line except the first two that were listed on the same
line, it felf more consistent to just split them to have each and
every parameter on their own line.

gdb/ChangeLog:

        * psymtab.c (recursively_search_psymtabs): Reformat parameters
        to avoid exceeding 80 characters per line limit.

Tested by rebuilding GDB on x86_64-linux.

Thanks,

-- 
Joel

---
 gdb/ChangeLog | 5 +++++
 gdb/psymtab.c | 4 +++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 34cf536..d026da0 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2018-10-04  Joel Brobecker  <brobecker@adacore.com>
+
+	* psymtab.c (recursively_search_psymtabs): Reformat parameters
+	to avoid exceeding 80 characters per line limit.
+
 2018-10-04  Tom Tromey  <tom@tromey.com>
 
 	* symfile.c (syms_from_objfile_1, finish_new_objfile)
diff --git a/gdb/psymtab.c b/gdb/psymtab.c
index 274d567..915e4fb 100644
--- a/gdb/psymtab.c
+++ b/gdb/psymtab.c
@@ -1230,7 +1230,9 @@ psym_map_matching_symbols (struct objfile *objfile,
 
 static bool
 recursively_search_psymtabs
-  (struct partial_symtab *ps, struct objfile *objfile, enum search_domain domain,
+  (struct partial_symtab *ps,
+   struct objfile *objfile,
+   enum search_domain domain,
    const lookup_name_info &lookup_name,
    gdb::function_view<expand_symtabs_symbol_matcher_ftype> sym_matcher)
 {
-- 
2.1.4


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]