[PATCH] Multiple locations for tracepoints

Stan Shebs stan@codesourcery.com
Thu Mar 4 00:43:00 GMT 2010


If a tracepoint has multiple locations, it works to do the fairly 
obvious thing of iterating over the locations and downloading each to 
the target.  It turns out not to be necessary to invent new numbers for 
tracepoint locations; the target agent simply needs to use both 
tracepoint number and tracepoint address to identify a tracepoint 
location uniquely.

Committed to the trunk.  I'm not sure if this should go to 7.1 also; it 
has no effect outside tracepoint-land, but don't want to churn the 
sources if it's close to release.

Stan

2010-03-03 Stan Shebs  <stan@codesourcery.com>

    * remote.c (remote_download_tracepoint): Iterate over locations.
    * tracepoint.c (validate_actionline): Ditto.
    (encode_actions): Add location argument.
    (trace_dump_command): Check all locations to see if stepping
    frame.


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: loc-patch-1
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20100304/4fcb862b/attachment.ksh>


More information about the Gdb-patches mailing list