You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[lldb][rpc] Use Clang attributes to keep track of pointer plus len
In LLDB RPC, we need to keep track of methods that have a pointer
parameter followed by a lengtgh parameter as these parameters need
some exceptions when they're being emitted by lldb-rpc-gen. Previously,
we used an exception list to keep track of every method that fell under
this category using their mangled names. This method worked, but
manually maintaining an exception list this way is unwieldly and can
lead to hard-to-track errors for clients that use RPC and forget to add
a method that they use to said list.
This commit changes this by using the Clang annotation attribute to
annotate every method that uses a pointer plus length directly in the SB
API, and checks that a given method has this attribute when determining
if a method has a pointer plus length.
0 commit comments