This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RE: [PATCH v2] Added file properties to windows gdb executable for all mingw32 builds.
- From: "Bunk, Bernd" <bernd dot bunk at intel dot com>
- To: asmwarrior <asmwarrior at gmail dot com>
- Cc: Eli Zaretskii <eliz at gnu dot org>, "tromey at redhat dot com" <tromey at redhat dot com>, "palves at redhat dot com" <palves at redhat dot com>, "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Fri, 23 Aug 2013 14:55:34 +0000
- Subject: RE: [PATCH v2] Added file properties to windows gdb executable for all mingw32 builds.
- References: <1377161766-8318-1-git-send-email-bernd dot bunk at intel dot com> <8361uxkbi9 dot fsf at gnu dot org> <E2C54CDFBA86B845B3B075E2B2042A91202566CA at IRSMSX106 dot ger dot corp dot intel dot com> <5217713C dot 4010208 at gmail dot com>
> -----Original Message-----
> From: asmwarrior [mailto:asmwarrior@gmail.com]
> Sent: Friday, August 23, 2013 4:27 PM
> To: Bunk, Bernd
> Cc: Eli Zaretskii; tromey@redhat.com; palves@redhat.com; gdb-
> patches@sourceware.org
> Subject: Re: [PATCH v2] Added file properties to windows gdb executable
> for all mingw32 builds.
>
> On 2013-8-23 21:44, Bunk, Bernd wrote:
> >>> > > +#include "afxres.h"
> >> >
> >> > Is this header really needed?
> > Yes, unfortunately.
> > This header file "implements" the resource language used below in the
> RC file.
> >
>
> I looked at afxres.h file under a mingw distribution (GCC 4.6.3 with
> MinGW-W64 API), its contents is below
Ok, my apologies for the wrong assumption. In 13 years Windows GUI programming I haven't seen an RC file without this afxres.h include. But I just tested it and it works fine with windows.h. It even compiles and links without any include, but then the complete file properties are empty at the end. I will include windows.h. [see next update]
>
> /**
> * This file has no copyright assigned and is placed in the Public
> Domain.
> * This file is part of the w64 mingw-runtime package.
> * No warranty is given; refer to the file DISCLAIMER.PD within this
> package.
> */
> #ifndef _AFXRES_H
> #define _AFXRES_H
> #if __GNUC__ >= 3
> #pragma GCC system_header
> #endif
>
> #ifdef __cplusplus
> extern "C" {
> #endif
>
> #ifndef _INC_WINDOWS
> #include <windows.h>
> #endif
>
> /* IDC_STATIC is documented in winuser.h, but not defined. */ #ifndef
> IDC_STATIC #define IDC_STATIC (-1) #endif
>
> #ifdef __cplusplus
> }
> #endif
> #endif
>
>
>
> Look, it just includes windows.h.
>
>
> Yuanhui Zhang
>
Intel GmbH
Dornacher Strasse 1
85622 Feldkirchen/Muenchen, Deutschland
Sitz der Gesellschaft: Feldkirchen bei Muenchen
Geschaeftsfuehrer: Christian Lamprechter, Hannes Schwaderer, Douglas Lusk
Registergericht: Muenchen HRB 47456
Ust.-IdNr./VAT Registration No.: DE129385895
Citibank Frankfurt a.M. (BLZ 502 109 00) 600119052