Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Eli Zaretskii" <eliz@is.elta.co.il>
To: a2782@dis.ulpgc.es
Cc: gdb@sources.redhat.com
Subject: Re: Pipe question
Date: Wed, 04 Dec 2002 08:18:00 -0000	[thread overview]
Message-ID: <3405-Wed04Dec2002181724+0200-eliz@is.elta.co.il> (raw)
In-Reply-To: <200212041436.gB4EaaP03992@siglo21.dis.ulpgc.es> (a2782@dis.ulpgc.es)

> Date: Wed, 4 Dec 2002 14:36:36 GMT
> From: a2782@dis.ulpgc.es
> 
>         system(strcat(\"gdb --quiet -f \",executable));

I hope this is not your actual code: you cannot strcat onto a
constant string.  It's a bug.

> But when I close the program, I only write \"quit\\n\" to togdb[1]. This 
> causes that the program doesn\'t end properly (GDB, which is the child 
> process, ends well). I have to go and type \"kill\" in a console. Could 
> anybody tell me what instructions I have to put in the end of the 
> program in order to finish it succesfully (without kill)?

When you give GDB the `quit' command, it asks whether to kill the
program being debugged; you need to respond with "yes".  So something
like "quit\nyes\n" should do the trick (but I didn't actually try
this, so I might miss something).


  reply	other threads:[~2002-12-04 16:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-04  5:39 a2782
2002-12-04  8:18 ` Eli Zaretskii [this message]
2002-12-04  8:45 Michael Elizabeth Chastain

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=3405-Wed04Dec2002181724+0200-eliz@is.elta.co.il \
    --to=eliz@is.elta.co.il \
    --cc=a2782@dis.ulpgc.es \
    --cc=gdb@sources.redhat.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