From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8106 invoked by alias); 28 Dec 2007 01:21:14 -0000 Received: (qmail 8056 invoked by uid 22791); 28 Dec 2007 01:21:13 -0000 X-Spam-Check-By: sourceware.org Received: from fg-out-1718.google.com (HELO fg-out-1718.google.com) (72.14.220.154) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 28 Dec 2007 01:21:07 +0000 Received: by fg-out-1718.google.com with SMTP id e12so1587411fga.0 for ; Thu, 27 Dec 2007 17:21:05 -0800 (PST) Received: by 10.82.121.15 with SMTP id t15mr15604540buc.26.1198804864345; Thu, 27 Dec 2007 17:21:04 -0800 (PST) Received: from ?88.210.77.177? ( [88.210.77.177]) by mx.google.com with ESMTPS id c4sm6608271nfi.22.2007.12.27.17.21.01 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 27 Dec 2007 17:21:04 -0800 (PST) Message-ID: <47744F79.5020706@portugalmail.pt> Date: Fri, 28 Dec 2007 01:21:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: gdb-patches@sourceware.org CC: Bogdan Slusarczyk Subject: PR/2386 [1/2]: MinGW attach to process without an exec file Content-Type: multipart/mixed; boundary="------------060408070304050002070708" X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-12/txt/msg00427.txt.bz2 This is a multi-part message in MIME format. --------------060408070304050002070708 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 653 We currently don't set a default gdb_osabi for MinGW, Cygwin or WinCE, Having a default osabi allows gdb to set a useful current_gdbarch if for some reason gdb isn't able to open a bfd to the executable. For multi-target builds, the default will probably not make sense for any other target than the native -- so we may want to move this default osabi somewhere else, like the target interface, or moving the target string matching into runtime code, but that's for another day. The patch just follows status quo. Tested on XP Pro SP2, i686-pc-cygwin. There is a regression, because now Cygwin will also trip on gdb/2225. OK ? -- Pedro Alves --------------060408070304050002070708 Content-Type: text/x-diff; name="win32_default_osabi.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="win32_default_osabi.diff" Content-length: 818 2007-12-28 Pedro Alves * configure.tgt (*-*-mingw32ce*): Set gdb_osabi to GDB_OSABI_WINCE. (*-*-mingw* | *-*-cygwin*): Set gdb_osabi to GDB_OSABI_CYGWIN. --- gdb/configure.tgt | 3 +++ 1 file changed, 3 insertions(+) Index: src/gdb/configure.tgt =================================================================== --- src.orig/gdb/configure.tgt 2007-12-26 23:46:34.000000000 +0000 +++ src/gdb/configure.tgt 2007-12-27 00:50:52.000000000 +0000 @@ -530,4 +530,7 @@ m68*-*-openbsd* | m88*-*-openbsd* | vax- *-*-solaris*) gdb_osabi=GDB_OSABI_SOLARIS ;; *-*-*-gnu*) ;; # prevent non-GNU kernels to match the Hurd rule below *-*-gnu*) gdb_osabi=GDB_OSABI_HURD ;; +*-*-mingw32ce*) gdb_osabi=GDB_OSABI_WINCE ;; +*-*-mingw* | *-*-cygwin*) + gdb_osabi=GDB_OSABI_CYGWIN ;; esac --------------060408070304050002070708--