This commit renames maint_show_dr to debug_hw_points in i386-nat.c.
gdb/
2014-06-18 Gary Benson <gbenson@redhat.com>
* i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
All uses updated.
2014-06-18 Gary Benson <gbenson@redhat.com>
2014-06-18 Gary Benson <gbenson@redhat.com>
+ * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
+ All uses updated.
+
+2014-06-18 Gary Benson <gbenson@redhat.com>
+
* i386-nat.c (debug_printf): New macro.
(i386_get_debug_register_length): Likewise.
(TARGET_HAS_DR_LEN_8): Use above macro.
* i386-nat.c (debug_printf): New macro.
(i386_get_debug_register_length): Likewise.
(TARGET_HAS_DR_LEN_8): Use above macro.
The functions below implement debug registers sharing by reference
counts, and allow to watch regions up to 16 bytes long. */
The functions below implement debug registers sharing by reference
counts, and allow to watch regions up to 16 bytes long. */
+/* Whether or not to print the mirrored debug registers. */
+static int debug_hw_points;
+
/* Function used for printing mirrored debug registers. */
#define debug_printf(fmt, args...) \
fprintf_unfiltered (gdb_stdlog, fmt, ##args);
/* Function used for printing mirrored debug registers. */
#define debug_printf(fmt, args...) \
fprintf_unfiltered (gdb_stdlog, fmt, ##args);
-/* Whether or not to print the mirrored debug registers. */
-static int maint_show_dr;
-
/* Types of operations supported by i386_handle_nonaligned_watchpoint. */
typedef enum { WP_INSERT, WP_REMOVE, WP_COUNT } i386_wp_op_t;
/* Types of operations supported by i386_handle_nonaligned_watchpoint. */
typedef enum { WP_INSERT, WP_REMOVE, WP_COUNT } i386_wp_op_t;
if (retval == 0)
i386_update_inferior_debug_regs (&local_state);
if (retval == 0)
i386_update_inferior_debug_regs (&local_state);
i386_show_dr (state, "insert_watchpoint", addr, len, type);
return retval;
i386_show_dr (state, "insert_watchpoint", addr, len, type);
return retval;
if (retval == 0)
i386_update_inferior_debug_regs (&local_state);
if (retval == 0)
i386_update_inferior_debug_regs (&local_state);
i386_show_dr (state, "remove_watchpoint", addr, len, type);
return retval;
i386_show_dr (state, "remove_watchpoint", addr, len, type);
return retval;
{
addr = i386_dr_low.get_addr (i);
rc = 1;
{
addr = i386_dr_low.get_addr (i);
rc = 1;
i386_show_dr (state, "watchpoint_hit", addr, -1, hw_write);
}
}
i386_show_dr (state, "watchpoint_hit", addr, -1, hw_write);
}
}
- if (maint_show_dr && addr == 0)
+ if (debug_hw_points && addr == 0)
i386_show_dr (state, "stopped_data_addr", 0, 0, hw_write);
if (rc)
i386_show_dr (state, "stopped_data_addr", 0, 0, hw_write);
if (rc)
if (retval == 0)
i386_update_inferior_debug_regs (&local_state);
if (retval == 0)
i386_update_inferior_debug_regs (&local_state);
i386_show_dr (state, "insert_hwbp", addr, 1, hw_execute);
return retval;
i386_show_dr (state, "insert_hwbp", addr, 1, hw_execute);
return retval;
if (retval == 0)
i386_update_inferior_debug_regs (&local_state);
if (retval == 0)
i386_update_inferior_debug_regs (&local_state);
i386_show_dr (state, "remove_hwbp", addr, 1, hw_execute);
return retval;
i386_show_dr (state, "remove_hwbp", addr, 1, hw_execute);
return retval;
/* A maintenance command to enable printing the internal DRi mirror
variables. */
add_setshow_boolean_cmd ("show-debug-regs", class_maintenance,
/* A maintenance command to enable printing the internal DRi mirror
variables. */
add_setshow_boolean_cmd ("show-debug-regs", class_maintenance,
Set whether to show variables that mirror the x86 debug registers."), _("\
Show whether to show variables that mirror the x86 debug registers."), _("\
Use \"on\" to enable, \"off\" to disable.\n\
Set whether to show variables that mirror the x86 debug registers."), _("\
Show whether to show variables that mirror the x86 debug registers."), _("\
Use \"on\" to enable, \"off\" to disable.\n\