diff options
author | Tristan Gingold <gingold@adacore.com> | 2012-04-11 13:42:44 +0000 |
---|---|---|
committer | Tristan Gingold <gingold@adacore.com> | 2012-04-11 13:42:44 +0000 |
commit | 8da22002688d645ec819af4883dbb0525f4be03a (patch) | |
tree | 4fcbd6a70a7ff9ae88c7a3cb3cdfa86617d6b232 /gdb/darwin-nat.c | |
parent | 7d0a281e40d1cd28b0000830bd9d5a18e40f5f45 (diff) | |
download | gdb-8da22002688d645ec819af4883dbb0525f4be03a.tar.gz |
2012-04-11 Tristan Gingold <gingold@adacore.com>
PR gdb/13901
* darwin-nat.c (darwin_execvp): Revert previous patch.
Diffstat (limited to 'gdb/darwin-nat.c')
-rw-r--r-- | gdb/darwin-nat.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/gdb/darwin-nat.c b/gdb/darwin-nat.c index 3c5ddbef9b4..b5bf7cc8ca0 100644 --- a/gdb/darwin-nat.c +++ b/gdb/darwin-nat.c @@ -1529,22 +1529,6 @@ darwin_execvp (const char *file, char * const argv[], char * const env[]) return; } - /* Specify the same binary preference to spawn the shell as the - exec binary. This avoids spawning a 64bit shell while debugging - a 32bit program, which may confuse gdb. - Also, this slightly breaks internal layers as we suppose the binary - is Mach-O. Doesn't harm in practice. */ - if (exec_bfd != NULL) - { - cpu_type_t pref; - size_t ocount; - - pref = bfd_mach_o_get_data (exec_bfd)->header.cputype; - res = posix_spawnattr_setbinpref_np (&attr, 1, &pref, &ocount); - if (res != 0 || ocount != 1) - fprintf_unfiltered (gdb_stderr, "Cannot set posix_spawn binpref\n"); - } - posix_spawnp (NULL, argv[0], NULL, &attr, argv, env); } |