remote: Fix indentation in remote_new_objfile.
authorJohn Baldwin <jhb@FreeBSD.org>
Sat, 12 Jun 2021 17:43:29 +0000 (10:43 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Sat, 12 Jun 2021 17:43:29 +0000 (10:43 -0700)
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.

gdb/ChangeLog
gdb/remote.c

index e94035be14f014044ce809ff49bc8e9e4a34d9fe..799d6a7670f5b268f4452a3f55e7102a54bd201f 100644 (file)
@@ -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
index 39bdd2e4ab08246b9c8fde9198f4c87ebb27c0a0..22933eeaeec616291112da84b3425eb48e872574 100644 (file)
@@ -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 ();
 }