Re: GDB is preventing my catch blocks in my C++ program

Simon Marchi via Gdb <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.