From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32191 invoked by alias); 29 Mar 2005 17:18:04 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 32166 invoked from network); 29 Mar 2005 17:17:58 -0000 Received: from unknown (HELO heavymobile.ringle.org) (12.153.69.6) by sourceware.org with SMTP; 29 Mar 2005 17:17:58 -0000 Received: by heavymobile.ringle.org (Postfix, from userid 503) id 5282A6FCE6; Tue, 29 Mar 2005 12:17:48 -0500 (EST) From: Jon Ringle To: gdb@sources.redhat.com Subject: Re: arm core analysis on x86 host Date: Tue, 29 Mar 2005 17:18:00 -0000 User-Agent: KMail/1.7.1 References: <200503281829.19775.jon.ringle@comdial.com> <200503291139.15566.jon.ringle@comdial.com> <20050329165316.GA11679@nevyn.them.org> In-Reply-To: <20050329165316.GA11679@nevyn.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200503291217.47690.jon.ringle@comdial.com> X-SW-Source: 2005-03/txt/msg00283.txt.bz2 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. =A0This 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= =20 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 condition= s. 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=20 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 =3D gdbarch_dump: GDB_NM_FILE =3D gdbarch_dump: GDB_TM_FILE =3D config/arm/tm-linux.h gdbarch_dump: TARGET_ADDR_BIT # (gdbarch_addr_bit (current_gdbarch)) gdbarch_dump: addr_bit =3D 32 gdbarch_dump: ADDR_BITS_REMOVE(addr) # (gdbarch_addr_bits_remove=20 (current_gdbarch, addr)) gdbarch_dump: addr_bits_remove =3D <0x806494a> gdbarch_dump: gdbarch_address_class_name_to_type_flags_p() =3D 0 gdbarch_dump: address_class_name_to_type_flags =3D <0x0> gdbarch_dump: ADDRESS_CLASS_TYPE_FLAGS_P() #=20 (gdbarch_address_class_type_flags_p (current_gdbarch)) gdbarch_dump: gdbarch_address_class_type_flags_p() =3D 0 gdbarch_dump: ADDRESS_CLASS_TYPE_FLAGS(byte_size, dwarf2_addr_class) #=20 (gdbarch_address_class_type_flags (current_gdbarch, byte_size,=20 dwarf2_addr_class)) gdbarch_dump: address_class_type_flags =3D <0x0> gdbarch_dump: gdbarch_address_class_type_flags_to_name_p() =3D 0 gdbarch_dump: address_class_type_flags_to_name =3D <0x0> gdbarch_dump: ADDRESS_TO_POINTER(type, buf, addr) #=20 (gdbarch_address_to_pointer (current_gdbarch, type, buf, addr)) gdbarch_dump: address_to_pointer =3D <0x80b1881> gdbarch_dump: gdbarch_adjust_breakpoint_address_p() =3D 0 gdbarch_dump: adjust_breakpoint_address =3D <0x0> gdbarch_dump: BELIEVE_PCC_PROMOTION # (gdbarch_believe_pcc_promotion=20 (current_gdbarch)) gdbarch_dump: believe_pcc_promotion =3D 0 gdbarch_dump: TARGET_ARCHITECTURE # (gdbarch_bfd_arch_info (current_gdbarch= )) gdbarch_dump: bfd_arch_info =3D arm gdbarch_dump: TARGET_BFD_VMA_BIT # (gdbarch_bfd_vma_bit (current_gdbarch)) gdbarch_dump: bfd_vma_bit =3D 32 gdbarch_dump: BREAKPOINT_FROM_PC(pcptr, lenptr) # (gdbarch_breakpoint_from_= pc=20 (current_gdbarch, pcptr, lenptr)) gdbarch_dump: breakpoint_from_pc =3D <0x8066f53> gdbarch_dump: TARGET_BYTE_ORDER # (gdbarch_byte_order (current_gdbarch)) gdbarch_dump: byte_order =3D 1 gdbarch_dump: CALL_DUMMY_LOCATION # (gdbarch_call_dummy_location=20 (current_gdbarch)) gdbarch_dump: call_dummy_location =3D 4 gdbarch_dump: CANNOT_FETCH_REGISTER(regnum) # (gdbarch_cannot_fetch_registe= r=20 (current_gdbarch, regnum)) gdbarch_dump: cannot_fetch_register =3D <0x80fde61> gdbarch_dump: CANNOT_STEP_BREAKPOINT # (gdbarch_cannot_step_breakpoint=20 (current_gdbarch)) gdbarch_dump: cannot_step_breakpoint =3D 0 gdbarch_dump: CANNOT_STORE_REGISTER(regnum) # (gdbarch_cannot_store_registe= r=20 (current_gdbarch, regnum)) gdbarch_dump: cannot_store_register =3D <0x80fde61> gdbarch_dump: TARGET_CHAR_SIGNED # (gdbarch_char_signed (current_gdbarch)) gdbarch_dump: char_signed =3D 0 gdbarch_dump: COFF_MAKE_MSYMBOL_SPECIAL(val, msym) #=20 (gdbarch_coff_make_msymbol_special (current_gdbarch, val, msym)) gdbarch_dump: coff_make_msymbol_special =3D <0x8067a6b> gdbarch_dump: construct_inferior_arguments =3D <0x80e0595> gdbarch_dump: convert_from_func_ptr_addr =3D <0x80fde47> gdbarch_dump: CONVERT_REGISTER_P(regnum, type) # (gdbarch_convert_register_= p=20 (current_gdbarch, regnum, type)) gdbarch_dump: convert_register_p =3D <0x80fe095> gdbarch_dump: DECR_PC_AFTER_BREAK # (gdbarch_decr_pc_after_break=20 (current_gdbarch)) Backtrace limit of 50 exceeded Breakpoint 1, internal_error (file=3D0x83a92a2 "../../src/gdb/gdbarch.c",=20 line=3D1858, string=3D0x83a9287 "%s: Assertion `%s' failed.")=20 at ../../src/gdb/utils.c:817 817 va_start (ap, string); (top-gdb) bt #-1 internal_error (file=3D0x83a92a2 "../../src/gdb/gdbarch.c", line=3D1858= ,=20 string=3D0x83a9287 "%s: Assertion `%s' failed.") at ../../src/gdb/utils.c:8= 17 Backtrace limit of 50 exceeded