Eclipse for Mac includes tools made to give developers the freedom of choice in a multi-language, multi-platform, and multi-vendor environment.Eclipse for macOS provides a plug-in based framework that makes it easier to create, integrate, and utilize software tools, saving time and money. By collaborating and exploiting core integration technology, tool producers can leverage platform reuse. Accept License Agreement and download the file mapped to Mac OS X x64. In my case it is “jdk-7u79-macosx-x64.dmg”, you may find it different based on the java version you are trying to install. 10) Once the download is complete, run the file and follow the installation instruction.
GDBの自家製バージョンをMac OS Xで動作させるにはどうすればよいですか? (1)
私はgdbを使用してEclipseでC ++プログラムをデバッグしようとしています。 私はそれが私の
main()
関数でうまくいくと思いますが、変数の値を調べようとすると警告が表示されます。 インターネットを精査した後、私はこのエラーの意味を理解したり、問題を解決する方法を見つけるのに苦労しています。 Stack Overflowの周りに浮かんでいるいくつかの同様の質問( hereとhere )がありhere 。
AppleのXcodeコマンドラインツールは古くなっているので( gccとgdb問題を参照)、自作の自作バージョンを使用する必要がありました。 私が見逃した可能性があるこれらのツールの設定に何かがあるかどうかはわかりません。
私はコマンドラインからgdbを使ってデバッグすることができ、同じエラーが発生します:
'Could not find the frame base for 'Class::method()'
ので、Eclipseの問題ではないと確信しています。 誰もがこの問題を引き起こしているかもしれません。
- Mac OS X 10.8.5(マウンテンライオン)
- Eclipse 4.2.1(Juno)
- gcc 4.8.2(自家製)(-
-g3
と-g3
) - gdb 7.6.2(自作でコード化された)
更新:
Eclipse For Mac Os
私はまたラインを見ている:
いくつかの警告が続く:
数行続けます。 Googleが「gdb bfd unknown load command」を検索すると、ソリューションなしで多数のサイトが表示されますが、それらはすべて、非リンゴバージョンのgdbとMac OS X 10.8+の間に競合が存在する可能性があるようです。
どんな洞察もトンを助けるだろう!
それは名前のmanglingのためです。 名前はGCCとClang(同じような仕組みをしばしば共有している)と同じようにmangledされています。 名前マングリングにより、同じ名前のC / C ++メソッドとアセンブリプロシージャを使用できるようになります。 Cの定義がどうなるか見てみましょう。
シンボルのバイナリ名を見るには
nm
を使います。 nm --demangle
名を表示するには、 nm --demangle
を使用します。 ... 0000000000000000 T _myfunc ...他のシンボルの数は、デバッグレベルによって異なります。-Oと-gオプションのGCCマンページを参照してください。 我々が見るように、数字があります。 それは16進数です。 32ビットマシンでは8桁、64ビットマシンでは16桁です(nビットCPUとはnビットがポインタを表すためシンボルは実際にバイナリファイル内のポインタです)。 それから、シンボル型があります。 T
はC / C ++ / ...メソッド、 t
はアセンブラプロシージャです。 次のアセンブリコードをコンパイルするとどうなるか見てみましょう: GCCとClangはAssemblyをコンパイルするときにデバッグシンボルを押してはいけません。nm出力はおそらく次のようになります:
アセンブリプロシージャ名はマングリングされません。 C ++は、非常に不思議なことに、混乱しています。
:
や、のような文字は、シンボル名には使用できません。 このC ++ソースをコンパイルする: 我々は出力を参照してください:
そして、メインのメソッド名は決してmangledされません。 我々がこのようにしているならば:
2番目の名前だけがマングリングされます。 私はこれが問題かもしれないと思う。 そして、これらの警告は何も意味しません。 これは、システムが低いデバッグシンボル数で再コンパイルされたことを意味します。
Check compatibility
You can upgrade to macOS Sierra from OS X Lion or later on any of the following Mac models. Your Mac also needs at least 2GB of memory and 8.8GB of available storage space.
MacBook introduced in late 2009 or later
MacBook Air introduced in late 2010 or later
MacBook Pro introduced in mid 2010 or later
Mac mini introduced in mid 2010 or later
iMac introduced in late 2009 or later
Mac Pro introduced in mid 2010 or later
MacBook Air introduced in late 2010 or later
MacBook Pro introduced in mid 2010 or later
Mac mini introduced in mid 2010 or later
iMac introduced in late 2009 or later
Mac Pro introduced in mid 2010 or later
To find your Mac model, memory, storage space, and macOS version, choose About This Mac from the Apple menu . If your Mac isn't compatible with macOS Sierra, the installer will let you know.
Make a backup
Before installing any upgrade, it’s a good idea to back up your Mac. Time Machine makes it simple, and other backup methods are also available. Learn how to back up your Mac.
Get connected
It takes time to download and install macOS, so make sure that you have a reliable Internet connection. If you're using a Mac notebook computer, plug it into AC power.
Download macOS Sierra
For the strongest security and latest features, find out whether you can upgrade to macOS Catalina, the latest version of the Mac operating system.
If you still need macOS Sierra, use this link: Download macOS Sierra. A file named InstallOS.dmg will download to your Mac.
Install the macOS installer
Double-click the downloaded file to open a window showing its contents. Then double-click the file within, named InstallOS.pkg.
Follow the onscreen instructions, which will guide you through the steps necessary to install.
Begin installation
After installation of the installer is complete, open the Applications folder on your Mac, then double-click the file named Install macOS Sierra.
Click Continue and follow the onscreen instructions. You might find it easiest to begin installation in the evening so that it can complete overnight, if needed.
Free C++ For Mac
Allow installation to complete
Please allow installation to complete without putting your Mac to sleep or closing its lid. Your Mac might restart, show a progress bar, or show a blank screen several times as it installs both macOS and related updates to your Mac firmware.
Learn more
- If you have hardware or software that isn't compatible with macOS Sierra, you might be able to install the previous version, OS X El Capitan.
- macOS Sierra won't install on top of a later version of macOS, but you can erase your disk first or install on another disk.
- You can use macOS Recovery to reinstall macOS.