This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch/testsuite] selftest.exp: revert removal of init_malloc


This patch puts init_malloc back into selftest.exp, so that selftest.exp
works with gdb 6.2.

I need this so that I can compare gdb 6.2 to gdb HEAD.  I do this by
running test suite HEAD with both versions of gdb and comparing the
results.

I stuck in a comment

  # gdb 6.2.X is the last gdb which called init_malloc

... so that a future maintainer can broom this.

Tested on native i686-pc-linux-gnu with gdb 6.2 and gdb HEAD.

I am committing this now.

2004-08-13  Michael Chastain  <mec.gnu@mindspring.com>

	* gdb.gdb/selftest.exp: Revert removal of call to init_malloc.

Michael C

Index: gdb.gdb/selftest.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.gdb/selftest.exp,v
retrieving revision 1.2
diff -c -3 -p -r1.2 selftest.exp
*** gdb.gdb/selftest.exp	10 Aug 2004 22:36:39 -0000	1.2
--- gdb.gdb/selftest.exp	13 Aug 2004 10:36:37 -0000
***************
*** 1,5 ****
! #   Copyright 1988, 1990, 1991, 1992, 1994, 1997, 1999, 2000, 2002, 2003
! #   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
--- 1,5 ----
! # Copyright 1988, 1990, 1991, 1992, 1994, 1997, 1999, 2000, 2002,
! # 2003, 2004 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
*************** proc do_steps_and_nexts {} {
*** 105,110 ****
--- 105,115 ----
  		set description "next over mac_init and everything it calls"
  		set command "next"
  	    }
+ 	    -re ".*init_malloc.*$gdb_prompt $" {
+ 		# gdb 6.2.X is the last gdb which called init_malloc
+ 		set description "next over init_malloc and everything it calls"
+ 		set command "next"
+ 	    }
  	    -re ".*lim_at_start.*$gdb_prompt $" {
  		set description "next over lim_at_start initialization"
  		set command "next"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]