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 v3 02/23] record: upcase record_print_flag enumeration constants


2013-06-10  Markus Metzger  <markus.t.metzger@intel.com>

	* record.h (record_print_flag) <record_print_src_line,
	record_print_insn_range>: Rename into ...
	(record_print_flag) <record_print_src_line,
	record_print_insn_range>: ... this.  Update all users.


---
 gdb/record-btrace.c |    4 ++--
 gdb/record.c        |    4 ++--
 gdb/record.h        |    4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/gdb/record-btrace.c b/gdb/record-btrace.c
index 8fb413e..68f40c8 100644
--- a/gdb/record-btrace.c
+++ b/gdb/record-btrace.c
@@ -469,13 +469,13 @@ btrace_func_history (struct btrace_thread_info *btinfo, struct ui_out *uiout,
       ui_out_field_uint (uiout, "index", idx);
       ui_out_text (uiout, "\t");
 
-      if ((flags & record_print_insn_range) != 0)
+      if ((flags & RECORD_PRINT_INSN_RANGE) != 0)
 	{
 	  btrace_func_history_insn_range (uiout, bfun);
 	  ui_out_text (uiout, "\t");
 	}
 
-      if ((flags & record_print_src_line) != 0)
+      if ((flags & RECORD_PRINT_SRC_LINE) != 0)
 	{
 	  btrace_func_history_src_line (uiout, bfun);
 	  ui_out_text (uiout, "\t");
diff --git a/gdb/record.c b/gdb/record.c
index cbbe365..07b1b97 100644
--- a/gdb/record.c
+++ b/gdb/record.c
@@ -570,10 +570,10 @@ get_call_history_modifiers (char **arg)
 	  switch (*args)
 	    {
 	    case 'l':
-	      modifiers |= record_print_src_line;
+	      modifiers |= RECORD_PRINT_SRC_LINE;
 	      break;
 	    case 'i':
-	      modifiers |= record_print_insn_range;
+	      modifiers |= RECORD_PRINT_INSN_RANGE;
 	      break;
 	    default:
 	      error (_("Invalid modifier: %c."), *args);
diff --git a/gdb/record.h b/gdb/record.h
index 86e6bc6..65d508f 100644
--- a/gdb/record.h
+++ b/gdb/record.h
@@ -36,10 +36,10 @@ extern struct cmd_list_element *info_record_cmdlist;
 enum record_print_flag
 {
   /* Print the source file and line (if applicable).  */
-  record_print_src_line = (1 << 0),
+  RECORD_PRINT_SRC_LINE = (1 << 0),
 
   /* Print the instruction number range (if applicable).  */
-  record_print_insn_range = (1 << 1),
+  RECORD_PRINT_INSN_RANGE = (1 << 1),
 };
 
 /* Wrapper for target_read_memory that prints a debug message if
-- 
1.7.1


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