[Lldb-commits] [PATCH] D19557: Use absolute module path when possible if sent in svr4 packets
Francis Ricci via lldb-commits
lldb-commits at lists.llvm.org
Wed Apr 27 10:16:06 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL267741: Use absolute module path when possible if sent in svr4 packets (authored by fjricci).
Changed prior to commit:
http://reviews.llvm.org/D19557?vs=55083&id=55253#toc
Repository:
rL LLVM
http://reviews.llvm.org/D19557
Files:
lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
Index: lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
===================================================================
--- lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
+++ lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
@@ -4863,14 +4863,7 @@
if (!modInfo.get_link_map (link_map))
link_map = LLDB_INVALID_ADDRESS;
- // hack (cleaner way to get file name only?) (win/unix compat?)
- size_t marker = mod_name.rfind ('/');
- if (marker == std::string::npos)
- marker = 0;
- else
- marker += 1;
-
- FileSpec file (mod_name.c_str()+marker, true);
+ FileSpec file (mod_name.c_str(), true);
lldb::ModuleSP module_sp = LoadModuleAtAddress (file, link_map, mod_base,
mod_base_is_offset);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19557.55253.patch
Type: text/x-patch
Size: 896 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20160427/a851cccc/attachment.bin>
More information about the lldb-commits
mailing list