all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: aprekates <aprekates@posteo.net>
To: Andrew Savonichev <andrew.savonichev@gmail.com>,
	Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Re: Trying to debug assemly
Date: Wed, 18 Dec 2019 04:30:38 +0200	[thread overview]
Message-ID: <8d2558b9-2232-8533-e2a2-951bec8c625c@posteo.net> (raw)
In-Reply-To: <87d0cntnro.fsf@gmail.com>

Thanks.

That worked. Although i dont quite understand what is the /GDB/MI 
interface./

I  also enabled the option : GUD / GDB-MI / Display other windows

If i dont do that the other windows like breakpoints,registers etc wont 
close when i give the gdb> quit but i have to M-x kill-buffer each one.

Alexandros

On 17/12/19 9:27 π.μ., Andrew Savonichev wrote:
> aprekates <aprekates@posteo.net> 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".  Try "help".
>> (gdb) Undefined command: "2-gdb-set".  Try "help".
>>
>> [...]
>>
>> What are those lines mean? Are those warnings or bugs?
>>
> M-x gdb gives you a default command `gdb -i=mi'. Make sure you don't
> delete this `-i=mi' option, and just add a path to an executable:
>
>    M-x gdb
>    gdb -i=mi /path/to/cpuid
>
> More about `-i=mi' option:
>    https://sourceware.org/gdb/onlinedocs/gdb/GDB_002fMI.html
>


  reply	other threads:[~2019-12-18  2:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-17  1:22 Trying to debug assemly aprekates
2019-12-17  7:27 ` Andrew Savonichev
2019-12-18  2:30   ` aprekates [this message]
2019-12-18  8:39     ` tomas
2019-12-19  0:38       ` aprekates
2019-12-19  1:18         ` aprekates
2019-12-17  9:08 ` VanL

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8d2558b9-2232-8533-e2a2-951bec8c625c@posteo.net \
    --to=aprekates@posteo.net \
    --cc=andrew.savonichev@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.