* [PATCH] tracepoint.c: fix the bug that S use utp->actions in trace_save
@ 2010-10-22 5:13 Hui Zhu
2010-10-27 8:21 ` Hui Zhu
0 siblings, 1 reply; 4+ messages in thread
From: Hui Zhu @ 2010-10-22 5:13 UTC (permalink / raw)
To: gdb-patches ml
Hi,
I found that in the tracepoint.c:trace_save(tsave will call this
function) generate a part S to save the action message:
for (a = 0; VEC_iterate (char_ptr, utp->actions, a, act); ++a)
fprintf (fp, "tp S%x:%s:%s\n",
utp->number, phex_nz (utp->addr, sizeof (utp->addr)), act);
But it same with the A part:
for (a = 0; VEC_iterate (char_ptr, utp->actions, a, act); ++a)
fprintf (fp, "tp A%x:%s:%s\n",
utp->number, phex_nz (utp->addr, sizeof (utp->addr)), act);
I think the S should use step_actions.
So I make a patch for it.
Thanks,
Hui
2010-10-22 Hui Zhu <teawater@gmail.com>
* tracepoint.c (trace_save): Change utp->actions to
utp->step_actions.
---
tracepoint.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/tracepoint.c
+++ b/tracepoint.c
@@ -2734,7 +2734,7 @@ trace_save (const char *filename, int ta
for (a = 0; VEC_iterate (char_ptr, utp->actions, a, act); ++a)
fprintf (fp, "tp A%x:%s:%s\n",
utp->number, phex_nz (utp->addr, sizeof (utp->addr)), act);
- for (a = 0; VEC_iterate (char_ptr, utp->actions, a, act); ++a)
+ for (a = 0; VEC_iterate (char_ptr, utp->step_actions, a, act); ++a)
fprintf (fp, "tp S%x:%s:%s\n",
utp->number, phex_nz (utp->addr, sizeof (utp->addr)), act);
if (utp->at_string)
^ permalink raw reply [flat|nested] 4+ messages in thread* [PATCH] tracepoint.c: fix the bug that S use utp->actions in trace_save
2010-10-22 5:13 [PATCH] tracepoint.c: fix the bug that S use utp->actions in trace_save Hui Zhu
@ 2010-10-27 8:21 ` Hui Zhu
2010-10-27 10:07 ` Pedro Alves
0 siblings, 1 reply; 4+ messages in thread
From: Hui Zhu @ 2010-10-27 8:21 UTC (permalink / raw)
To: gdb-patches ml
Ping.
---------- Forwarded message ----------
From: Hui Zhu <teawater@gmail.com>
Date: Fri, Oct 22, 2010 at 13:12
Subject: [PATCH] tracepoint.c: fix the bug that S use utp->actions in trace_save
To: gdb-patches ml <gdb-patches@sourceware.org>
Hi,
I found that in the tracepoint.c:trace_save(tsave will call this
function) generate a part S to save the action message:
for (a = 0; VEC_iterate (char_ptr, utp->actions, a, act); ++a)
fprintf (fp, "tp S%x:%s:%s\n",
utp->number, phex_nz (utp->addr, sizeof (utp->addr)), act);
But it same with the A part:
for (a = 0; VEC_iterate (char_ptr, utp->actions, a, act); ++a)
fprintf (fp, "tp A%x:%s:%s\n",
utp->number, phex_nz (utp->addr, sizeof (utp->addr)), act);
I think the S should use step_actions.
So I make a patch for it.
Thanks,
Hui
2010-10-22 Hui Zhu <teawater@gmail.com>
* tracepoint.c (trace_save): Change utp->actions to
utp->step_actions.
---
tracepoint.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/tracepoint.c
+++ b/tracepoint.c
@@ -2734,7 +2734,7 @@ trace_save (const char *filename, int ta
for (a = 0; VEC_iterate (char_ptr, utp->actions, a, act); ++a)
fprintf (fp, "tp A%x:%s:%s\n",
utp->number, phex_nz (utp->addr, sizeof (utp->addr)), act);
- for (a = 0; VEC_iterate (char_ptr, utp->actions, a, act); ++a)
+ for (a = 0; VEC_iterate (char_ptr, utp->step_actions, a, act); ++a)
fprintf (fp, "tp S%x:%s:%s\n",
utp->number, phex_nz (utp->addr, sizeof (utp->addr)), act);
if (utp->at_string)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] tracepoint.c: fix the bug that S use utp->actions in trace_save
2010-10-27 8:21 ` Hui Zhu
@ 2010-10-27 10:07 ` Pedro Alves
2010-10-28 3:47 ` Hui Zhu
0 siblings, 1 reply; 4+ messages in thread
From: Pedro Alves @ 2010-10-27 10:07 UTC (permalink / raw)
To: gdb-patches; +Cc: Hui Zhu
On Wednesday 27 October 2010 09:20:39, Hui Zhu wrote:
> 2010-10-22 Hui Zhu <teawater@gmail.com>
>
> * tracepoint.c (trace_save): Change utp->actions to
> utp->step_actions.
Okay, thanks.
--
Pedro Alves
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] tracepoint.c: fix the bug that S use utp->actions in trace_save
2010-10-27 10:07 ` Pedro Alves
@ 2010-10-28 3:47 ` Hui Zhu
0 siblings, 0 replies; 4+ messages in thread
From: Hui Zhu @ 2010-10-28 3:47 UTC (permalink / raw)
To: Pedro Alves; +Cc: gdb-patches
Checked in. Thanks.
Hui
On Wed, Oct 27, 2010 at 18:07, Pedro Alves <pedro@codesourcery.com> wrote:
> On Wednesday 27 October 2010 09:20:39, Hui Zhu wrote:
>> 2010-10-22 Hui Zhu <teawater@gmail.com>
>>
>> * tracepoint.c (trace_save): Change utp->actions to
>> utp->step_actions.
>
> Okay, thanks.
>
> --
> Pedro Alves
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-10-28 3:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-22 5:13 [PATCH] tracepoint.c: fix the bug that S use utp->actions in trace_save Hui Zhu
2010-10-27 8:21 ` Hui Zhu
2010-10-27 10:07 ` Pedro Alves
2010-10-28 3:47 ` Hui Zhu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox