From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21748 invoked by alias); 2 Mar 2002 00:42:40 -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 20868 invoked from network); 2 Mar 2002 00:42:24 -0000 Received: from unknown (HELO mailsrv.acc.com) (129.192.64.128) by sources.redhat.com with SMTP; 2 Mar 2002 00:42:24 -0000 Received: from acc.com (wilde.dev.acc.am.ericsson.se [129.192.59.10]) by mailsrv.acc.com (8.12.1/8.12.1) with ESMTP id g220gB8W006954 for ; Fri, 1 Mar 2002 16:42:11 -0800 (PST) Message-ID: <3C80203E.49EFDC35@acc.com> Date: Fri, 01 Mar 2002 16:42:00 -0000 From: Mattias Wildeman Organization: Ericsson Inc. X-Mailer: Mozilla 4.78 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: gdb@sources.redhat.com Subject: Nonblocking GDB stub Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.1 X-SW-Source: 2002-03/txt/msg00004.txt.bz2 Hello! I've been using GDB for a while, running it with a ARM based board and a serial connection (remote debugging). To activate GDB, i'll install a breakpoint on the target and connect GDB throught that. Standard behavior. Now, what i would like to do is to have GDB interact with the target without the target being stopped. Yes, this breaks some of the purpose of the debugger, but i would like to use GDB to analyze memory and datastructures without freezing the program. The OS i am running do support task-switching, so i was thinking about making the stub exception_handler non-blocking (e.g. remove the while(1==1) statement that makes it accept commands until i kill it), and instead have a call scheduled for it regularly. Has anyone had experience with doing this? Or know of any place were i could get more information on this? Is it even feasible? I looked through Google, but was unable to find anything on this level. Thank you for your time! Regards, Mattias Wildeman