This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 1/6] Add a field 'installed' for each location of tracepoint.


On 12/12/2012 01:54 AM, Yao Qi wrote:
> On 12/12/2012 01:25 AM, Pedro Alves wrote:
>>> +      if (!header_of_multiple && loc != NULL && !loc->shlib_disabled)
>>> >+    {
>>> >+      annotate_field (11);
>>> >+
>>> >+      if (ui_out_is_mi_like_p (uiout))
>>> >+        ui_out_field_string (uiout, "installed",
>>> >+                 loc->inserted ? "y" : "n");
>>> >+      else
>>> >+        {
>>> >+          if (loc->inserted)
>>> >+        ui_out_text (uiout, "\t");
>>> >+          else
>>> >+        ui_out_text (uiout, "\tnot ");
>>> >+          ui_out_text (uiout, "installed on target\n");
>>> >+        }
>>> >+    }
>>> >      }
>> Wait, what is making sure this is only printed for tracepoints?
> 
> This part of code 'shares' the same condition check
> 'if (is_tracepoint (b))' with the code printing 'pass count'.  However, it is invisible in the patch itself.

I see, thanks.

Patch is OK.

-- 
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]