public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug cli/15258] New: -ex and -iex executed commands don't print time/space stats or call bpstat_do_actions
@ 2013-03-09  0:30 dje at google dot com
  0 siblings, 0 replies; only message in thread
From: dje at google dot com @ 2013-03-09  0:30 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=15258

             Bug #: 15258
           Summary: -ex and -iex executed commands don't print time/space
                    stats or call bpstat_do_actions
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: cli
        AssignedTo: unassigned@sourceware.org
        ReportedBy: dje@google.com
    Classification: Unclassified


Commands executed with the -x and -ix command line options take a code path
that does this:

        make_command_stats_cleanup (1);

        execute_command (command, instream == stdin);

        /* Do any commands attached to breakpoint we are stopped at.  */
        bpstat_do_actions ();

        do_cleanups (old_chain);

Commands executed with the -ex and -iex command line options do not because
execute_command is called directly:

      case CMDARG_INIT_COMMAND:
        catch_command_errors (execute_command, cmdarg_p->string,
                              !batch_flag, RETURN_MASK_ALL);

      case CMDARG_COMMAND:
        catch_command_errors (execute_command, cmdarg_p->string,
                              !batch_flag, RETURN_MASK_ALL);

The difference in behaviour feels like a bug.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-03-09  0:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-09  0:30 [Bug cli/15258] New: -ex and -iex executed commands don't print time/space stats or call bpstat_do_actions dje at google dot com

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).