Commit ec7a984b authored by ntfreak's avatar ntfreak
Browse files

- add missing svn props from r1270 commit

- change mime-type for png files to image/png

git-svn-id: svn://svn.berlios.de/openocd/trunk@1273 b42882b7-edfa-0310-969c-e2dbd0fdcd60
parent fb86d0e7
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
# converted to .tcl by html2tcl.tcl # converted to .tcl by html2tcl.tcl
set buffer "" set buffer ""
append buffer { append buffer {
<html xmlns="http://www.w3.org/TR/REC-html40"> <html xmlns="http://www.w3.org/TR/REC-html40">
<head> <head>
<title>OpenOCD debugger</title> <title>OpenOCD debugger</title>
<meta charset="utf-8" content="text/html" http-equiv="Content-Type"/> <meta charset="utf-8" content="text/html" http-equiv="Content-Type"/>
<link type="text/css" rel="stylesheet" href="menuweb.css"/> <link type="text/css" rel="stylesheet" href="menuweb.css"/>
</head> </head>
} }
set console "" set console ""
set upload_filename /ram/upload set upload_filename /ram/upload
append buffer { append buffer {
<body style="margin:0px;"> <body style="margin:0px;">
<div style="width:974px;height:85px;"> <div style="width:974px;height:85px;">
<div style="float:left;position:relative;left:32px;width:478px;"> <div style="float:left;position:relative;left:32px;width:478px;">
<a href="/"> <a href="/">
OpenOCD OpenOCD
</a> </a>
</div> </div>
<div style="float:left;position:relative;height:26px; width:278px;left:122px;background-image:url('menu_cuts/top_right.png');"> <div style="float:left;position:relative;height:26px; width:278px;left:122px;background-image:url('menu_cuts/top_right.png');">
<div style="position:relative;left:15px;top:4px;" class="textlight"> <div style="position:relative;left:15px;top:4px;" class="textlight">
} }
append buffer [capture version] append buffer [capture version]
append buffer { append buffer {
</div> </div>
</div> </div>
</div> </div>
<table style="padding:0px;border-collapse:collapse;"> <table style="padding:0px;border-collapse:collapse;">
<tr> <tr>
<td style="width:33px;"> <td style="width:33px;">
<div style="width:20px;height:510px;"> <div style="width:20px;height:510px;">
&nbsp; &nbsp;
</div> </div>
</td> </td>
<td style="vertical-align:top;height:100%;width:140px;padding:0px;"> <td style="vertical-align:top;height:100%;width:140px;padding:0px;">
<table style="padding:0px;border-collapse:collapse;height:100%;width:140px;"> <table style="padding:0px;border-collapse:collapse;height:100%;width:140px;">
<tr style="height:59px;"> <tr style="height:59px;">
<td/> <td/>
</tr> </tr>
<tr> <tr>
<td style="width:140px;height:38px;background-image:url('menu_cuts/v_tab_selected.png');background-repeat: no-repeat;"> <td style="width:140px;height:38px;background-image:url('menu_cuts/v_tab_selected.png');background-repeat: no-repeat;">
<div style="position:relative;left:10px;top:10px;font-weight:bold;"> <div style="position:relative;left:10px;top:10px;font-weight:bold;">
<a href="browsemem.tcl" style="font-weight: bold;">Browse / Edit</a> <a href="browsemem.tcl" style="font-weight: bold;">Browse / Edit</a>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td style="width:140px;height:38px;background-image:url('menu_cuts/v_tab.png');background-repeat: no-repeat;"> <td style="width:140px;height:38px;background-image:url('menu_cuts/v_tab.png');background-repeat: no-repeat;">
<div style="position:relative;left:10px;top:10px;font-weight:bold;"> <div style="position:relative;left:10px;top:10px;font-weight:bold;">
<a href="downloadmem.tcl" style="">Download</a> <a href="downloadmem.tcl" style="">Download</a>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td style="width:140px;height:35px;background-image:url('menu_cuts/v_1.png')"/> <td style="width:140px;height:35px;background-image:url('menu_cuts/v_1.png')"/>
</tr> </tr>
<tr> <tr>
<td style="width:140px;background-image:url('menu_cuts/v_2_tile.png')"/> <td style="width:140px;background-image:url('menu_cuts/v_2_tile.png')"/>
</tr> </tr>
<tr> <tr>
<td style="width:140px;height:140px;background-image:url('menu_cuts/v_3.png')"/> <td style="width:140px;height:140px;background-image:url('menu_cuts/v_3.png')"/>
</tr> </tr>
</table> </table>
</td> </td>
<td style="vertical-align:top;padding:0px;height:100%"> <td style="vertical-align:top;padding:0px;height:100%">
<table style="padding:0px;border-collapse:collapse;height:100%;"> <table style="padding:0px;border-collapse:collapse;height:100%;">
<tr> <tr>
<td> <td>
<table style="padding:0px;border-collapse:collapse;"> <table style="padding:0px;border-collapse:collapse;">
<tr> <tr>
<td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;"> <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
<div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;"> <div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
<a href="index.tcl">Config Target</a> <a href="index.tcl">Config Target</a>
</div> </div>
</td> </td>
<td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;"> <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
<div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;"> <div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
<a href="flashinfo.tcl">Flash</a> <a href="flashinfo.tcl">Flash</a>
</div> </div>
</td> </td>
<td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab1_selected.png');background-repeat: no-repeat;"> <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab1_selected.png');background-repeat: no-repeat;">
<div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;"> <div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
<a href="browsemem.tcl" style="font-weight: bold;">Memory</a> <a href="browsemem.tcl" style="font-weight: bold;">Memory</a>
</div> </div>
</td> </td>
<td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;"> <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
<div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;"> <div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
<a href="openocd.tcl">OpenOCD</a> <a href="openocd.tcl">OpenOCD</a>
</div> </div>
</td> </td>
</tr> </tr>
</table> </table>
</td> </td>
</tr> </tr>
<tr> <tr>
<td style="height:30px;width:535px;background-image:url('menu_cuts/center_top.png');background-repeat: no-repeat;background-position:top right;" colspan="6"> <td style="height:30px;width:535px;background-image:url('menu_cuts/center_top.png');background-repeat: no-repeat;background-position:top right;" colspan="6">
<div style="width:500px;background-color:#ffffff;height:100%;"> <div style="width:500px;background-color:#ffffff;height:100%;">
&nbsp; &nbsp;
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td style="background-color:#ffffff;text-indent:30px;height:40px;" colspan="6"> <td style="background-color:#ffffff;text-indent:30px;height:40px;" colspan="6">
<H1>Browse / Edit Memory</H1> <H1>Browse / Edit Memory</H1>
</td> </td>
</tr> </tr>
<tr style="height:100%;"> <tr style="height:100%;">
<td style="background-color:#ffffff;padding-left:30px;padding-right:30px;width=535px;height:100%;" colspan="6"> <td style="background-color:#ffffff;padding-left:30px;padding-right:30px;width=535px;height:100%;" colspan="6">
} }
set form_address [formfetch form_address] set form_address [formfetch form_address]
set form_length [formfetch form_length] set form_length [formfetch form_length]
set form_type [formfetch form_type] set form_type [formfetch form_type]
set form_action [formfetch form_action] set form_action [formfetch form_action]
set form_value [formfetch form_value] set form_value [formfetch form_value]
if {[string compare $form_length ""]==0} { if {[string compare $form_length ""]==0} {
set form_length 0 set form_length 0
} }
if {$form_length<=0} { if {$form_length<=0} {
set form_length 0x80 set form_length 0x80
} }
if {$form_length>0x1000} { if {$form_length>0x1000} {
set form_length 0x1000 set form_length 0x1000
} }
if {[string compare $form_type ""]==0} { if {[string compare $form_type ""]==0} {
set form_type mdw set form_type mdw
} }
if {[string compare $form_type "mdw"]==0} { if {[string compare $form_type "mdw"]==0} {
set wordsize 4 set wordsize 4
set modify_cmd mww set modify_cmd mww
} }
if {[string compare $form_type "mdh"]==0} { if {[string compare $form_type "mdh"]==0} {
set wordsize 2 set wordsize 2
set modify_cmd mwh set modify_cmd mwh
} }
if {[string compare $form_type "mdb"]==0} { if {[string compare $form_type "mdb"]==0} {
set wordsize 1 set wordsize 1
set modify_cmd mwb set modify_cmd mwb
} }
if {[string compare $form_address ""]!=0} { if {[string compare $form_address ""]!=0} {
if {[string compare $form_action "Previous"]==0} { if {[string compare $form_action "Previous"]==0} {
# Kludge! Work around problems parsing hex in Jim Tcl expressions # Kludge! Work around problems parsing hex in Jim Tcl expressions
incr form_address ; set form_address [expr $form_address-1] incr form_address ; set form_address [expr $form_address-1]
if {$form_address-$form_length>0} { if {$form_address-$form_length>0} {
set form_address "0x[tohex [expr $form_address-$form_length]]" set form_address "0x[tohex [expr $form_address-$form_length]]"
} else { } else {
set form_address "0x0" set form_address "0x0"
} }
} }
if {[string compare $form_action "Next"]==0} { if {[string compare $form_action "Next"]==0} {
# Kludge! Work around problems parsing hex in Jim Tcl expressions # Kludge! Work around problems parsing hex in Jim Tcl expressions
incr form_address ; set form_address [expr $form_address-1] incr form_address ; set form_address [expr $form_address-1]
set form_address "0x[tohex [expr $form_address+$form_length]]" set form_address "0x[tohex [expr $form_address+$form_length]]"
} }
if {[string compare $form_action "Modify"]==0} { if {[string compare $form_action "Modify"]==0} {
append console [capture_catch "$modify_cmd $form_address $form_value"] append console [capture_catch "$modify_cmd $form_address $form_value"]
} }
if {[string compare $form_action "Fill"]==0} { if {[string compare $form_action "Fill"]==0} {
append console [capture_catch "$modify_cmd $form_address $form_value $form_length"] append console [capture_catch "$modify_cmd $form_address $form_value $form_length"]
} }
} }
append buffer { append buffer {
<form action="browsemem.tcl" method="post"> <form action="browsemem.tcl" method="post">
<table> <table>
<tr><td class="formtext">Address</td><td><input type="text" name="form_address" value="} <tr><td class="formtext">Address</td><td><input type="text" name="form_address" value="}
append buffer $form_address append buffer $form_address
append buffer {"></td></tr> append buffer {"></td></tr>
<tr><td class="formtext">Length</td><td><input type="text" name="form_length" value="} <tr><td class="formtext">Length</td><td><input type="text" name="form_length" value="}
append buffer "0x[tohex $form_length]" append buffer "0x[tohex $form_length]"
append buffer {"></td></tr> append buffer {"></td></tr>
<tr><td class="formtext">Value</td><td><input type="text" name="form_value" value="} <tr><td class="formtext">Value</td><td><input type="text" name="form_value" value="}
append buffer $form_value append buffer $form_value
append buffer {"></td> append buffer {"></td>
<td class="buttonspacesmall">&nbsp</td><td><input type="submit" name="form_action" value="Modify"></td> <td class="buttonspacesmall">&nbsp</td><td><input type="submit" name="form_action" value="Modify"></td>
<td class="buttonspacesmall">&nbsp</td><td><input type="submit" name="form_action" value="Fill"></td></tr> <td class="buttonspacesmall">&nbsp</td><td><input type="submit" name="form_action" value="Fill"></td></tr>
<tr><td class="formtext">Type</td><td style="padding-top:1px;"> <tr><td class="formtext">Type</td><td style="padding-top:1px;">
<select name="form_type"> <select name="form_type">
<option <option
} }
if {[string compare $form_type "mdb"]==0} { append buffer {selected="selected"} } if {[string compare $form_type "mdb"]==0} { append buffer {selected="selected"} }
append buffer { value ="mdb">8 bit append buffer { value ="mdb">8 bit
</option> </option>
<option <option
} }
if {[string compare $form_type "mdh"]==0} { append buffer {selected="selected"} } if {[string compare $form_type "mdh"]==0} { append buffer {selected="selected"} }
append buffer { value ="mdh">16 bit append buffer { value ="mdh">16 bit
</option> </option>
<option <option
} }
if {[string compare $form_type "mdw"]==0} { append buffer {selected="selected"} } if {[string compare $form_type "mdw"]==0} { append buffer {selected="selected"} }
append buffer {value ="mdw">32 bit append buffer {value ="mdw">32 bit
</option> </option>
</select> </select>
</td></tr> </td></tr>
</table> </table>
<table> <table>
<tr><td style="height:15px;width:535px;">&nbsp</td></tr> <tr><td style="height:15px;width:535px;">&nbsp</td></tr>
<tr><td style="height:1px;width:535px;background-color:#a2c5d1;"></td></tr> <tr><td style="height:1px;width:535px;background-color:#a2c5d1;"></td></tr>
<tr><td style="height:15px;width:535px;">&nbsp</td></tr> <tr><td style="height:15px;width:535px;">&nbsp</td></tr>
</table> </table>
<table><tr> <table><tr>
<td><input type="submit" name="form_action" value="Refresh"></td> <td><input type="submit" name="form_action" value="Refresh"></td>
<td class="buttonspacesmall">&nbsp</td><td><input type="submit" name="form_action" value="Previous" ></td> <td class="buttonspacesmall">&nbsp</td><td><input type="submit" name="form_action" value="Previous" ></td>
<td class="buttonspacesmall">&nbsp</td><td><input type="submit" name="form_action" value="Next" ></td> <td class="buttonspacesmall">&nbsp</td><td><input type="submit" name="form_action" value="Next" ></td>
</tr></table> </tr></table>
<br> <br>
</form> </form>
<p> <p>
<div class="fontbigger">Memory:</div><p> <div class="fontbigger">Memory:</div><p>
<code style="white-space: nowrap; font-size:11px;font:courier new;"> <code style="white-space: nowrap; font-size:11px;font:courier new;">
} }
if {[string compare $form_address ""]!=0} { if {[string compare $form_address ""]!=0} {
append console [encode [capture_catch halt]] append console [encode [capture_catch halt]]
append buffer [encode [capture_catch "$form_type $form_address [expr $form_length]"]] append buffer [encode [capture_catch "$form_type $form_address [expr $form_length]"]]
} }
append buffer { append buffer {
</code> </code>
</td> </td>
</tr> </tr>
} }
set toggle_details [formfetch toggle_details] set toggle_details [formfetch toggle_details]
if {[string length $toggle_details]==0} { if {[string length $toggle_details]==0} {
set toggle_details 0 set toggle_details 0
} }
set show_details [load_var show_details] set show_details [load_var show_details]
if {[string length $show_details]==0} { if {[string length $show_details]==0} {
set show_details 0 set show_details 0
} }
if {$toggle_details==1} { if {$toggle_details==1} {
set show_details [expr 1-$show_details] set show_details [expr 1-$show_details]
save_var show_details $show_details save_var show_details $show_details
} }
if {[string length $console]!=0} { if {[string length $console]!=0} {
append buffer { append buffer {
<tr style="height:100%;"> <tr style="height:100%;">
<td style="height:100%;background-color:red;" colspan="6"> <td style="height:100%;background-color:red;" colspan="6">
<table style="padding:0px;border-collapse:collapse;background-color:#ffffff;width:100%" class="textgray"> <table style="padding:0px;border-collapse:collapse;background-color:#ffffff;width:100%" class="textgray">
<td style="width:25px;">&nbsp;</td> <td style="width:25px;">&nbsp;</td>
} }
if {$show_details==1} { if {$show_details==1} {
append buffer < append buffer <
append buffer {td style="background-color:#dddddd;padding-left:5px;padding-right:5px;padding-top:3px;padding-bottom:3px;"} append buffer {td style="background-color:#dddddd;padding-left:5px;padding-right:5px;padding-top:3px;padding-bottom:3px;"}
append buffer > append buffer >
} else { } else {
append buffer < append buffer <
append buffer {td style="background-image:url('menu_cuts/h_tab_free.png');width:110px;height:29px;background-repeat: no-repeat;background-position:top left;"} append buffer {td style="background-image:url('menu_cuts/h_tab_free.png');width:110px;height:29px;background-repeat: no-repeat;background-position:top left;"}
append buffer > append buffer >
} }
append buffer { append buffer {
<a class="openocd" href="browsemem.tcl?toggle_details=1"> <a class="openocd" href="browsemem.tcl?toggle_details=1">
} }
if {$show_details==1} { if {$show_details==1} {
append buffer "Hide details" append buffer "Hide details"
append buffer <br/> append buffer <br/>
} else { } else {
append buffer {<div style="position:relative;top:7px;text-align:center;">} append buffer {<div style="position:relative;top:7px;text-align:center;">}
append buffer "Show details" append buffer "Show details"
append buffer {</div>} append buffer {</div>}
} }
append buffer { append buffer {
</a> </a>
} }
if {$show_details==1} { if {$show_details==1} {
append buffer $console append buffer $console
} }
append buffer {</td>} append buffer {</td>}
if {$show_details!=1} { if {$show_details!=1} {
append buffer {<td>&nbsp;</td>} append buffer {<td>&nbsp;</td>}
} }
append buffer { append buffer {
<td style="width:25px;">&nbsp;</td> <td style="width:25px;">&nbsp;</td>
</table> </table>
</td> </td>
</tr>