[binutils-gdb] remote: Fix indentation in remote_new_objfile.
John Baldwin
jhb@sourceware.org
Sat Jun 12 17:48:53 GMT 2021
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d424629da8759410671d96d33a3fbd5bc38f93b2
commit d424629da8759410671d96d33a3fbd5bc38f93b2
Author: John Baldwin <jhb@FreeBSD.org>
Date: Sat Jun 12 10:43:29 2021 -0700
remote: Fix indentation in remote_new_objfile.
gdb/remote.c:14541:5: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation]
if (current_inferior ()->in_initial_library_scan)
^
gdb/remote.c:14527:3: note: previous statement is here
if (remote == nullptr)
^
gdb/ChangeLog:
* remote.c (remote_new_objfile): Fix indentation.
Diff:
---
gdb/ChangeLog | 4 ++++
gdb/remote.c | 4 ++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index e94035be14f..799d6a7670f 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2021-06-12 John Baldwin <jhb@FreeBSD.org>
+
+ * remote.c (remote_new_objfile): Fix indentation.
+
2021-06-11 Kevin Buettner <kevinb@redhat.com>
* solib.c (libpthread_name_p): Match "libc" in addition
diff --git a/gdb/remote.c b/gdb/remote.c
index 39bdd2e4ab0..22933eeaeec 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -14538,8 +14538,8 @@ remote_new_objfile (struct objfile *objfile)
So, skip these events, we'll give the remote a chance to look up symbols
once all the loaded libraries and their symbols are known to GDB. */
- if (current_inferior ()->in_initial_library_scan)
- return;
+ if (current_inferior ()->in_initial_library_scan)
+ return;
remote->remote_check_symbols ();
}
More information about the Gdb-cvs
mailing list