Remove char_ptr typedef
authorSimon Marchi <simon.marchi@polymtl.ca>
Sun, 1 Apr 2018 18:23:17 +0000 (14:23 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Sun, 1 Apr 2018 18:23:17 +0000 (14:23 -0400)
Now that all instances of VEC(char_ptr) are gone, we can remove the
typedef.  There is just one usage left, that is trivial to replace.

Tested by rebuilding on an enable-targets=all build.

gdb/ChangeLog:

* common/gdb_vecs.h (char_ptr): Remove.
* tracepoint.c (encode_actions_1): Remove usage of char_ptr.

gdb/ChangeLog
gdb/common/gdb_vecs.h
gdb/tracepoint.c

index 148b1876de59a5b49d1b8876ce1353bf59a052f5..ed039e62701d951cf3d7c21daae4e218840a1c9d 100644 (file)
@@ -1,3 +1,8 @@
+2018-04-01  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * common/gdb_vecs.h (char_ptr): Remove.
+       * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
+
 2018-03-30  Simon Marchi  <simon.marchi@polymtl.ca>
 
        * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
index 8bb70158f47e235b4f7b914d62524a00a939b36c..141d05e0189a5eb664736461ce89daa45521efe2 100644 (file)
@@ -22,7 +22,6 @@
 
 #include "vec.h"
 
-typedef char *char_ptr;
 typedef const char *const_char_ptr;
 
 DEF_VEC_P (const_char_ptr);
index 954d039caf783ff730fada4180a75758df1f5b3a..24bb91418a010e0baf282ba918657c18e3de087f 100644 (file)
@@ -1382,7 +1382,7 @@ encode_actions_1 (struct command_line *action,
                    case OP_VAR_VALUE:
                      {
                        struct symbol *sym = exp->elts[2].symbol;
-                       char_ptr name = (char_ptr) SYMBOL_NATURAL_NAME (sym);
+                       const char *name = SYMBOL_NATURAL_NAME (sym);
 
                        collect->collect_symbol (exp->elts[2].symbol,
                                                 target_gdbarch (),
This page took 0.029058 seconds and 4 git commands to generate.