From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23259 invoked by alias); 13 Sep 2007 08:35:07 -0000 Received: (qmail 23250 invoked by uid 22791); 13 Sep 2007 08:35:06 -0000 X-Spam-Check-By: sourceware.org Received: from rv-out-0910.google.com (HELO rv-out-0910.google.com) (209.85.198.185) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 13 Sep 2007 08:34:59 +0000 Received: by rv-out-0910.google.com with SMTP id l15so294617rvb for ; Thu, 13 Sep 2007 01:34:57 -0700 (PDT) Received: by 10.115.75.1 with SMTP id c1mr366777wal.1189672497105; Thu, 13 Sep 2007 01:34:57 -0700 (PDT) Received: by 10.114.46.3 with HTTP; Thu, 13 Sep 2007 01:34:57 -0700 (PDT) Message-ID: <9d174ef60709130134n10fec073r6319f337b8cff9d1@mail.gmail.com> Date: Thu, 13 Sep 2007 09:43:00 -0000 From: wang To: gdb@sourceware.org Subject: help !why cannot i get core file? MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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: 2007-09/txt/msg00115.txt.bz2 hi all i use fedora 7.debug a device based on arm + linux using gdb on fedora and gdbserver on device. [root@wang wang]# ulimit -a core file size (blocks, -c) unlimited data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 2560 max locked memory (kbytes, -l) 32 max memory size (kbytes, -m) unlimited open files (-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 10240 cpu time (seconds, -t) unlimited max user processes (-u) 2560 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited [root@wang wang]# [root@wang wang]# /usr/local/arm-linux/bin/arm-linux-gdb -q (gdb) file /home/wang/master/master.exe Reading symbols from /home/wang/master/master.exe...done. (gdb) target remote 192.168.1.203:2323 Remote debugging using 192.168.1.203:2323 Cannot access memory at address 0x0 0x40001b80 in ?? () (gdb) c Continuing. Program received signal SIGSEGV, Segmentation fault. Cannot access memory at address 0x5a4 0x40046ca4 in ?? () --------------------------------------------------------- (gdb) q The program is running. Exit anyway? (y or n) y [root@wang wang]# ls core.* ls: cannot access core.*: No such file or directory [root@wang wang]# or --------------------------------------------------------- (gdb) list core.* Can't find member of namespace, class, struct, or union named "core.*" Hint: try 'core.* or 'core.* (Note leading single quote.) (gdb) but now i didnot get a core file and i donot know witch line the error occured at. and what the "Cannot access memory at address 0x5a40x40046ca4 in ?? ()" mean?