Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* gdb/mi and signals vs gdb/cli
@ 2001-09-28  3:48 Mickael Gicquaire
  2001-09-28 16:48 ` Andrew Cagney
  0 siblings, 1 reply; 6+ messages in thread
From: Mickael Gicquaire @ 2001-09-28  3:48 UTC (permalink / raw)
  To: gdb

hi all !
i have a question concerning gdb/mi interface and signals handling.
The SIGTERM signal send by my remote target does not appear when
i use gdb with its mi interface.

The program runs to completion and the *stopped is displayed.

-exec-continue
^running
(gdb)
*stopped
(gdb)

whereas if i used Gdb with the cli interface  i get
(top-gdb) c
Continuing.
Program received signal SIGTERM, Terminated.
0xac009bae in ?? ()

Does someone knows what is happening to my SIGTERM signal ??

cheers
mickael

-- 
---------------------------------------------------------------------------
| Mickael Gicquaire  | email mickael.gicquaire@.st.com  |                 |
|                    |                                  |   _____________ | 
| STMicroelectronics |                                  |  / ___/__   __/ |
| 1000 Aztec West    |                                  |  \__ \  /  /    | 
| Almondsbury        |   Phone 01454-462342             | /____/ /__/     |
| BRISTOL            |                                  |                 |
---------------------------------------------------------------------------



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: gdb/mi and signals vs gdb/cli
  2001-09-28  3:48 gdb/mi and signals vs gdb/cli Mickael Gicquaire
@ 2001-09-28 16:48 ` Andrew Cagney
  2001-10-01  7:43   ` Fernando Nasser
  0 siblings, 1 reply; 6+ messages in thread
From: Andrew Cagney @ 2001-09-28 16:48 UTC (permalink / raw)
  To: Mickael Gicquaire; +Cc: gdb

> hi all !
> i have a question concerning gdb/mi interface and signals handling.
> The SIGTERM signal send by my remote target does not appear when
> i use gdb with its mi interface.
> 
> The program runs to completion and the *stopped is displayed.
> 
> -exec-continue
> ^running
> (gdb)
> *stopped
> (gdb)
> 
> whereas if i used Gdb with the cli interface  i get
> (top-gdb) c
> Continuing.
> Program received signal SIGTERM, Terminated.
> 0xac009bae in ?? ()
> 
> Does someone knows what is happening to my SIGTERM signal ??


How recent a GDB?  It sounds like it lost the signal -> bug.

Andrew



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: gdb/mi and signals vs gdb/cli
  2001-09-28 16:48 ` Andrew Cagney
@ 2001-10-01  7:43   ` Fernando Nasser
  2001-10-01  8:26     ` Andrew Cagney
  0 siblings, 1 reply; 6+ messages in thread
From: Fernando Nasser @ 2001-10-01  7:43 UTC (permalink / raw)
  To: Andrew Cagney; +Cc: Mickael Gicquaire, gdb

Andrew Cagney wrote:
> 
> > hi all !
> > i have a question concerning gdb/mi interface and signals handling.
> > The SIGTERM signal send by my remote target does not appear when
> > i use gdb with its mi interface.
> >
> > The program runs to completion and the *stopped is displayed.
> >
> > -exec-continue
> > ^running
> > (gdb)
> > *stopped
> > (gdb)
> >
> > whereas if i used Gdb with the cli interface  i get
> > (top-gdb) c
> > Continuing.
> > Program received signal SIGTERM, Terminated.
> > 0xac009bae in ?? ()
> >
> > Does someone knows what is happening to my SIGTERM signal ??
> 
> How recent a GDB?  It sounds like it lost the signal -> bug.
> 

Andrew,

I am afraid we may be missing a ui_out_flush() at the end of all
of the switch clauses in infrun.c

Fernando



-- 
Fernando Nasser
Red Hat Canada Ltd.                     E-Mail:  fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario   M4P 2C9


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: gdb/mi and signals vs gdb/cli
  2001-10-01  7:43   ` Fernando Nasser
@ 2001-10-01  8:26     ` Andrew Cagney
  0 siblings, 0 replies; 6+ messages in thread
From: Andrew Cagney @ 2001-10-01  8:26 UTC (permalink / raw)
  To: Fernando Nasser; +Cc: Mickael Gicquaire, gdb

> 
> Andrew,
> 
> I am afraid we may be missing a ui_out_flush() at the end of all
> of the switch clauses in infrun.c

I think that sounds wrong.  I don't think infrun.c needs to know if/when 
the output needs to be flushed.  Remember, we're trying to separate the 
stop output from its analysis.  (I'll ignore those print_stop_reason() 
calls).

BTW, there were some fixed problems with missing top level flushes and a 
missing stop reason case.  Check the changelogs.  28/6 is getting pretty 
old for a snap, can I suggest trying something more recent.

enjoy,
Andrew

