Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Remote GDB

Hello Jonah,

I am still on Luna. I am using it on my MAC. In the source lookup, my project is configured as the first item.
I am using Remote GDB session.
In the GDB Trace Console, I can see that whenever is am trying to set a break point in the code file. (externalControl.c)

487,596 25-break-insert --thread-group i1 -f /b/vishal/FlowControl/src/externalControl.c:1882

487,709 &"No source file named /b/vishal/FlowControl/src/externalControl.c.\n"

Where as if i try to set the breakpoint manually in the GDB console using the file name "break externalControl.c:1882" , I am able to set the break point.  

Hence i am looking towards an option where i can specify eclipse to use the file name in place of the complete file path while setting the break point.

I tried looking into the org.eclipse.cdt.dsf.gdb plugin, but i was not able to figure out, how and where should this change be made/handled.  

Thanks,

Vishal


On Mon, May 23, 2016 at 11:51 PM, Jonah Graham <jonah@xxxxxxxxxxxxxxxx> wrote:
Hi Vishal,

Can you elaborate on the problem a little bit please?

The basic idea is you configure the source lookup of the Launch
Configuration by choosing the Source tab in the launch configuration.
Choose a Mapping source container type, enter the compilation path and
the local path and launch your debug session.

Are you using Eclipse Neon / CDT 9.0 (which is soon to be released)?
If so, there have been some improvements to source lookup to make it
handle more situations[1].

Thanks,
Jonah

[1]https://bugs.eclipse.org/bugs/show_bug.cgi?id=472765

~~~
Jonah Graham
Kichwa Coders Ltd.
www.kichwacoders.com


On 23 May 2016 at 18:49, Vishal Gupta <vishal.vit@xxxxxxxxx> wrote:
> Hello All,
>
> Could you please guide me how to make the GDB (DSF) Automatic Remote
> Debugger launcher to use the File name to set the break point. Currently it
> uses the complete file path to set the break point. Which is not getting
> resolved.
>
> Thanks,
> Vishal
>
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/cdt-dev
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cdt-dev


Back to the top