From owner-freebsd-arm@freebsd.org Sat Jul 18 01:12:02 2015 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5EA9C9A467F for ; Sat, 18 Jul 2015 01:12:02 +0000 (UTC) (envelope-from sobomax@sippysoft.com) Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 007A6197E for ; Sat, 18 Jul 2015 01:12:01 +0000 (UTC) (envelope-from sobomax@sippysoft.com) Received: by widjy10 with SMTP id jy10so52992062wid.1 for ; Fri, 17 Jul 2015 18:11:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:date:message-id:subject:from :to:content-type; bh=IUyoZBQeJxGmErHN4oLVx7agSd3jl6kJ45MKIzqv5vM=; b=XXi+IMKroxHpgLlvwiBTlQ0dEM63IJiR4lmj5d+PRna+JB+vBwWc1Q1g39lJuwwnDj 4MSe0Dk26E35mc3FnVgd848NXYO+eqGl2jCCmEuHUhblK2CIlM4zU/tksb93Q4K/pUpf bMiby4FkKJGMMKg8MQaC1NN50VpnawLETdA5ttuuyGFobchpEPCTXZBCXzLLX9j5Lb2Z k2mfycK3JyfhVjCmjM4Uc4J/306p8S8zke8p/cmGRye5aZYaON7RUFbosAHAOIkkaYe4 9mc7WZmrQZvo98aMRZQc+7dceMnVcvnS3d+FdEItjd+sD20CBgVFy70C0UnFLNvpNk89 OzQg== X-Gm-Message-State: ALoCoQmITO6vjqeIEpZxyU2aR+BmK+llI2c+ed8f1JJNPK1PU7SIvr7/kVD7ecfkcDf2vBAF4KJQ MIME-Version: 1.0 X-Received: by 10.194.189.80 with SMTP id gg16mr34915174wjc.9.1437181913456; Fri, 17 Jul 2015 18:11:53 -0700 (PDT) Sender: sobomax@sippysoft.com Received: by 10.27.205.136 with HTTP; Fri, 17 Jul 2015 18:11:53 -0700 (PDT) Date: Fri, 17 Jul 2015 18:11:53 -0700 X-Google-Sender-Auth: 26nUFRPEv31Xer9eUs6YxkdT07k Message-ID: Subject: armv6hf gdb issue From: Maxim Sobolev To: Warner Losh , freebsd-arm@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Jul 2015 01:12:02 -0000 Hi, I am running armv6hf build on my BBB and found that gdb is unable to open a core file anymore: *[sobomax@beaglebone ~/projects/rtpproxy/tests]$ gdb ../src/rtpproxy_debug /tmp/rtpproxy_debug.45611.core* *GNU gdb 6.1.1 [FreeBSD]* *Copyright 2004 Free Software Foundation, Inc.* *GDB is free software, covered by the GNU General Public License, and you are* *welcome to change it and/or distribute copies of it under certain conditions.* *Type "show copying" to see the conditions.* *There is absolutely no warranty for GDB. Type "show warranty" for details.* *This GDB was configured as "armv6hf-marcel-freebsd"...* *Core was generated by `rtpproxy_debug'.* *Program terminated with signal 10, Bus error.* *Reading symbols from /lib/libm.so.5...done.* *Loaded symbols for /lib/libm.so.5* *Reading symbols from /lib/libthr.so.3...done.* *Loaded symbols for /lib/libthr.so.3* *Reading symbols from /lib/libc.so.7...done.* *Loaded symbols for /lib/libc.so.7* *Reading symbols from /lib/libgcc_s.so.1...done.* *Loaded symbols for /lib/libgcc_s.so.1* *Reading symbols from /libexec/ld-elf.so.1...done.* *Loaded symbols for /libexec/ld-elf.so.1* *#0 dtime2ts (dtime=* */storage/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/regcache.c:1147: internal-error: int register_offset_hack(struct gdbarch *, int): Assertion `regnum >= 0 && regnum < descr->nr_cooked_registers' failed.* *A problem internal to GDB has been detected,* *further debugging may prove unreliable.* *Quit this debugging session? (y or n) y* Please check. Thanks! -Maxim