|
1 | | -// Type definitions for non-npm package frida-gum 17.3 |
| 1 | +// Type definitions for non-npm package frida-gum 18.0 |
2 | 2 | // Project: https://github.com/frida/frida |
3 | 3 | // Definitions by: Ole André Vadla Ravnås <https://github.com/oleavr> |
4 | 4 | // Francesco Tamagni <https://github.com/mrmacete> |
@@ -4513,11 +4513,9 @@ declare namespace Java { |
4513 | 4513 | /** |
4514 | 4514 | * Generates a backtrace for the current thread. |
4515 | 4515 | * |
4516 | | - * Note that this API is unstable and subject to change. |
4517 | | - * |
4518 | 4516 | * @param options Options to customize the stack-walking. |
4519 | 4517 | */ |
4520 | | - function backtrace(options?: BacktraceOptions): Frame[]; |
| 4518 | + function backtrace(options?: BacktraceOptions): Backtrace; |
4521 | 4519 |
|
4522 | 4520 | /** |
4523 | 4521 | * Determines whether the caller is running on the main thread. |
@@ -4644,39 +4642,36 @@ declare namespace Java { |
4644 | 4642 | } |
4645 | 4643 |
|
4646 | 4644 | /** |
4647 | | - * Stack frame returned by `Java.backtrace()`. |
| 4645 | + * Backtrace returned by `Java.backtrace()`. |
4648 | 4646 | */ |
4649 | | - interface Frame { |
| 4647 | + interface Backtrace { |
4650 | 4648 | /** |
4651 | | - * Method being called. |
| 4649 | + * ID that can be used for deduplicating identical backtraces. |
4652 | 4650 | */ |
4653 | | - method: { |
4654 | | - /** |
4655 | | - * The jmethodID of the method. On ART, this is an `ArtMethod *`. |
4656 | | - */ |
4657 | | - handle: NativePointer; |
| 4651 | + id: string; |
4658 | 4652 |
|
4659 | | - /** |
4660 | | - * Method name, e.g. `"loopOnce"`. |
4661 | | - */ |
4662 | | - name: string; |
4663 | | - |
4664 | | - /** |
4665 | | - * Return type, e.g. `"boolean"`. |
4666 | | - */ |
4667 | | - returnType: string; |
| 4653 | + /** |
| 4654 | + * Stack frames. |
| 4655 | + */ |
| 4656 | + frames: Frame[]; |
| 4657 | + } |
4668 | 4658 |
|
4669 | | - /** |
4670 | | - * Argument types, e.g. `["android.os.Looper", "long", "int"]`. |
4671 | | - */ |
4672 | | - argumentTypes: string[]; |
4673 | | - }; |
| 4659 | + interface Frame { |
| 4660 | + /** |
| 4661 | + * Signature, e.g. `"Landroid/os/Looper;,loopOnce,(Landroid/os/Looper;JI)Z"`. |
| 4662 | + */ |
| 4663 | + signature: string; |
4674 | 4664 |
|
4675 | 4665 | /** |
4676 | 4666 | * Class name that method belongs to, e.g. `"android.os.Looper"`. |
4677 | 4667 | */ |
4678 | 4668 | className: string; |
4679 | 4669 |
|
| 4670 | + /** |
| 4671 | + * Method name, e.g. `"loopOnce"`. |
| 4672 | + */ |
| 4673 | + methodName: string; |
| 4674 | + |
4680 | 4675 | /** |
4681 | 4676 | * Source file name, e.g. `"Looper.java"`. |
4682 | 4677 | */ |
|
0 commit comments