From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26464 invoked by alias); 24 Feb 2007 15:51:56 -0000 Received: (qmail 26456 invoked by uid 22791); 24 Feb 2007 15:51:56 -0000 X-Spam-Check-By: sourceware.org Received: from smtp005.mail.ukl.yahoo.com (HELO smtp005.mail.ukl.yahoo.com) (217.12.11.36) by sourceware.org (qpsmtpd/0.31) with SMTP; Sat, 24 Feb 2007 15:51:51 +0000 Received: (qmail 48266 invoked from network); 24 Feb 2007 15:51:48 -0000 Received: from unknown (HELO ?192.168.0.161?) (fbradasc@82.56.151.144 with plain) by smtp005.mail.ukl.yahoo.com with SMTP; 24 Feb 2007 15:51:48 -0000 X-YMail-OSG: EGYw8oQVM1lekDLOvFCjx5NUMSmfzCVXk6a.HvtZjMRpfRNMVJr2jHYpsaeaVf9BM7asnAzs8zkP4r79Qt_m1Ph3SyBqzN0_kAR0lCkf70v9UUf07TQ0HRbgNDf8ai3Z3GzgHCC3lmUDDw8D6XG7ik90joJBHBkFQJHsEnFIANCClE224Q-- Message-ID: <45E05F1A.9020907@yahoo.it> Date: Sat, 24 Feb 2007 16:15:00 -0000 From: Francesco Bradascio User-Agent: Thunderbird 1.5.0.8 (X11/20061025) MIME-Version: 1.0 To: gdb@sourceware.org Subject: gdbserver unable to attach to process Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: 2007-02/txt/msg00255.txt.bz2 Hello, I developing an application for mobilinux (kernel 2.6.10) on ARM V6 platform and I need to debug it , however, the gdbserver remote debugger agent is unable to attach to any executable... here's what happens: First I tried to execute gdbserver (on remote platform - IP: 192.168.16.2) as follow: $gdbserver :12345 /usr/local/bin/flP5 Process /usr/local/bin/flP5 created; pid = 4630 at this point my application (flP5) starts without stopping at first instruction (as should be) and only after I kill the process 4630, gdbserver shows the "Listening on port 12345" prompt, furthermore, when I do "target remote 192.168.16.2:12345" from my host's gdb I get a "Connection refused" message and the remote gdbserver exits. I also tried to firstly run my application and then attach gdbserver via the --attach option but I get the following error: $ /usr/local/bin/flP5 & [1] 4718 $ gdbserver :12345 --attach 4718 Cannot attach to process 4718: Operation not permitted (1) I really appreciate your help to understand what can prevent gdbserver to work correctly. Tanks & regards, Francesco Bradascio PS: - gdb and gdbserver versions is 6.6 (cross)compiled for target arm-elf-linux-gnu - I added several printfs to log the operations in the linux-low.c file and I found that (for the first case) the gdbserver remains stucked at the first waitpid in the linux_wait_for_process function. Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com