#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include "ComponentFactory.h"
#include "console.h"
#include "cpu.h"
#include "debugger.h"
#include "device.h"
#include "diskimage.h"
#include "emul.h"
#include "GXemul.h"
#include "machine.h"
#include "misc.h"
#include "settings.h"
#include "timer.h"
#include "UnitTest.h"
Go to the source code of this file.
Functions | |
void | debug_indentation (int diff) |
void | debug (const char *fmt,...) |
void | fatal (const char *fmt,...) |
void | internal_w (char *arg) |
int | get_cmd_args (int argc, char *argv[], struct emul *emul, char ***diskimagesp, int *n_diskimagesp) |
int | main (int argc, char *argv[]) |
Variables | |
int | single_step |
int | force_debugger_at_exit |
int | optind |
char * | optarg |
struct settings * | global_settings |
int | extra_argc |
char ** | extra_argv |
char * | progname |
size_t | dyntrans_cache_size = DEFAULT_DYNTRANS_CACHE_SIZE |
int | verbose = 0 |
int | quiet_mode = 0 |
void debug | ( | const char * | fmt, |
... | |||
) |
Definition at line 133 of file main.cc.
References quiet_mode.
void debug_indentation | ( | int | diff | ) |
Definition at line 120 of file main.cc.
Referenced by diskimage_dump_info(), emul_create_from_configfile(), emul_dumpinfo(), emul_machine_setup(), emul_simple_init(), file_load(), iso_load_bootblock(), machine_list_available_types_and_cpus(), mips_cpu_dumpinfo(), and net_dumpinfo().
void fatal | ( | const char * | fmt, |
... | |||
) |
Definition at line 152 of file main.cc.
Referenced by add_to_rx_queue(), alpha_palcode(), alpha_prom_call(), alpha_translate_v2p(), apple_load_bootblock(), arcbios_emul(), arcbios_private_emul(), arm_cdp(), arm_coproc_15(), arm_coproc_i80321_6(), arm_coproc_xscale_14(), arm_exception(), arm_load_register_bank(), arm_mcr_mrc(), arm_save_register_bank(), bus_isa_init(), bus_pci_add(), bus_pci_data_access(), bus_pci_decompose_1(), bus_pci_setaddr(), console_makeavail(), coproc_function(), coproc_register_read(), coproc_register_write(), coproc_tlbpr(), coproc_tlbwri(), cpu_disassemble_instr(), cpu_dumpinfo(), cpu_functioncall_trace(), cpu_register_dump(), cpu_tlbdump(), dec21143_rx(), dec21143_tx(), dec_jumptable_func(), dev_fb_resize(), dev_gt_init(), dev_jazz_dma_controller(), dev_px_init(), dev_ram_init(), dev_scc_add_to_rx_queue(), dev_turbochannel_init(), DEVICE_ACCESS(), device_add(), DEVICE_TICK(), device_unregister(), DEVINIT(), diskimage_access(), diskimage_add(), diskimage_getchs(), diskimage_scsicommand(), diskimage_set_baseoffset(), dreamcast_emul(), emul_machine_setup(), framebuffer_blockcopyfill(), ieee_interpret_float_value(), ieee_store_float_value(), lca_interrupt_assert(), lca_interrupt_deassert(), le_register_write(), load_bootblock(), LS_GENERIC_N(), luna88kprom_emul(), m88k_exception(), m88k_fstcr(), m88k_ldcr(), m88k_stcr(), m88k_translate_v2p(), machine_add_tickfunction(), MACHINE_DEFAULT_CPU(), machine_default_cputype(), machine_init(), machine_list_available_types_and_cpus(), machine_memsize_fix(), machine_name_to_type(), MACHINE_SETUP(), machine_setup(), maple_do_dma_xfer(), memory_device_register(), memory_device_remove(), memory_warn_about_unimplemented_addr(), mvmeprom_emul(), net_debugaddr(), net_ethernet_tx(), net_generate_unique_mac(), net_ip_broadcast(), net_ip_tcp_connectionreply(), net_tcp_rx_avail(), net_udp_rx_avail(), of_emul(), OF_SERVICE(), osiop_execute_scripts_instr(), osiop_get_next_scripts_word(), pcctwo_interrupt_common(), PCIINIT(), pckbc_add_code(), pckbc_get_code(), playstation2_sifbios_emul(), ppc_bat(), ppc_exception(), ppc_translate_v2p(), pvr_dma_transfer(), pvr_render(), reg_access_msr(), sh4_dmac_transfer(), sh_cpu_interrupt_assert(), sh_cpu_new(), sh_exception(), TRANSLATE_ADDRESS(), X(), x11_check_event(), Y(), and yamon_emul().
int get_cmd_args | ( | int | argc, |
char * | argv[], | ||
struct emul * | emul, | ||
char *** | diskimagesp, | ||
int * | n_diskimagesp | ||
) |
Definition at line 390 of file main.cc.
References CHECK_ALLOCATION, machine::cpu_name, emul::debugger_cmds, emul_add_machine(), emul::n_debugger_cmds, and optarg.
Referenced by main().
void internal_w | ( | char * | arg | ) |
Definition at line 170 of file main.cc.
References check_leaks(), console_slave(), GXemul::DumpMachineAsHTML(), GXemul::GenerateHTMLListOfComponents(), UnitTest::RunTests(), and ComponentFactory::UnregisterAllComponentClasses().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 770 of file main.cc.
References console_init(), cpu_init(), device_init(), emul_new(), force_debugger_at_exit, get_cmd_args(), machine_init(), progname, quiet_mode, emul::settings, settings_add(), SETTINGS_FORMAT_BOOL, SETTINGS_FORMAT_YESNO, settings_new(), SETTINGS_TYPE_INT, SETTINGS_TYPE_SUBSETTINGS, single_step, timer_init(), and verbose.
size_t dyntrans_cache_size = DEFAULT_DYNTRANS_CACHE_SIZE |
Definition at line 65 of file main.cc.
Referenced by cpu_create_or_reset_tc().
int extra_argc |
Definition at line 61 of file main.cc.
Referenced by emul_simple_init().
char** extra_argv |
Definition at line 62 of file main.cc.
Referenced by emul_simple_init().
int force_debugger_at_exit |
Definition at line 70 of file debugger.cc.
Referenced by main().
char* optarg |
Referenced by get_cmd_args(), and machine_add_breakpoint_string().
int optind |
int quiet_mode = 0 |
Definition at line 78 of file main.cc.
Referenced by arm_exception(), debug(), DEVICE_ACCESS(), file_load(), main(), memory_warn_about_unimplemented_addr(), mips_cpu_exception(), playstation2_sifbios_emul(), ppc_exception(), sh_exception(), and wdc_command().
int single_step |
Definition at line 68 of file debugger.cc.
Referenced by main().
int verbose = 0 |
Definition at line 77 of file main.cc.
Referenced by console_debug_dump(), DEVICE_ACCESS(), file_load(), main(), and memory_device_register().