- fix native mingw build if gettimeofday not defined.
- reformat whitespace in startup.tcl git-svn-id: svn://svn.berlios.de/openocd/trunk@1101 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
parent
fdb7a1705d
commit
88c940c4b8
|
@ -77,19 +77,17 @@ struct timeval {
|
|||
long tv_usec;
|
||||
};
|
||||
|
||||
struct timezone {
|
||||
int tz_minuteswest;
|
||||
int tz_dsttime;
|
||||
};
|
||||
|
||||
#endif /* _TIMEVAL_DEFINED */
|
||||
|
||||
#endif
|
||||
|
||||
/* gettimeofday() */
|
||||
#ifndef HAVE_GETTIMEOFDAY
|
||||
struct timeval;
|
||||
struct timezone;
|
||||
struct timezone {
|
||||
int tz_minuteswest;
|
||||
int tz_dsttime;
|
||||
};
|
||||
|
||||
extern int gettimeofday(struct timeval *tv, struct timezone *tz);
|
||||
#endif
|
||||
|
||||
|
|
|
@ -144,7 +144,6 @@ proc target_script {target_num eventname scriptname} {
|
|||
|
||||
add_help_text target_script "DEPRECATED please see the new TARGETNAME configure -event interface"
|
||||
|
||||
|
||||
# Try flipping / and \ to find file if the filename does not
|
||||
# match the precise spelling
|
||||
proc find {filename} {
|
||||
|
@ -173,8 +172,6 @@ proc script {filename} {
|
|||
|
||||
add_help_text script "<filename> - filename of OpenOCD script (tcl) to run"
|
||||
|
||||
|
||||
|
||||
# Handle GDB 'R' packet. Can be overriden by configuration script,
|
||||
# but it's not something one would expect target scripts to do
|
||||
# normally
|
||||
|
@ -184,7 +181,6 @@ proc ocd_gdb_restart {target_num} {
|
|||
reset halt
|
||||
}
|
||||
|
||||
|
||||
# If RCLK is not supported, use fallback_speed_khz
|
||||
proc jtag_rclk {fallback_speed_khz} {
|
||||
if {[catch {jtag_khz 0}]!=0} {
|
||||
|
@ -240,7 +236,6 @@ proc ocd_process_reset { MODE } {
|
|||
$t invoke-event reset-deassert-post
|
||||
}
|
||||
|
||||
|
||||
# Pass 1 - Now try to halt.
|
||||
if { $halt } {
|
||||
foreach t [target names] {
|
||||
|
@ -278,7 +273,6 @@ proc ocd_process_reset { MODE } {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
# stubs for targets scripts that do not have production procedure
|
||||
proc production_info {} {
|
||||
return "Imagine an explanation here..."
|
||||
|
|
Loading…
Reference in New Issue