Skip to content

Commit ce78b86

Browse files
committed
Merge remote-tracking branch 'origin/patch'
2 parents d430254 + bf19346 commit ce78b86

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/elf/ElfDefaultGotPltMarkup.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,9 @@ private void processGOT(Address gotStart, Address gotEnd, TaskMonitor monitor)
183183
monitor.checkCanceled();
184184

185185
Data data = createPointer(gotStart, true);
186+
if (data == null) {
187+
break;
188+
}
186189

187190
try {
188191
gotStart = data.getMaxAddress().add(1);

Ghidra/Features/MicrosoftCodeAnalyzer/src/main/java/ghidra/app/plugin/prototype/MicrosoftCodeAnalyzerPlugin/RttiAnalyzer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public RttiAnalyzer() {
5858
setSupportsOneTimeAnalysis();
5959
// Set priority of RTTI analyzer to run after Demangler so can see if better
6060
// plate comment or label already exists from Demangler.
61-
setPriority(AnalysisPriority.DATA_TYPE_PROPOGATION.before().before());
61+
setPriority(AnalysisPriority.REFERENCE_ANALYSIS.before());
6262
setDefaultEnablement(true);
6363
validationOptions = new DataValidationOptions();
6464
applyOptions = new DataApplyOptions();

Ghidra/Features/Python/src/main/java/ghidra/python/GhidraPythonInterpreter.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,12 @@ public synchronized void execFile(ResourceFile file, PythonScript script)
218218
InetAddress localhost = InetAddress.getLocalHost();
219219
new Socket(localhost, PyDevUtils.PYDEV_REMOTE_DEBUGGER_PORT).close();
220220
Msg.info(this, "Python debugger found");
221-
exec("import pydevd; pydevd.settrace(host=\"" + localhost.getHostName() +
221+
StringBuilder dbgCmds = new StringBuilder();
222+
dbgCmds.append("import pydevd;");
223+
dbgCmds.append("pydevd.threadingCurrentThread().__pydevd_main_thread = True;");
224+
dbgCmds.append("pydevd.settrace(host=\"" + localhost.getHostName() +
222225
"\", port=" + PyDevUtils.PYDEV_REMOTE_DEBUGGER_PORT + ", suspend=False);");
226+
exec(dbgCmds.toString());
223227
Msg.info(this, "Connected to a python debugger.");
224228
}
225229
catch (IOException e) {

0 commit comments

Comments
 (0)