<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2017-06-20 0:19 GMT+03:00 Joel Sherrill <span dir="ltr"><<a href="mailto:joel@rtems.org" target="_blank">joel@rtems.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Check the value in gdb without loading it on a target.<div dir="auto"><br></div><div dir="auto">Gdb hello.exe</div><div dir="auto"><br></div><div dir="auto">p symbol </div></div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div dir="auto"><br></div><div dir="auto">Since it is a constant, it should be as expected. If it is, you have a code loading issue.</div></div></blockquote><div>Yes, it is 512 in gdb, as expected. So, is the problem with linkcmd file? </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div dir="auto"><br></div><div dir="auto">Is that value by any chance an instruction? </div></div></blockquote><div>How to check whether it is an instruction or not?</div><div><br></div><div>I was also able to run gdb, connect to the target, change the value of the variable to 512,</div><div>reconnect to the target, make loading and read the value equal to 512.</div></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Regards, Denis Obrezkov</div>
</div></div>