From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18816 invoked by alias); 21 Aug 2006 20:28:32 -0000 Received: (qmail 18675 invoked by uid 22791); 21 Aug 2006 20:28:31 -0000 X-Spam-Check-By: sourceware.org Received: from smtp.gentoo.org (HELO smtp.gentoo.org) (140.211.166.183) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 21 Aug 2006 20:28:26 +0000 Received: from home.wh0rd.org (localhost [127.0.0.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 5C0A0647BE for ; Mon, 21 Aug 2006 20:28:17 +0000 (UTC) Received: (qmail 8829 invoked from network); 21 Aug 2006 15:59:20 -0400 Received: from unknown (HELO vapier) (192.168.0.2) by 192.168.0.1 with SMTP; 21 Aug 2006 15:59:20 -0400 From: Mike Frysinger To: Mark Kettenis Subject: Re: simulator runtime sanity checks Date: Mon, 21 Aug 2006 20:28:00 -0000 User-Agent: KMail/1.9.4 Cc: gdb@sourceware.org, jzhang918@gmail.com References: <200608210411.33493.vapier@gentoo.org> <200608211816.k7LIGgJ6021973@elgar.sibelius.xs4all.nl> In-Reply-To: <200608211816.k7LIGgJ6021973@elgar.sibelius.xs4all.nl> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2024572.5uuoXfS4r4"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200608211600.36514.vapier@gentoo.org> Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-08/txt/msg00176.txt.bz2 --nextPart2024572.5uuoXfS4r4 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Content-length: 3853 On Monday 21 August 2006 14:16, Mark Kettenis wrote: > From: Mike Frysinger > > > > is this expected behavior ? or should the higher sim layers catch this= ? > > > > happens with latest cvs HEAD and arm-elf-gdb as well ... > > > > $ bfin-elf-gdb > > (gdb) target sim > > Connected to the simulator. > > (gdb) run > > Starting program: > > warning: No executable file specified. > > warning: No program loaded. > > Segmentation fault > > Is that gdb or the (nonexisting) program that crashes? gdb ... the higher sim layers call down into the lower layers to interpret= =20 code and the low layers fall apart ... bfin-elf crashes in the sim/bfin/ parts, here's the bt for arm-elf: $ gdb ./gdb Using host libthread_db library "/lib/libthread_db.so.1". (top-gdb) r Starting program: /usr/local/src/gnu/sourceware/build/gdb/gdb=20 GNU gdb 6.5.50.20060821-cvs Copyright (C) 2006 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 "--host=3Dx86_64-unknown-linux-gnu --target=3Dar= m-elf". (gdb) target sim Connected to the simulator. (gdb) r Starting program:=20=20 warning: No executable file specified. warning: No program loaded. Program received signal SIGSEGV, Segmentation fault. bfd_get_mach (abfd=3D0x0) at ../../bfd/archures.c:797 797 { (top-gdb) bt #0 bfd_get_mach (abfd=3D0x0) at ../../bfd/archures.c:797 #1 0x0000000000520879 in sim_create_inferior (sd=3D,= =20 abfd=3D0x0, argv=3D0x0, env=3D0x7fec80) at ../../../sim/arm/wrapper.c:252 #2 0x0000000000427c98 in gdbsim_create_inferior (exec_file=3D0x0,=20 args=3D0x849d10 "", env=3D0x7fec80,=20 from_tty=3D) at ../../gdb/remote-sim.c:469 #3 0x000000000047a842 in run_command_1 (args=3D0x0, from_tty=3D1,=20 tbreak_at_main=3D) at ../../gdb/infcmd.c:546 #4 0x000000000040b6ed in execute_command (p=3D0x7cd481 "", from_tty=3D1)=20 at ../../gdb/top.c:455 #5 0x000000000048a377 in command_handler (command=3D0x7cd480 "")=20 at ../../gdb/event-top.c:516 #6 0x000000000048b018 in command_line_handler (rl=3D)= =20 at ../../gdb/event-top.c:801 #7 0x000000000055502a in rl_callback_read_char ()=20 at ../../readline/callback.c:204 #8 0x000000000048a529 in rl_callback_read_char_wrapper (client_data=3D0x0)= =20 at ../../gdb/event-top.c:179 #9 0x000000000048929f in process_event () at ../../gdb/event-loop.c:343 #10 0x0000000000489a96 in gdb_do_one_event (data=3D)=20 at ../../gdb/event-loop.c:380 #11 0x0000000000486a4b in catch_errors (func=3D0x4899b0 ,= =20 func_args=3D0x0, errstring=3D0x5b7e1f "",=20 mask=3D) at ../../gdb/exceptions.c:515 #12 0x00000000004393d6 in tui_command_loop (data=3D)=20 at ../../gdb/tui/tui-interp.c:151 #13 0x0000000000405119 in captured_command_loop (data=3D0x0)=20 at ../../gdb/main.c:101 #14 0x0000000000486a4b in catch_errors (func=3D0x405110 ,=20 func_args=3D0x0, errstring=3D0x5b7e1f "",=20 mask=3D) at ../../gdb/exceptions.c:515 #15 0x0000000000405779 in captured_main (data=3D)=20 at ../../gdb/main.c:826 #16 0x0000000000486a4b in catch_errors (func=3D0x405150 ,=20 func_args=3D0x76ac0ea2f4d0, errstring=3D0x5b7e1f "",=20 mask=3D) at ../../gdb/exceptions.c:515 #17 0x0000000000405104 in gdb_main (args=3D0x0) at ../../gdb/main.c:835 #18 0x00000000004050d6 in main (argc=3D, argv=3D0x0)=20 at ../../gdb/gdb.c:35 (top-gdb) -mike -mike --nextPart2024572.5uuoXfS4r4 Content-Type: application/pgp-signature Content-length: 827 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iQIVAwUAROoQ5EFjO5/oN/WBAQJBdw//b/nYta4TFI9yZyg1mznIh8lYJaKOEJha 6F21BsSocnAfXBkqOO97GYmpLmcDS6YXLyaTxsclR7JuvfbecvKcw7yElA4qXpHx 0SnpZpzBdL1fdKFnTbczo7D7GsSGyF4OoraCxi/l3dNFwmCnaUkDveqkGskDoUXS +8Vl8P0Qubokox6AVQtiXZjABfsMTWRy7O/NkYr595pEEu5lqe6x7U0Lvl+lBeUk 7kE0fcno4DTaZFWppw8TeejU435Q1fHl7puZlDDchnOTjRdG6l94YD3Q4271j5VQ 6BwTbRK3ng9gVZwMR06IskgOMYf9Rqs/z+dQHSUIwMFfkH0UHKMOCqD3lHDMyHq+ ddJVveo1SX7YIqXwKUIWmYL24JmNsg2p2wRPfBZPakdTJXbj28bUGPPxAtoTgt2B Noj9Z+qwkmt7S+HFlylsTd3CpEcZPxYy26RXdCm3UcXmWmRy/TW/K3beGxf5GSqZ Sy2Mw5YgaFMz7/LxIrLPfqaUXr4Z83TsKcFajuJ2ncWsTsPRILGuvUvrFvc/KZ4I g52s1gK9DRxU+lAaJNGYLPDfKshyAuklQe2vJU2fUGGRwiFdj8NADBVaFDqtYO/M 3cCBUsfnGWoLgAK7qiXiIZuu20V6gS5Wqiu1Qu8dqfOzcS87FnwT57Lh6fbHJ/+Z Ojxmt3F433U= =Rsij -----END PGP SIGNATURE----- --nextPart2024572.5uuoXfS4r4--