/[gxemul]/trunk/src/debugger.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/src/debugger.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 19 by dpavlin, Mon Oct 8 16:19:11 2007 UTC revision 20 by dpavlin, Mon Oct 8 16:19:23 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *   *
27   *   *
28   *  $Id: debugger.c,v 1.123 2005/10/26 14:37:01 debug Exp $   *  $Id: debugger.c,v 1.125 2005/11/13 00:14:06 debug Exp $
29   *   *
30   *  Single-step debugger.   *  Single-step debugger.
31   *   *
# Line 556  static void debugger_cmd_device(struct m Line 556  static void debugger_cmd_device(struct m
556                              (long long)mem->dev_length[i]);                              (long long)mem->dev_length[i]);
557                          if (mem->dev_flags[i]) {                          if (mem->dev_flags[i]) {
558                                  printf(" (");                                  printf(" (");
559                                  if (mem->dev_flags[i] & MEM_DYNTRANS_OK)                                  if (mem->dev_flags[i] & DM_DYNTRANS_OK)
560                                          printf("DYNTRANS R");                                          printf("DYNTRANS R");
561                                  if (mem->dev_flags[i] & MEM_DYNTRANS_WRITE_OK)                                  if (mem->dev_flags[i] & DM_DYNTRANS_WRITE_OK)
562                                          printf("+W");                                          printf("+W");
563                                  printf(")");                                  printf(")");
564                          }                          }
# Line 1378  static void debugger_cmd_tlbdump(struct Line 1378  static void debugger_cmd_tlbdump(struct
1378   */   */
1379  static void debugger_cmd_trace(struct machine *m, char *cmd_line)  static void debugger_cmd_trace(struct machine *m, char *cmd_line)
1380  {  {
1381          int i, toggle = 1;          int toggle = 1;
1382          int previous_mode = old_show_trace_tree;          int previous_mode = old_show_trace_tree;
1383    
1384          if (cmd_line[0] != '\0') {          if (cmd_line[0] != '\0') {
# Line 1422  static void debugger_cmd_trace(struct ma Line 1422  static void debugger_cmd_trace(struct ma
1422          if (m->bintrans_enable && old_show_trace_tree)          if (m->bintrans_enable && old_show_trace_tree)
1423                  printf("NOTE: the trace tree functionality doesn't "                  printf("NOTE: the trace tree functionality doesn't "
1424                      "work very well with bintrans!\n");                      "work very well with bintrans!\n");
   
         /*  Clear translations:  */  
         for (i=0; i<m->ncpus; i++)  
                 if (m->cpus[i]->translation_cache != NULL)  
                         cpu_create_or_reset_tc(m->cpus[i]);  
1425  }  }
1426    
1427    
# Line 2106  void debugger(void) Line 2101  void debugger(void)
2101                  return;                  return;
2102          }          }
2103    
2104            /*
2105             *  Clear all dyntrans translations, because otherwise things would
2106             *  become to complex to keep in sync.
2107             */
2108            for (i=0; i<debugger_machine->ncpus; i++)
2109                    if (debugger_machine->cpus[i]->translation_cache != NULL)
2110                            cpu_create_or_reset_tc(debugger_machine->cpus[i]);
2111    
2112          exit_debugger = 0;          exit_debugger = 0;
2113    
2114          while (!exit_debugger) {          while (!exit_debugger) {

Legend:
Removed from v.19  
changed lines
  Added in v.20

  ViewVC Help
Powered by ViewVC 1.1.26