Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA/testsuite] get rid of gdb_suppress_entire_file in asm-source.exp
@ 2004-04-19 17:29 Joel Brobecker
  2004-04-19 17:36 ` Daniel Jacobowitz
  0 siblings, 1 reply; 3+ messages in thread
From: Joel Brobecker @ 2004-04-19 17:29 UTC (permalink / raw)
  To: gdb-patches

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

I noticed that this testcase is using gdb_suppress_entire_file, and
I remember being told that this function was evil. So I suggest the
following cleanup for this gdb.asm test:

2004-04-19  Joel Brobecker  <brobecker@gnat.com>

        * gdb.asm/asm-source.exp: Remove use of gdb_suppress_entire_file.

OK to apply?

-- 
Joel

[-- Attachment #2: unsupported.diff --]
[-- Type: text/plain, Size: 668 bytes --]

Index: gdb.asm/asm-source.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.asm/asm-source.exp,v
retrieving revision 1.49
diff -u -p -r1.49 asm-source.exp
--- gdb.asm/asm-source.exp	31 Jan 2004 14:32:24 -0000	1.49
+++ gdb.asm/asm-source.exp	19 Apr 2004 17:24:56 -0000
@@ -115,7 +115,8 @@ switch -glob -- [istarget] {
 }
 
 if { "${asm-arch}" == "" } {
-    gdb_suppress_entire_file "Assembly source test -- not implemented for this target."
+    unsupported "Assembly source test -- not implemented for this target."
+    return -1
 }
 
 # On NetBSD/ELF we need a special NetBSD-identifying note section.

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

* Re: [RFA/testsuite] get rid of gdb_suppress_entire_file in asm-source.exp
  2004-04-19 17:29 [RFA/testsuite] get rid of gdb_suppress_entire_file in asm-source.exp Joel Brobecker
@ 2004-04-19 17:36 ` Daniel Jacobowitz
  2004-04-19 17:43   ` Joel Brobecker
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Jacobowitz @ 2004-04-19 17:36 UTC (permalink / raw)
  To: Joel Brobecker; +Cc: gdb-patches

On Mon, Apr 19, 2004 at 10:29:36AM -0700, Joel Brobecker wrote:
> I noticed that this testcase is using gdb_suppress_entire_file, and
> I remember being told that this function was evil. So I suggest the
> following cleanup for this gdb.asm test:
> 
> 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
> 
>         * gdb.asm/asm-source.exp: Remove use of gdb_suppress_entire_file.
> 
> OK to apply?

In general, I agree, but this particular file is a can of worms.
Andrew likes the extremely noisy failure, to encourage people to port
the test to new targets.  I'm not sure what I think about it; every
time I run into the issue I just do the port, so...

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


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

* Re: [RFA/testsuite] get rid of gdb_suppress_entire_file in asm-source.exp
  2004-04-19 17:36 ` Daniel Jacobowitz
@ 2004-04-19 17:43   ` Joel Brobecker
  0 siblings, 0 replies; 3+ messages in thread
From: Joel Brobecker @ 2004-04-19 17:43 UTC (permalink / raw)
  To: gdb-patches

> In general, I agree, but this particular file is a can of worms.
> Andrew likes the extremely noisy failure, to encourage people to port
> the test to new targets.  I'm not sure what I think about it; every
> time I run into the issue I just do the port, so...

OK, thanks for the feedback. Patch withdrawn for now. I just noticed that
the patch was incomplete in any case, since there were several other
instances of calls to that function...

-- 
Joel


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

end of thread, other threads:[~2004-04-19 17:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-19 17:29 [RFA/testsuite] get rid of gdb_suppress_entire_file in asm-source.exp Joel Brobecker
2004-04-19 17:36 ` Daniel Jacobowitz
2004-04-19 17:43   ` Joel Brobecker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox