(fwd) Re: Debuggers

Andrey Gerzhov (kittle@freeland.alex-ua.com)
Fri, 14 Nov 1997 13:20:28 +0200 (EET)

-- forwarded message --
Path: freeland.alex-ua.com!barmaglot.alexradio.kiev.ua!f188.n463.z2!f385.n463.z2!f159.n463!f238.n5020!f443.n5020!ddt.demos.su!f400.n5020!f510.n5020!xtalk.msk.su!xtalk.msk.su!not-for-mail
Newsgroups: fido.ru.unix.bsd
Distribution: fido
X-Comment-To: Alexey Novojilov
From: Boris Tobotras <Boris.Tobotras@f510.n5020.z2.fidonet.org>
Date: Wed, 12 Nov 97 09:06:53 +0200
Subject: Re: Debuggers
Message-ID: <5363836@f510.n5020.z2.fidonet.ftn>
References: <3068715675@anka.da.mtelecom.ru> <879240239@p11.f118.n5020.z2>
Organization: Linux inside
X-FTN-AREA: RU.UNIX.BSD
X-FTN-MSGID: 2:5020/510@fidonet 0051d87c
X-FTN-REPLY: 2:5020/118.11 3468242f
X-FTN-Tearline: Gnus v5.5/XEmacs 20.3 - "London"
X-FTN-Origin: Linux inside (2:5020/510@fidonet)
X-FTN-SEEN-BY: 1/6 50/381 520 450/40 461/121 463/5 18 58 94 159 166 188 385 666
X-FTN-SEEN-BY: 464/100 467/67 469/38 999 478/20 4615/21 4626/5 4643/2 5000/7
X-FTN-SEEN-BY: 5001/211 5002/16 5004/16 5006/1 5007/1 5010/21 5011/13 201 5015/28
X-FTN-SEEN-BY: 5020/35 47 52 68 118 193 194 200 204 225 238 300 302 400 423 443
X-FTN-SEEN-BY: 5020/477 487 509 510 604 1057 5022/5 5023/8 11 5024/8 11 5029/5
X-FTN-SEEN-BY: 5030/87 115 5031/3 5033/2 3 5034/1 5036/1 5048/1 4 5049/1 256
X-FTN-SEEN-BY: 5050/5050 5051/15 5053/16 5054/9 10 5057/1 5060/88 5061/7 15 5064/5
X-FTN-SEEN-BY: 5065/10 5066/2 5069/1 2 5074/9 5075/10 5077/3 5080/80 1003 5083/21
X-FTN-SEEN-BY: 5084/10 5085/250 5090/2 5100/21
X-FTN-PATH: 5020/510 400 443 238 463/159 385
X-FTN-PATH: 463/188
Lines: 57
Xref: freeland.alex-ua.com fido.ru.unix.bsd:1539

>>>>> "Alexey" == Alexey Novojilov writes:

AN> А если нет, то меня он не устpаивает. Кpоме того, в нем _точно_ нет
AN> бpейкпойнтов на память

SS> Что значит 'бpейкпойнты на память'?

Alexey> Значит, что ты вываливаешься в отладчик по обpащению пpогpаммы к
Alexey> какому-то участку памяти.

Ты меня так не пугай. Я аж проверять побежал.

# include <unistd.h>
# include <signal.h>

int i = 0;

void theHandler( int ignored )
{
i = 10;
exit( 0 );
}

main( void )
{
signal( SIGALRM, theHandler );
alarm( 5 );
while ( 1 ) ;
}

Current directory is /home/boris/src/misc/
GDB is free software and you are welcome to distribute copies of it
under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.15.1 (i486-slackware-linux), Copyright 1995 Free Software Foundation,
Inc...
(gdb) watch i
Hardware watchpoint 1: i
(gdb) r
Starting program: /home/boris/src/misc/antest

[прошло пять секунд]

Hardware watchpoint 1: i

Old value = 0
New value = 10
theHandler (ignored=14) at antest.c:9
(gdb)

AN> и I/O. Поскольку они вообще не поддеpживаются kernel'om.

I/O -- это что? breakpoint на обращение к порту? Из user space?
Давить :)

-- 
	Best regards, -- Boris.
-- end of forwarded message --

-- 

Kittle