Commit | Line | Data |
---|---|---|
396d3980 UW |
1 | 2017-12-20 Ulrich Weigand <uweigand@de.ibm.com> |
2 | ||
3 | * spu-tdep.c (spu_gdbarch_init): Set set_gdbarch_significant_addr_bit | |
4 | to 64 bits. | |
5 | (ppc_linux_init_abi): Likewise, if Cell/B.E. is supported. | |
6 | ||
eccab96d JB |
7 | 2017-12-18 Joel Brobecker <brobecker@adacore.com> |
8 | ||
9 | * ada-lang.c (ada_to_fixed_type_1): Rethrow errors with | |
10 | a more detailed exception message when getting an exception | |
11 | while trying to read the value of an XVZ variable. | |
12 | * ada-valprint.c (ada_val_print): Only catch RETURN_MASK_ERROR | |
13 | exceptions. Print an error message when an exception is caught. | |
14 | ||
0e2da9f0 JB |
15 | 2017-12-18 Joel Brobecker <brobecker@adacore.com> |
16 | ||
17 | * ada-lang.c (assign_component): Strip any TYPE_CODE_TYPEDEF | |
18 | layer from lhs' type. | |
19 | (assign_aggregate): Likewise. | |
20 | ||
cb923fcc XR |
21 | 2017-12-18 Xavier Roirand <roirand@adacore.com> |
22 | ||
23 | * ada-lang.c (ada_convert_actual): Change the way actual value | |
24 | are passed to the inferior when the inferior expects a pointer type. | |
25 | ||
38af1824 SH |
26 | 2017-12-17 Stafford Horne <shorne@gmail.com> |
27 | ||
28 | * gdb/or1k-tdep.c (show_or1k_debug): Fix function parameter alignment. | |
29 | (or1k_analyse_inst): Likewise. | |
30 | (or1k_single_step_through_delay): Likewise. | |
31 | (or1k_frame_cache): Fix parameter alignment and use paddress() | |
32 | instead of %x. | |
33 | ||
b282f0f2 SH |
34 | 2017-12-17 Stafford Horne <shorne@gmail.com> |
35 | ||
36 | * NEWS (Changes since GDB 8.0): Mention new or1k target and new | |
37 | commands to set/show or1k debug. | |
38 | ||
46afe196 SDJ |
39 | 2017-12-15 Sergio Durigan Junior <sergiodj@redhat.com> |
40 | ||
41 | * typeprint.c (whatis_exp): Fix ARI warning and reindent "if" | |
42 | condition. | |
43 | ||
7c161838 SDJ |
44 | 2017-12-15 Sergio Durigan Junior <sergiodj@redhat.com> |
45 | Pedro Alves <palves@redhat.com> | |
46 | ||
47 | PR cli/16224 | |
48 | * NEWS (Changes since GDB 8.0): Mention new '/o' flag. | |
49 | * c-typeprint.c (OFFSET_SPC_LEN): New define. | |
50 | (c_type_print_varspec_prefix): New argument 'struct | |
51 | print_offset_data *'. | |
52 | (c_type_print_base_1): New function and prototype. | |
53 | (c_print_type_1): New function, with code from 'c_print_type'. | |
54 | (c_print_type): Use 'c_print_type_1'. | |
55 | (c_type_print_varspec_prefix): New argument 'struct | |
56 | print_offset_data *'. Use it. Call 'c_type_print_base_1' | |
57 | instead of 'c_print_type_base'. | |
58 | (print_spaces_filtered_with_print_options): New function. | |
59 | (output_access_specifier): Take new argument FLAGS. Modify | |
60 | function to call 'print_spaces_filtered_with_print_options'. | |
61 | (c_print_type_vtable_offset_marker): New function. | |
62 | (c_print_type_union_field_offset): New function. | |
63 | (c_print_type_struct_field_offset): New function. | |
64 | (c_print_type_no_offsets): New function. | |
65 | (c_type_print_base_struct_union): New argument 'struct | |
66 | print_offset_data *'. Print offsets and sizes for | |
67 | struct/union/class fields. | |
68 | * typeprint.c (const struct type_print_options | |
69 | type_print_raw_options): Initialize 'print_offsets'. | |
70 | (static struct type_print_options default_ptype_flags): | |
71 | Likewise. | |
72 | (struct print_offset_data print_offset_default_data): New | |
73 | variable. | |
74 | (whatis_exp): Handle '/o' option. | |
75 | (_initialize_typeprint): Add '/o' flag to ptype's help. | |
76 | * typeprint.h (struct print_offset_data): New struct. | |
77 | (struct type_print_options) <print_offsets>: New field. | |
78 | ||
a27ed7d6 SDJ |
79 | 2017-12-15 Sergio Durigan Junior <sergiodj@redhat.com> |
80 | ||
81 | * c-typeprint.c (need_access_label_p): New function. | |
82 | (c_type_print_base_struct_union): New function. | |
83 | (c_type_print_base): Move code to handle | |
84 | TYPE_CODE_{STRUCT,UNION} to the functions mentioned above. | |
85 | ||
68f81d60 RH |
86 | 2017-12-15 Richard Henderson <rth@redhat.com> |
87 | Uros Bizjak <ubizjak@gmail.com> | |
88 | ||
89 | PR gdb/19061 | |
90 | * alpha-tdep.c (alpha_software_single_step): Call | |
91 | alpha_deal_with_atomic_sequence here. | |
92 | (set_gdbarch_software_single_step): Set to | |
93 | alpha_software_single_step. | |
94 | * nat/linux-ptrace.h [__alpha__]: Define GDB_ARCH_IS_TRAP_BRKPT | |
95 | and GDB_ARCH_IS_TRAP_HWBKPT. | |
96 | ||
97d4fac1 YQ |
97 | 2017-12-15 Yao Qi <yao.qi@linaro.org> |
98 | ||
99 | * unittests/memory-map-selftests.c: Wrap test with HAVE_LIBEXPAT. | |
100 | ||
828d5846 XR |
101 | 2017-12-15 Xavier Roirand <roirand@adacore.com> |
102 | ||
103 | * ada-lang.c (ada_value_primitive_field): Handle field search | |
104 | in case of homonyms. | |
105 | (find_struct_field): Ditto. | |
106 | (ada_search_struct_field): Ditto. | |
107 | (ada_value_struct_elt): Ditto. | |
108 | (ada_lookup_struct_elt_type): Ditto. | |
109 | ||
8e557e52 SM |
110 | 2017-12-14 Simon Marchi <simon.marchi@ericsson.com> |
111 | ||
112 | * python/py-breakpoint.c (bppy_init): Use 'O' format specifier | |
113 | for "qualified" and use PyObject_IsTrue. | |
114 | ||
8af5c486 JK |
115 | 2017-12-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
116 | ||
117 | * dwarf2read.c (dw2_debug_names_iterator::next): Support | |
118 | DW_IDX_type_unit. | |
119 | (debug_names::dwarf5_offset_size, unit_kind): New. | |
120 | (debug_names::insert): Add parameter kind. | |
121 | (debug_names::build): Support DW_IDX_type_unit. | |
122 | (debug_names::recursively_write_psymbols): Update | |
123 | (debug_names::write_psymbols caller. | |
124 | (debug_names::write_one_signatured_type_data) | |
125 | (debug_names::write_one_signatured_type): New. | |
126 | (debug_names::index_key, debug_names::symbol_value) | |
127 | (debug_names::write_psymbols): Add kind. | |
128 | (debug_names::write_one_signatured_type): New. | |
129 | (write_debug_names): Move dwarf5_offset_size to debug_names. | |
130 | Use debug_names::write_one_signatured_type for type units. | |
131 | ||
79e8fcaa JB |
132 | 2017-12-14 Joel Brobecker <brobecker@adacore.com> |
133 | ||
134 | * ada-lang.c (ada_value_equal): Add handling of typedef types | |
135 | when comparing array objects. | |
136 | ||
e05fa6f9 JB |
137 | 2017-12-14 Joel Brobecker <brobecker@adacore.com> |
138 | ||
139 | * ada-tasks.c (read_atcb): Properly set task_info->ptid | |
140 | when !target_has_execution as well. | |
141 | (task_command): Remove error when !target_has_execution. | |
142 | ||
b89641ba SM |
143 | 2017-12-13 Simon Marchi <simon.marchi@ericsson.com> |
144 | ||
145 | * location.h (string_to_event_location): Add match_type | |
146 | parameter. | |
147 | * location.c (string_to_event_location): Likewise. | |
148 | * python/py-breakpoint.c (bppy_init): Handle qualified | |
149 | parameter. | |
150 | ||
a22ecf70 PA |
151 | 2017-12-13 Pedro Alves <palves@redhat.com> |
152 | ||
153 | * completer.c (completion_tracker::maybe_add_completion): New | |
154 | 'text' and 'word' parameters. Use make_completion_match_str. | |
155 | (completion_tracker::add_completion): New 'text' and 'word' | |
156 | parameters. Pass down. | |
157 | (completion_tracker::recompute_lowest_common_denominator): Change | |
158 | parameter type to gdb::unique_xmalloc_ptr rval ref. Adjust. | |
159 | * completer.h (completion_tracker::add_completion): New 'text' and | |
160 | 'word' parameters. | |
161 | (completion_tracker::recompute_lowest_common_denominator): Change | |
162 | parameter type to gdb::unique_xmalloc_ptr rval ref. | |
163 | (completion_tracker::recompute_lowest_common_denominator): Change | |
164 | parameter type to gdb::unique_xmalloc_ptr rval ref. | |
165 | * symtab.c (completion_list_add_name): Pass down 'text' and 'word' | |
166 | as well. | |
167 | ||
60a20c19 PA |
168 | 2017-12-13 Pedro Alves <palves@redhat.com> |
169 | ||
170 | * cli/cli-decode.c (complete_on_cmdlist, complete_on_enum): Use | |
171 | make_completion_match_str. | |
172 | * completer.c: Use gdb::unique_xmalloc_ptr and | |
173 | make_completion_match_str. | |
174 | (make_completion_match_str_1): New. | |
175 | (make_completion_match_str(const char *, const char *, | |
176 | const char *)): New. | |
177 | (make_completion_match_str(gdb::unique_xmalloc_ptr<char> &&, | |
178 | const char *, const char *)): New. | |
179 | * completer.h (make_completion_match_str(const char *, | |
180 | const char *, const char *)): New. | |
181 | (make_completion_match_str(gdb::unique_xmalloc_ptr<char> &&, | |
182 | const char *, const char *)): New. | |
183 | * interps.c (interpreter_completer): Use make_completion_match_str. | |
184 | * symtab.c (completion_list_add_name, add_filename_to_list): Use | |
185 | make_completion_match_str. | |
186 | ||
96647014 SH |
187 | 2017-12-13 Stafford Horne <shorne@gmail.com> |
188 | ||
189 | * or1k-tdep.c (or1k_analyse_inst): Use _() wrapper for message | |
190 | strings. | |
191 | (or1k_unwind_pc): Use paddress() instead of %p. | |
192 | (or1k_unwind_sp): Likewise. | |
193 | (or1k_frame_cache): Use host_address_to_string()/paddress() | |
194 | instead of %p and use _() wrapper for message strings. | |
195 | ||
3bbd9f18 SM |
196 | 2017-12-13 Simon Marchi <simon.marchi@ericsson.com> |
197 | ||
198 | * contrib/ari/gdb_ari.sh: Fix typo in help. | |
199 | ||
9937536c JB |
200 | 2017-12-13 Joel Brobecker <brobecker@adacore.com> |
201 | ||
202 | * event-top.c (handle_line_of_input): Set server_command. | |
203 | ||
a994fec4 FJ |
204 | 2017-12-12 Stafford Horne <shorne@gmail.com> |
205 | Stefan Wallentowitz <stefan@wallentowitz.de> | |
206 | Stefan Kristiansson <stefan.kristiansson@saunalahti.fi> | |
207 | Franck Jullien <franck.jullien@gmail.com> | |
208 | Jeremy Bennett <jeremy.bennett@embecosm.com> | |
209 | ||
210 | * configure.tgt: Add targets for or1k and or1knd. | |
211 | * or1k-tdep.c: New file. | |
212 | * or1k-tdep.h: New file. | |
213 | * features/Makefile: Add or1k.xml to build. | |
214 | * features/or1k.xml: New file. | |
215 | * features/or1k-core.xml: New file. | |
216 | * features/or1k.c: Generated. | |
217 | ||
db9077b7 AM |
218 | 2017-12-12 Alan Modra <amodra@gmail.com> |
219 | ||
220 | PR tdep/22576 | |
221 | * ppc64-tdep.c (ppc64_plt_entry_point): Rewrite to take TOC-relative | |
222 | PLT offset, and retrieve r2 from stack when executing in reverse. | |
223 | (ppc64_standard_linkage1_target): Drop pc param. Calculate offset | |
224 | rather than PLT address. | |
225 | (ppc64_standard_linkage2_target): Likewise. | |
226 | (ppc64_standard_linkage3_target): Likewise. | |
227 | (ppc64_standard_linkage4_target): Likewise. | |
228 | (ppc64_skip_trampoline_code_1): Adjust to suit. | |
229 | ||
a9334058 SM |
230 | 2017-12-11 Simon Marchi <simon.marchi@ericsson.com> |
231 | ||
232 | PR gdb/22556 | |
233 | * remote.c (remote_thread_name): Return NULL if name is empty. | |
234 | (remote_threads_extra_info): Return NULL if extra info is empty. | |
235 | ||
3c0aa29a PA |
236 | 2017-12-11 Pedro Alves <palves@redhat.com> |
237 | ||
238 | * defs.h (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index) | |
239 | (elf_sym_fns_debug_names): Move to elfread.c. | |
240 | * dwarf2read.c (dwarf2_initialize_objfile): Return a boolean | |
241 | instead of a sym_fns and add 'index_kind' output parameter. Fill | |
242 | the latter in with the index variant kind if using an index. | |
243 | (enum dw_index_kind): Moved to symfile.h. | |
244 | * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names) | |
245 | (elf_sym_fns_lazy_psyms): Move from defs.h. | |
246 | (elf_symfile_read): Adjust to new dwarf2_initialize_objfile | |
247 | interface. | |
248 | * symfile.h (enum class dw_index_kind): New, moved from | |
249 | dwarf2read.c. | |
250 | (dwarf2_initialize_objfile): Change prototype. | |
251 | ||
f2f9e7ec UW |
252 | 2017-12-11 Ulrich Weigand <uweigand@de.ibm.com> |
253 | ||
254 | * target-float.c (mpfr_float_ops::from_target): Use mpfr_set_ui | |
255 | instead of mpfr_set_si to convert mantissa bits. | |
256 | ||
08f49010 XR |
257 | 2017-12-11 Xavier Roirand <roirand@adacore.com> |
258 | Joel Brobecker <brobecker@adacore.com> | |
259 | ||
260 | * ada-lang.c (ada_tag_value_at_base_address): Change the way | |
261 | tagged type base address is computed. | |
262 | (enum ada_primitive_types) <ada_primitive_type_storage_offset>: | |
263 | New enumerate. | |
264 | (ada_language_arch_info): Set the ada_primitive_type_storage_offset | |
265 | element of lai->primitive_type_vector. | |
266 | ||
a3c5fafd PA |
267 | 2017-12-08 Pedro Alves <palves@redhat.com> |
268 | ||
269 | * dwarf2read.c (mock_mapped_index): Reimplement as an extension of | |
270 | mapped_index_base. | |
271 | (check_match): Adjust to use mock_index directly. | |
272 | (check_find_bounds_finds) | |
273 | (test_mapped_index_find_name_component_bounds): Adjust to work | |
274 | with a mapped_index_base. | |
275 | ||
44ed8f3e PA |
276 | 2017-12-08 Pedro Alves <palves@redhat.com> |
277 | ||
278 | * dwarf2read.c (struct mapped_index_base): New, partially factored | |
279 | out from ... | |
280 | (struct mapped_index): ... this. Inherit mapped_index_base. | |
281 | (mapped_index::symbol_name_slot_invalid): | |
282 | (mapped_index::symbol_name_at): Add override marker. | |
283 | (mapped_index::symbol_name_count): New. | |
284 | (struct mapped_debug_names): Inherit mapped_index_base. | |
285 | (mapped_debug_names::symbol_name_at): New. | |
286 | (mapped_debug_names::symbol_name_count): New. | |
287 | (mapped_index::find_name_components_bounds): Rename to ... | |
288 | (mapped_index_base::find_name_components_bounds): ... this. | |
289 | (mapped_index::build_name_components): Rename to ... | |
290 | (mapped_index_base::build_name_components): ... this. Adjust to | |
291 | use mapped_index_base::symbol_name_count and | |
292 | mapped_index_base::symbol_name_slot_invalid. | |
293 | (dw2_expand_symtabs_matching_symbol): Take a mapped_index_base | |
294 | instead of a mapped_index. Use | |
295 | dw2_expand_symtabs_matching_symbol. | |
296 | ||
f00a2de2 PA |
297 | 2017-12-08 Pedro Alves <palves@redhat.com> |
298 | ||
299 | * dwarf2read.c (mapped_index::symbol_table_slot): New. | |
300 | (mapped_index::address_table): Now a gdb::array_view of const | |
301 | gdb_byte. | |
302 | (mapped_index::symbol_table): Now a gdb::array_view of | |
303 | symbol_table_slot. | |
304 | (mapped_index::address_table_size) | |
305 | (mapped_index::symbol_table_slots): Delete. | |
306 | (create_addrmap_from_index): Adjust. | |
307 | (find_slot_in_mapped_hash): Adjust. | |
308 | (read_index_from_section): Adjust. | |
309 | (dwarf2_read_index): Adjust. | |
310 | ||
927aa2e7 JK |
311 | 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
312 | Pedro Alves <palves@redhat.com> | |
313 | ||
314 | * defs.h (elf_sym_fns_debug_names): New declaration. | |
315 | * dwarf2read.c: Include "hash_enum.h". | |
316 | (mapped_debug_names): New. | |
317 | (struct dwarf2_per_objfile): Add debug_names, debug_aranges and | |
318 | debug_names_table. | |
319 | (dwarf2_elf_names): Add ".debug_names" and ".debug_aranges". | |
320 | (struct dwz_file): Add debug_names. | |
321 | (dwarf2_per_objfile::locate_sections): Handle debug_names and | |
322 | debug_aranges. | |
323 | (locate_dwz_sections): Handle debug_names. | |
324 | (create_signatured_type_table_from_debug_names) | |
325 | (create_addrmap_from_aranges): New. | |
326 | (dwarf2_read_index): Update function comment. | |
327 | (dwarf5_augmentation): Moved up. | |
328 | (read_debug_names_from_section, create_cus_from_debug_names_list) | |
329 | (create_cus_from_debug_names, dwarf2_read_debug_names): New. | |
330 | (dwarf5_djb_hash): Moved up. | |
331 | (dw2_debug_names_iterator): New. | |
332 | (read_indirect_string_at_offset): New declaration. | |
333 | (mapped_debug_names::namei_to_name) | |
334 | (dw2_debug_names_iterator::find_vec_in_debug_names) | |
335 | (dw2_debug_names_iterator::next, dw2_debug_names_lookup_symbol) | |
336 | (dw2_debug_names_dump, dw2_debug_names_expand_symtabs_for_function) | |
337 | (dw2_debug_names_expand_symtabs_matching, dwarf2_debug_names_functions): | |
338 | New. | |
339 | (dwarf2_initialize_objfile): Return also elf_sym_fns_debug_names. | |
340 | (debug_names::djb_hash): Rename it to dwarf5_djb_hash. | |
341 | (debug_names::build): Update djb_hash caller. | |
342 | (write_debug_names): Move out and rename augmentation to | |
343 | dwarf5_augmentation. | |
344 | * elfread.c (elf_sym_fns_debug_names): New. | |
345 | * psymtab.h (dwarf2_debug_names_functions): New declaration. | |
346 | * symfile.h (struct dwarf2_debug_sections): Add debug_names and | |
347 | debug_aranges. | |
348 | * xcoffread.c (dwarf2_xcoff_names): Add debug_names and debug_aranges. | |
349 | ||
e5fa6583 PA |
350 | 2017-12-08 Pedro Alves <palves@redhat.com> |
351 | ||
352 | * common/hash_enum.h: New file. | |
353 | ||
4b514bc8 JK |
354 | 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
355 | ||
356 | * dwarf2read.c (create_cu_from_index_list): New from ... | |
357 | (create_cus_from_index_list): ... this function, use it. | |
358 | (dw_expand_symtabs_matching_file_matcher) | |
359 | (dw2_expand_symtabs_matching_one): New from ... | |
360 | (dw2_expand_symtabs_matching): ... this function, use them. | |
361 | ||
abccd1e7 JK |
362 | 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
363 | ||
364 | * defs.h (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index): Move here | |
365 | declarations from elfread.c. | |
366 | (dwarf2_initialize_objfile): Change return value. | |
367 | * elfread.c (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index): Move these | |
368 | declarations to defs.h. | |
369 | (elf_symfile_read): Adjust dwarf2_initialize_objfile caller. | |
370 | * symfile.h (dwarf2_initialize_objfile): Change return type. | |
371 | ||
437afbb8 JK |
372 | 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
373 | Pedro Alves <palves@redhat.com> | |
374 | ||
375 | * contrib/gdb-add-index.sh (index): Rename to ... | |
376 | (index4): ... here. | |
377 | (index5, debugstr, debugstrmerge, debugstrerr): New variables. | |
378 | Support also .debug_names and .debug_str. | |
379 | * dwarf2read.c: Include cmath, set, list. | |
380 | (INDEX_SUFFIX): Rename to ... | |
381 | (INDEX4_SUFFIX): ... here. | |
382 | (INDEX5_SUFFIX, DEBUG_STR_SUFFIX): New. | |
383 | (file_write(FILE *, const void *, size_t)): New. | |
384 | (file_write(FILE *, const std::vector<Elem, Alloc> &)): New. | |
385 | (data_buf::append_unsigned_leb128, data_buf::empty): New. | |
386 | (data_buf::file_write): Use ::file_write. | |
387 | (data_buf::c_str, dwarf5_djb_hash, debug_names) | |
388 | (check_dwarf64_offsets): New. | |
389 | (psyms_seen_size, write_gdbindex): New from | |
390 | write_psymtabs_to_index code. | |
391 | (dwarf5_gdb_augmentation, write_debug_names, assert_file_size) | |
392 | (enum dw_index_kind): New. | |
393 | (write_psymtabs_to_index): New parameter index_kind. Support | |
394 | filename_str and out_file_str. Move code to write_gdbindex, | |
395 | possibly call write_debug_names. | |
396 | (save_gdb_index_command): New parameter -dwarf-5. | |
397 | (_initialize_dwarf2_read): Document the new parameter -dwarf-5. | |
398 | ||
6432ec65 JK |
399 | 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
400 | Pedro Alves <palves@redhat.com> | |
401 | ||
402 | * contrib/cc-with-tweaks.sh: Change interpreter to bash, incl. initial | |
403 | comment. | |
404 | (GDB_ADD_INDEX): New variable. | |
405 | <$want_index>: Call $GDB_ADD_INDEX. | |
406 | ||
92469284 SDJ |
407 | 2017-12-08 Sergio Durigan Junior <sergiodj@redhat.com> |
408 | ||
409 | * dtrace-probe.c (dtrace_process_dof_probe): Do not declare a new | |
410 | "expression_up" inside the TRY block. | |
411 | ||
f17d9474 YQ |
412 | 2017-12-08 Yao Qi <yao.qi@linaro.org> |
413 | ||
414 | * breakpoint.c (update_watchpoint): Call | |
415 | address_significant. | |
416 | ||
a0de8c21 YQ |
417 | 2017-12-08 Yao Qi <yao.qi@linaro.org> |
418 | ||
419 | * breakpoint.c (adjust_breakpoint_address): Call | |
420 | address_significant. | |
421 | ||
a738ea1d YQ |
422 | 2017-12-08 Yao Qi <yao.qi@linaro.org> |
423 | ||
424 | * aarch64-tdep.c (aarch64_gdbarch_init): Install gdbarch | |
425 | significant_addr_bit. | |
426 | * gdbarch.sh (significant_addr_bit): New. | |
427 | * gdbarch.c, gdbarch.h: Re-generated. | |
428 | * target.c (memory_xfer_partial): Call address_significant. | |
429 | * utils.c (address_significant): New function. | |
430 | * utils.h (address_significant): Declare. | |
431 | ||
8e481c3b TT |
432 | 2017-12-08 Tom Tromey <tom@tromey.com> |
433 | ||
434 | * printcmd.c (ui_printf): Update. Use std::vector. | |
435 | * common/format.h (struct format_piece): Add constructor. | |
436 | <string>: Now const. | |
437 | (class format_pieces): New class. | |
438 | (parse_format_string, free_format_pieces) | |
439 | (free_format_pieces_cleanup): Remove. | |
440 | * common/format.c (format_pieces::format_pieces): Rename from | |
441 | parse_format_string. Update. | |
442 | (free_format_pieces, free_format_pieces_cleanup): Remove. | |
443 | * breakpoint.c (parse_cmd_to_aexpr): Update. Use std::vector. | |
444 | * ax-gdb.h (gen_printf): Remove argument. | |
445 | * ax-gdb.c (gen_printf): Remove "frags" argument. | |
446 | (maint_agent_printf_command): Update. Use std::vector. | |
447 | ||
6b05c8bd YQ |
448 | 2017-12-08 Yao Qi <yao.qi@linaro.org> |
449 | ||
450 | PR breakpionts/22567 | |
451 | * linespec.c (minsym_found): Set sal.section. | |
452 | ||
336ef6d2 AA |
453 | 2017-12-08 Andreas Arnez <arnez@linux.vnet.ibm.com> |
454 | ||
455 | * configure.tgt (s390*-*-linux*): Add symfile-mem.o. | |
456 | ||
fa6eb693 KS |
457 | 2017-12-07 Keith Seitz <keiths@redhat.com> |
458 | ||
459 | PR breakpoints/22569 | |
460 | * location.c (string_to_explicit_location): When terminating | |
461 | parsing early, break out of enclosing loop instead of returning. | |
462 | ||
883fd55a KS |
463 | 2017-12-07 Keith Seitz <keiths@redhat.com> |
464 | ||
465 | * NEWS (New commands): Mention set/show print type nested-type-limit. | |
466 | * c-typeprint.c (c_type_print_base): Print out nested types. | |
467 | * dwarf2read.c (struct typedef_field_list): Rename to ... | |
468 | (struct decl_field_list): ... this. Change all uses. | |
469 | (struct field_info) <nested_types_list, nested_types_list_count>: | |
470 | New fields. | |
471 | (add_partial_symbol): Look for nested type definitions in C++, too. | |
472 | (dwarf2_add_typedef): Rename to ... | |
473 | (dwarf2_add_type_defn): ... this. | |
474 | (type_can_define_types): New function. | |
475 | Update assertion to use type_can_define_types. | |
476 | Permit NULL for a field's name. | |
477 | (process_structure_scope): Handle child DIEs of types that can | |
478 | define types. | |
479 | Copy the list of nested types into the type struct. | |
480 | * gdbtypes.h (struct typedef_field): Rename to ... | |
481 | (struct decl_field): ... this. Change all uses. | |
482 | [is_protected, is_private]: New fields. | |
483 | (struct cplus_struct_type) <nested_types, nested_types_count>: New | |
484 | fields. | |
485 | (TYPE_NESTED_TYPES_ARRAY, TYPE_NESTED_TYPES_FIELD) | |
486 | (TYPE_NESTED_TYPES_FIELD_NAME, TYPE_NESTED_TYPES_FIELD_TYPE) | |
487 | (TYPE_NESTED_TYPES_COUNT, TYPE_NESTED_TYPES_FIELD_PROTECTED) | |
488 | (TYPE_NESTED_TYPES_FIELD_PRIVATE): New macros. | |
489 | * typeprint.c (type_print_raw_options, default_ptype_flags): Add | |
490 | default value for print_nested_type_limit. | |
491 | (print_nested_type_limit): New static variable. | |
492 | (set_print_type_nested_types, show_print_type_nested_types): New | |
493 | functions. | |
494 | (_initialize_typeprint): Register new commands for set/show | |
495 | `print-nested-type-limit'. | |
496 | * typeprint.h (struct type_print_options) [print_nested_type_limit]: | |
497 | New field. | |
498 | ||
99598d71 TT |
499 | 2017-12-07 Tom Tromey <tom@tromey.com> |
500 | ||
501 | PR breakpoints/22511: | |
502 | * breakpoint.c (commands_command_1): Don't throw an exception when | |
503 | no commands have been read. | |
504 | ||
23a8d186 AS |
505 | 2017-12-07 Adam Stylinski <adam.stylinski@etegent.com> |
506 | ||
507 | PR c++/21222 | |
508 | * target-descriptions.c (print_c_tdesc::visit_pre): Change type of | |
509 | range-for variable. | |
510 | ||
30970df7 SM |
511 | 2017-12-07 Simon Marchi <simon.marchi@ericsson.com> |
512 | ||
513 | * common/selftest.h (struct selftest): Add virtual destructor. | |
514 | ||
824cc835 PM |
515 | 2017-12-07 Phil Muldoon <pmuldoon@redhat.com> |
516 | ||
517 | * python/py-breakpoint.c (bppy_init): Use string_to_event_location | |
518 | over basic location code. Implement explicit location keywords. | |
519 | (bppy_init_validate_args): New function. | |
520 | * NEWS: Document Python explicit breakpoint locations. | |
521 | ||
9c226a86 JB |
522 | 2017-12-07 Joel Brobecker <brobecker@adacore.com> |
523 | ||
524 | * MAINTAINERS: Restore target entries for m68hc11-elf, | |
525 | score-elf and xstormy16-elf, incorrectly removed in a previous | |
526 | patch meant to only update the list of active maintainers. | |
527 | ||
649a140c PA |
528 | 2017-12-06 Pedro Alves <palves@redhat.com> |
529 | ||
530 | * break-catch-syscall.c (insert_catch_syscall) | |
531 | (remove_catch_syscall): Adjust to pass reference to | |
532 | inf_data->syscalls_counts directly via gdb::array_view. | |
533 | * fbsd-nat.c (fbsd_set_syscall_catchpoint): Adjust to use bool | |
534 | and gdb::array_view. | |
535 | * linux-nat.c (linux_child_set_syscall_catchpoint): Likewise. | |
536 | * remote.c (remote_set_syscall_catchpoint): Likewise. | |
537 | * target-debug.h (target_debug_print_bool): New. | |
538 | (define target_debug_print_gdb_array_view_const_int): New. | |
539 | * target-delegates.c: Regenerate. | |
540 | * target.h (target_ops) <to_set_syscall_catchpoint>: Use | |
541 | gdb::array_view and bool. | |
542 | (target_set_syscall_catchpoint): Likewise. | |
543 | ||
9a93831c SM |
544 | 2017-12-06 Simon Marchi <simon.marchi@ericsson.com> |
545 | ||
546 | * break-catch-syscall.c (catch_syscall_completer): Get pointers | |
547 | to syscall group strings after building the string vector. | |
548 | ||
7cc244de PA |
549 | 2017-12-06 Pedro Alves <palves@redhat.com> |
550 | ||
551 | * remote.c (remote_query_supported): Don't send "xmlRegisters=" if | |
552 | "qXfer:features:read"" is disabled. | |
553 | (remote_write_qxfer, remote_read_qxfer, remote_search_memory): | |
554 | Check packet_config_support instead of packet->support directly. | |
555 | ||
858c9d13 SM |
556 | 2017-12-05 Simon Marchi <simon.marchi@ericsson.com> |
557 | ||
558 | * target-descriptions.c (struct tdesc_feature) <registers>: Use | |
559 | tdesc_reg_up typedef. | |
560 | (struct target_desc) <features>: Use tdesc_feature_up typedef. | |
561 | ||
d4a0e8b5 SM |
562 | 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca> |
563 | ||
564 | * target-descriptions.c (struct tdesc_type): Use default | |
565 | destructor. | |
566 | <u>: Remove. | |
567 | <accept>: Remove. | |
568 | (struct tdesc_type_builtin): New. | |
569 | (struct tdesc_type_vector): New. | |
570 | (struct tdesc_type_with_fields): New. | |
571 | (tdesc_predefined_types): Change type to tdesc_type_builtin[]. | |
572 | (tdesc_gdb_type): Remove. | |
573 | (tdesc_register_type): Adjust. | |
574 | (tdesc_create_vector): Create tdesc_type_vector. | |
575 | (tdesc_create_struct): Create tdesc_type_with_fields. | |
576 | (tdesc_set_struct_size): Change parameter type. | |
577 | (tdesc_create_union): Create tdesc_type_with_fields. | |
578 | (tdesc_create_flags): Likewise. | |
579 | (tdesc_create_enum): Likewise. | |
580 | (tdesc_add_field): Change parameter type. | |
581 | (tdesc_add_typed_bitfield): Likewise. | |
582 | (tdesc_add_bitfield): Likewise. | |
583 | (tdesc_add_flag): Likewise. | |
584 | (tdesc_add_enum_value): Likewise. | |
585 | (print_c_tdesc) <visit>: Remove overload with tdesc_type | |
586 | parameter, add overloads for tdesc_type_builtin, | |
587 | tdesc_type_with_fields and tdesc_type_vector. | |
588 | <m_printed_type>: Remove. | |
589 | <m_printed_element_type, m_printed_type_with_fields>: Add. | |
590 | * target-descriptions.h (tdesc_create_enum): Change return type. | |
591 | (tdesc_add_typed_bitfield): Change parameter type. | |
592 | (tdesc_add_enum_value): Change parameter type. | |
593 | * xml-tdesc.c (struct tdesc_parsing_data) <current_type>: Change | |
594 | type to tdesc_type_with_fields. | |
595 | (tdesc_start_struct): Adjust. | |
596 | (tdesc_start_flags): Adjust. | |
597 | (tdesc_start_enum): Adjust. | |
598 | (tdesc_start_field): Adjust. | |
599 | * arch/tdesc.h (struct tdesc_type_builtin): Forward-declare. | |
600 | (struct tdesc_type_vector): Forward-declare. | |
601 | (struct tdesc_type_with_fields): Forward-declare. | |
602 | (tdesc_create_struct): Change return type. | |
603 | (tdesc_create_union): Likewise. | |
604 | (tdesc_create_flags): Likewise. | |
605 | (tdesc_add_field): Change parameter type. | |
606 | (tdesc_set_struct_size): Likewise. | |
607 | (tdesc_add_bitfield): Likewise. | |
608 | (tdesc_add_flag): Likewise. | |
609 | * features: Re-generate C files. | |
610 | ||
f0cddbef SM |
611 | 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca> |
612 | ||
613 | * target-descriptions.c (tdesc_arch_reg): Remove typedef. | |
614 | (struct tdesc_arch_reg): Add constructor. | |
615 | (DEF_VEC_O (tdesc_arch_reg)): Remove. | |
616 | (struct tdesc_arch_data): Initialize fields. | |
617 | <arch_regs>: Change type to std::vector. | |
618 | (target_find_description): Adjust. | |
619 | (tdesc_find_type): Adjust. | |
620 | (tdesc_data_init): Call tdesc_arch_data constructor. | |
621 | (tdesc_data_alloc): Allocate tdesc_arch_data with new. | |
622 | (tdesc_data_cleanup): Free data with delete. | |
623 | (tdesc_numbered_register): Adjust. | |
624 | (tdesc_find_arch_register): Adjust. | |
625 | (tdesc_use_registers): Adjust. | |
626 | ||
d05200d1 SM |
627 | 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca> |
628 | ||
629 | * target-descriptions.c (tdesc_type_field): Remove typedef. | |
630 | (DEF_VEC_O (tdesc_type_field)): Remove. | |
631 | (struct tdesc_type_field): Add constructor. | |
632 | <name>: Change type to std::string. | |
633 | (struct tdesc_type) <tdesc_type>: Instantiate vector if the type | |
634 | kind uses it. | |
635 | <~tdesc_type>: Destroy vector if the type kind uses it. | |
636 | <u::u::fields>: Change type to std::vector. | |
637 | (tdesc_gdb_type): Adjust. | |
638 | (tdesc_add_field): Adjust. | |
639 | (tdesc_add_typed_bitfield): Adjust. | |
640 | (tdesc_add_field): Adjust. | |
641 | (tdesc_add_enum_value): Adjust. | |
642 | (class print_c_tdesc) <visit>: Adjust. | |
643 | ||
082b9140 SM |
644 | 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca> |
645 | ||
646 | * target-descriptions.c (struct tdesc_type) <name>: Change type | |
647 | to std::string. | |
648 | <~tdesc_type>: Don't manually free name. | |
649 | <operator==>: Adjust. | |
650 | (tdesc_named_type): Adjust. | |
651 | (tdesc_find_type): Adjust. | |
652 | (tdesc_gdb_type): Adjust. | |
653 | (class print_c_tdesc) <visit>: Adjust. | |
654 | ||
53c934e9 SM |
655 | 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca> |
656 | ||
657 | * target-descriptions.c (tdesc_type_p): Remove typedef. | |
658 | (DEF_VEC_P (tdesc_type_p)): Remove. | |
659 | (struct tdesc_feature) <types>: Change type to std::vector. | |
660 | <~tdesc_feature>: Replace with default implementation. | |
661 | <accept>: Adjust. | |
662 | (tdesc_named_type): Adjust. | |
663 | (tdesc_create_vector): Adjust. | |
664 | (tdesc_create_struct): Adjust. | |
665 | (tdesc_create_union): Adjust. | |
666 | (tdesc_create_flags): Adjust. | |
667 | (tdesc_create_enum): Adjust. | |
668 | ||
a8142ee1 SM |
669 | 2017-12-05 Simon Marchi <simon.marchi@ericsson.com> |
670 | ||
671 | * target-descriptions.c (struct tdesc_reg) <tdesc_reg>: Change | |
672 | type of name_ parameter, adjust to std::string change. | |
673 | <name, group, type>: Change type to std::string. | |
674 | <~tdesc_reg>: Replace with default implementation. | |
675 | <operator==>: Adjust. | |
676 | (tdesc_find_register_early): Adjust. | |
677 | (tdesc_register_name): Adjust. | |
678 | (tdesc_register_type): Adjust. | |
679 | (tdesc_register_in_reggroup_p): Adjust. | |
680 | (class print_c_tdesc) <visit>: Adjust. | |
681 | (class print_c_feature) <visit>: Adjust. | |
858c9d13 SM |
682 | * features/arc-arcompact.c: Re-generate. |
683 | * features/arc-v2.c: Re-generate. | |
a8142ee1 | 684 | |
c9c895b9 SM |
685 | 2017-12-05 Simon Marchi <simon.marchi@ericsson.com> |
686 | ||
687 | * target-descriptions.c (tdesc_reg_p): Remove typedef. | |
688 | (DEF_VEC_P (tdesc_reg_p)): Remove. | |
689 | (struct tdesc_feature) <registers>: Change type to std::vector. | |
690 | <~tdesc_feature>: Don't manually free registers. | |
691 | <accept>: Adjust. | |
692 | <operator==>: Adjust. | |
693 | (tdesc_has_registers): Adjust. | |
694 | (tdesc_find_register_early): Adjust. | |
695 | (tdesc_use_registers): Adjust. | |
696 | (tdesc_create_reg): Adjust. | |
697 | ||
f65ff9f9 SM |
698 | 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca> |
699 | ||
700 | * target-descriptions.c (tdesc_feature) <name>: Change type to | |
701 | std::string. | |
702 | <~tdesc_feature>: Don't manually free name. | |
703 | <operator==>: Adjust. | |
704 | (tdesc_find_feature): Adjust. | |
705 | (tdesc_feature_name): Adjust. | |
706 | (class print_c_tdesc) <visit_pre>: Adjust. | |
707 | (class print_c_feature) <visit_pre>: Adjust. | |
708 | ||
3eea796c SM |
709 | 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca> |
710 | ||
711 | * target-descriptions.c (tdesc_feature_p): Remove typedef. | |
712 | (DEF_VEC_P (tdesc_feature_p)): Remove. | |
713 | (struct target_desc) <features>: Change type to std::vector. | |
714 | <~target_desc>: Replace with default implementation. | |
715 | <accept>: Adjust. | |
716 | <operator==>: Adjust. | |
717 | (tdesc_has_registers): Adjust. | |
718 | (tdesc_find_feature): Adjust. | |
719 | (tdesc_use_registers): Adjust. | |
720 | (tdesc_create_feature): Adjust. | |
721 | ||
40e2a983 SM |
722 | 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca> |
723 | ||
724 | * target-descriptions.c (arch_p): Remove typedef. | |
725 | (DEF_VEC_P (arch_p)): Remove. | |
726 | (struct target_desc) <compatible>: Change type to std::vector. | |
727 | <~target_desc>: Don't manually free compatible. | |
728 | (tdesc_compatible_p): Adjust. | |
729 | (tdesc_add_compatible): Adjust. | |
730 | (class print_c_tdesc) <visit_pre>: Adjust. | |
731 | ||
129c10bc SM |
732 | 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca> |
733 | ||
734 | * target-descriptions.c (property_s): Remove typedef. | |
735 | (DEF_VEC_O (property_s)): Remove. | |
736 | (struct target_desc) <properties>: Make an std::vector. | |
737 | <~target_desc>: Don't manually free properties. | |
738 | (tdesc_property): Adjust. | |
739 | (set_tdesc_property): Adjust. | |
740 | (class print_c_tdesc) <visit_pre>: Adjust. | |
741 | ||
ed9376bd SM |
742 | 2017-12-05 Simon Marchi <simon.marchi@ericsson.com> |
743 | ||
744 | * common/gdb_assert.h (gdb_static_assert): Redefine using | |
745 | static_assert. | |
746 | ||
798a7429 SM |
747 | 2017-12-05 Simon Marchi <simon.marchi@ericsson.com> |
748 | ||
749 | * ada-lang.c (ada_collect_symbol_completion_matches): Remove | |
750 | unused variables. | |
751 | (ada_is_redundant_range_encoding): Likewise. | |
752 | * ada-varobj.c (ada_varobj_get_value_of_array_variable): | |
753 | Likewise. | |
754 | * alpha-tdep.c (alpha_software_single_step): Likewise. | |
755 | * arm-tdep.c (_initialize_arm_tdep): Likewise. | |
756 | * auto-load.c (info_auto_load_cmd): Likewise. | |
757 | * break-catch-syscall.c (insert_catch_syscall): Likewise. | |
758 | (remove_catch_syscall): Likewise. | |
759 | * breakpoint.c (condition_completer): Likewise. | |
760 | (clear_command): Likewise. | |
761 | (update_breakpoint_locations): Likewise. | |
762 | * btrace.c (btrace_disable): Likewise. | |
763 | (btrace_teardown): Likewise. | |
764 | (btrace_maint_update_pt_packets): Likewise. | |
765 | (maint_btrace_clear_cmd): Likewise. | |
766 | * cli/cli-decode.c (lookup_cmd_1): Likewise. | |
767 | (lookup_cmd_composition): Likewise. | |
768 | * cli/cli-dump.c (scan_filename): Likewise. | |
769 | (restore_command): Likewise. | |
770 | * compile/compile-loc2c.c (compute_stack_depth): Likewise. | |
771 | * compile/compile-object-load.c (compile_object_load): Likewise. | |
772 | * compile/compile-object-run.c (compile_object_run): Likewise. | |
773 | * compile/compile.c (compile_to_object): Likewise. | |
774 | * completer.c (filename_completer): Likewise. | |
775 | (complete_files_symbols): Likewise. | |
776 | (complete_expression): Likewise. | |
777 | * corelow.c (core_open): Likewise. | |
778 | * ctf.c (ctf_start): Likewise. | |
779 | (ctf_write_status): Likewise. | |
780 | (ctf_write_uploaded_tsv): Likewise. | |
781 | (ctf_write_definition_end): Likewise. | |
782 | (ctf_open_dir): Likewise. | |
783 | (ctf_xfer_partial): Likewise. | |
784 | (ctf_trace_find): Likewise. | |
785 | * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): | |
786 | Likewise. | |
787 | * dwarf2loc.c (allocate_piece_closure): Likewise. | |
788 | (indirect_pieced_value): Likewise. | |
789 | (dwarf2_evaluate_loc_desc_full): Likewise. | |
790 | * dwarf2read.c (dw2_expand_marked_cus): Likewise. | |
791 | (dw2_expand_symtabs_matching): Likewise. | |
792 | (dw2_map_symbol_filenames): Likewise. | |
793 | (read_and_check_comp_unit_head): Likewise. | |
794 | (read_cutu_die_from_dwo): Likewise. | |
795 | (lookup_dwo_unit): Likewise. | |
796 | (read_comp_units_from_section): Likewise. | |
797 | (dwarf2_compute_name): Likewise. | |
798 | (handle_DW_AT_stmt_list): Likewise. | |
799 | (create_cus_hash_table): Likewise. | |
800 | (create_dwp_v2_section): Likewise. | |
801 | (dwarf2_rnglists_process): Likewise. | |
802 | (dwarf2_ranges_process): Likewise. | |
803 | (dwarf2_record_block_ranges): Likewise. | |
804 | (is_vtable_name): Likewise. | |
805 | (read_formatted_entries): Likewise. | |
806 | (skip_form_bytes): Likewise. | |
807 | * elfread.c (elf_symtab_read): Likewise. | |
808 | * exec.c (exec_file_command): Likewise. | |
809 | * f-valprint.c (f_val_print): Likewise. | |
810 | (info_common_command_for_block): Likewise. | |
811 | * guile/guile.c (initialize_scheme_side): Likewise. | |
812 | * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Likewise. | |
813 | * guile/scm-cmd.c (cmdscm_completer): Likewise. | |
814 | (gdbscm_register_command_x): Likewise. | |
815 | * guile/scm-frame.c (gdbscm_frame_read_var): Likewise. | |
816 | * guile/scm-param.c (gdbscm_parameter_value): Likewise. | |
817 | * guile/scm-ports.c (file_port_magic): Likewise. | |
818 | * guile/scm-pretty-print.c (ppscm_search_pp_list): Likewise. | |
819 | (ppscm_pretty_print_one_value): Likewise. | |
820 | (ppscm_print_children): Likewise. | |
821 | * guile/scm-string.c (gdbscm_string_to_argv): Likewise. | |
822 | * guile/scm-symtab.c (gdbscm_sal_symtab): Likewise. | |
823 | * guile/scm-type.c (gdbscm_type_next_field_x): Likewise. | |
824 | * guile/scm-utils.c (gdbscm_parse_function_args): Likewise. | |
825 | * i386-tdep.c (i386_register_reggroup_p): Likewise. | |
826 | * infcmd.c (run_command_1): Likewise. | |
827 | (until_next_fsm_clean_up): Likewise. | |
828 | * linespec.c (linespec_complete): Likewise. | |
829 | (find_label_symbols): Likewise. | |
830 | * m2-valprint.c (m2_val_print): Likewise. | |
831 | * memattr.c (require_user_regions): Likewise. | |
832 | (lookup_mem_region): Likewise. | |
833 | (disable_mem_command): Likewise. | |
834 | (mem_delete): Likewise. | |
835 | * mep-tdep.c (mep_register_name): Likewise. | |
836 | (mep_analyze_prologue): Likewise. | |
837 | * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Likewise. | |
838 | * mi/mi-interp.c (mi_on_sync_execution_done): Likewise. | |
839 | * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise. | |
840 | * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise. | |
841 | * minidebug.c (lzma_open): Likewise. | |
842 | * minsyms.c (lookup_minimal_symbol): Likewise. | |
843 | * mips-linux-tdep.c (mips64_fill_fpregset): Likewise. | |
844 | * mips-tdep.c (mips_stub_frame_sniffer): Likewise. | |
845 | (mips_o64_return_value): Likewise. | |
846 | (mips_single_step_through_delay): Likewise. | |
847 | (_initialize_mips_tdep): Likewise. | |
848 | * nios2-tdep.c (nios2_push_dummy_call): Likewise. | |
849 | (nios2_software_single_step): Likewise. | |
850 | * parse.c (find_minsym_type_and_address): Likewise. | |
851 | * psymtab.c (psym_relocate): Likewise. | |
852 | * python/py-breakpoint.c (bppy_get_commands): Likewise. | |
853 | (gdbpy_breakpoint_modified): Likewise. | |
854 | * python/py-infevents.c (create_inferior_call_event_object): | |
855 | Likewise. | |
856 | * python/py-record-btrace.c (btpy_list_item): Likewise. | |
857 | * python/py-type.c (typy_str): Likewise. | |
858 | * python/py-value.c (valpy_call): Likewise. | |
859 | * python/python.c (do_start_initialization): Likewise. | |
860 | * record-btrace.c (record_btrace_insn_history_range): Likewise. | |
861 | (record_btrace_call_history_range): Likewise. | |
862 | (record_btrace_record_method): Likewise. | |
863 | (record_btrace_xfer_partial): Likewise. | |
864 | (btrace_get_frame_function): Likewise. | |
865 | * record-full.c (record_full_open): Likewise. | |
866 | * record.c (get_context_size): Likewise. | |
867 | * registry.h (DEFINE_REGISTRY): Likewise. | |
868 | * remote-fileio.c (remote_fileio_request): Likewise. | |
869 | * remote.c (remote_update_thread_list): Likewise. | |
870 | (remote_check_symbols): Likewise. | |
871 | (remote_commit_resume): Likewise. | |
872 | (remote_interrupt): Likewise. | |
873 | (remote_insert_breakpoint): Likewise. | |
874 | (compare_sections_command): Likewise. | |
875 | * rust-exp.y (super_name): Likewise. | |
876 | (lex_string): Likewise. | |
877 | (convert_ast_to_type): Likewise. | |
878 | (convert_ast_to_expression): Likewise. | |
879 | * rust-lang.c (rust_print_struct_def): Likewise. | |
880 | (rust_print_type): Likewise. | |
881 | (rust_evaluate_subexp): Likewise. | |
882 | * rx-tdep.c (rx_register_type): Likewise. | |
883 | * ser-event.c (serial_event_clear): Likewise. | |
884 | * serial.c (serial_open): Likewise. | |
885 | * spu-tdep.c (spu_overlay_new_objfile): Likewise. | |
886 | * symfile.c (section_is_overlay): Likewise. | |
887 | (overlay_unmapped_address): Likewise. | |
888 | (overlay_mapped_address): Likewise. | |
889 | (simple_overlay_update_1): Likewise. | |
890 | (simple_overlay_update): Likewise. | |
891 | * symtab.c (symbol_find_demangled_name): Likewise. | |
892 | (search_symbols): Likewise. | |
893 | * target-descriptions.c (tdesc_predefined_type): Likewise. | |
894 | * target.c (target_commit_resume): Likewise. | |
895 | * thread.c (print_selected_thread_frame): Likewise. | |
896 | * top.c (new_ui_command): Likewise. | |
897 | (gdb_readline_no_editing): Likewise. | |
898 | * tracefile-tfile.c (tfile_open): Likewise. | |
899 | * tracepoint.c (create_tsv_from_upload): Likewise. | |
900 | * utils.c (quit): Likewise. | |
901 | (defaulted_query): Likewise. | |
902 | * valarith.c (value_concat): Likewise. | |
903 | * xml-syscall.c (xml_list_syscalls_by_group): Likewise. | |
904 | * xml-tdesc.c (target_fetch_description_xml): Likewise. | |
905 | * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise. | |
906 | (xtensa_pseudo_register_write): Likewise. | |
907 | ||
7403715e TT |
908 | 2017-12-04 Tom Tromey <tom@tromey.com> |
909 | ||
910 | * NEWS: Mention Rust trait object inspection. | |
911 | ||
50a1fdd5 PA |
912 | 2017-12-04 Pedro Alves <palves@redhat.com> |
913 | ||
914 | PR gdb/22499 | |
915 | * amd64-tdep.c (amd64_insn::rex_offset): Rename to... | |
916 | (amd64_insn::enc_prefix_offset): ... this, and tweak comment. | |
917 | (vex2_prefix_p, vex3_prefix_p): New functions. | |
918 | (amd64_get_insn_details): Adjust to rename. Also skip VEX2 and | |
919 | VEX3 prefixes. | |
920 | (fixup_riprel): Set VEX3.!B. | |
921 | ||
1e97a227 SM |
922 | 2017-12-03 Simon Marchi <simon.marchi@ericsson.com> |
923 | ||
924 | * target.h (mem_region_vector): Remove. | |
925 | (struct target_ops) <to_memory_map>: Change return type to | |
926 | std::vector<mem_region>. | |
927 | * target-debug.h (target_debug_print_mem_region_vector): Rename | |
928 | to ... | |
929 | (target_debug_print_std_vector_mem_region): ... this. | |
930 | * target-delegates.c: Re-generate. | |
931 | ||
10f64178 PA |
932 | 2017-12-03 Pedro Alves <palves@redhat.com> |
933 | ||
934 | * make-target-delegates (munge_type): Also munge '<', '>', and | |
935 | ':'. Avoid double underscores in identifiers, and trailing | |
936 | underscores. | |
937 | * target-debug.h | |
938 | (target_debug_print_VEC_static_tracepoint_marker_p__p): Rename to | |
939 | ... | |
940 | (target_debug_print_VEC_static_tracepoint_marker_p_p): ... this. | |
941 | * target-delegates.c: Regenerate. | |
942 | ||
6d83e819 SM |
943 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
944 | ||
945 | * common/poison.h (XDELETE): Fix typo. | |
946 | ||
97cbe998 SDJ |
947 | 2017-12-01 Andrew Cagney <cagney@redhat.com> |
948 | Joel Brobecker <brobecker@adacore.com> | |
949 | Sergio Durigan Junior <sergiodj@redhat.com> | |
950 | ||
951 | * NEWS (Changes since GDB 8.0: Mention new '--readnever' | |
952 | feature. | |
953 | * coffread.c (coff_symfile_read): Do not map over sections with | |
954 | 'coff_locate_sections' if readnever is on. | |
955 | * dwarf2read.c (dwarf2_has_info): Return 0 if | |
956 | readnever is on. | |
957 | * elfread.c (elf_symfile_read): Do not map over sections with | |
958 | 'elf_locate_sections' if readnever is on. | |
959 | * main.c (validate_readnow_readnever): New function. | |
960 | (captured_main_1): Add support for --readnever. | |
961 | (print_gdb_help): Document --readnever. | |
962 | * objfile-flags.h (enum objfile_flag) <OBJF_READNEVER>: New | |
963 | flag. | |
964 | * symfile.c (readnever_symbol_files): New global. | |
965 | (symbol_file_add_with_addrs): Set 'OBJF_READNEVER' when | |
966 | 'READNEVER_SYMBOL_FILES' is set. | |
967 | (validate_readnow_readnever): New function. | |
968 | (symbol_file_command): Handle '-readnever' option. | |
969 | Call 'validate_readnow_readnever'. | |
970 | (add_symbol_file_command): Handle '-readnever' option. | |
971 | Call 'validate_readnow_readnever'. | |
972 | (_initialize_symfile): Document new '-readnever' option for | |
973 | both 'symbol-file' and 'add-symbol-file' commands. | |
974 | * top.h (readnever_symbol_files): New extern global. | |
975 | * xcoffread.c (xcoff_initial_scan): Do not read debug | |
976 | information if readnever is on. | |
977 | ||
40fc416f SDJ |
978 | 2017-12-01 Sergio Durigan Junior <sergiodj@redhat.com> |
979 | ||
980 | * symfile.c (symbol_file_command): Call | |
981 | 'symbol_file_add_main_1' only after processing all command | |
982 | line options. | |
983 | (add_symbol_file_command): Modify logic to make arguments | |
984 | position-independent. | |
985 | ||
ec6a20c2 JB |
986 | 2017-12-01 Joel Brobecker <brobecker@adacore.com> |
987 | ||
988 | * ada-lang.c (symbol_list_obstack): Delete. | |
989 | (resolve_subexp): Make sure "candidates" gets xfree'ed. | |
990 | (ada_lookup_symbol_list_worker): Remove the limitation that | |
991 | the result is only good until the next call, now making it | |
992 | the responsibility of the caller to free the result when no | |
993 | longer needed. Adjust the function's intro comment accordingly. | |
994 | (ada_lookup_symbol_list): Adjust the function's intro comment. | |
995 | (ada_iterate_over_symbols): Make sure "results" gets xfree'ed. | |
996 | (ada_lookup_encoded_symbol, get_var_value): Likewise. | |
997 | (_initialize_ada_language): Remove symbol_list_obstack | |
998 | initialization. | |
999 | * ada-exp.y (block_lookup): Make sure "syms" gets xfree'ed. | |
1000 | (write_var_or_type, write_name_assoc): Likewise. | |
1001 | ||
d0df06af TT |
1002 | 2017-12-01 Tom Tromey <tom@tromey.com> |
1003 | ||
1004 | * Makefile.in (all_deps_files): New variable. | |
1005 | Include .Po files using all_deps_files. | |
1006 | ||
2ee0c9b3 JB |
1007 | 2017-12-01 Joel Brobecker <brobecker@adacore.com> |
1008 | ||
1009 | * MAINTAINERS: Update list of maintainers, moving those who | |
1010 | stepped down or became inactive to the "Past Maintainers" | |
1011 | section. | |
1012 | ||
44122162 RO |
1013 | 2017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
1014 | ||
1015 | * configure.ac Don't check for sys/fault.h, sys/syscall.h, | |
1016 | sys/proc.h. | |
1017 | (NEW_PROC_API): Remove. | |
1018 | (prsysent_t, pr_sigset_t, pr_sigaction64_t, pr_siginfo64_t): | |
1019 | Likewise. | |
1020 | * common/common.m4 (GDB_AC_COMMON): Don't check for sys/syscall.h. | |
1021 | * configure: Regenerate. | |
1022 | * config.in: Regenerate. | |
1023 | * gdbserver/configure: Regenerate. | |
1024 | * gdbserver/config.in: Regenerate. | |
1025 | ||
1026 | * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Remove | |
1027 | NEW_PROC_API test. | |
1028 | * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Likewise. | |
1029 | ||
1030 | * linux-btrace.c: Remove HAVE_SYS_SYSCALL_H test. | |
1031 | ||
1032 | * proc-api.c: Remove !NEW_PROC_API support. | |
1033 | Remove HAVE_SYS_PROC_H and HAVE_SYS_USER_H tests. | |
1034 | Remove tests for macros always defined on Solaris. | |
1035 | * proc-events.c: Remove !NEW_PROC_API support. | |
1036 | Remove Remove HAVE_SYS_SYSCALL_H, HAVE_SYS_PROC_H and | |
1037 | HAVE_SYS_USER_H tests. | |
1038 | (init_syscall_table): Remove non-Solaris syscalls. | |
1039 | Remove tests for syscalls present on all Solaris versions. | |
1040 | Add missing Solaris 10+ syscalls. | |
1041 | (signal_table): Remove non-Solaris signals. | |
1042 | Remove tests for signals present on all Solaris versions. | |
1043 | (fault_table): Remove non-Solaris faults. | |
1044 | Remove tests for faults present on all Solaris versions. | |
1045 | * proc-flags.c: Remove !NEW_PROC_API support. | |
1046 | (pr_flag_table): Remove non-Solaris and pre-Solaris 7 comments. | |
1047 | Remove non-Solaris flags. | |
1048 | * proc-why.c: Remove !NEW_PROC_API support. | |
1049 | (pr_why_table): Remove meaningless comments. | |
1050 | Remove tests for reasons present on all Solaris versions. | |
1051 | Remove OSF/1 cases. | |
1052 | (proc_prettyfprint_why): Likewise. | |
1053 | ||
1054 | * procfs.c: Remove !NEW_PROC_API and DYNAMIC_SYSCALLS support. | |
1055 | Remove HAVE_SYS_FAULT_H and HAVE_SYS_SYSCALL_H tests. | |
1056 | Remove WA_READ test, IRIX watchpoint support. | |
1057 | (gdb_sigset_t, gdb_sigaction_t, gdb_siginfo_t): Replace by base | |
1058 | types. Change users. | |
1059 | (gdb_praddset, gdb_prdelset, gdb_premptysysset, gdb_praddsysset) | |
1060 | (gdb_prdelset, gdb_pr_issyssetmember): Replace by base macros. | |
1061 | Change callers. | |
1062 | Remove CTL_PROC_NAME_FMT tests. | |
1063 | (gdb_prstatus_t, gdb_lwpstatus_t): Replace by base types. Change | |
1064 | users. | |
1065 | (sysset_t_size): Remove. Use sizeof (sysset_t) in callers. | |
1066 | Remove PROCFS_DONT_PIOCSSIG_CURSIG support. | |
1067 | (proc_modify_flag): Replace GDBRESET by PCUNSET. | |
1068 | Remove PR_ASYNC, PR_KLC tests. | |
1069 | (proc_unset_inherit_on_fork): Remove PR_ASYNC test. | |
1070 | (proc_parent_pid): Remove PCWATCH etc. tests. | |
1071 | (proc_set_watchpoint): Remove !PCWATCH && !PIOCSWATCH support. | |
1072 | Remove PCAGENT test. | |
1073 | (proc_get_nthreads) [PIOCNTHR && PIOCTLIST]: Remove. | |
1074 | Remove SYS_lwpcreate || SYS_lwp_create test. | |
1075 | (proc_get_current_thread): Likewise. | |
1076 | [PIOCNTHR && PIOCTLIST]: Remove. | |
1077 | [PIOCLSTATUS]: Remove. | |
1078 | (procfs_debug_inferior): Remove non-Solaris cases, conditionals. | |
1079 | [PRFS_STOPEXEC]: Remove. | |
1080 | (syscall_is_lwp_exit): Remove non-Solaris cases, conditionals. | |
1081 | (syscall_is_exit): Likewise. | |
1082 | (syscall_is_exec): Likewise. | |
1083 | (syscall_is_lwp_create): Likewise. | |
1084 | Remove SYS_syssgi support. | |
1085 | (procfs_wait): Remove PR_ASYNC, !PIOCSSPCACT tests. | |
1086 | [SYS_syssgi]: Remove. | |
1087 | Remove non-Solaris cases, conditionals. | |
1088 | (unconditionally_kill_inferior) [PROCFS_NEED_PIOCSSIG_FOR_KILL]: | |
1089 | Remove. | |
1090 | (procfs_init_inferior) [SYS_syssgi]: Remove. | |
1091 | (procfs_set_exec_trap) [PRFS_STOPEXEC]: Remove. | |
1092 | (procfs_inferior_created) [SYS_syssgi]: Remove. | |
1093 | (procfs_set_watchpoint): Remove !AIX5 test. | |
1094 | (procfs_stopped_by_watchpoint): Remove FLTWATCH test, FLTKWATCH | |
1095 | case. | |
1096 | (mappingflags) [MA_PHYS]: Remove. | |
1097 | (info_mappings_callback): Remove PCAGENT test. | |
1098 | Remove PIOCOPENLWP || PCAGENT test. | |
1099 | ||
e8020e54 RO |
1100 | 2017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
1101 | ||
1102 | * sol-thread.c (info_solthreads): Constify args. | |
1103 | Cast args to void *. | |
1104 | ||
75059544 JB |
1105 | 2017-11-29 John Baldwin <jhb@FreeBSD.org> |
1106 | ||
1107 | * target-float.c [HAVE_LIBMPFR]: Define MPFR_USE_INTMAX_T. | |
1108 | ||
f5a91472 JB |
1109 | 2017-11-29 Joel Brobecker <brobecker@adacore.com> |
1110 | ||
1111 | * ada-lang.c (to_fixed_range_type): Make sure that the size | |
1112 | of the range type being returned is the same as the size | |
1113 | of the range type being fixed. | |
1114 | ||
bd69330d PA |
1115 | 2017-11-29 Pedro Alves <palves@redhat.com> |
1116 | ||
1117 | PR c++/19436 | |
1118 | * NEWS: Mention setting breakpoints on functions with C++ ABI | |
1119 | tags. | |
1120 | * completer.h (completion_match_for_lcd) <match, | |
1121 | mark_ignored_range>: New methods. | |
1122 | <finish>: Consider ignored ranges. | |
1123 | <clear>: Clear ignored ranges. | |
1124 | <m_ignored_ranges, m_finished_storage>: New fields. | |
1125 | * cp-support.c (cp_search_name_hash): Ignore ABI tags. | |
1126 | (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the | |
1127 | completion_match_for_lcd pointer to strncmp_iw_with_mode. | |
1128 | (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests. | |
1129 | * language.c (default_symbol_name_matcher): Pass the | |
1130 | completion_match_for_lcd pointer to strncmp_iw_with_mode. | |
1131 | * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags. | |
1132 | * utils.c (skip_abi_tag): New function. | |
1133 | (strncmp_iw_with_mode): Add completion_match_for_lcd parameter. | |
1134 | Handle ABI tags. | |
1135 | * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd | |
1136 | parameter. | |
1137 | ||
1138 | 2017-11-29 Pedro Alves <palves@redhat.com> | |
1139 | ||
1140 | PR c++/19436 | |
1141 | * NEWS: Mention setting breakpoints on functions with C++ ABI | |
1142 | tags. | |
1143 | * completer.h (completion_match_for_lcd) <match, | |
1144 | mark_ignored_range>: New methods. | |
1145 | <finish>: Consider ignored ranges. | |
1146 | <clear>: Clear ignored ranges. | |
1147 | <m_ignored_ranges, m_finished_storage>: New fields. | |
1148 | * cp-support.c (cp_search_name_hash): Ignore ABI tags. | |
1149 | (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the | |
1150 | completion_match_for_lcd pointer to strncmp_iw_with_mode. | |
1151 | (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests. | |
1152 | * language.c (default_symbol_name_matcher): Pass the | |
1153 | completion_match_for_lcd pointer to strncmp_iw_with_mode. | |
1154 | * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags. | |
1155 | * utils.c (skip_abi_tag): New function. | |
1156 | (strncmp_iw_with_mode): Add completion_match_for_lcd parameter. | |
1157 | Handle ABI tags. | |
1158 | * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd | |
1159 | parameter. | |
1160 | ||
a20714ff PA |
1161 | 2017-11-29 Pedro Alves <palves@redhat.com> |
1162 | ||
1163 | * NEWS: Mention that breakpoints on C++ functions are now set on | |
1164 | on all namespaces/classes by default, and mention "break | |
1165 | -qualified". | |
1166 | * ax-gdb.c (agent_command_1): Adjust to pass a | |
1167 | symbol_name_match_type to new_linespec_location. | |
1168 | * breakpoint.c (parse_breakpoint_sals): Adjust to | |
1169 | get_linespec_location's return type change. | |
1170 | (strace_marker_create_sals_from_location): Adjust to pass a | |
1171 | symbol_name_match_type to new_linespec_location. | |
1172 | (strace_marker_decode_location): Adjust to get_linespec_location's | |
1173 | return type change. | |
1174 | (strace_command): Adjust to pass a symbol_name_match_type to | |
1175 | new_linespec_location. | |
1176 | (LOCATION_HELP_STRING): Add paragraph about wildmatching, and | |
1177 | mention "-qualified". | |
1178 | * c-lang.c (cplus_language_defn): Install cp_search_name_hash. | |
1179 | * completer.c (explicit_location_match_type::MATCH_QUALIFIED): New | |
1180 | enumerator. | |
1181 | (complete_address_and_linespec_locations): New parameter | |
1182 | 'match_type'. Pass it down. | |
1183 | (explicit_options): Add "-qualified". | |
1184 | (collect_explicit_location_matches): Pass the requested match type | |
1185 | to the linespec completers. Handle MATCH_QUALIFIED. | |
1186 | (location_completer): Handle "-qualified" combined with linespecs. | |
1187 | * cp-support.c (cp_search_name_hash): New. | |
1188 | (cp_symbol_name_matches_1): Implement wild matching for C++. | |
1189 | (cp_fq_symbol_name_matches): Reimplement. | |
1190 | (cp_get_symbol_name_matcher): Return different matchers depending | |
1191 | on the lookup name's match type. | |
1192 | (selftests::test_cp_symbol_name_matches): Add wild matching tests. | |
1193 | * cp-support.h (cp_search_name_hash): New declaration. | |
1194 | * dwarf2read.c | |
1195 | (selftests::dw2_expand_symtabs_matching::test_symbols): Add | |
1196 | symbols. | |
1197 | (test_dw2_expand_symtabs_matching_symbol): Add wild matching | |
1198 | tests. | |
1199 | * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Adjust to | |
1200 | pass a symbol_name_match_type to new_linespec_location. | |
1201 | * linespec.c (linespec_parse_basic): Lookup function symbols using | |
1202 | the parser's symbol name match type. | |
1203 | (convert_explicit_location_to_linespec): New | |
1204 | symbol_name_match_type parameter. Pass it down to | |
1205 | find_linespec_symbols. | |
1206 | (convert_explicit_location_to_sals): Pass the location's name | |
1207 | match type to convert_explicit_location_to_linespec. | |
1208 | (parse_linespec): New match_type parameter. Save it in the | |
1209 | parser. | |
1210 | (linespec_parser_new): Default to symbol_name_match_type::WILD. | |
1211 | (linespec_complete_function): New symbol_name_match_type | |
1212 | parameter. Use it. | |
1213 | (complete_linespec_component): Pass down the parser's recorded | |
1214 | name match type. | |
1215 | (linespec_complete_label): New symbol_name_match_type parameter. | |
1216 | Use it. | |
1217 | (linespec_complete): New symbol_name_match_type parameter. Save | |
1218 | it in the parser and pass it down. Adjust to | |
1219 | get_linespec_location's prototype change. | |
1220 | (find_function_symbols, find_linespec_symbols): New | |
1221 | symbol_name_match_type parameter. Pass it down instead of | |
1222 | assuming symbol_name_match_type::WILD. | |
1223 | * linespec.h (linespec_complete, linespec_complete_function) | |
1224 | (linespec_complete_label): New symbol_name_match_type parameter. | |
1225 | * location.c (event_location::linespec_location): Now a struct | |
1226 | linespec_location. | |
1227 | (EL_LINESPEC): Adjust. | |
1228 | (initialize_explicit_location): Default to | |
1229 | symbol_name_match_type::WILD. | |
1230 | (new_linespec_location): New symbol_name_match_type parameter. | |
1231 | Record it in the location. | |
1232 | (get_linespec_location): Now returns a struct linespec_location. | |
1233 | (new_explicit_location): Also copy func_name_match_type. | |
1234 | (explicit_to_string_internal) | |
1235 | (string_to_explicit_location): Handle "-qualified". | |
1236 | (copy_event_location): Adjust to LINESPEC_LOCATION type change. | |
1237 | Copy symbol_name_match_type fields. | |
1238 | (event_location_deleter::operator()): Adjust to LINESPEC_LOCATION | |
1239 | type change. | |
1240 | (event_location_to_string): Adjust to LINESPEC_LOCATION type | |
1241 | change. Handle "-qualfied". | |
1242 | (string_to_explicit_location): Handle "-qualified". | |
1243 | (string_to_event_location_basic): New symbol_name_match_type | |
1244 | parameter. Pass it down. | |
1245 | (string_to_event_location): Handle "-qualified". | |
1246 | * location.h (struct linespec_location): New. | |
1247 | (explicit_location::func_name_match_type): New field. | |
1248 | (new_linespec_location): Now returns a const linespec_location *. | |
1249 | (string_to_event_location_basic): New symbol_name_match_type | |
1250 | parameter. | |
1251 | (explicit_completion_info::saw_explicit_location_option): New | |
1252 | field. | |
1253 | * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Adjust to pass a | |
1254 | symbol_name_match_type to new_linespec_location. | |
1255 | * python/py-breakpoint.c (bppy_init): Likewise. | |
1256 | * python/python.c (gdbpy_decode_line): Likewise. | |
1257 | ||
a207cff2 PA |
1258 | 2017-11-29 Pedro Alves <palves@redhat.com> |
1259 | ||
1260 | * ada-lang.c (ada_lookup_name_info::matches): Change type of | |
1261 | parameter from completion_match to completion_match_result. | |
1262 | Adjust. | |
1263 | (do_wild_match, do_full_match, ada_symbol_name_matches): Likewise. | |
1264 | * completer.c (completion_tracker::maybe_add_completion): Add | |
1265 | match_for_lcd parameter and use it. | |
1266 | (completion_tracker::add_completion): Likewise. | |
1267 | * completer.h (class completion_match_for_lcd): New class. | |
1268 | (completion_match_result::match_for_lcd): New field. | |
1269 | (completion_match_result::set_match): New method. | |
1270 | (completion_tracker): Add comments. | |
1271 | (completion_tracker::add_completion): Add match_for_lcd parameter. | |
1272 | (completion_tracker::reset_completion_match_result): Reset | |
1273 | match_for_lcd too. | |
1274 | (completion_tracker::maybe_add_completion): Add match_for_lcd | |
1275 | parameter. | |
1276 | (completion_tracker::m_lowest_common_denominator_unique): Extend | |
1277 | comments. | |
1278 | * cp-support.c (cp_symbol_name_matches_1) | |
1279 | (cp_fq_symbol_name_matches): Change type of parameter from | |
1280 | completion_match to completion_match_result. Adjust. | |
1281 | * language.c (default_symbol_name_matcher): Change type of | |
1282 | parameter from completion_match to completion_match_result. | |
1283 | Adjust. | |
1284 | * language.h (completion_match_for_lcd): Forward declare. | |
1285 | (default_symbol_name_matcher): Change type of parameter from | |
1286 | completion_match to completion_match_result. | |
1287 | * symtab.c (compare_symbol_name): Adjust. | |
1288 | (completion_list_add_name): Pass the match_for_lcd to the tracker. | |
1289 | * symtab.h (ada_lookup_name_info::matches): Change type of | |
1290 | parameter from completion_match to completion_match_result. | |
1291 | (symbol_name_matcher_ftype): Likewise, and update comments. | |
1292 | ||
4024cf2b PA |
1293 | 2017-11-29 Pedro Alves <palves@redhat.com> |
1294 | ||
1295 | * linespec.c (minsym_found, add_minsym): Use msymbol_is_function. | |
1296 | * minsyms.c (msymbol_is_text): Delete. | |
1297 | (msymbol_is_function): New function. | |
1298 | * minsyms.h (msymbol_is_text): Delete. | |
1299 | (msymbol_is_function): New declaration. | |
1300 | * symtab.c (find_function_alias_target): Use msymbol_is_function. | |
1301 | ||
5dcf52c1 TT |
1302 | 2017-11-29 Tom Tromey <tom@tromey.com> |
1303 | ||
1304 | * Makefile.in (distclean): Handle the case where rmdir fails. | |
1305 | ||
8ca2f0b9 TT |
1306 | 2017-11-29 Tom Tromey <tom@tromey.com> |
1307 | ||
1308 | * symfile.c (_initialize_symfile): Update usage text for | |
1309 | add-symbol-file, symbol-file, load. | |
1310 | ||
02ca603a TT |
1311 | 2017-11-29 Tom Tromey <tom@tromey.com> |
1312 | ||
1313 | * symfile.c (add_symbol_file_command): Error if some arguments to | |
1314 | -s are missing. Change unrecognized-argument error message. | |
1315 | (_initialize_symfile): Fix usage text for add-symbol-file. | |
1316 | ||
18ca7347 TT |
1317 | 2017-11-27 Tom Tromey <tom@tromey.com> |
1318 | ||
1319 | * Makefile.in (REMOTE_OBS): Remove. | |
1320 | (SFILES): Remove remote sources. | |
1321 | (COMMON_SFILES): Add remote sources. | |
1322 | (ALLDEPFILES): Remove dcache.c. | |
1323 | ||
66599a7d TT |
1324 | 2017-11-27 Tom Tromey <tom@tromey.com> |
1325 | ||
1326 | * Makefile.in (SUBDIR_TARGET_SRCS, SUBDIR_TARGET_OBS): New | |
1327 | variables. | |
1328 | (SFILES): Use SUBDIR_TARGET_SRCS. | |
1329 | (COMMON_OBS): Use SUBDIR_TARGET_OBS. Remove waitstatus.o. | |
1330 | (CONFIG_SRC_SUBDIR): Add target. | |
1331 | (%.o): Remove target rule. | |
1332 | ||
4f04fba8 TT |
1333 | 2017-11-27 Tom Tromey <tom@tromey.com> |
1334 | ||
1335 | * Makefile.in (COMMON_OBS): Remove filename-seen-cache.o, | |
1336 | registry.o, thread-fsm.o, debug.o. | |
1337 | (COMMON_SFILES): Add filename-seen-cache.c, registry.c, | |
1338 | thread-fsm.c, debug.c. | |
1339 | ||
b5adff3b TT |
1340 | 2017-11-27 Tom Tromey <tom@tromey.com> |
1341 | ||
1342 | * Makefile.in (COMMON_SFILES): New. | |
1343 | (SFILES): Move some entries to COMMON_SFILES. | |
1344 | (COMMON_OBS): Use COMMON_SFILES. | |
1345 | ||
afa0a411 TT |
1346 | 2017-11-27 Tom Tromey <tom@tromey.com> |
1347 | ||
1348 | * Makefile.in (YYFILES): Update comment. | |
1349 | (YYOBJ): Redefine. | |
1350 | ||
8fd8d003 TT |
1351 | 2017-11-27 Tom Tromey <tom@tromey.com> |
1352 | ||
1353 | * Makefile.in (SUBDIR_PYTHON_OBS): Redefine. | |
1354 | (CONFIG_SRC_SUBDIR): Add python. | |
1355 | (%.o): Remove python rule. | |
1356 | (python/%.o): New rule. | |
1357 | * configure: Rebuild. | |
1358 | * configure.ac (CONFIG_OBS): Refer to python/python.o | |
1359 | ||
bd810fff TT |
1360 | 2017-11-27 Tom Tromey <tom@tromey.com> |
1361 | ||
1362 | * configure: Rebuild. | |
1363 | * configure.ac (CONFIG_OBS): Refer to guile/guile.o. | |
1364 | * Makefile.in (SUBDIR_GUILE_OBS): Redefine. | |
1365 | (CONFIG_SRC_SUBDIR): Add guile. | |
1366 | (%.o): Remove guile rule. | |
1367 | ||
75787ac1 TT |
1368 | 2017-11-27 Tom Tromey <tom@tromey.com> |
1369 | ||
1370 | * Makefile.in (SUBDIR_UNITTESTS_OBS): Redefine. | |
1371 | (%.o): Remove unittests rule. | |
1372 | (CONFIG_SRC_SUBDIR): Add unittests. | |
1373 | ||
5c8a9431 TT |
1374 | 2017-11-27 Tom Tromey <tom@tromey.com> |
1375 | ||
1376 | * Makefile.in (SUBDIR_TUI_OBS): Redefine. | |
1377 | (CONFIG_SRC_SUBDIR): Add tui. | |
1378 | (%.o): Remove tui rule. | |
1379 | ||
a26aa30c TT |
1380 | 2017-11-27 Tom Tromey <tom@tromey.com> |
1381 | ||
1382 | * Makefile.in (SUBDIR_GCC_COMPILE_OBS): Redefine. | |
1383 | (%.o): Remove compile rule. | |
1384 | (CONFIG_SRC_SUBDIR): Add compile. | |
1385 | ||
6f3cdf9a TT |
1386 | 2017-11-27 Tom Tromey <tom@tromey.com> |
1387 | ||
1388 | * Makefile.in (SUBDIR_MI_OBS): Redefine. | |
1389 | (%.o): Remove mi rule. | |
1390 | (CONFIG_SRC_SUBDIR): Add mi. | |
1391 | (COMMON_OBS): Use mi/mi-common.o | |
1392 | ||
f06afa53 TT |
1393 | 2017-11-27 Tom Tromey <tom@tromey.com> |
1394 | ||
1395 | * Makefile.in (SUBDIR_CLI_OBS): Redefine. | |
1396 | (%.o): Remove cli rule. | |
1397 | (CONFIG_SRC_SUBDIR): Add cli. | |
1398 | ||
b22c88c2 TT |
1399 | 2017-11-27 Tom Tromey <tom@tromey.com> |
1400 | ||
1401 | * configure.ac (CONFIG_SRC_SUBDIR): Don't subst. | |
1402 | * configure: Rebuild. | |
1403 | * Makefile.in (CONFIG_SRC_SUBDIR): Redefine. | |
1404 | (CONFIG_DEP_SUBDIR): New variable. | |
1405 | (%.o): Add order-only dependency. | |
1406 | ($(CONFIG_DEP_SUBDIR)): New target. | |
1407 | ||
ee9a09e9 DC |
1408 | 2017-11-26 Dominik Czarnota <dominik.b.czarnota@gmail.com> |
1409 | ||
1410 | PR gdb/21945 | |
1411 | * findcmd.c (_initialize_mem_search): Update find command help | |
1412 | text. | |
1413 | ||
e8e7d10c SM |
1414 | 2017-11-26 Simon Marchi <simon.marchi@polymtl.ca> |
1415 | ||
1416 | * python/python.c (do_start_initialization): Change progname | |
1417 | type to gdb::unique_xmalloc_ptr. Release the pointer when using | |
1418 | Python 2. | |
1419 | ||
6a997029 TT |
1420 | 2017-11-26 Tom Tromey <tom@tromey.com> |
1421 | ||
1422 | * common/format.h: Add include guards. | |
1423 | ||
41272101 TT |
1424 | 2017-11-26 Tom Tromey <tom@tromey.com> |
1425 | ||
1426 | * nat/linux-personality.h (class | |
1427 | maybe_disable_address_space_randomization): New class. | |
1428 | (maybe_disable_address_space_randomization): Don't declare | |
1429 | function. | |
1430 | * nat/linux-personality.c (restore_personality) | |
1431 | (make_disable_asr_cleanup): Remove. | |
1432 | (maybe_disable_address_space_randomization): Now a constructor. | |
1433 | (~maybe_disable_address_space_randomization): New destructor. | |
1434 | * linux-nat.c (linux_nat_create_inferior): Update. | |
1435 | ||
44287fd8 TT |
1436 | 2017-11-26 Tom Tromey <tom@tromey.com> |
1437 | ||
1438 | * gcore.c (write_gcore_file_1): Use gdb::unique_xmalloc_ptr. | |
1439 | ||
5ffd2cb7 UW |
1440 | 2017-11-26 Ulrich Weigand <uweigand@de.ibm.com> |
1441 | ||
1442 | * spu-tdep.c (spu_software_single_step): Access SPU_LSLR_REGNUM as | |
1443 | "cooked" register. Access only first four bytes of branch target | |
1444 | registers. | |
1445 | ||
0e5457dc SDJ |
1446 | 2017-11-25 Sergio Durigan Junior <sergiodj@redhat.com> |
1447 | ||
1448 | PR gdb/22491 | |
1449 | * stap-probe.c (relocate_address): New function. | |
1450 | (stap_probe::get_relocated_address): Use 'relocate_address'. | |
1451 | (stap_probe::set_semaphore): Use 'relocate_address' and pass | |
1452 | 'm_sem_addr'. | |
1453 | (stap_probe::clear_semaphore): Likewise. | |
1454 | ||
deeeba55 PA |
1455 | 2017-11-25 Pedro Alves <palves@redhat.com> |
1456 | ||
1457 | * dictionary.c: Include "safe-ctype.h". | |
1458 | * minsyms.c: Include "safe-ctype.h". | |
1459 | * minsyms.c (SYMBOL_HASH_NEXT): Use TOLOWER instead of tolower. | |
1460 | ||
a81aaca0 PA |
1461 | 2017-11-25 Pedro Alves <palves@redhat.com> |
1462 | ||
1463 | * completer.c (complete_line_internal_1): Skip spaces until the | |
1464 | start of the command. | |
1465 | ||
0662b6a7 PA |
1466 | 2017-11-24 Pedro Alves <palves@redhat.com> |
1467 | ||
1468 | * cp-support.c (cp_symbol_name_matches_1): New, factored out from | |
1469 | cp_fq_symbol_name_matches. Pass language_cplus to | |
1470 | strncmp_with_mode. | |
1471 | (cp_fq_symbol_name_matches): Call cp_symbol_name_matches_1. | |
1472 | (selftests::test_cp_symbol_name_cmp): New. | |
1473 | (_initialize_cp_support): Register "cp_symbol_name_matches" | |
1474 | selftests. | |
1475 | * language.c (default_symbol_name_matcher): Pass language_minimal | |
1476 | to strncmp_iw_with_mode. | |
1477 | * utils.c: Include "cp-support.h" and <algorithm>. | |
1478 | (valid_identifier_name_char, cp_skip_operator_token, skip_ws) | |
1479 | (cp_is_operator): New functions. | |
1480 | (strncmp_iw_with_mode): Use them. Add language parameter. Don't | |
1481 | skip whitespace in the symbol name when the lookup name doesn't | |
1482 | have spaces, and vice versa. | |
1483 | (strncmp_iw, strcmp_iw): Pass language to strncmp_iw_with_mode. | |
1484 | * utils.h (strncmp_iw_with_mode): Add language parameter. | |
1485 | ||
e547c119 JB |
1486 | 2017-11-24 Joel Brobecker <brobecker@adacore.com> |
1487 | ||
1488 | * ada-lang.c (ada_exception_message_1, ada_exception_message): | |
1489 | New functions. | |
1490 | (print_it_exception): If available, display the exception | |
1491 | message as well. | |
1492 | * NEWS: Document new feature. | |
1493 | ||
d7fcdff9 UW |
1494 | 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com> |
1495 | ||
1496 | * configure.nat <spu-linux>: Add fork-inferior.o to NATDEPFILES. | |
1497 | ||
30649c14 PR |
1498 | 2017-11-24 Philipp Rudo <prudo@linux.vnet.ibm.com> |
1499 | ||
1500 | * dtrace-probe.c (dtrace_probe::build_arg_exprs) | |
1501 | (dtrace_probe::is_enabled, dtrace_probe::enable) | |
1502 | (dtrace_probe::disable): Remove keyword 'struct' at for-range | |
1503 | variable | |
1504 | * probe.c (gen_ui_out_table_header_info) | |
1505 | (print_ui_out_not_applicables): Remove keyword 'struct' at | |
1506 | for-range variable | |
1507 | ||
7696f5c9 AH |
1508 | 2017-11-24 Alan Hayward <alan.hayward@arm.com> |
1509 | ||
1510 | * configure.tgt: Add arch/aarch64.o | |
1511 | ||
8172f16b SM |
1512 | 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca> |
1513 | ||
1514 | * common/common-utils.h: Include poison.h. | |
1515 | (xfree): Remove declaration, add definition with static_assert. | |
1516 | * common/common-utils.c (xfree): Remove. | |
1517 | * common/poison.h (IsMallocatable): Define. | |
1518 | (IsFreeable): Define. | |
1519 | (free): Delete for non-freeable types. | |
1520 | (xnew): New. | |
1521 | (XNEW): Undef and redefine. | |
1522 | (xcnew): New. | |
1523 | (XCNEW): Undef and redefine. | |
1524 | (xdelete): New. | |
1525 | (XDELETE): Undef and redefine. | |
1526 | (xnewvec): New. | |
1527 | (XNEWVEC): Undef and redefine. | |
1528 | (xcnewvec): New. | |
1529 | (XCNEWVEC): Undef and redefine. | |
1530 | (xresizevec): New. | |
1531 | (XRESIZEVEC): Undef and redefine. | |
1532 | (xdeletevec): New. | |
1533 | (XDELETEVEC): Undef and redefine. | |
1534 | (xnewvar): New. | |
1535 | (XNEWVAR): Undef and redefine. | |
1536 | (xcnewvar): New. | |
1537 | (XCNEWVAR): Undef and redefine. | |
1538 | (xresizevar): New. | |
1539 | (XRESIZEVAR): Undef and redefine. | |
1540 | ||
7aabaf9d SM |
1541 | 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca> |
1542 | ||
1543 | * gdbthread.h (private_thread_info): Define structure type, add | |
1544 | virtual pure destructor. | |
1545 | (thread_info) <priv>: Change type to unique_ptr. | |
1546 | <private_dtor>: Remove. | |
1547 | * thread.c (add_thread_with_info): Adjust to use of unique_ptr. | |
1548 | (private_thread_info::~private_thread_info): Provide default | |
1549 | implementation. | |
1550 | (thread_info::~thread_info): Don't call private_dtor nor | |
1551 | manually free priv. | |
1552 | * aix-thread.c (private_thread_info): Rename to ... | |
1553 | (aix_thread_info): ... this. | |
1554 | (get_aix_thread_info): New. | |
1555 | (sync_threadlists): Adjust. | |
1556 | (iter_tid): Adjust. | |
1557 | (aix_thread_resume): Adjust. | |
1558 | (aix_thread_fetch_registers): Adjust. | |
1559 | (aix_thread_store_registers): Adjust. | |
1560 | (aix_thread_extra_thread_info): Adjust. | |
1561 | * darwin-nat.h (private_thread_info): Rename to ... | |
1562 | (darwin_thread_info): ... this. | |
1563 | (get_darwin_thread_info): New. | |
1564 | * darwin-nat.c (darwin_init_thread_list): Adjust. | |
1565 | (darwin_check_new_threads): Adjust. | |
1566 | (thread_info_from_private_thread_info): Adjust. | |
1567 | * linux-thread-db.c (private_thread_info): Rename to ... | |
1568 | (thread_db_thread_info): ... this, initialize fields. | |
1569 | (get_thread_db_thread_info): New. | |
1570 | <dying>: Change type to bool. | |
1571 | (update_thread_state): Adjust to type rename. | |
1572 | (record_thread): Adjust to type rename an use of unique_ptr. | |
1573 | (thread_db_pid_to_str): Likewise. | |
1574 | (thread_db_extra_thread_info): Likewise. | |
1575 | (thread_db_thread_handle_to_thread_info): Likewise. | |
1576 | (thread_db_get_thread_local_address): Likewise. | |
1577 | * nto-tdep.h (private_thread_info): Rename to ... | |
1578 | (nto_thread_info): ... this, initialize fields. | |
1579 | (get_nto_thread_info): New. | |
1580 | <name>: Change type to std::string. | |
1581 | * nto-tdep.c (nto_extra_thread_info): Adjust to type rename and | |
1582 | use of unique_ptr. | |
1583 | * nto-procfs.c (update_thread_private_data_name): Adjust to | |
1584 | std::string change, allocate nto_private_thread_info with new. | |
1585 | (update_thread_private_data): Adjust to unique_ptr. | |
1586 | * remote.c (private_thread_info): Rename to ... | |
1587 | (remote_thread_info): ... this, initialize data members with | |
1588 | default values. | |
1589 | <extra, name>: Change type to std::string. | |
1590 | <thread_handle>: Change type to non-pointer. | |
1591 | (free_private_thread_info): Remove. | |
1592 | (get_private_info_thread): Rename to... | |
1593 | (get_remote_thread_info): ... this, change return type, adjust to | |
1594 | use of unique_ptr, use remote_thread_info constructor. | |
1595 | (remote_add_thread): Adjust. | |
1596 | (get_private_info_ptid): Rename to... | |
1597 | (get_remote_thread_info): ...this, change return type. | |
1598 | (remote_thread_name): Use get_remote_thread_info, adjust to | |
1599 | change to std::string. | |
1600 | (struct thread_item) <~thread_item>: Remove. | |
1601 | <thread_handle>: Make non pointer. | |
1602 | (start_thread): Adjust to thread_item::thread_handle type | |
1603 | change. | |
1604 | (remote_update_thread_list): Adjust to type name change, move | |
1605 | strings from temporary to long-lived object instead of | |
1606 | duplicating. | |
1607 | (remote_threads_extra_info): Use get_remote_thread_info. | |
1608 | (process_initial_stop_replies): Likewise. | |
1609 | (resume_clear_thread_private_info): Likewise. | |
1610 | (remote_resume): Adjust to type name change. | |
1611 | (remote_commit_resume): Use get_remote_thread_info. | |
1612 | (process_stop_reply): Adjust to type name change. | |
1613 | (remote_stopped_by_sw_breakpoint): Use get_remote_thread_info. | |
1614 | (remote_stopped_by_hw_breakpoint): Likewise. | |
1615 | (remote_stopped_by_watchpoint): Likewise. | |
1616 | (remote_stopped_data_address): Likewise. | |
1617 | (remote_core_of_thread): Likewise. | |
1618 | (remote_thread_handle_to_thread_info): Use | |
1619 | get_private_info_thread, adjust to thread_handle field type | |
1620 | change. | |
1621 | ||
21fe1c75 SM |
1622 | 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca> |
1623 | ||
1624 | * remote.c (struct thread_item): Add constructor, disable copy | |
1625 | construction and copy assignment, define default move | |
1626 | construction and move assignment. | |
1627 | <extra, name>: Change type to std::string. | |
1628 | <core>: Initialize. | |
1629 | <thread_handle>: Make non-pointer. | |
1630 | (thread_item_t): Remove typedef. | |
1631 | (DEF_VEC_O(thread_item_t)): Remove. | |
1632 | (threads_listing_context) <contains_thread>: New method. | |
1633 | <remove_thread>: New method. | |
1634 | <items>: Change type to std::vector. | |
1635 | (clear_threads_listing_context): Remove. | |
1636 | (threads_listing_context_remove): Remove. | |
1637 | (remote_newthread_step): Use thread_item constructor, adjust to | |
1638 | change to std::vector. | |
1639 | (start_thread): Use thread_item constructor, adjust to change to | |
1640 | std::vector. | |
1641 | (end_thread): Adjust to change to std::vector and std::string. | |
1642 | (remote_get_threads_with_qthreadinfo): Use thread_item | |
1643 | constructor, adjust to std::vector. | |
1644 | (remote_update_thread_list): Adjust to change to std::vector and | |
1645 | std::string, use threads_listing_context methods. | |
1646 | (remove_child_of_pending_fork): Adjust. | |
1647 | (remove_new_fork_children): Adjust. | |
1648 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add rsp-low-selftests.c. | |
1649 | (SUBDIR_UNITTESTS_OBS): Add rsp-low-selftests.o. | |
1650 | * unittests/rsp-low-selftests.c: New file. | |
1651 | * common/rsp-low.h: Include common/byte-vector.h. | |
1652 | (hex2bin): New overload. | |
1653 | * common/rsp-low.c (hex2bin): New overload. | |
1654 | ||
089354bb SM |
1655 | 2017-11-24 Simon Marchi <simon.marchi@ericsson.com> |
1656 | ||
1657 | * inferior.h (private_inferior): Define structure type, add | |
1658 | virtual pure destructor. | |
1659 | (inferior) <priv>: Change type to unique_ptr. | |
1660 | * inferior.c (private_inferior::~private_inferior): Provide | |
1661 | default implementation. | |
1662 | (inferior::~inferior): Don't free priv field. | |
1663 | (exit_inferior_1): Likewise. | |
1664 | * darwin-nat.h (struct darwin_exception_info): Initialize fields. | |
1665 | (darwin_exception_info): Remove typedef. | |
1666 | (DEF_VEC_O (darwin_thread_t)); Remove. | |
1667 | (private_inferior): Rename to ... | |
1668 | (darwin_private_inferior): ... this, extend private_inferior. | |
1669 | (get_darwin_inferior): New. | |
1670 | <threads>: Change type to std::vector of darwin_thread_t pointers. | |
1671 | * darwin-nat.c (darwin_check_new_threads): Adjust. | |
1672 | (find_inferior_task_it): Adjust. | |
1673 | (darwin_find_thread); Adjust. | |
1674 | (darwin_suspend_inferior): Adjust. | |
1675 | (darwin_resume_inferior): Adjust. | |
1676 | (darwin_find_new_inferior): Adjust. | |
1677 | (darwin_decode_notify_message): Adjust. | |
1678 | (darwin_send_reply): Adjust. | |
1679 | (darwin_resume_inferior_threads): Adjust. | |
1680 | (darwin_suspend_inferior_threads): Adjust. | |
1681 | (darwin_decode_message): Adjust. | |
1682 | (darwin_wait): Adjust. | |
1683 | (darwin_interrupt): Adjust. | |
1684 | (darwin_deallocate_threads): Adjust. | |
1685 | (darwin_mourn_inferior): Adjust, don't free private data. | |
1686 | (darwin_reply_to_all_pending_messages): Adjust. | |
1687 | (darwin_stop_inferior): Adjust. | |
1688 | (darwin_setup_exceptions): Adjust. | |
1689 | (darwin_kill_inferior): Adjust. | |
1690 | (darwin_setup_request_notification): Adjust. | |
1691 | (darwin_attach_pid): Adjust. | |
1692 | (darwin_init_thread_list): Adjust. | |
1693 | (darwin_setup_fake_stop_event): Adjust. | |
1694 | (darwin_attach): Adjust. | |
1695 | (darwin_detach): Adjust. | |
1696 | (darwin_xfer_partial): Adjust. | |
1697 | (set_enable_mach_exceptions): Adjust. | |
1698 | (darwin_pid_to_exec_file): Adjust. | |
1699 | (darwin_get_ada_task_ptid): Adjust. | |
1700 | * darwin-nat-info.c (get_task_from_args): Adjust. | |
1701 | (info_mach_ports_command): Adjust. | |
1702 | (info_mach_region_command): Adjust. | |
1703 | (info_mach_exceptions_command): Adjust. | |
1704 | * remote.c (private_inferior): Rename to ... | |
1705 | (remote_private_inferior): ... this, initialize fields. | |
1706 | (get_remote_inferior); New. | |
1707 | (remote_commit_resume): Use get_remote_inferior. | |
1708 | (check_pending_event_prevents_wildcard_vcont_callback): Likewise. | |
1709 | ||
d044bac8 PA |
1710 | 2017-11-24 Pedro Alves <palves@redhat.com> |
1711 | ||
1712 | * NEWS: Mention linespecs and explicit locations, and completion | |
1713 | improvements. | |
1714 | ||
e8d58cba YQ |
1715 | 2017-11-24 Yao Qi <yao.qi@linaro.org> |
1716 | ||
1717 | * regcache.c (regcache::dump): Remove footnote_register_size. | |
1718 | ||
a63f2d2f YQ |
1719 | 2017-11-24 Yao Qi <yao.qi@linaro.org> |
1720 | ||
1721 | * regcache.c (cooked_read_test): Add more test for readonly | |
1722 | regcache. | |
1723 | ||
1b30aaa5 YQ |
1724 | 2017-11-24 Yao Qi <yao.qi@linaro.org> |
1725 | ||
1726 | * gdbarch-selftests.c (test_target_has_registers): Move it to | |
1727 | target.c. | |
1728 | (test_target_has_stack): Likewise. | |
1729 | (test_target_has_memory): Likewise. | |
1730 | (test_target_prepare_to_store): Likewise. | |
1731 | (test_target_store_registers): Likewise. | |
1732 | (test_target_ops): Likewise. | |
1733 | * regcache.c: Include selftest-arch.h and gdbthread.h. | |
1734 | (target_ops_no_register): New class. | |
1735 | (test_target_fetch_registers): New. | |
1736 | (test_target_store_registers): New. | |
1737 | (test_target_xfer_partial): New. | |
1738 | (readwrite_regcache): New. | |
1739 | (cooked_read_test): New. | |
1740 | (_initialize_regcache): Register the test. | |
1741 | * target.c: (test_target_has_registers): Moved from | |
1742 | gdbarch-selftests.c. | |
1743 | (test_target_has_stack): Likewise. | |
1744 | (test_target_has_memory): Likewise. | |
1745 | (test_target_prepare_to_store): Likewise. | |
1746 | (test_target_store_registers): Likewise. | |
1747 | * target.h (test_target_ops): New class. | |
1748 | ||
6654d750 AH |
1749 | 2017-11-24 Alan Hayward <alan.hayward@arm.com> |
1750 | ||
1751 | * aarch64-tdep.c (_initialize_aarch64_tdep): Add target desc | |
1752 | selftest. | |
1753 | ||
49bdb7ee AH |
1754 | 2017-11-24 Alan Hayward <alan.hayward@arm.com> |
1755 | ||
1756 | * aarch64-tdep.c (_initialize_aarch64_tdep): Remove init. | |
1757 | * arch/aarch64.c (aarch64_create_target_description): Create | |
1758 | new target description. | |
1759 | * features/Makefile: Add new files. | |
1760 | * features/aarch64.c: Remove file. | |
1761 | * features/aarch64-core.c: New autogenerated file. | |
1762 | * features/aarch64-fpu.c: New autogenerated file. | |
1763 | * target-descriptions.c (maint_print_c_tdesc_cmd): Check for aarch64. | |
da434ccb AH |
1764 | |
1765 | 2017-11-24 Alan Hayward <alan.hayward@arm.com> | |
1766 | ||
1767 | * Makefile.in: Add new files. | |
1768 | * aarch64-linux-nat.c (aarch64_linux_read_description): Call | |
1769 | aarch64_read_description. | |
1770 | * aarch64-linux-tdep.c (aarch64_linux_core_read_description): | |
1771 | Call aarch64_read_description. | |
1772 | * aarch64-tdep.c (aarch64_read_description): New function. | |
1773 | (aarch64_gdbarch_init): Call aarch64_read_description. | |
1774 | * aarch64-tdep.h (aarch64_read_description): New function. | |
1775 | * arch/aarch64.c: New file. | |
1776 | * configure.tgt: Add new files. | |
1777 | ||
98ead37e YQ |
1778 | 2017-11-24 Yao Qi <yao.qi@linaro.org> |
1779 | ||
1780 | * mi/mi-main.c (register_changed_p): Update. | |
1781 | * value.c (value_contents_bits_eq): Change return type. | |
1782 | (value_contents_eq): Likewise. | |
1783 | * value.h: Update comments. | |
1784 | ||
62ad7ce7 YQ |
1785 | 2017-11-24 Yao Qi <yao.qi@linaro.org> |
1786 | ||
1787 | * mi/mi-main.c (mi_cmd_data_list_changed_registers): Remove | |
1788 | local 'changed'. Remove error. | |
1789 | (register_changed_p): Change return type to bool. | |
1790 | ||
506fe5f4 YQ |
1791 | 2017-11-24 Yao Qi <yao.qi@linaro.org> |
1792 | ||
1793 | * arch/tic6x.c: New file. | |
1794 | * arch/tic6x.h: New file. | |
1795 | * features/Makefile (FEATURE_XMLFILES): Add tic6x-c6xp.xml, | |
1796 | tic6x-core.xml and tic6x-gp.xml. | |
1797 | * features/tic6x-c6xp.c: Generated. | |
1798 | * features/tic6x-core.c: Generated. | |
1799 | * features/tic6x-gp.c: Generated. | |
1800 | * target-descriptions.c (maint_print_c_tdesc_cmd): Match | |
1801 | "tic6x-". | |
1802 | ||
00ea2e2a SM |
1803 | 2017-11-23 Simon Marchi <simon.marchi@ericsson.com> |
1804 | ||
1805 | * mi/mi-main.c (list_available_thread_groups): Change map value | |
1806 | type to std::vector. | |
1807 | ||
f45e2a77 SM |
1808 | 2017-11-23 Simon Marchi <simon.marchi@ericsson.com> |
1809 | ||
1810 | * osdata.c (osdata_end_column, get_osdata): Remove std::move. | |
1811 | ||
bd046f64 SM |
1812 | 2017-11-23 Simon Marchi <simon.marchi@ericsson.com> |
1813 | ||
1814 | * varobj.c (struct varobj_dynamic) <children_requested_>: Rename | |
1815 | back to... | |
1816 | <children_requested>: ... this. | |
1817 | (varobj_get_num_children, varobj_update): Adjust. | |
1818 | ||
4c37490d SM |
1819 | 2017-11-23 Simon Marchi <simon.marchi@ericsson.com> |
1820 | ||
1821 | * ada-varobj.c (ada_value_is_changeable_p): Change int to bool where applicable. | |
1822 | (ada_value_has_mutated): Likewise. | |
1823 | * c-varobj.c (varobj_is_anonymous_child): Likewise. | |
1824 | (c_is_path_expr_parent): Likewise. | |
1825 | * mi/mi-cmd-var.c (varobj_update_one): Likewise. | |
1826 | (mi_cmd_var_set_frozen): Likewise. | |
1827 | (mi_cmd_var_update_iter): Likewise. | |
1828 | (mi_cmd_var_update): Likewise. | |
1829 | * varobj.c (pretty_printing): Likewise. | |
1830 | (varobj_enable_pretty_printing): Likewise. | |
1831 | (struct varobj_root) <floating, is_valid>: Likewise. | |
1832 | (struct varobj_dynamic) <children_requested>: Likewise. | |
1833 | (delete_variable): Likewise. | |
1834 | (delete_variable_1): Likewise. | |
1835 | (install_variable): Likewise. | |
1836 | (update_type_if_necessary): Likewise. | |
1837 | (install_new_value): Likewise. | |
1838 | (value_of_root): Likewise. | |
1839 | (is_root_p): Likewise. | |
1840 | (varobj_create): Likewise. | |
1841 | (varobj_delete): Likewise. | |
1842 | (varobj_has_more): Likewise. | |
1843 | (varobj_set_frozen): Likewise. | |
1844 | (varobj_get_frozen): Likewise. | |
1845 | (install_dynamic_child): Likewise. | |
1846 | (dynamic_varobj_has_child_method): Likewise. | |
1847 | (update_dynamic_varobj_children): Likewise. | |
1848 | (varobj_get_num_children): Likewise. | |
1849 | (varobj_list_children): Likewise. | |
1850 | (is_path_expr_parent): Likewise. | |
1851 | (varobj_default_is_path_expr_parent): Likewise. | |
1852 | (varobj_is_dynamic_p): Likewise. | |
1853 | (varobj_set_value): Likewise. | |
1854 | (varobj_value_has_mutated): Likewise. | |
1855 | (varobj_update): Likewise. | |
1856 | (check_scope): Likewise. | |
1857 | (value_of_root_1): Likewise. | |
1858 | (varobj_value_get_print_value): Likewise. | |
1859 | (varobj_editable_p): Likewise. | |
1860 | (varobj_value_is_changeable_p): Likewise. | |
1861 | (varobj_floating_p): Likewise. | |
1862 | (varobj_default_value_is_changeable_p): Likewise. | |
1863 | (varobj_invalidate_iter): Likewise. | |
1864 | * varobj.h (struct varobj_update_result) <type_changed, | |
1865 | children_changed, changed, value_installed>: Likewise. | |
1866 | (struct varobj) <updated, frozen, not_fetched>: Likewise. | |
1867 | (struct lang_varobj_ops) <value_is_changeable_p, | |
1868 | value_has_mutated, is_path_expr_parent>: Likewise. | |
1869 | (varobj_delete): Likewise. | |
1870 | (varobj_set_frozen): Likewise. | |
1871 | (varobj_get_frozen): Likewise. | |
1872 | (varobj_set_value): Likewise. | |
1873 | (varobj_update): Likewise. | |
1874 | (varobj_editable_p): Likewise. | |
1875 | (varobj_floating_p): Likewise. | |
1876 | (varobj_has_more): Likewise. | |
1877 | (varobj_is_dynamic_p): Likewise. | |
1878 | (varobj_default_value_is_changeable_p): Likewise. | |
1879 | (varobj_value_is_changeable_p): Likewise. | |
1880 | (varobj_is_anonymous_child): Likewise. | |
1881 | (varobj_default_is_path_expr_parent): Likewise. | |
1882 | ||
9c23b42f SDJ |
1883 | 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com> |
1884 | ||
1885 | * dtrace-probe.c (struct probe_ops dtrace_probe_ops): Delete. | |
1886 | (struct dtrace_probe_arg) <dtrace_probe_arg>: New constructor. | |
1887 | <type_str>: Convert to 'std::string'. | |
1888 | <expr>: Convert to 'expression_up'. | |
1889 | (dtrace_probe_arg_s): Delete type and VEC. | |
1890 | (dtrace_probe_enabler_s): Likewise. | |
1891 | (struct dtrace_probe): Replace by... | |
1892 | (class dtrace_static_probe_ops): ...this and... | |
1893 | (class dtrace_probe): ...this. | |
1894 | (dtrace_probe_is_linespec): Rename to... | |
1895 | (dtrace_static_probe_ops::is_linespec): ...this. Adjust code | |
1896 | to reflect change. | |
1897 | (dtrace_process_dof_probe): Use 'std::vector' instead of VEC. | |
1898 | Adjust code. Create new instance of 'dtrace_probe'. | |
1899 | (dtrace_build_arg_exprs): Rename to... | |
1900 | (dtrace_probe::build_arg_exprs): ...this. Adjust code to | |
1901 | reflect change. | |
1902 | (dtrace_get_probes): Rename to... | |
1903 | (dtrace_static_probe_ops::get_probes): ...this. Adjust code | |
1904 | to reflect change. | |
1905 | (dtrace_get_arg): Rename to... | |
1906 | (dtrace_probe::get_arg_by_number): ...this. Adjust code to | |
1907 | reflect change. | |
1908 | (dtrace_probe_is_enabled): Rename to... | |
1909 | (dtrace_probe::is_enabled): ...this. Adjust code to reflect | |
1910 | change. | |
1911 | (dtrace_get_probe_address): Rename to... | |
1912 | (dtrace_probe::get_relocated_address): ...this. Adjust code | |
1913 | to reflect change. | |
1914 | (dtrace_get_probe_argument_count): Rename to... | |
1915 | (dtrace_probe::get_argument_count): ...this. Adjust code to | |
1916 | reflect change. | |
1917 | (dtrace_can_evaluate_probe_arguments): Rename to... | |
1918 | (dtrace_probe::can_evaluate_arguments): ...this. Adjust code | |
1919 | to reflect change. | |
1920 | (dtrace_evaluate_probe_argument): Rename to... | |
1921 | (dtrace_probe::evaluate_argument): ...this. Adjust code to | |
1922 | reflect change. | |
1923 | (dtrace_compile_to_ax): Rename to... | |
1924 | (dtrace_probe::compile_to_ax): ...this. Adjust code to | |
1925 | reflect change. | |
1926 | (dtrace_probe_destroy): Delete. | |
1927 | (dtrace_type_name): Rename to... | |
1928 | (dtrace_static_probe_ops::type_name): ...this. Adjust code to | |
1929 | reflect change. | |
1930 | (dtrace_probe::get_static_ops): New method. | |
1931 | (dtrace_gen_info_probes_table_header): Rename to... | |
1932 | (dtrace_static_probe_ops::gen_info_probes_table_header): | |
1933 | ...this. Adjust code to reflect change. | |
1934 | (dtrace_gen_info_probes_table_values): Rename to... | |
1935 | (dtrace_probe::gen_info_probes_table_values): ...this. Adjust | |
1936 | code to reflect change. | |
1937 | (dtrace_enable_probe): Rename to... | |
1938 | (dtrace_probe::enable_probe): ...this. Adjust code to reflect | |
1939 | change. | |
1940 | (dtrace_disable_probe): Rename to... | |
1941 | (dtrace_probe::disable_probe): ...this. Adjust code to reflect | |
1942 | change. | |
1943 | (struct probe_ops dtrace_probe_ops): Delete. | |
1944 | (info_probes_dtrace_command): Call 'info_probes_for_spops' | |
1945 | instead of 'info_probes_for_ops'. | |
1946 | (_initialize_dtrace_probe): Use 'all_static_probe_ops' instead | |
1947 | of 'all_probe_ops'. | |
1948 | ||
0e9ae10f SDJ |
1949 | 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com> |
1950 | Simon Marchi <simark@simark.ca> | |
1951 | ||
1952 | * stap-probe.c (struct probe_ops stap_probe_ops): Delete | |
1953 | variable. | |
1954 | (struct stap_probe_arg) <stap_probe_arg>: New constructor. | |
1955 | <aexpr>: Change type to 'expression_up'. | |
1956 | (stap_probe_arg_s): Delete type and VEC. | |
1957 | (struct stap_probe): Delete. Replace by... | |
1958 | (class stap_static_probe_ops): ...this and... | |
1959 | (class stap_probe): ...this. Rename variables to add 'm_' | |
1960 | prefix. Do not use 'union' for arguments anymore. | |
1961 | (stap_get_expected_argument_type): Receive probe name instead | |
1962 | of 'struct stap_probe'. Adjust code. | |
1963 | (stap_parse_probe_arguments): Rename to... | |
1964 | (stap_probe::parse_arguments): ...this. Adjust code to | |
1965 | reflect change. | |
1966 | (stap_get_probe_address): Rename to... | |
1967 | (stap_probe::get_relocated_address): ...this. Adjust code | |
1968 | to reflect change. | |
1969 | (stap_get_probe_argument_count): Rename to... | |
1970 | (stap_probe::get_argument_count): ...this. Adjust code | |
1971 | to reflect change. | |
1972 | (stap_get_arg): Rename to... | |
1973 | (stap_probe::get_arg_by_number'): ...this. Adjust code to | |
1974 | reflect change. | |
1975 | (can_evaluate_probe_arguments): Rename to... | |
1976 | (stap_probe::can_evaluate_arguments): ...this. Adjust code | |
1977 | to reflect change. | |
1978 | (stap_evaluate_probe_argument): Rename to... | |
1979 | (stap_probe::evaluate_argument): ...this. Adjust code | |
1980 | to reflect change. | |
1981 | (stap_compile_to_ax): Rename to... | |
1982 | (stap_probe::compile_to_ax): ...this. Adjust code to | |
1983 | reflect change. | |
1984 | (stap_probe_destroy): Delete. | |
1985 | (stap_modify_semaphore): Adjust comment. | |
1986 | (stap_set_semaphore): Rename to... | |
1987 | (stap_probe::set_semaphore): ...this. Adjust code to reflect | |
1988 | change. | |
1989 | (stap_clear_semaphore): Rename to... | |
1990 | (stap_probe::clear_semaphore): ...this. Adjust code to | |
1991 | reflect change. | |
1992 | (stap_probe::get_static_ops): New method. | |
1993 | (handle_stap_probe): Adjust code to create instance of | |
1994 | 'stap_probe'. | |
1995 | (stap_get_probes): Rename to... | |
1996 | (stap_static_probe_ops::get_probes): ...this. Adjust code to | |
1997 | reflect change. | |
1998 | (stap_probe_is_linespec): Rename to... | |
1999 | (stap_static_probe_ops::is_linespec): ...this. Adjust code to | |
2000 | reflect change. | |
2001 | (stap_type_name): Rename to... | |
2002 | (stap_static_probe_ops::type_name): ...this. Adjust code to | |
2003 | reflect change. | |
2004 | (stap_gen_info_probes_table_header): Rename to... | |
2005 | (stap_static_probe_ops::gen_info_probes_table_header): | |
2006 | ...this. Adjust code to reflect change. | |
2007 | (stap_gen_info_probes_table_values): Rename to... | |
2008 | (stap_probe::gen_info_probes_table_values): ...this. Adjust | |
2009 | code to reflect change. | |
2010 | (struct probe_ops stap_probe_ops): Delete. | |
2011 | (info_probes_stap_command): Use 'info_probes_for_spops' | |
2012 | instead of 'info_probes_for_ops'. | |
2013 | (_initialize_stap_probe): Use 'all_static_probe_ops' instead | |
2014 | of 'all_probe_ops'. | |
2015 | ||
935676c9 SDJ |
2016 | 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com> |
2017 | ||
2018 | * break-catch-throw.c (fetch_probe_arguments): Use | |
2019 | 'probe.prob' instead of 'probe.probe'. | |
2020 | * breakpoint.c (create_longjmp_master_breakpoint): Call | |
2021 | 'can_evaluate_arguments' and 'get_relocated_address' methods | |
2022 | from probe. | |
2023 | (create_exception_master_breakpoint): Likewise. | |
2024 | (add_location_to_breakpoint): Use 'sal->prob' instead of | |
2025 | 'sal->probe'. | |
2026 | (bkpt_probe_insert_location): Call 'set_semaphore' method from | |
2027 | probe. | |
2028 | (bkpt_probe_remove_location): Likewise, for 'clear_semaphore'. | |
2029 | * elfread.c (elf_get_probes): Use 'static_probe_ops' instead | |
2030 | of 'probe_ops'. | |
2031 | (probe_key_free): Call 'delete' on probe. | |
2032 | (check_exception_resume): Use 'probe.prob' instead of | |
2033 | 'probe.probe'. | |
2034 | * location.c (string_to_event_location_basic): Call | |
2035 | 'probe_linespec_to_static_ops'. | |
2036 | * probe.c (class any_static_probe_ops): New class. | |
2037 | (any_static_probe_ops any_static_probe_ops): New variable. | |
2038 | (parse_probes_in_pspace): Receive 'static_probe_ops' as | |
2039 | argument. Adjust code to reflect change. | |
2040 | (parse_probes): Use 'static_probe_ops' instead of | |
2041 | 'probe_ops'. Adjust code to reflect change. | |
2042 | (find_probes_in_objfile): Call methods to get name and | |
2043 | provider from probe. | |
2044 | (find_probe_by_pc): Use 'result.prob' instead of | |
2045 | 'result.probe'. Call 'get_relocated_address' method from | |
2046 | probe. | |
2047 | (collect_probes): Adjust comment and argument list to receive | |
2048 | 'static_probe_ops' instead of 'probe_ops'. Adjust code to | |
2049 | reflect change. Call necessary methods from probe. | |
2050 | (compare_probes): Call methods to get name and provider from | |
2051 | probes. | |
2052 | (gen_ui_out_table_header_info): Receive 'static_probe_ops' | |
2053 | instead of 'probe_ops'. Use 'std::vector' instead of VEC, | |
2054 | adjust code accordingly. | |
2055 | (print_ui_out_not_applicables): Likewise. | |
2056 | (info_probes_for_ops): Rename to... | |
2057 | (info_probes_for_spops): ...this. Receive 'static_probe_ops' | |
2058 | as argument instead of 'probe_ops'. Adjust code. Call | |
2059 | necessary methods from probe. | |
2060 | (info_probes_command): Use 'info_probes_for_spops'. | |
2061 | (enable_probes_command): Pass correct argument to | |
2062 | 'collect_probes'. Call methods from probe. | |
2063 | (disable_probes_command): Likewise. | |
2064 | (get_probe_address): Move to 'any_static_probe_ops::get_address'. | |
2065 | (get_probe_argument_count): Move to | |
2066 | 'any_static_probe_ops::get_argument_count'. | |
2067 | (can_evaluate_probe_arguments): Move to | |
2068 | 'any_static_probe_ops::can_evaluate_arguments'. | |
2069 | (evaluate_probe_argument): Move to | |
2070 | 'any_static_probe_ops::evaluate_argument'. | |
2071 | (probe_safe_evaluate_at_pc): Use 'probe.prob' instead of | |
2072 | 'probe.probe'. | |
2073 | (probe_linespec_to_ops): Rename to... | |
2074 | (probe_linespec_to_static_ops): ...this. Adjust code. | |
2075 | (probe_any_is_linespec): Rename to... | |
2076 | (any_static_probe_ops::is_linespec): ...this. | |
2077 | (probe_any_get_probes): Rename to... | |
2078 | (any_static_probe_ops::get_probes): ...this. | |
2079 | (any_static_probe_ops::type_name): New method. | |
2080 | (any_static_probe_ops::gen_info_probes_table_header): New | |
2081 | method. | |
2082 | (compute_probe_arg): Use 'pc_probe.prob' instead of | |
2083 | 'pc_probe.probe'. Call methods from probe. | |
2084 | (compile_probe_arg): Likewise. | |
2085 | (std::vector<const probe_ops *> all_probe_ops): Delete. | |
2086 | (std::vector<const static_probe_ops *> all_static_probe_ops): | |
2087 | New variable. | |
2088 | (_initialize_probe): Use 'all_static_probe_ops' instead of | |
2089 | 'all_probe_ops'. | |
2090 | * probe.h (struct info_probe_column) <field_name>: Delete | |
2091 | extraneous newline | |
2092 | (info_probe_column_s): Delete type and VEC. | |
2093 | (struct probe_ops): Delete. Replace with... | |
2094 | (class static_probe_ops): ...this and... | |
2095 | (clas probe): ...this. | |
2096 | (struct bound_probe) <bound_probe>: Delete extraneous | |
2097 | newline. Adjust constructor to receive 'probe' instead of | |
2098 | 'struct probe'. | |
2099 | <probe>: Rename to... | |
2100 | <prob>: ...this. Delete extraneous newline. | |
2101 | <objfile>: Delete extraneous newline. | |
2102 | (register_probe_ops): Delete unused prototype. | |
2103 | (info_probes_for_ops): Rename to... | |
2104 | (info_probes_for_spops): ...this. Adjust comment. | |
2105 | (get_probe_address): Move to 'probe::get_address'. | |
2106 | (get_probe_argument_count): Move to | |
2107 | 'probe::get_argument_count'. | |
2108 | (can_evaluate_probe_arguments): Move to | |
2109 | 'probe::can_evaluate_arguments'. | |
2110 | (evaluate_probe_argument): Move to 'probe::evaluate_argument'. | |
2111 | * solib-svr4.c (struct svr4_info): Adjust comment. | |
2112 | (struct probe_and_action) <probe>: Rename to... | |
2113 | <prob>: ...this. | |
2114 | (register_solib_event_probe): Receive 'probe' instead of | |
2115 | 'struct probe' as argument. Use 'prob' instead of 'probe' | |
2116 | when applicable. | |
2117 | (solib_event_probe_action): Call 'get_argument_count' method | |
2118 | from probe. Adjust comment. | |
2119 | (svr4_handle_solib_event): Adjust comment. Call | |
2120 | 'evaluate_argument' method from probe. | |
2121 | (svr4_create_probe_breakpoints): Call 'get_relocated_address' | |
2122 | from probe. | |
2123 | (svr4_create_solib_event_breakpoints): Use 'probe' instead of | |
2124 | 'struct probe'. Call 'can_evaluate_arguments' from probe. | |
2125 | * symfile.h: Forward declare 'class probe' instead of 'struct | |
2126 | probe'. | |
2127 | * symtab.h: Likewise. | |
2128 | (struct symtab_and_line) <probe>: Rename to... | |
2129 | <prob>: ...this. | |
2130 | * tracepoint.c (start_tracing): Use 'prob' when applicable. | |
2131 | Call probe methods. | |
2132 | (stop_tracing): Likewise. | |
2133 | ||
8f6cb6c3 JB |
2134 | 2017-11-22 Joel Brobecker <brobecker@adacore.com> |
2135 | ||
2136 | * ravenscar-thread.c (ravenscar_inferior_created): Remove | |
2137 | trailing newline at end of string in call to warning. | |
2138 | ||
479f8de1 SM |
2139 | 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca> |
2140 | ||
2141 | * osdata.h: Include vector isntead of vec.h. | |
2142 | (osdata_column_s): Remove typedef. | |
2143 | (struct osdata_column): Add constructor. | |
2144 | <name, value>: Change type to std::string. | |
2145 | (DEF_VEC_O (osdata_column_s)): Remove. | |
2146 | (osdata_item_s): Remove typedef. | |
2147 | (struct osdata_item) <columns>: Change type to std::vector. | |
2148 | (DEF_VEC_O (osdata_item_s)): Remove. | |
2149 | (struct osdata): Add constructor. | |
2150 | <type>: Change type to std::string. | |
2151 | <items>: Change type to std::vector. | |
2152 | (osdata_p): Remove typedef. | |
2153 | (DEF_VEC_P (osdata_p)): Remove. | |
2154 | (osdata_parse): Return a unique_ptr. | |
2155 | (osdata_free): Remove. | |
2156 | (make_cleanup_osdata_free): Remove. | |
2157 | (get_osdata): Return a unique_ptr. | |
2158 | (get_osdata_column): Return pointer to std::string, take a | |
2159 | reference to osdata_item as parameter. | |
2160 | * osdata.c (struct osdata_parsing_data) <osdata>: Change type to | |
2161 | unique_ptr. | |
2162 | <property_name>: Change type to std::string. | |
2163 | (osdata_start_osdata): Allocate osdata with new and adjust. | |
2164 | (osdata_start_item): Adjust. | |
2165 | (osdata_start_column): Adjust. | |
2166 | (osdata_end_column): Adjust. | |
2167 | (clear_parsing_data): Remove. | |
2168 | (osdata_parse): Return a unique_ptr and adjust, remove cleanup. | |
2169 | (osdata_item_clear): Remove. | |
2170 | (get_osdata): return a unique_ptr and adjust. | |
2171 | (get_osdata_column): Return a pointer to std::string and adjust. | |
2172 | (info_osdata): Adjust. | |
2173 | * mi/mi-main.c: Include <map>. | |
2174 | (free_vector_of_osdata_items): Remove. | |
2175 | (list_available_thread_groups): Adjust, use std::map instead of | |
2176 | splay tree. | |
2177 | ||
41bd68f5 SM |
2178 | 2017-11-22 Simon Marchi <simon.marchi@ericsson.com> |
2179 | ||
2180 | * stack.c (iterate_over_block_locals): Add LOC_OPTIMIZED_OUT | |
2181 | case in switch. | |
2182 | ||
7e2fd2f4 SM |
2183 | 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca> |
2184 | ||
2185 | * varobj.h (DEF_VEC_P (varobj_p)): Remove. | |
2186 | ||
0604393c SM |
2187 | 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca> |
2188 | ||
2189 | * varobj.h (struct varobj_update_result): Add constructor, add | |
2190 | move constructor, disable copy and assign, initialize fields. | |
2191 | <newobj>: Change type to std::vector. | |
2192 | (varobj_update): Return std::vector. | |
2193 | * varobj.c (install_dynamic_child): Change VEC parameters to | |
2194 | std::vector and adjust. | |
2195 | (update_dynamic_varobj_children): Likewise. | |
2196 | (varobj_update): Return std::vector and adjust. | |
2197 | * mi/mi-cmd-var.c (varobj_update_one): Adjust to vector changes. | |
2198 | ||
ddf0ea08 SM |
2199 | 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca> |
2200 | ||
2201 | * varobj.h (struct varobj) <parent>: Remove const. | |
2202 | <children>: Change type to std::vector. | |
2203 | (varobj_list_children): Return std::vector const reference. | |
2204 | (varobj_restrict_range): Change parameter type to std::vector | |
2205 | const reference. | |
2206 | * varobj.c (varobj_has_more): Adjust. | |
2207 | (varobj_restrict_range): Change parameter type to std::vector | |
2208 | const reference and adjust. | |
2209 | (install_dynamic_child): Adjust. | |
2210 | (update_dynamic_varobj_children): Adjust. | |
2211 | (varobj_list_children): Return std::vector const reference and | |
2212 | adjust. | |
2213 | (varobj_add_child): Adjust. | |
2214 | (update_type_if_necessary): Adjust. | |
2215 | (varobj_update): Adjust. | |
2216 | (delete_variable_1): Adjust. | |
2217 | * ada-varobj.c (ada_value_has_mutated): Adjust. | |
2218 | * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust. | |
2219 | ||
9e5b9d2b SM |
2220 | 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca> |
2221 | ||
2222 | * varobj.h (struct varobj): Add constructor and destructor, | |
2223 | initialize fields. | |
2224 | * varobj.c (struct varobj_root): Initialize fields. | |
2225 | (struct varobj_dynamic): Initialize fields. | |
2226 | (varobj_create): Use unique_ptr instead of cleanup. Create | |
2227 | varobj with new instead of new_root_variable. | |
2228 | (delete_variable_1): Free variable with delete instead of | |
2229 | free_variable. | |
2230 | (create_child_with_value): Create variable with new instead of | |
2231 | new_variable. | |
2232 | (varobj::varobj): New. | |
2233 | (varobj::~varobj): New (body mostly coming from free_variable). | |
2234 | (new_variable): Remove. | |
2235 | (free_variable): Remove. | |
2236 | (do_free_variable_cleanup): Remove. | |
2237 | (make_cleanup_free_variable): Remove. | |
2238 | ||
fc35dab1 UW |
2239 | 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com> |
2240 | ||
2241 | * core-regset.c: Remove file. | |
2242 | * Makefile.in (ALLDEPFILES): Remove core-regset.c. | |
2243 | ||
2400729e UW |
2244 | 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com> |
2245 | ||
2246 | * NEWS: Document use of GNU MPFR. | |
2247 | * README: Likewise. | |
2248 | ||
2249 | * Makefile.in (LIBMPFR): Add define. | |
2250 | (CLIBS): Add $(LIBMPFR). | |
2251 | * configure.ac: Add --with-mpfr configure option. | |
2252 | * configure: Regenerate. | |
2253 | * config.in: Regenerate. | |
2254 | ||
2255 | * target-float.c [HAVE_LIBMPFR]: Include <mpfr.h>. | |
2256 | (class mpfr_float_ops): New type. | |
2257 | (mpfr_float_ops::from_target): Two new overloaded functions. | |
2258 | (mpfr_float_ops::to_target): Likewise. | |
2259 | (mpfr_float_ops::to_string): New function. | |
2260 | (mpfr_float_ops::from_string): Likewise. | |
2261 | (mpfr_float_ops::to_longest): Likewise. | |
2262 | (mpfr_float_ops::from_longest): Likewise. | |
2263 | (mpfr_float_ops::from_ulongest): Likewise. | |
2264 | (mpfr_float_ops::to_host_double): Likewise. | |
2265 | (mpfr_float_ops::from_host_double): Likewise. | |
2266 | (mpfr_float_ops::convert): Likewise. | |
2267 | (mpfr_float_ops::binop): Likewise. | |
2268 | (mpfr_float_ops::compare): Likewise. | |
2269 | (get_target_float_ops): Use mpfr_float_ops if available. | |
2270 | ||
7a26362d UW |
2271 | 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com> |
2272 | ||
2273 | * target-float.c: Do not include <math.h>. | |
2274 | Include <cmath> and <limits>. | |
2275 | (DOUBLEST): Do not define. | |
2276 | (class target_float_ops): New type. | |
2277 | (class host_float_ops): New templated type. | |
2278 | (class decimal_float_ops): New type. | |
2279 | ||
2280 | (floatformat_to_doublest): Rename to ... | |
2281 | (host_float_ops<T>::from_target): ... this. Use template type T | |
2282 | instead of DOUBLEST. Use C++ math routines. Update recursive calls. | |
2283 | (host_float_ops<T>::from_target): New overload using a type argument. | |
2284 | (floatformat_from_doublest): Rename to ... | |
2285 | (host_float_ops<T>::to_target): ... this. Use template type T | |
2286 | instead of DOUBLEST. Use C++ math routines. Update recursive calls. | |
2287 | (host_float_ops<T>::to_target): New overload using a type argument. | |
2288 | (floatformat_printf_format): New function. | |
2289 | (struct printf_length_modifier): New templated type. | |
2290 | (floatformat_to_string): Rename to ... | |
2291 | (host_float_ops<T>::to_string): ... this. Use type instead of | |
2292 | floatformat argument. Use floatformat_printf_format and | |
2293 | printf_length_modifier. Remove special handling of invalid numbers, | |
2294 | infinities and NaN (moved to target_float_to_string). | |
2295 | (struct scanf_length_modifier): New templated type. | |
2296 | (floatformat_from_string): Rename to ... | |
2297 | (host_float_ops<T>::from_string): ... this. Use type instead of | |
2298 | floatformat argument. Use scanf_length_modifier. | |
2299 | (floatformat_to_longest): Rename to ... | |
2300 | (host_float_ops<T>::to_longest): ... this. Use type instead of | |
2301 | floatformat argument. Handle out-of-range values deterministically. | |
2302 | (floatformat_from_longest): Rename to ... | |
2303 | (host_float_ops<T>::from_longest): ... this. Use type instead of | |
2304 | floatformat argument. | |
2305 | (floatformat_from_ulongest): Rename to ... | |
2306 | (host_float_ops<T>::from_ulongest): ... this. Use type instead of | |
2307 | floatformat argument. | |
2308 | (floatformat_to_host_double): Rename to ... | |
2309 | (host_float_ops<T>::to_host_double): ... this. Use type instead of | |
2310 | floatformat argument. | |
2311 | (floatformat_from_host_double): Rename to ... | |
2312 | (host_float_ops<T>::from_host_double): ... this. Use type instead of | |
2313 | floatformat argument. | |
2314 | (floatformat_convert): Rename to ... | |
2315 | (host_float_ops<T>::convert): ... this. Use type instead of | |
2316 | floatformat arguments. Remove handling of no-op conversions. | |
2317 | (floatformat_binop): Rename to ... | |
2318 | (host_float_ops<T>::binop): ... this. Use type instead of | |
2319 | floatformat arguments. | |
2320 | (floatformat_compare): Rename to ... | |
2321 | (host_float_ops<T>::compare): ... this. Use type instead of | |
2322 | floatformat arguments. | |
2323 | ||
2324 | (match_endianness): Use type instead of length/byte_order arguments. | |
2325 | (set_decnumber_context): Likewise. | |
2326 | (decimal_from_number): Likewise. Update calls. | |
2327 | (decimal_to_number): Likewise. | |
2328 | (decimal_is_zero): Likewise. Update calls. Move to earlier in file. | |
2329 | (decimal_float_ops::to_host_double): New dummy function. | |
2330 | (decimal_float_ops::from_host_double): Likewise. | |
2331 | (decimal_to_string): Rename to ... | |
2332 | (decimal_float_ops::to_string): ... this. Use type instead of | |
2333 | length/byte_order arguments. Update calls. | |
2334 | (decimal_from_string): Rename to ... | |
2335 | (decimal_float_ops::from_string): ... this. Use type instead of | |
2336 | length/byte_order arguments. Update calls. | |
2337 | (decimal_from_longest): Rename to ... | |
2338 | (decimal_float_ops::from_longest): ... this. Use type instead of | |
2339 | length/byte_order arguments. Update calls. | |
2340 | (decimal_from_ulongest): Rename to ... | |
2341 | (decimal_float_ops::from_ulongest): ... this. Use type instead of | |
2342 | length/byte_order arguments. Update calls. | |
2343 | (decimal_to_longest): Rename to ... | |
2344 | (decimal_float_ops::to_longest): ... this. Use type instead of | |
2345 | length/byte_order arguments. Update calls. | |
2346 | (decimal_binop): Rename to ... | |
2347 | (decimal_float_ops::binop): ... this. Use type instead of | |
2348 | length/byte_order arguments. Update calls. | |
2349 | (decimal_compare): Rename to ... | |
2350 | (decimal_float_ops::compare): ... this. Use type instead of | |
2351 | length/byte_order arguments. Update calls. | |
2352 | (decimal_convert): Rename to ... | |
2353 | (decimal_float_ops::convert): ... this. Use type instead of | |
2354 | length/byte_order arguments. Update calls. | |
2355 | ||
2356 | (target_float_same_category_p): New function. | |
2357 | (target_float_same_format_p): Likewise. | |
2358 | (target_float_format_length): Likewise. | |
2359 | (enum target_float_ops_kind): New type. | |
2360 | (get_target_float_ops_kind): New function. | |
2361 | (get_target_float_ops): Three new overloaded functions. | |
2362 | ||
2363 | (target_float_is_zero): Update call. | |
2364 | (target_float_to_string): Add special handling of invalid numbers, | |
2365 | infinities and NaN (moved from floatformat_to_string). Use | |
2366 | target_float_ops callback. | |
2367 | (target_float_from_string): Use target_float_ops callback. | |
2368 | (target_float_to_longest): Likewise. | |
2369 | (target_float_from_longest): Likewise. | |
2370 | (target_float_from_ulongest): Likewise. | |
2371 | (target_float_to_host_double): Likewise. | |
2372 | (target_float_from_host_double): Likewise. | |
2373 | (target_float_convert): Add special case for no-op conversions. | |
2374 | Use target_float_ops callback. | |
2375 | (target_float_binop): Use target_float_ops callback. | |
2376 | (target_float_compare): Likewise. | |
2377 | ||
a9f26f60 YQ |
2378 | 2017-11-22 Yao Qi <yao.qi@linaro.org> |
2379 | ||
2380 | * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use strcpy. | |
2381 | ||
29f9a567 YQ |
2382 | 2017-11-22 Yao Qi <yao.qi@linaro.org> |
2383 | ||
2384 | * cli/cli-decode.c (help_list): Use memcpy instead of strncpy. | |
2385 | * cp-namespace.c (cp_lookup_transparent_type_loop): Likewise. | |
2386 | ||
3b1b69bf JG |
2387 | 2017-11-21 Jerome Guitton <guitton@adacore.com> |
2388 | ||
2389 | * ravenscar-thread.c (ravenscar_wait): Update inferior ptid | |
2390 | with event ptid from the lower layer before doing the | |
2391 | ravenscar-specific update. | |
2392 | ||
54aa6c67 JB |
2393 | 2017-11-21 Joel Brobecker <brobecker@adacore.com> |
2394 | ||
2395 | * ravenscar-thread.c (is_ravenscar_task): Also verify that | |
2396 | the ptid's TID is nonzero. | |
2397 | ||
cf3fbed4 JB |
2398 | 2017-11-21 Joel Brobecker <brobecker@adacore.com> |
2399 | ||
2400 | * ada-lang.h (ada_get_tcb_types_info): Add declaration. | |
2401 | * ada-tasks.c (ada_get_tcb_types_info): Renames get_tcb_types_info. | |
2402 | Make non-static. Change return type to char *. Adjust code | |
2403 | accordingly. Rewrite the function's documentation. | |
2404 | (read_atcb): Adjust call to get_tcb_types_info accordingly. | |
2405 | * ravenscar-thread.c (ravenscar_inferior_created): Check that | |
2406 | we have enough debugging information in the runtime to support | |
2407 | Ada task debugging before we enable the ravenscar-thread layer. | |
2408 | ||
9edcc12f JB |
2409 | 2017-11-21 Joel Brobecker <brobecker@adacore.com> |
2410 | ||
2411 | * ada-lang.h (ada_get_task_info_from_ptid): Add declaration. | |
2412 | * ada-tasks.c (ada_get_task_info_from_ptid): New function. | |
2413 | * ravenscar-thread.c: Add into comment. | |
2414 | (base_magic_null_ptid): Delete. | |
2415 | (base_ptid): Change documentation. | |
2416 | (ravenscar_active_task): Renames ravenscar_running_thread. | |
2417 | All callers updated throughout. | |
2418 | (is_ravenscar_task, ravenscar_get_thread_base_cpu): New function. | |
2419 | (ravenscar_task_is_currently_active): Likewise. | |
2420 | (get_base_thread_from_ravenscar_task): Ditto. | |
2421 | (ravenscar_update_inferior_ptid): Adjust to handle multiple CPUs. | |
2422 | (ravenscar_runtime_initialized): Likewise. | |
2423 | (get_running_thread_id): Add new parameter "cpu". Adjust | |
2424 | implementation to handle this new parameter. | |
2425 | (ravenscar_fetch_registers): Small adjustment to use | |
2426 | is_ravenscar_task and ravenscar_task_is_currently_active in | |
2427 | order to decide whether to use the target beneath or this | |
2428 | module's arch_ops. | |
2429 | (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise. | |
2430 | (ravenscar_stopped_by_sw_breakpoint): Use | |
2431 | get_base_thread_from_ravenscar_task to get the underlying | |
2432 | thread, rather than using base_ptid. | |
2433 | (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint) | |
2434 | (ravenscar_stopped_data_address, ravenscar_core_of_thread): | |
2435 | Likewise. | |
2436 | (ravenscar_inferior_created): Do not set base_magic_null_ptid. | |
2437 | ||
65d40437 JB |
2438 | 2017-11-21 Joel Brobecker <brobecker@adacore.com> |
2439 | ||
2440 | * ada-lang.h (struct ada_task_info) <base_cpu>: New field. | |
2441 | * ada-lang.c (struct atcb_fieldno) <base_cpu>: New field. | |
2442 | (get_tcb_types_info): Set fieldnos.base_cpu. | |
2443 | (read_atcb): Set task_info->base_cpu. | |
2444 | (info_task): Print "Base CPU" info if set by runtime. | |
2445 | ||
e02544b2 JB |
2446 | 2017-11-21 Joel Brobecker <brobecker@adacore.com> |
2447 | ||
2448 | * ravenscar-thread.c (ravenscar_stopped_by_sw_breakpoint) | |
2449 | (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint) | |
2450 | (ravenscar_stopped_data_address, ravenscar_core_of_thread): | |
2451 | New functions. | |
2452 | (init_ravenscar_thread_ops): Set the to_stopped_by_sw_breakpoint, | |
2453 | to_stopped_by_hw_breakpoint, to_stopped_by_watchpoint, | |
2454 | to_stopped_data_address and to_core_of_thread fields of | |
2455 | ravenscar_ops. | |
2456 | ||
ed0f4273 UW |
2457 | 2017-11-21 Ulrich Weigand <uweigand@de.ibm.com> |
2458 | ||
2459 | * ppc-tdep.h (enum powerpc_long_double_abi): New data type. | |
2460 | (struct gdbarch_tdep): New member long_double_abi. | |
2461 | * rs6000-tdep.c (rs6000_gdbarch_init): Initialize long_double_abi | |
2462 | member of tdep struct based on Tag_GNU_Power_ABI_FP attribute. | |
2463 | * ppc-linux-tdep.c (ppc_linux_init_abi): Install long double data | |
2464 | format depending on long_double_abi tdep member. | |
2465 | (ppc_floatformat_for_type): Handle __ibm128 type. | |
2466 | ||
0fc76421 SM |
2467 | 2017-11-20 Simon Marchi <simon.marchi@polymtl.ca> |
2468 | ||
2469 | * darwin-nat.c (set_enable_mach_exceptions): Constify parameter. | |
2470 | ||
e6b2f5ef PA |
2471 | 2017-11-21 Pedro Alves <palves@redhat.com> |
2472 | ||
2473 | * dwarf2read.c (mapped_index::find_name_components_bounds) | |
2474 | <completion mode, upper bound>: Use std::lower_bound instead of | |
2475 | std::upper_bound. | |
2476 | (test_mapped_index_find_name_component_bounds): Remove incorrect | |
2477 | "t1_fund" from expected symbols. | |
2478 | ||
5c58de74 PA |
2479 | 2017-11-21 Pedro Alves <palves@redhat.com> |
2480 | ||
2481 | * dwarf2read.c (mapped_index::name_components_casing): New field. | |
2482 | (mapped_index) <build_name_components, | |
2483 | find_name_components_bounds): Declare new methods. | |
2484 | (mapped_index::find_name_components_bounds) | |
2485 | (mapped_index::build_name_components): New methods, factored out | |
2486 | from dw2_expand_symtabs_matching_symbol. | |
2487 | (check_find_bounds_finds) | |
2488 | (test_mapped_index_find_name_component_bounds): New. | |
2489 | (run_test): Rename to ... | |
2490 | (test_dw2_expand_symtabs_matching_symbol): ... this. | |
2491 | (run_test): Reimplement. | |
2492 | ||
e1ef7d7a PA |
2493 | 2017-11-21 Pedro Alves <palves@redhat.com> |
2494 | ||
2495 | * cp-name-parser.y (cp_ident_is_alpha, cp_ident_is_alnum): New. | |
2496 | (symbol_end): Use cp_ident_is_alnum. | |
2497 | (yylex): Use cp_ident_is_alpha and cp_ident_is_alnum. | |
2498 | * dwarf2read.c (make_sort_after_prefix_name): New function. | |
2499 | (dw2_expand_symtabs_matching_symbol): Use it. | |
2500 | (test_symbols): Add more symbols. | |
2501 | (run_test): Add tests. | |
2502 | ||
cf724bc9 TT |
2503 | 2017-11-17 Tom Tromey <tom@tromey.com> |
2504 | ||
2505 | * symtab.h (enum symbol_subclass_kind): New. | |
2506 | (struct symbol) <is_cplus_template_function, is_rust_vtable>: | |
2507 | Remove. | |
2508 | <subclass>: New member. | |
2509 | (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): Update. | |
2510 | * rust-lang.c (rust_get_trait_object_pointer): Update. | |
2511 | * dwarf2read.c (read_func_scope): Update. | |
2512 | (read_variable): Update. | |
2513 | ||
68e745e3 TT |
2514 | 2017-11-17 Tom Tromey <tom@tromey.com> |
2515 | ||
2516 | * dwarf2read.c (read_func_scope): Update. | |
2517 | * symtab.h (struct template_symbol): Derive from symbol. | |
2518 | <base>: Remove. | |
2519 | ||
71a3c369 TT |
2520 | 2017-11-17 Tom Tromey <tom@tromey.com> |
2521 | ||
2522 | * symtab.h (struct symbol) <is_rust_vtable>: New member. | |
2523 | (struct rust_vtable_symbol): New. | |
2524 | (find_symbol_at_address): Declare. | |
2525 | * symtab.c (find_symbol_at_address): New function. | |
2526 | * symfile.h (struct quick_symbol_functions) | |
2527 | <find_compunit_symtab_by_address>: New member. | |
2528 | * symfile-debug.c (debug_qf_find_compunit_symtab_by_address): New | |
2529 | function. | |
2530 | (debug_sym_quick_functions): Link to | |
2531 | debug_qf_find_compunit_symtab_by_address. | |
2532 | * rust-lang.c (rust_get_trait_object_pointer): New function. | |
2533 | (rust_evaluate_subexp) <case UNOP_IND>: New case. Call | |
2534 | rust_get_trait_object_pointer. | |
2535 | * psymtab.c (psym_relocate): Clear psymbol_map. | |
2536 | (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address): New | |
2537 | functions. | |
2538 | (psym_functions): Link to psym_find_compunit_symtab_by_address. | |
2539 | * objfiles.h (struct objfile) <psymbol_map>: New member. | |
2540 | * dwarf2read.c (dwarf2_gdb_index_functions): Update. | |
2541 | (process_die) <DW_TAG_variable>: New case. Call read_variable. | |
2542 | (rust_containing_type, read_variable): New functions. | |
2543 | ||
7468702d SM |
2544 | 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca> |
2545 | ||
2546 | * common/gdb_vecs.h (DEF_VEC_I (int)): Remove. | |
2547 | ||
37269bc9 SM |
2548 | 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca> |
2549 | ||
2550 | * common/filestuff.c: Include <algorithm>. | |
2551 | (open_fds): Change type to std::vector<int>. | |
2552 | (do_mark_open_fd): Adjust. | |
2553 | (unmark_fd_no_cloexec): Adjust. | |
2554 | (do_close): Adjust. | |
2555 | ||
5c632425 SM |
2556 | 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca> |
2557 | ||
2558 | * breakpoint.c (output_thread_groups): Take an std::vector. | |
2559 | (print_one_breakpoint_location): Adjust. | |
2560 | ||
ced9779b JB |
2561 | 2017-11-17 Joel Brobecker <brobecker@adacore.com> |
2562 | ||
2563 | * ada-lang.c (resolve_subexp): Add handling of OP_VAR_MSYM_VALUE. | |
2564 | (ada_evaluate_subexp_for_cast): New function. | |
2565 | (ada_evaluate_subexp) <UNOP_CAST>: Replace code by call to | |
2566 | ada_evaluate_subexp_for_cast. | |
2567 | (ada_evaluate_subexp) <nosideret>: Replace code by call to | |
2568 | eval_skip_value. | |
2569 | * eval.c (evaluate_var_value): Make non-static. | |
2570 | (evaluate_var_msym_value, eval_skip_value): Likewise. | |
2571 | * value.h (evaluate_var_value, evaluate_var_msym_value) | |
2572 | (eval_skip_value): Declare. | |
2573 | ||
b7e22850 JB |
2574 | 2017-11-16 Joel Brobecker <brobecker@adacore.com> |
2575 | ||
2576 | * ada-lang.c (ada_value_cast): Remove parameter "noside". | |
2577 | Update all callers. | |
2578 | ||
9ccabccd PA |
2579 | 2017-11-16 Pedro Alves <palves@redhat.com> |
2580 | ||
2581 | * python/py-unwind.c (pyuw_sniffer): Translate | |
2582 | PyExc_KeyboardInterrupt to a GDB Quit exception. | |
2583 | ||
d930703d PA |
2584 | 2017-11-16 Pedro Alves <palves@redhat.com> |
2585 | ||
2586 | * infrun.c (resume_cleanups): Delete. | |
2587 | (resume): No longer install a resume_cleanups cleanup nor call | |
2588 | QUIT. | |
2589 | (proceed): Pass the terminal to the inferior. | |
2590 | (keep_going_pass_signal): No longer install a resume_cleanups | |
2591 | cleanup. | |
2592 | ||
38dc2859 PA |
2593 | 2017-11-16 Pedro Alves <palves@redhat.com> |
2594 | ||
2595 | * inf-loop.c (inferior_event_handler): Don't swallow the exception | |
2596 | if the prompt is blocked. | |
2597 | ||
688fca4f PA |
2598 | 2017-11-16 Pedro Alves <palves@redhat.com> |
2599 | ||
2600 | * breakpoint.c (insert_bp_location): Replace bp_err and | |
2601 | bp_err_message locals by a gdb_exception local. | |
2602 | ||
e2c33ac7 PA |
2603 | 2017-11-16 Pedro Alves <palves@redhat.com> |
2604 | ||
2605 | * inflow.c (scoped_ignore_sigttou): New class. | |
2606 | (child_terminal_ours_1, new_tty): Use it. | |
2607 | ||
d7236961 UW |
2608 | 2017-11-16 Ulrich Weigand <uweigand@de.ibm.com> |
2609 | ||
2610 | * target-float.c (decimal_from_number): Add byte_order argument and | |
2611 | call match_endianness. Error if unknown floating-point type. | |
2612 | (decimal_to_number): Add byte_order argument and call match_endianness. | |
2613 | (decimal_from_longest): Update call. Do not call match_endianness. | |
2614 | (decimal_from_ulongest): Likewise. | |
2615 | (decimal_binop): Likewise. | |
2616 | (decimal_is_zero): Likewise. | |
2617 | (decimal_compare): Likewise. | |
2618 | (decimal_convert): Likewise. | |
2619 | ||
d8ae99a7 PM |
2620 | 2017-11-16 Phil Muldoon <pmuldoon@redhat.com> |
2621 | ||
2622 | * python/python.c (gdbpy_rbreak): New function. | |
2623 | * NEWS: Document Python rbreak feature. | |
2624 | ||
c632b645 YQ |
2625 | 2017-11-16 Yao Qi <yao.qi@linaro.org> |
2626 | ||
2627 | * features/tic6x-c62x.xml: Remove. | |
2628 | * features/tic6x-c64x.xml: Remove. | |
2629 | * features/tic6x-c64xp.xml: Remove. | |
2630 | ||
a014b87a JB |
2631 | 2017-11-15 John Baldwin <jhb@FreeBSD.org> |
2632 | ||
2633 | * symtab.h: Include <array>. | |
2634 | ||
94765011 JB |
2635 | 2017-11-15 John Baldwin <jhb@FreeBSD.org> |
2636 | ||
2637 | * bsd-kvm.c (bsd_kvm_cmd): Constify 'arg'. | |
2638 | (bsd_kvm_proc_cmd): Likewise. | |
2639 | ||
625ad440 SM |
2640 | 2017-11-15 Simon Marchi <simon.marchi@ericsson.com> |
2641 | ||
2642 | * tui/tui-win.c (window_name_completer): Replace VEC with | |
2643 | std::vector. | |
2644 | ||
c0c11fa9 AC |
2645 | 2017-11-15 Andrew Cagney <cagney@gnu.org> |
2646 | ||
2647 | * MAINTAINERS: Remove no-longer applicable entries. | |
2648 | ||
34a7ebaf AC |
2649 | 2017-11-15 Andrew Cagney <cagney@gnu.org> |
2650 | ||
2651 | * MAINTAINERS: Move self to Past Maintainers. | |
2652 | ||
5334ef39 YQ |
2653 | 2017-11-15 Yao Qi <yao.qi@linaro.org> |
2654 | ||
2655 | * features/Makefile (XMLTOC): Remove nios2-linux.xml. | |
2656 | * features/nios2-linux.c: Remove. | |
2657 | * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Don't call | |
2658 | initialize_tdesc_nios2_linux. | |
2659 | ||
a714b0d6 YQ |
2660 | 2017-11-15 Yao Qi <yao.qi@linaro.org> |
2661 | ||
2662 | * m68hc11-tdep.c (M68HC11_NUM_REGS): Change it to | |
2663 | M68HC11_LAST_HARD_REG + 1. | |
2664 | ||
92ffd475 PC |
2665 | 2017-11-14 Paul Carroll <pcarroll@codesourcery.com> |
2666 | ||
2667 | PR gdb/22388 | |
2668 | * remote.c (remote_write_bytes_aux, remote_read_bytes_1, | |
2669 | remote_read_bytes, remote_write_qxfer, remote_xfer_partial): | |
2670 | Return TARGET_XFER_EOF if size of returned data is 0. | |
2671 | ||
07431908 SM |
2672 | 2017-11-14 Simon Marchi <simon.marchi@ericsson.com> |
2673 | ||
2674 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
2675 | memory-map-selftests.c. | |
2676 | (SUBDIR_UNITTESTS_OBS): Add memory-map-selftests.o. | |
2677 | * memory-map.c (memory_map_start_memory): Fix computation of hi | |
2678 | address. | |
2679 | * unittests/memory-map-selftests.c: New file. | |
2680 | ||
31432a67 JB |
2681 | 2017-11-09 Joel Brobecker <brobecker@adacore.com> |
2682 | ||
2683 | * ada-lang.c: Fix some typos in the general command documenting | |
2684 | how Ada expressions are being evaluated and how their result | |
2685 | is printed. | |
2686 | ||
e793c052 TT |
2687 | 2017-11-09 Tom Tromey <tom@tromey.com> |
2688 | ||
2689 | * psymtab.c (psymbol_hash): Do not hash string contents. | |
2690 | (psymbol_compare): Add comment. | |
2691 | ||
7e8835c5 TT |
2692 | 2017-11-09 Tom Tromey <tom@tromey.com> |
2693 | ||
2694 | * dictionary.c (dict_hash): Move "TKB" check into the "switch". | |
2695 | ||
286acbb5 JB |
2696 | 2017-11-08 Joel Brobecker <brobecker@adacore.com> |
2697 | ||
2698 | * ada-exp.y (write_var_from_sym): Remove parameter | |
2699 | "orig_left_context". Update all callers. | |
2700 | ||
b44ec619 SM |
2701 | 2017-11-08 Simon Marchi <simon.marchi@ericsson.com> |
2702 | ||
2703 | * tracepoint.h (class collection_list) <stringify>: Return | |
2704 | std::vector<std::string>. | |
2705 | (encode_actions_rsp): Change parameters to | |
2706 | std::vector<std::string> *. | |
2707 | * tracepoint.c (collection_list::stringify): Return | |
2708 | std::vector<std::string> and adjust accordingly. | |
2709 | (encode_actions_rsp): Changee parameters to | |
2710 | std::vector<std::string> and adjust accordingly. | |
2711 | * remote.c (free_actions_list), | |
2712 | free_actions_list_cleanup_wrapper): Remove. | |
2713 | (remote_download_tracepoint): Adjust to std::vector. | |
2714 | ||
2f4732b0 TT |
2715 | 2017-11-08 Tom Tromey <tom@tromey.com> |
2716 | ||
2717 | * dwarf2read.c (symbolp): Remove typedef. | |
2718 | (read_func_scope): Use std::vector. | |
2719 | (process_structure_scope): Use std::vector. | |
2720 | ||
f9d67a22 PA |
2721 | 2017-11-08 Pedro Alves <palves@redhat.com> |
2722 | ||
2723 | * ada-lang.c (ada_make_symbol_completion_list): Use | |
2724 | completion_skip_symbol. | |
2725 | * symtab.c (symbol_is_function_or_method(minimal_symbol*)): New. | |
2726 | (symbol_is_function_or_method(symbol*)): New. | |
2727 | (add_symtab_completions): Add complete_symbol_mode parameter. Use | |
2728 | completion_skip_symbol. | |
2729 | (default_collect_symbol_completion_matches_break_on): Use | |
2730 | completion_skip_symbol. Pass down mode. | |
2731 | (collect_file_symbol_completion_matches): Pass down mode. | |
2732 | * symtab.h (symbol_is_function_or_method): New declarations. | |
2733 | (completion_skip_symbol): New template function. | |
2734 | ||
56d87ef7 PA |
2735 | 2017-11-08 Pedro Alves <palves@redhat.com> |
2736 | ||
2737 | * linespec.c (iterate_over_all_matching_symtabs): Add | |
2738 | search_domain parameter. Pass it down to expand_symtabs_matching. | |
2739 | (decode_objc): Request FUNCTIONS_DOMAIN symbols only. | |
2740 | (lookup_prefix_sym): Adjust by passing ALL_DOMAIN as | |
2741 | search_domain. | |
2742 | (add_all_symbol_names_from_pspace): Add search_domain parameter. | |
2743 | Pass it down. | |
2744 | (find_method, find_function_symbols): Request FUNCTIONS_DOMAIN | |
2745 | symbols. | |
2746 | (add_matching_symbols_to_info): Add search_domain parameter. Pass | |
2747 | it down. | |
2748 | ||
1b026119 PA |
2749 | 2017-11-08 Pedro Alves <palves@redhat.com> |
2750 | ||
2751 | * ada-lang.c (ada_make_symbol_completion_list): Remove text and | |
2752 | text_len locals and don't pass them down. | |
2753 | * symtab.c (completion_list_add_name): Remove | |
2754 | sym_text/sym_text_len parameters and adjust. | |
2755 | (completion_list_add_symbol, completion_list_add_msymbol) | |
2756 | (completion_list_objc_symbol, completion_list_add_fields) | |
2757 | (add_symtab_completions): Likewise. | |
2758 | (default_collect_symbol_completion_matches_break_on) | |
2759 | (collect_file_symbol_completion_matches): Remove sym_text_len | |
2760 | local and don't pass it down. | |
2761 | * symtab.h (completion_list_add_name): Remove | |
2762 | sym_text/sym_text_len parameters. | |
2763 | ||
c62446b1 PA |
2764 | 2017-11-08 Pedro Alves <palves@redhat.com> |
2765 | ||
2766 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
2767 | unittests/lookup_name_info-selftests.c. | |
2768 | (SUBDIR_UNITTESTS_OBS): Add lookup_name_info-selftests.o. | |
2769 | * cp-support.c: Include "selftest.h". | |
2770 | (cp_remove_params_1): Rename from cp_remove_params. Add | |
2771 | 'require_param' parameter, and handle it. | |
2772 | (cp_remove_params): Reimplement. | |
2773 | (cp_remove_params_if_any): New. | |
2774 | (selftests::quote): New. | |
2775 | (selftests::check_remove_params): New. | |
2776 | (selftests::test_cp_remove_params): New. | |
2777 | (_initialize_cp_support): Install | |
2778 | selftests::test_cp_remove_params. | |
2779 | * cp-support.h (cp_remove_params_if_any): Declare. | |
2780 | * dwarf2read.c :Include "selftest.h". | |
2781 | (dw2_expand_symtabs_matching_symbol): Use | |
2782 | lookup_name_info::make_ignore_params. | |
2783 | (selftests::dw2_expand_symtabs_matching::mock_mapped_index) | |
2784 | (selftests::dw2_expand_symtabs_matching::string_or_null) | |
2785 | (selftests::dw2_expand_symtabs_matching::check_match) | |
2786 | (selftests::dw2_expand_symtabs_matching::test_symbols) | |
2787 | (selftests::dw2_expand_symtabs_matching::run_test): New. | |
2788 | (_initialize_dwarf2_read): Register | |
2789 | selftests::dw2_expand_symtabs_matching::run_test. | |
2790 | * psymtab.c (psym_expand_symtabs_matching): Use | |
2791 | lookup_name_info::make_ignore_params. | |
2792 | * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info): | |
2793 | If the lookup name wants to ignore parameters, strip them. | |
2794 | (compare_symbol_name): Remove sym_text/sym_text_len parameters and | |
2795 | code handling '('. | |
2796 | (completion_list_add_name): Don't pass down sym_text/sym_text_len. | |
2797 | (default_collect_symbol_completion_matches_break_on): Don't try to | |
2798 | strip parameters. | |
2799 | * symtab.h (lookup_name_info::lookup_name_info): Add | |
2800 | 'ignore_parameters' parameter. | |
2801 | (lookup_name_info::ignore_parameters) | |
2802 | (lookup_name_info::make_ignore_params): New methods. | |
2803 | (lookup_name_info::m_ignore_parameters): New field. | |
2804 | * unittests/lookup_name_info-selftests.c: New file. | |
2805 | ||
61920122 PA |
2806 | 2017-11-08 Pedro Alves <palves@redhat.com> |
2807 | ||
2808 | * dwarf2read.c (dw2_expand_marked_cus) | |
2809 | (dw2_expand_symtabs_matching_symbol): Remove forward declarations. | |
2810 | (dw2_expand_symtabs_matching): Move further below. | |
2811 | (dw2_expand_marked_cus): Reindent. | |
2812 | ||
3f563c84 PA |
2813 | 2017-11-08 Pedro Alves <palves@redhat.com> |
2814 | ||
2815 | * dwarf2read.c (byte_swap, MAYBE_SWAP): Move higher up in file. | |
2816 | (struct name_component): New. | |
2817 | (mapped_index::name_components): New field. | |
2818 | (mapped_index::symbol_name_at): New method. | |
2819 | (dwarf2_read_index): Call mapped_index ctor. | |
2820 | (dw2_map_matching_symbols): Add comment about name_components | |
2821 | table. | |
2822 | (dw2_expand_symtabs_matching): Factor part to... | |
2823 | (dw2_expand_symtabs_matching_symbol): ... this new function. | |
2824 | Build name components table, and lookup symbols in it before | |
2825 | calling the name matcher. | |
2826 | (dw2_expand_marked_cus): New, factored out from | |
2827 | dw2_expand_symtabs_matching. | |
2828 | (dwarf2_per_objfile_free): Call the mapped_index's dtor. | |
2829 | ||
b5ec771e PA |
2830 | 2017-11-08 Pedro Alves <palves@redhat.com> |
2831 | ||
2832 | * ada-lang.c (ada_encode): Rename to .. | |
2833 | (ada_encode_1): ... this. Add throw_errors parameter and handle | |
2834 | it. | |
2835 | (ada_encode): Reimplement. | |
2836 | (match_name): Delete, folded into full_name. | |
2837 | (resolve_subexp): No longer pass the encoded name to | |
2838 | ada_lookup_symbol_list. | |
2839 | (should_use_wild_match): Delete. | |
2840 | (name_match_type_from_name): New. | |
2841 | (ada_lookup_simple_minsym): Use lookup_name_info and the | |
2842 | language's symbol_name_matcher_ftype. | |
2843 | (add_symbols_from_enclosing_procs, ada_add_local_symbols) | |
2844 | (ada_add_block_renamings): Adjust to use lookup_name_info. | |
2845 | (ada_lookup_name): New. | |
2846 | (add_nonlocal_symbols, ada_add_all_symbols) | |
2847 | (ada_lookup_symbol_list_worker, ada_lookup_symbol_list) | |
2848 | (ada_iterate_over_symbols): Adjust to use lookup_name_info. | |
2849 | (ada_name_for_lookup): Delete. | |
2850 | (ada_lookup_encoded_symbol): Construct a verbatim name. | |
2851 | (wild_match): Reverse sense of return type. Use bool. | |
2852 | (full_match): Reverse sense of return type. Inline bits of old | |
2853 | match_name here. | |
2854 | (ada_add_block_symbols): Adjust to use lookup_name_info. | |
2855 | (symbol_completion_match): Delete, folded into... | |
2856 | (ada_lookup_name_info::matches): ... .this new method. | |
2857 | (symbol_completion_add): Delete. | |
2858 | (ada_collect_symbol_completion_matches): Add name_match_type | |
2859 | parameter. Adjust to use lookup_name_info and | |
2860 | completion_list_add_name. | |
2861 | (get_var_value, ada_add_global_exceptions): Adjust to use | |
2862 | lookup_name_info. | |
2863 | (ada_get_symbol_name_cmp): Delete. | |
2864 | (do_wild_match, do_full_match): New functions. | |
2865 | (ada_lookup_name_info::ada_lookup_name_info): New method. | |
2866 | (ada_symbol_name_matches, ada_get_symbol_name_matcher): New | |
2867 | functions. | |
2868 | (ada_language_defn): Install ada_get_symbol_name_matcher. | |
2869 | * ada-lex.l (processId): If name starts with '<', copy it | |
2870 | verbatim. | |
2871 | * block.c (block_iter_match_step, block_iter_match_first) | |
2872 | (block_iter_match_next, block_lookup_symbol) | |
2873 | (block_lookup_symbol_primary, block_find_symbol): Adjust to use | |
2874 | lookup_name_info. | |
2875 | * block.h (block_iter_match_first, block_iter_match_next) | |
2876 | (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use lookup_name_info. | |
2877 | * c-lang.c (c_language_defn, cplus_language_defn) | |
2878 | (asm_language_defn, minimal_language_defn): Adjust comments to | |
2879 | refer to la_get_symbol_name_matcher. | |
2880 | * completer.c (complete_files_symbols) | |
2881 | (collect_explicit_location_matches, symbol_completer): Pass a | |
2882 | symbol_name_match_type down. | |
2883 | * completer.h (class completion_match, completion_match_result): | |
2884 | New classes. | |
2885 | (completion_tracker::reset_completion_match_result): New method. | |
2886 | (completion_tracker::m_completion_match_result): New field. | |
2887 | * cp-support.c (make_symbol_overload_list_block): Adjust to use | |
2888 | lookup_name_info. | |
2889 | (cp_fq_symbol_name_matches, cp_get_symbol_name_matcher): New | |
2890 | functions. | |
2891 | * cp-support.h (cp_get_symbol_name_matcher): New declaration. | |
2892 | * d-lang.c: Adjust comments to refer to | |
2893 | la_get_symbol_name_matcher. | |
2894 | * dictionary.c (dict_vector) <iter_match_first, iter_match_next>: | |
2895 | Adjust to use lookup_name_info. | |
2896 | (dict_iter_match_first, dict_iter_match_next) | |
2897 | (iter_match_first_hashed, iter_match_next_hashed) | |
2898 | (iter_match_first_linear, iter_match_next_linear): Adjust to work | |
2899 | with a lookup_name_info. | |
2900 | * dictionary.h (dict_iter_match_first, dict_iter_match_next): | |
2901 | Likewise. | |
2902 | * dwarf2read.c (dw2_lookup_symbol): Adjust to use lookup_name_info. | |
2903 | (dw2_map_matching_symbols): Adjust to use symbol_name_match_type. | |
2904 | (gdb_index_symbol_name_matcher): New class. | |
2905 | (dw2_expand_symtabs_matching) Adjust to use lookup_name_info and | |
2906 | gdb_index_symbol_name_matcher. Accept a NULL symbol_matcher. | |
2907 | * f-lang.c (f_collect_symbol_completion_matches): Adjust to work | |
2908 | with a symbol_name_match_type. | |
2909 | (f_language_defn): Adjust comments to refer to | |
2910 | la_get_symbol_name_matcher. | |
2911 | * go-lang.c (go_language_defn): Adjust comments to refer to | |
2912 | la_get_symbol_name_matcher. | |
2913 | * language.c (default_symbol_name_matcher) | |
2914 | (language_get_symbol_name_matcher): New functions. | |
2915 | (unknown_language_defn, auto_language_defn): Adjust comments to | |
2916 | refer to la_get_symbol_name_matcher. | |
2917 | * language.h (symbol_name_cmp_ftype): Delete. | |
2918 | (language_defn) <la_collect_symbol_completion_matches>: Add match | |
2919 | type parameter. | |
2920 | <la_get_symbol_name_cmp>: Delete field. | |
2921 | <la_get_symbol_name_matcher>: New field. | |
2922 | <la_iterate_over_symbols>: Adjust to use lookup_name_info. | |
2923 | (default_symbol_name_matcher, language_get_symbol_name_matcher): | |
2924 | Declare. | |
2925 | * linespec.c (iterate_over_all_matching_symtabs) | |
2926 | (iterate_over_file_blocks): Adjust to use lookup_name_info. | |
2927 | (find_methods): Add language parameter, and use lookup_name_info | |
2928 | and the language's symbol_name_matcher_ftype. | |
2929 | (linespec_complete_function): Adjust. | |
2930 | (lookup_prefix_sym): Use lookup_name_info. | |
2931 | (add_all_symbol_names_from_pspace): Adjust. | |
2932 | (find_superclass_methods): Add language parameter and pass it | |
2933 | down. | |
2934 | (find_method): Pass symbol language down. | |
2935 | (find_linespec_symbols): Don't demangle or Ada encode here. | |
2936 | (search_minsyms_for_name): Add lookup_name_info parameter. | |
2937 | (add_matching_symbols_to_info): Add name_match_type parameter. | |
2938 | Use lookup_name_info. | |
2939 | * m2-lang.c (m2_language_defn): Adjust comments to refer to | |
2940 | la_get_symbol_name_matcher. | |
2941 | * minsyms.c: Include <algorithm>. | |
2942 | (add_minsym_to_demangled_hash_table): Remove table parameter and | |
2943 | add objfile parameter. Use search_name_hash, and add language to | |
2944 | demangled languages vector. | |
2945 | (struct found_minimal_symbols): New struct. | |
2946 | (lookup_minimal_symbol_mangled, lookup_minimal_symbol_demangled): | |
2947 | New functions. | |
2948 | (lookup_minimal_symbol): Adjust to use them. Don't canonicalize | |
2949 | input names here. Use lookup_name_info instead. Lookup up | |
2950 | demangled names once for each language in the demangled names | |
2951 | vector. | |
2952 | (iterate_over_minimal_symbols): Use lookup_name_info. Lookup up | |
2953 | demangled names once for each language in the demangled names | |
2954 | vector. | |
2955 | (build_minimal_symbol_hash_tables): Adjust. | |
2956 | * minsyms.h (iterate_over_minimal_symbols): Adjust to pass down a | |
2957 | lookup_name_info. | |
2958 | * objc-lang.c (objc_language_defn): Adjust comment to refer to | |
2959 | la_get_symbol_name_matcher. | |
2960 | * objfiles.h: Include <vector>. | |
2961 | (objfile_per_bfd_storage) <demangled_hash_languages>: New field. | |
2962 | * opencl-lang.c (opencl_language_defn): Adjust comment to refer to | |
2963 | la_get_symbol_name_matcher. | |
2964 | * p-lang.c (pascal_language_defn): Adjust comment to refer to | |
2965 | la_get_symbol_name_matcher. | |
2966 | * psymtab.c (psym_lookup_symbol): Use lookup_name_info. | |
2967 | (match_partial_symbol): Use symbol_name_match_type, | |
2968 | lookup_name_info and psymbol_name_matches. | |
2969 | (lookup_partial_symbol): Use lookup_name_info. | |
2970 | (map_block): Use symbol_name_match_type and lookup_name_info. | |
2971 | (psym_map_matching_symbols): Use symbol_name_match_type. | |
2972 | (psymbol_name_matches): New. | |
2973 | (recursively_search_psymtabs): Use lookup_name_info and | |
2974 | psymbol_name_matches. Rename 'kind' parameter to 'domain'. | |
2975 | (psym_expand_symtabs_matching): Use lookup_name_info. Rename | |
2976 | 'kind' parameter to 'domain'. | |
2977 | * rust-lang.c (rust_language_defn): Adjust comment to refer to | |
2978 | la_get_symbol_name_matcher. | |
2979 | * symfile-debug.c (debug_qf_map_matching_symbols) | |
2980 | (debug_qf_map_matching_symbols): Use symbol_name_match_type. | |
2981 | (debug_qf_expand_symtabs_matching): Use lookup_name_info. | |
2982 | * symfile.c (expand_symtabs_matching): Use lookup_name_info. | |
2983 | * symfile.h (quick_symbol_functions) <map_matching_symbols>: | |
2984 | Adjust to use symbol_name_match_type. | |
2985 | <expand_symtabs_matching>: Adjust to use lookup_name_info. | |
2986 | (expand_symtabs_matching): Adjust to use lookup_name_info. | |
2987 | * symmisc.c (maintenance_expand_symtabs): Use | |
2988 | lookup_name_info::match_any (). | |
2989 | * symtab.c (symbol_matches_search_name): New. | |
2990 | (eq_symbol_entry): Adjust to use lookup_name_info and the | |
2991 | language's matcher. | |
2992 | (demangle_for_lookup_info::demangle_for_lookup_info): New. | |
2993 | (lookup_name_info::match_any): New. | |
2994 | (iterate_over_symbols, search_symbols): Use lookup_name_info. | |
2995 | (compare_symbol_name): Add language, lookup_name_info and | |
2996 | completion_match_result parameters, and use them. | |
2997 | (completion_list_add_name): Make extern. Add language and | |
2998 | lookup_name_info parameters. Use them. | |
2999 | (completion_list_add_symbol, completion_list_add_msymbol) | |
3000 | (completion_list_objc_symbol): Add lookup_name_info parameters and | |
3001 | adjust. Pass down language. | |
3002 | (completion_list_add_fields): Add lookup_name_info parameters and | |
3003 | adjust. Pass down language. | |
3004 | (add_symtab_completions): Add lookup_name_info parameters and | |
3005 | adjust. | |
3006 | (default_collect_symbol_completion_matches_break_on): Add | |
3007 | name_match_type parameter, and use it. Use lookup_name_info. | |
3008 | (default_collect_symbol_completion_matches) | |
3009 | (collect_symbol_completion_matches): Add name_match_type | |
3010 | parameter, and pass it down. | |
3011 | (collect_symbol_completion_matches_type): Adjust. | |
3012 | (collect_file_symbol_completion_matches): Add name_match_type | |
3013 | parameter, and use lookup_name_info. | |
3014 | * symtab.h: Include <string> and "common/gdb_optional.h". | |
3015 | (enum class symbol_name_match_type): New. | |
3016 | (class ada_lookup_name_info): New. | |
3017 | (struct demangle_for_lookup_info): New. | |
3018 | (class lookup_name_info): New. | |
3019 | (symbol_name_matcher_ftype): New. | |
3020 | (SYMBOL_MATCHES_SEARCH_NAME): Use symbol_matches_search_name. | |
3021 | (symbol_matches_search_name): Declare. | |
3022 | (MSYMBOL_MATCHES_SEARCH_NAME): Delete. | |
3023 | (default_collect_symbol_completion_matches) | |
3024 | (collect_symbol_completion_matches) | |
3025 | (collect_file_symbol_completion_matches): Add name_match_type | |
3026 | parameter. | |
3027 | (iterate_over_symbols): Use lookup_name_info. | |
3028 | (completion_list_add_name): Declare. | |
3029 | * utils.c (enum class strncmp_iw_mode): Moved to utils.h. | |
3030 | (strncmp_iw_with_mode): Now extern. | |
3031 | * utils.h (enum class strncmp_iw_mode): Moved from utils.c. | |
3032 | (strncmp_iw_with_mode): Declare. | |
3033 | ||
5ffa0793 PA |
3034 | 2017-11-08 Keith Seitz <keiths@redhat.com> |
3035 | Pedro Alves <palves@redhat.com> | |
3036 | ||
3037 | * ada-lang.c (ada_language_defn): Install | |
3038 | default_search_name_hash. | |
3039 | * buildsym.c (struct buildsym_compunit): <language>: New field. | |
3040 | (finish_block_internal): Pass language when creating dictionaries. | |
3041 | (start_buildsym_compunit, start_symtab): New language parameters. | |
3042 | Use them. | |
3043 | (restart_symtab): Pass down compilation unit's language. | |
3044 | * buildsym.h (enum language): Forward declare. | |
3045 | (start_symtab): New 'language' parameter. | |
3046 | * c-lang.c (c_language_defn, cplus_language_defn) | |
3047 | (asm_language_defn, minimal_language_defn): Install | |
3048 | default_search_name_hash. | |
3049 | * coffread.c (coff_start_symtab): Adjust. | |
3050 | * d-lang.c (d_language_defn): Install default_search_name_hash. | |
3051 | * dbxread.c (struct symloc): Add 'pst_language' field. | |
3052 | (PST_LANGUAGE): Define. | |
3053 | (start_psymtab, read_ofile_symtab): Use it. | |
3054 | (process_one_symbol): New 'language' parameter. Pass it down. | |
3055 | * dictionary.c (struct dictionary) <language>: New field. | |
3056 | (DICT_LANGUAGE): Define. | |
3057 | (dict_create_hashed, dict_create_hashed_expandable) | |
3058 | (dict_create_linear, dict_create_linear_expandable): New parameter | |
3059 | 'language'. Set the dictionary's language. | |
3060 | (iter_match_first_hashed): Adjust to rename. | |
3061 | (insert_symbol_hashed): Assert we don't see mismatching | |
3062 | languages. Adjust to rename. | |
3063 | (dict_hash): Rename to ... | |
3064 | (default_search_name_hash): ... this and make extern. | |
3065 | * dictionary.h (struct language_defn): Forward declare. | |
3066 | (dict_create_hashed): New parameter 'language'. | |
3067 | * dwarf2read.c (dwarf2_start_symtab): Pass down language. | |
3068 | * f-lang.c (f_language_defn): Install default_search_name_hash. | |
3069 | * go-lang.c (go_language_defn): Install default_search_name_hash. | |
3070 | * jit.c (finalize_symtab): Pass compunit's language to dictionary | |
3071 | creation. | |
3072 | * language.c (unknown_language_defn, auto_language_defn): | |
3073 | * language.h (language_defn::la_search_name_hash): New field. | |
3074 | (default_search_name_hash): Declare. | |
3075 | * m2-lang.c (m2_language_defn): Install default_search_name_hash. | |
3076 | * mdebugread.c (new_block): New parameter 'language'. | |
3077 | * mdebugread.c (parse_symbol): Pass symbol language to block | |
3078 | allocation. | |
3079 | (psymtab_to_symtab_1): Pass down language. | |
3080 | (new_symtab): Pass compunit's language to block allocation. | |
3081 | * objc-lang.c (objc_language_defn): Install | |
3082 | default_search_name_hash. | |
3083 | * opencl-lang.c (opencl_language_defn): | |
3084 | * p-lang.c (pascal_language_defn): Install | |
3085 | default_search_name_hash. | |
3086 | * rust-lang.c (rust_language_defn): Install | |
3087 | default_search_name_hash. | |
3088 | * stabsread.h (enum language): Forward declare. | |
3089 | (process_one_symbol): Add 'language' parameter. | |
3090 | * symtab.c (search_name_hash): New function. | |
3091 | * symtab.h (search_name_hash): Declare. | |
3092 | * xcoffread.c (read_xcoff_symtab): Pass language to start_symtab. | |
3093 | ||
2a1dde5d PA |
3094 | 2017-11-08 Pedro Alves <palves@redhat.com> |
3095 | ||
3096 | * cp-name-parser.y (main): Don't initialize extra_chars. | |
3097 | ||
95a6b0a1 TT |
3098 | 2017-11-07 Tom Tromey <tom@tromey.com> |
3099 | ||
3100 | * event-top.h (command_handler): Constify. | |
3101 | * record-full.c (cmd_record_full_start): Update. | |
3102 | * thread.c (thread_apply_all_command): Update. | |
3103 | * printcmd.c (eval_command): Update. | |
3104 | * mi/mi-main.c (mi_execute_cli_command): Update. | |
3105 | (mi_execute_async_cli_command): Update. | |
3106 | * tui/tui-stack.c (tui_update_command): Update. | |
3107 | * cli/cli-interp.c (safe_execute_command): Constify. | |
3108 | * record.c (record_start): Update. | |
3109 | (record_start, record_stop, cmd_record_start): Update. | |
3110 | * record-btrace.c (cmd_record_btrace_bts_start): Update. | |
3111 | (cmd_record_btrace_pt_start): Update. | |
3112 | (cmd_record_btrace_start): Update. | |
3113 | (cmd_record_btrace_start): Update. | |
3114 | * reverse.c (exec_reverse_once): Update. | |
3115 | * python/python.c (execute_gdb_command): Don't copy the command. | |
3116 | * event-top.c (command_line_handler): Update. | |
3117 | (command_handler): Constify. | |
3118 | * defs.h (deprecated_call_command_hook): Constify. | |
3119 | * cli/cli-script.h (execute_user_command): Constify. | |
3120 | * cli/cli-script.c (execute_user_command): Constify. | |
3121 | (execute_cmd_pre_hook, execute_cmd_post_hook): Constify. | |
3122 | (enum command_control_type): Update. | |
3123 | * main.c (catch_command_errors): Remove non-const overload. | |
3124 | (catch_command_errors_ftype): Remove. | |
3125 | * python/py-cmd.c (cmdpy_function): Constify. | |
3126 | * guile/scm-cmd.c (cmdscm_function): Constify. | |
3127 | * cli/cli-dump.c (call_dump_func): Constify. | |
3128 | * cli/cli-decode.c (do_const_cfunc): Constify. | |
3129 | (do_sfunc): Constify. | |
3130 | (cmd_func): Constify. | |
3131 | * gdbcmd.h (execute_command, execute_command_to_string): Constify. | |
3132 | * top.h (execute_command): Constify. | |
3133 | * top.c (execute_command): Constify. | |
3134 | (execute_command_to_string): Constify. | |
3135 | (deprecated_call_command_hook): Constify. | |
3136 | * command.h (cmd_func): Constify. | |
3137 | * cli/cli-decode.h (struct cmd_list_element) <func>: Constify. | |
3138 | ||
eb4c3f4a TT |
3139 | 2017-11-07 Tom Tromey <tom@tromey.com> |
3140 | ||
3141 | * ada-lang.c (catch_ada_exception_command): Constify. | |
3142 | (catch_assert_command): Constify. | |
3143 | * break-catch-throw.c (catch_catch_command, catch_throw_command) | |
3144 | (catch_rethrow_command): Constify. | |
3145 | (catch_exception_command_1): Constify. | |
3146 | * breakpoint.h (add_catch_command): Constify. | |
3147 | * break-catch-syscall.c (catch_syscall_command_1): Constify. | |
3148 | (catch_syscall_split_args): Constify. | |
3149 | * break-catch-sig.c (catch_signal_command): Constify. | |
3150 | (catch_signal_split_args): Constify. | |
3151 | * cli/cli-decode.h (struct cmd_list_element) <function>: Use | |
3152 | cmd_const_sfunc_ftype. | |
3153 | * cli/cli-decode.c (add_setshow_cmd_full): Constify. | |
3154 | (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd) | |
3155 | (add_setshow_boolean_cmd, add_setshow_filename_cmd) | |
3156 | (add_setshow_string_cmd, struct cmd_list_element) | |
3157 | (add_setshow_optional_filename_cmd, add_setshow_integer_cmd) | |
3158 | (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd) | |
3159 | (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd): | |
3160 | Constify. | |
3161 | (set_cmd_sfunc): Constify. | |
3162 | (empty_sfunc): Constify. | |
3163 | * command.h (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd) | |
3164 | (add_setshow_boolean_cmd, add_setshow_filename_cmd) | |
3165 | (add_setshow_string_cmd, add_setshow_string_noescape_cmd) | |
3166 | (add_setshow_optional_filename_cmd, add_setshow_integer_cmd) | |
3167 | (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd) | |
3168 | (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd): | |
3169 | Constify. | |
3170 | (set_cmd_sfunc): Constify. | |
3171 | (cmd_sfunc_ftype): Remove. | |
3172 | * compile/compile.c (set_compile_args): Constify. | |
3173 | * infrun.c (set_disable_randomization): Constify. | |
3174 | * infcmd.c (set_args_command, set_cwd_command): Constify. | |
3175 | * breakpoint.c (set_condition_evaluation_mode): Constify. | |
3176 | (add_catch_command): Constify. | |
3177 | (catch_fork_command_1, catch_exec_command_1) | |
3178 | (catch_load_command_1, catch_unload_command_1): Constify. | |
3179 | (catch_load_or_unload): Constify. | |
3180 | * guile/scm-param.c (pascm_set_func): Constify. | |
3181 | (add_setshow_generic): Constify. | |
3182 | * python/py-param.c (get_set_value): Constify. | |
3183 | * top.h (set_verbose): Constify. | |
3184 | * tui/tui-win.c (tui_set_var_cmd): Constify. | |
3185 | * mi/mi-main.c (set_mi_async_command): Constify. | |
3186 | * cli/cli-logging.c (set_logging_overwrite) | |
3187 | (set_logging_redirect): Constify. | |
3188 | * value.c (set_max_value_size): Constify. | |
3189 | * valprint.c (set_input_radix, set_output_radix): Constify. | |
3190 | * utils.c (set_width_command, set_height_command): Constify. | |
3191 | * typeprint.c (set_print_type_methods, set_print_type_typedefs): Constify. | |
3192 | * tracepoint.c (set_disconnected_tracing) | |
3193 | (set_circular_trace_buffer, set_trace_buffer_size) | |
3194 | (set_trace_user, set_trace_notes, set_trace_stop_notes): Constify. | |
3195 | * top.c (set_history_size_command, set_verbose, set_editing) | |
3196 | (set_gdb_datadir, set_history_filename): Constify. | |
3197 | * target.c (set_targetdebug, maint_set_target_async_command) | |
3198 | (maint_set_target_non_stop_command, set_target_permissions) | |
3199 | (set_write_memory_permission): Constify. | |
3200 | (open_target): Constify. | |
3201 | * target-descriptions.c (set_tdesc_filename_cmd): Constify. | |
3202 | * target-dcache.c (set_stack_cache, set_code_cache): Constify. | |
3203 | * symtab.c (set_symbol_cache_size_handler): Constify. | |
3204 | * symfile.c (set_ext_lang_command): Constify. | |
3205 | * symfile-debug.c (set_debug_symfile): Constify. | |
3206 | * source.c (set_directories_command): Constify. | |
3207 | * solib.c (reload_shared_libraries, gdb_sysroot_changed): Constify. | |
3208 | * serial.c (set_parity): Constify. | |
3209 | * rs6000-tdep.c (powerpc_set_soft_float, powerpc_set_vector_abi): Constify. | |
3210 | * remote.c (set_remote_exec_file, set_remotebreak) | |
3211 | (set_remote_protocol_Z_packet_cmd, set_range_stepping): Constify. | |
3212 | * record.c (set_record_insn_history_size) | |
3213 | (set_record_call_history_size): Constify. | |
3214 | * record-full.c (set_record_full_insn_max_num): Constify. | |
3215 | * proc-api.c (set_procfs_trace_cmd, set_procfs_file_cmd): Constify. | |
3216 | * osabi.c (set_osabi): Constify. | |
3217 | * mips-tdep.c (set_mips64_transfers_32bit_regs) | |
3218 | (reinit_frame_cache_sfunc, mips_abi_update): Constify. | |
3219 | * maint.c (maintenance_set_profile_cmd): Constify. | |
3220 | * linux-thread-db.c (set_libthread_db_search_path): Constify. | |
3221 | * language.c (set_language_command, set_range_command) | |
3222 | (set_case_command): Constify. | |
3223 | * infrun.c (set_non_stop, set_observer_mode) | |
3224 | (set_stop_on_solib_events, set_schedlock_func) | |
3225 | (set_exec_direction_func): Constify. | |
3226 | * infcmd.c (set_inferior_tty_command): Constify. | |
3227 | * disasm.c (set_disassembler_options_sfunc): Constify. | |
3228 | * demangle.c (set_demangling_command): Constify. | |
3229 | * dcache.c (set_dcache_size, set_dcache_line_size): Constify. | |
3230 | * cris-tdep.c (set_cris_version, set_cris_mode) | |
3231 | (set_cris_dwarf2_cfi): Constify. | |
3232 | * corefile.c (set_gnutarget_command): Constify. | |
3233 | * charset.c (set_host_charset_sfunc, set_target_charset_sfunc) | |
3234 | (set_target_wide_charset_sfunc): Constify. | |
3235 | * breakpoint.c (update_dprintf_commands): Constify. | |
3236 | * auto-load.c (set_auto_load_dir, set_auto_load_safe_path): Constify. | |
3237 | * arm-tdep.c (set_fp_model_sfunc, arm_set_abi) | |
3238 | (set_disassembly_style_sfunc): Constify. | |
3239 | * arch-utils.c (set_endian, set_architecture): Constify. | |
3240 | * alpha-tdep.c (reinit_frame_cache_sfunc): Constify. | |
3241 | * agent.c (set_can_use_agent): Constify. | |
3242 | ||
5fed81ff TT |
3243 | 2017-11-07 Tom Tromey <tom@tromey.com> |
3244 | ||
3245 | * go32-nat.c (go32_sysinfo, go32_sldt, go32_sgdt, go32_sidt) | |
3246 | (go32_pde, go32_pte, go32_pte_for_address): Constify. | |
3247 | * gnu-nat.c (_parse_bool_arg, show_thread_default_pause_cmd) | |
3248 | (set_thread_default_pause_cmd, set_thread_default_run_cmd) | |
3249 | (show_thread_default_run_cmd, set_thread_default_detach_sc_cmd) | |
3250 | (parse_int_arg, show_thread_default_detach_sc_cmd) | |
3251 | (set_signals_cmd, show_signals_cmd, set_sig_thread_cmd) | |
3252 | (show_sig_thread_cmd, set_stopped_cmd, show_stopped_cmd) | |
3253 | (set_exceptions_cmd, show_exceptions_cmd, set_task_pause_cmd) | |
3254 | (show_task_pause_cmd, set_task_detach_sc_cmd) | |
3255 | (show_task_detach_sc_cmd, set_task_exc_port_cmd) | |
3256 | (set_noninvasive_cmd, set_thread_pause_cmd) | |
3257 | (show_thread_pause_cmd, set_thread_run_cmd, show_thread_run_cmd) | |
3258 | (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd) | |
3259 | (set_thread_exc_port_cmd, thread_takeover_sc_cmd): Constify. | |
3260 | * windows-nat.c (display_selectors): Constify. | |
3261 | * cli/cli-decode.h (struct cmd_list_element) <function>: Remove | |
3262 | non-const "cfunc". | |
3263 | * cli/cli-decode.c (set_cmd_cfunc): Remove non-const overload. | |
3264 | (cmd_cfunc_eq): Likewise. | |
3265 | (struct cmd_list_element): Likewise. | |
3266 | (do_cfunc): Remove. | |
3267 | (cli_user_command_p): Update. | |
3268 | * command.h (add_cmd): Remove non-const overload. | |
3269 | (cmd_cfunc_ftype): Remove typedef. | |
3270 | (cmd_cfunc_eq): Remove non-const overload. | |
3271 | * value.c (show_values): Constify. | |
3272 | * thread.c (thread_apply_all_command): Constify. | |
3273 | * symfile.c (load_command): Constify. | |
3274 | * source.c (directory_command): Constify. | |
3275 | * maint.c (maintenance_internal_error) | |
3276 | (maintenance_demangler_warning, maintenance_space_display) | |
3277 | (maintenance_print_architecture, maintenance_translate_address) | |
3278 | (maintenance_info_selftests, maintenance_internal_warning): | |
3279 | Constify. | |
3280 | * breakpoint.c (disable_trace_command, enable_trace_command): | |
3281 | Constify. | |
3282 | * auto-load.c (info_auto_load_local_gdbinit, add_auto_load_dir): | |
3283 | Constify. | |
3284 | (add_auto_load_safe_path): Constify. | |
3285 | * guile/scm-auto-load.c (info_auto_load_guile_scripts): Constify. | |
3286 | * top.h (show_commands): Constify. | |
3287 | * linux-thread-db.c (info_auto_load_libthread_db): Constify. | |
3288 | * sparc64-tdep.c (adi_examine_command): Constify. | |
3289 | (adi_assign_command): Constify. | |
3290 | ||
1d12d88f TT |
3291 | 2017-11-07 Tom Tromey <tom@tromey.com> |
3292 | ||
3293 | * frame.h (info_locals_command, info_args_command): Constify. | |
3294 | * auto-load.h (auto_load_info_scripts): Constify. | |
3295 | * inferior.h (registers_info): Constify. | |
3296 | * copying.c: Rebuild. | |
3297 | * copying.awk: Constify generated commands. | |
3298 | * auto-load.c (auto_load_info_scripts) | |
3299 | (info_auto_load_gdb_scripts): Constify. | |
3300 | * cli/cli-decode.c (struct cmd_list_element): Take a | |
3301 | cmd_const_cfunc_ftype. | |
3302 | * command.h (add_info): Take a cmd_const_cfunc_ftype. | |
3303 | * tui/tui-win.c (tui_all_windows_info): Constify. | |
3304 | * python/py-auto-load.c (info_auto_load_python_scripts): | |
3305 | Constify. | |
3306 | * cli/cli-cmds.c (show_command): Remove non-const overload. | |
3307 | * tracepoint.c (info_tvariables_command, info_scope_command): | |
3308 | Constify. | |
3309 | (info_static_tracepoint_markers_command): Constify. | |
3310 | * thread.c (info_threads_command): Constify. | |
3311 | (print_thread_info_1): Constify. | |
3312 | * target.c (info_target_command): Constify. | |
3313 | * symtab.c (info_sources_command, info_functions_command) | |
3314 | (info_types_command): Constify. | |
3315 | (info_variables_command): Remove non-const overload. | |
3316 | * symfile.c (info_ext_lang_command): Constify. | |
3317 | * stack.c (info_frame_command, info_locals_command) | |
3318 | (info_args_command): Constify. | |
3319 | (backtrace_command): Remove non-const overload. | |
3320 | * source.c (info_source_command, info_line_command): Constify. | |
3321 | * solib.c (info_sharedlibrary_command): Constify. | |
3322 | * skip.c (info_skip_command): Constify. | |
3323 | * ser-go32.c (info_serial_command): Constify. | |
3324 | * reverse.c (info_bookmarks_command): Constify. | |
3325 | * printcmd.c (info_symbol_command, info_address_command) | |
3326 | (info_display_command): Constify. | |
3327 | * osdata.c (info_osdata_command): Constify. | |
3328 | * objc-lang.c (info_selectors_command, info_classes_command): | |
3329 | Constify. | |
3330 | * nto-procfs.c (procfs_pidlist, procfs_meminfo): Constify. | |
3331 | * memattr.c (info_mem_command): Constify. | |
3332 | * macrocmd.c (info_macro_command, info_macros_command): Constify. | |
3333 | * linux-fork.c (info_checkpoints_command): Constify. | |
3334 | * infrun.c (info_signals_command): Constify. | |
3335 | * inflow.c (info_terminal_command): Constify. | |
3336 | * inferior.c (info_inferiors_command): Constify. | |
3337 | (print_inferior): Constify. | |
3338 | * infcmd.c (info_program_command, info_all_registers_command) | |
3339 | (info_registers_command, info_vector_command) | |
3340 | (info_float_command): Constify. | |
3341 | (registers_info): Constify. | |
3342 | * gnu-nat.c (info_send_rights_cmd, info_recv_rights_cmd) | |
3343 | (info_port_sets_cmd, info_dead_names_cmd, info_port_rights_cmd): | |
3344 | Constify. | |
3345 | * f-valprint.c (info_common_command): Constify. | |
3346 | * dcache.c (info_dcache_command): Constify. | |
3347 | (dcache_info_1): Constify. | |
3348 | * darwin-nat-info.c (info_mach_tasks_command) | |
3349 | (info_mach_task_command, info_mach_ports_command) | |
3350 | (info_mach_port_command, info_mach_threads_command) | |
3351 | (info_mach_thread_command, info_mach_regions_command) | |
3352 | (info_mach_regions_recurse_command, info_mach_region_command) | |
3353 | (info_mach_exceptions_command): Constify. | |
3354 | (get_task_from_args): Constify. | |
3355 | * cp-support.c (info_vtbl_command): Constify. | |
3356 | * breakpoint.c (info_watchpoints_command) | |
3357 | (info_tracepoints_command): Constify. | |
3358 | (info_breakpoints_command): Remove non-const overload. | |
3359 | * avr-tdep.c (avr_io_reg_read_command): Constify. | |
3360 | * auxv.c (info_auxv_command): Constify. | |
3361 | * ada-tasks.c (info_tasks_command): Constify. | |
3362 | (info_task): Constify. | |
3363 | * ada-lang.c (info_exceptions_command): Constify. | |
3364 | ||
0b39b52e TT |
3365 | 2017-11-07 Tom Tromey <tom@tromey.com> |
3366 | ||
3367 | * solib.h (no_shared_libraries): Constify. | |
3368 | * frame.h (return_command): Constify. | |
3369 | * cli/cli-cmds.h (quit_command): Constify. | |
3370 | * top.h (quit_command, execute_command): Constify. | |
3371 | * target.h (flash_erase_command): Constify. | |
3372 | * inferior.h (set_inferior_args, attach_command): Constify. | |
3373 | * tracepoint.h (start_tracing, stop_tracing): Constify. | |
3374 | * breakpoint.h (break_command, tbreak_command) | |
3375 | (hbreak_command_wrapper, thbreak_command_wrapper) | |
3376 | (rbreak_command_wrapper, watch_command_wrapper) | |
3377 | (awatch_command_wrapper, rwatch_command_wrapper) | |
3378 | (get_tracepoint_by_number): Constify. | |
3379 | * symtab.c (info_variables_command, rbreak_command) | |
3380 | (symtab_symbol_info): Constify. | |
3381 | (info_variables_command): Add non-const overload. | |
3382 | * top.c (dont_repeat_command): Constify. | |
3383 | * breakpoint.c (ignore_command, commands_command) | |
3384 | (condition_command, tbreak_command, hbreak_command) | |
3385 | (thbreak_command, clear_command, break_command) | |
3386 | (info_breakpoints_command, watch_command, rwatch_command) | |
3387 | (awatch_command, trace_command, ftrace_command, strace_command) | |
3388 | (trace_pass_command, break_range_command, dprintf_command) | |
3389 | (agent_printf_command, get_tracepoint_by_number) | |
3390 | (watch_maybe_just_location, trace_pass_command): Constify. | |
3391 | (info_breakpoints_command): Add non-const overload. | |
3392 | * tracefile.c (tsave_command): Constify. | |
3393 | * infcmd.c (attach_command, disconnect_command, signal_command) | |
3394 | (queue_signal_command, stepi_command, nexti_command) | |
3395 | (finish_command, next_command, step_command, until_command) | |
3396 | (advance_command, jump_command, continue_command, run_command) | |
3397 | (start_command, starti_command, interrupt_command) | |
3398 | (run_command_1, set_inferior_args, step_1): Constify. | |
3399 | * inferior.c (add_inferior_command, remove_inferior_command) | |
3400 | (clone_inferior_command): Constify. | |
3401 | * linux-fork.c (checkpoint_command, restart_command): Constify. | |
3402 | * windows-nat.c (signal_event_command): Constify. | |
3403 | * guile/guile.c (guile_repl_command, guile_command): Constify. | |
3404 | * printcmd.c (x_command, display_command, printf_command) | |
3405 | (output_command, set_command, call_command, print_command) | |
3406 | (eval_command): Constify. | |
3407 | (non_const_set_command): Remove. | |
3408 | (_initialize_printcmd): Update. | |
3409 | * source.c (forward_search_command, reverse_search_command): | |
3410 | Constify. | |
3411 | * jit.c (jit_reader_load_command, jit_reader_unload_command): | |
3412 | Constify. | |
3413 | * infrun.c (handle_command): Constify. | |
3414 | * memattr.c (mem_command): Constify. | |
3415 | * stack.c (return_command, up_command, up_silently_command) | |
3416 | (down_command, down_silently_command, frame_command) | |
3417 | (backtrace_command, func_command, backtrace_command_1): Constify. | |
3418 | (backtrace_command): Add non-const overload. | |
3419 | * remote-sim.c (simulator_command): Constify. | |
3420 | * exec.c (set_section_command): Constify. | |
3421 | * tracepoint.c (tdump_command, trace_variable_command) | |
3422 | (tstatus_command, tstop_command, tstart_command) | |
3423 | (end_actions_pseudocommand, while_stepping_pseudocommand) | |
3424 | (collect_pseudocommand, teval_pseudocommand, actions_command) | |
3425 | (start_tracing, stop_tracing): Constify. | |
3426 | * value.c (init_if_undefined_command): Constify. | |
3427 | * tui/tui-stack.c (tui_update_command): Constify. | |
3428 | * tui/tui-win.c (tui_refresh_all_command) | |
3429 | (tui_set_tab_width_command, tui_set_win_height_command) | |
3430 | (tui_set_focus_command, tui_scroll_forward_command) | |
3431 | (tui_scroll_backward_command, tui_scroll_left_command) | |
3432 | (tui_scroll_right_command, parse_scrolling_args, tui_set_focus) | |
3433 | (tui_set_win_height): Constify. | |
3434 | * tui/tui-layout.c (tui_layout_command): Constify. | |
3435 | * procfs.c (proc_trace_syscalls, proc_trace_sysentry_cmd) | |
3436 | (proc_trace_sysexit_cmd, proc_untrace_sysentry_cmd) | |
3437 | (proc_untrace_sysexit_cmd): Constify. | |
3438 | * remote.c (threadlist_test_cmd, threadinfo_test_cmd) | |
3439 | (threadset_test_cmd, threadlist_update_test_cmd) | |
3440 | (threadalive_test): Constify. | |
3441 | * objc-lang.c (print_object_command): Constify. | |
3442 | * command.h (add_com): Constify. | |
3443 | * cli/cli-dump.c (restore_command): Constify. | |
3444 | * cli/cli-cmds.c (pwd_command, echo_command, quit_command) | |
3445 | (help_command, complete_command, shell_command, edit_command) | |
3446 | (list_command, disassemble_command, make_command) | |
3447 | (apropos_command, alias_command): Constify. | |
3448 | * cli/cli-script.c (document_command, define_command) | |
3449 | (while_command, if_command, validate_comname): Constify. | |
3450 | * cli/cli-decode.c (struct cmd_list_element): Change type of | |
3451 | "fun". | |
3452 | * target.c (do_monitor_command, flash_erase_command): Constify. | |
3453 | * regcache.c (reg_flush_command): Constify. | |
3454 | * reverse.c (reverse_step, reverse_next, reverse_stepi) | |
3455 | (reverse_nexti, reverse_continue, reverse_finish) | |
3456 | (save_bookmark_command, goto_bookmark_command) | |
3457 | (exec_reverse_once): Constify. | |
3458 | * python/python.c (python_interactive_command, python_command): | |
3459 | Constify. | |
3460 | * typeprint.c (ptype_command, whatis_command, whatis_exp): | |
3461 | Constify. | |
3462 | * solib.c (sharedlibrary_command, no_shared_libraries): Constify. | |
3463 | * gcore.c (gcore_command): Constify. | |
3464 | ||
85c4be7c TT |
3465 | 2017-11-07 Tom Tromey <tom@tromey.com> |
3466 | ||
3467 | * printcmd.c (x_command): Call set_repeat_arguments. | |
3468 | * cli/cli-cmds.c (list_command): Call set_repeat_arguments. | |
3469 | * top.c (repeat_arguments): New global. | |
3470 | (set_repeat_arguments): New function. | |
3471 | (execute_command): Handle repeat_arguments. | |
3472 | (show_commands): Calls set_repeat_arguments. | |
3473 | * command.h (set_repeat_arguments): Declare. | |
3474 | ||
022643b4 TT |
3475 | 2017-11-07 Tom Tromey <tom@tromey.com> |
3476 | ||
3477 | * stack.c (backtrace_command): Use std::string. | |
3478 | (backtrace_command_1): Make "count_exp" const. | |
3479 | ||
5614fb77 TT |
3480 | 2017-11-07 Tom Tromey <tom@tromey.com> |
3481 | ||
3482 | * source.c (directory_switch, mod_path, add_path): Constify. | |
3483 | * defs.h (add_path, mod_path, directory_switch): Constify. | |
3484 | * mi/mi-cmd-env.c (env_mod_path): Constify. | |
3485 | ||
6be9a197 TT |
3486 | 2017-11-07 Tom Tromey <tom@tromey.com> |
3487 | ||
3488 | * infcmd.c (strip_bg_char): Return gdb::unique_xmalloc_ptr. | |
3489 | (run_command_1, continue_command, step_1, jump_command) | |
3490 | (signal_command, until_command, advance_command, finish_command) | |
3491 | (attach_command): Update. | |
3492 | ||
c2252c0d TT |
3493 | 2017-11-07 Tom Tromey <tom@tromey.com> |
3494 | ||
3495 | * command.h (set_cmd_cfunc): Don't declare. | |
3496 | * cli/cli-decode.c (set_cmd_cfunc): Now static. | |
3497 | ||
1ee870c5 TT |
3498 | 2017-11-07 Tom Tromey <tom@tromey.com> |
3499 | ||
3500 | * stack.c (select_frame_command): Constify. | |
3501 | * cli/cli-decode.c (add_com_suppress_notification): Constify. | |
3502 | * command.h (add_com_suppress_notification): Constify. | |
3503 | ||
ee7ddd71 TT |
3504 | 2017-11-07 Tom Tromey <tom@tromey.com> |
3505 | ||
3506 | * breakpoint.c (stop_command): Constify. | |
3507 | * cli/cli-decode.c (struct cmd_list_element): Constify. | |
3508 | * command.h (add_abbrev_prefix_cmd): Constify. | |
3509 | ||
95e95a6d PA |
3510 | 2017-11-07 Pedro Alves <palves@redhat.com> |
3511 | ||
3512 | * breakpoint.c (extract_bp_kind): New enum. | |
3513 | (extract_bp_num, extract_bp_or_bp_range): New functions, partially | |
3514 | factored out from ... | |
3515 | (extract_bp_number_and_location): ... here. | |
3516 | * cli/cli-utils.c (get_number_trailer): Handle '-$variable'. | |
3517 | ||
cc638e86 PA |
3518 | 2017-11-07 Pedro Alves <palves@redhat.com> |
3519 | ||
3520 | * breakpoint.c (extract_bp_number_and_location): Change return | |
3521 | type to void. Throw error instead of warning. | |
3522 | (enable_disable_command): Adjust. | |
3523 | ||
d0fe4701 XR |
3524 | 2017-11-07 Xavier Roirand <roirand@adacore.com> |
3525 | Pedro Alves <palves@redhat.com> | |
3526 | ||
3527 | * breakpoint.c (map_breakpoint_number_range): New, factored out | |
3528 | from ... | |
3529 | (map_breakpoint_numbers): ... here. | |
3530 | (find_location_by_number): Change parameters from string to | |
3531 | breakpoint number and location. | |
3532 | (extract_bp_number_and_location): New function. | |
3533 | (enable_disable_bp_num_loc) | |
3534 | (enable_disable_breakpoint_location_range) | |
3535 | (enable_disable_command): New functions, factored out ... | |
3536 | (enable_command, disable_command): ... these functions, and | |
3537 | adjusted to support ranges. | |
3538 | * NEWS: Document enable/disable breakpoint location range feature. | |
3539 | ||
635dc5b2 LM |
3540 | 2017-11-06 Luis Machado <luis.machado@linaro.org> |
3541 | ||
3542 | * MAINTAINERS (Write After Approval): Update my e-mail address. | |
3543 | ||
556e5da5 PA |
3544 | 2017-11-06 Pedro Alves <palves@redhat.com> |
3545 | ||
3546 | * gnu-nat.c (gnu_terminal_init): Delete. | |
3547 | (gnu_target): Don't install gnu_terminal_init. | |
3548 | * inflow.c (child_terminal_init_with_pgrp): Delete, merged with ... | |
3549 | (child_terminal_init): ... this function. | |
3550 | ||
d1928160 PA |
3551 | 2017-11-06 Pedro Alves <palves@redhat.com> |
3552 | ||
3553 | * common/common.m4 (GDB_AC_COMMON): No longer check termio.h nor | |
3554 | sgtty.h. | |
3555 | * config.in, configure: Regenerate. | |
3556 | ||
6aa899ce PA |
3557 | 2017-11-06 Pedro Alves <palves@redhat.com> |
3558 | ||
3559 | * event-top.c: Check SIGTSTP instead of STOP_SIGNAL thoughout. | |
3560 | (async_init_signals): Adjust. | |
3561 | (handle_stop_sig): Rename to ... | |
3562 | (handle_sigtstp): ... this. | |
3563 | (async_stop_sig): Rename to ... | |
3564 | (async_sigtstp_handler): ... this, and delete STOP_SIGNAL != | |
3565 | SIGTSTP path. | |
3566 | * event-top.h: Move signal.h include to the top. Check SIGTSTP | |
3567 | instead of STOP_SIGNAL thoughout. | |
3568 | (handle_stop_sig): Rename to ... | |
3569 | (handle_sigtstp): ... this. | |
3570 | * top.c (command_line_input): Replace STOP_SIGNAL -> SIGTSTP. | |
3571 | ||
a94799ac PA |
3572 | 2017-11-06 Pedro Alves <palves@redhat.com> |
3573 | ||
3574 | * inflow.c (child_terminal_inferior, child_terminal_ours_1): No | |
3575 | longer set flags twice in row. | |
3576 | ||
726e1356 PA |
3577 | 2017-11-06 Pedro Alves <palves@redhat.com> |
3578 | ||
3579 | * Makefile.in (SER_HARDWIRE): Update comment. | |
3580 | (HFILES_NO_SRCDIR): Remove gdb_termios.h. | |
3581 | * common/gdb_termios.h: Delete file. | |
3582 | * common/job-control.c: Include termios.h and unistd.h instead of | |
3583 | gdb_termios.h. | |
3584 | (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor | |
3585 | check. | |
3586 | (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS. | |
3587 | Remove sgtty code. | |
3588 | * configure.ac: No longer check for termio.h and sgtty.h. | |
3589 | * configure: Regenerate. | |
3590 | * inflow.c: Include termios.h instead of gdb_termios.h. Replace | |
3591 | PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout. | |
3592 | Replace PROCESS_GROUP_TYPE references with pid_t references | |
3593 | throughout. | |
3594 | (gdb_getpgrp): Delete. | |
3595 | (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp. | |
3596 | (child_terminal_inferior): Remove comment. Remove sgtty code. | |
3597 | (child_terminal_ours_1): Use tcgetpgrp directly instead of | |
3598 | gdb_getpgrp. Use serial_set_tty_state instead aof | |
3599 | serial_noflush_set_tty_state. Remove sgtty code. | |
3600 | * inflow.h: Include unistd.h instead of gdb_termios.h. Replace | |
3601 | PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check. | |
3602 | (inferior_process_group): Now returns pid_t. | |
3603 | * ser-base.c (ser_base_noflush_set_tty_state): Delete. | |
3604 | * ser-base.h (ser_base_noflush_set_tty_state): Delete. | |
3605 | * ser-event.c (serial_event_ops): Update. | |
3606 | * ser-go32.c (dos_noflush_set_tty_state): Delete. | |
3607 | (dos_ops): Update. | |
3608 | * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update. | |
3609 | * ser-pipe.c (pipe_ops): Update. | |
3610 | * ser-tcp.c (tcp_ops): Update. | |
3611 | * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove | |
3612 | HAVE_TERMIOS checks. | |
3613 | [HAVE_TERMIO] (struct hardwire_ttystate): Delete. | |
3614 | [HAVE_SGTTY] (struct hardwire_ttystate): Delete. | |
3615 | (get_tty_state, set_tty_state): Drop termio and sgtty code, and | |
3616 | assume termios. | |
3617 | (hardwire_noflush_set_tty_state): Delete. | |
3618 | (hardwire_print_tty_state, hardwire_drain_output) | |
3619 | (hardwire_flush_output, hardwire_flush_input) | |
3620 | (hardwire_send_break, hardwire_raw, hardwire_setbaudrate) | |
3621 | (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty | |
3622 | code, and assume termios. | |
3623 | (hardwire_ops): Update. | |
3624 | (_initialize_ser_hardwire): Remove HAVE_TERMIOS check. | |
3625 | * serial.c (serial_noflush_set_tty_state): Delete. | |
3626 | * serial.h (serial_noflush_set_tty_state): Delete. | |
3627 | (serial_ops::noflush_set_tty_state): Delete. | |
3628 | ||
1cfb73db UW |
3629 | 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com> |
3630 | ||
3631 | * Makefile.in (SFILES): Remove doublest.c and dfp.c. | |
3632 | (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h. | |
3633 | (COMMON_OBS): Remove doublest.o and dfp.o. | |
3634 | Do not build target-float.c (instead of doublest.c) | |
3635 | with -Wformat-nonliteral. | |
3636 | ||
3637 | * doublest.c: Remove file. | |
3638 | * doublest.h: Remove file. | |
3639 | * dfp.c: Remove file. | |
3640 | * dfp.h: Remove file. | |
3641 | ||
3642 | * target-float.c: Do not include "doublest.h" and "dfp.h". | |
3643 | (DOUBLEST): Move here from doublest.h. | |
3644 | (enum float_kind): Likewise. | |
3645 | (FLOATFORMAT_CHAR_BIT): Likewise. | |
3646 | (FLOATFORMAT_LARGEST_BYTES): Likewise. | |
3647 | (floatformat_totalsize_bytes): Move here from doublest.c. Make static. | |
3648 | (floatformat_precision): Likewise. | |
3649 | (floatformat_normalize_byteorder, get_field, put_field): Likewise. | |
3650 | (floatformat_is_negative, floatformat_classify, floatformat_mantissa): | |
3651 | Likewise. | |
3652 | (host_float_format, host_double_format, host_long_double_format): | |
3653 | Likewise. | |
3654 | (floatformat_to_string, floatformat_from_string): Likewise. | |
3655 | (floatformat_to_doublest): Likewise. Also, inline the original | |
3656 | convert_floatformat_to_doublest. | |
3657 | (floatformat_from_doublest): Likewise. Also, inline the original | |
3658 | convert_floatformat_from_doublest. | |
3659 | ||
3660 | Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h". | |
3661 | (MAX_DECIMAL_STRING): Move here from dfp.c. | |
3662 | (match_endianness): Likewise. | |
3663 | (set_decnumber_context, decimal_check_errors): Likewise. | |
3664 | (decimal_from_number, decimal_to_number): Likewise. | |
3665 | (decimal_to_string, decimal_from_string): Likewise. Make static. | |
3666 | (decimal_from_longest, decimal_from_ulongest): Likewise. | |
3667 | (decimal_to_longest): Likewise. | |
3668 | (decimal_binop, decimal_is_zero, decimal_compare): Likewise. | |
3669 | (decimal_convert): Likewise. | |
3670 | ||
b07e9c46 UW |
3671 | 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com> |
3672 | ||
3673 | * doublest.c: Do not include "gdbtypes.h". | |
3674 | (extract_typed_floating): Remove. | |
3675 | (store_typed_floating): Remove. | |
3676 | (convert_typed_floating): Remove. | |
3677 | * doublest.h (struct type): Remove. | |
3678 | (DOUBLEST_PRINT_FORMAT): Remove. | |
3679 | (DOUBLEST_SCAN_FORMAT): Remove. | |
3680 | (extract_typed_floating): Remove. | |
3681 | (store_typed_floating): Remove. | |
3682 | (convert_typed_floating): Remove. | |
3683 | ||
3684 | * dfp.c (decimal_from_doublest): Remove. | |
3685 | (decimal_to_doublest): Remove. | |
3686 | * dfp.h: Do not include "doublest.h". | |
3687 | (decimal_from_doublest): Remove. | |
3688 | (decimal_to_doublest): Remove. | |
3689 | ||
3690 | * value.c: Do not include "doublest.h" and "dfp.h". | |
3691 | (value_as_double): Remove. | |
3692 | (unpack_double): Remove. | |
3693 | (value_from_double): Remove. | |
3694 | (value_from_decfloat): Remove. | |
3695 | * value.h: Do not include "doublest.h". | |
3696 | (value_as_double): Remove. | |
3697 | (unpack_double): Remove. | |
3698 | (value_from_double): Remove. | |
3699 | (value_from_decfloat): Remove. | |
3700 | ||
3b2ca824 UW |
3701 | 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com> |
3702 | ||
3703 | * i386-tdep.c: Include "target-float.h". Do not include "doublest.h". | |
3704 | (i386_extract_return_value): Use target_float_convert. | |
3705 | (i386_store_return_value): Likewise. | |
3706 | * i387-tdep.c (i387_register_to_value): Use target_float_convert. | |
3707 | (i387_value_to_register): Likewise. | |
3708 | * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h". | |
3709 | (ia64_register_to_value): Use target_float_convert. | |
3710 | (ia64_value_to_register): Likewise. | |
3711 | (ia64_extract_return_value): Likewise. | |
3712 | (ia64_store_return_value): Likewise. | |
3713 | (ia64_push_dummy_call): Likewise. | |
3714 | * m68k-tdep.c: Include "target-float.h". | |
3715 | (m68k_register_to_value): Use target_float_convert. | |
3716 | (m68k_value_to_register): Likewise. | |
3717 | (m68k_svr4_extract_return_value): Likewise. | |
3718 | (m68k_svr4_store_return_value): Likewise. | |
3719 | * ppc-sysv-tdep.c: Include "target-float.h". | |
3720 | (ppc_sysv_abi_push_dummy_call): Use target_float_convert. | |
3721 | (do_ppc_sysv_return_value): Likewise. | |
3722 | (ppc64_sysv_abi_push_freg): Likewise. | |
3723 | (ppc64_sysv_abi_return_value_base): Likewise. | |
3724 | * rs6000-aix-tdep.c: Include "target-float.h". | |
3725 | (rs6000_push_dummy_call): Use target_float_convert. | |
3726 | (rs6000_return_value): Likewise. | |
3727 | * rs6000-lynx178-tdep.c: Include "target-float.h". | |
3728 | (rs6000_lynx178_push_dummy_call): Use target_float_convert. | |
3729 | (rs6000_lynx178_return_value): Likewise. | |
3730 | * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h". | |
3731 | (rs6000_register_to_value): Use target_float_convert. | |
3732 | (rs6000_value_to_register): Likewise. | |
3733 | * arm-tdep.c: Include "target-float.h". Do not include "doublest.h". | |
3734 | (arm_extract_return_value): Use target_float_convert. | |
3735 | (arm_store_return_value): Likewise. | |
3736 | * sh-tdep.c: Include "target-float.h". Do not include "doublest.h". | |
3737 | (sh_register_convert_to_virtual): Use target_float_convert. | |
3738 | (sh_register_convert_to_raw): Likewise. | |
3739 | * sh64-tdep.c: Include "target-float.h". | |
3740 | (sh64_extract_return_value): Use target_float_convert. | |
3741 | (sh64_register_convert_to_virtual): Likewise. | |
3742 | (sh64_register_convert_to_raw): Likewise. Fix argument types. | |
3743 | ||
14ad9311 UW |
3744 | 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com> |
3745 | ||
3746 | * target-float.c (floatformat_to_host_double): New function. | |
3747 | (floatformat_from_host_double): Likewise. | |
3748 | (target_float_to_host_double): Likewise. | |
3749 | (target_float_from_host_double): Likewise. | |
3750 | * target-float.h (target_float_to_host_double): Add prototype. | |
3751 | (target_float_from_host_double): Likewise. | |
3752 | ||
3753 | * guile/scm-value.c: Include "target-float.h". | |
3754 | (gdbscm_value_to_real): Use target_float_to_host_double. | |
3755 | Handle integer source values via value_as_long. | |
3756 | * guile/scm-math.c: Include "target-float.h". Do not include | |
3757 | "doublest.h", "dfp.h", and "expression.h". | |
3758 | (vlscm_convert_typed_number): Use target_float_from_host_double. | |
3759 | (vlscm_convert_number): Likewise. | |
3760 | ||
3761 | * python/py-value.c (valpy_float): Use target_float_to_host_double. | |
3762 | (convert_value_from_python): Use target_float_from_host_double. | |
3763 | ||
50eff16b UW |
3764 | 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com> |
3765 | ||
3766 | * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic. | |
3767 | (cast_from_fixed): Likewise. | |
3768 | (ada_scaling_type): New function. | |
3769 | (ada_delta): Return value instead of DOUBLEST. Perform target | |
3770 | arithmetic instead of host arithmetic. | |
3771 | (scaling_factor): Rename to ... | |
3772 | (ada_scaling_factor) ... this. Make non-static. Return value instead | |
3773 | of DOUBLEST. Perform target arithmetic instead of host arithmetic. | |
3774 | (ada_fixed_to_float): Remove. | |
3775 | (ada_float_to_fixed): Remove. | |
3776 | * ada-lang.h (ada_fixed_to_float): Remove. | |
3777 | (ada_float_to_fixed): Remove. | |
3778 | (ada_delta): Return value instead of DOUBLEST. | |
3779 | (ada_scaling_factor): Add prototype. | |
3780 | ||
3781 | * ada-typeprint.c: Include "target-float.h". | |
3782 | (print_fixed_point_type): Perform target arithmetic instead of | |
3783 | host arithmetic. | |
3784 | * ada-valprint.c: Include "target-float.h". | |
3785 | (ada_val_print_num): Perform target arithmetic instead of | |
3786 | host arithmetic for fixed-point types. | |
3787 | ||
66c02b9e UW |
3788 | 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com> |
3789 | ||
3790 | * target-float.c: Include <math.h>. | |
3791 | (floatformat_binop): New function. | |
3792 | (floatformat_compare): Likewise. | |
3793 | (target_float_binop): Likewise. | |
3794 | (target_float_compare): Likewise. | |
3795 | * target-float.h: Include "expression.h". | |
3796 | (target_float_binop): Add prototype. | |
3797 | (target_float_compare): Likewise. | |
3798 | ||
3799 | * valarith.c: Do not include "doublest.h" and "dfp.h". | |
3800 | Include "common/byte-vector.h". | |
3801 | (value_args_as_decimal): Remove, replace by ... | |
3802 | (value_args_as_target_float): ... this function. Handle both | |
3803 | binary and decimal target floating-point formats. | |
3804 | (scalar_binop): Handle both binary and decimal FP using | |
3805 | value_args_as_target_float and target_float_binop. | |
3806 | (value_equal): Handle both binary and decimal FP using | |
3807 | value_args_as_target_float and target_float_compare. | |
3808 | (value_less): Likewise. | |
3809 | (value_pos): Handle all scalar types as simple copy. | |
3810 | (value_neg): Handle all scalar types via BINOP_SUB from 0. | |
3811 | * dfp.c (decimal_binop): Throw error instead of internal_error | |
3812 | when called with an unsupported operation code. | |
3813 | ||
f69fdf9b UW |
3814 | 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com> |
3815 | ||
3816 | * target-float.c (target_float_to_string): New function. | |
3817 | (target_float_from_string): New function. | |
3818 | * target-float.h (target_float_to_string): Add prototype. | |
3819 | (target_float_from_string): Add prototype. | |
3820 | ||
3821 | * valprint.c: Include "target-float.h". Do not include | |
3822 | "doublest.h" and "dfp.h". | |
3823 | (print_floating): Use target_float_to_string. | |
3824 | * printcmd.c: Include "target-float.h". Do not include "dfp.h". | |
3825 | (printf_floating): Use target_float_to_string. | |
3826 | * i387-tdep.c: Include "target-float.h". Do not include "doublest.h". | |
3827 | (print_i387_value): Use target_float_to_string. | |
3828 | * mips-tdep.c: Include "target-float.h". | |
3829 | (mips_print_fp_register): Use target_float_to_string. | |
3830 | * sh64-tdep.c: Include "target-float.h". | |
3831 | (sh64_do_fp_register): Use target_float_to_string. | |
3832 | ||
3833 | * parse.c: Include "target-float.h". Do not include | |
3834 | "doublest.h" and "dfp.h". | |
3835 | (parse_float): Use target_float_from_string. | |
3836 | * stabsread.c: Include "target-float.h". Do not include "doublest.h". | |
3837 | (define_symbol): Use target_float_from_string. | |
3838 | * gdbarch-selftests.c: Include "target-float.h". | |
3839 | (register_to_value_test): Use target_float_from_string. | |
3840 | ||
70100014 UW |
3841 | 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com> |
3842 | ||
3843 | * Makefile.c (SFILES): Add target-float.c. | |
3844 | (HFILES_NO_SRCDIR): Add target-float.h. | |
3845 | (COMMON_OBS): Add target-float.o. | |
3846 | * target-float.h: New file. | |
3847 | * target-float.c: New file. | |
3848 | ||
3849 | * doublest.c (floatformat_classify): Fix detection of float_zero. | |
3850 | ||
3851 | * gdbtypes.c (is_floating_type): New function. | |
3852 | * gdbtypes.h (is_floating_type): Add prototype. | |
3853 | ||
3854 | * value.c: Do not include "floatformat.h". | |
3855 | (unpack_double): Use target_float_is_valid. | |
3856 | (is_floating_value): New function. | |
3857 | * value.h (is_floating_value): Add prototype- | |
3858 | ||
3859 | * valarith.c: Include "target-float.h". | |
3860 | (value_logical_not): Use target_float_is_zero. | |
3861 | ||
3862 | * python/py-value.c: Include "target-float.h". | |
3863 | (valpy_nonzero): Use target_float_is_zero. | |
3864 | ||
ab4b1c46 TT |
3865 | 2017-11-04 Tom Tromey <tom@tromey.com> |
3866 | ||
3867 | * h8300-tdep.c (h8300_push_dummy_call): Use std::vector. | |
3868 | ||
454dafbd TT |
3869 | 2017-11-04 Tom Tromey <tom@tromey.com> |
3870 | ||
3871 | * breakpoint.c (set_momentary_breakpoint): Return | |
3872 | breakpoint_up. | |
3873 | (until_break_command): Update. | |
3874 | (new_until_break_fsm): Change argument types to | |
3875 | breakpoint_up. | |
3876 | (set_momentary_breakpoint_at_pc): Return breakpoint_up. | |
3877 | (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint): | |
3878 | Remove. | |
3879 | * infcmd.c (finish_forward): Update. | |
3880 | * breakpoint.h (set_momentary_breakpoint) | |
3881 | (set_momentary_breakpoint_at_pc): Return breakpoint_up. | |
3882 | (make_cleanup_delete_breakpoint): Remove. | |
3883 | (struct breakpoint_deleter): New. | |
3884 | (breakpoint_up): New typedef. | |
3885 | * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update. | |
3886 | (insert_exception_resume_breakpoint): Update. | |
3887 | (insert_exception_resume_from_probe): Update. | |
3888 | (insert_longjmp_resume_breakpoint): Update. | |
3889 | * arm-linux-tdep.c (arm_linux_copy_svc): Update. | |
3890 | * elfread.c (elf_gnu_ifunc_resolver_stop): Update. | |
3891 | * infcall.c (call_function_by_hand_dummy): Update | |
3892 | ||
331b71e5 TT |
3893 | 2017-11-04 Tom Tromey <tom@tromey.com> |
3894 | ||
3895 | * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr. | |
3896 | ||
9f584b37 TT |
3897 | 2017-11-04 Tom Tromey <tom@tromey.com> |
3898 | ||
3899 | * linux-tdep.c (linux_core_info_proc_mappings): Use | |
3900 | gdb::def_vector. | |
3901 | (linux_get_siginfo_data): Return gdb::byte_vector. Remove | |
3902 | "size" argument. | |
3903 | (linux_corefile_thread): Update. | |
3904 | (linux_make_corefile_notes): Remove unused variable. | |
3905 | ||
779bc38e TT |
3906 | 2017-11-04 Tom Tromey <tom@tromey.com> |
3907 | ||
3908 | * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use | |
3909 | gdb::byte_vector. | |
3910 | ||
ed2b3126 TT |
3911 | 2017-11-04 Tom Tromey <tom@tromey.com> |
3912 | ||
3913 | * objfiles.c (do_free_objfile_cleanup): Remove. | |
3914 | * compile/compile-object-load.c (compile_object_load): Update. | |
3915 | * objfiles.h (make_cleanup_free_objfile): Remove. | |
3916 | ||
7f6743fd TT |
3917 | 2017-11-04 Tom Tromey <tom@tromey.com> |
3918 | ||
3919 | * sparc64-tdep.c (do_examine): Use gdb::def_vector. | |
3920 | (adi_read_versions): Change "tags" to "gdb_byte *". | |
3921 | (adi_print_versions): Likewise. | |
3922 | ||
c80049d3 TT |
3923 | 2017-11-04 Tom Tromey <tom@tromey.com> |
3924 | ||
3925 | * breakpoint.c | |
3926 | (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename | |
3927 | from start_rbreak_breakpoints. | |
3928 | (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints. | |
3929 | * breakpoint.h (class scoped_rbreak_breakpoints): New. | |
3930 | (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove. | |
3931 | * symtab.c (do_end_rbreak_breakpoints): Remove. | |
3932 | (rbreak_command): Use scoped_rbreak_breakpoints, std::string. | |
3933 | ||
167b0be1 TT |
3934 | 2017-11-04 Tom Tromey <tom@tromey.com> |
3935 | ||
3936 | * cp-namespace.c (reset_directive_searched): Remove. | |
3937 | (cp_lookup_symbol_via_imports): Use scoped_restore. | |
3938 | * cp-support.c (reset_directive_searched): Remove. | |
3939 | (make_symbol_overload_list_using): Use scoped_restore. | |
3940 | * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore. | |
3941 | (reset_directive_searched): Remove. | |
3942 | ||
5eae7aea TT |
3943 | 2017-11-04 Tom Tromey <tom@tromey.com> |
3944 | ||
3945 | * symfile.c (find_separate_debug_file_by_debuglink): Use | |
3946 | unique_xmalloc_ptr. | |
3947 | ||
c6bcad5f TT |
3948 | 2017-11-04 Tom Tromey <tom@tromey.com> |
3949 | ||
3950 | * compile/compile-loc2c.c (compute_stack_depth_worker): Change | |
3951 | type of "info". | |
3952 | (compute_stack_depth): Likewise. | |
3953 | (do_compile_dwarf_expr_to_c): Use std::vector. | |
3954 | ||
20dcd8ca TT |
3955 | 2017-11-04 Tom Tromey <tom@tromey.com> |
3956 | ||
3957 | * compile/compile-object-load.c (link_callbacks_einfo): Use | |
3958 | std::string. | |
3959 | ||
33c7c59d TT |
3960 | 2017-11-04 Tom Tromey <tom@tromey.com> |
3961 | ||
3962 | * dwarf2read.c (process_full_comp_unit, process_full_type_unit): | |
3963 | Use scoped_free_pendings. | |
3964 | * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use | |
3965 | scoped_free_pendings. | |
3966 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings. | |
3967 | (xcoff_initial_scan): Likewise. | |
3968 | * buildsym.c (reset_symtab_globals): Update comment. | |
3969 | (scoped_free_pendings): Rename from really_free_pendings. | |
3970 | (prepare_for_building): Update comment. | |
3971 | (buildsym_init): Likewise. | |
3972 | * buildsym.h (class scoped_free_pendings): New class. | |
3973 | (really_free_pendings): Don't declare. | |
3974 | ||
67fa57cf UW |
3975 | 2017-11-03 Ulrich Weigand <uweigand@de.ibm.com> |
3976 | ||
3977 | * doublest.c (convert_doublest_to_floatformat): Fix uninitialized | |
3978 | output when converting a zero value to a special byteorder format. | |
3979 | ||
f26ae15b YQ |
3980 | 2017-11-02 Yao Qi <yao.qi@linaro.org> |
3981 | ||
3982 | * frame.c (do_frame_register_read): Remove aspace. | |
3983 | * jit.c (jit_frame_sniffer): Likwise. | |
3984 | * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise. | |
3985 | * regcache.c (regcache::regcache): Pass nullptr. | |
3986 | (regcache_print): Caller updated. | |
3987 | * regcache.h (regcache::regcache): Remove one constructor | |
3988 | parameter aspace. | |
3989 | ||
6c6e9412 YQ |
3990 | 2017-11-02 Yao Qi <yao.qi@linaro.org> |
3991 | ||
3992 | * regcache.h (regcache) <m_readonly_p>: Change it to const bool. | |
3993 | ||
8b86c959 YQ |
3994 | 2017-11-02 Yao Qi <yao.qi@linaro.org> |
3995 | ||
3996 | * breakpoint.c (insert_single_step_breakpoints): Update. | |
3997 | * frame.c (struct frame_info) <aspace>: Add const. | |
3998 | (frame_save_as_regcache): Add const. | |
3999 | (get_frame_address_space): Return const address_space *. | |
4000 | * frame.h (get_frame_address_space): Update declaration. | |
4001 | * infrun.c (struct step_over_info) <aspace>: Add const. | |
4002 | (set_step_over_info): Make aspace const. | |
4003 | (displaced_step_prepare_throw): Change variable const. | |
4004 | (resume): Likewise. | |
4005 | (proceed): Likewise. | |
4006 | (adjust_pc_after_break): Likewise. | |
4007 | (save_waitstatus): Likewise. | |
4008 | (handle_signal_stop): Likewise. | |
4009 | (keep_going_pass_signal): Likewise. | |
4010 | * jit.c (jit_frame_sniffer): Add const. | |
4011 | * mips-tdep.c (mips_single_step_through_delay): Likewise. | |
4012 | * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise. | |
4013 | * record-full.c (record_full_wait_1): Likewise. | |
4014 | * regcache.c (regcache::regcache): Change parameter to const. | |
4015 | * regcache.h (regcache::regcache): Likewise. | |
4016 | (regcache::aspace): Return const address_space *. | |
4017 | (regcache) <m_aspace>: Add const. | |
4018 | ||
a01bda52 YQ |
4019 | 2017-11-02 Yao Qi <yao.qi@linaro.org> |
4020 | ||
4021 | * darwin-nat.c (cancel_breakpoint): Use regcache->aspace (). | |
4022 | * frame.c (create_sentinel_frame): Likewise. | |
4023 | * infrun.c (displaced_step_prepare_throw): Likewise. | |
4024 | (resume): Likewise. | |
4025 | (thread_still_needs_step_over_bp): Likewise. | |
4026 | (proceed): Likewise. | |
4027 | (do_target_wait): Likewise. | |
4028 | (adjust_pc_after_break): Likewise. | |
4029 | (handle_syscall_event): Likewise. | |
4030 | (save_waitstatus): Likewise. | |
4031 | (handle_inferior_event_1): Likewise. | |
4032 | (handle_signal_stop): Likewise. | |
4033 | (keep_going_pass_signal): Likewise. | |
4034 | * linux-nat.c (status_callback): Likewise. | |
4035 | (save_stop_reason): Likewise. | |
4036 | (resume_stopped_resumed_lwps): Likewise. | |
4037 | * record-full.c (record_full_exec_insn): Likewise. | |
4038 | (record_full_wait_1): Likewise. | |
4039 | * regcache.c (get_regcache_aspace): Remove. | |
4040 | * regcache.h (get_regcache_aspace): Remove. | |
4041 | ||
d999647b YQ |
4042 | 2017-11-02 Yao Qi <yao.qi@linaro.org> |
4043 | ||
4044 | * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove. | |
4045 | (init_regcache_descr): Use gdbarch_num_regs. | |
4046 | (regcache::regcache): Likewise. | |
4047 | (regcache::get_register_status): Likewise. | |
4048 | (regcache::assert_raw_regnum): Likewise. | |
4049 | (regcache::cooked_read): Likewise. | |
4050 | (regcache::cooked_read_value): Likewise. | |
4051 | (regcache::cooked_write): Likewise. | |
4052 | (regcache::dump): Likewise. | |
4053 | (regcache::num_raw_registers): New method. | |
4054 | * regcache.h (class regcache) <num_raw_registers>: New. | |
4055 | ||
4e888c28 YQ |
4056 | 2017-11-02 Yao Qi <yao.qi@linaro.org> |
4057 | ||
4058 | * regcache.c (regcache::assert_regnum): New method. | |
4059 | (regcache::invalidate): Call assert_regnum. | |
4060 | (regcache::raw_update): Likewise. | |
4061 | (regcache::raw_write): Likewise. | |
4062 | (regcache::raw_read_part): Likewise. | |
4063 | (regcache::raw_write_part): Likewise. | |
4064 | (regcache::raw_supply): Likewise. | |
4065 | (regcache::raw_supply_integer): Likewise. | |
4066 | (regcache::raw_supply_zeroed): Likewise. | |
4067 | (regcache::raw_collect): Likewise. | |
4068 | (regcache::raw_collect_integer): Likewise. | |
4069 | * regcache.h (regcache::assert_regnum): Declare. | |
4070 | ||
2e1b49b3 YQ |
4071 | 2017-11-02 Yao Qi <yao.qi@linaro.org> |
4072 | ||
4073 | * regcache.c (regcache::dump): Remove code. | |
4074 | ||
6c5218df YQ |
4075 | 2017-11-02 Yao Qi <yao.qi@linaro.org> |
4076 | ||
4077 | * regcache.c (struct regcache_descr) <sizeof_raw_register_status>: | |
4078 | Remove. | |
4079 | <sizeof_cooked_register_status>: Remove. | |
4080 | (init_regcache_descr): Update. | |
4081 | (regcache::regcache): Use nr_cooked_registers and nr_raw_registers. | |
4082 | (regcache::save): Likewise. | |
4083 | (regcache::dump): Likewise. | |
4084 | ||
dcc31d28 JB |
4085 | 2017-11-01 James Bowman <james.bowman@ftdichip.com> |
4086 | ||
4087 | * ft32-tdep.c (ft32_fetch_instruction): New function. | |
4088 | (ft32_analyze_prologue): Use ft32_fetch_instruction(). | |
4089 | ||
3a87ae65 SM |
4090 | 2017-10-31 Simon Marchi <simon.marchi@polymtl.ca> |
4091 | ||
4092 | * cli/cli-script.c (execute_control_command): Rename to ... | |
4093 | (execute_control_command_1): ... this. | |
4094 | (execute_control_command): New function. | |
4095 | ||
09b847f3 SM |
4096 | 2017-10-31 Simon Marchi <simon.marchi@ericsson.com> |
4097 | ||
4098 | * tracepoint.c (tfind_command): Remove const_cast. | |
4099 | ||
f871c485 MG |
4100 | 2017-10-30 Mike Gulick <mgulick@mathworks.com> |
4101 | ||
4102 | * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h. | |
4103 | ||
b020ff80 SM |
4104 | 2017-10-30 Simon Marchi <simon.marchi@ericsson.com> |
4105 | ||
4106 | * common/common-utils.h (in_inclusive_range): New function. | |
4107 | * arm-tdep.c (arm_record_extension_space): Use | |
4108 | in_inclusive_range. | |
4109 | (thumb_record_ld_st_reg_offset): Use in_inclusive_range. | |
4110 | * cris-tdep.c (cris_spec_reg_applicable): Use | |
4111 | in_inclusive_range. | |
4112 | ||
1b81856f | 4113 | 2017-10-30 Pedro Alves <palves@redhat.com> |
175654b9 | 4114 | Simon Marchi <simon.marchi@ericsson.com> |
1b81856f PA |
4115 | |
4116 | * remote.c (remote_set_syscall_catchpoint): Build a std::string | |
4117 | instead of a gdb::unique_xmalloc_ptr, using string_appendf. | |
4118 | ||
31b833b3 PA |
4119 | 2017-10-30 Pedro Alves <palves@redhat.com> |
4120 | ||
4121 | * common/common-utils.c (string_appendf, string_vappendf): New | |
4122 | functions. | |
4123 | * common/common-utils.h (string_appendf, string_vappendf): New | |
4124 | declarations. | |
4125 | * unittests/common-utils-selftests.c (string_appendf_func) | |
4126 | (test_appendf_func, string_vappendf_wrapper, string_appendf_tests) | |
4127 | (string_vappendf_tests): New functions. | |
4128 | (_initialize_common_utils_selftests): Register "string_appendf" and | |
4129 | "string_vappendf tests". | |
4130 | ||
4a250334 PA |
4131 | 2017-10-30 Pedro Alves <palves@redhat.com> |
4132 | ||
4133 | * unittests/common-utils-selftests.c (format_func): New typedef. | |
4134 | (string_printf_tests, string_vprintf_tests): Tests factored out | |
4135 | and merged to ... | |
4136 | (test_format_func): ... this new function. | |
4137 | (string_printf_tests, string_vprintf_tests): Reimplement on top of | |
4138 | test_format_func. | |
4139 | ||
16c5c17e SM |
4140 | 2017-10-29 Simon Marchi <simon.marchi@ericsson.com> |
4141 | ||
4142 | * darwin-nat.c: Remove include of gdb.h. | |
4143 | ||
7ca51576 SM |
4144 | 2017-10-29 Simon Marchi <simon.marchi@ericsson.com> |
4145 | ||
4146 | * xtensa-xtregs.c: Fix formatting issues. | |
4147 | ||
c1342859 SM |
4148 | 2017-10-29 Simon Marchi <simon.marchi@ericsson.com> |
4149 | ||
4150 | * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify. | |
4151 | ||
484d8d36 MD |
4152 | 2017-10-28 Maksim Dzabraev <dzabraew@gmail.com> |
4153 | ||
4154 | PR python/21213 | |
4155 | * python/py-infthread.c (thpy_get_inferior): Increment reference | |
4156 | of inferior before returning it. | |
4157 | ||
b5540b5f SM |
4158 | 2017-10-27 Simon Marchi <simon.marchi@ericsson.com> |
4159 | ||
4160 | * unittests/common-utils-selftests.c (format): Add | |
4161 | ATTRIBUTE_PRINTF. | |
4162 | ||
5a9dcda1 SM |
4163 | 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca> |
4164 | ||
4165 | * xml-syscall.c (struct syscall_desc): Add constructor. | |
4166 | <name>: Change type to std::string. | |
4167 | (syscall_desc_up): New typedef. | |
4168 | (syscall_desc_p): Remove typeder. | |
4169 | (DEF_VEC_P(syscall_desc_p)): Remove. | |
4170 | (struct syscall_group_desc): Add constructor. | |
4171 | <name>: Change type to std::string. | |
4172 | <syscalls>: Change type to std::vector. | |
4173 | (syscall_group_desc_up): New typedef. | |
4174 | (syscall_group_desc_p): Remove typedef. | |
4175 | (DEF_VEC_P(syscall_group_desc_p)): Remove. | |
4176 | (struct syscalls_info) <syscalls>: Change type to std::vector of | |
4177 | unique_ptr. | |
4178 | <groups>: Likewise. | |
4179 | <my_gdb_datadir>: Change type to std::string. | |
4180 | (syscalls_info_up): New typedef. | |
4181 | (allocate_syscalls_info): Remove. | |
4182 | (syscalls_info_free_syscalls_desc): Remove. | |
4183 | (syscalls_info_free_syscall_group_desc): Remove. | |
4184 | (free_syscalls_info): Remove. | |
4185 | (make_cleanup_free_syscalls_info): Remove. | |
4186 | (syscall_group_create_syscall_group_desc): Adjust. | |
4187 | (syscall_group_add_syscall): Adjust. | |
4188 | (syscall_create_syscall_desc): Adjust. | |
4189 | (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup. | |
4190 | (init_syscalls_info): Adjust. | |
4191 | (syscall_group_get_group_by_name): Adjust. | |
4192 | (xml_get_syscall_number): Adjust. | |
4193 | (xml_get_syscall_name): Adjust. | |
4194 | (xml_list_of_syscalls): Adjust. | |
4195 | (xml_list_syscalls_by_group): Adjust. | |
4196 | (xml_list_of_groups): Adjust. | |
4197 | ||
45461e0d SM |
4198 | 2017-10-27 Simon Marchi <simon.marchi@ericsson.com> |
4199 | ||
4200 | * probe.h: Don't include gdb_vecs.h. | |
4201 | (DEF_VEC_P (probe_p)): Remove. | |
4202 | (find_probes_in_objfile): Return an std::vector. | |
4203 | * probe.c (find_probes_in_objfile): Likewise. | |
4204 | * breakpoint.c (breakpoint_objfile_data) | |
4205 | <longjmp_probes>: Change type to std::vector. | |
4206 | <exception_probes>: Likewise. | |
4207 | (free_breakpoint_probes): Don't manually free vectors. | |
4208 | (create_longjmp_master_breakpoint): Adjust. | |
4209 | (create_exception_master_breakpoint): Adjust. | |
4210 | * solib-svr4.c (svr4_create_probe_breakpoints): Change | |
4211 | parameter type, adjust. | |
4212 | (svr4_create_solib_event_breakpoints): Adjust. | |
4213 | ||
43dce439 SM |
4214 | 2017-10-27 Simon Marchi <simon.marchi@ericsson.com> |
4215 | ||
4216 | * breakpoint.c (breakpoint_objfile_data): Initialize fields. | |
4217 | (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data | |
4218 | with new. | |
4219 | (free_breakpoint_probes): Rename to ... | |
4220 | (free_breakpoint_objfile_data): ... this, and call delete on | |
4221 | bp_objfile_data.. | |
4222 | ||
6a1b9516 SM |
4223 | 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca> |
4224 | ||
4225 | * auto-load.c: Don't include gdb_vecs.h, include algorithm. | |
4226 | (loaded_script_ptr): Remove typedef. | |
4227 | (DEF_VEC_P (loaded_script_ptr)): Remove. | |
4228 | (struct collect_matching_scripts_data): Add constructor. | |
4229 | <scripts_p>: Change type to (pointer to) std::vector. | |
4230 | (collect_matching_scripts_data): Adjust. | |
4231 | (sort_scripts_by_name): Make suitable for std::sort. | |
4232 | (print_scripts): Don't sort vector, adjust to std::vector. | |
4233 | (auto_load_info_scripts): Sort vectors, adjust to std::vector. | |
4234 | ||
593e3209 SM |
4235 | 2017-10-27 Simon Marchi <simon.marchi@ericsson.com> |
4236 | ||
4237 | * symfile.c (filename_language): Make struct, not typedef. Add | |
4238 | constructor. | |
4239 | <ext>: Change type to std::string. | |
4240 | (DEF_VEC_O (filename_language)): Remove. | |
4241 | (filename_language_table): Change type to std::vector. | |
4242 | (add_filename_language): Adjust. | |
4243 | (set_ext_lang_command): Adjust. | |
4244 | (info_ext_lang_command): Adjust. | |
4245 | (deduce_language_from_filename): Adjust. | |
4246 | (class scoped_restore_filename_language_table): Remove. | |
4247 | (test_filename_language): Use scoped_restore. | |
4248 | (test_set_ext_lang_command): Use scoped_restore, adjust to | |
4249 | std::vector change. | |
4250 | ||
32fa66eb SM |
4251 | 2017-10-27 Simon Marchi <simon.marchi@ericsson.com> |
4252 | ||
4253 | * symfile.c: Include selftest.h. | |
4254 | (class scoped_restore_filename_language_table): New. | |
4255 | (test_filename_language): New test. | |
4256 | (test_set_ext_lang_command): New test. | |
4257 | (_initialize_symfile): Register tests. | |
4258 | ||
4a27f119 KS |
4259 | 2017-10-27 Keith Seitz <keiths@redhat.com> |
4260 | ||
4261 | * breakpoint.c (print_breakpoint_location): Use the symbol saved | |
4262 | in the bp_location, falling back to find_pc_sect_function when | |
4263 | needed. | |
4264 | (add_location_to_breakpoint): Save sal->symbol. | |
4265 | * breakpoint.h (struct bp_location) <symbol>: New field. | |
4266 | * symtab.c (find_function_start_sal): Save the symbol into the SaL. | |
4267 | * symtab.h (struct symtab_and_line) <symbol>: New field. | |
4268 | ||
a43f3893 PF |
4269 | 2017-10-26 Patrick Frants <osscontribute@gmail.com> |
4270 | ||
7453e6b2 | 4271 | PR gdb/13669 |
a43f3893 PF |
4272 | * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast |
4273 | to rewind obstack. | |
4274 | ||
23cc4e1b PA |
4275 | 2017-10-26 Pedro Alves <palves@redhat.com> |
4276 | ||
4277 | * remote.c (remote_async_terminal_ours_p): Delete. | |
4278 | (remote_open_1, remote_terminal_inferior, remote_terminal_ours): | |
4279 | Remove references to 'remote_async_terminal_ours_p'. | |
4280 | ||
6abc18bb YQ |
4281 | 2017-10-26 Yao Qi <yao.qi@linaro.org> |
4282 | ||
4283 | * breakpoint.h (regular_breakpoint_inserted_here_p): Remove. | |
4284 | ||
bd522513 YQ |
4285 | 2017-10-26 Yao Qi <yao.qi@linaro.org> |
4286 | ||
4287 | * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make | |
4288 | aspace const. | |
4289 | * break-catch-syscall.c (breakpoint_hit_catch_syscall): | |
4290 | Likewise. | |
4291 | * breakpoint.c (bpstat_check_location): Remove cast. | |
4292 | (breakpoint_hit_catch_fork): Make aspce const. | |
4293 | (breakpoint_hit_catch_solib): Likewise. | |
4294 | (breakpoint_hit_catch_exec): Likewise. | |
4295 | (breakpoint_hit_ranged_breakpoint): Likewise. | |
4296 | (breakpoint_hit_watchpoint): Likewise. | |
4297 | (base_breakpoint_breakpoint_hit): Likewise. | |
4298 | (bkpt_breakpoint_hit): Likewise. | |
4299 | (dprintf_breakpoint_hit): Likewise. | |
4300 | (tracepoint_breakpoint_hit): Likewise. | |
4301 | * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise. | |
4302 | ||
accd0bcd YQ |
4303 | 2017-10-26 Yao Qi <yao.qi@linaro.org> |
4304 | ||
4305 | * breakpoint.c (breakpoint_location_address_match): Change | |
4306 | "struct address_space *" to "const address_space". | |
4307 | (breakpoint_location_address_range_overlap): Likewise. | |
4308 | (breakpoint_here_p): Likewise. | |
4309 | (breakpoint_in_range_p): Likewise. | |
4310 | (moribund_breakpoint_here_p): Likewise. | |
4311 | (bp_location_inserted_here_p): Likewise. | |
4312 | (software_breakpoint_inserted_here_p): Likewise. | |
4313 | (hardware_breakpoint_inserted_here_p): Likewise. | |
4314 | (hardware_watchpoint_inserted_in_range): Likewise. | |
4315 | (bpstat_check_location): Likewise. | |
4316 | (bpstat_stop_status): Likewise. | |
4317 | (breakpoint_address_match): Likewise. | |
4318 | (breakpoint_address_match_range): Likewise. | |
4319 | (breakpoint_location_address_match): Likewise. | |
4320 | (breakpoint_location_address_range_overlap): Likewise. | |
4321 | (insert_single_step_breakpoint): Likewise. | |
4322 | (breakpoint_has_location_inserted_here): Likewise. | |
4323 | (single_step_breakpoint_inserted_here_p): Likewise. | |
4324 | (pc_at_non_inline_function): Likewise. | |
4325 | * breakpoint.h (bpstat_stop_status): Update declaration. | |
4326 | (breakpoint_here_p): Likewise. | |
4327 | (breakpoint_in_range_p): Likewise. | |
4328 | (moribund_breakpoint_here_p): Likewise. | |
4329 | (breakpoint_inserted_here_p): Likewise. | |
4330 | (software_breakpoint_inserted_here_p): Likewise. | |
4331 | (hardware_breakpoint_inserted_here_p): Likewise. | |
4332 | (breakpoint_has_location_inserted_here): Likewise. | |
4333 | (single_step_breakpoint_inserted_here_p): Likewise. | |
4334 | (hardware_watchpoint_inserted_in_range): Likewise. | |
4335 | (breakpoint_address_match): Likewise. | |
4336 | (insert_single_step_breakpoint): Likewise. | |
4337 | (pc_at_non_inline_function): Likewise. | |
4338 | * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise. | |
4339 | * record.c (record_check_stopped_by_breakpoint): Likewise. | |
4340 | * record.h (record_check_stopped_by_breakpoint): Likewise. | |
4341 | * thread.c (thread_has_single_step_breakpoint_here): Likewise. | |
4342 | ||
ac7936df YQ |
4343 | 2017-10-25 Yao Qi <yao.qi@linaro.org> |
4344 | ||
4345 | * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use | |
4346 | regcache->arch () instead get_regcache_arch. | |
4347 | * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers): | |
4348 | Likewise. | |
4349 | (aarch64_fbsd_store_inferior_registers): Likewise. | |
4350 | * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise. | |
4351 | (store_gregs_to_thread): Likewise. | |
4352 | (fetch_fpregs_from_thread): Likewise. | |
4353 | (store_fpregs_to_thread): Likewise. | |
4354 | * aarch64-tdep.c (aarch64_extract_return_value): Likewise. | |
4355 | (aarch64_store_return_value): Likewise. | |
4356 | (aarch64_software_single_step): Likewise. | |
4357 | * aix-thread.c (aix_thread_wait): Likewise. | |
4358 | (supply_reg32): Likewise. | |
4359 | (supply_sprs64): Likewise. | |
4360 | (supply_sprs32): Likewise. | |
4361 | (fill_gprs64): Likewise. | |
4362 | (fill_gprs32): Likewise. | |
4363 | (fill_sprs64): Likewise. | |
4364 | (fill_sprs32): Likewise. | |
4365 | (store_regs_user_thread): Likewise. | |
4366 | (store_regs_kernel_thread): Likewise. | |
4367 | * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise. | |
4368 | (alphabsd_store_inferior_registers): Likewise. | |
4369 | * alpha-tdep.c (alpha_extract_return_value): Likewise. | |
4370 | (alpha_store_return_value): Likewise. | |
4371 | (alpha_deal_with_atomic_sequence): Likewise. | |
4372 | (alpha_next_pc): Likewise. | |
4373 | (alpha_software_single_step): Likewise. | |
4374 | * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise. | |
4375 | (amd64bsd_store_inferior_registers): Likewise. | |
4376 | * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): | |
4377 | Likewise. | |
4378 | (amd64_linux_store_inferior_registers): Likewise. | |
4379 | * amd64-nat.c (amd64_supply_native_gregset): Likewise. | |
4380 | (amd64_collect_native_gregset): Likewise. | |
4381 | * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise. | |
4382 | (amd64obsd_collect_uthread): Likewise. | |
4383 | * amd64-tdep.c (amd64_supply_fpregset): Likewise. | |
4384 | (amd64_collect_fpregset): Likewise. | |
4385 | (amd64_supply_fxsave): Likewise. | |
4386 | (amd64_supply_xsave): Likewise. | |
4387 | (amd64_collect_fxsave): Likewise. | |
4388 | (amd64_collect_xsave): Likewise. | |
4389 | * arc-tdep.c (arc_write_pc): Likewise. | |
4390 | * arch-utils.c (default_skip_permanent_breakpoint): Likewise. | |
4391 | * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise. | |
4392 | (arm_fbsd_store_inferior_registers): Likewise. | |
4393 | * arm-linux-nat.c (fetch_vfp_regs): Likewise. | |
4394 | (store_vfp_regs): Likewise. | |
4395 | (arm_linux_fetch_inferior_registers): Likewise. | |
4396 | (arm_linux_store_inferior_registers): Likewise. | |
4397 | * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise. | |
4398 | (arm_linux_sigreturn_next_pc): Likewise. | |
4399 | (arm_linux_get_next_pcs_syscall_next_pc): Likewise. | |
4400 | * arm-nbsd-nat.c (arm_supply_gregset): Likewise. | |
4401 | (fetch_register): Likewise. | |
4402 | (store_register): Likewise. | |
4403 | * arm-tdep.c (arm_is_thumb): Likewise. | |
4404 | (displaced_in_arm_mode): Likewise. | |
4405 | (bx_write_pc): Likewise. | |
4406 | (arm_get_next_pcs_addr_bits_remove): Likewise. | |
4407 | (arm_software_single_step): Likewise. | |
4408 | (arm_extract_return_value): Likewise. | |
4409 | (arm_store_return_value): Likewise. | |
4410 | (arm_write_pc): Likewise. | |
4411 | * bfin-tdep.c (bfin_extract_return_value): Likewise. | |
4412 | * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise. | |
4413 | (bsd_uthread_store_registers): Likewise. | |
4414 | * core-regset.c (fetch_core_registers): Likewise. | |
4415 | * corelow.c (get_core_registers): Likewise. | |
4416 | * cris-tdep.c (cris_store_return_value): Likewise. | |
4417 | (cris_extract_return_value): Likewise. | |
4418 | (find_step_target): Likewise. | |
4419 | (find_step_target): Likewise. | |
4420 | (cris_software_single_step): Likewise. | |
4421 | * ctf.c (ctf_fetch_registers): Likewise. | |
4422 | * darwin-nat.c (cancel_breakpoint): Likewise. | |
4423 | * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise. | |
4424 | * frv-tdep.c (frv_extract_return_value): Likewise. | |
4425 | * ft32-tdep.c (ft32_store_return_value): Likewise. | |
4426 | (ft32_extract_return_value): Likewise. | |
4427 | * go32-nat.c (fetch_register): Likewise. | |
4428 | (go32_fetch_registers): Likewise. | |
4429 | (go32_store_registers): Likewise. | |
4430 | (store_register): Likewise. | |
4431 | * h8300-tdep.c (h8300_extract_return_value): Likewise. | |
4432 | (h8300_store_return_value): Likewise. | |
4433 | * hppa-linux-nat.c (fetch_register): Likewise. | |
4434 | (store_register): Likewise. | |
4435 | (hppa_linux_fetch_inferior_registers): Likewise. | |
4436 | (hppa_linux_store_inferior_registers): Likewise. | |
4437 | * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise. | |
4438 | (i386_darwin_store_inferior_registers): Likewise. | |
4439 | * i386-gnu-nat.c (gnu_fetch_registers): Likewise. | |
4440 | (gnu_store_registers): Likewise. | |
4441 | * i386-linux-nat.c (fetch_register): Likewise. | |
4442 | (store_register): Likewise. | |
4443 | (supply_gregset): Likewise. | |
4444 | (fill_gregset): Likewise. | |
4445 | (i386_linux_fetch_inferior_registers): Likewise. | |
4446 | (i386_linux_store_inferior_registers): Likewise. | |
4447 | (i386_linux_resume): Likewise. | |
4448 | * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache): | |
4449 | Likewise. | |
4450 | * i386-nto-tdep.c (i386nto_supply_gregset): Likewise. | |
4451 | * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise. | |
4452 | * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise. | |
4453 | (i386obsd_collect_uthread): Likewise. | |
4454 | * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise. | |
4455 | (i386_supply_gregset): Likewise. | |
4456 | (i386_collect_gregset): Likewise. | |
4457 | (i386_supply_fpregset): Likewise. | |
4458 | (i386_collect_fpregset): Likewise. | |
4459 | (i386_mpx_bd_base): Likewise. | |
4460 | * i386-v4-nat.c (supply_fpregset): Likewise. | |
4461 | (fill_fpregset): Likewise. | |
4462 | * i387-tdep.c (i387_supply_fsave): Likewise. | |
4463 | (i387_collect_fsave): Likewise. | |
4464 | (i387_supply_fxsave): Likewise. | |
4465 | (i387_collect_fxsave): Likewise. | |
4466 | (i387_supply_xsave): Likewise. | |
4467 | (i387_collect_xsave): Likewise. | |
4468 | * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise. | |
4469 | (ia64_linux_store_registers): Likewise. | |
4470 | * ia64-tdep.c (ia64_access_rse_reg): Likewise. | |
4471 | (ia64_extract_return_value): Likewise. | |
4472 | (ia64_store_return_value): Likewise. | |
4473 | (find_func_descr): Likewise. | |
4474 | * inf-child.c (inf_child_fetch_inferior_registers): Likewise. | |
4475 | * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise. | |
4476 | (inf_ptrace_store_registers): Likewise. | |
4477 | * infrun.c (use_displaced_stepping): Likewise. | |
4478 | (displaced_step_prepare_throw): Likewise. | |
4479 | (resume): Likewise. | |
4480 | (proceed): Likewise. | |
4481 | (do_target_wait): Likewise. | |
4482 | (adjust_pc_after_break): Likewise. | |
4483 | (handle_inferior_event_1): Likewise. | |
4484 | (handle_signal_stop): Likewise. | |
4485 | (save_infcall_suspend_state): Likewise. | |
4486 | (restore_infcall_suspend_state): Likewise. | |
4487 | * iq2000-tdep.c (iq2000_extract_return_value): Likewise. | |
4488 | * jit.c (jit_frame_prev_register): Likewise. | |
4489 | * linux-nat.c (save_stop_reason): Likewise. | |
4490 | (linux_nat_wait_1): Likewise. | |
4491 | (resume_stopped_resumed_lwps): Likewise. | |
4492 | * linux-record.c (record_linux_sockaddr): Likewise. | |
4493 | (record_linux_msghdr): Likewise. | |
4494 | (record_linux_system_call): Likewise. | |
4495 | * linux-tdep.c (linux_collect_thread_registers): Likewise. | |
4496 | * lm32-tdep.c (lm32_extract_return_value): Likewise. | |
4497 | (lm32_store_return_value): Likewise. | |
4498 | * m32c-tdep.c (m32c_read_flg): Likewise. | |
4499 | (m32c_pseudo_register_read): Likewise. | |
4500 | (m32c_pseudo_register_write): Likewise. | |
4501 | * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise. | |
4502 | (m32r_linux_collect_gregset): Likewise. | |
4503 | * m32r-tdep.c (m32r_store_return_value): Likewise. | |
4504 | (m32r_extract_return_value): Likewise. | |
4505 | * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise. | |
4506 | (m68kbsd_collect_fpregset): Likewise. | |
4507 | * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise. | |
4508 | * m68k-linux-nat.c (fetch_register): Likewise. | |
4509 | (old_fetch_inferior_registers): Likewise. | |
4510 | (old_store_inferior_registers): Likewise. | |
4511 | (store_regs): Likewise. | |
4512 | * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise. | |
4513 | (m68k_svr4_store_return_value): Likewise. | |
4514 | * m88k-tdep.c (m88k_store_arguments): Likewise. | |
4515 | * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise. | |
4516 | (mi_cmd_data_write_register_values): Likewise. | |
4517 | * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise. | |
4518 | (mips_fbsd_store_inferior_registers): Likewise. | |
4519 | * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise. | |
4520 | (mips_fbsd_supply_gregs): Likewise. | |
4521 | (mips_fbsd_collect_fpregs): Likewise. | |
4522 | (mips_fbsd_collect_gregs): Likewise. | |
4523 | (mips_fbsd_supply_fpregset): Likewise. | |
4524 | (mips_fbsd_collect_fpregset): Likewise. | |
4525 | (mips_fbsd_supply_gregset): Likewise. | |
4526 | (mips_fbsd_collect_gregset): Likewise. | |
4527 | * mips-linux-nat.c (supply_gregset): Likewise. | |
4528 | (fill_gregset): Likewise. | |
4529 | (supply_fpregset): Likewise. | |
4530 | (fill_fpregset): Likewise. | |
4531 | * mips-linux-tdep.c (mips_supply_gregset): Likewise. | |
4532 | (mips_fill_gregset): Likewise. | |
4533 | (mips_supply_fpregset): Likewise. | |
4534 | (mips_fill_fpregset): Likewise. | |
4535 | (mips64_supply_gregset): Likewise. | |
4536 | (micromips_linux_sigframe_validate): Likewise. | |
4537 | * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise. | |
4538 | (mipsnbsd_fetch_inferior_registers): Likewise. | |
4539 | (mipsnbsd_store_inferior_registers): Likewise. | |
4540 | * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise. | |
4541 | (mipsnbsd_supply_gregset): Likewise. | |
4542 | (mipsnbsd_iterate_over_regset_sections): Likewise. | |
4543 | (mipsnbsd_supply_reg): Likewise. | |
4544 | (mipsnbsd_supply_fpreg): Likewise. | |
4545 | * mips-tdep.c (mips_in_frame_stub): Likewise. | |
4546 | (mips_dummy_id): Likewise. | |
4547 | (is_octeon_bbit_op): Likewise. | |
4548 | (micromips_bc1_pc): Likewise. | |
4549 | (extended_mips16_next_pc): Likewise. | |
4550 | (mips16_next_pc): Likewise. | |
4551 | (deal_with_atomic_sequence): Likewise. | |
4552 | * moxie-tdep.c (moxie_process_readu): Likewise. | |
4553 | * nios2-tdep.c (nios2_get_next_pc): Likewise. | |
4554 | * nto-procfs.c (procfs_store_registers): Likewise. | |
4555 | * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise. | |
4556 | (ppcfbsd_store_inferior_registers): Likewise. | |
4557 | * ppc-linux-nat.c (fetch_vsx_register): Likewise. | |
4558 | (fetch_altivec_register): Likewise. | |
4559 | (get_spe_registers): Likewise. | |
4560 | (fetch_spe_register): Likewise. | |
4561 | (fetch_altivec_registers): Likewise. | |
4562 | (fetch_all_gp_regs): Likewise. | |
4563 | (fetch_all_fp_regs): Likewise. | |
4564 | (store_vsx_register): Likewise. | |
4565 | (store_altivec_register): Likewise. | |
4566 | (set_spe_registers): Likewise. | |
4567 | (store_spe_register): Likewise. | |
4568 | (store_altivec_registers): Likewise. | |
4569 | (store_all_gp_regs): Likewise. | |
4570 | (store_all_fp_regs): Likewise. | |
4571 | * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise. | |
4572 | (ppc_linux_collect_gregset): Likewise. | |
4573 | (ppc_canonicalize_syscall): Likewise. | |
4574 | (ppc_linux_record_signal): Likewise. | |
4575 | (ppu2spu_prev_register): Likewise. | |
4576 | * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise. | |
4577 | * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise. | |
4578 | (ppcobsd_store_registers): Likewise. | |
4579 | * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers): | |
4580 | Likewise. | |
4581 | (ppc_ravenscar_generic_store_registers): Likewise. | |
4582 | * procfs.c (procfs_fetch_registers): Likewise. | |
4583 | (procfs_store_registers): Likewise. | |
4584 | * ravenscar-thread.c (ravenscar_fetch_registers): Likewise. | |
4585 | (ravenscar_store_registers): Likewise. | |
4586 | (ravenscar_prepare_to_store): Likewise. | |
4587 | * record-btrace.c (record_btrace_fetch_registers): Likewise. | |
4588 | * record-full.c (record_full_wait_1): Likewise. | |
4589 | (record_full_registers_change): Likewise. | |
4590 | (record_full_store_registers): Likewise. | |
4591 | (record_full_core_fetch_registers): Likewise. | |
4592 | (record_full_save): Likewise. | |
4593 | (record_full_goto_insn): Likewise. | |
4594 | * regcache.c (regcache_register_size): Likewise. | |
4595 | (get_regcache_arch): Remove. | |
4596 | (regcache_read_pc): Likewise. | |
4597 | * regcache.h (get_regcache_arch): Remove. | |
4598 | * remote-sim.c (gdbsim_fetch_register): Likewise. | |
4599 | (gdbsim_store_register): Likewise. | |
4600 | * remote.c (fetch_register_using_p): Likewise. | |
4601 | (send_g_packet): Likewise. | |
4602 | (remote_prepare_to_store): Likewise. | |
4603 | (store_registers_using_G): Likewise. | |
4604 | * reverse.c (save_bookmark_command): Likewise. | |
4605 | (goto_bookmark_command): Likewise. | |
4606 | * rs6000-aix-tdep.c (branch_dest): Likewise. | |
4607 | * rs6000-nat.c (rs6000_ptrace64): Likewise. | |
4608 | (fetch_register): Likewise. | |
4609 | * rs6000-tdep.c (ppc_supply_reg): Likewise. | |
4610 | (ppc_collect_reg): Likewise. | |
4611 | (ppc_collect_gregset): Likewise. | |
4612 | (ppc_collect_fpregset): Likewise. | |
4613 | (ppc_collect_vsxregset): Likewise. | |
4614 | (ppc_collect_vrregset): Likewise. | |
4615 | (ppc_displaced_step_hw_singlestep): Likewise. | |
4616 | (rs6000_pseudo_register_read): Likewise. | |
4617 | (rs6000_pseudo_register_write): Likewise. | |
4618 | * s390-linux-nat.c (supply_gregset): Likewise. | |
4619 | (fill_gregset): Likewise. | |
4620 | (s390_linux_fetch_inferior_registers): Likewise. | |
4621 | * s390-linux-tdep.c (s390_write_pc): Likewise. | |
4622 | (s390_software_single_step): Likewise. | |
4623 | (s390_all_but_pc_registers_record): Likewise. | |
4624 | (s390_linux_syscall_record): Likewise. | |
4625 | * sentinel-frame.c (sentinel_frame_prev_arch): Likewise. | |
4626 | * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise. | |
4627 | (shnbsd_store_inferior_registers): Likewise. | |
4628 | * sh-tdep.c (sh_extract_return_value_nofpu): Likewise. | |
4629 | (sh_extract_return_value_fpu): Likewise. | |
4630 | (sh_store_return_value_nofpu): Likewise. | |
4631 | (sh_corefile_supply_regset): Likewise. | |
4632 | (sh_corefile_collect_regset): Likewise. | |
4633 | * sh64-tdep.c (sh64_extract_return_value): Likewise. | |
4634 | (sh64_store_return_value): Likewise. | |
4635 | * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise. | |
4636 | * sparc-nat.c (sparc_fetch_inferior_registers): Likewise. | |
4637 | (sparc_store_inferior_registers): Likewise. | |
4638 | * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise. | |
4639 | (sparc_ravenscar_prepare_to_store): Likewise. | |
4640 | * sparc-tdep.c (sparc32_store_arguments): Likewise. | |
4641 | (sparc_analyze_control_transfer): Likewise. | |
4642 | (sparc_step_trap): Likewise. | |
4643 | (sparc_software_single_step): Likewise. | |
4644 | (sparc32_gdbarch_init): Likewise. | |
4645 | (sparc_supply_rwindow): Likewise. | |
4646 | (sparc_collect_rwindow): Likewise. | |
4647 | * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise. | |
4648 | * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise. | |
4649 | (sparc64nbsd_collect_gregset): Likewise. | |
4650 | (sparc64nbsd_supply_fpregset): Likewise. | |
4651 | (sparc64nbsd_collect_fpregset): Likewise. | |
4652 | * sparc64-tdep.c (sparc64_store_arguments): Likewise. | |
4653 | (sparc64_supply_gregset): Likewise. | |
4654 | (sparc64_collect_gregset): Likewise. | |
4655 | (sparc64_supply_fpregset): Likewise. | |
4656 | (sparc64_collect_fpregset): Likewise. | |
4657 | * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise. | |
4658 | * spu-tdep.c (spu_unwind_sp): Likewise. | |
4659 | (spu2ppu_prev_register): Likewise. | |
4660 | (spu_memory_remove_breakpoint): Likewise. | |
4661 | * stack.c (return_command): Likewise. | |
4662 | * tic6x-tdep.c (tic6x_extract_signed_field): Likewise. | |
4663 | * tracefile-tfile.c (tfile_fetch_registers): Likewise. | |
4664 | * tracefile.c (trace_save_ctf): Likewise. | |
4665 | * windows-nat.c (do_windows_fetch_inferior_registers): Likewise. | |
4666 | (do_windows_store_inferior_registers): Likewise. | |
4667 | (windows_resume): Likewise. | |
4668 | * xtensa-linux-nat.c (fill_gregset): Likewise. | |
4669 | (supply_gregset_reg): Likewise. | |
4670 | * xtensa-tdep.c (xtensa_register_write_masked): Likewise. | |
4671 | (xtensa_register_read_masked): Likewise. | |
4672 | (xtensa_supply_gregset): Likewise. | |
4673 | (xtensa_extract_return_value): Likewise. | |
4674 | (xtensa_store_return_value): Likewise. | |
4675 | ||
edd079d9 UW |
4676 | 2017-10-25 Ulrich Weigand <uweigand@de.ibm.com> |
4677 | ||
4678 | * doublest.c (floatformat_from_string): New function. | |
4679 | * doublest.h (floatformat_from_string): Add prototype. | |
4680 | ||
4681 | * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ... | |
4682 | (OP_FLOAT): ... this. | |
4683 | * expression.h: Do not include "doublest.h". | |
4684 | (union exp_element): Replace doubleconst and decfloatconst by | |
4685 | new element floatconst. | |
4686 | * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE. | |
4687 | (ada_evaluate_subexp): Likewise. | |
4688 | * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of | |
4689 | OP_DOUBLE and OP_DECFLOAT. | |
4690 | * expprint.c (print_subexp_standard): Likewise. | |
4691 | (dump_subexp_body_standard): Likewise. | |
4692 | * breakpoint.c (watchpoint_exp_is_const): Likewise. | |
4693 | ||
4694 | * parse.c: Include "dfp.h". | |
4695 | (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove. | |
4696 | (write_exp_elt_floatcst): New function. | |
4697 | (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE | |
4698 | and OP_DECFLOAT. | |
4699 | (operator_check_standard): Likewise. | |
4700 | (parse_float): Do not accept suffix. Take type as input. Return bool. | |
4701 | Return target format buffer instead of host DOUBLEST. | |
4702 | Use floatformat_from_string and decimal_from_string to parse | |
4703 | either binary or decimal floating-point types. | |
4704 | (parse_c_float): Remove. | |
4705 | * parser-defs.h: Do not include "doublest.h". | |
4706 | (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove. | |
4707 | (write_exp_elt_floatcst): Add prototype. | |
4708 | (parse_float): Update prototype. | |
4709 | (parse_c_float): Remove. | |
4710 | ||
4711 | * c-exp.y: Do not include "dfp.h". | |
4712 | (typed_val_float): Use byte buffer instead of DOUBLEST. | |
4713 | (typed_val_decfloat): Remove. | |
4714 | (DECFLOAT): Remove. | |
4715 | (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst. | |
4716 | (parse_number): Update to new parse_float interface. | |
4717 | Parse suffixes and determine type before calling parse_float. | |
4718 | Handle decimal and binary FP types the same way. | |
4719 | ||
4720 | * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST. | |
4721 | (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst. | |
4722 | (parse_number): Update to new parse_float interface. | |
4723 | Parse suffixes and determine type before calling parse_float. | |
4724 | ||
4725 | * f-exp.y: Replace dval by typed_val_float. | |
4726 | (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst. | |
4727 | (parse_number): Use parse_float instead of atof. | |
4728 | ||
4729 | * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST. | |
4730 | (parse_go_float): Remove. | |
4731 | (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst. | |
4732 | (parse_number): Call parse_float instead of parse_go_float. | |
4733 | Parse suffixes and determine type before calling parse_float. | |
4734 | ||
4735 | * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST. | |
4736 | (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst. | |
4737 | (parse_number): Update to new parse_float interface. | |
4738 | Parse suffixes and determine type before calling parse_float. | |
4739 | ||
4740 | * m2-exp.y: Replace dval by byte buffer val. | |
4741 | (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst. | |
4742 | (parse_number): Call parse_float instead of atof. | |
4743 | ||
4744 | * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST. | |
4745 | (lex_number): Call parse_float instead of strtod. | |
4746 | (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE. | |
4747 | (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE. | |
4748 | Use write_exp_elt_floatcst. | |
4749 | (unit_testing): Remove static variable. | |
4750 | (rust_type): Do not check unit_testing. | |
4751 | (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser. | |
4752 | ||
4753 | * ada-exp.y (type_float, type_double): Remove. | |
4754 | (typed_val_float): Use byte buffer instead of DOUBLEST. | |
4755 | (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst. | |
4756 | * ada-lex.l (processReal): Use parse_float instead of sscanf. | |
4757 | ||
cc628f3d AH |
4758 | 2017-10-25 Alan Hayward <alan.hayward@arm.com> |
4759 | ||
4760 | * aarch64-tdep.h (enum aarch64_regnum): Remove. | |
4761 | * arch/aarch64.h: New file. | |
4762 | ||
09a7c6aa UW |
4763 | 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com> |
4764 | ||
4765 | * dfp.h (decimal_from_string): Use const reference for argument. | |
4766 | * dfp.c (decimal_from_string): Likewise. | |
4767 | ||
8ba0dd51 UW |
4768 | 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com> |
4769 | ||
4770 | * i387-tdep.c (print_i387_value): Use floatformat_to_string. | |
4771 | * sh64-tdep.c (sh64_do_fp_register): Likewise. | |
4772 | * mips-tdep.c (mips_print_fp_register): Likewise. | |
4773 | ||
16e812b2 UW |
4774 | 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com> |
4775 | ||
4776 | * common/format.h (enum argclass): Replace decfloat_arg by | |
4777 | dec32float_arg, dec64float_arg, and dec128float_arg. | |
4778 | * common/format.c (parse_format_string): Update to return | |
4779 | new decimal float argument classes. | |
4780 | ||
4781 | * printcmd.c (printf_decfloat): Rename to ... | |
4782 | (printf_floating): ... this. Add argclass argument, and use it | |
4783 | instead of parsing the format string again. Add support for | |
4784 | binary floating-point values, using floatformat_to_string. | |
4785 | Convert value to the target format if it doesn't already match. | |
4786 | (ui_printf): Call printf_floating instead of printf_decfloat, | |
4787 | also for double_arg / long_double_arg. Pass argclass. | |
4788 | ||
4789 | * dfp.c (decimal_to_string): Add format string argument. | |
4790 | * dfp.h (decimal_to_string): Likewise. | |
4791 | ||
4792 | * doublest.c (floatformat_to_string): Add format string argument. | |
4793 | * doublest.h (floatformat_to_string): Likewise. | |
4794 | ||
fdf0cbc2 UW |
4795 | 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com> |
4796 | ||
4797 | * doublest.c (floatformat_precision): New routine. | |
4798 | (floatformat_to_string): Likewise. | |
4799 | * doublest.c (floatformat_to_string): Add prototype. | |
4800 | ||
4801 | * printcmd.c (print_scalar_formatted): Only call print_floating | |
4802 | on floating-point types. | |
4803 | * valprint.c: Do not include "floatformat.h". | |
4804 | (generic_val_print_decfloat): Remove. | |
4805 | (generic_val_print): Call generic_val_print_float for both | |
4806 | TYPE_CODE_FLT and TYPE_CODE_DECFLOAT. | |
4807 | (print_floating): Use floatformat_to_string. Handle decimal float. | |
4808 | (print_decimal_floating): Remove, merge into floatformat_to_string. | |
4809 | * value.h (print_decimal_floating): Remove. | |
4810 | ||
4811 | * Makefile.in: Do not build doublest.c with -Wformat-nonliteral. | |
4812 | ||
5033013f UW |
4813 | 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com> |
4814 | ||
4815 | * buildsym.c (end_symtab_get_static_block): Use std::stable_sort. | |
4816 | ||
a664f67e SM |
4817 | 2017-10-21 Simon Marchi <simon.marchi@ericsson.com> |
4818 | ||
4819 | * memattr.h: Don't include vec.h. | |
4820 | (struct mem_attrib): Initialize fields. | |
4821 | <unknown>: New static method. | |
4822 | (struct mem_region): Add constructors, operator<, initialize | |
4823 | fields. | |
4824 | * memattr.c: Include algorithm. | |
4825 | (default_mem_attrib, unknown_mem_attrib): Remove. | |
4826 | (user_mem_region_list): New global. | |
4827 | (target_mem_region_list, mem_region_list): Change type to | |
4828 | std::vector<mem_region>. | |
4829 | (mem_use_target): Now a function. | |
4830 | (target_mem_regions_valid): Change type to bool. | |
4831 | (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove. | |
4832 | (require_user_regions): Adjust. | |
4833 | (require_target_regions): Adjust. | |
4834 | (create_mem_region): Adjust. | |
4835 | (lookup_mem_region): Adjust. | |
4836 | (invalidate_target_mem_regions): Adjust. | |
4837 | (mem_clear): Rename to... | |
4838 | (user_mem_clear): ... this, and adjust. | |
4839 | (mem_command): Adjust. | |
4840 | (info_mem_command): Adjust. | |
4841 | (mem_enable, enable_mem_command, mem_disable, | |
4842 | disable_mem_command): Adjust. | |
4843 | (mem_delete): Adjust. | |
4844 | (delete_mem_command): Adjust. | |
4845 | * memory-map.h (parse_memory_map): Return an std::vector. | |
4846 | * memory-map.c (parse_memory_map): Likewise. | |
4847 | (struct memory_map_parsing_data): Add constructor. | |
4848 | <memory_map>: Point to std::vector. | |
4849 | (memory_map_start_memory): Adjust. | |
4850 | (memory_map_end_memory): Adjust. | |
4851 | (memory_map_end_property): Adjust. | |
4852 | (clear_result): Remove. | |
4853 | * remote.c (remote_memory_map): Return an std::vector. | |
4854 | * target-debug.h (target_debug_print_VEC_mem_region_s__p): | |
4855 | Remove. | |
4856 | (target_debug_print_mem_region_vector): New. | |
4857 | * target-delegates.c: Regenerate. | |
4858 | * target.h (mem_region_vector): New typedef. | |
4859 | (to_memory_map): Return mem_region_vector. | |
4860 | (target_memory_map): Return an std::vector. | |
4861 | * target.c (target_memory_map): Return an std::vector. | |
4862 | (flash_erase_command): Adjust. | |
4863 | ||
6e17c565 SM |
4864 | 2017-10-21 Simon Marchi <simon.marchi@ericsson.com> |
4865 | ||
4866 | * memory-map.c (struct memory_map_parsing_data) <property_name>: | |
4867 | Change type to std::string. | |
4868 | (memory_map_start_property): Adjust. | |
4869 | (memory_map_end_property): Adjust. | |
4870 | ||
cfba9872 SM |
4871 | 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca> |
4872 | ||
4873 | * infrun.h: Include common/byte-vector.h. | |
4874 | (struct displaced_step_closure): New struct. | |
4875 | (struct buf_displaced_step_closure): New struct. | |
4876 | * infrun.c (displaced_step_closure::~displaced_step_closure): | |
4877 | Provide default implementation. | |
4878 | (displaced_step_clear): Deallocate step closure with delete. | |
4879 | * aarch64-tdep.c (displaced_step_closure): Rename to ... | |
4880 | (aarch64_displaced_step_closure): ... this, extend | |
4881 | displaced_step_closure. | |
4882 | (aarch64_displaced_step_data) <dsc>: Change type to | |
4883 | aarch64_displaced_step_closure. | |
4884 | (aarch64_displaced_step_copy_insn): Adjust to type change, use | |
4885 | unique_ptr. | |
4886 | (aarch64_displaced_step_fixup): Add cast for displaced step | |
4887 | closure. | |
4888 | * amd64-tdep.c (displaced_step_closure): Rename to ... | |
4889 | (amd64_displaced_step_closure): ... this, extend | |
4890 | displaced_step_closure. | |
4891 | <insn_buf>: Change type to std::vector<gdb_byte>. | |
4892 | <max_len>: Remove. | |
4893 | (fixup_riprel): Change type of DSC parameter, adjust to type | |
4894 | change of insn_buf. | |
4895 | (fixup_displaced_copy): Change type of DSC parameter. | |
4896 | (amd64_displaced_step_copy_insn): Instantiate | |
4897 | amd64_displaced_step_closure. | |
4898 | (amd64_displaced_step_fixup): Add cast for closure type, adjust | |
4899 | to type change of insn_buf. | |
4900 | * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of | |
4901 | parameter DSC. | |
4902 | (arm_linux_copy_svc): Likewise. | |
4903 | (cleanup_kernel_helper_return): Likewise. | |
4904 | (arm_catch_kernel_helper_return): Likewise. | |
4905 | (arm_linux_displaced_step_copy_insn): Instantiate | |
4906 | arm_displaced_step_closure. | |
4907 | * arm-tdep.c (arm_pc_is_thumb): Add cast for closure. | |
4908 | (displaced_read_reg): Change type of parameter DSC. | |
4909 | (branch_write_pc): Likewise. | |
4910 | (load_write_pc): Likewise. | |
4911 | (alu_write_pc): Likewise. | |
4912 | (displaced_write_reg): Likewise. | |
4913 | (arm_copy_unmodified): Likewise. | |
4914 | (thumb_copy_unmodified_32bit): Likewise. | |
4915 | (thumb_copy_unmodified_16bit): Likewise. | |
4916 | (cleanup_preload): Likewise. | |
4917 | (install_preload): Likewise. | |
4918 | (arm_copy_preload): Likewise. | |
4919 | (thumb2_copy_preload): Likewise. | |
4920 | (install_preload_reg): Likewise. | |
4921 | (arm_copy_preload_reg): Likewise. | |
4922 | (cleanup_copro_load_store): Likewise. | |
4923 | (install_copro_load_store): Likewise. | |
4924 | (arm_copy_copro_load_store) Likewise. | |
4925 | (thumb2_copy_copro_load_store): Likewise. | |
4926 | (cleanup_branch): Likewise. | |
4927 | (install_b_bl_blx): Likewise. | |
4928 | (arm_copy_b_bl_blx): Likewise. | |
4929 | (thumb2_copy_b_bl_blx): Likewise. | |
4930 | (thumb_copy_b): Likewise. | |
4931 | (install_bx_blx_reg): Likewise. | |
4932 | (arm_copy_bx_blx_reg): Likewise. | |
4933 | (thumb_copy_bx_blx_reg): Likewise. | |
4934 | (cleanup_alu_imm): Likewise. | |
4935 | (arm_copy_alu_imm): Likewise. | |
4936 | (thumb2_copy_alu_imm): Likewise. | |
4937 | (cleanup_alu_reg): Likewise. | |
4938 | (install_alu_reg): Likewise. | |
4939 | (arm_copy_alu_reg): Likewise. | |
4940 | (thumb_copy_alu_reg): Likewise. | |
4941 | (cleanup_alu_shifted_reg): Likewise. | |
4942 | (install_alu_shifted_reg): Likewise. | |
4943 | (arm_copy_alu_shifted_reg): Likewise. | |
4944 | (cleanup_load): Likewise. | |
4945 | (cleanup_store): Likewise. | |
4946 | (arm_copy_extra_ld_st): Likewise. | |
4947 | (install_load_store): Likewise. | |
4948 | (thumb2_copy_load_literal): Likewise. | |
4949 | (thumb2_copy_load_reg_imm): Likewise. | |
4950 | (arm_copy_ldr_str_ldrb_strb): Likewise. | |
4951 | (cleanup_block_load_all): Likewise. | |
4952 | (cleanup_block_store_pc): Likewise. | |
4953 | (cleanup_block_load_pc): Likewise. | |
4954 | (arm_copy_block_xfer): Likewise. | |
4955 | (thumb2_copy_block_xfer): Likewise. | |
4956 | (cleanup_svc): Likewise. | |
4957 | (install_svc): Likewise. | |
4958 | (arm_copy_svc): Likewise. | |
4959 | (thumb_copy_svc): Likewise. | |
4960 | (arm_copy_undef): Likewise. | |
4961 | (thumb_32bit_copy_undef): Likewise. | |
4962 | (arm_copy_unpred): Likewise. | |
4963 | (arm_decode_misc_memhint_neon): Likewise. | |
4964 | (arm_decode_unconditional): Likewise. | |
4965 | (arm_decode_miscellaneous): Likewise. | |
4966 | (arm_decode_dp_misc): Likewise. | |
4967 | (arm_decode_ld_st_word_ubyte): Likewise. | |
4968 | (arm_decode_media): Likewise. | |
4969 | (arm_decode_b_bl_ldmstm): Likewise. | |
4970 | (arm_decode_ext_reg_ld_st): Likewise. | |
4971 | (thumb2_decode_dp_shift_reg): Likewise. | |
4972 | (thumb2_decode_ext_reg_ld_st): Likewise. | |
4973 | (arm_decode_svc_copro): Likewise. | |
4974 | (thumb2_decode_svc_copro): Likewise. | |
4975 | (install_pc_relative): Likewise. | |
4976 | (thumb_copy_pc_relative_16bit): Likewise. | |
4977 | (thumb_decode_pc_relative_16bit): Likewise. | |
4978 | (thumb_copy_pc_relative_32bit): Likewise. | |
4979 | (thumb_copy_16bit_ldr_literal): Likewise. | |
4980 | (thumb_copy_cbnz_cbz): Likewise. | |
4981 | (thumb2_copy_table_branch): Likewise. | |
4982 | (cleanup_pop_pc_16bit_all): Likewise. | |
4983 | (thumb_copy_pop_pc_16bit): Likewise. | |
4984 | (thumb_process_displaced_16bit_insn): Likewise. | |
4985 | (decode_thumb_32bit_ld_mem_hints): Likewise. | |
4986 | (thumb_process_displaced_32bit_insn): Likewise. | |
4987 | (thumb_process_displaced_insn): Likewise. | |
4988 | (arm_process_displaced_insn): Likewise. | |
4989 | (arm_displaced_init_closure): Likewise. | |
4990 | (arm_displaced_step_fixup): Add cast for closure. | |
4991 | * arm-tdep.h: Include infrun.h. | |
4992 | (displaced_step_closure): Rename to ... | |
4993 | (arm_displaced_step_closure): ... this, extend | |
4994 | displaced_step_closure. | |
4995 | <u::svc::copy_svc_os>: Change type of parameter DSC. | |
4996 | <cleanup>: Likewise. | |
4997 | (arm_process_displaced_insn): Likewise. | |
4998 | (arm_displaced_init_closure): Likewise. | |
4999 | (displaced_read_reg): Likewise. | |
5000 | (displaced_write_reg): Likewise. | |
5001 | * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): | |
5002 | Adjust. | |
5003 | * i386-tdep.h: Include infrun.h. | |
5004 | (i386_displaced_step_closure): New typedef. | |
5005 | * i386-tdep.c (i386_displaced_step_copy_insn): Use | |
5006 | i386_displaced_step_closure. | |
5007 | (i386_displaced_step_fixup): Adjust. | |
5008 | * rs6000-tdep.c (ppc_displaced_step_closure): New typedef. | |
5009 | (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure | |
5010 | and unique_ptr. | |
5011 | (ppc_displaced_step_fixup): Adjust. | |
5012 | * s390-linux-tdep.c (s390_displaced_step_closure): New typedef. | |
5013 | (s390_displaced_step_copy_insn): Use s390_displaced_step_closure | |
5014 | and unique_ptr. | |
5015 | (s390_displaced_step_fixup): Adjust. | |
5016 | ||
b392b304 SM |
5017 | 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca> |
5018 | ||
5019 | * interps.h (interp_resume, interp_suspend, interp_set_temp): | |
5020 | Remove declarations. | |
5021 | ||
d5833c62 TT |
5022 | 2017-10-20 Tom Tromey <tom@tromey.com> |
5023 | ||
5024 | * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a | |
5025 | std::vector. | |
5026 | (gdb_bfd_record_inclusion): Update. | |
5027 | (bfdp): Remove typedef. | |
5028 | ||
06d5bbc8 TT |
5029 | 2017-10-20 Tom Tromey <tom@tromey.com> |
5030 | ||
5031 | * gdb_bfd.c (gdb_bfd_ref): Use new. | |
5032 | (struct gdb_bfd_data): Add constructor, destructor, and member | |
5033 | initializers. | |
5034 | (gdb_bfd_unref): Use delete. | |
5035 | ||
2712ce2e TT |
5036 | 2017-10-20 Tom Tromey <tom@tromey.com> |
5037 | ||
5038 | * exec.c (exec_file_attach): Use new_bfd_ref. | |
5039 | * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref. | |
5040 | * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr) | |
5041 | (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use | |
5042 | new_bfd_ref. | |
5043 | * gdb_bfd.h (new_bfd_ref): New function. | |
5044 | ||
fcc8fb2f PA |
5045 | 2017-10-20 Pedro Alves <palves@redhat.com> |
5046 | ||
5047 | * main.c (captured_command_loop): Add attribute noinline. | |
5048 | ||
4c2287b0 SM |
5049 | 2017-10-19 Simon Marchi <simon.marchi@ericsson.com> |
5050 | ||
5051 | * interps.c (struct interp_factory): Add constructor. | |
5052 | (interp_factory_p): Remove typedef. | |
5053 | (DEF_VEC_P(interp_factory_p)): Remove. | |
5054 | (interpreter_factories): Change type to std::vector. | |
5055 | (interp_factory_register): Adjust. | |
5056 | (interp_lookup): Adjust. | |
5057 | (interpreter_completer): Adjust. | |
5058 | ||
3d415c26 TT |
5059 | 2017-10-19 Tom Tromey <tom@tromey.com> |
5060 | ||
5061 | * break-catch-syscall.c (catch_syscall_completer): Use | |
5062 | std::string, gdb::unique_xmalloc_ptr. | |
5063 | ||
395423c4 TT |
5064 | 2017-10-19 Tom Tromey <tom@tromey.com> |
5065 | ||
5066 | * infcall.c (call_function_by_hand_dummy): Use std::string. | |
5067 | ||
54f70bc1 TT |
5068 | 2017-10-19 Tom Tromey <tom@tromey.com> |
5069 | ||
5070 | * mi/mi-main.c (mi_cmd_execute): Update. | |
5071 | * top.h (prepare_execute_command): Return scoped_value_mark. | |
5072 | * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN. | |
5073 | Add move constructor. | |
5074 | * top.c (prepare_execute_command): Return scoped_value_mark. | |
5075 | (execute_command): Update. | |
5076 | ||
63929e84 PA |
5077 | 2017-10-19 Pedro Alves <palves@redhat.com> |
5078 | ||
5079 | * xml-support.c (xml_fetch_content_from_file): Check fread's | |
5080 | return. | |
5081 | ||
a75868f5 PA |
5082 | 2017-10-19 Pedro Alves <palves@redhat.com> |
5083 | ||
5084 | * ser-base.c (ser_base_read_error_fd): Delete the file handler if | |
5085 | async. | |
5086 | (handle_error_fd): New function. | |
5087 | (ser_base_async): Add/delete an event loop file handler for | |
5088 | error_fd. | |
5089 | ||
2edf834e PA |
5090 | 2017-10-19 Pedro Alves <palves@redhat.com> |
5091 | ||
5092 | * xml-support.c (xml_fetch_content_from_file): Don't read in | |
5093 | chunks. Instead use fseek to determine the file's size, and read | |
5094 | it in one go. | |
5095 | ||
c8ba13ad KS |
5096 | 2017-11-18 Keith Seitz <keiths@redhat.com> |
5097 | ||
5098 | * c-exp.y (oper): Canonicalize conversion operators of user-defined | |
5099 | types. | |
5100 | Add whitespace to front of type name. | |
5101 | ||
37534686 KS |
5102 | 2017-10-18 Keith Seitz <keiths@redhat.com> |
5103 | ||
5104 | * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled | |
5105 | DW_AT_accessibility. | |
5106 | ||
28c7c158 YQ |
5107 | 2017-10-18 Yao Qi <yao.qi@linaro.org> |
5108 | ||
5109 | * features/tic6x-c62x-linux.c: Remove. | |
5110 | ||
30f0b101 TT |
5111 | 2017-10-17 Tom Tromey <tom@tromey.com> |
5112 | ||
5113 | * disasm.c (do_mixed_source_and_assembly_deprecated): Use | |
5114 | gdb::optional, ui_out_emit_list, ui_out_emit_tuple. | |
5115 | (do_mixed_source_and_assembly): Likewise. | |
5116 | ||
57e12da9 TT |
5117 | 2017-10-17 Tom Tromey <tom@tromey.com> |
5118 | ||
5119 | * regcache.c (regcache::xfer_part): Remove assertion. | |
5120 | ||
7b700999 PA |
5121 | 2017-10-17 Pedro Alves <palves@redhat.com> |
5122 | ||
5123 | * xml-support.c (xml_fetch_content_from_file): Call | |
5124 | unique_ptr::release() instead unique_ptr::get() when passing | |
5125 | through xrealloc. | |
5126 | ||
d3037ba6 YQ |
5127 | 2017-10-17 Yao Qi <yao.qi@linaro.org> |
5128 | ||
5129 | * regcache.c (regcache::xfer_part): Remove parameters read and | |
5130 | write, add parameter is_raw. All callers are updated. | |
5131 | ||
83d5a34d KS |
5132 | 2017-10-16 Keith Seitz <keiths@redhat.com> |
5133 | ||
5134 | * c-typeprint.c (enum access_specifier): Moved here from | |
5135 | c_type_print_base. | |
5136 | (output_access_specifier): New function. | |
5137 | (c_type_print_base): Consider typedefs when assessing | |
5138 | whether access labels are needed. | |
5139 | Use output_access_specifier as needed. | |
5140 | Output access specifier for typedefs, if needed. | |
5141 | * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility. | |
5142 | * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New | |
5143 | fields. | |
5144 | (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New | |
5145 | accessor macros. | |
5146 | ||
87028b87 TT |
5147 | 2017-10-16 Tom Tromey <tom@tromey.com> |
5148 | ||
5149 | * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full) | |
5150 | (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update. | |
5151 | * target.c (target_fileio_read_stralloc): Update. | |
5152 | * sparc64-tdep.c (adi_is_addr_mapped): Update. | |
5153 | * target.h (target_fileio_read_stralloc): Return | |
5154 | unique_xmalloc_ptr. | |
5155 | ||
b7b030ad TT |
5156 | 2017-10-16 Tom Tromey <tom@tromey.com> |
5157 | ||
5158 | * xml-syscall.c (xml_init_syscalls_info): Update. | |
5159 | * xml-support.c (xinclude_start_include): Update. | |
5160 | (xml_fetch_content_from_file): Return unique_xmalloc_ptr. | |
5161 | * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr. | |
5162 | (xml_fetch_content_from_file): Likewise. | |
5163 | * osdata.c (get_osdata): Update. | |
5164 | * target.h (target_read_stralloc, target_get_osdata): Return | |
5165 | unique_xmalloc_ptr. | |
5166 | * solib-aix.c (solib_aix_get_library_list): Update. | |
5167 | * solib-target.c (solib_target_current_sos): Update. | |
5168 | * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update. | |
5169 | * xml-tdesc.c (fetch_available_features_from_target): Update. | |
5170 | (target_fetch_description_xml): Update. | |
5171 | (file_read_description_xml): Update. | |
5172 | * remote.c (remote_get_threads_with_qxfer, remote_memory_map) | |
5173 | (remote_traceframe_info, btrace_read_config, remote_read_btrace) | |
5174 | (remote_pid_to_exec_file): Update. | |
5175 | * target.c (target_read_stralloc): Return unique_xmalloc_ptr. | |
5176 | (target_get_osdata): Likewise. | |
5177 | ||
b80406ac TT |
5178 | 2017-10-16 Tom Tromey <tom@tromey.com> |
5179 | ||
5180 | * remote.c (remote_register_number_and_offset): Use std::vector. | |
5181 | (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr. | |
5182 | (putpkt_binary): Use gdb::def_vector. | |
5183 | (compare_sections_command): Use gdb::byte_vector. | |
5184 | ||
a90ecff8 TT |
5185 | 2017-10-16 Tom Tromey <tom@tromey.com> |
5186 | ||
5187 | * ppc-linux-nat.c (hwdebug_insert_point): Use | |
5188 | gdb::unique_xmalloc_ptr, XDUP. | |
5189 | ||
2dc0e219 TT |
5190 | 2017-10-16 Tom Tromey <tom@tromey.com> |
5191 | ||
5192 | * probe.c (parse_probes): Use std::string. | |
5193 | (info_probes_for_ops, enable_probes_command) | |
5194 | (disable_probes_command): Remove cleanups. | |
5195 | ||
b05628f0 TT |
5196 | 2017-10-16 Tom Tromey <tom@tromey.com> |
5197 | ||
5198 | * buildsym.c (block_compar): Remove. | |
5199 | (end_symtab_get_static_block): Use std::vector. | |
5200 | ||
a79b1bc6 SM |
5201 | 2017-10-16 Simon Marchi <simon.marchi@ericsson.com> |
5202 | ||
5203 | * memrange.h (struct mem_range): Define operator< and operator==. | |
5204 | (mem_range_s): Remove. | |
5205 | (DEF_VEC_O (mem_range_s)): Remove. | |
5206 | (normalize_mem_ranges): Change parameter type to std::vector. | |
5207 | * memrange.c (compare_mem_ranges): Remove. | |
5208 | (normalize_mem_ranges): Change parameter type to std::vector, | |
5209 | adjust to vector change. | |
5210 | * exec.c (section_table_available_memory): Return vector, remove | |
5211 | parameter. | |
5212 | (section_table_read_available_memory): Adjust to std::vector | |
5213 | change. | |
5214 | * remote.c (remote_read_bytes): Adjust to std::vector | |
5215 | change. | |
5216 | * tracepoint.h (traceframe_available_memory): Change parameter | |
5217 | type to std::vector. | |
5218 | * tracepoint.c (traceframe_available_memory): Change parameter | |
5219 | type to std::vector, adjust. | |
5220 | * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to | |
5221 | std::vector change. | |
5222 | * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
5223 | unittests/memrange-selftests.c. | |
5224 | (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o. | |
5225 | * gdb/unittests/memrange-selftests.c: New file. | |
5226 | ||
63f0e930 PA |
5227 | 2017-10-16 Pedro Alves <palves@redhat.com> |
5228 | ||
5229 | * elfread.c (probe_key_free): Rename range-for variable. | |
5230 | * probe.c (parse_probes_in_pspace, find_probes_in_objfile) | |
5231 | (find_probe_by_pc, collect_probes): Rename range-for variable. | |
5232 | ||
c40c7bfc YQ |
5233 | 2017-10-16 Yao Qi <yao.qi@linaro.org> |
5234 | ||
5235 | * features/Makefile (XMLTOC): Remove tic6x-*.xml. | |
5236 | * features/tic6x-c62x.c: Remove. | |
5237 | * features/tic6x-c64x-linux.c: Remove. | |
5238 | * features/tic6x-c64x.c: Remove. | |
5239 | * features/tic6x-c64xp-linux.c: Remove. | |
5240 | * features/tic6x-c64xp.c: Remove. | |
5241 | * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call | |
5242 | initialize_tdesc_tic6x_*_linux functions. | |
5243 | * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call | |
5244 | initialize_tdesc_tic6x_* functions. | |
5245 | ||
df27ae6a YQ |
5246 | 2017-10-16 Yao Qi <yao.qi@linaro.org> |
5247 | ||
5248 | * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x | |
5249 | tic6x-c62x. | |
5250 | * regformats/tic6x-c62x.dat: Remove. | |
5251 | * regformats/tic6x-c64x.dat: Remove. | |
5252 | * regformats/tic6x-c64xp.dat: Remove. | |
5253 | ||
86766165 SM |
5254 | 2017-10-15 Simon Marchi <simon.marchi@ericsson.com> |
5255 | ||
5256 | * tracepoint.c (parse_traceframe_info): Return a unique_ptr | |
5257 | (the !HAVE_LIBEXPAT version). | |
5258 | ||
824dfcc3 SM |
5259 | 2017-10-14 Simon Marchi <simon.marchi@ericsson.com> |
5260 | ||
5261 | * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make | |
5262 | const. | |
5263 | ||
2098b393 SM |
5264 | 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca> |
5265 | ||
5266 | * target.h: Include tracepoint.h. | |
5267 | (enum trace_find_type): Move to tracepoint.h. | |
5268 | (struct target_ops) <to_traceframe_info>: Return a unique ptr. | |
5269 | * tracepoint.h: Don't include target.h | |
5270 | (enum trace_find_type): Move from target.h. | |
5271 | (parse_traceframe_info): Return a unique ptr. | |
5272 | * tracepoint.c (current_traceframe_info): Change type to unique | |
5273 | ptr. | |
5274 | (free_traceframe_info): Remove. | |
5275 | (clear_traceframe_info): Don't manually free | |
5276 | current_traceframe_info. | |
5277 | (free_result): Remove. | |
5278 | (parse_traceframe_info): Return a unique ptr. | |
5279 | (get_traceframe_info): Adjust to unique ptr. | |
5280 | * ctf.c (ctf_traceframe_info): Return a unique ptr. | |
5281 | * remote.c (remote_traceframe_info): Return a unique ptr. | |
5282 | * tracefile-tfile.c (tfile_traceframe_info): Return a unique | |
5283 | ptr. | |
5284 | * target-debug.h (target_debug_print_traceframe_info_up): New | |
5285 | macro. | |
5286 | * target-delegates.c: Regenerate. | |
5287 | ||
4cdd21a8 SM |
5288 | 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca> |
5289 | ||
5290 | * memrange.h (struct mem_range): Add constructors. | |
5291 | * tracepoint.h (struct traceframe_info) <memory>: Change type to | |
5292 | std::vector<mem_range>. | |
5293 | * tracepoint.c (free_traceframe_info): Don't manually free | |
5294 | vector. | |
5295 | (traceframe_info_start_memory): Adjust to vector change. | |
5296 | (traceframe_available_memory): Likewise. | |
5297 | * tracefile-tfile.c (build_traceframe_info): Likewise. | |
5298 | * ctf.c (ctf_traceframe_info): Likewise. | |
5299 | ||
d0d292a2 SM |
5300 | 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca> |
5301 | ||
5302 | * tracepoint.h (struct traceframe_info) <tvars>: Change type to | |
5303 | std::vector<int>. | |
5304 | * tracepoint.c (free_traceframe_info): Deallocate with delete. | |
5305 | (traceframe_info_start_tvar): Adjust to vector change. | |
5306 | (parse_traceframe_info): Allocate with new. | |
5307 | * ctf.c (ctf_traceframe_info): Allocate with new, adjust to | |
5308 | vector change. | |
5309 | * tracefile-tfile.c (build_traceframe_info): Adjust to vector | |
5310 | change. | |
5311 | tfile_traceframe_info): Allocate with new. | |
5312 | * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector | |
5313 | change. | |
5314 | ||
8d3c73ef SM |
5315 | 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca> |
5316 | ||
5317 | * tracepoint.c (traceframe_info): Rename to... | |
5318 | (current_traceframe_info): ...this. | |
5319 | (clear_traceframe_info): Adjust. | |
5320 | (get_traceframe_info): Adjust. | |
5321 | ||
b129dcac SM |
5322 | 2017-10-14 Simon Marchi <simon.marchi@ericsson.com> |
5323 | ||
5324 | * nat/linux-osdata.c: Include algorithm. | |
5325 | (compare_processes): Remove. | |
5326 | (struct pid_pgid_entry): New struct. | |
5327 | (linux_xfer_osdata_processgroups): Use std::vector instead of | |
5328 | XNEWVEC. | |
5329 | ||
af5bf4ad SM |
5330 | 2017-10-14 Simon Marchi <simon.marchi@ericsson.com> |
5331 | ||
5332 | * objfiles.h: Don't include symfile.h. | |
5333 | (struct partial_symbol): Remove forward-declaration. | |
5334 | (struct objfile) <global_psymbols, static_psymbols>: Change type | |
5335 | to std::vector<partial_symbol *>. | |
5336 | * objfiles.c (objfile::objfile): Don't memset those fields. | |
5337 | (objfile::~objfile): Don't free those fields. | |
5338 | * psympriv.h (struct psymbol_allocation_list): Remove | |
5339 | forward-declaration. | |
5340 | (add_psymbol_to_list): Change psymbol_allocation_list parameter | |
5341 | to std::vector. | |
5342 | (start_psymtab_common): Change parameters to std::vector. | |
5343 | * psymtab.c: Include algorithm. | |
5344 | (require_partial_symbols): Call shrink_to_fit. | |
5345 | (find_pc_sect_psymbol): Adjust to vector change. | |
5346 | (match_partial_symbol): Likewise. | |
5347 | (lookup_partial_symbol): Likewise. | |
5348 | (psym_relocate): Likewise. | |
5349 | (dump_psymtab): Likewise. | |
5350 | (recursively_search_psymtabs): Likewise. | |
5351 | (compare_psymbols): Remove. | |
5352 | (sort_pst_symbols): Adjust to vector change. | |
5353 | (start_psymtab_common): Likewise. | |
5354 | (end_psymtab_common): Likewise. | |
5355 | (psymbol_bcache_full): De-constify return value. | |
5356 | (add_psymbol_to_bcache): Likewise. | |
5357 | (extend_psymbol_list): Remove. | |
5358 | (append_psymbol_to_list): Adjust to vector change. | |
5359 | (add_psymbol_to_list): Likewise. | |
5360 | (init_psymbol_list): Likewise. | |
5361 | (maintenance_info_psymtabs): Likewise. | |
5362 | (maintenance_check_psymtabs): Likewise. | |
5363 | * symfile.h (struct psymbol_allocation_list): Remove. | |
5364 | * symfile.c (reread_symbols): Adjust to vector change. | |
5365 | * dbxread.c (start_psymtab): Change type of parameters. | |
5366 | (dbx_symfile_read): Adjust to vector change. | |
5367 | (read_dbx_symtab): Likewise. | |
5368 | (start_psymtab): Change type of parameters. | |
5369 | * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change. | |
5370 | (create_partial_symtab): Likewise. | |
5371 | (add_partial_symbol): Likewise. | |
5372 | (write_one_signatured_type): Likewise. | |
5373 | (recursively_write_psymbols): Likewise. | |
5374 | * mdebugread.c (parse_partial_symbols): Likewise. | |
5375 | * xcoffread.c (xcoff_start_psymtab): Change type of parameters. | |
5376 | (scan_xcoff_symtab): Adjust to vector change. | |
5377 | (xcoff_initial_scan): Likewise. | |
5378 | ||
3ec5942f SM |
5379 | 2017-10-13 Simon Marchi <simon.marchi@ericsson.com> |
5380 | ||
5381 | * ada-typeprint.c (print_dynamic_range_bound): Use std::string. | |
5382 | ||
2399fe6a YQ |
5383 | 2017-10-13 Yao Qi <yao.qi@linaro.org> |
5384 | ||
5385 | * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite. | |
5386 | Remove s390x-*-expedite, add s390x-expedite. | |
5387 | ||
4bf3f4a8 YQ |
5388 | 2017-10-13 Yao Qi <yao.qi@linaro.org> |
5389 | ||
5390 | * features/s390-gs-linux64.c: Regenerated. | |
5391 | * features/s390x-gs-linux64.c: Regenerated. | |
5392 | ||
9e86da07 TT |
5393 | 2017-10-13 Tom Tromey <tom@tromey.com> |
5394 | ||
5395 | * compile/compile-object-run.c (do_module_cleanup): Use delete. | |
5396 | * solib.c (update_solib_list, reload_shared_libraries_1): Use | |
5397 | delete. | |
5398 | * symfile.c (symbol_file_add_with_addrs): Use new. | |
5399 | (symbol_file_add_separate): Update comment. | |
5400 | (syms_from_objfile_1, remove_symbol_file_command): Use delete. | |
5401 | * jit.c (jit_object_close_impl): Use new. | |
5402 | (jit_unregister_code): Use delete. | |
5403 | * objfiles.c (objfile::objfile): Rename from allocate_objfile. | |
5404 | (~objfile): Rename from free_objfile. | |
5405 | (free_objfile_separate_debug, do_free_objfile_cleanup) | |
5406 | (free_all_objfiles, objfile_purge_solibs): Use delete. | |
5407 | * objfiles.h (struct objfile): Add constructor and destructor. | |
5408 | Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members. | |
5409 | (allocate_objfile, free_objfile): Don't declare. | |
5410 | (struct objstats): Add initializers. | |
5411 | ||
c2508e90 SM |
5412 | 2017-10-12 Simon Marchi <simon.marchi@ericsson.com> |
5413 | ||
5414 | * arch-utils.h (simple_displaced_step_copy_insn): Remove. | |
5415 | * arch-utils.c (simple_displaced_step_copy_insn): Remove. | |
5416 | * gdbarch.sh (displaced_step_copy_insn): Adjust comment. | |
5417 | * gdbarch.h: Regenerate. | |
5418 | * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): | |
5419 | Adjust comment. | |
5420 | * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment. | |
5421 | (i386_displaced_step_fixup): Adjust comment. | |
5422 | * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment. | |
5423 | ||
a900ff72 TT |
5424 | 2017-10-12 Tom Tromey <tom@tromey.com> |
5425 | ||
5426 | * prologue-value.h (pv_area::store_would_trash): Return bool. | |
5427 | (pv_area::find_reg): Likewise. | |
5428 | * prologue-value.c (pv_area::store_would_trash): Return bool. | |
5429 | (pv_area::find_reg): Likewise. | |
5430 | ||
f7b7ed97 TT |
5431 | 2017-10-12 Tom Tromey <tom@tromey.com> |
5432 | ||
5433 | * s390-linux-tdep.c (s390_store, s390_load) | |
5434 | (s390_check_for_saved, s390_analyze_prologue): Update. | |
5435 | * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update. | |
5436 | * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update. | |
5437 | * prologue-value.h (class pv_area): Move from prologue-value.c. | |
5438 | Change names of members. Add constructor, destructor, member | |
5439 | functions. | |
5440 | (make_pv_area, free_pv_area, make_cleanup_free_pv_area) | |
5441 | (pv_area_store, pv_area_fetch, pv_area_store_would_trash) | |
5442 | (pv_area_fetch, pv_area_scan): Don't declare. | |
5443 | * prologue-value.c (struct pv_area::area_entry): Now member of | |
5444 | pv_area. | |
5445 | (struct pv_area): Move to prologue-value.h. | |
5446 | (pv_area::pv_area): Rename from make_pv_area. | |
5447 | (pv_area::~pv_area): Rename from free_pv_area. | |
5448 | (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove. | |
5449 | (clear_entries, find_entry, overlaps, store_would_trash, store) | |
5450 | (fetch, find_reg, scan): Now member of pv_area. | |
5451 | Remove "area" argument. Update. | |
5452 | * msp430-tdep.c (check_for_saved, msp430_analyze_prologue): | |
5453 | Update. | |
5454 | * mn10300-tdep.c (push_reg, check_for_saved) | |
5455 | (mn10300_analyze_prologue): Update. | |
5456 | * mep-tdep.c (is_arg_spill, check_for_saved) | |
5457 | (mep_analyze_prologue): Update. | |
5458 | * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch) | |
5459 | (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill) | |
5460 | (m32c_is_struct_return, m32c_analyze_prologue): Update. | |
5461 | * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue): | |
5462 | Update. | |
5463 | * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update. | |
5464 | * aarch64-tdep.c (aarch64_analyze_prologue): Update. | |
5465 | ||
466eecee SM |
5466 | 2017-10-12 Simon Marchi <simon.marchi@ericsson.com> |
5467 | ||
5468 | * linux-nat.h (linux_nat_set_delete_thread): New declaration. | |
5469 | * linux-nat.c (linux_nat_delete_thread): New variable. | |
5470 | (lwp_free): Invoke linux_nat_delete_thread if set. | |
5471 | (linux_nat_set_delete_thread): New function. | |
5472 | * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign | |
5473 | thread delete callback. | |
5474 | * arm-linux-nat.c (arm_linux_delete_thread): New function. | |
5475 | (_initialize_arm_linux_nat): Assign thread delete callback. | |
5476 | * s390-linux-nat.c (s390_delete_thread): New function. | |
5477 | (_initialize_s390_nat): Assign thread delete callback. | |
5478 | * x86-linux-nat.c (x86_linux_add_target): Likewise. | |
5479 | * nat/aarch64-linux.c (aarch64_linux_delete_thread): New | |
5480 | function. | |
5481 | * nat/aarch64-linux.h (aarch64_linux_delete_thread): New | |
5482 | declaration. | |
5483 | * nat/x86-linux.c (x86_linux_delete_thread): New function. | |
5484 | * nat/x86-linux.h (x86_linux_delete_thread): New declaration. | |
5485 | ||
f71c8822 TT |
5486 | 2017-10-09 Tom Tromey <tom@tromey.com> |
5487 | ||
5488 | * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use | |
5489 | std::string. | |
5490 | * tui/tui-layout.c (enum tui_status): Use std::string. | |
5491 | ||
981a3fb3 TT |
5492 | 2017-10-11 Tom Tromey <tom@tromey.com> |
5493 | ||
5494 | * gdbthread.h (thread_command): Constify. | |
5495 | * inferior.h (detach_command): Constify. | |
5496 | * top.h (set_history, show_history): Constify. | |
5497 | * arm-tdep.c (set_arm_command, show_arm_command): Constify. | |
5498 | * serial.c (serial_set_cmd, serial_show_cmd): Constify. | |
5499 | * bsd-kvm.c (bsd_kvm_cmd): Constify. | |
5500 | * printcmd.c (set_command): Constify. | |
5501 | (non_const_set_command): New function. | |
5502 | * dcache.c (set_dcache_command, show_dcache_command): Constify. | |
5503 | * breakpoint.c (enable_command, disable_command, delete_command) | |
5504 | (catch_command, tcatch_command, set_breakpoint_cmd) | |
5505 | (show_breakpoint_cmd): Constify. | |
5506 | * macrocmd.c (macro_command): Constify. | |
5507 | * infcmd.c (unset_command, kill_command, detach_command) | |
5508 | (info_proc_cmd): Constify. | |
5509 | * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify. | |
5510 | * auto-load.c (show_auto_load_cmd, set_auto_load_cmd) | |
5511 | (info_auto_load_cmd): Constify. | |
5512 | * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd) | |
5513 | (unset_tdesc_cmd): Constify. | |
5514 | * ada-lang.c (set_ada_command, show_ada_command) | |
5515 | (maint_set_ada_cmd, maint_show_ada_cmd): Constify. | |
5516 | * guile/guile.c (set_guile_command, show_guile_command) | |
5517 | (info_guile_command): Constify. | |
5518 | * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd): | |
5519 | Constify. | |
5520 | * skip.c (skip_command): Constify. | |
5521 | * compile/compile.c (_initialize_compile): Constify. | |
5522 | * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify. | |
5523 | * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd) | |
5524 | (maint_btrace_show_cmd, maint_btrace_pt_set_cmd) | |
5525 | (maint_btrace_pt_show_cmd): Constify. | |
5526 | * remote.c (set_remote_cmd, show_remote_cmd, remote_command): | |
5527 | Constify. | |
5528 | * python/python.c (user_show_python, user_set_python): Constify. | |
5529 | * mips-tdep.c (set_mips_command, show_mips_command) | |
5530 | (set_mipsfpu_command): Constify. | |
5531 | * record-btrace.c (cmd_record_btrace_start) | |
5532 | (cmd_set_record_btrace, cmd_show_record_btrace) | |
5533 | (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts) | |
5534 | (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify. | |
5535 | * rs6000-tdep.c (set_powerpc_command, show_powerpc_command): | |
5536 | Constify. | |
5537 | * symfile.c (overlay_command): Constify. | |
5538 | * spu-tdep.c (set_spu_command, show_spu_command): Constify. | |
5539 | * cli/cli-logging.c (set_logging_command, show_logging_command): | |
5540 | Constify. | |
5541 | * cli/cli-dump.c (dump_command, append_command) | |
5542 | (srec_dump_command, ihex_dump_command, verilog_dump_command) | |
5543 | (tekhex_dump_command, binary_dump_command) | |
5544 | (binary_append_command): Constify. | |
5545 | * cli/cli-decode.c (struct cmd_list_element): Change type of | |
5546 | "fun". | |
5547 | * cli/cli-cmds.c (info_command, show_command, set_debug) | |
5548 | (show_debug): Constify. | |
5549 | (show_command): Add non-const overload. | |
5550 | * top.c (set_history, show_history): Constify. | |
5551 | * sh-tdep.c (set_sh_command, show_sh_command): Constify. | |
5552 | * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype. | |
5553 | * target.c (target_command): Constify. | |
5554 | * sparc64-tdep.c (info_adi_command): Constify. | |
5555 | * record-full.c (cmd_record_full_start): Constify. | |
5556 | (set_record_full_command): Constify. Fix typo. | |
5557 | (show_record_full_command): Constify. | |
5558 | * thread.c (thread_command, thread_apply_command): Constify. | |
5559 | * memattr.c (dummy_cmd): Constify. | |
5560 | * value.c (function_command): Constify. | |
5561 | * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify. | |
5562 | * probe.c (info_probes_command): Constify. | |
5563 | * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify. | |
5564 | * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd) | |
5565 | (show_thread_cmd, set_thread_default_cmd) | |
5566 | (show_thread_default_cmd): Constify. | |
5567 | (check_empty): Constify. | |
5568 | * tracepoint.c (tfind_command): Constify. | |
5569 | * cp-support.c (maint_cplus_command): Constify. | |
5570 | * windows-tdep.c (info_w32_command): Constify. | |
5571 | * record.c (cmd_record_start, set_record_command) | |
5572 | (show_record_command, info_record_command, cmd_record_goto): | |
5573 | Constify. | |
5574 | * ravenscar-thread.c (set_ravenscar_command) | |
5575 | (show_ravenscar_command): Constify. | |
5576 | * utils.c (set_internal_problem_cmd, show_internal_problem_cmd): | |
5577 | Constify. | |
5578 | (add_internal_problem_command): Remove casts. | |
5579 | * arc-tdep.c (maintenance_print_arc_command): Constify. | |
5580 | * valprint.c (set_print, show_print, set_print_raw) | |
5581 | (show_print_raw): Constify. | |
5582 | * maint.c (maintenance_command, maintenance_info_command) | |
5583 | (maintenance_print_command, maintenance_set_cmd) | |
5584 | (maintenance_show_cmd, set_per_command_cmd) | |
5585 | (show_per_command_cmd, maintenance_check_command): Constify. | |
5586 | * language.c (set_check, show_check): Constify. | |
5587 | * typeprint.c (show_print_type, set_print_type): Constify. | |
5588 | * go32-nat.c (go32_info_dos_command): Constify. | |
5589 | ||
fdf44873 TT |
5590 | 2017-10-11 Tom Tromey <tom@tromey.com> |
5591 | ||
5592 | * breakpoint.c (prepare_re_set_context): Remove. | |
5593 | (breakpoint_re_set_one): Update. Don't use cleanups. | |
5594 | (breakpoint_re_set): Use scoped_restore, std::string, and | |
5595 | scoped_restore_current_language. | |
5596 | ||
81b1e71c TT |
5597 | 2017-10-11 Tom Tromey <tom@tromey.com> |
5598 | ||
5599 | * breakpoint.c (commands_command_1): Use std::string. | |
5600 | (cleanup_executing_breakpoints): Remove. | |
5601 | (bpstat_do_actions_1): Use scoped_restore. | |
5602 | (bpstat_check_watchpoint): Use std::string. | |
5603 | (decode_static_tracepoint_spec): Likewise. | |
5604 | (break_range_command): Likewise. | |
5605 | (watch_command_1): Likewise. | |
5606 | (compare_breakpoints): Change argument types. | |
5607 | (clear_command): Use std::vector. | |
5608 | (cleanup_executing_breakpoints): Remove. | |
5609 | (update_global_location_list): Use unique_xmalloc_ptr. | |
5610 | (strace_command): Remove unused declaration. | |
5611 | ||
4f9d9906 JB |
5612 | 2017-10-11 John Baldwin <jhb@FreeBSD.org> |
5613 | ||
5614 | * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c. | |
5615 | * NEWS: Mention new FreeBSD/arm native configuration. | |
5616 | * configure.host: Add arm*-*-freebsd*. | |
5617 | * configure.nat: Likewise. | |
5618 | * arm-fbsd-nat.c: New file. | |
5619 | ||
7176dfd2 JB |
5620 | 2017-10-11 John Baldwin <jhb@FreeBSD.org> |
5621 | ||
5622 | * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o. | |
5623 | (ALLDEPFILES): Add arm-fbsd-tdep.c. | |
5624 | * NEWS: Mention new FreeBSD/arm target. | |
5625 | * configure.tgt: Add arm*-*-freebsd*. | |
5626 | * arm-fbsd-tdep.c: New file. | |
5627 | * arm-fbsd-tdep.h: New file. | |
5628 | ||
fe220226 MR |
5629 | 2017-10-11 Maciej W. Rozycki <macro@imgtec.com> |
5630 | ||
5631 | * linux-tdep.c (linux_make_corefile_notes): Remove call to | |
5632 | `gdbarch_elfcore_write_linux_prpsinfo'. | |
5633 | * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture | |
5634 | method. | |
5635 | (elf_internal_linux_prpsinfo): Remove declaration. | |
5636 | * gdbarch.h: Regenerate. | |
5637 | * gdbarch.c: Regenerate. | |
5638 | ||
a2f63b2e MR |
5639 | 2017-10-11 Maciej W. Rozycki <macro@imgtec.com> |
5640 | ||
5641 | * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to | |
5642 | `set_gdbarch_elfcore_write_linux_prpsinfo'. | |
5643 | ||
458ca1d0 PA |
5644 | 2017-10-11 Pedro Alves <palves@redhat.com> |
5645 | ||
5646 | * breakpoint.c (reattach_breakpoints): Delete. | |
5647 | * breakpoint.h (reattach_breakpoints): Delete. | |
5648 | ||
905014d7 SM |
5649 | 2017-10-11 Simon Marchi <simon.marchi@ericsson.com> |
5650 | ||
5651 | * symfile.c (registered_sym_fns): Make struct, not typedef. | |
5652 | (DEF_VEC_O (registered_sym_fns)): Remove. | |
5653 | (symtab_fns): Change type to std::vector. | |
5654 | (add_symtab_fns): Adjust. | |
5655 | (find_sym_fns): Adjust. | |
5656 | ||
56d704da AK |
5657 | 2017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com> |
5658 | ||
5659 | * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler. | |
5660 | * arc-tdep.h (arc_arch_is_em): New function. | |
5661 | (arc_arch_is_hs): Likewise. | |
5662 | ||
7fa29be9 EB |
5663 | 2017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com> |
5664 | ||
5665 | * macrotab.h (macro_lookup_inclusion): Remove unnecessary | |
5666 | parentheses in the declaration. | |
5667 | (macro_lookup_inclusion): Likewise. | |
5668 | (macro_lookup_definition): Likewise. | |
5669 | * p-lang.h (pascal_builtin_types): Likewise. | |
5670 | * tui/tui-data.c (tui_win_list): Likewise. | |
5671 | * tui/tui-data.h (tui_win_list): Likewise. | |
5672 | * utils.h (make_cleanup_free_section_addr_info): Likewise. | |
5673 | ||
d9b477e3 KB |
5674 | 2017-10-11 Mark Rages <markrages@gmail.com> |
5675 | ||
5676 | * target-memory.c (block_boundaries): Fix for block address not | |
5677 | aligned on block size. | |
5678 | ||
65630365 PA |
5679 | 2017-10-10 Pedro Alves <palves@redhat.com> |
5680 | Tom Tromey <tom@tromey.com> | |
5681 | ||
5682 | * breakpoint.c (struct captured_breakpoint_query_args) | |
5683 | (do_captured_breakpoint_query, gdb_breakpoint_query): Delete. | |
5684 | (print_breakpoint): New. | |
5685 | * breakpoint.h (print_breakpoint): Declare. | |
5686 | * common/common-exceptions.h (enum return_reason): Remove | |
5687 | references to catch_exceptions. | |
5688 | * exceptions.c (catch_exceptions, catch_exceptions_with_msg): | |
5689 | Delete. | |
5690 | * exceptions.h (catch_exceptions_ftype, catch_exceptions) | |
5691 | (catch_exception_ftype, catch_exceptions_with_msg): Delete. | |
5692 | * gdb.h: Delete. | |
5693 | * gdbthread.h (thread_select): Declare. | |
5694 | * mi/mi-cmd-break.c: Don't include gdb.h. | |
5695 | (breakpoint_notify): Use print_breakpoint. | |
5696 | * mi/mi-cmd-catch.c: Don't include gdb.h. | |
5697 | * mi/mi-interp.c: Don't include gdb.h. | |
5698 | (mi_print_breakpoint_for_event): New. | |
5699 | (mi_breakpoint_created, mi_breakpoint_modified): Use | |
5700 | mi_print_breakpoint_for_event. | |
5701 | * mi/mi-main.c: Don't include gdb.h. | |
5702 | (mi_cmd_thread_select): Parse the global thread ID here. Use | |
5703 | thread_select instead of gdb_thread_select. | |
5704 | (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead | |
5705 | of using gdb_list_thread_ids. | |
5706 | * remote-fileio.c (do_remote_fileio_request): Change type. Reply | |
5707 | FILEIO_ENOSYS here. | |
5708 | (remote_fileio_request): Use TRY/CATCH instead of | |
5709 | catch_exceptions. | |
5710 | * symfile-mem.c (struct symbol_file_add_from_memory_args) | |
5711 | (symbol_file_add_from_memory_wrapper): Delete. | |
5712 | (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions. | |
5713 | * thread.c: Don't include gdb.h. | |
5714 | (do_captured_list_thread_ids, gdb_list_thread_ids): Delete. | |
5715 | (thread_alive): Use thread_select. | |
5716 | (do_captured_thread_select): Delete, parts salvaged as ... | |
5717 | (thread_select): ... this new function. | |
5718 | (gdb_thread_select): Delete. | |
5719 | ||
bf469271 PA |
5720 | 2017-10-10 Pedro Alves <palves@redhat.com> |
5721 | Tom Tromey <tom@tromey.com> | |
5722 | ||
5723 | * breakpoint.c (breakpoint_cond_eval): Change return type to bool | |
5724 | and reverse logic. | |
5725 | (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE): | |
5726 | No longer macros. Instead ... | |
5727 | (enum wp_check_result): They're now values of this new | |
5728 | enumeration. | |
5729 | (watchpoint_check): Change return type to wp_check_result and | |
5730 | parameter type to bpstat. | |
5731 | (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors. | |
5732 | (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of | |
5733 | catch_errors. Reverse logic of watchpoint_check call. | |
5734 | (breakpoint_re_set_one): Now returns void and takes a breakpoint | |
5735 | pointer as parameter. | |
5736 | (breakpoint_re_set): Use TRY/CATCH instead of catch_errors. | |
5737 | * common/common-exceptions.c (throw_exception_sjlj): Update | |
5738 | comments to avoid mentioning catch_errors. | |
5739 | * exceptions.c (catch_errors): Delete. | |
5740 | * exceptions.h: Update comments to avoid mentioning catch_errors. | |
5741 | (catch_errors_ftype, catch_errors): Delete. | |
5742 | * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors. | |
5743 | (hook_stop_stub): Delete. | |
5744 | (restore_selected_frame): Change return type to void, and | |
5745 | parameter type to const frame_id &. | |
5746 | (restore_infcall_control_state): Use TRY/CATCH instead of | |
5747 | catch_errors. | |
5748 | * main.c (captured_command_loop): Return void and remove | |
5749 | parameter. Remove references to catch_errors. | |
5750 | (captured_main): Use TRY/CATCH instead of catch_errors. | |
5751 | * objc-lang.c (objc_submethod_helper_data) | |
5752 | (find_objc_msgcall_submethod_helper): Delete. | |
5753 | (find_objc_msgcall_submethod): Use TRY/CATCH instead of | |
5754 | catch_errors. | |
5755 | * record-full.c (record_full_message): Return void. | |
5756 | (record_full_message_args, record_full_message_wrapper): Delete. | |
5757 | (record_full_message_wrapper_safe): Return bool and use TRY/CATCH | |
5758 | instead of catch_errors. | |
5759 | * solib-aix.c (solib_aix_open_symbol_file_object): Change | |
5760 | parameter type to int. | |
5761 | * solib-darwin.c (open_symbol_file_object): Ditto. | |
5762 | * solib-dsbt.c (open_symbol_file_object): Ditto. | |
5763 | * solib-frv.c (open_symbol_file_object): Ditto. | |
5764 | * solib-svr4.c (open_symbol_file_object): Ditto. | |
5765 | * solib-target.c (solib_target_open_symbol_file_object): Ditto. | |
5766 | * solib.c (update_solib_list): Use TRY/CATCH instead of | |
5767 | catch_errors. | |
5768 | * solist.h (struct target_so_ops) <open_symbol_file_object>: | |
5769 | Change type. | |
5770 | * symmisc.c (struct print_symbol_args): Remove. | |
5771 | (dump_symtab_1): Use TRY/CATCH instead of catch_errors. | |
5772 | (print_symbol): Change type. | |
5773 | * windows-nat.c (handle_load_dll, handle_unload_dll): Return void | |
5774 | and remove parameters. | |
5775 | (catch_errors): New. | |
5776 | (get_windows_debug_event): Adjust. | |
5777 | ||
1a56bfa5 TT |
5778 | 2017-10-09 Tom Tromey <tom@tromey.com> |
5779 | ||
5780 | * mi/mi-main.c (free_splay_tree): Remove. | |
5781 | (list_available_thread_groups): Use splay_tree_up. | |
5782 | * common/gdb_splay_tree.h: New file. | |
5783 | ||
0c478e2d TT |
5784 | 2017-10-09 Tom Tromey <tom@tromey.com> |
5785 | ||
5786 | * mi/mi-main.c (do_nothing): Remove. | |
5787 | (list_available_thread_groups): Update. | |
5788 | ||
cbd2b4e3 PA |
5789 | 2017-10-09 Pedro Alves <palves@redhat.com> |
5790 | ||
5791 | * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip | |
5792 | reading registers when switching context. | |
5793 | ||
a181c0bf JB |
5794 | 2017-10-09 John Baldwin <jhb@FreeBSD.org> |
5795 | ||
5796 | * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit. | |
5797 | (fbsd_convert_siginfo): Likewise. | |
5798 | * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise. | |
5799 | ||
6e66f753 SM |
5800 | 2017-10-09 Simon Marchi <simon.marchi@polymtl.ca> |
5801 | ||
5802 | * configure.ac (try_guile_versions): Remove guile-2.2. | |
5803 | * configure: Regenerate. | |
5804 | ||
890e9790 TT |
5805 | 2017-10-09 Tom Tromey <tom@tromey.com> |
5806 | ||
5807 | * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename). | |
5808 | (COMPILE.pre): Use $(CXX). | |
5809 | ||
109483d9 PA |
5810 | 2017-10-09 Pedro Alves <palves@redhat.com> |
5811 | ||
5812 | * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr. | |
5813 | Use bool. | |
5814 | (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr. | |
5815 | * cp-support.h (cp_remove_params): Now returns a | |
5816 | gdb::unique_xmalloc_ptr. | |
5817 | * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool. | |
5818 | Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr. | |
5819 | * psymtab.c (psymtab_search_name): Adjust to cp_remove_params | |
5820 | returning a gdb::unique_xmalloc_ptr. | |
5821 | (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr. | |
5822 | * stack.c (find_frame_funname): Adjust to cp_remove_params | |
5823 | returning a gdb::unique_xmalloc_ptr. | |
5824 | ||
791afaa2 TT |
5825 | 2017-10-08 Tom Tromey <tom@tromey.com> |
5826 | ||
5827 | * dwarf2read.c (dwarf2_get_dwz_file): Use | |
5828 | gdb::unique_xmalloc_ptr. | |
5829 | (find_slot_in_mapped_hash): Likewise. | |
5830 | (dwarf2_physname): Likewise. | |
5831 | (create_dwo_unit_in_dwp_v1): Use std::string. | |
5832 | (create_dwo_unit_in_dwp_v2): Likewise. | |
5833 | (lookup_dwo_cutu): Likewise. | |
5834 | (inherit_abstract_dies): Use std::vector. | |
5835 | (read_array_type): Likewise. | |
5836 | (dwarf_decode_macros): Remove unused declaration. | |
5837 | (unsigned_int_compar): Remove. | |
5838 | (dwarf2_build_psymtabs_hard): Use scoped_restore. | |
5839 | (psymtabs_addrmap_cleanup): Remove. | |
5840 | ||
30a9c02f TT |
5841 | 2017-10-08 Tom Tromey <tom@tromey.com> |
5842 | ||
5843 | * frame-unwind.c (frame_unwind_try_unwinder): Update. | |
5844 | * frame.h (frame_cleanup_after_sniffer): Declare. | |
5845 | (frame_prepare_for_sniffer): Return void. | |
5846 | * frame.c (frame_cleanup_after_sniffer): No longer static. Change | |
5847 | type of argument. | |
5848 | (frame_prepare_for_sniffer): Return void. | |
5849 | ||
757325a3 TT |
5850 | 2017-10-08 Tom Tromey <tom@tromey.com> |
5851 | ||
5852 | * utils.h (make_cleanup_value_free): Remove. | |
5853 | * utils.c (do_value_free, struct cleanup): Remove. | |
5854 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>: | |
5855 | Use gdb_value_up. | |
5856 | * value.h (struct value_deleter): New. | |
5857 | (gdb_value_up): New typedef. | |
5858 | ||
b9c04fb2 TT |
5859 | 2017-10-08 Tom Tromey <tom@tromey.com> |
5860 | ||
5861 | * symtab.c (free_search_symbols, do_free_search_symbols_cleanup) | |
5862 | (make_cleanup_free_search_symbols): Remove. | |
5863 | (search_symbols): Return std::vector. | |
5864 | (symbol_search::compare_search_syms): Now member of | |
5865 | symbol_search. Change arguments. | |
5866 | (sort_search_symbols_remove_dups): Change arguments. Rewrite. | |
5867 | (symtab_symbol_info, rbreak_command): Update. | |
5868 | * symtab.h (struct symbol_search) <next>: Remove. | |
5869 | Add constructors. | |
5870 | (symbol_search::operator<): New function. | |
5871 | (symbol_search::operator==): New function. | |
5872 | (search_symbols): Remove std::vector. | |
5873 | (free_search_symbols, make_cleanup_free_search_symbols): Remove. | |
5874 | (symbol_search::compare_search_syms): Declare. | |
5875 | ||
0d28b0a5 YQ |
5876 | 2017-10-06 Yao Qi <yao.qi@linaro.org> |
5877 | ||
5878 | * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with | |
5879 | arch/aarch64-insn.o. | |
5880 | Remove one rule. | |
5881 | * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o. | |
5882 | ||
71917808 YQ |
5883 | 2017-10-06 Yao Qi <yao.qi@linaro.org> |
5884 | ||
5885 | * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o, | |
5886 | and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and | |
5887 | arch/arm-linux.o respectively. | |
5888 | * configure.tgt: Likewise. | |
5889 | ||
2081b2b2 YQ |
5890 | 2017-10-06 Yao Qi <yao.qi@linaro.org> |
5891 | ||
5892 | * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o. | |
5893 | * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o. | |
5894 | ||
a1b85d28 PA |
5895 | 2017-10-06 Pedro Alves <palves@redhat.com> |
5896 | ||
5897 | * windows-nat.c: Include <algorithm>. | |
5898 | ||
d97987e2 YQ |
5899 | 2017-10-06 Yao Qi <yao.qi@linaro.org> |
5900 | ||
5901 | * configure.tgt (i386_tobjs): New variable. | |
5902 | (amd64_tobjs): New variable. | |
5903 | Set $cpu_obs and $os_obs. | |
5904 | ||
f38307f5 YQ |
5905 | 2017-10-06 Yao Qi <yao.qi@linaro.org> |
5906 | ||
5907 | * Makefile.in (CONFIG_SRC_SUBDIR): New. | |
5908 | (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o. | |
5909 | (clean): Remove object files and dependency files. | |
5910 | (distclean): Remove the directory. | |
5911 | * configure.ac: Invoke AC_CONFIG_COMMANDS. | |
5912 | * configure: Re-generated. | |
5913 | * configure.tgt: Replace amd64.o with arch/amd64.o. | |
5914 | ||
2f924de6 JM |
5915 | 2017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com> |
5916 | ||
5917 | PR build/22188 | |
5918 | * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS | |
5919 | and SETEND. | |
5920 | ||
2fd9d7ca PA |
5921 | 2017-10-05 Pedro Alves <palves@redhat.com> |
5922 | ||
5923 | * linux-nat.c (linux_child_follow_fork): When following the parent | |
5924 | and detaching the child, consult the parent thread's architecture | |
5925 | instead of the child's. | |
5926 | ||
d13b8493 UW |
5927 | 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com> |
5928 | ||
5929 | * ax.h: Do not include "doublest.h". | |
5930 | (union agent_val): Remove. | |
5931 | ||
3b4b2f16 UW |
5932 | 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com> |
5933 | ||
5934 | * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c. | |
5935 | (decimal_to_string): Return std::string object. | |
5936 | (decimal_from_string): Accept std::string object. Return bool. | |
5937 | (decimal_from_integral, decimal_from_doublest): Remove. | |
5938 | (decimal_from_longest): Add prototype. | |
5939 | (decimal_from_ulongest): Likewise. | |
5940 | (decimal_to_longest): Likewise. | |
5941 | (decimal_from_doublest): Likewise. | |
5942 | * dfp.c: Do not include "gdbtypes.h" or "value.h". | |
5943 | (MAX_DECIMAL_STRING): Move here. | |
5944 | (decimal_to_string): Return std::string object. | |
5945 | (decimal_from_string): Accept std::string object. Return bool. | |
5946 | (decimal_from_integral): Remove, replace by ... | |
5947 | (decimal_from_longest, decimal_from_ulongest): ... these new functions. | |
5948 | (decimal_to_longest): New function. | |
5949 | (decimal_from_floating): Remove, replace by ... | |
5950 | (decimal_from_doublest): ... this new function. | |
5951 | (decimal_to_doublest): Update to new decimal_to_string interface. | |
5952 | ||
5953 | * value.c (unpack_long): Use decimal_to_longest. | |
5954 | * valops.c (value_cast): Use decimal_from_doublest instead of | |
5955 | decimal_from_floating. Use decimal_from_[u]longest isntead of | |
5956 | decimal_from_integral. | |
5957 | * valarith.c (value_args_as_decimal): Likewise. | |
5958 | * valprint.c (print_decimal_floating): Update to new | |
5959 | decimal_to_string interface. | |
5960 | * printcmd.c (printf_decfloat): Likewise. | |
5961 | * c-exp.y (parse_number): Update to new decimal_from_string interface. | |
5962 | ||
1841ee5d UW |
5963 | 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com> |
5964 | ||
5965 | * doublest.h: Do not include "floatformat.h". Remove stale comments. | |
5966 | * gdbtypes.c: Include "floatformat.h". | |
5967 | * value.c: Likewise. | |
5968 | * m68k-tdep.c: Likewise. | |
5969 | ||
5970 | * findvar.c: Do not include "floatformat.h". | |
5971 | * amd64-darwin-tdep.c: Likewise. | |
5972 | * arm-linux-tdep.c: Likewise. | |
5973 | * i386-darwin-tdep.c: Likewise. | |
5974 | * i387-tdep.c: Likewise. | |
5975 | * m68k-linux-tdep.c: Likewise. | |
5976 | * mep-tdep.c: Likewise. | |
5977 | * mips-tdep.c: Likewise. | |
5978 | * nios2-tdep.c: Likewise. | |
5979 | * s390-linux-tdep.c: Likewise. | |
5980 | * sparc-obsd-tdep.c: Likewise. | |
5981 | * sparc-tdep.c: Likewise. | |
5982 | * sparc64-tdep.c: Likewise. | |
5983 | * spu-tdep.c: Likewise. | |
5984 | * tic6x-tdep.c: Likewise. | |
5985 | * tilegx-tdep.c: Likewise. | |
5986 | * vax-tdep.c: Likewise. | |
5987 | * xstormy16-tdep.c: Likewise. | |
5988 | * xtensa-tdep.c: Likewise. | |
5989 | ||
5990 | * top.c: Do not include "doublest.h". | |
5991 | * aarch64-tdep.c: Likewise. | |
5992 | * alpha-tdep.c: Likewise. | |
5993 | * arm-linux-tdep.c: Likewise. | |
5994 | * m68k-linux-tdep.c: Likewise. | |
5995 | * tilegx-tdep.c: Likewise. | |
5996 | * xstormy16-tdep.c: Likewise. | |
5997 | ||
a80a6471 JB |
5998 | 2017-10-05 John Baldwin <jhb@FreeBSD.org> |
5999 | ||
6000 | * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define. | |
6001 | (mipsn32_fbsd_sigframe): Define. | |
6002 | (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder | |
6003 | for FreeBSD/mipsn32. | |
6004 | ||
12c4bd7f JB |
6005 | 2017-10-05 John Baldwin <jhb@FreeBSD.org> |
6006 | ||
6007 | * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and | |
6008 | AT_HWCAP. | |
6009 | ||
c91933e9 TG |
6010 | 2017-10-05 Tristan Gingold <tgingold@free.fr> |
6011 | ||
6012 | * MAINTAINERS (Misc): Update my email address. | |
6013 | ||
5cd63fda PA |
6014 | 2017-10-04 Pedro Alves <palves@redhat.com> |
6015 | ||
6016 | * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use | |
6017 | it instead of target_gdbarch. | |
6018 | (get_remote_state, get_remote_packet_size): Adjust | |
6019 | get_remote_arch_state calls, passing down target_gdbarch | |
6020 | explicitly. | |
6021 | (packet_reg_from_regnum, packet_reg_from_pnum): New parameter | |
6022 | 'gdbarch' and use it instead of target_gdbarch. | |
6023 | (get_memory_packet_size): Adjust get_remote_arch_state calls, | |
6024 | passing down target_gdbarch explicitly. | |
6025 | (struct stop_reply) <arch>: New field. | |
6026 | (remote_parse_stop_reply): Use the stopped thread's architecture, | |
6027 | not the current inferior's. Save the architecture in the | |
6028 | stop_reply. | |
6029 | (process_stop_reply): Use the stop reply's architecture. | |
6030 | (process_g_packet, remote_fetch_registers) | |
6031 | (remote_prepare_to_store, store_registers_using_G) | |
6032 | (remote_store_registers): Adjust get_remote_arch_state calls, | |
6033 | using the regcache's architecture. | |
6034 | (remote_get_trace_status): Adjust get_remote_arch_state calls, | |
6035 | passing down target_gdbarch explicitly. | |
6036 | * spu-multiarch.c (spu_thread_architecture): Defer to the target | |
6037 | beneath instead of calling target_gdbarch. | |
6038 | * target.c (default_thread_architecture): Use the specified | |
6039 | inferior's architecture, instead of the current inferior's | |
6040 | architecture (via target_gdbarch). | |
6041 | ||
ed4227b7 PA |
6042 | 2017-10-04 Pedro Alves <palves@redhat.com> |
6043 | ||
6044 | * regcache.c (get_thread_arch_regcache): Remove null_ptid special | |
6045 | case. | |
6046 | (regcache_print): Handle !target_has_registers here instead. | |
6047 | ||
55b11ddf PA |
6048 | 2017-10-04 Pedro Alves <palves@redhat.com> |
6049 | ||
6050 | * frame.c (create_test_frame): Delete. | |
6051 | * frame.h (create_test_frame): Delete. | |
6052 | * gdbarch-selftests.c: Include gdbthread.h and target.h. | |
6053 | (class regcache_test): Delete. | |
6054 | (test_target_has_registers, test_target_has_stack) | |
6055 | (test_target_has_memory, test_target_prepare_to_store) | |
6056 | (test_target_store_registers): New functions. | |
6057 | (test_target_ops): New class. | |
6058 | (register_to_value_test): Error out if there's already a | |
6059 | process_stratum (or higher) target pushed. Create a fuller mock | |
6060 | environment, with mock target_ops, inferior, address space, thread | |
6061 | and inferior_ptid. | |
6062 | * progspace.c (struct address_space): Move to ... | |
6063 | * progspace.h (struct address_space): ... here. | |
6064 | * regcache.h (regcache::~regcache, regcache::raw_write) | |
6065 | [GDB_SELF_TEST]: No longer virtual. | |
6066 | ||
4c71c105 SM |
6067 | 2017-10-04 Simon Marchi <simon.marchi@ericsson.com> |
6068 | ||
6069 | * mi/mi-main.c (list_available_thread_groups): Reverse filter logic. | |
6070 | ||
73dcd72d PA |
6071 | 2017-10-04 Pedro Alves <palves@redhat.com> |
6072 | ||
6073 | * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code | |
6074 | out of 'between TRY and CATCH'. | |
6075 | ||
44704526 PA |
6076 | 2017-10-04 Pedro Alves <palves@redhat.com> |
6077 | ||
6078 | * cli/cli-cmds.c (complete_command): Add missing END_CATCH. | |
6079 | * common/common-exceptions.h (TRY): Open an outermost scope. | |
6080 | Expand intro comment. | |
6081 | (CATCH): Reindent. | |
6082 | (END_CATCH): Close the outermost scope. | |
6083 | * completer.c (complete_line_internal): Add missing END_CATCH. | |
6084 | ||
bc3b087d SDJ |
6085 | 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com> |
6086 | ||
6087 | * NEWS (Changes since GDB 8.0): Add entry about new | |
6088 | 'set-cwd-on-gdbserver' feature. | |
6089 | (New remote packets): Add entry for QSetWorkingDir. | |
6090 | * common/common-inferior.h (set_inferior_cwd): New prototype. | |
6091 | * infcmd.c (set_inferior_cwd): Remove "static". | |
6092 | (show_cwd_command): Expand text to include remote debugging. | |
6093 | * remote.c: Add PACKET_QSetWorkingDir. | |
6094 | (remote_protocol_features) <QSetWorkingDir>: New entry for | |
6095 | PACKET_QSetWorkingDir. | |
6096 | (extended_remote_set_inferior_cwd): New function. | |
6097 | (extended_remote_create_inferior): Call | |
6098 | "extended_remote_set_inferior_cwd". | |
6099 | (_initialize_remote): Call "add_packet_config_cmd" for | |
6100 | QSetWorkingDir. | |
6101 | ||
d092c5a2 SDJ |
6102 | 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com> |
6103 | ||
6104 | * NEWS (New commands): Mention "set/show cwd". | |
6105 | * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on | |
6106 | "cd" command's help text. | |
6107 | * common/common-inferior.h (get_inferior_cwd): New prototype. | |
6108 | * infcmd.c (inferior_cwd_scratch): New global variable. | |
6109 | (set_inferior_cwd): New function. | |
6110 | (get_inferior_cwd): Likewise. | |
6111 | (set_cwd_command): Likewise. | |
6112 | (show_cwd_command): Likewise. | |
6113 | (_initialize_infcmd): Add "set/show cwd" commands. | |
6114 | * inferior.h (class inferior) <cwd>: New field. | |
6115 | * nat/fork-inferior.c: Include "gdb_tilde_expand.h". | |
6116 | (fork_inferior): Change inferior's cwd before its execution. | |
6117 | * windows-nat.c (windows_create_inferior): Pass inferior's cwd | |
6118 | to CreateProcess. | |
6119 | ||
7da0a886 SDJ |
6120 | 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com> |
6121 | ||
6122 | * Makefile.in (SFILES): Add gdb_tilde_expand.c. | |
6123 | (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h. | |
6124 | (COMMON_OBS): Add gdb_tilde_expand.o. | |
6125 | * common/gdb_tilde_expand.c: New file. | |
6126 | * common/gdb_tilde_expand.h: Likewise. | |
6127 | ||
db8dd160 MR |
6128 | 2017-10-03 Maciej W. Rozycki <macro@imgtec.com> |
6129 | ||
6130 | * gdbarch.sh (objfile): Remove duplicate declaration. | |
6131 | * gdbarch.h: Regenerate. | |
6132 | ||
f8bfbf22 TT |
6133 | 2017-10-03 Tom Tromey <tom@tromey.com> |
6134 | ||
6135 | * utils.c (internal_vproblem): Use string_vprintf. | |
6136 | ||
5178ed48 TT |
6137 | 2017-10-03 Tom Tromey <tom@tromey.com> |
6138 | ||
6139 | * printcmd.c (info_symbol_command): Use std::string. | |
6140 | ||
8cff8730 TT |
6141 | 2017-10-03 Tom Tromey <tom@tromey.com> |
6142 | ||
6143 | * top.c (gdb_safe_append_history): Use std::string. | |
6144 | ||
895b8f30 TT |
6145 | 2017-10-03 Tom Tromey <tom@tromey.com> |
6146 | ||
6147 | * event-top.c (stdin_event_handler): Update. | |
6148 | * main.c (captured_main_1): Update. | |
6149 | * top.h (make_delete_ui_cleanup): Remove. | |
6150 | (struct ui): Add constructor and destructor. | |
6151 | (new_ui, delete_ui): Remove. | |
6152 | * top.c (make_delete_ui_cleanup): Remove. | |
6153 | (new_ui_command): Use std::unique_ptr. | |
6154 | (delete_ui_cleanup): Remove. | |
6155 | (ui::ui): Rename from new_ui. Update. | |
6156 | (free_ui): Remove. | |
6157 | (ui::~ui): Rename from delete_ui. Update. | |
6158 | ||
0efef640 TT |
6159 | 2017-10-03 Tom Tromey <tom@tromey.com> |
6160 | ||
6161 | * symfile.c (load_progress): Use gdb::byte_vector. | |
6162 | ||
245ad7d3 TT |
6163 | 2017-10-03 Tom Tromey <tom@tromey.com> |
6164 | ||
6165 | * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused | |
6166 | declaration. | |
6167 | * printcmd.c (x_command): Remove unused declaration. | |
6168 | * symfile.c (symbol_file_command): Remove unused declaration. | |
6169 | ||
e05550d7 TT |
6170 | 2017-10-03 Tom Tromey <tom@tromey.com> |
6171 | ||
6172 | * utils.c (internal_vproblem): Use std::string. | |
6173 | (defaulted_query): Likewise. | |
6174 | ||
b95de2b7 TT |
6175 | 2017-10-03 Tom Tromey <tom@tromey.com> |
6176 | ||
6177 | * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update. | |
6178 | * top.c (execute_command_to_string): Update. | |
6179 | * utils.c (make_cleanup_restore_page_info): Remove. | |
6180 | (do_restore_page_info_cleanup): Remove. | |
6181 | (set_batch_flag_and_restore_page_info): | |
6182 | New. | |
6183 | (make_cleanup_restore_page_info): Remove. | |
6184 | (set_batch_flag_and_make_cleanup_restore_page_info): Remove. | |
6185 | (~set_batch_flag_and_restore_page_info): New | |
6186 | (make_cleanup_restore_uinteger): Remove. | |
6187 | (make_cleanup_restore_integer): Remove. | |
6188 | (struct restore_integer_closure): Remove. | |
6189 | (restore_integer): Remove. | |
6190 | * utils.h (struct set_batch_flag_and_restore_page_info): New | |
6191 | class. | |
6192 | (set_batch_flag_and_make_cleanup_restore_page_info): Remove. | |
6193 | (make_cleanup_restore_page_info): Remove. | |
6194 | (make_cleanup_restore_uinteger) Remove. | |
6195 | (make_cleanup_restore_integer) Remove. | |
6196 | ||
07036511 TT |
6197 | 2017-10-03 Tom Tromey <tom@tromey.com> |
6198 | ||
6199 | * record-full.h (record_full_gdb_operation_disable_set): Return | |
6200 | scoped_restore_tmpl<int>. | |
6201 | * infrun.c (adjust_pc_after_break): Update. | |
6202 | (handle_signal_stop): Update. | |
6203 | * record-full.c (record_full_gdb_operation_disable_set): Return | |
6204 | scoped_restore_tmpl<int>. | |
6205 | (record_full_wait_1, record_full_insert_breakpoint) | |
6206 | (record_full_remove_breakpoint, record_full_save) | |
6207 | (record_full_goto_insn): Update. | |
6208 | ||
45320ffa TT |
6209 | 2017-10-02 Tom Tromey <tom@tromey.com> |
6210 | ||
6211 | PR rust/22236: | |
6212 | * rust-lang.c (rust_val_print_str): New function. | |
6213 | (val_print_struct): Call it. | |
6214 | (rust_subscript): Preserve name of slice type. | |
6215 | ||
b3e3859b TT |
6216 | 2017-10-02 Tom Tromey <tom@tromey.com> |
6217 | ||
6218 | * rust-lang.c (rust_subscript): Handle slices in | |
6219 | EVAL_AVOID_SIDE_EFFECTS case. | |
6220 | ||
01af5e0d TT |
6221 | 2017-10-02 Tom Tromey <tom@tromey.com> |
6222 | ||
6223 | * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type. | |
6224 | ||
888e3ddb TT |
6225 | 2017-10-02 Tom Tromey <tom@tromey.com> |
6226 | ||
6227 | * rust-lang.h (rust_slice_type): Add "extern". | |
6228 | ||
cc536b21 PA |
6229 | 2017-10-02 Tom Tromey <tom@tromey.com> |
6230 | Pedro Alves <palves@redhat.com> | |
6231 | ||
6232 | * ada-lang.h (ada_exc_info::operator<): Make const. | |
6233 | (ada_exc_info::operator==): Make const. | |
6234 | * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==): | |
6235 | Make const. | |
6236 | ||
386c8614 TT |
6237 | 2017-09-29 Tom Tromey <tom@tromey.com> |
6238 | ||
6239 | * target.c (read_whatever_is_readable): Change type of "result". | |
6240 | Update. | |
6241 | (free_memory_read_result_vector): Remove. | |
6242 | (read_memory_robust): Change return type. Update. | |
6243 | * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use | |
6244 | bin2hex, std::string. | |
6245 | * target.h (memory_read_result_s): Remove typedef. | |
6246 | (free_memory_read_result_vector): Remove. | |
6247 | (read_memory_robust): Return std::vector. | |
6248 | ||
789c4b5e TT |
6249 | 2017-09-29 Tom Tromey <tom@tromey.com> |
6250 | ||
6251 | * mi/mi-main.c (captured_mi_execute_command): Use scope_restore. | |
6252 | ||
ab816a27 TT |
6253 | 2017-09-29 Tom Tromey <tom@tromey.com> |
6254 | ||
6255 | * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update. | |
6256 | * ada-lang.h (struct ada_exc_info): Remove typedef. Declare | |
6257 | operator< and operator==. | |
6258 | (ada_exceptions_list): Return a std::vector. | |
6259 | * ada-lang.c (ada_exc_info::operator<): Rename from | |
6260 | compare_ada_exception_info. | |
6261 | (ada_exc_info::operator==): New. | |
6262 | (sort_remove_dups_ada_exceptions_list): Change type of | |
6263 | "exceptions". | |
6264 | (ada_add_standard_exceptions, ada_add_exceptions_from_frame) | |
6265 | (ada_add_global_exceptions): Likewise. | |
6266 | (ada_exceptions_list_1): Return a std::vector. | |
6267 | (ada_exceptions_list): Likewise. | |
6268 | ||
52f9abe4 TT |
6269 | 2017-09-29 Tom Tromey <tom@tromey.com> |
6270 | ||
6271 | * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a | |
6272 | 'std::set *'. | |
6273 | (print_one_inferior): Update. | |
6274 | (free_vector_of_ints): Remove. | |
6275 | (list_available_thread_groups): Change "ids" to std::set. | |
6276 | (mi_cmd_list_thread_groups): Update. | |
6277 | (struct collect_cores_data) <core>: Now a std::set. | |
6278 | (collect_cores): Update. | |
6279 | (unique): Remove. | |
6280 | (print_one_inferior): Update. | |
6281 | ||
dcd5ddcc TT |
6282 | 2017-09-29 Tom Tromey <tom@tromey.com> |
6283 | ||
6284 | * mi/mi-main.c (mi_execute_cli_command): Use std::string. | |
6285 | (mi_execute_async_cli_command): Likewise. | |
6286 | (mi_cmd_trace_frame_collected): Use field_fmt. | |
6287 | ||
45d288cc TT |
6288 | 2017-09-29 Tom Tromey <tom@tromey.com> |
6289 | ||
6290 | * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use | |
6291 | gdb::byte_vector. | |
6292 | ||
6afe2f4a TT |
6293 | 2017-09-29 Tom Tromey <tom@tromey.com> |
6294 | ||
6295 | * mi/mi-parse.c (mi_parse): Remove unused declaration. | |
6296 | ||
9813429a TT |
6297 | 2017-09-29 Tom Tromey <tom@tromey.com> |
6298 | ||
6299 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg". | |
6300 | ||
2d6960b4 TT |
6301 | 2017-09-29 Tom Tromey <tom@tromey.com> |
6302 | ||
6303 | * varobj.h (varobj_gen_name): Return std::string. | |
6304 | * varobj.c (varobj_gen_name): Return std::string. | |
6305 | * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string. | |
6306 | (mi_cmd_var_delete): Don't copy "name". | |
6307 | ||
784c453a TT |
6308 | 2017-09-29 Tom Tromey <tom@tromey.com> |
6309 | ||
6310 | * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string. | |
6311 | (mi_cmd_break_insert_1): Update. | |
6312 | ||
a9bc57b9 TT |
6313 | 2017-09-29 Tom Tromey <tom@tromey.com> |
6314 | ||
6315 | * target.h (make_scoped_defer_target_commit_resume): Update. | |
6316 | * target.c (make_scoped_defer_target_commit_resume): Rename from | |
6317 | make_cleanup_defer_target_commit_resume. Return a | |
6318 | scoped_restore. | |
6319 | * infrun.c (proceed): Use make_scoped_defer_target_commit_resume. | |
6320 | ||
9754d8c4 TT |
6321 | 2017-09-29 Tom Tromey <tom@tromey.com> |
6322 | ||
6323 | * main.c (captured_main_1): Remove unused declaration. | |
6324 | * spu-multiarch.c (parse_spufs_run): Remove unused declaration. | |
6325 | ||
99ef965c TT |
6326 | 2017-09-29 Tom Tromey <tom@tromey.com> |
6327 | ||
6328 | * symtab.c (search_symbols): Remove unused outer cleanup. | |
6329 | (make_source_files_completion_list): Remove unused declaration. | |
6330 | ||
42518ba7 TT |
6331 | 2017-09-29 Tom Tromey <tom@tromey.com> |
6332 | ||
6333 | * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector. | |
6334 | ||
726b2169 TT |
6335 | 2017-09-29 Tom Tromey <tom@tromey.com> |
6336 | ||
6337 | * xstormy16-tdep.c (xstormy16_push_dummy_call): Use | |
6338 | gdb::byte_vector. | |
6339 | ||
55b06432 TT |
6340 | 2017-09-29 Tom Tromey <tom@tromey.com> |
6341 | ||
6342 | * complaints.c (vcomplaint): Use std::string. | |
6343 | ||
8abcee91 TT |
6344 | 2017-09-29 Tom Tromey <tom@tromey.com> |
6345 | ||
6346 | * tracepoint.c (trace_variable_command): Use std::string. | |
6347 | (encode_actions_1): Remove unused declarations. | |
6348 | (create_tsv_from_upload): Use std::string. | |
6349 | ||
6ad94bc7 TT |
6350 | 2017-09-29 Tom Tromey <tom@tromey.com> |
6351 | ||
6352 | * cp-support.c (gdb_demangle): Use std::string. | |
6353 | ||
2003f3d8 TT |
6354 | 2017-09-29 Tom Tromey <tom@tromey.com> |
6355 | ||
6356 | * stack.c (parse_frame_specification): Use std::string | |
6357 | (info_frame_command): Use gdb::unique_xmalloc_ptr. | |
6358 | ||
8f8accb5 TT |
6359 | 2017-09-29 Tom Tromey <tom@tromey.com> |
6360 | ||
6361 | * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector. | |
6362 | ||
200aa7b1 TT |
6363 | 2017-09-29 Tom Tromey <tom@tromey.com> |
6364 | ||
6365 | * utils.c (vfprintf_maybe_filtered): Use std::string. | |
6366 | (vfprintf_unfiltered): Likewise. | |
6367 | ||
606aae8a TT |
6368 | 2017-09-29 Tom Tromey <tom@tromey.com> |
6369 | ||
6370 | * event-top.c (top_level_prompt): Return std::string. | |
6371 | (display_gdb_prompt): Update. | |
6372 | ||
bd413795 TT |
6373 | 2017-09-29 Tom Tromey <tom@tromey.com> |
6374 | ||
6375 | * unittests/common-utils-selftests.c (format): New function. | |
6376 | (string_vprintf_tests): New function. | |
6377 | (_initialize_common_utils_selftests): Register new tests. | |
6378 | * common/common-utils.c (string_vprintf): New function. | |
6379 | * common/common-utils.h (string_vprintf): Declare. | |
6380 | ||
256642e8 PA |
6381 | 2017-09-29 Pedro Alves <palves@redhat.com> |
6382 | ||
6383 | * common/rsp-low.c (unpack_varlen_hex): Constify. | |
6384 | * common/rsp-low.h (unpack_varlen_hex): Constify. | |
6385 | * linux-nat.c (linux_child_static_tracepoint_markers_by_strid): | |
6386 | Constify. | |
6387 | * remote.c (remote_set_permissions, read_ptid) | |
6388 | (remote_current_thread, remote_get_threads_with_qthreadinfo) | |
6389 | (remote_static_tracepoint_marker_at) | |
6390 | (remote_static_tracepoint_markers_by_strid) | |
6391 | (stop_reply_extract_thread, remote_parse_stop_reply): Constify. | |
6392 | * tracepoint.c (parse_trace_status, parse_tracepoint_status) | |
6393 | (parse_tracepoint_definition, parse_tsv_definition) | |
6394 | (parse_static_tracepoint_marker_definition): Constify. | |
6395 | * tracepoint.h (parse_static_tracepoint_marker_definition) | |
6396 | (parse_trace_status, parse_tracepoint_status) | |
6397 | (parse_tracepoint_definition, parse_tsv_definition): Constify. | |
6398 | ||
b6bb3468 PA |
6399 | 2017-09-29 Pedro Alves <palves@redhat.com> |
6400 | ||
6401 | * remote.c (target_buf, target_buf_size): Delete. | |
6402 | (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters. | |
6403 | Use the connection's packet buffer instead. | |
6404 | All callers adjusted. | |
6405 | (_initialize_remote): Remove references to target_buf and | |
6406 | target_buf_size. | |
6407 | ||
b2f8eb7a PA |
6408 | 2017-09-28 Pedro Alves <palves@redhat.com> |
6409 | ||
6410 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
6411 | unittests/common-utils-selftests.c. | |
6412 | (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o. | |
6413 | (COMMON_OBS): Remove utils-selftests.o. | |
6414 | * utils-selftests.c: Move to ... | |
6415 | * unittests/common-utils-selftests.c: ... here and rename self | |
6416 | test to "string_printf". | |
6417 | ||
08302ed2 DE |
6418 | 2017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch) |
6419 | ||
6420 | * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file | |
6421 | having NULL cus or tus. | |
6422 | ||
96a5a1d3 UW |
6423 | 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com> |
6424 | ||
6425 | * arm-tdep.c: (convert_from_extended): Remove. | |
6426 | (convert_to_extended): Likewise. | |
6427 | (arm_extract_return_value): Use convert_typed_floating. | |
6428 | (arm_store_return_value): Likewise. | |
6429 | ||
6430 | * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type. | |
6431 | * sh-tdep.c: Do not include "floatformat.h". | |
6432 | (sh_littlebyte_bigword_type): New function. | |
6433 | (sh_register_convert_to_virtual): Use convert_typed_floating. | |
6434 | (sh_register_convert_to_raw): Likewise. | |
6435 | * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type. | |
6436 | (sh64_littlebyte_bigword_type): New function. | |
6437 | (sh64_extract_return_value): Use convert_typed_floating. | |
6438 | (sh64_register_convert_to_virtual): Likewise. | |
6439 | (sh64_register_convert_to_raw): Likewise. | |
6440 | ||
0db7851f UW |
6441 | 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com> |
6442 | ||
6443 | * doublest.h (floatformat_from_type): Move to gdbtypes.h. | |
6444 | * doublest.c (floatformat_from_type): Move to gdbtypes.c. | |
6445 | ||
6446 | * gdbtypes.h (union type_specific): Make field floatformat hold | |
6447 | just a single struct floatformat, not an array. | |
6448 | (floatformat_from_type): Move here. | |
6449 | * gdbtypes.c (floatformat_from_type): Move here. Update to | |
6450 | changed TYPE_FLOATFORMAT definition. | |
6451 | (verify_floatformat): Update to changed TYPE_FLOATFORMAT. | |
6452 | (recursive_dump_type): Likewise. | |
6453 | (init_float_type): Install correct floatformat for byte order. | |
6454 | (arch_float_type): Likewise. | |
6455 | ||
77b7c781 UW |
6456 | 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com> |
6457 | ||
6458 | * gdbtypes.c (init_type): Change incoming argument from | |
6459 | length-in-bytes to length-in-bits. Assert length is a | |
6460 | multiple of TARGET_CHAR_BITS. | |
6461 | (arch_type, arch_flags_type): Likewise. | |
6462 | (init_integer_type): Update call to init_type. | |
6463 | (init_character_type): Likewise. | |
6464 | (init_boolean_type): Likewise. | |
6465 | (init_float_type): Likewise. | |
6466 | (init_decfloat_type): Likewise. | |
6467 | (init_complex_type): Likewise. | |
6468 | (init_pointer_type): Likewise. | |
6469 | (objfile_type): Likewise. | |
6470 | (arch_integer_type): Update call to arch_type. | |
6471 | (arch_character_type): Likewise. | |
6472 | (arch_boolean_type): Likewise. | |
6473 | (arch_float_type): Likewise. | |
6474 | (arch_decfloat_type): Likewise. | |
6475 | (arch_complex_type): Likewise. | |
6476 | (arch_pointer_type): Likewise. | |
6477 | (gdbtypes_post_init): Likewise. | |
6478 | ||
6479 | * dwarf2read.c (dwarf2_init_float_type): Update call to init_type. | |
6480 | (read_base_type): Likewise. | |
6481 | * mdebugread.c (basic_type): Likewise. | |
6482 | * stabsread.c (dbx_init_float_type): Likewise. | |
6483 | (rs6000_builtin_type): Likewise. | |
6484 | (read_range_type): Likewise. Also, fix call to init_integer_type | |
6485 | with erroneous length argument. | |
6486 | ||
6487 | * ada-lang.c (ada_language_arch_info): Update call to arch_type. | |
6488 | * d-lang.c (build_d_types): Likewise. | |
6489 | * f-lang.c (build_fortran_types): Likewise. | |
6490 | * go-lang.c (build_go_types): Likewise. | |
6491 | * opencl-lang.c (build_opencl_types): Likewise. | |
6492 | * jit.c (finalize_symtab): Likewise. | |
6493 | * gnu-v3-abi.c (build_gdb_vtable_type): Likewise. | |
6494 | (build_std_type_info_type): Likewise. | |
6495 | * target-descriptions.c (tdesc_gdb_type): Likewise. Also, | |
6496 | update call to arch_flags_type. | |
6497 | ||
6498 | * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to | |
6499 | arch_type. | |
6500 | * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise. | |
6501 | * windows-tdep.c (windows_get_tlb_type): Likewise. | |
6502 | ||
6503 | * avr-tdep.c (avr_gdbarch_init): Update call to arch_type. | |
6504 | * ft32-tdep.c (ft32_gdbarch_init): Likewise. | |
6505 | * m32c-tdep.c (make_types): Likewise. | |
6506 | * rl78-tdep.c (rl78_gdbarch_init): Likewise. | |
6507 | (rl78_psw_type): Update call to arch_flags_type. | |
6508 | * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type. | |
6509 | * rx-tdep.c (rx_psw_type): Likewise. | |
6510 | (rx_fpsw_type): Likewise. | |
6511 | * sparc-tdep.c (sparc_psr_type): Likewise. | |
6512 | (sparc_fsr_type): Likewise. | |
6513 | * sparc64-tdep.c (sparc64_pstate_type): Likewise. | |
6514 | (sparc64_ccr_type): Likewise. | |
6515 | (sparc64_fsr_type): Likewise. | |
6516 | (sparc64_fprs_type): Likewise. | |
6517 | ||
f21b4d5c TT |
6518 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6519 | ||
6520 | * findcmd.c (find_command): Constify. | |
6521 | ||
643c2ffa TT |
6522 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6523 | ||
6524 | * ada-tasks.c (task_command_1, task_command): Constify. | |
6525 | ||
510e5e56 TT |
6526 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6527 | ||
6528 | * symtab.c (maintenance_print_symbol_cache) | |
6529 | (maintenance_flush_symbol_cache) | |
6530 | (maintenance_print_symbol_cache_statistics): Constify. | |
6531 | ||
e503b191 TT |
6532 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6533 | ||
6534 | * inferior.c (detach_inferior_command, kill_inferior_command) | |
6535 | (inferior_command): Constify. | |
6536 | ||
4e001312 TT |
6537 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6538 | ||
6539 | * regcache.c (regcache_print, maintenance_print_registers) | |
6540 | (maintenance_print_raw_registers) | |
6541 | (maintenance_print_cooked_registers) | |
6542 | (maintenance_print_register_groups) | |
6543 | (maintenance_print_remote_registers): Constify. | |
6544 | ||
77763700 TT |
6545 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6546 | ||
6547 | * printcmd.c (map_display_numbers, undisplay_command) | |
6548 | (enable_disable_display_command, enable_display_command) | |
6549 | (disable_display_command): Constify. | |
6550 | ||
4495129a TT |
6551 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6552 | ||
6553 | * breakpoint.h (delete_command): Don't declare. | |
6554 | * breakpoint.c (delete_command, enable_once_command) | |
6555 | (enable_count_command, enable_delete_command, breakpoint_1) | |
6556 | (maintenance_info_breakpoints, stopin_command, stopat_command) | |
6557 | (delete_command, delete_trace_command, save_breakpoints) | |
6558 | (save_breakpoints_command, save_tracepoints_command): Constify. | |
6559 | ||
3088cf40 TT |
6560 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6561 | ||
6562 | * macrocmd.c (macro_expand_command, macro_expand_once_command) | |
6563 | (skip_ws, extract_identifier, macro_define_command) | |
6564 | (macro_undef_command, macro_list_command): Constify. | |
6565 | ||
69f476a3 TT |
6566 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6567 | ||
6568 | * infcmd.c (environment_info, set_environment_command) | |
6569 | (unset_environment_command, path_info, info_proc_cmd_1) | |
6570 | (info_proc_cmd_mappings, info_proc_cmd_stat) | |
6571 | (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline) | |
6572 | (info_proc_cmd_exe, info_proc_cmd_all): Constify. | |
6573 | ||
c4a3e68e TT |
6574 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6575 | ||
6576 | * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds): | |
6577 | Constify. | |
6578 | ||
c9d31bd6 TT |
6579 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6580 | ||
6581 | * symfile-mem.c (add_symbol_file_from_memory_command): Constify. | |
6582 | ||
1f3f85eb TT |
6583 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6584 | ||
6585 | * demangle.c (demangle_command): Constify. | |
6586 | ||
9c504b5d TT |
6587 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6588 | ||
6589 | * progspace.c (maintenance_info_program_spaces_command): | |
6590 | Constify. | |
6591 | ||
6663cf91 TT |
6592 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6593 | ||
6594 | * compile/compile.c (check_raw_argument, compile_file_command) | |
6595 | (compile_code_command, compile_print_command): Constify. | |
6596 | ||
34e5fa26 TT |
6597 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6598 | ||
6599 | * reggroups.c (maintenance_print_reggroups): Constify. | |
6600 | ||
8384c356 TT |
6601 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6602 | ||
6603 | * dwarf2read.c (save_gdb_index_command): Constify. | |
6604 | ||
884beb0c TT |
6605 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6606 | ||
6607 | * stap-probe.c (info_probes_stap_command): Constify. | |
6608 | ||
e0b2930c TT |
6609 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6610 | ||
6611 | * fork-child.c (unset_exec_wrapper_command): Constify. | |
6612 | ||
f938677d TT |
6613 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6614 | ||
6615 | * btrace.c (get_uint, get_context_size, no_chunk) | |
6616 | (maint_btrace_packet_history_cmd) | |
6617 | (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd) | |
6618 | (maint_info_btrace_cmd): Constify. | |
6619 | ||
8949cb87 TT |
6620 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6621 | ||
6622 | * reverse.c (delete_bookmark_command): Constify. | |
6623 | ||
ac88e2de TT |
6624 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6625 | ||
6626 | * remote.c (set_memory_packet_size) | |
6627 | (set_memory_write_packet_size, show_memory_write_packet_size) | |
6628 | (set_memory_read_packet_size, show_memory_read_packet_size) | |
6629 | (compare_sections_command, packet_command, remote_put_command) | |
6630 | (remote_get_command, remote_delete_command): Constify. | |
6631 | ||
bd4c9dfe TT |
6632 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6633 | ||
6634 | * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command) | |
6635 | (set_mipsfpu_double_command, set_mipsfpu_none_command) | |
6636 | (set_mipsfpu_auto_command): Constify. | |
6637 | ||
5e93d4c6 TT |
6638 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6639 | ||
6640 | * cli/cli-cmds.h (cd_command): Constify. | |
6641 | * cli/cli-cmds.c (cd_command): Constify. | |
6642 | ||
fc41a75b TT |
6643 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6644 | ||
6645 | * thread.c (thread_name_command, thread_find_command): Constify. | |
6646 | ||
67810076 TT |
6647 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6648 | ||
6649 | * probe.c (enable_probes_command, disable_probes_command): | |
6650 | Constify. | |
6651 | ||
1d8b34a7 TT |
6652 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6653 | ||
6654 | * symfile.c (symbol_file_command): Constify. | |
6655 | * gdbcore.h (deprecated_file_changed_hook): Constify. | |
6656 | * exec.c (deprecated_file_changed_hook, exec_file_command) | |
6657 | (file_command): Constify. | |
6658 | * defs.h (symbol_file_command): Constify. | |
6659 | ||
442019e1 TT |
6660 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6661 | ||
6662 | * remote-fileio.c (set_system_call_allowed) | |
6663 | (show_system_call_allowed): Constify. | |
6664 | ||
2983f7cb TT |
6665 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6666 | ||
6667 | * tracepoint.c (delete_trace_variable_command) | |
6668 | (tfind_end_command, tfind_start_command, tfind_pc_command) | |
6669 | (tfind_tracepoint_command, tfind_line_command) | |
6670 | (tfind_range_command, tfind_outside_command): Constify. | |
6671 | ||
4fd41b24 TT |
6672 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6673 | ||
6674 | * ax-gdb.c (maint_agent_printf_command, agent_command) | |
6675 | (agent_eval_command): Constify. | |
6676 | ||
f2fc3015 TT |
6677 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6678 | ||
6679 | * tracepoint.c (info_scope_command): Constify. | |
6680 | * python/python.c (gdbpy_decode_line): Constify. | |
6681 | * python/py-breakpoint.c (bppy_init): Constify. | |
6682 | * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify. | |
6683 | * location.h: (new_linespec_location) | |
6684 | (string_to_event_location_basic, string_to_event_location): | |
6685 | Constify. | |
6686 | * location.c (new_linespec_location) | |
6687 | (string_to_event_location_basic, string_to_event_location): | |
6688 | Constify. | |
6689 | * linespec.h (decode_line_with_current_source) | |
6690 | (decode_line_with_last_displayed, linespec_lex_to_end): Constify. | |
6691 | * linespec.c (linespec_lex_to_end) | |
6692 | (decode_line_with_current_source) | |
6693 | (decode_line_with_last_displayed): Constify. | |
6694 | * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): | |
6695 | Constify. | |
6696 | * cli/cli-cmds.c (edit_command, list_command): Constify. | |
6697 | * breakpoint.h (until_break_command, watch_command_wrapper) | |
6698 | (awatch_command_wrapper, rwatch_command_wrapper) | |
6699 | (init_ada_exception_breakpoint): Constify. | |
6700 | * breakpoint.c (break_command_1, dprintf_command) | |
6701 | (break_range_command, watch_command_wrapper) | |
6702 | (rwatch_command_wrapper, awatch_command_wrapper) | |
6703 | (until_break_command, init_ada_exception_breakpoint) | |
6704 | (strace_marker_create_sals_from_location, trace_command) | |
6705 | (ftrace_command, strace_command, struct tracepoint): Constify. | |
6706 | * ax-gdb.c (agent_command_1): Constify. | |
6707 | * ada-lang.c (ada_exception_sal): Constify. | |
6708 | ||
8c2f95f4 TT |
6709 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6710 | ||
6711 | * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save) | |
6712 | (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number) | |
6713 | (get_context_size, no_chunk, get_insn_history_modifiers) | |
6714 | (cmd_record_insn_history, get_call_history_modifiers) | |
6715 | (cmd_record_call_history): Constify. | |
6716 | ||
a0d65762 TT |
6717 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6718 | ||
6719 | * source.c (show_substitute_path_command) | |
6720 | (unset_substitute_path_command, set_substitute_path_command): | |
6721 | Constify. | |
6722 | ||
58971144 TT |
6723 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6724 | ||
6725 | * typeprint.c (maintenance_print_type): Constify. | |
6726 | * maint.c (maintenance_dump_me, maintenance_demangle) | |
6727 | (maintenance_time_display, maintenance_info_sections) | |
6728 | (maintenance_print_statistics, maintenance_deprecate) | |
6729 | (maintenance_undeprecate): Constify. | |
6730 | (maintenance_do_deprecate): Constify. Use std::string. | |
6731 | (maintenance_selftest): Constify. | |
6732 | * gdbtypes.h (maintenance_print_type): Constify. | |
6733 | ||
c482f52c TT |
6734 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6735 | ||
6736 | * hppa-tdep.c (unwind_command): Constify. | |
6737 | ||
e100df1a TT |
6738 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6739 | ||
6740 | * target-descriptions.c (unset_tdesc_filename_cmd) | |
6741 | (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions): | |
6742 | Constify. | |
6743 | ||
31d56ade TT |
6744 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6745 | ||
6746 | * dummy-frame.c (maintenance_print_dummy_frames): Constify. | |
6747 | ||
b961da0b TT |
6748 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6749 | ||
6750 | * tui/tui.c (tui_enable_command, tui_disable_command): Constify. | |
6751 | ||
e2d8ae16 TT |
6752 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6753 | ||
6754 | * tui/tui-regs.c (tui_reg_command): Constify. | |
6755 | ||
863779b0 TT |
6756 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6757 | ||
6758 | * skip.c (skip_file_command, skip_function_command) | |
6759 | (skip_enable_command, skip_disable_command, skip_delete_command): | |
6760 | Constify. | |
6761 | ||
cdb34d4a TT |
6762 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6763 | ||
6764 | * record-btrace.c (cmd_record_btrace_bts_start) | |
6765 | (cmd_record_btrace_pt_start): Constify. | |
6766 | ||
e99c83e7 TT |
6767 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6768 | ||
6769 | * symmisc.c (maintenance_print_symbols) | |
6770 | (maintenance_print_msymbols, maintenance_print_objfiles) | |
6771 | (maintenance_info_symtabs, maintenance_check_symtabs) | |
6772 | (maintenance_expand_symtabs, maintenance_info_line_tables): | |
6773 | Constify. | |
6774 | ||
32faf971 TT |
6775 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6776 | ||
6777 | * top.c (new_ui_command): Constify. | |
6778 | ||
2cf311eb TT |
6779 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6780 | ||
6781 | * symfile.c (add_symbol_file_command) | |
6782 | (remove_symbol_file_command, list_overlays_command) | |
6783 | (map_overlay_command, unmap_overlay_command) | |
6784 | (overlay_auto_command, overlay_manual_command) | |
6785 | (overlay_off_command, overlay_load_command): Constify. | |
6786 | ||
e6738699 TT |
6787 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6788 | ||
6789 | * spu-tdep.c (info_spu_event_command, info_spu_signal_command) | |
6790 | (info_spu_mailbox_command, info_spu_dma_command) | |
6791 | (info_spu_proxydma_command): Constify. | |
6792 | ||
aa360cd5 TT |
6793 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6794 | ||
6795 | * cli/cli-logging.c (set_logging_on, set_logging_off): Constify. | |
6796 | ||
898241a5 TT |
6797 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6798 | ||
6799 | * cli/cli-script.c (user_defined_command): Constify. | |
6800 | ||
2d0ac106 TT |
6801 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6802 | ||
6803 | * cli/cli-dump.c (dump_memory_command, dump_value_command) | |
6804 | (dump_srec_memory, dump_srec_value, dump_ihex_memory) | |
6805 | (dump_ihex_value, dump_verilog_memory, dump_verilog_value) | |
6806 | (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory) | |
6807 | (dump_binary_value, append_binary_memory, append_binary_value): | |
6808 | Constify. | |
6809 | (struct dump_context) <func>: Constify. | |
6810 | (add_dump_command): Update. | |
6811 | ||
dede02ce TT |
6812 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6813 | ||
6814 | * cli/cli-cmds.c (show_version, show_configuration) | |
6815 | (source_command, show_user): Constify. | |
6816 | ||
d3cb6b99 TT |
6817 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6818 | ||
6819 | * target.c (maintenance_print_target_stack): Constify. | |
6820 | ||
1970a12f TT |
6821 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6822 | ||
6823 | * interps.c (interpreter_exec_cmd): Constify. | |
6824 | ||
41243651 TT |
6825 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6826 | ||
6827 | * record-full.c (cmd_record_full_restore): Constify. | |
6828 | ||
4465d9db TT |
6829 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6830 | ||
6831 | * memattr.c (enable_mem_command, disable_mem_command) | |
6832 | (delete_mem_command): Constify. | |
6833 | ||
ad25e423 TT |
6834 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6835 | ||
6836 | * value.c (show_convenience): Constify. | |
6837 | ||
d64097b1 TT |
6838 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6839 | ||
6840 | * gdbcore.h (core_file_command): Update. | |
6841 | * corefile.c (core_file_command): Constify. | |
6842 | ||
4d4589ef TT |
6843 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6844 | ||
6845 | * user-regs.c (maintenance_print_user_registers): Constify. | |
6846 | ||
32a7bf17 TT |
6847 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6848 | ||
6849 | * cp-namespace.c (maintenance_cplus_namespace): Constify. | |
6850 | ||
4a475551 TT |
6851 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6852 | ||
6853 | * cp-support.c (first_component_command): Constify. | |
6854 | ||
990b9f9f TT |
6855 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6856 | ||
6857 | * psymtab.c (maintenance_print_psymbols) | |
6858 | (maintenance_info_psymtabs, maintenance_check_psymtabs): | |
6859 | Constify. | |
6860 | ||
c281872e TT |
6861 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6862 | ||
6863 | * windows-tdep.c (display_tib): Constify. | |
6864 | ||
5b64bf74 TT |
6865 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6866 | ||
6867 | * linux-fork.c (delete_checkpoint_command) | |
6868 | (detach_checkpoint_command): Constify. | |
6869 | ||
4ada038f TT |
6870 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6871 | ||
6872 | * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify. | |
6873 | ||
57f5a81b TT |
6874 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6875 | ||
6876 | * arc-tdep.c (dump_arc_instruction_command): Constify. | |
6877 | ||
b0a8e6c4 TT |
6878 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6879 | ||
6880 | * valprint.c (set_radix, show_radix): Constify. | |
6881 | ||
8d97dc1c TT |
6882 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6883 | ||
6884 | * dtrace-probe.c (info_probes_dtrace_command): Constify. | |
6885 | ||
eb7c454d TT |
6886 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6887 | ||
6888 | * command.h (not_just_help_class_command): Update. | |
6889 | * cli/cli-decode.h (not_just_help_class_command): Update. | |
6890 | * cli/cli-decode.c (not_just_help_class_command): Constify. | |
6891 | ||
e4e33335 TT |
6892 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6893 | ||
6894 | * gdb_bfd.c (maintenance_info_bfds): Constify. | |
6895 | ||
0450cc4c TT |
6896 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6897 | ||
6898 | * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function | |
6899 | overloads. | |
6900 | (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc. | |
6901 | (do_const_cfunc): New function. | |
6902 | (cmd_cfunc_eq): New overload. | |
6903 | (cli_user_command_p): Check do_const_cfunc. | |
6904 | * cli/cli-decode.h (struct cmd_list_element) <function>: New field | |
6905 | const_cfunc. | |
6906 | * command.h (add_cmd): Add const overload and no-function | |
6907 | overload. | |
6908 | (set_cmd_cfunc): Add const overload. | |
6909 | (cmd_const_cfunc_ftype): Declare. | |
6910 | (cmd_cfunc_eq): Add const overload. | |
6911 | * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c, | |
6912 | python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd | |
6913 | overload. | |
6914 | ||
a9bbfbd8 TT |
6915 | 2017-09-27 Tom Tromey <tom@tromey.com> |
6916 | ||
6917 | * macroexp.c (get_next_token_for_substitution): New function. | |
6918 | (substitute_args): Call it. Check for __VA_OPT__. | |
6919 | ||
5230b05a WT |
6920 | 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com> |
6921 | Pedro Alves <palves@redhat.com> | |
6922 | ||
6923 | * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add | |
6924 | producer_is_icc_lt_14. | |
6925 | (producer_is_icc_lt_14): New function. | |
6926 | (check_producer): Add code for checking version of ICC. | |
6927 | (producer_is_icc): Move to producer.c. | |
6928 | (read_structure_type): Restrict ICC workaround to ICC<14. | |
6929 | * producer.c: Include selftest.h. | |
6930 | (producer_is_icc, producer_parsing_tests, _initialize_producer): | |
6931 | New functions. | |
6932 | * producer.h (producer_is_icc): New declaration. | |
6933 | ||
b32b108a WT |
6934 | 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com> |
6935 | ||
6936 | * Makefile.in (SFILES): Add producer.c. | |
6937 | (COMMON_OBS): Add producer.o | |
6938 | * amd64-tdep.c (producer.h): Add new include. | |
6939 | * dwarf2read.c (producer.h): Add new include. | |
6940 | * producer.c: New file. | |
6941 | * producer.h: New file. | |
6942 | * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to | |
6943 | producer.c. | |
6944 | * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to | |
6945 | producer.h. | |
6946 | ||
5007d765 MK |
6947 | 2017-09-26 Matthias Klose <doko@ubuntu.com> |
6948 | ||
6949 | * configure.ac: Search ncursesw before ncurses. | |
6950 | Check ncursesw/ncurses.h before ncurses/ncurses.h. | |
6951 | * gdb_curses.h: Include <ncursesw/ncurses.h> | |
6952 | * config.in, configure: Regenerate. | |
6953 | ||
281c4447 RO |
6954 | 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
6955 | ||
6956 | PR gdb/22185 | |
6957 | * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as | |
6958 | obsolete. | |
6959 | Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*. | |
6960 | Remove i386sol2 support. | |
6961 | * configure.nat <i386sol2>: Remove. | |
6962 | <sol2-64>: Fold into ... | |
6963 | <sol2>: ... this. | |
6964 | Move common settings to default section. | |
6965 | Add sol-thread.o. | |
6966 | * configure.tgt <i[34567]86-*-solaris2.1[0-9]*, | |
6967 | x86_64-*-solaris2.1[0-9]*>: Rename to ... | |
6968 | <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this. | |
6969 | <i[34567]86-*-solaris*>: Remove. | |
6970 | <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove. | |
6971 | ||
6972 | * configure.ac: Remove wctype in libw check. | |
6973 | (_MSE_INT_H): Don't define on Solaris 7-9. | |
6974 | <solaris*>: Remove libthread_db.so.1 check. | |
6975 | * configure: Regenerate. | |
6976 | * config.in: Regenerate. | |
6977 | ||
6978 | * proc-service.c: Remove PROC_SERVICE_IS_OLD handling. | |
6979 | (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t) | |
6980 | (gdb_ps_size_t): Remove. | |
6981 | Use base types in users. | |
6982 | * sol-thread.c: Likewise, also for gdb_ps_addr_t. | |
6983 | ||
6984 | * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal. | |
6985 | ||
39b06c20 RO |
6986 | 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
6987 | ||
6988 | PR build/22206 | |
6989 | * sparc64-tdep.c (adi_tag_fd): Print pid as long. | |
6990 | (adi_is_addr_mapped): Likewise. | |
6991 | (PSR_ICC): Don't redefine. | |
6992 | (PSR_IMPL): Likewise. | |
6993 | ||
6c3e20f1 TT |
6994 | 2017-09-25 Tom Tromey <tom@tromey.com> |
6995 | ||
6996 | * regcache.c (regcache::dump): Use string_printf. | |
6997 | ||
b292235f TT |
6998 | 2017-09-25 Tom Tromey <tom@tromey.com> |
6999 | ||
7000 | * regcache.c (class regcache_invalidator): New. | |
7001 | (struct register_to_invalidate): Remove. | |
7002 | (make_cleanup_regcache_invalidate): Remove. | |
7003 | (regcache::raw_write): Use regcache_invalidator. | |
7004 | ||
9ac86b52 TT |
7005 | 2017-09-25 Tom Tromey <tom@tromey.com> |
7006 | ||
7007 | * spu-tdep.c (spu2ppu_sniffer): Update. | |
7008 | * regcache.h (make_cleanup_regcache_xfree): Don't declare. | |
7009 | * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree): | |
7010 | Remove. | |
7011 | * ppc-linux-tdep.c (ppu2spu_sniffer): Update. | |
7012 | * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update. | |
7013 | * frame.h (frame_save_as_regcache): Return std::unique_ptr. | |
7014 | * frame.c (frame_save_as_regcache): Return std::unique_ptr. | |
7015 | (frame_pop): Update. | |
7016 | ||
c0e383c6 TT |
7017 | 2017-09-25 Tom Tromey <tom@tromey.com> |
7018 | ||
7019 | * spu-tdep.c (spu2ppu_dealloc_cache): Use delete. | |
7020 | * regcache.h (regcache_xfree): Don't declare. | |
7021 | * regcache.c (regcache_xfree): Remove. | |
7022 | (do_regcache_xfree): Use delete. | |
7023 | * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete. | |
7024 | * linux-fork.c (free_fork): Use delete. | |
7025 | (fork_save_infrun_state): Likewise. | |
7026 | * jit.c (jit_dealloc_cache): Use delete. | |
7027 | * infrun.c (discard_infcall_suspend_state): Use delete. | |
7028 | ||
791199cc TT |
7029 | 2017-09-25 Tom Tromey <tom@tromey.com> |
7030 | ||
7031 | * regcache.h (regcache_xmalloc): Don't declare. | |
7032 | (regcache_raw_set_cached_value): Update comment. | |
7033 | * regcache.c (regcache_xmalloc): Remove. | |
7034 | * ppc-linux-tdep.c (ppu2spu_sniffer): Use new. | |
7035 | * jit.c (jit_frame_sniffer): Use new. | |
7036 | * frame.c (frame_save_as_regcache): Use new. | |
7037 | ||
289e23aa AA |
7038 | 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com> |
7039 | ||
7040 | * NEWS: Advertise support for guarded-storage registers on IBM z. | |
7041 | ||
1b63490c AA |
7042 | 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com> |
7043 | ||
7044 | * s390-linux-nat.c (have_regset_gs): New static variable. | |
7045 | (s390_linux_fetch_inferior_registers): Handle guarded-storage | |
7046 | control block and guarded-storage broadcast control regsets. | |
7047 | (s390_read_description): Detect whether the target has | |
7048 | guarded-storage support, return appropriate tdesc. | |
7049 | * s390-linux-tdep.c (features/s390-gs-linux64.c): New include. | |
7050 | (features/s390x-gs-linux64.c): Likewise. | |
7051 | (struct gdbarch_tdep) <have_gs>: New field. | |
7052 | (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset) | |
7053 | (s390_gsbc_regset): New variables. | |
7054 | (s390_iterate_over_regset_sections): Iterate over s390_gs_regset | |
7055 | and s390_gsbc_regset, if applicable. | |
7056 | (s390_core_read_description): Check whether core file was from a | |
7057 | target with guarded-storage support; include appropriate regsets. | |
7058 | (s390_gdbarch_init): Add registers for guarded-storage support. | |
7059 | (_initialize_s390_tdep): Initialize new target descriptions that | |
7060 | include registers for guarded-storage support. | |
7061 | * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM) | |
7062 | (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM) | |
7063 | (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines. | |
7064 | (S390_NUM_REGS): Adjust macro definition. | |
7065 | (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64) | |
7066 | (tdesc_s390x_gs_linux64): New declarations. | |
7067 | ||
96235dc1 AA |
7068 | 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com> |
7069 | ||
7070 | * features/s390-gs-linux64.xml: New file. | |
7071 | * features/s390-gs.xml: New file. | |
7072 | * features/s390-gsbc.xml: New file. | |
7073 | * features/s390x-gs-linux64.xml: New file. | |
7074 | * features/Makefile (WHICH): Add s390-gs-linux64 and | |
7075 | s390x-gs-linux64. | |
7076 | (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros. | |
7077 | (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml. | |
7078 | * features/s390-gs-linux64.c: New generated file. | |
7079 | * features/s390x-gs-linux64.c: New file. | |
7080 | * regformats/s390-gs-linux64.dat: New file. | |
7081 | * regformats/s390x-gs-linux64.dat: New file. | |
7082 | ||
b4a7c699 TT |
7083 | 2017-09-23 Tom Tromey <tom@tromey.com> |
7084 | ||
7085 | * defs.h (make_cleanup_override_quit_handler): Don't declare. | |
7086 | ||
c2f97536 TT |
7087 | 2017-09-22 Tom Tromey <tom@tromey.com> |
7088 | ||
7089 | * utils.c (class scoped_input_handler) <m_quit_handler>: Change | |
7090 | type to scoped_restore_tmpl. | |
7091 | <scoped_input_handler>: Initialize m_quit_handler directly. | |
7092 | ||
43573013 SDJ |
7093 | 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com> |
7094 | ||
7095 | * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)". | |
7096 | (cd_command): Likewise. Free "current_directory" before | |
7097 | assigning to it. | |
7098 | * main.c (captured_main_1): Use "getcwd (NULL, 0)". | |
7099 | * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise. | |
7100 | * top.c (gdb_dirbuf): Remove global declaration. | |
7101 | * top.h (gdb_dirbuf): Likewise. | |
7102 | ||
6ec2e0f5 SDJ |
7103 | 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com> |
7104 | ||
7105 | * gnulib/aclocal.m4: Regenerate. | |
7106 | * gnulib/config.in: Regenerate. | |
7107 | * gnulib/configure: Regenerate. | |
7108 | * gnulib/import/Makefile.am: Regenerate. | |
7109 | * gnulib/import/Makefile.in: Regenerate. | |
7110 | * gnulib/import/assure.h: New file. | |
7111 | * gnulib/import/at-func.c: Likewise | |
7112 | * gnulib/import/chdir-long.c: New file. | |
7113 | * gnulib/import/chdir-long.h: New file. | |
7114 | * gnulib/import/cloexec.c: New file. | |
7115 | * gnulib/import/cloexec.h: New file. | |
7116 | * gnulib/import/close.c: New file. | |
7117 | * gnulib/import/closedir.c: New file. | |
7118 | * gnulib/import/dirent-private.h: New file. | |
7119 | * gnulib/import/dup-safer.c: New file. | |
7120 | * gnulib/import/dup.c: New file. | |
7121 | * gnulib/import/dup2.c: New file. | |
7122 | * gnulib/import/error.c: New file. | |
7123 | * gnulib/import/error.h: New file. | |
7124 | * gnulib/import/exitfail.c: New file. | |
7125 | * gnulib/import/exitfail.h: New file. | |
7126 | * gnulib/import/fchdir.c: New file. | |
7127 | * gnulib/import/fcntl.c: New file. | |
7128 | * gnulib/import/fcntl.in.h: New file. | |
7129 | * gnulib/import/fd-hook.c: New file. | |
7130 | * gnulib/import/fd-hook.h: New file. | |
7131 | * gnulib/import/fd-safer.c: New file. | |
7132 | * gnulib/import/fdopendir.c: New file. | |
7133 | * gnulib/import/filename.h: New file. | |
7134 | * gnulib/import/filenamecat-lgpl.c: New file. | |
7135 | * gnulib/import/filenamecat.h: New file. | |
7136 | * gnulib/import/fstat.c: New file. | |
7137 | * gnulib/import/fstatat.c: New file. | |
7138 | * gnulib/import/getcwd-lgpl.c: New file. | |
7139 | * gnulib/import/getcwd.c: New file. | |
7140 | * gnulib/import/getdtablesize.c: New file. | |
7141 | * gnulib/import/getlogin_r.c: New file. | |
7142 | * gnulib/import/getprogname.c: New file. | |
7143 | * gnulib/import/getprogname.h: New file. | |
7144 | * gnulib/import/gettext.h: New file. | |
7145 | * gnulib/import/glob-libc.h: New file. | |
7146 | * gnulib/import/glob.c: New file. | |
7147 | * gnulib/import/glob.in.h: New file. | |
7148 | * gnulib/import/intprops.h: New file. | |
7149 | * gnulib/import/m4/chdir-long.m4: New file. | |
7150 | * gnulib/import/m4/close.m4: New file. | |
7151 | * gnulib/import/m4/closedir.m4: New file. | |
7152 | * gnulib/import/m4/d-ino.m4: New file. | |
7153 | * gnulib/import/m4/d-type.m4: New file. | |
7154 | * gnulib/import/m4/dup.m4: New file. | |
7155 | * gnulib/import/m4/dup2.m4: New file. | |
7156 | * gnulib/import/m4/error.m4: New file. | |
7157 | * gnulib/import/m4/fchdir.m4: New file. | |
7158 | * gnulib/import/m4/fcntl.m4: New file. | |
7159 | * gnulib/import/m4/fcntl_h.m4: New file. | |
7160 | * gnulib/import/m4/fdopendir.m4: New file. | |
7161 | * gnulib/import/m4/filenamecat.m4: New file. | |
7162 | * gnulib/import/m4/fstat.m4: New file. | |
7163 | * gnulib/import/m4/fstatat.m4: New file. | |
7164 | * gnulib/import/m4/getcwd-abort-bug.m4: New file. | |
7165 | * gnulib/import/m4/getcwd-path-max.m4: New file. | |
7166 | * gnulib/import/m4/getcwd.m4: New file. | |
7167 | * gnulib/import/m4/getdtablesize.m4: New file. | |
7168 | * gnulib/import/m4/getlogin_r.m4: New file. | |
7169 | * gnulib/import/m4/getprogname.m4: New file. | |
7170 | * gnulib/import/m4/glob.m4: New file. | |
7171 | * gnulib/import/m4/gnulib-cache.m4: Regenerate. | |
7172 | * gnulib/import/m4/gnulib-comp.m4: Regenerate. | |
7173 | * gnulib/import/m4/mempcpy.m4: New file. | |
7174 | * gnulib/import/m4/memrchr.m4: New file. | |
7175 | * gnulib/import/m4/mode_t.m4: New file. | |
7176 | * gnulib/import/m4/msvc-inval.m4: New file. | |
7177 | * gnulib/import/m4/msvc-nothrow.m4: New file. | |
7178 | * gnulib/import/m4/open.m4: New file. | |
7179 | * gnulib/import/m4/openat.m4: New file. | |
7180 | * gnulib/import/m4/opendir.m4: New file. | |
7181 | * gnulib/import/m4/readdir.m4: New file. | |
7182 | * gnulib/import/m4/realloc.m4: New file. | |
7183 | * gnulib/import/m4/rewinddir.m4: New file. | |
7184 | * gnulib/import/m4/save-cwd.m4: New file. | |
7185 | * gnulib/import/m4/strdup.m4: New file. | |
7186 | * gnulib/import/m4/strerror.m4: New file. | |
7187 | * gnulib/import/m4/unistd-safer.m4: New file. | |
7188 | * gnulib/import/mempcpy.c: New file. | |
7189 | * gnulib/import/memrchr.c: New file. | |
7190 | * gnulib/import/msvc-inval.c: New file. | |
7191 | * gnulib/import/msvc-inval.h: New file. | |
7192 | * gnulib/import/msvc-nothrow.c: New file. | |
7193 | * gnulib/import/msvc-nothrow.h: New file. | |
7194 | * gnulib/import/open.c: New file. | |
7195 | * gnulib/import/openat-die.c: New file. | |
7196 | * gnulib/import/openat-priv.h: New file. | |
7197 | * gnulib/import/openat-proc.c: New file. | |
7198 | * gnulib/import/openat.c: New file. | |
7199 | * gnulib/import/openat.h: New file. | |
7200 | * gnulib/import/opendir.c: New file. | |
7201 | * gnulib/import/pipe-safer.c: New file. | |
7202 | * gnulib/import/readdir.c: New file. | |
7203 | * gnulib/import/realloc.c: New file. | |
7204 | * gnulib/import/rewinddir.c: New file. | |
7205 | * gnulib/import/save-cwd.c: New file. | |
7206 | * gnulib/import/save-cwd.h: New file. | |
7207 | * gnulib/import/strdup.c: New file. | |
7208 | * gnulib/import/strerror-override.c: New file. | |
7209 | * gnulib/import/strerror-override.h: New file. | |
7210 | * gnulib/import/strerror.c: New file. | |
7211 | * gnulib/import/unistd--.h: New file. | |
7212 | * gnulib/import/unistd-safer.h: New file. | |
7213 | * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add | |
7214 | "getcwd" and "glob". | |
7215 | * ser-tcp.c: Undefine "close" before redefining it. | |
7216 | ||
432ae719 SM |
7217 | 2017-09-21 Simon Marchi <simon.marchi@ericsson.com> |
7218 | ||
7219 | * guile/scm-value.c (gdbscm_value_address): Initialize address, | |
7220 | get rid of res_val. | |
7221 | ||
4fa7574e RO |
7222 | 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
7223 | ||
7224 | * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES. | |
7225 | <sol2,sparc>: Likewise. | |
7226 | <sol2-64,i386>: Likewise. | |
7227 | ||
7228 | * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas, | |
7229 | -Wdeprecated-declarations on *-*-solaris*. | |
7230 | * configure: Regenerate. | |
7231 | ||
7232 | * procfs.c: Include "nat/inferior.h". | |
7233 | (procfs_info_proc): Fix typo. | |
7234 | ||
f6327dcb KB |
7235 | 2017-09-21 Kevin Buettner <kevinb@redhat.com> |
7236 | ||
7237 | * remote.c (vector): Include. | |
7238 | (struct private_thread_info): Add field, thread_handle. | |
7239 | (free_private_thread_info): Deallocate storage associated with | |
7240 | thread handle. | |
7241 | (get_private_info_thread): Initialize `thread_handle' field. | |
7242 | (struct thread_item): Add field, thread_handle. | |
7243 | (clear_threads_listing_context): Deallocate storage associated | |
7244 | with thread handle. | |
7245 | (start_thread): Add support for "handle" attribute. | |
7246 | (thread_attributes): Add "handle". | |
7247 | (remote_get_threads_with_qthreadinfo): Initialize thread_handle | |
7248 | field. | |
7249 | (remote_update_thread_list): Update thread_handle. | |
7250 | (remote_thread_handle_to_thread_info): New function. | |
7251 | (init_remote_ops): Initialize to_thread_handle_to_thread_info. | |
7252 | ||
fbbe5337 KB |
7253 | 2017-09-21 Kevin Buettner <kevinb@redhat.com> |
7254 | ||
7255 | * python/py-inferior.c (gdbpy_thread_from_thread_handle): New | |
7256 | function. | |
7257 | (inferior_object_methods): Add gdbpy_thread_from_thread_handle. | |
7258 | * python/python-internal.h (thread_object_type): Declare. | |
7259 | ||
e04ee09e KB |
7260 | 2017-09-21 Kevin Buettner <kevinb@redhat.com> |
7261 | ||
7262 | * target.h (struct target_ops): Add to_thread_handle_to_thread_info. | |
7263 | (target_thread_handle_to_thread_info): Declare. | |
7264 | * target.c (target_thread_handle_to_thread_info): New function. | |
7265 | * target-delegates.c: Regenerate. | |
7266 | * gdbthread.h (find_thread_by_handle): Declare. | |
7267 | * thread.c (find_thread_by_handle): New function. | |
7268 | * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New | |
7269 | function. | |
7270 | (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info. | |
7271 | ||
1e5b66ed SM |
7272 | 2017-09-21 Simon Marchi <simon.marchi@ericsson.com> |
7273 | ||
7274 | * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF. | |
7275 | ||
ebe48ba0 SM |
7276 | 2017-09-21 Simon Marchi <simon.marchi@ericsson.com> |
7277 | ||
7278 | * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF. | |
7279 | ||
0a0bf5dc YQ |
7280 | 2017-09-21 Yao Qi <yao.qi@linaro.org> |
7281 | ||
7282 | * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o | |
7283 | to gdb_target_obs. | |
7284 | ||
d1b0a7bf TT |
7285 | 2017-09-20 Tom Tromey <tom@tromey.com> |
7286 | ||
7287 | * breakpoint.c (struct counted_command_line): Remove. | |
7288 | (breakpoint_commands): Update. | |
7289 | (alloc_counted_command_line, incref_counted_command_line) | |
7290 | (decref_counted_command_line, do_cleanup_counted_command_line) | |
7291 | (make_cleanup_decref_counted_command_line): Remove. | |
7292 | (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats) | |
7293 | (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check) | |
7294 | (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint) | |
7295 | (save_breakpoints): Update. | |
7296 | * breakpoint.h (counted_command_line): Now a typedef to | |
7297 | shared_ptr. | |
7298 | (struct breakpoint) <commands>: Now a counted_command_line. | |
7299 | (struct bpstats) <command>: Likewise. | |
7300 | ||
48649e1b TT |
7301 | 2017-09-20 Tom Tromey <tom@tromey.com> |
7302 | ||
7303 | * breakpoint.c (struct commands_info, do_map_commands_command): | |
7304 | Remove. | |
7305 | (commands_command_1): Update. | |
7306 | (iterate_over_related_breakpoints): Take a function_view. | |
7307 | (do_delete_breakpoint, do_map_delete_breakpoint): Remove. | |
7308 | (delete_command): Update. | |
7309 | (map_breakpoint_numbers): Take a function_view. | |
7310 | (do_disable_breakpoint, do_map_delete_breakpoint): Remove. | |
7311 | (disable_command): Update. | |
7312 | (do_enable_breakpoint, do_map_enable_breakpoint): Remove. | |
7313 | (enable_command): Update. | |
7314 | (struct disp_data, do_enable_breakpoint_disp) | |
7315 | (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint) | |
7316 | (do_map_enable_delete_breakpoint): Remove. | |
7317 | (enable_once_command, enable_count_command, enable_delete_command) | |
7318 | (delete_trace_variable_command): Update. | |
7319 | ||
04afa70c TT |
7320 | 2017-09-20 Tom Tromey <tom@tromey.com> |
7321 | ||
7322 | * breakpoint.c (~bpstats): Rename from bpstat_free. Update. | |
7323 | (bpstat_clear): Use delete. | |
7324 | (bpstats): New constructors. | |
7325 | (bpstat_copy, bpstat_stop_status): Use new. | |
7326 | (dprintf_after_condition_true): Update. | |
7327 | * breakpoint.h (bpstats::bpstats): Add constructors. | |
7328 | (bpstats::~bpstats): Add destructor. | |
7329 | ||
c83833f4 PA |
7330 | 2017-09-20 Pedro Alves <palves@redhat.com> |
7331 | ||
7332 | * eval.c (make_params): Delete, refactored as ... | |
7333 | (class fake_method): ... this new type's ctor. | |
7334 | (fake_method::~fake_method): New. | |
7335 | (evaluate_subexp_standard): Use 'fake_method'. | |
7336 | ||
223ffa71 TT |
7337 | 2017-09-20 Tom Tromey <tom@tromey.com> |
7338 | ||
7339 | * windows-nat.c (get_windows_debug_event, windows_wait) | |
7340 | (do_initial_windows_stuff, windows_attach): Update. | |
7341 | * utils.c (vwarning, internal_vproblem): Update. | |
7342 | (ui_unregister_input_event_handler_cleanup) | |
7343 | (prepare_to_handle_input): Remove. | |
7344 | (class scoped_input_handler): New. | |
7345 | (defaulted_query, prompt_for_continue): Update. | |
7346 | * tui/tui-hooks.c (tui_refresh_frame_and_register_information): | |
7347 | Update. | |
7348 | * top.c (undo_terminal_modifications_before_exit): Update. | |
7349 | * target/target.h (target_terminal_init, target_terminal_inferior) | |
7350 | (target_terminal_ours): Don't declare. | |
7351 | (class target_terminal): New. | |
7352 | * target.h (target_terminal_is_inferior, target_terminal_is_ours) | |
7353 | (target_terminal_ours_for_output) | |
7354 | (make_cleanup_restore_target_terminal): Don't declare. | |
7355 | (target_terminal_info): Remove. | |
7356 | * target.c (enum terminal_state, terminal_state): Remove. | |
7357 | (target_terminal::terminal_state): Define. | |
7358 | (target_terminal::init): Rename from target_terminal_init. | |
7359 | (target_terminal::inferior): Rename from | |
7360 | target_terminal_inferior. | |
7361 | (target_terminal::ours): Rename from target_terminal_ours. | |
7362 | (target_terminal::ours_for_output): Rename from | |
7363 | target_terminal_ours_for_output. | |
7364 | (target_terminal::info): New method. | |
7365 | (cleanup_restore_target_terminal) | |
7366 | (make_cleanup_restore_target_terminal): Remove. | |
7367 | * solib.c (handle_solib_event): Update. | |
7368 | * remote.c (remote_serial_quit_handler): Update. | |
7369 | (remote_terminal_inferior, remote_wait_as): Update. | |
7370 | * record-full.c (record_full_wait_1): Update. | |
7371 | * nto-procfs.c (procfs_create_inferior): Update. | |
7372 | * nat/fork-inferior.c (startup_inferior): Update. | |
7373 | * mi/mi-interp.c (mi_new_thread, mi_thread_exit) | |
7374 | (mi_record_changed, mi_inferior_added, mi_inferior_appeared) | |
7375 | (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed) | |
7376 | (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified) | |
7377 | (mi_breakpoint_created, mi_breakpoint_deleted) | |
7378 | (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded) | |
7379 | (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed) | |
7380 | (mi_user_selected_context_changed, report_initial_inferior): | |
7381 | Update. | |
7382 | * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours) | |
7383 | (linux_nat_terminal_inferior): Update. | |
7384 | * infrun.c (follow_fork_inferior) | |
7385 | (handle_vfork_child_exec_or_exit, do_target_resume) | |
7386 | (check_curr_ui_sync_execution_done, handle_inferior_event_1) | |
7387 | (handle_signal_stop, maybe_remove_breakpoints, normal_stop): | |
7388 | Update. | |
7389 | * inflow.c (child_terminal_init, info_terminal_command): Update. | |
7390 | * infcmd.c (post_create_inferior, continue_1, prepare_one_step) | |
7391 | (attach_command): Update. | |
7392 | * infcall.c (call_thread_fsm_should_stop): Update. | |
7393 | * gnu-nat.c (gnu_attach): Update. | |
7394 | * extension.c (struct active_ext_lang_state) | |
7395 | (restore_active_ext_lang): Update. | |
7396 | * exceptions.c (print_flush): Update. | |
7397 | * event-top.c (async_enable_stdin, default_quit_handler): Update. | |
7398 | (struct quit_handler_cleanup_data, restore_quit_handler) | |
7399 | (restore_quit_handler_dtor, make_cleanup_override_quit_handler): | |
7400 | Remove. | |
7401 | * cp-support.c (gdb_demangle): Update. | |
7402 | * breakpoint.c (update_inserted_breakpoint_locations) | |
7403 | (insert_breakpoint_locations, handle_jit_event) | |
7404 | (disable_breakpoints_in_unloaded_shlib): Update. | |
7405 | * annotate.c (annotate_breakpoints_invalid) | |
7406 | (annotate_frames_invalid): Update. | |
7407 | ||
013af3fc TT |
7408 | 2017-09-20 Tom Tromey <tom@tromey.com> |
7409 | ||
7410 | * main.c (catch_command_errors): Rename from | |
7411 | catch_command_errors_const. | |
7412 | (captured_main_1): Update. | |
7413 | ||
06871ae8 PA |
7414 | 2017-09-20 Pedro Alves <palves@redhat.com> |
7415 | ||
7416 | * cli/cli-cmds.c (list_command): Use print_sal_location. | |
7417 | (print_sal_location): New function. | |
7418 | (ambiguous_line_spec): Use print_sal_location. | |
7419 | * linespec.c (symbol_to_sal): Record the symbol in the sal. | |
7420 | * symtab.c (find_function_start_sal): Likewise. | |
7421 | * symtab.h (symtab_and_line::symbol): New field. | |
7422 | ||
e5f25bc5 PA |
7423 | 2017-09-20 Pedro Alves <palves@redhat.com> |
7424 | ||
7425 | * linespec.c (minsym_found): Handle non-text minsyms. | |
7426 | (symbol_to_sal): Record a sal.pc for non-block, non-label symbols. | |
7427 | ||
1b7fa39e WT |
7428 | 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com> |
7429 | ||
7430 | * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing | |
7431 | backslash. | |
7432 | ||
37dd0825 WT |
7433 | 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com> |
7434 | ||
7435 | * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use | |
7436 | vmovups instead vmovaps. | |
7437 | (move_zmm_data_to_memory): Use vmovups instead vmovaps. | |
7438 | ||
4e5a4f58 JB |
7439 | 2017-09-19 John Baldwin <jhb@FreeBSD.org> |
7440 | ||
7441 | * NEWS (Changes since GDB 8.0): Add starti. | |
7442 | * infcmd.c (enum run_break): New. | |
7443 | (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN | |
7444 | case. | |
7445 | (run_command): Use enum run_how. | |
7446 | (start_command): Likewise. | |
7447 | (starti_command): New function. | |
7448 | (RUN_ARGS_HELP): New macro. | |
7449 | (_initialize_infcmd): Use RUN_ARGS_HELP for run and start | |
7450 | commands. Add starti command. | |
7451 | ||
aa70c9f1 YQ |
7452 | 2017-09-19 Yao Qi <yao.qi@linaro.org> |
7453 | ||
7454 | * Makefile.in (monitor.o): Remove the rule. | |
7455 | ||
d6541620 YQ |
7456 | 2017-09-19 Yao Qi <yao.qi@linaro.org> |
7457 | ||
7458 | * annotate.h (struct annotate_arg_emitter): Use | |
7459 | DISABLE_COPY_AND_ASSIGN. | |
7460 | * common/refcounted-object.h (refcounted_object): Likewise. | |
7461 | * completer.h (struct completion_result): Likewise. | |
7462 | * dwarf2read.c (struct dwarf2_per_objfile): Likewise. | |
7463 | * filename-seen-cache.h (filename_seen_cache): Likewise. | |
7464 | * gdbcore.h (thread_section_name): Likewise. | |
7465 | * gdb_regex.h (compiled_regex): Likewise. | |
7466 | * gdbthread.h (scoped_restore_current_thread): Likewise. | |
7467 | * inferior.h (scoped_restore_current_inferior): Likewise. | |
7468 | * jit.c (jit_reader): Likewise. | |
7469 | * linespec.h (struct linespec_result): Likewise. | |
7470 | * mi/mi-parse.h (struct mi_parse): Likewise. | |
7471 | * nat/fork-inferior.c (execv_argv): Likewise. | |
7472 | * progspace.h (scoped_restore_current_program_space): Likewise. | |
7473 | * python/python-internal.h (class gdbpy_enter): Likewise. | |
7474 | * regcache.h (regcache): Likewise. | |
7475 | * target-descriptions.c (struct tdesc_reg): Likewise. | |
7476 | (struct tdesc_type): Likewise. | |
7477 | (struct tdesc_feature): Likewise. | |
7478 | * ui-out.h (ui_out_emit_type): Likewise. | |
7479 | ||
0615127c SM |
7480 | 2017-09-18 Simon Marchi <simon.marchi@ericsson.com> |
7481 | ||
7482 | * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove | |
7483 | label abort_expression. | |
7484 | ||
5e187554 SM |
7485 | 2017-09-16 Simon Marchi <simon.marchi@ericsson.com> |
7486 | ||
7487 | * common/buffer.c (buffer_xml_printf): Adjust. | |
7488 | * common/xml-utils.c (xml_escape_text): Change return type to | |
7489 | std::string, update code accordingly. | |
7490 | * common/xml-utils.h (xml_escape_text): Change return type to | |
7491 | std::string. | |
7492 | * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust. | |
7493 | * windows-tdep.c (windows_xfer_shared_library): Adjust. | |
7494 | * unittests/xml-utils-selftests.c (test_xml_escape_text): | |
7495 | Adjust. | |
7496 | ||
c3d7b541 SM |
7497 | 2017-09-16 Simon Marchi <simon.marchi@ericsson.com> |
7498 | ||
7499 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file. | |
7500 | (SUBDIR_UNITTESTS_OBS): Add new object file. | |
7501 | * unittests/xml-utils-selftests.c: New file. | |
7502 | ||
1526853e SM |
7503 | 2017-09-16 Simon Marchi <simon.marchi@ericsson.com> |
7504 | ||
7505 | * common/selftest.h (selftest): New struct/interface. | |
7506 | (register_test): Add name parameter, add new overload. | |
7507 | (run_tests): Add filter parameter. | |
7508 | (for_each_selftest_ftype): New typedef. | |
7509 | (for_each_selftest): New declaration. | |
7510 | * common/selftest.c (tests): Change type to | |
7511 | map<string, unique_ptr<selftest>>. | |
7512 | (simple_selftest): New struct. | |
7513 | (register_test): New function. | |
7514 | (register_test): Add name parameter and use it. | |
7515 | (run_tests): Add filter parameter and use it. Add prints. | |
7516 | Adjust to vector -> map change. | |
7517 | * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when | |
7518 | registering selftests. | |
7519 | * arm-tdep.c (_initialize_arm_tdep): Likewise. | |
7520 | * disasm-selftests.c (_initialize_disasm_selftests): Likewise. | |
7521 | * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise. | |
7522 | * dwarf2loc.c (_initialize_dwarf2loc): Likewise. | |
7523 | * findvar.c (_initialize_findvar): Likewise. | |
7524 | * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise. | |
7525 | * maint.c (maintenance_selftest): Update call to run_tests. | |
7526 | (maintenance_info_selftests): New function. | |
7527 | (_initialize_maint_cmds): Register "maintenance info selftests" | |
7528 | command. Update "maintenance selftest" doc. | |
7529 | * regcache.c (_initialize_regcache): Add names when registering | |
7530 | selftests. | |
7531 | * rust-exp.y (_initialize_rust_exp): Likewise. | |
7532 | * selftest-arch.c (gdbarch_selftest): New struct. | |
7533 | (gdbarch_tests): Remove. | |
7534 | (register_test_foreach_arch): Add name parameter. Call | |
7535 | register_test. | |
7536 | (tests_with_arch): Remove, move most content to | |
7537 | gdbarch_selftest::operator(). | |
7538 | (_initialize_selftests_foreach_arch): Remove. | |
7539 | * selftest-arch.h (register_test_foreach_arch): Add name | |
7540 | parameter. | |
7541 | (run_tests_with_arch): New declaration. | |
7542 | * utils-selftests.c (_initialize_utils_selftests): Add names | |
7543 | when registering selftests. | |
7544 | * utils.c (_initialize_utils): Likewise. | |
7545 | * unittests/array-view-selftests.c | |
7546 | (_initialize_array_view_selftests): Likewise. | |
7547 | * unittests/environ-selftests.c (_initialize_environ_selftests): | |
7548 | Likewise. | |
7549 | * unittests/function-view-selftests.c | |
7550 | (_initialize_function_view_selftests): Likewise. | |
7551 | * unittests/offset-type-selftests.c | |
7552 | (_initialize_offset_type_selftests): Likewise. | |
7553 | * unittests/optional-selftests.c | |
7554 | (_initialize_optional_selftests): Likewise. | |
7555 | * unittests/scoped_restore-selftests.c | |
7556 | (_initialize_scoped_restore_selftests): Likewise. | |
7557 | * NEWS: Document "maintenance selftest" and "maint info | |
7558 | selftests". | |
7559 | ||
5846367a SM |
7560 | 2017-09-16 Simon Marchi <simon.marchi@ericsson.com> |
7561 | ||
7562 | * mi/mi-main.c (mi_load_progress): Restore current_uiout using a | |
7563 | scoped_restore. | |
7564 | ||
bd77e8ff SM |
7565 | 2017-09-16 Simon Marchi <simon.marchi@ericsson.com> |
7566 | ||
7567 | * mi/mi-main.c (mi_load_progress): Make uiout variable | |
7568 | a unique_ptr. | |
7569 | ||
26a67918 PA |
7570 | 2017-09-15 Pedro Alves <palves@redhat.com> |
7571 | ||
7572 | * compile/compile-c-types.c (convert_enum, convert_int) | |
7573 | (convert_float): Adjust to refer to int_type_v0 and float_type_v0. | |
7574 | ||
3f8a7804 SM |
7575 | 2017-09-15 Simon Marchi <simon.marchi@ericsson.com> |
7576 | ||
7577 | * dwarf2read.c (copy_string): Remove. | |
7578 | (parse_macro_definition): Replace copy_string with savestring. | |
7579 | ||
8d200706 YQ |
7580 | 2017-09-15 Yao Qi <yao.qi@linaro.org> |
7581 | ||
7582 | * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to | |
7583 | gdb_target_obs. | |
7584 | (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*): | |
7585 | Likewise. | |
7586 | (i[34567]86-*-linux*): Likewise. | |
7587 | ||
d185219d SM |
7588 | 2017-09-14 Simon Marchi <simon.marchi@ericsson.com> |
7589 | ||
7590 | * dwarf2expr.h (dwarf_stack_value): Add constructor. | |
7591 | (dwarf_expr_context) <~dwarf_expr_context>: Define as default. | |
7592 | <stack>: Change type to std::vector. | |
7593 | <stack_len, stack_allocated>: Remove. | |
7594 | <grow_stack>: Remove. | |
7595 | * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust. | |
7596 | (dwarf_expr_context::~dwarf_expr_context): Remove. | |
7597 | (dwarf_expr_context::grow_stack): Remove. | |
7598 | (dwarf_expr_context::push): Adjust. | |
7599 | (dwarf_expr_context::pop): Adjust. | |
7600 | (dwarf_expr_context::fetch): Adjust. | |
7601 | (dwarf_expr_context::fetch_in_stack_memory): Adjust. | |
7602 | (dwarf_expr_context::stack_empty_p): Adjust. | |
7603 | (dwarf_expr_context::execute_stack_op): Adjust. | |
7604 | ||
eccd80d6 SM |
7605 | 2017-09-14 Simon Marchi <simon.marchi@ericsson.com> |
7606 | ||
7607 | * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change | |
7608 | return type to bool. | |
7609 | * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise. | |
7610 | ||
69009882 SM |
7611 | 2017-09-14 Simon Marchi <simon.marchi@ericsson.com> |
7612 | ||
7613 | * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>: | |
7614 | Change type to bool. | |
7615 | (dwarf_stack_value) <in_stack_memory>: Likewise. | |
7616 | (dwarf_expr_context) <push_address>: Change parameter type to | |
7617 | bool. | |
7618 | <fetch_in_stack_memory>: Change return type to bool. | |
7619 | <push>: Change parameter type to bool. | |
7620 | * dwarf2expr.c (dwarf_expr_context::push): Change parameter type | |
7621 | to bool. | |
7622 | (dwarf_expr_context::push_address): Likewise. | |
7623 | (dwarf_expr_context::fetch_in_stack_memory): Change return type | |
7624 | to bool. | |
7625 | (dwarf_expr_context::execute_stack_op): Adjust. | |
7626 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust. | |
7627 | ||
1e467161 SM |
7628 | 2017-09-14 Simon Marchi <simon.marchi@ericsson.com> |
7629 | ||
7630 | * dwarf2expr.h (struct dwarf_expr_piece): Move up. | |
7631 | (struct dwarf_expr_context) <n_pieces>: Remove. | |
7632 | <pieces>: Change type to std::vector. | |
7633 | * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust. | |
7634 | (dwarf_expr_context::~dwarf_expr_context): Don't manually free | |
7635 | pieces. | |
7636 | (dwarf_expr_context::add_piece): Adjust. | |
7637 | * dwarf2loc.c (struct piece_closure): Initialize fields. | |
7638 | <n_pieces>: Remove. | |
7639 | <pieces>: Change type to std::vector. | |
7640 | (allocate_piece_closure): Adjust, change parameter to | |
7641 | std::vector rvalue and std::move it to piece_closure. | |
7642 | (rw_pieced_value): Adjust. | |
7643 | (check_pieced_synthetic_pointer): Adjust. | |
7644 | (indirect_synthetic_pointer): Adjust. | |
7645 | (coerce_pieced_ref): Adjust. | |
7646 | (free_pieced_value_closure): Adjust. Use delete to free | |
7647 | piece_closure. | |
7648 | (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces | |
7649 | to allocate_piece_closure. | |
7650 | (dwarf2_loc_desc_get_symbol_read_needs): Adjust. | |
7651 | ||
0782db84 SM |
7652 | 2017-09-12 Simon Marchi <simon.marchi@ericsson.com> |
7653 | ||
7654 | * probe.h (probe_ops_cp): Remove typedef. | |
7655 | (DEF_VEC_P (probe_ops_cp)): Remove. | |
7656 | (all_probe_ops): Change type to std::vector. | |
7657 | * probe.c (info_probes_for_ops): Adjust to vector change. | |
7658 | (probe_linespec_to_ops): Likewise. | |
7659 | (all_probe_ops): Change type to std::vector. | |
7660 | (_initialize_probe): Adjust to vector change. | |
7661 | * dtrace-probe.c (_initialize_dtrace_probe): Likewise. | |
7662 | * elfread.c (elf_get_probes): Likewise. | |
7663 | * stap-probe.c (_initialize_stap_probe): Likewise. | |
7664 | ||
1eac6bea SM |
7665 | 2017-09-12 Simon Marchi <simon.marchi@ericsson.com> |
7666 | ||
7667 | * probe.h (struct bound_probe): Define constructors. | |
7668 | * probe.c (bound_probe_s): Remove typedef. | |
7669 | (DEF_VEC_O (bound_probe_s)): Remove VEC. | |
7670 | (collect_probes): Change return type to std::vector, remove | |
7671 | cleanup. | |
7672 | (compare_probes): Return bool, change parameter type. Change | |
7673 | semantic to "less than". | |
7674 | (gen_ui_out_table_header_info): Change parameter to std::vector | |
7675 | and update. | |
7676 | (exists_probe_with_pops): Likewise. | |
7677 | (info_probes_for_ops): Update to std::vector change. | |
7678 | (enable_probes_command): Likewise. | |
7679 | (disable_probes_command): Likewise. | |
7680 | ||
aaa63a31 SM |
7681 | 2017-09-12 Simon Marchi <simon.marchi@ericsson.com> |
7682 | ||
7683 | * probe.h (struct probe_ops) <get_probes>: Change parameter from | |
7684 | vec to std::vector. | |
7685 | * probe.c (parse_probes_in_pspace): Update. | |
7686 | (find_probes_in_objfile): Update. | |
7687 | (find_probe_by_pc): Update. | |
7688 | (collect_probes): Update. | |
7689 | (probe_any_get_probes): Update. | |
7690 | * symfile.h (struct sym_probe_fns) <sym_get_probes> Change | |
7691 | return type to reference to std::vector. | |
7692 | * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to | |
7693 | std::vector and update. | |
7694 | (dtrace_process_dof): Likewise. | |
7695 | (dtrace_get_probes): Likewise. | |
7696 | * elfread.c (elf_get_probes): Change return type to std::vector, | |
7697 | store an std::vector in bfd_data. | |
7698 | (probe_key_free): Update to std::vector. | |
7699 | * stap-probe.c (handle_stap_probe): Change parameter to | |
7700 | std::vector and update. | |
7701 | (stap_get_probes): Likewise. | |
7702 | * symfile-debug.c (debug_sym_get_probes): Change return type to | |
7703 | std::vector and update. | |
7704 | ||
cb85b21b TT |
7705 | 2017-09-11 Tom Tromey <tom@tromey.com> |
7706 | ||
7707 | * breakpoint.c (program_breakpoint_here_p): Update. | |
7708 | * target.c (make_scoped_restore_show_memory_breakpoints): Rename | |
7709 | from make_show_memory_breakpoints_cleanup. Return a | |
7710 | scoped_restore_tmpl<int>. | |
7711 | (restore_show_memory_breakpoints): Remove. | |
7712 | * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update. | |
7713 | * mem-break.c (memory_validate_breakpoint): Update. | |
7714 | * ia64-tdep.c (ia64_memory_insert_breakpoint): Update. | |
7715 | (ia64_memory_remove_breakpoint): Update. | |
7716 | (ia64_breakpoint_from_pc): Update. | |
7717 | * target.h (make_scoped_restore_show_memory_breakpoints): Rename | |
7718 | from make_show_memory_breakpoints_cleanup. | |
7719 | ||
8fbc99ef TT |
7720 | 2017-09-11 Tom Tromey <tom@tromey.com> |
7721 | ||
7722 | * d-namespace.c (d_lookup_symbol): Use std::string. | |
7723 | (find_symbol_in_baseclass): Likewise. | |
7724 | ||
50feb4bd TT |
7725 | 2017-09-11 Tom Tromey <tom@tromey.com> |
7726 | ||
7727 | * ctf.c (ctf_start): Use std::string. | |
7728 | ||
c6dc63a1 TT |
7729 | 2017-09-11 Tom Tromey <tom@tromey.com> |
7730 | ||
7731 | * ada-lang.c (is_known_support_routine): Update. | |
7732 | (ada_unhandled_exception_name_addr_from_raise): Update. | |
7733 | * guile/scm-frame.c (gdbscm_frame_name): Update. | |
7734 | * python/py-frame.c (frapy_name): Update. | |
7735 | (frapy_function): Update. | |
7736 | * stack.h (find_frame_funname): Update. | |
7737 | * stack.c (find_frame_funname): Return unique_xmalloc_ptr. | |
7738 | (print_frame): Update. | |
7739 | ||
d6b9b80f TT |
7740 | 2017-09-11 Tom Tromey <tom@tromey.com> |
7741 | ||
7742 | * findcmd.c (put_bits): Take a gdb::byte_vector. | |
7743 | (parse_find_args): Return gdb::byte_vector. "args" now const. | |
7744 | Remove "pattern_bufp" and "pattern_lenp" parameters. Remove | |
7745 | cleanups. | |
7746 | (find_command): Update. | |
7747 | ||
a9921622 TT |
7748 | 2017-09-11 Tom Tromey <tom@tromey.com> |
7749 | ||
7750 | * cli/cli-script.c (class scoped_restore_hook_in): New. | |
7751 | (clear_hook_in_cleanup): Remove. | |
7752 | (execute_cmd_pre_hook, execute_cmd_post_hook): Use | |
7753 | scoped_restore_hook_in. | |
7754 | ||
be0d7abb TT |
7755 | 2017-09-11 Tom Tromey <tom@tromey.com> |
7756 | ||
7757 | * cli/cli-script.c (restore_interp): Remove. | |
7758 | (read_command_lines): Use scoped_restore_interp. | |
7759 | * interps.c (scoped_restore_interp::set_temp): Rename from | |
7760 | interp_set_temp. | |
7761 | * interps.h (class scoped_restore_interp): New. | |
7762 | (interp_set_temp): Remove. | |
7763 | ||
00f675ff TT |
7764 | 2017-09-11 Tom Tromey <tom@tromey.com> |
7765 | ||
7766 | * mi/mi-cmd-catch.c (mi_cmd_catch_assert) | |
7767 | (mi_cmd_catch_exception, mi_catch_load_unload): Update. | |
7768 | * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a | |
7769 | scoped_restore. | |
7770 | (mi_cmd_break_insert_1): Update. | |
7771 | * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a | |
7772 | scoped_restore. | |
7773 | ||
cb791d59 TT |
7774 | 2017-09-11 Tom Tromey <tom@tromey.com> |
7775 | ||
7776 | * demangle.c (demangle_command): Update. | |
7777 | * breakpoint.c (disable_command): Update. | |
7778 | (enable_command): Update. | |
7779 | (find_location_by_number): Make "number" const. Use | |
7780 | get_number_trailer. | |
7781 | * cli/cli-utils.c (extract_arg): Return std::string. | |
7782 | * probe.c (parse_probe_linespec): Update. Change types. | |
7783 | (collect_probes): Take string arguments. | |
7784 | (parse_probe_linespec): Likewise. | |
7785 | (info_probes_for_ops): Update. | |
7786 | (enable_probes_command): Update. | |
7787 | (disable_probes_command): Update. | |
7788 | * break-catch-sig.c (catch_signal_split_args): Update. | |
7789 | * mi/mi-parse.c (mi_parse): Update. | |
7790 | ||
2039bd9f TT |
7791 | 2017-09-11 Tom Tromey <tom@tromey.com> |
7792 | ||
7793 | * language.h (language_enum): Make argument const. | |
7794 | * language.c (language_enum): Make argument const. | |
7795 | ||
f1735a53 TT |
7796 | 2017-09-11 Tom Tromey <tom@tromey.com> |
7797 | ||
7798 | * common/common-utils.h (skip_to_space): Remove macro, redeclare | |
7799 | as function. | |
7800 | (skip_to_space): Rename from skip_to_space_const. | |
7801 | * common/common-utils.c (skip_to_space): New function. | |
7802 | (skip_to_space): Rename from skip_to_space_const. | |
7803 | * cli/cli-utils.h (get_number): Rename from get_number_const. | |
7804 | (extract_arg): Rename from extract_arg_const. | |
7805 | * cli/cli-utils.c (get_number): Rename from get_number_const. | |
7806 | (extract_arg): Rename from extract_arg_const. | |
7807 | (number_or_range_parser::get_number): Use ::get_number. | |
7808 | * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c, | |
7809 | break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c, | |
7810 | cli/cli-script.c, cli/cli-setshow.c, compile/compile.c, | |
7811 | completer.c, demangle.c, disasm.c, findcmd.c, linespec.c, | |
7812 | linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c, | |
7813 | minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c, | |
7814 | python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c, | |
7815 | stap-probe.c, tid-parse.c, tracepoint.c: Update all callers. | |
7816 | ||
7d221d74 TT |
7817 | 2017-09-11 Tom Tromey <tom@tromey.com> |
7818 | ||
7819 | * python/python.c (do_start_initialization): Use | |
7820 | py-event-types.def to initialize types. | |
7821 | Define all object type structures. | |
7822 | * python/python-internal.h: Don't declare event initialization | |
7823 | functions. | |
7824 | * python/py-threadevent.c (thread_event_object_type): Don't | |
7825 | define. | |
7826 | * python/py-stopevent.c (stop_event_object_type): Don't define. | |
7827 | * python/py-signalevent.c (signal_event_object_type): Don't | |
7828 | declare or define. | |
7829 | * python/py-newobjfileevent.c (new_objfile_event_object_type) | |
7830 | (clear_objfiles_event_object_type): Don't declare or define. | |
7831 | * python/py-infevents.c (inferior_call_pre_event_object_type) | |
7832 | (inferior_call_post_event_object_type) | |
7833 | (register_changed_event_object_type) | |
7834 | (memory_changed_event_object_type): Don't declare or define. | |
7835 | * python/py-inferior.c (new_thread_event_object_type) | |
7836 | (new_inferior_event_object_type) | |
7837 | (inferior_deleted_event_object_type): Don't declare or define. | |
7838 | * python/py-exitedevent.c (exited_event_object_type): Don't | |
7839 | declare or define. | |
7840 | * python/py-evts.c (gdbpy_initialize_py_events): Use | |
7841 | py-all-events.def. | |
7842 | * python/py-events.h (thread_event_object_type): Don't declare. | |
7843 | (events_object): Use py-all-events.def. | |
7844 | * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use | |
7845 | py-event-types.def. | |
7846 | * python/py-event-types.def: New file. | |
7847 | * python/py-continueevent.c (create_continue_event_object): Don't | |
7848 | declare or define. | |
7849 | * python/py-bpevent.c (breakpoint_event_object_type): Don't | |
7850 | declare or define. | |
7851 | * python/py-all-events.def: New file. | |
7852 | ||
35c61a1d TT |
7853 | 2017-09-11 Tom Tromey <tom@tromey.com> |
7854 | ||
7855 | * python/py-threadevent.c (create_thread_event_object): Return | |
7856 | gdbpy_ref. | |
7857 | * python/py-stopevent.h (create_stop_event_object) | |
7858 | (create_breakpoint_event_object, create_signal_event_object): | |
7859 | Update. | |
7860 | * python/py-stopevent.c (create_stop_event_object): Return | |
7861 | gdbpy_ref. | |
7862 | (emit_stop_event): Update. | |
7863 | * python/py-signalevent.c (create_signal_event_object): Return | |
7864 | gdbpy_ref. | |
7865 | * python/py-infevents.c (create_inferior_call_event_object): | |
7866 | Update. | |
7867 | * python/py-event.h (create_event_object) | |
7868 | (create_thread_event_object): Update. | |
7869 | * python/py-event.c (create_event_object): Return gdbpy_ref. | |
7870 | * python/py-continueevent.c: Return gdbpy_ref. | |
7871 | * python/py-bpevent.c (create_breakpoint_event_object): Return | |
7872 | gdbpy_ref. | |
7873 | ||
7c96f8c1 TT |
7874 | 2017-09-11 Tom Tromey <tom@tromey.com> |
7875 | ||
7876 | PR python/15622: | |
7877 | * NEWS: Add entry. | |
7878 | * python/python.c (do_start_initialization): Initialize new event | |
7879 | types. | |
7880 | * python/python-internal.h (gdbpy_initialize_new_inferior_event) | |
7881 | (gdbpy_initialize_inferior_deleted_event) | |
7882 | (gdbpy_initialize_new_thread_event): Declare. | |
7883 | * python/py-threadevent.c (create_thread_event_object): Add option | |
7884 | "thread" parameter. | |
7885 | * python/py-inferior.c (new_thread_event_object_type) | |
7886 | (new_inferior_event_object_type) | |
7887 | (inferior_deleted_event_object_type): Declare. | |
7888 | (python_new_inferior, python_inferior_deleted): New functions. | |
7889 | (add_thread_object): Emit new_thread event. | |
7890 | (gdbpy_initialize_inferior): Attach new functions to corresponding | |
7891 | observers. | |
7892 | (new_thread, new_inferior, inferior_deleted): Define new event | |
7893 | types. | |
7894 | * python/py-evts.c (gdbpy_initialize_py_events): Add new | |
7895 | registries. | |
7896 | * python/py-events.h (events_object) <new_inferior, | |
7897 | inferior_deleted, new_thread>: New fields. | |
7898 | * python/py-event.h (create_thread_event_breakpoint): Add optional | |
7899 | "thread" parameter. | |
7900 | ||
72542b8e AB |
7901 | 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com> |
7902 | ||
7903 | * utils.c (abort_with_message): Don't compare gdb_stderr to NULL, | |
7904 | check current_ui instead. | |
7905 | (internal_vproblem): Likewise. | |
7906 | ||
0d64823e SM |
7907 | 2017-09-09 Simon Marchi <simon.marchi@ericsson.com> |
7908 | ||
7909 | * thread.c (print_thread_info_1): Remove unnecessary calls to | |
7910 | uiout->is_mi_like_p. | |
7911 | ||
eb1e02fd TT |
7912 | 2017-09-09 Tom Tromey <tom@tromey.com> |
7913 | ||
7914 | * namespace.h (add_using_directive): Update. | |
7915 | * namespace.c (add_using_directive): Change type of excludes to | |
7916 | std::vector. | |
7917 | * dwarf2read.c (read_import_statement): Use std::vector. | |
7918 | (read_namespace): Update. | |
7919 | * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update. | |
7920 | ||
0fc21fd8 TT |
7921 | 2017-09-09 Tom Tromey <tom@tromey.com> |
7922 | ||
7923 | * linespec.c (create_sals_line_offset): Use gdb::def_vector. | |
7924 | ||
49663d05 TT |
7925 | 2017-09-09 Tom Tromey <tom@tromey.com> |
7926 | ||
7927 | * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector. | |
7928 | ||
0b868b60 TT |
7929 | 2017-09-09 Tom Tromey <tom@tromey.com> |
7930 | ||
7931 | * stack.c (func_command): Use gdb::def_vector. | |
7932 | ||
c0470d48 TT |
7933 | 2017-09-09 Tom Tromey <tom@tromey.com> |
7934 | ||
7935 | * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional, | |
7936 | ui_out_emit_list, ui_out_emit_tuple. | |
7937 | (mi_cmd_var_update): Likewise. | |
7938 | ||
ca5909c7 TT |
7939 | 2017-09-09 Tom Tromey <tom@tromey.com> |
7940 | ||
7941 | * mi/mi-interp.c (mi_user_selected_context_changed): Use | |
7942 | ui_out_redirect_pop. | |
7943 | * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use | |
7944 | ui_out_redirect_pop. | |
7945 | * utils.c (do_ui_out_redirect_pop) | |
7946 | (make_cleanup_ui_out_redirect_pop): Remove. | |
7947 | * top.c (execute_command_to_string): Use ui_out_redirect_pop. | |
7948 | * utils.h (make_cleanup_ui_out_redirect_pop): Remove. | |
7949 | * ui-out.h (ui_out_redirect_pop): New class. | |
7950 | ||
e6a2252a TT |
7951 | 2017-09-09 Tom Tromey <tom@tromey.com> |
7952 | ||
7953 | * mi/mi-main.c (output_cores): Use ui_out_emit_list. | |
7954 | (list_available_thread_groups, mi_cmd_list_thread_groups) | |
7955 | (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory) | |
7956 | (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected): | |
7957 | Likewise. | |
7958 | ||
393702cd TT |
7959 | 2017-09-09 Tom Tromey <tom@tromey.com> |
7960 | ||
7961 | * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use | |
7962 | ui_out_emit_tuple. | |
7963 | ||
76f9c9cf TT |
7964 | 2017-09-09 Tom Tromey <tom@tromey.com> |
7965 | ||
7966 | * target.c (flash_erase_command): Use ui_out_emit_tuple. | |
7967 | * stack.c (print_frame): Use ui_out_emit_tuple. | |
7968 | * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple. | |
7969 | (info_spu_mailbox_command, info_spu_dma_command) | |
7970 | (info_spu_proxydma_command): Likewise. | |
7971 | * mi/mi-main.c (mi_cmd_trace_frame_collected): Use | |
7972 | ui_out_emit_tuple, gdb::byte_vector, bin2hex. | |
7973 | * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use | |
7974 | ui_out_emit_tuple. | |
7975 | * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple. | |
7976 | ||
dc9fe180 TT |
7977 | 2017-09-09 Tom Tromey <tom@tromey.com> |
7978 | ||
7979 | * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove. | |
7980 | (class ui_out_emit_table): Update comment. | |
7981 | * ui-out.c (do_cleanup_table_end) | |
7982 | (make_cleanup_ui_out_table_begin_end): Remove. | |
7983 | * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table. | |
7984 | (info_spu_dma_cmdlist): Likewise. | |
7985 | * probe.c (info_probes_for_ops): Use ui_out_emit_table. | |
7986 | * darwin-nat-info.c (darwin_debug_regions_recurse): Use | |
7987 | ui_out_emit_table. | |
7988 | ||
f8cc3da6 TT |
7989 | 2017-09-09 Tom Tromey <tom@tromey.com> |
7990 | ||
7991 | * thread.c (print_thread_info_1): Use ui_out_emit_table, | |
7992 | ui_out_emit_list, gdb::optional. | |
7993 | ||
481695ed JB |
7994 | 2017-09-09 John Baldwin <jhb@FreeBSD.org> |
7995 | ||
7996 | * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat | |
7997 | prototype. | |
7998 | * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep | |
7999 | prototype. | |
8000 | * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep | |
8001 | prototype. | |
8002 | * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype. | |
8003 | * ada-exp.y: Remove _initialize_ada_exp prototype. | |
8004 | * ada-lang.c: Remove _initialize_ada_language prototype. | |
8005 | * ada-tasks.c: Remove _initialize_tasks prototype. | |
8006 | * addrmap.c: Remove _initialize_addrmap prototype. | |
8007 | * agent.c: Remove _initialize_agent prototype. | |
8008 | * aix-thread.c: Remove _initialize_aix_thread prototype. | |
8009 | * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype. | |
8010 | * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype. | |
8011 | * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep | |
8012 | prototype. | |
8013 | * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype. | |
8014 | * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype. | |
8015 | * alpha-tdep.c: Remove _initialize_alpha_tdep prototype. | |
8016 | * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep | |
8017 | prototype. | |
8018 | * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep | |
8019 | prototype. | |
8020 | * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype. | |
8021 | * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype. | |
8022 | * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype. | |
8023 | * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep | |
8024 | prototype. | |
8025 | * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype. | |
8026 | * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype. | |
8027 | * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype. | |
8028 | * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype. | |
8029 | * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype. | |
8030 | * amd64-tdep.c: Remove _initialize_amd64_tdep prototype. | |
8031 | * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat | |
8032 | prototype. | |
8033 | * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep | |
8034 | prototype. | |
8035 | * annotate.c: Remove _initialize_annotate prototype. | |
8036 | * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype. | |
8037 | * arc-tdep.c: Remove _initialize_arc_tdep prototype. | |
8038 | * arch-utils.c: Remove _initialize_gdbarch_utils prototype. | |
8039 | * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype. | |
8040 | * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype. | |
8041 | * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype. | |
8042 | * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype. | |
8043 | * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep | |
8044 | prototype. | |
8045 | * arm-tdep.c: Remove _initialize_arm_tdep prototype. | |
8046 | * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype. | |
8047 | * auto-load.c: Remove _initialize_auto_load prototype. | |
8048 | * auxv.c: Remove _initialize_auxv prototype. | |
8049 | * avr-tdep.c: Remove _initialize_avr_tdep prototype. | |
8050 | * ax-gdb.c: Remove _initialize_ax_gdb prototype. | |
8051 | * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype. | |
8052 | * bfin-tdep.c: Remove _initialize_bfin_tdep prototype. | |
8053 | * break-catch-sig.c: Remove _initialize_break_catch_sig prototype. | |
8054 | * break-catch-syscall.c: Remove _initialize_break_catch_syscall | |
8055 | prototype. | |
8056 | * break-catch-throw.c: Remove _initialize_break_catch_throw | |
8057 | prototype. | |
8058 | * breakpoint.c: Remove _initialize_breakpoint prototype. | |
8059 | * bsd-uthread.c: Remove _initialize_bsd_uthread prototype. | |
8060 | * btrace.c: Remove _initialize_btrace prototype. | |
8061 | * charset.c: Remove _initialize_charset prototype. | |
8062 | * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype. | |
8063 | * cli/cli-dump.c: Remove _initialize_cli_dump prototype. | |
8064 | * cli/cli-interp.c: Remove _initialize_cli_interp prototype. | |
8065 | * cli/cli-logging.c: Remove _initialize_cli_logging prototype. | |
8066 | * cli/cli-script.c: Remove _initialize_cli_script prototype. | |
8067 | * coff-pe-read.c: Remove _initialize_coff_pe_read prototype. | |
8068 | * coffread.c: Remove _initialize_coffread prototype. | |
8069 | * compile/compile.c: Remove _initialize_compile prototype. | |
8070 | * complaints.c: Remove _initialize_complaints prototype. | |
8071 | * completer.c: Remove _initialize_completer prototype. | |
8072 | * copying.awk: Remove _initialize_copying prototype. | |
8073 | * copying.c: Regenerate. | |
8074 | * core-regset.c: Remove _initialize_core_regset prototype. | |
8075 | * corefile.c: Remove _initialize_core prototype. | |
8076 | * corelow.c: Remove _initialize_corelow prototype. | |
8077 | * cp-abi.c: Remove _initialize_cp_abi prototype. | |
8078 | * cp-namespace.c: Remove _initialize_cp_namespace prototype. | |
8079 | * cp-support.c: Remove _initialize_cp_support prototype. | |
8080 | * cp-valprint.c: Remove _initialize_cp_valprint prototype. | |
8081 | * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype. | |
8082 | * cris-tdep.c: Remove _initialize_cris_tdep prototype. | |
8083 | * ctf.c: Remove _initialize_ctf prototype. | |
8084 | * d-lang.c: Remove _initialize_d_language prototype. | |
8085 | * darwin-nat-info.c: Remove _initialize_darwin_info_commands | |
8086 | prototype. | |
8087 | * darwin-nat.c: Remove _initialize_darwin_inferior prototype. | |
8088 | * dbxread.c: Remove _initialize_dbxread prototype. | |
8089 | * dcache.c: Remove _initialize_dcache prototype. | |
8090 | * demangle.c: Remove _initialize_demangler prototype. | |
8091 | * disasm-selftests.c: Remove _initialize_disasm_selftests | |
8092 | prototype. | |
8093 | * disasm.c: Remove _initialize_disasm prototype. | |
8094 | * dtrace-probe.c: Remove _initialize_dtrace_probe prototype. | |
8095 | * dummy-frame.c: Remove _initialize_dummy_frame prototype. | |
8096 | * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame | |
8097 | prototype. | |
8098 | * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype. | |
8099 | * dwarf2expr.c: Remove _initialize_dwarf2expr prototype. | |
8100 | * dwarf2loc.c: Remove _initialize_dwarf2loc prototype. | |
8101 | * dwarf2read.c: Remove _initialize_dwarf2_read prototype. | |
8102 | * elfread.c: Remove _initialize_elfread prototype. | |
8103 | * exec.c: Remove _initialize_exec prototype. | |
8104 | * extension.c: Remove _initialize_extension prototype. | |
8105 | * f-lang.c: Remove _initialize_f_language prototype. | |
8106 | * f-valprint.c: Remove _initialize_f_valprint prototype. | |
8107 | * fbsd-nat.c: Remove _initialize_fbsd_nat prototype. | |
8108 | * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype. | |
8109 | * filesystem.c: Remove _initialize_filesystem prototype. | |
8110 | * findcmd.c: Remove _initialize_mem_search prototype. | |
8111 | * fork-child.c: Remove _initialize_fork_child prototype. | |
8112 | * frame-base.c: Remove _initialize_frame_base prototype. | |
8113 | * frame-unwind.c: Remove _initialize_frame_unwind prototype. | |
8114 | * frame.c: Remove _initialize_frame prototype. | |
8115 | * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype. | |
8116 | * frv-tdep.c: Remove _initialize_frv_tdep prototype. | |
8117 | * ft32-tdep.c: Remove _initialize_ft32_tdep prototype. | |
8118 | * gcore.c: Remove _initialize_gcore prototype. | |
8119 | * gdb_bfd.c: Remove _initialize_gdb_bfd prototype. | |
8120 | * gdbarch.c: Regenerate. | |
8121 | * gdbarch.sh: Remove _initialize_gdbarch prototype. | |
8122 | * gdbtypes.c: Remove _initialize_gdbtypes prototype. | |
8123 | * gnu-nat.c: Remove _initialize_gnu_nat prototype. | |
8124 | * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype. | |
8125 | * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype. | |
8126 | * go-lang.c: Remove _initialize_go_language prototype. | |
8127 | * go32-nat.c: Remove _initialize_go32_nat prototype. | |
8128 | * guile/guile.c: Remove _initialize_guile prototype. | |
8129 | * h8300-tdep.c: Remove _initialize_h8300_tdep prototype. | |
8130 | * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype. | |
8131 | * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype. | |
8132 | * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype. | |
8133 | * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype. | |
8134 | * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype. | |
8135 | * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype. | |
8136 | * hppa-tdep.c: Remove _initialize_hppa_tdep prototype. | |
8137 | * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype. | |
8138 | * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep | |
8139 | prototype. | |
8140 | * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep | |
8141 | prototype. | |
8142 | * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype. | |
8143 | * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype. | |
8144 | * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype. | |
8145 | * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype. | |
8146 | * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype. | |
8147 | * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype. | |
8148 | * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype. | |
8149 | * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype. | |
8150 | * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype. | |
8151 | * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype. | |
8152 | * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype. | |
8153 | * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype. | |
8154 | * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype. | |
8155 | * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype. | |
8156 | * i386-tdep.c: Remove _initialize_i386_tdep prototype. | |
8157 | * i386-windows-nat.c: Remove _initialize_i386_windows_nat | |
8158 | prototype. | |
8159 | * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame | |
8160 | prototype. | |
8161 | * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype. | |
8162 | * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype. | |
8163 | * ia64-tdep.c: Remove _initialize_ia64_tdep prototype. | |
8164 | * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype. | |
8165 | * infcall.c: Remove _initialize_infcall prototype. | |
8166 | * infcmd.c: Remove _initialize_infcmd prototype. | |
8167 | * inferior.c: Remove _initialize_inferiors prototype. | |
8168 | * inflow.c: Remove _initialize_inflow prototype. | |
8169 | * infrun.c: Remove _initialize_infrun prototype. | |
8170 | * interps.c: Remove _initialize_interpreter prototype. | |
8171 | * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype. | |
8172 | * jit.c: Remove _initialize_jit prototype. | |
8173 | * language.c: Remove _initialize_language prototype. | |
8174 | * linux-fork.c: Remove _initialize_linux_fork prototype. | |
8175 | * linux-nat.c: Remove _initialize_linux_nat prototype. | |
8176 | * linux-tdep.c: Remove _initialize_linux_tdep prototype. | |
8177 | * linux-thread-db.c: Remove _initialize_thread_db prototype. | |
8178 | * lm32-tdep.c: Remove _initialize_lm32_tdep prototype. | |
8179 | * m2-lang.c: Remove _initialize_m2_language prototype. | |
8180 | * m32c-tdep.c: Remove _initialize_m32c_tdep prototype. | |
8181 | * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype. | |
8182 | * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype. | |
8183 | * m32r-tdep.c: Remove _initialize_m32r_tdep prototype. | |
8184 | * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype. | |
8185 | * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype. | |
8186 | * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype. | |
8187 | * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype. | |
8188 | * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype. | |
8189 | * m68k-tdep.c: Remove _initialize_m68k_tdep prototype. | |
8190 | * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype. | |
8191 | * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype. | |
8192 | * machoread.c: Remove _initialize_machoread prototype. | |
8193 | * macrocmd.c: Remove _initialize_macrocmd prototype. | |
8194 | * macroscope.c: Remove _initialize_macroscope prototype. | |
8195 | * maint.c: Remove _initialize_maint_cmds prototype. | |
8196 | * mdebugread.c: Remove _initialize_mdebugread prototype. | |
8197 | * memattr.c: Remove _initialize_mem prototype. | |
8198 | * mep-tdep.c: Remove _initialize_mep_tdep prototype. | |
8199 | * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype. | |
8200 | * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype. | |
8201 | * mi/mi-interp.c: Remove _initialize_mi_interp prototype. | |
8202 | * mi/mi-main.c: Remove _initialize_mi_main prototype. | |
8203 | * microblaze-linux-tdep.c: Remove | |
8204 | _initialize_microblaze_linux_tdep prototype. | |
8205 | * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype. | |
8206 | * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype. | |
8207 | * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype. | |
8208 | * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype. | |
8209 | * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype. | |
8210 | * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype. | |
8211 | * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype. | |
8212 | * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype. | |
8213 | * mips-tdep.c: Remove _initialize_mips_tdep prototype. | |
8214 | * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype. | |
8215 | * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep | |
8216 | prototype. | |
8217 | * mipsread.c: Remove _initialize_mipsread prototype. | |
8218 | * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep | |
8219 | prototype. | |
8220 | * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype. | |
8221 | * moxie-tdep.c: Remove _initialize_moxie_tdep prototype. | |
8222 | * msp430-tdep.c: Remove _initialize_msp430_tdep prototype. | |
8223 | * mt-tdep.c: Remove _initialize_mt_tdep prototype. | |
8224 | * nds32-tdep.c: Remove _initialize_nds32_tdep prototype. | |
8225 | * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep | |
8226 | prototype. | |
8227 | * nios2-tdep.c: Remove _initialize_nios2_tdep prototype. | |
8228 | * nto-procfs.c: Remove _initialize_procfs prototype. | |
8229 | * nto-tdep.c: Remove _initialize_nto_tdep prototype. | |
8230 | * objc-lang.c: Remove _initialize_objc_language prototype. | |
8231 | * objfiles.c: Remove _initialize_objfiles prototype. | |
8232 | * observer.c: Remove observer_test_first_notification_function, | |
8233 | observer_test_second_notification_function, | |
8234 | observer_test_third_notification_function, and | |
8235 | _initialize_observer prototypes. | |
8236 | * opencl-lang.c: Remove _initialize_opencl_language prototypes. | |
8237 | * osabi.c: Remove _initialize_gdb_osabi prototype. | |
8238 | * osdata.c: Remove _initialize_osdata prototype. | |
8239 | * p-valprint.c: Remove _initialize_pascal_valprint prototype. | |
8240 | * parse.c: Remove _initialize_parse prototype. | |
8241 | * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype. | |
8242 | * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype. | |
8243 | * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype. | |
8244 | * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype. | |
8245 | * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype. | |
8246 | * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype. | |
8247 | * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype. | |
8248 | * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype. | |
8249 | * printcmd.c: Remove _initialize_printcmd prototype. | |
8250 | * probe.c: Remove _initialize_probe prototype. | |
8251 | * proc-api.c: Remove _initialize_proc_api prototype. | |
8252 | * proc-events.c: Remove _initialize_proc_events prototype. | |
8253 | * proc-service.c: Remove _initialize_proc_service prototype. | |
8254 | * procfs.c: Remove _initialize_procfs prototype. | |
8255 | * psymtab.c: Remove _initialize_psymtab prototype. | |
8256 | * python/python.c: Remove _initialize_python prototype. | |
8257 | * ravenscar-thread.c: Remove _initialize_ravenscar prototype. | |
8258 | * record-btrace.c: Remove _initialize_record_btrace prototype. | |
8259 | * record-full.c: Remove _initialize_record_full prototype. | |
8260 | * record.c: Remove _initialize_record prototype. | |
8261 | * regcache.c: Remove _initialize_regcache prototype. | |
8262 | * reggroups.c: Remove _initialize_reggroup prototype. | |
8263 | * remote-notif.c: Remove _initialize_notif prototype. | |
8264 | * remote-sim.c: Remove _initialize_remote_sim prototype. | |
8265 | * remote.c: Remove _initialize_remote prototype. | |
8266 | * reverse.c: Remove _initialize_reverse prototype. | |
8267 | * rl78-tdep.c: Remove _initialize_rl78_tdep prototype. | |
8268 | * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype. | |
8269 | * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep | |
8270 | prototype. | |
8271 | * rs6000-nat.c: Remove _initialize_rs6000_nat prototype. | |
8272 | * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype. | |
8273 | * rust-exp.y: Remove _initialize_rust_exp prototype. | |
8274 | * rx-tdep.c: Remove _initialize_rx_tdep prototype. | |
8275 | * s390-linux-nat.c: Remove _initialize_s390_nat prototype. | |
8276 | * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype. | |
8277 | * score-tdep.c: Remove _initialize_score_tdep prototype. | |
8278 | * selftest-arch.c: Remove _initialize_selftests_foreach_arch | |
8279 | prototype. | |
8280 | * ser-go32.c: Remove _initialize_ser_dos prototype. | |
8281 | * ser-mingw.c: Remove _initialize_ser_windows prototype. | |
8282 | * ser-pipe.c: Remove _initialize_ser_pipe prototype. | |
8283 | * ser-tcp.c: Remove _initialize_ser_tcp prototype. | |
8284 | * ser-unix.c: Remove _initialize_ser_hardwire prototype. | |
8285 | * serial.c: Remove _initialize_serial prototype. | |
8286 | * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype. | |
8287 | * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype. | |
8288 | * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype. | |
8289 | * sh-tdep.c: Remove _initialize_sh_tdep prototype. | |
8290 | * skip.c: Remove _initialize_step_skip prototype. | |
8291 | * sol-thread.c: Remove _initialize_sol_thread prototype. | |
8292 | * solib-aix.c: Remove _initialize_solib_aix prototype. | |
8293 | * solib-darwin.c: Remove _initialize_darwin_solib prototype. | |
8294 | * solib-dsbt.c: Remove _initialize_dsbt_solib prototype. | |
8295 | * solib-frv.c: Remove _initialize_frv_solib prototype. | |
8296 | * solib-spu.c: Remove _initialize_spu_solib prototype. | |
8297 | * solib-svr4.c: Remove _initialize_svr4_solib prototype. | |
8298 | * solib-target.c: Remove _initialize_solib_target prototype. | |
8299 | * solib.c: Remove _initialize_solib prototype. | |
8300 | * source.c: Remove _initialize_source prototype. | |
8301 | * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype. | |
8302 | * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep | |
8303 | prototype. | |
8304 | * sparc-nat.c: Remove _initialize_sparc_nat prototype. | |
8305 | * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype. | |
8306 | * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype. | |
8307 | * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep | |
8308 | prototype. | |
8309 | * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype. | |
8310 | * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype. | |
8311 | * sparc-tdep.c: Remove _initialize_sparc_tdep prototype. | |
8312 | * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat | |
8313 | prototype. | |
8314 | * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep | |
8315 | prototype. | |
8316 | * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat | |
8317 | prototype. | |
8318 | * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep | |
8319 | prototype. | |
8320 | * sparc64-nat.c: Remove _initialize_sparc64_nat prototype. | |
8321 | * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat | |
8322 | prototype. | |
8323 | * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep | |
8324 | prototype. | |
8325 | * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat | |
8326 | prototype. | |
8327 | * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep | |
8328 | prototype. | |
8329 | * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep | |
8330 | prototype. | |
8331 | * spu-linux-nat.c: Remove _initialize_spu_nat prototype. | |
8332 | * spu-multiarch.c: Remove _initialize_spu_multiarch prototype. | |
8333 | * spu-tdep.c: Remove _initialize_spu_tdep prototype. | |
8334 | * stabsread.c: Remove _initialize_stabsread prototype. | |
8335 | * stack.c: Remove _initialize_stack prototype. | |
8336 | * stap-probe.c: Remove _initialize_stap_probe prototype. | |
8337 | * std-regs.c: Remove _initialize_frame_reg prototype. | |
8338 | * symfile-debug.c: Remove _initialize_symfile_debug prototype. | |
8339 | * symfile-mem.c: Remove _initialize_symfile_mem prototype. | |
8340 | * symfile.c: Remove _initialize_symfile prototype. | |
8341 | * symmisc.c: Remove _initialize_symmisc prototype. | |
8342 | * symtab.c: Remove _initialize_symtab prototype. | |
8343 | * target-dcache.c: Remove _initialize_target_dcache prototype. | |
8344 | * target-descriptions.c: Remove _initialize_target_descriptions | |
8345 | prototype. | |
8346 | * thread.c: Remove _initialize_thread prototype. | |
8347 | * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep | |
8348 | prototype. | |
8349 | * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype. | |
8350 | * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype. | |
8351 | * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep | |
8352 | prototype. | |
8353 | * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype. | |
8354 | * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype. | |
8355 | * tracefile.c: Remove _initialize_tracefile prototype. | |
8356 | * tracepoint.c: Remove _initialize_tracepoint prototype. | |
8357 | * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype. | |
8358 | * tui/tui-interp.c: Remove _initialize_tui_interp prototype. | |
8359 | * tui/tui-layout.c: Remove _initialize_tui_layout prototype. | |
8360 | * tui/tui-regs.c: Remove _initialize_tui_regs prototype. | |
8361 | * tui/tui-stack.c: Remove _initialize_tui_stack prototype. | |
8362 | * tui/tui-win.c: Remove _initialize_tui_win prototype. | |
8363 | * tui/tui.c: Remove _initialize_tui prototype. | |
8364 | * typeprint.c: Remove _initialize_typeprint prototype. | |
8365 | * user-regs.c: Remove _initialize_user_regs prototype. | |
8366 | * utils.c: Remove _initialize_utils prototype. | |
8367 | * v850-tdep.c: Remove _initialize_v850_tdep prototype. | |
8368 | * valarith.c: Remove _initialize_valarith prototype. | |
8369 | * valops.c: Remove _initialize_valops prototype. | |
8370 | * valprint.c: Remove _initialize_valprint prototype. | |
8371 | * value.c: Remove _initialize_values prototype. | |
8372 | * varobj.c: Remove _initialize_varobj prototype. | |
8373 | * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype. | |
8374 | * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype. | |
8375 | * vax-tdep.c: Remove _initialize_vax_tdep prototype. | |
8376 | * windows-nat.c: Remove _initialize_windows_nat, | |
8377 | _initialize_check_for_gdb_ini, and _initialize_loadable | |
8378 | prototypes. | |
8379 | * windows-tdep.c: Remove _initialize_windows_tdep prototype. | |
8380 | * xcoffread.c: Remove _initialize_xcoffread prototype. | |
8381 | * xml-support.c: Remove _initialize_xml_support prototype. | |
8382 | * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype. | |
8383 | * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat | |
8384 | prototype. | |
8385 | * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep | |
8386 | prototype. | |
8387 | * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype. | |
8388 | ||
a611b5cb KS |
8389 | 2017-09-08 Keith Seitz <keiths@redhat.com> |
8390 | ||
8391 | * dwarf2read.c (struct field_info) <fnfields>: Remove unused | |
8392 | field. | |
8393 | ||
469412dd CW |
8394 | 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com> |
8395 | ||
8396 | * f-valprint.c (f_val_print): Remove check for one byte | |
8397 | sized integers. Remove printing of character type. | |
8398 | ||
a5ad232b FP |
8399 | 2017-09-08 Frank Penczek <frank.penczek@intel.com> |
8400 | Christoph Weinmann <christoph.t.weinmann@intel.com> | |
8401 | Bernhard Heckel <bernhard.heckel@intel.com> | |
8402 | ||
8403 | * f-typeprint.c (f_type_print_base): Use fprintfi_filtered | |
8404 | to maintain proper indentation when printing pointers/refs. | |
8405 | ||
e5014227 JB |
8406 | 2017-09-07 Joel Brobecker <brobecker@adacore.com> |
8407 | ||
8408 | GDB 8.0.1 released. | |
8409 | ||
63c99141 JB |
8410 | 2017-09-07 Joel Brobecker <brobecker@adacore.com> |
8411 | ||
8412 | * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell. | |
8413 | ||
69c1e056 TT |
8414 | 2017-09-05 Tom Tromey <tom@tromey.com> |
8415 | ||
8416 | * parse.c (funcall_chain): Now a std::vector. | |
8417 | (start_arglist, end_arglist): Simplify. | |
8418 | (free_funcalls): Remove. | |
8419 | (parse_exp_in_context_1): Remove cleanup. | |
8420 | ||
fef704bf TT |
8421 | 2017-09-05 Tom Tromey <tom@tromey.com> |
8422 | ||
8423 | * go-exp.y (go_parse): Don't create a cleanup. | |
8424 | ||
5613c585 TT |
8425 | 2017-09-05 Tom Tromey <tom@tromey.com> |
8426 | ||
8427 | * d-exp.y (PrimaryExpression): Use std::string. | |
8428 | (d_parse): Don't create a cleanup. | |
8429 | ||
eae49211 TT |
8430 | 2017-09-05 Tom Tromey <tom@tromey.com> |
8431 | ||
8432 | * utils.c (do_clear_parser_state): Remove. | |
8433 | (make_cleanup_clear_parser_state): Remove. | |
8434 | * p-exp.y (pascal_parse): Use scoped_restore. | |
8435 | * m2-exp.y (m2_parse): Use scoped_restore. | |
8436 | * f-exp.y (f_parse): Use scoped_restore. | |
8437 | * d-exp.y (d_parse): Use scoped_restore. | |
8438 | * c-exp.y (c_parse): Use scoped_restore. | |
8439 | * ada-exp.y (ada_parse): Use scoped_restore. | |
8440 | * utils.h (make_cleanup_clear_parser_state): Remove. | |
8441 | ||
73b9be8b KS |
8442 | 2017-09-06 Keith Seitz <keiths@redhat.com> |
8443 | ||
8444 | * dwarf2read.c (dw2_linkage_name_attr): New function. | |
8445 | (dw2_linkage_name): New function. | |
8446 | (dwarf2_compute_name, dwarf2_physname, read_call_site_scope) | |
8447 | (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name. | |
8448 | (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr. | |
8449 | ||
a102602b KR |
8450 | 2017-09-06 Kamil Rytarowski <n54@gmx.com> |
8451 | ||
8452 | * config/djgpp/djconfig.sh: Correct shell portability issue. | |
8453 | ||
28ad437d KR |
8454 | 2017-09-06 Kamil Rytarowski <n54@gmx.com> |
8455 | ||
8456 | * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD. | |
8457 | ||
351787dd JB |
8458 | 2017-09-06 John Baldwin <jhb@FreeBSD.org> |
8459 | ||
8460 | * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c. | |
8461 | * NEWS: Mention new FreeBSD/mips native configuration. | |
8462 | * configure.host: Add aarch64*-*-freebsd*. | |
8463 | * configure.nat: Likewise. | |
8464 | * aarch64-fbsd-nat.c: New file. | |
8465 | ||
c0f84956 JB |
8466 | 2017-09-06 John Baldwin <jhb@FreeBSD.org> |
8467 | ||
8468 | * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o. | |
8469 | (ALLDEPFILES): Add aarch64-fbsd-tdep.c. | |
8470 | * NEWS: Mention new FreeBSD/aarch64 target. | |
8471 | * configure.tgt: Add aarch64*-*-freebsd*. | |
8472 | * aarch64-fbsd-tdep.c: New file. | |
8473 | * aarch64-fbsd-tdep.h: New file. | |
8474 | ||
7610297a KR |
8475 | 2017-09-06 Kamil Rytarowski <n54@gmx.com> |
8476 | ||
8477 | * MAINTAINERS (Write After Approval): Add Kamil Rytarowski. | |
8478 | ||
fbd1b771 JK |
8479 | 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
8480 | ||
8481 | * parse.c (find_minsym_type_and_address): Don't relocate addresses | |
8482 | of TLS symbols. | |
8483 | ||
5ca79eae PW |
8484 | 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
8485 | ||
8486 | * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init | |
8487 | call. | |
8488 | ||
bf93d7ba SM |
8489 | 2017-09-05 Simon Marchi <simon.marchi@ericsson.com> |
8490 | ||
8491 | * infrun.c (follow_exec): Call add_thread after | |
8492 | target_find_description. | |
8493 | ||
1bb7c059 SM |
8494 | 2017-09-05 Simon Marchi <simon.marchi@ericsson.com> |
8495 | ||
8496 | * infrun.c (handle_inferior_event_1): When exec'ing, read | |
8497 | stop_pc after follow_exec. | |
8498 | ||
fc809827 SM |
8499 | 2017-09-05 Simon Marchi <simon.marchi@ericsson.com> |
8500 | ||
8501 | * remote.c (process_g_packet): Update error message. | |
8502 | ||
d2fcdd85 YQ |
8503 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
8504 | ||
8505 | * configure.tgt (gdb_target_obs): Add i386.o for x86_64-* | |
8506 | targets. | |
8507 | ||
e69570ee PA |
8508 | 2017-09-05 Pedro Alves <palves@redhat.com> |
8509 | ||
8510 | * eval.c (eval_call, evaluate_funcall): New functions, factored | |
8511 | out from ... | |
8512 | (evaluate_subexp_standard): ... this. | |
8513 | ||
22916b07 YQ |
8514 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
8515 | ||
8516 | * amd64-tdep.c (amd64_target_description): Create target | |
8517 | descriptions. | |
8518 | (_initialize_amd64_tdep): Don't call functions | |
8519 | initialize_tdesc_amd64_*. Add self tests. | |
8520 | * arch/amd64.c (amd64_create_target_description): Add parameter | |
8521 | is_linux. Call set_tdesc_osabi if is_linux is true. | |
8522 | * arch/amd64.h (amd64_create_target_description): Update the | |
8523 | declaration. | |
8524 | * arch/i386.c (i386_create_target_description): Add parameter | |
8525 | is_linux. Call set_tdesc_osabi if is_linux is true. | |
8526 | * arch/i386.h (i386_create_target_description): Update | |
8527 | declaration. | |
8528 | * configure.tgt: Add i386.o to gdb_target_obs. | |
8529 | * features/Makefile (XMLTOC): Remove i386/*.xml. | |
8530 | * features/i386/amd64-avx-avx512.c: Remove. | |
8531 | * features/i386/amd64-avx-mpx-avx512-pku.c: Remove. | |
8532 | * features/i386/amd64-avx-mpx.c: Remove. | |
8533 | * features/i386/amd64-avx.c: Remove. | |
8534 | * features/i386/amd64-mpx.c: Remove. | |
8535 | * features/i386/amd64.c: Remove. | |
8536 | * features/i386/i386-avx-avx512.c: Remove. | |
8537 | * features/i386/i386-avx-mpx-avx512-pku.c: Remove. | |
8538 | * features/i386/i386-avx-mpx.c: Remove. | |
8539 | * features/i386/i386-avx.c: Remove. | |
8540 | * features/i386/i386-mmx.c: Remove. | |
8541 | * features/i386/i386-mpx.c: Remove. | |
8542 | * features/i386/i386.c: Remove. | |
8543 | * i386-tdep.c: Don't include features/i386/i386*.c., include | |
8544 | target-descriptions.h and arch/i386.h. | |
8545 | (i386_target_description): Create target descriptions. | |
8546 | (i386_gdbarch_init): Don't call initialize_tdesc_i386_* | |
8547 | functions. Do self tests. | |
8548 | ||
0854b7b1 YQ |
8549 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
8550 | ||
8551 | * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml. | |
8552 | * features/i386/amd64-avx-avx512-linux.c: Removed. | |
8553 | * features/i386/amd64-avx-linux.c: Removed. | |
8554 | * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed. | |
8555 | * features/i386/amd64-avx-mpx-linux.c: Removed. | |
8556 | * features/i386/amd64-linux.c: Removed. | |
8557 | * features/i386/amd64-mpx-linux.c: Removed. | |
8558 | * features/i386/x32-avx-avx512-linux.c: Removed. | |
8559 | * features/i386/x32-avx-linux.c: Removed. | |
8560 | * features/i386/x32-linux.c: Removed. | |
8561 | ||
b4570e4b YQ |
8562 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
8563 | ||
8564 | * amd64-linux-tdep.c: Include arch/amd64.h. Don't include | |
8565 | features/i386/*.c. | |
8566 | (amd64_linux_read_description): Call | |
8567 | amd64_create_target_description. | |
8568 | * arch/amd64.c: New file. | |
8569 | * arch/amd64.h: New file. | |
8570 | * configure.tgt (x86_64-*-linux*): Append amd64.o. | |
8571 | * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o. | |
8572 | ||
6c73f67f YQ |
8573 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
8574 | ||
8575 | * amd64-linux-tdep.c: Don't include amd64-XXX-linux and | |
8576 | x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c. | |
8577 | (amd64_linux_read_description): Create target descriptions. | |
8578 | (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX | |
8579 | functions. Add unit tests. | |
8580 | * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and | |
8581 | x32-core.xml. | |
8582 | * features/i386/64bit-avx.c: Generated. | |
8583 | * features/i386/64bit-avx512.c: Generated. | |
8584 | * features/i386/64bit-core.c: Generated. | |
8585 | * features/i386/64bit-linux.c: Generated. | |
8586 | * features/i386/64bit-mpx.c: Generated. | |
8587 | * features/i386/64bit-pkeys.c: Generated. | |
8588 | * features/i386/64bit-segments.c: Generated. | |
8589 | * features/i386/64bit-sse.c: Generated. | |
8590 | * features/i386/x32-core.c: Generated. | |
8591 | * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature | |
8592 | c files for amd64-linux and x32-linux. | |
8593 | ||
9d3d478b YQ |
8594 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
8595 | ||
8596 | * amd64-linux-tdep.c (amd64_linux_read_description): New | |
8597 | function. | |
8598 | (amd64_linux_core_read_description): Call | |
8599 | amd64_linux_read_description. | |
8600 | (amd64_linux_init_abi): Likewise. | |
8601 | (amd64_x32_linux_init_abi): Likewise. | |
8602 | * amd64-linux-tdep.h (amd64_linux_read_description): Declare. | |
8603 | * x86-linux-nat.c (x86_linux_read_description): Call | |
8604 | amd64_linux_read_description. | |
8605 | ||
b9f1d50f YQ |
8606 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
8607 | ||
8608 | * amd64-linux-tdep.c (amd64_linux_core_read_description): Update | |
8609 | comments. | |
8610 | ||
188c9e6d YQ |
8611 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
8612 | ||
8613 | * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml. | |
8614 | * features/i386/i386-avx-avx512-linux.c: Remove. | |
8615 | * features/i386/i386-avx-linux.c: Remove. | |
8616 | * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove. | |
8617 | * features/i386/i386-avx-mpx-linux.c: Remove. | |
8618 | * features/i386/i386-linux.c: Remove. | |
8619 | * features/i386/i386-mmx-linux.c: Remove. | |
8620 | * features/i386/i386-mpx-linux.c: Remove. | |
8621 | ||
5f035c07 YQ |
8622 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
8623 | ||
8624 | * Makefile.in (ALL_TARGET_OBS): Add i386.o. | |
8625 | (SFILES): Add arch/i386.c. | |
8626 | (HFILES_NO_SRCDIR): Add arch/i386.h. | |
8627 | * arch/i386.c: New file. | |
8628 | * arch/i386.h: New file. | |
8629 | * arch/tdesc.h (allocate_target_description): Declare. | |
8630 | (set_tdesc_architecture): Declare. | |
8631 | (set_tdesc_osabi): Declare. | |
8632 | * configure.tgt (i[34567]86-*-linux*): Add i386.o. | |
8633 | * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c. | |
8634 | include arch/i386.h. | |
8635 | (i386_linux_read_description): Remove code and call | |
8636 | i386_create_target_description. | |
8637 | (set_tdesc_architecture): New function. | |
8638 | (set_tdesc_osabi): New function. | |
8639 | * target-descriptions.h (allocate_target_description): Remove. | |
8640 | ||
0abe8a89 YQ |
8641 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
8642 | ||
8643 | * arch/tdesc.h (tdesc_create_feature): Add an argument xml. | |
8644 | * target-descriptions.c (tdesc_create_feature): Likewise, and | |
8645 | adjust code. | |
8646 | * features/i386/32bit-avx.c: Re-generated. | |
8647 | * features/i386/32bit-avx512.c: Re-generated. | |
8648 | * features/i386/32bit-core.c: Re-generated. | |
8649 | * features/i386/32bit-linux.c: Re-generated. | |
8650 | * features/i386/32bit-mpx.c: Re-generated. | |
8651 | * features/i386/32bit-pkeys.c: Re-generated. | |
8652 | * features/i386/32bit-sse.c: Re-generated. | |
8653 | ||
0a188386 YQ |
8654 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
8655 | ||
8656 | * regformats/regdef.h (struct reg): Override operator == and !=. | |
8657 | ||
f49ff000 YQ |
8658 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
8659 | ||
8660 | * arch/tdesc.h: New file. | |
8661 | * regformats/regdat.sh: Generate code using tdesc_create_reg. | |
8662 | * target-descriptions.c: Update comments. | |
8663 | * target-descriptions.h: Include "arch/tdesc.h". Remove the | |
8664 | declarations. | |
8665 | * features/i386/32bit-avx.c: Re-generated. | |
8666 | * features/i386/32bit-avx512.c: Re-generated. | |
8667 | * features/i386/32bit-core.c: Re-generated. | |
8668 | * features/i386/32bit-linux.c: Re-generated. | |
8669 | * features/i386/32bit-mpx.c: Re-generated. | |
8670 | * features/i386/32bit-pkeys.c: Re-generated. | |
8671 | * features/i386/32bit-sse.c: Re-generated. | |
8672 | ||
f7000548 YQ |
8673 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
8674 | ||
8675 | * regformats/regdat.sh: Update generated code. | |
8676 | ||
c9a5e2a5 YQ |
8677 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
8678 | ||
8679 | * regformats/regdat.sh: Adjust code order. | |
8680 | ||
d6b687ac SM |
8681 | 2017-09-05 Simon Marchi <simon.marchi@ericsson.com> |
8682 | ||
8683 | * expprint.c (dump_subexp_body_standard): Use constant format | |
8684 | string in fprintf_filtered call. | |
8685 | ||
a379bfd0 JB |
8686 | 2017-09-04 John Baldwin <jhb@FreeBSD.org> |
8687 | ||
8688 | * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and | |
8689 | NetBSD/i386. | |
8690 | * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX. | |
8691 | ||
f7efc967 JB |
8692 | 2017-09-04 John Baldwin <jhb@FreeBSD.org> |
8693 | ||
8694 | * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H. | |
8695 | ||
c49fbc6c JB |
8696 | 2017-09-04 John Baldwin <jhb@FreeBSD.org> |
8697 | ||
8698 | * bsd-kvm.o: Define _KMEMUSER. | |
8699 | * configure.ac: Define _KMEMUSER when checking for "struct lwp". | |
8700 | * configure: Regenerate. | |
8701 | ||
26562e73 JB |
8702 | 2017-09-04 John Baldwin <jhb@FreeBSD.org> |
8703 | ||
8704 | * amd64-fbsd-nat.c: Add include of "x86-xstate.h". | |
8705 | * i386-fbsd-nat.c: Likewise. | |
8706 | ||
31cf1487 JB |
8707 | 2017-09-04 John Baldwin <jhb@FreeBSD.org> |
8708 | ||
8709 | * unittests/array-view-selftests.c: Add include of <array>. | |
8710 | ||
5b9f8a7c JB |
8711 | 2017-09-04 John Baldwin <jhb@FreeBSD.org> |
8712 | ||
8713 | * spu-tdep.c (flush_ea_cache): Add missing argument to | |
8714 | call_function_by_hand. | |
8715 | ||
d69cf9b2 PA |
8716 | 2017-09-04 Pedro Alves <palves@redhat.com> |
8717 | ||
8718 | * NEWS (Safer support for debugging with no debug info): New. | |
8719 | ||
3693fdb3 PA |
8720 | 2017-09-04 Pedro Alves <palves@redhat.com> |
8721 | ||
8722 | * c-exp.y (function_method, function_method_void): Add current | |
8723 | instance flags to TYPE_INSTANCE. | |
8724 | * dwarf2read.c (check_modifier): New. | |
8725 | (compute_delayed_physnames): Assert that only C++ adds delayed | |
8726 | physnames. Mark fn_fields as const/volatile depending on | |
8727 | physname. | |
8728 | * eval.c (make_params): New type_instance_flags parameter. Use | |
8729 | it as the new type's instance flags. | |
8730 | (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance | |
8731 | flags element and pass it to make_params. | |
8732 | * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle | |
8733 | instance flags element. | |
8734 | (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise. | |
8735 | * gdbtypes.h: Include "enum-flags.h". | |
8736 | (type_instance_flags): New enum-flags type. | |
8737 | (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC) | |
8738 | (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean. | |
8739 | * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust. | |
8740 | (follow_type_instance_flags): New function. | |
8741 | (operator_check_standard) <TYPE_INSTANCE>: Adjust. | |
8742 | * parser-defs.h (follow_type_instance_flags): Declare. | |
8743 | * valops.c (value_struct_elt_for_reference): const/volatile must | |
8744 | match too. | |
8745 | ||
e68cb8e0 PA |
8746 | 2017-09-04 Pedro Alves <palves@redhat.com> |
8747 | ||
8748 | * cp-namespace.c (cp_search_static_and_baseclasses): Handle | |
8749 | function/method scopes; lookup the nested name as a function local | |
8750 | static variable. | |
8751 | ||
858be34c PA |
8752 | 2017-09-04 Pedro Alves <palves@redhat.com> |
8753 | ||
8754 | (%type <voidval>): Add function_method. | |
8755 | * c-exp.y (exp): New production for calls with no arguments. | |
8756 | (function_method, function_method_void_or_typelist): New | |
8757 | productions. | |
8758 | (exp): New production for "method()::static_var". | |
8759 | * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR. | |
8760 | * expprint.c (print_subexp_standard, dump_subexp_body_standard): | |
8761 | Handle OP_FUNC_STATIC_VAR. | |
8762 | * parse.c (operator_length_standard): | |
8763 | Handle OP_FUNC_STATIC_VAR. | |
8764 | ||
dd5901a6 PA |
8765 | 2017-09-04 Pedro Alves <palves@redhat.com> |
8766 | ||
8767 | * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS | |
8768 | handling. | |
8769 | * expprint.c (print_subexp_standard, dump_subexp_body_standard): | |
8770 | Ditto. | |
8771 | * parse.c (operator_length_standard, operator_check_standard): | |
8772 | Ditto. | |
8773 | * std-operator.def (UNOP_MEMVAL_TLS): Delete. | |
8774 | ||
46a4882b PA |
8775 | 2017-09-04 Pedro Alves <palves@redhat.com> |
8776 | ||
8777 | * ax-gdb.c: Include "typeprint.h". | |
8778 | (gen_expr_for_cast): New function. | |
8779 | (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it. | |
8780 | <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's | |
8781 | type is unknown. | |
8782 | * dwarf2read.c (new_symbol_full): Fallback to int instead of | |
8783 | nodebug_data_symbol. | |
8784 | * eval.c: Include "typeprint.h". | |
8785 | (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>: | |
8786 | Error out if symbol has unknown type. | |
8787 | <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to | |
8788 | evaluate_subexp_for_cast. | |
8789 | (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle | |
8790 | OP_VAR_MSYM_VALUE. | |
8791 | (evaluate_subexp_for_cast): New function. | |
8792 | * gdbtypes.c (init_nodebug_var_type): New function. | |
8793 | (objfile_type): Use it to initialize types of variables with no | |
8794 | debug info. | |
8795 | * typeprint.c (error_unknown_type): New. | |
8796 | * typeprint.h (error_unknown_type): New declaration. | |
8797 | * compile/compile-c-types.c (convert_type_basic): Handle | |
8798 | TYPE_CODE_ERROR; warn and fallback to int for variables with | |
8799 | unknown type. | |
8800 | ||
fe13dfec PA |
8801 | 2017-09-04 Pedro Alves <palves@redhat.com> |
8802 | ||
8803 | * eval.c (evaluate_var_value): New function, factored out from ... | |
8804 | (evaluate_subexp_standard): ... here. | |
8805 | ||
d008ee21 PA |
8806 | 2017-09-04 Pedro Alves <palves@redhat.com> |
8807 | ||
8808 | * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>: | |
8809 | Remove useless assignments to 'op'. | |
8810 | ||
827d0c51 PA |
8811 | 2017-09-04 Pedro Alves <palves@redhat.com> |
8812 | ||
8813 | * eval.c (eval_skip_value): New function. | |
8814 | (evaluate_subexp_standard): Use it. | |
8815 | ||
2c5a2be1 PA |
8816 | 2017-09-04 Pedro Alves <palves@redhat.com> |
8817 | ||
8818 | * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract | |
8819 | function name from symbol/minsym and pass it to | |
8820 | error_call_unknown_return_type. | |
8821 | ||
74ea4be4 PA |
8822 | 2017-09-04 Pedro Alves <palves@redhat.com> |
8823 | ||
8824 | * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE. | |
8825 | * ax-gdb.c (gen_msym_var_ref): New function. | |
8826 | (gen_expr): Handle OP_VAR_MSYM_VALUE. | |
8827 | * eval.c (evaluate_var_msym_value): New function. | |
8828 | * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE. | |
8829 | <OP_FUNCALL>: Extract function name from symbol/minsym and pass it | |
8830 | to call_function_by_hand. | |
8831 | * expprint.c (print_subexp_standard, dump_subexp_body_standard): | |
8832 | Handle OP_VAR_MSYM_VALUE. | |
8833 | (union exp_element) <msymbol>: New field. | |
8834 | * minsyms.h (struct type): Forward declare. | |
8835 | (find_minsym_type_and_address): Declare. | |
8836 | * parse.c (write_exp_elt_msym): New function. | |
8837 | (write_exp_msymbol): Delete, refactored as ... | |
8838 | (find_minsym_type_and_address): ... this new function. | |
8839 | (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE. | |
8840 | (operator_length_standard, operator_check_standard): Handle | |
8841 | OP_VAR_MSYM_VALUE. | |
8842 | * std-operator.def (OP_VAR_MSYM_VALUE): New. | |
8843 | ||
7022349d PA |
8844 | 2017-09-04 Pedro Alves <palves@redhat.com> |
8845 | ||
8846 | * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle | |
8847 | TYPE_GNU_IFUNC specially here. Throw error if return type is | |
8848 | unknown. | |
8849 | * ada-typeprint.c (print_func_type): Handle functions with unknown | |
8850 | return type. | |
8851 | * c-typeprint.c (c_type_print_base): Handle functions and methods | |
8852 | with unknown return type. | |
8853 | * compile/compile-c-symbols.c (convert_symbol_bmsym) | |
8854 | <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol. | |
8855 | * compile/compile-c-types.c: Include "objfiles.h". | |
8856 | (convert_func): For functions with unknown return type, warn and | |
8857 | default to int. | |
8858 | * compile/compile-object-run.c (compile_object_run): Adjust call | |
8859 | to call_function_by_hand_dummy. | |
8860 | * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to | |
8861 | call_function_by_hand. | |
8862 | * eval.c (evaluate_subexp_standard): Adjust calls to | |
8863 | call_function_by_hand. Handle functions and methods with unknown | |
8864 | return type. Pass expect_type to call_function_by_hand. | |
8865 | * f-typeprint.c (f_type_print_base): Handle functions with unknown | |
8866 | return type. | |
8867 | * gcore.c (call_target_sbrk): Adjust call to | |
8868 | call_function_by_hand. | |
8869 | * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL | |
8870 | return type instead of int. Make nodebug_text_gnu_ifunc_symbol be | |
8871 | an integer address type instead of nodebug. | |
8872 | * guile/scm-value.c (gdbscm_value_call): Adjust call to | |
8873 | call_function_by_hand. | |
8874 | * infcall.c (error_call_unknown_return_type): New function. | |
8875 | (call_function_by_hand): New "default_return_type" parameter. | |
8876 | Pass it down. | |
8877 | (call_function_by_hand_dummy): New "default_return_type" | |
8878 | parameter. Use it instead of defaulting to int. If there's no | |
8879 | default and the return type is unknown, throw an error. If | |
8880 | there's a default return type, and the called function has no | |
8881 | debug info, then assume the function is prototyped. | |
8882 | * infcall.h (call_function_by_hand, call_function_by_hand_dummy): | |
8883 | New "default_return_type" parameter. | |
8884 | (error_call_unknown_return_type): New declaration. | |
8885 | * linux-fork.c (call_lseek): Cast return type of lseek. | |
8886 | (inferior_call_waitpid, checkpoint_command): Adjust calls to | |
8887 | call_function_by_hand. | |
8888 | * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust | |
8889 | calls to call_function_by_hand. | |
8890 | * m2-typeprint.c (m2_procedure): Handle functions with unknown | |
8891 | return type. | |
8892 | * objc-lang.c (lookup_objc_class, lookup_child_selector) | |
8893 | (value_nsstring, print_object_command): Adjust calls to | |
8894 | call_function_by_hand. | |
8895 | * p-typeprint.c (pascal_type_print_varspec_prefix): Handle | |
8896 | functions with unknown return type. | |
8897 | (pascal_type_print_func_varspec_suffix): New function. | |
8898 | (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC, | |
8899 | TYPE_CODE_METHOD>: Use it. | |
8900 | * python/py-value.c (valpy_call): Adjust call to | |
8901 | call_function_by_hand. | |
8902 | * rust-lang.c (rust_evaluate_funcall): Adjust call to | |
8903 | call_function_by_hand. | |
8904 | * valarith.c (value_x_binop, value_x_unop): Adjust calls to | |
8905 | call_function_by_hand. | |
8906 | * valops.c (value_allocate_space_in_inferior): Adjust call to | |
8907 | call_function_by_hand. | |
8908 | * typeprint.c (type_print_unknown_return_type): New function. | |
8909 | * typeprint.h (type_print_unknown_return_type): New declaration. | |
8910 | ||
54990598 PA |
8911 | 2017-09-04 Pedro Alves <palves@redhat.com> |
8912 | ||
8913 | * gdbtypes.c (lookup_function_type_with_arguments): Mark function | |
8914 | types with more than one parameter as prototyped. | |
8915 | ||
9a24775b PA |
8916 | 2017-09-04 Pedro Alves <palves@redhat.com> |
8917 | ||
8918 | * cli/cli-cmds.c (print_disassembly, disassemble_current_function) | |
8919 | (disassemble_command): Use gdb_disassembly_flags instead of bare | |
8920 | int. | |
8921 | * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn) | |
8922 | (dump_insns, do_mixed_source_and_assembly_deprecated) | |
8923 | (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly): | |
8924 | Use gdb_disassembly_flags instead of bare int. | |
8925 | * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN) | |
8926 | (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME) | |
8927 | (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE) | |
8928 | (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're... | |
8929 | (enum gdb_disassembly_flag): ... values of this new enumeration. | |
8930 | (gdb_disassembly_flags): Define. | |
8931 | (gdb_disassembly) | |
8932 | (gdb_pretty_print_disassembler::pretty_print_insn): Use it. | |
8933 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use | |
8934 | gdb_disassembly_flags instead of bare int. | |
8935 | * record-btrace.c (btrace_insn_history) | |
8936 | (record_btrace_insn_history, record_btrace_insn_history_range) | |
8937 | (record_btrace_insn_history_from): Use gdb_disassembly_flags | |
8938 | instead of bare int. | |
8939 | * record.c (get_insn_history_modifiers, cmd_record_insn_history): | |
8940 | Use gdb_disassembly_flags instead of bare int. | |
8941 | * target-debug.h (target_debug_print_gdb_disassembly_flags): | |
8942 | Define. | |
8943 | * target-delegates.c: Regenerate. | |
8944 | * target.c (target_insn_history, target_insn_history_from) | |
8945 | (target_insn_history_range): Use gdb_disassembly_flags instead of | |
8946 | bare int. | |
8947 | * target.h: Include "disasm.h". | |
8948 | (struct target_ops) <to_insn_history, to_insn_history_from, | |
8949 | to_insn_history_range>: Use gdb_disassembly_flags instead of bare | |
8950 | int. | |
8951 | (target_insn_history, target_insn_history_from) | |
8952 | (target_insn_history_range): Use gdb_disassembly_flags instead of | |
8953 | bare int. | |
8954 | ||
80a65e9b SM |
8955 | 2017-09-04 Simon Marchi <simon.marchi@ericsson.com> |
8956 | ||
8957 | * cli/cli-script.c (build_command_line): For if/while commands, | |
8958 | check whether args is empty. | |
8959 | ||
6b66338c SM |
8960 | 2017-09-04 Simon Marchi <simon.marchi@ericsson.com> |
8961 | ||
8962 | * cli/cli-script.h (enum misc_command_type): Move from defs.h. | |
8963 | (enum command_control_type): Likewise. | |
8964 | (struct command_line): Likewise. | |
8965 | (free_command_lines): Likewise. | |
8966 | (struct command_lines_deleter): Likewise. | |
8967 | (command_line_up): Likewise. | |
8968 | (read_command_lines): Likewise. | |
8969 | (read_command_lines_1): Likewise. | |
8970 | * defs.h (enum misc_command_type): Move to cli/cli-script.h. | |
8971 | (enum command_control_type): Likewise. | |
8972 | (struct command_line): Likewise. | |
8973 | (free_command_lines): Likewise. | |
8974 | (struct command_lines_deleter): Likewise. | |
8975 | (command_line_up): Likewise. | |
8976 | (read_command_lines): Likewise. | |
8977 | (read_command_lines_1): Likewise. | |
8978 | * breakpoint.h: Include cli/cli-script.h. | |
8979 | * extension-priv.h: Likewise. | |
8980 | * gdbcmd.h: Likewise. | |
8981 | ||
51abb421 PA |
8982 | 2017-09-04 Pedro Alves <palves@redhat.com> |
8983 | ||
8984 | * ada-lang.c (is_known_support_routine): Move sal declaration to | |
8985 | where it is initialized. | |
8986 | * breakpoint.c (create_internal_breakpoint, init_catchpoint) | |
8987 | (parse_breakpoint_sals, decode_static_tracepoint_spec) | |
8988 | (clear_command, update_static_tracepoint): Remove init_sal | |
8989 | references. Move declarations closer to initializations. | |
8990 | * cli/cli-cmds.c (list_command): Move sal declarations closer to | |
8991 | initializations. | |
8992 | * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal | |
8993 | references. Move sal declarations closer to initializations. | |
8994 | * frame.c (find_frame_sal): Return a symtab_and_line via function | |
8995 | return instead of output parameter. Remove init_sal references. | |
8996 | * frame.h (find_frame_sal): Return a symtab_and_line via function | |
8997 | return instead of output parameter. | |
8998 | * guile/scm-frame.c (gdbscm_frame_sal): Adjust. | |
8999 | * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new | |
9000 | instead of memset. | |
9001 | (gdbscm_find_pc_line): Remove init_sal reference. | |
9002 | * infcall.c (call_function_by_hand_dummy): Remove init_sal | |
9003 | references. Move declarations closer to initializations. | |
9004 | * infcmd.c (set_step_frame): Update. Move declarations closer to | |
9005 | initializations. | |
9006 | (finish_backward): Remove init_sal references. Move declarations | |
9007 | closer to initializations. | |
9008 | * infrun.c (process_event_stop_test, handle_step_into_function) | |
9009 | (insert_hp_step_resume_breakpoint_at_frame) | |
9010 | (insert_step_resume_breakpoint_at_caller): Likewise. | |
9011 | * linespec.c (create_sals_line_offset, decode_digits_ordinary) | |
9012 | (symbol_to_sal): Likewise. | |
9013 | * probe.c (parse_probes_in_pspace): Remove init_sal reference. | |
9014 | * python/py-frame.c (frapy_find_sal): Move sal declaration closer | |
9015 | to its initialization. | |
9016 | * reverse.c (save_bookmark_command): Use new/delete. Remove | |
9017 | init_sal references. Move declarations closer to initializations. | |
9018 | * source.c (get_current_source_symtab_and_line): Remove brace | |
9019 | initialization. | |
9020 | (set_current_source_symtab_and_line): Now takes the sal by const | |
9021 | reference. Remove brace initialization. | |
9022 | (line_info): Remove init_sal reference. | |
9023 | * source.h (set_current_source_symtab_and_line): Now takes a | |
9024 | symtab_and_line via const reference. | |
9025 | * stack.c (set_current_sal_from_frame): Adjust. | |
9026 | (print_frame_info): Adjust. | |
9027 | (get_last_displayed_sal): Return the sal via function return | |
9028 | instead of via output parameter. Simplify. | |
9029 | (frame_info): Adjust. | |
9030 | * stack.h (get_last_displayed_sal): Return the sal via function | |
9031 | return instead of via output parameter. | |
9032 | * symtab.c (init_sal): Delete. | |
9033 | (find_pc_sect_line): Remove init_sal references. Move | |
9034 | declarations closer to initializations. | |
9035 | (find_function_start_sal): Remove init_sal references. Move | |
9036 | declarations closer to initializations. | |
9037 | * symtab.h (struct symtab_and_line): In-class initialize all | |
9038 | fields. | |
9039 | * tracepoint.c (set_traceframe_context) | |
9040 | (print_one_static_tracepoint_marker): Remove init_sal references. | |
9041 | Move declarations closer to initializations. | |
9042 | * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust. | |
9043 | * tui/tui-stack.c (tui_show_frame_info): Adjust. Move | |
9044 | declarations closer to initializations. | |
9045 | * tui/tui-winsource.c (tui_update_source_window_as_is): Remove | |
9046 | init_sal references. Adjust. | |
9047 | ||
6c5b2ebe PA |
9048 | 2017-09-04 Pedro Alves <palves@redhat.com> |
9049 | ||
9050 | * ax-gdb.c (agent_command_1): Use range-for. | |
9051 | * break-catch-throw.c (re_set_exception_catchpoint): Update. | |
9052 | * breakpoint.c: Include "common/array-view.h". | |
9053 | (init_breakpoint_sal, create_breakpoint_sal): Change sals | |
9054 | parameter from struct symtabs_and_lines to | |
9055 | array_view<symtab_and_line>. Adjust. Use range-for. Update. | |
9056 | (breakpoint_sals_to_pc): Change sals parameter from struct | |
9057 | symtabs_and_lines to std::vector reference. | |
9058 | (check_fast_tracepoint_sals): Change sals parameter from struct | |
9059 | symtabs_and_lines to std::array_view. Use range-for. | |
9060 | (decode_static_tracepoint_spec): Return a std::vector instead of | |
9061 | symtabs_and_lines. Update. | |
9062 | (create_breakpoint): Update. | |
9063 | (break_range_command, until_break_command, clear_command): Update. | |
9064 | (base_breakpoint_decode_location, bkpt_decode_location) | |
9065 | (bkpt_probe_create_sals_from_location) | |
9066 | (bkpt_probe_decode_location, tracepoint_decode_location) | |
9067 | (tracepoint_probe_decode_location) | |
9068 | (strace_marker_create_sals_from_location): Return a std::vector | |
9069 | instead of symtabs_and_lines. | |
9070 | (strace_marker_create_breakpoints_sal): Update. | |
9071 | (strace_marker_decode_location): Return a std::vector instead of | |
9072 | symtabs_and_lines. Update. | |
9073 | (update_breakpoint_locations): Change struct symtabs_and_lines | |
9074 | parameters to gdb::array_view. Adjust. | |
9075 | (location_to_sals): Return a std::vector instead of | |
9076 | symtabs_and_lines. Update. | |
9077 | (breakpoint_re_set_default): Use std::vector instead of struct | |
9078 | symtabs_and_lines. | |
9079 | (decode_location_default): Return a std::vector instead of | |
9080 | symtabs_and_lines. Update. | |
9081 | * breakpoint.h: Include "common/array-view.h". | |
9082 | (struct breakpoint_ops) <decode_location>: Now returns a | |
9083 | std::vector instead of returning a symtabs_and_lines via output | |
9084 | parameter. | |
9085 | (update_breakpoint_locations): Change sals parameters to use | |
9086 | gdb::array_view. | |
9087 | * cli/cli-cmds.c (edit_command, list_command): Update to use | |
9088 | std::vector and gdb::array_view. | |
9089 | (ambiguous_line_spec): Adjust to use gdb::array_view and | |
9090 | range-for. | |
9091 | (compare_symtabs): Rename to ... | |
9092 | (cmp_symtabs): ... this. Change parameters to symtab_and_line | |
9093 | const reference and adjust. | |
9094 | (filter_sals): Rewrite using std::vector and standard algorithms. | |
9095 | * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify. | |
9096 | (jump_command): Update to use std::vector. | |
9097 | * linespec.c (struct linespec_state) <canonical_names>: Update | |
9098 | comment. | |
9099 | (add_sal_to_sals_basic): Delete. | |
9100 | (add_sal_to_sals, filter_results, convert_results_to_lsals) | |
9101 | (decode_line_2, create_sals_line_offset) | |
9102 | (convert_address_location_to_sals, convert_linespec_to_sals) | |
9103 | (convert_explicit_location_to_sals, parse_linespec) | |
9104 | (event_location_to_sals, decode_line_full, decode_line_1) | |
9105 | (decode_line_with_current_source) | |
9106 | (decode_line_with_last_displayed, decode_objc) | |
9107 | (decode_digits_list_mode, decode_digits_ordinary, minsym_found) | |
9108 | (linespec_result::~linespec_result): Adjust to use std::vector | |
9109 | instead of symtabs_and_lines. | |
9110 | * linespec.h (linespec_sals::sals): Now a std::vector. | |
9111 | (struct linespec_result): Use std::vector, bool, and in-class | |
9112 | initialization. | |
9113 | (decode_line_1, decode_line_with_current_source) | |
9114 | (decode_line_with_last_displayed): Return std::vector. | |
9115 | * macrocmd.c (info_macros_command): Use std::vector. | |
9116 | * mi/mi-main.c (mi_cmd_trace_find): Use std::vector. | |
9117 | * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use | |
9118 | std::vector. | |
9119 | * probe.h (parse_probes): Return a std::vector. | |
9120 | * python/python.c (gdbpy_decode_line): Use std::vector and | |
9121 | gdb::array_view. | |
9122 | * source.c (select_source_symtab, line_info): Use std::vector. | |
9123 | * stack.c (func_command): Use std::vector. | |
9124 | * symtab.h (struct symtabs_and_lines): Delete. | |
9125 | * tracepoint.c (tfind_line_command, scope_info): Use std::vector. | |
9126 | ||
7c44b49c PA |
9127 | 2017-09-04 Pedro Alves <palves@redhat.com> |
9128 | ||
9129 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
9130 | unittests/array-view-selftests.c. | |
9131 | (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o. | |
9132 | * common/array-view.h: New file. | |
9133 | * unittests/array-view-selftests.c: New file. | |
9134 | ||
e439fa14 PA |
9135 | 2017-09-04 Pedro Alves <palves@redhat.com> |
9136 | ||
9137 | * cli/cli-cmds.c (edit_command): Pass message to | |
9138 | ambiguous_line_spec. | |
9139 | (list_command): Pass message to ambiguous_line_spec. Say | |
9140 | "first"/"last" instead of "start" and "end" to be consistent with | |
9141 | the manual. | |
9142 | (ambiguous_line_spec): Add 'format' and vararg parameters. Use | |
9143 | them to print formatted message. | |
9144 | ||
7525b645 PA |
9145 | 2017-09-04 Pedro Alves <palves@redhat.com> |
9146 | ||
9147 | * btrace.c (ftrace_add_pt): Pass btrace_insn to | |
9148 | ftrace_update_insns by reference instead of pointer. | |
9149 | ||
badc0020 YQ |
9150 | 2017-09-04 Yao Qi <yao.qi@linaro.org> |
9151 | ||
9152 | * i386-go32-tdep.c: Include x86-xstate.h. | |
9153 | (i386_go32_init_abi): Call i386_target_description. | |
9154 | * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx | |
9155 | if xcr0 is X86_XSTATE_X87_MASK. | |
9156 | * i386-tdep.h (tdesc_i386): Remove the declaration. | |
9157 | (tdesc_i386_mmx): Likewise. | |
9158 | ||
d78bdb54 YQ |
9159 | 2017-09-04 Yao Qi <yao.qi@linaro.org> |
9160 | ||
9161 | * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return | |
9162 | X86_XSTATE_SSE_MASK instead of 0. | |
9163 | ||
ca1fa5ee YQ |
9164 | 2017-09-04 Yao Qi <yao.qi@linaro.org> |
9165 | ||
9166 | * amd64-fbsd-nat.c (amd64fbsd_read_description): Call | |
9167 | i386_target_description. | |
9168 | * i386-fbsd-nat.c (i386fbsd_read_description): Call | |
9169 | i386_target_description. | |
9170 | * i386-tdep.c (i386_gdbarch_init): Likewise. | |
9171 | ||
2434b019 YQ |
9172 | 2017-09-04 Yao Qi <yao.qi@linaro.org> |
9173 | ||
9174 | * amd64-darwin-tdep.c: Include "x86-xstate.h". | |
9175 | (x86_darwin_init_abi_64): Call amd64_target_description. | |
9176 | * amd64-dicos-tdep.c: Likewise. | |
9177 | * amd64-fbsd-nat.c: Likewise. | |
9178 | * amd64-fbsd-tdep.c: Likewise. | |
9179 | * amd64-nbsd-tdep.c: Likewise. | |
9180 | * amd64-obsd-tdep.c: Likewise. | |
9181 | * amd64-sol2-tdep.c: Likewise. | |
9182 | * amd64-windows-tdep.c: Likewise. | |
9183 | * amd64-tdep.h (tdesc_amd64): Remove the declaration. | |
9184 | ||
0860c437 SM |
9185 | 2017-09-04 Simon Marchi <simon.marchi@ericsson.com> |
9186 | ||
9187 | * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove. | |
9188 | (btrace_function) <insn>: Change type to use std::vector. | |
9189 | * btrace.c (ftrace_debug, ftrace_call_num_insn, | |
9190 | ftrace_find_call, ftrace_new_gap, ftrace_update_function, | |
9191 | ftrace_update_insns, ftrace_compute_global_level_offset, | |
9192 | btrace_stitch_bts, btrace_clear, btrace_insn_get, | |
9193 | btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to | |
9194 | change to std::vector. | |
9195 | (ftrace_update_insns): Adjust to change to std::vector, change | |
9196 | type of INSN parameter. | |
9197 | (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns. | |
9198 | * record-btrace.c (btrace_call_history_insn_range, | |
9199 | btrace_compute_src_line_range, | |
9200 | record_btrace_frame_prev_register): Adjust to change to | |
9201 | std::vector. | |
9202 | * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust | |
9203 | to change to std::vector. | |
9204 | ||
0638b7f9 TT |
9205 | 2017-09-03 Tom Tromey <tom@tromey.com> |
9206 | ||
9207 | * corefile.c (reopen_exec_file): Use std::string. | |
9208 | ||
8f84fb0e TT |
9209 | 2017-09-03 Tom Tromey <tom@tromey.com> |
9210 | ||
9211 | * compile/compile.c (compile_register_name_mangled): Return | |
9212 | std::string. | |
9213 | * compile/compile-loc2c.c (pushf_register_address): Update. | |
9214 | (pushf_register): Update. | |
9215 | * compile/compile-c-types.c (convert_array): Update. | |
9216 | * compile/compile-c-symbols.c (generate_vla_size): Update. | |
9217 | (error_symbol_once): Use a gdb::unique_xmalloc_ptr. | |
9218 | (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr. | |
9219 | (convert_one_symbol): Update. | |
9220 | (generate_c_for_for_one_variable): Update. | |
9221 | * compile/compile-c-support.c (c_get_range_decl_name): Return a | |
9222 | std::string. | |
9223 | (generate_register_struct): Update. | |
9224 | * compile/compile-internal.h (c_get_range_decl_name): Return a | |
9225 | std::string. | |
9226 | (compile_register_name_mangled): Return std::string. | |
9227 | ||
18e9961f TT |
9228 | 2017-09-03 Tom Tromey <tom@tromey.com> |
9229 | ||
9230 | * utils.c (perror_string): Return a std::string. | |
9231 | (throw_perror_with_name, perror_warning_with_name): Update. | |
9232 | ||
45343786 TT |
9233 | 2017-09-03 Tom Tromey <tom@tromey.com> |
9234 | ||
9235 | * demangle.c (demangle_command): Use std::string, | |
9236 | unique_xmalloc_ptr. | |
9237 | ||
b57af503 TT |
9238 | 2017-09-03 Tom Tromey <tom@tromey.com> |
9239 | ||
9240 | * cli/cli-setshow.c (do_set_command): Use std::string. | |
9241 | ||
6eecf35f TT |
9242 | 2017-09-03 Tom Tromey <tom@tromey.com> |
9243 | ||
9244 | * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr. | |
9245 | ||
56496dd4 TT |
9246 | 2017-09-03 Tom Tromey <tom@tromey.com> |
9247 | ||
9248 | * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string. | |
9249 | ||
e91a1fa7 TT |
9250 | 2017-09-03 Tom Tromey <tom@tromey.com> |
9251 | ||
9252 | * mi/mi-cmd-env.c (env_execute_cli_command): Use | |
9253 | gdb::unique_xmalloc_ptr. | |
9254 | ||
7ffd83d7 TT |
9255 | 2017-09-03 Tom Tromey <tom@tromey.com> |
9256 | ||
9257 | * thread.c (print_thread_info_1): Use string_printf. | |
9258 | (thread_apply_command, thread_apply_all_command): Use | |
9259 | std::string. | |
9260 | ||
1ccbe998 TT |
9261 | 2017-09-03 Tom Tromey <tom@tromey.com> |
9262 | ||
9263 | * valprint.c (val_print_string): Update. | |
9264 | * gdbcore.h (memory_error_message): Return std::string. | |
9265 | * corefile.c (memory_error_message): Return std::string. | |
9266 | (memory_error): Update. | |
9267 | * breakpoint.c (insert_bp_location): Update. | |
9268 | ||
23fdd69e SM |
9269 | 2017-09-03 Simon Marchi <simon.marchi@ericsson.com> |
9270 | ||
9271 | * target/waitstatus.h (target_waitstatus_to_string): Change | |
9272 | return type to std::string. | |
9273 | * target/waitstatus.c (target_waitstatus_to_string): Return | |
9274 | std::string. | |
9275 | * target.h (target_waitstatus_to_string): Remove declaration. | |
9276 | * infrun.c (resume, clear_proceed_status_thread, | |
9277 | print_target_wait_results, do_target_wait, save_waitstatus, | |
9278 | stop_all_threads): Adjust. | |
9279 | * record-btrace.c (record_btrace_wait): Adjust. | |
9280 | * target-debug.h | |
9281 | (target_debug_print_struct_target_waitstatus_p): Adjust. | |
9282 | ||
5c811d30 JK |
9283 | 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
9284 | ||
9285 | PR gdb/22046 | |
9286 | * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED | |
9287 | detection. | |
9288 | ||
0a2dde4a SDJ |
9289 | 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com> |
9290 | ||
9291 | * NEWS (Changes since GDB 8.0): Add entry mentioning new support | |
9292 | for setting/unsetting environment variables on the remote target. | |
9293 | (New remote packets): Add entries for QEnvironmentHexEncoded, | |
9294 | QEnvironmentUnset and QEnvironmentReset. | |
9295 | * common/environ.c (gdb_environ::operator=): Extend method to | |
9296 | handle m_user_set_env_list and m_user_unset_env_list. | |
9297 | (gdb_environ::clear): Likewise. | |
9298 | (match_var_in_string): Change type of first parameter from 'char | |
9299 | *' to 'const char *'. | |
9300 | (gdb_environ::set): Extend method to handle | |
9301 | m_user_set_env_list and m_user_unset_env_list. | |
9302 | (gdb_environ::unset): Likewise. | |
9303 | (gdb_environ::clear_user_set_env): New method. | |
9304 | (gdb_environ::user_set_envp): Likewise. | |
9305 | (gdb_environ::user_unset_envp): Likewise. | |
9306 | * common/environ.h (gdb_environ): Handle m_user_set_env_list and | |
9307 | m_user_unset_env_list on move constructor/assignment. | |
9308 | (unset): Add new default parameter 'update_unset_list = true'. | |
9309 | (clear_user_set_env): New method. | |
9310 | (user_set_envp): Likewise. | |
9311 | (user_unset_envp): Likewise. | |
9312 | (m_user_set_env_list): New std::set. | |
9313 | (m_user_unset_env_list): Likewise. | |
9314 | * common/rsp-low.c (hex2str): New function. | |
9315 | (bin2hex): New overload for bin2hex function. | |
9316 | * common/rsp-low.c (hex2str): New prototype. | |
9317 | (str2hex): New overload prototype. | |
9318 | * remote.c: Include "environ.h". Add QEnvironmentHexEncoded, | |
9319 | QEnvironmentUnset and QEnvironmentReset. | |
9320 | (remote_protocol_features): Add QEnvironmentHexEncoded, | |
9321 | QEnvironmentUnset and QEnvironmentReset packets. | |
9322 | (send_environment_packet): New function. | |
9323 | (extended_remote_environment_support): Likewise. | |
9324 | (extended_remote_create_inferior): Call | |
9325 | extended_remote_environment_support. | |
9326 | (_initialize_remote): Add QEnvironmentHexEncoded, | |
9327 | QEnvironmentUnset and QEnvironmentReset packet configs. | |
9328 | * unittests/environ-selftests.c (gdb_selftest_env_var): | |
9329 | New variable. | |
9330 | (test_vector_initialization): New function. | |
9331 | (test_init_from_host_environ): Likewise. | |
9332 | (test_reinit_from_host_environ): Likewise. | |
9333 | (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B): | |
9334 | Likewise. | |
9335 | (test_unset_set_empty_vector): Likewise. | |
9336 | (test_vector_clear): Likewise. | |
9337 | (test_std_move): Likewise. | |
9338 | (test_move_constructor): | |
9339 | (test_self_move): Likewise. | |
9340 | (test_set_unset_reset): Likewise. | |
9341 | (run_tests): Rewrite in terms of the functions above. | |
9342 | ||
654670a4 WP |
9343 | 2017-08-31 Weimin Pan <weimin.pan@oracle.com> |
9344 | ||
9345 | * sparc64-tdep.c (adi_stat_t): Fix comment formatting. | |
9346 | (adi_available): Use a temp variable of type CORE_ADDR as argument | |
9347 | 3 when calling target_auxv_search. | |
9348 | (adi_normalize_address): Use masks and xor operators to calculate | |
9349 | normalized address. | |
9350 | (adi_read_versions, adi_write_versions, adi_print_versions) | |
9351 | (do_examine, do_assign): Use paddress. | |
9352 | ||
7755ddb7 JB |
9353 | 2017-08-29 John Baldwin <jhb@FreeBSD.org> |
9354 | ||
9355 | * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR. | |
9356 | * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR | |
9357 | out of loop and add supply of FIR. | |
9358 | (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and | |
9359 | add collect of FIR. | |
9360 | ||
fd437cbc SM |
9361 | 2017-08-28 Simon Marchi <simon.marchi@ericsson.com> |
9362 | ||
3804a343 | 9363 | PR gdb/21827 |
fd437cbc SM |
9364 | * cli/cli-script.c (define_command): Don't convert command name |
9365 | to lower case. | |
9366 | ||
988f6b3d JB |
9367 | 2017-08-25 Joel Brobecker <brobecker@adacore.com> |
9368 | ||
9369 | * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp". | |
9370 | Update all callers accordingly. Remove all code blocks handling | |
9371 | the case where DISPP is not NULL. | |
9372 | ||
663c44ac JK |
9373 | 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
9374 | ||
9375 | PR symtab/22003 | |
9376 | * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow) | |
9377 | (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes) | |
9378 | (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const. | |
9379 | ||
f1902523 JK |
9380 | 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
9381 | ||
9382 | * dwarf2read.c (build_type_psymtabs_reader): New prototype. | |
9383 | (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES. | |
9384 | (read_comp_units_from_section): New parameter abbrev_section, use | |
9385 | read_and_check_comp_unit_head, allocate signatured_type if needed. | |
9386 | (create_all_comp_units): Update read_comp_units_from_section caller. | |
9387 | ||
87215ad1 SDJ |
9388 | 2017-08-23 Pedro Alves <palves@redhat.com> |
9389 | ||
9390 | PR remote/21852 | |
9391 | * remote.c (add_current_inferior_and_thread): Set inferior_ptid | |
9392 | to null_ptid and switch to thread without reading the registers | |
9393 | after adding the inferior. | |
9394 | ||
6e41ddec JK |
9395 | 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com> |
9396 | ||
9397 | * NEWS (Changes since GDB 8.0): Add set compile-gcc and show | |
9398 | compile-gcc. | |
9399 | * compile/compile.c (compile_gcc, show_compile_gcc): New. | |
9400 | (compile_to_object): Implement compile_gcc. | |
9401 | (_initialize_compile): Install "set compile-gcc". Initialize | |
9402 | compile_gcc. | |
9403 | ||
e68c32d5 JK |
9404 | 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com> |
9405 | ||
9406 | * compile/compile.c (compile_to_object): Conditionally call | |
9407 | set_verbose. Conditionally call compile or compile_v0. | |
9408 | ||
58afddc6 WP |
9409 | 2017-08-07 Weimin Pan <weimin.pan@oracle.com> |
9410 | ||
9411 | * sparc64-tdep.h: (adi_normalize_address): New export. | |
9412 | * sparc-nat.h: (open_adi_tag_fd): New export. | |
9413 | * sparc64-linux-nat.c: (open_adi_tag_fd): New function. | |
9414 | * sparc64-linux-tdep.c: | |
9415 | (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines. | |
9416 | (sparc64_linux_handle_segmentation_fault): New function. | |
9417 | (sparc64_linux_init_abi): Register | |
9418 | sparc64_linux_handle_segmentation_fault | |
9419 | * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h. | |
9420 | (sparc64_addr_bits_remove): New function. | |
9421 | (sparc64_init_abi): Register sparc64_addr_bits_remove. | |
9422 | (MAX_PROC_NAME_SIZE): New macro. | |
9423 | (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines. | |
9424 | (sparc64adilist): New variable. | |
9425 | (adi_proc_list): New variable. | |
9426 | (find_adi_info): New function. | |
9427 | (add_adi_info): New function. | |
9428 | (get_adi_info_proc): New function. | |
9429 | (get_adi_info): New function. | |
9430 | (info_adi_command): New function. | |
9431 | (read_maps_entry): New function. | |
9432 | (adi_available): New function. | |
9433 | (adi_normalize_address): New function. | |
9434 | (adi_align_address): New function. | |
9435 | (adi_convert_byte_count): New function. | |
9436 | (adi_tag_fd): New function. | |
9437 | (adi_is_addr_mapped): New function. | |
9438 | (adi_read_versions): New function. | |
9439 | (adi_write_versions): New function. | |
9440 | (adi_print_versions): New function. | |
9441 | (do_examine): New function. | |
9442 | (do_assign): New function. | |
9443 | (adi_examine_command): New function. | |
9444 | (adi_assign_command): New function. | |
9445 | (_initialize_sparc64_adi_tdep): New function. | |
9446 | ||
11db9430 SM |
9447 | 2017-08-22 Simon Marchi <simon.marchi@ericsson.com> |
9448 | ||
9449 | * breakpoint.c (breakpoints_info): Rename to ... | |
9450 | (info_breakpoints_command): ... this. | |
9451 | (watchpoints_info): Rename to ... | |
9452 | (info_watchpoints_command): ... this. | |
9453 | (tracepoints_info): Rename to ... | |
9454 | (info_tracepoints_command): ... this. | |
9455 | (_initialize_breakpoint): Adjust. | |
9456 | * dcache.c (dcache_info): Rename to ... | |
9457 | (info_display_command): ... this. | |
9458 | (_initialize_dcache): Adjust. | |
9459 | * frame.h (args_info): Rename to ... | |
9460 | (info_args_command): ... this. | |
9461 | (locals_info): Rename to ... | |
9462 | (info_locals_command): ... this. | |
9463 | * infcmd.c (nofp_registers_info): Rename to ... | |
9464 | (info_registers_command): ... this. | |
9465 | (float_info): Rename to ... | |
9466 | (info_float_command): ... this. | |
9467 | (program_info): Rename to ... | |
9468 | (info_program_command): ... this. | |
9469 | (all_registers_info): Rename to ... | |
9470 | (info_all_registers_command): ... this. | |
9471 | (vector_info): Rename to ... | |
9472 | (info_vector_command): ... this. | |
9473 | (float_info): Rename to ... | |
9474 | (info_float_command): ... this. | |
9475 | (_initialize_infcmd): Adjust. | |
9476 | * inferior.h (term_info): Rename to ... | |
9477 | (info_terminal_command): ... this. | |
9478 | * inflow.c (term_info): Rename to ... | |
9479 | (info_terminal_command): ... this. | |
9480 | (_initialize_inflow): Adjust. | |
9481 | * infrun.c (signals_info): Rename to ... | |
9482 | (info_signals_command): ... this. | |
9483 | (_initialize_infrun): Adjust. | |
9484 | * objc-lang.c (classes_info): Rename to ... | |
9485 | (info_classes_command): ... this. | |
9486 | (selectors_info): Rename to ... | |
9487 | (info_selectors_command): ... this. | |
9488 | (_initialize_objc_language): Adjust. | |
9489 | * printcmd.c (sym_info): Rename to ... | |
9490 | (info_symbol_command): ... this. | |
9491 | (address_info): Rename to ... | |
9492 | (info_address_command): ... this. | |
9493 | (display_info): Rename to ... | |
9494 | (info_display_command): ... this. | |
9495 | (_initialize_printcmd): Adjust. | |
9496 | * reverse.c (bookmarks_info): Rename to ... | |
9497 | (info_breakpoints_command): ... this. | |
9498 | (_initialize_reverse): Adjust. | |
9499 | * ser-go32.c (dos_info): Rename to ... | |
9500 | (info_serial_command): ... this. | |
9501 | (_initialize_ser_dos): Adjust. | |
9502 | * skip.c (skip_info): Rename to ... | |
9503 | (info_skip_command): ... this. | |
9504 | (_initialize_step_skip): Adjust. | |
9505 | * source.c (line_info): Rename to ... | |
9506 | (info_line_command): ... this. | |
9507 | (source_info): Rename to ... | |
9508 | (info_source_command) | |
9509 | * stack.c (frame_info): Rename to ... | |
9510 | (info_frame_command): ... this. | |
9511 | (locals_info): Rename to ... | |
9512 | (info_locals_command): ... this. | |
9513 | (args_info): Rename to ... | |
9514 | (info_args_command): ... this. | |
9515 | (_initialize_stack): Adjust. | |
9516 | * symtab.c (sources_info): Rename to ... | |
9517 | (info_sources_command): ... this. | |
9518 | (variables_info): Rename to ... | |
9519 | (info_variables_command): ... this. | |
9520 | (functions_info): Rename to ... | |
9521 | (info_functions_command): ... this. | |
9522 | (types_info): Rename to ... | |
9523 | (info_types_command): ... this. | |
9524 | (_initialize_symtab): Adjust. | |
9525 | * target.c (target_info): Rename to ... | |
9526 | (info_target_command): ... this. | |
9527 | (initialize_targets): Adjust. | |
9528 | * tracepoint.c (tvariables_info): Rename to ... | |
9529 | (info_tvariables_command): ... this. | |
9530 | (scope_info): Rename to ... | |
9531 | (info_scope_command): ... this. | |
9532 | (trace_dump_actions): Adjust. | |
9533 | (_initialize_tracepoint): Adjust. | |
9534 | ||
b270e6f9 TT |
9535 | 2017-08-22 Tom Tromey <tom@tromey.com> |
9536 | ||
9537 | * breakpoint.h (install_breakpoint): Update. | |
9538 | * breakpoint.c (add_solib_catchpoint): Update. | |
9539 | (install_breakpoint): Change argument to a std::unique_ptr. | |
9540 | (create_fork_vfork_event_catchpoint): Use std::unique_ptr. | |
9541 | (create_breakpoint_sal, create_breakpoint): Update. | |
9542 | (watch_command_1, catch_exec_command_1) | |
9543 | (strace_marker_create_breakpoints_sal): Use std::unique_ptr. | |
9544 | (add_to_breakpoint_chain): Change argument to a std::unique_ptr. | |
9545 | Return the breakpoint. | |
9546 | (set_raw_breakpoint_without_location, set_raw_breakpoint) | |
9547 | (new_single_step_breakpoint): Update. | |
9548 | * break-catch-throw.c (handle_gnu_v3_exceptions): Use | |
9549 | std::unique_ptr. | |
9550 | * break-catch-syscall.c (create_syscall_event_catchpoint): Use | |
9551 | std::unique_ptr. | |
9552 | * break-catch-sig.c (create_signal_catchpoint): Use | |
9553 | std::unique_ptr. | |
9554 | * ada-lang.c (create_ada_exception_catchpoint): Use | |
9555 | std::unique_ptr. | |
9556 | ||
36bd8eaa TT |
9557 | 2017-08-22 Tom Tromey <tom@tromey.com> |
9558 | ||
9559 | * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr. | |
9560 | ||
56f37645 TT |
9561 | 2017-08-22 Tom Tromey <tom@tromey.com> |
9562 | ||
9563 | * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr. | |
9564 | (lookup_partial_symbol): Update. | |
9565 | ||
0b581c69 TT |
9566 | 2017-08-22 Tom Tromey <tom@tromey.com> |
9567 | ||
9568 | * source.h (rewrite_source_path): Return a unique_xmalloc_ptr. | |
9569 | * source.c (rewrite_source_path): Return a unique_xmalloc_ptr. | |
9570 | (find_and_open_source, symtab_to_fullname): Update. | |
9571 | * psymtab.c (psymtab_to_fullname): Update. | |
9572 | ||
14278e1f TT |
9573 | 2017-08-22 Tom Tromey <tom@tromey.com> |
9574 | ||
9575 | * exec.c (exec_file_attach): Update. | |
9576 | * linux-thread-db.c (try_thread_db_load): Update. | |
9577 | * guile/scm-safe-call.c (gdbscm_safe_source_script): Update. | |
9578 | * utils.c (gdb_realpath): Change return type. | |
9579 | (gdb_realpath_keepfile): Update. | |
9580 | (gdb_realpath_check_trailer, gdb_realpath_tests): New functions. | |
9581 | (_initialize_utils): Register the new self test. | |
9582 | * source.c (openp): Update. | |
9583 | (find_and_open_source): Update. | |
9584 | * nto-tdep.c (nto_find_and_open_solib): Update. | |
9585 | * main.c (set_gdb_data_directory): Update. | |
9586 | (captured_main_1): Update. | |
9587 | * dwarf2read.c (dwarf2_get_dwz_file): Update | |
9588 | (dw2_map_symbol_filenames): Update. | |
9589 | * auto-load.c (auto_load_safe_path_vec_update): Update. | |
9590 | (filename_is_in_auto_load_safe_path_vec): Change type of | |
9591 | "filename_realp". | |
9592 | (auto_load_objfile_script): Update. | |
9593 | (file_is_auto_load_safe): Update. Use std::string. | |
9594 | * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr. | |
9595 | ||
4971c9a7 TT |
9596 | 2017-08-22 Tom Tromey <tom@tromey.com> |
9597 | ||
9598 | * utils.c (gdb_realpath_keepfile): Return a | |
9599 | gdb::unique_xmalloc_ptr. | |
9600 | * exec.c (exec_file_attach): Update. | |
9601 | * utils.h (gdb_realpath_keepfile): Return a | |
9602 | gdb::unique_xmalloc_ptr. | |
9603 | ||
e3e41d58 TT |
9604 | 2017-08-22 Tom Tromey <tom@tromey.com> |
9605 | ||
9606 | * compile/compile.c (compile_file_command): Use | |
9607 | gdb::unique_xmalloc_ptr, std::string. | |
9608 | * utils.c (gdb_abspath): Change return type. | |
9609 | * source.c (openp): Update. | |
9610 | * objfiles.c (allocate_objfile): Update. | |
9611 | * main.c (set_gdb_data_directory): Update. | |
9612 | * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr. | |
9613 | ||
0d999a6e ZZ |
9614 | 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com> |
9615 | ||
9616 | * cli-cmds.c (list_commands): List actual code around more than | |
9617 | one location. | |
9618 | ||
329d5e7e JB |
9619 | 2017-08-21 John Baldwin <jhb@FreeBSD.org> |
9620 | ||
9621 | * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'. | |
9622 | ||
bf223d3e PA |
9623 | 2017-08-21 Pedro Alves <palves@redhat.com> |
9624 | ||
9625 | PR gdb/19487 | |
9626 | * c-exp.y (variable production): Handle function aliases. | |
9627 | * minsyms.c (msymbol_is_text): New function. | |
9628 | * minsyms.h (msymbol_is_text): Declare. | |
9629 | * symtab.c (find_function_alias_target): New function. | |
9630 | * symtab.h (find_function_alias_target): Declare. | |
9631 | ||
c973d0aa PA |
9632 | 2017-08-21 Pedro Alves <palves@redhat.com> |
9633 | ||
9634 | * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past | |
9635 | typedefs. | |
9636 | * typeprint.c (whatis_exp): If handling "whatis", and expression | |
9637 | is OP_TYPE, strip one typedef level. Otherwise don't strip | |
9638 | typedefs here. | |
9639 | * valops.c (value_cast): Save "to" type before resolving | |
9640 | stubs/typedefs. Use that type as resulting value's type. | |
9641 | ||
2989a365 TT |
9642 | 2017-08-18 Tom Tromey <tom@tromey.com> |
9643 | Pedro Alves <palves@redhat.com> | |
9644 | ||
9645 | * spu-multiarch.c (parse_spufs_run): Use scoped_restore. | |
9646 | * sol-thread.c (sol_thread_resume, sol_thread_wait) | |
9647 | (sol_thread_xfer_partial, rw_common): Use scoped_restore. | |
9648 | * procfs.c (procfs_do_thread_registers): Use scoped_restore. | |
9649 | * proc-service.c (ps_xfer_memory): Use scoped_restore. | |
9650 | * linux-tdep.c (linux_corefile_thread): Remove a cleanup. | |
9651 | (linux_get_siginfo_data): Add "thread" argument. Use | |
9652 | scoped_restore. | |
9653 | * linux-nat.c (linux_child_follow_fork) | |
9654 | (check_stopped_by_watchpoint): Use scoped_restore. | |
9655 | * infrun.c (displaced_step_prepare_throw, write_memory_ptid) | |
9656 | (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore. | |
9657 | (restore_inferior_ptid, save_inferior_ptid): Remove. | |
9658 | * btrace.c (btrace_fetch): Use scoped_restore. | |
9659 | * bsd-uthread.c (bsd_uthread_fetch_registers) | |
9660 | (bsd_uthread_store_registers): Use scoped_restore. | |
9661 | * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use | |
9662 | scoped_restore. | |
9663 | * aix-thread.c (aix_thread_resume, aix_thread_wait) | |
9664 | (aix_thread_xfer_partial): Use scoped_restore. | |
9665 | * inferior.h (save_inferior_ptid): Remove. | |
9666 | ||
e60eb288 YQ |
9667 | 2017-08-18 Yao Qi <yao.qi@linaro.org> |
9668 | ||
9669 | PR tdep/21818 | |
9670 | * arm-tdep.c (gdb_print_insn_arm): Mark | |
9671 | USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL. | |
9672 | ||
6d580b63 YQ |
9673 | 2017-08-18 Yao Qi <yao.qi@linaro.org> |
9674 | ||
9675 | * NEWS: Mention GDBserver's new option "--selftest". | |
9676 | * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c. | |
9677 | * selftest.c: Move it to common/selftest.c. | |
9678 | * selftest.h: Move it to common/selftest.h. | |
9679 | * selftest-arch.c (reset): New function. | |
9680 | (tests_with_arch): Call reset. | |
9681 | ||
86dcbf50 YQ |
9682 | 2017-08-18 Yao Qi <yao.qi@linaro.org> |
9683 | ||
9684 | * selftest.c (run_tests): Don't call QUIT. Call debug_printf | |
9685 | instead of exception_fprintf and printf_filtered. | |
9686 | ||
7649770c YQ |
9687 | 2017-08-18 Yao Qi <yao.qi@linaro.org> |
9688 | ||
9689 | * selftest.c (register_self_test): Rename it to | |
9690 | selftests::register_test. | |
9691 | (run_self_tests): selftest::run_tests. | |
9692 | * selftest.h: Update declarations. | |
9693 | * selftest-arch.c (register_self_test_foreach_arch): Rename it to | |
9694 | selftests::register_test_foreach_arch. | |
9695 | * selftest-arch.h: Update declaration. | |
9696 | * aarch64-tdep.c: Update. | |
9697 | * arm-tdep.c: Likewise. | |
9698 | * disasm-selftests.c: Likewise. | |
9699 | * dwarf2loc.c: Likewise. | |
9700 | * dwarf2-frame.c: Likewise. | |
9701 | * findvar.c: Likewise. | |
9702 | * gdbarch-selftests.c: Likewise. | |
9703 | * maint.c (maintenance_selftest): Likewise. | |
9704 | * regcache.c: Likewise. | |
9705 | * rust-exp.y: Likewise. | |
9706 | * selftest-arch.c: Likewise. | |
9707 | * unittests/environ-selftests.c: Likewise. | |
9708 | * unittests/function-view-selftests.c: Likewise. | |
9709 | * unittests/offset-type-selftests.c: Likewise. | |
9710 | * unittests/optional-selftests.c: Likewise. | |
9711 | * unittests/scoped_restore-selftests.c: Likewise. | |
9712 | * utils-selftests.c: Likewise. | |
9713 | ||
b0cba12e PA |
9714 | 2017-08-17 Pedro Alves <palves@redhat.com> |
9715 | ||
9716 | * cli/cli-cmds.c (source_command): Delete 'old_source_verbose' | |
9717 | local. | |
9718 | ||
4c8aa72d PA |
9719 | 2017-08-17 Pedro Alves <palves@redhat.com> |
9720 | ||
9721 | * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New | |
9722 | field. | |
9723 | (reset_die_in_process): Delete, replaced by ... | |
9724 | (process_die_scope): ... this new class. Make it responsible for | |
9725 | freeing cu->line_header too. | |
9726 | (process_die): Use process_die_scope. | |
9727 | (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in | |
9728 | cu->line_header_die_owner. Don't release the line header if it's | |
9729 | owned by the CU. | |
9730 | (setup_type_unit_groups): Make the CU/DIE own the line header. | |
9731 | Don't release the line header here. | |
9732 | ||
ba713918 AL |
9733 | 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change) |
9734 | ||
9735 | * elfread.c (elf_read_minimal_symbols): xfree synthsyms. | |
9736 | ||
44d0fb3a RK |
9737 | 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com> |
9738 | ||
9739 | * NEWS: Mention new shortcuts for nexti and stepi in TUI | |
9740 | Single-Key mode | |
9741 | ||
a5afdb16 RK |
9742 | 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com> |
9743 | ||
9744 | * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key | |
9745 | mode command list. | |
9746 | ||
47613aeb SH |
9747 | 2017-08-15 Stafford Horne <shorne@gmail.com> |
9748 | ||
9749 | * MAINTAINERS (Write After Approval): Add Stafford Horne. | |
9750 | ||
9c3cc999 SH |
9751 | 2017-08-15 Stafford Horne <shorne@gmail.com> |
9752 | ||
9753 | * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname. | |
9754 | ||
206726fb SDJ |
9755 | 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com> |
9756 | ||
9757 | PR gdb/21954 | |
9758 | * infcmd.c (unset_environment_command): Use the 'clear' method on | |
9759 | the environment instead of resetting it. | |
9760 | ||
0335ac6d JB |
9761 | 2017-08-15 John Baldwin <jhb@FreeBSD.org> |
9762 | ||
9763 | * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian | |
9764 | platforms. | |
9765 | ||
d3abe1c8 TT |
9766 | 2017-08-14 Tom Tromey <tom@tromey.com> |
9767 | ||
9768 | * valprint.c (print_octal_chars): Use HOST_CHAR_BIT. | |
9769 | (print_binary_chars): Likewise. | |
9770 | (BITS_IN_BYTES): Remove. | |
9771 | ||
d6382fff TT |
9772 | 2017-08-14 Tom Tromey <tom@tromey.com> |
9773 | ||
9774 | PR gdb/21675 | |
9775 | * valprint.c (LOW_ZERO): Change value to 034. | |
9776 | (print_octal_chars): Add static_asserts for octal constants. | |
9777 | * printcmd.c (print_scalar_formatted): Add 'd' case. | |
9778 | ||
f978cb06 TT |
9779 | 2017-08-11 Tom Tromey <tom@tromey.com> |
9780 | ||
9781 | * symfile.c (add_symbol_file_command): Use std::vector. | |
9782 | ||
2f5404b3 TT |
9783 | 2017-08-14 Tom Tromey <tom@tromey.com> |
9784 | ||
9785 | * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move. | |
9786 | * break-catch-syscall.c (create_syscall_event_catchpoint): Use | |
9787 | std::move. | |
9788 | * break-catch-sig.c (create_signal_catchpoint): Use std::move. | |
9789 | ||
de7985c3 PA |
9790 | 2017-08-11 Pedro Alves <palves@redhat.com> |
9791 | ||
9792 | * infrun.c (process_event_stop_test): Adjust | |
9793 | function_name_is_marked_for_skip call. | |
9794 | * skip.c: Include <list>. | |
9795 | (skiplist_entry): Make it a class with private fields, and | |
9796 | getters/setters. | |
9797 | (skiplist_entry_chain): Delete. | |
9798 | (skiplist_entries): New. | |
9799 | (skiplist_entry_count): Delete. | |
9800 | (highest_skiplist_entry_num): New. | |
9801 | (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete. | |
9802 | (add_skiplist_entry): Delete. | |
9803 | (skiplist_entry::skiplist_entry): New. | |
9804 | (skiplist_entry::add_entry): New. | |
9805 | (skip_file_command, skip_function): Adjust. | |
9806 | (compile_skip_regexp): Delete. | |
9807 | (skip_command): Don't compile regexp here. Adjust to use | |
9808 | skiplist_entry::add_entry. | |
9809 | (skip_info): Adjust to use range-for and getters. | |
9810 | (skip_enable_command, skip_disable_command): Adjust to use | |
9811 | range-for and setters. | |
9812 | (skip_delete_command): Adjust to use std::list. | |
9813 | (add_skiplist_entry): Delete. | |
9814 | (skip_file_p): Delete, refactored as ... | |
9815 | (skiplist_entry::do_skip_file_p): ... this new method. | |
9816 | (skip_gfile_p): Delete, refactored as ... | |
9817 | (skiplist_entry::do_gskip_file_p): ... this new method. | |
9818 | (skip_function_p, skip_rfunction_p): Delete, refactored as ... | |
9819 | (skiplist_entry::skip_function_p): ... this new method. | |
9820 | (function_name_is_marked_for_skip): Now returns bool, and takes | |
9821 | the function sal by const reference. Adjust to use range-for and | |
9822 | skiplist_entry methods. | |
9823 | (_initialize_step_skip): Remove references to | |
9824 | skiplist_entry_chain, skiplist_entry_count. | |
9825 | * skip.h (function_name_is_marked_for_skip): Now returns bool, and | |
9826 | takes the function sal by const reference. | |
9827 | ||
be7d3cd5 YQ |
9828 | 2017-08-11 Yao Qi <yao.qi@linaro.org> |
9829 | ||
9830 | * dwarf2-frame.c (clear_pointer_cleanup): Remove. | |
9831 | (dwarf2_frame_cache): Remove reset_cache_cleanup. | |
9832 | (dwarf2_frame_cache): | |
9833 | * frame-unwind.c (frame_unwind_try_unwinder): Catch | |
9834 | RETURN_MASK_ALL and set *this_case to NULL. | |
9835 | * frame-unwind.h: Update comments. | |
9836 | ||
1c90d9f0 YQ |
9837 | 2017-08-11 Yao Qi <yao.qi@linaro.org> |
9838 | ||
9839 | * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove. | |
9840 | (dwarf2_frame_state_copy_regs): Remove. | |
9841 | (dwarf2_frame_state_free_regs): Remove. | |
9842 | (dwarf2_frame_state::~dwarf2_frame_state): Remove. | |
9843 | (dwarf2_restore_rule): Call method .alloc_regs instead of | |
9844 | dwarf2_frame_state_alloc_regs. | |
9845 | (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info | |
9846 | constructor. Call std::move. | |
9847 | (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs. | |
9848 | (dwarf2_frame_cache): Likewise. | |
9849 | ||
9850 | [GDB_SELF_TEST]: Include selftest.h and | |
9851 | selftest-arch.h. | |
9852 | [GDB_SELF_TEST] (execute_cfa_program_test): New function. | |
9853 | (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register | |
9854 | execute_cfa_program_test. | |
9855 | ||
9856 | * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor, | |
9857 | copy ctor, assignment operator, move assignment. | |
9858 | <alloc_regs>: New method. | |
9859 | <swap>: New method. | |
9860 | (struct dwarf2_frame_state): Delete dtor. | |
9861 | (dwarf2_frame_state_alloc_regs): Remove declaration. | |
9862 | * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call | |
9863 | dwarf2_frame_state_alloc_regs, use .alloc_regs instead. | |
9864 | ||
afe37d6b YQ |
9865 | 2017-08-11 Yao Qi <yao.qi@linaro.org> |
9866 | ||
9867 | * dwarf2-frame.c (dwarf2_frame_state_free): Remove. | |
9868 | (dwarf2_frame_state::dwarf2_frame_state): New. | |
9869 | (dwarf2_frame_state::~dwarf2_frame_state): New. | |
9870 | (dwarf2_fetch_cfa_info): Update. | |
9871 | (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object | |
9872 | rather than a pointer. Update code. | |
9873 | * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and | |
9874 | dtor. | |
9875 | <data_align, code_align, retaddr_column>: Change them to const. | |
9876 | <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them | |
9877 | to bool. | |
9878 | ||
b348037f YQ |
9879 | 2017-08-11 Yao Qi <yao.qi@linaro.org> |
9880 | ||
9881 | * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove. | |
9882 | <loc.exp>: New field. | |
9883 | * dwarf2-frame.c (execute_cfa_program): Update. | |
9884 | (dwarf2_frame_prev_register): Update. | |
9885 | ||
e7c9de26 PA |
9886 | 2017-08-10 Pedro Alves <palves@redhat.com> |
9887 | ||
9888 | * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define. | |
9889 | ||
e8c6b620 JB |
9890 | 2017-08-09 John Baldwin <jhb@FreeBSD.org> |
9891 | ||
9892 | * fbsd-nat.c (struct fbsd_fork_info): Remove. | |
9893 | (fbsd_pending_children): Use std::list. | |
9894 | (fbsd_remember_child): Likewise. | |
9895 | (fbsd_is_child_pending): Likewise. | |
9896 | (fbsd_pending_vfork_done): Use std::forward_list. | |
9897 | (fbsd_add_vfork_done): Likewise. | |
9898 | (fbsd_is_vfork_done_pending): Likewise. | |
9899 | (fbsd_next_vfork_done): Likewise. | |
9900 | ||
e4a26669 JB |
9901 | 2017-08-09 John Baldwin <jhb@FreeBSD.org> |
9902 | ||
9903 | * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New. | |
9904 | (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr. | |
9905 | [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string | |
9906 | for `mapfilename'. | |
9907 | (fbsd_xfer_partial): Use gdb::byte_vector. | |
af3881e6 | 9908 | (fbsd_add_threads): Use gdb::unique_xmalloc_ptr. |
e4a26669 | 9909 | |
142311d3 JB |
9910 | 2017-08-09 John Baldwin <jhb@FreeBSD.org> |
9911 | ||
9912 | * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and | |
9913 | "filestuff.h". | |
9914 | (fbsd_find_memory_regions): Fix `mapfile' initialization. | |
9915 | ||
42fa2e0e TT |
9916 | 2017-08-09 Tom Tromey <tom@tromey.com> |
9917 | ||
9918 | * skip.c (skiplist_entry): New constructor. | |
9919 | (skiplist_entry::enabled, skiplist_entry::function_is_regexp) | |
9920 | (skiplist_entry::file_is_glob): Now bool. | |
9921 | (skiplist_entry::file, skiplist_entry::function): Now | |
9922 | std::string. | |
9923 | (make_skip_entry): Return a unique_ptr. Use new. | |
9924 | (free_skiplist_entry, free_skiplist_entry_cleanup) | |
9925 | (make_free_skiplist_entry_cleanup): Remove. | |
9926 | (skip_command, skip_disable_command, add_skiplist_entry) | |
9927 | (skip_form_bytes, compile_skip_regexp, skip_command, skip_info) | |
9928 | (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p) | |
9929 | (function_name_is_marked_for_skip): Update. | |
9930 | (skip_delete_command): Update. Use delete. | |
9931 | ||
cd3af38d JW |
9932 | 2017-08-09 Jiong Wang <jiong.wang@arm.com> |
9933 | ||
9934 | * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h". | |
9935 | (aarch64_linux_core_read_description): New function. | |
9936 | (aarch64_linux_init_abi): Register gdbarch_core_read_description. | |
9937 | ||
29592bde PA |
9938 | 2017-08-09 Pedro Alves <palves@redhat.com> |
9939 | ||
9940 | * cp-name-parser.y (cp_comp_to_string): Return a | |
9941 | gdb::unique_xmalloc_ptr<char>. | |
9942 | * cp-support.c (replace_typedefs_qualified_name) | |
9943 | (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>. | |
9944 | (cp_canonicalize_string_full): Use op= instead of explicit | |
9945 | convertion. | |
9946 | (cp_class_name_from_physname, method_name_from_physname) | |
9947 | (cp_func_name, cp_remove_params): Adjust to use | |
9948 | gdb::unique_xmalloc_ptr<char>. | |
9949 | * cp-support.h (cp_comp_to_string): Return a | |
9950 | gdb::unique_xmalloc_ptr<char>. | |
9951 | * python/py-type.c (typy_lookup_type): Adjust to use | |
9952 | gdb::unique_xmalloc_ptr<char>. | |
9953 | ||
b3340438 L |
9954 | 2017-08-09 H.J. Lu <hongjiu.lu@intel.com> |
9955 | ||
9956 | * dwarf2read.c (dwarf2_string_attr): Fix a typo. | |
9957 | ||
e88e8651 YQ |
9958 | 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com> |
9959 | Yao Qi <yao.qi@linaro.org> | |
9960 | ||
9961 | * cp-support.c (cp_canonicalize_string_full): Use | |
9962 | gdb::unique_xmalloc_ptr<char>. | |
9963 | (cp_canonicalize_string): Likewise. | |
9964 | ||
f5a29eb0 YQ |
9965 | 2017-08-09 Yao Qi <yao.qi@linaro.org> |
9966 | ||
9967 | * features/Makefile (WHICH): Remove i386/ non-linux stuff. | |
9968 | * regformats/i386/amd64-avx-avx512.dat: Remove. | |
9969 | * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove. | |
9970 | * regformats/i386/amd64-avx-mpx.dat:Remove. | |
9971 | * regformats/i386/amd64-avx.dat: Remove. | |
9972 | * regformats/i386/amd64-mpx.dat: Remove. | |
9973 | * regformats/i386/i386-avx-avx512.dat: Remove. | |
9974 | * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove. | |
9975 | * regformats/i386/i386-avx-mpx.dat: Remove. | |
9976 | * regformats/i386/i386-mmx.dat: Remove. | |
9977 | * regformats/i386/i386-mpx.dat: Remove. | |
9978 | ||
57757c2f YQ |
9979 | 2017-08-09 Yao Qi <yao.qi@linaro.org> |
9980 | ||
9981 | * amd64-tdep.h (tdesc_x32): Remove the declaration. | |
9982 | * amd64-tdep.c: Don't include features/i386/x32*.c. | |
9983 | (_initialize_amd64_tdep): Don't call initialize_tdesc_x32* | |
9984 | functions. | |
9985 | * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx, | |
9986 | and i386/x32-avx-avx512. | |
9987 | (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml, | |
9988 | and i386/x32.xml. | |
9989 | * features/i386/x32-avx-avx512.c: Removed. | |
9990 | * features/i386/x32-avx-avx512.xml: Removed. | |
9991 | * features/i386/x32-avx.c: Removed. | |
9992 | * features/i386/x32-avx.xml: Removed. | |
9993 | * features/i386/x32.c: Removed. | |
9994 | * features/i386/x32.xml: Removed. | |
9995 | * regformats/i386/x32-avx-avx512.dat: Removed. | |
9996 | * regformats/i386/x32-avx.dat: Removed. | |
9997 | * regformats/i386/x32.dat: Removed. | |
9998 | ||
ba7b109b MR |
9999 | 2017-08-07 Maciej W. Rozycki <macro@imgtec.com> |
10000 | ||
10001 | PR breakpoints/21886 | |
10002 | * mem-break.c (default_memory_insert_breakpoint): Use | |
10003 | `->placed_address' rather than `->reqstd_address' for the | |
10004 | breakpoint location. | |
10005 | ||
e347efc3 MR |
10006 | 2017-08-07 Maciej W. Rozycki <macro@imgtec.com> |
10007 | ||
10008 | * arch-utils.c (default_print_insn): Remove arch/mach/endian | |
10009 | assertions. | |
10010 | ||
0dba2a6c MR |
10011 | 2017-08-07 Maciej W. Rozycki <macro@imgtec.com> |
10012 | ||
10013 | * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with | |
10014 | a union of `tdep_info', `tdesc_data' and `id'. | |
10015 | * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data' | |
10016 | rather than `info.tdep_info'. | |
10017 | * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise. | |
10018 | * i386-linux-tdep.c (i386_linux_init_abi): Likewise. | |
10019 | * i386-tdep.c (i386_gdbarch_init): Likewise. | |
10020 | * mips-linux-tdep.c (mips_linux_init_abi): Likewise. | |
10021 | * mips-tdep.c (mips_gdbarch_init): Likewise. | |
10022 | * nds32-tdep.c (nds32_gdbarch_init): Likewise. | |
10023 | * rs6000-tdep.c (rs6000_gdbarch_init): Likewise. | |
10024 | * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than | |
10025 | `info.tdep_info'. | |
10026 | (ppc_linux_init_abi): Use `info.tdesc_data' rather than | |
10027 | `info.tdep_info'. | |
10028 | * sparc-tdep.c (sparc32_gdbarch_init): Likewise. | |
10029 | * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than | |
10030 | `info.tdep_info'. | |
10031 | * spu-tdep.c (spu_gdbarch_init): Likewise. | |
10032 | * gdbarch.h: Regenerate. | |
10033 | ||
16eb6b2d LS |
10034 | 2017-08-07 Leszek Swirski <leszeks@google.com> |
10035 | ||
7b005726 | 10036 | PR symtab/20899 |
16eb6b2d LS |
10037 | * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt. |
10038 | ||
74cbb09e SM |
10039 | 2017-08-07 Simon Marchi <simon.marchi@ericsson.com> |
10040 | ||
10041 | * remote-sim.c (gdbsim_load): Remove char **argv local variable. | |
10042 | (gdbsim_open): Rename gdb_argv args object to argv. | |
10043 | ||
ee0c3293 TT |
10044 | 2017-08-05 Tom Tromey <tom@tromey.com> |
10045 | ||
10046 | * compile/compile-object-load.c (compile_object_load): Use | |
10047 | gdb::unique_xmalloc_ptr. | |
10048 | * cli/cli-dump.c (scan_filename): Rename from | |
10049 | scan_filename_with_cleanup. Change return type. | |
10050 | (scan_expression): Rename from scan_expression_with_cleanup. | |
10051 | Change return type. | |
10052 | (dump_memory_to_file, dump_value_to_file, restore_command): | |
10053 | Use gdb::unique_xmalloc_ptr. Update. | |
10054 | * cli/cli-cmds.c (find_and_open_script): Use | |
10055 | gdb::unique_xmalloc_ptr. | |
10056 | * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr. | |
10057 | * symmisc.c (maintenance_print_symbols) | |
10058 | (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr. | |
10059 | * symfile.c (symfile_bfd_open, generic_load) | |
10060 | (add_symbol_file_command, remove_symbol_file_command): Use | |
10061 | gdb::unique_xmalloc_ptr. | |
10062 | * source.c (openp): Use gdb::unique_xmalloc_ptr. | |
10063 | * psymtab.c (maintenance_print_psymbols): Use | |
10064 | gdb::unique_xmalloc_ptr. | |
10065 | * corelow.c (core_open): Use gdb::unique_xmalloc_ptr. | |
10066 | * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr. | |
10067 | * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr. | |
10068 | (reload_shared_libraries_1): Likewise. | |
10069 | ||
3232fabd TT |
10070 | 2017-08-05 Tom Tromey <tom@tromey.com> |
10071 | ||
10072 | * rust-exp.y (rust_op_ptr, set_field): Remove typedefs. | |
10073 | (rust_op_vector, rust_set_vector): New typedefs. | |
10074 | (current_parser): New global. | |
10075 | (work_obstack): Change to pointer type. Update all users. | |
10076 | (rust_ast, pstate): Remove globals. | |
10077 | (struct rust_parser): New. | |
10078 | (%union) <params, field_inits>: Change type. | |
10079 | (start, tuple_expr, unit_expr, struct_expr_list, literal) | |
10080 | (field_expr, expr_list, maybe_expr_list, type_list): Update. | |
10081 | (ast_call_ish, ast_path, ast_function_type, ast_tuple_type) | |
10082 | (convert_params_to_types, convert_params_to_expression): Change | |
10083 | type of "params". | |
10084 | (ast_string): Change type of "fields". | |
10085 | (rust_parse): Make a rust_parser. Remove cleanups. | |
10086 | (rust_lex_tests): Make and install an auto_obstack. | |
10087 | ||
f02fd774 YQ |
10088 | 2017-08-04 Yao Qi <yao.qi@linaro.org> |
10089 | ||
10090 | * configure.srv (ipa_x32_linux_regobj): New. | |
10091 | * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512 | |
10092 | instead of X86_TDESC_AVX512. | |
10093 | (initialize_low_tracepoint): Call | |
10094 | init_registers_x32_avx_avx512_linux. | |
10095 | ||
91975afd YQ |
10096 | 2017-08-04 Yao Qi <yao.qi@linaro.org> |
10097 | ||
10098 | * utils.h (gdb_argv): Add namespace std for nullptr_t. | |
10099 | ||
2331fa3a RK |
10100 | 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com> |
10101 | ||
10102 | * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev. | |
10103 | ||
744e4fe1 TT |
10104 | 2017-08-03 Tom Tromey <tom@tromey.com> |
10105 | ||
10106 | * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv): | |
10107 | Remove. | |
10108 | * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove. | |
10109 | ||
1c034b67 TT |
10110 | 2017-08-03 Tom Tromey <tom@tromey.com> |
10111 | ||
10112 | * python/py-param.c (compute_enum_values): Use gdb_argv. | |
10113 | ||
773a1edc TT |
10114 | 2017-08-03 Tom Tromey <tom@tromey.com> |
10115 | ||
10116 | * utils.h (struct gdb_argv_deleter): New. | |
10117 | (gdb_argv): New class. | |
10118 | * utils.c (gdb_argv::reset): New method. | |
10119 | * tracepoint.c (delete_trace_variable_command): Use gdb_argv. | |
10120 | * tracefile.c (tsave_command): Use gdb_argv. | |
10121 | * top.c (new_ui_command): Use gdb_argv. | |
10122 | * symmisc.c (maintenance_print_symbols) | |
10123 | (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv. | |
10124 | * symfile.c (symbol_file_command, generic_load) | |
10125 | (remove_symbol_file_command): Use gdb_argv. | |
10126 | * stack.c (backtrace_command): Use gdb_argv. | |
10127 | * source.c (add_path, show_substitute_path_command) | |
10128 | (unset_substitute_path_command, set_substitute_path_command): | |
10129 | Use gdb_argv. | |
10130 | * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv. | |
10131 | * ser-mingw.c (pipe_windows_open): Use gdb_argv. | |
10132 | * remote.c (extended_remote_run, remote_put_command) | |
10133 | (remote_get_command, remote_delete_command): Use gdb_argv. | |
10134 | * remote-sim.c (gdbsim_load, gdbsim_create_inferior) | |
10135 | (gdbsim_open): Use gdb_argv. | |
10136 | * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv. | |
10137 | * psymtab.c (maintenance_print_psymbols): Use gdb_argv. | |
10138 | * procfs.c (procfs_info_proc): Use gdb_argv. | |
10139 | * interps.c (interpreter_exec_cmd): Use gdb_argv. | |
10140 | * infrun.c (handle_command): Use gdb_argv. | |
10141 | * inferior.c (add_inferior_command, clone_inferior_command): | |
10142 | Use gdb_argv. | |
10143 | * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv. | |
10144 | * exec.c (exec_file_command): Use gdb_argv. | |
10145 | * cli/cli-cmds.c (alias_command): Use gdb_argv. | |
10146 | * compile/compile.c (build_argc_argv): Use gdb_argv. | |
10147 | ||
0d50bde3 TT |
10148 | 2017-08-03 Tom Tromey <tom@tromey.com> |
10149 | ||
10150 | * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr. | |
10151 | ||
7f968c89 TT |
10152 | 2017-08-03 Tom Tromey <tom@tromey.com> |
10153 | ||
10154 | * python/python.c (compute_python_string): Return std::string. | |
10155 | (gdbpy_eval_from_control_command): Update. | |
10156 | (do_start_initialization): Use std::string. | |
10157 | * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not | |
10158 | xstrprintf. | |
10159 | * python/py-breakpoint.c (local_setattro): Use string_printf, not | |
10160 | xstrprintf. | |
10161 | ||
3c9ebddd TT |
10162 | 2017-08-03 Tom Tromey <tom@tromey.com> |
10163 | ||
10164 | * top.h (do_restore_instream_cleanup): Remove. | |
10165 | * top.c (do_restore_instream_cleanup): Remove. | |
10166 | (read_command_file): Use scoped_restore. | |
10167 | * cli/cli-script.c (execute_user_command): Use scoped_restore. | |
10168 | ||
b51b225e TT |
10169 | 2017-08-03 Tom Tromey <tom@tromey.com> |
10170 | ||
10171 | * cli/cli-script.c (execute_user_command) | |
10172 | (execute_control_command): Use scoped_restore. | |
10173 | ||
ac991630 TT |
10174 | 2017-08-03 Tom Tromey <tom@tromey.com> |
10175 | ||
10176 | * cli/cli-script.c (do_restore_user_call_depth): Remove. | |
10177 | (execute_user_command): Remove user_call_depth; use | |
10178 | user_args_stack's size instead. | |
10179 | ||
898e0c8e TT |
10180 | 2017-08-03 Tom Tromey <tom@tromey.com> |
10181 | ||
10182 | * top.h (in_user_command): Remove. | |
10183 | * top.c (in_user_command): Remove. | |
10184 | * cli/cli-script.c (do_restore_user_call_depth) | |
10185 | (execute_user_command): Update. | |
10186 | ||
26fcd5d7 TT |
10187 | 2017-08-03 Tom Tromey <tom@tromey.com> |
10188 | ||
10189 | * valops.c (search_struct_method): Use gdb::byte_vector. | |
10190 | * valarith.c (value_concat): Use std::vector. | |
10191 | * target.c (memory_xfer_partial): Use gdb::byte_vector. | |
10192 | (simple_search_memory): Likewise. | |
10193 | * printcmd.c (find_string_backward): Use gdb::byte_vector. | |
10194 | * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector. | |
10195 | * gcore.c (gcore_copy_callback): Use gdb::byte_vector. | |
10196 | * elfread.c (elf_rel_plt_read): Use std::string. | |
10197 | * cp-valprint.c (cp_print_value): Use gdb::byte_vector. | |
10198 | * cli/cli-dump.c (restore_section_callback): Use | |
10199 | gdb::byte_vector. | |
10200 | ||
7c218e6c TT |
10201 | 2017-08-03 Tom Tromey <tom@tromey.com> |
10202 | ||
10203 | * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr. | |
10204 | ||
31b68d4a TT |
10205 | 2017-08-03 Tom Tromey <tom@tromey.com> |
10206 | ||
10207 | * tui/tui-regs.c (tui_restore_gdbout): Remove. | |
10208 | (tui_register_format): Use scoped_restore. | |
10209 | ||
2ec845e7 TT |
10210 | 2017-08-03 Tom Tromey <tom@tromey.com> |
10211 | ||
10212 | * reverse.c (exec_direction_default): Remove. | |
10213 | (exec_reverse_once): Use scoped_restore. | |
10214 | * remote.c (restore_remote_timeout): Remove. | |
10215 | (remote_flash_erase, remote_flash_write, remote_flash_done) | |
10216 | (readchar, remote_serial_write): Use scoped_restore. | |
10217 | * cli/cli-script.c (struct source_cleanup_lines_args) | |
10218 | (source_cleanup_lines): Remove. | |
10219 | (script_from_file): Use scoped_restore. | |
10220 | * cli/cli-cmds.c (source_verbose_cleanup): Remove. | |
10221 | (source_command): Use scoped_restore. | |
10222 | ||
b3bc8453 TT |
10223 | 2017-08-03 Tom Tromey <tom@tromey.com> |
10224 | ||
10225 | * utils.h (make_cleanup_free_so): Remove. | |
10226 | * utils.c (do_free_so, make_cleanup_free_so): Remove. | |
10227 | * solist.h (struct so_deleter): New. | |
10228 | (so_list_up): New typedef. | |
10229 | * solib-svr4.c (svr4_read_so_list): Use so_list_up. | |
10230 | ||
e3ad2841 TT |
10231 | 2017-08-03 Tom Tromey <tom@tromey.com> |
10232 | ||
10233 | * utils.h (make_cleanup_restore_current_language): Remove. | |
10234 | * utils.c (do_restore_current_language) | |
10235 | (make_cleanup_restore_current_language): Remove. | |
10236 | * parse.c (parse_exp_in_context_1) | |
10237 | (parse_expression_with_language): Use | |
10238 | scoped_restore_current_language. | |
10239 | * mi/mi-main.c (mi_cmd_execute): Use | |
10240 | scoped_restore_current_language. | |
10241 | * language.h (scoped_restore_current_language): New class. | |
10242 | ||
b80cf838 TT |
10243 | 2017-08-03 Tom Tromey <tom@tromey.com> |
10244 | ||
10245 | * compile/compile.c (cleanup_unlink_file): Remove. | |
10246 | (compile_to_object): Use gdb::unlinker. | |
10247 | (eval_compile_command): Likewise. | |
10248 | ||
fad0444a TT |
10249 | 2017-08-03 Tom Tromey <tom@tromey.com> |
10250 | ||
10251 | * utils.h (make_cleanup_fclose): Remove. | |
10252 | * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove. | |
10253 | ||
6e7bc05c TT |
10254 | 2017-08-03 Tom Tromey <tom@tromey.com> |
10255 | ||
10256 | * top.c (open_terminal_stream): Return gdb_file_up. | |
10257 | (new_ui_command): Update. | |
10258 | ||
4a45905b TT |
10259 | 2017-08-03 Tom Tromey <tom@tromey.com> |
10260 | ||
10261 | * source.c (print_source_lines_base, forward_search_command) | |
10262 | (reverse_search_command): Use gdb_file_up. | |
10263 | ||
7cd06d6e TT |
10264 | 2017-08-03 Tom Tromey <tom@tromey.com> |
10265 | ||
10266 | * fbsd-nat.c (fbsd_find_memory_regions): Update. | |
10267 | ||
ed166945 TT |
10268 | 2017-08-03 Tom Tromey <tom@tromey.com> |
10269 | ||
10270 | * cli/cli-cmds.c (find_and_open_script): Change return type. | |
10271 | Remove "streamp" and "full_path" parameters. | |
10272 | (source_script_with_search): Update. | |
10273 | * auto-load.c (source_script_file): Update. | |
10274 | * cli/cli-cmds.h (find_and_open_script): Change type. | |
10275 | (open_script): New struct. | |
10276 | ||
d419f42d TT |
10277 | 2017-08-03 Tom Tromey <tom@tromey.com> |
10278 | ||
10279 | * xml-support.c (xml_fetch_content_from_file): Update. | |
10280 | * ui-file.c (stdio_file::open): Update. | |
10281 | * tracefile-tfile.c (tfile_start): Update. | |
10282 | * remote.c (remote_file_put, remote_file_get): Update. | |
10283 | * nat/linux-procfs.c (linux_proc_get_int) | |
10284 | (linux_proc_pid_get_state, linux_proc_tid_get_name): Update. | |
10285 | * nat/linux-osdata.c (linux_common_core_of_thread): Update. | |
10286 | (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus) | |
10287 | (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem) | |
10288 | (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update. | |
10289 | * nat/linux-btrace.c (linux_determine_kernel_start): Update. | |
10290 | * linux-nat.c (linux_proc_pending_signals): Update. | |
10291 | * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up. | |
10292 | (file_closer): Remove. | |
10293 | * compile/compile.c (compile_to_object): Update. | |
10294 | * common/filestuff.h (struct gdb_file_deleter): New. | |
10295 | (gdb_file_up): New typedef. | |
10296 | (gdb_fopen_cloexec): Change return type. | |
10297 | * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up. | |
10298 | * cli/cli-dump.c (fopen_with_cleanup): Remove. | |
10299 | (dump_binary_file, restore_binary_file): Update. | |
10300 | * auto-load.c (auto_load_objfile_script_1): Update. | |
10301 | ||
4a2b031d TT |
10302 | 2017-08-03 Tom Tromey <tom@tromey.com> |
10303 | ||
10304 | * tracepoint.c (tvariables_info_1): Use ui_out_emit_table. | |
10305 | (info_static_tracepoint_markers_command): Likewise. | |
10306 | * solib.c (info_sharedlibrary_command): Use ui_out_emit_table. | |
10307 | * skip.c (skip_info): Use ui_out_emit_table. | |
10308 | * progspace.c (print_program_space): Use ui_out_emit_table. | |
10309 | * osdata.c (info_osdata): Use ui_out_emit_table. | |
10310 | * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use | |
10311 | ui_out_emit_table. | |
10312 | * linux-thread-db.c (info_auto_load_libthread_db): Use | |
10313 | ui_out_emit_table. | |
10314 | * inferior.c (print_inferior): Use ui_out_emit_table. | |
10315 | * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table. | |
10316 | * breakpoint.c (breakpoint_1): Use ui_out_emit_table. | |
10317 | * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table. | |
10318 | * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table. | |
10319 | * ui-out.h (class ui_out_emit_table): New. | |
10320 | ||
a4f320fd MR |
10321 | 2017-08-02 Maciej W. Rozycki <macro@imgtec.com> |
10322 | ||
10323 | * mips-tdep.c (mips_fpu_type_str): New function. | |
10324 | (mips_dump_tdep): Call it. | |
10325 | ||
a2f1f308 MR |
10326 | 2017-08-01 Maciej W. Rozycki <macro@imgtec.com> |
10327 | ||
10328 | * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access | |
10329 | `->mips_fpu_type'. | |
10330 | ||
7e5ed83b XR |
10331 | 2017-07-31 Xavier Roirand <roirand@adacore.com> |
10332 | ||
10333 | * solib-darwin.c (DYLD_VERSION_MAX): Increase value. | |
10334 | ||
4c9dc811 XR |
10335 | 2017-07-27 Xavier Roirand <roirand@adacore.com> |
10336 | ||
10337 | * MAINTAINERS (Write After Approval): Add Xavier Roirand. | |
10338 | ||
27d41eac YQ |
10339 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
10340 | ||
10341 | * cli/cli-cmds.c (maintenancechecklist): New variable. | |
10342 | * gdbcmd.h (maintenancechecklist): Declare it. | |
10343 | * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]: | |
10344 | Call i386_linux_read_description with different masks. | |
10345 | * maint.c (maintenance_check_command): New function. | |
10346 | (_initialize_maint_cmds): Call add_prefix_cmd. | |
10347 | * target-descriptions.c (tdesc_reg): override operator != and ==. | |
10348 | (tdesc_type): Likewise. | |
10349 | (tdesc_feature): Likewise. | |
10350 | (target_desc): Likewise. | |
10351 | [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function. | |
10352 | (maintenance_check_xml_descriptions): New function. | |
10353 | (_initialize_target_descriptions) Add command "xml-descriptions". | |
10354 | * target-descriptions.h (selftests::record_xml_tdesc): Declare. | |
10355 | ||
ea03d0d3 YQ |
10356 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
10357 | ||
10358 | * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c. | |
10359 | Include features/i386/32bit-*.c. | |
10360 | (i386_linux_read_description): Generate target description if it | |
10361 | doesn't exist. | |
10362 | (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386 | |
10363 | functions. | |
10364 | * features/i386/32bit-linux.c: Re-generated. | |
10365 | * features/i386/32bit-sse.c: Likewise. | |
10366 | * target-descriptions.c (print_c_feature::visit): Print code to | |
10367 | set register number if needed. | |
10368 | (print_c_feature) <m_next_regnum>: New field. | |
10369 | ||
25aa13e5 YQ |
10370 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
10371 | ||
10372 | * features/Makefile (CFILES): Rename with TDESC_CFILES. | |
10373 | (FEATURE_XMLFILES): New. | |
10374 | (FEATURE_CFILES): New. | |
10375 | New rules. | |
10376 | (clean-cfiles): Remove generated c files. | |
10377 | * features/i386/32bit-avx.c: Generated. | |
10378 | * features/i386/32bit-avx512.c: Generated. | |
10379 | * features/i386/32bit-core.c: Generated. | |
10380 | * features/i386/32bit-linux.c: Generated. | |
10381 | * features/i386/32bit-mpx.c: Generated. | |
10382 | * features/i386/32bit-pkeys.c: Generated. | |
10383 | * features/i386/32bit-sse.c: Generated. | |
10384 | * target-descriptions.c: Include algorithm. | |
10385 | (tdesc_element_visitor): Add method visit_end. | |
10386 | (print_c_tdesc): Implement visit_end. | |
10387 | (print_c_tdesc:: m_filename_after_features): Move it to | |
10388 | protected. | |
10389 | (print_c_feature): New class. | |
10390 | (maint_print_c_tdesc_cmd): Use print_c_feature if XML file | |
10391 | name starts with "i386/32bit-". | |
10392 | ||
6eb1e6a8 YQ |
10393 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
10394 | ||
10395 | * target-descriptions.c (tdesc_element_visitor): New class. | |
10396 | (tdesc_element): New class. | |
10397 | (tdesc_reg): Inherit from tdesc_element. | |
10398 | (tdesc_reg::accept): New function. | |
10399 | (tdesc_type): Inherit from tdesc_element. | |
10400 | (tdesc_type::accept): New function. | |
10401 | (tdesc_feature): Inherit from tdesc_element. | |
10402 | (tdesc_feature::accept): New function. | |
10403 | (target_desc): Inherit from tdesc_element. | |
10404 | (target_desc::target_desc): New. | |
10405 | (target_desc::~target_desc): New. | |
10406 | (target_desc::accept): New. | |
10407 | (allocate_target_description): Use new. | |
10408 | (free_target_description): Use delete. | |
10409 | (print_c_tdesc): New class. | |
10410 | (maint_print_c_tdesc_cmd): Adjust. | |
10411 | ||
10412 | * features/aarch64.c: Re-generated. | |
10413 | * features/arc-arcompact.c: Re-generated. | |
10414 | * features/arc-v2.c: Re-generated. | |
10415 | * features/arm/arm-with-iwmmxt.c: Re-generated. | |
10416 | * features/arm/arm-with-m.c: Re-generated. | |
10417 | * features/arm/arm-with-m-fpa-layout.c: Re-generated. | |
10418 | * features/arm/arm-with-m-vfp-d16.c: Re-generated. | |
10419 | * features/arm/arm-with-neon.c: Re-generated. | |
10420 | * features/arm/arm-with-vfpv2.c: Re-generated. | |
10421 | * features/arm/arm-with-vfpv3.c: Re-generated. | |
10422 | * features/i386/amd64-avx-avx512.c: Re-generated. | |
10423 | * features/i386/amd64-avx-avx512-linux.c: Re-generated. | |
10424 | * features/i386/amd64-avx.c: Re-generated. | |
10425 | * features/i386/amd64-avx-linux.c: Re-generated. | |
10426 | * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated. | |
10427 | * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated. | |
10428 | * features/i386/amd64-avx-mpx.c: Re-generated. | |
10429 | * features/i386/amd64-avx-mpx-linux.c: Re-generated. | |
10430 | * features/i386/amd64.c: Re-generated. | |
10431 | * features/i386/amd64-linux.c: Re-generated. | |
10432 | * features/i386/amd64-mpx.c: Re-generated. | |
10433 | * features/i386/amd64-mpx-linux.c: Re-generated. | |
10434 | * features/i386/i386-avx-avx512.c: Re-generated. | |
10435 | * features/i386/i386-avx-avx512-linux.c: Re-generated. | |
10436 | * features/i386/i386-avx.c: Re-generated. | |
10437 | * features/i386/i386-avx-linux.c: Re-generated. | |
10438 | * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated. | |
10439 | * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated. | |
10440 | * features/i386/i386-avx-mpx.c: Re-generated. | |
10441 | * features/i386/i386-avx-mpx-linux.c: Re-generated. | |
10442 | * features/i386/i386.c: Re-generated. | |
10443 | * features/i386/i386-linux.c: Re-generated. | |
10444 | * features/i386/i386-mmx.c: Re-generated. | |
10445 | * features/i386/i386-mmx-linux.c: Re-generated. | |
10446 | * features/i386/i386-mpx.c: Re-generated. | |
10447 | * features/i386/i386-mpx-linux.c: Re-generated. | |
10448 | * features/i386/x32-avx-avx512.c: Re-generated. | |
10449 | * features/i386/x32-avx-avx512-linux.c: Re-generated. | |
10450 | * features/i386/x32-avx.c: Re-generated. | |
10451 | * features/i386/x32-avx-linux.c: Re-generated. | |
10452 | * features/i386/x32.c: Re-generated. | |
10453 | * features/i386/x32-linux.c: Re-generated. | |
10454 | * features/microblaze.c: Re-generated. | |
10455 | * features/microblaze-with-stack-protect.c: Re-generated. | |
10456 | * features/mips64-dsp-linux.c: Re-generated. | |
10457 | * features/mips64-linux.c: Re-generated. | |
10458 | * features/mips-dsp-linux.c: Re-generated. | |
10459 | * features/mips-linux.c: Re-generated. | |
10460 | * features/nds32.c: Re-generated. | |
10461 | * features/nios2.c: Re-generated. | |
10462 | * features/nios2-linux.c: Re-generated. | |
10463 | * features/rs6000/powerpc-32.c: Re-generated. | |
10464 | * features/rs6000/powerpc-32l.c: Re-generated. | |
10465 | * features/rs6000/powerpc-403.c: Re-generated. | |
10466 | * features/rs6000/powerpc-403gc.c : Re-generated. | |
10467 | * features/rs6000/powerpc-405.c: Re-generated. | |
10468 | * features/rs6000/powerpc-505.c: Re-generated. | |
10469 | * features/rs6000/powerpc-601.c: Re-generated. | |
10470 | * features/rs6000/powerpc-602.c: Re-generated. | |
10471 | * features/rs6000/powerpc-603.c: Re-generated. | |
10472 | * features/rs6000/powerpc-604.c: Re-generated. | |
10473 | * features/rs6000/powerpc-64.c: Re-generated. | |
10474 | * features/rs6000/powerpc-64l.c: Re-generated. | |
10475 | * features/rs6000/powerpc-7400.c: Re-generated. | |
10476 | * features/rs6000/powerpc-750.c: Re-generated. | |
10477 | * features/rs6000/powerpc-860.c: Re-generated. | |
10478 | * features/rs6000/powerpc-altivec32.c: Re-generated. | |
10479 | * features/rs6000/powerpc-altivec32l.c: Re-generated. | |
10480 | * features/rs6000/powerpc-altivec64.c: Re-generated. | |
10481 | * features/rs6000/powerpc-altivec64l.c: Re-generated. | |
10482 | * features/rs6000/powerpc-cell32l.c: Re-generated. | |
10483 | * features/rs6000/powerpc-cell64l.c: Re-generated. | |
10484 | * features/rs6000/powerpc-e500.c: Re-generated. | |
10485 | * features/rs6000/powerpc-e500l.c: Re-generated. | |
10486 | * features/rs6000/powerpc-isa205-32l.c: Re-generated. | |
10487 | * features/rs6000/powerpc-isa205-64l.c: Re-generated. | |
10488 | * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated. | |
10489 | * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated. | |
10490 | * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated. | |
10491 | * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated. | |
10492 | * features/rs6000/powerpc-vsx32.c: Re-generated. | |
10493 | * features/rs6000/powerpc-vsx32l.c: Re-generated. | |
10494 | * features/rs6000/powerpc-vsx64.c: Re-generated. | |
10495 | * features/rs6000/powerpc-vsx64l.c: Re-generated. | |
10496 | * features/rs6000/rs6000.c: Re-generated. | |
10497 | * features/s390-linux32.c: Re-generated. | |
10498 | * features/s390-linux32v1.c: Re-generated. | |
10499 | * features/s390-linux32v2.c: Re-generated. | |
10500 | * features/s390-linux64.c: Re-generated. | |
10501 | * features/s390-linux64v1.c: Re-generated. | |
10502 | * features/s390-linux64v2.c: Re-generated. | |
10503 | * features/s390-te-linux64.c: Re-generated. | |
10504 | * features/s390-tevx-linux64.c: Re-generated. | |
10505 | * features/s390-vx-linux64.c: Re-generated. | |
10506 | * features/s390x-linux64.c: Re-generated. | |
10507 | * features/s390x-linux64v1.c: Re-generated. | |
10508 | * features/s390x-linux64v2.c: Re-generated. | |
10509 | * features/s390x-te-linux64.c: Re-generated. | |
10510 | * features/s390x-tevx-linux64.c: Re-generated. | |
10511 | * features/s390x-vx-linux64.c: Re-generated. | |
10512 | * features/sparc/sparc32-solaris.c: Re-generated. | |
10513 | * features/sparc/sparc64-solaris.c: Re-generated. | |
10514 | * features/tic6x-c62x.c: Re-generated. | |
10515 | * features/tic6x-c62x-linux.c: Re-generated. | |
10516 | * features/tic6x-c64x.c: Re-generated. | |
10517 | * features/tic6x-c64x-linux.c: Re-generated. | |
10518 | * features/tic6x-c64xp.c: Re-generated. | |
10519 | * features/tic6x-c64xp-linux.c: Re-generated. | |
10520 | ||
35b4818d YQ |
10521 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
10522 | ||
10523 | * i386-linux-tdep.c (i386_linux_read_description): New function. | |
10524 | (i386_linux_core_read_description): Call | |
10525 | i386_linux_read_description. | |
10526 | * i386-linux-tdep.h (i386_linux_read_description): Declare. | |
10527 | (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations. | |
10528 | (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise | |
10529 | (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise. | |
10530 | (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise. | |
10531 | * x86-linux-nat.c (x86_linux_read_description): Call | |
10532 | i386_linux_read_description. | |
10533 | ||
8e2141c6 YQ |
10534 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
10535 | ||
10536 | * NEWS: Mention it. | |
10537 | * features/Makefile (%.c: %.xml): Pass the xml file name to | |
10538 | command "maint print c-tdesc". | |
10539 | * target-descriptions.c (maint_print_c_tdesc_cmd): Get file | |
10540 | name from 'arg'. | |
10541 | ||
b468ff4c YQ |
10542 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
10543 | ||
10544 | * target-descriptions.c (target_desc): Add ctor and dtor. Do | |
10545 | in-class initialization. | |
10546 | (tdesc_create_feature): Call new instead of XCNEW. | |
10547 | (free_target_description): Ue delete. | |
10548 | ||
b9c0e1b4 JB |
10549 | 2017-07-25 John Baldwin <jhb@FreeBSD.org> |
10550 | ||
10551 | * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo. | |
10552 | ||
a04b5337 YQ |
10553 | 2017-07-25 Yao Qi <yao.qi@linaro.org> |
10554 | ||
10555 | * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc | |
10556 | constant. | |
10557 | (amd64_x32_init_abi): Likewise. | |
10558 | * amd64-tdep.h (amd64_init_abi): Update declaration. | |
10559 | (amd64_x32_init_abi): Likewise. | |
10560 | ||
02ad7fc2 YQ |
10561 | 2017-07-25 Yao Qi <yao.qi@linaro.org> |
10562 | ||
10563 | PR tdep/21717 | |
10564 | * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update | |
10565 | condition for FPSCR. | |
10566 | (arm_linux_store_inferior_registers): Likewise. | |
10567 | ||
b6f48cb0 TT |
10568 | 2017-07-22 Tom Tromey <tom@tromey.com> |
10569 | ||
10570 | * break-catch-syscall.c (struct catch_syscall_inferior_data) | |
10571 | <syscalls_counts>: Now a std::vector. | |
10572 | (get_catch_syscall_inferior_data): Use "new". | |
10573 | (catch_syscall_inferior_data_cleanup): Use "delete". | |
10574 | (insert_catch_syscall, remove_catch_syscall) | |
10575 | (clear_syscall_counts): Update. | |
10576 | ||
e12c9b7a TT |
10577 | 2017-07-22 Tom Tromey <tom@tromey.com> |
10578 | ||
10579 | * break-catch-syscall.c (syscall_catchpoint) | |
10580 | <syscalls_to_be_caught>: Now a std::vector<int> | |
10581 | (~syscall_catchpoint): Remove. | |
10582 | (insert_catch_syscall, remove_catch_syscall) | |
10583 | (breakpoint_hit_catch_syscall, print_one_catch_syscall) | |
10584 | (print_mention_catch_syscall, print_recreate_catch_syscall): | |
10585 | Update. | |
10586 | (create_syscall_event_catchpoint): Change type of "filter" | |
10587 | parameter. | |
10588 | (catch_syscall_split_args): Return a std::vector. | |
10589 | (catch_syscall_command_1, catching_syscall_number_1): Update. | |
10590 | ||
4fa8aeac TT |
10591 | 2017-07-22 Tom Tromey <tom@tromey.com> |
10592 | ||
10593 | * break-catch-throw.c (struct exception_catchpoint) | |
10594 | <exception_rx>: Now a std::string. | |
10595 | (~exception_catchpoint): Remove. | |
10596 | (print_one_detail_exception_catchpoint): Update. | |
10597 | (handle_gnu_v3_exceptions): Change type of except_rx. | |
10598 | (extract_exception_regexp): Return a std::string. | |
10599 | (catch_exception_command_1): Update. | |
10600 | ||
f746a154 TT |
10601 | 2017-07-22 Tom Tromey <tom@tromey.com> |
10602 | ||
10603 | * break-catch-sig.c (gdb_signal_type): Remove typedef. | |
10604 | (struct signal_catchpoint) <signals_to_be_caught>: Now a | |
10605 | std::vector. | |
10606 | <catch_all>: Now a bool. | |
10607 | (~signal_catchpoint): Remove. | |
10608 | (signal_catchpoint_insert_location) | |
10609 | (signal_catchpoint_remove_location) | |
10610 | (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one) | |
10611 | (signal_catchpoint_print_mention) | |
10612 | (signal_catchpoint_print_recreate) | |
10613 | (signal_catchpoint_explains_signal): Update. | |
10614 | (create_signal_catchpoint): Change type of "filter" and | |
10615 | "catch_all". | |
10616 | (catch_signal_split_args): Return a std::vector. Change type of | |
10617 | "catch_all". | |
10618 | (catch_signal_command): Update. | |
10619 | ||
47e77640 PA |
10620 | 2017-07-20 Pedro Alves <palves@redhat.com> |
10621 | ||
10622 | * ada-lang.c (ada_language_defn): Make extern. | |
10623 | (_initialize_ada_language): Remove add_language call. | |
10624 | * c-lang.c (c_language_defn, cplus_language_defn) | |
10625 | (asm_language_defn, minimal_language_defn): Make extern. | |
10626 | (_initialize_c_language): Delete. | |
10627 | * completer.c (compare_cstrings): Delete, moved to utils.h. | |
10628 | * d-lang.c (d_language_defn): Make extern. | |
10629 | (_initialize_d_language): Remove add_language calls. | |
10630 | * defs.h (enum language): Add comment. | |
10631 | * f-lang.c (f_language_defn): Make extern. | |
10632 | (_initialize_f_language): Remove add_language call. | |
10633 | * go-lang.c (go_language_defn): Make extern. | |
10634 | (_initialize_go_language): Remove add_language call. | |
10635 | * language.c: Include <algorithm>. | |
10636 | (languages): Redefine as const array. | |
10637 | (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete. | |
10638 | (set_language_command): Handle "local". Use for-range loop. | |
10639 | (set_language): Remove loop. | |
10640 | (language_enum): Rewrite. | |
10641 | (language_def, language_str): Remove loops. | |
10642 | (add_language): Delete. | |
10643 | (add_set_language_command): New, based on add_languages. | |
10644 | (skip_language_trampoline): Adjust. | |
10645 | (local_language_defn): Delete. | |
10646 | (language_gdbarch_post_init): Adjust. | |
10647 | (_initialize_language): Remove add_language calls. Call | |
10648 | add_set_language_command. | |
10649 | * language.h (add_language): Delete. | |
10650 | (auto_language_defn) | |
10651 | (unknown_language_defn, minimal_language_defn, ada_language_defn) | |
10652 | (asm_language_defn, c_language_defn, cplus_language_defn) | |
10653 | (d_language_defn, f_language_defn, go_language_defn) | |
10654 | (m2_language_defn, objc_language_defn, opencl_language_defn) | |
10655 | (pascal_language_defn, rust_language_defn): Declare. | |
10656 | * m2-lang.c (m2_language_defn): Make extern. | |
10657 | (_initialize_m2_language): Remove add_language call. | |
10658 | * objc-lang.c (objc_language_defn): Make extern. | |
10659 | (_initialize_objc_language): Remove add_language call. | |
10660 | * opencl-lang.c (opencl_language_defn): Make extern. | |
10661 | (_initialize_opencl_language): Remove add_language call. | |
10662 | * p-lang.c (pascal_language_defn): Make extern. | |
10663 | (_initialize_pascal_language): Delete. | |
10664 | * rust-lang.c (rust_language_defn): Make extern. | |
10665 | (_initialize_rust_language): Delete. | |
10666 | * utils.h (compare_cstrings): New static inline function. | |
10667 | ||
edb0c9cb PA |
10668 | 2017-07-20 Pedro Alves <palves@redhat.com> |
10669 | ||
10670 | * ada-lang.c (ada_to_fixed_type_1): Adjust. | |
10671 | (get_var_value): Constify parameters. | |
10672 | (get_int_var_value): Change prototype. | |
10673 | (to_fixed_range_type): Adjust. | |
10674 | * ada-lang.h (get_int_var_value): Change prototype. | |
10675 | ||
a778f165 PA |
10676 | 2017-07-20 Pedro Alves <palves@redhat.com> |
10677 | ||
10678 | * dwarf2read.c (dw2_lookup_symbol): Use | |
10679 | SYMBOL_MATCHES_SEARCH_NAME. | |
10680 | * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME. | |
10681 | ||
42edd901 PA |
10682 | 2017-07-20 Pedro Alves <palves@redhat.com> |
10683 | ||
10684 | * block.c (block_iter_name_step, block_iter_name_first) | |
10685 | (block_iter_name_next): Delete. | |
10686 | (block_lookup_symbol_primary): Adjust to use | |
10687 | dict_iter_match_first/dict_iter_match_next. | |
10688 | * block.h (block_iter_name_first, block_iter_name_next): Delete | |
10689 | declarations. | |
10690 | (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use | |
10691 | dict_iter_match_first/dict_iter_match_next. | |
10692 | ||
cf325299 PA |
10693 | 2017-07-20 Pedro Alves <palves@redhat.com> |
10694 | ||
10695 | * cp-support.c (cp_find_first_component_aux): Add missing case for | |
10696 | end of string. | |
10697 | ||
c5ed0576 DB |
10698 | 2017-07-18 David Blaikie <dblaikie@gmail.com> |
10699 | ||
10700 | * dwarf2read.c (create_cus_hash_table): Re-add lost initialization | |
10701 | of dwo_cu's dwo_file. | |
10702 | ||
27841e76 YQ |
10703 | 2017-07-18 Yao Qi <yao.qi@linaro.org> |
10704 | ||
10705 | * remote.c (store_registers_using_G): Remove one line comment. | |
10706 | ||
cfb7e58b YQ |
10707 | 2017-07-18 Yao Qi <yao.qi@linaro.org> |
10708 | ||
10709 | * regcache.c (regcache_cpy): Simplify it. | |
10710 | (regcache::cpy_no_passthrough): Remove it. | |
10711 | * regcache.h (cpy_no_passthrough): Remove it. | |
10712 | (regcache_dup, regcache_cpy): Update comments. | |
10713 | ||
386535dd PA |
10714 | 2017-07-18 Pedro Alves <palves@redhat.com> |
10715 | ||
10716 | * remote-sim.c (sim_command_completer): Adjust to work with a | |
10717 | completion_tracker instead of a VEC. | |
10718 | ||
c45ec17c PA |
10719 | 2017-07-17 Pedro Alves <palves@redhat.com> |
10720 | ||
10721 | * completer.c (complete_source_filenames): New function. | |
10722 | (complete_address_and_linespec_locations): New function. | |
10723 | (location_completer): Use complete_address_and_linespec_locations. | |
10724 | (completion_tracker::build_completion_result): Honor the tracker's | |
10725 | request to suppress append. | |
10726 | * completer.h (completion_tracker::suppress_append_ws) | |
10727 | (completion_tracker::set_suppress_append_ws): New methods. | |
10728 | (completion_tracker::m_suppress_append_ws): New field. | |
10729 | (complete_source_filenames): New declaration. | |
10730 | * linespec.c (linespec_complete_what): New. | |
10731 | (struct ls_parser) <complete_what, completion_word, | |
10732 | completion_quote_char, completion_quote_end, completion_tracker>: | |
10733 | New fields. | |
10734 | (string_find_incomplete_keyword_at_end): New. | |
10735 | (linespec_lexer_lex_string): Record quote char. If in completion | |
10736 | mode, don't throw. | |
10737 | (linespec_lexer_consume_token): Advance the completion word point. | |
10738 | (linespec_lexer_peek_token): Save/restore completion info. | |
10739 | (save_stream_and_consume_token): New. | |
10740 | (set_completion_after_number): New. | |
10741 | (linespec_parse_basic): Set what to complete next depending on | |
10742 | token. Handle function and label completions specially. | |
10743 | (parse_linespec): Disable objc shortcut in completion mode. Set | |
10744 | what to complete next depending on token type. Skip keyword if in | |
10745 | completion mode. | |
10746 | (complete_linespec_component, linespec_complete): New. | |
10747 | * linespec.h (linespec_complete): Declare. | |
10748 | ||
be966d42 PA |
10749 | 2017-07-17 Pedro Alves <palves@redhat.com> |
10750 | ||
10751 | * linespec.c (linespec_lexer_lex_string, find_toplevel_char): | |
10752 | Handle 'operator<' / 'operator<<'. | |
10753 | ||
a2459270 PA |
10754 | 2017-07-17 Pedro Alves <palves@redhat.com> |
10755 | ||
10756 | * completer.c (collect_explicit_location_matches): Handle | |
10757 | MATCH_LABEL. | |
10758 | (convert_explicit_location_to_linespec): New, factored out from | |
10759 | ... | |
10760 | (convert_explicit_location_to_sals): ... this. | |
10761 | (complete_label): New. | |
10762 | (linespec_complete_label, find_label_symbols_in_block): New. | |
10763 | (find_label_symbols): Add completion_mode parameter and adjust to | |
10764 | call find_label_symbols_in_block. | |
10765 | * linespec.h (linespec_complete_label): Declare. | |
10766 | ||
c6756f62 PA |
10767 | 2017-07-17 Pedro Alves <palves@redhat.com> |
10768 | ||
10769 | * ada-lang.c (ada_collect_symbol_completion_matches): Add | |
10770 | complete_symbol_mode parameter. | |
10771 | * cli/cli-cmds.c (complete_command): Get the completion result out | |
10772 | of the handle_brkchars tracker if used a custom word point. | |
10773 | * completer.c: Include "linespec.h". | |
10774 | (enum explicit_location_match_type) <MATCH_LINE>: New enumerator. | |
10775 | (advance_to_expression_complete_word_point): New. | |
10776 | (completion_tracker::completes_to_completion_word): New. | |
10777 | (complete_files_symbols): Pass down | |
10778 | complete_symbol_mode::EXPRESSION. | |
10779 | (explicit_options, probe_options): New. | |
10780 | (collect_explicit_location_matches): Complete on the | |
10781 | explictit_loc->foo instead of word. Use | |
10782 | linespec_complete_function. Handle MATCH_LINE. Handle offering | |
10783 | keyword and options completions. | |
10784 | (backup_text_ptr): Delete. | |
10785 | (skip_keyword): New. | |
10786 | (complete_explicit_location): Remove 'word' parameter. Add | |
10787 | language, quoted_arg_start and quoted_arg_end parameters. | |
10788 | Rewrite, parsing left to right. | |
10789 | (location_completer): Rewrite. | |
10790 | (location_completer_handle_brkchars): New function. | |
10791 | (symbol_completer): Pass down complete_symbol_mode::EXPRESSION. | |
10792 | (enum complete_line_internal_reason): Adjust comments. | |
10793 | (completion_tracker::discard_completions): New. | |
10794 | (completer_handle_brkchars_func_for_completer): Handle | |
10795 | location_completer. | |
10796 | (gdb_custom_word_point_brkchars) | |
10797 | (gdb_org_rl_basic_quote_characters): New. | |
10798 | (gdb_completion_word_break_characters_throw) | |
10799 | (completion_find_completion_word): Handle trackers that use a | |
10800 | custom word point. | |
10801 | (completion_tracker::advance_custom_word_point_by): New. | |
10802 | (completion_tracker::build_completion_result): Don't rely on | |
10803 | readline appending the quote char. | |
10804 | (gdb_rl_attempted_completion_function_throw): Handle trackers that | |
10805 | use a custom word point. | |
10806 | (gdb_rl_attempted_completion_function): Restore | |
10807 | rl_basic_quote_characters. | |
10808 | * completer.h (class completion_tracker): Extend intro comment. | |
10809 | (completion_tracker::set_quote_char) | |
10810 | (completion_tracker::quote_char) | |
10811 | (completion_tracker::set_use_custom_word_point) | |
10812 | (completion_tracker::use_custom_word_point) | |
10813 | (completion_tracker::custom_word_point) | |
10814 | (completion_tracker::set_custom_word_point) | |
10815 | (completion_tracker::advance_custom_word_point_by) | |
10816 | (completion_tracker::completes_to_completion_word) | |
10817 | (completion_tracker::discard_completions): New methods. | |
10818 | (completion_tracker::m_quote_char) | |
10819 | (completion_tracker::m_use_custom_word_point) | |
10820 | (completion_tracker::m_custom_word_point): New fields. | |
10821 | (advance_to_expression_complete_word_point): Declare. | |
10822 | * f-lang.c (f_collect_symbol_completion_matches): Add | |
10823 | complete_symbol_mode parameter. | |
10824 | * language.h (struct language_defn) | |
10825 | <la_collect_symbol_completion_matches>: Add complete_symbol_mode | |
10826 | parameter. | |
10827 | * linespec.c (linespec_keywords): Add NULL terminator. Make extern. | |
10828 | (linespec_complete_function): New function. | |
10829 | (linespec_lexer_lex_keyword): Adjust. | |
10830 | * linespec.h (linespec_keywords, linespec_complete_function): New | |
10831 | declarations. | |
10832 | * location.c (find_end_quote): New function. | |
10833 | (explicit_location_lex_one): Add explicit_completion_info | |
10834 | parameter. Save quoting info. Don't throw if being called for | |
10835 | completion. Don't handle Ada operators here. | |
10836 | (is_cp_operator, skip_op_false_positives, first_of) | |
10837 | (explicit_location_lex_one_function): New function. | |
10838 | (string_to_explicit_location): Replace 'dont_throw' parameter with | |
10839 | an explicit_completion_info pointer parameter. Handle it. Don't | |
10840 | use explicit_location_lex_one to lex function names. Use | |
10841 | explicit_location_lex_one_function instead. | |
10842 | * location.h (struct explicit_completion_info): New. | |
10843 | (string_to_explicit_location): Replace 'dont_throw' parameter with | |
10844 | an explicit_completion_info pointer parameter. | |
10845 | * symtab.c (default_collect_symbol_completion_matches_break_on): | |
10846 | Add complete_symbol_mode parameter. Handle LINESPEC mode. | |
10847 | (default_collect_symbol_completion_matches) | |
10848 | (collect_symbol_completion_matches): Add complete_symbol_mode | |
10849 | parameter. | |
10850 | (collect_symbol_completion_matches_type): Pass down | |
10851 | complete_symbol_mode::EXPRESSION. | |
10852 | (collect_file_symbol_completion_matches): Add complete_symbol_mode | |
10853 | parameter. Handle LINESPEC mode. | |
10854 | * symtab.h (complete_symbol_mode): New. | |
10855 | (default_collect_symbol_completion_matches_break_on) | |
10856 | (default_collect_symbol_completion_matches) | |
10857 | (collect_symbol_completion_matches) | |
10858 | (collect_file_symbol_completion_matches): Add complete_symbol_mode | |
10859 | parameter. | |
10860 | ||
1d550c82 PA |
10861 | 2017-07-17 Pedro Alves <palves@redhat.com> |
10862 | ||
10863 | * utils.c (enum class strncmp_iw_mode): New. | |
10864 | (strcmp_iw): Rename to ... | |
10865 | (strncmp_iw_with_mode): ... this. Add string2_len and mode | |
10866 | parameters. Handle them. | |
10867 | (strncmp_iw): New. | |
10868 | (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode. | |
10869 | * utils.h (strncmp_iw): Declare. | |
10870 | (strcmp_iw): Move describing comments here. | |
10871 | ||
8090b426 PA |
10872 | 2017-07-17 Pedro Alves <palves@redhat.com> |
10873 | ||
10874 | * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and | |
10875 | CP_OPERATOR_STR. | |
10876 | * c-typeprint.c (is_type_conversion_operator): Use | |
10877 | CP_OPERATOR_STR. | |
10878 | * cp-support.c (LENGTH_OF_OPERATOR): Delete. | |
10879 | (cp_find_first_component_aux): Use CP_OPERATOR_STR and | |
10880 | CP_OPERATOR_LEN. | |
10881 | * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New. | |
10882 | * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR. | |
10883 | * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR. | |
10884 | * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and | |
10885 | CP_OPERATOR_STR. | |
10886 | * location.c: Include "cp-support.h". | |
10887 | (explicit_location_lex_one): Use CP_OPERATOR_LEN and | |
10888 | CP_OPERATOR_STR. | |
10889 | * symtab.c (operator_chars): Use CP_OPERATOR_STR and | |
10890 | CP_OPERATOR_LEN. | |
10891 | ||
6a2c1b87 PA |
10892 | 2017-07-17 Pedro Alves <palves@redhat.com> |
10893 | ||
10894 | * cli/cli-cmds.c (complete_command): Use a completion tracker | |
10895 | along with completion_find_completion_word for handle_brkchars | |
10896 | phase. | |
10897 | * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE) | |
10898 | (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New. | |
10899 | (struct gdb_rl_completion_word_info): New. | |
10900 | (gdb_rl_find_completion_word): New. | |
10901 | (completion_find_completion_word): New. | |
10902 | * completer.h (completion_find_completion_word): Declare. | |
10903 | ||
eb3ff9a5 PA |
10904 | 2017-07-17 Pedro Alves <palves@redhat.com> |
10905 | ||
10906 | * ada-lang.c (symbol_completion_match): Adjust comments. | |
10907 | (symbol_completion_add): Replace vector parameter with | |
10908 | completion_tracker parameter. Use it. | |
10909 | (ada_make_symbol_completion_list): Rename to... | |
10910 | (ada_collect_symbol_completion_matches): ... this. Add | |
10911 | completion_tracker parameter and use it. | |
10912 | (ada_language_defn): Adjust. | |
10913 | * break-catch-syscall.c (catch_syscall_completer): Adjust | |
10914 | prototype and work with completion_tracker instead of VEC. | |
10915 | * breakpoint.c (condition_completer): Adjust prototype and work | |
10916 | with completion_tracker instead of VEC. | |
10917 | * c-lang.c (c_language_defn, cplus_language_defn) | |
10918 | (asm_language_defn, minimal_language_defn): Adjust to renames. | |
10919 | * cli/cli-cmds.c (complete_command): Rework using | |
10920 | completion_tracker. Catch exceptions when completing. | |
10921 | * cli/cli-decode.c (integer_unlimited_completer) | |
10922 | (complete_on_cmdlist, complete_on_enum): Adjust prototype and work | |
10923 | with completion_tracker instead of VEC. | |
10924 | * command.h (struct completion_tracker): Forward declare. | |
10925 | (completer_ftype, completer_handle_brkchars_ftype): Change | |
10926 | types. | |
10927 | (complete_on_cmdlist, complete_on_enum): Adjust. | |
10928 | * completer.c: Include <algorithm>. | |
10929 | (struct gdb_completer_state): New. | |
10930 | (current_completion): New global. | |
10931 | (readline_line_completion_function): Delete. | |
10932 | (noop_completer, filename_completer) | |
10933 | (filename_completer_handle_brkchars, complete_files_symbols) | |
10934 | (linespec_location_completer): Adjust to work with a | |
10935 | completion_tracker instead of a VEC. | |
10936 | (string_or_empty): New. | |
10937 | (collect_explicit_location_matches): Adjust to work with a | |
10938 | completion_tracker instead of a VEC. | |
10939 | (explicit_location_completer): Rename to ... | |
10940 | (complete_explicit_location): ... this and adjust to work with a | |
10941 | completion_tracker instead of a VEC. | |
10942 | (location_completer): Adjust to work with a completion_tracker | |
10943 | instead of a VEC. | |
10944 | (add_struct_fields): Adjust to work with a completion_list instead | |
10945 | of VEC. | |
10946 | (expression_completer): Rename to ... | |
10947 | (complete_expression): ... this and adjust to work with a | |
10948 | completion_tracker instead of a VEC. Use complete_files_symbols. | |
10949 | (expression_completer): Reimplement on top of complete_expression. | |
10950 | (symbol_completer): Adjust to work with a completion_tracker | |
10951 | instead of a VEC. | |
10952 | (enum complete_line_internal_reason): Add describing comments. | |
10953 | (complete_line_internal_normal_command): Adjust to work with a | |
10954 | completion_tracker instead of a VEC. | |
10955 | (complete_line_internal): Rename to ... | |
10956 | (complete_line_internal_1): ... this and adjust to work with a | |
10957 | completion_tracker instead of a VEC. Assert TEXT is NULL in the | |
10958 | handle_brkchars phase. | |
10959 | (new_completion_tracker): Delete. | |
10960 | (complete_line_internal): Reimplement as TRY/CATCH wrapper around | |
10961 | complete_line_internal_1. | |
10962 | (free_completion_tracker): Delete. | |
10963 | (INITIAL_COMPLETION_HTAB_SIZE): New. | |
10964 | (completion_tracker::completion_tracker) | |
10965 | (completion_tracker::~completion_tracker): New. | |
10966 | (maybe_add_completion): Delete. | |
10967 | (completion_tracker::maybe_add_completion) | |
10968 | (completion_tracker::add_completion) | |
10969 | (completion_tracker::add_completions): New. | |
10970 | (throw_max_completions_reached_error): Delete. | |
10971 | (complete_line): Adjust to work with a completion_tracker instead | |
10972 | of a VEC. Don't create a completion_tracker_t or check for max | |
10973 | completions here. | |
10974 | (command_completer, command_completer_handle_brkchars) | |
10975 | (signal_completer, reg_or_group_completer_1) | |
10976 | (reg_or_group_completer, default_completer_handle_brkchars): | |
10977 | Adjust to work with a completion_tracker. | |
10978 | (gdb_completion_word_break_characters_throw): New. | |
10979 | (gdb_completion_word_break_characters): Reimplement. | |
10980 | (line_completion_function): Delete. | |
10981 | (completion_tracker::recompute_lowest_common_denominator) | |
10982 | (expand_preserving_ws) | |
10983 | (completion_tracker::build_completion_result) | |
10984 | (completion_result::completion_result) | |
10985 | (completion_result::completion_result) | |
10986 | (completion_result::~completion_result) | |
10987 | (completion_result::completion_result) | |
10988 | (completion_result::release_match_list, compare_cstrings) | |
10989 | (completion_result::sort_match_list) | |
10990 | (completion_result::reset_match_list) | |
10991 | (gdb_rl_attempted_completion_function_throw) | |
10992 | (gdb_rl_attempted_completion_function): New. | |
10993 | * completer.h (completion_list, struct completion_result) | |
10994 | (class completion_tracker): New. | |
10995 | (complete_line): Add completion_tracker parameter. | |
10996 | (readline_line_completion_function): Delete. | |
10997 | (gdb_rl_attempted_completion_function): New. | |
10998 | (noop_completer, filename_completer, expression_completer) | |
10999 | (location_completer, symbol_completer, command_completer) | |
11000 | (signal_completer, reg_or_group_completer): Update prototypes. | |
11001 | (completion_tracker_t, new_completion_tracker) | |
11002 | (make_cleanup_free_completion_tracker): Delete. | |
11003 | (enum maybe_add_completion_enum): Delete. | |
11004 | (maybe_add_completion): Delete. | |
11005 | (throw_max_completions_reached_error): Delete. | |
11006 | * corefile.c (complete_set_gnutarget): Adjust to work with a | |
11007 | completion_tracker instead of a VEC. | |
11008 | * cp-abi.c (cp_abi_completer): Adjust to work with a | |
11009 | completion_tracker instead of a VEC. | |
11010 | * d-lang.c (d_language_defn): Adjust. | |
11011 | * disasm.c (disassembler_options_completer): Adjust to work with a | |
11012 | completion_tracker instead of a VEC. | |
11013 | * f-lang.c (f_make_symbol_completion_list): Rename to ... | |
11014 | (f_collect_symbol_completion_matches): ... this. Adjust to work | |
11015 | with a completion_tracker instead of a VEC. | |
11016 | (f_language_defn): Adjust. | |
11017 | * go-lang.c (go_language_defn): Adjust. | |
11018 | * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer): | |
11019 | Adjust to work with a completion_tracker instead of a VEC. | |
11020 | * infrun.c (handle_completer): Likewise. | |
11021 | * interps.c (interpreter_completer): Likewise. | |
11022 | * interps.h (interpreter_completer): Likewise. | |
11023 | * language.c (unknown_language_defn, auto_language_defn) | |
11024 | (local_language_defn): Adjust. | |
11025 | * language.h (language_defn::la_make_symbol_completion_list): | |
11026 | Rename to ... | |
11027 | (language_defn::la_collect_symbol_completion_matches): ... this | |
11028 | and adjust to work with a completion_tracker instead of a VEC. | |
11029 | * m2-lang.c (m2_language_defn): Adjust. | |
11030 | * objc-lang.c (objc_language_defn): Adjust. | |
11031 | * opencl-lang.c (opencl_language_defn): Adjust. | |
11032 | * p-lang.c (pascal_language_defn): Adjust. | |
11033 | * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word. | |
11034 | (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work | |
11035 | with a completion_tracker. | |
11036 | * rust-lang.c (rust_language_defn): Adjust. | |
11037 | * symtab.c (free_completion_list, do_free_completion_list) | |
11038 | (return_val, completion_tracker): Delete. | |
11039 | (completion_list_add_name, completion_list_add_symbol) | |
11040 | (completion_list_add_msymbol, completion_list_objc_symbol) | |
11041 | (completion_list_add_fields, add_symtab_completions): Add | |
11042 | completion_tracker parameter and use it. | |
11043 | (default_make_symbol_completion_list_break_on_1): Rename to... | |
11044 | (default_collect_symbol_completion_matches_break_on): ... this. | |
11045 | Add completion_tracker parameter and use it instead of allocating | |
11046 | a completion tracker here. | |
11047 | (default_make_symbol_completion_list_break_on): Delete old | |
11048 | implementation. | |
11049 | (default_make_symbol_completion_list): Delete. | |
11050 | (default_collect_symbol_completion_matches): New. | |
11051 | (make_symbol_completion_list): Delete. | |
11052 | (collect_symbol_completion_matches): New. | |
11053 | (make_symbol_completion_type): Rename to ... | |
11054 | (collect_symbol_completion_matches_type): ... this. Add | |
11055 | completion_tracker parameter and use it instead of VEC. | |
11056 | (make_file_symbol_completion_list_1): Rename to... | |
11057 | (collect_file_symbol_completion_matches): ... this. Add | |
11058 | completion_tracker parameter and use it instead of VEC. | |
11059 | (make_file_symbol_completion_list): Delete. | |
11060 | (add_filename_to_list): Use completion_list instead of a VEC. | |
11061 | (add_partial_filename_data::list): Now a completion_list. | |
11062 | (make_source_files_completion_list): Work with a completion_list | |
11063 | instead of a VEC. | |
11064 | * symtab.h: Include "completer.h". | |
11065 | (default_make_symbol_completion_list_break_on) | |
11066 | (default_make_symbol_completion_list, make_symbol_completion_list) | |
11067 | (make_symbol_completion_type, make_file_symbol_completion_list) | |
11068 | (make_source_files_completion_list): Delete. | |
11069 | (default_collect_symbol_completion_matches_break_on) | |
11070 | (default_collect_symbol_completion_matches) | |
11071 | (collect_symbol_completion_matches) | |
11072 | (collect_symbol_completion_matches_type) | |
11073 | (collect_file_symbol_completion_matches) | |
11074 | (make_source_files_completion_list): New. | |
11075 | * top.c (init_main): Don't install a rl_completion_entry_function | |
11076 | hook. Install a rl_attempted_completion_function hook instead. | |
11077 | * tui/tui-layout.c (layout_completer): Adjust to work with a | |
11078 | completion_tracker. | |
11079 | * tui/tui-regs.c (tui_reggroup_completer): | |
11080 | * tui/tui-win.c (window_name_completer, focus_completer) | |
11081 | (winheight_completer): Adjust to work with a completion_tracker. | |
11082 | * value.c: Include "completer.h". | |
11083 | (complete_internalvar): Adjust to work with a completion_tracker. | |
11084 | * value.h (complete_internalvar): Likewise. | |
11085 | ||
6e1dbf8c PA |
11086 | 2017-07-17 Pedro Alves <palves@redhat.com> |
11087 | ||
11088 | * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to | |
11089 | renames. | |
11090 | * cli/cli-decode.h (struct cmd_list_element) <completer>: Move | |
11091 | comments to completer_ftype's declaration. | |
11092 | <completer_handle_brkchars>: Change type to | |
11093 | completer_handle_brkchars_ftype. | |
11094 | * command.h (completer_ftype): Add describing comment and give | |
11095 | names to parameters. | |
11096 | (completer_ftype_void): Rename to ... | |
11097 | (completer_handle_brkchars_ftype) ... this. Add describing comment. | |
11098 | (set_cmd_completer_handle_brkchars): Adjust. | |
11099 | * completer.c (filename_completer_handle_brkchars): New function. | |
11100 | (complete_line_internal_normal_command): New function, factored | |
11101 | out from ... | |
11102 | (complete_line_internal): ... here. | |
11103 | (command_completer_handle_brkchars) | |
11104 | (default_completer_handle_brkchars) | |
11105 | (completer_handle_brkchars_func_for_completer): New functions. | |
11106 | * completer.h (set_gdb_completion_word_break_characters): Delete | |
11107 | declaration. | |
11108 | (completer_handle_brkchars_func_for_completer): New declaration. | |
11109 | * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use | |
11110 | completer_handle_brkchars_func_for_completer. | |
11111 | ||
78b13106 PA |
11112 | 2017-07-17 Pedro Alves <palves@redhat.com> |
11113 | ||
11114 | * completer.c (symbol_completer): New function, based on | |
11115 | make_symbol_completion_list_fn. | |
11116 | * completer.h (symbol_completer): New declaration. | |
11117 | * guile/scm-cmd.c (cmdscm_completers): Adjust. | |
11118 | * python/py-cmd.c (completers): Adjust. | |
11119 | * symtab.c (make_symbol_completion_list_fn): Delete. | |
11120 | * symtab.h (make_symbol_completion_list_fn): Delete. | |
11121 | * cli/cli-decode.c (add_cmd): Adjust. | |
11122 | ||
bbf2f4df PA |
11123 | 2017-07-17 Pedro Alves <palves@redhat.com> |
11124 | ||
11125 | * Makefile.in (COMMON_OBS): Add filename-seen-cache.o. | |
11126 | * dwarf2read.c: Include "filename-seen-cache.h". | |
11127 | * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field. | |
11128 | (dw2_map_symbol_filenames): Build and use a filenames_seen_cache. | |
11129 | * filename-seen-cache.c: New file. | |
11130 | * filename-seen-cache.h: New file. | |
11131 | * symtab.c: Include "filename-seen-cache.h". | |
11132 | (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE) | |
11133 | (create_filename_seen_cache, clear_filename_seen_cache) | |
11134 | (delete_filename_seen_cache, filename_seen): Delete, parts moved | |
11135 | to filename-seen-cache.h/filename-seen-cache.c. | |
11136 | (output_source_filename, sources_info) | |
11137 | (maybe_add_partial_symtab_filename) | |
11138 | (make_source_files_completion_list): Adjust to use | |
11139 | filename_seen_cache. | |
11140 | ||
330cdd98 PA |
11141 | 2017-07-17 Pedro Alves <palves@redhat.com> |
11142 | ||
11143 | * dwarf2read.c (dwarf2_per_objfile): In-class initialize all | |
11144 | fields. | |
11145 | (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const | |
11146 | dwarf2_debug_sections*)): New. | |
11147 | (dwarf2_per_objfile::dwarf2_per_objfile(const | |
11148 | dwarf2_per_objfile&)): Declare as deleted. | |
11149 | (dwarf2_per_objfile::operator=): Declare as deleted. | |
11150 | (dwarf2_per_objfile::dwarf2_per_objfile) | |
11151 | (dwarf2_per_objfile::~dwarf2_per_objfile) | |
11152 | (dwarf2_per_objfile::free_cached_comp_units): New. | |
11153 | (dwarf2_has_info): dwarf2_per_objfile initialization code moved to | |
11154 | ctor. Call dwarf2_per_objfile's ctor manually. | |
11155 | (dwarf2_locate_sections): Deleted/refactored as ... | |
11156 | (dwarf2_per_objfile::locate_sections): ... this new method. | |
11157 | (free_cached_comp_units): Defer to | |
11158 | dwarf2_per_objfile::free_cached_comp_units. | |
11159 | (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually. | |
11160 | ||
8880f2a9 TT |
11161 | 2017-07-14 Tom Tromey <tom@tromey.com> |
11162 | ||
11163 | PR rust/21764: | |
11164 | * rust-exp.y (convert_ast_to_expression): Add "want_type" | |
11165 | parameter. | |
11166 | <UNOP_SIZEOF>: Split into separate case. | |
11167 | <UNOP_VAR_VALUE>: Handle want_type. Add error case. | |
11168 | ||
65547233 TT |
11169 | 2017-07-14 Tom Tromey <tom@tromey.com> |
11170 | ||
11171 | PR rust/21763: | |
11172 | * symtab.c (symbol_matches_domain): Add language_rust to special | |
11173 | case. | |
11174 | * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't | |
11175 | treat LOC_TYPEDEF symbols as variables. | |
11176 | ||
8f14146e PA |
11177 | 2017-07-14 Pedro Alves <palves@redhat.com> |
11178 | ||
11179 | * symtab.c (make_file_symbol_completion_list_1): Iterate over | |
11180 | symtabs matching all symtabs with SRCFILE as file name instead of | |
11181 | only considering the first hit, with lookup_symtab. | |
11182 | ||
2347965c SM |
11183 | 2017-07-14 Simon Marchi <simon.marchi@ericsson.com> |
11184 | ||
11185 | * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and | |
11186 | operator_name parameters. | |
11187 | (gen_expr): Update function call. | |
11188 | ||
40f4af28 SM |
11189 | 2017-07-14 Simon Marchi <simon.marchi@ericsson.com> |
11190 | ||
11191 | * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch | |
11192 | parameter. | |
11193 | * symtab.h (struct symbol_computed_ops::tracepoint_var_ref): | |
11194 | Likewise. | |
11195 | * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch | |
11196 | parameter, use agent_expr::gdbarch instead, update function | |
11197 | calls. | |
11198 | (locexpr_tracepoint_var_ref): Likewise. | |
11199 | (loclist_tracepoint_var_ref): Likewise. | |
11200 | * ax-gdb.c (gen_trace_static_fields): Likewise. | |
11201 | (gen_traced_pop): Likewise. | |
11202 | (gen_frame_args_address): Likewise. | |
11203 | (gen_frame_locals_address): Likewise. | |
11204 | (gen_var_ref): Likewise. | |
11205 | (gen_struct_ref_recursive): Likewise. | |
11206 | (gen_static_field): Likewise. | |
11207 | (gen_maybe_namespace_elt): Likewise. | |
11208 | (gen_expr): Likewise. | |
11209 | (gen_trace_for_var): Likewise. | |
11210 | (gen_trace_for_expr): Likewise. | |
11211 | (gen_trace_for_return_address): Likewise. | |
11212 | ||
053f8057 SM |
11213 | 2017-07-14 Simon Marchi <simon.marchi@ericsson.com> |
11214 | ||
11215 | * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax | |
11216 | parameter. | |
11217 | (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call. | |
11218 | ||
6661ad48 SM |
11219 | 2017-07-14 Simon Marchi <simon.marchi@ericsson.com> |
11220 | ||
11221 | * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch | |
11222 | from ax, update calls. | |
11223 | (gen_usual_arithmetic): Likewise. | |
11224 | (gen_integral_promotions): Likewise. | |
11225 | (gen_bitfield_ref): Likewise. | |
11226 | (gen_primitive_field): Likewise. | |
11227 | (gen_struct_ref_recursive): Likewise. | |
11228 | (gen_struct_ref): Likewise. | |
11229 | (gen_maybe_namespace_elt): Likewise. | |
11230 | (gen_struct_elt_for_reference): Likewise. | |
11231 | (gen_namespace_elt): Likewise. | |
11232 | (gen_aggregate_elt_ref): Likewise. | |
11233 | (gen_expr): Get gdbarch from ax, update calls. | |
11234 | (gen_expr_binop_rest): Likewise. | |
11235 | ||
c55a47e7 PA |
11236 | 2017-07-13 Pedro Alves <palves@redhat.com> |
11237 | ||
11238 | * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64 | |
11239 | as default tdesc. | |
11240 | * amd64-dicos-tdep.c (amd64_dicos_init_abi): | |
11241 | * amd64-fbsd-tdep.c (amd64fbsd_init_abi): | |
11242 | * amd64-linux-tdep.c (amd64_linux_init_abi): Pass | |
11243 | tdesc_amd64_linux as default tdesc. Get final tdesc from the | |
11244 | tdep. | |
11245 | (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc. | |
11246 | Get final tdesc from the tdep. | |
11247 | * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as | |
11248 | default tdesc. | |
11249 | * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise. | |
11250 | * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise. | |
11251 | * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter. | |
11252 | Use it as default tdesc. | |
11253 | (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it | |
11254 | down to amd_init_abi. No longer handle fallback tdesc here. | |
11255 | * amd64-tdep.h (tdesc_x32): Declare. | |
11256 | (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc' | |
11257 | parameter. | |
11258 | * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64 | |
11259 | as default tdesc. | |
11260 | ||
55efceab AA |
11261 | 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
11262 | ||
11263 | * s390-linux-tdep.c (s390_process_record): Add support for | |
11264 | instructions new in arch12. | |
11265 | ||
0aa37b65 JB |
11266 | 2017-07-11 John Baldwin <jhb@FreeBSD.org> |
11267 | ||
11268 | * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use | |
11269 | PT_GETFSBASE and PT_GETGSBASE. | |
11270 | (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and | |
11271 | PT_SETGSBASE. | |
11272 | ||
48aeef91 JB |
11273 | 2017-07-11 John Baldwin <jhb@FreeBSD.org> |
11274 | ||
11275 | * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat) | |
11276 | (amd64-avx-mpx.dat, amd64-avx-avx512.dat) | |
11277 | (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in | |
11278 | those rules. | |
11279 | * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml. | |
11280 | * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml. | |
11281 | * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml. | |
11282 | * features/i386/amd64-avx.xml: Add 64bit-segments.xml. | |
11283 | * features/i386/amd64-mpx.xml: Add 64bit-segments.xml. | |
11284 | * features/i386/amd64.xml: Add 64bit-segments.xml. | |
11285 | * features/i386/amd64-avx-avx512.c: Regenerated. | |
11286 | * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated. | |
11287 | * features/i386/amd64-avx-mpx.c: Regenerated. | |
11288 | * features/i386/amd64-avx.c: Regenerated. | |
11289 | * features/i386/amd64-mpx.c: Regenerated. | |
11290 | * features/i386/amd64.c: Regenerated. | |
11291 | * regformats/i386/amd64-avx-avx512.dat: Regenerated. | |
11292 | * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated. | |
11293 | * regformats/i386/amd64-avx-mpx.dat: Regenerated. | |
11294 | * regformats/i386/amd64-avx.dat: Regenerated. | |
11295 | * regformats/i386/amd64-mpx.dat: Regenerated. | |
11296 | * regformats/i386/amd64.dat: Regenerated. | |
11297 | ||
77c501bc YQ |
11298 | 2017-07-10 Yao Qi <yao.qi@linaro.org> |
11299 | ||
11300 | * features/i386/amd64-avx-avx512-linux.c: Re-generated. | |
11301 | * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated. | |
11302 | ||
6dc8d757 AK |
11303 | 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com> |
11304 | ||
11305 | * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and | |
11306 | unsetenv. | |
11307 | * gnulib/aclocal.m4: Regenerate. | |
11308 | * gnulib/config.in: Regenerate. | |
11309 | * gnulib/configure: Regenerate. | |
11310 | * gnulib/import/Makefile.am: Regenerate. | |
11311 | * gnulib/import/Makefile.in: Regenerate. | |
11312 | * gnulib/import/m4/gnulib-cache.m4: Regenerate. | |
11313 | * gnulib/import/m4/gnulib-comp.m4: Regenerate. | |
11314 | * gnulib/import/m4/environ.m4: New file. | |
11315 | * gnulib/import/m4/setenv.m4: New file. | |
11316 | * gnulib/import/setenv.c: New file. | |
11317 | * gnulib/import/unsetenv.c: New file. | |
11318 | ||
266934d1 SM |
11319 | 2017-07-09 Simon Marchi <simon.marchi@ericsson.com> |
11320 | ||
11321 | * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read | |
11322 | address when op is DW_OP_addr. | |
11323 | ||
03278692 TT |
11324 | 2017-07-09 Tom Tromey <tom@tromey.com> |
11325 | ||
11326 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size | |
11327 | check and apply to outer type. | |
11328 | ||
4b654465 JB |
11329 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
11330 | ||
11331 | * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS) | |
11332 | (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI) | |
11333 | (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New. | |
11334 | (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method. | |
11335 | ||
2af9fc44 JB |
11336 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
11337 | ||
11338 | * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name. | |
11339 | ||
382b69bb JB |
11340 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
11341 | ||
11342 | * corelow.c (get_core_siginfo): Remove. | |
11343 | (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method | |
11344 | instead of get_core_siginfo. | |
11345 | * gdbarch.sh (core_xfer_siginfo): New gdbarch callback. | |
11346 | * gdbarch.h: Re-generate. | |
11347 | * gdbarch.c: Re-generate. | |
11348 | * linux-tdep.c (linux_core_xfer_siginfo): New. | |
11349 | (linux_init_abi): Install gdbarch "core_xfer_siginfo" method. | |
11350 | ||
6e5eab33 JB |
11351 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
11352 | ||
11353 | * corelow.c (thread_section_name): Move to ... | |
11354 | * gdbcore.h (thread_section_name): ... here. | |
11355 | ||
929edea9 JB |
11356 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
11357 | ||
11358 | * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32) | |
11359 | (struct siginfo32): New. | |
11360 | [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New. | |
11361 | (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO | |
11362 | via ptrace(PT_LWPINFO). | |
11363 | ||
762c974a JB |
11364 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
11365 | ||
11366 | * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data) | |
11367 | (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data) | |
11368 | (fbsd_get_siginfo_type): New. | |
11369 | (fbsd_init_abi): Install gdbarch "get_siginfo_type" method. | |
11370 | (_initialize_fbsd_tdep): New. | |
11371 | ||
33c5cd75 DB |
11372 | 2017-07-06 David Blaikie <dblaikie@gmail.com> |
11373 | ||
11374 | * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than | |
11375 | a singular dwo_unit*) to support multiple CUs in the same way that | |
11376 | multiple TUs are supported. | |
11377 | (create_cus_hash_table): Replace create_dwo_cu with a function for | |
11378 | parsing multiple CUs from a DWO file. | |
11379 | (open_and_init_dwo_file): Use create_cus_hash_table rather than | |
11380 | create_dwo_cu. | |
11381 | (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with | |
11382 | htab_find, rather than comparing the signature to a singleton CU in | |
11383 | the dwo_file. | |
11384 | ||
8455d262 PA |
11385 | 2017-07-06 Pedro Alves <palves@redhat.com> |
11386 | ||
11387 | * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition. | |
11388 | ||
4da3eb35 PA |
11389 | 2017-07-04 Pedro Alves <palves@redhat.com> |
11390 | ||
11391 | * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC. | |
11392 | * gdbtypes.h (TYPE_STATIC): Delete. | |
11393 | (struct fn_field) <is_public, is_abstract, is_static, is_final, | |
11394 | is_synchronized, is_native>: Delete. | |
11395 | <dummy>: Bump. | |
11396 | (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL) | |
11397 | (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE) | |
11398 | (TYPE_FN_FIELD_ABSTRACT): Delete. | |
11399 | ||
5bfd255c SM |
11400 | 2017-07-03 Simon Marchi <simon.marchi@ericsson.com> |
11401 | ||
11402 | * buffer.h (buffer_finish): Fix spelling mistakes. | |
11403 | ||
25c54127 EZ |
11404 | 2017-07-01 Eli Zaretskii <eliz@gnu.org> |
11405 | ||
11406 | * .dir-locals.el: Automatically switch to C-style comments in | |
11407 | versions of Emacs that support the feature. | |
11408 | ||
dc4bde35 SDJ |
11409 | 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com> |
11410 | Pedro Alves <palves@redhat.com> | |
11411 | ||
11412 | PR cli/21688 | |
11413 | * cli/cli-script.c (command_name_equals_not_inline): Remove function. | |
11414 | (process_next_line): New variable 'inline_cmd'. | |
11415 | Adjust 'if' clauses for "python", "compile" and "guile" to use | |
11416 | 'command_name_equals' and check for '!inline_cmd'. | |
11417 | ||
51ed89aa SDJ |
11418 | 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com> |
11419 | ||
11420 | PR cli/21688 | |
11421 | * cli/cli-script.c (command_name_equals_not_inline): New function. | |
11422 | (process_next_line): Adjust 'if' clauses for "python", "compile" | |
11423 | and "guile" to use command_name_equals_not_inline. | |
11424 | ||
eb17d413 PA |
11425 | 2017-06-29 Pedro Alves <palves@redhat.com> |
11426 | ||
11427 | * completer.c (expression_completer): Call | |
11428 | linespec_location_completer instead of location_completer. | |
11429 | ||
195bcdd5 PA |
11430 | 2017-06-29 Pedro Alves <palves@redhat.com> |
11431 | ||
11432 | * completer.c (expression_completer): Remove code that recomputes | |
11433 | 'text' from 'word'. | |
11434 | ||
adc764e7 YQ |
11435 | 2017-06-29 Yao Qi <yao.qi@linaro.org> |
11436 | ||
11437 | * regformats/regdat.sh: Generate code with | |
11438 | "ifndef IN_PROCESS_AGENT". | |
11439 | ||
6e75794e PA |
11440 | 2017-06-28 Pedro Alves <palves@redhat.com> |
11441 | ||
11442 | * command.h: Include "common/scoped_restore.h". | |
11443 | ||
bc491f2e YQ |
11444 | 2017-06-28 Yao Qi <yao.qi@linaro.org> |
11445 | ||
11446 | * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str | |
11447 | instead of obstack_grow. | |
11448 | ||
41664b45 DG |
11449 | 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com> |
11450 | ||
11451 | PR gdb/21337 | |
11452 | * symfile.c (reread_symbols): Call objfiles_changed just before | |
11453 | read_symbols. | |
11454 | ||
6da67eb1 PA |
11455 | 2017-06-27 Pedro Alves <palves@redhat.com> |
11456 | ||
11457 | * symtab.c (COMPLETION_LIST_ADD_SYMBOL) | |
11458 | (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ... | |
11459 | (completion_list_add_symbol, completion_list_add_msymbol): | |
11460 | ... these new functions. | |
11461 | (add_symtab_completions) | |
11462 | (default_make_symbol_completion_list_break_on_1): Adjust. | |
11463 | ||
23732b1e PA |
11464 | 2017-06-27 Pedro Alves <palves@redhat.com> |
11465 | ||
11466 | * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of | |
11467 | bfd_zalloc. Call objfile_per_bfd_storage's ctor. | |
11468 | (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's | |
11469 | dtor. | |
11470 | * objfiles.h (objfile_per_bfd_storage): Add ctor. Make | |
11471 | 'storage_obstack' field an auto_obstack. In-class initialize all | |
11472 | non-bitfield fields. Make minsyms_read bool. | |
11473 | * symfile.c (read_symbols): Adjust. | |
11474 | ||
a4d1e79a AH |
11475 | 2017-06-27 Alan Hayward <alan.hayward@arm.com> |
11476 | ||
11477 | * remote-sim.c (gdbsim_fetch_register): Use byte_vector. | |
11478 | (gdbsim_store_register): Likewise. | |
11479 | ||
8268c778 PA |
11480 | 2017-06-27 Pedro Alves <palves@redhat.com> |
11481 | ||
11482 | * c-exp.y (name_obstack): Now an auto_obstack. | |
11483 | (yylex): Use auto_obstack::clear. | |
11484 | (c_parse): Use auto_obstack::clear instead of reinitializing and | |
11485 | freeing the obstack. | |
11486 | * c-lang.c (evaluate_subexp_c): Use auto_obstack. | |
11487 | * d-exp.y (name_obstack): Now an auto_obstack. | |
11488 | (yylex): Use auto_obstack::clear. | |
11489 | (d_parse): Use auto_obstack::clear instead of reinitializing and | |
11490 | freeing the obstack. | |
11491 | * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use | |
11492 | auto_obstack. | |
11493 | * dwarf2read.c (create_addrmap_from_index) | |
11494 | (dwarf2_build_psymtabs_hard) | |
11495 | (update_enumeration_type_from_children): Likewise. | |
11496 | * gdb_obstack.h (auto_obstack): New type. | |
11497 | * go-exp.y (name_obstack): Now an auto_obstack. | |
11498 | (build_packaged_name): Use auto_obstack::clear. | |
11499 | (go_parse): Use auto_obstack::clear instead of reinitializing and | |
11500 | freeing the obstack. | |
11501 | * linux-tdep.c (linux_make_mappings_corefile_notes): Use | |
11502 | auto_obstack. | |
11503 | * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack. | |
11504 | * rust-exp.y (work_obstack): Now an auto_obstack. | |
11505 | (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of | |
11506 | reinitializing and freeing the obstack. | |
11507 | * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete. | |
11508 | (host_char_to_target): Use auto_obstack. | |
11509 | * utils.h (make_cleanup_obstack_free): Delete declaration. | |
11510 | * valprint.c (generic_emit_char, generic_printstr): Use | |
11511 | auto_obstack. | |
11512 | ||
db665f42 SM |
11513 | 2017-06-27 Simon Marchi <simon.marchi@ericsson.com> |
11514 | ||
11515 | * darwin-nat.c (darwin_check_new_threads): Don't handle dummy | |
11516 | thread. | |
11517 | (darwin_init_thread_list): Don't update dummy thread. | |
11518 | (darwin_create_inferior, darwin_attach): Don't add a dummy thread. | |
11519 | ||
873c0814 SM |
11520 | 2017-06-26 Simon Marchi <simon.marchi@ericsson.com> |
11521 | ||
11522 | * record-full.c (netorder16): Remove. | |
11523 | ||
8b5a7a6e SM |
11524 | 2017-06-26 Simon Marchi <simon.marchi@ericsson.com> |
11525 | ||
11526 | * common/diagnostics.h: Define macros for GCC. | |
11527 | (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro. | |
11528 | * common/vec.h: Include diagnostics.h. | |
11529 | (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro. | |
11530 | (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function | |
11531 | warning. | |
11532 | ||
d1435379 SM |
11533 | 2017-06-26 Simon Marchi <simon.marchi@ericsson.com> |
11534 | ||
11535 | * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER): | |
11536 | New macro. | |
11537 | * ada-lex.l: Ignore deprecated register warnings. | |
11538 | ||
cc75e0fd SM |
11539 | 2017-06-25 Simon Marchi <simon.marchi@ericsson.com> |
11540 | ||
11541 | * main.c (get_init_files): Replace "SYSTEM_GDBINIT + | |
11542 | datadir_len" with "&SYSTEM_GDBINIT[datadir_len]". | |
11543 | ||
07809eaf SM |
11544 | 2017-06-25 Simon Marchi <simon.marchi@ericsson.com> |
11545 | ||
11546 | * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on | |
11547 | its own line. | |
11548 | ||
f076f034 SM |
11549 | 2017-06-25 Simon Marchi <simon.marchi@ericsson.com> |
11550 | ||
11551 | * nat/x86-dregs.c (x86_show_dr): Print registers one per line. | |
11552 | ||
0dd5cbc5 AH |
11553 | 2017-06-23 Alan Hayward <alan.hayward@arm.com> |
11554 | ||
11555 | * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add. | |
11556 | (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE. | |
11557 | (xtensa_register_read_masked): Likewise. | |
11558 | ||
d4c6ce5b SDJ |
11559 | 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com> |
11560 | ||
11561 | * common/environ.c (gdb_environ::unset): Update comment. | |
11562 | ||
16892a03 AH |
11563 | 2017-06-22 Alan Hayward <alan.hayward@arm.com> |
11564 | ||
11565 | * python/py-unwind.c (pyuw_sniffer): Allocate space for | |
11566 | registers. | |
11567 | ||
d7dcbefc AH |
11568 | 2017-06-22 Alan Hayward <alan.hayward@arm.com> |
11569 | ||
11570 | * record-full.c (record_full_exec_insn): Use byte_vector. | |
11571 | ||
b30ff123 YQ |
11572 | 2017-06-22 Yao Qi <yao.qi@linaro.org> |
11573 | ||
11574 | * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated. | |
11575 | * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated. | |
11576 | ||
4fa847d7 AH |
11577 | 2017-06-22 Alan Hayward <alan.hayward@arm.com> |
11578 | ||
11579 | * remote.c (cached_reg): Move from here... | |
11580 | * regcache.h (cached_reg): ...to here. | |
11581 | * python/py-unwind.c (struct reg_info): Remove. | |
11582 | (cached_frame_info): Use cached_reg_t. | |
11583 | (pyuw_prev_register): Likewise. | |
11584 | (pyuw_sniffer): Use cached_reg_t and allocate registers. | |
11585 | (pyuw_dealloc_cache): Free all registers. | |
11586 | ||
f4906a9a PA |
11587 | 2017-06-22 Pedro Alves <palves@redhat.com> |
11588 | Simon Marchi <simon.marchi@ericsson.com> | |
11589 | ||
11590 | * unittests/environ-selftests.c (run_tests): Ignore -Wself-move | |
11591 | warning. | |
11592 | * common/diagnostics.h: New file. | |
11593 | ||
b45a1208 PA |
11594 | 2017-06-22 Pedro Alves <palves@redhat.com> |
11595 | ||
11596 | * common/agent.h: Add include guards. | |
11597 | ||
e4da2c61 SM |
11598 | 2017-06-21 Simon Marchi <simon.marchi@ericsson.com> |
11599 | ||
11600 | * target.h (struct target_ops) <to_xfer_partial>: Update doc to | |
11601 | talk about addressable units instead of bytes. | |
11602 | ||
96160d60 SDJ |
11603 | 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com> |
11604 | ||
11605 | * common/environ.c (gdb_environ::unset): Use '::iterator' instead | |
11606 | of '::const_iterator'. | |
11607 | ||
9a6c7d9c SDJ |
11608 | 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com> |
11609 | ||
11610 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
11611 | 'unittests/environ-selftests.c'. | |
11612 | (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'. | |
11613 | * charset.c (find_charset_names): Declare object 'iconv_env'. | |
11614 | Update code to use 'iconv_env' object. Remove call to | |
11615 | 'free_environ'. | |
11616 | * common/environ.c: Include <utility>. | |
11617 | (make_environ): Delete function. | |
11618 | (free_environ): Delete function. | |
11619 | (gdb_environ::clear): New function. | |
11620 | (gdb_environ::operator=): New function. | |
11621 | (gdb_environ::get): Likewise. | |
11622 | (environ_vector): Delete function. | |
11623 | (set_in_environ): Delete function. | |
11624 | (gdb_environ::set): New function. | |
11625 | (unset_in_environ): Delete function. | |
11626 | (gdb_environ::unset): New function. | |
11627 | (gdb_environ::envp): Likewise. | |
11628 | * common/environ.h: Include <vector>. | |
11629 | (struct gdb_environ): Delete; transform into... | |
11630 | (class gdb_environ): ... this class. | |
11631 | (free_environ): Delete prototype. | |
11632 | (init_environ, get_in_environ, set_in_environ, unset_in_environ, | |
11633 | environ_vector): Likewise. | |
11634 | * infcmd.c (run_command_1): Update code to call | |
11635 | 'envp' from 'gdb_environ' class. | |
11636 | (environment_info): Update code to call methods from 'gdb_environ' | |
11637 | class. | |
11638 | (unset_environment_command): Likewise. | |
11639 | (path_info): Likewise. | |
11640 | (path_command): Likewise. | |
11641 | * inferior.c (inferior::~inferior): Delete call to 'free_environ'. | |
11642 | (inferior::inferior): Initialize 'environment' using the host's | |
11643 | information. | |
11644 | * inferior.h: Remove forward declaration of 'struct gdb_environ'. | |
11645 | Include "environ.h". | |
11646 | (class inferior) <environment>: Change type from 'struct | |
11647 | gdb_environ' to 'gdb_environ'. | |
11648 | * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call | |
11649 | methods from 'gdb_environ' class. | |
11650 | * solib.c (solib_find_1): Likewise | |
11651 | * unittests/environ-selftests.c: New file. | |
11652 | ||
75c554cf YQ |
11653 | 2017-06-20 Yao Qi <yao.qi@linaro.org> |
11654 | ||
11655 | * features/i386/i386-linux.xml: Exchange the order of including | |
11656 | 32bit-linux.xml and 32bit-sse.xml. | |
11657 | * features/i386/i386-linux.c: Regenerated. | |
11658 | ||
72ddacb7 YQ |
11659 | 2017-06-20 Yao Qi <yao.qi@linaro.org> |
11660 | ||
11661 | * target-descriptions.c (tdesc_reg): Add ctor, dtor. | |
11662 | Delete copy ctor and assignment operator. | |
11663 | (tdesc_type): Likewise. | |
11664 | (tdesc_feature): Likewise. | |
11665 | (tdesc_free_reg): Remove. | |
11666 | (tdesc_create_reg): Use new. | |
11667 | (tdesc_free_type): Remove. | |
11668 | (tdesc_create_vector): Use new. | |
11669 | (tdesc_create_union): Likewise. | |
11670 | (tdesc_create_flags): Likewise. | |
11671 | (tdesc_create_enum): Likewise. | |
11672 | (tdesc_free_feature): Delete. | |
11673 | (free_target_description): Use delete. | |
11674 | ||
325c9fd4 JB |
11675 | 2017-06-19 John Baldwin <jhb@FreeBSD.org> |
11676 | ||
11677 | * mips-tdep.c (print_gp_register_row): Don't error for unavailable | |
11678 | registers. | |
11679 | ||
16b7a719 PA |
11680 | 2017-06-19 Pedro Alves <palves@redhat.com> |
11681 | ||
11682 | * dwarf2read.c (write_psymtabs_to_index): Construct file_closer | |
11683 | after gdb::unlinker. | |
11684 | ||
1c8e01c9 SDJ |
11685 | 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com> |
11686 | ||
11687 | * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of | |
11688 | gdb_environ to access an environment variable. | |
11689 | ||
ffce45d2 TP |
11690 | 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com> |
11691 | ||
11692 | * nat/linux-ptrace.c (linux_fork_to_function): Add cast to | |
11693 | gdb_byte*. | |
11694 | ||
1d4fbac9 SM |
11695 | 2017-06-17 Simon Marchi <simon.marchi@ericsson.com> |
11696 | ||
11697 | * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF. | |
11698 | ||
8465943a SM |
11699 | 2017-06-17 Simon Marchi <simon.marchi@ericsson.com> |
11700 | ||
11701 | * configure: Re-generate. | |
11702 | * warning.m4 (build_warnings): Add -Wno-mismatched-tags. | |
11703 | ||
3e019bdc SM |
11704 | 2017-06-17 Simon Marchi <simon.marchi@ericsson.com> |
11705 | ||
11706 | * configure: Re-generate. | |
11707 | * warning.m4: Pass -Werror to compiler when checking for | |
11708 | supported warning flags. | |
11709 | ||
cf0dd6f0 SM |
11710 | 2017-06-17 Simon Marchi <simon.marchi@ericsson.com> |
11711 | ||
11712 | * Makefile.in (COMPILE.pre): Add "-x c++". | |
11713 | ||
6f98355c YQ |
11714 | 2017-06-16 Alan Hayward <alan.hayward@arm.com> |
11715 | Pedro Alves <palves@redhat.com> | |
11716 | Yao Qi <yao.qi@linaro.org> | |
11717 | ||
11718 | * defs.h (RequireLongest): New. | |
11719 | (extract_integer): Declare function template. | |
11720 | (extract_signed_integer): Remove the declaration, but define it | |
11721 | static inline. | |
11722 | (extract_unsigned_integer): Likewise. | |
11723 | (store_integer): Declare function template. | |
11724 | (store_signed_integer): Remove the declaration, but define it | |
11725 | static inline. | |
11726 | (store_unsigned_integer): Likewise. | |
11727 | * findvar.c (extract_integer): New function template. | |
11728 | (extract_signed_integer): Remove. | |
11729 | (extract_unsigned_integer): Remove. | |
11730 | (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit | |
11731 | instantiations. | |
11732 | (store_integer): New function template. | |
11733 | (store_signed_integer): Remove. | |
11734 | (store_unsigned_integer): Remove. | |
11735 | (store_integer): Explicit instantiations. | |
11736 | * regcache.c (regcache_raw_read_signed): Update. | |
11737 | (regcache::raw_read): New function. | |
11738 | (regcache::raw_read_signed): Remove. | |
11739 | (regcache::raw_read_unsigned): Remove. | |
11740 | (regcache_raw_read_unsigned): Update. | |
11741 | (regcache_raw_write_unsigned): Update. | |
11742 | (regcache::raw_write_signed): Remove. | |
11743 | (regcache::raw_write): New function. | |
11744 | (regcache_cooked_read_signed): Update. | |
11745 | (regcache::raw_write_unsigned): Remove. | |
11746 | (regcache::cooked_read_signed): Remove. | |
11747 | (regcache_cooked_read_unsigned): Update. | |
11748 | (regcache::cooked_read_unsigned): Remove. | |
11749 | (regcache_cooked_write_signed): Update. | |
11750 | (regcache_cooked_write_unsigned): Update. | |
11751 | * regcache.h (regcache) <raw_read_signed>: Remove. | |
11752 | <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove. | |
11753 | <raw_read, raw_write>: New. | |
11754 | <cooked_read_signed, cooked_write_signed>: Remove. | |
11755 | <cooked_write_unsigned, cooked_read_unsigned>: Remove. | |
11756 | <cooked_read, cooked_write>: New. | |
11757 | * sh64-tdep.c (sh64_pseudo_register_read): Update. | |
11758 | (sh64_pseudo_register_write): Update. | |
11759 | ||
a87dc45a AK |
11760 | 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com> |
11761 | ||
11762 | * arc-tdep.c (arc_disassembler_options): New variable. | |
11763 | (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead | |
11764 | of default_print_insn. | |
11765 | (arc_delayed_print_insn): Set info->section when needed, | |
11766 | use default_print_insn to retrieve a disassembler. | |
11767 | ||
45159d6a SDJ |
11768 | 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com> |
11769 | ||
11770 | PR gdb/21574 | |
11771 | * infcmd.c (_initialize_infcmd): Expand "help run" documentation | |
11772 | to mention $SHELL and startup-with-shell. | |
11773 | ||
b46c4cf0 MF |
11774 | 2017-06-14 Max Filippov <jcmvbkbc@gmail.com> |
11775 | ||
11776 | * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers. | |
11777 | ||
6394c606 YQ |
11778 | 2017-06-14 Yao Qi <yao.qi@linaro.org> |
11779 | ||
11780 | * aarch64-tdep.c (aarch64_gdb_print_insn): Call | |
11781 | default_print_insn instead of print_insn_aarch64. | |
11782 | * arm-tdep.c (gdb_print_insn_arm): Call | |
11783 | default_print_insn instead of print_insn_big_arm | |
11784 | and print_insn_little_arm. | |
11785 | * i386-tdep.c (i386_print_insn): Call default_print_insn | |
11786 | instead of print_insn_i386. | |
11787 | * ia64-tdep.c (ia64_print_insn): Call | |
11788 | default_print_insn instead of print_insn_ia64. | |
11789 | * mips-tdep.c (gdb_print_insn_mips): Call | |
11790 | default_print_insn instead of print_insn_big_mips | |
11791 | and print_insn_little_mips. | |
11792 | * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn | |
11793 | instead of print_insn_spu. | |
11794 | ||
d5722aa2 PA |
11795 | 2017-06-14 Pedro Alves <palves@redhat.com> |
11796 | ||
11797 | * ada-lang.c: Include "common/byte-vector.h". | |
11798 | (ada_value_primitive_packed_val): Use gdb::byte_vector. | |
11799 | * charset.c (wchar_iterator::iterate): Resize the vector instead | |
11800 | of reserving it. | |
11801 | * common/byte-vector.h: Include "common/def-vector.h". | |
11802 | (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>. | |
11803 | * cli/cli-dump.c: Include "common/byte-vector.h". | |
11804 | (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector. | |
11805 | * common/byte-vector.h: New file. | |
11806 | * common/def-vector.h: New file. | |
11807 | * common/default-init-alloc.h: New file. | |
11808 | * dwarf2loc.c: Include "common/byte-vector.h". | |
11809 | (rw_pieced_value): Use gdb::byte_vector, and resize the vector | |
11810 | instead of reserving it. | |
11811 | * dwarf2read.c: Include "common/byte-vector.h". | |
11812 | (data_buf::m_vec): Now a gdb::byte_vector. | |
11813 | * gdb_regex.c: Include "common/def-vector.h". | |
11814 | (compiled_regex::compiled_regex): Use gdb::def_vector<char>. | |
11815 | * mi/mi-main.c: Include "common/byte-vector.h". | |
11816 | (mi_cmd_data_read_memory): Use gdb::byte_vector. | |
11817 | * printcmd.c: Include "common/byte-vector.h". | |
11818 | (print_scalar_formatted): Use gdb::byte_vector. | |
11819 | * valprint.c: Include "common/byte-vector.h". | |
11820 | (maybe_negate_by_bytes, print_decimal_chars): Use | |
11821 | gdb::byte_vector. | |
11822 | ||
01ec7a27 SM |
11823 | 2017-06-13 Simon Marchi <simon.marchi@ericsson.com> |
11824 | ||
11825 | * darwin-nat.c: Include "nat/fork-inferior.h". | |
11826 | ||
848d9074 SM |
11827 | 2017-06-13 Simon Marchi <simon.marchi@ericsson.com> |
11828 | ||
11829 | * configure.nat: Factor out Darwin bits that are not | |
11830 | architecture-specific. Add fork-inferior.o. | |
11831 | ||
3b912944 SM |
11832 | 2017-06-13 Simon Marchi <simon.marchi@ericsson.com> |
11833 | ||
11834 | * configure.nat: Factor out AIX bits that are not | |
11835 | architecture-specific. Add fork-inferior.o. | |
11836 | ||
55acdf22 AA |
11837 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
11838 | ||
11839 | * dwarf2loc.c (rw_pieced_value): New. Merge logic from... | |
11840 | (read_pieced_value, write_pieced_value): ...here. Reduce to | |
11841 | wrappers that just call rw_pieced_value. | |
11842 | ||
f65e2044 AA |
11843 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
11844 | ||
11845 | * dwarf2loc.c (write_pieced_value): When writing the data for a | |
11846 | memory piece, use write_memory_with_notification instead of | |
11847 | write_memory. | |
11848 | ||
23f945bf AA |
11849 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
11850 | ||
11851 | * valops.c (read_value_memory): Change embedded_offset to | |
11852 | represent a bit offset instead of a byte offset. | |
11853 | * value.h (read_value_memory): Adjust comment. | |
11854 | ||
f236533e AA |
11855 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
11856 | ||
11857 | * dwarf2loc.c (read_pieced_value): Remove unnecessary variables | |
11858 | dest_offset_bits and source_offset_bits. | |
11859 | (write_pieced_value): Likewise. | |
11860 | ||
65d84b76 AA |
11861 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
11862 | ||
11863 | * dwarf2loc.c (read_pieced_value): Respect the piece offset, as | |
11864 | given by DW_OP_bit_piece. | |
11865 | (write_pieced_value): Likewise. | |
11866 | ||
242d31ab AA |
11867 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
11868 | ||
11869 | * dwarf2loc.c (read_pieced_value): Move the buffer allocation and | |
11870 | some other preparations to the places where sufficient information | |
11871 | is available. | |
11872 | (write_pieced_value): Likewise. | |
11873 | ||
03c8af18 AA |
11874 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
11875 | ||
11876 | * dwarf2loc.c (bits_to_bytes): New function. | |
11877 | (read_pieced_value): Fix offset calculations for register pieces | |
11878 | on big-endian targets. | |
11879 | (write_pieced_value): Likewise. | |
11880 | ||
840989c1 AA |
11881 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
11882 | ||
11883 | * dwarf2loc.c (read_pieced_value): Remove buffer_size variable. | |
11884 | (write_pieced_value): Likewise. | |
11885 | ||
359b19bb AA |
11886 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
11887 | ||
11888 | * dwarf2loc.c (write_pieced_value): When writing to a bit-field, | |
11889 | transfer the source value's least significant bits, instead of its | |
11890 | lowest-addressed ones. Rename type_len to max_offset. | |
11891 | (read_pieced_value): Mirror above changes to write_pieced_value as | |
11892 | applicable. | |
11893 | ||
07c9ca3b AA |
11894 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
11895 | ||
11896 | * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY, | |
11897 | truncate full bytes from dest_offset_bits before using it as an | |
11898 | offset into the buffer. | |
11899 | ||
f1cc9874 AA |
11900 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
11901 | ||
11902 | * dwarf2loc.c (write_pieced_value): Include transfer size in | |
11903 | byte-wise check. | |
11904 | ||
cdaac320 AA |
11905 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
11906 | ||
11907 | * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the | |
11908 | calculation of this_size. | |
11909 | ||
af547a96 AA |
11910 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
11911 | ||
11912 | * dwarf2loc.c (read_pieced_value): Respect parent value's offset | |
11913 | when targeting a bit-field. | |
11914 | (write_pieced_value): Likewise. | |
11915 | ||
ddd7882a AA |
11916 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
11917 | ||
11918 | * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field. | |
11919 | (allocate_piece_closure): Drop addr_size parameter. | |
11920 | (dwarf2_evaluate_loc_desc_full): Adjust call to | |
11921 | allocate_piece_closure. | |
11922 | ||
e9352324 AA |
11923 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
11924 | ||
11925 | PR gdb/21226 | |
11926 | * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at | |
11927 | the LSB end, independent of endianness. | |
11928 | ||
d5d1163e AA |
11929 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
11930 | ||
11931 | * dwarf2loc.c (write_pieced_value): Fix order of calculations for | |
11932 | size capping. | |
11933 | ||
032bb6ea YQ |
11934 | 2017-06-13 Yao Qi <yao.qi@linaro.org> |
11935 | ||
11936 | * mips-linux-nat.c: Move include features/mips*-linux.c to | |
11937 | mips-linux-tdep.c. | |
11938 | (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls | |
11939 | to mips-linux-tdep.c. | |
11940 | * mips-linux-tdep.c: Include features/mips*-linux.c | |
11941 | (_initialize_mips_linux_tdep): Call initialize_tdesc_mips* | |
11942 | functions. | |
11943 | * mips-linux-tdep.h (tdesc_mips_linux): Declare. | |
11944 | (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare. | |
11945 | (tdesc_mips64_dsp_linux): Declare. | |
11946 | ||
f12f6bad TT |
11947 | 2017-06-12 Tom Tromey <tom@tromey.com> |
11948 | ||
11949 | * valprint.h (val_print_type_code_int): Remove. | |
11950 | * valprint.c (generic_val_print_int): Always call | |
11951 | val_print_scalar_formatted. | |
11952 | (val_print_type_code_int): Remove. | |
11953 | * printcmd.c (print_scalar_formatted): Handle options->format==0. | |
11954 | * f-valprint.c (f_val_print): Use val_print_scalar_formatted. | |
11955 | * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted. | |
11956 | * ada-valprint.c (ada_val_print_num): Use | |
11957 | val_print_scalar_formatted. | |
11958 | ||
d9109c80 TT |
11959 | 2017-06-12 Tom Tromey <tom@tromey.com> |
11960 | ||
11961 | * printcmd.c (print_scalar_formatted): Unify the two switches. | |
11962 | Don't convert scalars to LONGEST. | |
11963 | ||
4ac0cb1c TT |
11964 | 2017-06-12 Tom Tromey <tom@tromey.com> |
11965 | ||
11966 | PR exp/16225: | |
11967 | * valprint.h (print_decimal_chars): Update. | |
11968 | * valprint.c (maybe_negate_by_bytes): New function. | |
11969 | (print_decimal_chars): Add "is_signed" argument. | |
11970 | * printcmd.c (print_scalar_formatted): Update. | |
11971 | ||
30a25466 TT |
11972 | 2017-06-12 Tom Tromey <tom@tromey.com> |
11973 | ||
11974 | PR exp/16225: | |
11975 | * valprint.h (print_binary_chars, print_hex_chars): Update. | |
11976 | * valprint.c (val_print_type_code_int): Update. | |
11977 | (print_binary_chars): Add "zero_pad" argument. | |
11978 | (emit_octal_digit): New function. | |
11979 | (print_octal_chars): Don't zero-pad. | |
11980 | (print_decimal_chars): Likewise. | |
11981 | (print_hex_chars): Add "zero_pad" argument. | |
11982 | * sh64-tdep.c (sh64_do_fp_register): Update. | |
11983 | * regcache.c (regcache::dump): Update. | |
11984 | * printcmd.c (print_scalar_formatted): Update. | |
11985 | * infcmd.c (default_print_one_register_info): Update. | |
11986 | ||
b3464d03 PA |
11987 | 2017-06-12 Pedro Alves <palves@redhat.com> |
11988 | Alan Hayward <alan.hayward@arm.com> | |
11989 | ||
11990 | * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New. | |
11991 | (mips_eabi_push_dummy_call): Rename local 'regsize' to | |
11992 | 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and | |
11993 | use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it. | |
11994 | Assert that abi_regsize bytes fit in 'ref_valbuf'. | |
11995 | ||
4b76cda9 PA |
11996 | 2017-06-12 Pedro Alves <palves@redhat.com> |
11997 | ||
11998 | * dwarf2read.c (mapped_symtab::data): Now a vector of | |
11999 | symtab_index_entry instead of vector of | |
12000 | std::unique_ptr<symtab_index_entry>. All users adjusted to check | |
12001 | whether an element's name is NULL instead of checking whether the | |
12002 | element itself is NULL. | |
12003 | (find_slot): Change return type. Adjust. | |
12004 | (hash_expand, , add_index_entry, uniquify_cu_indices) | |
12005 | (write_hash_table): Adjust. | |
12006 | ||
e8f8bcb3 PA |
12007 | 2017-06-12 Pedro Alves <palves@redhat.com> |
12008 | ||
12009 | * dwarf2read.c (recursively_count_psymbols): New function. | |
12010 | (write_psymtabs_to_index): Call it to compute number of psyms and | |
12011 | pass estimate size of psyms_seen to unordered_set's ctor. | |
12012 | ||
70a1152b PA |
12013 | 2017-06-12 Pedro Alves <palves@redhat.com> |
12014 | ||
12015 | * dwarf2read.c (write_hash_table): Check if key already exists | |
12016 | before emplacing. | |
12017 | ||
c2f134ac PA |
12018 | 2017-06-12 Pedro Alves <palves@redhat.com> |
12019 | ||
12020 | * dwarf2read.c (data_buf::append_space): Rename to... | |
12021 | (data_buf::grow): ... this, and make private. Adjust all callers. | |
12022 | (data_buf::append_uint): New method. | |
12023 | (add_address_entry, write_one_signatured_type) | |
12024 | (write_psymtabs_to_index): Use it. | |
12025 | ||
a81e6d4d PA |
12026 | 2017-06-12 Pedro Alves <palves@redhat.com> |
12027 | ||
12028 | * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete. | |
12029 | (file_write (FILE *, const std::vector<Elem>&)): Delete. | |
12030 | (data_buf::file_write): Call ::fwrite directly. | |
12031 | ||
6fd931f2 PA |
12032 | 2017-06-12 Pedro Alves <palves@redhat.com> |
12033 | ||
12034 | * dwarf2read.c (uniquify_cu_indices): Use std::unique and | |
12035 | std::vector::erase. | |
12036 | ||
bc8f2430 JK |
12037 | 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
12038 | ||
12039 | Code cleanup: C++ify .gdb_index producer. | |
12040 | * dwarf2read.c: Include <unordered_set> and <unordered_map>. | |
12041 | (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type. | |
12042 | (struct strtab_entry, hash_strtab_entry, eq_strtab_entry) | |
12043 | (create_strtab, add_string): Remove. | |
12044 | (file_write, data_buf): New. | |
12045 | (struct symtab_index_entry): Use std::vector for cu_indices. | |
12046 | (struct mapped_symtab): Use std::vector for data. | |
12047 | (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry) | |
12048 | (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab): | |
12049 | Remove. | |
12050 | (find_slot): Change return type. Update it to the new data structures. | |
12051 | (hash_expand, add_index_entry): Update it to the new data structures. | |
12052 | (offset_type_compare): Remove. | |
12053 | (uniquify_cu_indices): Update it to the new data structures. | |
12054 | (c_str_view, c_str_view_hasher, vector_hasher): New. | |
12055 | (add_indices_to_cpool): Remove. | |
12056 | (write_hash_table): Update it to the new data structures. | |
12057 | (struct psymtab_cu_index_map, hash_psymtab_cu_index) | |
12058 | (eq_psymtab_cu_index): Remove. | |
12059 | (psym_index_map): New typedef. | |
12060 | (struct addrmap_index_data): Change addr_obstack pointer to data_buf | |
12061 | reference and std::unordered_map for cu_index_htab. | |
12062 | (add_address_entry, add_address_entry_worker, write_address_map) | |
12063 | (write_psymbols): Update it to the new data structures. | |
12064 | (write_obstack): Remove. | |
12065 | (struct signatured_type_index_data): Change types_list to a data_buf | |
12066 | reference and psyms_seen to a std::unordered_set reference. | |
12067 | (write_one_signatured_type, recursively_write_psymbols) | |
12068 | (write_psymtabs_to_index): Update it to the new data structures. | |
12069 | ||
c4dcb155 SM |
12070 | 2017-06-11 Simon Marchi <simon.marchi@ericsson.com> |
12071 | ||
12072 | * NEWS (Changes since GDB 8.0): Announce {set,show} debug | |
12073 | separate-debug-file commands. | |
12074 | * symfile.h (separate_debug_file_debug): New global. | |
12075 | * symfile.c (separate_debug_file_debug): New global. | |
12076 | (separate_debug_file_exists, find_separate_debug_file): Add | |
12077 | debug output. | |
12078 | (_initialize_symfile): Add "set debug separate-debug-file" | |
12079 | command. | |
12080 | * build-id.c (build_id_to_debug_bfd, | |
12081 | find_separate_debug_file_by_buildid): Add debug output. | |
12082 | ||
6d45d4b4 SM |
12083 | 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca> |
12084 | ||
12085 | * gdbarch.sh (displaced_step_free_closure): Remove. | |
12086 | * gdbarch.h, gdbarch.c: Re-generate. | |
12087 | * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set | |
12088 | displaced_step_free_closure. | |
12089 | * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise. | |
12090 | * arm-linux-tdep.c (arm_linux_init_abi): Likewise. | |
12091 | * i386-linux-tdep.c (i386_linux_init_abi): Likewise. | |
12092 | * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise. | |
12093 | * rs6000-tdep.c (rs6000_gdbarch_init): Likewise. | |
12094 | * s390-linux-tdep.c (s390_gdbarch_init): Likewise. | |
12095 | * arch-utils.h (simple_displaced_step_free_closure): Remove. | |
12096 | * arch-utils.c (simple_displaced_step_free_closure): Remove. | |
12097 | * infrun.c (displaced_step_clear): Call xfree instead of | |
12098 | gdbarch_displaced_step_free_closure. | |
12099 | ||
2f91880f SDJ |
12100 | 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com> |
12101 | ||
12102 | * common/common-utils.c (stringify_argv): Check for "arg[0] != | |
12103 | NULL". | |
12104 | ||
b8b6e72f AH |
12105 | 2017-06-08 Alan Hayward <alan.hayward@arm.com> |
12106 | ||
12107 | * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add. | |
12108 | (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE. | |
12109 | (mn10300_push_dummy_call): Likewise. | |
12110 | ||
5369082e AH |
12111 | 2017-06-08 Alan Hayward <alan.hayward@arm.com> |
12112 | ||
12113 | * mi/mi-main.c (register_changed_p): Use value_contents_eq. | |
12114 | ||
ff4ca5ac AH |
12115 | 2017-06-08 Alan Hayward <alan.hayward@arm.com> |
12116 | ||
12117 | * mi/mi-main.c (register_changed_p): Use cooked_read_value. | |
12118 | ||
aefd8b33 SDJ |
12119 | 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com> |
12120 | ||
12121 | * NEWS (Changes since GDB 8.0): Announce that GDBserver is now | |
12122 | able to start inferiors using a shell. | |
12123 | (New remote packets): Announce new packet "QStartupWithShell". | |
12124 | * remote.c: Add PACKET_QStartupWithShell. | |
12125 | (extended_remote_create_inferior): Handle new | |
12126 | PACKET_QStartupWithShell. | |
12127 | (remote_protocol_features) <QStartupWithShell>: New entry for | |
12128 | PACKET_QStartupWithShell. | |
12129 | (_initialize_remote): Call "add_packet_config_cmd" for | |
12130 | QStartupShell. | |
12131 | ||
2090129c SDJ |
12132 | 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com> |
12133 | Pedro Alves <palves@redhat.com> | |
12134 | ||
12135 | * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h" | |
12136 | and "nat/fork-inferior.h". | |
12137 | * common/common-inferior.h: New file, with contents from | |
12138 | "gdb/inferior.h". | |
12139 | * commom/common-utils.c: Include "common-utils.h". | |
12140 | (stringify_argv): New function. | |
12141 | * common/common-utils.h (stringify_argv): New prototype. | |
12142 | * configure.nat: Add "fork-inferior.o" as a dependency for | |
12143 | "*linux*", "fbsd*" and "nbsd*" hosts. | |
12144 | * corefile.c (get_exec_file): Update comment. | |
12145 | * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior" | |
12146 | instead of "startup_inferior". | |
12147 | (darwin_create_inferior): Call "add_thread_silent" after | |
12148 | "fork_inferior". | |
12149 | * fork-child.c: Cleanup unnecessary includes. | |
12150 | (SHELL_FILE): Move to "common/common-fork-child.c". | |
12151 | (environ): Likewise. | |
12152 | (exec_wrapper): Initialize. | |
12153 | (get_exec_wrapper): New function. | |
12154 | (breakup_args): Move to "common/common-fork-child.c"; rename to | |
12155 | "breakup_args_for_exec". | |
12156 | (escape_bang_in_quoted_argument): Move to | |
12157 | "common/common-fork-child.c". | |
12158 | (saved_ui): New variable. | |
12159 | (prefork_hook): New function. | |
12160 | (postfork_hook): Likewise. | |
12161 | (postfork_child_hook): Likewise. | |
12162 | (gdb_startup_inferior): Likewise. | |
12163 | (fork_inferior): Move to "common/common-fork-child.c". Update | |
12164 | function to support gdbserver. | |
12165 | (startup_inferior): Likewise. | |
12166 | * gdbcore.h (get_exec_file): Remove declaration. | |
12167 | * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior" | |
12168 | instead of "startup_inferior". Call "add_thread_silent" after | |
12169 | "fork_inferior". | |
12170 | * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h". | |
12171 | (inf_ptrace_create_inferior): Call "gdb_startup_inferior" | |
12172 | instead of "startup_inferior". Call "add_thread_silent" after | |
12173 | "fork_inferior". | |
12174 | * inferior.h: Include "common-inferior.h". | |
12175 | (trace_start_error): Move to "common/common-utils.h". | |
12176 | (trace_start_error_with_name): Likewise. | |
12177 | (fork_inferior): Move prototype to "nat/fork-inferior.h". | |
12178 | (startup_inferior): Likewise. | |
12179 | (gdb_startup_inferior): New prototype. | |
12180 | * nat/fork-inferior.c: New file, with contents from "fork-child.c". | |
12181 | * nat/fork-inferior.h: New file. | |
12182 | * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior" | |
12183 | instead of "startup_inferior". Call "add_thread_silent" after | |
12184 | "fork_inferior". | |
12185 | * target.h (target_terminal_init): Move prototype to | |
12186 | "target/target.h". | |
12187 | (target_terminal_inferior): Likewise. | |
12188 | (target_terminal_ours): Likewise. | |
12189 | * target/target.h (target_terminal_init): New prototype, moved | |
12190 | from "target.h". | |
12191 | (target_terminal_inferior): Likewise. | |
12192 | (target_terminal_ours): Likewise. | |
12193 | * utils.c (gdb_flush_out_err): New function. | |
12194 | ||
043a4934 SDJ |
12195 | 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com> |
12196 | ||
12197 | * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h". | |
12198 | * common/common-gdbthread.h: New file, with parts from | |
12199 | "gdb/gdbthread.h". | |
12200 | * gdbthread.h: Include "common-gdbthread.h". | |
12201 | (switch_to_thread): Moved to "common/common-gdbthread.h". | |
12202 | ||
15652511 SDJ |
12203 | 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com> |
12204 | ||
12205 | * Makefile.in (SFILES): Add "common/job-control.c". | |
12206 | (HFILES_NO_SRCDIR): Add "common/job-control.h". | |
12207 | (COMMON_OBS): Add "job-control.o". | |
12208 | * common/job-control.c: New file, with contents from | |
12209 | "gdb/inflow.c". | |
12210 | * common/job-control.h: New file, with contents from "terminal.h". | |
12211 | * fork-child.c: Include "job-control.h". | |
12212 | * inflow.c: Include "job-control.h". | |
12213 | (gdb_setpgid): Move to "common/common-inflow.c". | |
12214 | (_initialize_inflow): Move setting of "job_control" to | |
12215 | "handle_job_control". | |
12216 | * terminal.h (job_control): Moved to "common/common-terminal.h". | |
12217 | (gdb_setpgid): Likewise. | |
12218 | * top.c: Include "job_control.h". | |
12219 | * utils.c: Likewise. | |
12220 | (job_control): Moved to "job-control.c". | |
12221 | ||
2d7cc5c7 PA |
12222 | 2017-06-07 Pedro Alves <palves@redhat.com> |
12223 | ||
12224 | * Makefile.in (SFILES): Add gdb_regex.c. | |
12225 | (COMMON_OBS): Add gdb_regex.o. | |
12226 | * ada-lang.c (ada_add_standard_exceptions) | |
12227 | (ada_add_exceptions_from_frame, name_matches_regex) | |
12228 | (ada_add_global_exceptions, ada_exceptions_list_1): Change regex | |
12229 | parameter type to compiled_regex. Adjust. | |
12230 | (ada_exceptions_list): Use compiled_regex. | |
12231 | * break-catch-throw.c (exception_catchpoint::pattern): Now a | |
12232 | std::unique_ptr<compiled_regex>. | |
12233 | (exception_catchpoint::~exception_catchpoint): Remove regfree | |
12234 | call. | |
12235 | (check_status_exception_catchpoint): Adjust to use compiled_regex. | |
12236 | (handle_gnu_v3_exceptions): Adjust to use compiled_regex. | |
12237 | * breakpoint.c (solib_catchpoint::compiled): Now a | |
12238 | std::unique_ptr<compiled_regex>. | |
12239 | (solib_catchpoint::~solib_catchpoint): Remove regfree call. | |
12240 | (check_status_catch_solib): Adjust to use compiled_regex. | |
12241 | (add_solib_catchpoint): Adjust to use compiled_regex. | |
12242 | * cli/cli-cmds.c (apropos_command): Use compiled_regex. | |
12243 | * cli/cli-decode.c (apropos_cmd): Change regex parameter to | |
12244 | compiled_regex reference. Adjust to use it. | |
12245 | * cli/cli-decode.h: Remove struct re_pattern_buffer forward | |
12246 | declaration. Include "gdb_regex.h". | |
12247 | (apropos_cmd): Change regex parameter to compiled_regex reference. | |
12248 | * gdb_regex.c: New file. | |
12249 | * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete | |
12250 | declarations. | |
12251 | (class compiled_regex): New. | |
12252 | * linux-tdep.c: Include "common/gdb_optional.h". | |
12253 | (struct mapping_regexes): New, factored out from | |
12254 | mapping_is_anonymous_p, and adjusted to use compiled_regex. | |
12255 | (mapping_is_anonymous_p): Use mapping_regexes wrapped in a | |
12256 | gdb::optional and remove cleanups. Adjust to compiled_regex. | |
12257 | * probe.c: Include "common/gdb_optional.h". | |
12258 | (collect_probes): Use compiled_regex and gdb::optional and remove | |
12259 | cleanups. | |
12260 | * skip.c: Include "common/gdb_optional.h". | |
12261 | (skiplist_entry::compiled_function_regexp): Now a | |
12262 | gdb::optional<compiled_regex>. | |
12263 | (skiplist_entry::compiled_function_regexp_is_valid): Delete field. | |
12264 | (free_skiplist_entry): Remove regfree call. | |
12265 | (compile_skip_regexp, skip_rfunction_p): Adjust to use | |
12266 | compiled_regex and gdb::optional. | |
12267 | * symtab.c: Include "common/gdb_optional.h". | |
12268 | (search_symbols): Use compiled_regex and gdb::optional. | |
12269 | * utils.c (do_regfree_cleanup, make_regfree_cleanup) | |
12270 | (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved | |
12271 | to gdb_regex.c. | |
12272 | ||
50d6adef AH |
12273 | 2017-06-07 Alan Hayward <alan.hayward@arm.com> |
12274 | ||
12275 | * regcache.c (regcache::save): Avoid buffer use. | |
12276 | (regcache::dump): Likewise. | |
12277 | ||
4a8a33c8 AH |
12278 | 2017-06-07 Alan Hayward <alan.hayward@arm.com> |
12279 | ||
12280 | * sh-tdep.c (sh_pseudo_register_read): Remove | |
12281 | MAX_REGISTER_SIZE. | |
12282 | (sh_pseudo_register_write): Likewise. | |
12283 | * sh64-tdep.c (sh64_pseudo_register_read): Likewise. | |
12284 | (sh64_pseudo_register_write): Likewise | |
12285 | ||
d1be909e AH |
12286 | 2017-06-07 Alan Hayward <alan.hayward@arm.com> |
12287 | ||
12288 | * aarch64-tdep.c (aarch64_store_return_value): Use | |
12289 | V_REGISTER_SIZE. | |
12290 | (aarch64_pseudo_read_value): Likewise. | |
12291 | (aarch64_pseudo_write): Likewise. | |
12292 | ||
f4a65042 YQ |
12293 | 2017-06-06 Yao Qi <yao.qi@linaro.org> |
12294 | ||
12295 | * regformats/regdef.h (set_register_cache): Remove the | |
12296 | declaration. | |
12297 | ||
9f7fb0aa AH |
12298 | 2017-06-06 Alan Hayward <alan.hayward@arm.com> |
12299 | ||
12300 | * frame.c (frame_unwind_register_signed): Use | |
12301 | frame_unwind_register_value. | |
12302 | ||
e1e01040 PA |
12303 | 2017-06-06 Pedro Alves <palves@redhat.com> |
12304 | ||
12305 | PR breakpoints/21553 | |
12306 | * breakpoint.c (create_breakpoints_sal_default) | |
12307 | (init_breakpoint_sal, create_breakpoint_sal): Use | |
12308 | gdb::unique_xmalloc_ptr for string parameters. | |
12309 | (create_breakpoint): Constify 'extra_string' and 'cond_string' | |
12310 | parameters. Replace cleanups with gdb::unique_xmalloc_ptr. | |
12311 | (base_breakpoint_create_breakpoints_sal) | |
12312 | (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal) | |
12313 | (strace_marker_create_breakpoints_sal) | |
12314 | (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for | |
12315 | string parameters. | |
12316 | * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use | |
12317 | gdb::unique_xmalloc_ptr for string parameters. | |
12318 | (create_breakpoint): Constify 'extra_string' and 'cond_string' | |
12319 | parameters. | |
12320 | ||
fbe654c8 AH |
12321 | 2017-06-06 Alan Hayward <alan.hayward@arm.com> |
12322 | ||
12323 | * alpha-tdep.c (alpha_register_to_value): Use | |
12324 | get_frame_register_value. | |
12325 | (alpha_value_to_register): Use ALPHA_REGISTER_SIZE. | |
12326 | ||
ae0d01d6 AH |
12327 | 2017-06-06 Alan Hayward <alan.hayward@arm.com> |
12328 | ||
12329 | * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add. | |
12330 | (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE. | |
12331 | (ia64_value_to_register): Likewise. | |
12332 | (ia64_extract_return_value): Likewise. | |
12333 | (ia64_store_return_value): Likewise. | |
12334 | (ia64_push_dummy_call): Likewise. | |
12335 | ||
49cf576c JB |
12336 | 2017-06-04 Joel Brobecker <brobecker@adacore.com> |
12337 | ||
12338 | GDB 8.0 released. | |
12339 | ||
26b6a6ab SM |
12340 | 2017-06-03 Simon Marchi <simon.marchi@ericsson.com> |
12341 | ||
12342 | * x86-linux-nat.c (struct arch_lwp_info): Remove. | |
12343 | ||
22827c51 SM |
12344 | 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca> |
12345 | ||
12346 | * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST | |
12347 | parameter. | |
12348 | (linux_nat_attach): Adjust call to linux_nat_post_attach_wait. | |
12349 | ||
0e05cf3a SM |
12350 | 2017-06-02 Simon Marchi <simon.marchi@ericsson.com> |
12351 | ||
12352 | * event-loop.c (poll_timers): Unallocate timer using delete | |
12353 | instead of xfree. | |
12354 | ||
c1fc2657 SM |
12355 | 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca> |
12356 | ||
12357 | * breakpoint.h (struct breakpoint_ops) <dtor>: Remove. | |
12358 | (struct breakpoint) <~breakpoint>: New. | |
12359 | (struct watchpoint): Inherit from breakpoint. | |
12360 | <~watchpoint>: New. | |
12361 | <base>: Remove. | |
12362 | (struct tracepoint): Inherit from breakpoint. | |
12363 | <base>: Remove. | |
12364 | * breakpoint.c (longjmp_breakpoint_ops): Remove. | |
12365 | (struct longjmp_breakpoint): Inherit from breakpoint. | |
12366 | <~longjmp_breakpoint>: New. | |
12367 | <base>: Remove. | |
12368 | (new_breakpoint_from_type): Remove casts. | |
12369 | (watchpoint_in_thread_scope): Remove reference to base field. | |
12370 | (watchpoint_del_at_next_stop): Likewise. | |
12371 | (update_watchpoint): Likewise. | |
12372 | (watchpoint_check): Likewise. | |
12373 | (bpstat_check_watchpoint): Likewise. | |
12374 | (set_longjmp_breakpoint): Likewise. | |
12375 | (struct fork_catchpoint): Inherit from breakpoint. | |
12376 | <base>: Remove. | |
12377 | (struct solib_catchpoint): Inherit from breakpoint. | |
12378 | <~solib_catchpoint>: New. | |
12379 | <base>: Remove. | |
12380 | (dtor_catch_solib): Change to ... | |
12381 | (solib_catchpoint::~solib_catchpoint): ... this. | |
12382 | (breakpoint_hit_catch_solib): Remove reference to base field. | |
12383 | (add_solib_catchpoint): Likewise. | |
12384 | (create_fork_vfork_event_catchpoint): Likewise. | |
12385 | (struct exec_catchpoint): Inherit from breakpoint. | |
12386 | <~exec_catchpoint>: New. | |
12387 | <base>: Remove. | |
12388 | (dtor_catch_exec): Change to ... | |
12389 | (exec_catchpoint::~exec_catchpoint): ... this. | |
12390 | (dtor_watchpoint): Change to ... | |
12391 | (watchpoint::~watchpoint): ... this. | |
12392 | (watch_command_1): Remove reference to base field. | |
12393 | (catch_exec_command_1): Likewise. | |
12394 | (base_breakpoint_dtor): Change to ... | |
12395 | (breakpoint::~breakpoint): ... this. | |
12396 | (base_breakpoint_ops): Remove dtor field value. | |
12397 | (longjmp_bkpt_dtor): Change to ... | |
12398 | (longjmp_breakpoint::~longjmp_breakpoint): ... this. | |
12399 | (strace_marker_create_breakpoints_sal): Remove reference to base | |
12400 | field. | |
12401 | (delete_breakpoint): Don't manually call breakpoint destructor. | |
12402 | (create_tracepoint_from_upload): Remove reference to base field. | |
12403 | (trace_pass_set_count): Likewise. | |
12404 | (initialize_breakpoint_ops): Don't initialize | |
12405 | momentary_breakpoint_ops, don't set dtors. | |
12406 | * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint. | |
12407 | <~ada_catchpoint>: New. | |
12408 | <base>: Remove. | |
12409 | (create_excep_cond_exprs): Remove reference to base field. | |
12410 | (dtor_exception): Change to ... | |
12411 | (ada_catchpoint::~ada_catchpoint): ... this. | |
12412 | (dtor_catch_exception): Remove. | |
12413 | (dtor_catch_exception_unhandled): Remove. | |
12414 | (dtor_catch_assert): Remove. | |
12415 | (create_ada_exception_catchpoint): Remove reference to base | |
12416 | field. | |
12417 | (initialize_ada_catchpoint_ops): Don't set dtors. | |
12418 | * break-catch-sig.c (struct signal_catchpoint): Inherit from | |
12419 | breakpoint. | |
12420 | <~signal_catchpoint>: New. | |
12421 | <base>: Remove. | |
12422 | (signal_catchpoint_dtor): Change to ... | |
12423 | (signal_catchpoint::~signal_catchpoint): ... this. | |
12424 | (create_signal_catchpoint): Remove reference to base field. | |
12425 | (initialize_signal_catchpoint_ops): Don't set dtor. | |
12426 | * break-catch-syscall.c (struct syscall_catchpoint): Inherit | |
12427 | from breakpoint. | |
12428 | <~syscall_catchpoint>: New. | |
12429 | <base>: Remove. | |
12430 | (dtor_catch_syscall): Change to ... | |
12431 | (syscall_catchpoint::~syscall_catchpoint): ... this. | |
12432 | (create_syscall_event_catchpoint): Remove reference to base | |
12433 | field. | |
12434 | (initialize_syscall_catchpoint_ops): Don't set dtor. | |
12435 | * break-catch-throw.c (struct exception_catchpoint): Inherit | |
12436 | from breakpoint. | |
12437 | <~exception_catchpoint>: New. | |
12438 | <base>: Remove. | |
12439 | (dtor_exception_catchpoint): Change to ... | |
12440 | (exception_catchpoint::~exception_catchpoint): ... this. | |
12441 | (handle_gnu_v3_exceptions): Remove reference to base field. | |
12442 | (initialize_throw_catchpoint_ops): Don't set dtor. | |
12443 | * ctf.c (ctf_get_traceframe_address): Remove reference to base | |
12444 | field. | |
12445 | * remote.c (remote_get_tracepoint_status): Likewise. | |
12446 | * tracefile-tfile.c (tfile_get_traceframe_address): Likewise. | |
12447 | * tracefile.c (tracefile_fetch_registers): Likewise. | |
12448 | * tracepoint.c (actions_command): Likewise. | |
12449 | (validate_actionline): Likewise. | |
12450 | (tfind_1): Likewise. | |
12451 | (get_traceframe_location): Likewise. | |
12452 | (find_matching_tracepoint_location): Likewise. | |
12453 | (parse_tracepoint_status): Likewise. | |
12454 | * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise. | |
12455 | ||
3b0871f4 SM |
12456 | 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca> |
12457 | ||
12458 | * breakpoint.c (struct longjmp_breakpoint): New struct. | |
12459 | (is_tracepoint_type): Change return type to bool. | |
12460 | (is_longjmp_type): New function. | |
12461 | (new_breakpoint_from_type): Handle longjmp kinds of breakpoints. | |
12462 | (set_raw_breakpoint_without_location): Use | |
12463 | new_breakpoint_from_type. | |
12464 | (set_raw_breakpoint): Likewise. | |
12465 | ||
a5e364af SM |
12466 | 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca> |
12467 | ||
12468 | * breakpoint.c (new_breakpoint_from_type): New function. | |
12469 | (create_breakpoint_sal): Use new_breakpoint_from_type and | |
12470 | unique_ptr. | |
12471 | (create_breakpoint): Likewise. | |
12472 | ||
ae3b3f34 SM |
12473 | 2017-05-31 Simon Marchi <simon.marchi@ericsson.com> |
12474 | ||
12475 | * memattr.c (mem_info_command): Rename to ... | |
12476 | (info_mem_command): ... this. | |
12477 | (mem_enable_command): Rename to ... | |
12478 | (enable_mem_command): ... this. | |
12479 | (mem_disable_command): Rename to ... | |
12480 | (disable_mem_command): ... this. | |
12481 | (mem_delete_command): Rename to ... | |
12482 | (delete_mem_command): ... this. | |
12483 | (_initialize_mem): Adjust function names. | |
12484 | ||
13ace077 MM |
12485 | 2017-05-31 Markus Metzger <markus.t.metzger@intel.com> |
12486 | ||
12487 | * btrace.c (handle_pt_insn_events): New. | |
12488 | (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into | |
12489 | STATUS. Split into this and ... | |
12490 | (handle_pt_insn_event_flags): ... this. | |
12491 | ||
c56ccc05 MM |
12492 | 2017-05-31 Markus Metzger <markus.t.metzger@intel.com> |
12493 | ||
12494 | * configure.ac: Check for pt_insn_event, struct pt_insn.enabled, | |
12495 | and struct pt_insn.resynced. | |
12496 | * configure: Regenerated. | |
12497 | * config.in: Regenerated. | |
12498 | ||
08c3f6d2 TW |
12499 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
12500 | ||
12501 | * btrace.c (ftrace_find_call_by_number): New function. | |
12502 | (ftrace_new_function): Store objects, not pointers. | |
12503 | (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch, | |
12504 | ftrace_new_gap, ftrace_update_function, | |
12505 | ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear, | |
12506 | btrace_insn_get, btrace_insn_get_error, btrace_insn_end, | |
12507 | btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number, | |
12508 | btrace_ends_with_single_insn, btrace_call_get): Account for | |
12509 | btrace_thread_info::functions now storing objects. | |
12510 | * btrace.h (struct btrace_thread_info): Add constructor. | |
12511 | (struct btrace_thread_info) <functions>: Make std::vector. | |
12512 | (struct btrace_thread_info) <prev, next, up, insn, errcode, flags): | |
12513 | Initialize with default values. | |
12514 | * record-btrace.c (record_btrace_frame_sniffer): Account for | |
12515 | btrace_thread_info::functions now storing objects. | |
12516 | ||
8ffd39f2 TW |
12517 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
12518 | ||
12519 | * btrace.c: Remove typedef bfun_s. | |
12520 | (ftrace_new_gap): Directly add gaps to the list of gaps. | |
12521 | (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags, | |
12522 | ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1, | |
12523 | btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector | |
12524 | instead of gdb VEC. | |
12525 | ||
4aeb0dfc TW |
12526 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
12527 | ||
12528 | * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun, | |
12529 | ftrace_bridge_gap): Replace references to btrace_thread_info::segment | |
12530 | with btrace_thread_info::next_segment and | |
12531 | btrace_thread_info::prev_segment. | |
12532 | * btrace.h: Remove struct btrace_func_link. | |
12533 | (struct btrace_function): Replace pair of function segment pointers | |
12534 | with pair of indices. | |
12535 | * python/py-record-btrace.c (btpy_call_prev_sibling, | |
12536 | btpy_call_next_sibling): Replace references to | |
12537 | btrace_thread_info::segment with btrace_thread_info::next_segment and | |
12538 | btrace_thread_info::prev_segment. | |
12539 | * record-btrace.c (record_btrace_frame_this_id): Use | |
12540 | btrace_find_call_by_number. | |
12541 | ||
eb8f2b9c TW |
12542 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
12543 | ||
12544 | * btrace.c (ftrace_new_function, ftrace_fixup_level, | |
12545 | ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps, | |
12546 | btrace_insn_next, btrace_insn_prev): Remove references to | |
12547 | btrace_thread_info::flow. | |
12548 | * btrace.h (struct btrace_function): Remove FLOW. | |
12549 | ||
42bfe59e TW |
12550 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
12551 | ||
12552 | * btrace.c (ftrace_find_call_by_number): New function. | |
12553 | (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall, | |
12554 | ftrace_get_caller, ftrace_find_call, ftrace_new_return, | |
12555 | ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace, | |
12556 | ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an | |
12557 | index. | |
12558 | * btrace.h (struct btrace_function): Turn UP into an index. | |
12559 | * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up | |
12560 | as an index. | |
12561 | * record-btrace.c (record_btrace_frame_unwind_stop_reason, | |
12562 | record_btrace_frame_prev_register, record_btrace_frame_sniffer, | |
12563 | record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number. | |
12564 | ||
b54b03bd TW |
12565 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
12566 | ||
12567 | * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall, | |
12568 | ftrace_new_return, ftrace_new_switch, ftrace_new_gap, | |
12569 | ftrace_update_function, ftrace_compute_global_level_offset, | |
12570 | btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt, | |
12571 | btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number, | |
12572 | btrace_insn_end, btrace_is_empty): Remove references to | |
12573 | btrace_thread_info::begin and btrace_thread_info::end. | |
12574 | * btrace.h (struct btrace_thread_info): Remove BEGIN and END. | |
12575 | (struct btrace_thread_info) <functions>: Adjust comment. | |
12576 | * record-btrace.c (record_btrace_start_replaying): Remove reference to | |
12577 | btrace_thread_info::begin. | |
12578 | ||
8286623c TW |
12579 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
12580 | ||
12581 | * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall, | |
12582 | ftrace_new_return, ftrace_new_switch, ftrace_new_gap, | |
12583 | ftrace_update_function): Remove arguments that implicitly were always | |
12584 | BTINFO->END. | |
12585 | (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt): | |
12586 | Don't pass BTINFO->END. | |
12587 | ||
a0f1b963 TW |
12588 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
12589 | ||
12590 | * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number, | |
12591 | btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev, | |
12592 | btrace_find_insn_by_number): Replace function segment pointer with | |
12593 | index. | |
12594 | (btrace_insn_cmp): Simplify. | |
12595 | * btrace.h: (struct btrace_insn_iterator) Rename index to | |
12596 | insn_index. Replace function segment pointer with index into function | |
12597 | segment vector. | |
12598 | * record-btrace.c (record_btrace_call_history): Replace function | |
12599 | segment pointer use with index. | |
12600 | (record_btrace_frame_sniffer): Retrieve function call segment through | |
12601 | vector. | |
12602 | (record_btrace_set_replay): Remove defunc't safety check. | |
12603 | ||
f158f208 TW |
12604 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
12605 | ||
12606 | * btrace.c (btrace_ends_with_single_insn): New function. | |
12607 | (btrace_call_get, btrace_call_number, btrace_call_begin, | |
12608 | btrace_call_end, btrace_call_next, btrace_call_prev, | |
12609 | btrace_find_call_by_number): Use index into call segment vector | |
12610 | instead of pointer. | |
12611 | (btrace_call_cmp): Simplify. | |
12612 | * btrace.h (struct btrace_call_iterator): Replace function call segment | |
12613 | pointer with index into vector. | |
12614 | * record-btrace.c (record_btrace_call_history): Use index instead of | |
12615 | pointer. | |
12616 | ||
521103fd TW |
12617 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
12618 | ||
12619 | * btrace.c (btrace_insn_begin, btrace_insn_end, | |
12620 | btrace_find_insn_by_number): Add btinfo to iterator. | |
12621 | * btrace.h (struct btrace_insn_iterator): Add btinfo. | |
12622 | ||
17b89b34 TW |
12623 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
12624 | ||
12625 | * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments | |
12626 | and save pointers directly. | |
12627 | (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return, | |
12628 | ftrace_new_switch, ftrace_new_gap, ftrace_update_function, | |
12629 | ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for | |
12630 | changed signature of functions. | |
12631 | (btrace_compute_ftrace_pt): Adjust for changed signature of functions. | |
12632 | (btrace_fetch): Remove code that adds btrace_function pointers to | |
12633 | vector of btrace_functions. | |
12634 | (btrace_clear): Simplify freeing vector of btrace_functions. | |
12635 | ||
2b51eddc TW |
12636 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
12637 | ||
12638 | * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number): | |
12639 | Replace VEC_* with std::vector functions. | |
12640 | * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P. | |
12641 | (struct btrace_thread_info)<functions>: Change type to std::vector. | |
12642 | ||
db6be0d5 SM |
12643 | 2017-05-30 Simon Marchi <simon.marchi@ericsson.com> |
12644 | ||
12645 | * NEWS (Changes in GDB 8.0): Remove extra empty line. Move | |
12646 | "Removed targets and native configurations" up. Merge duplicate | |
12647 | "New commands" sub-sections. Add "New options" sub-sections. | |
12648 | ||
b057297a AH |
12649 | 2017-05-26 Alan Hayward <alan.hayward@arm.com> |
12650 | ||
12651 | * defs.h (copy_integer_to_size): New declaration. | |
12652 | * findvar.c (copy_integer_to_size): New function. | |
12653 | (do_cint_test): New selftest function. | |
12654 | (copy_integer_to_size_test): Likewise. | |
12655 | (_initialize_findvar): Likewise. | |
12656 | * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer. | |
12657 | (mips_fbsd_collect_reg): Use raw_collect_integer. | |
12658 | * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer. | |
12659 | (mips64_fill_gregset): Use raw_collect_integer | |
12660 | (mips64_fill_fpregset): Use raw_supply_integer. | |
12661 | * regcache.c (regcache::raw_supply_integer): New function. | |
12662 | (regcache::raw_collect_integer): Likewise. | |
12663 | * regcache.h: (regcache::raw_supply_integer): New declaration. | |
12664 | (regcache::raw_collect_integer): Likewise. | |
12665 | ||
b77b02a5 YQ |
12666 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
12667 | ||
12668 | * Makefile.in (SFILES): Add gdbarch-selftests.c. | |
12669 | (COMMON_OBS): Add gdbarch-selftests.o. | |
12670 | * frame.c [GDB_SELF_TESTS] (create_new_frame): New function. | |
12671 | * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare. | |
12672 | * gdbarch-selftests.c: New file. | |
12673 | * regcache.h (regcache) <~regcache>: Mark it virtual if | |
12674 | GDB_SELF_TEST. | |
12675 | <raw_write>: Likewise. | |
12676 | ||
e521e87e YQ |
12677 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
12678 | ||
12679 | * regcache.c (current_regcache): Change it to | |
12680 | regcache::current_regcache. | |
12681 | (regcache_observer_target_changed): Update. | |
12682 | (regcache_thread_ptid_changed): Make it a regcache static | |
12683 | method. | |
12684 | (regcache_thread_ptid_changed): Update. | |
12685 | (class regcache_access): New. | |
12686 | (current_regcache_test): Update. | |
12687 | (_initialize_regcache): Update. | |
12688 | * regcache.h: Include forward_list. | |
12689 | (regcache): Declare regcache_thread_ptid_changed and declare | |
12690 | registers_changed_ptid as friend. | |
12691 | ||
d8e07dda YQ |
12692 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
12693 | ||
12694 | * i387-tdep.c (i387_register_to_value): Use register_size | |
12695 | instead of TYPE_LENGTH. | |
12696 | * m68k-tdep.c (m68k_register_to_value): Likewise. | |
12697 | ||
8c8f9122 YQ |
12698 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
12699 | ||
12700 | * i387-tdep.c (i387_convert_register_p): Return false if type | |
12701 | code isn't TYPE_CODE_FLT. | |
12702 | ||
68fce50f YQ |
12703 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
12704 | ||
12705 | * alpha-tdep.c (alpha_convert_register_p): Return true if type | |
12706 | length is 4. | |
12707 | (alpha_register_to_value): Remove type length check. | |
12708 | (alpha_value_to_register): Likewise. | |
12709 | ||
88954b49 YQ |
12710 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
12711 | ||
12712 | * ia64-tdep.c (ia64_convert_register_p): Check type's code is | |
12713 | TYPE_CODE_FLT. | |
12714 | ||
e3ec9b69 YQ |
12715 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
12716 | ||
12717 | * m68k-tdep.c (m68k_convert_register_p): Check type's code is | |
12718 | TYPE_CODE_FLT or not. | |
12719 | ||
cdd238da YQ |
12720 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
12721 | ||
12722 | * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW. | |
12723 | * avr-tdep.c (avr_gdbarch_init): Likewise. | |
12724 | * bfin-tdep.c (bfin_gdbarch_init): Likewise. | |
12725 | * cris-tdep.c (cris_gdbarch_init): Likewise. | |
12726 | * ft32-tdep.c (ft32_gdbarch_init): Likewise. | |
12727 | * lm32-tdep.c (lm32_gdbarch_init): Likewise. | |
12728 | * m32r-tdep.c (m32r_gdbarch_init): Likewise. | |
12729 | * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise. | |
12730 | * mep-tdep.c (mep_gdbarch_init): Likewise. | |
12731 | * microblaze-tdep.c (microblaze_gdbarch_init): Likewise. | |
12732 | * mips-tdep.c (mips_gdbarch_init): Likewise. | |
12733 | * mn10300-tdep.c (mn10300_gdbarch_init): Likewise. | |
12734 | * moxie-tdep.c (moxie_gdbarch_init): Likewise. | |
12735 | * msp430-tdep.c (msp430_gdbarch_init): Likewise. | |
12736 | * sh64-tdep.c (sh64_gdbarch_init): Likewise. | |
12737 | * v850-tdep.c (v850_gdbarch_init): Likewise. | |
12738 | ||
7a3929c4 YQ |
12739 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
12740 | ||
12741 | * selftest-arch.c (tests_with_arch): Call registers_changed | |
12742 | and reinit_frame_cache. | |
12743 | * selftest.c (run_self_tests): Likewise. | |
12744 | ||
f4985dba YQ |
12745 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
12746 | ||
12747 | * rs6000-tdep.c (gdb_print_insn_powerpc): Remove. | |
12748 | (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn. | |
12749 | ||
ab20fa4a YQ |
12750 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
12751 | ||
12752 | * rl78-tdep.c (rl78_gdbarch_init): Don't call | |
12753 | set_gdbarch_print_insn. | |
12754 | ||
f532ab94 YQ |
12755 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
12756 | ||
12757 | * h8300-tdep.c (h8300_gdbarch_init): Don't call | |
12758 | set_gdbarch_print_insn. | |
12759 | ||
39503f82 YQ |
12760 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
12761 | ||
12762 | * alpha-tdep.c (alpha_gdbarch_init): Don't call | |
12763 | set_gdbarch_print_insn. | |
12764 | * arc-tdep.c (arc_gdbarch_init): Likewise. | |
12765 | * arch-utils.c: include dis-asm.h. | |
12766 | (default_print_insn): New function. | |
12767 | * arch-utils.h (default_print_insn): Declare. | |
12768 | * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn. | |
12769 | * bfin-tdep.c (bfin_gdbarch_init): Likewise. | |
12770 | * cris-tdep.c (cris_delayed_get_disassembler): Remove. | |
12771 | (cris_gdbarch_init): Don't call set_gdbarch_print_insn. | |
12772 | * frv-tdep.c (frv_gdbarch_init): Likewise. | |
12773 | * ft32-tdep.c (ft32_gdbarch_init): Likewise. | |
12774 | * gdbarch.sh (print_insn): Use default_print_insn. | |
12775 | * gdbarch.c: Regenerated. | |
12776 | * hppa-tdep.c (hppa_gdbarch_init): Likewise. | |
12777 | * iq2000-tdep.c (iq2000_gdbarch_init): Likewise. | |
12778 | * lm32-tdep.c (lm32_gdbarch_init): Likewise. | |
12779 | * m32c-tdep.c (m32c_gdbarch_init): Likewise. | |
12780 | * m32r-tdep.c (m32r_gdbarch_init): Likewise. | |
12781 | * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove. | |
12782 | (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn. | |
12783 | * m68k-tdep.c (m68k_gdbarch_init): Likewise. | |
12784 | * m88k-tdep.c (m88k_gdbarch_init): Likewise. | |
12785 | * microblaze-tdep.c (microblaze_gdbarch_init): Likewise. | |
12786 | * mn10300-tdep.c (mn10300_gdbarch_init): Likewise. | |
12787 | * moxie-tdep.c (moxie_gdbarch_init): Likewise. | |
12788 | * msp430-tdep.c (msp430_gdbarch_init): Likewise. | |
12789 | * mt-tdep.c (mt_gdbarch_init): Likewise. | |
12790 | * nds32-tdep.c (nds32_gdbarch_init): Likewise. | |
12791 | * nios2-tdep.c (nios2_print_insn): Remove. | |
12792 | (nios2_gdbarch_init): Don't call set_gdbarch_print_insn. | |
12793 | * rx-tdep.c (rx_gdbarch_init): Likewise. | |
12794 | * s390-linux-tdep.c (s390_gdbarch_init): Likewise. | |
12795 | * score-tdep.c (score_print_insn): Remove. | |
12796 | (score_gdbarch_init): Don't call set_gdbarch_print_insn. | |
12797 | * sh-tdep.c (sh_gdbarch_init): Likewise. | |
12798 | * sh64-tdep.c (sh64_gdbarch_init): Likewise. | |
12799 | * sparc-tdep.c (sparc32_gdbarch_init): Likewise. | |
12800 | * tic6x-tdep.c (tic6x_print_insn): Remove. | |
12801 | (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn. | |
12802 | * tilegx-tdep.c (tilegx_gdbarch_init): Likewise. | |
12803 | * v850-tdep.c (v850_gdbarch_init): Likewise. | |
12804 | * vax-tdep.c (vax_gdbarch_init): Likewise. | |
12805 | * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise. | |
12806 | * xtensa-tdep.c (xtensa_gdbarch_init): Likewise. | |
12807 | ||
f7241d4f JB |
12808 | 2017-05-23 John Baldwin <jhb@FreeBSD.org> |
12809 | ||
12810 | * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove. | |
12811 | (MIPS_FP0_REGNUM): Remove. | |
12812 | (MIPS_FSR_REGNUM): Remove. | |
12813 | (mips_fbsd_supply_fpregs): Use mips_regnum. | |
12814 | (mips_fbsd_supply_gregs): Likewise. | |
12815 | (mips_fbsd_collect_fpregs): Likewise. | |
12816 | (mips_fbsd_collect_gregs): Likewise. | |
12817 | ||
d489d81d JB |
12818 | 2017-05-23 John Baldwin <jhb@FreeBSD.org> |
12819 | ||
12820 | * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison. | |
12821 | (getpfpregs_supplies): New function. | |
12822 | (mips_fbsd_fetch_inferior_registers): Remove early exit and use | |
12823 | getfpregs_supplies. | |
12824 | (mips_fbsd_store_inferior_registers): Likewise. | |
12825 | ||
e11b3cdc PA |
12826 | 2017-05-22 Pedro Alves <palves@redhat.com> |
12827 | ||
12828 | * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD | |
12829 | maintainer. | |
12830 | ||
0f068fb5 AH |
12831 | 2017-05-22 Alan Hayward <alan.hayward@arm.com> |
12832 | ||
12833 | * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE. | |
12834 | (store_register): Likewise. | |
12835 | * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise. | |
12836 | (get_decimal_float_return_value): Likewise. | |
12837 | (do_ppc_sysv_return_value): Likewise. | |
12838 | (ppc64_sysv_abi_push_integer): Likewise. | |
12839 | (ppc64_sysv_abi_push_freg): Likewise. | |
12840 | (ppc64_sysv_abi_return_value_base): Likewise. | |
12841 | (ppc64_sysv_abi_return_value): Likewise. | |
12842 | * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise. | |
12843 | * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise. | |
12844 | * rs6000-nat.c: Likewise. | |
12845 | * rs6000-tdep.c (rs6000_register_to_value): Likewise. | |
12846 | (rs6000_value_to_register): Likewise. | |
12847 | * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add. | |
12848 | ||
e6cf65f2 TT |
12849 | 2017-05-21 Tom Tromey <tom@tromey.com> |
12850 | ||
12851 | PR rust/21466: | |
12852 | * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized | |
12853 | arrays as "[T]", not "[T; ]". | |
12854 | ||
43cc5389 TT |
12855 | 2017-05-19 Tom Tromey <tom@tromey.com> |
12856 | ||
12857 | PR rust/21484: | |
12858 | * rust-lang.c (exp_descriptor_rust): New function. | |
12859 | (rust_language_defn): Use it. | |
12860 | * p-lang.c (pascal_language_defn): Update. | |
12861 | * opencl-lang.c (opencl_language_defn): Update. | |
12862 | * objc-lang.c (objc_language_defn): Update. | |
12863 | * m2-lang.c (m2_language_defn): Update. | |
12864 | * language.h (struct language_defn) | |
12865 | <la_watch_location_expression>: New member. | |
12866 | * language.c (unknown_language_defn, auto_language_defn) | |
12867 | (local_language_defn): Update. | |
12868 | * go-lang.c (go_language_defn): Update. | |
12869 | * f-lang.c (f_language_defn): Update. | |
12870 | * d-lang.c (d_language_defn): Update. | |
12871 | * c-lang.h (c_watch_location_expression): Declare. | |
12872 | * c-lang.c (c_watch_location_expression): New function. | |
12873 | (c_language_defn, cplus_language_defn, asm_language_defn) | |
12874 | (minimal_language_defn): Use it. | |
12875 | * breakpoint.c (watch_command_1): Call | |
12876 | la_watch_location_expression. | |
12877 | * ada-lang.c (ada_language_defn): Update. | |
12878 | ||
7a6e7fcc RO |
12879 | 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
12880 | ||
6e7e1744 RO |
12881 | PR tui/21482 |
12882 | * gdb_curses.h (NOMACROS): Define. | |
12883 | (NCURSES_NOMACROS): Define. | |
12884 | ||
12885 | 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
12886 | ||
12887 | PR tui/21482 | |
7a6e7fcc RO |
12888 | * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr |
12889 | arg to char *. | |
12890 | * tui/tui-wingeneral.c (box_win): Likewise. | |
12891 | * tui/tui-winsource.c (tui_erase_source_content): Likewise. | |
12892 | (tui_show_source_line): Likewise. | |
12893 | (tui_show_exec_info_content): Likewise. | |
12894 | ||
1933fd8e VM |
12895 | 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com> |
12896 | ||
12897 | * sparc-tdep.c (sparc_structure_return_p) | |
12898 | (sparc_arg_on_registers_p): New functions. | |
12899 | (sparc32_store_arguments): Use them. | |
12900 | * sparc64-tdep.c (sparc64_16_byte_align_p) | |
12901 | (sparc64_store_floating_fields, sparc64_extract_floating_fields): | |
12902 | Handle TYPE_CODE_ARRAY. | |
12903 | ||
21873064 YQ |
12904 | 2017-05-17 Yao Qi <yao.qi@linaro.org> |
12905 | ||
12906 | * cli/cli-decode.c (add_alias_cmd): New function. | |
12907 | * command.h (add_alias_cmd): Declare. | |
12908 | * infcmd.c (_initialize_infcmd): Don't call add_com_alias, | |
12909 | instead call add_alias_cmd. | |
12910 | ||
2b351b19 PA |
12911 | 2017-05-17 Pedro Alves <palves@redhat.com> |
12912 | ||
12913 | * Makefile.in (nat_extra_makefile_frag): Rename to ... | |
12914 | (nat_makefile_frag): ... this. All references updated. | |
12915 | * configure.ac: Likewise. | |
12916 | * configure.nat: Likewise. Enhance comments. | |
12917 | * configure: Regenerate. | |
12918 | ||
5f2ad7a3 RO |
12919 | 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
12920 | ||
12921 | * procfs.c (procfs_create_inferior): Change prototype to match | |
12922 | definition. | |
12923 | ||
adf3dde5 EZ |
12924 | 2017-05-13 Eli Zaretskii <eliz@gnu.org> |
12925 | ||
12926 | * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a | |
12927 | C++ compiler warning. | |
12928 | ||
6830f270 TT |
12929 | 2017-05-12 Tom Tromey <tom@tromey.com> |
12930 | ||
12931 | PR rust/21483: | |
12932 | * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't | |
12933 | recurse, just call value_struct_elt directly. | |
12934 | ||
68f2f2e3 TT |
12935 | 2017-05-12 Tom Tromey <tom@tromey.com> |
12936 | ||
12937 | * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS, | |
12938 | OP_RUST_ARRAY>: Fix. | |
12939 | ||
256afbc2 TT |
12940 | 2017-05-12 Tom Tromey <tom@tromey.com> |
12941 | ||
12942 | * rust-lang.c (rust_print_subexp): Replace "return" with "break". | |
12943 | ||
94bb8dfe YQ |
12944 | 2017-05-09 Yao Qi <yao.qi@linaro.org> |
12945 | ||
12946 | * regcache.c: Include <forward_list>. | |
12947 | (struct regcache_list): Remove. | |
12948 | (current_regcache): Update. | |
12949 | (get_thread_arch_aspace_regcache): Update for std::forward_list. | |
12950 | (regcache_thread_ptid_changed): Likewise. | |
12951 | (registers_changed_ptid): Likewise. | |
12952 | (current_regcache_size): Likewise. | |
12953 | ||
8248946c YQ |
12954 | 2017-05-09 Yao Qi <yao.qi@linaro.org> |
12955 | ||
12956 | * regcache.c [GDB_SELF_TEST]: Include selftest.h. | |
12957 | (current_regcache_size): New function. | |
12958 | (current_regcache_test): New function. | |
12959 | (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test. | |
12960 | ||
313c5961 AH |
12961 | 2017-05-08 Alan Hayward <alan.hayward@arm.com> |
12962 | ||
12963 | * mips-tdep.c (mips_o32_return_value): Remove unused buffer. | |
12964 | (print_gp_register_row): Use get_frame_register_value. | |
12965 | ||
27bfc1d1 AH |
12966 | 2017-05-08 Alan Hayward <alan.hayward@arm.com> |
12967 | ||
12968 | * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed. | |
12969 | (mips_supply_fpregset): Likewise. | |
12970 | (mips64_supply_gregset): Likewise. | |
12971 | ||
146e6c5c AH |
12972 | 2017-05-08 Alan Hayward <alan.hayward@arm.com> |
12973 | ||
12974 | * mn10300-linux-tdep.c (am33_supply_gregset_method): Use | |
12975 | regcache->raw_supply_zeroed. | |
12976 | ||
e50f25ec SDJ |
12977 | 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com> |
12978 | ||
12979 | * configure.nat: Rearrange 'case' statements to match | |
12980 | host before cpu. | |
12981 | ||
21ea5acd SDJ |
12982 | 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com> |
12983 | ||
12984 | * Makefile.in: Remove "@host_makefile_frag@". Add variables | |
12985 | NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS, | |
12986 | NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add | |
12987 | "@nat_extra_makefile_frag@". | |
12988 | (Makefile): Remove dependency on "@frags@". | |
12989 | ($(GNULIB_BUILDDIR)/Makefile): Likewise. | |
12990 | (data-directory/Makefile): Likewise. | |
12991 | * config/aarch64/linux.mh: Deleted; moved contents to | |
12992 | "gdb/configure.nat". | |
12993 | * config/alpha/alpha-linux.mh: Likewise. | |
12994 | * config/alpha/nbsd.mh: Likewise. | |
12995 | * config/arm/linux.mh: Likewise. | |
12996 | * config/arm/nbsdelf.mh: Likewise. | |
12997 | * config/i386/cygwin.mh: Likewise. | |
12998 | * config/i386/cygwin64.mh: Likewise. | |
12999 | * config/i386/darwin.mh: Likewise. | |
13000 | * config/i386/fbsd.mh: Likewise. | |
13001 | * config/i386/fbsd64.mh: Likewise. | |
13002 | * config/i386/go32.mh: Likewise. | |
13003 | * config/i386/i386gnu.mh: Likewise. | |
13004 | * config/i386/i386sol2.mh: Likewise. | |
13005 | * config/i386/linux.mh: Likewise. | |
13006 | * config/i386/linux64.mh: Likewise. | |
13007 | * config/i386/mingw.mh: Likewise. | |
13008 | * config/i386/mingw64.mh: Likewise. | |
13009 | * config/i386/nbsd64.mh: Likewise. | |
13010 | * config/i386/nbsdelf.mh: Likewise. | |
13011 | * config/i386/nto.mh: Likewise. | |
13012 | * config/i386/obsd.mh: Likewise. | |
13013 | * config/i386/obsd64.mh: Likewise. | |
13014 | * config/i386/sol2-64.mh: Likewise. | |
13015 | * config/ia64/linux.mh: Likewise. | |
13016 | * config/m32r/linux.mh: Likewise. | |
13017 | * config/m68k/linux.mh: Likewise. | |
13018 | * config/m68k/nbsdelf.mh: Likewise. | |
13019 | * config/m68k/obsd.mh: Likewise. | |
13020 | * config/m88k/obsd.mh: Likewise. | |
13021 | * config/mips/fbsd.mh: Likewise. | |
13022 | * config/mips/linux.mh: Likewise. | |
13023 | * config/mips/nbsd.mh: Likewise. | |
13024 | * config/mips/obsd64.mh: Likewise. | |
13025 | * config/pa/linux.mh: Likewise. | |
13026 | * config/pa/nbsd.mh: Likewise. | |
13027 | * config/pa/obsd.mh: Likewise. | |
13028 | * config/powerpc/aix.mh: Likewise. | |
13029 | * config/powerpc/fbsd.mh: Likewise. | |
13030 | * config/powerpc/linux.mh: Likewise. | |
13031 | * config/powerpc/nbsd.mh: Likewise. | |
13032 | * config/powerpc/obsd.mh: Likewise. | |
13033 | * config/powerpc/ppc64-linux.mh: Likewise. | |
13034 | * config/powerpc/spu-linux.mh: Likewise. | |
13035 | * config/s390/linux.mh: Likewise. | |
13036 | * config/sh/nbsd.mh: Likewise. | |
13037 | * config/sparc/fbsd.mh: Likewise. | |
13038 | * config/sparc/linux.mh: Likewise. | |
13039 | * config/sparc/linux64.mh: Likewise. | |
13040 | * config/sparc/nbsd64.mh: Likewise. | |
13041 | * config/sparc/nbsdelf.mh: Likewise. | |
13042 | * config/sparc/obsd64.mh: Likewise. | |
13043 | * config/sparc/sol2.mh: Likewise. | |
13044 | * config/tilegx/linux.mh: Likewise. | |
13045 | * config/vax/nbsdelf.mh: Likewise. | |
13046 | * config/vax/obsd.mh: Likewise. | |
13047 | * config/xtensa/linux.mh: Likewise. | |
13048 | * config/i386/i386gnu.mn: New file, with excerpts from | |
13049 | "config/i386/i386gnu.mh". | |
13050 | * configure: Regenerate. | |
13051 | * configure.ac: Rewrite code to use "gdb/configure.nat" instead of | |
13052 | *.mh files under "gdb/config". | |
13053 | * configure.nat: New file, with contents from the | |
13054 | "gdb/config/*/*.mh" files. | |
13055 | ||
7ed1acaf TW |
13056 | 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com> |
13057 | ||
13058 | * btrace.c (btrace_clear): Free insn vector. | |
13059 | ||
e13cb306 PA |
13060 | 2017-05-05 Pedro Alves <palves@redhat.com> |
13061 | ||
13062 | * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized. | |
13063 | * configure: Regenerate. | |
13064 | ||
5ed8105e PA |
13065 | 2017-05-04 Pedro Alves <palves@redhat.com> |
13066 | ||
13067 | * Makefile.in (SFILES): Add progspace-and-thread.c. | |
13068 | (HFILES_NO_SRCDIR): Add progspace-and-thread.h. | |
13069 | (COMMON_OBS): Add progspace-and-thread.o. | |
13070 | * breakpoint.c: Include "progspace-and-thread.h". | |
13071 | (update_inserted_breakpoint_locations) | |
13072 | (insert_breakpoint_locations, create_longjmp_master_breakpoint): | |
13073 | Use scoped_restore_current_pspace_and_thread. | |
13074 | (create_std_terminate_master_breakpoint): Use | |
13075 | scoped_restore_current_program_space. | |
13076 | (remove_breakpoint): Use scoped_restore_current_pspace_and_thread. | |
13077 | (print_breakpoint_location): Use | |
13078 | scoped_restore_current_program_space. | |
13079 | (bp_loc_is_permanent): Use | |
13080 | scoped_restore_current_pspace_and_thread. | |
13081 | (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread. | |
13082 | (download_tracepoint_locations): Use | |
13083 | scoped_restore_current_pspace_and_thread. | |
13084 | (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread. | |
13085 | * exec.c (exec_close_1): Use scoped_restore_current_program_space. | |
13086 | (enum step_over_calls_kind): Moved from inferior.h. | |
13087 | (class scoped_restore_current_thread): New class. | |
13088 | * gdbthread.h (make_cleanup_restore_current_thread): Delete | |
13089 | declaration. | |
13090 | (scoped_restore_current_thread): New class. | |
13091 | * infcmd.c: Include "common/gdb_optional.h". | |
13092 | (continue_1, proceed_after_attach): Use | |
13093 | scoped_restore_current_thread. | |
13094 | (notice_new_inferior): Use scoped_restore_current_thread. | |
13095 | * inferior.c: Include "progspace-and-thread.h". | |
13096 | (restore_inferior, save_current_inferior): Delete. | |
13097 | (add_inferior_command, clone_inferior_command): Use | |
13098 | scoped_restore_current_pspace_and_thread. | |
13099 | * inferior.h (scoped_restore_current_inferior): New class. | |
13100 | * infrun.c: Include "progspace-and-thread.h" and | |
13101 | "common/gdb_optional.h". | |
13102 | (follow_fork_inferior): Use | |
13103 | scoped_restore_current_pspace_and_thread. | |
13104 | (scoped_restore_exited_inferior): New class. | |
13105 | (handle_vfork_child_exec_or_exit): Use | |
13106 | scoped_restore_exited_inferior, | |
13107 | scoped_restore_current_pspace_and_thread, | |
13108 | scoped_restore_current_thread and scoped_restore. | |
13109 | (fetch_inferior_event): Use scoped_restore_current_thread. | |
13110 | * linespec.c (decode_line_full, decode_line_1): Use | |
13111 | scoped_restore_current_program_space. | |
13112 | * mi/mi-main.c: Include "progspace-and-thread.h". | |
13113 | (exec_continue): Use scoped_restore_current_thread. | |
13114 | (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread. | |
13115 | (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread. | |
13116 | * proc-service.c (ps_pglobal_lookup): Use | |
13117 | scoped_restore_current_program_space. | |
13118 | * progspace-and-thread.c: New file. | |
13119 | * progspace-and-thread.h: New file. | |
13120 | * progspace.c (release_program_space, clone_program_space): Use | |
13121 | scoped_restore_current_program_space. | |
13122 | (restore_program_space, save_current_program_space) | |
13123 | (save_current_space_and_thread): Delete. | |
13124 | (switch_to_program_space_and_thread): Moved to | |
13125 | progspace-and-thread.c. | |
13126 | * progspace.h (save_current_program_space) | |
13127 | (save_current_space_and_thread): Delete declarations. | |
13128 | (scoped_restore_current_program_space): New class. | |
13129 | * remote.c (remote_btrace_maybe_reopen): Use | |
13130 | scoped_restore_current_thread. | |
13131 | * symtab.c: Include "progspace-and-thread.h". | |
13132 | (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread. | |
13133 | * thread.c (print_thread_info_1): Use | |
13134 | scoped_restore_current_thread. | |
13135 | (struct current_thread_cleanup): Delete. | |
13136 | (do_restore_current_thread_cleanup) | |
13137 | (restore_current_thread_cleanup_dtor): Rename/convert both to ... | |
13138 | (scoped_restore_current_thread::~scoped_restore_current_thread): | |
13139 | ... this new dtor. | |
13140 | (make_cleanup_restore_current_thread): Rename/convert to ... | |
13141 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
13142 | ... this new ctor. | |
13143 | (thread_apply_all_command): Use scoped_restore_current_thread. | |
13144 | (thread_apply_command): Use scoped_restore_current_thread. | |
13145 | * tracepoint.c (tdump_command): Use scoped_restore_current_thread. | |
13146 | * varobj.c (value_of_root_1): Use scoped_restore_current_thread. | |
13147 | ||
f6223dbb PA |
13148 | 2017-05-04 Pedro Alves <palves@redhat.com> |
13149 | ||
13150 | * thread.c (make_cleanup_restore_current_thread): Move | |
13151 | find_thread_ptid call before the is_stopped call. Assert that the | |
13152 | thread is found. Replace is_stopped call by checking the thread's | |
13153 | state directly. Remove unnecessary NULL-thread check. | |
13154 | ||
3c3ae77e PA |
13155 | 2017-05-04 Pedro Alves <palves@redhat.com> |
13156 | ||
13157 | * corelow.c (thread_section_name): New class. | |
13158 | (get_core_register_section, get_core_siginfo): Use it. | |
13159 | ||
45eba0ab AA |
13160 | 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com> |
13161 | ||
13162 | * corelow.c (sniff_core_bfd): Remove extra semicolon. | |
13163 | (get_core_register_section): Remove xfree of NULL pointer. | |
13164 | ||
f81fdd35 AH |
13165 | 2017-05-03 Alan Hayward <alan.hayward@arm.com> |
13166 | ||
13167 | * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed. | |
13168 | * regcache.c (regcache::raw_supply_zeroed): New function. | |
13169 | * regcache.h (regcache::raw_supply_zeroed): New declaration. | |
13170 | ||
35837774 SM |
13171 | 2017-05-03 Simon Marchi <simon.marchi@ericsson.com> |
13172 | ||
13173 | * gdbarch.sh: Remove commented out definition of | |
13174 | TARGET_CHAR_BIT. | |
13175 | * gdbarch.h: Re-generate. | |
13176 | ||
c94fee56 SDJ |
13177 | 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com> |
13178 | ||
13179 | * configure: Regenerate. | |
13180 | ||
d17f7b36 SM |
13181 | 2017-05-02 Simon Marchi <simon.marchi@ericsson.com> |
13182 | ||
13183 | * solib-target.c (solib_target_relocate_section_addresses): | |
13184 | Remove num_section_bases, num_bases, segment_bases variables. | |
13185 | ||
b560ebd6 SM |
13186 | 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca> |
13187 | ||
13188 | * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove. | |
13189 | ||
f2f46dfc SM |
13190 | 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca> |
13191 | ||
13192 | * solib-target.c: Include <vector> | |
13193 | (struct lm_info_target) <~lm_info_target>: Remove. | |
13194 | <segment_bases, section_bases>: Change type to | |
13195 | std::vector<CORE_ADDR>. | |
13196 | (library_list_start_segment, library_list_start_section, | |
13197 | library_list_end_library, | |
13198 | solib_target_relocate_section_addresses): Adjust. | |
13199 | ||
a0ff9e1a SM |
13200 | 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca> |
13201 | ||
13202 | * gdbarch.sh (software_single_step): Change return type to | |
13203 | std::vector<CORE_ADDR>. | |
13204 | * gdbarch.c, gdbarch.h: Re-generate. | |
13205 | * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw): | |
13206 | Adjust. | |
13207 | (arm_deal_with_atomic_sequence_raw): Adjust. | |
13208 | (thumb_get_next_pcs_raw): Adjust. | |
13209 | (arm_get_next_pcs_raw): Adjust. | |
13210 | (arm_get_next_pcs): Adjust. | |
13211 | * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust. | |
13212 | * aarch64-tdep.c (aarch64_software_single_step): Adjust. | |
13213 | * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust. | |
13214 | (alpha_software_single_step): Adjust. | |
13215 | * alpha-tdep.h (alpha_software_single_step): Adjust. | |
13216 | * arm-linux-tdep.c (arm_linux_software_single_step): Adjust. | |
13217 | * arm-tdep.c (arm_software_single_step): Adjust. | |
13218 | (arm_breakpoint_kind_from_current_state): Adjust. | |
13219 | * arm-tdep.h (arm_software_single_step): Adjust. | |
13220 | * breakpoint.c (insert_single_step_breakpoint): Adjust. | |
13221 | * cris-tdep.c (cris_software_single_step): Adjust. | |
13222 | * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust. | |
13223 | (micromips_deal_with_atomic_sequence): Adjust. | |
13224 | (deal_with_atomic_sequence): Adjust. | |
13225 | (mips_software_single_step): Adjust. | |
13226 | * mips-tdep.h (mips_software_single_step): Adjust. | |
13227 | * moxie-tdep.c (moxie_software_single_step): Adjust. | |
13228 | * nios2-tdep.c (nios2_software_single_step): Adjust. | |
13229 | * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust. | |
13230 | * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust. | |
13231 | * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust. | |
13232 | * s390-linux-tdep.c (s390_software_single_step): Adjust. | |
13233 | * sparc-tdep.c (sparc_software_single_step): Adjust. | |
13234 | * spu-tdep.c (spu_software_single_step): Adjust. | |
13235 | * tic6x-tdep.c (tic6x_software_single_step): Adjust. | |
13236 | ||
ea480a30 SM |
13237 | 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca> |
13238 | ||
13239 | * gdbarch.sh: Use semi-colon as field separator instead of colon. | |
13240 | * gdbarch.h: Re-generate. | |
13241 | ||
d050f7d7 TW |
13242 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
13243 | ||
13244 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o. | |
13245 | (SUBDIR_PYTHON_SRCS): Add py-instruction.c. | |
13246 | * python/py-instruction.c, python/py-instruction.h: New file. | |
13247 | * python/py-record.c: Add py-instruction.h include. | |
13248 | (gdbpy_initialize_record): Make gdb.Instruction a super class of | |
13249 | gdb.RecordInstruction. | |
13250 | * python/python-internal.h: Add gdbpy_initialize_instruction | |
13251 | declaration. | |
13252 | * python/python.c (do_start_initialization): Add | |
13253 | gdbpy_initialize_instruction. | |
13254 | ||
14f819c8 TW |
13255 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
13256 | ||
13257 | * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type): | |
13258 | Remove. | |
13259 | (btrace_func_from_recpy_func): New function. | |
13260 | (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove. | |
13261 | (btpy_call_level, btpy_call_symbol, btpy_call_instructions, | |
13262 | btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ... | |
13263 | (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions, | |
13264 | recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This. | |
13265 | Also, use new helper functions. | |
13266 | (btpy_list_item): Use new helper functions. | |
13267 | (recpy_bt_function_call_history): Use new type name. | |
13268 | (btpy_call_getset): Remove. | |
13269 | (gdbpy_initialize_btrace): Remove code to initialize | |
13270 | gdb.BtraceFunctionCall. | |
13271 | * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level, | |
13272 | recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up, | |
13273 | recpy_bt_func_prev, recpy_bt_func_next): New export. | |
13274 | * python/py-record.c (recpy_func_type): New static object. | |
13275 | (recpy_func_new, recpy_func_level, recpy_func_symbol, | |
13276 | recpy_func_instructions, recpy_func_up, recpy_func_prev, | |
13277 | recpy_func_next): New function. | |
13278 | (recpy_element_hash, recpy_element_richcompare): Updated comment. | |
13279 | (recpy_func_getset): New static object. | |
13280 | (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction. | |
13281 | * python/py-record.h (recpy_func_type, recpy_func_new): New export. | |
13282 | ||
0ed5da75 TW |
13283 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
13284 | ||
13285 | * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove. | |
13286 | (btpy_object, btpy_insn_type, btpy_new): Remove. | |
13287 | (btpy_list_object): Use gdb.RecordInstruction type instead of | |
13288 | gdb.BtraceInstruction type. | |
13289 | (btrace_insn_from_recpy_insn): New function. | |
13290 | (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of | |
13291 | btpy_new. | |
13292 | (btpy_call_new, btpy_list_item): Do not use btpy_new anymore. | |
13293 | (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol, | |
13294 | btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling, | |
13295 | btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object | |
13296 | instead of btpy_object. | |
13297 | (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative, | |
13298 | btpy_insn_data, btpy_insn_decode): Rename to ... | |
13299 | (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size, | |
13300 | recpy_bt_insn_is_speculative, recpy_bt_insn_data, | |
13301 | recpy_bt_insn_decode): This. Also, use new helper functions. | |
13302 | (btpy_list_position, recpy_bt_goto): Use recpy_element_object and | |
13303 | recpy_insn_type. | |
13304 | (btpy_insn_getset): Remove. | |
13305 | (gdbpy_initialize_btrace): Remove code to initialize | |
13306 | gdb.BtraceInstruction. Use recpy_element_object. | |
13307 | * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal, | |
13308 | recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded, | |
13309 | recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export. | |
13310 | * python/py-record.c (recpy_insn_type): New static object. | |
13311 | (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data, | |
13312 | recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative, | |
13313 | recpy_element_number, recpy_element_hash, recpy_element_richcompare): | |
13314 | New function. | |
13315 | (recpy_insn_getset): New static object. | |
13316 | (gdbpy_initialize_record): Initialize gdb.RecordInstruction. | |
13317 | * python/py-record.h (recpy_element_object): New typedef. | |
13318 | (recpy_insn_type, recpy_insn_new): New export. | |
13319 | ||
913aeadd TW |
13320 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
13321 | ||
13322 | * py-record-btrace.c (btpy_insn_new): Removed. | |
13323 | (btpy_insn_or_gap_new): New function. | |
13324 | (btpy_insn_error): Removed. | |
13325 | (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative, | |
13326 | btpy_insn_data, btpy_insn_decode): Remove code path for gaps. | |
13327 | (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call | |
13328 | btpy_insn_or_gap_new instead of btpy_insn_new. | |
13329 | (btpy_insn_getset): Remove btpy_insn_error. | |
13330 | * py-record.c (recpy_gap_type): New static object. | |
13331 | (recpy_gap_object): New typedef. | |
13332 | (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code, | |
13333 | recpy_gap_reason_string): New function. | |
13334 | (recpy_gap_getset): New static object. | |
13335 | (gdbpy_initialize_record): Initialize gdb.RecordGap type. | |
13336 | * py-record.h (recpy_gap_new): New export. | |
13337 | ||
a3be24ad TW |
13338 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
13339 | ||
13340 | * python/py-record.c (recpy_ptid): Remove. | |
13341 | (recpy_record_getset): Remove recpy_ptid. | |
13342 | ||
ae20e79a TW |
13343 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
13344 | ||
13345 | * btrace.c (btrace_fetch): Set inferior_ptid. | |
13346 | * python/py-record-btrace.c: Add "py-record.h" include. | |
13347 | (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin, | |
13348 | recpy_bt_end, recpy_bt_instruction_history, | |
13349 | recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored | |
13350 | in gdb.Record object instead of current ptid. | |
13351 | * python/py-record.c: Include new "py-record.h" file. | |
13352 | (recpy_record_object): Moved to py-record.h. | |
13353 | * python/py-record.h: New file. | |
13354 | ||
8d0050ea TW |
13355 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
13356 | ||
13357 | * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN, | |
13358 | BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix | |
13359 | indentation. | |
13360 | ||
3f380b50 JB |
13361 | 2017-05-01 Joel Brobecker <brobecker@adacore.com> |
13362 | ||
13363 | * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to | |
13364 | the past maintainers section. | |
13365 | ||
07495424 YQ |
13366 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
13367 | ||
13368 | * infcmd.c (get_return_value): Use regcache ctor, and remove | |
13369 | cleanup. | |
13370 | ||
deb1fa3e YQ |
13371 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
13372 | Pedro Alves <palves@redhat.com> | |
13373 | ||
13374 | * regcache.c (regcache::regcache): New tag dispatch ctor. | |
13375 | (do_cooked_read): Moved above. | |
13376 | (regcache_dup): Use the tag dispatch ctor.. | |
13377 | * regcache.h (regcache): Declare ctor, delete copy ctor and | |
13378 | assignment operator, remove friend regcache_dup. | |
13379 | ||
b421c83c YQ |
13380 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
13381 | ||
13382 | * regcache.c (regcache_dup): Assert !src->m_readonly_p and | |
13383 | call method save instead of regcache_cpy. | |
13384 | * regcache.h (struct regcache): Make regcache_dup a friend. | |
13385 | ||
ef79d9a3 YQ |
13386 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
13387 | ||
13388 | * regcache.c (struct regcache): Move to regcache.h | |
13389 | (regcache::arch): New method. | |
13390 | (regcache_get_ptid): Update. | |
13391 | (get_regcache_arch): Call arch method. | |
13392 | (get_regcache_aspace): Call method aspace. | |
13393 | (register_buffer): Change it to method. | |
13394 | (regcache_save): Change it to regcache::save. | |
13395 | (regcache_restore): Likewise. | |
13396 | (regcache_cpy_no_passthrough): Remove the declaration. | |
13397 | (regcache_cpy): Call methods restore and cpy_no_passthrough. | |
13398 | (regcache_cpy_no_passthrough): Change it to method | |
13399 | cpy_no_passthrough. | |
13400 | (regcache_register_status): Change it to method | |
13401 | get_register_status. | |
13402 | (regcache_invalidate): Change it to method invalidate. | |
13403 | (regcache_thread_ptid_changed): Use methods ptid and set_ptid. | |
13404 | (regcache_raw_update): Change it to method raw_update. | |
13405 | (regcache_raw_read): Likewise. | |
13406 | (regcache_raw_read_signed): Likewise. | |
13407 | (regcache_raw_read_unsigned): Likewise. | |
13408 | (regcache_raw_write_signed): Likewise. | |
13409 | (regcache_raw_write_unsigned): Likewise. | |
13410 | (regcache_cooked_read): Likewise. | |
13411 | (regcache_cooked_read_value): Likewise. | |
13412 | (regcache_cooked_read_signed): Likewise. | |
13413 | (regcache_cooked_read_unsigned): Likewise. | |
13414 | (regcache_cooked_write_signed): Likewise. | |
13415 | (regcache_cooked_write_unsigned): Likewise. | |
13416 | (regcache_raw_set_cached_value): Likewise. | |
13417 | (regcache_raw_write): Likewise. | |
13418 | (regcache_cooked_write): Likewise. | |
13419 | (regcache_xfer_part): Likewise. | |
13420 | (regcache_raw_read_part): Likewise. | |
13421 | (regcache_raw_write_part): Likewise. | |
13422 | (regcache_cooked_read_part): Likewise. | |
13423 | (regcache_cooked_write_part): Likewise. | |
13424 | (regcache_raw_supply): Likewise. | |
13425 | (regcache_raw_collect): Likewise. | |
13426 | (regcache_transfer_regset): Likewise. | |
13427 | (regcache_supply_regset): Likewise. | |
13428 | (regcache_collect_regset): Likewise. | |
13429 | (regcache_debug_print_register): Likewise. | |
13430 | (enum regcache_dump_what): Move it to regcache.h. | |
13431 | (regcache_dump): Change it to method dump. | |
13432 | * regcache.h (enum regcache_dump_what): New. | |
13433 | (class regcache): New. | |
13434 | * target.c (target_fetch_registers): Call method | |
13435 | debug_print_register. | |
13436 | (target_store_registers): Likewise. | |
13437 | ||
f8fdb78e SM |
13438 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
13439 | ||
13440 | * windows-nat.c (struct lm_info_windows): Initialize field. | |
13441 | (windows_make_so): Allocate lm_info_windows with new. | |
13442 | (windows_free_so): Free lm_info_windows with delete. | |
13443 | ||
9ccbfd7b SM |
13444 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
13445 | ||
13446 | * solib-darwin.c (struct lm_info_darwin): Initialize field. | |
13447 | (darwin_current_sos): Allocate lm_info_darwin with new, remove | |
13448 | cleanup. | |
13449 | (darwin_free_so): Free lm_info_darwin with delete. | |
13450 | ||
76e75227 SM |
13451 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
13452 | ||
13453 | * solib-svr4.h (struct lm_info_svr4): Initialize fields. | |
13454 | <l_addr_p>: Change type to bool. | |
13455 | * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new. | |
13456 | (svr4_free_so): Free lm_info_svr4 with delete. | |
13457 | (svr4_copy_library_list): Replace memcpy with call to copy | |
13458 | constructor. | |
13459 | (library_list_start_library, svr4_default_sos): Allocate | |
13460 | lm_info_svr4 with new. | |
13461 | ||
51046d9e SM |
13462 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
13463 | ||
13464 | * solib-target.c (struct lm_info_target): Add destructor, | |
13465 | initialize fields. | |
13466 | <name>: Change type to std::string. | |
13467 | (library_list_start_library): Allocate lm_info_target with new. | |
13468 | (solib_target_free_library_list): Free lm_info_target with | |
13469 | delete. | |
13470 | (solib_target_current_sos): Adapt to std::string. | |
13471 | (solib_target_free_so): Free lm_info_target with delete. | |
13472 | ||
4023ae76 SM |
13473 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
13474 | ||
13475 | * solib-frv.c (struct lm_info_frv): Add destructor, initialize | |
13476 | fields. | |
13477 | (frv_current_sos): Allocate lm_info_frv with new. | |
13478 | (frv_relocate_main_executable): Free lm_info_frv with delete, | |
13479 | allocate with new. | |
13480 | (frv_clear_solib, frv_free_so): Free lm_info_frv with delete. | |
13481 | ||
af43057b SM |
13482 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
13483 | ||
13484 | * solib-frv.c (struct lm_info_frv): Fix indentation. | |
13485 | ||
b0911207 SM |
13486 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
13487 | ||
13488 | * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize | |
13489 | map field. | |
13490 | (dsbt_current_sos): Allocate lm_info_dsbt with new. | |
13491 | (dsbt_relocate_main_executable): Free lm_info_dsbt with delete | |
13492 | and allocate with new. | |
13493 | (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete. | |
13494 | ||
6c401f72 SM |
13495 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
13496 | ||
13497 | * solib-aix.c (struct lm_info_aix): Initialize fields in-class. | |
13498 | <filename, member_name>: Change type to std::string. | |
13499 | (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove. | |
13500 | (library_list_start_library): Allocate lm_info_aix with new. | |
13501 | (solib_aix_free_library_list, solib_aix_free_so): Free with delete. | |
13502 | (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix | |
13503 | with copy constructor. | |
13504 | ||
d0e449a1 SM |
13505 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
13506 | ||
13507 | * solist.h (struct lm_info): Remove. | |
13508 | (struct lm_info_base): New class. | |
13509 | (struct so_list) <lm_info>: Change type to lm_info_base *. | |
13510 | * nto-tdep.c (struct lm_info): Remove. | |
13511 | (lm_addr): Adjust. | |
13512 | * solib-aix.c (struct lm_info): Rename to ... | |
13513 | (struct lm_info_aix): ... this. Extend lm_info_base. | |
13514 | (lm_info_p): Rename to ... | |
13515 | (lm_info_aix_p): ... this, and adjust. | |
13516 | (solib_aix_new_lm_info, solib_aix_xfree_lm_info, | |
13517 | solib_aix_parse_libraries, library_list_start_library, | |
13518 | solib_aix_free_library_list, solib_aix_parse_libraries, | |
13519 | solib_aix_get_library_list, | |
13520 | solib_aix_relocate_section_addresses, solib_aix_free_so, | |
13521 | solib_aix_get_section_offsets, | |
13522 | solib_aix_solib_create_inferior_hook, solib_aix_current_sos): | |
13523 | Adjust. | |
13524 | (struct solib_aix_inferior_data) <library_list>: Adjust. | |
13525 | * solib-darwin.c (struct lm_info): Rename to ... | |
13526 | (struct lm_info_darwin): ... this. Extend lm_info_base. | |
13527 | (darwin_current_sos, darwin_relocate_section_addresses): Adjust. | |
13528 | * solib-dsbt.c (struct lm_info): Rename to ... | |
13529 | (struct lm_info_dsbt): ... this. Extend lm_info_base. | |
13530 | (struct dsbt_info) <main_executable_lm_info): Adjust. | |
13531 | (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so, | |
13532 | dsbt_relocate_section_addresses): Adjust. | |
13533 | * solib-frv.c (struct lm_info): Rename to ... | |
13534 | (struct lm_info_frv): ... this. Extend lm_info_base. | |
13535 | (main_executable_lm_info): Adjust. | |
13536 | (frv_current_sos, frv_relocate_main_executable, frv_free_so, | |
13537 | frv_relocate_section_addresses, frv_fdpic_find_global_pointer, | |
13538 | find_canonical_descriptor_in_load_object, | |
13539 | frv_fdpic_find_canonical_descriptor): Adjust. | |
13540 | * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed | |
13541 | to lm_info_svr4. | |
13542 | (lm_info_read, lm_addr_check, svr4_keep_data_in_core, | |
13543 | svr4_clear_so, svr4_copy_library_list, | |
13544 | library_list_start_library, svr4_default_sos, svr4_read_so_list, | |
13545 | svr4_current_sos, svr4_fetch_objfile_link_map, | |
13546 | solist_update_incremental): Adjust. | |
13547 | * solib-svr4.h (struct lm_info_svr4): Move here from | |
13548 | solib-svr4.c. | |
13549 | * solib-target.c (struct lm_info): Rename to ... | |
13550 | (struct lm_info_target): ... this. Extend lm_info_base. | |
13551 | (lm_info_p): Rename to ... | |
13552 | (lm_info_target_p): ... this. | |
13553 | (solib_target_parse_libraries, library_list_start_segment, | |
13554 | library_list_start_section, library_list_start_library, | |
13555 | library_list_end_library, solib_target_free_library_list, | |
13556 | solib_target_current_sos, solib_target_free_so, | |
13557 | solib_target_relocate_section_addresses): Adjust. | |
13558 | * windows-nat.c (struct lm_info): Rename to ... | |
13559 | (struct lm_info_windows): ... this. Extend lm_info_base. | |
13560 | (windows_make_so, handle_load_dll, handle_unload_dll, | |
13561 | windows_xfer_shared_libraries): Adjust. | |
13562 | ||
434a4023 SM |
13563 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
13564 | ||
13565 | * solib-darwin.c (struct darwin_so_list): Remove. | |
13566 | (darwin_current_sos): Allocate an so_list object instead of a | |
13567 | darwin_so_list, separately allocate an lm_info object. | |
13568 | (darwin_free_so): Free lm_info. | |
13569 | ||
428544e8 JB |
13570 | 2017-04-28 John Baldwin <jhb@FreeBSD.org> |
13571 | ||
13572 | * mips-tdep.c (print_gp_register_row): Replace printf_filtered | |
13573 | with fprintf_filtered. | |
13574 | ||
4621115f YQ |
13575 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
13576 | ||
13577 | * regcache.c (regcache::regcache): New function. | |
13578 | (regcache::~regcache): New function. | |
13579 | (regcache_xmalloc_1): Remove. | |
13580 | (regcache_xmalloc): Call new regcache. | |
13581 | (regcache_xfree): Call delete regcache. | |
13582 | (get_thread_arch_aspace_regcache): Call new regcache. | |
13583 | ||
339053c2 YQ |
13584 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
13585 | ||
13586 | * mips-linux-nat.c (mips_linux_new_thread): Use ptid method | |
13587 | lwp instead of ptid_get_lwp. | |
13588 | ||
7974a605 YQ |
13589 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
13590 | ||
13591 | * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from | |
13592 | lwp_info instead of getting from inferior_ptid. | |
13593 | ||
e15c3eb4 KS |
13594 | 2017-04-27 Keith Seitz <keiths@redhat.com> |
13595 | ||
13596 | * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS) | |
13597 | DIFFERENT_REFERENCE_TYPE_BADNESS): Remove. | |
13598 | (CV_CONVERSION_BADNESS): Define. | |
13599 | (rank_one_type): Remove overly restrictive rvalue reference | |
13600 | rank checks. | |
13601 | Add cv-qualifier checks and subranks for type equality. | |
13602 | * gdbtypes.h (REFERENCE_CONVERSION_RVALUE, | |
13603 | REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS, | |
13604 | CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare. | |
13605 | ||
72bc1d24 SM |
13606 | 2017-04-27 Simon Marchi <simon.marchi@ericsson.com> |
13607 | ||
13608 | * python/py-inferior.c (inferior_to_inferior_object): Increment reference | |
13609 | count when creating the object. | |
13610 | ||
55bcecda UW |
13611 | 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com> |
13612 | Ulrich Weigand <uweigand@de.ibm.com> | |
13613 | ||
13614 | * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary | |
13615 | entry if xlc -qfuncsect or gcc -ffunction-sections compiler option | |
13616 | is used in AIX. | |
13617 | (read_xcoff_symtab): Handle C_WEAKEXT storage class. | |
13618 | (process_xcoff_symbol): Likewise. | |
13619 | (scan_xcoff_symtab): Likewise. | |
13620 | ||
5c99fcf8 AH |
13621 | 2017-04-26 Alan Hayward <alan.hayward@arm.com> |
13622 | ||
13623 | * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned. | |
13624 | (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer. | |
13625 | (ia64_access_reg): Use get_frame_register_unsigned. | |
13626 | (ia64_access_rse_reg): Likewise. | |
13627 | (ia64_libunwind_frame_prev_register): Likewise. | |
13628 | ||
b41c5a85 JW |
13629 | 2017-04-26 Jiong Wang <jiong.wang@arm.com> |
13630 | ||
13631 | * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op. | |
13632 | * gdbarch.c: Regenerated. | |
13633 | * gdbarch.h: Regenerated. | |
13634 | * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the | |
13635 | visibility external. | |
13636 | (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI | |
13637 | between DW_CFA_lo_user and DW_CFA_high_user inclusive. | |
13638 | (enum cfa_how_kind): Move to ... | |
13639 | (struct dwarf2_frame_state_reg_info): Likewise. | |
13640 | (struct dwarf2_frame_state): Likewise. | |
13641 | * dwarf2-frame.h: ... here. | |
13642 | (dwarf2_frame_state_alloc_regs): New declaration. | |
13643 | * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function. | |
13644 | (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook. | |
13645 | ||
c185f580 AH |
13646 | 2017-04-26 Alan Hayward <alan.hayward@arm.com> |
13647 | ||
13648 | * xtensa-tdep.c (xtensa_pseudo_register_read): Use | |
13649 | regcache_raw_read_unsigned. | |
13650 | (xtensa_pseudo_register_write): Likewise. | |
13651 | ||
19c45594 AH |
13652 | 2017-04-26 Alan Hayward <alan.hayward@arm.com> |
13653 | ||
13654 | * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors. | |
13655 | (nds32_pseudo_register_write): Likewise. | |
13656 | ||
4658f12e YQ |
13657 | 2017-04-25 Yao Qi <yao.qi@linaro.org> |
13658 | ||
13659 | * regcache.c (struct regcache) <readonly_p>: Change its type | |
13660 | to bool. | |
13661 | (regcache_xmalloc_1): Update parameter type and callers update. | |
13662 | ||
d581dda8 YQ |
13663 | 2017-04-25 Yao Qi <yao.qi@linaro.org> |
13664 | ||
13665 | * aarch64-tdep.c (aarch64_gdbarch_init): Don't call | |
13666 | set_gdbarch_wchar_bit. | |
13667 | * arm-tdep.c (arm_gdbarch_init): Likewise. | |
13668 | ||
debed3db PA |
13669 | 2017-04-25 Pedro Alves <palves@redhat.com> |
13670 | ||
13671 | * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable) | |
13672 | (BothAreRelocatable, memcopy, memmove): Don't define. | |
13673 | * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New | |
13674 | macros. | |
13675 | ||
b0b92aeb PA |
13676 | 2017-04-25 Pedro Alves <palves@redhat.com> |
13677 | ||
13678 | * common/common-defs.h: Include "common/poison.h". | |
13679 | * common/function-view.h: (Not, Or, Requires): Move to traits.h | |
13680 | and adjust. | |
13681 | * common/poison.h: New file. | |
13682 | * common/traits.h: Include <type_traits>. | |
13683 | (Not, Or, Requires): New, moved from common/function-view.h. | |
13684 | ||
16c4d54a PA |
13685 | 2017-04-25 Pedro Alves <palves@redhat.com> |
13686 | ||
13687 | * breakpoint.h (struct breakpoint): In-class initialize all | |
13688 | fields. Make boolean fields "bool". | |
13689 | * breakpoint.c (init_raw_breakpoint_without_location): Remove | |
13690 | memset call and initializations no longer necessary. | |
13691 | ||
b5c36682 PA |
13692 | 2017-04-25 Pedro Alves <palves@redhat.com> |
13693 | ||
13694 | * btrace.c (pt_btrace_insn_flags): Change parameter type to | |
13695 | reference. | |
13696 | (pt_btrace_insn): New function. | |
13697 | (ftrace_add_pt): Remove memset call and use pt_btrace_insn. | |
13698 | ||
5625a286 PA |
13699 | 2017-04-25 Pedro Alves <palves@redhat.com> |
13700 | ||
13701 | * ada-lang.c (ada_catchpoint_location): Now a "class". Remove | |
13702 | "base" field and inherit from "bp_location" instead. Add | |
13703 | non-default ctor. | |
13704 | (allocate_location_exception): Use new non-default ctor. | |
13705 | * breakpoint.c (get_first_locp_gte_addr): Remove memset call. | |
13706 | (init_bp_location): Convert to ... | |
13707 | (bp_location::bp_location): ... this new ctor, and remove memset | |
13708 | call. | |
13709 | (base_breakpoint_allocate_location): Use the new non-default ctor. | |
13710 | * breakpoint.h (bp_location): Now a class. Declare default and | |
13711 | non-default ctors. In-class initialize all members. | |
13712 | (init_bp_location): Remove declaration. | |
13713 | ||
23bcc18f PA |
13714 | 2017-04-25 Pedro Alves <palves@redhat.com> |
13715 | ||
13716 | * common/enum-flags.h (enum_flags): Don't implement copy ctor and | |
13717 | assignment operator. | |
13718 | ||
e1ba3053 YQ |
13719 | 2017-04-24 Yao Qi <yao.qi@linaro.org> |
13720 | ||
13721 | * doublest.c (convert_doublest_to_floatformat): Call | |
13722 | floatformat_totalsize_bytes. | |
13723 | ||
10f489e5 TT |
13724 | 2017-04-22 Tom Tromey <tom@tromey.com> |
13725 | ||
13726 | * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use | |
13727 | ui_out_emit_list. | |
13728 | * stack.c (print_frame): Use ui_out_emit_list. | |
13729 | * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use | |
13730 | ui_out_emit_list. | |
13731 | * mi/mi-main.c (print_one_inferior) | |
13732 | (mi_cmd_data_list_register_names) | |
13733 | (mi_cmd_data_list_register_values, mi_cmd_list_features) | |
13734 | (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use | |
13735 | ui_out_emit_list. | |
13736 | * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list. | |
13737 | (mi_output_solib_attribs): Use ui_out_emit_list, | |
13738 | ui_out_emit_tuple. | |
13739 | * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list. | |
13740 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames) | |
13741 | (mi_cmd_stack_list_args, list_args_or_locals): Use | |
13742 | ui_out_emit_list. | |
13743 | * disasm.c (do_assembly_only): Use ui_out_emit_list. | |
13744 | * breakpoint.c (print_solib_event, output_thread_groups): Use | |
13745 | ui_out_emit_list. | |
13746 | ||
0092b74d TT |
13747 | 2017-04-22 Tom Tromey <tom@tromey.com> |
13748 | ||
13749 | * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple. | |
13750 | * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple. | |
13751 | * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple. | |
13752 | ||
a14a62dd TT |
13753 | 2017-04-22 Tom Tromey <tom@tromey.com> |
13754 | ||
13755 | * tracepoint.c (tvariables_info_1) | |
13756 | (print_one_static_tracepoint_marker): Use ui_out_emit_tuple. | |
13757 | ||
46b9c129 TT |
13758 | 2017-04-22 Tom Tromey <tom@tromey.com> |
13759 | ||
13760 | * stack.c (print_frame_arg): Use ui_out_emit_tuple, | |
13761 | annotate_arg_emitter. | |
13762 | * breakpoint.c (print_mention_watchpoint) | |
13763 | (print_mention_masked_watchpoint): Use ui_out_emit_tuple. | |
13764 | * annotate.h (struct annotate_arg_emitter): New. | |
13765 | ||
2e783024 TT |
13766 | 2017-04-22 Tom Tromey <tom@tromey.com> |
13767 | ||
13768 | * record-btrace.c (record_btrace_insn_history) | |
13769 | (record_btrace_insn_history_range, record_btrace_call_history) | |
13770 | (record_btrace_call_history_range): Use ui_out_emit_tuple. | |
13771 | * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use | |
13772 | ui_out_emit_tuple. | |
13773 | * stack.c (print_frame_info): Use ui_out_emit_tuple. | |
13774 | * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple. | |
13775 | * skip.c (skip_info): Use ui_out_emit_tuple. | |
13776 | * remote.c (show_remote_cmd): Use ui_out_emit_tuple. | |
13777 | * progspace.c (print_program_space): Use ui_out_emit_tuple. | |
13778 | * probe.c (info_probes_for_ops): Use ui_out_emit_tuple. | |
13779 | * osdata.c (info_osdata): Use ui_out_emit_tuple. | |
13780 | * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use | |
13781 | ui_out_emit_tuple. | |
13782 | * mi/mi-main.c (print_one_inferior, list_available_thread_groups) | |
13783 | (output_register, mi_cmd_data_read_memory) | |
13784 | (mi_cmd_data_read_memory_bytes, mi_load_progress) | |
13785 | (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple. | |
13786 | * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one): | |
13787 | Use ui_out_emit_tuple. | |
13788 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use | |
13789 | ui_out_emit_tuple. | |
13790 | * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions) | |
13791 | (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple. | |
13792 | * linux-thread-db.c (info_auto_load_libthread_db): Use | |
13793 | ui_out_emit_tuple. | |
13794 | * inferior.c (print_inferior): Use ui_out_emit_tuple. | |
13795 | * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple. | |
13796 | * disasm.c (do_mixed_source_and_assembly_deprecated) | |
13797 | (do_mixed_source_and_assembly): Use ui_out_emit_tuple. | |
13798 | * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple. | |
13799 | * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple. | |
13800 | * breakpoint.c (print_one_breakpoint_location) | |
13801 | (print_one_breakpoint): Use ui_out_emit_tuple. | |
13802 | * auto-load.c (print_script, info_auto_load_cmd): Use | |
13803 | ui_out_emit_tuple. | |
13804 | * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple. | |
13805 | ||
9be21bb4 SM |
13806 | 2017-04-21 Simon Marchi <simon.marchi@ericsson.com> |
13807 | ||
13808 | * thread.c (print_thread_info_1): Remove dead code. | |
13809 | ||
0d4c07af JK |
13810 | 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
13811 | ||
13812 | * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if | |
13813 | GDB_SELF_TEST. | |
13814 | * arm-tdep.c (selftests::arm_record_test): Likewise. | |
13815 | ||
4daf993d YQ |
13816 | 2017-04-21 Yao Qi <yao.qi@linaro.org> |
13817 | ||
13818 | * regcache.c (regcache_restore): Remove argument 2. Replace | |
13819 | argument 3 with regcache. Get register status from | |
13820 | src->register_status and get register contents from | |
13821 | register_buffer (src, regnum). | |
13822 | (regcache_cpy): Update. | |
13823 | ||
a6c21d4a PA |
13824 | 2017-04-19 Pedro Alves <palves@redhat.com> |
13825 | ||
13826 | * gdbthread.h (thread): Add missing closing parenthesis in | |
13827 | comment. | |
13828 | ||
3a3fd0fd PA |
13829 | 2017-04-19 Pedro Alves <palves@redhat.com> |
13830 | ||
13831 | * common/refcounted-object.h: New file. | |
13832 | * gdbthread.h: Include "common/refcounted-object.h". | |
13833 | (thread_info): Inherit from refcounted_object and add comments. | |
13834 | (thread_info::incref, thread_info::decref) | |
13835 | (thread_info::m_refcount): Delete. | |
13836 | (thread_info::deletable): Use the refcounted_object::refcount() | |
13837 | method. | |
13838 | * inferior.c (current_inferior_): Add comment. | |
13839 | (set_current_inferior): Increment/decrement refcounts. | |
13840 | (prune_inferiors, remove_inferior_command): Skip inferiors marked | |
13841 | not-deletable instead of comparing with the current inferior. | |
13842 | (initialize_inferiors): Increment the initial inferior's refcount. | |
13843 | * inferior.h (struct inferior): Forward declare. | |
13844 | Include "common/refcounted-object.h". | |
13845 | (current_inferior, set_current_inferior): Move declaration to | |
13846 | before struct inferior's definition, and fix comment. | |
13847 | (inferior): Inherit from refcounted_object. Add comments. | |
13848 | * thread.c (switch_to_thread_no_regs): Reference the thread's | |
13849 | inferior pointer directly instead of doing a ptid lookup. | |
13850 | (switch_to_no_thread): New function. | |
13851 | (switch_to_thread(thread_info *)): New function, factored out | |
13852 | from ... | |
13853 | (switch_to_thread(ptid_t)): ... this. | |
13854 | (restore_current_thread): Delete. | |
13855 | (current_thread_cleanup): Remove 'inf_id' and 'was_removable' | |
13856 | fields, and add 'inf' field. | |
13857 | (do_restore_current_thread_cleanup): Check whether old->inf is | |
13858 | alive instead of looking up an inferior by ptid. Use | |
13859 | switch_to_thread and switch_to_no_thread. | |
13860 | (restore_current_thread_cleanup_dtor): Use old->inf directly | |
13861 | instead of lookup up an inferior by id. Decref the inferior. | |
13862 | Don't restore 'removable'. | |
13863 | (make_cleanup_restore_current_thread): Same the inferior pointer | |
13864 | in old, instead of the inferior number. Incref the inferior. | |
13865 | Don't save/clear 'removable'. | |
13866 | ||
9bcb1f16 PA |
13867 | 2017-04-19 Pedro Alves <palves@redhat.com> |
13868 | ||
13869 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
13870 | unittests/scoped_restore-selftests.c. | |
13871 | (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o. | |
13872 | * common/scoped_restore.h (scoped_restore_base): Make "class". | |
13873 | (scoped_restore_base::release): New public method. | |
13874 | (scoped_restore_base::scoped_restore_base): New protected ctor. | |
13875 | (scoped_restore_base::m_saved_var): New protected field. | |
13876 | (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the | |
13877 | scoped_restore_base base class instead of m_saved_var directly. | |
13878 | (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise. | |
13879 | (scoped_restore_tmpl::scoped_restore_tmpl(const | |
13880 | scoped_restore_tmpl<T>&)): Likewise. | |
13881 | (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var | |
13882 | method. | |
13883 | (scoped_restore_tmpl::saved_var): New method. | |
13884 | (scoped_restore_tmpl::m_saved_var): Delete. | |
13885 | * inferior.h (inferior::detaching): Now a bool. | |
13886 | * infrun.c (prepare_for_detach): Use a scoped_restore instead of a | |
13887 | cleanup. | |
13888 | * unittests/scoped_restore-selftests.c: New file. | |
13889 | ||
26fcd539 PA |
13890 | 2017-04-19 Pedro Alves <palves@redhat.com> |
13891 | ||
13892 | * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): | |
13893 | Re-sort in alphabetic order. | |
13894 | ||
fdd243b0 PA |
13895 | 2017-04-18 Pedro Alves <palves@redhat.com> |
13896 | ||
13897 | * xml-support.c (obstack_xml_printf): Delete. | |
13898 | * xml-support.h (obstack_xml_printf): Delete. | |
13899 | ||
4895cde2 PA |
13900 | 2017-04-18 Pedro Alves <palves@redhat.com> |
13901 | ||
13902 | * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse, | |
13903 | vdebug, verror, body_text, start_element, end_element, name, | |
13904 | user_data, set_is_xinclude, set_error, expat_parser>: New methods. | |
13905 | <name, user_data, expat_parser, scopes, error, last_line, dtd_name, | |
13906 | is_xinclude>: Make private and add m_ prefix. | |
13907 | (gdb_xml_parser::body_text): New method, based on ... | |
13908 | (gdb_xml_body_text): ... this. Adjust. | |
13909 | (gdb_xml_parser::vdebug): New method, based on ... | |
13910 | (gdb_xml_debug): ... this. Adjust. | |
13911 | (gdb_xml_parser::verror): New method, based on ... | |
13912 | (gdb_xml_error): ... this. Adjust. | |
13913 | (gdb_xml_parser::start_element): New method, based on ... | |
13914 | (gdb_xml_start_element): ... this. Adjust. | |
13915 | (gdb_xml_start_element_wrapper): Defer to | |
13916 | gdb_xml_parser::start_element and gdb_xml_parser::set_error. | |
13917 | (gdb_xml_parser::end_element): New method, based on ... | |
13918 | (gdb_xml_end_element_wrapper): ... this. Adjust. | |
13919 | (gdb_xml_parser::~gdb_xml_parser): Adjust. | |
13920 | (gdb_xml_parser::gdb_xml_parser): Adjust to field renames. | |
13921 | (gdb_xml_parser::use_dtd): New method, based on ... | |
13922 | (gdb_xml_use_dtd): ... this. Adjust. | |
13923 | (gdb_xml_parser::parse): New method, based on ... | |
13924 | (gdb_xml_parse): ... this. Adjust. | |
13925 | (gdb_xml_parse_quick): Adjust to call the parser's parse method. | |
13926 | (xinclude_start_include): Adjust to call the parser's name method. | |
13927 | (xml_xinclude_default, xml_xinclude_start_doctype) | |
13928 | (xml_xinclude_end_doctype): Adjust to call the parser's user_data | |
13929 | method. | |
13930 | (xml_process_xincludes): Adjust to call parser methods. | |
13931 | * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete | |
13932 | declarations. | |
13933 | ||
bd8a901f PA |
13934 | 2017-04-18 Pedro Alves <palves@redhat.com> |
13935 | ||
13936 | * tracefile-tfile.c (tfile_write_tdesc): Adjust to use | |
13937 | gdb::optional<std::string>. | |
13938 | * xml-support.c: Include <string>. | |
13939 | (scope_level::scope_level(scope_level &&)) | |
13940 | (scope_level::~scope_level): Delete. | |
13941 | (scope_level::body): Now a std::string. | |
13942 | (gdb_xml_body_text, gdb_xml_end_element): Adjust. | |
13943 | (xinclude_parsing_data::xinclude_parsing_data): Add 'output' | |
13944 | parameter. | |
13945 | (xinclude_parsing_data::~xinclude_parsing_data): Delete. | |
13946 | (xinclude_parsing_data::output): Now a std::string reference. | |
13947 | (xinclude_start_include): Adjust. | |
13948 | (xml_xinclude_default): Adjust. | |
13949 | (xml_process_xincludes): Add 'output' parameter, and return bool. | |
13950 | * xml-support.h (xml_process_xincludes): Add 'output' parameter, | |
13951 | and return bool. | |
13952 | * xml-tdesc.c: Include <unordered_map> and <string>. | |
13953 | (tdesc_xml_cache): Delete. | |
13954 | (tdesc_xml_cache_s): Delete. | |
13955 | (xml_cache): Now an std::unordered_map. | |
13956 | (tdesc_parse_xml): Adjust to use std::string and unordered_map. | |
13957 | (target_fetch_description_xml): Change return type to | |
13958 | gdb::optional<std::string>, and adjust. | |
13959 | * xml-tdesc.h: Include "common/gdb_optional.h" and <string>. | |
13960 | (target_fetch_description_xml): Change return type to | |
13961 | gdb::optional<std::string>. | |
13962 | ||
d35d1958 PA |
13963 | 2017-04-18 Pedro Alves <palves@redhat.com> |
13964 | ||
13965 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
13966 | unittests/optional-selftests.c. | |
13967 | (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o. | |
13968 | * unittests/optional-selftests.c: New file. | |
13969 | * unittests/optional/assignment/1.cc: New file. | |
13970 | * unittests/optional/assignment/2.cc: New file. | |
13971 | * unittests/optional/assignment/3.cc: New file. | |
13972 | * unittests/optional/assignment/4.cc: New file. | |
13973 | * unittests/optional/assignment/5.cc: New file. | |
13974 | * unittests/optional/assignment/6.cc: New file. | |
13975 | * unittests/optional/assignment/7.cc: New file. | |
13976 | * unittests/optional/cons/copy.cc: New file. | |
13977 | * unittests/optional/cons/default.cc: New file. | |
13978 | * unittests/optional/cons/move.cc: New file. | |
13979 | * unittests/optional/cons/value.cc: New file. | |
13980 | * unittests/optional/in_place.cc: New file. | |
13981 | * unittests/optional/observers/1.cc: New file. | |
13982 | * unittests/optional/observers/2.cc: New file. | |
13983 | ||
22796e97 PA |
13984 | 2017-04-18 Pedro Alves <palves@redhat.com> |
13985 | ||
13986 | * common/gdb_optional.h: Include common/traits.h. | |
13987 | (in_place_t): New type. | |
13988 | (in_place): New constexpr variable. | |
13989 | (optional::optional): Remove member initialization of | |
13990 | m_instantiated. | |
13991 | (optional::optional(in_place_t...)): New constructor. | |
13992 | (optional::~optional): Use reset. | |
13993 | (optional::optional(const optional&)): New. | |
13994 | (optional::optional(const optional&&)): New. | |
13995 | (optional::optional(T &)): New. | |
13996 | (optional::optional(T &&)): New. | |
13997 | (operator::operator=(const optional &)): New. | |
13998 | (operator::operator=(optional &&)): New. | |
13999 | (operator::operator= (const T &)) | |
14000 | (operator::operator= (T &&)) | |
14001 | (operator::emplace (Args &&... args)): Return a T&. Use reset. | |
14002 | (operator::reset): New. | |
14003 | (operator::m_instantiated):: Add in-class initializer. | |
14004 | * common/traits.h: Include <type_traits>. | |
14005 | (struct And): New types. | |
14006 | ||
a7fc9b61 PA |
14007 | 2017-04-18 Pedro Alves <palves@redhat.com> |
14008 | ||
14009 | * xml-support.c: Include <vector>. | |
14010 | (scope_level::scope_level(const gdb_xml_element *)) | |
14011 | (scope_level::scope_level(scope_level&&)): New. | |
14012 | (scope_level::~scope_level): New. | |
14013 | (scope_level_s): Delete. | |
14014 | (gdb_xml_parser::scopes): Now a std::vector. | |
14015 | (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element): | |
14016 | Use std::vector. | |
14017 | (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary | |
14018 | scope cleanup code. | |
14019 | (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization | |
14020 | of the scopes member. Use std::vector::emplace_back. | |
14021 | ||
010151c9 PA |
14022 | 2017-04-18 Pedro Alves <palves@redhat.com> |
14023 | ||
14024 | * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude | |
14025 | a bool. | |
14026 | (gdb_xml_end_element): Change type of first parameter. | |
14027 | (gdb_xml_cleanup): Rename to ... | |
14028 | (gdb_xml_parser::~gdb_xml_parser): ... this. | |
14029 | (gdb_xml_create_parser_and_cleanup): Delete with ... | |
14030 | (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out | |
14031 | to this new ctor. | |
14032 | (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of | |
14033 | using gdb_xml_create_parser_and_cleanup. | |
14034 | (xinclude_parsing_data): Add ctor/dtor. | |
14035 | (xml_xinclude_cleanup): Delete. | |
14036 | (xml_process_xincludes): Create a local xinclude_parsing_data | |
14037 | instead of heap-allocating one. Create a local gdb_xml_parser | |
14038 | instead of heap-allocating one with | |
14039 | gdb_xml_create_parser_and_cleanup. | |
14040 | ||
d56060f0 JB |
14041 | 2017-04-18 John Baldwin <jhb@FreeBSD.org> |
14042 | ||
14043 | PR threads/20743 | |
14044 | * fbsd-nat.c (resume_one_thread_cb): Remove. | |
14045 | (resume_all_threads_cb): Remove. | |
14046 | (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of | |
14047 | iterate_over_threads. | |
14048 | ||
305d16a9 JB |
14049 | 2017-04-17 Joel Brobecker <brobecker@adacore.com> |
14050 | ||
14051 | * NEWS: Create a new section for the next release branch. | |
14052 | Rename the section of the current branch, now that it has | |
14053 | been cut. | |
14054 | ||
8bb57231 JB |
14055 | 2017-04-17 Joel Brobecker <brobecker@adacore.com> |
14056 | ||
14057 | GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db): | |
14058 | * version.in: Bump version to 8.0.50.DATE-git. | |
14059 | ||
096c92dd SDJ |
14060 | 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com> |
14061 | ||
14062 | PR gdb/21385 | |
14063 | * windows-nat.c (windows_create_inferior): Declare 'allargs' | |
14064 | independently of the host, and fix build breakage on Cygwin. | |
14065 | ||
0550c955 PA |
14066 | 2017-04-13 Pedro Alves <palves@redhat.com> |
14067 | ||
14068 | * inferior.c (free_inferior): Convert to ... | |
14069 | (inferior::~inferior): ... this dtor. | |
14070 | (inferior::inferior): New ctor, factored out from ... | |
14071 | (add_inferior_silent): ... here. Allocate the inferior with a new | |
14072 | expression. | |
14073 | (delete_inferior): Call delete instead of free_inferior. | |
14074 | * inferior.h (gdb_environ, continuation): Forward declare. | |
14075 | (inferior): Now a class. Add in-class initialization to all | |
14076 | members. Make boolean fields bool, except 'detaching'. | |
14077 | (inferior::inferior): New explicit ctor. | |
14078 | (inferior::~inferior): New. | |
14079 | ||
e3d60dfc PA |
14080 | 2017-04-13 Pedro Alves <palves@redhat.com> |
14081 | ||
14082 | * inferior.c (init_inferior_list): Delete. | |
14083 | * inferior.h (init_inferior_list): Delete. | |
14084 | ||
5fd69d0a PA |
14085 | 2017-04-13 Pedro Alves <palves@redhat.com> |
14086 | ||
14087 | PR threads/13217 | |
14088 | * gdb.threads/threadapply.exp (thr_apply_detach): New procedure. | |
14089 | (top level): Call it twice, with different thread sets. | |
14090 | ||
c6609450 PA |
14091 | 2017-04-13 Pedro Alves <palves@redhat.com> |
14092 | ||
14093 | * thread.c: Include <algorithm>. | |
14094 | (thread_array_cleanup): Delete. | |
14095 | (scoped_inc_dec_ref): New class. | |
14096 | (live_threads_count): New function. | |
14097 | (set_thread_refcount): Delete. | |
14098 | (tp_array_compar_ascending): Now a bool. | |
14099 | (tp_array_compar): Convert to a std::sort comparison function. | |
14100 | (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref | |
14101 | and live_threads_count. | |
14102 | ||
2a00d7ce PA |
14103 | 2017-04-13 Pedro Alves <palves@redhat.com> |
14104 | ||
14105 | * infrun.c (follow_fork_inferior): Also switch the current | |
14106 | inferior. | |
14107 | ||
441d7c93 PA |
14108 | 2017-04-13 Pedro Alves <palves@redhat.com> |
14109 | ||
14110 | * breakpoint.c (watch_command_1): Save watchpoint-frame info | |
14111 | before calling create_internal_breakpoint. | |
14112 | ||
808480f6 PA |
14113 | 2017-04-13 Pedro Alves <palves@redhat.com> |
14114 | ||
14115 | * fork-child.c (execv_argv): New class. | |
14116 | (breakup_args): Refactored as ... | |
14117 | (execv_argv::init_for_no_shell): .. this method of execv_argv. | |
14118 | Copy arguments to storage and replace separators with NULL | |
14119 | terminators in place. | |
14120 | (escape_bang_in_quoted_argument): Adjust to return bool. | |
14121 | (execv_argv::execv_argv): New ctor. | |
14122 | (execv_argv::init_for_shell): New method, factored out from | |
14123 | fork_inferior. Don't strdup strings into the vector. | |
14124 | (fork_inferior): Eliminate "shell" local and use execv_argv. Use | |
14125 | Remove free_vector_argv call. | |
14126 | ||
ad3d022a YQ |
14127 | 2017-04-13 Yao Qi <yao.qi@linaro.org> |
14128 | ||
14129 | * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of | |
14130 | tdep->rx_psw_type. | |
14131 | ||
e6ddc3bf YQ |
14132 | 2017-04-13 Yao Qi <yao.qi@linaro.org> |
14133 | ||
14134 | * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW. | |
14135 | * rx-tdep.c (rx_gdbarch_init): Likewise. | |
14136 | ||
bfb8cf90 PA |
14137 | 2017-04-13 Pedro Alves <palves@redhat.com> |
14138 | ||
14139 | * breakpoint.h (struct breakpoint): Reindent. | |
14140 | ||
f5336ca5 PA |
14141 | 2017-04-13 Pedro Alves <palves@redhat.com> |
14142 | ||
14143 | * breakpoint.c (bp_location): Rename to ... | |
14144 | (bp_locations): ... this. All references updated. | |
14145 | (bp_location_count): Rename to ... | |
14146 | (bp_locations_count): ... this. All references updated. | |
14147 | (bp_location_placed_address_before_address_max): Rename to ... | |
14148 | (bp_locations_placed_address_before_address_max): ... this. All | |
14149 | references updated. | |
14150 | (bp_location_shadow_len_after_address_max): Rename to ... | |
14151 | (bp_locations_shadow_len_after_address_max): ... this. All | |
14152 | references updated. | |
14153 | (bp_location_compare_addrs): Rename to ... | |
14154 | (bp_locations_compare_addrs): ... this. All references updated. | |
14155 | (bp_location_compare):Rename to ... | |
14156 | (bp_locations_compare): ... this. All references updated. | |
14157 | (bp_location_target_extensions_update): Rename to ... | |
14158 | (bp_locations_target_extensions_update): ... this. All references | |
14159 | updated. | |
14160 | ||
be628ab8 SDJ |
14161 | 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com> |
14162 | ||
14163 | * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h". | |
14164 | * common/common.m4: Check headers 'termios.h', 'termio.h' and | |
14165 | 'sgtty.h'. | |
14166 | * common/gdb_termios.h: New file, with parts of "terminal.h". | |
14167 | * inflow.c: Include "gdb_termios.h". | |
14168 | * ser-unix.c: Include "gdb_termios.h". | |
14169 | * terminal.h: Move terminal-related defines to | |
14170 | "common/gdb_termios.h". | |
14171 | ||
8e9e35b1 TT |
14172 | 2017-04-12 Tom Tromey <tom@tromey.com> |
14173 | ||
14174 | * probe.c (parse_probes): Update. | |
14175 | * location.h (delete_event_location): Don't declare. | |
14176 | (event_location_deleter::operator()): Update. | |
14177 | * location.c (event_location_deleter::operator()): Rename from | |
14178 | delete_event_location. | |
14179 | * linespec.h (linespec_result) <location>: Change type to | |
14180 | event_location_up. | |
14181 | * linespec.c (canonicalize_linespec, event_location_to_sals) | |
14182 | (decode_objc): Update. | |
14183 | (linespec_result): Don't call delete_event_location. | |
14184 | * breakpoint.c (create_breakpoints_sal) | |
14185 | (bkpt_probe_create_sals_from_location) | |
14186 | (strace_marker_create_sals_from_location): Update. | |
14187 | ||
16e802b9 TT |
14188 | 2017-04-12 Tom Tromey <tom@tromey.com> |
14189 | ||
14190 | * linespec.h (struct linespec_result): Add constructor and | |
14191 | destructor. | |
14192 | (init_linespec_result, destroy_linespec_result) | |
14193 | (make_cleanup_destroy_linespec_result): Don't declare. | |
14194 | * linespec.c (init_linespec_result): Remove. | |
14195 | (linespec_result::~linespec_result): Rename from | |
14196 | destroy_linespec_result. Update. | |
14197 | (cleanup_linespec_result, make_cleanup_destroy_linespec_result): | |
14198 | Remove. | |
14199 | * breakpoint.c (create_breakpoint, break_range_command) | |
14200 | (decode_location_default): Update. | |
14201 | * ax-gdb.c (agent_command_1): Update. | |
14202 | ||
d28cd78a TT |
14203 | 2017-04-12 Tom Tromey <tom@tromey.com> |
14204 | ||
14205 | * remote.c (remote_download_tracepoint): Update. | |
14206 | * python/py-breakpoint.c (bppy_get_location): Update. | |
14207 | * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob) | |
14208 | (gdbscm_breakpoint_location): Update. | |
14209 | * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update. | |
14210 | * breakpoint.h (struct breakpoint) <location, location_range_end>: | |
14211 | Change type to event_location_up. | |
14212 | * breakpoint.c (create_overlay_event_breakpoint) | |
14213 | (create_longjmp_master_breakpoint) | |
14214 | (create_std_terminate_master_breakpoint) | |
14215 | (create_exception_master_breakpoint) | |
14216 | (breakpoint_event_location_empty_p, print_breakpoint_location) | |
14217 | (print_one_breakpoint_location, create_thread_event_breakpoint) | |
14218 | (init_breakpoint_sal, create_breakpoint) | |
14219 | (print_recreate_ranged_breakpoint, break_range_command) | |
14220 | (init_ada_exception_breakpoint, say_where): Update. | |
14221 | (base_breakpoint_dtor): Don't call delete_event_location. | |
14222 | (bkpt_print_recreate, tracepoint_print_recreate) | |
14223 | (dprintf_print_recreate, update_static_tracepoint) | |
14224 | (breakpoint_re_set_default): Update. | |
14225 | ||
711799d5 TT |
14226 | 2017-04-12 Tom Tromey <tom@tromey.com> |
14227 | ||
14228 | * compile/compile-loc2c.c (compute_stack_depth_worker): Change | |
14229 | type of "to_do". Update. | |
14230 | (compute_stack_depth): Use std::vector. | |
14231 | ||
52d214d3 TT |
14232 | 2017-04-12 Tom Tromey <tom@tromey.com> |
14233 | ||
14234 | * printcmd.c (find_instruction_backward): Use std::vector. | |
14235 | ||
4c404b8b TT |
14236 | 2017-04-12 Tom Tromey <tom@tromey.com> |
14237 | ||
14238 | * symfile.c (objfilep): Remove typedef. | |
14239 | (reread_symbols): Use a std::vector. | |
14240 | ||
156d9eab TT |
14241 | 2017-04-12 Tom Tromey <tom@tromey.com> |
14242 | ||
14243 | * mi/mi-main.c (exec_direction_forward): Remove. | |
14244 | (exec_reverse_continue, mi_execute_command): Use scoped_restore. | |
14245 | * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use | |
14246 | scoped_restore. | |
14247 | * guile/guile.c (guile_repl_command, guile_command) | |
14248 | (gdbscm_execute_gdb_command): Use scoped_restore. | |
14249 | * go-exp.y (go_parse): Use scoped_restore. | |
14250 | * d-exp.y (d_parse): Use scoped_restore. | |
14251 | * cli/cli-decode.c (cmd_func): Use scoped_restore. | |
14252 | * c-exp.y (c_parse): Use scoped_restore. | |
14253 | ||
4d89769a TT |
14254 | 2017-04-12 Tom Tromey <tom@tromey.com> |
14255 | ||
14256 | * mi/mi-parse.h (struct mi_parse): Add constructor, destructor. | |
14257 | (mi_parse): Update return type. | |
14258 | (mi_parse_free): Remove. | |
14259 | * mi/mi-parse.c (mi_parse::mi_parse): New constructor. | |
14260 | (mi_parse::~mi_parse): Rename from mi_parse_free. | |
14261 | (mi_parse_cleanup): Remove. | |
14262 | (mi_parse): Return a unique_ptr. Use new. | |
14263 | * mi/mi-main.c (mi_execute_command): Update. | |
14264 | ||
4b217cc7 TT |
14265 | 2017-04-12 Tom Tromey <tom@tromey.com> |
14266 | ||
14267 | * location.c (explicit_location_lex_one): Return a | |
14268 | unique_xmalloc_ptr. | |
14269 | (string_to_explicit_location): Update. Remove cleanups. | |
14270 | ||
59d3651b TT |
14271 | 2017-04-12 Tom Tromey <tom@tromey.com> |
14272 | ||
14273 | * gnu-v3-abi.c (value_and_voffset_p): Remove typedef. | |
14274 | (compare_value_and_voffset): Change type. Update. | |
14275 | (compute_vtable_size): Change type of "offset_vec". | |
14276 | (gnuv3_print_vtable): Use std::vector. Remove cleanups. | |
14277 | (gnuv3_get_typeid): Remove extraneous declaration. | |
14278 | ||
b24b0d6c TT |
14279 | 2017-04-12 Tom Tromey <tom@tromey.com> |
14280 | ||
14281 | * charset.h (wchar_iterator): Fix comment. | |
14282 | ||
80a3b8c5 TT |
14283 | 2017-04-12 Tom Tromey <tom@tromey.com> |
14284 | ||
14285 | * charset.c (iconv_wrapper): New class. | |
14286 | (cleanup_iconv): Remove. | |
14287 | (convert_between_encodings): Use it. | |
14288 | ||
c83dd867 TT |
14289 | 2017-04-12 Tom Tromey <tom@tromey.com> |
14290 | ||
14291 | * symfile.h (increment_reading_symtab): Update type. | |
14292 | * symfile.c (decrement_reading_symtab): Remove. | |
14293 | (increment_reading_symtab): Return a scoped_restore_tmpl<int>. | |
14294 | * psymtab.c (psymtab_to_symtab): Update. | |
14295 | * dwarf2read.c (dw2_instantiate_symtab): Update. | |
14296 | ||
0e8621a0 TT |
14297 | 2017-04-12 Tom Tromey <tom@tromey.com> |
14298 | ||
14299 | * jit.c (struct jit_reader): Declare separately. Add constructor | |
14300 | and destructor. Change type of "handle". | |
14301 | (loaded_jit_reader): Define separately. | |
14302 | (jit_reader_load): Update. New "new". | |
14303 | (jit_reader_unload_command): Use "delete". | |
14304 | * gdb-dlfcn.h (struct dlclose_deleter): New. | |
14305 | (gdb_dlhandle_up): New typedef. | |
14306 | (gdb_dlopen, gdb_dlsym): Update types. | |
14307 | (gdb_dlclose): Remove. | |
14308 | * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up. | |
14309 | (gdb_dlsym): Change type of "handle". | |
14310 | (make_cleanup_dlclose): Remove. | |
14311 | (dlclose_deleter::operator()): Rename from gdb_dlclose. | |
14312 | * compile/compile-c-support.c (load_libcc): Update. | |
14313 | ||
67d89901 TT |
14314 | 2017-04-12 Tom Tromey <tom@tromey.com> |
14315 | ||
14316 | * symtab.h (find_pcs_for_symtab_line): Change return type. | |
14317 | * symtab.c (find_pcs_for_symtab_line): Change return type. | |
14318 | * python/py-linetable.c (build_line_table_tuple_from_pcs): Change | |
14319 | type of "vec". Update. | |
14320 | (ltpy_get_pcs_for_line): Update. | |
14321 | * linespec.c (decode_digits_ordinary): Update. | |
14322 | ||
93921405 TT |
14323 | 2017-04-12 Tom Tromey <tom@tromey.com> |
14324 | ||
14325 | * tracepoint.c (actions_command): Update. | |
14326 | * python/python.c (python_command, python_interactive_command): | |
14327 | Update. | |
14328 | * mi/mi-cmd-break.c (mi_cmd_break_commands): Update. | |
14329 | * guile/guile.c (guile_command): Update. | |
14330 | * defs.h (read_command_lines, read_command_lines_1): Return | |
14331 | command_line_up. | |
14332 | (command_lines_deleter): New struct. | |
14333 | (command_line_up): New typedef. | |
14334 | * compile/compile.c (compile_code_command) | |
14335 | (compile_print_command): Update. | |
14336 | * cli/cli-script.h (get_command_line, copy_command_lines): Return | |
14337 | command_line_up. | |
14338 | (make_cleanup_free_command_lines): Remove. | |
14339 | * cli/cli-script.c (get_command_line, read_command_lines_1) | |
14340 | (copy_command_lines): Return command_line_up. | |
14341 | (while_command, if_command, read_command_lines, define_command) | |
14342 | (document_command): Update. | |
14343 | (do_free_command_lines_cleanup, make_cleanup_free_command_lines): | |
14344 | Remove. | |
14345 | * breakpoint.h (breakpoint_set_commands): Change type of | |
14346 | "commands". | |
14347 | * breakpoint.c (breakpoint_set_commands): Change type of | |
14348 | "commands". Update. | |
14349 | (do_map_commands_command, update_dprintf_command_list) | |
14350 | (create_tracepoint_from_upload): Update. | |
14351 | ||
ffc2605c TT |
14352 | 2017-04-12 Tom Tromey <tom@tromey.com> |
14353 | ||
14354 | * tracepoint.c (scope_info): Update. | |
14355 | * spu-tdep.c (spu_catch_start): Update. | |
14356 | * python/python.c (gdbpy_decode_line): Update. | |
14357 | * python/py-finishbreakpoint.c (bpfinishpy_init): Update. | |
14358 | * python/py-breakpoint.c (bppy_init): Update. | |
14359 | * probe.c (parse_probes): Update. | |
14360 | * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update. | |
14361 | * location.h (event_location_deleter): New struct. | |
14362 | (event_location_up): New typedef. | |
14363 | (new_linespec_location, new_address_location, new_probe_location) | |
14364 | (new_explicit_location, copy_event_location) | |
14365 | (string_to_event_location, string_to_event_location_basic) | |
14366 | (string_to_explicit_location): Update return type. | |
14367 | (make_cleanup_delete_event_location): Remove. | |
14368 | * location.c (new_linespec_location, new_address_location) | |
14369 | (new_probe_location, new_explicit_location, copy_event_location): | |
14370 | Return event_location_up. | |
14371 | (delete_event_location_cleanup) | |
14372 | (make_cleanup_delete_event_location): Remove. | |
14373 | (string_to_explicit_location, string_to_event_location_basic) | |
14374 | (string_to_event_location): Return event_location_up. | |
14375 | * linespec.c (canonicalize_linespec, event_location_to_sals) | |
14376 | (decode_line_with_current_source) | |
14377 | (decode_line_with_last_displayed, decode_objc): Update. | |
14378 | * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update. | |
14379 | * completer.c (location_completer): Update. | |
14380 | * cli/cli-cmds.c (edit_command, list_command): Update. | |
14381 | * breakpoint.c (create_overlay_event_breakpoint) | |
14382 | (create_longjmp_master_breakpoint) | |
14383 | (create_std_terminate_master_breakpoint) | |
14384 | (create_exception_master_breakpoint) | |
14385 | (create_thread_event_breakpoint): Update. | |
14386 | (init_breakpoint_sal): Update. Remove some dead code. | |
14387 | (create_breakpoint_sal): Change type of "location". Update. | |
14388 | (create_breakpoints_sal, create_breakpoint, break_command_1) | |
14389 | (dprintf_command, break_range_command, until_break_command) | |
14390 | (init_ada_exception_breakpoint) | |
14391 | (strace_marker_create_sals_from_location) | |
14392 | (update_static_tracepoint, trace_command, ftrace_command) | |
14393 | (strace_command, create_tracepoint_from_upload): Update. | |
14394 | * break-catch-throw.c (re_set_exception_catchpoint): Update. | |
14395 | * ax-gdb.c (agent_command_1): Update. | |
14396 | ||
8f10c932 PA |
14397 | 2017-04-12 Pedro Alves <palves@redhat.com> |
14398 | ||
14399 | * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o. | |
14400 | * configure.tgt: Handle i[34567]86-*-go32* and | |
14401 | i[34567]86-*-msdosdjgpp*. | |
14402 | * i386-tdep.c (i386_svr4_reg_to_regnum): | |
14403 | Make extern. | |
14404 | (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to | |
14405 | i386-go32-tdep.c. | |
14406 | (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c. | |
14407 | * i386-go32-tdep.c: New file. | |
14408 | * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New | |
14409 | declarations. | |
14410 | ||
0a31ccfb SM |
14411 | 2017-04-12 Simon Marchi <simon.marchi@ericsson.com> |
14412 | ||
14413 | * aix-thread.c (pd_status2str): Change return type to const char *. | |
14414 | ||
e9bb3fbb PA |
14415 | 2017-04-12 Pedro Alves <palves@redhat.com> |
14416 | ||
14417 | * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove | |
14418 | calls to set_gdbarch_gnu_triplet_regexp. | |
14419 | ||
53375380 PA |
14420 | 2017-04-12 Pedro Alves <palves@redhat.com> |
14421 | ||
14422 | PR gdb/21323 | |
14423 | * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>: | |
14424 | New enum value. | |
14425 | (cplus_language_arch_info): Register cplus_primitive_type_wchar_t. | |
14426 | * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field. | |
14427 | * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type. | |
14428 | * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values. | |
14429 | * gdbarch.h, gdbarch.c: Regenerate. | |
14430 | * aarch64-tdep.c (aarch64_gdbarch_init): Override | |
14431 | gdbarch_wchar_bit and gdbarch_wchar_signed. | |
14432 | * alpha-tdep.c (alpha_gdbarch_init): Likewise. | |
14433 | * arm-tdep.c (arm_gdbarch_init): Likewise. | |
14434 | * avr-tdep.c (avr_gdbarch_init): Likewise. | |
14435 | * h8300-tdep.c (h8300_gdbarch_init): Likewise. | |
14436 | * i386-nto-tdep.c (i386nto_init_abi): Likewise. | |
14437 | * i386-tdep.c (i386_go32_init_abi): Likewise. | |
14438 | * m32r-tdep.c (m32r_gdbarch_init): Likewise. | |
14439 | * moxie-tdep.c (moxie_gdbarch_init): Likewise. | |
14440 | * nds32-tdep.c (nds32_gdbarch_init): Likewise. | |
14441 | * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise. | |
14442 | * sh-tdep.c (sh_gdbarch_init): Likewise. | |
14443 | * sparc-tdep.c (sparc32_gdbarch_init): Likewise. | |
14444 | * sparc64-tdep.c (sparc64_init_abi): Likewise. | |
14445 | * windows-tdep.c (windows_init_abi): Likewise. | |
14446 | * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise. | |
14447 | ||
53e710ac PA |
14448 | 2017-04-12 Pedro Alves <palves@redhat.com> |
14449 | ||
14450 | PR c++/21323 | |
14451 | * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t, | |
14452 | cplus_primitive_type_char32_t>: New enum values. | |
14453 | (cplus_language_arch_info): Register cplus_primitive_type_char16_t | |
14454 | and cplus_primitive_type_char32_t. | |
14455 | * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or | |
14456 | 32, use the archtecture's built-in type for char16_t and char32_t, | |
14457 | respectively. Otherwise, fallback to init_integer_type as before, | |
14458 | but make the type unsigned, and issue a complaint. | |
14459 | * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned. | |
14460 | ||
ab0538b8 AH |
14461 | 2017-04-12 Alan Hayward <alan.hayward@arm.com> |
14462 | ||
5e0e0422 | 14463 | * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added. |
ab0538b8 AH |
14464 | (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE. |
14465 | ||
5430098f SDJ |
14466 | 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com> |
14467 | ||
14468 | * windows-nat.c (windows_create_inferior): Declare 'toexec' as | |
14469 | 'const char *'. | |
14470 | ||
7c5ded6a SDJ |
14471 | 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com> |
14472 | ||
14473 | * common/common-utils.c (free_vector_argv): New function. | |
14474 | * common/common-utils.h: Include <vector>. | |
14475 | (free_vector_argv): New prototype. | |
14476 | * darwin-nat.c (darwin_create_inferior): Rewrite function | |
14477 | prototype in order to constify "exec_file" and accept a | |
14478 | "std::string" for "allargs". | |
14479 | * fork-child.c: Include <vector>. | |
14480 | (breakup_args): Rewrite function, using C++. | |
14481 | (fork_inferior): Rewrite function header, constify "exec_file_arg" | |
14482 | and accept "std::string" for "allargs". Update the code to | |
14483 | calculate "argv" based on "allargs". Update calls to "exec_fun" | |
14484 | and "execvp". | |
14485 | * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in | |
14486 | order to constify "exec_file" and accept a "std::string" for | |
14487 | "allargs". | |
14488 | * go32-nat.c (go32_create_inferior): Likewise. | |
14489 | * inf-ptrace.c (inf_ptrace_create_inferior): Likewise. | |
14490 | * infcmd.c (run_command_1): Constify "exec_file". Use | |
14491 | "std::string" for inferior arguments. | |
14492 | * inferior.h (fork_inferior): Update prototype. | |
14493 | * linux-nat.c (linux_nat_create_inferior): Rewrite function | |
14494 | prototype in order to constify "exec_file" and accept a | |
14495 | "std::string" for "allargs". | |
14496 | * nto-procfs.c (procfs_create_inferior): Likewise. | |
14497 | * procfs.c (procfs_create_inferior): Likewise. | |
14498 | * remote-sim.c (gdbsim_create_inferior): Likewise. | |
14499 | * remote.c (extended_remote_run): Update code to accept | |
14500 | "std::string" as argument. | |
14501 | (extended_remote_create_inferior): Rewrite function prototype in | |
14502 | order to constify "exec_file" and accept a "std::string" for | |
14503 | "allargs". | |
14504 | * rs6000-nat.c (super_create_inferior): Likewise. | |
14505 | (rs6000_create_inferior): Likewise. | |
14506 | * target.h (struct target_ops) <to_create_inferior>: Likewise. | |
14507 | * windows-nat.c (windows_create_inferior): Likewise. | |
14508 | ||
ae0eee42 PA |
14509 | 2017-04-11 Pedro Alves <palves@redhat.com> |
14510 | ||
14511 | * thread.c: Fix whitespace throughout. | |
14512 | ||
a6acac06 PR |
14513 | 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com> |
14514 | ||
14515 | * linux-nat.c (linux_nat_detach): Remove delete_lwp call. | |
14516 | ||
64403bd1 AH |
14517 | 2017-04-11 Alan Hayward <alan.hayward@arm.com> |
14518 | ||
14519 | * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE | |
14520 | ||
a5bef50f SDJ |
14521 | 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com> |
14522 | ||
14523 | PR gdb/21364 | |
14524 | * osdata.c (info_osdata): Check if 'type' is an empty string | |
14525 | instead of NULL. | |
14526 | ||
9295a5a9 PA |
14527 | 2017-04-10 Pedro Alves <palves@redhat.com> |
14528 | ||
14529 | * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid) | |
14530 | (ptid_to_global_thread_id, in_thread_list) | |
14531 | (do_captured_list_thread_ids, set_resumed, set_running) | |
14532 | (set_executing, set_stop_requested, finish_thread_state) | |
14533 | (validate_registers_access, can_access_registers_ptid) | |
14534 | (print_thread_info_1, switch_to_thread) | |
14535 | (do_restore_current_thread_cleanup) | |
14536 | (make_cleanup_restore_current_thread, thread_command) | |
14537 | (thread_name_command): Use operator== instead of ptid_equal. | |
14538 | ||
996812e3 PA |
14539 | 2017-04-10 Pedro Alves <palves@redhat.com> |
14540 | ||
14541 | * thread.c (struct current_thread_cleanup) <next>: Delete field. | |
14542 | (current_thread_cleanup_chain): Delete. | |
14543 | (restore_current_thread_cleanup_dtor) | |
14544 | (make_cleanup_restore_current_thread): Remove references to | |
14545 | current_thread_cleanup_chain. | |
14546 | ||
845b344f AH |
14547 | 2017-04-10 Alan Hayward <alan.hayward@arm.com> |
14548 | ||
14549 | * msp430-tdep.c (msp430_pseudo_register_read): Never return | |
14550 | REG_UNKNOWN. | |
14551 | ||
803bdfe4 YQ |
14552 | 2017-04-10 Yao Qi <yao.qi@linaro.org> |
14553 | ||
14554 | PR gdb/19942 | |
14555 | * gdbthread.h (thread_info::deletable): New method. | |
14556 | (thread_info::incref): New method. | |
14557 | (thread_info::decref): New method. | |
14558 | (thread_info::refcount): Move it to private. | |
14559 | * infrun.c (save_stop_context): Call inc_refcount. | |
14560 | (release_stop_context_cleanup): Likewise. | |
14561 | * thread.c (set_thread_exited): New function. | |
14562 | (init_thread_list): Delete "tp" only it is deletable, otherwise | |
14563 | call set_thread_exited. | |
14564 | (delete_thread_1): Call set_thread_exited. | |
14565 | (current_thread_cleanup) <inferior_pid>: Remove. | |
14566 | <thread>: New field. | |
14567 | (restore_current_thread_ptid_changed): Removed. | |
14568 | (do_restore_current_thread_cleanup): Adjust. | |
14569 | (restore_current_thread_cleanup_dtor): Don't call | |
14570 | find_thread_ptid. | |
14571 | (set_thread_refcount): Use dec_refcount. | |
14572 | (make_cleanup_restore_current_thread): Adjust. | |
14573 | (thread_apply_all_command): Call inc_refcount. | |
14574 | (_initialize_thread): Don't call | |
14575 | observer_attach_thread_ptid_changed. | |
14576 | ||
8c25b497 YQ |
14577 | 2017-04-10 Yao Qi <yao.qi@linaro.org> |
14578 | ||
14579 | * thread.c (delete_thread_1): Hoist code on marking thread as | |
14580 | exited. | |
14581 | ||
8473b447 SM |
14582 | 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
14583 | ||
14584 | * windows-nat.c (windows_detach): Initialize ptid with | |
14585 | minus_one_ptid. | |
14586 | ||
6670ec13 SM |
14587 | 2017-04-07 Simon Marchi <simon.marchi@ericsson.com> |
14588 | ||
14589 | * unittests/ptid-selftests.c: Fix erroneous assert messages. | |
14590 | ||
ba2f91bb AH |
14591 | 2017-04-07 Alan Hayward <alan.hayward@arm.com> |
14592 | ||
14593 | * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add. | |
14594 | (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE. | |
14595 | (bfin_pseudo_register_write): Likewise | |
14596 | ||
436252de SM |
14597 | 2017-04-06 Simon Marchi <simon.marchi@ericsson.com> |
14598 | ||
14599 | * common/ptid.h (struct ptid): Change to... | |
14600 | (class ptid_t): ... this. | |
14601 | <ptid_t>: New constructors. | |
14602 | <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=, | |
14603 | matches>: New methods. | |
14604 | <make_null, make_minus_one>: New static methods. | |
14605 | <pid>: Rename to... | |
14606 | <m_pid>: ...this. | |
14607 | <lwp>: Rename to... | |
14608 | <m_lwp>: ...this. | |
14609 | <tid>: Rename to... | |
14610 | <m_tid>: ...this. | |
14611 | (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, | |
14612 | ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments | |
14613 | as references, move comment to class ptid_t. | |
14614 | * common/ptid.c (null_ptid, minus_one_ptid): Initialize with | |
14615 | ptid_t static methods. | |
14616 | (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid, | |
14617 | ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): | |
14618 | Take ptid arguments as references, implement using ptid_t methods. | |
14619 | * unittests/ptid-selftests.c: New file. | |
14620 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
14621 | unittests/ptid-selftests.c. | |
14622 | (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o. | |
14623 | ||
0dedf377 TP |
14624 | 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com> |
14625 | ||
14626 | * python/python.c (python_run_simple_file): Cast mode literal to | |
14627 | non-const char pointer as expected by PyFile_FromString. | |
14628 | ||
4e9868d4 SM |
14629 | 2017-04-05 Simon Marchi <simon.marchi@ericsson.com> |
14630 | ||
14631 | * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with | |
14632 | minus_one_ptid and null_ptid. | |
14633 | ||
9bf2a700 PA |
14634 | 2017-04-05 Pedro Alves <palves@redhat.com> |
14635 | ||
14636 | * warning.m4 (build_warnings): Remove -Wno-write-strings. | |
14637 | * configure: Regenerate. | |
14638 | ||
a121b7c1 PA |
14639 | 2017-04-05 Pedro Alves <palves@redhat.com> |
14640 | ||
14641 | * ada-exp.y (yyerror): Constify. | |
14642 | * ada-lang.c (bound_name, get_selections) | |
14643 | (ada_variant_discrim_type) | |
14644 | (ada_variant_discrim_name, ada_value_struct_elt) | |
14645 | (ada_lookup_struct_elt_type, is_unchecked_variant) | |
14646 | (ada_which_variant_applies, standard_exc, ada_get_next_arg) | |
14647 | (catch_ada_exception_command_split) | |
14648 | (catch_ada_assert_command_split, catch_assert_command) | |
14649 | (ada_op_name): Constify. | |
14650 | * ada-lang.h (ada_yyerror, get_selections) | |
14651 | (ada_variant_discrim_name, ada_value_struct_elt): Constify. | |
14652 | * arc-tdep.c (arc_print_frame_cache): Constify. | |
14653 | * arm-tdep.c (arm_skip_stub): Constify. | |
14654 | * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref) | |
14655 | (gen_aggregate_elt_ref): Constify. | |
14656 | * bcache.c (print_bcache_statistics): Constify. | |
14657 | * bcache.h (print_bcache_statistics): Constify. | |
14658 | * break-catch-throw.c (catch_exception_command_1): | |
14659 | * breakpoint.c (struct ep_type_description::description): | |
14660 | Constify. | |
14661 | (add_solib_catchpoint): Constify. | |
14662 | (catch_fork_command_1): Add cast. | |
14663 | (add_catch_command): Constify. | |
14664 | * breakpoint.h (add_catch_command, add_solib_catchpoint): | |
14665 | Constify. | |
14666 | * bsd-uthread.c (bsd_uthread_state): Constify. | |
14667 | * buildsym.c (patch_subfile_names): Constify. | |
14668 | * buildsym.h (next_symbol_text_func, patch_subfile_names): | |
14669 | Constify. | |
14670 | * c-exp.y (yyerror): Constify. | |
14671 | (token::oper): Constify. | |
14672 | * c-lang.h (c_yyerror, cp_print_class_member): Constify. | |
14673 | * c-varobj.c (cplus_describe_child): Constify. | |
14674 | * charset.c (find_charset_names): Add cast. | |
14675 | (find_charset_names): Constify array and add const_cast. | |
14676 | * cli/cli-cmds.c (complete_command, cd_command): Constify. | |
14677 | (edit_command): Constify. | |
14678 | * cli/cli-decode.c (lookup_cmd): Constify. | |
14679 | * cli/cli-dump.c (dump_memory_command, dump_value_command): | |
14680 | Constify. | |
14681 | (struct dump_context): Constify. | |
14682 | (add_dump_command, restore_command): Constify. | |
14683 | * cli/cli-script.c (get_command_line): Constify. | |
14684 | * cli/cli-script.h (get_command_line): Constify. | |
14685 | * cli/cli-utils.c (check_for_argument): Constify. | |
14686 | * cli/cli-utils.h (check_for_argument): Constify. | |
14687 | * coff-pe-read.c (struct read_pe_section_data): Constify. | |
14688 | * command.h (lookup_cmd): Constify. | |
14689 | * common/print-utils.c (decimal2str): Constify. | |
14690 | * completer.c (gdb_print_filename): Constify. | |
14691 | * corefile.c (set_gnutarget): Constify. | |
14692 | * cp-name-parser.y (yyerror): Constify. | |
14693 | * cp-valprint.c (cp_print_class_member): Constify. | |
14694 | * cris-tdep.c (cris_register_name, crisv32_register_name): | |
14695 | Constify. | |
14696 | * d-exp.y (yyerror): Constify. | |
14697 | (struct token::oper): Constify. | |
14698 | * d-lang.h (d_yyerror): Constify. | |
14699 | * dbxread.c (struct header_file_location::name): Constify. | |
14700 | (add_old_header_file, add_new_header_file, last_function_name) | |
14701 | (dbx_next_symbol_text, add_bincl_to_list) | |
14702 | (find_corresponding_bincl_psymtab, set_namestring) | |
14703 | (find_stab_function_addr, read_dbx_symtab, start_psymtab) | |
14704 | (dbx_end_psymtab, read_ofile_symtab, process_one_symbol): | |
14705 | * defs.h (command_line_input, print_address_symbolic) | |
14706 | (deprecated_readline_begin_hook): Constify. | |
14707 | * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name): | |
14708 | Constify. | |
14709 | * event-top.c (handle_line_of_input): Constify and add cast. | |
14710 | * exceptions.c (catch_errors): Constify. | |
14711 | * exceptions.h (catch_errors): Constify. | |
14712 | * expprint.c (print_subexp_standard, op_string, op_name) | |
14713 | (op_name_standard, dump_raw_expression, dump_raw_expression): | |
14714 | * expression.h (op_name, op_string, dump_raw_expression): | |
14715 | Constify. | |
14716 | * f-exp.y (yyerror): Constify. | |
14717 | (struct token::oper): Constify. | |
14718 | (struct f77_boolean_val::name): Constify. | |
14719 | * f-lang.c (f_word_break_characters): Constify. | |
14720 | * f-lang.h (f_yyerror): Constify. | |
14721 | * fork-child.c (fork_inferior): Add cast. | |
14722 | * frv-tdep.c (struct gdbarch_tdep::register_names): Constify. | |
14723 | (new_variant): Constify. | |
14724 | * gdbarch.sh (pstring_ptr, pstring_list): Constify. | |
14725 | * gdbarch.c: Regenerate. | |
14726 | * gdbcore.h (set_gnutarget): Constify. | |
14727 | * go-exp.y (yyerror): Constify. | |
14728 | (token::oper): Constify. | |
14729 | * go-lang.h (go_yyerror): Constify. | |
14730 | * go32-nat.c (go32_sysinfo): Constify. | |
14731 | * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify. | |
14732 | * guile/scm-cmd.c (cmdscm_function): Constify. | |
14733 | * guile/scm-param.c (pascm_param_value): Constify. | |
14734 | * h8300-tdep.c (h8300_register_name, h8300s_register_name) | |
14735 | (h8300sx_register_name): Constify. | |
14736 | * hppa-tdep.c (hppa32_register_name, hppa64_register_name): | |
14737 | Constify. | |
14738 | * ia64-tdep.c (ia64_register_names): Constify. | |
14739 | * infcmd.c (construct_inferior_arguments): Constify. | |
14740 | (path_command, attach_post_wait): Constify. | |
14741 | * language.c (show_range_command, show_case_command) | |
14742 | (unk_lang_error): Constify. | |
14743 | * language.h (language_defn::la_error) | |
14744 | (language_defn::la_name_of_this): Constify. | |
14745 | * linespec.c (decode_line_2): Constify. | |
14746 | * linux-thread-db.c (thread_db_err_str): Constify. | |
14747 | * lm32-tdep.c (lm32_register_name): Constify. | |
14748 | * m2-exp.y (yyerror): Constify. | |
14749 | * m2-lang.h (m2_yyerror): Constify. | |
14750 | * m32r-tdep.c (m32r_register_names): Constify and make static. | |
14751 | * m68hc11-tdep.c (m68hc11_register_names): Constify. | |
14752 | * m88k-tdep.c (m88k_register_name): Constify. | |
14753 | * macroexp.c (appendmem): Constify. | |
14754 | * mdebugread.c (fdr_name, add_data_symbol, parse_type) | |
14755 | (upgrade_type, parse_external, parse_partial_symbols) | |
14756 | (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab) | |
14757 | (new_symbol): Constify. | |
14758 | * memattr.c (mem_info_command): Constify. | |
14759 | * mep-tdep.c (register_name_from_keyword): Constify. | |
14760 | * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env): | |
14761 | Constify. | |
14762 | * mi/mi-cmd-stack.c (list_args_or_locals): Constify. | |
14763 | * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify. | |
14764 | * mi/mi-main.c (captured_mi_execute_command): Constify and add | |
14765 | cast. | |
14766 | (mi_execute_async_cli_command): Constify. | |
14767 | * mips-tdep.c (mips_register_name): Constify. | |
14768 | * mn10300-tdep.c (register_name, mn10300_generic_register_name) | |
14769 | (am33_register_name, am33_2_register_name) | |
14770 | * moxie-tdep.c (moxie_register_names): Constify. | |
14771 | * nat/linux-osdata.c (osdata_type): Constify fields. | |
14772 | * nto-tdep.c (nto_parse_redirection): Constify. | |
14773 | * objc-lang.c (lookup_struct_typedef, lookup_objc_class) | |
14774 | (lookup_child_selector): Constify. | |
14775 | (objc_methcall::name): Constify. | |
14776 | * objc-lang.h (lookup_objc_class, lookup_child_selector) | |
14777 | (lookup_struct_typedef): Constify. | |
14778 | * objfiles.c (pc_in_section): Constify. | |
14779 | * objfiles.h (pc_in_section): Constify. | |
14780 | * p-exp.y (struct token::oper): Constify. | |
14781 | (yyerror): Constify. | |
14782 | * p-lang.h (pascal_yyerror): Constify. | |
14783 | * parser-defs.h (op_name_standard): Constify. | |
14784 | (op_print::string): Constify. | |
14785 | (exp_descriptor::op_name): Constify. | |
14786 | * printcmd.c (print_address_symbolic): Constify. | |
14787 | * psymtab.c (print_partial_symbols): Constify. | |
14788 | * python/py-breakpoint.c (stop_func): Constify. | |
14789 | (bppy_get_expression): Constify. | |
14790 | * python/py-cmd.c (cmdpy_completer::name): Constify. | |
14791 | (cmdpy_function): Constify. | |
14792 | * python/py-event.c (evpy_add_attribute) | |
14793 | (gdbpy_initialize_event_generic): Constify. | |
14794 | * python/py-event.h (evpy_add_attribute) | |
14795 | (gdbpy_initialize_event_generic): Constify. | |
14796 | * python/py-evts.c (add_new_registry): Constify. | |
14797 | * python/py-finishbreakpoint.c (outofscope_func): Constify. | |
14798 | * python/py-framefilter.c (get_py_iter_from_func): Constify. | |
14799 | * python/py-inferior.c (get_buffer): Add cast. | |
14800 | * python/py-param.c (parm_constant::name): Constify. | |
14801 | * python/py-unwind.c (fprint_frame_id): Constify. | |
14802 | * python/python.c (gdbpy_parameter_value): Constify. | |
14803 | * remote-fileio.c (remote_fio_func_map): Make 'name' const. | |
14804 | * remote.c (memory_packet_config::name): Constify. | |
14805 | (show_packet_config_cmd, remote_write_bytes) | |
14806 | (remote_buffer_add_string): | |
14807 | * reverse.c (exec_reverse_once): Constify. | |
14808 | * rs6000-tdep.c (variant::name, variant::description): Constify. | |
14809 | * rust-exp.y (rustyyerror): Constify. | |
14810 | * rust-lang.c (rust_op_name): Constify. | |
14811 | * rust-lang.h (rustyyerror): Constify. | |
14812 | * serial.h (serial_ops::name): Constify. | |
14813 | * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name) | |
14814 | (sh_sh3e_register_name, sh_sh2e_register_name) | |
14815 | (sh_sh2a_register_name, sh_sh2a_nofpu_register_name) | |
14816 | (sh_sh_dsp_register_name, sh_sh3_dsp_register_name) | |
14817 | (sh_sh4_register_name, sh_sh4_nofpu_register_name) | |
14818 | (sh_sh4al_dsp_register_name): Constify. | |
14819 | * sh64-tdep.c (sh64_register_name): Constify. | |
14820 | * solib-darwin.c (lookup_symbol_from_bfd): Constify. | |
14821 | * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify. | |
14822 | * stabsread.c (patch_block_stabs, read_type_number) | |
14823 | (ref_map::stabs, ref_add, process_reference) | |
14824 | (symbol_reference_defined, define_symbol, define_symbol) | |
14825 | (error_type, read_type, read_member_functions, read_cpp_abbrev) | |
14826 | (read_one_struct_field, read_struct_fields, read_baseclasses) | |
14827 | (read_tilde_fields, read_struct_type, read_array_type) | |
14828 | (read_enum_type, read_sun_builtin_type, read_sun_floating_type) | |
14829 | (read_huge_number, read_range_type, read_args, common_block_start) | |
14830 | (find_name_end): Constify. | |
14831 | * stabsread.h (common_block_start, define_symbol) | |
14832 | (process_one_symbol, symbol_reference_defined, ref_add): | |
14833 | * symfile.c (get_section_index, add_symbol_file_command): | |
14834 | * symfile.h (get_section_index): Constify. | |
14835 | * target-descriptions.c (tdesc_type::name): Constify. | |
14836 | (tdesc_free_type): Add cast. | |
14837 | * target.c (find_default_run_target): | |
14838 | (add_deprecated_target_alias, find_default_run_target) | |
14839 | (target_announce_detach): Constify. | |
14840 | (do_option): Constify. | |
14841 | * target.h (add_deprecated_target_alias): Constify. | |
14842 | * thread.c (print_thread_info_1): Constify. | |
14843 | * top.c (deprecated_readline_begin_hook, command_line_input): | |
14844 | Constify. | |
14845 | (init_main): Add casts. | |
14846 | * top.h (handle_line_of_input): Constify. | |
14847 | * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify. | |
14848 | * tracepoint.c (tvariables_info_1, trace_status_mi): Constify. | |
14849 | (tfind_command): Rename to ... | |
14850 | (tfind_command_1): ... this and constify. | |
14851 | (tfind_command): New function. | |
14852 | (tfind_end_command, tfind_start_command): Adjust. | |
14853 | (encode_source_string): Constify. | |
14854 | * tracepoint.h (encode_source_string): Constify. | |
14855 | * tui/tui-data.c (tui_partial_win_by_name): Constify. | |
14856 | * tui/tui-data.h (tui_partial_win_by_name): Constify. | |
14857 | * tui/tui-source.c (tui_set_source_content_nil): Constify. | |
14858 | * tui/tui-source.h (tui_set_source_content_nil): Constify. | |
14859 | * tui/tui-win.c (parse_scrolling_args): Constify. | |
14860 | * tui/tui-windata.c (tui_erase_data_content): Constify. | |
14861 | * tui/tui-windata.h (tui_erase_data_content): Constify. | |
14862 | * tui/tui-winsource.c (tui_erase_source_content): Constify. | |
14863 | * tui/tui.c (tui_enable): Add cast. | |
14864 | * utils.c (defaulted_query): Constify. | |
14865 | (init_page_info): Add cast. | |
14866 | (puts_debug, subset_compare): Constify. | |
14867 | * utils.h (subset_compare): Constify. | |
14868 | * varobj.c (varobj_format_string): Constify. | |
14869 | * varobj.h (varobj_format_string): Constify. | |
14870 | * vax-tdep.c (vax_register_name): Constify. | |
14871 | * windows-nat.c (windows_detach): Constify. | |
14872 | * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify. | |
14873 | * xml-support.c (gdb_xml_end_element): Constify. | |
14874 | * xml-tdesc.c (tdesc_start_reg): Constify. | |
14875 | * xstormy16-tdep.c (xstormy16_register_name): Constify. | |
14876 | * xtensa-tdep.c (xtensa_find_register_by_name): Constify. | |
14877 | * xtensa-tdep.h (xtensa_register_t::name): Constify. | |
14878 | ||
995816ba PA |
14879 | 2017-04-05 Pedro Alves <palves@redhat.com> |
14880 | ||
14881 | * proc-api.c (struct trans): Constify. | |
14882 | (procfs_note): Constify. | |
14883 | * proc-events.c (struct trans, syscall_table): | |
14884 | * proc-flags.c (struct trans): Constify. | |
14885 | * proc-utils.h (procfs_note): Constify. | |
14886 | * proc-why.c (struct trans): Constify. | |
14887 | * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error) | |
14888 | (procfs_detach): Constify. | |
14889 | * sol-thread.c (struct string_map): Constify. | |
14890 | (td_err_string, td_state_string): Constify. | |
14891 | ||
3e83a920 PA |
14892 | 2017-04-05 Pedro Alves <palves@redhat.com> |
14893 | ||
14894 | * proc-api.c (procfs_filename): Don't initialize | |
14895 | procfs_filename. | |
14896 | (prepare_to_trace): Assume procfs_filename is non-NULL. | |
14897 | (_initialize_proc_api): Give procfs_filename a default value here. | |
14898 | ||
63160a43 PA |
14899 | 2017-04-05 Pedro Alves <palves@redhat.com> |
14900 | ||
14901 | * break-catch-throw.c (handle_gnu_v3_exceptions): Constify | |
14902 | 'cond_string' parameter. | |
14903 | (extract_exception_regexp): Constify 'string' parameter. | |
14904 | (catch_exception_command_1): Constify. | |
14905 | * breakpoint.c (init_catchpoint) | |
14906 | (create_fork_vfork_event_catchpoint): Constify 'cond_string' | |
14907 | parameter. | |
14908 | (ep_parse_optional_if_clause, catch_fork_command_1) | |
14909 | (catch_exec_command_1): Constify. | |
14910 | * breakpoint.h (init_catchpoint): Constify 'cond_string' | |
14911 | parameter. | |
14912 | (ep_parse_optional_if_clause): Constify. | |
14913 | * cli/cli-utils.c (remove_trailing_whitespace) | |
14914 | (check_for_argument): Constify. | |
14915 | * cli/cli-utils.h (remove_trailing_whitespace): Constify and add | |
14916 | non-const overload. | |
14917 | (check_for_argument): Likewise. | |
14918 | ||
9b2eba3d PA |
14919 | 2017-04-05 Pedro Alves <palves@redhat.com> |
14920 | ||
14921 | * event-top.c (command_line_handler): Add cast to execute_command | |
14922 | call. | |
14923 | * record-btrace.c (cmd_record_btrace_bts_start) | |
14924 | (cmd_record_btrace_pt_start, cmd_record_btrace_start) | |
14925 | (cmd_record_btrace_start): Add cast to execute_command call. | |
14926 | * record-full.c (record_full_goto_insn): | |
14927 | * record.c (record_start, record_stop): Add cast to | |
14928 | execute_command_to_string calls. | |
14929 | (cmd_record_start): Add cast to execute_command calls. | |
14930 | ||
2adadf51 PA |
14931 | 2017-04-05 Pedro Alves <palves@redhat.com> |
14932 | ||
14933 | * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New | |
14934 | static inline function. | |
14935 | * python/py-arch.c (archpy_disassemble): Constify 'keywords' | |
14936 | array and use gdb_PyArg_ParseTupleAndKeywords. | |
14937 | * python/py-cmd.c (cmdpy_init): Likewise. | |
14938 | * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise. | |
14939 | * python/py-inferior.c (infpy_read_memory, infpy_write_memory) | |
14940 | (infpy_search_memory): Likewise. | |
14941 | * python/py-objfile.c (objfpy_add_separate_debug_file) | |
14942 | (gdbpy_lookup_objfile): Likewise. | |
14943 | * python/py-symbol.c (gdbpy_lookup_symbol) | |
14944 | (gdbpy_lookup_global_symbol): Likewise. | |
14945 | * python/py-type.c (gdbpy_lookup_type): Likewise. | |
14946 | * python/py-value.c (valpy_lazy_string, valpy_string): Likewise. | |
14947 | * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush): | |
14948 | Likewise. | |
14949 | ||
0d1f4ceb PA |
14950 | 2017-04-05 Pedro Alves <palves@redhat.com> |
14951 | ||
14952 | * python/python-internal.h (gdb_PyGetSetDef): New type. | |
14953 | * python/py-block.c (block_object_getset) | |
14954 | (breakpoint_object_getset): Now a gdb_PyGetSetDef array. | |
14955 | * python/py-event.c (event_object_getset) | |
14956 | (finish_breakpoint_object_getset): Likewise. | |
14957 | * python/py-inferior.c (inferior_object_getset): Likewise. | |
14958 | * python/py-infthread.c (thread_object_getset): Likewise. | |
14959 | * python/py-lazy-string.c (lazy_string_object_getset): Likewise. | |
14960 | * python/py-linetable.c (linetable_entry_object_getset): Likewise. | |
14961 | * python/py-objfile.c (objfile_getset): Likewise. | |
14962 | * python/py-progspace.c (pspace_getset): Likewise. | |
14963 | * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset): | |
14964 | Likewise. | |
14965 | * python/py-record.c (recpy_record_getset): Likewise. | |
14966 | * python/py-symbol.c (symbol_object_getset): Likewise. | |
14967 | * python/py-symtab.c (symtab_object_getset, sal_object_getset): | |
14968 | Likewise. | |
14969 | * python/py-type.c (type_object_getset, field_object_getset): | |
14970 | Likewise. | |
14971 | * python/py-value.c (value_object_getset): Likewise. | |
14972 | ||
4d759979 PA |
14973 | 2017-04-05 Pedro Alves <palves@redhat.com> |
14974 | ||
14975 | * python/python-internal.h (gdb_PyObject_CallMethod) | |
14976 | (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath): | |
14977 | New functions. | |
14978 | (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException) | |
14979 | (PySys_GetObject, PySys_SetPath): New macros. | |
14980 | ||
fdf9e36f PA |
14981 | 2017-04-05 Pedro Alves <palves@redhat.com> |
14982 | ||
14983 | * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of | |
14984 | info_osdata_command. | |
14985 | * osdata.c (info_osdata_command): Rename to ... | |
14986 | (info_osdata): ... this. Constify 'type' parameter, and remove | |
14987 | the 'from_tty' parameter. Accept NULL TYPE. | |
14988 | (info_osdata_command): New function. | |
14989 | * osdata.h (info_osdata_command): Remove declaration. | |
14990 | (info_osdata): New declaration. | |
14991 | ||
9f33b8b7 PA |
14992 | 2017-04-05 Pedro Alves <palves@redhat.com> |
14993 | ||
14994 | * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert) | |
14995 | (mi_cmd_dprintf_insert, mi_cmd_break_passcount) | |
14996 | (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command' | |
14997 | parameter. | |
14998 | * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception) | |
14999 | (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter. | |
15000 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command' | |
15001 | parameter. | |
15002 | * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path) | |
15003 | (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show) | |
15004 | * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file) | |
15005 | (mi_cmd_file_list_exec_source_files) | |
15006 | (mi_cmd_file_list_shared_libraries): Constify 'command' parameter. | |
15007 | * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions) | |
15008 | (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command' | |
15009 | parameter. | |
15010 | * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters) | |
15011 | (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth) | |
15012 | (mi_cmd_stack_list_locals, mi_cmd_stack_list_args) | |
15013 | (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame) | |
15014 | (mi_cmd_stack_info_frame): Constify 'command' parameter. | |
15015 | * mi/mi-cmd-target.c (mi_cmd_target_file_get) | |
15016 | (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify | |
15017 | 'command' parameter. | |
15018 | * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete) | |
15019 | (mi_cmd_var_set_format, mi_cmd_var_set_visualizer) | |
15020 | (mi_cmd_var_set_frozen, mi_cmd_var_show_format) | |
15021 | (mi_cmd_var_info_num_children, mi_cmd_var_list_children) | |
15022 | (mi_cmd_var_info_type, mi_cmd_var_info_path_expression) | |
15023 | (mi_cmd_var_info_expression, mi_cmd_var_show_attributes) | |
15024 | (mi_cmd_var_evaluate_expression, mi_cmd_var_assign) | |
15025 | (mi_cmd_var_update, mi_cmd_enable_pretty_printing) | |
15026 | (mi_cmd_var_set_update_range): Constify 'command' parameter. | |
15027 | * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter. | |
15028 | * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command' | |
15029 | parameter. | |
15030 | * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next) | |
15031 | (mi_cmd_exec_next_instruction, mi_cmd_exec_step) | |
15032 | (mi_cmd_exec_step_instruction, mi_cmd_exec_finish) | |
15033 | (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue) | |
15034 | (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach) | |
15035 | (mi_cmd_target_flash_erase, mi_cmd_thread_select) | |
15036 | (mi_cmd_thread_list_ids, mi_cmd_thread_info) | |
15037 | (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names) | |
15038 | (mi_cmd_data_list_changed_registers) | |
15039 | (mi_cmd_data_write_register_values) | |
15040 | (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory) | |
15041 | (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory) | |
15042 | (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings) | |
15043 | (mi_cmd_list_features, mi_cmd_list_target_features) | |
15044 | (mi_cmd_add_inferior, mi_cmd_remove_inferior) | |
15045 | (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables) | |
15046 | (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start) | |
15047 | (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info) | |
15048 | (mi_cmd_trace_frame_collected): Constify 'command' | |
15049 | parameter. | |
15050 | * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify | |
15051 | 'command' parameter. | |
15052 | ||
67cb5b2d PA |
15053 | 2017-04-05 Pedro Alves <palves@redhat.com> |
15054 | ||
15055 | * ada-lang.c (ada_completer_word_break_characters): Now a const | |
15056 | array. | |
15057 | (ada_get_gdb_completer_word_break_characters): Constify. | |
15058 | * completer.c (gdb_completer_command_word_break_characters) | |
15059 | (gdb_completer_file_name_break_characters) | |
15060 | (gdb_completer_quote_characters): Now const arrays. | |
15061 | (get_gdb_completer_quote_characters): Constify. | |
15062 | (set_rl_completer_word_break_characters): New function. | |
15063 | (set_gdb_completion_word_break_characters) | |
15064 | (complete_line_internal): Use it. | |
15065 | * completer.h (get_gdb_completer_quote_characters): Constify. | |
15066 | (set_rl_completer_word_break_characters): Declare. | |
15067 | * f-lang.c (f_word_break_characters): Constify. | |
15068 | * language.c (default_word_break_characters): Constify. | |
15069 | * language.h (language_defn::la_word_break_characters): Constify. | |
15070 | (default_word_break_characters): Constify. | |
15071 | * top.c (init_main): Use set_rl_completer_word_break_characters. | |
15072 | ||
7a114964 PA |
15073 | 2017-04-05 Pedro Alves <palves@redhat.com> |
15074 | ||
15075 | * aix-thread.c (aix_thread_pid_to_str) | |
15076 | (aix_thread_extra_thread_info): Constify. | |
15077 | * bsd-kvm.c (bsd_kvm_pid_to_str): Constify. | |
15078 | * bsd-uthread.c (bsd_uthread_extra_thread_info) | |
15079 | (bsd_uthread_pid_to_str): Constify. | |
15080 | * corelow.c (core_pid_to_str): Constify. | |
15081 | * darwin-nat.c (darwin_pid_to_str): Constify. | |
15082 | * fbsd-nat.c (fbsd_pid_to_str): Constify. | |
15083 | * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str): | |
15084 | Constify. | |
15085 | * gnu-nat.c (gnu_pid_to_str): Constify. | |
15086 | * go32-nat.c (go32_pid_to_str): Constify. | |
15087 | * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify. | |
15088 | * inf-ptrace.c (inf_ptrace_pid_to_str): Constify. | |
15089 | * inferior.c (inferior_pid_to_str): Constify. | |
15090 | * linux-nat.c (linux_nat_pid_to_str): Constify. | |
15091 | * linux-tdep.c (linux_core_pid_to_str): Constify. | |
15092 | * linux-thread-db.c (thread_db_pid_to_str) | |
15093 | (thread_db_extra_thread_info): Constify. | |
15094 | * nto-tdep.c (nto_extra_thread_info): Constify. | |
15095 | * nto-tdep.h (nto_extra_thread_info): Constify. | |
15096 | * obsd-nat.c (obsd_pid_to_str): Constify. | |
15097 | * procfs.c (procfs_pid_to_str): Constify. | |
15098 | * ravenscar-thread.c (ravenscar_extra_thread_info) | |
15099 | (ravenscar_pid_to_str): Constify. | |
15100 | * remote-sim.c (gdbsim_pid_to_str): Constify. | |
15101 | * remote.c (remote_threads_extra_info, remote_pid_to_str): | |
15102 | Constify. | |
15103 | * sol-thread.c (solaris_pid_to_str): Constify. | |
15104 | * sol2-tdep.c (sol2_core_pid_to_str): Constify. | |
15105 | * sol2-tdep.h (sol2_core_pid_to_str): Constify. | |
15106 | * target.c (default_pid_to_str, target_pid_to_str) | |
15107 | (normal_pid_to_str, default_pid_to_str): Constify. | |
15108 | * target.h (target_ops::to_pid_to_str) | |
15109 | (target_ops::to_extra_thread_info): Constify. | |
15110 | (target_pid_to_str, normal_pid_to_str): Constify. | |
15111 | * windows-nat.c (windows_pid_to_str): Constify. | |
15112 | * gdbarch.sh (core_pid_to_str): Constify. | |
15113 | * target-delegates.c: Regenerate. | |
15114 | * gdbarch.h, gdbarch.c: Regenerate. | |
15115 | ||
69bbf465 PA |
15116 | 2017-04-05 Pedro Alves <palves@redhat.com> |
15117 | ||
15118 | * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage | |
15119 | the memory of the temporary warning_pre_print override. | |
15120 | * utils.c (warning_pre_print): Constify. | |
15121 | * utils.h (warning_pre_print): Constify. | |
15122 | ||
be47f9e8 PA |
15123 | 2017-04-05 Pedro Alves <palves@redhat.com> |
15124 | ||
15125 | * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter. | |
15126 | (shell_command): New function. | |
15127 | (make_command): Use std::string. | |
15128 | (init_cli_cmds): Register shell_command instead of shell_escape. | |
15129 | ||
bde6261a PA |
15130 | 2017-04-05 Pedro Alves <palves@redhat.com> |
15131 | ||
15132 | * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize. | |
15133 | * tracepoint.c (default_collect): Don't initialize. | |
15134 | ||
b38ef47f PA |
15135 | 2017-04-05 Pedro Alves <palves@redhat.com> |
15136 | ||
15137 | * macroexp.c (macro_buffer::shared): Now a bool. | |
15138 | (init_buffer): Update. | |
15139 | (init_shared_buffer): Constify 'addr' parameter. | |
15140 | (substitute_args, expand, macro_expand, macro_expand_next): Remove | |
15141 | casts. | |
15142 | ||
f995bbe8 PA |
15143 | 2017-04-05 Pedro Alves <palves@redhat.com> |
15144 | ||
15145 | * arm-tdep.c (show_disassembly_style_sfunc): Constify local. | |
15146 | * disasm.c (set_disassembler_options): Constify local. | |
15147 | * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment. | |
15148 | ||
4a596fe2 SDJ |
15149 | 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com> |
15150 | ||
15151 | PR gdb/21352 | |
15152 | * tracefile.c (tsave_command): Fix argument parsing for '-r' | |
15153 | option. | |
15154 | ||
2cad08ea YQ |
15155 | 2017-04-05 Yao Qi <yao.qi@linaro.org> |
15156 | ||
15157 | * frame.c (frame_unwind_register_unsigned): Call | |
15158 | frame_unwind_register_value. | |
15159 | ||
55a98976 YQ |
15160 | 2017-04-05 Yao Qi <yao.qi@linaro.org> |
15161 | ||
15162 | * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint): | |
15163 | Use gdb_test_multiple, and don't match anchor. | |
15164 | ||
4ac40124 PA |
15165 | 2017-04-05 Pedro Alves <palves@redhat.com> |
15166 | ||
15167 | * MAINTAINERS (Global Maintainers): Add Simon Marchi. | |
15168 | (Write After Approval): Remove Simon Marchi. | |
15169 | ||
c053b654 PA |
15170 | 2017-04-05 Pedro Alves <palves@redhat.com> |
15171 | ||
15172 | * common/gdb_optional.h (optional::optional): Make constexpr and | |
15173 | initialize m_dummy. | |
15174 | ||
4c7bf4f9 JB |
15175 | 2017-04-04 John Baldwin <jhb@FreeBSD.org> |
15176 | ||
15177 | * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include. | |
15178 | (amd64fbsd_jmp_buf_reg_offset): Remove. | |
15179 | (amd64fbsd_supply_uthread): Remove function. | |
15180 | (amd64fbsd_collect_uthread): Remove function. | |
15181 | (amd64fbsd_init_abi): Don't set bsd-uthread callbacks. | |
15182 | * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o. | |
15183 | (x86_64-*-freebsd*): Remove bsd-uthread.o. | |
15184 | (fbsd-nat.c): Update comment. | |
15185 | * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include. | |
15186 | (i386fbsd_jmp_buf_reg_offset): Remove. | |
15187 | (i386fbsd_supply_uthread): Remove function. | |
15188 | (i386fbsd_collect_uthread): Remove function. | |
15189 | (i386fbsd_init_abi): Don't set bsd-uthread callbacks. | |
15190 | ||
1e1a8bef JB |
15191 | 2017-04-04 John Baldwin <jhb@FreeBSD.org> |
15192 | ||
15193 | * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o. | |
15194 | (ALLDEPFILES): Remove alpha-fbsd-tdep.c | |
15195 | * NEWS: Mention that support for FreeBSD/alpha was removed. | |
15196 | * alpha-fbsd-tdep.c: Delete file. | |
15197 | * config/alpha/fbsd.mh: Delete file. | |
15198 | * configure.host: Delete alpha*-*-freebsd* and | |
15199 | alpha*-*-kfreebsd*-gnu. | |
15200 | * configure.tgt: Delete alpha*-*-freebsd* and | |
15201 | alpha*-*-kfreebsd*-gnu. | |
15202 | ||
49907934 JB |
15203 | 2017-04-04 John Baldwin <jhb@FreeBSD.org> |
15204 | ||
15205 | * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers, | |
15206 | amd64bsd_store_inferior_registers): Use ptid from regcache. | |
15207 | ||
6f77053d PA |
15208 | 2017-04-04 Pedro Alves <palves@redhat.com> |
15209 | ||
15210 | * dwarf2read.c (lnp_state_machine): Now a class. Initialize all | |
15211 | data fields, make them private and add "m_" prefixes. | |
15212 | (lnp_state_machine::lnp_state_machine): New ctor. | |
15213 | (record_line, check_line_address, handle_set_discriminator) | |
15214 | (handle_set_address, handle_advance_pc, handle_special_opcode) | |
15215 | (handle_advance_line, handle_set_file, handle_negate_stmt) | |
15216 | (handle_const_add_pc, handle_fixed_advance_pc, handle_copy) | |
15217 | (end_sequence, advance_line): New methods. | |
15218 | (m_gdbarch, m_record_lines_p): New fields. | |
15219 | (lnp_reader_state): Delete. | |
15220 | (dwarf_record_line): Rename to ... | |
15221 | (lnp_state_machine::record_line): ... adjust. | |
15222 | (init_lnp_state_machine): Delete. | |
15223 | (lnp_state_machine::lnp_state_machine): New. | |
15224 | (check_line_address): Rename to ... | |
15225 | (lnp_state_machine::check_line_address): This. | |
15226 | (dwarf_decode_lines_1): Remove reference to "reader_state". | |
15227 | Adjust lnp_state_machine having a non-default ctor. Use bool. | |
15228 | State machine internal state manipulation moved to | |
15229 | lnp_state_machine methods. | |
15230 | ||
9c541725 PA |
15231 | 2017-04-04 Pedro Alves <palves@redhat.com> |
15232 | ||
15233 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
15234 | unittests/offset-type-selftests.c. | |
15235 | (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o. | |
15236 | * common/offset-type.h: New file. | |
15237 | * common/preprocessor.h: New file. | |
15238 | * common/traits.h: New file. | |
15239 | * common/valid-expr.h: New file. | |
15240 | * dwarf2expr.c: Include "common/underlying.h". Adjust to use | |
15241 | sect_offset and cu_offset strong typedefs throughout. | |
15242 | * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong | |
15243 | typedefs throughout. | |
15244 | * dwarf2loc.c: Include "common/underlying.h". Adjust to use | |
15245 | sect_offset and cu_offset strong typedefs throughout. | |
15246 | * dwarf2read.c: Adjust to use sect_offset and cu_offset strong | |
15247 | typedefs throughout. | |
15248 | * gdbtypes.h: Include "common/offset-type.h". | |
15249 | (cu_offset): Now an offset type (strong typedef) instead of a | |
15250 | struct. | |
15251 | (sect_offset): Likewise. | |
15252 | (union call_site_parameter_u): Rename "param_offset" field to | |
15253 | "param_cu_off". | |
15254 | * unittests/offset-type-selftests.c: New file. | |
15255 | ||
ecfb656c PA |
15256 | 2017-04-04 Pedro Alves <palves@redhat.com> |
15257 | ||
15258 | * common/underlying.h: New file. | |
15259 | * dwarf2read.c: Include "common/gdb_optional.h" and | |
15260 | "common/underlying.h". | |
15261 | (dir_index, file_name_index): New types. | |
15262 | (file_entry): Use them. | |
15263 | (file_entry::include): Use to_underlying. | |
15264 | (line_header::add_file_name): Use dir_index. | |
15265 | (read_formatted_entries): Use gdb::optional. Read form before | |
15266 | writting to file_entry. | |
15267 | (dwarf_decode_line_header): Use dir_index. | |
15268 | (lnp_state_machine::current_file): Use to_underlying. | |
15269 | (lnp_state_machine::file): Change type to file_name_index. | |
15270 | (dwarf_record_line): Use to_underlying. | |
15271 | (init_lnp_state_machine): Use file_name_index. | |
15272 | (dwarf_decode_lines_1): Use dir_index and file_name_index. | |
15273 | ||
d194f1fe PA |
15274 | 2017-04-04 Pedro Alves <palves@redhat.com> |
15275 | ||
15276 | * common/gdb_optional.h (gdb::optiona): Add operator->, operator*, | |
15277 | operator bool, has_value and get methods. | |
15278 | ||
fff8551c PA |
15279 | 2017-04-04 Pedro Alves <palves@redhat.com> |
15280 | ||
15281 | * dwarf2read.c (struct file_entry): Add ctors, and initialize all | |
15282 | fields. | |
15283 | (line_header): Initialize all data fields. Change type of | |
15284 | standard_opcode_lengths to std::unique_ptr<unsigned char[]>. | |
15285 | Change type of include_dirs to std::vector<const char *>. Remove | |
15286 | num_include_dirs, include_dirs_size. Change type of file_names to | |
15287 | std::vector<file_entry>. Remove num_file_names, file_names_size. | |
15288 | (line_header::line_header): New. | |
15289 | (line_header::add_include_dir, line_header::add_file_name): New | |
15290 | methods. | |
15291 | (line_header::include_dir_at): Remove NULL check. | |
15292 | (line_header::file_name_at): Add const overload. | |
15293 | (line_header_up): New unique_ptr typedef. | |
15294 | (dw2_get_file_names_reader): Use line_header_up. Adjust to use | |
15295 | std::vector. Remove free_line_header call. | |
15296 | (dwarf2_build_include_psymtabs): Use line_header_up. Remove | |
15297 | free_line_header call. | |
15298 | (free_cu_line_header): Delete. | |
15299 | (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list) | |
15300 | (setup_type_unit_groups): Use line_header_up instead of cleanups. | |
15301 | Adjust to use std::vector. | |
15302 | (free_line_header): Delete. | |
15303 | (free_line_header_voidp): Use delete. | |
15304 | (add_include_dir): Replace with ... | |
15305 | (line_header::add_include_dir): ... this method. Use std::vector. | |
15306 | (add_file_name): Replace with ... | |
15307 | (line_header::add_file_name): ... this method. Use std::vector. | |
15308 | (add_include_dir_stub): Delete. | |
15309 | (read_formatted_entries): Remove memset. | |
15310 | (dwarf_decode_line_header): Return a line_header_up instead of a | |
15311 | raw pointer. Remove cleanup handling. Pass lambdas to | |
15312 | read_formatted_entries. Adjust to use line_header methods. | |
15313 | (dwarf_decode_lines_1): Adjust to use line_header methods. | |
15314 | (dwarf_decode_lines, file_file_name, file_full_name): Adjust to | |
15315 | use std::vector. | |
15316 | ||
d62a8ae2 SM |
15317 | 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca> |
15318 | ||
15319 | * remote.c (set_general_thread, set_continue_thread): Use ptid_t | |
15320 | instead of struct ptid. | |
15321 | ||
db3a1dc7 AH |
15322 | 2017-05-04 Alan Hayward <alan.hayward@arm.com> |
15323 | ||
15324 | * frame.c (get_frame_register_bytes): Unwind using value. | |
15325 | (put_frame_register_bytes): Likewise. | |
15326 | ||
b1b45502 IB |
15327 | 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org> |
15328 | ||
15329 | * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being | |
15330 | aggregate-like. | |
15331 | ||
ec13808e JK |
15332 | 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com> |
15333 | ||
15334 | * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS. | |
15335 | ||
12316564 YQ |
15336 | 2017-03-29 Yao Qi <yao.qi@linaro.org> |
15337 | ||
15338 | * gdbthread.h (struct thread_info): Declare constructor and | |
15339 | destructor. Add some in-class member initializers. | |
15340 | * thread.c (free_thread): Remove. | |
15341 | (init_thread_list): Call delete instead of free_thread. | |
15342 | (new_thread): Call thread_info constructor. | |
15343 | (thread_info::thread_info): New function. | |
15344 | (thread_info::~thread_info): New function. | |
15345 | (delete_thread_1): Call delete instead of free_thread. | |
15346 | (make_cleanup_restore_current_thread): Move tp and frame to | |
15347 | inner block. | |
15348 | ||
fe5f7374 AK |
15349 | 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com> |
15350 | ||
15351 | * arc-tdep.c (arc_frame_cache): Add support for prologue analysis. | |
15352 | (arc_skip_prologue): Likewise. | |
15353 | (arc_make_frame_cache): Likewise. | |
15354 | (arc_pv_get_operand): New function. | |
15355 | (arc_is_in_prologue): Likewise. | |
15356 | (arc_analyze_prologue): Likewise. | |
15357 | (arc_print_frame_cache): Likewise. | |
15358 | (MAX_PROLOGUE_LENGTH): New constant. | |
15359 | ||
eea78757 AK |
15360 | 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com> |
15361 | ||
15362 | * configure.tgt: Add arc-insn.o. | |
15363 | * arc-tdep.c (arc_delayed_print_insn): Make non-static. | |
15364 | (dump_arc_instruction_command): New function. | |
15365 | (arc_fprintf_disasm): Likewise. | |
15366 | (arc_disassemble_info): Likewise. | |
15367 | (arc_insn_get_operand_value): Likewise. | |
15368 | (arc_insn_get_operand_value_signed): Likewise. | |
15369 | (arc_insn_get_memory_base_reg): Likewise. | |
15370 | (arc_insn_get_memory_offset): Likewise. | |
15371 | (arc_insn_get_branch_target): Likewise. | |
15372 | (arc_insn_dump): Likewise. | |
15373 | (arc_insn_get_linear_next_pc): Likewise. | |
15374 | * arc-tdep.h (arc_delayed_print_insn): Add function declaration. | |
15375 | (arc_disassemble_info): Likewise. | |
15376 | (arc_insn_get_branch_target): Likewise. | |
15377 | (arc_insn_get_linear_next_pc): Likewise. | |
15378 | * NEWS: Mention new "maint print arc arc-instruction". | |
15379 | ||
3be78afd AK |
15380 | 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com> |
15381 | ||
15382 | * arc-tdep (maintenance_print_arc_list): New variable. | |
15383 | (maintenance_print_arc_command): New function. | |
15384 | ||
296ec4fa AK |
15385 | 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com> |
15386 | ||
15387 | * arc-tdep.c (core_v2_register_names, core_arcompact_register_names) | |
15388 | Add "limm" and "reserved". | |
15389 | (arc_cannot_fetch_register, arc_cannot_store_register): Add | |
15390 | ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM. | |
15391 | * arc-tdep.h (arc_regnum): Likewise. | |
15392 | ||
f74f865e MF |
15393 | 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> |
15394 | ||
15395 | * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect | |
15396 | for THREADPTR register. | |
15397 | (supply_gregset_reg): Call regcache_raw_supply for THREADPTR | |
15398 | register. | |
15399 | * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition. | |
15400 | (xtensa_derive_tdep): Initialize tdep->threadptr_regnum. | |
15401 | * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field. | |
15402 | ||
0d0bf81a MF |
15403 | 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> |
15404 | ||
15405 | * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all | |
15406 | registers above gdbarch_num_regs (gdbarch) as privileged in | |
15407 | call0 ABI. | |
15408 | ||
0ce4291e MF |
15409 | 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> |
15410 | ||
15411 | * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect | |
15412 | for a single specified register or for all registers in | |
15413 | a0_base..a0_base + C0_NREGS range. | |
15414 | (supply_gregset_reg): Call regcache_raw_supply for a single | |
15415 | specified register or for all registers in a0_base..a0_base + | |
15416 | C0_NREGS range. | |
15417 | ||
c56054f9 MF |
15418 | 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> |
15419 | ||
15420 | * arch/xtensa.h (C0_NREGS): Add definition. | |
15421 | * xtensa-tdep.c (C0_NREGS): Remove definition. | |
15422 | ||
a4398628 MF |
15423 | 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> |
15424 | ||
15425 | * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue): | |
15426 | Drop xtensa_default_isa initialization. | |
15427 | (xtensa_gdbarch_init): Initialize xtensa_default_isa. | |
15428 | ||
8c43009f PA |
15429 | 2017-03-27 Pedro Alves <palves@redhat.com> |
15430 | ||
15431 | * dwarf2read.c (file_entry) <dir_index>: Add comment. | |
15432 | (file_entry::include_dir): New method. | |
15433 | (line_header::include_dir_at, line_header::file_name_at): New | |
15434 | methods. | |
15435 | (setup_type_unit_groups, setup_type_unit_groups) | |
15436 | (psymtab_include_file_name): Simplify using the new methods. | |
15437 | (lnp_state_machine) <the_line_header>: New field. | |
15438 | <file>: Add comment. | |
15439 | (lnp_state_machine::current_file): New method. | |
15440 | (dwarf_record_line): Simplify using the new methods. | |
15441 | (init_lnp_state_machine): Initialize the "the_line_header" field. | |
15442 | (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name): | |
15443 | Simplify using the new methods. | |
15444 | ||
a7e80b9e PA |
15445 | 2017-03-27 Pedro Alves <palves@redhat.com> |
15446 | ||
15447 | * cp-name-parser.y (make_empty): Delete. | |
15448 | (demangler_special, nested_name, ptr_operator, array_indicator) | |
15449 | (direct_declarator, declarator_1): Use fill_comp instead of | |
15450 | make_empty. | |
15451 | ||
21047726 PA |
15452 | 2017-03-27 Pedro Alves <palves@redhat.com> |
15453 | ||
15454 | * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument | |
15455 | to ATTRIBUTE_PRINTF. | |
15456 | * solib-target.c (library_list_start_list): Print "string" not | |
15457 | "version". | |
15458 | * xml-tdesc.c (tdesc_start_field): Pass "field_name" to | |
15459 | gdb_xml_error call. | |
15460 | ||
d721ba37 PA |
15461 | 2017-03-27 Pedro Alves <palves@redhat.com> |
15462 | ||
15463 | * dwarf2read.c (struct file_and_directory): New. | |
15464 | (dwarf2_get_dwz_file): Adjust to use std::string. | |
15465 | (dw2_get_file_names_reader): Adjust to use file_and_directory. | |
15466 | (find_file_and_directory): Adjust to return a file_and_directory | |
15467 | object. | |
15468 | (read_file_scope): Adjust to use file_and_directory. Remove | |
15469 | make_cleanup/do_cleanups calls. | |
15470 | (open_and_init_dwp_file): Adjust to use std::string. Remove | |
15471 | make_cleanup/do_cleanups calls. | |
15472 | * python/python.c (do_start_initialization): Adjust to ldirname | |
15473 | returning a std::string. | |
15474 | * utils.c (ldirname): Now returns a std::string. | |
15475 | * utils.h (ldirname): Change return type to std::string. | |
15476 | * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname | |
15477 | returning a std::string. | |
15478 | * xml-tdesc.c (file_read_description_xml): Likewise. | |
15479 | ||
ed771251 AH |
15480 | 2017-03-24 Alan Hayward <alan.hayward@arm.com> |
15481 | ||
15482 | * regcache.c (regcache_debug_print_register): New function. | |
15483 | * regcache.h (regcache_debug_print_register): New declaration. | |
15484 | * target.c (debug_print_register): Remove. | |
15485 | (target_fetch_registers): Call regcache_debug_print_register. | |
15486 | (target_store_registers): Likewise. | |
15487 | ||
568c1b9f PB |
15488 | 2017-03-24 Pádraig Brady <pbrady@fb.com> |
15489 | ||
15490 | * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't | |
15491 | reference beyond the 'lh->include_dirs' array before accessing to | |
15492 | it. | |
15493 | (psymtab_include_file_name): Likewise. | |
15494 | (dwarf_decode_lines_1): Likewise. | |
15495 | (dwarf_decode_lines): Likewise. | |
15496 | (file_file_name): Likewise. | |
15497 | ||
3e00d44f SM |
15498 | 2017-03-23 Simon Marchi <simon.marchi@ericsson.com> |
15499 | ||
15500 | * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore | |
15501 | inferior_ptid. | |
15502 | * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, | |
15503 | ps_lsetfpregs): Likewise. | |
15504 | * regcache.c (regcache_raw_update, regcache_raw_write): Likewise. | |
15505 | * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, | |
15506 | ps_lsetfpregs): Likewise. | |
15507 | * target.c (target_fetch_registers, target_store_registers): | |
15508 | Remove asserts. | |
15509 | ||
077ae656 AH |
15510 | 2017-03-23 Alan Hayward <alan.hayward@arm.com> |
15511 | ||
15512 | * sol-thread.c (sol_thread_store_registers): Remove regcache calls. | |
15513 | ||
1e2b521d YQ |
15514 | 2017-03-23 Yao Qi <yao.qi@linaro.org> |
15515 | ||
15516 | * aarch64-tdep.c (aarch64_process_record_test): Declare. | |
15517 | (_initialize_aarch64_tdep): Register it. | |
15518 | (aarch64_record_load_store): Handle PRFM instruction. | |
15519 | (aarch64_process_record_test): New function. | |
15520 | ||
33877125 YQ |
15521 | 2017-03-23 Yao Qi <yao.qi@linaro.org> |
15522 | ||
15523 | * aarch64-tdep.c (aarch64_record_load_store): Fix code | |
15524 | indentation. | |
15525 | ||
a0eef940 YQ |
15526 | 2017-03-23 Yao Qi <yao.qi@linaro.org> |
15527 | ||
15528 | * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE. | |
15529 | ||
3f2a3564 PR |
15530 | 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
15531 | ||
15532 | python/python.c (do_start_initialization): Fix memory leak. | |
15533 | ||
b67aeab0 SM |
15534 | 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca> |
15535 | ||
15536 | * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid | |
15537 | using get_ptrace_pid. | |
15538 | * linux-nat.c (linux_nat_xfer_partial): Don't set/restore | |
15539 | inferior_ptid. | |
15540 | (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of | |
15541 | inferior_ptid instead of pid. | |
15542 | ||
ffdbe864 YQ |
15543 | 2017-03-22 Yao Qi <yao.qi@linaro.org> |
15544 | ||
15545 | * aarch64-tdep.c: Wrap locally used classes in anonymous | |
15546 | namespace. | |
15547 | * arm-tdep.c: Likewise. | |
15548 | * linespec.c: Likewise. | |
15549 | * ui-out.c: Likewise. | |
15550 | ||
9d736fbf JG |
15551 | 2017-03-22 Jonah Graham <jonah@kichwacoders.com> |
15552 | ||
15553 | PR gdb/19637 | |
15554 | * python/lib/gdb/printer/bound_registers.py: Import sys. | |
15555 | ||
3de88e9a SM |
15556 | 2017-03-21 Simon Marchi <simon.marchi@ericsson.com> |
15557 | ||
15558 | * windows-nat.c (do_windows_fetch_inferior_registers): Add | |
15559 | windows_thread_info parameter and use it instead of | |
15560 | current_thread. | |
15561 | (windows_fetch_inferior_registers): Don't set current_thread, | |
15562 | pass the thread to do_windows_fetch_inferior_registers. Use | |
15563 | ptid from regcache instead of inferior_ptid. | |
15564 | (do_windows_store_inferior_registers): Add windows_thread_info | |
15565 | parameter and use it instead of current_thread. | |
15566 | (windows_store_inferior_registers): Don't set current_thread, | |
15567 | pass the thread to do_windows_store_inferior_registers. Use | |
15568 | ptid from regcache instead of inferior_ptid. | |
15569 | ||
0e7b8f61 SM |
15570 | 2017-03-21 Simon Marchi <simon.marchi@ericsson.com> |
15571 | ||
15572 | * ser-mingw.c (ser_windows_raw): Remove reference to | |
15573 | struct serial::current_timeout. | |
15574 | ||
5badf10a IR |
15575 | 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com> |
15576 | ||
15577 | PR tdep/20928 | |
15578 | * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field. | |
15579 | * gdb/sparc64-tdep.c (sparc64_ccr_type): New function. | |
15580 | (sparc64_fsr_type): Fix %fsr decoding. | |
15581 | ||
cee59b3f TW |
15582 | 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com> |
15583 | ||
15584 | * python/py-record-btrace.c (btpy_insn_data): Change return type | |
15585 | for Python 2. | |
15586 | ||
639a9038 SM |
15587 | 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca> |
15588 | ||
15589 | * spu-linux-nat.c (spu_fetch_inferior_registers, | |
15590 | spu_store_inferior_registers): Use ptid from regcache, set and | |
15591 | restore inferior_ptid. | |
15592 | * spu-multiarch.c (spu_fetch_registers, spu_store_registers): | |
15593 | Likewise. | |
15594 | ||
bcc0c096 SM |
15595 | 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca> |
15596 | ||
15597 | * i386-linux-nat.c (fetch_register, store_register, | |
15598 | i386_linux_fetch_inferior_registers, | |
15599 | i386_linux_store_inferior_registers): Use ptid from regcache. | |
15600 | * ia64-linux-nat.c (ia64_linux_fetch_register, | |
15601 | ia64_linux_store_register): Likewise. | |
15602 | * inf-ptrace.c (inf_ptrace_fetch_register, | |
15603 | inf_ptrace_store_register): Likewise. | |
15604 | * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers, | |
15605 | m32r_linux_store_inferior_registers): Likewise. | |
15606 | * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers, | |
15607 | m68kbsd_store_inferior_registers): Likewise. | |
15608 | * m68k-linux-nat.c (fetch_register, store_register, | |
15609 | m68k_linux_fetch_inferior_registers, | |
15610 | m68k_linux_store_inferior_registers): Likewise. | |
15611 | * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers, | |
15612 | m88kbsd_store_inferior_registers): Likewise. | |
15613 | * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers, | |
15614 | mips_fbsd_store_inferior_registers): Likewise. | |
15615 | * mips-linux-nat.c (mips64_linux_regsets_fetch_registers, | |
15616 | mips64_linux_regsets_store_registers): Likewise. | |
15617 | * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers, | |
15618 | mipsnbsd_store_inferior_registers): Likewise. | |
15619 | * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers, | |
15620 | mips64obsd_store_inferior_registers): Likewise. | |
15621 | * nto-procfs.c (procfs_fetch_registers, procfs_store_registers): | |
15622 | Likewise. | |
15623 | * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers, | |
15624 | ppcfbsd_store_inferior_registers): Likewise. | |
15625 | * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers, | |
15626 | ppc_linux_store_inferior_registers): Likewise. | |
15627 | * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers, | |
15628 | ppcnbsd_store_inferior_registers): Likewise. | |
15629 | * ppc-obsd-nat.c (ppcobsd_fetch_registers, | |
15630 | ppcobsd_store_registers): Likewise. | |
15631 | * procfs.c (procfs_fetch_registers, procfs_store_registers): | |
15632 | Likewise. | |
15633 | * ravenscar-thread.c (ravenscar_fetch_registers, | |
15634 | ravenscar_store_registers, ravenscar_prepare_to_store): | |
15635 | Likewise. | |
15636 | * record-btrace.c (record_btrace_fetch_registers, | |
15637 | record_btrace_store_registers, record_btrace_prepare_to_store): | |
15638 | Likewise. | |
15639 | * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): | |
15640 | Lookup inferior using ptid from regcache, instead of | |
15641 | current_inferior. | |
15642 | * remote.c (remote_fetch_registers, remote_store_registers): Use | |
15643 | ptid from regcache. | |
15644 | * rs6000-nat.c (fetch_register, store_register): Likewise. | |
15645 | * s390-linux-nat.c (s390_linux_fetch_inferior_registers, | |
15646 | s390_linux_store_inferior_registers): Likewise. | |
15647 | * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers, | |
15648 | shnbsd_store_inferior_registers): Likewise. | |
15649 | * sol-thread.c (sol_thread_fetch_registers, | |
15650 | sol_thread_store_registers): Likewise. | |
15651 | * sparc-nat.c (sparc_fetch_inferior_registers, | |
15652 | sparc_store_inferior_registers): Likewise. | |
15653 | * tilegx-linux-nat.c (fetch_inferior_registers, | |
15654 | store_inferior_registers): Likewise. | |
15655 | * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers, | |
15656 | vaxbsd_store_inferior_registers): Likewise. | |
15657 | * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs, | |
15658 | store_xtregs): Likewise. | |
15659 | ||
c0f55cc6 AV |
15660 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
15661 | ||
15662 | PR gdb/14441 | |
15663 | * NEWS: Mention support for rvalue references in GDB and python. | |
15664 | * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB | |
15665 | supports both lvalue and rvalue references. | |
15666 | ||
15c0a2a9 AV |
15667 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
15668 | ||
15669 | PR gdb/14441 | |
15670 | * gdbtypes.c (rank_one_type): Implement overloading | |
15671 | resolution rules regarding rvalue references. | |
15672 | ||
aa006118 AV |
15673 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
15674 | ||
15675 | PR gdb/14441 | |
15676 | * aarch64-tdep.c (aarch64_type_align) | |
15677 | (aarch64_extract_return_value, aarch64_store_return_value): Change | |
15678 | lvalue reference type checks to general reference type checks. | |
15679 | * amd64-tdep.c (amd64_classify): Likewise. | |
15680 | * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register): | |
15681 | Likewise. | |
15682 | * arm-tdep.c (arm_type_align, arm_extract_return_value) | |
15683 | (arm_store_return_value): Likewise. | |
15684 | * ax-gdb.c (gen_fetch, gen_cast): Likewise. | |
15685 | * c-typeprint.c (c_print_type): Likewise. | |
15686 | * c-varobj.c (adjust_value_for_child_access, c_value_of_variable) | |
15687 | (cplus_number_of_children, cplus_describe_child): Likewise. | |
15688 | * compile/compile-c-symbols.c (generate_vla_size): Likewise. | |
15689 | * completer.c (expression_completer): Likewise. | |
15690 | * cp-support.c (make_symbol_overload_list_adl_namespace): | |
15691 | Likewise. | |
15692 | * darwin-nat-info.c (info_mach_region_command): Likewise. | |
15693 | * dwarf2loc.c (entry_data_value_coerce_ref) | |
15694 | (value_of_dwarf_reg_entry): Likewise. | |
15695 | * eval.c (ptrmath_type_p, evaluate_subexp_standard) | |
15696 | (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): | |
15697 | Likewise. | |
15698 | * findvar.c (extract_typed_address, store_typed_address): | |
15699 | Likewise. | |
15700 | * gdbtypes.c (rank_one_type): Likewise. | |
15701 | * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise. | |
15702 | * infcall.c (value_arg_coerce): Likewise. | |
15703 | * language.c (pointer_type): Likewise. | |
15704 | * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer): | |
15705 | Likewise. | |
15706 | * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise. | |
15707 | * mn10300-tdep.c (mn10300_type_align): Likewise. | |
15708 | * msp430-tdep.c (msp430_push_dummy_call): Likewise. | |
15709 | * ppc-sysv-tdep.c (do_ppc_sysv_return_value) | |
15710 | (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value): | |
15711 | Likewise. | |
15712 | * printcmd.c (print_formatted, x_command): Likewise. | |
15713 | * python/py-type.c (typy_get_composite, typy_template_argument): | |
15714 | Likewise. | |
15715 | * python/py-value.c (valpy_referenced_value) | |
15716 | (valpy_get_dynamic_type, value_has_field): Likewise. | |
15717 | * s390-linux-tdep.c (s390_function_arg_integer): Likewise. | |
15718 | * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise. | |
15719 | * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise. | |
15720 | * spu-tdep.c (spu_scalar_value_p): Likewise. | |
15721 | * symtab.c (lookup_symbol_aux): Likewise. | |
15722 | * typeprint.c (whatis_exp, print_type_scalar): Likewise. | |
15723 | * valarith.c (binop_types_user_defined_p, unop_user_defined_p): | |
15724 | Likewise. | |
15725 | * valops.c (value_cast_pointers, value_cast) | |
15726 | (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp) | |
15727 | (value_struct_elt, value_struct_elt_bitpos) | |
15728 | (value_find_oload_method_list, find_overload_match) | |
15729 | (value_rtti_indirect_type): Likewise. | |
15730 | * valprint.c (val_print_scalar_type_p, generic_val_print): | |
15731 | Likewise. | |
15732 | * value.c (value_actual_type, value_as_address, unpack_long) | |
15733 | (pack_long, pack_unsigned_long, coerce_ref_if_computed) | |
15734 | (coerce_ref): Likewise. | |
15735 | * varobj.c (varobj_get_value_type): Likewise. | |
15736 | ||
3fcf899d AV |
15737 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
15738 | ||
15739 | PR gdb/14441 | |
15740 | * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to | |
15741 | table of constants. | |
15742 | * python/lib/gdb/command/explore.py: Support exploring values | |
15743 | of rvalue reference types. | |
15744 | * python/lib/gdb/types.py: Implement get_basic_type() for | |
15745 | rvalue reference types. | |
15746 | * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New | |
15747 | constant. | |
15748 | * python/py-value.c (valpy_getitem): Add an rvalue reference | |
15749 | check. | |
15750 | (valpy_reference_value): Add new parameter "refcode". | |
15751 | (valpy_lvalue_reference_value, valpy_rvalue_reference_value): | |
15752 | New wrappers for valpy_reference_value(). | |
15753 | * python/py-xmethods.c (gdbpy_get_xmethod_result_type) | |
15754 | (gdbpy_invoke_xmethod): Likewise. | |
15755 | ||
4297a3f0 AV |
15756 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
15757 | ||
15758 | PR gdb/14441 | |
15759 | * dwarf2read.c (process_die, read_type_die_1): Handle the | |
15760 | DW_TAG_rvalue_reference_type DIE. | |
15761 | (read_tag_reference_type): Add new parameter "refcode". | |
15762 | ||
e1cb3213 AV |
15763 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
15764 | ||
15765 | PR gdb/14441 | |
15766 | * c-typeprint.c (c_print_type, c_type_print_varspec_prefix) | |
15767 | (c_type_print_modifier, c_type_print_varspec_suffix) | |
15768 | (c_type_print_base): Support printing rvalue reference types. | |
15769 | * c-valprint.c (c_val_print, c_value_print): Support printing | |
15770 | rvalue reference values. | |
15771 | ||
e4347c89 AV |
15772 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
15773 | ||
15774 | PR gdb/14441 | |
15775 | * cp-name-parser.y (ptr_operator): Handle the '&&' token in | |
15776 | typename. | |
15777 | * cp-support.c (replace_typedefs): Handle | |
15778 | DEMANGLE_COMPONENT_RVALUE_REFERENCE. | |
15779 | * python/py-type.c (typy_lookup_type): Likewise. | |
15780 | ||
53cc15f5 AV |
15781 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
15782 | ||
15783 | PR gdb/14441 | |
15784 | * c-exp.y (ptr_operator): Handle the '&&' token in the typename. | |
15785 | * parse.c (insert_type): Change assert statement. | |
15786 | (follow_types): Handle rvalue reference types. | |
15787 | * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New | |
15788 | constant. | |
15789 | ||
a65cfae5 AV |
15790 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
15791 | ||
15792 | PR gdb/14441 | |
15793 | * ada-lang.c (ada_evaluate_subexp): Adhere to the new | |
15794 | value_ref() interface. | |
15795 | * c-valprint.c (c_value_print): Likewise. | |
15796 | * infcall.c (value_arg_coerce): Likewise. | |
15797 | * python/py-value.c (valpy_reference_value): Likewise. | |
15798 | * valops.c (value_cast, value_reinterpret_cast) | |
15799 | (value_dynamic_cast, typecmp): Likewise. | |
15800 | (value_ref): Parameterize by kind of return value reference type. | |
15801 | * value.h (value_ref): Add new parameter "refcode". | |
15802 | ||
3b224330 AV |
15803 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
15804 | ||
15805 | PR gdb/14441 | |
15806 | * dwarf2read.c (read_tag_reference_type): Use | |
15807 | lookup_lvalue_reference_type() instead of lookup_reference_type(). | |
15808 | * eval.c (evaluate_subexp_standard): Likewise. | |
15809 | * f-exp.y: Likewise. | |
15810 | * gdbtypes.c (make_reference_type, lookup_reference_type): | |
15811 | Generalize with rvalue reference types. | |
15812 | (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New | |
15813 | convenience wrappers for lookup_reference_type(). | |
15814 | * gdbtypes.h (make_reference_type, lookup_reference_type): Add a | |
15815 | reference kind parameter. | |
15816 | (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add | |
15817 | wrappers for lookup_reference_type(). | |
15818 | * guile/scm-type.c (gdbscm_type_reference): Use | |
15819 | lookup_lvalue_reference_type() instead of lookup_reference_type(). | |
15820 | * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise. | |
15821 | * parse.c (follow_types): Likewise. | |
15822 | * python/py-type.c (typy_reference, typy_lookup_type): Likewise. | |
15823 | * python/py-value.c (valpy_get_dynamic_type, valpy_getitem): | |
15824 | Likewise. | |
15825 | * python/py-xmethods.c (gdbpy_get_xmethod_result_type) | |
15826 | (gdbpy_invoke_xmethod): Likewise. | |
15827 | * stabsread.c: Provide extra argument to make_reference_type() | |
15828 | call. | |
15829 | * valops.c (value_ref, value_rtti_indirect_type): Use | |
15830 | lookup_lvalue_reference_type() instead of lookup_reference_type(). | |
15831 | ||
f9aeb8d4 AV |
15832 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
15833 | ||
15834 | PR gdb/14441 | |
15835 | * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant. | |
15836 | (TYPE_IS_REFERENCE): New macro. | |
15837 | (struct type): Add rvalue_reference_type field. | |
15838 | (TYPE_RVALUE_REFERENCE_TYPE): New macro. | |
15839 | ||
51457a05 MAL |
15840 | 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com> |
15841 | ||
15842 | * NEWS: Add an entry about new '-file-list-shared-libraries' command. | |
15843 | * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): | |
15844 | New function definition. | |
15845 | * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command. | |
15846 | * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries): | |
15847 | New function declaration. | |
15848 | * mi/mi-interp.c (mi_output_solib_attribs): New Function. | |
15849 | * mi/mi-interp.h: New file. | |
15850 | * solib.c (info_sharedlibrary_command): Replace for loop with | |
15851 | ALL_SO_LIBS macro | |
15852 | * solib.h (update_solib_list): New function declaration. | |
15853 | (so_list_head): Move macro. | |
15854 | * solist.h (ALL_SO_LIBS): New macro. | |
15855 | ||
e696b3ad MAL |
15856 | 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com> |
15857 | ||
15858 | * infcmd.c (post_create_inferior): Remove unused argument in | |
15859 | call to solib_add. | |
15860 | * remote.c (remote_start_remote): Likewise. | |
15861 | * solib-frv.c (frv_fetch_objfile_link_map): Likewise. | |
15862 | * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise. | |
15863 | (enable_break): Likewise. | |
15864 | * solib.c (update_solib_list): Remove unused target argument | |
15865 | and its documentation. | |
15866 | (solib_add): Remove unused target argument. Remove unused | |
15867 | argument in call to update_solib_list. | |
15868 | (info_sharedlibrary_command): Remove unused argument in call | |
15869 | to update_solib_list. | |
15870 | (sharedlibrary_command): Remove unused argument in call to | |
15871 | solib_add. | |
15872 | (handle_solib_event): Likewise. | |
15873 | (reload_shared_libraries): Likewise. | |
15874 | * solib.h (solib_add): Remove unused target argument. | |
15875 | ||
dcb84eda AA |
15876 | 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com> |
15877 | ||
15878 | * s390-linux-tdep.c (is_rsi, is_rie): Remove functions. | |
15879 | (s390_displaced_step_fixup): Cover relative branches with the | |
15880 | default fixup handling. This fixes lack of support for some | |
15881 | relative branch instructions. | |
15882 | ||
d9cb6cdc SM |
15883 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
15884 | ||
15885 | * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use | |
15886 | ptid from regcache. | |
15887 | ||
1afaf9f4 SM |
15888 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
15889 | ||
15890 | * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers, | |
15891 | i386_darwin_store_inferior_registers): Use ptid from regcache. | |
15892 | ||
aac12e24 SM |
15893 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
15894 | ||
15895 | * i386-bsd-nat.c (i386bsd_fetch_inferior_registers, | |
15896 | i386bsd_store_inferior_registers): Use ptid from regcache. | |
15897 | ||
bbe1eef1 SM |
15898 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
15899 | ||
15900 | * hppa-obsd-nat.c (hppaobsd_fetch_registers, | |
15901 | hppaobsd_store_registers): Use ptid from regcache. | |
15902 | ||
10799020 SM |
15903 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
15904 | ||
15905 | * hppa-nbsd-nat.c (hppanbsd_fetch_registers, | |
15906 | hppanbsd_store_registers): Use ptid from regcache. | |
15907 | ||
00204cf7 SM |
15908 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
15909 | ||
15910 | * hppa-linux-nat.c (fetch_register, store_register): Use ptid | |
15911 | from regcache. Use get_ptrace_pid. | |
15912 | ||
11a33714 SM |
15913 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
15914 | ||
15915 | * corelow.c (get_core_register_section): Use ptid from regcache, | |
15916 | update doc. | |
15917 | ||
317cd492 SM |
15918 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
15919 | ||
15920 | * bsd-uthread.c (bsd_uthread_fetch_registers, | |
15921 | bsd_uthread_store_registers): Use ptid from regcache, set and | |
15922 | restore inferior_ptid. | |
15923 | ||
9ac8a7c2 SM |
15924 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
15925 | ||
15926 | * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register, | |
15927 | fetch_fp_regs, store_register, store_regs, store_fp_register, | |
15928 | store_fp_regs): Use ptid from regcache. | |
15929 | ||
4ac4bb6a SM |
15930 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
15931 | ||
15932 | * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs, | |
15933 | store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs, | |
15934 | store_vfp_regs): Use ptid from regcache. | |
15935 | ||
9bcbdca8 PA |
15936 | 2017-03-17 Pedro Alves <palves@redhat.com> |
15937 | ||
15938 | PR remote/21188 | |
15939 | * ser-base.c (ser_base_wait_for): Add comment. | |
15940 | (do_ser_base_readchar): Improve comment based on the ser-unix.c's | |
15941 | version. | |
15942 | * ser-unix.c (hardwire_raw): Remove reference to | |
15943 | scb->current_timeout. | |
15944 | (wait_for, do_hardwire_readchar, hardwire_readchar): Delete. | |
15945 | (hardwire_ops): Install ser_base_readchar instead of | |
15946 | hardwire_readchar. | |
15947 | * serial.h (struct serial) <current_timeout, timeout_remaining>: | |
15948 | Remove fields. | |
15949 | ||
7503099f JG |
15950 | 2017-03-17 Jonah Graham <jonah@kichwacoders.com> |
15951 | ||
15952 | PR gdb/19637 | |
15953 | * python/lib/gdb/printer/bound_registers.py: Add support for | |
15954 | Python 3. | |
15955 | ||
7942e96e AA |
15956 | 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com> |
15957 | ||
15958 | * dwarf2loc.c (indirect_synthetic_pointer): Get data type of | |
15959 | pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full. | |
15960 | (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename | |
15961 | byte_offset to subobj_byte_offset. Fix the handling of | |
15962 | DWARF_VALUE_STACK on big-endian targets when coming via an | |
15963 | implicit pointer. | |
15964 | (dwarf2_evaluate_loc_desc): Adjust call to | |
15965 | dwarf2_evaluate_loc_desc_full. | |
15966 | * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration. | |
15967 | * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function. | |
15968 | ||
ba14f379 YQ |
15969 | 2017-03-16 Yao Qi <yao.qi@linaro.org> |
15970 | ||
15971 | * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16, | |
15972 | and REVSH instructions. | |
15973 | ||
b121eeb9 YQ |
15974 | 2017-03-16 Yao Qi <yao.qi@linaro.org> |
15975 | ||
15976 | * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h". | |
15977 | (arm_record_test): Declare. | |
15978 | (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test. | |
15979 | (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to | |
15980 | align with the manual. | |
15981 | (thumb_record_misc): Adjust the code order to align with the | |
15982 | manual. | |
15983 | (thumb2_record_decode_insn_handler): Fix instruction matching. | |
15984 | (instruction_reader_thumb): New class. | |
15985 | (arm_record_test): New function. | |
15986 | ||
728a7913 YQ |
15987 | 2017-03-16 Yao Qi <yao.qi@linaro.org> |
15988 | ||
15989 | * arm-tdep.c (abstract_memory_reader): New class. | |
15990 | (instruction_reader): New class. | |
15991 | (extract_arm_insn): Add argument 'reader'. Callers updated. | |
15992 | (decode_insn): Likewise. | |
15993 | ||
34b43320 DE |
15994 | 2017-03-16 Doug Evans <dje@google.com> |
15995 | ||
a7c0469f DE |
15996 | * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH |
15997 | member. Change type of TYPE member to SCM. All uses updated. | |
15998 | (lsscm_make_lazy_string_smob): Add assert. | |
15999 | (lsscm_make_lazy_string): Flag bad length values. | |
16000 | (lsscm_elt_type): New function. | |
16001 | (gdbscm_lazy_string_to_value): Rewrite to use | |
16002 | lsscm_safe_lazy_string_to_value. | |
16003 | (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR. | |
16004 | * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length | |
16005 | values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs | |
16006 | in incoming type. | |
16007 | * guile/guile-internal.h (tyscm_scm_to_type): Declare. | |
16008 | * guile/scm-type.c (tyscm_scm_to_type): New function. | |
16009 | ||
16010 | 2017-03-15 Doug Evans <dje@google.com> | |
16011 | ||
34b43320 DE |
16012 | PR python/17728, python/18439, python/18779 |
16013 | * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH | |
16014 | member. Change type of TYPE member to PyObject *. All uses updated. | |
16015 | (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR. | |
16016 | (gdbpy_create_lazy_string_object): Flag bad length values. | |
16017 | Handle TYPE_CODE_ARRAY with possibly different user-provided length. | |
16018 | Handle typedefs in incoming type. | |
16019 | (stpy_lazy_string_elt_type): New function. | |
16020 | (gdbpy_extract_lazy_string): Call it. | |
16021 | * python/py-value.c (valpy_lazy_string): Flag bad length values. | |
16022 | Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle | |
16023 | typedefs in incoming type. | |
16024 | ||
a3a5fecc DE |
16025 | 2017-03-16 Doug Evans <dje@google.com> |
16026 | ||
16027 | * guile/guile-internal.h (tyscm_scm_to_type): Declare. | |
16028 | * guile/scm-type.c (tyscm_scm_to_type): New function. | |
16029 | ||
28f1c605 JW |
16030 | 2017-03-16 Jiong Wang <jiong.wang@arm.com> |
16031 | ||
16032 | * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to | |
16033 | "ULONGEST" for "skip". | |
16034 | ||
87c336f6 AA |
16035 | 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com> |
16036 | ||
16037 | PR gdb/21220 | |
16038 | * inf-ptrace.c (inf_ptrace_xfer_partial): In "case | |
16039 | TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke... | |
16040 | (inf_ptrace_peek_poke): ...here. New function. Now also loop | |
16041 | over ptrace peek/poke until end of buffer or error. | |
16042 | ||
cf81cf60 SM |
16043 | 2017-03-14 Simon Marchi <simon.marchi@ericsson.com> |
16044 | ||
16045 | * parse.c (length_of_subexp): Make static. | |
16046 | * parser-defs.h (length_of_subexp): Remove. | |
16047 | ||
a379284a AA |
16048 | 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com> |
16049 | ||
16050 | * linux-nat.c (linux_proc_xfer_partial): Handle write operations | |
16051 | as well. | |
16052 | ||
8a6200ba PA |
16053 | 2017-03-14 Pedro Alves <palves@redhat.com> |
16054 | ||
16055 | * cp-name-parser.y (cp_demangled_name_to_comp): Update comment. | |
16056 | (main): Use std::unique_ptr. Remove calls to | |
16057 | cp_demangled_name_parse_free. | |
16058 | ||
f79ec206 SM |
16059 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
16060 | ||
16061 | * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers, | |
16062 | alphabsd_store_inferior_registers): Use regcache->ptid instead | |
16063 | of inferior_ptid. | |
16064 | ||
edb5fb00 SM |
16065 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
16066 | ||
16067 | * aix-thread.c (aix_thread_fetch_registers, | |
16068 | aix_thread_store_registers): Use regcache->ptid instead of | |
16069 | inferior_ptid. | |
16070 | ||
55119686 SM |
16071 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
16072 | ||
16073 | * aarch64-linux-nat.c (fetch_gregs_from_thread, | |
16074 | store_gregs_to_thread, fetch_fpregs_from_thread, | |
16075 | store_fpregs_to_thread): Use regcache->ptid instead of | |
16076 | inferior_ptid. | |
16077 | ||
6a06fbb7 SM |
16078 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
16079 | ||
16080 | * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers, | |
16081 | amd64_linux_fetch_inferior_registers): Use regcache->ptid | |
16082 | instead of inferior_ptid. | |
16083 | ||
c6386875 SM |
16084 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
16085 | ||
16086 | * target.c (target_fetch_registers, target_store_registers): Add | |
16087 | assert. | |
16088 | ||
ddaaf0fb SM |
16089 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
16090 | ||
16091 | * regcache.h (regcache_get_ptid): New function. | |
16092 | * regcache.c (regcache_get_ptid): New function. | |
16093 | ||
b9da89d1 | 16094 | 2017-03-13 Mark Wielaard <mark@klomp.org> |
16095 | ||
16096 | * cp-name-parser.y (make_empty): Initialize d_printing to zero. | |
16097 | ||
5f4d1085 KS |
16098 | 2017-03-10 Keith Seitz <keiths@redhat.com> |
16099 | ||
16100 | PR c++/8218 | |
16101 | * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments. | |
16102 | ||
c65d6b55 PA |
16103 | 2017-03-08 Pedro Alves <palves@redhat.com> |
16104 | ||
16105 | PR gdb/18360 | |
16106 | * infrun.c (start_step_over, do_target_resume, resume) | |
16107 | (restart_threads): Assert we're not resuming a thread that is | |
16108 | meant to be stopped. | |
16109 | (infrun_thread_stop_requested_callback): Delete. | |
16110 | (infrun_thread_stop_requested): If the thread is internally | |
16111 | stopped, queue a pending stop event and clear the thread's | |
16112 | inline-frame state. | |
16113 | (handle_stop_requested): New function. | |
16114 | (handle_syscall_event, handle_inferior_event_1): Use | |
16115 | handle_stop_requested. | |
16116 | (handle_stop_requested): New function. | |
16117 | (handle_signal_stop): Set the thread's stop_signal here instead of | |
16118 | at caller. | |
16119 | (finish_step_over): Clear step over info unconditionally. | |
16120 | (handle_signal_stop): If the user had interrupted the event | |
16121 | thread, consider the stop a random signal. | |
16122 | (handle_signal_stop) <signal arrived while stepping over | |
16123 | breakpoint>: Don't restart threads here. | |
16124 | (stop_waiting): Don't clear step-over info here. | |
16125 | ||
15c22686 PA |
16126 | 2017-03-08 Pedro Alves <palves@redhat.com> |
16127 | ||
16128 | PR 21206 | |
16129 | * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull | |
16130 | goes to argument 2, not 1. | |
16131 | ||
6e5d74e7 PA |
16132 | 2017-03-08 Pedro Alves <palves@redhat.com> |
16133 | ||
16134 | PR cli/21218 | |
16135 | * top.c (gdb_readline_wrapper): Avoid passing NULL to | |
16136 | display_gdb_prompt. | |
16137 | (command_line_input): Add comment. | |
16138 | ||
9753a2f6 PA |
16139 | 2017-03-08 Pedro Alves <palves@redhat.com> |
16140 | ||
16141 | PR tui/21216 | |
16142 | * tui/tui-file.c (tui_file::write): New. | |
16143 | * tui/tui-file.h (tui_file): Override "write". | |
16144 | * tui/tui-io.c (do_tui_putc, update_start_line): New functions, | |
16145 | factored out from ... | |
16146 | (tui_puts): ... here. | |
16147 | (tui_putc): Use them. | |
16148 | (tui_write): New function. | |
16149 | * tui/tui-io.h (tui_write): Declare. | |
16150 | ||
1672e0d9 SDJ |
16151 | 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com> |
16152 | ||
16153 | * Makefile.in (SFILES): Replace "environ.c" with | |
16154 | "common/environ.c". | |
16155 | (HFILES_NO_SRCDIR): Likewise, for "environ.h". | |
16156 | * environ.c: Include "common-defs.h" instead of "defs.h. Moved | |
16157 | to... | |
16158 | * common/environ.c: ... here. | |
16159 | * environ.h: Moved to... | |
16160 | * common/environ.h: ... here. | |
16161 | ||
f7bb4e3a PB |
16162 | 2017-03-07 Peter Bergner <bergner@vnet.ibm.com> |
16163 | ||
16164 | * gdbarch.sh (pstring_ptr): New static function. | |
16165 | (gdbarch_disassembler_options): Use it. | |
16166 | (gdbarch_verify_disassembler_options): Print valid_disassembler_options, | |
16167 | not valid_disassembler_option->name. | |
16168 | * gdbarch.c: Regenerate. | |
16169 | ||
e45ced6c PB |
16170 | 2017-03-07 Peter Bergner <bergner@vnet.ibm.com> |
16171 | ||
16172 | * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete. | |
16173 | ||
5f6fd321 PA |
16174 | 2017-03-07 Pedro Alves <palves@redhat.com> |
16175 | ||
16176 | * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout. | |
16177 | ||
6dbb839a | 16178 | 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com> |
4a612d6f WT |
16179 | |
16180 | * i387-tdep.h (i387_reset_bnd_regs): Add function definition. | |
16181 | * i387-tdep.c (i387_reset_bnd_regs): Add function implementation. | |
16182 | * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs. | |
6dbb839a | 16183 | * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs. |
4a612d6f | 16184 | |
d274ecf4 SM |
16185 | 2017-03-06 Simon Marchi <simon.marchi@ericsson.com> |
16186 | ||
16187 | * xtensa-linux-nat.c (fetch_gregs): Remove const. | |
16188 | ||
df97be55 SM |
16189 | 2017-03-03 Simon Marchi <simon.marchi@ericsson.com> |
16190 | ||
16191 | * remote.c (remote_add_target_side_commands): Use range-based | |
16192 | for loop. | |
16193 | ||
7d45f3df YQ |
16194 | 2017-03-03 Yao Qi <yao.qi@linaro.org> |
16195 | ||
16196 | PR gdb/21165 | |
16197 | * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if | |
16198 | value is lazy. | |
16199 | * valprint.c (common_val_print): Likewise. | |
16200 | ||
65b48a81 PB |
16201 | 2017-02-28 Peter Bergner <bergner@vnet.ibm.com> |
16202 | ||
16203 | * NEWS: Mention new set/show disassembler-options commands. | |
16204 | * doc/gdb.texinfo: Document new set/show disassembler-options commands. | |
16205 | * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h". | |
16206 | (prospective_options): New static variable. | |
16207 | (gdb_disassembler::gdb_disassembler): Initialize | |
16208 | m_di.disassembler_options. | |
16209 | (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options. | |
16210 | (get_disassembler_options): New function. | |
16211 | (set_disassembler_options): Likewise. | |
16212 | (set_disassembler_options_sfunc): Likewise. | |
16213 | (show_disassembler_options_sfunc): Likewise. | |
16214 | (disassembler_options_completer): Likewise. | |
16215 | (_initialize_disasm): Likewise. | |
16216 | * disasm.h (get_disassembler_options): New prototype. | |
16217 | (set_disassembler_options): Likewise. | |
16218 | * gdbarch.sh (gdbarch_disassembler_options): New variable. | |
16219 | (gdbarch_verify_disassembler_options): Likewise. | |
16220 | * gdbarch.c: Regenerate. | |
16221 | * gdbarch.h: Likewise. | |
16222 | * arm-tdep.c (num_disassembly_options): Delete. | |
16223 | (set_disassembly_style): Likewise. | |
16224 | (arm_disassembler_options): New static variable. | |
16225 | (set_disassembly_style_sfunc): Convert short style name into long | |
16226 | option name. Call set_disassembler_options. | |
16227 | (show_disassembly_style_sfunc): New function. | |
16228 | (arm_gdbarch_init): Call set_gdbarch_disassembler_options and | |
16229 | set_gdbarch_verify_disassembler_options. | |
16230 | (_initialize_arm_tdep): Delete regnames variable and update callers. | |
16231 | (arm_disassembler_options): Initialize. | |
16232 | (disasm_options): New variable. | |
16233 | (num_disassembly_options): Rename from this... | |
16234 | (num_disassembly_styles): ...to this. Compute by scanning through | |
16235 | disasm_options. | |
16236 | (valid_disassembly_styles): Initialize using disasm_options. | |
16237 | Remove calls to parse_arm_disassembler_option, get_arm_regnames and | |
16238 | set_arm_regname_option. | |
16239 | Pass show_disassembly_style_sfunc to the "disassembler" setshow command. | |
16240 | * rs6000-tdep.c (powerpc_disassembler_options): New static variable. | |
16241 | (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and | |
16242 | set_gdbarch_verify_disassembler_options. | |
16243 | * s390-tdep.c (s390_disassembler_options): New static variable. | |
16244 | (s390_gdbarch_init):all set_gdbarch_disassembler_options and | |
16245 | set_gdbarch_verify_disassembler_options. | |
16246 | ||
d538e36d SM |
16247 | 2017-02-27 Simon Marchi <simon.marchi@ericsson.com> |
16248 | ||
16249 | * remote.c (remote_add_target_side_condition): Remove "struct" | |
16250 | keyword from range-based for loop. | |
16251 | ||
83621223 SM |
16252 | 2017-02-27 Simon Marchi <simon.marchi@ericsson.com> |
16253 | ||
16254 | * remote.c (remote_add_target_side_condition): Use range-based | |
16255 | for loop. Update comment. | |
16256 | ||
2123df0e YQ |
16257 | 2017-02-27 Yao Qi <yao.qi@linaro.org> |
16258 | ||
16259 | * f-typeprint.c (f_print_type): Check "varstring" is empty first. | |
16260 | ||
8e368124 AH |
16261 | 2017-02-26 Alan Hayward <alan.hayward@arm.com> |
16262 | ||
16263 | * regcache.c (regcache_raw_update): New function. | |
16264 | (regcache_raw_read): Move code to regcache_raw_update. | |
16265 | * regcache.h (regcache_raw_update): New declaration. | |
16266 | * remote.c (remote_prepare_to_store): Call regcache_raw_update. | |
16267 | ||
a49dd8dd JK |
16268 | 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com> |
16269 | ||
16270 | * dwarf2read.c (create_debug_type_hash_table): Initialize | |
16271 | header.signature and header.type_offset_in_tu. | |
16272 | ||
34e4bae9 PA |
16273 | 2017-02-24 Pedro Alves <palves@redhat.com> |
16274 | ||
16275 | * symtab.c (make_file_symbol_completion_list_1): Use | |
16276 | add_symtab_completions. | |
16277 | ||
b0e4b369 AH |
16278 | 2017-02-24 Alan Hayward <alan.hayward@arm.com> |
16279 | ||
16280 | * stack.c (frame_info): Use frame_unwind_register_value to avoid buf. | |
16281 | ||
975c21ab AH |
16282 | 2017-02-24 Alan Hayward <alan.hayward@arm.com> |
16283 | ||
16284 | * i386-tdep.c (i386_pseudo_register_read_into_value): Use | |
16285 | I386_MAX_REGISTER_SIZE. | |
16286 | (i386_pseudo_register_write): Likewise. | |
16287 | (i386_process_record): Likewise. | |
16288 | * i387-tdep.c (i387_supply_xsave): Likewise. | |
16289 | * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE. | |
16290 | (store_register): Likewise. | |
16291 | ||
14bc53a8 PA |
16292 | 2017-02-23 Pedro Alves <palves@redhat.com> |
16293 | ||
16294 | * ada-lang.c: Include "common/function-view.h". | |
16295 | (ada_iterate_over_symbols): Adjust to use function_view as | |
16296 | callback type. | |
16297 | (struct add_partial_datum, ada_complete_symbol_matcher): Delete. | |
16298 | (ada_make_symbol_completion_list): Use a lambda. | |
16299 | (ada_exc_search_name_matches): Delete. | |
16300 | (name_matches_regex): New. | |
16301 | (ada_add_global_exceptions): Use a lambda and name_matches_regex. | |
16302 | * compile/compile-c-support.c: Include "common/function-view.h". | |
16303 | (print_one_macro): Change prototype to accept a ui_file pointer. | |
16304 | (write_macro_definitions): Use a lambda. | |
16305 | * dwarf2read.c: Include "common/function-view.h". | |
16306 | (dw2_map_expand_apply, dw2_map_symtabs_matching_filename) | |
16307 | (dw2_expand_symtabs_matching): Adjust to use function_view as | |
16308 | callback type. | |
16309 | * language.h: Include "common/function-view.h". | |
16310 | (struct language_defn) <la_iterate_over_symbols>: Adjust to use | |
16311 | function_view as callback type. | |
16312 | (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter. | |
16313 | * linespec.c: Include "common/function-view.h". | |
16314 | (collect_info::add_symbol): New method. | |
16315 | (struct symbol_and_data_callback, iterate_inline_only, struct | |
16316 | symbol_matcher_data, iterate_name_matcher): Delete. | |
16317 | (iterate_over_all_matching_symtabs): Adjust to use function_view | |
16318 | as callback type and lambdas. | |
16319 | (iterate_over_file_blocks): Adjust to use function_view as | |
16320 | callback type. | |
16321 | (decode_compound_collector): Now a class with private fields. | |
16322 | (decode_compound_collector::release_symbols): New method. | |
16323 | (collect_one_symbol): Rename to... | |
16324 | (decode_compound_collector::operator()): ... this and adjust. | |
16325 | (lookup_prefix_sym): decode_compound_collector construction bits | |
16326 | move to decode_compound_collector ctor. Pass the | |
16327 | decode_compound_collector object directly as callback. Remove | |
16328 | cleanups and use decode_compound_collector::release_symbols | |
16329 | instead. | |
16330 | (symtab_collector): Now a class with private fields. | |
16331 | (symtab_collector::release_symtabs): New method. | |
16332 | (add_symtabs_to_list): Rename to... | |
16333 | (symtab_collector::operator()): ... this and adjust. | |
16334 | (collect_symtabs_from_filename): symtab_collector construction | |
16335 | bits move to symtab_collector ctor. Pass the symtab_collector | |
16336 | object directly as callback. Remove cleanups and use | |
16337 | symtab_collector::release_symtabs instead. | |
16338 | (collect_symbols): Delete. | |
16339 | (add_matching_symbols_to_info): Use lambdas. | |
16340 | * macrocmd.c (print_macro_callback): Delete. | |
16341 | (info_macro_command): Use a lambda. | |
16342 | (info_macros_command): Pass print_macro_definition as callable | |
16343 | directly. | |
16344 | (print_one_macro): Remove 'ignore' parameter. | |
16345 | (macro_list_command): Adjust. | |
16346 | * macrotab.c (macro_for_each_data::fn): Now a function_view. | |
16347 | (macro_for_each_data::user_data): Delete field. | |
16348 | (foreach_macro): Adjust to call the function_view. | |
16349 | (macro_for_each): Adjust to use function_view as callback type. | |
16350 | (foreach_macro_in_scope): Adjust to call the function_view. | |
16351 | (macro_for_each_in_scope): Adjust to use function_view as callback | |
16352 | type. | |
16353 | * macrotab.h: Include "common/function-view.h". | |
16354 | (macro_callback_fn): Declare a prototype instead of a pointer. | |
16355 | Remove "user_data" parameter. | |
16356 | (macro_for_each, macro_for_each_in_scope): Adjust to use | |
16357 | function_view as callback type. | |
16358 | * psymtab.c (partial_map_expand_apply) | |
16359 | (psym_map_symtabs_matching_filename, recursively_search_psymtabs): | |
16360 | Adjust to use function_view as callback type and to return bool. | |
16361 | (psym_expand_symtabs_matching): Adjust to use function_view as | |
16362 | callback types. | |
16363 | * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust | |
16364 | to use function_view as callback type and to return bool. | |
16365 | (debug_qf_expand_symtabs_matching): Adjust to use function_view as | |
16366 | callback types. | |
16367 | * symfile.c (expand_symtabs_matching): Adjust to use function_view | |
16368 | as callback types. | |
16369 | * symfile.h: Include "common/function-view.h". | |
16370 | (expand_symtabs_file_matcher_ftype) | |
16371 | (expand_symtabs_symbol_matcher_ftype) | |
16372 | (expand_symtabs_exp_notify_ftype): Remove "data" parameter and | |
16373 | return bool. | |
16374 | (quick_symbol_functions::map_symtabs_matching_filename) | |
16375 | (quick_symbol_functions::expand_symtabs_matching): Adjust to use | |
16376 | function_view as callback type and return bool. | |
16377 | (expand_symtabs_matching): Adjust to use function_view as callback | |
16378 | type. | |
16379 | (maintenance_expand_name_matcher) | |
16380 | (maintenance_expand_file_matcher): Delete. | |
16381 | (maintenance_expand_symtabs): Use lambdas. | |
16382 | * symtab.c (iterate_over_some_symtabs): Adjust to use | |
16383 | function_view as callback types and return bool. | |
16384 | (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead | |
16385 | of a cleanup. | |
16386 | (lookup_symtab_callback): Delete. | |
16387 | (lookup_symtab): Use a lambda. | |
16388 | (iterate_over_symbols): Adjust to use function_view as callback | |
16389 | type. | |
16390 | (struct search_symbols_data, search_symbols_file_matches) | |
16391 | (search_symbols_name_matches): Delete. | |
16392 | (search_symbols): Use a pair of lambdas. | |
16393 | (struct add_name_data, add_macro_name, symbol_completion_matcher) | |
16394 | (symtab_expansion_callback): Delete. | |
16395 | (default_make_symbol_completion_list_break_on_1): Use lambdas. | |
16396 | * symtab.h: Include "common/function-view.h". | |
16397 | (iterate_over_some_symtabs): Adjust to use function_view as | |
16398 | callback type and return bool. | |
16399 | (iterate_over_symtabs): Adjust to use function_view as callback | |
16400 | type. | |
16401 | (symbol_found_callback_ftype): Remove 'data' parameter and return | |
16402 | bool. | |
16403 | (iterate_over_symbols): Adjust to use function_view as callback | |
16404 | type. | |
16405 | ||
07e253aa PA |
16406 | 2017-02-23 Pedro Alves <palves@redhat.com> |
16407 | ||
16408 | * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New. | |
16409 | (%.o) <unittests/%.c>: New pattern. | |
16410 | * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to | |
16411 | CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS. | |
16412 | * common/function-view.h: New file. | |
16413 | * unittests/function-view-selftests.c: New file. | |
16414 | * configure: Regenerate. | |
16415 | ||
8eaf5320 SM |
16416 | 2017-02-23 Simon Marchi <simon.marchi@ericsson.com> |
16417 | ||
16418 | * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of | |
16419 | inferior_ptid. | |
16420 | * go32-nat.c (go32_thread_alive): Likewise. | |
16421 | ||
38768751 YQ |
16422 | 2017-02-23 Yao Qi <yao.qi@linaro.org> |
16423 | ||
16424 | * varobj-iter.h (varobj_iter_delete): Call xfree instead of | |
16425 | delete. | |
16426 | ||
0a8beaba YQ |
16427 | 2017-02-23 Yao Qi <yao.qi@linaro.org> |
16428 | ||
16429 | * varobj.c (varobj_clear_saved_item): Use delete instead of | |
16430 | xfree. | |
16431 | (update_dynamic_varobj_children): Likewise. | |
16432 | ||
58fdfd2c JK |
16433 | 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
16434 | ||
16435 | * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR. | |
16436 | ||
1b90b139 SM |
16437 | 2017-02-21 Simon Marchi <simon.marchi@ericsson.com> |
16438 | ||
16439 | * common/enum-flags.h (enum_flags::enum_flags): Initialize | |
16440 | m_enum_value to 0 in default constructor. | |
16441 | ||
2039d74e EBM |
16442 | 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com> |
16443 | ||
16444 | * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK. | |
16445 | (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK. | |
16446 | (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION, | |
16447 | STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines. | |
16448 | (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros. | |
16449 | (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN. | |
16450 | (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and | |
16451 | IS_STORE_CONDITIONAL_INSN. | |
16452 | ||
7814882a JK |
16453 | 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
16454 | ||
16455 | * dwarf2_rnglists_process: Initialize range_beginning and range_end. | |
16456 | ||
0ae60b63 JK |
16457 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
16458 | ||
16459 | * NEWS (Changes since GDB 7.12): Add DWARF-5. | |
16460 | ||
0224619f JK |
16461 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
16462 | ||
16463 | * dwarf2read.c (skip_one_die, read_attribute_value) | |
16464 | (dwarf2_const_value_attr, dump_die_shallow) | |
16465 | (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes) | |
16466 | (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16. | |
16467 | ||
0af92d60 JK |
16468 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
16469 | ||
16470 | * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*. | |
16471 | (dwarf_parse_macro_header): Accept DWARF version 5. | |
16472 | (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*. | |
16473 | ||
216f72a1 JK |
16474 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
16475 | ||
16476 | * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and | |
16477 | DW_AT_GNU_*. | |
16478 | * common/common-exceptions.h (enum errors): Likewise. | |
16479 | * dwarf2-frame.c (class dwarf_expr_executor): Likewise. | |
16480 | * dwarf2expr.c (dwarf_block_to_dwarf_reg) | |
16481 | (dwarf_expr_context::execute_stack_op): Likewise. | |
16482 | * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece): | |
16483 | Likewise. | |
16484 | * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type) | |
16485 | (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value) | |
16486 | (show_entry_values_debug, call_site_to_target_addr) | |
16487 | (func_addr_to_tail_call_list, func_verify_no_selftailcall) | |
16488 | (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value) | |
16489 | (entry_data_value_free_closure, value_of_dwarf_reg_entry) | |
16490 | (value_of_dwarf_block_entry, indirect_pieced_value) | |
16491 | (symbol_needs_eval_context::push_dwarf_reg_entry_value): | |
16492 | (disassemble_dwarf_expression): Likewise. | |
16493 | * dwarf2read.c (process_die, inherit_abstract_dies) | |
16494 | (read_call_site_scope): Likewise. | |
16495 | * gdbtypes.h (struct func_type, struct call_site_parameter) | |
16496 | (struct call_site): Likewise. | |
16497 | * stack.c (read_frame_arg): Likewise. | |
16498 | * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise. | |
16499 | ||
43988095 JK |
16500 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
16501 | ||
16502 | * defs.h (read_unsigned_leb128): New declaration. | |
16503 | * dwarf2loc.c (decode_debug_loclists_addresses): New function. | |
16504 | (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*. | |
16505 | (dwarf2_find_location_expression): Call also | |
16506 | decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length. | |
16507 | * dwarf2loc.h (dwarf2_version): New declaration. | |
16508 | * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str, | |
16509 | rnglists. | |
16510 | (dwarf2_elf_names): Add .debug_loclists, .debug_line_str, | |
16511 | .debug_rnglists. | |
16512 | (struct dwop_section_names): Add loclists_dwo. | |
16513 | (dwop_section_names): Add .debug_loclists.dwo. | |
16514 | (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu. | |
16515 | (struct dwarf2_per_cu_data): Add dwarf_version. | |
16516 | (struct dwo_sections): Add loclists. | |
16517 | (struct attr_abbrev): Add implicit_const. | |
16518 | (read_indirect_line_string): New declaration. | |
16519 | (read_unsigned_leb128): Delete declaration. | |
16520 | (rcuh_kind): New definition. | |
16521 | (read_and_check_comp_unit_head): Change parameter | |
16522 | is_debug_types_section to section_kind. | |
16523 | (dwarf2_locate_sections): Handle loclists, line_str and rnglists. | |
16524 | (read_comp_unit_head): Change parameter abfd to section, add parameter | |
16525 | section_kind. Handle DWARF-5. | |
16526 | (error_check_comp_unit_head): Accept also DWARF version 5. | |
16527 | (read_and_check_comp_unit_head): Change parameter | |
16528 | is_debug_types_section to section_kind. | |
16529 | (read_and_check_type_unit_head): Delete function. | |
16530 | (read_abbrev_offset): Handle DWARF-5. | |
16531 | (create_debug_type_hash_table): Add parameter section_kind. Process | |
16532 | only DW_UT_type. Use signature and type_offset_in_tu from struct | |
16533 | comp_unit_head. | |
16534 | (create_debug_types_hash_table): Update create_debug_type_hash_table | |
16535 | caller. | |
16536 | (create_all_type_units): Call create_debug_type_hash_table. | |
16537 | (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change | |
16538 | read_and_check_type_unit_head caller to read_and_check_comp_unit_head | |
16539 | caller. | |
16540 | (skip_one_die): Handle DW_FORM_implicit_const. | |
16541 | (dwarf2_rnglists_process): New function. | |
16542 | (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5. | |
16543 | (abbrev_table_read_table): Handle DW_FORM_implicit_const. | |
16544 | (read_attribute_value): Handle DW_FORM_implicit_const, | |
16545 | DW_FORM_line_strp. | |
16546 | (read_attribute): Handle DW_FORM_implicit_const. | |
16547 | (read_indirect_string_at_offset_from): New function from | |
16548 | read_indirect_string_at_offset. | |
16549 | (read_indirect_string_at_offset): Call | |
16550 | read_indirect_string_at_offset_from. | |
16551 | (read_indirect_line_string_at_offset): New function. | |
16552 | (read_indirect_string): New function comment. | |
16553 | (read_indirect_line_string): New function. | |
16554 | (read_unsigned_leb128): Make it global. | |
16555 | (dwarf2_string_attr): Handle DWARF-5. | |
16556 | (add_include_dir_stub, read_formatted_entries): New functions. | |
16557 | (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section): | |
16558 | Handle DWARF-5. | |
16559 | (per_cu_header_read_in): Update read_comp_unit_head caller. | |
16560 | (dwarf2_version): New function. | |
16561 | * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and | |
16562 | rnglists. | |
16563 | * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections | |
16564 | fields. | |
16565 | ||
22d2f3ab JK |
16566 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
16567 | ||
16568 | * dwarf2read.c (abbrev_table_read_table): Read the data only once. | |
16569 | ||
5f46c5a5 JK |
16570 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
16571 | ||
16572 | * dwarf2read.c (dwarf2_ranges_process): New function from | |
16573 | dwarf2_ranges_read. | |
16574 | (dwarf2_ranges_read, dwarf2_record_block_ranges): Use | |
16575 | dwarf2_ranges_process. | |
16576 | ||
78d4d2c5 JK |
16577 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
16578 | ||
16579 | * dwarf2read.c (create_debug_type_hash_table): New function from | |
16580 | create_debug_types_hash_table. | |
16581 | (create_debug_types_hash_table): Call create_debug_type_hash_table. | |
16582 | (create_all_type_units, open_and_init_dwo_file): Update | |
16583 | create_debug_types_hash_table callers. | |
16584 | ||
1b076f25 SDJ |
16585 | 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com> |
16586 | ||
16587 | PR gdb/16188 | |
16588 | * fork-child.c (trace_start_error): Fix thinko. va_end should | |
16589 | refer to 'ap', not 'args'. | |
16590 | ||
0db8980c SDJ |
16591 | 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com> |
16592 | Pedro Alves <palves@redhat.com> | |
16593 | ||
16594 | PR gdb/16188 | |
16595 | * darwin-nat.c (darwin_ptrace_me): Check if calls to system | |
16596 | calls succeeded. | |
16597 | * fork-child.c (trace_start_error): New function. | |
16598 | (trace_start_error_with_name): Likewise. | |
16599 | * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded. | |
16600 | * inf-ptrace.c (inf_ptrace_me): Likewise. | |
16601 | * inferior.h (trace_start_error): New prototype. | |
16602 | (trace_start_error_with_name): Likewise. | |
16603 | ||
99e8a4f9 SDJ |
16604 | 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com> |
16605 | ||
16606 | PR gdb/21164 | |
16607 | * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not | |
16608 | NULL before using it. | |
16609 | * symmisc.c (maintenance_print_symbols): Likewise. | |
16610 | (maintenance_print_msymbols): Likewise. | |
16611 | ||
4e746bb6 TW |
16612 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> |
16613 | ||
16614 | * NEWS: Add record Python bindings entry. | |
16615 | ||
16616 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
16617 | ||
16618 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o, | |
16619 | py-record-full.o. | |
16620 | (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c. | |
16621 | * python/py-record-btrace.c, python/py-record-btrace.h, | |
16622 | python/py-record-full.c, python/py-record-full.h: New file. | |
16623 | * python/py-record.c: Add include for py-record-btrace.h and | |
16624 | py-record-full.h. | |
16625 | (recpy_method, recpy_format, recpy_goto, recpy_replay_position, | |
16626 | recpy_instruction_history, recpy_function_call_history, recpy_begin, | |
16627 | recpy_end): Use functions from py-record-btrace.c and py-record-full.c. | |
16628 | * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t): | |
16629 | New definition. | |
16630 | (gdbpy_initialize_btrace): New export. | |
16631 | * python/python.c (_initialize_python): Add gdbpy_initialize_btrace. | |
16632 | ||
16633 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
16634 | ||
16635 | * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o. | |
16636 | (SUBDIR_PYTHON_SRCS): Add python/py-record.c. | |
16637 | * python/py-record.c: New file. | |
16638 | * python/python-internal.h (gdbpy_start_recording, | |
16639 | gdbpy_current_recording, gdpy_stop_recording, | |
16640 | gdbpy_initialize_record): New export. | |
16641 | * python/python.c (_initialize_python): Add gdbpy_initialize_record. | |
16642 | (python_GdbMethods): Add gdbpy_start_recording, | |
16643 | gdbpy_current_recording and gdbpy_stop_recording. | |
16644 | ||
16645 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
16646 | ||
16647 | * record-btrace.c (record_btrace_record_method): New function. | |
16648 | (init_record_btrace_ops): Initialize to_record_method. | |
16649 | * record-full.c (record_full_record_method): New function. | |
16650 | (init_record_full_ops, init_record_full_core_ops): Add | |
16651 | record_full_record_method. | |
16652 | * record.h (enum record_method): New enum. | |
16653 | * target-debug.h (target_debug_print_enum_record_method: New define. | |
16654 | * target-delegates.c: Regenerate. | |
16655 | * target.c (target_record_method): New function. | |
16656 | * target.h: Include record.h. | |
16657 | (struct target_ops) <to_record_method>: New field. | |
16658 | (target_record_method): New export. | |
16659 | ||
16660 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
16661 | ||
16662 | * record.h (record_start, record_stop): New export. | |
16663 | * record.c (record_start, record_stop): New function. | |
16664 | ||
16665 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
16666 | ||
16667 | * btrace.c (btrace_fetch): Copy function call segments pointer | |
16668 | into a vector. | |
16669 | (btrace_clear): Clear the vector. | |
16670 | (btrace_find_insn_by_number): Use binary search to find the correct | |
16671 | function call segment. | |
16672 | * btrace.h (brace_fun_p): New typedef. | |
16673 | (struct btrace_thread_info) <functions>: New field. | |
16674 | ||
16675 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
16676 | ||
16677 | * record-btrace.c (btrace_ui_out_decode_error): Move most of it ... | |
16678 | * btrace.c (btrace_decode_error): ... here. New function. | |
16679 | * btrace.h (btrace_decode_error): New export. | |
16680 | ||
16681 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
16682 | ||
16683 | * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function. | |
16684 | (ftrace_new_function, btrace_insn_number, btrace_insn_cmp, | |
16685 | btrace_find_insn_by_number): Remove special case for gaps. | |
16686 | * btrace.h (btrace_insn_get_error): New export. | |
16687 | (btrace_insn_number, btrace_find_insn_by_number): Adjust comment. | |
16688 | * record-btrace.c (btrace_insn_history): Print number for gaps. | |
16689 | (record_btrace_info, record_btrace_goto): Handle gaps. | |
16690 | ||
3f77c769 TT |
16691 | 2017-02-14 Tom Tromey <tom@tromey.com> |
16692 | ||
16693 | PR python/13598: | |
16694 | * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt | |
16695 | event. | |
16696 | * python/py-evts.c (gdbpy_initialize_py_events): Add | |
16697 | before_prompt registry. | |
16698 | * python/py-events.h (events_object) <before_prompt>: New field. | |
16699 | ||
4c2c7ac6 MM |
16700 | 2017-02-14 Markus Metzger <markus.t.metzger@intel.com> |
16701 | ||
16702 | * btrace.c (ftrace_new_switch): Preserve up link and flags. | |
16703 | ||
5cf30ebf LM |
16704 | 2017-02-13 Luis Machado <lgustavo@codesourcery.com> |
16705 | ||
16706 | * symfile (_initialize_symfile): Add usage text to the load command's | |
16707 | help text. | |
16708 | ||
26a06916 SM |
16709 | 2017-02-10 Simon Marchi <simon.marchi@ericsson.com> |
16710 | ||
16711 | * utils.c (defaulted_query): Don't query on secondary UIs. | |
16712 | ||
0b145e37 TT |
16713 | 2017-02-10 Tom Tromey <tom@tromey.com> |
16714 | ||
16715 | * rust-lang.c (rust_get_disr_info): Remove unused variable. | |
16716 | ||
2d8365c4 TT |
16717 | 2017-02-10 Tom Tromey <tom@tromey.com> |
16718 | ||
16719 | * python/py-value.c (valpy_richcompare_throw): Remove unnecessary | |
16720 | "cleanup" local. | |
16721 | * python/py-type.c (typy_legacy_template_argument): Remove | |
16722 | unnecessary "cleanup" local. | |
16723 | ||
2bb8f231 TT |
16724 | 2017-02-10 Tom Tromey <tom@tromey.com> |
16725 | ||
16726 | * python/python.c (do_start_initialization): New function, from | |
16727 | _initialize_python. | |
16728 | (_initialize_python): Call do_start_initialization. | |
16729 | * python/py-linetable.c (ltpy_iternext): Use explicit returns, not | |
16730 | goto. | |
16731 | ||
1bdfaf42 TT |
16732 | 2017-02-10 Tom Tromey <tom@tromey.com> |
16733 | ||
16734 | * python/py-prettyprint.c (pretty_print_one_value): Use | |
16735 | gdbpy_ref. | |
16736 | ||
88b6faea TT |
16737 | 2017-02-10 Tom Tromey <tom@tromey.com> |
16738 | ||
16739 | * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref. | |
16740 | * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use | |
16741 | gdbpy_ref. | |
16742 | * python/py-type.c (field_new): Use gdbpy_ref. | |
16743 | * python/py-symtab.c (symtab_and_line_to_sal_object): Use | |
16744 | gdbpy_ref. | |
16745 | * python/py-progspace.c (pspy_new): Use gdbpy_ref. | |
16746 | (py_free_pspace): Likewise. | |
16747 | (pspace_to_pspace_object): Likewise. | |
16748 | * python/py-objfile.c (objfpy_new): Use gdbpy_ref. | |
16749 | (py_free_objfile): Likewise. | |
16750 | (objfile_to_objfile_object): Likewise. | |
16751 | * python/py-inferior.c (delete_thread_object): Use | |
16752 | gdbpy_ref. | |
16753 | (infpy_read_memory): Likewise. | |
16754 | (py_free_inferior): Likewise. | |
16755 | * python/py-evtregistry.c (create_eventregistry_object): Use | |
16756 | gdbpy_ref. | |
16757 | * python/py-event.c (create_event_object): Use gdbpy_ref. | |
16758 | ||
7780f186 TT |
16759 | 2017-02-10 Tom Tromey <tom@tromey.com> |
16760 | ||
16761 | * python/py-ref.h (gdbpy_ref_policy): Now a template. | |
16762 | (gdbpy_ref): Now a template; allow subclasses of PyObject to be | |
16763 | used. | |
16764 | * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c, | |
16765 | python/py-cmd.c, python/py-continueevent.c, python/py-event.c, | |
16766 | python/py-exitedevent.c, python/py-finishbreakpoint.c, | |
16767 | python/py-framefilter.c, python/py-function.c, | |
16768 | python/py-inferior.c, python/py-infevents.c, | |
16769 | python/py-linetable.c, python/py-newobjfileevent.c, | |
16770 | python/py-param.c, python/py-prettyprint.c, python/py-ref.h, | |
16771 | python/py-signalevent.c, python/py-stopevent.c, | |
16772 | python/py-symbol.c, python/py-threadevent.c, python/py-type.c, | |
16773 | python/py-unwind.c, python/py-utils.c, python/py-value.c, | |
16774 | python/py-varobj.c, python/py-xmethods.c, python/python.c, | |
16775 | varobj.c: Change gdbpy_ref to gdbpy_ref<>. | |
16776 | ||
d4b0bb18 TT |
16777 | 2017-02-10 Tom Tromey <tom@tromey.com> |
16778 | ||
16779 | * ui-out.h (ui_out_emit_type): New class. | |
16780 | (ui_out_emit_tuple, ui_out_emit_list): New typedefs. | |
16781 | * python/py-framefilter.c (py_print_single_arg): Use gdb::optional | |
16782 | and ui_out_emit_tuple. | |
16783 | (enumerate_locals): Likewise. | |
16784 | (py_mi_print_variables, py_print_locals, py_print_args): Use | |
16785 | ui_out_emit_list. | |
16786 | (py_print_frame): Use gdb::optional, ui_out_emit_tuple, | |
16787 | ui_out_emit_list. | |
16788 | * common/gdb_optional.h: New file. | |
16789 | ||
f67f945c MG |
16790 | 2017-02-10 Martin Galvan <martingalvan@sourceware.org> |
16791 | ||
16792 | * MAINTAINERS (Write After Approval): Update my e-mail address. | |
16793 | ||
18da0c51 MG |
16794 | 2017-02-10 Martin Galvan <martingalvan@sourceware.org> |
16795 | ||
16796 | PR gdb/21122 | |
16797 | * breakpoint.c (_initialize_breakpoint): Update the help description | |
16798 | of the 'commands' command to indicate that it takes a list argument. | |
16799 | ||
62c14536 SM |
16800 | 2017-02-09 Simon Marchi <simon.marchi@ericsson.com> |
16801 | ||
16802 | * interps.c (current_interp_set_logging): Remove "return". | |
16803 | ||
ff6fa247 GB |
16804 | 2017-02-09 Gary Benson <gbenson@redhat.com> |
16805 | ||
16806 | * symtab.c (add_symtab_completions): Prevent NULL pointer | |
16807 | dereference. | |
16808 | ||
a474bd8e PA |
16809 | 2017-02-08 Pedro Alves <palves@redhat.com> |
16810 | ||
16811 | * interps.c (interp::interp): Remove reference to quiet_p. | |
16812 | (interp_set): Make static. Remove dead "Switching to" output | |
16813 | code. | |
16814 | (interp_quiet_p, interp_set_quiet): Delete. | |
16815 | (interpreter_exec_cmd): Don't set the interpreter quiet. | |
16816 | * interps.h (interp_quiet_p): Make static. | |
16817 | (class interp) <quiet_p>: Remove field | |
16818 | ||
3d7b173c JG |
16819 | 2017-02-08 Jerome Guitton <guitton@adacore.com> |
16820 | ||
604c4576 JG |
16821 | * cli/cli-decode.c (find_command_name_length): Make it extern. |
16822 | * cli/cli-decode.h (find_command_name_length): Declare. | |
16823 | * cli/cli-script.c (command_name_equals, line_first_arg): | |
16824 | New functions. | |
16825 | (process_next_line): Use cli-decode to parse command names. | |
16826 | (build_command_line): Make args a constant pointer. | |
16827 | ||
16828 | 2017-02-08 Jerome Guitton <guitton@adacore.com> | |
6dbb839a | 16829 | |
3d7b173c JG |
16830 | * cli-decode.c (lookup_cmd_1, lookup_cmd_composition): |
16831 | Remove case-insensitive search. | |
16832 | ||
1291063d JM |
16833 | 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com> |
16834 | ||
16835 | * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator | |
16836 | at the end of the line. Avoids an ARI warning. | |
16837 | ||
20b477a7 LM |
16838 | 2017-02-06 Luis Machado <lgustavo@codesourcery.com> |
16839 | ||
16840 | * NEWS: Mention support for record/replay of Intel 64 rdrand and | |
16841 | rdseed instructions. | |
16842 | i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed. | |
16843 | ||
3f7b46f2 IR |
16844 | 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com> |
16845 | ||
16846 | PR tdep/20936 | |
16847 | Provide and use sparc32 and sparc64 target description XML files. | |
16848 | * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml, | |
16849 | features/sparc/sparc32-fpu.xml: New files for sparc 32-bit. | |
16850 | * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml, | |
16851 | features/sparc/sparc64-fpu.xml: New files for sparc 64-bit. | |
16852 | * features/sparc/sparc32-solaris.xml: New file. | |
16853 | * features/sparc/sparc64-solaris.xml: New file. | |
16854 | * features/sparc/sparc32-solaris.c: Generated. | |
16855 | * features/sparc/sparc64-solaris.c: Generated. | |
16856 | * sparc-tdep.h: Account for differences in target descriptions. | |
16857 | * sparc-tdep.c (sparc32_register_name): Use target provided registers. | |
16858 | (sparc32_register_type): Use target provided registers. | |
16859 | (validate_tdesc_registers): New function. | |
16860 | (sparc32_gdbarch_init): Use tdesc_has_registers. | |
16861 | Set pseudoregister functions. | |
16862 | * sparc64-tdep.c (sparc64_register_name): Use target provided registers. | |
16863 | (sparc64_register_type): Use target provided registers. | |
16864 | (sparc64_init_abi): Set pseudoregister functions. | |
16865 | ||
f0fd41c1 TT |
16866 | 2017-02-03 Tom Tromey <tom@tromey.com> |
16867 | ||
16868 | PR rust/21097: | |
16869 | * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums | |
16870 | with a single member. | |
16871 | ||
d6f9b0fb PA |
16872 | 2017-02-03 Pedro Alves <palves@redhat.com> |
16873 | ||
16874 | * cli/cli-interp.c (cli_interp_base::cli_interp_base) | |
16875 | (cli_interp_base::~cli_interp_base): New. | |
16876 | (cli_interp): New struct. | |
16877 | (as_cli_interp): Cast the interp itself to cli_interp. | |
16878 | (cli_interpreter_pre_command_loop): Rename to ... | |
16879 | (cli_interp_base::pre_command_loop): ... this. Remove 'self' | |
16880 | parameter. | |
16881 | (cli_interpreter_init): Rename to ... | |
16882 | (cli_interp::init): ... this. Remove 'self' parameter. Use | |
16883 | boolean. Make extern. | |
16884 | (cli_interpreter_resume): Rename to ... | |
16885 | (cli_interp::resume): ... this. Remove 'data' parameter. Make | |
16886 | extern. | |
16887 | (cli_interpreter_suspend): Rename to ... | |
16888 | (cli_interp::suspend): ... this. Remove 'data' parameter. Make | |
16889 | extern. | |
16890 | (cli_interpreter_exec): Rename to ... | |
16891 | (cli_interp::exec): ... this. Remove 'data' parameter. Make | |
16892 | extern. | |
16893 | (cli_interpreter_supports_command_editing): Rename to ... | |
16894 | (cli_interp_base::supports_command_editing): ... this. Remove | |
16895 | 'interp' parameter. Make extern. | |
16896 | (cli_ui_out): Rename to ... | |
16897 | (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter. | |
16898 | Make extern. | |
16899 | (cli_set_logging): Rename to ... | |
16900 | (cli_interp_base::set_logging): ... this. Remove 'interp' | |
16901 | parameter. Make extern. | |
16902 | (cli_interp_procs): Delete. | |
16903 | (cli_interp_factory): Adjust to use "new". | |
16904 | * cli/cli-interp.h: Include "interps.h". | |
16905 | (struct cli_interp_base): New struct. | |
16906 | * interps.c (struct interp): Delete. Fields moved to interps.h. | |
16907 | (interp_new): Delete. | |
16908 | (interp::interp, interp::~interp): New. | |
16909 | (interp_set): Use bool, and return void. Assume the interpreter | |
16910 | has suspend, init and resume methods, and that the all return | |
16911 | void. | |
16912 | (set_top_level_interpreter): interp_set returns void. | |
16913 | (interp_ui_out): Adapt. | |
16914 | (current_interp_set_logging): Adapt. | |
16915 | (interp_data): Delete. | |
16916 | (interp_pre_command_loop, interp_supports_command_editing): Adapt. | |
16917 | (interp_exec): Adapt. | |
16918 | (top_level_interpreter_data): Delete. | |
16919 | * interps.h (interp_init_ftype, interp_resume_ftype) | |
16920 | (interp_suspend_ftype, interp_exec_ftype) | |
16921 | (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete. | |
16922 | (class interp): New. | |
16923 | (interp_new): Delete. | |
16924 | (interp_set): Now returns void. Use bool. | |
16925 | (interp_data, top_level_interpreter_data): Delete. | |
16926 | * mi/mi-common.h: Include interps.h. | |
16927 | (class mi_interp): Inherit from interp. Define a ctor. Declare | |
16928 | init, resume, suspect, exec, interp_ui_out, set_logging and | |
16929 | pre_command_loop methods. | |
16930 | * mi/mi-interp.c (as_mi_interp): Cast the interp itself. | |
16931 | (mi_interpreter_init): Rename to ... | |
16932 | (mi_interp::init): ... this. Remove the 'interp' parameter, use | |
16933 | bool, return void and make extern. Adjust. | |
16934 | (mi_interpreter_resume): ... Rename to ... | |
16935 | (mi_interp::resume): ... this. Remove the 'data' parameter, | |
16936 | return void and make extern. Adjust. | |
16937 | (mi_interpreter_suspend): ... Rename to ... | |
16938 | (mi_interp::suspend): ... this. Remove the 'data' parameter, | |
16939 | return void and make extern. Adjust. | |
16940 | (mi_interpreter_exec): ... Rename to ... | |
16941 | (mi_interp::exec): ... this. Remove the 'data' parameter and make | |
16942 | extern. Adjust. | |
16943 | (mi_interpreter_pre_command_loop): ... Rename to ... | |
16944 | (mi_interp::pre_command_loop): ... this. Remove the 'self' | |
16945 | parameter and make extern. | |
16946 | (mi_on_normal_stop_1): Adjust. | |
16947 | (mi_ui_out): Rename to ... | |
16948 | (mi_interp::interp_ui_out): ... this. Remove the 'interp' | |
16949 | parameter and make extern. Adjust. | |
16950 | (mi_set_logging): Rename to ... | |
16951 | (mi_interp::set_logging): ... this. Remove the 'interp' | |
16952 | parameter and make extern. Adjust. | |
16953 | (mi_interp_procs): Delete. | |
16954 | (mi_interp_factory): Adjust to use 'new'. | |
16955 | * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command) | |
16956 | (mi_print_exception, mi_execute_command, mi_load_progress): | |
16957 | Adjust. | |
16958 | * tui/tui-interp.c (tui_interp): New class. | |
16959 | (as_tui_interp): Return a tui_interp pointer. | |
16960 | (tui_on_normal_stop, tui_on_signal_received) | |
16961 | (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited) | |
16962 | (tui_on_no_history, tui_on_user_selected_context_changed): Adjust | |
16963 | to use interp::interp_ui_out. | |
16964 | (tui_init): Rename to ... | |
16965 | (tui_interp::init): ... this. Remove the 'self' parameter, use | |
16966 | bool, return void and make extern. Adjust. | |
16967 | (tui_resume): Rename to ... | |
16968 | (tui_interp::resume): ... this. Remove the 'data' parameter, | |
16969 | return void and make extern. Adjust. | |
16970 | (tui_suspend): Rename to ... | |
16971 | (tui_interp::suspend): ... this. Remove the 'data' parameter, | |
16972 | return void and make extern. Adjust. | |
16973 | (tui_ui_out): Rename to ... | |
16974 | (tui_interp::interp_ui_out): ... this. Remove the 'self' | |
16975 | parameter, and make extern. Adjust. | |
16976 | (tui_exec): Rename to ... | |
16977 | (tui_interp::exec): ... this. Remove the 'data' parameter and | |
16978 | make extern. | |
16979 | (tui_interp_procs): Delete. | |
16980 | (tui_interp_factory): Use "new". | |
16981 | ||
65c40c95 TT |
16982 | 2017-02-02 Tom Tromey <tom@tromey.com> |
16983 | ||
16984 | * rust-exp.y (ends_raw_string, space_then_number) | |
16985 | (rust_identifier_start_p): Return bool. | |
16986 | * rust-lang.c (rust_tuple_type_p, rust_underscore_fields) | |
16987 | (rust_tuple_struct_type_p, rust_tuple_variant_type_p) | |
16988 | (rust_slice_type_p, rust_range_type_p, rust_u8_type_p) | |
16989 | (rust_chartype_p): Return bool. | |
16990 | (val_print_struct, rust_print_struct_def, rust_print_type): | |
16991 | Update. | |
16992 | * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p): | |
16993 | Return bool. | |
16994 | ||
b50f188d TT |
16995 | 2017-02-02 Tom Tromey <tom@tromey.com> |
16996 | ||
16997 | * rust-lang.c: Reindent. | |
16998 | ||
03c85b11 TT |
16999 | 2017-02-02 Tom Tromey <tom@tromey.com> |
17000 | ||
17001 | * rust-lang.h (rust_crate_for_block): Update. | |
17002 | * rust-lang.c (rust_crate_for_block): Return std::string. | |
17003 | (rust_get_disr_info): Use std:;string, not | |
17004 | gdb::unique_xmalloc_ptr. | |
17005 | * rust-exp.y (crate_name): Update. | |
17006 | ||
9b6da501 PA |
17007 | 2017-02-02 Pedro Alves <palves@redhat.com> |
17008 | ||
17009 | * disasm-selftests.c (print_one_insn_test): Move the "verbose" | |
17010 | field out of gdb_disassembler_test and make it static. | |
17011 | ||
ec4cb20b PA |
17012 | 2017-02-02 Pedro Alves <palves@redhat.com> |
17013 | ||
17014 | * mi/mi-common.h (struct mi_interp): Delete the mi2_interp, | |
17015 | mi1_interp and mi_interp fields. | |
17016 | ||
5be5dbf0 PA |
17017 | 2017-02-02 Pedro Alves <palves@redhat.com> |
17018 | ||
616268b6 PA |
17019 | * cli/cli-interp.c (struct saved_output_files, saved_output): |
17020 | Moved from cli/cli-logging.c. | |
17021 | (cli_set_logging): New function. | |
17022 | (cli_interp_procs): Install cli_set_logging. | |
17023 | * cli/cli-interp.h (make_logging_output, cli_set_logging): | |
17024 | Declare. | |
17025 | * cli/cli-logging.c (struct saved_output_files, saved_output): | |
17026 | Moved to cli/cli-interp.c. | |
17027 | (pop_output_files): Don't save outputs here. | |
17028 | (make_logging_output): New function. | |
17029 | (handle_redirections): Don't build tee nor save previous outputs | |
17030 | here. | |
17031 | * interps.c (current_interp_set_logging): Change prototype. | |
17032 | Assume there's always a set_logging_proc method installed. | |
17033 | * interps.h (interp_set_logging_ftype): Change prototype. | |
17034 | (current_interp_set_logging): Change prototype and adjust comment. | |
17035 | * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to | |
17036 | use make_logging_output. | |
17037 | * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging. | |
17038 | 2017-02-02 Pedro Alves <palves@redhat.com> | |
17039 | ||
5be5dbf0 PA |
17040 | * cli/cli-logging.c (maybe_warn_already_logging): New factored out |
17041 | from ... | |
17042 | (set_logging_overwrite): ... here. | |
17043 | (logging_no_redirect_file): Delete. | |
17044 | (set_logging_redirect): Don't handle redirection on the fly. | |
17045 | Instead warn that "logging off" / "logging on" is necessary. | |
17046 | (pop_output_files): Delete references to logging_no_redirect_file. | |
17047 | (show_logging_command): Always speak in terms of what will happen | |
17048 | once logging is reenabled. | |
17049 | ||
c99cc448 PA |
17050 | 2017-02-02 Pedro Alves <palves@redhat.com> |
17051 | ||
17052 | * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment. | |
17053 | ||
8b172ce7 PA |
17054 | 2017-02-02 Pedro Alves <palves@redhat.com> |
17055 | ||
17056 | * disasm.c (gdb_pretty_print_insn): Rename to ... | |
17057 | (gdb_pretty_print_disassembler::pretty_print_insn): ... this. | |
17058 | Remove gdbarch parameter. Adapt to clear the object's buffers | |
17059 | instead of allocating new buffers, and to print using the object's | |
17060 | gdb_disassembler instead of calling gdb_print_insn. | |
17061 | (dump_insns): Use gdb_pretty_print_disassembler. | |
17062 | * disasm.h (gdb_pretty_print_insn): Delete declaration. | |
17063 | (gdb_pretty_print_disassembler): New class. | |
17064 | * record-btrace.c (btrace_insn_history): Use | |
17065 | gdb_pretty_print_disassembler. | |
17066 | ||
d7e74731 PA |
17067 | 2017-02-02 Pedro Alves <palves@redhat.com> |
17068 | ||
17069 | * ada-lang.c (type_as_string): Use string_file. | |
17070 | * ada-valprint.c (ada_print_floating): Use string_file. | |
17071 | * ada-varobj.c (ada_varobj_scalar_image) | |
17072 | (ada_varobj_get_value_image): Use string_file. | |
17073 | * aix-thread.c (aix_thread_extra_thread_info): Use string_file. | |
17074 | * arm-tdep.c (_initialize_arm_tdep): Use string_printf. | |
17075 | * breakpoint.c (update_inserted_breakpoint_locations) | |
17076 | (insert_breakpoint_locations, reattach_breakpoints) | |
17077 | (print_breakpoint_location, print_one_detail_ranged_breakpoint) | |
17078 | (print_it_watchpoint): Use string_file. | |
17079 | (save_breakpoints): Use stdio_file. | |
17080 | * c-exp.y (oper): Use string_file. | |
17081 | * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and | |
17082 | tee_file. | |
17083 | (pop_output_files): Use delete. | |
17084 | (handle_redirections): Use stdio_file and tee_file. | |
17085 | * cli/cli-setshow.c (do_show_command): Use string_file. | |
17086 | * compile/compile-c-support.c (c_compute_program): Use | |
17087 | string_file. | |
17088 | * compile/compile-c-symbols.c (generate_vla_size): Take a | |
17089 | 'string_file &' instead of a 'ui_file *'. | |
17090 | (generate_c_for_for_one_variable): Take a 'string_file &' instead | |
17091 | of a 'ui_file *'. Use string_file. | |
17092 | (generate_c_for_variable_locations): Take a 'string_file &' | |
17093 | instead of a 'ui_file *'. | |
17094 | * compile/compile-internal.h (generate_c_for_for_one_variable): | |
17095 | Take a 'string_file &' instead of a 'ui_file *'. | |
17096 | * compile/compile-loc2c.c (push, pushf, unary, binary) | |
17097 | (print_label, pushf_register_address, pushf_register) | |
17098 | (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a | |
17099 | 'ui_file *'. Adjust. | |
17100 | * compile/compile.c (compile_to_object): Use string_file. | |
17101 | * compile/compile.h (compile_dwarf_expr_to_c) | |
17102 | (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a | |
17103 | 'ui_file *'. | |
17104 | * cp-support.c (inspect_type): Use string_file and obstack_copy0. | |
17105 | (replace_typedefs_qualified_name): Use string_file and | |
17106 | obstack_copy0. | |
17107 | * disasm.c (gdb_pretty_print_insn): Use string_file. | |
17108 | (gdb_disassembly): Adjust reference the null_stream global. | |
17109 | (do_ui_file_delete): Delete. | |
17110 | (gdb_insn_length): Use null_stream. | |
17111 | * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file. | |
17112 | * dwarf2loc.c (dwarf2_compile_property_to_c) | |
17113 | (locexpr_generate_c_location, loclist_generate_c_location): Take a | |
17114 | 'string_file &' instead of a 'ui_file *'. | |
17115 | * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise. | |
17116 | * dwarf2read.c (do_ui_file_peek_last): Delete. | |
17117 | (dwarf2_compute_name): Use string_file. | |
17118 | * event-top.c (gdb_setup_readline): Use stdio_file. | |
17119 | * gdbarch.sh (verify_gdbarch): Use string_file. | |
17120 | * gdbtypes.c (safe_parse_type): Use null_stream. | |
17121 | * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use | |
17122 | string_file. | |
17123 | * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a | |
17124 | 'string_file *' instead of a 'ui_file *'. | |
17125 | (gdbscm_arch_disassemble): Use string_file. | |
17126 | * guile/scm-frame.c (frscm_print_frame_smob): Use string_file. | |
17127 | * guile/scm-ports.c (class ioscm_file_port): Now a class that | |
17128 | inherits from ui_file. | |
17129 | (ioscm_file_port_delete, ioscm_file_port_rewind) | |
17130 | (ioscm_file_port_put): Delete. | |
17131 | (ioscm_file_port_write): Rename to ... | |
17132 | (ioscm_file_port::write): ... this. Remove file_port_magic | |
17133 | checks. | |
17134 | (ioscm_file_port_new): Delete. | |
17135 | (ioscm_with_output_to_port_worker): Use ioscm_file_port and | |
17136 | ui_file_up. | |
17137 | * guile/scm-type.c (tyscm_type_name): Use string_file. | |
17138 | * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print): | |
17139 | Use string_file. | |
17140 | * infcmd.c (print_return_value_1): Use string_file. | |
17141 | * infrun.c (print_target_wait_results): Use string_file. | |
17142 | * language.c (add_language): Use string_file. | |
17143 | * location.c (explicit_to_string_internal): Use string_file. | |
17144 | * main.c (captured_main_1): Use null_file. | |
17145 | * maint.c (maintenance_print_architecture): Use stdio_file. | |
17146 | * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file. | |
17147 | * mi/mi-common.h (struct mi_interp) <out, err, log, targ, | |
17148 | event_channel>: Change type to mi_console_file pointer. | |
17149 | * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush) | |
17150 | (mi_console_file_delete): Delete. | |
17151 | (struct mi_console_file): Delete. | |
17152 | (mi_console_file_magic): Delete. | |
17153 | (mi_console_file_new): Delete. | |
17154 | (mi_console_file::mi_console_file): New. | |
17155 | (mi_console_file_delete): Delete. | |
17156 | (mi_console_file_fputs): Delete. | |
17157 | (mi_console_file::write): New. | |
17158 | (mi_console_raw_packet): Delete. | |
17159 | (mi_console_file::flush): New. | |
17160 | (mi_console_file_flush): Delete. | |
17161 | (mi_console_set_raw): Rename to ... | |
17162 | (mi_console_file::set_raw): ... this. | |
17163 | * mi/mi-console.h (class mi_console_file): New class. | |
17164 | (mi_console_file_new, mi_console_set_raw): Delete. | |
17165 | * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file. | |
17166 | (mi_set_logging): Use delete and tee_file. Adjust. | |
17167 | * mi/mi-main.c (output_register): Use string_file. | |
17168 | (mi_cmd_data_evaluate_expression): Use string_file. | |
17169 | (mi_cmd_data_read_memory): Use string_file. | |
17170 | (mi_cmd_execute, print_variable_or_computed): Use string_file. | |
17171 | * mi/mi-out.c (mi_ui_out::main_stream): New. | |
17172 | (mi_ui_out::rewind): Use main_stream and | |
17173 | string_file. | |
17174 | (mi_ui_out::put): Use main_stream and string_file. | |
17175 | (mi_ui_out::mi_ui_out): Remove 'stream' parameter. | |
17176 | Allocate a 'string_file' instead. | |
17177 | (mi_out_new): Don't allocate a mem_fileopen stream here. | |
17178 | * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter. | |
17179 | (mi_ui_out::main_stream): Declare method. | |
17180 | * printcmd.c (eval_command): Use string_file. | |
17181 | * psymtab.c (maintenance_print_psymbols): Use stdio_file. | |
17182 | * python/py-arch.c (archpy_disassemble): Use string_file. | |
17183 | * python/py-breakpoint.c (bppy_get_commands): Use string_file. | |
17184 | * python/py-frame.c (frapy_str): Use string_file. | |
17185 | * python/py-framefilter.c (py_print_type, py_print_single_arg): | |
17186 | Use string_file. | |
17187 | * python/py-type.c (typy_str): Use string_file. | |
17188 | * python/py-unwind.c (unwind_infopy_str): Use string_file. | |
17189 | * python/py-value.c (valpy_str): Use string_file. | |
17190 | * record-btrace.c (btrace_insn_history): Use string_file. | |
17191 | * regcache.c (regcache_print): Use stdio_file. | |
17192 | * reggroups.c (maintenance_print_reggroups): Use stdio_file. | |
17193 | * remote.c (escape_buffer): Use string_file. | |
17194 | * rust-lang.c (rust_get_disr_info): Use string_file. | |
17195 | * serial.c (serial_open_ops_1): Use stdio_file. | |
17196 | (do_serial_close): Use delete. | |
17197 | * stack.c (print_frame_arg): Use string_file. | |
17198 | (print_frame_args): Remove local mem_fileopen stream, not used. | |
17199 | (print_frame): Use string_file. | |
17200 | * symmisc.c (maintenance_print_symbols): Use stdio_file. | |
17201 | * symtab.h (struct symbol_computed_ops) <generate_c_location>: | |
17202 | Take a 'string_file *' instead of a 'ui_file *'. | |
17203 | * top.c (new_ui): Use stdio_file and stderr_file. | |
17204 | (free_ui): Use delete. | |
17205 | (execute_command_to_string): Use string_file. | |
17206 | (quit_confirm): Use string_file. | |
17207 | * tracepoint.c (collection_list::append_exp): Use string_file. | |
17208 | * tui/tui-disasm.c (tui_disassemble): Use string_file. | |
17209 | * tui/tui-file.c: Don't include "ui-file.h". | |
17210 | (enum streamtype, struct tui_stream): Delete. | |
17211 | (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen) | |
17212 | (tui_file_isatty, tui_file_rewind, tui_file_put): Delete. | |
17213 | (tui_file::tui_file): New method. | |
17214 | (tui_file_fputs): Delete. | |
17215 | (tui_file_get_strbuf): Delete. | |
17216 | (tui_file::puts): New method. | |
17217 | (tui_file_adjust_strbuf): Delete. | |
17218 | (tui_file_flush): Delete. | |
17219 | (tui_file::flush): New method. | |
17220 | * tui/tui-file.h: Tweak intro comment. | |
17221 | Include ui-file.h. | |
17222 | (tui_fileopen, tui_sfileopen, tui_file_get_strbuf) | |
17223 | (tui_file_adjust_strbuf): Delete declarations. | |
17224 | (class tui_file): New class. | |
17225 | * tui/tui-io.c (tui_initialize_io): Use tui_file. | |
17226 | * tui/tui-regs.c (tui_restore_gdbout): Use delete. | |
17227 | (tui_register_format): Use string_stream. | |
17228 | * tui/tui-stack.c (tui_make_status_line): Use string_file. | |
17229 | (tui_get_function_from_frame): Use string_file. | |
17230 | * typeprint.c (type_to_string): Use string_file. | |
17231 | * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete. | |
17232 | (null_stream): New global. | |
17233 | (ui_file_delete): Delete. | |
17234 | (ui_file::ui_file): New. | |
17235 | (null_file_isatty): Delete. | |
17236 | (ui_file::~ui_file): New. | |
17237 | (null_file_rewind): Delete. | |
17238 | (ui_file::printf): New. | |
17239 | (null_file_put): Delete. | |
17240 | (null_file_flush): Delete. | |
17241 | (ui_file::putstr): New. | |
17242 | (null_file_write): Delete. | |
17243 | (ui_file::putstrn): New. | |
17244 | (null_file_read): Delete. | |
17245 | (ui_file::putc): New. | |
17246 | (null_file_fputs): Delete. | |
17247 | (null_file_write_async_safe): Delete. | |
17248 | (ui_file::vprintf): New. | |
17249 | (null_file_delete): Delete. | |
17250 | (null_file::write): New. | |
17251 | (null_file_fseek): Delete. | |
17252 | (null_file::puts): New. | |
17253 | (ui_file_data): Delete. | |
17254 | (null_file::write_async_safe): New. | |
17255 | (gdb_flush, ui_file_isatty): Adjust. | |
17256 | (ui_file_put, ui_file_rewind): Delete. | |
17257 | (ui_file_write): Adjust. | |
17258 | (ui_file_write_for_put): Delete. | |
17259 | (ui_file_write_async_safe, ui_file_read): Adjust. | |
17260 | (ui_file_fseek): Delete. | |
17261 | (fputs_unfiltered): Adjust. | |
17262 | (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind) | |
17263 | (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe) | |
17264 | (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek) | |
17265 | (set_ui_file_data): Delete. | |
17266 | (string_file::~string_file, string_file::write) | |
17267 | (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup) | |
17268 | (do_ui_file_as_string, ui_file_as_string): Delete. | |
17269 | (do_ui_file_obsavestring, ui_file_obsavestring): Delete. | |
17270 | (struct mem_file): Delete. | |
17271 | (mem_file_new): Delete. | |
17272 | (stdio_file::stdio_file): New. | |
17273 | (mem_file_delete): Delete. | |
17274 | (stdio_file::stdio_file): New. | |
17275 | (mem_fileopen): Delete. | |
17276 | (stdio_file::~stdio_file): New. | |
17277 | (mem_file_rewind): Delete. | |
17278 | (stdio_file::set_stream): New. | |
17279 | (mem_file_put): Delete. | |
17280 | (stdio_file::open): New. | |
17281 | (mem_file_write): Delete. | |
17282 | (stdio_file_magic, struct stdio_file): Delete. | |
17283 | (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete. | |
17284 | (stdio_file::flush): New. | |
17285 | (stdio_file_read): Rename to ... | |
17286 | (stdio_file::read): ... this. Adjust. | |
17287 | (stdio_file_write): Rename to ... | |
17288 | (stdio_file::write): ... this. Adjust. | |
17289 | (stdio_file_write_async_safe): Rename to ... | |
17290 | (stdio_file::write_async_safe) ... this. Adjust. | |
17291 | (stdio_file_fputs): Rename to ... | |
17292 | (stdio_file::puts) ... this. Adjust. | |
17293 | (stdio_file_isatty): Delete. | |
17294 | (stdio_file_fseek): Delete. | |
17295 | (stdio_file::isatty): New. | |
17296 | (stderr_file_write): Rename to ... | |
17297 | (stderr_file::write) ... this. Adjust. | |
17298 | (stderr_file_fputs): Rename to ... | |
17299 | (stderr_file::puts) ... this. Adjust. | |
17300 | (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete. | |
17301 | (stderr_file::stderr_file): New. | |
17302 | (tee_file_magic): Delete. | |
17303 | (struct tee_file): Delete. | |
17304 | (tee_file::tee_file): New. | |
17305 | (tee_file_new): Delete. | |
17306 | (tee_file::~tee_file): New. | |
17307 | (tee_file_delete): Delete. | |
17308 | (tee_file_flush): Rename to ... | |
17309 | (tee_file::flush): ... this. Adjust. | |
17310 | (tee_file_write): Rename to ... | |
17311 | (tee_file::write): ... this. Adjust. | |
17312 | (tee_file::write_async_safe): New. | |
17313 | (tee_file_fputs): Rename to ... | |
17314 | (tee_file::puts): ... this. Adjust. | |
17315 | (tee_file_isatty): Rename to ... | |
17316 | (tee_file::isatty): ... this. Adjust. | |
17317 | * ui-file.h (struct obstack, struct ui_file): Don't | |
17318 | forward-declare. | |
17319 | (ui_file_new, ui_file_flush_ftype, set_ui_file_flush) | |
17320 | (ui_file_write_ftype) | |
17321 | (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs) | |
17322 | (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe) | |
17323 | (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype) | |
17324 | (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind) | |
17325 | (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put) | |
17326 | (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype) | |
17327 | (set_ui_file_fseek): Delete. | |
17328 | (ui_file_data, ui_file_delete, ui_file_rewind) | |
17329 | (struct ui_file): New. | |
17330 | (ui_file_up): New. | |
17331 | (class null_file): New. | |
17332 | (null_stream): Declare. | |
17333 | (ui_file_write_for_put, ui_file_put): Delete. | |
17334 | (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring): | |
17335 | Delete. | |
17336 | (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen) | |
17337 | (gdb_fopen, tee_file_new): Delete. | |
17338 | (struct string_file): New. | |
17339 | (struct stdio_file): New. | |
17340 | (stdio_file_up): New. | |
17341 | (struct stderr_file): New. | |
17342 | (class tee_file): New. | |
17343 | * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead | |
17344 | of a 'ui_file *'. Adjust. | |
17345 | * ui-out.h (class ui_out) <field_stream>: Likewise. | |
17346 | * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete) | |
17347 | (null_stream): Delete. | |
17348 | (error_stream): Take a 'string_file &' instead of a 'ui_file *'. | |
17349 | Adjust. | |
17350 | * utils.h (struct ui_file): Delete forward declaration.. | |
17351 | (make_cleanup_ui_file_delete, null_stream): Delete declarations. | |
17352 | (error_stream): Take a 'string_file &' instead of a | |
17353 | 'ui_file *'. | |
17354 | * varobj.c (varobj_value_get_print_value): Use string_file. | |
17355 | * xtensa-tdep.c (xtensa_verify_config): Use string_file. | |
17356 | * gdbarch.c: Regenerate. | |
17357 | ||
187808b0 PA |
17358 | 2017-02-02 Pedro Alves <palves@redhat.com> |
17359 | ||
17360 | * disasm.c (gdb_disassembler::pretty_print_insn): Rename to... | |
17361 | (gdb_pretty_print_insn): ... this. Now a free function. Add back | |
17362 | a 'gdbarch' parameter. Allocate a mem_fileopen stream here. | |
17363 | Adjust to call gdb_print_insn instead of | |
17364 | gdb_disassembler::print_insn. | |
17365 | (dump_insns, do_mixed_source_and_assembly_deprecated) | |
17366 | (do_mixed_source_and_assembly, do_assembly_only): Add back a | |
17367 | 'gdbarch' parameter. Remove gdb_disassembler parameter. | |
17368 | (gdb_disassembly): Don't allocate a gdb_disassembler here. | |
17369 | * disasm.h (gdb_disassembler::pretty_print_insn): Delete | |
17370 | declaration. | |
17371 | (gdb_pretty_print_insn): Re-add declaration. | |
17372 | * record-btrace.c (btrace_insn_history): Don't allocate a | |
17373 | gdb_disassembler here. Adjust to call gdb_pretty_print_insn. | |
17374 | ||
7a8eb317 SM |
17375 | 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca> |
17376 | ||
17377 | * disasm.h (gdb_disassembly): Remove file_string parameter. | |
17378 | * disasm.c (gdb_disassembly): Likewise. | |
17379 | * cli/cli-cmds.c (print_disassembly): Adapt. | |
17380 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise. | |
17381 | * stack.c (do_gdb_disassembly): Likewise. | |
17382 | ||
7346ef59 AA |
17383 | 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com> |
17384 | ||
17385 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For | |
17386 | DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian | |
17387 | targets. And if the implicit value is longer than needed, extract | |
17388 | the first bytes instead of the "least significant" ones. | |
17389 | ||
cd4007e4 MM |
17390 | 2017-02-01 Markus Metzger <markus.t.metzger@intel.com> |
17391 | ||
17392 | * btrace.c (btrace_enable): Do not call btrace_add_pc for | |
17393 | BTRACE_FORMAT_PT or if can_access_registers_ptid returns false. | |
17394 | (btrace_fetch): Assert can_access_registers_ptid. | |
17395 | * record-btrace.c (require_btrace_thread, record_btrace_info): Call | |
17396 | validate_registers_access. | |
17397 | ||
cf77c34e MM |
17398 | 2017-02-01 Markus Metzger <markus.t.metzger@intel.com> |
17399 | ||
17400 | * gdbthread.h (can_access_registers_ptid): New. | |
17401 | * thread.c (can_access_registers_ptid): New. | |
17402 | ||
be85ce7d PA |
17403 | 2017-02-01 Pedro Alves <palves@redhat.com> |
17404 | ||
17405 | * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length. | |
17406 | ||
29b0b251 PA |
17407 | 2017-01-31 Pedro Alves <palves@redhat.com> |
17408 | ||
17409 | * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified): | |
17410 | Fix typos. | |
17411 | ||
289b5b24 PA |
17412 | 2017-01-31 Pedro Alves <palves@redhat.com> |
17413 | ||
17414 | * stack.c (print_frame_args): Remove local mem_fileopen stream, | |
17415 | not used. | |
17416 | ||
b47413b4 PA |
17417 | 2017-01-31 Pedro Alves <palves@redhat.com> |
17418 | ||
17419 | * varobj.c (varobj_value_get_print_value): Remove xstrdup call. | |
17420 | ||
60adb36c PA |
17421 | 2017-01-31 Pedro Alves <palves@redhat.com> |
17422 | ||
17423 | * common/scoped_restore.h | |
17424 | (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and | |
17425 | change the value's parameter type to T2. | |
17426 | (make_scoped_restore): Likewise. | |
17427 | ||
2735833d WT |
17428 | 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com> |
17429 | Richard Henderson <rth@redhat.com> | |
17430 | ||
17431 | * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define. | |
17432 | (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE | |
17433 | GS_BASE for older kernels. | |
17434 | (amd64_linux_store_inferior_registers): Add case to store FS_BASE | |
17435 | GS_BASE for older kernels. | |
17436 | * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE | |
17437 | and GS_BASE to the offset table. | |
17438 | (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the | |
17439 | system register group. | |
17440 | * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case | |
17441 | for older kernels. | |
17442 | * amd64-tdep.c (amd64_init_abi): Add segment registers for the | |
17443 | amd64 ABI. | |
17444 | * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and | |
17445 | AMD64_GSBASE_REGNUM. | |
17446 | (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1. | |
17447 | * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat) | |
17448 | (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat) | |
17449 | (x32-avx-linux.dat, x32-avx512-linux.dat): Add | |
17450 | i386/64bit-segments.xml in those rules. | |
17451 | * features/i386/64bit-segments.xml: New file. | |
17452 | * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml. | |
17453 | * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml. | |
17454 | * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml. | |
17455 | * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml. | |
17456 | * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml. | |
17457 | * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml. | |
17458 | * features/i386/amd64-linux.xml: Add 64bit-segments.xml. | |
17459 | * features/i386/amd64-avx-linux.c: Regenerated. | |
17460 | * features/i386/amd64-avx-mpx-linux.c: Regenerated. | |
17461 | * features/i386/amd64-avx-mpx.c: Regenerated. | |
17462 | * features/i386/amd64-avx512-linux.c: Regenerated. | |
17463 | * features/i386/amd64-linux.c: Regenerated. | |
17464 | * features/i386/amd64-mpx-linux.c: Regenerated. | |
17465 | * features/i386/i386-avx-mpx-linux.c: Regenerated. | |
17466 | * features/i386/i386-avx-mpx.c: Regenerated. | |
17467 | * features/i386/x32-avx-linux.c: Regenerated. | |
17468 | * features/i386/x32-avx512-linux.c: Regenerated. | |
17469 | * regformats/i386/amd64-avx-linux.dat: Regenerated. | |
17470 | * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated. | |
17471 | * regformats/i386/amd64-avx512-linux.dat: Regenerated. | |
17472 | * regformats/i386/amd64-linux.dat: Regenerated. | |
17473 | * regformats/i386/amd64-mpx-linux.dat: Regenerated. | |
17474 | * regformats/i386/x32-avx-linux.dat: Regenerated. | |
17475 | * regformats/i386/x32-avx512-linux.dat: Regenerated. | |
17476 | * regformats/i386/x32-linux.dat: Regenerated. | |
17477 | ||
8884e97e WT |
17478 | 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com> |
17479 | ||
17480 | * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): | |
17481 | Set to AMD64_NUM_REGS. | |
17482 | ||
7005d26a WT |
17483 | 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com> |
17484 | ||
17485 | * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic | |
17486 | that checks validity of a register number. | |
17487 | ||
4bd2e1b2 KC |
17488 | 2017-01-27 Kees Cook <keescook@google.com> |
17489 | ||
17490 | * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call | |
17491 | fetch_fpregs if target has fpa registers. | |
17492 | (arm_linux_store_inferior_registers): Call store_fpregs if target | |
17493 | has fpa registers. | |
17494 | ||
7cf1de6c AA |
17495 | 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com> |
17496 | ||
17497 | * cris-tdep.c (cris_gdbarch_init): Remove check for | |
17498 | info.byte_order and force it to BFD_ENDIAN_LITTLE. | |
17499 | ||
874a1c8c AT |
17500 | 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com> |
17501 | ||
17502 | * corelow.c (get_core_register_section): Check for regset | |
17503 | existence before checking for REGSET_VARIABLE_SIZE. | |
17504 | ||
d8b49cf0 YQ |
17505 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
17506 | Pedro Alves <palves@redhat.com> | |
17507 | ||
17508 | PR gdb/20939 | |
17509 | * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't | |
17510 | call memory_error, save memaddr instead. | |
17511 | (gdb_disassembler::print_insn): If gdbarch_print_insn returns | |
17512 | negative, cal memory_error. | |
17513 | * disasm.h (gdb_disassembler) <m_err_memaddr>: New field. | |
17514 | ||
658ca58c YQ |
17515 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
17516 | ||
17517 | * disasm-selftests.c (memory_error_test): New function. | |
17518 | (_initialize_disasm_selftests): Register memory_error_test. | |
17519 | ||
79843d45 YQ |
17520 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
17521 | ||
17522 | * Makefile.in (SFILES): Add disasm-selftests.c and | |
17523 | selftest-arch.c. | |
17524 | (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o. | |
17525 | * disasm-selftests.c: New file. | |
17526 | * selftest-arch.c: New file. | |
17527 | * selftest-arch.h: New file. | |
17528 | ||
8cafda32 YQ |
17529 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
17530 | ||
17531 | * mep-tdep.c (mep_gdb_print_insn): Set info->arch | |
17532 | to bfd_arch_mep. Don't return 0 if section is not | |
17533 | found. Call print_insn_mep. | |
17534 | ||
e47ad6c0 YQ |
17535 | 2017-01-26 Pedro Alves <palves@redhat.com> |
17536 | Yao Qi <yao.qi@linaro.org> | |
17537 | ||
17538 | * arm-tdep.c: Include "disasm.h". | |
17539 | (gdb_print_insn_arm): Update code to get gdbarch. | |
17540 | * disasm.c (dis_asm_read_memory): Change it to | |
17541 | gdb_disassembler::dis_asm_read_memory. | |
17542 | (dis_asm_memory_error): Likewise. | |
17543 | (dis_asm_print_address): Likewise. | |
17544 | (gdb_pretty_print_insn): Change it to | |
17545 | gdb_disassembler::pretty_print_insn. | |
17546 | (dump_insns): Add one argument gdb_disassemlber. All | |
17547 | callers updated. | |
17548 | (do_mixed_source_and_assembly_deprecated): Likewise. | |
17549 | (do_mixed_source_and_assembly): Likewise. | |
17550 | (do_assembly_only): Likewise. | |
17551 | (gdb_disassembler::gdb_disassembler): New. | |
17552 | (gdb_disassembler::print_insn): New. | |
17553 | * disasm.h (class gdb_disassembler): New. | |
17554 | (gdb_pretty_print_insn): Remove declaration. | |
17555 | (gdb_disassemble_info): Likewise. | |
17556 | * guile/scm-disasm.c (class gdbscm_disassembler): New. | |
17557 | (gdbscm_disasm_read_memory_worker): Update. | |
17558 | (gdbscm_disasm_read_memory): Update. | |
17559 | (gdbscm_disasm_memory_error): Remove. | |
17560 | (gdbscm_disasm_print_address): Remove. | |
17561 | (gdbscm_disassembler::gdbscm_disassembler): New. | |
17562 | (gdbscm_print_insn_from_port): Update. | |
17563 | * mips-tdep.c: Include disasm.h. | |
17564 | (gdb_print_insn_mips): Update code to get gdbarch. | |
17565 | * record-btrace.c (btrace_insn_history): Update. | |
17566 | * spu-tdep.c: Include disasm.h. | |
17567 | (struct spu_dis_asm_data): Remove. | |
17568 | (struct spu_dis_asm_info): New. | |
17569 | (spu_dis_asm_print_address): Use spu_dis_asm_info to get | |
17570 | SPU id. | |
17571 | (gdb_print_insn_spu): Cast disassemble_info to | |
17572 | spu_dis_asm_info. | |
17573 | ||
80d75874 YQ |
17574 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
17575 | ||
17576 | * disasm.c (do_ui_file_delete): Delete. | |
17577 | (gdb_insn_length): Move code creating stream to ... | |
17578 | * utils.c (null_stream): ... here. New function. | |
17579 | * utils.h (null_stream): Declare. | |
17580 | ||
60685cd0 SM |
17581 | 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca> |
17582 | ||
17583 | * python/py-inferior.c (find_thread_object): Return directly | |
17584 | from the loop. Remove "found" variable. | |
17585 | ||
eb1cdb62 JB |
17586 | 2017-01-21 Joel Brobecker <brobecker@adacore.com> |
17587 | ||
17588 | GDB 7.12.1 released. | |
17589 | ||
b1ce6568 SM |
17590 | 2017-01-20 Simon Marchi <simon.marchi@ericsson.com> |
17591 | ||
17592 | * python/py-function.c (fnpy_call): Reorder declarations to have | |
17593 | the gdbpy_enter object declared first. | |
17594 | * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise. | |
17595 | ||
6f8b0407 SM |
17596 | 2017-01-20 Simon Marchi <simon.marchi@ericsson.com> |
17597 | ||
fec93fb1 | 17598 | PR python/21068 |
6f8b0407 SM |
17599 | * python/python-internal.h (PyMem_RawMalloc): Define for |
17600 | Python < 3.4. | |
17601 | * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use | |
17602 | PyMem_RawMalloc instead of PyMem_Malloc. | |
17603 | ||
78cbbba8 LM |
17604 | 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com> |
17605 | Luis Machado <lgustavo@codesourcery.com> | |
17606 | ||
17607 | * NEWS (New commands): Mention flash-erase. | |
17608 | (New MI commands): Mention target-flash-erase. | |
17609 | * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI | |
17610 | command. | |
17611 | * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration. | |
17612 | * mi/mi-main.c (mi_cmd_target_flash_erase): New function. | |
17613 | * target.c (flash_erase_command): New function. | |
17614 | (initialize_targets): Add new flash-erase command. | |
17615 | * target.h (flash_erase_command): New declaration. | |
17616 | ||
2132fe85 JB |
17617 | 2017-01-20 Joel Brobecker <brobecker@adacore.com> |
17618 | ||
17619 | * nat/linux-ptrace.c: Only include <sys/procfs.h> if | |
17620 | HAVE_SYS_PROCFS_H is defined. | |
17621 | ||
d1dff226 AH |
17622 | 2017-01-18 Alan Hayward <alan.hayward@arm.com> |
17623 | ||
17624 | * remote.c (struct cached_reg): Change data into a pointer. | |
17625 | * (stop_reply_dtr): Free data pointers before deleting vector. | |
17626 | (process_stop_reply): Likewise. | |
17627 | (remote_parse_stop_reply): Allocate space for data | |
17628 | ||
9890e433 AH |
17629 | 2017-01-18 Alan Hayward <alan.hayward@arm.com> |
17630 | ||
17631 | * amd64-tdep.c (amd64_pseudo_register_read_value): remove | |
17632 | MAX_REGISTER_SIZE. | |
17633 | (amd64_pseudo_register_read_value): Likewise. | |
17634 | * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE. | |
17635 | (store_register_using_P): Likewise. | |
17636 | * regcache.c (regcache_xfer_part): Likewise. | |
17637 | ||
7a36499a IR |
17638 | 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com> |
17639 | ||
17640 | Split real and pseudo registers. | |
17641 | * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro. | |
17642 | (sparc32_pseudo_regnum): New enum. | |
17643 | * sparc64-tdep.h (sparc64_pseudo_regnum): New enum. | |
17644 | * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro. | |
17645 | (SPARC32_CP0_REGISTERS): New macro. | |
17646 | (sparc32_pseudo_register_name): New function. | |
17647 | (sparc32_register_name): Use sparc32_pseudo_register_name. | |
17648 | (sparc32_pseudo_register_type): New function. | |
17649 | (sparc32_register_type): Use sparc32_pseudo_register_type. | |
17650 | (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle | |
17651 | pseudo register numbers. | |
17652 | * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro. | |
17653 | (SPARC64_CP0_REGISTERS): New macro. | |
17654 | (sparc64_pseudo_register_name): New function. | |
17655 | (sparc64_register_name): Use sparc64_pseudo_register_name. | |
17656 | (sparc64_pseudo_register_type): New function. | |
17657 | (sparc64_register_type): Use sparc64_pseudo_register_type. | |
17658 | (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle | |
17659 | pseudo register numbers. | |
17660 | (sparc64_store_floating_fields, sparc64_extract_floating_fields, | |
17661 | sparc64_store_arguments): Handle pseudo register numbers. | |
17662 | ||
6f8976bf YQ |
17663 | 2017-01-13 Yao Qi <yao.qi@linaro.org> |
17664 | ||
17665 | * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro. | |
17666 | (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug | |
17667 | output. | |
17668 | (getpkt_or_notif_sane_1): Likewise. | |
17669 | ||
e4241ace YQ |
17670 | 2017-01-13 Yao Qi <yao.qi@linaro.org> |
17671 | ||
17672 | * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead | |
17673 | of CC. Pass "-x c++-header" instead of "-x c". | |
17674 | ||
3015c064 SM |
17675 | 2017-01-12 Simon Marchi <simon.marchi@ericsson.com> |
17676 | ||
17677 | * remote.c (remote_can_async_p): Update comment. | |
17678 | ||
fde1b17d SM |
17679 | 2017-01-12 Simon Marchi <simon.marchi@ericsson.com> |
17680 | ||
17681 | * linux-nat.c (linux_nat_can_async_p): Update comment. | |
17682 | ||
ca1ca08b SM |
17683 | 2017-01-12 Simon Marchi <simon.marchi@ericsson.com> |
17684 | ||
17685 | * serial.c (serial_open): Forget about "pc" and "lpt" serial interface. | |
17686 | ||
4ad2da73 SM |
17687 | 2017-01-11 Simon Marchi <simon.marchi@ericsson.com> |
17688 | ||
17689 | * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment. | |
17690 | ||
c8b23b3f TT |
17691 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17692 | ||
17693 | * python/py-type.c (typy_legacy_template_argument): Update. | |
17694 | * cp-support.h (struct demangle_parse_info) (demangle_parse_info, | |
17695 | ~demangle_parse_info): Declare new members. | |
17696 | (cp_demangled_name_to_comp): Return unique_ptr. | |
17697 | (cp_demangled_name_parse_free) | |
17698 | (make_cleanup_cp_demangled_name_parse_free) | |
17699 | (cp_new_demangle_parse_info): Remove. | |
17700 | * cp-support.c (do_demangled_name_parse_free_cleanup) | |
17701 | (make_cleanup_cp_demangled_name_parse_free): Remove. | |
17702 | (inspect_type, cp_canonicalize_string_full) | |
17703 | (cp_canonicalize_string): Update. | |
17704 | (mangled_name_to_comp): Change return type. | |
17705 | (cp_class_name_from_physname, method_name_from_physname) | |
17706 | (cp_func_name, cp_remove_params): Update. | |
17707 | * cp-name-parser.y (demangle_parse_info): New constructor, from | |
17708 | cp_new_demangle_parse_info. | |
17709 | (~demangle_parse_info): New destructor, from | |
17710 | cp_demangled_name_parse_free. | |
17711 | (cp_merge_demangle_parse_infos): Update. | |
17712 | (cp_demangled_name_to_comp): Change return type. | |
17713 | ||
1ac32117 TT |
17714 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17715 | ||
17716 | * top.c (prevent_dont_repeat): Change return type. | |
17717 | * python/python.c (execute_gdb_command): Use std::string. | |
17718 | Update. | |
17719 | * guile/guile.c (gdbscm_execute_gdb_command): Update. | |
17720 | * command.h (prevent_dont_repeat): Change return type. | |
17721 | * breakpoint.c (bpstat_do_actions_1): Update. | |
17722 | ||
0cf08227 TT |
17723 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17724 | ||
17725 | * value.h (scoped_value_mark::~scoped_value_mark): Call | |
17726 | free_to_mark. | |
17727 | (scoped_value_mark::free_to_mark): New method. | |
17728 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use | |
17729 | scoped_value_mark. | |
17730 | ||
eb115069 TT |
17731 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17732 | ||
17733 | * python/py-value.c (valpy_dereference, valpy_referenced_value) | |
17734 | (valpy_reference_value, valpy_const_value, valpy_get_address) | |
17735 | (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast) | |
17736 | (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative) | |
17737 | (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark. | |
17738 | * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use | |
17739 | scoped_value_mark. | |
17740 | * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark. | |
17741 | * value.h (scoped_value_mark): New class. | |
17742 | ||
906768f9 TT |
17743 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17744 | ||
17745 | * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder. | |
17746 | * psympriv.h (make_cleanup_discard_psymtabs): Don't declare. | |
17747 | * psymtab.c (discard_psymtabs_upto): Remove. | |
17748 | (make_cleanup_discard_psymtabs): Remove. | |
17749 | (struct psymtab_state): Remove. | |
17750 | ||
bef155c3 TT |
17751 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17752 | ||
17753 | * record-full.c (record_full_save_cleanups): Remove. | |
17754 | (record_full_save): Use gdb::unlinker. | |
17755 | * gcore.c (do_bfd_delete_cleanup): Remove. | |
17756 | (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove | |
17757 | cleanups. | |
17758 | * dwarf2read.c (unlink_if_set): Remove. | |
17759 | (write_psymtabs_to_index): Use gdb::unlinker. | |
17760 | * common/gdb_unlinker.h: New file. | |
17761 | ||
192b62ce TT |
17762 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17763 | ||
17764 | * windows-tdep.c (windows_xfer_shared_library): Update. | |
17765 | * windows-nat.c (windows_make_so): Update. | |
17766 | * utils.h (make_cleanup_bfd_unref): Remove. | |
17767 | * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove. | |
17768 | * symfile.h (symfile_bfd_open) | |
17769 | (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr. | |
17770 | * symfile.c (read_symbols, symbol_file_add) | |
17771 | (separate_debug_file_exists): Update. | |
17772 | (symfile_bfd_open): Return gdb_bfd_ref_ptr. | |
17773 | (generic_load, reread_symbols): Update. | |
17774 | * symfile-mem.c (symbol_file_add_from_memory): Update. | |
17775 | * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr. | |
17776 | (spu_symbol_file_add_from_memory): Update. | |
17777 | * solist.h (struct target_so_ops) <bfd_open>: Return | |
17778 | gdb_bfd_ref_ptr. | |
17779 | (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr. | |
17780 | * solib.c (solib_bfd_fopen, solib_bfd_open): Return | |
17781 | gdb_bfd_ref_ptr. | |
17782 | (solib_map_sections, reload_shared_libraries_1): Update. | |
17783 | * solib-svr4.c (enable_break): Update. | |
17784 | * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr. | |
17785 | * solib-frv.c (enable_break2): Update. | |
17786 | * solib-dsbt.c (enable_break): Update. | |
17787 | * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return | |
17788 | gdb_bfd_ref_ptr. | |
17789 | (darwin_solib_get_all_image_info_addr_at_init): Update. | |
17790 | (darwin_bfd_open): Return gdb_bfd_ref_ptr. | |
17791 | * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr. | |
17792 | * record-full.c (record_full_save): Update. | |
17793 | * python/py-objfile.c (objfpy_add_separate_debug_file): Update. | |
17794 | * procfs.c (insert_dbx_link_bpt_in_file): Update. | |
17795 | * minidebug.c (find_separate_debug_file_in_section): Return | |
17796 | gdb_bfd_ref_ptr. | |
17797 | * machoread.c (macho_add_oso_symfile): Change abfd to | |
17798 | gdb_bfd_ref_ptr. | |
17799 | (macho_symfile_read_all_oso): Update. | |
17800 | (macho_check_dsym): Return gdb_bfd_ref_ptr. | |
17801 | (macho_symfile_read): Update. | |
17802 | * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr. | |
17803 | (jit_bfd_try_read_symtab): Update. | |
17804 | * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr) | |
17805 | (gdb_bfd_openw, gdb_bfd_openr_iovec) | |
17806 | (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return | |
17807 | gdb_bfd_ref_ptr. | |
17808 | (gdb_bfd_ref_policy): New struct. | |
17809 | (gdb_bfd_ref_ptr): New typedef. | |
17810 | * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr) | |
17811 | (gdb_bfd_openw, gdb_bfd_openr_iovec) | |
17812 | (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return | |
17813 | gdb_bfd_ref_ptr. | |
17814 | * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr. | |
17815 | * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr. | |
17816 | (gcore_command): Update. | |
17817 | * exec.c (exec_file_attach): Update. | |
17818 | * elfread.c (elf_symfile_read): Update. | |
17819 | * dwarf2read.c (dwarf2_get_dwz_file): Update. | |
17820 | (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr. | |
17821 | (open_and_init_dwo_file): Update. | |
17822 | (open_dwp_file): Return gdb_bfd_ref_ptr. | |
17823 | (open_and_init_dwp_file): Update. | |
17824 | * corelow.c (core_open): Update. | |
17825 | * compile/compile-object-load.c (compile_object_load): Update. | |
17826 | * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator. | |
17827 | * coffread.c (coff_symfile_read): Update. | |
17828 | * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return | |
17829 | gdb_bfd_ref_ptr. Rename. | |
17830 | (dump_bfd_file, restore_command): Update. | |
17831 | * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr. | |
17832 | * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr. | |
17833 | (find_separate_debug_file_by_buildid): Update. | |
17834 | ||
50315b21 TT |
17835 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17836 | ||
17837 | * common/gdb_ref_ptr.h: New file. | |
17838 | * python/py-ref.h (struct gdbpy_ref_policy): New. | |
17839 | (gdbpy_ref): Now a typedef. | |
17840 | ||
fc4007c9 TT |
17841 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17842 | ||
17843 | * utils.h (make_cleanup_htab_delete): Don't declare. | |
17844 | * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete): | |
17845 | Remove. | |
17846 | * linespec.c (decode_compound_collector): Add constructor, | |
17847 | destructor. | |
17848 | (lookup_prefix_sym): Remove cleanup. | |
17849 | (symtab_collector): Add constructor, destructor. | |
17850 | (collect_symtabs_from_filename): Remove cleanup. | |
17851 | * disasm.c (do_mixed_source_and_assembly): Use htab_up. | |
17852 | * compile/compile-c-symbols.c (generate_c_for_variable_locations): | |
17853 | Use htab_up. | |
17854 | * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up. | |
17855 | * dwarf2read.c (dw2_expand_symtabs_matching) | |
17856 | (dw2_map_symbol_filenames, dwarf_decode_macros) | |
17857 | (write_psymtabs_to_index): Use htab_up. | |
17858 | * dwarf2loc.c (func_verify_no_selftailcall) | |
17859 | (call_site_find_chain_1, func_verify_no_selftailcall) | |
17860 | (chain_candidate, call_site_find_chain_1): Use std::unordered_set, | |
17861 | std::vector, gdb::unique_xmalloc_ptr. | |
17862 | (call_sitep): Remove typedef. | |
17863 | (dwarf2_locexpr_baton_eval): Remove unused variable. | |
17864 | ||
8dbcee67 TT |
17865 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17866 | ||
17867 | * python/python-internal.h (make_cleanup_py_decref) | |
17868 | (make_cleanup_py_xdecref): Don't declare. | |
17869 | * python/py-utils.c (py_decref, make_cleanup_py_decref) | |
17870 | (py_xdecref, make_cleanup_py_xdecref): Remove. | |
17871 | ||
13df46cc TT |
17872 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17873 | ||
17874 | * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref. | |
17875 | (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref. | |
17876 | ||
06fc9bf7 TT |
17877 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17878 | ||
17879 | * python/py-framefilter.c (enumerate_args): Use gdbpy_ref. | |
17880 | ||
830a4934 TT |
17881 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17882 | ||
17883 | * python/py-utils.c (unicode_to_encoded_string) | |
17884 | (python_string_to_target_string) | |
17885 | (python_string_to_target_python_string) | |
17886 | (python_string_to_host_string, gdbpy_obj_to_string) | |
17887 | (get_addr_from_python): Use gdbpy_ref. | |
17888 | ||
4586d543 TT |
17889 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17890 | ||
17891 | * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use | |
17892 | gdbpy_ref. | |
17893 | ||
59876f8f TT |
17894 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17895 | ||
17896 | * python/python.c (eval_python_command, gdbpy_decode_line) | |
17897 | (gdbpy_run_events, gdbpy_start_type_printers) | |
17898 | (gdbpy_apply_type_printers): Use gdbpy_ref. | |
17899 | ||
97d83487 TT |
17900 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17901 | ||
17902 | * python/py-param.c (get_doc_string, compute_enum_values): Use | |
17903 | gdbpy_ref. | |
17904 | ||
9205649a TT |
17905 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17906 | ||
17907 | * python/py-inferior.c (find_thread_object, build_inferior_list): | |
17908 | Use gdbpy_ref. | |
17909 | ||
74c49d45 TT |
17910 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17911 | ||
17912 | * python/py-framefilter.c (py_print_frame): Use gdbpy_ref. | |
17913 | ||
16361ffb TT |
17914 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17915 | ||
17916 | * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use | |
17917 | gdbpy_ref. | |
17918 | ||
905f2cca TT |
17919 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17920 | ||
17921 | * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove | |
17922 | extra incref. | |
17923 | (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init): | |
17924 | Use gdbpy_ref. | |
17925 | ||
64081434 TT |
17926 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17927 | ||
17928 | * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use | |
17929 | gdbpy_ref. | |
17930 | ||
59e9e831 TT |
17931 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17932 | ||
17933 | * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't | |
17934 | decref results of PyArg_ParseTupleAndKeywords. | |
17935 | ||
9de10f6d TT |
17936 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17937 | ||
17938 | * python/python.c (python_run_simple_file): Use | |
17939 | unique_xmalloc_ptr, gdbpy_ref. | |
17940 | ||
2bd5759d TT |
17941 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17942 | ||
17943 | * python/py-prettyprint.c (print_stack_unless_memory_error) | |
17944 | (print_string_repr, print_children): Use gdbpy_ref. | |
17945 | (dummy_python_frame): New class. | |
17946 | (dummy_python_frame::dummy_python_frame): Rename from | |
17947 | push_dummy_python_frame. | |
17948 | (py_restore_tstate): Remove. | |
17949 | ||
3b4e0e01 TT |
17950 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17951 | ||
17952 | * python/py-framefilter.c (py_print_frame): Use gdbpy_ref. | |
17953 | ||
17a22718 TT |
17954 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17955 | ||
17956 | * python/python.c (ensure_python_env, restore_python_env): | |
17957 | Remove. | |
17958 | * python/python-internal.h (ensure_python_env): Don't declare. | |
17959 | * varobj.h (varobj_ensure_python_env): Don't declare. | |
17960 | * varobj.c (varobj_ensure_python_env): Remove. | |
17961 | ||
68cdc557 TT |
17962 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17963 | ||
17964 | * varobj.c (varobj_value_get_print_value): Use | |
17965 | gdbpy_enter_varobj. | |
17966 | ||
1eba6383 TT |
17967 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17968 | ||
17969 | * python/py-prettyprint.c (print_string_repr, print_children): | |
17970 | Update. | |
17971 | * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type | |
17972 | of "encoding". | |
17973 | * varobj.c (varobj_value_get_print_value): Update. | |
17974 | * python/python-internal.h (gdbpy_extract_lazy_string): Update. | |
17975 | ||
bde7b3e3 TT |
17976 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17977 | ||
17978 | * varobj.c (varobj_get_display_hint) | |
17979 | (dynamic_varobj_has_child_method, install_new_value_visualizer) | |
17980 | (varobj_set_visualizer, free_variable): Use | |
17981 | gdbpy_enter_varobj. | |
17982 | ||
a7785f8c TT |
17983 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17984 | ||
17985 | * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref. | |
17986 | (do_finish_initialization): New function. Use gdbpy_ref. | |
17987 | (gdbpy_finish_initialization): Use gdbpy_enter. Call | |
17988 | do_finish_initialization. | |
17989 | ||
2865bfce TT |
17990 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17991 | ||
17992 | * python/py-param.c (get_set_value, get_show_value): Use | |
17993 | gdbpy_enter, gdbpy_ref. | |
17994 | ||
0e9dcc75 TT |
17995 | 2017-01-10 Tom Tromey <tom@tromey.com> |
17996 | ||
17997 | * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref. | |
17998 | ||
12a5cedd TT |
17999 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18000 | ||
18001 | * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref. | |
18002 | ||
788f2586 TT |
18003 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18004 | ||
18005 | * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next): | |
18006 | Use gdbpy_enter_varobj. | |
18007 | ||
6cd67bea TT |
18008 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18009 | ||
18010 | * varobj.c (gdbpy_enter_varobj): New constructor. | |
18011 | * python/python-internal.h (gdbpy_enter_varobj): New class. | |
18012 | * python/py-varobj.c (py_varobj_get_iterator): Use | |
18013 | gdbpy_enter_varobj. | |
18014 | ||
14b122bf TT |
18015 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18016 | ||
18017 | * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use | |
18018 | gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr. | |
18019 | (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter. | |
18020 | (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, | |
18021 | unique_xmalloc_ptr. | |
18022 | (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter. | |
18023 | ||
bf1ca3b9 TT |
18024 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18025 | ||
18026 | * python/py-xmethods.c (invoke_match_method): Use | |
18027 | gdbpy_ref. | |
18028 | ||
572a5524 TT |
18029 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18030 | ||
18031 | * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use | |
18032 | gdbpy_enter, gdbpy_ref. | |
18033 | ||
396a78b6 TT |
18034 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18035 | ||
18036 | * python/python.c (python_interactive_command): Use gdbpy_enter. | |
18037 | ||
a88b13c7 TT |
18038 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18039 | ||
18040 | * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter, | |
18041 | gdbpy_ref. | |
18042 | ||
e9f0c363 TT |
18043 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18044 | ||
18045 | * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use | |
18046 | gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr. | |
18047 | ||
6349f452 TT |
18048 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18049 | ||
18050 | * utils.h (htab_deleter): New struct. | |
18051 | (htab_up): New typedef. | |
18052 | * python/py-framefilter.c (gdbpy_apply_frame_filter): Use | |
18053 | gdbpy_enter, gdbpy_ref, htab_up. | |
18054 | ||
c0171de6 TT |
18055 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18056 | ||
18057 | * python/py-unwind.c (pending_frame_invalidate): Remove. | |
18058 | (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref. | |
18059 | ||
f18e226f TT |
18060 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18061 | ||
18062 | * python/py-xmethods.c (gdbpy_free_xmethod_worker_data) | |
18063 | (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter. | |
18064 | ||
c57af3f1 TT |
18065 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18066 | ||
18067 | * python/py-type.c (save_objfile_types): Use gdbpy_enter. | |
18068 | ||
60e600ec TT |
18069 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18070 | ||
18071 | * python/python.c (gdbpy_eval_from_control_command) | |
18072 | (gdbpy_source_script, gdbpy_run_events) | |
18073 | (gdbpy_source_objfile_script, gdbpy_execute_objfile_script) | |
18074 | (gdbpy_free_type_printers, gdbpy_finish_initialization): Use | |
18075 | gdbpy_enter. | |
18076 | ||
bf7da5b0 TT |
18077 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18078 | ||
18079 | * python/py-progspace.c (py_free_pspace): Use gdbpy_enter. | |
18080 | ||
2d38bced TT |
18081 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18082 | ||
18083 | * python/py-objfile.c (py_free_objfile): Use gdbpy_enter. | |
18084 | ||
07bc7329 TT |
18085 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18086 | ||
18087 | * python/py-inferior.c (python_on_normal_stop, python_on_resume) | |
18088 | (python_on_inferior_call_pre, python_on_inferior_call_post) | |
18089 | (python_on_memory_change, python_on_register_change) | |
18090 | (python_inferior_exit, python_new_objfile, add_thread_object) | |
18091 | (delete_thread_object, py_free_inferior): Use gdbpy_enter. | |
18092 | ||
6e7c365e TT |
18093 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18094 | ||
18095 | * python/py-finishbreakpoint.c (bpfinishpy_handle_stop) | |
18096 | (bpfinishpy_handle_exit): Use gdbpy_enter. | |
18097 | ||
6ba0cd40 TT |
18098 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18099 | ||
18100 | * python/py-cmd.c (cmdpy_destroyer) | |
18101 | (cmdpy_completer_handle_brkchars, cmdpy_completer): Use | |
18102 | gdbpy_enter. | |
18103 | ||
de2dc875 TT |
18104 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18105 | ||
18106 | * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use | |
18107 | gdbpy_enter. | |
18108 | (gdbpy_breakpoint_has_cond): Likewise. | |
18109 | ||
4ecee2c4 TT |
18110 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18111 | ||
18112 | * python/python.c (gdbpy_enter): New constructor. | |
18113 | (~gdbpy_enter): New destructor. | |
18114 | (restore_python_env, ensure_python_env): Rewrite. | |
18115 | * python/python-internal.h (gdbpy_enter): New class. | |
18116 | ||
37fce74f TT |
18117 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18118 | ||
18119 | * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref. | |
18120 | ||
53a0cca3 TT |
18121 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18122 | ||
18123 | * python/py-value.c (value_has_field, get_field_flag) | |
18124 | (get_field_type, valpy_getitem, convert_value_from_python): Use | |
18125 | gdbpy_ref. | |
18126 | ||
ff3724f5 TT |
18127 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18128 | ||
18129 | * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use | |
18130 | gdbpy_ref. | |
18131 | ||
0700aea5 TT |
18132 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18133 | ||
18134 | * python/py-prettyprint.c (search_pp_list) | |
18135 | (find_pretty_printer_from_objfiles) | |
18136 | (find_pretty_printer_from_progspace) | |
18137 | (find_pretty_printer_from_gdb, find_pretty_printer) | |
18138 | (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use | |
18139 | gdbpy_ref. | |
18140 | ||
1bb44c9f TT |
18141 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18142 | ||
18143 | * python/py-param.c (call_doc_function): Use gdbpy_ref. | |
18144 | ||
87ce03fd TT |
18145 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18146 | ||
18147 | * python/py-linetable.c (build_line_table_tuple_from_pcs) | |
18148 | (ltpy_get_all_source_lines): Use gdbpy_ref. | |
18149 | ||
ee0a3fb8 TT |
18150 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18151 | ||
18152 | * python/py-framefilter.c (extract_sym, extract_value) | |
18153 | (get_py_iter_from_func, bootstrap_python_frame_filters): Use | |
18154 | gdbpy_ref. | |
18155 | ||
bf2a52fa TT |
18156 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18157 | ||
18158 | * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref. | |
18159 | ||
f59fe7f8 TT |
18160 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18161 | ||
18162 | * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref. | |
18163 | ||
80bd970a TT |
18164 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18165 | ||
18166 | * python/py-function.c (convert_values_to_python, fnpy_init): Use | |
18167 | gdbpy_ref. | |
18168 | ||
d1b3de2e TT |
18169 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18170 | ||
18171 | * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref. | |
18172 | ||
3bb43384 TT |
18173 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18174 | ||
18175 | * python/py-type.c (convert_field, make_fielditem, typy_fields) | |
18176 | (typy_range): Use gdbpy_ref. | |
18177 | ||
abf5651e TT |
18178 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18179 | ||
18180 | * python/py-threadevent.c (create_thread_event_object): Use | |
18181 | gdbpy_ref. | |
18182 | * python/py-stopevent.c (create_stop_event_object): Simplify. | |
18183 | (emit_stop_event): Use gdbpy_ref. | |
18184 | * python/py-signalevent.c (create_signal_event_object): Use | |
18185 | gdbpy_ref. | |
18186 | * python/py-newobjfileevent.c (create_new_objfile_event_object) | |
18187 | (emit_new_objfile_event, create_clear_objfiles_event_object) | |
18188 | (emit_clear_objfiles_event): Use gdbpy_ref. | |
18189 | * python/py-infevents.c (create_inferior_call_event_object) | |
18190 | (create_register_changed_event_object) | |
18191 | (create_memory_changed_event_object, emit_inferior_call_event) | |
18192 | (emit_memory_changed_event, emit_register_changed_event): Use | |
18193 | gdbpy_ref. | |
18194 | * python/py-exitedevent.c (create_exited_event_object) | |
18195 | (emit_exited_event): Use gdbpy_ref. | |
18196 | * python/py-event.h (evpy_emit_event): Remove | |
18197 | CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation. | |
18198 | * python/py-event.c (evpy_emit_event): Use gdbpy_ref. | |
18199 | * python/py-continueevent.c (emit_continue_event): Use | |
18200 | gdbpy_ref. | |
18201 | * python/py-breakpoint.c (gdbpy_breakpoint_created) | |
18202 | (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use | |
18203 | gdbpy_ref. | |
18204 | * python/py-bpevent.c (create_breakpoint_event_object): Use | |
18205 | gdbpy_ref. | |
18206 | ||
a68ff33e TT |
18207 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18208 | ||
18209 | * python/py-ref.h: New file. | |
18210 | ||
7becfd03 SM |
18211 | 2017-01-10 Simon Marchi <simon.marchi@ericsson.com> |
18212 | ||
18213 | * cli-out.c (cli_ui_out::do_redirect): Change return type to | |
18214 | void. | |
18215 | * cli-out.h (cli_ui_out::do_redirect): Likewise. | |
18216 | * mi/mi-out.c (mi_ui_out::do_redirect): Likewise. | |
18217 | * mi/mi-out.h (mi_ui_out::do_redirect): Likewise. | |
18218 | * ui-out.c (ui_out::redirect): Likewise. | |
18219 | * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise. | |
18220 | * cli/cli-logging.c (set_logging_redirect): Update call site of | |
18221 | ui_out::redirect. | |
18222 | (handle_redirections): Likewise. | |
18223 | * scm-ports.c (ioscm_with_output_to_port_worker): Likewise. | |
18224 | * top.c (execute_command_to_string): Likewise. | |
18225 | * utils.c (do_ui_out_redirect_pop): Likewise. | |
18226 | ||
df294654 SM |
18227 | 2017-01-10 Simon Marchi <simon.marchi@ericsson.com> |
18228 | ||
18229 | * stack.c (_initialize_stack): Update "frame" command help message. | |
18230 | ||
f5e6296e IB |
18231 | 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org> |
18232 | ||
18233 | * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE. | |
18234 | ||
0e2d6fa6 YQ |
18235 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
18236 | ||
18237 | * x86-linux-nat.h: Include gdb_proc_service.h. | |
18238 | ||
44d6d3f9 YQ |
18239 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
18240 | ||
18241 | * ser-base.h: Include serial.h. | |
18242 | ||
656731fe YQ |
18243 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
18244 | ||
18245 | * ppc-linux-tdep.h: Include ppc-tdep.h. | |
18246 | ||
1ca8f924 YQ |
18247 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
18248 | ||
18249 | * nat/amd64-linux-siginfo.h: Include signal.h. | |
18250 | ||
bc3008c4 YQ |
18251 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
18252 | ||
18253 | * nat/aarch64-linux-hw-point.h: Include break-common.h. | |
18254 | ||
66c80d03 YQ |
18255 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
18256 | ||
18257 | * mi/mi-parse.h: Include mi-cmds.h. | |
18258 | ||
051d2dda YQ |
18259 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
18260 | ||
18261 | * inf-loop.c: Don't include "target.h". | |
18262 | * inf-loop.h: Include it here. | |
18263 | ||
8018d34f YQ |
18264 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
18265 | ||
18266 | * dfp.h: Include "dboulest.h" and "expression.h". | |
18267 | ||
c0b8369c YQ |
18268 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
18269 | ||
18270 | * ax-gdb.h: Include "ax.h". | |
18271 | ||
ad5cba2a YQ |
18272 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
18273 | ||
18274 | * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h | |
18275 | with nat/gdb_ptrace.h. | |
18276 | ||
1c33cd7f YQ |
18277 | 2017-01-05 Yao Qi <yao.qi@linaro.org> |
18278 | ||
18279 | * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to | |
18280 | new line. | |
18281 | (mips64_fbsd_sigframe_init): Likewise. | |
18282 | ||
c988ac1d JB |
18283 | 2017-01-04 John Baldwin <jhb@FreeBSD.org> |
18284 | ||
18285 | * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use | |
18286 | GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF. | |
18287 | ||
b268007c JB |
18288 | 2017-01-04 John Baldwin <jhb@FreeBSD.org> |
18289 | ||
18290 | * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c. | |
18291 | * NEWS: Mention new FreeBSD/mips native configuration. | |
18292 | * config/mips/fbsd.mh: New file. | |
18293 | * configure.host: Add mips*-*-freebsd*. | |
18294 | * mips-fbsd-nat.c: New file. | |
18295 | ||
387360da JB |
18296 | 2017-01-04 John Baldwin <jhb@FreeBSD.org> |
18297 | ||
18298 | * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o. | |
18299 | (ALLDEPFILES): Add mips-fbsd-tdep.c. | |
18300 | * NEWS: Mention new FreeBSD/mips target. | |
18301 | * configure.tgt: Add mips*-*-freebsd*. | |
18302 | * mips-fbsd-tdep.c: New file. | |
18303 | * mips-fbsd-tdep.h: New file. | |
18304 | ||
2aaaf250 YQ |
18305 | 2017-01-04 Yao Qi <yao.qi@linaro.org> |
18306 | ||
18307 | * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to), | |
18308 | use c->frame_id when the piece location is DWARF_VALUE_REGISTER. | |
18309 | ||
61baf725 JB |
18310 | 2017-01-01 Joel Brobecker <brobecker@adacore.com> |
18311 | ||
6dbb839a | 18312 | Update copyright year range in all GDB files. |
61baf725 | 18313 | |
c113e7ff | 18314 | 2017-01-01 Joel Brobecker <brobecker@adacore.com> |
ce0db137 | 18315 | |
c113e7ff | 18316 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016. |
ce0db137 | 18317 | |
c113e7ff | 18318 | For older changes see ChangeLog-2016. |
c906108c SS |
18319 | \f |
18320 | Local Variables: | |
18321 | mode: change-log | |
18322 | left-margin: 8 | |
18323 | fill-column: 74 | |
18324 | version-control: never | |
57da7796 | 18325 | coding: utf-8 |
c906108c | 18326 | End: |