From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 434 invoked by alias); 25 Aug 2008 17:23:21 -0000 Received: (qmail 425 invoked by uid 22791); 25 Aug 2008 17:23:20 -0000 X-Spam-Check-By: sourceware.org Received: from mx2.redhat.com (HELO mx2.redhat.com) (66.187.237.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 25 Aug 2008 17:22:46 +0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id m7PHLWF6003844; Mon, 25 Aug 2008 13:22:02 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m7PHLKkh022184; Mon, 25 Aug 2008 13:21:21 -0400 Received: from lindt.uglyboxes.com (sebastian-int.corp.redhat.com [172.16.52.221]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id m7PHLDKh018088; Mon, 25 Aug 2008 13:21:14 -0400 Message-ID: <48B2EA09.2080608@redhat.com> Date: Mon, 25 Aug 2008 17:23:00 -0000 From: Keith Seitz User-Agent: Thunderbird 2.0.0.14 (X11/20080421) MIME-Version: 1.0 To: Tommy CC: insight@sourceware.org Subject: Re: Problems with SrcWin References: <724307610808250023p50d88eddr7fd5b097ca4f0076@mail.gmail.com> In-Reply-To: <724307610808250023p50d88eddr7fd5b097ca4f0076@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact insight-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sourceware.org X-SW-Source: 2008-q3/txt/msg00041.txt.bz2 Tommy wrote: > (1) after Insight is connected to target, the Control menu and > button items are still disabled. They'll be enabled after some actions > are done (ex. execute 'stepi' from ConsoleWindow.) This is usually caused by inferior code not setting a fake ptid for the UI. This is a very common problem with non-native targets. You can check this by inspecting the function gdb_target_has_execution. Check out what the remote target does in extended_remote_create_inferior_1 (it sets inferior_ptid to some made up non-NULL entity). The value does not matter -- that it is non-NULL is all that is required. > (2) after Insight is connected to target, the SrcWin displays > nothing... (there is no 'file', 'load', and 'symbol-file' command > executed.) I think, if there is no corresponding symbolic info, it > should fetch memory contents near $PC and display disassembled > instructions. Open a console window and type "list". If gdb does not return something, than Insight cannot, either. Insight will disassemble around $PC *if* gdb can find a function containing the PC (so that it knows the bounds of the function to disassemble). This is a gdb limitation that Insight has not worked around yet (and probably never will). Keith