[RFA] Version 2 of patch to add 'maint profile-gdb' command

Andrew Cagney ac131313@cygnus.com
Mon Sep 24 19:39:00 GMT 2001


>> Fernando, is this part ok?
>> 
> 
> 
> Yes, sure.

Thanks.  I've checked it in but with a tweek:

+ #ifdef NOTYET
+   /* FIXME: cagney/2001-09-24: A patch introducing a
+      add_set_boolean_cmd() is pending, the below should probably use
+      it.  A patch implementing profiling is pending, this just sets up
+      the framework.  */
+   tmpcmd = add_set_cmd ("profile", class_maintenance,
+                       var_boolean, &maintenance_profile_p,
+                       "Set internal profiling.\n\
+ When enabled GDB is profiled.",
+                       &maintenance_set_cmdlist);
+   tmpcmd->function.sfunc = maintenance_set_profile_cmd;
+   add_show_from_set (tmpcmd, &maintenance_show_cmdlist);
+ #endif

I wrapped the ``maint set profile'' stuff in #ifdef NOTYET for the moment.

Andrew




More information about the Gdb-patches mailing list