public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug mi/10079] Commands attached to a breakpoint do not execute in MI mode
       [not found] <bug-10079-4717@http.sourceware.org/bugzilla/>
@ 2015-10-15  0:09 ` P at draigBrady dot com
  0 siblings, 0 replies; 6+ messages in thread
From: P at draigBrady dot com @ 2015-10-15  0:09 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=10079

Pádraig Brady <P at draigBrady dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-10-15
                 CC|                            |P at draigBrady dot com
     Ever confirmed|0                           |1

--- Comment #6 from Pádraig Brady <P at draigBrady dot com> ---
As per the mail linked in comment #1 I see this when sourcing commands, where
the breakpoint commands aren't run unless an interactive prompt is displayed
first. I.E. if I pass `--eval-command='source breakpoint_file_with_commands'
--eval-command=run` the commands associated with a breakpoint aren't run, while
if I issue the "run" from the interactive prompt they are.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From gdb-prs-return-18689-listarch-gdb-prs=sources.redhat.com@sourceware.org Thu Oct 15 00:14:58 2015
Return-Path: <gdb-prs-return-18689-listarch-gdb-prs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-gdb-prs@sources.redhat.com
Received: (qmail 36796 invoked by alias); 15 Oct 2015 00:14:57 -0000
Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <gdb-prs.sourceware.org>
List-Subscribe: <mailto:gdb-prs-subscribe@sourceware.org>
List-Archive: <http://sourceware.org/ml/gdb-prs/>
List-Post: <mailto:gdb-prs@sourceware.org>
List-Help: <mailto:gdb-prs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: gdb-prs-owner@sourceware.org
Delivered-To: mailing list gdb-prs@sourceware.org
Received: (qmail 36765 invoked by uid 48); 15 Oct 2015 00:14:57 -0000
From: "P at draigBrady dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug breakpoints/10079] Commands attached to a breakpoint do not
 execute without an interactive prompt
Date: Thu, 15 Oct 2015 00:14:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gdb
X-Bugzilla-Component: breakpoints
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: P at draigBrady dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: 6.8
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_gcctarget component cf_gcchost short_desc
 cf_gccbuild
Message-ID: <bug-10079-4717-QJzXgHcHov@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-10079-4717@http.sourceware.org/bugzilla/>
References: <bug-10079-4717@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-q4/txt/msg00031.txt.bz2
Content-length: 810

https://sourceware.org/bugzilla/show_bug.cgi?id=10079

Pádraig Brady <P at draigBrady dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|i686-pc-linux-gnu           |
          Component|mi                          |breakpoints
               Host|i686-pc-linux-gnu           |
            Summary|Commands attached to a      |Commands attached to a
                   |breakpoint do not execute   |breakpoint do not execute
                   |in MI mode                  |without an interactive
                   |                            |prompt
              Build|i686-pc-linux-gnu           |

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From gdb-prs-return-18690-listarch-gdb-prs=sources.redhat.com@sourceware.org Sun Oct 18 18:09:06 2015
Return-Path: <gdb-prs-return-18690-listarch-gdb-prs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-gdb-prs@sources.redhat.com
Received: (qmail 13240 invoked by alias); 18 Oct 2015 18:09:06 -0000
Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <gdb-prs.sourceware.org>
List-Subscribe: <mailto:gdb-prs-subscribe@sourceware.org>
List-Archive: <http://sourceware.org/ml/gdb-prs/>
List-Post: <mailto:gdb-prs@sourceware.org>
List-Help: <mailto:gdb-prs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: gdb-prs-owner@sourceware.org
Delivered-To: mailing list gdb-prs@sourceware.org
Received: (qmail 13214 invoked by uid 48); 18 Oct 2015 18:09:05 -0000
From: "yuri at tsoft dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug guile/19149] New: Message when guile is required but not
 available  is not clear
Date: Sun, 18 Oct 2015 18:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gdb
X-Bugzilla-Component: guile
X-Bugzilla-Version: 7.10
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: yuri at tsoft dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status
 bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-19149-4717@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-q4/txt/msg00032.txt.bz2
Content-length: 1513

https://sourceware.org/bugzilla/show_bug.cgi?id\x19149

            Bug ID: 19149
           Summary: Message when guile is required but not available  is
                    not clear
           Product: gdb
           Version: 7.10
            Status: NEW
          Severity: normal
          Priority: P2
         Component: guile
          Assignee: unassigned at sourceware dot org
          Reporter: yuri at tsoft dot com
  Target Milestone: ---

I have gdb-7.10 built without the GUILE option (which is the default) on
FreeBSD. Qt4 project (.pro) automatically runs the following command that
fails:

> $ gdb --nx --batch --quiet -ex 'set confirm off' -ex "save gdb-index $DESTDIR" -ex quit 'xxx'
> Exception caught while booting Guile.
> Error in function "open-file":
> No such file or directory: "/usr/local/share/gdb710/guile/gdb/boot.scm"
> gdb: warning: Could not complete Guile gdb module initialization from:
> /usr/local/share/gdb710/guile/gdb/boot.scm.
> Limited Guile support is available.
> Suggest passing --data-directory=/path/to/gdb/data-directory.
> usage: save gdb-index DIRECTORY


gdb error message should say: "guile is required for the operation <whatever>,
but gdb hasn't been built with guile support. Please choose an option
--with-guile to build gdb with guile support."

People have to deal with a lot of interacting systems, that is why error
message should be as clear and informative as possible.

--
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug mi/10079] Commands attached to a breakpoint do not execute in MI mode
  2009-04-17  0:58 [Bug mi/10079] New: " maxim2405 at gmail dot com
                   ` (3 preceding siblings ...)
  2009-04-21 17:43 ` maxim2405 at gmail dot com
@ 2009-04-21 22:14 ` maxim2405 at gmail dot com
  4 siblings, 0 replies; 6+ messages in thread
