diff options
Diffstat (limited to 'gdb/rs6000-aix-tdep.c')
-rw-r--r-- | gdb/rs6000-aix-tdep.c | 88 |
1 files changed, 44 insertions, 44 deletions
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. */ |