[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.cdt] Re: 'Target selection failed' when try to debug
|
- From: Chris Recoskie <recoskie@xxxxxxxxxx>
- Date: Mon, 09 Jul 2007 10:35:24 -0400
- Newsgroups: eclipse.tools.cdt
- Organization: IBM
- User-agent: Thunderbird 1.5.0.12 (Windows/20070509)
nikosch wrote:
I am a newcomer with eclipse. In the newcomer forum I was adviced to ask
my question here.
I am working with Suse Linux 10.1 and
Eclipse 3.2, just updated
CDT 3.1.1
I try to debug a C-program (not C++) which principally is running
without error messages but the results are wrong. The code contains
outputs to stderr like
fprintf(stderr, ...) I suppose these statements as the source of the
problem.
For installation of Eclipse and CDT I followed the tutorial of Brian Lee
(www.cs.umanitoba.ca/~eclipse) and tried his example for debugging with
my program.
The tutorial asks to click on Window -> customize perspective from the
debug perspective. Then there should be a branch 'other' with a
selection 'C/C++ debug' in it.
In my eclipse there is no such branch at all. But there is a possible
selection 'C++' which I selected!
When I am starting debugging by clicking on 'Debug' a small window with
title 'Launching' and the message 'Target selection failed' appears. The
details tell me '/dev/ttyS0: keine Berechtigung (english: no rights)'.
Trying to do the same things as root has the same results, but the
details now tell me '/dev/ttyS0: input/output error'.
I have no idea how to cure the problem. Can somebody help me?
I have run into this myself. The problem for me was that for some
reason the default launch configuration created was for "gdbserver",
rather than a locally running GDB. Try creating your own launch
configuration manually.
You might want to file a bug on this. I think with the new contextual
launching support provided by the Eclipse platform, more people will run
into this.
===========================
Chris Recoskie
Team Lead, IBM CDT Team
IBM Toronto
http://www.eclipse.org/cdt