View previous topic :: View next topic |
Author |
Message |
jackgentoo n00b
Joined: 04 Apr 2003 Posts: 40 Location: Santa Barbara, CA, USA
|
Posted: Sun Oct 16, 2011 1:16 am Post subject: gdbserver |
|
|
I see that gdbserver 7.2 is keyword masked (I believe that is how it is masked). Two questions:
1) How can I tell why? Portage just says "Masked". I find no bugs doing a quick search for "gdbserver" on bugs.gentoo.org. This is one aspect of portage that is always confused me, how to tell why something is masked.
2) After keyword unmasking it and trying to use it, the program being debugged gets a segfault before reaching main. I recognize that this is probably why it is masked. The same sources are used to build gdb, and gdb locally works fine. Any clues? Both host and target are x86 boxen running Gentoo. |
|
Back to top |
|
|
Bones McCracker Veteran
Joined: 14 Mar 2006 Posts: 1611 Location: U.S.A.
|
Posted: Mon Oct 24, 2011 7:34 am Post subject: |
|
|
gdbserver is in testing status for amd64 only (keyword ~amd64).
Code: | ~ # equery keywords gdbserver
Keywords for dev-util/gdbserver:
| | u |
| a a p s | n |
| l m h i m m p s p | u s | r
| p d a p a 6 i p c 3 a x | s l | e
| h 6 r p 6 8 p p 6 9 s r 8 | e o | p
| a 4 m a 4 k s c 4 0 h c 6 | d t | o
----+---------------------------+-----+-------
7.0 | o ~ o o o o o o o o o o o | # 0 | gentoo
7.2 | o ~ o o o o o o o o o o o | o | gentoo
|
The last entry in the changelog for the ebuild is over a year old, documenting the addition of gdbserver 7.2. and a dependency on gdb no newer than gdb-7.2. The changelog is where I'd normally look for rationale on keyword masking.
Code: | ~ # equery changes --full gdbserver
*gdbserver-7.2 (16 Sep 2010)
16 Sep 2010; Diego E. Pettenò <flameeyes@gentoo.org>
gdbserver-7.0.ebuild, +gdbserver-7.2.ebuild:
Version bump, and block newer gdb versions.
*gdbserver-7.0 (16 Dec 2009)
16 Dec 2009; Diego E. Pettenò <flameeyes@gentoo.org>
+gdbserver-7.0.ebuild, +metadata.xml:
Initial import of a gdbserver ebuild, a cross-compilable ebuild for the
simple gdbserver command. It uses the same patchset as the main
sys-devel/gdb
|
Bugzilla: There do not appear to be any related bugs in bugzilla. Gdb itself is now in version 7.3.1 and includes gdbserver.
make.profiles: sometimes things are masked here (generally this only where you'd mind something hard-masked i.e. 'M' masked). I find no mention of gdbserver:
Code: | /usr/portage # grep -R gdbserver profiles/ |
The developer who is listed as the maintainer of gdbserver has a blog, and there are two articles there which provide a bit of background and what may later be some useful tutorial-style information:
http://blog.flameeyes.eu/2008/12/17/remote-debugging-with-gdb-part-1-gentoo
http://blog.flameeyes.eu/2010/02/20/remote-debugging-with-gdb-part-2-gdb
I get the feeling that gdbserver used to be a separate package (when it was fairly new, up until 7.2) and that is now, intentionally or through lack of interest, it's only available as part of the gdb package (now in version 7.3.1).
It may be that the separate gdbserver ebuild is obsolete or unmaintained, and that you are expected to either install gdb itself on the remote system (of which you'd just run the included gdbserver) or cross-compile (if necessary) and deploy the binary gdbserver to your target system yourself. I haven't used gdb in a couple of years and have never done remote debugging, so I am purely speculating.
One way to get this cleared up for yourself would be to submit a bug against gdbserver asking where the 7.3.1 version is, and if gdb-server isn't going to be maintained, can we get a USE="minimal" keyword on gdb that would just build the gdbserver.
Maybe somebody who's actually a developer will chime in and give you some better advice. _________________
patrix_neo wrote: | The human thought: I cannot win.
The ratbrain in me : I can only go forward and that's it. |
|
|
Back to top |
|
|
jackgentoo n00b
Joined: 04 Apr 2003 Posts: 40 Location: Santa Barbara, CA, USA
|
Posted: Tue Oct 25, 2011 3:57 am Post subject: |
|
|
Thank you for the single most useful and content rich post I've ever seen on the Gentoo forums. You have restored my faith in the Gentoo community. |
|
Back to top |
|
|
Bones McCracker Veteran
Joined: 14 Mar 2006 Posts: 1611 Location: U.S.A.
|
Posted: Tue Oct 25, 2011 7:20 am Post subject: |
|
|
Why, thank you. I'm glad you found it helpful.
I also hope it isn't wrong. _________________
patrix_neo wrote: | The human thought: I cannot win.
The ratbrain in me : I can only go forward and that's it. |
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|