haking?Plive:/ramdisk/home/haking
Type "shou copying" to see the conditions.
There is absolutely no uarranty for GDB. Type "shou uarranty" for details.
This GDB uas configured as "i386-redhat-linux-gnu"...Using host libthread_db lib rary "/1ib/tls/1ibthread_db.so.1".
(gdb) list
1 void fn(char *a) {
2 char buf[10];
3 strcpy(buf, a);
A printfCthe end of fn\n");
5 }
6
7 main (int argc, char *argv[]) {
8 fn(argv[l]);
9 printfCthe end\n");
10 )
(gdb) break 3
Breakpoint 1 at 0x8048382: file stack_l.c, linę 3.
(gdb) run RRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
Starting program: /ramdisk/home/haking/stack_l RRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
Breakpoint 1, fn (a=0xbffffc2b 'R' <repeats 30 times>) at stack_l.c:3 3 strcpy(buf, a);
(gdb) |