Remove xmethod_worker::clone
[binutils-gdb.git] / gdb / ChangeLog
1 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * extension.h (struct xmethod_worker) <clone>: Remove.
4 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
5 Remove.
6 (python_xmethod_worker::clone): Remove.
7 * valops.c (find_overload_match): Use std::move instead of
8 clone.
9
10 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
11
12 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
13 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
14 <free_xmethod_worker_data>: Remove.
15 <get_matching_xmethod_workers>: Chance VEC to std::vector.
16 <get_xmethod_arg_types>: Remove.
17 <get_xmethod_result_type>: Remove.
18 <invoke_xmethod>: Remove.
19 * extension.c (new_xmethod_worker): Remove.
20 (clone_xmethod_worker): Remove.
21 (get_matching_xmethod_workers): Return void, pass std::vector by
22 pointer.
23 (get_xmethod_arg_types): Rename to...
24 (xmethod_worker::get_arg_types): ... this, and adjust.
25 (get_xmethod_result_type): Rename to...
26 (xmethod_worker::get_result_type): ... this, and adjust.
27 (invoke_xmethod): Remove.
28 (free_xmethod_worker): Remove.
29 (free_xmethod_worker_vec): Remove.
30 * extension.h (enum ext_lang_rc): Move here from
31 extension-priv.h.
32 (struct xmethod_worker): Add constructor and destructor.
33 <data>: Remove.
34 <value>: Remove.
35 <invoke, clone, do_get_result_type, do_get_arg_types>: New
36 virtual pure methods.
37 <get_arg_types, get_result_type>: New methods.
38 (xmethod_worker_ptr): Remove typedef.
39 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
40 (xmethod_worker_vec): Remove typedef.
41 (xmethod_worker_up): New typedef.
42 (invoke_xmethod): Remove.
43 (clone_xmethod_worker): Remove.
44 (free_xmethod_worker): Remove.
45 (free_xmethod_worker_vec): Remove.
46 (get_xmethod_arg_types): Remove.
47 (get_xmethod_result_type): Remove.
48 * valops.c (find_method_list): Use std::vector, don't use
49 intermediate vector.
50 (value_find_oload_method_list): Use std::vector.
51 (find_overload_match): Use std::vector.
52 (find_oload_champ): Use std::vector.
53 * value.c (value_free): Use operator delete.
54 (value_of_xmethod): Rename to...
55 (value_from_xmethod): ... this. Don't assign
56 xmethod_worker::value, take rvalue-reference.
57 (result_type_of_xmethod): Adjust.
58 (call_xmethod): Adjust.
59 * value.h: Include extension.h.
60 (struct xmethod_worker): Don't forward-declare.
61 (value_of_xmethod): Rename to...
62 (value_from_xmethod): ... this, take rvalue-reference.
63 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
64 (struct python_xmethod_worker): ... this, add constructor and
65 destructor.
66 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
67 (gdbpy_free_xmethod_worker_data): Rename to...
68 (python_xmethod_worker::~python_xmethod_worker): ... this and
69 adjust.
70 (gdbpy_clone_xmethod_worker_data): Rename to...
71 (python_xmethod_worker::clone): ... this and adjust.
72 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
73 temporary vector.
74 (gdbpy_get_xmethod_arg_types): Rename to...
75 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
76 (gdbpy_get_xmethod_result_type): Rename to...
77 (python_xmethod_worker::do_get_result_type): ... this and
78 adjust.
79 (gdbpy_invoke_xmethod): Rename to...
80 (python_xmethod_worker::invoke): ... this and adjust.
81 (new_python_xmethod_worker): Rename to...
82 (python_xmethod_worker::python_xmethod_worker): ... this and
83 adjust.
84 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
85 Remove.
86 (gdbpy_free_xmethod_worker_data): Remove.
87 (gdbpy_get_matching_xmethod_workers): Use std::vector.
88 (gdbpy_get_xmethod_arg_types): Remove.
89 (gdbpy_get_xmethod_result_type): Remove.
90 (gdbpy_invoke_xmethod): Remove.
91 * python/python.c (python_extension_ops): Remove obsolete
92 callbacks.
93
94 2018-01-05 Pedro Alves <palves@redhat.com>
95
96 PR gdb/18653
97 * common/signals-state-save-restore.c
98 (save_original_signals_state): New parameter 'quiet'. Warn if we
99 find a custom handler preinstalled, instead of internal erroring.
100 But only warn if !quiet.
101 * common/signals-state-save-restore.h
102 (save_original_signals_state): New parameter 'quiet'.
103 * main.c (captured_main_1): Move save_original_signals_state call
104 after option handling, and pass QUIET.
105
106 2018-01-05 Pedro Alves <palves@redhat.com>
107
108 * spu-tdep.c (spu_catch_start): Pass
109 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
110
111 2018-01-05 Pedro Alves <palves@redhat.com>
112
113 PR gdb/22670
114 * ada-lang.c (literal_symbol_name_matcher): New function.
115 (ada_get_symbol_name_matcher): Use it for
116 symbol_name_match_type::SEARCH_NAME.
117 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
118 it down instead of assuming symbol_name_match_type::FULL.
119 * block.h (block_lookup_symbol): New parameter 'match_type'.
120 * c-valprint.c (print_unpacked_pointer): Use
121 lookup_symbol_search_name instead of lookup_symbol.
122 * compile/compile-object-load.c (get_out_value_type): Pass down
123 symbol_name_match_type::SEARCH_NAME.
124 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
125 symbol_name_match_type::FULL.
126 * cp-support.c (cp_get_symbol_name_matcher): Handle
127 symbol_name_match_type::SEARCH_NAME.
128 * infrun.c (insert_exception_resume_breakpoint): Use
129 lookup_symbol_search_name.
130 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
131 * psymtab.c (maintenance_check_psymtabs): Use
132 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
133 * stack.c (print_frame_args): Use lookup_symbol_search_name and
134 SYMBOL_SEARCH_NAME.
135 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
136 if symbol_name_match_type::SEARCH_NAME.
137 (lookup_symbol_in_language): Pass down
138 symbol_name_match_type::FULL.
139 (lookup_symbol_search_name): New.
140 (lookup_language_this): Pass down
141 symbol_name_match_type::SEARCH_NAME.
142 (lookup_symbol_aux, lookup_local_symbol): New parameter
143 'match_type'. Pass it down.
144 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
145 (lookup_symbol_search_name): New declaration.
146 (lookup_symbol_in_block): New 'match_type' parameter.
147
148 2018-01-05 Pedro Alves <palves@redhat.com>
149
150 PR gdb/22670
151 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
152 ada_lookup_symbol.
153 (ada_lookup_symbol): Reimplement in terms of
154 ada_lookup_symbol_list, bits factored out from
155 ada_lookup_encoded_symbol.
156
157 2018-01-05 Joel Brobecker <brobecker@adacore.com>
158
159 * ada-exp.y (write_object_renaming): When subscripting an array
160 using a symbol as the index, pass the block in call to
161 ada_lookup_encoded_symbol when looking that symbol up.
162
163 2018-01-05 Jerome Guitton <guitton@adacore.com>
164
165 * ada-lang.c (ada_array_length): Use ada_index_type instead of
166 TYPE_INDEX_TYPE.
167
168 2018-01-05 Joel Brobecker <brobecker@adacore.com>
169
170 * ada-lang.c (ada_to_fixed_value_create): Add handling of
171 the case where VALUE_LVAL (val0) is not lval_memory.
172
173 2018-01-05 Xavier Roirand <roirand@adacore.com>
174
175 * ada-valprint.c (print_optional_low_bound): Handle
176 character-indexed array printing like boolean-indexed array
177 printing.
178
179 2018-01-05 Joel Brobecker <brobecker@adacore.com>
180
181 * NEWS: Create a new section for the next release branch.
182 Rename the section of the current branch, now that it has
183 been cut.
184
185 2018-01-05 Joel Brobecker <brobecker@adacore.com>
186
187 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
188 * version.in: Bump version to 8.1.50.DATE-git.
189
190 2018-01-03 Xavier Roirand <roirand@adacore.com>
191
192 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
193 Add field.
194 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
195 Add field.
196 (default_exception_support_info) <catch_handlers_sym>: Add field.
197 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
198 (ada_exception_name_addr_1): Add "catch handlers" handling.
199 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
200 Update all callers.
201 (create_excep_cond_exprs) <ex>: Add parameter.
202 (re_set_exception): Update create_excep_cond_exprs call.
203 (print_it_exception, print_one_exception, print_mention_exception)
204 (print_recreate_exception): Add "catch handler" handling.
205 (allocate_location_catch_handlers, re_set_catch_handlers)
206 (check_status_catch_handlers, print_it_catch_handlers)
207 (print_one_catch_handlers, print_mention_catch_handlers)
208 (print_recreate_catch_handlers): New function.
209 (catch_handlers_breakpoint_ops): New variable.
210 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
211 Add parameter. Add "catch handler" handling.
212 (ada_exception_sym_name, ada_exception_breakpoint_ops):
213 Add "catch handler" handling.
214 (ada_exception_catchpoint_cond_string): Add "catch handler"
215 handling.
216 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
217 call.
218 (catch_ada_handlers_command): New function.
219 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
220 operations structure.
221 (_initialize_ada_language): Add "catch handlers" command entry.
222 * NEWS: Document "catch handlers" feature.
223
224 2018-01-02 Joel Brobecker <brobecker@adacore.com>
225
226 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
227 account when creating the array type of the slice.
228 (ada_value_slice): Likewise.
229
230 2018-01-02 Joel Brobecker <brobecker@adacore.com>
231
232 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
233 New enum value.
234 (create_array_type_with_stride): Add byte_stride_prop parameter.
235 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
236 New parameter. Update all callers in this file.
237 (array_type_has_dynamic_stride): New function.
238 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
239 of arrays with dynamic byte strides.
240 * dwarf2read.c (read_array_type): Add support for dynamic
241 DW_AT_byte_stride attributes.
242
243 2018-01-02 Joel Brobecker <brobecker@adacore.com>
244
245 * dwarf2read.c (read_unspecified_type): Treat
246 DW_TAG_enumeration_type DIEs from Ada units as stubs.
247
248 2018-01-01 Joel Brobecker <brobecker@adacore.com>
249
250 Update copyright year range in all GDB files.
251
252 2018-01-01 Joel Brobecker <brobecker@adacore.com>
253
254 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
255 and gdb/testsuite/gdb.base/step-line.c.
256
257 2018-01-01 Joel Brobecker <brobecker@adacore.com>
258
259 * copyright.py (main): Dump the contents of
260 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
261 even if BY_HAND is empty.
262
263 2018-01-01 Joel Brobecker <brobecker@adacore.com>
264
265 * top.c (print_gdb_version): Update Copyright year in version
266 message.
267
268 2018-01-01 Joel Brobecker <brobecker@adacore.com>
269
270 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
271
272 For older changes see ChangeLog-2017.
273 \f
274 Local Variables:
275 mode: change-log
276 left-margin: 8
277 fill-column: 74
278 version-control: never
279 coding: utf-8
280 End: