Fix formatting in solib-svr4.c

Fix some formatting issues which I have missed during review.

gdb/ChangeLog:

	* solib-svr4.c (svr4_exec_displacement): Fix formatting.
This commit is contained in:
Simon Marchi
2018-08-19 22:03:58 -04:00
parent 865dcc8a4d
commit c44deb735e
2 changed files with 8 additions and 4 deletions

View 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> 2018-08-19 Michael Spang <spang@google.com>
PR gdb/11786 PR gdb/11786

View File

@ -2711,8 +2711,8 @@ svr4_exec_displacement (CORE_ADDR *displacementp)
CentOS-5 has problems with filesz, memsz as well. CentOS-5 has problems with filesz, memsz as well.
Strip also modifies memsz of PT_TLS. Strip also modifies memsz of PT_TLS.
See PR 11786. */ See PR 11786. */
if (phdr2[i].p_type == PT_GNU_RELRO || if (phdr2[i].p_type == PT_GNU_RELRO
phdr2[i].p_type == PT_TLS) || phdr2[i].p_type == PT_TLS)
{ {
Elf32_External_Phdr tmp_phdr = *phdrp; Elf32_External_Phdr tmp_phdr = *phdrp;
Elf32_External_Phdr tmp_phdr2 = *phdr2p; 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. CentOS-5 has problems with filesz, memsz as well.
Strip also modifies memsz of PT_TLS. Strip also modifies memsz of PT_TLS.
See PR 11786. */ See PR 11786. */
if (phdr2[i].p_type == PT_GNU_RELRO || if (phdr2[i].p_type == PT_GNU_RELRO
phdr2[i].p_type == PT_TLS) || phdr2[i].p_type == PT_TLS)
{ {
Elf64_External_Phdr tmp_phdr = *phdrp; Elf64_External_Phdr tmp_phdr = *phdrp;
Elf64_External_Phdr tmp_phdr2 = *phdr2p; Elf64_External_Phdr tmp_phdr2 = *phdr2p;