This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Bugfix for AVR-GDB when using Eclipse/CDT


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: Changelog
Description: Text document

Attachment: patch.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]