From: logitech <supriya.rao17@gmail.com>
To: gdb@sourceware.org
Subject: Re: Sending signal to inferior program.
Date: Mon, 06 Jun 2011 20:25:00 -0000 [thread overview]
Message-ID: <31786813.post@talk.nabble.com> (raw)
In-Reply-To: <20110606181746.GA32266@host1.jankratochvil.net>
Thanks for the reply, but i'm still a little confused. Isn't what you said
the same thing as forking a thread from gdb which sends the signal. Instead
of CTRL-C, I want the signal to be sent from gdb to the prog. I want to
actually break the execution of the program at a specific time, so to send
the signal to the program at say 100ms.
Thanks again
Jan Kratochvil-3 wrote:
>
> On Mon, 06 Jun 2011 19:32:13 +0200, logitech wrote:
>> I wish to send a signal to the inferior program at a specific time.
>
> I do not know how is GDB related to it. Cannot you just write an
> independent
> C program which will wait till that time and call kill (thatPID, SIGsome)?
>
> From GDB when you stop the inferior first (CTRL-C) you can send a signal:
> (gdb) help signal
> Continue program giving it signal specified by the argument.
> An argument of "0" means continue program without giving it a signal.
>
>
>
> Regards,
> Jan
>
>
--
View this message in context: http://old.nabble.com/Sending-signal-to-inferior-program.-tp31785488p31786813.html
Sent from the Sourceware - gdb list mailing list archive at Nabble.com.
next prev parent reply other threads:[~2011-06-06 20:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-06 17:32 logitech
2011-06-06 18:18 ` Jan Kratochvil
2011-06-06 20:25 ` logitech [this message]
2011-06-06 21:03 ` Jan Kratochvil
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=31786813.post@talk.nabble.com \
--to=supriya.rao17@gmail.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