Closed Bug 566695 Opened 14 years ago Closed 14 years ago

js_DumpPC for easy printing current code context in gdb

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dherman, Assigned: dherman)

Details

(Whiteboard: fixed-in-tracemonkey)

Attachments

(1 file, 1 obsolete file)

From my current debugging session:

(gdb) call js_DumpPC(cx)
main:
    00000:   1  trace 0
    00003:   1  lambda (function (k) {return k;})
    00006:   1  shift
--> 00007:   1  pop
    00008:   1  lambda (function (k) {return k;})
    00011:   1  shift
    00012:   1  pop
    00013:   1  int8 42
    00015:   1  return
    00016:   1  stop
$1 = 1

Pretty convenient. Teeny little patch forthcoming.

Dave
Attached patch js_DumpPC implementation (obsolete) — Splinter Review
Updated commit message with r=jorendorff.
Attachment #446046 - Attachment is obsolete: true
Attachment #446050 - Flags: review?(jorendorff)
Attachment #446050 - Flags: review?(jorendorff) → review+
http://hg.mozilla.org/mozilla-central/rev/8bbbf1cf4280
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: