process: add progName() virtual function

This replaces a (potentially uninitialized) string
field with a virtual function so that we can have
a safe interface without requiring changes to the
eio code.
This commit is contained in:
Steve Reinhardt
2012-08-06 16:55:34 -07:00
parent e232152db6
commit 73ef8bd168
3 changed files with 7 additions and 6 deletions

View File

@@ -571,8 +571,6 @@ LiveProcess::LiveProcess(LiveProcessParams * params, ObjectFile *_objFile)
__pid = params->pid;
__ppid = params->ppid;
prog_fname = params->cmd[0];
// load up symbols, if any... these may be used for debugging or
// profiling.
if (!debugSymbolTable) {