summaryrefslogtreecommitdiffstats
path: root/backends/linux-core-note.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2007-10-23 13:07:39 +0000
committerRoland McGrath <roland@redhat.com>2007-10-23 13:07:39 +0000
commite4c22ea004c02a58f5db5eb53794275344c17958 (patch)
treeec3713d305f8e9f05b15d29240accc71e98998c5 /backends/linux-core-note.c
parent98c5ead4ad9fbf96ad3b54d8ca26e354ddc3398d (diff)
downloadandroid_external_elfutils-e4c22ea004c02a58f5db5eb53794275344c17958.tar.gz
android_external_elfutils-e4c22ea004c02a58f5db5eb53794275344c17958.tar.bz2
android_external_elfutils-e4c22ea004c02a58f5db5eb53794275344c17958.zip
2007-10-23 Roland McGrath <roland@redhat.com>
* linux-kernel-modules.c (report_kernel_archive): Reorder the kernel module to appear first.
Diffstat (limited to 'backends/linux-core-note.c')
-rw-r--r--backends/linux-core-note.c33
1 files changed, 14 insertions, 19 deletions
diff --git a/backends/linux-core-note.c b/backends/linux-core-note.c
index c4a90b70..3dc41373 100644
--- a/backends/linux-core-note.c
+++ b/backends/linux-core-note.c
@@ -198,28 +198,23 @@ EBLHOOK(core_note) (n_type, descsz,
*items = prpsinfo_items;
return 1;
-#ifdef FPREGSET_SIZE
- case NT_FPREGSET:
- if (descsz != FPREGSET_SIZE)
- return 0;
- *regs_offset = 0;
- *nregloc = sizeof fpregset_regs / sizeof fpregset_regs[0];
- *reglocs = fpregset_regs;
- *nitems = 0;
- *items = NULL;
+#define EXTRA_REGSET(type, size, table) \
+ case type: \
+ if (descsz != size) \
+ return 0; \
+ *regs_offset = 0; \
+ *nregloc = sizeof table / sizeof table[0]; \
+ *reglocs = table; \
+ *nitems = 0; \
+ *items = NULL; \
return 1;
+
+#ifdef FPREGSET_SIZE
+ EXTRA_REGSET (NT_FPREGSET, FPREGSET_SIZE, fpregset_regs)
#endif
-#ifdef PRXFPREG_SIZE
- case NT_PRXFPREG:
- if (descsz != PRXFPREG_SIZE)
- return 0;
- *regs_offset = 0;
- *nregloc = sizeof prxfpreg_regs / sizeof prxfpreg_regs[0];
- *reglocs = prxfpreg_regs;
- *nitems = 0;
- *items = NULL;
- return 1;
+#ifdef EXTRA_NOTES
+ EXTRA_NOTES
#endif
}