* Ctrl-C does not work
@ 2001-10-11 23:24 Marko Mlinar
2001-10-12 9:15 ` Andrew Cagney
2001-10-22 14:10 ` Fernando Nasser
0 siblings, 2 replies; 3+ messages in thread
From: Marko Mlinar @ 2001-10-11 23:24 UTC (permalink / raw)
To: gdb
Hello !
I am just finishing gdb port for or1k cpu. I've noticed that ctrl-c during
program execution does not
interrupt the target (I suppose this should occur during execution of
or1k_target_wait() function).
How can I turn this on?
thanks,
Marko
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Ctrl-C does not work
2001-10-11 23:24 Ctrl-C does not work Marko Mlinar
@ 2001-10-12 9:15 ` Andrew Cagney
2001-10-22 14:10 ` Fernando Nasser
1 sibling, 0 replies; 3+ messages in thread
From: Andrew Cagney @ 2001-10-12 9:15 UTC (permalink / raw)
To: Marko Mlinar; +Cc: gdb
> Hello !
>
> I am just finishing gdb port for or1k cpu. I've noticed that ctrl-c during
> program execution does not
> interrupt the target (I suppose this should occur during execution of
> or1k_target_wait() function).
> How can I turn this on?
A little bit more information is probably needed. How exactly is GDB
connected to the target?
Andrew
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Ctrl-C does not work
2001-10-11 23:24 Ctrl-C does not work Marko Mlinar
2001-10-12 9:15 ` Andrew Cagney
@ 2001-10-22 14:10 ` Fernando Nasser
1 sibling, 0 replies; 3+ messages in thread
From: Fernando Nasser @ 2001-10-22 14:10 UTC (permalink / raw)
To: Marko Mlinar; +Cc: gdb
Marko Mlinar wrote:
>
> Hello !
>
> I am just finishing gdb port for or1k cpu. I've noticed that ctrl-c during
> program execution does not
> interrupt the target (I suppose this should occur during execution of
> or1k_target_wait() function).
> How can I turn this on?
>
More or less guessing what you are doing, I believe you forgot to
set the signal handles for SIGINT to some function of yours that
calls your or1k_target_stop(). Assuming that you have a
or1k_target_stop() and that it works (and your target can be stopped).
Don't forget to save the old handler and restore it. You may want
to have a second handler for the case the target does not stop and
you want to close (abandon) the connection. Look at remote.c for
some inspiration.
--
Fernando Nasser
Red Hat - Toronto E-Mail: fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-10-22 14:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-11 23:24 Ctrl-C does not work Marko Mlinar
2001-10-12 9:15 ` Andrew Cagney
2001-10-22 14:10 ` Fernando Nasser
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox