First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 126288
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Toolchain Maintainers <toolchain@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Ian Hubbertz <gentoo3@hubbertz.de>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
gdb-6.4-r3_avr-patch.tgz ebuild for gdb-6.4 that includes the patch application/octet-stream Ian Hubbertz 2006-03-15 06:51 0000 16.08 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 126288 depends on: Show dependency tree
Show dependency graph
Bug 126288 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-03-15 04:48 0000
gdb-6.4 is incompatible with eclipse. A patch is already available in CVS.

(see
http://www.nabble.com/Bugfix-for-AVR-GDB-when-using-Eclipse-CDT-t969000.html)


------------ PATCH ----------------

--- gdb-6.4.old/gdb/solib.c     17 Dec 2005 22:34:02 -0000      1.82
+++ gdb/gdb/solib.c     21 Jan 2006 22:11:16 -0000
@@ -698,16 +698,8 @@ info_sharedlibrary_command (char *ignore
   int header_done = 0;
   int addr_width;

-  if (TARGET_PTR_BIT == 32)
-    addr_width = 8 + 4;
-  else if (TARGET_PTR_BIT == 64)
-    addr_width = 16 + 4;
-  else
-    {
-      internal_error (__FILE__, __LINE__,
-                     _("TARGET_PTR_BIT returned unknown size %d"),
-                     TARGET_PTR_BIT);
-    }
+  /* "0x", a little whitespace, and two hex digits per byte of pointers.  */
+  addr_width = 4 + (TARGET_PTR_BIT / 4);

   update_solib_list (from_tty, 0);

------------ !PATCH ----------------

------- Comment #1 From Ian Hubbertz 2006-03-15 06:51:30 0000 -------
Created an attachment (id=82213) [edit]
ebuild for gdb-6.4 that includes the patch

Installation

   1. Download the attached ebuild
   2. cd /usr/local/portage
   3. tar xfvz path_to/gdb-6.4-r3_avr-patch.tgz
   4. ln -s /usr/local/portage/sys-devel/gdb /usr/local/portage/cross-avr/
   5. PKGDIR=/usr/portage/packages/cross/avr emerge -av cross-avr/gdb

Note: The two last steps are necessary, because crossdev ignores ebuilds in the
Portage-Overlay, thus it is not possible to emerge the fixed gdb with crossdev
yet.
(see Gentoo Bug #126284)

------- Comment #2 From SpanKY 2006-03-15 16:10:17 0000 -------
added to 6.4-r4, thanks for the report

First Last Prev Next    No search results available      Search page      Enter new bug