* 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 dfcd808b968b63f422e240ef841868917aa56506..661bb45975c490237fcf3f20aecab2dfcc98cc12 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 e17f38abb8b02de4a81578cdb9ef65ddb4e84569..124f87d370530ab10fc5929ad35074a8b86d3750 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);
 }