From: maxim2405 at gmail dot com @ 2009-04-21 22:14 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From maxim2405 at gmail dot com  2009-04-21 22:14 -------

> > Have you run the testsuite against this change?
> 
> No I did not. Can you give me a brief instruction, 
> please, on how to run DejaGnu tests against FSF X86 GDB ?

It turned out to be very easy.

I went to <build>/gdb/testsuite and typed

    make check

With this "top.c" update, there is one extra failure :

FAIL: gdb.threads/schedlock.exp: other threads ran - unlocked

The whole picture looks like this:

Latest X86 FSF :

		=== gdb Summary ===

# of expected passes		13400
# of unexpected failures	74
# of expected failures		41
# of known failures		61
# of unresolved testcases	3
# of untested testcases		7
# of unsupported tests		8

Latest X86 FSF with "top.c" update :

		=== gdb Summary ===

# of expected passes		13399
# of unexpected failures	75
# of expected failures		41
# of known failures		61
# of unresolved testcases	3
# of untested testcases		7
# of unsupported tests		8

-- Maxim



-- 


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug mi/10079] Commands attached to a breakpoint do not execute in MI mode
  2009-04-17  0:58 [Bug mi/10079] New: " maxim2405 at gmail dot com
                   ` (2 preceding siblings ...)
  2009-04-21  7:57 ` nickrob at snap dot net dot nz
@ 2009-04-21 17:43 ` maxim2405 at gmail dot com
  2009-04-21 22:14 ` maxim2405 at gmail dot com
  4 siblings, 0 replies; 6+ messages in thread
From: maxim2405 at gmail dot com @ 2009-04-21 17:43 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From maxim2405 at gmail dot com  2009-04-21 17:43 -------
Hello Nik,

> Have you run the testsuite against this change?

No I did not. Can you give me a brief instruction, 
please, on how to run DejaGnu tests against FSF X86 GDB ?

I run all kind of tests against GDB, but all these setups
are different from native X86 FSF.

Thanks,
-- Maxim




