]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Fix a mismerge
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 14 Nov 2011 13:27:52 +0000 (14:27 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 14 Nov 2011 13:27:52 +0000 (14:27 +0100)
grub-core/Makefile.core.def
grub-core/lib/i386/backtrace.c

index 003041ff649060034627a5da40e123822fea5e76..cc1d4702d4f2122ae007fe32ecc0f50e9a238a7b 100644 (file)
@@ -1711,8 +1711,9 @@ module = {
 
 module = {
   name = backtrace;
-  common = lib/i386/backtrace.c lib/i386/backtrace_int.S;
-  enable = i386;
+  common = lib/i386/backtrace.c;
+  common = lib/i386/backtrace_int.S;
+  enable = x86;
 };
 
 module = {
index 144b1da9712d5544382f078849192bd062d96989..42b9f9e4c68b6a4d0e4fffdbdcdefe22d0374b95 100644 (file)
@@ -26,6 +26,8 @@
 
 #define MAX_STACK_FRAME 102400
 
+GRUB_MOD_LICENSE ("GPLv3+");
+
 struct idt_descriptor
 {
   grub_uint16_t limit;
@@ -51,31 +53,22 @@ void grub_interrupt_handler_real (void *ret, void *ebp);
 static void
 print_address (void *addr)
 {
-  const char *name;
-  int section;
-  grub_off_t off;
-  auto int hook (grub_dl_t mod);
-  int hook (grub_dl_t mod)
+  grub_dl_t mod;
+
+  FOR_DL_MODULES (mod)
   {
     grub_dl_segment_t segment;
     for (segment = mod->segment; segment; segment = segment->next)
       if (segment->addr <= addr && (grub_uint8_t *) segment->addr
          + segment->size > (grub_uint8_t *) addr)
        {
-         name = mod->name;
-         section = segment->section;
-         off = (grub_uint8_t *) addr - (grub_uint8_t *) segment->addr;
-         return 1;
+         grub_printf ("%s.%x+%" PRIxGRUB_SIZE, mod->name, segment->section,
+                      (grub_uint8_t *) addr - (grub_uint8_t *) segment->addr);
+         return;
        }
-    return 0;
   }
 
-  name = NULL;
-  grub_dl_iterate (hook);
-  if (name)
-    grub_printf ("%s.%x+%lx", name, section, (unsigned long) off);
-  else
-    grub_printf ("%p", addr);
+  grub_printf ("%p", addr);
 }
 
 void