Path: utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!gatech!purdue!decwrl!labrea!agate!ucbvax!ucsd!orion.cf.uci.edu!uci-ics!pompe.ics.uci.edu!schmidt From: schmidt@pompe.ics.uci.edu (Doug Schmidt) Newsgroups: gnu.gdb.bug Subject: Re: Makefile omissions for make clean Message-ID: <4125@paris.ics.uci.edu> Date: 14 Jan 89 07:06:50 GMT References: <4121@paris.ics.uci.edu> Sender: news@paris.ics.uci.edu Reply-To: Doug Schmidt Distribution: gnu Organization: University of California, Irvine - Dept of ICS Lines: 57 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 : movel #10,d1 1: x/i $pc 0x22c0 : movel #10,d1 (gdb) n 3 foo |= (10 << 16); 2: x/i $pc 0x22c6 : oril #655360,-4(fp) 1: x/i $pc 0x22c6 : oril #655360,-4(fp) (gdb) n 4 printf ( "hi(foo) = %d, lo(foo) = %d\n", foo >> 16, foo & 0xFFFF ); 2: x/i $pc 0x22ce : movel -4(fp),d0 1: x/i $pc 0x22ce : 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.