Use unique_xmalloc_ptr in breakpoint
This changes struct breakpoint to use unique_xmalloc_ptr in a couple of spots, removing a bit of manual memory management.
This commit is contained in:
parent
23d6ee6405
commit
6f781ee300
6 changed files with 60 additions and 63 deletions
|
@ -13344,7 +13344,7 @@ remote_target::download_tracepoint (struct bp_location *loc)
|
|||
error ("%s", err_msg);
|
||||
|
||||
encode_source_string (b->number, loc->address,
|
||||
"cond", b->cond_string,
|
||||
"cond", b->cond_string.get (),
|
||||
buf.data () + strlen (buf.data ()),
|
||||
buf.size () - strlen (buf.data ()));
|
||||
putpkt (buf.data ());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue