stacktrace.cc (13893:0e863b6c441a) stacktrace.cc (14018:9d2153431f44)
1/*
2 * Copyright (c) 2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 90 unchanged lines hidden (view full) ---

99std::string
100ProcessInfo::name(Addr ksp) const
101{
102 Addr task = this->task(ksp);
103 if (!task)
104 return "unknown";
105
106 char comm[256];
1/*
2 * Copyright (c) 2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 90 unchanged lines hidden (view full) ---

99std::string
100ProcessInfo::name(Addr ksp) const
101{
102 Addr task = this->task(ksp);
103 if (!task)
104 return "unknown";
105
106 char comm[256];
107 CopyStringOut(tc, comm, task + name_off, sizeof(comm));
107 tc->getVirtProxy().readString(comm, task + name_off, sizeof(comm));
108 if (!comm[0])
109 return "startup";
110
111 return comm;
112}
113
114StackTrace::StackTrace()
115 : tc(0), stack(64)

--- 57 unchanged lines hidden ---
108 if (!comm[0])
109 return "startup";
110
111 return comm;
112}
113
114StackTrace::StackTrace()
115 : tc(0), stack(64)

--- 57 unchanged lines hidden ---