Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions features/src/cccl-dev/.gdbinit
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
set print pretty on
set print array-indexes on

set auto-load local-gdbinit on
add-auto-load-safe-path @CCCL_DIR@/.gdbinit
1 change: 1 addition & 0 deletions features/src/cccl-dev/.lldbinit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
settings set target.load-cwd-lldbinit true
6 changes: 6 additions & 0 deletions features/src/cccl-dev/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ append_to_all_bashrcs "$(cat .bashrc | envsubst '$LIT_VERSION $DOXYGEN_VERSION $
# export envvars in /etc/profile.d
add_etc_profile_d_script cccl-dev "$(cat .bashrc | envsubst '$LIT_VERSION $DOXYGEN_VERSION $USERHOME')";

cccl_dir="${USERHOME}/cccl"
# install global lldbinit and gdbinit, append in case there is a pre-existing one
# installed by the OS or packages
cat .lldbinit | sed -e "s%@CCCL_DIR@%${cccl_dir}%" >> "${USERHOME}/.lldbinit";

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also yes, currently this sed doesn't do anything, but if it ever does then we don't have to change this

cat .gdbinit | sed -e "s%@CCCL_DIR@%${cccl_dir}%" >> "${USERHOME}/.gdbinit";

# Clean up
# rm -rf /tmp/*;
rm -rf /var/tmp/*;
Expand Down
Loading