LINUX.ORG.RU

gdb уходит в background


0

0

пишу простенькую програмку
#include <stdio.h>

int main()
{
printf("Hello \n");

return 0;
}

собираю >gcc -g mur.c -o mur
запускаю в gdb

>gdb -v
GNU gdb Red Hat Linux (6.3.0.0-1.21rh)
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-redhat-linux-gnu".

>gdb mur
GNU gdb Red Hat Linux (6.3.0.0-1.21rh)
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-redhat-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) br 3
Breakpoint 1 at 0x8048370: file mur.c, line 3.
(gdb) run
Starting program: /home/vaborg/tmp/mur

[1]+ Stopped gdb mur

бац! и она ушла в бекграунд!
Какого хрена???

>fg
gdb mur
done.
Loaded system supplied DSO at 0xb7fd8000

Breakpoint 1, main () at mur.c:4
4 {
(gdb)

и только так можно вернуть, через fg.
в чём дело никто не знает???

★★★

Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.