From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16061 invoked by alias); 21 Jan 2006 18:21:57 -0000 Received: (qmail 16051 invoked by uid 22791); 21 Jan 2006 18:21:56 -0000 X-Spam-Check-By: sourceware.org Received: from relay.heise.de (HELO relay.heise.de) (193.99.145.50) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 21 Jan 2006 18:21:54 +0000 From: Benjamin Benz To: gdb-patches@sources.redhat.com Subject: Bugfix for AVR-GDB when using Eclipse/CDT Date: Sat, 21 Jan 2006 18:21:00 -0000 User-Agent: KMail/1.8.2 MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_ivn0DzAjArBKKGJ" Message-Id: <200601211922.26384.bbe@heise.de> X-Sender: bbe@heise.de Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-01/txt/msg00280.txt.bz2 --Boundary-00=_ivn0DzAjArBKKGJ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Content-length: 713 Hi, when using the gdb-port for AVR-MCUs (avr-gdb) together with eclipse (CDT) the following happens: An "info shared library" command is issued. In solib.c this leads to an error-msg because the TARGET_PTR_BIT has the value 16, which is not handled. To produce the Error without eclipse just do the following: Start an simulavr-session with: simulavr -g -p 1212 -d atmega16 then open an avr-gdb and tell it: target remote localhost:1212 info sharedlibrary this should kill the avr-gdb. Here is a small 3 line Patch, which solves this problem. The patch makes it possible to use avr-gdb together with eclipse. Best regards Benjamin Benz Heise Zeitschriften Velag Redaktion c't http://www.heise.de/ct --Boundary-00=_ivn0DzAjArBKKGJ Content-Type: text/plain; charset="us-ascii"; name="Changelog" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Changelog" Content-length: 162 2006-01-21 Benjamin Benz * solib.c: info_sharedlibrary_command fixed for AVR-Targets * version.in: Set version to 6.4 for the releases --Boundary-00=_ivn0DzAjArBKKGJ Content-Type: text/plain; charset="us-ascii"; name="patch.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="patch.txt" Content-length: 605 Index: solib.c =================================================================== RCS file: /cvs/src/src/gdb/solib.c,v retrieving revision 1.82 diff -u -r1.82 solib.c --- solib.c 17 Dec 2005 22:34:02 -0000 1.82 +++ solib.c 21 Jan 2006 18:01:34 -0000 @@ -702,7 +702,10 @@ addr_width = 8 + 4; else if (TARGET_PTR_BIT == 64) addr_width = 16 + 4; - else + else if (TARGET_PTR_BIT == 16) { + printf_unfiltered (_("No shared libraries on 8-Bit-Platforms.\n")); + return; + }else { internal_error (__FILE__, __LINE__, _("TARGET_PTR_BIT returned unknown size %d"), --Boundary-00=_ivn0DzAjArBKKGJ--