aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMarkus Metzger <mmetzger@sourceware.org>2013-09-02 15:06:11 +0000
committerMarkus Metzger <mmetzger@sourceware.org>2013-09-02 15:06:11 +0000
commit1e038f67a9e8644c3d18033fac4ebb69f70f1606 (patch)
tree7a7d84a9952200e05613a5b5761b87f0056e2cfd /gdb
parentcee83bcb4927035bcdc60a9e3daba2e1ee8eb0f0 (diff)
downloadgdb-1e038f67a9e8644c3d18033fac4ebb69f70f1606.zip
gdb-1e038f67a9e8644c3d18033fac4ebb69f70f1606.tar.gz
gdb-1e038f67a9e8644c3d18033fac4ebb69f70f1606.tar.bz2
record: upcase record_print_flag enumeration constants
* 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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/record-btrace.c4
-rw-r--r--gdb/record.c4
-rw-r--r--gdb/record.h4
4 files changed, 13 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index bb17a56..ffd9263 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+2013-09-02 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.
+
2013-09-02 Pierre Muller <muller@sourceware.org>
* windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
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