Closed Bug 243095 Opened 22 years ago Closed 22 years ago

a problem when setting a single component in XPCOM_BREAK_ON_LOAD

Categories

(Core :: XPCOM, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 243429

People

(Reporter: eagle.lu, Assigned: dougt)

Details

Attachments

(1 file, 1 obsolete file)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a) Gecko/20040507 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a) Gecko/20040507 If you want to break in some component (shared library) say libxpcom.so if you using the following gdb command to set the environment XPCOM_BREAK_ON_LOAD: set env XPCOM_BREAK_ON_LOAD xpcom and then "run" the program. gdb will not break after loading the libxpcom.so as you expect. which you should use: set env XPCOM_BREAK_ON_LOAD "xpcom:" instead which is very unconevient for developer. according to the document "http://www.mozilla.org/unix/debugging-faq.html" we don't need to add a colon at the end if there is only one component we are interesting. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Attached patch patch v0 (obsolete) — Splinter Review
Comment on attachment 148038 [details] [diff] [review] patch v0 Can you give r?
Attachment #148038 - Flags: review?(dougt)
Attachment #148038 - Attachment is obsolete: true
Attached patch patch v1Splinter Review
The root cause is the implementation of nsCString::Find() has been changed.
Comment on attachment 148039 [details] [diff] [review] patch v1 Can you give r now?
Attachment #148039 - Flags: review?(dougt)
Comment on attachment 148039 [details] [diff] [review] patch v1 Can you give r? Thanks
Attachment #148039 - Flags: review?(dougt) → review?(BradleyJunk)
Comment on attachment 148039 [details] [diff] [review] patch v1 r=dbradley Looks fine to me. Did Find use to treat -1 as the beginning?
Attachment #148039 - Flags: review?(BradleyJunk) → review+
Comment on attachment 148039 [details] [diff] [review] patch v1 Can you give sr? Thanks
Attachment #148039 - Flags: superreview?(shaver)
No, Find() doesn't treat -1 as beginning
Comment on attachment 148039 [details] [diff] [review] patch v1 sr=shaver
Attachment #148039 - Flags: superreview?(shaver) → superreview+
hmm. did bug 243429 fix this? especially in the light of comment 3
Yes. I have verified that the patch of bug 243429 does solve the problem. So the patch of this bug is not needed.
ok, in that case, marking as duplicate of bug 243429 *** This bug has been marked as a duplicate of 243429 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: