From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16641 invoked by alias); 15 Nov 2009 18:46:39 -0000 Received: (qmail 16629 invoked by uid 22791); 15 Nov 2009 18:46:35 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-yx0-f180.google.com (HELO mail-yx0-f180.google.com) (209.85.210.180) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 15 Nov 2009 18:45:31 +0000 Received: by yxe10 with SMTP id 10so4378690yxe.12 for ; Sun, 15 Nov 2009 10:45:30 -0800 (PST) MIME-Version: 1.0 Received: by 10.150.115.21 with SMTP id n21mr11951714ybc.30.1258310730137; Sun, 15 Nov 2009 10:45:30 -0800 (PST) Date: Sun, 15 Nov 2009 19:36:00 -0000 Message-ID: <31cff80d0911151045r710d2c20k5fb2c9f4d5a86f55@mail.gmail.com> Subject: changing gdb's behaviour on breakpoints From: ranjith kumar To: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-11/txt/msg00148.txt.bz2 Hi all, 1) We know that when the program( being debugged by gdb) hits a breakpoint, the execution of the program will be stopped and gdb will displays a message like " Breakpoint 2829, process_event () at event-loop.c:298 298 if (check_async_ready ()) (top-gdb) " and gdb waits for input from the user. Is is possible to change this behaviour? I want gdb to just display the message, but not to wait for the input from the user, and must continue the program automatically. 2) I have gdb's sorce code. Which function of gdb's source code will be called when the program hits a brakpoint? Which function of gdb's source code will be called when gdb continues the program? 3) By the way is the 'gdb' single threaded program? If not please tell me when it will create other threads? Thanks in advance.