From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5795 invoked by alias); 23 Jun 2011 20:07:44 -0000 Received: (qmail 5784 invoked by uid 22791); 23 Jun 2011 20:07:43 -0000 X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp.nokia.com (HELO mgw-sa01.nokia.com) (147.243.1.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 23 Jun 2011 20:07:29 +0000 Received: from bettdhcp167182.europe.nokia.com (bettdhcp167182.europe.nokia.com [172.25.167.182]) by mgw-sa01.nokia.com (Switch-3.4.4/Switch-3.4.3) with ESMTP id p5NK7QlS007746 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Thu, 23 Jun 2011 23:07:26 +0300 From: Fawzi Mohamed Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: patches for mac support Date: Thu, 23 Jun 2011 20:07:00 -0000 Message-Id: <9B2A7195-51A9-4F40-97B9-159E041D3174@nokia.com> To: gdb@sourceware.org Mime-Version: 1.0 (Apple Message framework v1084) X-Nokia-AV: Clean X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-06/txt/msg00137.txt.bz2 Hi all, I have worked on bug http://sourceware.org/bugzilla/show_bug.cgi?id=3D11488= . Now I think that I have reached to bottom of it, and I have a set of clean = patches that could use a review. Apple gdb simply ignores the eh_frame sections for the libraries without em= bedded dwarf info, not using eh information (which was the first patch that= I submitted) but I find that one should be able to use them, so I looked f= urther and found the "correct" fix. As the path to it was a bit convoluted I have done a few improvements to pi= eces of code that did fail as consequence of the original bug. The "main" fix is http://sourceware.org/bugzilla/attachment.cgi?id=3D5816&action=3Ddiff which fixes the mmaped read of sections. I feel that http://sourceware.org/bugzilla/attachment.cgi?id=3D5817 which adds a check on the cie pointer is important and improves gdb robustn= ess and should also go in. http://sourceware.org/bugzilla/attachment.cgi?id=3D5814 adds the forgotten ignore of routine_64 load command, and should also go in http://sourceware.org/bugzilla/attachment.cgi?id=3D5809 is something that I have seen apple does and seems reasonable, but I have n= ot needed it, so I am not sure if it should go in I have also noted that compiling gdb I have the following conflict in the g= rammar, not sure if you are aware of it /bin/sh ../../gdb72/gdb/../ylwrap ../../gdb72/gdb/m2-exp.y y.tab.c m2-exp.c= .tmp -- bison -y conflicts: 34 shift/reduce /Users/fawzi/dev/gdb/gdb72Build/gdb/../../gdb72/gdb/m2-exp.y:355.25-44: war= ning: rule never reduced because of conflicts: @2: /* empty */ ciao Fawzi