From: Simon Marchi <simark@simark.ca>
To: liang tang <liangtang20080522@gmail.com>, gdb@sourceware.org
Subject: Re: how set break point for cpp header file
Date: Mon, 30 Nov 2020 23:48:21 -0500 [thread overview]
Message-ID: <adf13834-badf-9978-6eef-324e9d75584c@simark.ca> (raw)
In-Reply-To: <CAOhZW=77Rszvse0ryqf3S9GHdj=mYhoJhtnWO0+XxfUB18syxQ@mail.gmail.com>
On 2020-11-30 11:28 p.m., liang tang via Gdb wrote:
> Hi,
> I want to set break point for cpp header files. But 'info sources' doesn't
> show the header file I want to debug.
> What can I do to debug the header file for CPP? and If 'info sources'
> doesn't contain the header file, What can I do to make the header file
> contained?
> Thanks. Regards
>
Set the breakpoint as usual using the "break" command, like "break
myheader.hpp:123". Or "break myfunction" works even if myfunction is
defined in a header file.
Simon
prev parent reply other threads:[~2020-12-01 4:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-01 4:28 liang tang
2020-12-01 4:48 ` Simon Marchi [this message]
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=adf13834-badf-9978-6eef-324e9d75584c@simark.ca \
--to=simark@simark.ca \
--cc=gdb@sourceware.org \
--cc=liangtang20080522@gmail.com \
/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).