-- 


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug mi/10079] Commands attached to a breakpoint do not execute in MI mode
  2009-04-17  0:58 [Bug mi/10079] New: " maxim2405 at gmail dot com
  2009-04-18  0:04 ` [Bug mi/10079] " tromey at redhat dot com
  2009-04-20 20:03 ` maxim2405 at gmail dot com
@ 2009-04-21  7:57 ` nickrob at snap dot net dot nz
  2009-04-21 17:43 ` maxim2405 at gmail dot com
  2009-04-21 22:14 ` maxim2405 at gmail dot com
  4 siblings, 0 replies; 6+ messages in thread
From: nickrob at snap dot net dot nz @ 2009-04-21  7:57 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From nickrob at snap dot net dot nz  2009-04-21 07:57 -------
Subject:  Commands attached to a breakpoint do not execute in MI mode

 > So what should be done now ? Is it going to be applied against the top of the
 > GDB FSF tree ?

Have you run the testsuite against this change?



-- 


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug mi/10079] Commands attached to a breakpoint do not execute in MI mode
  2009-04-17  0:58 [Bug mi/10079] New: " maxim2405 at gmail dot com
  2009-04-18  0:04 ` [Bug mi/10079] " tromey at redhat dot com
@ 2009-04-20 20:03 ` maxim2405 at gmail dot com
  2009-04-21  7:57 ` nickrob at snap dot net dot nz
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: maxim2405 at gmail dot com @ 2009-04-20 20:03 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From maxim2405 at gmail dot com  2009-04-20 20:03 -------
(In reply to comment #1)
> I wonder if this patch would fix it:
> http://sourceware.org/ml/gdb-patches/2008-07/msg00583.html

Yes, it seems to work fine. Only, it did not apply directly.

I had to modify it like this :
Index: gdb/top.c
===================================================================
RCS file: /cvs/src/src/gdb/top.c,v
retrieving revision 1.163
diff -u -r1.163 top.c
--- gdb/top.c   25 Mar 2009 21:42:34 -0000      1.163
+++ gdb/top.c   20 Apr 2009 20:01:45 -0000
@@ -472,6 +472,9 @@
          warned = 1;
        }
     }
+
+   /* Do any commands attached to breakpoint we stopped at.  */
+  bpstat_do_actions ();
 }

 /* Read commands from `instream' and execute them
@@ -518,10 +521,6 @@
        }

       execute_command (command, instream == stdin);
-
-      /* Do any commands attached to breakpoint we are stopped at.  */
-      bpstat_do_actions ();
-
       do_cleanups (old_chain);

       if (display_time)

So what should be done now ? Is it going to be applied against the top of the
GDB FSF tree ?




-- 


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug mi/10079] Commands attached to a breakpoint do not execute in MI mode
  2009-04-17  0:58 [Bug mi/10079] New: " maxim2405 at gmail dot com
@ 2009-04-18  0:04 ` tromey at redhat dot com
  2009-04-20 20:03 ` maxim2405 at gmail dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: tromey at redhat dot com @ 2009-04-18  0:04 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From tromey at redhat dot com  2009-04-18 00:04 -------
I wonder if this patch would fix it:
http://sourceware.org/ml/gdb-patches/2008-07/msg00583.html

-- 


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

end of thread, other threads:[~2015-10-15  0:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-10079-4717@http.sourceware.org/bugzilla/>
2015-10-15  0:09 ` [Bug mi/10079] Commands attached to a breakpoint do not execute in MI mode P at draigBrady dot com
2009-04-17  0:58 [Bug mi/10079] New: " maxim2405 at gmail dot com
2009-04-18  0:04 ` [Bug mi/10079] " tromey at redhat dot com
2009-04-20 20:03 ` maxim2405 at gmail dot com
2009-04-21  7:57 ` nickrob at snap dot net dot nz
2009-04-21 17:43 ` maxim2405 at gmail dot com
2009-04-21 22:14 ` maxim2405 at gmail 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).