Open Bug 1644505 Opened 4 years ago Updated 3 years ago

Curate a skip list for GDB

Categories

(Core :: JavaScript Engine, enhancement, P5)

enhancement

Tracking

()

People

(Reporter: mgaudet, Unassigned)

References

(Blocks 1 open bug)

Details

GDB has a feature for skipping over functions which are rarely helpful to the task at hand.

An example I run into all the time are the constructors for our wrappers on calls; it would be nice to skip all the invocations of JS::Handle<*>::Handle when stepping into a function, rather than having to go through one for each wrapped argument of the function being invoked.

We ought to curate this and check it in to make everyones lives easier when debugging.

Great idea, this has always bugged me. The ProtectedData::ref methods are another example of this.

Severity: -- → N/A

I've idly grumped at tromey about getting compiler support for this as an attribute, so we could annotate our code and then compatible gdbs/etc. would Just Get It. Never been quite motivated enough to do this work as the not-quite-as-ideal alternative, tho realistically it would have been a good time investment to do so years ago.

(In reply to Jeff Walden [:Waldo] from comment #2)

tho realistically it would have been a good time investment to do so years ago.

Yeah, I think "The second best time is now." definitely applies here :)

It's a great idea; though, I think that's a different bug with a different investment horizon.

Anyone volunteer to open it (what component would that even go under?) or shall I?

During All Hands I started looking at this; currently blocked a bit on this gdb bug.

You need to log in before you can comment on or make changes to this bug.