From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27371 invoked by alias); 20 Mar 2011 15:17:59 -0000 Received: (qmail 27363 invoked by uid 22791); 20 Mar 2011 15:17:58 -0000 X-SWARE-Spam-Status: No, hits=0.7 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mailrelay010.isp.belgacom.be (HELO mailrelay010.isp.belgacom.be) (195.238.6.177) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 20 Mar 2011 15:17:52 +0000 X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnkKAB+2hU1tgHYE/2dsb2JhbACDCocKjl6MeniIRrZ2DYVWBA Received: from 4.118-128-109.adsl-dyn.isp.belgacom.be (HELO soleil) ([109.128.118.4]) by relay.skynet.be with SMTP; 20 Mar 2011 16:17:49 +0100 Message-ID: <4273EBCDD5A84BBCB5A9A5556F454007@soleil> From: "Philippe Waroquiers" To: Cc: Subject: Valgrind gdbserver patch : help needed for linux-arm/s390x/ppc32-64 and MacOS Date: Sun, 20 Mar 2011 15:17:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit 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-03/txt/msg00106.txt.bz2 I have attached a new version of the Valgrind gdbserver patch in https://bugs.kde.org/show_bug.cgi?id=214909 It should work on any x86/amd64 Linux (has been tested with gdb 7.2 on f12-x86, f14-amd64, ubuntu10.10-x86, red-hat 5.2-amd64). A previous version has been compiled and manually tested on Macos, so it should not be too difficult to have it working on MacOS. I had only access during 3 hours to a Mac so for MacOS, some more "ptrace related" work is needed in vgdb.c to have it fully functional (i.e. allow gdb to "contact" a process with all threads blocked in a system call). Linux-arm/s390x/ppc32/ppc64 : in theory, it should compile, and many fucntionalities should work once compiled (e.g. external command handling, read/write memory, breakpoints, etc). To have it fully working (e.g. backtrace, info registers, ...), some (easy) work is needed (e.g. in valgrind-low-arm.c, valgrind-low-s390x, etc ) to add a 'switch' mapping the gdb registers to the valgrind registers and to add a 'dummy call pusher' in vgdb.c. Any feedback/comment (and help for platforms I do not have access to :) is welcome. Philippe