From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28927 invoked by alias); 16 Apr 2003 18:18:09 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 28908 invoked from network); 16 Apr 2003 18:18:09 -0000 Received: from unknown (HELO mailrelay01.tugraz.at) (129.27.3.7) by sources.redhat.com with SMTP; 16 Apr 2003 18:18:09 -0000 Received: from emt.tu-graz.ac.at (www.emt.tu-graz.ac.at [129.27.136.2]) by mailrelay01.tugraz.at (8.12.9/8.12.9) with ESMTP id h3GII6UR018288 for ; Wed, 16 Apr 2003 20:18:07 +0200 (MEST) Received: from EMT/SpoolDir by emt.tu-graz.ac.at (Mercury 1.48); 16 Apr 03 20:18:07 +0100 Received: from SpoolDir by EMT (Mercury 1.48); 16 Apr 03 20:17:44 +0100 Received: from Samweis.EMT.tugraz.at (192.168.1.105) by emt.tu-graz.ac.at (Mercury 1.48) with ESMTP; 16 Apr 03 20:17:39 +0100 Content-Type: text/plain; charset="us-ascii" From: Markus Brandner Organization: EMT, Graz University of Technology To: gdb@sources.redhat.com Subject: gdb refuses to 'break' Date: Wed, 16 Apr 2003 18:18:00 -0000 User-Agent: KMail/1.4.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200304162017.38789.brandner@emt.tugraz.at> X-Virus-Scanned: by amavisd-new X-SW-Source: 2003-04/txt/msg00170.txt.bz2 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi! Either I missed the point when reading the gdb documentation or I'm just experiencing some strange behaviour in gdb. Im running a Slackware 8.1 system on kernel 2.4.18 with libc-2.2.5 When I compile the following code: test.c: #include int main(int argc, char **argv) { printf("Breakpoint test\n"); return 0; } using "gcc -g test.c -o test" (my gcc is 2.95.3) and try to set a break-point with gdb 5.2: (gdb) break main Breakpoint 1 at 0x80483f6: file test.c, line 5. (gdb) run Starting program: /home/home_PCs105/brandner/tmp/test Breakpoint test Program exited normally. You can't do that without a process to debug. (gdb) gdb seems to run straight through ignoring the break. I tried break: line number - same result I even get the same results using gdb 5.3. However, compiling the same source using the same gcc on a libc-2.2.3 machine (kernel 2.2.21) and trying to do the same thing using gdb 5.0 works perfectly (but not with any more recent gdb version) What am I missing? Thanks for your help, Markus - -- - ----------------------------------------------------------------- Markus Brandner Institute of Electrical Measurement and Measurement Signal Processing phone: +43 316 873 7773 Graz University of Technology fax: +43 316 873 4279 Schiessstattgasse 14B email: brandner@emt.tugraz.at A8010 Graz, Austria - ----------------------------------------------------------------- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE+nZ5BjjwO/+h9egkRAtf5AKCPC8DmjWw4L4ktKIMppsMvH+PSmQCglfUw otygkEI0FAtE7vh6FVvLr4o= =2tWf -----END PGP SIGNATURE-----