Hey,
In the description of target_resume() is "int current" the value for the 
current program counter.
How is this current program counter actually retrieved?
Is it handled in openOCD server?
Is it handled in openOCD Client?
if in Server, where is it stored, where to put the address of the program 
counter?

Also if I use a debugger, load elf into it, halt the cpu, how actually does the 
client know where execution has stopped?

A hint would be awesome ;).
thx Xense

target.c:588:
-------------
 * @param current True to use the target's saved program counter instead
 *      of the address parameter
 * @param address Optionally used as the program counter.
 * ... 
 */
int target_resume(struct target *target, int current, target_addr_t address,
                int handle_breakpoints, int debug_execution)

> Gesendet: Mittwoch, 30. Januar 2019 um 11:27 Uhr
> Von: "Xen Mann" <[email protected]>
> An: openocd-devel <[email protected]>
> Cc: [email protected]
> Betreff: adding new interface(TAP): How does openOCD retrieve the programm 
> counter
>
> Hey there again!
> adding this new interface I wonder, how actually does openOCD retrieve the 
> information where the program counter(pc) is on the target.
> At least the connected client which is stepping through the lines of source 
> code must have a opinion where controllers pc is. Is this a client or a 
> server thing?
> 
> Does openOCD know at which address the next and previous pc is? Is it 
> configured in the scripts, is it hard coded in the target structure?
> 
> 
> 


_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to