On 20 August 2012 12:24, Nuwan Jayasekara <[email protected]> wrote:
> Thanks oliver. i want to run gdb server. actually 4444 and 6666 are
> started in my machine when i perform port scanning. can u please help
> me how to execute openocd commands with gdb connection?
>

http://openocd.sourceforge.net/doc/html/GDB-and-OpenOCD.html#GDB-and-OpenOCD

> when i run gdb_port command it shows gdb port value is 3333
> but im running the port scan it shows port 6666 is open.
>

6666 is for the tcl server.

> i have change gdb port to 9999 by following command
> gdb_port 9999
>
> when i run gdb_port command it shows 9999
>

The gdb port should only be changed at startup, eg. during the config phase.

Not sure why this is marked as COMMAND_ANY - i would have thought it
should be COMMAND_CONFIG.
Seems this is the relevant commit, and reason why:
http://openocd.git.sourceforge.net/git/gitweb.cgi?p=openocd/openocd;a=commit;h=95f86e8e0525fc93093cc2bc060df5017d2f504e

need to decide on what behaviour we want, possibly issuing a warning
about trying to change to port value at runtime.

Spen

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to