From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21030 invoked by alias); 13 Jun 2003 07:50:10 -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 20918 invoked from network); 13 Jun 2003 07:50:06 -0000 Received: from unknown (HELO smtp8.access.co.jp) (157.78.36.253) by sources.redhat.com with SMTP; 13 Jun 2003 07:50:06 -0000 Received: (qmail 32202 invoked from network); 13 Jun 2003 16:50:02 +0900 Received: from unknown (HELO smtp5.access.co.jp) (157.78.36.243) by 0 with SMTP; 13 Jun 2003 16:50:02 +0900 Received: (qmail 9810 invoked by alias); 13 Jun 2003 16:50:02 +0900 Received: (qmail 9798 invoked from network); 13 Jun 2003 16:50:02 +0900 Received: from unknown (HELO access.co.jp) (157.78.69.108) by 0 with SMTP; 13 Jun 2003 16:50:02 +0900 Message-ID: <3EE9822C.8090209@access.co.jp> Date: Fri, 13 Jun 2003 07:50:00 -0000 From: Brijesh Shukla User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020830 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gdb Subject: remote debugging Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-06/txt/msg00232.txt.bz2 Hello, Can any body explain the remote debugging application in Linux. currently for testing purpose as simple case, I have chosen two i686 Pentium machines with Linux installed on two systems. on system I am running gdb and in another system I am running gdb server. I did the following steps. Target: gdbserver host:port program //Now gdbserver has been started Host: // I compiled the simple hello word program as gcc -g program.c -o program // copied the program into target system gdb program gdb> target remote host:port gdb> // connection established gdb> load // it is showing loading the sections, I m not sure the addresses from local machine or from target machine ( how can I verify ? in our case,sicne both machine are same architecture and same OS) I can set break point to main. if I do step or next, I am getting the error message "cannot find bounds of current function" if I do continue, I am getting the error message " program received SIGSEGV, segmentation fault" can anybody tell me where is the wrong ? Is there anything's need to be take care while building the gdb in one machine. ? currently I am using the default gdb installed in machine due to both machine are same architecture. Regards Brijesh Shukla