mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 02:24:17 +08:00
Fix indentation in remote_target::download_tracepoint
gdb/ChangeLog: 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> * remote.c (remote_target::download_tracepoint): Fix indentation in for block.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
|
||||||
|
|
||||||
|
* remote.c (remote_target::download_tracepoint): Fix indentation
|
||||||
|
in for block.
|
||||||
|
|
||||||
2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
||||||
|
|
||||||
* proc-api.c (_initialize_proc_api): Remove c, unused.
|
* proc-api.c (_initialize_proc_api): Remove c, unused.
|
||||||
|
32
gdb/remote.c
32
gdb/remote.c
@ -12945,24 +12945,24 @@ remote_target::download_tracepoint (struct bp_location *loc)
|
|||||||
error (_("Error on target while setting tracepoints."));
|
error (_("Error on target while setting tracepoints."));
|
||||||
}
|
}
|
||||||
|
|
||||||
for (auto action_it = stepping_actions.begin ();
|
for (auto action_it = stepping_actions.begin ();
|
||||||
action_it != stepping_actions.end (); action_it++)
|
action_it != stepping_actions.end (); action_it++)
|
||||||
{
|
{
|
||||||
QUIT; /* Allow user to bail out with ^C. */
|
QUIT; /* Allow user to bail out with ^C. */
|
||||||
|
|
||||||
bool is_first = action_it == stepping_actions.begin ();
|
bool is_first = action_it == stepping_actions.begin ();
|
||||||
bool has_more = action_it != stepping_actions.end ();
|
bool has_more = action_it != stepping_actions.end ();
|
||||||
|
|
||||||
xsnprintf (buf, BUF_SIZE, "QTDP:-%x:%s:%s%s%s",
|
xsnprintf (buf, BUF_SIZE, "QTDP:-%x:%s:%s%s%s",
|
||||||
b->number, addrbuf, /* address */
|
b->number, addrbuf, /* address */
|
||||||
is_first ? "S" : "",
|
is_first ? "S" : "",
|
||||||
action_it->c_str (),
|
action_it->c_str (),
|
||||||
has_more ? "-" : "");
|
has_more ? "-" : "");
|
||||||
putpkt (buf);
|
putpkt (buf);
|
||||||
remote_get_noisy_reply ();
|
remote_get_noisy_reply ();
|
||||||
if (strcmp (rs->buf, "OK"))
|
if (strcmp (rs->buf, "OK"))
|
||||||
error (_("Error on target while setting tracepoints."));
|
error (_("Error on target while setting tracepoints."));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (packet_support (PACKET_TracepointSource) == PACKET_ENABLE)
|
if (packet_support (PACKET_TracepointSource) == PACKET_ENABLE)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user