From: Benjamin Benz <bbe@heise.de>
To: gdb-patches@sources.redhat.com
Subject: Bugfix for AVR-GDB when using Eclipse/CDT
Date: Sat, 21 Jan 2006 18:21:00 -0000 [thread overview]
Message-ID: <200601211922.26384.bbe@heise.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 713 bytes --]
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
[-- Attachment #2: Changelog --]
[-- Type: text/plain, Size: 162 bytes --]
2006-01-21 Benjamin Benz <bbe@heise.de>
* solib.c: info_sharedlibrary_command fixed for AVR-Targets
* version.in: Set version to 6.4 for the releases
[-- Attachment #3: patch.txt --]
[-- Type: text/plain, Size: 605 bytes --]
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"),
next reply other threads:[~2006-01-21 18:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-21 18:21 Benjamin Benz [this message]
2006-01-21 22:24 ` Daniel Jacobowitz
2006-01-22 11:14 ` Benjamin Benz
2006-01-22 15:50 ` Daniel Jacobowitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200601211922.26384.bbe@heise.de \
--to=bbe@heise.de \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox