Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 768327
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T18:09:53+00:00 2026-05-14T18:09:53+00:00

How do I set up gdb on window so that it does not allow

  • 0

How do I set up gdb on window so that it does not allow a program with assertion failure to terminate? I intend to check the stack trace and variables in the program.

For example, running this test.cpp program compiled with MinGW ‘g++ -g test.cpp -o test‘ in gdb:

#include <cassert>
int main(int  argc, char ** argv) { assert(1==2); return 0; }

Gives:

$ gdb test.exe
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-mingw32"...
(gdb) r
Starting program: f:\code/test.exe
[New thread 4616.0x1200]
Error: dll starting at 0x77030000 not found.
Error: dll starting at 0x75f80000 not found.
Error: dll starting at 0x77030000 not found.
Error: dll starting at 0x76f30000 not found.
Assertion failed: 1==2, file test.cpp, line 2

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

Program exited with code 03.
(gdb)

I would like to be able to stop the program from terminating immediately, like how Visual Studio’s debugger and gdb on Linux does it. I have done a search and found some stuff on trapping signals but I can’t seem to find a good post on how to set up gdb to do this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T18:09:53+00:00Added an answer on May 14, 2026 at 6:09 pm

    Just set a breakpoint on exit:

    (gdb) b exit

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 513k
  • Answers 513k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer To properly answer your question we would probably need to… May 16, 2026 at 5:52 pm
  • Editorial Team
    Editorial Team added an answer scala> val grouped = "Thequickbrownfoxjumps".grouped(4).toList grouped: List[String] = List(Theq, uick,… May 16, 2026 at 5:52 pm
  • Editorial Team
    Editorial Team added an answer jQuery is not needed for this. Just use the Array's… May 16, 2026 at 5:52 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

Briefly: Does anyone know of a GUI for gdb that brings it on par
My setup includes: Windows Vista, Eclipse 3.5.0, and gdb, make, gcc 3.4.4, g++ 3.4.4
I'm having trouble debugging a C++ program in Eclipse (the latest RC of Helios,
I am allocating memory in a C program using malloc . It's possible for
Set objNoFormCheckXMLDOM = CreateObject(Microsoft.XMLDOM) objNoFormCheckXMLDOM.async = false objNoFormCheckXMLDOM.setProperty SelectionLanguage, XPath objNoFormCheckXMLDOM.LoadXML(strHtmlResponse) Set nlForms =
I'm having memory woes. I've got a C++ Library (Equalizer from Eyescale) and they
At my university we are currently developing a VST-Plugin on Windows using open source
Can someone provide an example were casting a pointer from one type to another
I've been a Visual C++ user for quite some time now, and in the
Firstly, I come from Windows-VisualStudio-C++ background. Now I am developing in a Ubuntu environment.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.