Nevo Hed | 7 Oct 2004 07:03
Favicon

Saving core via GDB remote

Hi,

I use GDB with remote targets.

Sometimes I wish I could actually get the local GDB process to save
a local core file for the remote target.   This way I can reboot the target
or share the core files with my peers, or if nothing else,  use the local
disk as a cache and have better user interaction (after initial dump cost).

Is there a way to do this?  Maybe with a macro?

My targets are diskless embedded systems (mips-elf, sparc-coff)  with
no control  over the gdb stub portion.

I would appreciated any hints
    Thanks
        -Nevo
ravi prasad | 8 Oct 2004 05:39
Picon
Favicon

debugging timer interrupt

hi!!,
  I am using JTAGICE from Atmel with TinyOS. It uses
GDB along with JTAG interface to do on chip debugging.
With reference to it can you please answer my
following questions. 
** Only hardware breakpoint and hardware watch point
available in my case**

** The following problems arised as I need to debug a
program with timer interrupts handled in it**


#. How does the JTAG work? Does Jtag simply makes a
snapshot of the system when required, say for example
to view the stack at a breakpoint it just snaps the
stack and displays it and the original program
execution in the system is not halted. Or the
breakpoint means the program execution is halted and
then Jtag extracts information whichever required.

#. How the interrupts are handle by the JTAG? For
examle a timer fire interrupt. If a breakpoint is
included in the program then whether at the
break point the timer also stops Or the timer counts
and fires as without break point.

#. In continuity of above question what if we click
for next instruction? Then does it means next
instruction after breakpoint.Or the instruction
executing at that instant in the system if it was not
(Continue reading)

Charles Manning | 10 Oct 2004 09:15
Picon

Re: debugging timer interrupt

The JTAG is just a communications channel to the Embedded ICE macrocell in 
the ARM CPU. The best way to find out more about how this works is to read 
the ARM7 or ARM9 specification from www.arm.com.

On Friday 08 October 2004 16:39, ravi prasad wrote:
> hi!!,
>   I am using JTAGICE from Atmel with TinyOS. It uses
> GDB along with JTAG interface to do on chip debugging.
> With reference to it can you please answer my
> following questions.
> ** Only hardware breakpoint and hardware watch point
> available in my case**
>
> ** The following problems arised as I need to debug a
> program with timer interrupts handled in it**
>
>
> #. How does the JTAG work? Does Jtag simply makes a
> snapshot of the system when required, say for example
> to view the stack at a breakpoint it just snaps the
> stack and displays it and the original program
> execution in the system is not halted. Or the
> breakpoint means the program execution is halted and
> then Jtag extracts information whichever required.

Place a breakpoint at the start of the interrupt routine.

When the CPU breaks, then the debugger reads the registers etc that it needs 
to.

(Continue reading)

Sam Steingold | 19 Oct 2004 21:22
Picon

gdbinit problems

the following:

define break_foo_bar
  break foo
  commands
    print x
  end
  break bar
  commands
    print y
  end
end

does not work because, apparently, the first "end" closes both
"commands" and "define" and there is no file loaded at this time, so I
get this error:
.gdbinit:97: Error in sourced command file:
No symbol table is loaded.  Use the "file" command.

Is there a way around this problem?

--

-- 
Sam Steingold (http://www.podval.org/~sds) running w2k
<http://www.camera.org> <http://www.iris.org.il> <http://www.memri.org/>
<http://www.mideasttruth.com/> <http://www.honestreporting.com>
will write code that writes code that writes code for food

Gmane