From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27508 invoked by alias); 24 Mar 2003 21:41:20 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 27501 invoked from network); 24 Mar 2003 21:41:19 -0000 Received: from unknown (HELO dragon.realtime.net) (205.238.132.78) by sources.redhat.com with SMTP; 24 Mar 2003 21:41:19 -0000 Received: from groves.net ([24.27.27.109]) by dragon.realtime.net ; Mon, 24 Mar 2003 15:41:18 -0600 Message-ID: <3E7F7B94.2040104@Groves.net> Date: Mon, 24 Mar 2003 21:41:00 -0000 From: John Groves User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021130 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gdb@sources.redhat.com Subject: Cross-platform gdb/kgdb Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-03/txt/msg00335.txt.bz2 I'm hoping someone can point me in the right direction...or tell me it ain't worth trying... I need to do some kernel debugging with an HP IA-64 system (hpux), and it's the only hpux box available. It would be cool to compile a linux-resident gdb that would run as the kgdb control system for the IA-64 hpux target. FYI (you may know) hp maintains "kwdb" which is gdb/kgdb for hpux, so I have the code for the target system. But hp hasn't tried cross-platform. Q: Are the sources in the gdb build tree organized such that I can make the target system include files available without them getting mixed up with the host system includes? Having run "./configure --host=i386-unknown-linux --target=ia64-hp", I note that files in the gdb directory need access to *target* system include files; but I also see plenty of sources in that directory that include stuff that should probably be local (fcntl, curses, stuff like that). Q: If it's not completely futile, where could I look for an example or any helpful info? Thanks, John Groves