This is the mail archive of the gdb-patches@sourceware.org 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]

RFC: fix stack height checks for agent expressions


I'll commit in a bit if nobody has further thoughts.

gdb/ChangeLog:
2005-11-18  Jim Blandy  <jimb@redhat.com>

	* ax-general.c (ax_reqs): If the jump target is marked as an
	instruction boundary, we have a stack height we can check there,
	too.
gdb/ChangeLog:
2005-11-18  Jim Blandy  <jimb@redhat.com>

	* ax-general.c (ax_reqs): If the jump target is marked as an
	instruction boundary, we have a stack height we can check there,
	too.

Index: gdb/ax-general.c
===================================================================
RCS file: /cvs/src/src/gdb/ax-general.c,v
retrieving revision 1.8
diff -c -p -r1.8 ax-general.c
*** gdb/ax-general.c	29 Jan 2005 17:53:25 -0000	1.8
--- gdb/ax-general.c	18 Nov 2005 21:33:14 -0000
*************** ax_reqs (struct agent_expr *ax, struct a
*** 472,479 ****
  	      xfree (reg_mask);
  	      return;
  	    }
! 	  /* Have we already found other jumps to the same location?  */
! 	  else if (targets[target])
  	    {
  	      if (heights[i] != height)
  		{
--- 472,480 ----
  	      xfree (reg_mask);
  	      return;
  	    }
! 	  /* Do we have any information about what the stack height
!              should be at the target?  */
! 	  else if (targets[target] || boundary[target])
  	    {
  	      if (heights[i] != height)
  		{

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