|
From: | Jd Lyons |
Subject: | Re: [Qemu-ppc] Enabling Debugging? |
Date: | Tue, 31 Jan 2017 13:50:00 -0500 |
./comfigure —enable-debug doesn’t seem to do anything. So I tried: CFLAGS="-g3 -O0" ../qemu/configure --enable-debug --disable-pie --target-list=ppc-softmmu --prefix=$HOME/os9/qemu-install Install prefix /Users/jam2/os9/qemu-install BIOS directory /Users/jam2/os9/qemu-install/share/qemu binary directory /Users/jam2/os9/qemu-install/bin library directory /Users/jam2/os9/qemu-install/lib module directory /Users/jam2/os9/qemu-install/lib/qemu libexec directory /Users/jam2/os9/qemu-install/libexec include directory /Users/jam2/os9/qemu-install/include config directory /Users/jam2/os9/qemu-install/etc local state directory /Users/jam2/os9/qemu-install/var Manual directory /Users/jam2/os9/qemu-install/share/man ELF interp prefix /usr/gnemul/qemu-%M Source path /Users/jam2/QE5/qemu C compiler cc Host C compiler cc C++ compiler c++ Objective-C compiler clang ARFLAGS rv CFLAGS -g -g3 -O0 QEMU_CFLAGS -I/usr/local/include/pixman-1 -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -m64 -mcx16 -DOS_OBJECT_USE_OBJC=0 -arch x86_64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -Wno-string-plus-int -Wno-initializer-overrides -Wendif-labels -Wno-shift-negative-value -Wmissing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-definition -Wtype-limits -fstack-protector-strong -I/usr/local/include/libusb-1.0 LDFLAGS -m64 -framework CoreFoundation -framework IOKit -arch x86_64 -g make make install install python python -B smbd /usr/sbin/smbd module support no host CPU x86_64 host big endian no target list ppc-softmmu tcg debug enabled yes gprof enabled no sparse enabled no strip binaries no profiler no static build no Cocoa support yes pixman system SDL support no GTK support no GTK GL support no VTE support no TLS priority NORMAL GNUTLS support no GNUTLS rnd no libgcrypt no libgcrypt kdf no nettle no nettle kdf no libtasn1 no curses support no virgl support no curl support yes mingw32 support no Audio drivers coreaudio Block whitelist (rw) Block whitelist (ro) VirtFS support no VNC support yes VNC SASL support yes VNC JPEG support no VNC PNG support no xen support no brlapi support no bluez support no Documentation yes PIE no vde support no netmap support no Linux AIO support no ATTR/XATTR support no Install blobs yes KVM support no HAX support yes RDMA support no TCG interpreter no fdt support yes preadv support no fdatasync no madvise yes posix_madvise yes libcap-ng support no vhost-net support no vhost-scsi support no vhost-vsock support no Trace backends log spice support no rbd support no xfsctl support no smartcard support no libusb yes usb net redir no OpenGL support no OpenGL dmabufs no libiscsi support no libnfs support no build guest agent yes QGA VSS support no QGA w32 disk info no QGA MSI support no seccomp support no coroutine backend sigaltstack coroutine pool yes debug stack usage no GlusterFS support no Archipelago support no gcov gcov gcov enabled no TPM support yes libssh2 support no TPM passthrough no QOM debugging yes lzo support no snappy support no bzip2 support yes NUMA host support no tcmalloc support no jemalloc support no avx2 optimization no replication support yes gdb ./qemu-system-ppc GNU gdb (GDB) 7.12.1 Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-apple-darwin16.3.0". Type "show configuration" for configuration details. For bug reporting instructions, please see: Find the GDB manual and other documentation resources online at: For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from ./qemu-system-ppc...done. (gdb) run -bios /Users/jam2/Downloads/qemu-scr-vga-sun-sdl28012016/openbios-qemu-scr-sunM.elf -cdrom /Users/jam2/Downloads/MacOSXServer1.2v3.img -hda /Users/jam2/Documents/1G_BLANK_MACOSX_DP1_DISK_IMAGE.img -M mac99 -cpu G4 -prom-env 'boot-args=-v rd=hd0' -prom-env 'boot-device=hd:2,\\:tbx' Starting program: /Users/jam2/os9/qemu-install/bin/qemu-system-ppc -bios /Users/jam2/Downloads/qemu-scr-vga-sun-sdl28012016/openbios-qemu-scr-sunM.elf -cdrom /Users/jam2/Downloads/MacOSXServer1.2v3.img -hda /Users/jam2/Documents/1G_BLANK_MACOSX_DP1_DISK_IMAGE.img -M mac99 -cpu G4 -prom-env 'boot-args=-v rd=hd0' -prom-env 'boot-device=hd:2,\\:tbx' [New Thread 0x1403 of process 8180] warning: unhandled dyld version (15) [New Thread 0x1207 of process 8180] [New Thread 0x1503 of process 8180] [New Thread 0x1603 of process 8180] [New Thread 0x1703 of process 8180] [New Thread 0x1803 of process 8180] [New Thread 0x1903 of process 8180] [New Thread 0x1a03 of process 8180] Thread 2 received signal SIGUSR2, User defined signal 2. 0x00007fffb68e7262 in ?? () (gdb) bt #0 0x00007fffb68e7262 in ?? () #1 0x00000001005784c9 in qemu_coroutine_new () at /Users/jam2/QE5/qemu/util/coroutine-sigaltstack.c:211 #2 0x000000010057694d in qemu_coroutine_create ( entry=0x1004d2500 <bdrv_rw_co_entry>, opaque=0x7fff5fbfd1d0) at /Users/jam2/QE5/qemu/util/qemu-coroutine.c:75 #3 0x00000001004cce73 in bdrv_prwv_co (child=0x1016ddd70, offset=0, qiov=0x7fff5fbfd290, is_write=false, flags=0) at /Users/jam2/QE5/qemu/block/io.c:618 #4 0x00000001004cd27c in bdrv_preadv (child=0x1016ddd70, offset=0, qiov=0x7fff5fbfd290) at /Users/jam2/QE5/qemu/block/io.c:730 #5 0x00000001004cd31e in bdrv_pread (child=0x1016ddd70, offset=0, buf=0x7fff5fbfd300, bytes=512) at /Users/jam2/QE5/qemu/block/io.c:751 #6 0x00000001004622e1 in find_image_format (file=0x1016ddd70, filename=0x1016d3c70 "/Users/jam2/Downloads/MacOSXServer1.2v3.img", pdrv=0x7fff5fbfd628, errp=0x7fff5fbfd620) at /Users/jam2/QE5/qemu/block.c:605 #7 0x000000010045bc30 in bdrv_open_inherit ( filename=0x1016d3c70 "/Users/jam2/Downloads/MacOSXServer1.2v3.img", reference=0x0, options=0x101888600, flags=0, parent=0x0, child_role=0x0, errp=0x7fff5fbfda60) at /Users/jam2/QE5/qemu/block.c:1804 #8 0x000000010045c497 in bdrv_open ( filename=0x1016d3c70 "/Users/jam2/Downloads/MacOSXServer1.2v3.img", ---Type <return> to continue, or q <return> to quit--- reference=0x0, options=0x10187c200, flags=0, errp=0x7fff5fbfda60) at /Users/jam2/QE5/qemu/block.c:1924 #9 0x00000001004ba51c in blk_new_open ( filename=0x1016d3c70 "/Users/jam2/Downloads/MacOSXServer1.2v3.img", reference=0x0, options=0x10187c200, flags=0, errp=0x7fff5fbfda60) at /Users/jam2/QE5/qemu/block/block-backend.c:160 #10 0x00000001001fb472 in blockdev_init ( file=0x1016d3c70 "/Users/jam2/Downloads/MacOSXServer1.2v3.img", bs_opts=0x10187c200, errp=0x7fff5fbfda60) at /Users/jam2/QE5/qemu/blockdev.c:582 #11 0x00000001001faad1 in drive_new (all_opts=0x1016c3f70, block_default_type=IF_IDE) at /Users/jam2/QE5/qemu/blockdev.c:1080 #12 0x00000001002200db in drive_init_func (opaque=0x1015abae0, opts=0x1016c3f70, errp=0x0) at /Users/jam2/QE5/qemu/vl.c:1156 #13 0x00000001005725a6 in qemu_opts_foreach (list=0x100767678, func=0x1002200b0 <drive_init_func>, opaque=0x1015abae0, errp=0x0) at /Users/jam2/QE5/qemu/util/qemu-option.c:1116 #14 0x000000010021b560 in qemu_main (argc=16, argv=0x7fff5fbff9d8, envp=0x7fff5fbffa60) at /Users/jam2/QE5/qemu/vl.c:4421 #15 0x000000010042af79 in -[QemuCocoaAppController startEmulationWithArgc:argv:] (self=0x10151a9b0, _cmd=0x10065f489, argc=16, argv=0x7fff5fbff9d8) at /Users/jam2/QE5/qemu/ui/cocoa.m:949 #16 0x000000010042ae46 in -[QemuCocoaAppController applicationDidFinishLaunching---Type <return> to continue, or q <return> to quit--- Is the -g g3 CFLAG what it causing me trouble? |
[Prev in Thread] | Current Thread | [Next in Thread] |