Propagate gdb_disassembly_flags to btrace_print_lines
authorSimon Marchi <simon.marchi@polymtl.ca>
Mon, 5 Mar 2018 01:02:35 +0000 (20:02 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Mon, 5 Mar 2018 01:03:40 +0000 (20:03 -0500)
This function can take the flags as the gdb_disassembly_flags type
instead of int.

gdb/ChangeLog:

* record-btrace.c (btrace_print_lines): Change type of flags to
gdb_disassembly_flags.

gdb/ChangeLog
gdb/record-btrace.c

index 1190e0f2b364bb05902e86397bd50ad16077e000..4a44af4c25981ba81b971be85f41e07133e3be07 100644 (file)
@@ -1,3 +1,8 @@
+2018-03-04  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * record-btrace.c (btrace_print_lines): Change type of flags to
+       gdb_disassembly_flags.
+
 2018-03-04  John Baldwin  <jhb@FreeBSD.org>
 
        * fbsd-nat.c: Include "inf-ptrace.h".
index d9a1dc593f4908dc5c2088c9681bb0ef7b7f9f86..48eda5435155ee748b8cfaf8a02b52a729c0cee8 100644 (file)
@@ -601,7 +601,7 @@ btrace_find_line_range (CORE_ADDR pc)
 
 static void
 btrace_print_lines (struct btrace_line_range lines, struct ui_out *uiout,
-                   struct cleanup **ui_item_chain, int flags)
+                   struct cleanup **ui_item_chain, gdb_disassembly_flags flags)
 {
   print_source_lines_flags psl_flags;
   int line;