From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5446 invoked by alias); 30 Jun 2009 13:07:13 -0000 Received: (qmail 5437 invoked by uid 22791); 30 Jun 2009 13:07:12 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-pz0-f203.google.com (HELO mail-pz0-f203.google.com) (209.85.222.203) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 30 Jun 2009 13:07:06 +0000 Received: by pzk41 with SMTP id 41so89892pzk.12 for ; Tue, 30 Jun 2009 06:07:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.204.11 with SMTP id b11mr303601wfg.142.1246367224283; Tue, 30 Jun 2009 06:07:04 -0700 (PDT) Date: Tue, 30 Jun 2009 13:07:00 -0000 Message-ID: Subject: What about check the bfd_arch_info before load the solib? From: Hui Zhu To: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: 2009-06/txt/msg00326.txt.bz2 Hi guys, In cross-compile remote debug environment, the gdb will load the solib of local host if user doesn't set sysroot or something. Load the wrong lib will make gdb get error. I think maybe we can add some check code to check if the bfd_arch_info of this solib is same with the current_gdbarch before load this solib in. If not same, output a warning to let user set gdb to load right lib. What do you think about it? Thanks, Hui