Bug 229288 - [launch][modules] Variables sysroot should be used
Summary: [launch][modules] Variables sysroot should be used
Status: ASSIGNED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-dsf-gdb (show other bugs)
Version: 6.0   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-29 08:58 EDT by Marc Khouzam CLA
Modified: 2020-09-04 15:21 EDT (History)
2 users (show)

See Also:


Attachments
Disabling sysroot when using solib-search-path (5.59 KB, patch)
2008-06-10 09:21 EDT, Marc Khouzam CLA
no flags Details | Diff
Comment out use of sysroot (2.66 KB, patch)
2008-07-30 10:54 EDT, Marc Khouzam CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Khouzam CLA 2008-04-29 08:58:10 EDT
Currently, we only use the variable solib-search-path (bug 222766) just like the CDT does.  However, based on a discussion that can be found in:

http://dev.eclipse.org/mhonarc/lists/dsdp-dd-dev/msg01138.html

in some cases variable sysroot must also be used.
Currently, the user can do this manually within the .gdbinit file.

It may be nice to provide an integrated method to do this.

Currently, we are waiting to see if this is something users of DSF will need.
Comment 1 Marc Khouzam CLA 2008-06-10 09:21:22 EDT
Created attachment 104311 [details]
Disabling sysroot when using solib-search-path

The GDB documentation says that sysroot should be disabled when solib-search-path is used.  This patch does this.

We still have the (not urgent) need to allow the user to set sysroot instead of solib-search-path.

I will commit to HEAD
Comment 2 Marc Khouzam CLA 2008-07-30 10:50:19 EDT
I just realized that sysroot is only available in GDB 6.7 and on.  This means that when using GDB6.6, if the solib-search-path is used, the launch sequence will fai because the -gdb-set sysroot command will fail.

I'll comment it for now to make this better, and I will investigate further what are the real needs for sysroot.
Comment 3 Marc Khouzam CLA 2008-07-30 10:54:54 EDT
Created attachment 108753 [details]
Comment out use of sysroot

Committed patch
Comment 4 Frederic Riss CLA 2008-07-31 03:03:29 EDT
sysroot is a recently introduced alias for the old solib-absolute-prefix command. solib-absolute-prefix existed for as long as I can remember and I don't think that the original command was removed when the alias got introduced.