Unimplemented trap

About BasiliskII, a 68k Mac emulator for Windows, MacOSX, and Linux that can run System 7.x through MacOS 8.1.

Moderators: Cat_7, Ronald P. Regensburg

Post Reply
User avatar
Velek
Inquisitive Elf
Posts: 26
Joined: Fri Sep 28, 2018 9:38 am

Unimplemented trap

Post by Velek »

I'm having a problem after installing an application that I remember having installed a system extension "Back in the Day".
Now when I boot I get the "Welcome to Mac OS" screen, then I get the bomb dialog which just says "unimplemented trap".
Can someone help give me some insight as to what may be going on and where I might be able to set breakpoints?
I'm running GitHub trunk, which I've built on VS 2017, so I have full debug capability.
EDIT: So, the mouse still works and I can click on the dialog box to reboot.
User avatar
rickyzhang
Mac Mechanic
Posts: 193
Joined: Mon Sep 15, 2014 7:59 pm

Re: Unimplemented trap

Post by rickyzhang »

I wrote a doc on 68K A-trap https://github.com/cebix/macemu/wiki/RO ... h-hardware. In a nutshell, it just invent 68K instruction in software manner. But I'm not sure what your system extension tries to do.

For break point, I sent a PR (https://github.com/cebix/macemu/commit/ ... 8d664ec6e3) that allow setting an emulation break point even starting in loading ROM. So it should fit your purpose to figure out your system extension at the start up.

Please note that the debugger of target platform compiled code (in your case VS debugger or GDB in Linux) is not useful at all for debugging 68K application in emulation. You must know 68K assembly and use BII emulator break point, instead.

In any case, it is difficult to debug Mac application written in 68K assembly. Good luck.
There is an App for that!
https://github.com/rickyzhang82
User avatar
Velek
Inquisitive Elf
Posts: 26
Joined: Fri Sep 28, 2018 9:38 am

Re: Unimplemented trap

Post by Velek »

It's not my code that I'm trying to debug. I installed Codewarrior 10 Gold from one of the obsolete Macintosh software archives. I was wondering if there's something not implemented in Basilisk.
User avatar
Ronald P. Regensburg
Expert User
Posts: 6306
Joined: Thu Feb 09, 2006 10:24 pm
Location: Amsterdam, Netherlands

Re: Unimplemented trap

Post by Ronald P. Regensburg »

Velek wrote:I was wondering if there's something not implemented in Basilisk.
Could very well be. BasiliskII and SheepShaver are far from complete emulators.
Post Reply