From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from barracuda.ebox.ca (barracuda.ebox.ca [96.127.255.19]) by sourceware.org (Postfix) with ESMTPS id C6901385E82C for ; Mon, 16 Mar 2020 17:08:49 +0000 (GMT) X-ASG-Debug-ID: 1584378526-0c856e18f3b31c80001-fS2M51 Received: from smtp.ebox.ca (smtp.ebox.ca [96.127.255.82]) by barracuda.ebox.ca with ESMTP id ZoLJEupiszMDlqjH (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 16 Mar 2020 13:08:46 -0400 (EDT) X-Barracuda-Envelope-From: simon.marchi@polymtl.ca X-Barracuda-RBL-Trusted-Forwarder: 96.127.255.82 Received: from simark.lan (unknown [192.222.164.54]) by smtp.ebox.ca (Postfix) with ESMTP id A0CAB441B21; Mon, 16 Mar 2020 13:08:46 -0400 (EDT) From: Simon Marchi X-Barracuda-Effective-Source-IP: 192-222-164-54.qc.cable.ebox.net[192.222.164.54] X-Barracuda-Apparent-Source-IP: 192.222.164.54 X-Barracuda-RBL-IP: 192.222.164.54 To: gdb-patches@sourceware.org Cc: Eli Zaretskii , Jon Turney , Simon Marchi Subject: [PATCH 0/7] Add "Windows" OS ABI Date: Mon, 16 Mar 2020 13:08:38 -0400 X-ASG-Orig-Subj: [PATCH 0/7] Add "Windows" OS ABI Message-Id: <20200316170845.184386-1-simon.marchi@polymtl.ca> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Barracuda-Connect: smtp.ebox.ca[96.127.255.82] X-Barracuda-Start-Time: 1584378526 X-Barracuda-Encrypted: DHE-RSA-AES256-SHA X-Barracuda-URL: https://96.127.255.19:443/cgi-mod/mark.cgi X-Barracuda-Scan-Msg-Size: 2040 X-Virus-Scanned: by bsmtpd at ebox.ca X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=8.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.80637 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Spam-Status: No, score=-8.5 required=5.0 tests=GIT_PATCH_2, GIT_PATCH_3, KAM_DMARC_QUARANTINE, KAM_DMARC_STATUS, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_SOFTFAIL autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Mar 2020 17:08:51 -0000 This patchset started out as a single patch to have the OS ABI Cygwin applied to Windows x86-64 binaries, here: https://sourceware.org/legacy-ml/gdb-patches/2020-03/msg00195.html with the follow-up here: https://sourceware.org/pipermail/gdb-patches/2020-March/000022.html Eli pointed out that it doesn't make sense for binaries compilied with MinGW to have the Cygwin OS ABI, that there should be separate OS ABIs for Cygwin and non-Cygwin Windows binaries. This already came up in the following bug report: https://sourceware.org/bugzilla/show_bug.cgi?id=21500#add_comment This patchset does a bit of refactor in that area. Most importantly, it: - adds a "Windows" OS ABI - makes GDB recognize the proper OS ABI (Cygwin or Windows) when loading executables - makes the builtin long type on Cygwin be 64 bits long Simon Marchi (7): gdb: recognize 64 bits Windows executables as Cygwin osabi gdb: move enum gdb_osabi to osabi.h gdb: add Windows OS ABI gdb: rename i386-cygwin-tdep.c to i386-windows-tdep.c gdb: rename content of i386-windows-tdep.c, cygwin to windows gdb: select "Cygwin" OS ABI for Cygwin binaries gdb: define builtin long type to be 64 bits on amd64 Cygwin gdb/Makefile.in | 4 +- gdb/amd64-windows-tdep.c | 41 ++++++- gdb/configure.tgt | 10 +- gdb/defs.h | 31 ------ gdb/gdbarch.h | 1 + gdb/gdbarch.sh | 1 + ...i386-cygwin-tdep.c => i386-windows-tdep.c} | 45 +++++--- gdb/osabi.c | 1 + gdb/osabi.h | 32 ++++++ gdb/windows-tdep.c | 101 ++++++++++++++++++ gdb/windows-tdep.h | 6 ++ 11 files changed, 215 insertions(+), 58 deletions(-) rename gdb/{i386-cygwin-tdep.c => i386-windows-tdep.c} (83%) -- 2.25.1