summaryrefslogtreecommitdiffstats
path: root/generic/tclCmdIL.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2010-05-17 09:46:07 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2010-05-17 09:46:07 (GMT)
commit15dd1944c90dfe80aaf981a1075e7a6b707abc52 (patch)
tree86db20069c61ad8d991e1eb1fbe57f246794200b /generic/tclCmdIL.c
parenta87123e0a5a93624019b6540df8d3ca23f7a4d17 (diff)
downloadtcl-15dd1944c90dfe80aaf981a1075e7a6b707abc52.zip
tcl-15dd1944c90dfe80aaf981a1075e7a6b707abc52.tar.gz
tcl-15dd1944c90dfe80aaf981a1075e7a6b707abc52.tar.bz2
* generic/tclCmdIL.c (TclInfoFrame): Change this code to use
Tcl_GetCommandFullName rather than rolling its own. Discovered during the hunting of [Bug 3001438] but unlikely to be a fix.
Diffstat (limited to 'generic/tclCmdIL.c')
-rw-r--r--generic/tclCmdIL.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/generic/tclCmdIL.c b/generic/tclCmdIL.c
index bdc6d2e..3d4bcb2 100644
--- a/generic/tclCmdIL.c
+++ b/generic/tclCmdIL.c
@@ -16,7 +16,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclCmdIL.c,v 1.181 2010/04/05 19:44:45 ferrieux Exp $
+ * RCS: @(#) $Id: tclCmdIL.c,v 1.182 2010/05/17 09:46:09 dkf Exp $
*/
#include "tclInt.h"
@@ -1371,19 +1371,16 @@ TclInfoFrame(
Tcl_HashEntry *namePtr = procPtr->cmdPtr->hPtr;
if (namePtr) {
- char *procName = Tcl_GetHashKey(namePtr->tablePtr, namePtr);
- char *nsName = procPtr->cmdPtr->nsPtr->fullName;
+ Tcl_Obj *procNameObj;
/*
* This is a regular command.
*/
- ADD_PAIR("proc", Tcl_NewStringObj(nsName, -1));
-
- if (strcmp(nsName, "::") != 0) {
- Tcl_AppendToObj(lv[lc-1], "::", -1);
- }
- Tcl_AppendToObj(lv[lc-1], procName, -1);
+ TclNewObj(procNameObj);
+ Tcl_GetCommandFullName(interp, (Tcl_Command) procPtr->cmdPtr,
+ procNameObj);
+ ADD_PAIR("proc", procNameObj);
} else if (procPtr->cmdPtr->clientData) {
ExtraFrameInfo *efiPtr = procPtr->cmdPtr->clientData;
int i;