[lldb-dev] Q: using lldb::addr_t and addr_t

Greg Clayton gclayton at apple.com
Wed Jan 16 14:48:36 PST 2013


On Jan 16, 2013, at 1:44 PM, Pawel Wodnicki <root at 32bitmicro.com> wrote:

>> This is usually due to a missing:
>> 
>> using namespace lldb;
>> 
>> at the top of the source file. If this is in a header file, then you will need to prefix the type with "lldb::".
> 
> OK, so just use the standard pattern with fully qualified
> type in the header.

Sounds good.

> Do you care about cleaning lldb::addr_t in the implementation files?

It really depends. Often times if an implementation file includes llvm/clang and LLDB headers, we sometimes like the full qualifications. So I wouldn't go out of your way to clean any existing extra quals.

> 
> 
>> 
>> Greg
>> 
>> On Jan 16, 2013, at 11:05 AM, Pawel Wodnicki <root at 32bitmicro.com> wrote:
>> 
>>> Hello,
>>> 
>>> Quick question on using lldb::addr_t and addr_t.
>>> I am getting compile errors due undefined addr_t.
>>> The way to fix it seems simple, just change
>>> all the addr_t to lldb::addr_t :-). But there is
>>> a lot of the addr_t sprinkled around, so perhaps
>>> I am simply missing add_t type definition.
>>> Are these two types intended to be equivalent?
>>> 
>>> PaweĊ‚
>>> 
>>> 
>>> 
>>> 
>>> 
>>> _______________________________________________
>>> lldb-dev mailing list
>>> lldb-dev at cs.uiuc.edu
>>> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev
>> 
>> 
>> 
> 





More information about the lldb-dev mailing list