Re: GDB Problem
Re: GDB Problem
- Subject: Re: GDB Problem
- From: Jim Ingham <email@hidden>
- Date: Fri, 28 Mar 2008 16:17:29 -0700
So there was an older version of "arch" that only reported the current
architecture, and then the newer version of "arch" actually runs the
specified fork of the Universal file. The gdb you have is expecting
the latter. So see if this works:
/usr/bin/arch -arch i386 /bin/ls
If not, then you have the old version of arch, though I'm not sure how
you would get this...
You can get gdb to avoid the use of arch altogether by making a file
called .gdbinit in your home directory, and put:
set start-with-shell 0
in there. See if that works for you.
Jim
On Mar 28, 2008, at 12:02 PM, Dylan Markow wrote:
On Mar 28, 2008, at 11:48 AM, Chris Espinosa wrote:
Does /usr/bin/arch exist?
Yes:
[~] which arch
/usr/bin/arch
[~] /usr/bin/arch
i386
[~]
Another piece of info: If I uncheck "Start executable after starting
debugging", so that I just get a gdb prompt, I get this output after
typing "run". Same as before, but when it first tries to run my file
it says "Not executing.", then does a "run" again, and then the
original error.
[Session started at 2008-03-28 11:54:56 -0700.]
Loading program into debugger…
GNU gdb 6.3.50-20050815 (Apple version gdb-768) (Tue Oct 2 04:07:49
UTC 2007)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "i386-apple-darwin".tty /dev/ttys001
Program loaded.
sharedlibrary apply-load-rules all
(gdb) run
Starting program: /Users/dylan/myapp/build/Debug/myapp
Not executing.
(gdb) run
[Switching to process 1743 local thread 0x2f1b]
/bin/bash: line 0: exec: arch: not found
Running…
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden