Closed Bug 959480 Opened 10 years ago Closed 10 years ago

add lldb summaries for nsTArray and nsAutoTArray

Categories

(Core :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla29

People

(Reporter: heycam, Assigned: heycam)

Details

(Whiteboard: [qa-])

Attachments

(1 file)

Attached patch patchSplinter Review
      No description provided.
Attachment #8359606 - Flags: review?(ehsan)
Comment on attachment 8359606 [details] [diff] [review]
patch

Review of attachment 8359606 [details] [diff] [review]:
-----------------------------------------------------------------

I assume this handles empty arrays as well?

::: python/lldbutils/lldbutils/general.py
@@ +36,5 @@
>  def init(debugger):
>      debugger.HandleCommand("type summary add nsAString_internal -F lldbutils.general.summarize_string")
>      debugger.HandleCommand("type summary add nsACString_internal -F lldbutils.general.summarize_string")
> +    debugger.HandleCommand("type synthetic add -x \"nsTArray<\" -l lldbutils.general.TArraySyntheticChildrenProvider")
> +    debugger.HandleCommand("type synthetic add -x \"nsAutoTArray<\" -l lldbutils.general.TArraySyntheticChildrenProvider")

Please handle FallibleTArray as well.
Attachment #8359606 - Flags: review?(ehsan) → review+
(In reply to :Ehsan Akhgari (needinfo? me!) from comment #1)
> I assume this handles empty arrays as well?

Yeah they get shown as "{}" when printed.
https://hg.mozilla.org/mozilla-central/rev/def1c895cd80
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: