-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[wasm][debugger] Show signature for delegate, or target, if available #19505
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
[wasm][debugger] Show signature for delegate, or target, if available #19505
Conversation
- As object properties, we return a `Target` which has the signature of the delegate target. Fixes mono#19382
df027e1 to
6d24af1
Compare
|
This is based on changes from #19490, so this doesn't target |
| * generating this for the delegate, and it's target. | ||
| */ | ||
| static GString* | ||
| mono_method_to_desc_for_js (MonoMethod *method, gboolean include_namespace) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like it could be simplified and reduce allocations with a g_string_printf? Maybe just moved inline?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Fixed.
.. as suggested by @lewing
|
@monojenkins backport 3.2-wasm |
|
@lewing backporting to 3.2-wasm failed, the patch results in conflicts: Please backport manually! |
…mono#19505) * [wasm][debugger] Show signature for delegate, or target, if available - As object properties, we return a `Target` which has the signature of the delegate target. Fixes mono#19382 * [wasm][debugger] Some tidying up * [wasm][debugger] Remove unused `sig_desc` * [wasm][debugger] Simplify code, avoid extra allocations .. as suggested by @lewing (cherry picked from commit 4eca12e)
…#19505) (#19536) * [wasm][debugger] Show signature for delegate, or target, if available - As object properties, we return a `Target` which has the signature of the delegate target. Fixes #19382 * [wasm][debugger] Some tidying up * [wasm][debugger] Remove unused `sig_desc` * [wasm][debugger] Simplify code, avoid extra allocations .. as suggested by @lewing (cherry picked from commit 4eca12e) Co-authored-by: Ankit Jain <[email protected]>
…mono#19505) * [wasm][debugger] Show signature for delegate, or target, if available - As object properties, we return a `Target` which has the signature of the delegate target. Fixes mono#19382 * [wasm][debugger] Some tidying up * [wasm][debugger] Remove unused `sig_desc` * [wasm][debugger] Simplify code, avoid extra allocations .. as suggested by @lewing (cherry picked from commit 4eca12e)
#19535) * [wasm][debugger] Show signature for delegate, or target, if available (#19505) * [wasm][debugger] Show signature for delegate, or target, if available - As object properties, we return a `Target` which has the signature of the delegate target. Fixes #19382 * [wasm][debugger] Some tidying up * [wasm][debugger] Remove unused `sig_desc` * [wasm][debugger] Simplify code, avoid extra allocations .. as suggested by @lewing (cherry picked from commit 4eca12e) * [wasm][debugger] Fix tests broken because unused vars are not null .. anymore, which is because we disabled optimizations in the interpreter when debugging. * [wasm][debugger][tests] Add tests to also check delegates in previous .. frames. * [wasm][debugger] Disable a test that tried to look at previous async .. frames. This just happened to work. Currently, the trace has details of the async machinery, instead of one reflecting what it might have looked like for a non-async case. So, we can't reliably find the previous method to inspect it's locals. * [wasm][debugger] Fix test
mono#19535) * [wasm][debugger] Show signature for delegate, or target, if available (mono#19505) * [wasm][debugger] Show signature for delegate, or target, if available - As object properties, we return a `Target` which has the signature of the delegate target. Fixes mono#19382 * [wasm][debugger] Some tidying up * [wasm][debugger] Remove unused `sig_desc` * [wasm][debugger] Simplify code, avoid extra allocations .. as suggested by @lewing (cherry picked from commit 4eca12e) * [wasm][debugger] Fix tests broken because unused vars are not null .. anymore, which is because we disabled optimizations in the interpreter when debugging. * [wasm][debugger][tests] Add tests to also check delegates in previous .. frames. * [wasm][debugger] Disable a test that tried to look at previous async .. frames. This just happened to work. Currently, the trace has details of the async machinery, instead of one reflecting what it might have looked like for a non-async case. So, we can't reliably find the previous method to inspect it's locals. * [wasm][debugger] Fix test
#19535) (#19579) * [wasm][debugger] Show signature for delegate, or target, if available (#19505) * [wasm][debugger] Show signature for delegate, or target, if available - As object properties, we return a `Target` which has the signature of the delegate target. Fixes #19382 * [wasm][debugger] Some tidying up * [wasm][debugger] Remove unused `sig_desc` * [wasm][debugger] Simplify code, avoid extra allocations .. as suggested by @lewing (cherry picked from commit 4eca12e) * [wasm][debugger] Fix tests broken because unused vars are not null .. anymore, which is because we disabled optimizations in the interpreter when debugging. * [wasm][debugger][tests] Add tests to also check delegates in previous .. frames. * [wasm][debugger] Disable a test that tried to look at previous async .. frames. This just happened to work. Currently, the trace has details of the async machinery, instead of one reflecting what it might have looked like for a non-async case. So, we can't reliably find the previous method to inspect it's locals. * [wasm][debugger] Fix test Co-authored-by: Ankit Jain <[email protected]>
Targetwhich has the signature ofthe delegate target.
Fixes #19382