public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Yuri <yuri@rawbw.com>
To: gdb@sourceware.org
Subject: Is it possible to make gdb stop on actual failure, and not inside of signal or inside of assert function?
Date: Fri, 5 Nov 2021 10:21:49 -0700	[thread overview]
Message-ID: <6e2fce20-199a-c986-1128-d5e634f05ba0@rawbw.com> (raw)

I start gdb from the signal handler of the debugged process.

When SEGV happens the signal handler starts 'gdb -p $PPID' using the 
'system' function.

gdb stops inside of the signal handler, inside of the system call, in 
_wait4().

This is 7 levels below the SEGV location.


Is there a way to make gdb skip signal handler and stop at the actual 
problem location,

which is the line that caused SEGV in my case?


gdb-11.1

FreeBSD 13


Thank you,

Yuri



                 reply	other threads:[~2021-11-05 17:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6e2fce20-199a-c986-1128-d5e634f05ba0@rawbw.com \
    --to=yuri@rawbw.com \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).