mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-21 19:42:14 +00:00
Merge remote-tracking branch 'origin/GP-4797_ghidra1_EnumDataType' into
patch (Closes #6765)
This commit is contained in:
commit
ae18bdb413
@ -4,9 +4,9 @@
|
||||
* 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.
|
||||
@ -164,7 +164,7 @@ public class PEx64UnwindInfoDataType extends DynamicDataType {
|
||||
|
||||
private static EnumDataType unwindInfoFlagsEnum;
|
||||
|
||||
private EnumDataType defineUnwindInfoFlags() {
|
||||
private synchronized EnumDataType defineUnwindInfoFlags() {
|
||||
if (unwindInfoFlagsEnum == null) {
|
||||
unwindInfoFlagsEnum = new EnumDataType("UNW_FLAGS", 1);
|
||||
unwindInfoFlagsEnum.add("UNW_FLAG_NHANDLER", PEx64UnwindInfo.UNW_FLAG_NHANDLER);
|
||||
|
@ -4,9 +4,9 @@
|
||||
* 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.
|
||||
@ -130,6 +130,7 @@ public class EnumDataType extends GenericDataType implements Enum {
|
||||
List<String> names = new ArrayList<>();
|
||||
Collection<List<String>> values = valueMap.values();
|
||||
for (List<String> list : values) {
|
||||
list = new ArrayList<>(list);
|
||||
Collections.sort(list);
|
||||
names.addAll(list);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user