-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[LLDB][NativePDB] Find functions by basename #152295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
b6886d6
f342ea1
24808f9
b88192f
096b814
0ee5016
8be4fc6
75179a8
64b2f5d
1cc0ccc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,24 +6,52 @@ | |
|
|
||
| // RUN: lldb-test symbols --find=function --name=main --function-flags=full %t.exe \ | ||
| // RUN: | FileCheck %s --check-prefix=FIND-MAIN | ||
| // RUN: lldb-test symbols --find=function --name=main --function-flags=method %t.exe \ | ||
| // RUN: | FileCheck %s --check-prefix=FIND-NO-FUNCTION | ||
| // RUN: lldb-test symbols --find=function --name=main --function-flags=base %t.exe \ | ||
| // RUN: | FileCheck %s --check-prefix=FIND-MAIN | ||
|
|
||
| // RUN: lldb-test symbols --find=function --name=static_fn --function-flags=full %t.exe \ | ||
| // RUN: | FileCheck %s --check-prefix=FIND-STATIC | ||
| // RUN: lldb-test symbols --find=function --name=static_fn --function-flags=method %t.exe \ | ||
| // RUN: | FileCheck %s --check-prefix=FIND-NO-FUNCTION | ||
| // RUN: lldb-test symbols --find=function --name=static_fn --function-flags=base %t.exe \ | ||
| // RUN: | FileCheck %s --check-prefix=FIND-STATIC | ||
|
|
||
| // RUN: lldb-test symbols --find=function --name=varargs_fn --function-flags=full %t.exe \ | ||
| // RUN: | FileCheck %s --check-prefix=FIND-VAR | ||
| // RUN: lldb-test symbols --find=function --name=varargs_fn --function-flags=method %t.exe \ | ||
| // RUN: | FileCheck %s --check-prefix=FIND-NO-FUNCTION | ||
| // RUN: lldb-test symbols --find=function --name=varargs_fn --function-flags=base %t.exe \ | ||
| // RUN: | FileCheck %s --check-prefix=FIND-VAR | ||
|
|
||
| // RUN: lldb-test symbols --find=function --name=Struct::simple_method --function-flags=full %t.exe \ | ||
| // RUN: | FileCheck %s --check-prefix=FIND-SIMPLE | ||
| // RUN: lldb-test symbols --find=function --name=Struct::simple_method --function-flags=method %t.exe \ | ||
| // RUN: | FileCheck %s --check-prefix=FIND-SIMPLE | ||
| // RUN: lldb-test symbols --find=function --name=Struct::simple_method --function-flags=base %t.exe \ | ||
| // RUN: | FileCheck %s --check-prefix=FIND-SIMPLE | ||
|
|
||
| // RUN: lldb-test symbols --find=function --name=Struct::virtual_method --function-flags=full %t.exe \ | ||
| // RUN: | FileCheck %s --check-prefix=FIND-VIRTUAL | ||
| // RUN: lldb-test symbols --find=function --name=Struct::virtual_method --function-flags=method %t.exe \ | ||
| // RUN: | FileCheck %s --check-prefix=FIND-VIRTUAL | ||
| // RUN: lldb-test symbols --find=function --name=Struct::virtual_method --function-flags=base %t.exe \ | ||
| // RUN: | FileCheck %s --check-prefix=FIND-VIRTUAL | ||
|
|
||
| // RUN: lldb-test symbols --find=function --name=Struct::static_method --function-flags=full %t.exe \ | ||
| // RUN: | FileCheck %s --check-prefix=FIND-STATIC-METHOD | ||
| // RUN: lldb-test symbols --find=function --name=Struct::static_method --function-flags=method %t.exe \ | ||
| // RUN: | FileCheck %s --check-prefix=FIND-NO-FUNCTION | ||
| // RUN: lldb-test symbols --find=function --name=Struct::static_method --function-flags=base %t.exe \ | ||
| // RUN: | FileCheck %s --check-prefix=FIND-STATIC-METHOD | ||
|
|
||
| // RUN: lldb-test symbols --find=function --name=Struct::overloaded_method --function-flags=full %t.exe \ | ||
| // RUN: | FileCheck %s --check-prefix=FIND-OVERLOAD | ||
| // RUN: lldb-test symbols --find=function --name=Struct::overloaded_method --function-flags=method %t.exe \ | ||
| // RUN: | FileCheck %s --check-prefix=FIND-OVERLOAD-METHOD | ||
| // RUN: lldb-test symbols --find=function --name=Struct::overloaded_method --function-flags=base %t.exe \ | ||
| // RUN: | FileCheck %s --check-prefix=FIND-OVERLOAD | ||
|
||
|
|
||
| struct Struct { | ||
| int simple_method() { | ||
|
|
@@ -69,6 +97,8 @@ int main(int argc, char **argv) { | |
| // FIND-MAIN: Function: id = {{.*}}, name = "main" | ||
| // FIND-MAIN-NEXT: FuncType: id = {{.*}}, compiler_type = "int (int, char **)" | ||
|
|
||
| // FIND-NO-FUNCTION: Found 0 functions | ||
|
|
||
| // FIND-STATIC: Function: id = {{.*}}, name = "{{.*}}static_fn{{.*}}" | ||
| // FIND-STATIC-NEXT: FuncType: id = {{.*}}, compiler_type = "int (void)" | ||
|
|
||
|
|
@@ -88,3 +118,7 @@ int main(int argc, char **argv) { | |
| // FIND-OVERLOAD: FuncType: id = {{.*}}, compiler_type = "int (void)" | ||
| // FIND-OVERLOAD: FuncType: id = {{.*}}, compiler_type = "int (char)" | ||
| // FIND-OVERLOAD: FuncType: id = {{.*}}, compiler_type = "int (char, int, ...)" | ||
|
|
||
| // FIND-OVERLOAD-METHOD: Function: id = {{.*}}, name = "{{.*}}Struct::overloaded_method{{.*}}" | ||
| // FIND-OVERLOAD-METHOD: FuncType: id = {{.*}}, compiler_type = "int (void)" | ||
| // FIND-OVERLOAD-METHOD: FuncType: id = {{.*}}, compiler_type = "int (char)" | ||
Uh oh!
There was an error while loading. Please reload this page.