-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/GP-869_d-millar_ConPTY--REBASED-1'
(Closes #2908)
- Loading branch information
Showing
33 changed files
with
1,922 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
.../Debugger-agent-gdb/src/main/java/agent/gdb/manager/evt/GdbCommandEchoInterruptEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* ### | ||
* IP: GHIDRA | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package agent.gdb.manager.evt; | ||
|
||
import agent.gdb.manager.parsing.GdbParsingUtils.GdbParseError; | ||
|
||
/** | ||
* An "event" corresponding with the {@code -exec-interrupt} GDB/MI command | ||
* | ||
* <p> | ||
* If issued, the {@code -exec-interrupt} command is always issued "out of band". It skips the queue | ||
* and is printed straight to GDB's pty, usually preceded by a Ctrl-C (char 3). As a result, GDB is | ||
* going to print {@code ^done}, which will get mistaken for the completion of a command in the | ||
* queue. By recognizing the command being echoed back, we can identify the done event that does | ||
* with it, and ignore it. | ||
*/ | ||
public class GdbCommandEchoInterruptEvent extends AbstractGdbEvent<String> { | ||
|
||
/** | ||
* Construct a new "event", passing the tail through as information | ||
* | ||
* @param tail the text following the event type in the GDB/MI event record | ||
* @throws GdbParseError if the tail cannot be parsed | ||
*/ | ||
public GdbCommandEchoInterruptEvent(CharSequence tail) throws GdbParseError { | ||
super(tail); | ||
} | ||
|
||
@Override | ||
protected String parseInfo(CharSequence tail) throws GdbParseError { | ||
return tail.toString(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.