Revision 93fcfe39 linux-user/main.c

b/linux-user/main.c
1057 1057
do {                                                                          \
1058 1058
    fprintf(stderr, fmt , ##args);                                            \
1059 1059
    cpu_dump_state(env, stderr, fprintf, 0);                                  \
1060
    if (loglevel != 0) {                                                      \
1061
        fprintf(logfile, fmt , ##args);                                       \
1062
        cpu_dump_state(env, logfile, fprintf, 0);                             \
1063
    }                                                                         \
1060
    qemu_log(fmt, ##args);                                                   \
1061
    log_cpu_state(env, 0);                                                      \
1064 1062
} while (0)
1065 1063

  
1066 1064
void cpu_loop(CPUPPCState *env)
......
2396 2394

  
2397 2395
    free(target_environ);
2398 2396

  
2399
    if (loglevel) {
2400
        page_dump(logfile);
2401

  
2402
        fprintf(logfile, "start_brk   0x" TARGET_ABI_FMT_lx "\n", info->start_brk);
2403
        fprintf(logfile, "end_code    0x" TARGET_ABI_FMT_lx "\n", info->end_code);
2404
        fprintf(logfile, "start_code  0x" TARGET_ABI_FMT_lx "\n",
2405
                info->start_code);
2406
        fprintf(logfile, "start_data  0x" TARGET_ABI_FMT_lx "\n",
2407
                info->start_data);
2408
        fprintf(logfile, "end_data    0x" TARGET_ABI_FMT_lx "\n", info->end_data);
2409
        fprintf(logfile, "start_stack 0x" TARGET_ABI_FMT_lx "\n",
2410
                info->start_stack);
2411
        fprintf(logfile, "brk         0x" TARGET_ABI_FMT_lx "\n", info->brk);
2412
        fprintf(logfile, "entry       0x" TARGET_ABI_FMT_lx "\n", info->entry);
2413
    }
2397
    log_page_dump();
2398

  
2399
    qemu_log("start_brk   0x" TARGET_ABI_FMT_lx "\n", info->start_brk);
2400
    qemu_log("end_code    0x" TARGET_ABI_FMT_lx "\n", info->end_code);
2401
    qemu_log("start_code  0x" TARGET_ABI_FMT_lx "\n",
2402
            info->start_code);
2403
    qemu_log("start_data  0x" TARGET_ABI_FMT_lx "\n",
2404
            info->start_data);
2405
    qemu_log("end_data    0x" TARGET_ABI_FMT_lx "\n", info->end_data);
2406
    qemu_log("start_stack 0x" TARGET_ABI_FMT_lx "\n",
2407
            info->start_stack);
2408
    qemu_log("brk         0x" TARGET_ABI_FMT_lx "\n", info->brk);
2409
    qemu_log("entry       0x" TARGET_ABI_FMT_lx "\n", info->entry);
2414 2410

  
2415 2411
    target_set_brk(info->brk);
2416 2412
    syscall_init();

Also available in: Unified diff