Fix formatting in solib-svr4.c
authorSimon Marchi <simon.marchi@polymtl.ca>
Mon, 20 Aug 2018 02:03:58 +0000 (22:03 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Mon, 20 Aug 2018 02:04:45 +0000 (22:04 -0400)
Fix some formatting issues which I have missed during review.

gdb/ChangeLog:

* solib-svr4.c (svr4_exec_displacement): Fix formatting.

gdb/ChangeLog
gdb/solib-svr4.c

index cb87cee4e72a48ff3c7ebc8d43bc144e2b523acb..ff4d1cb54834d1b148119ea2fc9e37d7339491d1 100644 (file)
@@ -1,3 +1,7 @@
+2018-08-19  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * solib-svr4.c (svr4_exec_displacement): Fix formatting.
+
 2018-08-19  Michael Spang  <spang@google.com>
 
        PR gdb/11786
index 84589509ef9f48c150efe34f650c01d1b86ce5c0..29d07312becbf7823751b9c73ee3de0a511e1215 100644 (file)
@@ -2711,8 +2711,8 @@ svr4_exec_displacement (CORE_ADDR *displacementp)
                     CentOS-5 has problems with filesz, memsz as well.
                     Strip also modifies memsz of PT_TLS.
                     See PR 11786.  */
-                 if (phdr2[i].p_type == PT_GNU_RELRO ||
-                     phdr2[i].p_type == PT_TLS)
+                 if (phdr2[i].p_type == PT_GNU_RELRO
+                     || phdr2[i].p_type == PT_TLS)
                    {
                      Elf32_External_Phdr tmp_phdr = *phdrp;
                      Elf32_External_Phdr tmp_phdr2 = *phdr2p;
@@ -2844,8 +2844,8 @@ svr4_exec_displacement (CORE_ADDR *displacementp)
                     CentOS-5 has problems with filesz, memsz as well.
                     Strip also modifies memsz of PT_TLS.
                     See PR 11786.  */
-                 if (phdr2[i].p_type == PT_GNU_RELRO ||
-                     phdr2[i].p_type == PT_TLS)
+                 if (phdr2[i].p_type == PT_GNU_RELRO
+                     || phdr2[i].p_type == PT_TLS)
                    {
                      Elf64_External_Phdr tmp_phdr = *phdrp;
                      Elf64_External_Phdr tmp_phdr2 = *phdr2p;