added regular expressions for parsing map files and nm output
This commit is contained in:
parent
fe980b4445
commit
08d42b2251
3 changed files with 45 additions and 4 deletions
|
@ -23,3 +23,18 @@ MANTIS_MAIN_TEMPLATE_FILENAME = mantis_template.c
|
|||
CORECOMM_TEMPLATE_FILENAME = corecomm_template.java
|
||||
PATH_JAVAC = javac
|
||||
DEFAULT_PROJECTDIRS = ../apps/mrm
|
||||
|
||||
MAPFILE_DATA_START = ^.data[ \t]*0x([0-9A-Fa-f]*)[ \t]*0x[0-9A-Fa-f]*[ \t]*$
|
||||
MAPFILE_DATA_SIZE = ^.data[ \t]*0x[0-9A-Fa-f]*[ \t]*0x([0-9A-Fa-f]*)[ \t]*$
|
||||
MAPFILE_BSS_START = ^.bss[ \t]*0x([0-9A-Fa-f]*)[ \t]*0x[0-9A-Fa-f]*[ \t]*$
|
||||
MAPFILE_BSS_SIZE = ^.bss[ \t]*0x[0-9A-Fa-f]*[ \t]*0x([0-9A-Fa-f]*)[ \t]*$
|
||||
MAPFILE_VAR_NAME = ^[ \t]*(0x[0-9A-Fa-f]*)[ \t]*([^ ]*)[ \t]*$
|
||||
MAPFILE_VAR_ADDRESS_1 = ^[ \t]*0x([0-9A-Fa-f]*)[ \t]*
|
||||
MAPFILE_VAR_ADDRESS_2 = [ \t]*$
|
||||
MAPFILE_VAR_SIZE_1 = ^
|
||||
MAPFILE_VAR_SIZE_2 = [ \t]*(0x[0-9A-Fa-f]*)[ \t]*[^ ]*[ \t]*$
|
||||
NM_VAR_NAME_ADDRESS = ^([0-9A-Fa-f][0-9A-Fa-f]*)[ \t][^Tt][ \t]([^ ._][^ ]*)
|
||||
NM_DATA_START = ^([0-9A-Fa-f]*)[ \t]D[ \t]_data_start__$
|
||||
NM_DATA_END = ^([0-9A-Fa-f]*)[ \t]D[ \t]_data_end__$
|
||||
NM_BSS_START = ^([0-9A-Fa-f]*)[ \t]B[ \t]_bss_start__$
|
||||
NM_BSS_END = ^([0-9A-Fa-f]*)[ \t]B[ \t]_bss_end__$
|
||||
|
|
|
@ -23,3 +23,18 @@ MANTIS_MAIN_TEMPLATE_FILENAME = mantis_template.c
|
|||
CORECOMM_TEMPLATE_FILENAME = corecomm_template.java
|
||||
PATH_JAVAC = javac
|
||||
DEFAULT_PROJECTDIRS = ../apps/mrm
|
||||
|
||||
MAPFILE_DATA_START = ^.data[ \t]*0x([0-9A-Fa-f]*)[ \t]*0x[0-9A-Fa-f]*[ \t]*$
|
||||
MAPFILE_DATA_SIZE = ^.data[ \t]*0x[0-9A-Fa-f]*[ \t]*0x([0-9A-Fa-f]*)[ \t]*$
|
||||
MAPFILE_BSS_START = ^.bss[ \t]*0x([0-9A-Fa-f]*)[ \t]*0x[0-9A-Fa-f]*[ \t]*$
|
||||
MAPFILE_BSS_SIZE = ^.bss[ \t]*0x[0-9A-Fa-f]*[ \t]*0x([0-9A-Fa-f]*)[ \t]*$
|
||||
MAPFILE_VAR_NAME = ^[ \t]*(0x[0-9A-Fa-f]*)[ \t]*([^ ]*)[ \t]*$
|
||||
MAPFILE_VAR_ADDRESS_1 = ^[ \t]*0x([0-9A-Fa-f]*)[ \t]*
|
||||
MAPFILE_VAR_ADDRESS_2 = [ \t]*$
|
||||
MAPFILE_VAR_SIZE_1 = ^
|
||||
MAPFILE_VAR_SIZE_2 = [ \t]*(0x[0-9A-Fa-f]*)[ \t]*[^ ]*[ \t]*$
|
||||
NM_VAR_NAME_ADDRESS = ^([0-9A-Fa-f][0-9A-Fa-f]*)[ \t][^Tt][ \t]([^ ._][^ ]*)
|
||||
NM_DATA_START = ^([0-9A-Fa-f]*)[ \t]D[ \t]_data_start__$
|
||||
NM_DATA_END = ^([0-9A-Fa-f]*)[ \t]D[ \t]_data_end__$
|
||||
NM_BSS_START = ^([0-9A-Fa-f]*)[ \t]B[ \t]_bss_start__$
|
||||
NM_BSS_END = ^([0-9A-Fa-f]*)[ \t]B[ \t]_bss_end__$
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: GUI.java,v 1.57 2007/09/05 13:58:08 fros4943 Exp $
|
||||
* $Id: GUI.java,v 1.58 2007/09/10 13:25:36 fros4943 Exp $
|
||||
*/
|
||||
|
||||
package se.sics.cooja;
|
||||
|
@ -82,7 +82,7 @@ public class GUI {
|
|||
* External tools user settings filename.
|
||||
*/
|
||||
public static final String EXTERNAL_TOOLS_USER_SETTINGS_FILENAME = ".cooja.user.properties";
|
||||
private static File externalToolsUserSettingsFile =
|
||||
public static File externalToolsUserSettingsFile =
|
||||
new File(System.getProperty("user.home"), EXTERNAL_TOOLS_USER_SETTINGS_FILENAME);
|
||||
private static boolean externalToolsUserSettingsFileReadOnly = false;
|
||||
|
||||
|
@ -149,7 +149,18 @@ public class GUI {
|
|||
"REGEXP_PARSE_PROCESSES", "CMD_GREP_INTERFACES",
|
||||
"REGEXP_PARSE_INTERFACES", "CMD_GREP_SENSORS", "REGEXP_PARSE_SENSORS",
|
||||
"CONTIKI_MAIN_TEMPLATE_FILENAME", "DEFAULT_PROJECTDIRS",
|
||||
"CORECOMM_TEMPLATE_FILENAME", "PATH_JAVAC"};
|
||||
"CORECOMM_TEMPLATE_FILENAME", "PATH_JAVAC",
|
||||
|
||||
"MAPFILE_DATA_START", "MAPFILE_DATA_SIZE",
|
||||
"MAPFILE_BSS_START", "MAPFILE_BSS_SIZE",
|
||||
"MAPFILE_VAR_NAME",
|
||||
"MAPFILE_VAR_ADDRESS_1", "MAPFILE_VAR_ADDRESS_2",
|
||||
"MAPFILE_VAR_SIZE_1", "MAPFILE_VAR_SIZE_2",
|
||||
|
||||
"NM_VAR_NAME_ADDRESS",
|
||||
"NM_DATA_START", "NM_DATA_END",
|
||||
"NM_BSS_START", "NM_BSS_END",
|
||||
};
|
||||
|
||||
private static final int FRAME_NEW_OFFSET = 30;
|
||||
|
||||
|
@ -2396,7 +2407,7 @@ public class GUI {
|
|||
/**
|
||||
* Load user values from external properties file
|
||||
*/
|
||||
private static void loadExternalToolsUserSettings() {
|
||||
public static void loadExternalToolsUserSettings() {
|
||||
try {
|
||||
FileInputStream in = new FileInputStream(externalToolsUserSettingsFile);
|
||||
Properties settings = new Properties();
|
||||
|
|
Loading…
Reference in a new issue