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

  • Home
  • SEARCH
  • 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 8072829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T14:09:11+00:00 2026-06-05T14:09:11+00:00

I attached to my multithread application with gdb and after that type cont to

  • 0

I attached to my multithread application with gdb and after that type cont to continue execution.

  • Is there any way to stop execution at any time on cont gdb state and check what every thread do?
  • How to check state of every thread and get execution line number of each? (commands)
  • 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-06-05T14:09:13+00:00Added an answer on June 5, 2026 at 2:09 pm

    Here’s what I do, (taken from here )

    Create a little gdb script stackdumper.gdb that dumps the stack trace of all threads:

    thread apply all backtrace
    

    Then repeatedly attach gdb and run the dumper:

    for i in $(seq 1 10) ; do
      gdb -batch -x stackdumper.gdb ./a.out 123456 > stack.$i
      sleep 10
    done
    

    where ./a.out is the binary you are interested and 123456 is the PID.

    Adjust the sleep to match your sampling needs.

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

Sidebar

Related Questions

I have a taxonomy attached with my content type. While creating node of that
I've attached a 'click' event to a 'button' element (type=submit) so that clicking on
(see attached jsfiddle, screenshots; running browsers on Ubuntu 11.10) There seems to be some
Say I have attached gdb to a process and within the its memory layout
Attached is a quick program written under interview conditions that is designed to flatten
I attached to a program with gdb in OSX and I want to use
When a process is attached by gdb, the stat of the process is T,
In the attached screen shot you can she that to rename a selected tab
I use an attached behavior that allows a DoubleClick event to be wired to
I've workflow attached to an entity which has expiration date and time, so what

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.