From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: aprekates Newsgroups: gmane.emacs.help Subject: Re: Trying to debug assemly Date: Wed, 18 Dec 2019 04:30:38 +0200 Message-ID: <8d2558b9-2232-8533-e2a2-951bec8c625c@posteo.net> References: <7d7b1cc5-7321-10b8-6f03-1aeceeaef42c@posteo.net> <87d0cntnro.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="9012"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.0 To: Andrew Savonichev , Help Gnu Emacs mailing list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 18 03:31:23 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ihP7S-0002Ax-GG for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Dec 2019 03:31:22 +0100 Original-Received: from localhost ([::1]:48678 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ihP7R-0005Xb-0e for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Dec 2019 21:31:21 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50419) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ihP70-0005VM-D4 for help-gnu-emacs@gnu.org; Tue, 17 Dec 2019 21:30:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ihP6y-0001Jx-7a for help-gnu-emacs@gnu.org; Tue, 17 Dec 2019 21:30:53 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]:55059) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ihP6x-0001FO-Kv for help-gnu-emacs@gnu.org; Tue, 17 Dec 2019 21:30:52 -0500 Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id F0E972400FB for ; Wed, 18 Dec 2019 03:30:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1576636249; bh=raqkkMn5BoOrTOZRkfzJlR68EacP2p16+tAQjD/AfXk=; h=Subject:To:From:Date:From; b=Tct/n1QfmHCIasc7ZAfnfcxqnoJLRuqiHNxWd25MLeJyj4YR8CFfsyfa3umMTHx2T ubcA66p3YR6GPnRxskMJMKOuu1+8J2K2dEQMV8M0I0ONOTCmT9r8+CDMshKxrwdI9C rxqX0qAB069H4sql6FHMWFgL0TxuoP971guR3TW64EuB+TvLf8KRMvpNRSz4awiYUt 0W13V0bON78SU5Vd0kOcwn+zyo+4NGveXIsaauVkusaHlfG11fXxaQIitGh8vWBbc8 7CLBz0whxKlFUGmzQPuWvz44k19BCIiNn5f4fmsVqTA4DWrifnM01tRA1otXdIfrZ/ yePuvZvmcUWuw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 47czWg3YTrz9rxB; Wed, 18 Dec 2019 03:30:39 +0100 (CET) In-Reply-To: <87d0cntnro.fsf@gmail.com> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 185.67.36.66 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:122058 Archived-At: Thanks. That worked. Although i dont quite understand what is the /GDB/MI=20 interface./ I=C2=A0 also enabled the option : GUD / GDB-MI / Display other windows If i dont do that the other windows like breakpoints,registers etc wont=20 close when i give the gdb> quit but i have to M-x kill-buffer each one. Alexandros On 17/12/19 9:27 =CF=80.=CE=BC., Andrew Savonichev wrote: > aprekates writes: >> I have a simp cpuid.s assemblied to cpuid.o and linked to create a >> cpuid executable. >> >> In emacs i do : >> >> M-x gdb >> >> and i give as argument the cpuid path. >> >> I get : >> >> Reading symbols from >> /home/chomwitt/Programming/Assembly/Blum/code/chap04/cpuid...done. >> (gdb) Undefined command: "1-inferior-tty-set".=C2=A0 Try "help". >> (gdb) Undefined command: "2-gdb-set".=C2=A0 Try "help". >> >> [...] >> >> What are those lines mean? Are those warnings or bugs? >> > M-x gdb gives you a default command `gdb -i=3Dmi'. Make sure you don't > delete this `-i=3Dmi' option, and just add a path to an executable: > > M-x gdb > gdb -i=3Dmi /path/to/cpuid > > More about `-i=3Dmi' option: > https://sourceware.org/gdb/onlinedocs/gdb/GDB_002fMI.html >