diff options
author | Joel Brobecker <brobecker@gnat.com> | 2013-05-20 09:14:24 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2013-05-20 09:14:24 +0000 |
commit | 1c432e72b06be62d56e6e70f8aeebadfa55ed0f8 (patch) | |
tree | 1b6634f600a7fd004bd0019894414cd1cb69854c | |
parent | 94b7bb3559b2693b672d87386b90b4893e81f5b7 (diff) | |
download | gdb-1c432e72b06be62d56e6e70f8aeebadfa55ed0f8.zip gdb-1c432e72b06be62d56e6e70f8aeebadfa55ed0f8.tar.gz gdb-1c432e72b06be62d56e6e70f8aeebadfa55ed0f8.tar.bz2 |
De-indent example code in rs6000-aix-tdep.c (ARI fix)
This patch de-indents the code provided as a comment explaining
how the code declaring the ld_info32_desc and ld_info64_desc globals
was generated. The intent is to avoid an ARI warning about a macro
not starting at column zero of the line.
gdb/ChangeLog:
* rs6000-aix-tdep.c: De-indent some example code provided
as a comment.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/rs6000-aix-tdep.c | 88 |
2 files changed, 49 insertions, 44 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d10eb65..e536b15 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-05-20 Joel Brobecker <brobecker@adacore.com> + + * rs6000-aix-tdep.c: De-indent some example code provided + as a comment. + 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com> * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the diff --git a/gdb/rs6000-aix-tdep.c b/gdb/rs6000-aix-tdep.c index 9956eb3..62bc6ee 100644 --- a/gdb/rs6000-aix-tdep.c +++ b/gdb/rs6000-aix-tdep.c @@ -777,50 +777,50 @@ struct ld_info_desc the following program on AIX 5.3. */ #if 0 - #include <stddef.h> - #include <stdio.h> - #define __LDINFO_PTRACE32__ - #define __LDINFO_PTRACE64__ - #include <sys/ldr.h> - - #define pinfo(type,member) \ - { \ - struct type ldi = {0}; \ - \ - printf (" {%d, %d},\t/* %s */\n", \ - offsetof (struct type, member), \ - sizeof (ldi.member), \ - #member); \ - } \ - while (0) - - int - main (void) - { - printf ("static const struct ld_info_desc ld_info32_desc =\n{\n"); - pinfo (__ld_info32, ldinfo_next); - pinfo (__ld_info32, ldinfo_fd); - pinfo (__ld_info32, ldinfo_textorg); - pinfo (__ld_info32, ldinfo_textsize); - pinfo (__ld_info32, ldinfo_dataorg); - pinfo (__ld_info32, ldinfo_datasize); - pinfo (__ld_info32, ldinfo_filename); - printf ("};\n"); - - printf ("\n"); - - printf ("static const struct ld_info_desc ld_info64_desc =\n{\n"); - pinfo (__ld_info64, ldinfo_next); - pinfo (__ld_info64, ldinfo_fd); - pinfo (__ld_info64, ldinfo_textorg); - pinfo (__ld_info64, ldinfo_textsize); - pinfo (__ld_info64, ldinfo_dataorg); - pinfo (__ld_info64, ldinfo_datasize); - pinfo (__ld_info64, ldinfo_filename); - printf ("};\n"); - - return 0; - } +#include <stddef.h> +#include <stdio.h> +#define __LDINFO_PTRACE32__ +#define __LDINFO_PTRACE64__ +#include <sys/ldr.h> + +#define pinfo(type,member) \ + { \ + struct type ldi = {0}; \ + \ + printf (" {%d, %d},\t/* %s */\n", \ + offsetof (struct type, member), \ + sizeof (ldi.member), \ + #member); \ + } \ + while (0) + +int +main (void) +{ + printf ("static const struct ld_info_desc ld_info32_desc =\n{\n"); + pinfo (__ld_info32, ldinfo_next); + pinfo (__ld_info32, ldinfo_fd); + pinfo (__ld_info32, ldinfo_textorg); + pinfo (__ld_info32, ldinfo_textsize); + pinfo (__ld_info32, ldinfo_dataorg); + pinfo (__ld_info32, ldinfo_datasize); + pinfo (__ld_info32, ldinfo_filename); + printf ("};\n"); + + printf ("\n"); + + printf ("static const struct ld_info_desc ld_info64_desc =\n{\n"); + pinfo (__ld_info64, ldinfo_next); + pinfo (__ld_info64, ldinfo_fd); + pinfo (__ld_info64, ldinfo_textorg); + pinfo (__ld_info64, ldinfo_textsize); + pinfo (__ld_info64, ldinfo_dataorg); + pinfo (__ld_info64, ldinfo_datasize); + pinfo (__ld_info64, ldinfo_filename); + printf ("};\n"); + + return 0; +} #endif /* 0 */ /* Layout of the 32bit version of struct ld_info. */ |