Update some comments on stap-probe.c
authorSergio Durigan Junior <sergiodj@redhat.com>
Thu, 16 May 2019 20:11:20 +0000 (16:11 -0400)
committerSergio Durigan Junior <sergiodj@redhat.com>
Thu, 16 May 2019 20:26:29 +0000 (16:26 -0400)
Some functions's comments were not entirely correct on stap-probe.c,
so this patch updates them.

Pushed as obvious.

gdb/ChangeLog:
2019-05-16  Sergio Durigan Junior  <sergiodj@redhat.com>

* stap-probe.c (stap_get_opcode): Update comment.
(stap_get_expected_argument_type): Likewise.
(handle_stap_probe): Likewise.

gdb/ChangeLog
gdb/stap-probe.c

index 8d40fc95ea91cddd5a8d1989719e9736fdd97cf2..3389167adba6ed50e682db0ef92d6086b55e28a6 100644 (file)
@@ -1,3 +1,9 @@
+2019-05-16  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       * stap-probe.c (stap_get_opcode): Update comment.
+       (stap_get_expected_argument_type): Likewise.
+       (handle_stap_probe): Likewise.
+
 2019-05-16  Sergio Durigan Junior  <sergiodj@redhat.com>
 
        * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
index 89cd780747ea0a7ba193c5761513a1c31e22daa6..bc2f9fc85b3c4f3a799ed23445e8a2ebfc3498ba 100644 (file)
@@ -316,8 +316,9 @@ stap_get_operator_prec (enum exp_opcode op)
     }
 }
 
-/* Given S, read the operator in it and fills the OP pointer with its code.
-   Return 1 on success, zero if the operator was not recognized.  */
+/* Given S, read the operator in it.  Return the EXP_OPCODE which
+   represents the operator detected, or throw an error if no operator
+   was found.  */
 
 static enum exp_opcode
 stap_get_opcode (const char **s)
@@ -422,7 +423,8 @@ stap_get_opcode (const char **s)
 }
 
 /* Given the bitness of the argument, represented by B, return the
-   corresponding `struct type *'.  */
+   corresponding `struct type *', or throw an error if B is
+   unknown.  */
 
 static struct type *
 stap_get_expected_argument_type (struct gdbarch *gdbarch,
@@ -1491,10 +1493,7 @@ stap_probe::gen_info_probes_table_values () const
      probe doesn't have an associated semaphore;
    - Probe's provider name;
    - Probe's name;
-   - Probe's argument format
-   
-   This function returns 1 if the handling was successful, and zero
-   otherwise.  */
+   - Probe's argument format.  */
 
 static void
 handle_stap_probe (struct objfile *objfile, struct sdt_note *el,
This page took 0.02765 seconds and 4 git commands to generate.