From: Phil Muldoon <pmuldoon@redhat.com>
To: Kevin Pouget <kevin.pouget@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: GDB Python API: stop/continue after breakpoint
Date: Mon, 21 Mar 2011 14:39:00 -0000 [thread overview]
Message-ID: <m3d3lkr119.fsf@redhat.com> (raw)
In-Reply-To: <AANLkTikU0Kj48EtJNShdF4fW_HQNMvdFWTUAvrdZGbq4@mail.gmail.com> (Kevin Pouget's message of "Mon, 21 Mar 2011 10:19:00 -0400")
Kevin Pouget <kevin.pouget@gmail.com> writes:
> cool, that's working perfectly now !
>
> just one thing:
>
>> <python breakpoint outputs>
>>
>> [Switching to Thread 0x7ffff7de1700 (LWP 2417)]
>>
>> Breakpoint -9, rdb_notify_event () at replay_db.c:11
>> 11 void rdb_notify_event() {}
>
> is there any way / woudn't it be nice to have the ability to disable
> the breakpoint hit outputs? at least for the 'internal' breakpoints,
> which shouldn't be visible to the user ?
You can set the breakpoint to silent:
(gdb) python b = gdb.Breakpoint("hello.c:5", internal=True)
(gdb) run
Breakpoint -1, main () at /home/pmuldoon/hello.c:5
5 printf("Hello world!\n");
(gdb) py b.silent = True
(gdb) run
(gdb) list
(gdb) where
#0 main () at /home/pmuldoon/hello.c:5
There might be a case for setting the breakpoint to 'silent' in the
breakpoint constructor:
python b = gdb.Breakpoint("hello.c:5", internal=True, silent=True)
or just making internal breakpoints silent by default.
I'll implement either. What do you think?
Cheers,
Phil
next prev parent reply other threads:[~2011-03-21 14:39 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-11 16:09 Kevin Pouget
2011-03-11 16:25 ` Phil Muldoon
[not found] ` <AANLkTin_a87WgchmZnzi9_XX4DXh8q-r3P7EyyDAzTA4@mail.gmail.com>
2011-03-11 17:52 ` Kevin Pouget
2011-04-20 14:59 ` Kevin Pouget
2011-04-20 15:15 ` Phil Muldoon
2011-04-20 15:39 ` Tom Tromey
2011-04-21 13:01 ` Kevin Pouget
[not found] ` <BANLkTinwMfsxA24q-5ekbapVdM_OP6rOsQ@mail.gmail.com>
2011-04-21 14:32 ` Kevin Pouget
2011-04-20 15:20 ` Tom Tromey
2011-03-21 14:20 ` Kevin Pouget
2011-03-21 14:39 ` Phil Muldoon [this message]
2011-03-21 15:11 ` Kevin Pouget
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=m3d3lkr119.fsf@redhat.com \
--to=pmuldoon@redhat.com \
--cc=gdb@sourceware.org \
--cc=kevin.pouget@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