2002-11-29 Andrew Cagney <ac131313@redhat.com>
[deliverable/binutils-gdb.git] / gdb / cli / cli-cmds.c
index 9d5829177093f6e1e0fb647cdb3f7bb84d9b7053..97c666ffd3861a204961a961e7e2788177f97cac 100644 (file)
@@ -844,10 +844,10 @@ disassemble_command (char *arg, int from_tty)
   name = NULL;
   if (!arg)
     {
-      if (!selected_frame)
+      if (!deprecated_selected_frame)
        error ("No frame selected.\n");
 
-      pc = get_frame_pc (selected_frame);
+      pc = get_frame_pc (deprecated_selected_frame);
       if (find_pc_partial_function (pc, &name, &low, &high) == 0)
        error ("No function contains program counter for selected frame.\n");
 #if defined(TUI)
This page took 0.023838 seconds and 4 git commands to generate.