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]

Re: arm core analysis on x86 host


On Tuesday 29 March 2005 11:53, Daniel Jacobowitz wrote:
> Trace through the gdbarch initialization to see what's going on, then.
> The core file may not be recognized as a Linux object. ?This has
> happened on other platforms; I don't know what was done about it, but
> maybe Mark remembers.

I set #define GDBARCH_DEBUG 1 at the top of gdbarch.c, now I am getting an 
internal error...

$ gdb ./gdb
GNU gdb 6.2-2mdk (Mandrakelinux)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i586-mandrake-linux-gnu"...Using host libthread_db 
library "/lib/tls/libthread_db.so.1".

Setting up the environment for debugging gdb.
Breakpoint 1 at 0x805cc73: file ../../src/gdb/utils.c, line 817.
Breakpoint 2 at 0x8086a35: file ../../src/gdb/cli/cli-cmds.c, line 193.
(top-gdb) run -n
Starting program: /home/ringlej/gdb-cvs/arm/gdb/gdb -n
Backtrace limit of 50 exceeded
register_gdbarch_init (arm, 0x08067c66)
find_arch_by_info: info.bfd_arch_info arm
find_arch_by_info: info.byte_order 1 (little)
find_arch_by_info: info.osabi 5 (GNU/Linux)
find_arch_by_info: info.abfd 0x0
find_arch_by_info: info.tdep_info 0x0
find_arch_by_info: New architecture 0x0848d2e0 (arm) selected
gdbarch_dump: GDB_XM_FILE = <not-defined>
gdbarch_dump: GDB_NM_FILE = <not-defined>
gdbarch_dump: GDB_TM_FILE = config/arm/tm-linux.h
gdbarch_dump: TARGET_ADDR_BIT # (gdbarch_addr_bit (current_gdbarch))
gdbarch_dump: addr_bit = 32
gdbarch_dump: ADDR_BITS_REMOVE(addr) # (gdbarch_addr_bits_remove 
(current_gdbarch, addr))
gdbarch_dump: addr_bits_remove = <0x806494a>
gdbarch_dump: gdbarch_address_class_name_to_type_flags_p() = 0
gdbarch_dump: address_class_name_to_type_flags = <0x0>
gdbarch_dump: ADDRESS_CLASS_TYPE_FLAGS_P() # 
(gdbarch_address_class_type_flags_p (current_gdbarch))
gdbarch_dump: gdbarch_address_class_type_flags_p() = 0
gdbarch_dump: ADDRESS_CLASS_TYPE_FLAGS(byte_size, dwarf2_addr_class) # 
(gdbarch_address_class_type_flags (current_gdbarch, byte_size, 
dwarf2_addr_class))
gdbarch_dump: address_class_type_flags = <0x0>
gdbarch_dump: gdbarch_address_class_type_flags_to_name_p() = 0
gdbarch_dump: address_class_type_flags_to_name = <0x0>
gdbarch_dump: ADDRESS_TO_POINTER(type, buf, addr) # 
(gdbarch_address_to_pointer (current_gdbarch, type, buf, addr))
gdbarch_dump: address_to_pointer = <0x80b1881>
gdbarch_dump: gdbarch_adjust_breakpoint_address_p() = 0
gdbarch_dump: adjust_breakpoint_address = <0x0>
gdbarch_dump: BELIEVE_PCC_PROMOTION # (gdbarch_believe_pcc_promotion 
(current_gdbarch))
gdbarch_dump: believe_pcc_promotion = 0
gdbarch_dump: TARGET_ARCHITECTURE # (gdbarch_bfd_arch_info (current_gdbarch))
gdbarch_dump: bfd_arch_info = arm
gdbarch_dump: TARGET_BFD_VMA_BIT # (gdbarch_bfd_vma_bit (current_gdbarch))
gdbarch_dump: bfd_vma_bit = 32
gdbarch_dump: BREAKPOINT_FROM_PC(pcptr, lenptr) # (gdbarch_breakpoint_from_pc 
(current_gdbarch, pcptr, lenptr))
gdbarch_dump: breakpoint_from_pc = <0x8066f53>
gdbarch_dump: TARGET_BYTE_ORDER # (gdbarch_byte_order (current_gdbarch))
gdbarch_dump: byte_order = 1
gdbarch_dump: CALL_DUMMY_LOCATION # (gdbarch_call_dummy_location 
(current_gdbarch))
gdbarch_dump: call_dummy_location = 4
gdbarch_dump: CANNOT_FETCH_REGISTER(regnum) # (gdbarch_cannot_fetch_register 
(current_gdbarch, regnum))
gdbarch_dump: cannot_fetch_register = <0x80fde61>
gdbarch_dump: CANNOT_STEP_BREAKPOINT # (gdbarch_cannot_step_breakpoint 
(current_gdbarch))
gdbarch_dump: cannot_step_breakpoint = 0
gdbarch_dump: CANNOT_STORE_REGISTER(regnum) # (gdbarch_cannot_store_register 
(current_gdbarch, regnum))
gdbarch_dump: cannot_store_register = <0x80fde61>
gdbarch_dump: TARGET_CHAR_SIGNED # (gdbarch_char_signed (current_gdbarch))
gdbarch_dump: char_signed = 0
gdbarch_dump: COFF_MAKE_MSYMBOL_SPECIAL(val, msym) # 
(gdbarch_coff_make_msymbol_special (current_gdbarch, val, msym))
gdbarch_dump: coff_make_msymbol_special = <0x8067a6b>
gdbarch_dump: construct_inferior_arguments = <0x80e0595>
gdbarch_dump: convert_from_func_ptr_addr = <0x80fde47>
gdbarch_dump: CONVERT_REGISTER_P(regnum, type) # (gdbarch_convert_register_p 
(current_gdbarch, regnum, type))
gdbarch_dump: convert_register_p = <0x80fe095>
gdbarch_dump: DECR_PC_AFTER_BREAK # (gdbarch_decr_pc_after_break 
(current_gdbarch))
Backtrace limit of 50 exceeded

Breakpoint 1, internal_error (file=0x83a92a2 "../../src/gdb/gdbarch.c", 
line=1858, string=0x83a9287 "%s: Assertion `%s' failed.") 
at ../../src/gdb/utils.c:817
817       va_start (ap, string);
(top-gdb) bt
#-1 internal_error (file=0x83a92a2 "../../src/gdb/gdbarch.c", line=1858, 
string=0x83a9287 "%s: Assertion `%s' failed.") at ../../src/gdb/utils.c:817
Backtrace limit of 50 exceeded


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