Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gdb, Cannot insert breakpoint
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Russian
View previous topic :: View next topic  
Author Message
zubator
Apprentice
Apprentice


Joined: 16 Sep 2004
Posts: 174
Location: Moscow

PostPosted: Wed Oct 12, 2005 7:18 pm    Post subject: gdb, Cannot insert breakpoint Reply with quote

Народ, подскажите плиз что за шняга такая, раньше все работало и в Kdevelop и из консоли, а сейчас не хочет, облазил пол гугла, но так ничего и не понял......без него мне туго приходица, пишет вот что(полный пример)

программа
#include<stdio.h>

int main(void)
{
printf("hi\n");

return 0;
}


~# gcc -Wall main.c
Nirvana gdb # ./a.out
hi
Nirvana gdb # gdb a.out
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or 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.
This GDB was configured as "i386-pc-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) break main
Breakpoint 3 at 0x75c
(gdb) run
Starting program: /root/gdb/a.out
Warning:
Cannot insert breakpoint 3.
Error accessing memory address 0x75c: Input/output error.
Back to top
View user's profile Send private message
046
Apprentice
Apprentice


Joined: 21 Jul 2004
Posts: 231
Location: Yaroslavl, Russia

PostPosted: Thu Oct 13, 2005 5:08 am    Post subject: Reply with quote

1. root это не программист и не отладчик.
2. для гарантии того что можешь вставить остановку в любом месте и посмотреть любую переменную надо компилировать с отладкой и выключенной оптимизацией.

PS: что-то цифра больно маленькая и не похожа на адрес функции. Ты уверен что тот main - это то то что тебе хочется?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Russian All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum