public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Vladimir Prus <ghost@cs.msu.su>
To: gdb@sources.redhat.com
Subject: MI: is target running
Date: Fri, 18 Nov 2005 12:43:00 -0000	[thread overview]
Message-ID: <dlki2d$f7j$1@sea.gmane.org> (raw)


Hi,
I have a simple question -- how a GUI frontend can determine if gdb is
running the target at the moment? It's obviously necessary to disable some
actions, enable some other actions and so on.

Say, I'm using MI. However, user might have a lot of gdb macros he wants to
still use, and those macros can contain "run", or "continue" commands --
why not.

Here's what I've tried:

        ghost@zigzag:/tmp$ cat a.gdb
        define myrun
        run
        end
        ghost@zigzag:/tmp$ gdb --i=mi a.out
        ~"GNU gdb 6.3-debian\n"
        (gdb)
        source a.gdb
        &"source a.gdb\n"
        ^done
        (gdb)
        interpreter console "myrun"
        &"interpreter console \"myrun\"\n"
        Hi
        
        Program exited normally.
        ^done
        (gdb)

So, for "run" command embedded in gdb macro invoked via "interpreter
console", there's no "^running" in the output. So, GUI can't detect that
the target is running.

Is this a defect? Should not "^running" be emitted in all cases when target
starts running?

- Volodya



             reply	other threads:[~2005-11-18 12:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-18 12:43 Vladimir Prus [this message]
2005-11-18 13:37 ` Nick Roberts
2005-11-18 14:44   ` Vladimir Prus
     [not found]   ` <200511181740.48427.ghost@cs.msu.su>
2005-11-19  9:04     ` Nick Roberts

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='dlki2d$f7j$1@sea.gmane.org' \
    --to=ghost@cs.msu.su \
    --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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).