From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5747 invoked by alias); 15 Sep 2012 06:08:48 -0000 Received: (qmail 5734 invoked by uid 22791); 15 Sep 2012 06:08:46 -0000 X-SWARE-Spam-Status: No, hits=-6.5 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS,TW_GJ X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 15 Sep 2012 06:08:29 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q8F68SCl032649 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 15 Sep 2012 02:08:28 -0400 Received: from host2.jankratochvil.net (ovpn-113-58.phx2.redhat.com [10.3.113.58]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q8F68OhM004985 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Sat, 15 Sep 2012 02:08:27 -0400 Date: Sat, 15 Sep 2012 06:08:00 -0000 From: Jan Kratochvil To: John Smith Cc: gdb@sourceware.org Subject: Re: what is the function of EXCEPTIONS_SIGLONGJMP? Message-ID: <20120915060824.GA19914@host2.jankratochvil.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2012-09/txt/msg00035.txt.bz2 On Thu, 13 Sep 2012 11:55:34 +0200, John Smith wrote: > when I debug gdb using gdb self , after I type "start" command , > the prompt is as below : > Warning: > Cannot insert breakpoint 0. > Error accessing memory address 0xdb6a5194: /. > 0xb7589571 in siglongjmp () from /lib/i686/cmov/libc.so.6 > > it seem to be some exceptions happened when dealing with break points . You are trying to step over longjmp or siglongjmp call. This is supported only with SystemTap-extended glibc, this is implemented only in recent glibc and recent GDB. Recent Fedora releases also have it working. glibc/ commit 8422c9a560e6e3c854739c8a13ecb1c6714f930f Author: Roland McGrath Date: Fri May 25 13:31:57 2012 -0700 Add systemtap static probe points in setjmp/longjmp on x86. gdb/ commit 014135139c612fe1fbe6f11d2350f72325a66f7c Author: sergiodj Date: Fri Apr 27 20:48:52 2012 +0000 2012-04-27 Sergio Durigan Junior Tom Tromey I just do not understand how that can happen during 'start' command, 'start' is just doing 'tbreak' and 'run', there is no stepping involved anywhere. Regards, Jan