From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12832 invoked by alias); 6 Oct 2005 01:40:21 -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 12824 invoked by uid 22791); 6 Oct 2005 01:40:18 -0000 Received: from fep9.mfe.bur.connect.com.au (HELO mfep9.connect.com.au) (203.63.86.9) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 06 Oct 2005 01:40:18 +0000 Received: from [192.168.1.100] (cor12-ppp681.hay.dsl.connect.net.au [61.68.71.173]) by mfep9.connect.com.au (Postfix) with ESMTP id A0B5EBC74 for ; Thu, 6 Oct 2005 11:40:13 +1000 (EST) Message-ID: <43448083.9020906@rftechnology.com.au> Date: Thu, 06 Oct 2005 01:40:00 -0000 From: Dmytro Bablinyuk User-Agent: Debian Thunderbird 1.0.7 (X11/20051001) MIME-Version: 1.0 To: gdb@sources.redhat.com Subject: Using cross compiled GDB under Emacs Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2005-10/txt/msg00025.txt.bz2 I have cross compiled gdb and I can set a break point under emacs using 'C-x space' but when gdb stops at breakpoint Emacs does not show the line where gdb stopped. If I use 'b' command - the same, Emacs does not show the file and line where it stopped. If I try to see line info it says that no line number available. Here is dump: There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "--host=i386-pc-linux-gnu --target=powerpc-linux-uclibc"...0xfff00100 in ?? () (gdb) ram add symbol table from file "u-boot" at .text_addr = 0x3fc7000 (gdb) b board_init_r Breakpoint 1 at 0x3fcba28: file board.c, line 588. (gdb) c Continuing. Breakpoint 1, (gdb) info line No line number information available. (gdb) Does anybody know how to 'attach' emacs to gdb? The program was compiled with these options -ggdb -Os -fPIC -ffixed-r14 -meabi -D__KERNEL__ -DTEXT_BASE=0xFFF00000 -fno-builtin -ffreestanding -nostdinc -isystem -pipe -DCONFIG_PPC -D__powerpc__ -DCONFIG_8260 -DCONFIG_CPM2 -ffixed-r2 -ffixed-r29 -mstring -mcpu=603e -mmultiple -Wall -Wstrict-prototypes Thank you