* [gentoo-commits] gentoo-x86 commit in sys-devel/gdb-apple/files: gdb-apple-563-darwin7.patch gdb-apple-768-texinfo.patch gdb-apple-962-darwin8.patch gdb-apple-768-darwin-arch.patch gdb-apple-563-no-64bit.patch
@ 2009-06-21 10:38 Fabian Groffen (grobian)
0 siblings, 0 replies; only message in thread
From: Fabian Groffen (grobian) @ 2009-06-21 10:38 UTC (permalink / raw
To: gentoo-commits
grobian 09/06/21 10:38:26
Added: gdb-apple-563-darwin7.patch
gdb-apple-768-texinfo.patch
gdb-apple-962-darwin8.patch
gdb-apple-768-darwin-arch.patch
gdb-apple-563-no-64bit.patch
Log:
add sys-devel/gdb-apple from Gentoo Prefix tree
(Portage version: 2.1.6.13/cvs/Linux x86_64)
Revision Changes Path
1.1 sys-devel/gdb-apple/files/gdb-apple-563-darwin7.patch
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gdb-apple/files/gdb-apple-563-darwin7.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gdb-apple/files/gdb-apple-563-darwin7.patch?rev=1.1&content-type=text/plain
Index: gdb-apple-563-darwin7.patch
===================================================================
* Fabian Groffen <grobian@gentoo.org>
Mac OS X Panther (10.3) doesn't have mach_vm_size_t yet, and
apparently this was forseen in macosx-nat-inferior-debug.c. However,
macosx-nat-inferior-debug.h also uses the provided types, hence we
move the backwards-compatibility logic to the .h file.
* Fabian Groffen <grobian@gentoo.org>
On Mac OS X Panther (10.3) an older version of the Launch Services is
available, which doesn't cover the requirements made by Xcode here.
Because it's for Xcode only, and we don't use it on Gentoo, we just
enable the functionality that doesn't compile on 10.3.
--- gdb/macosx/macosx-nat-inferior-debug.c
+++ gdb/macosx/macosx-nat-inferior-debug.c
@@ -53,24 +53,6 @@
#include <AvailabilityMacros.h>
-#define MACH64 (MAC_OS_X_VERSION_MAX_ALLOWED >= 1040)
-
-#if MACH64
-
-#include <mach/mach_vm.h>
-
-#else /* ! MACH64 */
-
-#define mach_vm_size_t vm_size_t
-#define mach_vm_address_t vm_address_t
-#define mach_vm_read vm_read
-#define mach_vm_write vm_write
-#define mach_vm_region vm_region
-#define VM_REGION_BASIC_INFO_COUNT_64 VM_REGION_BASIC_INFO_COUNT
-#define VM_REGION_BASIC_INFO_64 VM_REGION_BASIC_INFO
-
-#endif /* MACH64 */
-
FILE *inferior_stderr = NULL;
int inferior_debug_flag = 0;
int timestamps_debug_flag = 0;
--- gdb/macosx/macosx-nat-inferior-debug.h
+++ gdb/macosx/macosx-nat-inferior-debug.h
@@ -6,6 +6,24 @@
#include "defs.h"
+#define MACH64 (MAC_OS_X_VERSION_MAX_ALLOWED >= 1040)
+
+#if MACH64
+
+#include <mach/mach_vm.h>
+
+#else /* ! MACH64 */
+
+#define mach_vm_size_t vm_size_t
+#define mach_vm_address_t vm_address_t
+#define mach_vm_read vm_read
+#define mach_vm_write vm_write
+#define mach_vm_region vm_region
+#define VM_REGION_BASIC_INFO_COUNT_64 VM_REGION_BASIC_INFO_COUNT
+#define VM_REGION_BASIC_INFO_64 VM_REGION_BASIC_INFO
+
+#endif /* MACH64 */
+
extern FILE *inferior_stderr;
extern int inferior_debug_flag;
--- gdb/macosx/macosx-tdep.c
+++ gdb/macosx/macosx-tdep.c
@@ -413,6 +413,7 @@
} BabelAESelInfo;
#pragma options align=reset
+#if (MAC_OS_X_VERSION_MAX_ALLOWED >= 1040)
static int
open_file_with_LS (const char *file_path, int lineno)
{
@@ -538,7 +539,9 @@
return 1;
}
+#endif
+#if (MAC_OS_X_VERSION_MAX_ALLOWED >= 1040)
/* Opens the file pointed to in ARGS with the default editor
given by LaunchServices. If ARGS is NULL, opens the current
source file & line. You can also supply file:line and it will
@@ -609,6 +612,7 @@
open_file_with_LS (filename, line_no);
}
+#endif
void
_initialize_macosx_tdep ()
@@ -618,13 +622,15 @@
add_info ("trampoline", info_trampoline_command,
"Resolve function for DYLD trampoline stub and/or Objective-C call");
+#if (MAC_OS_X_VERSION_MAX_ALLOWED >= 1040)
c = add_com ("open", class_support, open_command, _("\
Open the named source file in an application determined by LaunchServices.\n\
With no arguments, open the currently selected source file.\n\
Also takes file:line to hilight the file at the given line."));
set_cmd_completer (c, filename_completer);
add_com_alias ("op", "open", class_support, 1);
add_com_alias ("ope", "open", class_support, 1);
+#endif
add_com ("flushstack", class_maintenance, stack_flush_command,
"Force gdb to flush its stack-frame cache (maintainer command)");
1.1 sys-devel/gdb-apple/files/gdb-apple-768-texinfo.patch
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gdb-apple/files/gdb-apple-768-texinfo.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gdb-apple/files/gdb-apple-768-texinfo.patch?rev=1.1&content-type=text/plain
Index: gdb-apple-768-texinfo.patch
===================================================================
--- src/Makefile.in
+++ src/Makefile.in
@@ -280,6 +280,6 @@
then echo $$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo ; \
else if (${CONFIGURED_MAKEINFO} --version \
- | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[2-9]|[5-9])') >/dev/null 2>&1; \
+ | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[2-9]|4\.[1-9][0-9]|[5-9])') >/dev/null 2>&1; \
then echo ${CONFIGURED_MAKEINFO}; else echo $$s/missing makeinfo; fi; fi`
# This just becomes part of the MAKEINFO definition passed down to
1.1 sys-devel/gdb-apple/files/gdb-apple-962-darwin8.patch
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gdb-apple/files/gdb-apple-962-darwin8.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gdb-apple/files/gdb-apple-962-darwin8.patch?rev=1.1&content-type=text/plain
Index: gdb-apple-962-darwin8.patch
===================================================================
* 10.4 doesn't have posix spawn, but fortunately it's only used on ARM
(iPhone), so we can still compile it
--- src/gdb/macosx/macosx-nat-inferior.c
+++ src/gdb/macosx/macosx-nat-inferior.c
@@ -58,7 +58,9 @@
#include <sys/sysctl.h>
#include <sys/proc.h>
#include <mach/mach_error.h>
+#ifdef TARGET_ARM
#include <spawn.h>
+#endif
#include "macosx-nat-dyld.h"
#include "macosx-nat-inferior.h"
1.1 sys-devel/gdb-apple/files/gdb-apple-768-darwin-arch.patch
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gdb-apple/files/gdb-apple-768-darwin-arch.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gdb-apple/files/gdb-apple-768-darwin-arch.patch?rev=1.1&content-type=text/plain
Index: gdb-apple-768-darwin-arch.patch
===================================================================
* configure checks for /usr/bin/arch to determine whether "arch" is ok
to use, so don't rely on the path at runtime, since GNU arch doesn't
understand -arch at all (and only returns the current arch name)
--- src/gdb/fork-child.c
+++ src/gdb/fork-child.c
@@ -243,7 +243,7 @@
arch_string = "x86_64";
#endif
if (arch_string != NULL)
- sprintf (shell_command, "%s exec arch -arch %s ", shell_command, arch_string);
+ sprintf (shell_command, "%s exec /usr/bin/arch -arch %s ", shell_command, arch_string);
else
strcat (shell_command, "exec ");
}
1.1 sys-devel/gdb-apple/files/gdb-apple-563-no-64bit.patch
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gdb-apple/files/gdb-apple-563-no-64bit.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gdb-apple/files/gdb-apple-563-no-64bit.patch?rev=1.1&content-type=text/plain
Index: gdb-apple-563-no-64bit.patch
===================================================================
* Fabian Groffen <grobian@gentoo.org>
On Gentoo, when the user doesn't have a 64-bits capable CPU, we
compile GCC without multi-lib support. Hence, 64-bits defines are not
available so we better not use them if we don't have __ppc64__
defined.
--- gdb/macosx/macosx-nat-dyld.c
+++ gdb/macosx/macosx-nat-dyld.c
@@ -619,8 +619,10 @@
structures. */
if (header.cputype == CPU_TYPE_POWERPC || header.cputype == CPU_TYPE_I386)
osabi_seen_in_attached_dyld = GDB_OSABI_DARWIN;
+#if defined(__ppc64__)
if (header.cputype == CPU_TYPE_POWERPC64 || header.cputype == GDB_CPU_TYPE_X86_64)
osabi_seen_in_attached_dyld = GDB_OSABI_DARWIN64;
+#endif
}
/* Once we know the address at which dyld was loaded, we can try to
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-06-21 10:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-21 10:38 [gentoo-commits] gentoo-x86 commit in sys-devel/gdb-apple/files: gdb-apple-563-darwin7.patch gdb-apple-768-texinfo.patch gdb-apple-962-darwin8.patch gdb-apple-768-darwin-arch.patch gdb-apple-563-no-64bit.patch Fabian Groffen (grobian)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox