From: Fernando Nasser <fnasser@redhat.com>
To: Michael Snyder <msnyder@cygnus.com>
Cc: gdb-patches <gdb-patches@sources.redhat.com>
Subject: Re: [RFA]: testsuite/gdb.base/miscexprs.*
Date: Wed, 31 Oct 2001 12:32:00 -0000 [thread overview]
Message-ID: <3BE05FC2.E2BF4F87@redhat.com> (raw)
In-Reply-To: <3BE05398.C708813C@cygnus.com>
Michael Snyder wrote:
>
> Corinna Vinschen wrote:
> >
> > Hi,
> >
> > on my target I have the same problem with the very small (2K) stack
> > when running miscexprs.exp as I already had with call-ar-st.exp.
> >
> > I would like to propose the following patch, which adds the ability
> > to extend miscexprs.exp for targets, which also suffer from the
> > small stack. I added a compiler switch to define the preprocessor
> > symbol `STORAGE', which by default is set to empty. A target
> > specific conditional can be used for setting it to "static", to
> > allow running the tests with the datastructures allocated in the
> > global data area instead of on the stack. Obviously, miscexprs.exp
> > in the below incarantion just contains such a conditional only for
> > the target I'm just working on...
>
> This is a good step, and I'm in favor of accepting it.
> I'd just like to suggest that an even better approach
> might be to add a dejagnu variable that could be defined
> in the baseboard file, rather than put a target ifdef in
> the testsuite script.
>
> Something like this:
> baseboard file:
> set_board_info gdb, small_stack_section, 1
> set_board_info gdb, small_data_section, 1 // future extension
> testsuite file:
> if [target_info exists gdb,small_stack_section] {
> set storage "-DSTORAGE=static"
> }
>
I was simultaneously writting the same thing.
Thanks Michael, small_stack_section is better than smallstack.
--
Fernando Nasser
Red Hat Canada Ltd. E-Mail: fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9
next prev parent reply other threads:[~2001-10-31 12:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-31 8:53 Corinna Vinschen
2001-10-31 11:39 ` Michael Snyder
2001-10-31 12:20 ` Corinna Vinschen
2001-10-31 12:33 ` Fernando Nasser
2001-10-31 13:00 ` Corinna Vinschen
2001-10-31 12:32 ` Fernando Nasser [this message]
2001-10-31 12:27 ` Fernando Nasser
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=3BE05FC2.E2BF4F87@redhat.com \
--to=fnasser@redhat.com \
--cc=gdb-patches@sources.redhat.com \
--cc=msnyder@cygnus.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