This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 251707 - GDB fails loading init file when debugging on remote host
Summary: GDB fails loading init file when debugging on remote host
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 8.0.2
Hardware: All All
: P3 normal (vote)
Assignee: henk89
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-07 18:57 UTC by _ rsmogura
Modified: 2015-04-29 02:31 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ rsmogura 2015-04-07 18:57:30 UTC
Hi all,

I tried to set up a gdb init which would be launched during debugging of C/C++ project on remote host. Unfortunately, it looks like that local path is passed to remote process without path translations.

Steps to reproduce:
1. Open project properties.
2. Choose a local file (i.e. form project directory, or directory mapped in C/C++ remote hosts configuration), by entering it manually or by selecting it via file browser
3. Start debugging
Actual result
Command in init file are not applied in GDB
Expected result
Command in init file should be executed in GDB

Comments
Manually entering a path which is valid on remote machines will make init file loaded.

And here just few suggestion
- mapping of local path to remote ones,
- streaming init files to GDB through stdin & change setting name to Local GDB init file
Comment 1 henk89 2015-04-28 10:34:03 UTC
Fixed in:
http://hg.netbeans.org/cnd-main/rev/71b99a9cc399
Comment 2 Quality Engineering 2015-04-29 02:31:36 UTC
Integrated into 'main-silver', will be available in build *201504290001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/71b99a9cc399
User: Nikolay Koldunov <henk89@netbeans.org>
Log: Fixed #251707 - GDB fails loading init file when debugging on remote host