Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(107)

Issue 9752044: code review 9752044: runtime: explicit init of runtime-gdb helpers (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 10 months ago by ail
Modified:
11 years, 6 months ago
Reviewers:
rsc
CC:
iant, rsc, gobot, golang-dev
Visibility:
Public.

Description

runtime: explicit init of runtime-gdb helpers If using other gdb python scripts loaded before Go's gdb-runtime.py and that have a different init prototype: Traceback (most recent call last): File "/usr/lib/go/src/pkg/runtime/runtime-gdb.py", line 446, in <module> k() TypeError: __init__() takes exactly 3 arguments (1 given) The problem is that gdb keeps all python scripts in the same namespace, so vars() contains them. To avoid that, load helpers one by one.

Patch Set 1 #

Patch Set 2 : diff -r 2a106010f660 https://code.google.com/p/go #

Patch Set 3 : diff -r 2a106010f660 https://code.google.com/p/go #

Patch Set 4 : diff -r 2a106010f660 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -3 lines) Patch
M src/pkg/runtime/runtime-gdb.py View 1 2 1 chunk +6 lines, -3 lines 0 comments Download

Messages

Total messages: 5
ail
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
11 years, 10 months ago (2013-05-25 14:19:46 UTC) #1
gobot
R=iant (assigned by r)
11 years, 10 months ago (2013-05-25 17:21:15 UTC) #2
ail
Friendly ping.
11 years, 6 months ago (2013-09-10 12:16:05 UTC) #3
rsc
LGTM
11 years, 6 months ago (2013-09-10 16:53:37 UTC) #4
rsc
11 years, 6 months ago (2013-09-10 17:00:12 UTC) #5
*** Submitted as https://code.google.com/p/go/source/detail?r=b24fe3a40fc7 ***

runtime: explicit init of runtime-gdb helpers

If using other gdb python scripts loaded before Go's gdb-runtime.py
and that have a different init prototype:
Traceback (most recent call last):
  File "/usr/lib/go/src/pkg/runtime/runtime-gdb.py", line 446, in <module>
    k()
TypeError: __init__() takes exactly 3 arguments (1 given)

The problem is that gdb keeps all python scripts in the same namespace,
so vars() contains them. To avoid that, load helpers one by one.

R=iant, rsc
CC=gobot, golang-dev
https://codereview.appspot.com/9752044

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b