From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24940 invoked by alias); 28 Jun 2003 15:02:01 -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 24926 invoked from network); 28 Jun 2003 15:02:00 -0000 Received: from unknown (HELO lakemtao01.cox.net) (68.1.17.244) by sources.redhat.com with SMTP; 28 Jun 2003 15:02:00 -0000 Received: from white ([68.9.191.65]) by lakemtao01.cox.net (InterMail vM.5.01.04.05 201-253-122-122-105-20011231) with ESMTP id <20030628150200.FHPV8337.lakemtao01.cox.net@white> for ; Sat, 28 Jun 2003 11:02:00 -0400 Received: from bob by white with local (Exim 3.35 #1 (Debian)) id 19WHDD-0000kM-00 for ; Sat, 28 Jun 2003 11:01:59 -0400 Date: Sat, 28 Jun 2003 15:20:00 -0000 From: Bob Rossi To: gdb@sources.redhat.com Subject: source with inlined assembly Message-ID: <20030628150159.GA2774@white> Mail-Followup-To: gdb@sources.redhat.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.28i X-SW-Source: 2003-06/txt/msg00524.txt.bz2 Hi, I am investigating the best way to show the user assembly code via my front end called cgdb. It appears that there is a disassemble function that will get the assembly code. Is there any way to nicely show to the user the source with the assembly inlined between the source lines? Can I ask gdb for the assembly for 1 source line of code? Then can I ask it the assembly for every source line of code in a file? What is the mechanism for doing this with a front end? I really want to stay away from parsing the output of the disassemble command to try to guess which assembly lines go with the source code. Also, if up till now there is only a disassemble function and this doesn't supply a front end with what I am asking for, does this seem like a good feature to add to the mi command set? Thanks for your time, Bob Rossi