Re: gdb supported on powerpc-apple-darwin ?

Mario Emmenlauer
2008-08-16T15:54:09Z

[-- Attachment #1: Type: text/plain, Size: 732 bytes --]

Hi,

Daniel Jacobowitz wrote:
> On Sat, Aug 16, 2008 at 04:44:57PM +0200, Mario Emmenlauer wrote:
>> it seems a rather trivial question, however I could not easily find
>> the answer: is 'plain' FSF gdb supported on Mac OS X (ppc darwin)?
>
> No. That's what this means:
>
>> *** This configuration is not supported in the following subdirectories:
>> bfd opcodes gdb sim

Fair enough :-)

BTW: the error message appears just after invoking configure, and is
not re-displayed later. This is why I missed it the first time. When
the 'gdb' directory is not supported, it might be sensible to show a
big warning at the configure results?

A start might be something like the below patch to configure.ac.

Cheers,

Mario

[-- Attachment #2: configure.ac.patch --]
[-- Type: text/plain, Size: 873 bytes --]

--- gdb-6.8/configure.ac 2008-03-27 19:27:19.000000000 +0100
+++ /tmp/configure.ac 2008-08-16 17:50:22.000000000 +0200
@@ -1632,8 +1632,14 @@
# Okay, some application will build, or we don't care to check. Still
# notify of subdirs not getting built.
echo "*** This configuration is not supported in the following subdirectories:" 1>&2
- echo " ${notsupp}" 1>&2
- echo " (Any other directories should still work fine.)" 1>&2
+ echo " ${notsupp}" 1>&2
+ if echo " ${notsupp} " | grep " gdb " >/dev/null 2>&1; then
+ echo " which means gdb will not be built on this platform!" 1>&2
+ echo " Continuing, though possible, is most likely not what you want." 1>&2
+ echo " (However other directories should still work fine.)" 1>&2
+ else
+ echo " (Any other directories should still work fine.)" 1>&2
+ fi
fi

case "$host" in