protected String getStackFrameText(IStackFrame frame) {
if (frame instanceof DBGpStackFrame) {
try {
// Fix bug #160443 (Stack frames line numbers update).
// Synchronize the top frame with the given values.
DBGpThread thread = (DBGpThread) frame.getThread();
DBGpStackFrame topFrame = (DBGpStackFrame) thread
.getTopStackFrame();
if (topFrame != null && topFrame.equals(frame)) {
frame = topFrame;
} // end fix