diff options
author | Daniel Jacobowitz <dan@debian.org> | 2006-09-15 18:52:15 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2006-09-15 18:52:15 +0000 |
commit | f3916d9a974a8f8867755f389d38b500d3cc819c (patch) | |
tree | 44711e6a82a79d24fcf7809b925be1feeb2533b3 | |
parent | f02244589af6b288fca0ec30c22727e672c4f374 (diff) | |
download | gdb-f3916d9a974a8f8867755f389d38b500d3cc819c.tar.gz |
gdb/testsuite/
* config/symbian.exp (cyg_to_win): New.
(symbian_compile): Use it. Handle c++ and incdir.
-rw-r--r-- | ChangeLog.csl | 6 | ||||
-rw-r--r-- | gdb/testsuite/config/symbian.exp | 27 |
2 files changed, 26 insertions, 7 deletions
diff --git a/ChangeLog.csl b/ChangeLog.csl index 25ee2d82041..116b6bcd954 100644 --- a/ChangeLog.csl +++ b/ChangeLog.csl @@ -1,6 +1,12 @@ 2006-09-15 Daniel Jacobowitz <dan@codesourcery.com> gdb/testsuite/ + * config/symbian.exp (cyg_to_win): New. + (symbian_compile): Use it. Handle c++ and incdir. + +2006-09-15 Daniel Jacobowitz <dan@codesourcery.com> + + gdb/testsuite/ * gdb.base/commands.exp (bp_deleted_in_command_test) (temporary_breakpoint_commands): Allow run.c without a pathname. * gdb.base/ending-run.exp: Allow E32Main. diff --git a/gdb/testsuite/config/symbian.exp b/gdb/testsuite/config/symbian.exp index 5c620a0f96e..17e4388b818 100644 --- a/gdb/testsuite/config/symbian.exp +++ b/gdb/testsuite/config/symbian.exp @@ -16,6 +16,17 @@ proc epoc_run { outvar args } { return $result } +proc cyg_to_win { source } { + set result [file native [file normalize $source]] + if { [string first "C:" $result] != -1 } { + set result [string map {C: ""} $result] + } else { + # This appears to be a Unix-thinking sort of TCL. + set result "\\cygwin[string map {/ \\} $result]" + } + return $result +} + proc symbian_compile { sources destfile type options } { global object_map global epocroot @@ -62,12 +73,17 @@ proc symbian_compile { sources destfile type options } { set reldir "urel" set allflags "" + set incdirs {} foreach option $options { # send_user "option: $option\n" if { $option == "debug" } { set reldir "udeb" + } elseif { $option == "c++" } { + # Nothing } elseif { [regexp -all {additional_flags=(.*)} $option dummy flags] } { append allflags " $flags" + } elseif { [regexp -all {incdir=(.*)} $option dummy value] } { + lappend incdirs $value } else { warning "Compilation option $option not supported" return -1 @@ -91,16 +107,13 @@ proc symbian_compile { sources destfile type options } { puts $bldfile "TARGETTYPE EXE" puts $bldfile "SOURCEPATH \\." foreach source $mysources { - set result [file native [file normalize $source]] - if { [string first "C:" $result] != -1 } { - set result [string map {C: ""} $result] - } else { - # This appears to be a Unix-thinking sort of TCL. - set result "\\cygwin[string map {/ \\} $result]" - } + set result [cyg_to_win $source] # send_user "orig source $source, new source $result\n" puts $bldfile "SOURCE $result" } + foreach incdir $incdirs { + puts $bldfile "USERINCLUDE [cyg_to_win $incdir]" + } puts $bldfile "LIBRARY EUSER.LIB" puts $bldfile "LIBRARY ESTLIB.LIB" puts $bldfile "STATICLIBRARY MYECRT0.LIB" |