MacsBug

MacsBug

Infobox Software
name = MacsBug



caption =
developer = Apple Computer
latest_release_version = 6.6.3
latest_release_date = 2000
latest_preview_version =
latest_preview_date =
operating_system = Mac OS
platform =
genre = debugger
license =
website = [http://developer.apple.com/tools/debuggers/MacsBug/ Apple's MacsBug page]

MacsBug is a low-level (assembly language/machine-level) debugger for pre-Mac OS X Apple Macintosh computers. MacsBug is an acronym for "Motorola Advanced Computer Systems Debugger", as opposed to "Macintosh debugger" (The Motorola 68000 Microprocessor is imprinted with the MACS acronym). 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 [http://developer.apple.com/technotes/tn/tn1136.html] .

Users that 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.

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.

External links

* [http://developer.apple.com/tools/debuggers/MacsBug/ Apple's MacsBug page]
* [http://www.mactech.com/articles/mactech/Vol.15/15.06/MacsBugRevisited/index.html MacsBug Revisited - MacTech Magazine]
* [http://www.mactech.com/articles/mactech/Vol.02/02.07/MidWest,TMON/index.html TMON - MacTech Magazine]
* [http://www.smfr.org/computing/archaic/ A good article on Macsbug]
* [http://www.goingware.com/tips/macsbug.html Macsbug tips and tricks]


Wikimedia Foundation. 2010.

Игры ⚽ Поможем решить контрольную работу

Look at other dictionaries:

  • MacsBug — MacsBug, acronyme de Motorola Advanced Computer Systems Debugger, est un débogueur de bas niveau pour la famille de processeurs Motorola 68000, et spécifiquement pour l Apple Macintosh sur lequel les non programmeurs se contentent de l utiliser… …   Wikipédia en Français

  • MACSBUG — abbr. Motorola Advanced Computer Symbolic deBUGger (Motorola) …   United dictionary of abbreviations and acronyms

  • Mac OS — MacOS redirects here. For the American humanities teaching program, see Man: A Course of Study. Mac OS Company / developer Apple OS family Mac OS (System 1–7, Mac OS 8–9) …   Wikipedia

  • Motorola 68000 — This article is about the CPU. For the computer, see Sharp X68000. Motorola 68000 Designer Motorola Bits 16/32 bit Introduced 1979 Design CISC Endianness Big …   Wikipedia

  • QuickTime — (Classic) …   Wikipedia

  • Software cracking — is the modification of software to remove or disable features which are considered undesirable by the person cracking the software, usually related to protection methods: copy protection, trial/demo version, serial number, hardware key, date… …   Wikipedia

  • Debugger — A debugger or debugging tool is a computer program that is used to test and debug other programs (the target program). The code to be examined might alternatively be running on an instruction set simulator (ISS), a technique that allows great… …   Wikipedia

  • Resource fork — The resource fork is a construct of the Mac OS operating system used to store structured data in a file, alongside unstructured data stored within the data fork. A resource fork stores information in a specific form, such as icons, the shapes of… …   Wikipedia

  • Creator code — The creator code is responsible for linking the file and the program that will launch when the file is double clicked. This Mac OS window show four files of the same type code (MP3), but with four different creator codes: Audn (Audion), hook… …   Wikipedia

  • Macintosh Programmer's Workshop — Infobox Software name = Macintosh Programmer s Workshop caption = MPW version 3.5 developer = Apple Computer latest release version = 3.6d7 latest release date = latest preview version = latest preview date = operating system = Mac OS platform =… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”