Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [COMMIT] Enable gdb.dwarf2 tests on *-*-openbsd* and fix them
@ 2005-02-11 14:25 Mark Kettenis
  2005-02-11 17:11 ` Daniel Jacobowitz
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Kettenis @ 2005-02-11 14:25 UTC (permalink / raw)
  To: gdb-patches

We've committed similar fixes in the past, so I checked this in as
obvious.

Mark


Index: ChangeLog
from  Mark Kettenis  <kettenis@chello.nl>

	* gdb.dwarf2/dw2-basic.exp, gdb.dwarf2/dw2-intercu.exp: Run tests
	on *-*-openbsd*.  Correctly match whitespace in regukar
	expressions.

Index: gdb.dwarf2/dw2-basic.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.dwarf2/dw2-basic.exp,v
retrieving revision 1.2
diff -u -p -r1.2 dw2-basic.exp
--- gdb.dwarf2/dw2-basic.exp 12 Oct 2004 15:55:06 -0000 1.2
+++ gdb.dwarf2/dw2-basic.exp 11 Feb 2005 03:58:17 -0000
@@ -1,5 +1,4 @@
-#   Copyright 2004
-#   Free Software Foundation, Inc.
+# Copyright 2004, 2005 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,6 +21,7 @@
 if {![istarget *-*-linux*]
     && ![istarget *-*-gnu*]
     && ![istarget *-*-elf*]
+    && ![istarget *-*-openbsd*]
     && ![istarget arm-*-eabi*]
     && ![istarget powerpc-*-eabi*]} {
     return 0  
@@ -49,5 +49,5 @@ gdb_reinitialize_dir $srcdir/$subdir
 gdb_load ${binfile}
 
 gdb_test "set listsize 1" ""
-gdb_test "list func_cu1" "4\tFile 1 Line 4"
+gdb_test "list func_cu1" "4\[ \t\]+File 1 Line 4"
 gdb_test "ptype func_cu1" "type = int \\(\\)"
Index: gdb.dwarf2/dw2-intercu.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.dwarf2/dw2-intercu.exp,v
retrieving revision 1.1
diff -u -p -r1.1 dw2-intercu.exp
--- gdb.dwarf2/dw2-intercu.exp 13 Oct 2004 19:07:11 -0000 1.1
+++ gdb.dwarf2/dw2-intercu.exp 11 Feb 2005 03:58:17 -0000
@@ -1,5 +1,4 @@
-#   Copyright 2004
-#   Free Software Foundation, Inc.
+# Copyright 2004, 2005 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,6 +21,7 @@
 if {![istarget *-*-linux*]
     && ![istarget *-*-gnu*]
     && ![istarget *-*-elf*]
+    && ![istarget *-*-openbsd*]
     && ![istarget arm-*-eabi*]
     && ![istarget powerpc-*-eabi*]} {
     return 0  
@@ -49,5 +49,5 @@ gdb_reinitialize_dir $srcdir/$subdir
 gdb_load ${binfile}
 
 gdb_test "set listsize 1" ""
-gdb_test "list func_cu1" "4\tFile 1 Line 4"
+gdb_test "list func_cu1" "4\[ \t\]+File 1 Line 4"
 gdb_test "ptype func_cu1" "type = int \\(\\)"


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

* Re: [COMMIT] Enable gdb.dwarf2 tests on *-*-openbsd* and fix them
  2005-02-11 14:25 [COMMIT] Enable gdb.dwarf2 tests on *-*-openbsd* and fix them Mark Kettenis
@ 2005-02-11 17:11 ` Daniel Jacobowitz
  2005-02-11 17:17   ` M.M. Kettenis
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Jacobowitz @ 2005-02-11 17:11 UTC (permalink / raw)
  To: Mark Kettenis; +Cc: gdb-patches

On Thu, Feb 10, 2005 at 11:01:05PM -0500, Mark Kettenis wrote:
> We've committed similar fixes in the past, so I checked this in as
> obvious.
> 
> Mark
> 
> 
> Index: ChangeLog
> from  Mark Kettenis  <kettenis@chello.nl>
> 
> 	* gdb.dwarf2/dw2-basic.exp, gdb.dwarf2/dw2-intercu.exp: Run tests
> 	on *-*-openbsd*.  Correctly match whitespace in regukar
> 	expressions.

Thanks!  .... do you know why this difference happens?

> -gdb_test "list func_cu1" "4\tFile 1 Line 4"
> +gdb_test "list func_cu1" "4\[ \t\]+File 1 Line 4"

-- 
Daniel Jacobowitz
CodeSourcery, LLC


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

* Re: [COMMIT] Enable gdb.dwarf2 tests on *-*-openbsd* and fix them
  2005-02-11 17:11 ` Daniel Jacobowitz
@ 2005-02-11 17:17   ` M.M. Kettenis
  2005-02-11 17:29     ` Daniel Jacobowitz
  0 siblings, 1 reply; 4+ messages in thread
From: M.M. Kettenis @ 2005-02-11 17:17 UTC (permalink / raw)
  To: Daniel Jacobowitz; +Cc: gdb-patches

Daniel Jacobowitz <drow@false.org> wrote: 

> Thanks!  .... do you know why this difference happens?
> 
> > -gdb_test "list func_cu1" "4\tFile 1 Line 4"
> > +gdb_test "list func_cu1" "4\[ \t\]+File 1 Line 4"

I believe it depends whether the pty driver expands tabs or not.

Mark


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

* Re: [COMMIT] Enable gdb.dwarf2 tests on *-*-openbsd* and fix them
  2005-02-11 17:17   ` M.M. Kettenis
@ 2005-02-11 17:29     ` Daniel Jacobowitz
  0 siblings, 0 replies; 4+ messages in thread
From: Daniel Jacobowitz @ 2005-02-11 17:29 UTC (permalink / raw)
  To: M.M. Kettenis; +Cc: gdb-patches

On Fri, Feb 11, 2005 at 02:25:01PM +0000, M.M. Kettenis wrote:
> Daniel Jacobowitz <drow@false.org> wrote: 
> 
> > Thanks!  .... do you know why this difference happens?
> > 
> > > -gdb_test "list func_cu1" "4\tFile 1 Line 4"
> > > +gdb_test "list func_cu1" "4\[ \t\]+File 1 Line 4"
> 
> I believe it depends whether the pty driver expands tabs or not.

Ah, thank you.  I had no idea there were pty drivers which did this,
but it makes sense :-)

-- 
Daniel Jacobowitz
CodeSourcery, LLC


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

end of thread, other threads:[~2005-02-11 14:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-11 14:25 [COMMIT] Enable gdb.dwarf2 tests on *-*-openbsd* and fix them Mark Kettenis
2005-02-11 17:11 ` Daniel Jacobowitz
2005-02-11 17:17   ` M.M. Kettenis
2005-02-11 17:29     ` Daniel Jacobowitz

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