schmidt@beaver.ics.uci.edu (Doug Schmidt) (01/14/89)
Hi, I believe that the gdb Makefile mistakenly fails to remove the following files on a make clean ---------------------------------------- core.o dep.o inflow.o obstack.o ---------------------------------------- Also, perhaps the label ``squeakyclean'' should be replaced by ``realclean,'' to be compatible with other GNU distributions (don't get me wrong, I *like* the name, however....). Doug -- schmidt@ics.uci.edu (ARPA) | Per me si va nella citta' dolente. office: (714) 856-4043 | Per me si va nell'eterno dolore. | Per me si va tra la perduta gente. | Lasciate ogni speranza o voi ch'entrate.
schmidt@pompe.ics.uci.edu (Doug Schmidt) (01/14/89)
Hi, I'm not sure if this is a bug, a feature, or just my misunderstanding. What I'd like to do is have the display/i $pc command be executed whenever I start-up gdb 3.0. However, when I put this in the .gdbinit file, it ends up causing the machine instructions to be displayed *twice*, like so: ---------------------------------------- Script started on Fri Jan 13 23:04:49 1989 [~ ] [/cd/ua/schmidt] [pompe] [1]..: gdb a.out Reading symbol data from /cd/ua/schmidt/a.out...done. (gdb) b main Breakpoint 1 at 0x22c0: file test.c, line 2. (gdb) r Starting program: /cd/ua/schmidt/a.out Bpt 1, main () (test.c line 2) 2 unsigned int foo = 10; 2: x/i $pc 0x22c0 <main+4>: movel #10,d1 1: x/i $pc 0x22c0 <main+4>: movel #10,d1 (gdb) n 3 foo |= (10 << 16); 2: x/i $pc 0x22c6 <main+10>: oril #655360,-4(fp) 1: x/i $pc 0x22c6 <main+10>: oril #655360,-4(fp) (gdb) n 4 printf ( "hi(foo) = %d, lo(foo) = %d\n", foo >> 16, foo & 0xFFFF ); 2: x/i $pc 0x22ce <main+18>: movel -4(fp),d0 1: x/i $pc 0x22ce <main+18>: movel -4(fp),d0 (gdb) quit The program is running. Quit anyway? (y or n) y [~ ] [/cd/ua/schmidt] [pompe] [2]..: exit [~ ] [/cd/ua/schmidt] exit script done on Fri Jan 13 23:05:07 1989 ---------------------------------------- This is rather disconcerting. Is there any way to prevent this? I don't believe it is covered in the manual. Thanks, Doug -- schmidt@ics.uci.edu (ARPA) | Per me si va nella citta' dolente. office: (714) 856-4043 | Per me si va nell'eterno dolore. | Per me si va tra la perduta gente. | Lasciate ogni speranza o voi ch'entrate.