mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56:01 +02:00
cleanup warnings
This commit is contained in:
parent
94a721a938
commit
0926de5ab2
5 changed files with 27 additions and 27 deletions
|
@ -21,10 +21,10 @@ import java.util.Vector;
|
||||||
*/
|
*/
|
||||||
public class AR {
|
public class AR {
|
||||||
|
|
||||||
private String filename;
|
protected String filename;
|
||||||
private ERandomAccessFile efile;
|
protected ERandomAccessFile efile;
|
||||||
|
protected long strtbl_pos = -1;
|
||||||
private ARHeader[] headers;
|
private ARHeader[] headers;
|
||||||
private long strtbl_pos = -1;
|
|
||||||
|
|
||||||
|
|
||||||
public void dispose() {
|
public void dispose() {
|
||||||
|
|
|
@ -17,22 +17,22 @@ import org.eclipse.cdt.utils.CPPFilt;
|
||||||
public class Elf {
|
public class Elf {
|
||||||
protected ERandomAccessFile efile;
|
protected ERandomAccessFile efile;
|
||||||
|
|
||||||
private ELFhdr ehdr;
|
protected ELFhdr ehdr;
|
||||||
private Section[] sections;
|
protected Section[] sections;
|
||||||
|
protected Addr2line addr2line;
|
||||||
|
protected boolean cppFiltEnabled = true;
|
||||||
|
protected CPPFilt cppFilt;
|
||||||
|
protected String file;
|
||||||
|
protected byte[] section_strtab;
|
||||||
|
|
||||||
private int syms = 0;
|
private int syms = 0;
|
||||||
private Addr2line addr2line;
|
|
||||||
private boolean cppFiltEnabled = true;
|
|
||||||
private CPPFilt cppFilt;
|
|
||||||
private String file;
|
|
||||||
private byte[] section_strtab;
|
|
||||||
private Symbol[] symbols;
|
private Symbol[] symbols;
|
||||||
// private Section sym;
|
|
||||||
private Symbol[] symtab_symbols;
|
private Symbol[] symtab_symbols;
|
||||||
private Section symtab_sym;
|
private Section symtab_sym;
|
||||||
private Symbol[] dynsym_symbols;
|
private Symbol[] dynsym_symbols;
|
||||||
private Section dynsym_sym;
|
private Section dynsym_sym;
|
||||||
|
|
||||||
private String EMPTY_STRING = "";
|
protected String EMPTY_STRING = "";
|
||||||
|
|
||||||
|
|
||||||
public class ELFhdr {
|
public class ELFhdr {
|
||||||
|
@ -101,7 +101,7 @@ public class Elf {
|
||||||
public short e_shnum; /* Number of section headers (Elf32_Half)*/
|
public short e_shnum; /* Number of section headers (Elf32_Half)*/
|
||||||
public short e_shstrndx; /* String table index (Elf32_Half)*/
|
public short e_shstrndx; /* String table index (Elf32_Half)*/
|
||||||
|
|
||||||
private ELFhdr() throws IOException {
|
protected ELFhdr() throws IOException {
|
||||||
efile.seek(0);
|
efile.seek(0);
|
||||||
efile.readFully(e_ident);
|
efile.readFully(e_ident);
|
||||||
if ( e_ident[ELFhdr.EI_MAG0] != 0x7f || e_ident[ELFhdr.EI_MAG1] != 'E' ||
|
if ( e_ident[ELFhdr.EI_MAG0] != 0x7f || e_ident[ELFhdr.EI_MAG1] != 'E' ||
|
||||||
|
@ -185,7 +185,7 @@ public class Elf {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private String string_from_elf_section(Elf.Section section, int index) throws IOException {
|
protected String string_from_elf_section(Elf.Section section, int index) throws IOException {
|
||||||
StringBuffer str = new StringBuffer();
|
StringBuffer str = new StringBuffer();
|
||||||
byte tmp;
|
byte tmp;
|
||||||
if ( index > section.sh_size ) {
|
if ( index > section.sh_size ) {
|
||||||
|
@ -491,7 +491,7 @@ public class Elf {
|
||||||
private Section section;
|
private Section section;
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
private Dynamic(Section section, long tag, long val) {
|
protected Dynamic(Section section, long tag, long val) {
|
||||||
this.section = section;
|
this.section = section;
|
||||||
d_tag = tag;
|
d_tag = tag;
|
||||||
d_val = val;
|
d_val = val;
|
||||||
|
|
|
@ -19,10 +19,10 @@ public class Spawner extends Process {
|
||||||
private int KILL = 9;
|
private int KILL = 9;
|
||||||
private int TERM = 15;
|
private int TERM = 15;
|
||||||
|
|
||||||
private int pid = 0;
|
int pid = 0;
|
||||||
private int status;
|
int status;
|
||||||
private int[] channels = new int[3];
|
int[] channels = new int[3];
|
||||||
private boolean isDone;
|
boolean isDone;
|
||||||
OutputStream out;
|
OutputStream out;
|
||||||
InputStream in;
|
InputStream in;
|
||||||
InputStream err;
|
InputStream err;
|
||||||
|
|
|
@ -37,7 +37,7 @@ import org.eclipse.ui.help.WorkbenchHelp;
|
||||||
public class MIPreferencePage extends PreferencePage implements IWorkbenchPreferencePage
|
public class MIPreferencePage extends PreferencePage implements IWorkbenchPreferencePage
|
||||||
{
|
{
|
||||||
// Timeout preference widgets
|
// Timeout preference widgets
|
||||||
private IntegerFieldEditor fTimeoutText;
|
IntegerFieldEditor fTimeoutText;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor for MIPreferencePage.
|
* Constructor for MIPreferencePage.
|
||||||
|
|
|
@ -170,7 +170,7 @@ public class CEnvironmentTab extends CLaunchConfigurationTab {
|
||||||
fBtnCancel = createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false);
|
fBtnCancel = createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateButtonsState() {
|
protected void updateButtonsState() {
|
||||||
if (fBtnOk != null)
|
if (fBtnOk != null)
|
||||||
fBtnOk.setEnabled(fTextName.getText().trim().length() > 0);
|
fBtnOk.setEnabled(fTextName.getText().trim().length() > 0);
|
||||||
}
|
}
|
||||||
|
@ -308,19 +308,19 @@ public class CEnvironmentTab extends CLaunchConfigurationTab {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateButtons() {
|
protected void updateButtons() {
|
||||||
IStructuredSelection selection = (IStructuredSelection) fVariableList.getSelection();
|
IStructuredSelection selection = (IStructuredSelection) fVariableList.getSelection();
|
||||||
fBtnEdit.setEnabled(selection.size() == 1);
|
fBtnEdit.setEnabled(selection.size() == 1);
|
||||||
fBtnRemove.setEnabled(selection.size() > 0);
|
fBtnRemove.setEnabled(selection.size() > 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void elementDoubleClicked(IStructuredSelection selection) {
|
protected void elementDoubleClicked(IStructuredSelection selection) {
|
||||||
if (selection.size() != 1)
|
if (selection.size() != 1)
|
||||||
return;
|
return;
|
||||||
doEdit((Map.Entry) selection.getFirstElement());
|
doEdit((Map.Entry) selection.getFirstElement());
|
||||||
}
|
}
|
||||||
|
|
||||||
private void newEntry() {
|
protected void newEntry() {
|
||||||
EntryDialog dialog = new EntryDialog(new String(), new String(), false);
|
EntryDialog dialog = new EntryDialog(new String(), new String(), false);
|
||||||
if (dialog.open() == dialog.OK) {
|
if (dialog.open() == dialog.OK) {
|
||||||
fElements.setProperty(dialog.getName(), dialog.getValue());
|
fElements.setProperty(dialog.getName(), dialog.getValue());
|
||||||
|
@ -329,12 +329,12 @@ public class CEnvironmentTab extends CLaunchConfigurationTab {
|
||||||
updateButtons();
|
updateButtons();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void edit() {
|
protected void edit() {
|
||||||
IStructuredSelection selection = (IStructuredSelection) fVariableList.getSelection();
|
IStructuredSelection selection = (IStructuredSelection) fVariableList.getSelection();
|
||||||
doEdit((Map.Entry) selection.getFirstElement());
|
doEdit((Map.Entry) selection.getFirstElement());
|
||||||
}
|
}
|
||||||
|
|
||||||
private void doEdit(Map.Entry entry) {
|
protected void doEdit(Map.Entry entry) {
|
||||||
EntryDialog dialog = new EntryDialog(entry.getKey().toString(), entry.getValue().toString(), true);
|
EntryDialog dialog = new EntryDialog(entry.getKey().toString(), entry.getValue().toString(), true);
|
||||||
if (dialog.open() == dialog.OK) {
|
if (dialog.open() == dialog.OK) {
|
||||||
fElements.remove(entry.getKey());
|
fElements.remove(entry.getKey());
|
||||||
|
@ -344,7 +344,7 @@ public class CEnvironmentTab extends CLaunchConfigurationTab {
|
||||||
updateButtons();
|
updateButtons();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void remove() {
|
protected void remove() {
|
||||||
IStructuredSelection selection = (IStructuredSelection) fVariableList.getSelection();
|
IStructuredSelection selection = (IStructuredSelection) fVariableList.getSelection();
|
||||||
Object[] elements = selection.toArray();
|
Object[] elements = selection.toArray();
|
||||||
for (int i = 0; i < elements.length; ++i)
|
for (int i = 0; i < elements.length; ++i)
|
||||||
|
|
Loading…
Add table
Reference in a new issue