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]

PATCH: tracepoints: call check_typedef


Committed as obvious.

gdb/ChangeLog:
2007-10-25  Jim Blandy  <jimb@codesourcery.com>

	* ax-general.c (gen_traced_pop, gen_int_literal)
	(gen_usual_arithmetic): Check for typedefs.

diff -r eb635294a14e -r 1ad43183db5f gdb/ax-gdb.c
--- a/gdb/ax-gdb.c	Wed Oct 24 18:02:15 2007 -0700
+++ b/gdb/ax-gdb.c	Thu Oct 25 12:40:52 2007 -0700
@@ -319,7 +319,7 @@ gen_traced_pop (struct agent_expr *ax, s
 
       case axs_lvalue_memory:
 	{
-	  int length = TYPE_LENGTH (value->type);
+	  int length = TYPE_LENGTH (check_typedef (value->type));
 
 	  /* There's no point in trying to use a trace_quick bytecode
 	     here, since "trace_quick SIZE pop" is three bytes, whereas
@@ -650,7 +650,7 @@ gen_int_literal (struct agent_expr *ax, 
 {
   ax_const_l (ax, k);
   value->kind = axs_rvalue;
-  value->type = type;
+  value->type = check_typedef (type);
 }
 
 
@@ -854,7 +854,7 @@ gen_usual_arithmetic (struct agent_expr 
 	  ax_simple (ax, aop_swap);
 	}
 
-      value1->type = value2->type = target;
+      value1->type = value2->type = check_typedef (target);
     }
 }
 


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