Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 16507 - No Objective-C support in gdb
Summary: No Objective-C support in gdb
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Stefan Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-27 17:30 UTC by Terry Glass
Modified: 2003-02-28 05:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Terry Glass 2003-02-27 17:30:27 UTC
No support in gdb for debugging GNUstep Objective-C binaries. Patch attached.

Reproducible: Always
Steps to Reproduce:




Patch requires that
ftp://ftp.gnustep.org/pub/gnustep/patches/gdb-5_3-objc-patch.tgz be extracted to
sys-devel/apps/gdb/distfiles. Currently I unconditionally add support.  Perhaps
a "gnustep" USE variable should be added to Gentoo?

BEGIN PATCH

*** /usr/portage/sys-devel/gdb/gdb-5.3.ebuild   Thu Feb 13 10:53:02 2003
--- gdb-5.3.ebuild      Thu Feb 27 15:52:15 2003
***************
*** 19,24 ****
--- 19,40 ----
  inherit flag-o-matic
  replace-flags -O? -O2
  
+ src_unpack() {
+       cd ${WORKDIR}
+       unpack gdb-${PV}.tar.bz2
+       cd ${S}
+ 
+       patch -p1 < ${FILESDIR}/gdb-5_3-objc-patch/gdb-5.3-objc-patch.diff || di
e
+       cp ${FILESDIR}/gdb-5_3-objc-patch/objc-exp.y gdb/
+       cp ${FILESDIR}/gdb-5_3-objc-patch/objc-lang.c gdb/
+       cp ${FILESDIR}/gdb-5_3-objc-patch/objc-lang.h gdb/
+       cp -r ${FILESDIR}/gdb-5_3-objc-patch/gdb.objc gdb/testsuite/
+       cd gdb/testsuite
+       autoconf || die
+       cd ${S}
+ 
+ }
+ 
  src_compile() {
  
        local myconf
END PATCH
Comment 1 Stefan Jones (RETIRED) gentoo-dev 2003-02-28 05:04:34 UTC
Is this going to get merged into gdb any time.
If so then I can wait for the next release, which will have it in.

If not, then why not, is there some problem with it? 
If so then why should gentoo users have bugging there gdb.

I will put it in and it will only be used if the OBJC env variable is set.
( use flags are difficult to get accepted by the gentoo heads! )

Thanks for your time,

Stefan 
Comment 2 Stefan Jones (RETIRED) gentoo-dev 2003-02-28 05:41:48 UTC
Done, via objc use variable, will get to the rsync mirrors on the next hour.

Closing bug.