summaryrefslogtreecommitdiffstats
path: root/translate.cxx
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2010-02-21 11:29:04 -0500
committerFrank Ch. Eigler <fche@elastic.org>2010-02-21 11:29:04 -0500
commitdac77b805e77cf00b25395ece1e2a1b5f75761da (patch)
treeae61fbca893437d0a9d30905239ba3f7a5506ab0 /translate.cxx
parent37da5cf910bf6f20d69364a2362f56361ac30119 (diff)
downloadsystemtap-steved-dac77b805e77cf00b25395ece1e2a1b5f75761da.tar.gz
systemtap-steved-dac77b805e77cf00b25395ece1e2a1b5f75761da.tar.xz
systemtap-steved-dac77b805e77cf00b25395ece1e2a1b5f75761da.zip
hwbkpt: simplify diagnostics and code
* tapsets.cxx (hwbkpt_derivedc_probe_group): Lose max_... field. Rename hwbkpt_probes_vector -> hwbkpt_probes. (enroll): Instead set it here, emit normal suppressible warning if exceeded. (emit_*): Use newline(NN) etc. for proper indentation of generated code. (emit_module_init): Defer most potential problems to register_wide_hw_breakpoint() instead of preemptive errors. * translate.cxx (emit_module_init): Assert 0 indentation more frequently.
Diffstat (limited to 'translate.cxx')
-rw-r--r--translate.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/translate.cxx b/translate.cxx
index 157e2bb0..b813ae83 100644
--- a/translate.cxx
+++ b/translate.cxx
@@ -1120,7 +1120,10 @@ c_unparser::emit_module_init ()
{
vector<derived_probe_group*> g = all_session_groups (*session);
for (unsigned i=0; i<g.size(); i++)
- g[i]->emit_module_decls (*session);
+ {
+ g[i]->emit_module_decls (*session);
+ o->assert_0_indent();
+ }
o->newline();
o->newline() << "static int systemtap_module_init (void) {";