PS: Since the snaps are comming from the 5.1 branch you'll need to use 
CVS to get current sources.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: gdb/mi and signals vs gdb/cli
@ 2001-10-01  9:07 Mickael Gicquaire
  0 siblings, 0 replies; 6+ messages in thread
From: Mickael Gicquaire @ 2001-10-01  9:07 UTC (permalink / raw)
  To: gdb

hi all ,
I have tried with a later version of gdb and it works.
the version that i am now using is GNU gdb 20010909 (MI_OUT).
That bug might not be on the wavefront after all.

thanks
Mickael.
----- Original Message -----
From: <fnasser@redhat.com>
To: <ac131313@cygnus.com>
Cc: <gicquairem@bristol.st.com>; <gdb@sources.redhat.com>
Sent: Monday, October 01, 2001 3:36 PM
Subject: Re: gdb/mi and signals vs gdb/cli


> Andrew Cagney wrote:
> >
> > > hi all !
> > > i have a question concerning gdb/mi interface and signals handling.
> > > The SIGTERM signal send by my remote target does not appear when
> > > i use gdb with its mi interface.
> > >
> > > The program runs to completion and the *stopped is displayed.
> > >
> > > -exec-continue
> > > ^running
> > > (gdb)
> > > *stopped
> > > (gdb)
> > >
> > > whereas if i used Gdb with the cli interface  i get
> > > (top-gdb) c
> > > Continuing.
> > > Program received signal SIGTERM, Terminated.
> > > 0xac009bae in ?? ()
> > >
> > > Does someone knows what is happening to my SIGTERM signal ??
> >
> > How recent a GDB?  It sounds like it lost the signal -> bug.
> >
>
> Andrew,
>
> I am afraid we may be missing a ui_out_flush() at the end of all
> of the switch clauses in infrun.c
>
> Fernando
>
>
>
> --
> Fernando Nasser
> Red Hat Canada Ltd.                     E-Mail:  fnasser@redhat.com
> 2323 Yonge Street, Suite #300
> Toronto, Ontario   M4P 2C9
>

-- 
---------------------------------------------------------------------------
| Mickael Gicquaire  | email mickael.gicquaire@.st.com  |                 |
|                    |                                  |   _____________ | 
| STMicroelectronics |                                  |  / ___/__   __/ |
| 1000 Aztec West    |                                  |  \__ \  /  /    | 
| Almondsbury        |   Phone 01454-462342             | /____/ /__/     |
| BRISTOL            |                                  |                 |
---------------------------------------------------------------------------



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: gdb/mi and signals vs gdb/cli
@ 2001-10-01  2:03 Mickael Gicquaire
  0 siblings, 0 replies; 6+ messages in thread
From: Mickael Gicquaire @ 2001-10-01  2:03 UTC (permalink / raw)
  To: ac131313; +Cc: gdb

hi all ,

>
> How recent a GDB?  It sounds like it lost the signal -> bug.
>
> Andrew
>

The version of the gdb that i am using is :
GNU gdb 20010628 (MI_OUT)
This GDB was configured as "--host=sparc-sun-solaris2.8
--target=sh-superh-elf".

I am going to download a newer version to see if it 's due to that version of
gdb.

Otherwise.., any other suggestions ?

cheers Mickael.




> > hi all !
> > i have a question concerning gdb/mi interface and signals handling.
> > The SIGTERM signal send by my remote target does not appear when
> > i use gdb with its mi interface.
> >
> > The program runs to completion and the *stopped is displayed.
> >
> > -exec-continue
> > ^running
> > (gdb)
> > *stopped
> > (gdb)
> >
> > whereas if i used Gdb with the cli interface  i get
> > (top-gdb) c
> > Continuing.
> > Program received signal SIGTERM, Terminated.
> > 0xac009bae in ?? ()
> >
> > Does someone knows what is happening to my SIGTERM signal ??
>
>
> How recent a GDB?  It sounds like it lost the signal -> bug.
>
> Andrew
>
>
>


-- 
---------------------------------------------------------------------------
| Mickael Gicquaire  | email mickael.gicquaire@.st.com  |                 |
|                    |                                  |   _____________ | 
| STMicroelectronics |                                  |  / ___/__   __/ |
| 1000 Aztec West    |                                  |  \__ \  /  /    | 
| Almondsbury        |   Phone 01454-462342             | /____/ /__/     |
| BRISTOL            |                                  |                 |
---------------------------------------------------------------------------



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-10-01  9:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-28  3:48 gdb/mi and signals vs gdb/cli Mickael Gicquaire
2001-09-28 16:48 ` Andrew Cagney
2001-10-01  7:43   ` Fernando Nasser
2001-10-01  8:26     ` Andrew Cagney
2001-10-01  2:03 Mickael Gicquaire
2001-10-01  9:07 Mickael Gicquaire

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox