aboutsummaryrefslogtreecommitdiff
path: root/bfd/ChangeLog
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2016-01-21 13:33:53 +1030
committerAlan Modra <amodra@gmail.com>2016-01-21 19:59:33 +1030
commitaeb7056972f1b383578204b9151b0ae6d8c1df81 (patch)
tree19f5bd87b724ab2b626ec0f6acd3bde22f029de7 /bfd/ChangeLog
parentde64ce13a78669f094d6909fce51d210e2f9d2c0 (diff)
downloadgdb-aeb7056972f1b383578204b9151b0ae6d8c1df81.zip
gdb-aeb7056972f1b383578204b9151b0ae6d8c1df81.tar.gz
gdb-aeb7056972f1b383578204b9151b0ae6d8c1df81.tar.bz2
Convert macros in elf-linux-core.h to inline functions
Besides changing some macros into inline functions, this removes redundant memsets and uses bfd_put_* rather than H_PUT_*. * elf-linux-core.h (swap_linux_prpsinfo32_out): New function. (swap_linux_prpsinfo64_out): New function. (LINUX_PRPSINFO32_SWAP_FIELDS): Delete. (LINUX_PRPSINFO64_SWAP_FIELDS): Delete. * elf.c (elfcore_write_linux_prpsinfo32): Adjust. Don't memset. (elfcore_write_linux_prpsinfo64): Likewise. * elf32-ppc.c (swap_ppc_linux_prpsinfo32_out): New function. (PPC_LINUX_PRPSINFO32_SWAP_FIELDS): Delete. (elfcore_write_ppc_linux_prpsinfo32): Adjust. Don't memset.
Diffstat (limited to 'bfd/ChangeLog')
-rw-r--r--bfd/ChangeLog12
1 files changed, 12 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index d06be40..dcf21ce 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,17 @@
2016-01-21 Alan Modra <amodra@gmail.com>
+ * elf-linux-core.h (swap_linux_prpsinfo32_out): New function.
+ (swap_linux_prpsinfo64_out): New function.
+ (LINUX_PRPSINFO32_SWAP_FIELDS): Delete.
+ (LINUX_PRPSINFO64_SWAP_FIELDS): Delete.
+ * elf.c (elfcore_write_linux_prpsinfo32): Adjust. Don't memset.
+ (elfcore_write_linux_prpsinfo64): Likewise.
+ * elf32-ppc.c (swap_ppc_linux_prpsinfo32_out): New function.
+ (PPC_LINUX_PRPSINFO32_SWAP_FIELDS): Delete.
+ (elfcore_write_ppc_linux_prpsinfo32): Adjust. Don't memset.
+
+2016-01-21 Alan Modra <amodra@gmail.com>
+
* elf-linux-core.h: Rename from elf-linux-psinfo.h.
* elf.c: Adjust #include.
* elf32-ppc.c: Don't #include elf-linux-psinfo.h