Author Topic: MacsBug  (Read 3786 times)

Offline Protools5LEGuy

  • Global Moderator
  • Platinum Member (500+ Posts)
  • *****
  • Posts: 2251
MacsBug
« on: November 16, 2016, 08:01:20 PM »
https://en.wikipedia.org/wiki/MacsBug






Quote
MacsBug is a low-level (assembly language/machine-level) debugger for the classic Mac OS (Macintosh operating system). MacsBug is an acronym for Motorola Advanced Computer Systems Debugger, as opposed to Macintosh debugger (The Motorola 68000 Microprocessor is imprinted with the MACSS acronym[1]). The original version was developed by Motorola as a general debugger for its 68000 systems — it was ported to the Mac as a programmer's tool early in the project's development.

MacsBug is invoked by hitting the Macintosh's "Programmer's Key" or, as it became later known, the "Interrupt Key" or by pressing "Command-Power". MacsBug offers many commands for disassembling, searching, and viewing data as well as control over processor registers. MacsBug is not installed by default with Mac OS, although every Macintosh since the Macintosh Plus includes a debugger in ROM known as MicroBug.[2]

Users who stumble into MacsBug by accident need only to enter G and press return to escape from MacsBug; however, MacsBug is not installed by default, requiring a system extension, so a typical user environment does not include it. However, it was occasionally installed by end users to provide very basic error recovery. As the classic Mac OS lacked memory protection, "hard crashes" where an application crash simply froze the entire system weren't uncommon. With MacsBug installed, instead of an unresponsive system, the user would be dumped into MacsBug, where they could type ES to Exit to Shell (force quit the crashed application and return to the Finder) or RB for ReBoot, which restarted the system.[3] Such recovery efforts were often not successful, with the only alternative a hard reset.

In Mac OS versions 7.5 and later, the presence of MacsBug is indicated at startup; it is present if the user sees the text Debugger installed (although, occasionally, this may indicate the presence of another piece of software loaded into the area of memory reserved for the debugger, instead).

MacsBug was originally for the Motorola 68000 series of processors only. When Apple introduced the Power Macintosh in 1994, it was followed by an updated MacsBug that supported the PowerPC instruction set and architecture.

The last version of MacsBug was 6.6.3, released September 14, 2000. This final version works with all of the machines released in the July–September timeframe of 2000, including the Power Mac G4 (uni- and multi-processor), Power Mac G4 Cube, the iMac family (Ruby, Indigo, Sage, Graphite, and Snow), and the iBook family (Indigo, Key Lime, and Graphite).

6.6.3 includes better support for debugging MP tasks, and fixes some serious bugs in the memory setting commands when used in PCI I/O space. It can also be used in Classic when running under Mac OS X, where it is invoked by pressing "⌘-⏏" (or "⌘-F12" on systems without an Eject key).

Mac OS X allows programmers to use familiar MacsBug commands in gdb. This gdb plugin is included with the OS X Developer Tools, located in the directory /usr/libexec/gdb/plugins/MacsBug/.

Third party alternatives to MacsBug included ICOM Simulations' TMON which came with the Darin Adler Extended User Area & Trap Discipline (allowing all documented Mac API parameters to be verified) and the fully symbolic Jasik debugger, which was much more powerful, but harder to use due to the intricate and non-standard user interface.

https://web.archive.org/web/20110605022118/http://developer.apple.com/tools/debuggers/MacsBug/Documentation/MacsBugRef_6.2.pdf

http://www.fenestrated.net/~macman/mirrors/Apple%20Technotes%20(As%20of%202002)/tn/pdf/tn1136.pdf

https://web.archive.org/web/20110814213229/http://developer.apple.com/tools/debuggers/MacsBug/

http://www.mactech.com/articles/mactech/Vol.15/15.06/MacsBugRevisited/index.html

http://www.mactech.com/articles/mactech/Vol.02/02.07/MidWest,TMON/index.html

https://web.archive.org/web/20150716042214/http://www.warplife.com/tips/code/mac/classic/debug/macsbug/debug-meister.html


Garden to rescue, again


http://macintoshgarden.org/apps/macsbug-663

« Last Edit: November 18, 2016, 06:49:32 PM by Protools5LEGuy »
Looking for MacOS 9.2.4

Offline Protools5LEGuy

  • Global Moderator
  • Platinum Member (500+ Posts)
  • *****
  • Posts: 2251
Re: MacsBug
« Reply #1 on: November 16, 2016, 08:06:24 PM »
« Last Edit: November 18, 2016, 06:49:58 PM by Protools5LEGuy »
Looking for MacOS 9.2.4

Offline Knezzen

  • Platinum Member (500+ Posts)
  • *****
  • Posts: 794
  • Pro Tools addict!
    • Macintosh Garden
Re: MacsBug
« Reply #2 on: November 16, 2016, 11:02:11 PM »
ProTools, please don't hotlink to the garden. You can link to the MacBugs page, but please don't hotlink directly to the downloadable file.

You can hotlink to macintosharchive if you want, I have nothing to do with that site :P

Offline Protools5LEGuy

  • Global Moderator
  • Platinum Member (500+ Posts)
  • *****
  • Posts: 2251
Re: MacsBug
« Reply #3 on: November 18, 2016, 06:50:50 PM »
Ok. Hotlinks removed
Looking for MacOS 9.2.4

Offline ELN

  • Gold Member (200+ Posts)
  • *****
  • Posts: 290
  • new to the forums
Re: MacsBug
« Reply #4 on: December 13, 2016, 12:55:52 AM »
Anyone found the MP (Multiprocessing) dcmd? It'd help with the NK work.


Offline Protools5LEGuy

  • Global Moderator
  • Platinum Member (500+ Posts)
  • *****
  • Posts: 2251
Re: MacsBug
« Reply #6 on: June 04, 2019, 09:05:14 AM »
Please Chris use search function before starting new topics.

Looking for MacOS 9.2.4