Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Thomas Schwinge <thomas@codesourcery.com>
To: Yue Lu <hacklu.newborn@gmail.com>, Pedro Alves <palves@redhat.com>
Cc: gdb-patches <gdb-patches@sourceware.org>,
	Luis Machado	<lgustavo@codesourcery.com>, <bug-hurd@gnu.org>
Subject: FAIL: gdb.base/nextoverexit.exp: next over exit (the program exited) (was: [PATCH 1/2] Port gdbserver to GNU/Hurd)
Date: Thu, 19 Sep 2013 08:30:00 -0000	[thread overview]
Message-ID: <87k3id1aeb.fsf@kepler.schwinge.homeip.net> (raw)
In-Reply-To: <CAB8fV=i90kf3Eng9aQWb=JV+R6vPm4Bj5B3aq3X5HHzxVKbLwA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2803 bytes --]

Hi!

On Thu, 19 Sep 2013 15:40:40 +0800, Yue Lu <hacklu.newborn@gmail.com> wrote:
> On Wed, Sep 18, 2013 at 8:37 PM, Pedro Alves <palves@redhat.com> wrote:
> > On 09/12/2013 04:05 AM, Yue Lu wrote:
> >
> >> On Sat, Sep 7, 2013 at 2:53 AM, Pedro Alves <palves@redhat.com> wrote:
> >>> https://sourceware.org/ml/gdb-patches/2013-09/msg00253.html

> First thank you to tell me how to apply patch from email. I used
> webmail of gmail and directly copy patch from the email which often
> apply failed, then I had to patch line by line. Now I used mutt to
> save email to mbox file then apply it, life changed! Before you told
> me this, I never imaged this, so thanks!

Well, never assume that we'd use any convoluted procedures, such as
manually copying a patch's text.  ;-) Never hesitate to ask if you think
some process is too complicated to be done manually -- there will always
be someone who is happy to tell you about his creative solution.

> I have test your patch, seems need a tiny fix. This is just a spelling
> mistaken I think.

Right; I had come to the same conclusion, see my message in the other
thread.


> After add this change, the gdb can work. But I have found a little
> strange from the origin gdb.
> When I set a breakpoint, then I run the inferior, after hit the
> breakpoint, I just input next next until the inferior exit, then the
> gdb will complain this:
> [Inferior 1 (bogus thread id 0) exited normally]
> Thread-specific breakpoint -37 deleted - thread 4 is gone.
> Thread-specific breakpoint -38 deleted - thread 4 is gone.
> Thread-specific breakpoint -39 deleted - thread 4 is gone.
> Thread-specific breakpoint 0 deleted - thread 4 is gone.
> 
> I am not sure why this will output or is reasonable.
> 
> I got this output like this:
> $./gdb gdb
> $b main
> $r
> $n
> $n
> ...
> $q  (quit the debugged gdb)

"As of recently", I notice the same behavior for GDB on both x86
GNU/Linux and GNU/Hurd, also resulting in the gdb.base/nextoverexit.exp
test failing.  So, I don't think this is related to any Hurd
patches/behavior, but instead a general issue.

Quoting from the x86 GNU/Linux' gdb/testsuite/gdb.base2/gdb.log:

    Breakpoint 1, main () at ../../../Ferry_Tagscherer/gdb/testsuite/gdb.base/nextoverexit.c:21
    21        exit (0);
    (gdb) next
    [Inferior 1 (process 25208) exited normally]
    Thread-specific breakpoint -5 deleted - thread 1 is gone.
    Thread-specific breakpoint -6 deleted - thread 1 is gone.
    Thread-specific breakpoint -7 deleted - thread 1 is gone.
    Thread-specific breakpoint 0 deleted - thread 1 is gone.
    (gdb) FAIL: gdb.base/nextoverexit.exp: next over exit (the program exited)

Can others confirm this/is this a known issue?


Grüße,
 Thomas

[-- Attachment #2: Type: application/pgp-signature, Size: 489 bytes --]

  reply	other threads:[~2013-09-19  8:30 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAB8fV=jJ64i91VW52ZmdnEDZhd1ZGTAykDqoFyPJanCP=5beqA@mail.gmail.com>
2013-09-03  8:03 ` [PATCH 2/2] Port gdbserver to GNU/Hurd Yue Lu
2013-09-03  9:38   ` [PATCH 1/2] " Thomas Schwinge
2013-09-03 11:11     ` Pedro Alves
2013-09-03 13:09       ` Thomas Schwinge
2013-09-04  1:47         ` Yue Lu
2013-09-04  1:38       ` Yue Lu
2013-09-05 10:54       ` Yue Lu
2013-09-05 19:29         ` Pedro Alves
2013-09-05 19:39           ` Joel Brobecker
2013-09-05 21:38           ` Thomas Schwinge
2013-09-08 13:35             ` Yue Lu
2013-09-09  9:58               ` Thomas Schwinge
2013-09-18 12:12                 ` Pedro Alves
2013-09-18 13:48                   ` Yue Lu
2013-09-18 14:52                     ` [Hurd/gnu-nat.c] Use ptid_t.lwpid to store, thread ids instead of ptid_t.tid. (was: Re: [PATCH 1/2] Port gdbserver to GNU/Hurd) Pedro Alves
2013-09-18 14:57                     ` [PATCH 1/2] Port gdbserver to GNU/Hurd Pedro Alves
2013-09-22 12:58             ` Yue Lu
2013-09-06 18:53           ` Pedro Alves
2013-09-12  3:05             ` Yue Lu
2013-09-18 12:30               ` Pedro Alves
2013-09-18 12:37               ` Pedro Alves
2013-09-19  7:41                 ` Yue Lu
2013-09-19  8:30                   ` Thomas Schwinge [this message]
2013-09-19  8:44                     ` FAIL: gdb.base/nextoverexit.exp: next over exit (the program exited) Pedro Alves
2013-09-09 10:21           ` [PATCH 1/2] Port gdbserver to GNU/Hurd Yue Lu

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=87k3id1aeb.fsf@kepler.schwinge.homeip.net \
    --to=thomas@codesourcery.com \
    --cc=bug-hurd@gnu.org \
    --cc=gdb-patches@sourceware.org \
    --cc=hacklu.newborn@gmail.com \
    --cc=lgustavo@codesourcery.com \
    --cc=palves@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