* mi/mi-cmd-disas.c (mi_cmd_disassemble): Respect mixed_mode flag.
authorUlrich Weigand <uweigand@de.ibm.com>
Fri, 17 Jul 2009 15:55:54 +0000 (15:55 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Fri, 17 Jul 2009 15:55:54 +0000 (15:55 +0000)
gdb/ChangeLog
gdb/mi/mi-cmd-disas.c

index dfcd808..661bb45 100644 (file)
@@ -1,3 +1,7 @@
+2009-07-17  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * mi/mi-cmd-disas.c (mi_cmd_disassemble): Respect mixed_mode flag.
+
 2009-07-16  Doug Evans  <dje@google.com>
 
        * linux-thread.db.c (try_thread_db_load_1): Tweak comment.
index e17f38a..124f87d 100644 (file)
@@ -156,6 +156,6 @@ mi_cmd_disassemble (char *command, char **argv, int argc)
 
   gdb_disassembly (gdbarch, uiout,
                   file_string,
-                  DISASSEMBLY_SOURCE, how_many, low, high);
-
+                  mixed_source_and_assembly? DISASSEMBLY_SOURCE : 0,
+                  how_many, low, high);
 }