Re: gdb darwin target on Linux host?

Tristan Gingold
2010-10-20T15:12:55Z

On Oct 20, 2010, at 4:42 PM, Peter Steiner wrote:

> On Wed, 2010-10-20 at 16:20 +0200, Tristan Gingold wrote:
>> Could you post the log messages ? I suppose that if no binary is
>> built, then an error has occurred.
>>
>> Not sure why you try to build such a tool, as it would be basically
>> useless to debug.

> "/home/exchange/ls": not in executable format: File format not
> recognized
> Setting up the environment for debugging gdb.
>
> WHY it says:
>
> "/home/exchange/ls": not in executable format: File format not
> recognized
>
> ?
>
> as I built for the darwin target?

> file /home/exchange/ls
> /home/exchange/ls: Mach-O fat file with 2 architectures

You can't debug fat binaries. You have to extract the executable you really want to debug.