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]

[rfa] assert->gdb_assert in i386gnu-nat.c


I think it still compiles.  Ok?

	Andrew
Fri Dec 15 23:12:15 2000  Andrew Cagney  <cagney@b1.cygnus.com>

	* i386gnu-nat.c: Include "gdb_assert.h" instead of <assert.h>.
 	(gnu_store_registers): Replace assert with gdb_assert.
	
	
Index: i386gnu-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/i386gnu-nat.c,v
retrieving revision 1.2
diff -p -r1.2 i386gnu-nat.c
*** i386gnu-nat.c	2000/03/11 00:34:50	1.2
--- i386gnu-nat.c	2000/12/15 12:12:30
***************
*** 22,28 ****
  #include "inferior.h"
  #include "floatformat.h"
  
! #include <assert.h>
  #include <stdio.h>
  #include <errno.h>
  
--- 22,28 ----
  #include "inferior.h"
  #include "floatformat.h"
  
! #include "gdb_assert.h"
  #include <stdio.h>
  #include <errno.h>
  
*************** gnu_store_registers (int regno)
*** 321,327 ****
  	{
  	  proc_debug (thread, "storing register %s", REGISTER_NAME (regno));
  
! 	  assert (register_valid[regno]);
  	  fill (state, regno);
  	}
  
--- 321,327 ----
  	{
  	  proc_debug (thread, "storing register %s", REGISTER_NAME (regno));
  
! 	  gdb_assert (register_valid[regno]);
  	  fill (state, regno);
  	}
  

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