avr-chat
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-chat] debugging gdb/ddd: wrong assembler output withoffset 0x80


From: Joerg Wunsch
Subject: Re: [avr-chat] debugging gdb/ddd: wrong assembler output withoffset 0x800000
Date: Mon, 19 Dec 2011 14:46:53 +0100
User-agent: Mutt/1.5.20 (2009-06-14)

As Joerg Wunsch wrote:

> As Klaus Rudolph wrote:
> I didn't find the actual point where this happens, but I though it's
> important enough to file it as a bug:
> 
> http://sourceware.org/bugzilla/show_bug.cgi?id=13519

I added some more analysis there.  Yet, I don't know how/where to
fix it.

As a (temporary) hack, you might apply the following patch to your
AVR(!)-GDB source tree before compiling:

--- gdb/cli/cli-cmds.c~ 2010-07-27 22:14:24.000000000 +0200
+++ gdb/cli/cli-cmds.c  2011-12-19 14:42:14.000000000 +0100
@@ -1195,6 +1195,10 @@
        high += low;
     }
 
+// XXX hack to work around bug # 13519
+// http://sourceware.org/bugzilla/show_bug.cgi?id=13519
+  low &= 0x800000 - 1;
+  high &= 0x800000 - 1;
   print_disassembly (gdbarch, name, low, high, flags);
 }
 

-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]