ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: gosha <embedded@nm.ru>
To: community@lists.altlinux.org
Subject: Re: [Comm] gdb- аналог утилиты debug(msdos) под linux
Date: Fri, 15 Sep 2006 04:31:38 +0400
Message-ID: <142925986.20060915043138@nm.ru> (raw)
In-Reply-To: <mailman.51.1158243747.25901.community@lists.altlinux.org>

Здравствуйте.

>> Как gdb дать permission на всеь диапазон портов и памяти?
crlao> Учитывая что в более других операционках чем DOS, память у любой
crlao> задачи ВИРТУАЛЬНАЯ, то выдать такой доступ не может никто:) И опять
crlao> таки прямой доступ к портам возможен только из ядра, а все остальное
crlao> доступается через API...
crlao> -- 
crlao> С уважением,
crlao> Евгений Остапец
crlao> uin: 23747217
crlao> jid: eugene_ostapets@jabber.ru  

Можно и через через системные вызовы open() и seek() read() write() ?
Так работатет shared_memory (межпрограммное взаимодествие через общую (разделяемую) память)

Действ это называются .

Но проблема не поменялась :
----------------
(gdb)set mem 0xbfc40040 0xbfc40044 rw 32 nocache
(gdb)set variable *(0xbfc40040)=0x00000000
(gdb)cannot acess memory at adress 0xbfc40040
----------------
 - как я понял, gdb не дают просто так изменить содержание конфигурационного регистра.

Можно читать и писать физическую RAM через outpb() outpw() outpw() если дать программе
соотв привилегии http://www.die.net/doc/linux/man/man2/iopl.2.html
Я проверял, под x86 моя программка работала.


-- 
С Уважением,
         gosha    
              mailto:embedded@nm.ru





       reply	other threads:[~2006-09-15  0:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-15  0:31 ` gosha [this message]
2006-09-15  5:23   ` Damir Shayhutdinov
2006-09-15  8:50     ` Sergey Vlasov

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=142925986.20060915043138@nm.ru \
    --to=embedded@nm.ru \
    --cc=community@lists.altlinux.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

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git