From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id DqSTCpYoVmLBcgAAWB0awg (envelope-from ) for ; Tue, 12 Apr 2022 21:34:14 -0400 Received: by simark.ca (Postfix, from userid 112) id 1B2471F327; Tue, 12 Apr 2022 21:34:14 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_DYNAMIC, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 7355B1E787 for ; Tue, 12 Apr 2022 21:34:13 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id CDB723857418 for ; Wed, 13 Apr 2022 01:34:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CDB723857418 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1649813652; bh=FgHZ61GvBNo5uSDgNDdnYRrkvZe7a4fWalyULAAiFWs=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=xn9H8vX/j4JYSYnhZmLwQYD2M3LjNrCdTnZsY3owYoKTXIiOwwsOJsPaGYEIPozVR pXBrvHaAC4pjwNXAruZ6iGaPlu+SHSP465Ei+MWr8CLKRxqY05iV00Q1SAzsLPVe9c y12Z7gg7/b9CllmUdlLfTdmt1LtDoxFnEqrR0u08= Received: from smtp.polymtl.ca (smtp.polymtl.ca [132.207.4.11]) by sourceware.org (Postfix) with ESMTPS id 06AA63858D28 for ; Wed, 13 Apr 2022 01:33:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 06AA63858D28 Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 23D1Xceo017179 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 12 Apr 2022 21:33:43 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 23D1Xceo017179 Received: from [10.0.0.11] (192-222-157-6.qc.cable.ebox.net [192.222.157.6]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id C7D8B1E787; Tue, 12 Apr 2022 21:33:38 -0400 (EDT) Message-ID: <83ce3c23-1b64-a371-db02-c614c9ec385a@polymtl.ca> Date: Tue, 12 Apr 2022 21:33:38 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: GDB is preventing my catch blocks in my C++ program To: Claude Robitaille , "gdb@sourceware.org" References: <7775f85e-e0f5-2942-bde9-cb3c2effee90@polymtl.ca> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Poly-FromMTA: (simark.ca [158.69.221.121]) at Wed, 13 Apr 2022 01:33:38 +0000 X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Simon Marchi via Gdb Reply-To: Simon Marchi Errors-To: gdb-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb" Hi Claude, Please make sure to do a reply all so everyone on the list can see your reply and contribute. On 2022-04-12 21:28, Claude Robitaille wrote: > Thanks Simon for the quick reply. > > I can single step the program up to the point where an exception is thrown. And I did set a breakpoint inside the catch statement but no success (earlier breakpoint in the code are working as expected). > > Here is what appears on the console (yes, it is Windows) > > Listening on port 2345 > Remote debugging from host 192.168.70.8, port 34542 > Error while doing a GetTokenInformation - Unknown errorLOGGER NOT INITIALIZED: > ********************************************************************************************* > terminate called after throwing an instance of 'sf::context::tGlobal::envVariableMissing' > > Child exited with status 3 > > > The string that starts with Error blah blah is my own std::cout earlier in the program. Same with the line with the ****** > and the LOGGER xxxx is from the g3log library in my program. > > The exception instance is definitely what my program is throwing. Indeed, that makes it clear it's not gdbserver crashing. I don't have any idea at the moment about how gdb/gdbserver could affect the execution of your program in this way. > I guess Child exited is from gdb. Yes. Simon