Nemiver fails assertion when remote debugging AVR target



Hi,

I am trying to use Nemiver to debug an AVR program written in C and
running on an XMEGA chip, which I know is not exactly a standard
use-case, but it should still work, as it's basically just gdb as
far as the debugger cares. I compile with avr-gcc and run AVaRICE as
a gdb server. I can debug it with avr-gdb on the console, and in
DDD. However, I'd quite like to use Nemiver for this. I start
Nemiver with the following arugments:

nemiver --remote=localhost:4242 --gdb-binary=/usr/bin/avr-gdb program.elf

I get the following error pop up:

Assertion failed: addr_range.min () != 0 && addr_range.max () != 0

This assertion comes from
src/persp/dbgperspective/nmv-dbg-perspective.cc:7762

This problem occurs in Nemiver 0.93 and a fresh git build.

The behaviour of avr-gdb and DDD is to break at "0x00000000 in
__vectors ()" on startup. This zero address is presumably what
triggers the assert failure here. Commenting the assertion out (c.f.
patch) allows Nemiver to start normally. I'm not sure what you could
use to say if a zero address is a sign of a problem or is normal
behaviour like here?

Thanks,

Inductiveload

=== PATCH AGAINST FRESH GIT ===

diff --git a/src/persp/dbgperspective/nmv-dbg-perspective.cc
b/src/persp/dbgperspective/nmv-dbg-perspective.cc
index 22b82c1..764df55 100644
--- a/src/persp/dbgperspective/nmv-dbg-perspective.cc
+++ b/src/persp/dbgperspective/nmv-dbg-perspective.cc
@@ -7758,8 +7758,8 @@ DBGPerspective::disassemble_around_address_and_do
         return;

     Range addr_range (a_address, a_address);
-    THROW_IF_FAIL (addr_range.min () != 0
-                   && addr_range.max () != 0);
+    //THROW_IF_FAIL (addr_range.min () != 0
+    //               && addr_range.max () != 0);
     // Increase the address range of instruction to disassemble by a
     // number N that is equal to m_priv->num_instr_to_disassemble.
     // 17 is the max size (in bytes) of an instruction on intel


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