From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25171 invoked by alias); 1 Feb 2014 07:21:39 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 25161 invoked by uid 89); 1 Feb 2014 07:21:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mout-xforward.gmx.net Received: from mout-xforward.gmx.net (HELO mout-xforward.gmx.net) (82.165.159.42) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sat, 01 Feb 2014 07:21:36 +0000 Received: from p2130.localnet ([87.163.56.33]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MDyil-1W2caZ2Oj9-00HMtw for ; Sat, 01 Feb 2014 08:21:33 +0100 From: Christian Eggers To: gdb-patches@sourceware.org Cc: Pedro Alves , Yao Qi Subject: [PATCH] Call remote_check_symbols() even if only symbol-file (not file) has been given Date: Sat, 01 Feb 2014 07:21:00 -0000 Message-ID: <3438987.Z4RkDDzs8O@p2130> User-Agent: KMail/4.11.4 (Linux/3.11.6-4-desktop; KDE/4.11.4; x86_64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-SW-Source: 2014-02/txt/msg00000.txt.bz2 The Eclipse "C/C++ GDB Hardware Debugging" plugin runs only the "symbol-file" command. In this case, remote_check_symbols() is not called and no qSymbol:: packet is sent to the gdbserver (OpenOCD in my case). 2014-02-01 Christian Eggers * remote.c (remote_start_remote): Call remote_check_symbols() even if only symbol-file (not file) has been given. diff --git a/gdb/remote.c b/gdb/remote.c index 7297df0..40cc143 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -3668,7 +3668,7 @@ remote_start_remote (int from_tty, struct target_ops *target, int extended_p) /* If we connected to a live target, do some additional setup. */ if (target_has_execution) { - if (exec_bfd) /* No use without an exec file. */ + if (symfile_objfile) /* No use without an symbol-file. */ remote_check_symbols (); }