Category: Uncategorized

  • C++ Debugging in Eclipse CDT on Linux

    This post is a reminder to myself, and maybe help others, how I managed to get Eclipse CDT to work meaningfully with gdb for debugging.

    Eclipse – in its default state with CDT – often there is not visibility into vectors and more complicated containers when you’re debugging. You get to see the vectors, with an error that the Internet says “is as designed”. (In a future update, I’ll include the error. But for now, I’m just happy with a solution.)

    I think this is due to missing flags (-g3) when compiling. Sorting this out is less important that finishing my college courses though.

    The issue seems to be in how you create the C++ project in Eclipse.

    To make it work:

    (1) In Eclipse, in the Project Explorer, right-click in a blank area, and select New -> Project. (Not C/C++ Project!)

    (2) In the “Select a wizard” prompt, In the C/C++ folder, select “C++ Project”.

    (3) In the next dialog, select Linux GCC as your toolchain.

    Add new cpp source files, or edit the Hello World it gives you, build the project, and debug it, now meaningfully.

  • An Afternoon Diversion in MacOS 9

    To satisfy a curiosity, and itch an itch that never got scratched (Mac G3’s were awfully pretty in their day) I tried installing MacOS9 in a virtual machine.

    Lo and behold:

    I can’t decide what I find more interesting:

    • MacOS 9 had a version of Internet Explorer
    • It was this easy to get running under QEMU
    • MacOS 9 isn’t particularly intuitive at first blush

    I followed https://www.jamesbadger.ca/2018/11/07/emulate-mac-os-9-with-qemu/ ; ignored the parts Mac-specific, used QEMU PPC as available in Debian 12 and used the following as my commandline:

    qemu-system-ppc -cpu g4 -M mac99,via=pmu -m 512 -hda macos9.img -cdrom "Mac OS 9.2.2 Universal Inst.iso" -boot c -g 1024x768x32 -device usb-kbd -device usb-mouse

    Obviously, substitute in your hdd image file and cdrom install file names.