2007-05-31 Markus Deuling <deuling@de.ibm.com>
[deliverable/binutils-gdb.git] / gdb / tracepoint.c
index fb771d2223be7faa8a4c8e1d17deff2699f65aad..8a33bb933c8640777b2a02bf7e570ccd7240c16a 100644 (file)
@@ -1565,7 +1565,7 @@ encode_actions (struct tracepoint *t, char ***tdp_actions,
 
              if (0 == strncasecmp ("$reg", action_exp, 4))
                {
-                 for (i = 0; i < NUM_REGS; i++)
+                 for (i = 0; i < gdbarch_num_regs (current_gdbarch); i++)
                    add_register (collect, i);
                  action_exp = strchr (action_exp, ',');        /* more? */
                }
This page took 0.046171 seconds and 4 git commands to generate.