Skip to content

Commit

Permalink
Modify the GDB startup Python code, make it more generic
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa authored and Levi-Armstrong committed Jan 27, 2020
1 parent 36d936a commit 6378d39
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions gh_pages/_source/Setup-Qt-Creator-for-ROS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,15 @@ Preventing Qt Creator form stepping into Boost, Eigen, etc.
skip pending on
python
for root, dirs, files in os.walk("/usr/include/boost/"):
for file in files:
if file.endswith(".hpp"):
cmd = "skip file " + os.path.join(root, file)
gdb.execute(cmd, True)
for root, dirs, files in os.walk("/usr/include/eigen3/Eigen/"):
for file in files:
if file.endswith(".hpp"):
cmd = "skip file " + os.path.join(root, file)
gdb.execute(cmd, True)
# Add libs here
LIB_PATHS = ["/usr/include/boost/", "/usr/include/eigen3/Eigen/"]
for lib_path in LIB_PATHS:
for root, dirs, files in os.walk(lib_path):
for file in files:
if file.endswith(".hpp") or file.endswith(".h"):
cmd = "skip file " + os.path.join(root, file)
gdb.execute(cmd, True)
end
skip enable
Expand Down

0 comments on commit 6378d39

Please sign in to comment.