This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Touble with raven on MBX860 board


My ldscript_mbx860 :
SECTIONS
{
      . = 0x00000000;
      .text : { *(.text) }
      .data : { *(.data) }
      .bss : { *(.bss) }
      __bss_start = .;
/*    . += 0x100; */
      __bss_end = .;
      __sbss_start = .;
/*    . += 0x100; */
      __sbss_end = .;
      . += 0x100;
PROVIDE (__stack = .);
      _end = .;
      .debug_info     0 : { *(.debug_info) }
      .debug_abbrev   0 : { *(.debug_abbrev) }
      .debug_line     0 : { *(.debug_line) }
      .debug_frame    0 : { *(.debug_frame) }
}
END OF FILE
My gdbini_mbx860 :
echo Setting up the environment for debugging Motorola MPC823FADS board.\n

set complaints 1
set output-radix 16
set input-radix 16

dir .
set prompt (ppc-gdb)

#ocd log

# We are debugging a 860 chip.
ocd processor 5XX8XX

# We can set the BDM speed here; 1 - fastest, 8 - slowest.
ocd speed 1

# This connects to a Raven
target ocd raven 0
echo target ocd raven 0

# This connects to a Wiggler
#target ocd wiggler 0
#echo target ocd wiggler 0
# This connects to a eDemon Ethernet box by of ethernet address 123.123.123.123
#target ocd netdemon 123.123.123.123
#echo target ocd netdemon 123.123.123.123

# Reset the chip to get to a known state.
ocd reset

# This is necessary to prevent a read of the immr before
# a write of the immr.   The first operation on the immr
# causes it to become read only.
set breg $der =  0xffe7400f
set breg $immr = 0xff000000
set breg $srr0 = 0x00001001
set breg $msr  = 0xff000000

# Disable watchdog timer
#set *0xff000004 = 0xffffff88

# Clear the reset status reg
#set *0xff000288 = 0xffffffff

# Set frame pointer to zero to tell gdb not to walk the stack
set reg $fp = 0

# Download file to test debugged and it's symbols
load test
symbol-file test

# Display current program counter value (updated by load command)
info reg $pc
END OF FILE

The test program loaded is the one given by Macraigor, compiled and linked with the ldscript file ldscript_mbx860.

I launch the gdb from Macraigor web site by : powerpc-elf-gdb.exe -command=gdbinit_mbx860
In the main window i'have got this message : "Unable to Read Instructions at 0x0"

Has anyboby seen that ?
Has anybody managed to work the the raven on the mbx860 ?

Another question :
Does anybody knows if it is possible to use the gdb given by Macraigor
(compiled for elf binary files) with programs compiled in eabi ?

Thanks



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]