From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18645 invoked by alias); 16 Jan 2012 22:19:27 -0000 Received: (qmail 18636 invoked by uid 22791); 16 Jan 2012 22:19:26 -0000 X-SWARE-Spam-Status: No, hits=-6.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 16 Jan 2012 22:19:12 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q0GMJAqb027167 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 16 Jan 2012 17:19:10 -0500 Received: from psique ([10.3.112.11]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q0GMJ5Tn020613; Mon, 16 Jan 2012 17:19:08 -0500 From: Sergio Durigan Junior To: mak visp Cc: gdb@sourceware.org Subject: Re: GDB on development board! References: X-URL: http://www.redhat.com Date: Mon, 16 Jan 2012 22:19:00 -0000 In-Reply-To: (mak visp's message of "Mon, 16 Jan 2012 19:15:56 +0530") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: 2012-01/txt/msg00055.txt.bz2 On Monday, January 16 2012, mak visp wrote: > I am new to the GDB stuff. I am using my ARM based custom board in > that I wanted to debug my code on ARM. Can I do it without JTAG only > with GDB connected over serial port? Also is it possible to do it > without any OS running on board (I am in starting phase, so no OS > yet)? I read the user manual, but could not make out. Any pointer to > the material is a great help. Hello, For other ways of using GDB remotely (without JTAG), have you considered gdbserver yet? Take a look at: http://sourceware.org/gdb/current/onlinedocs/gdb/Remote-Debugging.html#Remote-Debugging and http://sourceware.org/gdb/current/onlinedocs/gdb/Server.html#Server As for the question regarding running GDB on a system without OS, others can correct me if I'm wrong but I don't think it's possible because GDB uses many OS-specific features (such as ptrace, and glibc functions). Regards, Sergio.