Closed
Bug 1283763
Opened 9 years ago
Closed 9 years ago
fix gdb pretty printers for nsTArray
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(firefox50 fixed)
RESOLVED
FIXED
mozilla50
| Tracking | Status | |
|---|---|---|
| firefox50 | --- | fixed |
People
(Reporter: wcpan, Unassigned)
Details
Attachments
(1 file)
For types like "nsTArray<nsCOMPtr<nsIInputStream>>", the pretty printer will first match "nsCOMPtr", then throws exception because there is no "mRawPtr".
| Reporter | ||
Comment 1•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/61776/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/61776/
Attachment #8767072 -
Flags: review?(tbsaunde+mozbugs)
| Reporter | ||
Comment 2•9 years ago
|
||
Not work for "mozilla::AlignedStorage2<nsTArray<mozilla::ipc::FileDescriptor> >".
Maybe needs some try-catch.
Comment 3•9 years ago
|
||
(In reply to Wei-Cheng Pan [:wcpan] [:wcp] [:legnaleurc] from comment #2)
> Not work for
> "mozilla::AlignedStorage2<nsTArray<mozilla::ipc::FileDescriptor> >".
> Maybe needs some try-catch.
It seems like there's a general problem here that the pretty printers will match basically anything containing nsTArray / nsCOMPtr / whatever, that's because the regexps are pretty general .*nsCOMPtr<.*>.* etc
iirc ^nsCOMPtr<.*>$ doesn't work for some reason that I don't think I investigated, I wonder if its because $ needs a '\n' to match. Does ^nsCOMPtr<.*>.* work? similar for the other regexps of course.
btw seems like we should probably add a pretty printer for mozilla::AlignedStorage
Updated•9 years ago
|
Flags: needinfo?(wpan)
| Reporter | ||
Comment 4•9 years ago
|
||
Comment on attachment 8767072 [details]
Bug 1283763 - Fix gdb pretty printers for nsTArray.
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/61776/diff/1-2/
| Reporter | ||
Comment 5•9 years ago
|
||
^nsCOMPtr<.*>.* works. Acctually, ^nsCOMPtr<.*>$ works for me as well. What type didn't work for you?
I think .*TArray is too general, it will match any template class which contains nsTArray.
I guess the best way is to explicitly list all types.
This patch also solved "mozilla::AlignedStorage2<nsTArray<mozilla::ipc::FileDescriptor> >".
Flags: needinfo?(wpan)
Comment 6•9 years ago
|
||
(In reply to Wei-Cheng Pan [:wcpan] [:wcp] [:legnaleurc] from comment #5)
> ^nsCOMPtr<.*>.* works. Acctually, ^nsCOMPtr<.*>$ works for me as well. What
> type didn't work for you?
hrm, it works for me too now so I have no idea :(
> I think .*TArray is too general, it will match any template class which
> contains nsTArray.
> I guess the best way is to explicitly list all types.
yeah, or maybe \w+ or something would work, but just listing them all certainly does.
> This patch also solved
> "mozilla::AlignedStorage2<nsTArray<mozilla::ipc::FileDescriptor> >".
yeah as expected though of course we should add a printer for AlignedStorage right?
Updated•9 years ago
|
Attachment #8767072 -
Flags: review?(tbsaunde+mozbugs) → review+
| Reporter | ||
Updated•9 years ago
|
Keywords: checkin-needed
Pushed by cbook@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/0d73ad04a536
Fix gdb pretty printers for nsTArray. r=tbsaunde
Keywords: checkin-needed
Comment 8•9 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla50
Updated•7 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•