From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20928 invoked by alias); 30 Jun 2014 11:54:09 -0000 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 Received: (qmail 20899 invoked by uid 89); 30 Jun 2014 11:54:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx2.suse.de Received: from cantor2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Mon, 30 Jun 2014 11:54:05 +0000 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 094AAACC1; Mon, 30 Jun 2014 11:54:02 +0000 (UTC) From: Andreas Schwab To: Aleksey Midenkov Cc: gdb@sourceware.org Subject: Re: Break on library load before main References: X-Yow: Leona, I want to CONFESS things to you.. I want to WRAP you in a SCARLET ROBE trimmed with POLYVINYL CHLORIDE.. I want to EMPTY your ASHTRAYS... Date: Mon, 30 Jun 2014 11:54:00 -0000 In-Reply-To: (Aleksey Midenkov's message of "Mon, 30 Jun 2014 15:16:57 +0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2014-06/txt/msg00101.txt.bz2 Aleksey Midenkov writes: > I tried to stop execution before main() with following methods: > > 1. break dlopen > 2. catch load > 3. catch syscall uselib > > Nothing works! When I issue 'start', all libraries get loaded without > stop before main(). I should mention, that 'catch load' somehow works. > It stops somewhere, but very late (see attachment for output log). Try set stop-on-solib-events 1. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."