181 try {
182 println(key);
183 } catch (MissingResourceException mex) {
184 printDirectln(key);
185 }
186 }
187 System.out.flush();
188 e.printStackTrace();
189 }
190
191 static void printPrompt() {
192 ThreadInfo threadInfo = ThreadInfo.getCurrentThreadInfo();
193 if (threadInfo == null) {
194 System.out.print
195 (MessageOutput.format("jdb prompt with no current thread"));
196 } else {
197 System.out.print
198 (MessageOutput.format("jdb prompt thread name and current stack frame",
199 new Object [] {
200 threadInfo.getThread().name(),
201 new Integer (threadInfo.getCurrentFrameIndex() + 1)}));
202 }
203 System.out.flush();
204 }
205 }
|
181 try {
182 println(key);
183 } catch (MissingResourceException mex) {
184 printDirectln(key);
185 }
186 }
187 System.out.flush();
188 e.printStackTrace();
189 }
190
191 static void printPrompt() {
192 ThreadInfo threadInfo = ThreadInfo.getCurrentThreadInfo();
193 if (threadInfo == null) {
194 System.out.print
195 (MessageOutput.format("jdb prompt with no current thread"));
196 } else {
197 System.out.print
198 (MessageOutput.format("jdb prompt thread name and current stack frame",
199 new Object [] {
200 threadInfo.getThread().name(),
201 Integer.valueOf(threadInfo.getCurrentFrameIndex() + 1)}));
202 }
203 System.out.flush();
204 }
205 }
|