From: Daniel Jacobowitz <drow@false.org>
To: Manoj Iyer <manjo@austin.ibm.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFC] gdb.base/float.exp and gdb.base/commands.exp patch
Date: Fri, 04 Mar 2005 16:27:00 -0000 [thread overview]
Message-ID: <20050304162656.GA3334@nevyn.them.org> (raw)
In-Reply-To: <Pine.LNX.4.58.0503022307480.5029@lazy>
On Wed, Mar 02, 2005 at 11:17:15PM -0600, Manoj Iyer wrote:
> > What compiler are you testing with?
>
> I am using GCC (gcc version 3.4.3 20041212 (Red Hat 3.4.3-9.EL4))
>
>
> > On what line is it reporting that
> > it has left the block? I'd like to understand the difference before we
> > change this.
>
> I believe the line number is 82 in my case, and the testcase had 57.
>
> Ok here is the piece of output...
>
> --------------- paste -------------
> Continuing.^M
> Watchpoint 11: local_var^M
> ^M
> Old value = 0^M
> New value = 1^M
> factorial (value=1) at ./gdb.base/run.c:81^M
> 81 return (value);^M
> $38 = 1^M
> ^M
> Watchpoint 11 deleted because the program has left the block in^M
> which its expression is valid.^M
> 0x0000000010000604 in factorial (value=511) at ./gdb.base/run.c:82^M
> 82 }^M
> $39 = 511^M
> 1^M
> ^M
> Program exited normally.^M
> (gdb) FAIL: gdb.base/commands.exp: continue with watch
> ------------- end paste -------------------------
Accepting any line number is not OK. Accepting this particular line
number does seem plausible. Can you do that instead?
> > What about PowerPC targets which don't have an FPU? Hmm, it looks like
> > GDB more or less assumes the FP is present. Not sure about SPE though.
> >
>
> Yes I did think about ppc nofpu system, I believe they are mostly used in
> embedded devices, but I could be wrong. So what is the probability of
> coming accross one that someone will run this test on? But there should be
I've done it in the past. It's not that hard to get ahold of one.
But, as I said, I do not know what will be output.
Might as well do this for now and fix it up later.
> Also, fileio.exp does some permission checks, ie read/write to a file
> which has no read/write permissions, but if you run as root the test will
> fail. There should be some mechanism by which the testcases should check
> if user id is root, if it is temporarily become another user like "nobody"
> or something like that. Couple of tests failed because of this, but I dont
> know how to handle this.
Or just don't run the tests as root. Seems like a good policy anyway.
--
Daniel Jacobowitz
CodeSourcery, LLC
next prev parent reply other threads:[~2005-03-04 16:27 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-02 23:55 Manoj Iyer
2005-03-03 0:27 ` Daniel Jacobowitz
2005-03-03 5:32 ` Manoj Iyer
2005-03-04 16:20 ` Manoj Iyer
2005-03-04 16:27 ` Daniel Jacobowitz [this message]
2005-03-07 16:55 ` Manoj Iyer
2005-03-07 16:58 ` Daniel Jacobowitz
2005-03-07 19:42 ` Manoj Iyer
2005-03-07 19:44 ` Daniel Jacobowitz
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=20050304162656.GA3334@nevyn.them.org \
--to=drow@false.org \
--cc=gdb-patches@sources.redhat.com \
--cc=manjo@austin.ibm.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