[lldb-dev] Patch to Attach pid successfully from different dir
Hi, Firstly, I am new to the community, So please bear with my mistakes and guide me to be on your wavelength. While using lldb we found the small bug with attaching to the running process. "attach" works fine when we run the lldb on the same dir where we ran the executable but not if the dir changes. > cd lldb_temp/ > ./test & [2] 39044 > cd ../ > /b/vignesh/lldb_daily_build/20170419_bkup/binaries/bin/lldb (lldb) attach 39044 error: attach failed: unable to find executable for './test' I see the lldb using the relative path instead of absolute path of the exe. Modified the way sysctl gets the exe name to get the absolute path. Attached the patch which does the work. I did my testing on Fbsd10. Please let me know how to commit it -regards, vbalu Fix_for_attach_issue.patch Description: Binary data ___ lldb-dev mailing list lldb-dev@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev
Re: [lldb-dev] Patch to Attach pid successfully from different dir
Created Review : https://reviews.llvm.org/D32271 Do i need to assign the reviewers ? if so please let me know how to get reviewers list. -vbalu On Wed, Apr 19, 2017 at 7:59 PM, Kamil Rytarowski wrote: > On 19.04.2017 16:15, vignesh balu via lldb-dev wrote: > > Hi, > > Firstly, I am new to the community, So please bear with my mistakes and > > guide me to be on your wavelength. > > > > While using lldb we found the small bug with attaching to the running > > process. > > "attach" works fine when we run the lldb on the same dir where we ran > > the executable but not if the dir changes. > > > >> cd lldb_temp/ > >> ./test & > > [2] 39044 > >> cd ../ > >> /b/vignesh/lldb_daily_build/20170419_bkup/binaries/bin/lldb > > (lldb) attach 39044 > > error: attach failed: unable to find executable for './test' > > > > I see the lldb using the relative path instead of absolute path of the > exe. > > Modified the way sysctl gets the exe name to get the absolute path. > > > > Attached the patch which does the work. I did my testing on Fbsd10. > > Please let me know how to commit it > > > > -regards, > > vbalu > > > > > > ___ > > lldb-dev mailing list > > lldb-dev@lists.llvm.org > > http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev > > > > Please submit your code to https://reviews.llvm.org/ > > Please try to use clang-format before submission. > > ___ lldb-dev mailing list lldb-dev@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev
[lldb-dev] PTYPE replacement in LLDB
Hi All, I see in the command Mapping Documnet, we can use "image lookup -type" in place of "ptype" from gdb. Currently, this can be used only for Type(link int, char) , or gloal, static variable or function symbol. This is not as efficient as GDB, where it will whole structure if we point to variable. Here we have to find the variable type first and then we have to do "image lookup". do we have a single command which will do that ? If not, shall we implement one or integrating with one of existing command is good ? thanks, vigneshbalu ___ lldb-dev mailing list lldb-dev@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev