[PATCH] store trace default-collect to target [4/6] save tracepoint

Hui Zhu
2013-04-11T06:18:32Z

[-- Attachment #1: Type: text/plain, Size: 201 bytes --]

Hi,

This patch make save tracepoint command save default-collect to source file.

Thanks,
Hui

2013-04-11 Hui Zhu <hui@codesourcery.com>

* breakpoint.c (save_breakpoints): Handle default_collect.

[-- Attachment #2: defc-save.txt --]
[-- Type: text/plain, Size: 369 bytes --]

--- a/breakpoint.c
+++ b/breakpoint.c
@@ -15606,7 +15606,10 @@ save_breakpoints (char *filename, int fr
make_cleanup_ui_file_delete (fp);

if (extra_trace_bits)
- save_trace_state_variables (fp);
+ {
+ fprintf_unfiltered (fp, "set default-collect $%s\n", default_collect);
+ save_trace_state_variables (fp);
+ }

ALL_BREAKPOINTS (tp)
{