This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


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

Debug information issues of Cross-Compiler for MIPS



Dear all,
    I have a critical problem about the debug information which
generates by Cross-GCC.
    I built a cross compiler from GCC source packages. The configuration
parameters are " --target=mips-elf --with-gnu-as --with-gnu-ld
--with-newlib --with-stabs". The cross-GCC is built correctly and I use
the compiler to compile a soure file, and generate a "ELF" file
"loader-gnu.elf". I try to use some commercial source level debuggers to
debug this file, but these debuggers always displays " no debug
infromation" and connot to do source level debug.
    I use another compony's GCC compiler (SDE-4.0
http://www.algor.co.uk/sde.html) to compiler the source code, it will
generate correct debugger information "loader-sed.elf".
    Dose anyone can tell me hoe to configure the GCC to generate the
correctly debug information?
									kenny
	

1. The loader-gnu.elf has only labels.
symbol______________|type________________|address_______________|
_ebss                                    |            D:80301FD0
_edata                                   |            D:80301FD0
_end                                     |            D:80302FD0
_etext                                   |            D:8030057C
_fbss                                    |            D:80301FD0
_fdata                                   |            D:80301FC0
_ftext                                   |            D:80300000
_gp                                      |            D:80309FC0
_sp                                      |            D:80302FD0
DISABLE_INTS                             |            C:10000001
general_exception                        |            D:803000F0
INT_BASE                                 |            C:80000180
IO_Sys_Reg                               |  D:80301FC0--80301FC3
load_elf                                 |  P:80300284--80300553
load_sec                                 |  P:80300554--8030057B
loader                                   |  P:8030010C--80300283
PEND_MASK                                |            C:0000FF00
PERI_Ctrl_Reg                            |  D:80301FC4--80301FC7
peri_timing                              |  D:80301FC8--80301FCD
start                                    |            D:80300000
TIMER_COMPARE                            |            C:0000EA60



2. The loader-sde.elf was OK.
symbol______________|type________________|address_______________|
DISABLE_INTS                             |            C:10000001
_ebss                                    |            D:80301FD0
_edata                                   |            D:80301FD0
_end                                     |            D:80302FD0
_etext                                   |            D:80300560
_fbss                                    |            D:80301FD0
_fdata                                   |            D:80301FC0
_ftext                                   |            D:80300000
general_exception                        |            D:803000F0
_gp                                      |            D:80309FC0
INT_BASE                                 |            C:80000180
IO_Sys_Reg           (IO_SYS_REG *)      |  D:80301FC0--80301FC3
load_elf             (int ())            |  P:80300284--80300537
load_elf                                 |  P:80300284--80300537
load_sec             (int ())            |  P:80300538--8030055F
load_sec                                 |  P:80300538--8030055F
loader               (int ())            |  P:8030010C--80300283
loader                                   |  P:8030010C--80300283
PEND_MASK                                |            C:0000FF00
PERI_Ctrl_Reg        (PERIPHERAL *)      |  D:80301FC4--80301FC7
peri_timing          (char [6])          |  D:80301FC8--80301FCD
_sp                                      |            D:80302FD0
start                                    |            D:80300000
TIMER_COMPARE                            |            C:0000EA60


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