Remove free_value_chain
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2018-04-06 Tom Tromey <tom@tromey.com>
2
3 * value.h (fetch_subexp_value, value_release_to_mark): Update.
4 (free_value_chain): Remove.
5 * value.c (free_value_chain): Remove.
6 (value_release_to_mark): Return a std::vector.
7 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
8 std::vector.
9 (check_condition): Update.
10 * eval.c (fetch_subexp_value): Change "val_chain" to a
11 std::vector.
12 * breakpoint.c (update_watchpoint): Update.
13 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
14
15 2018-04-06 Tom Tromey <tom@tromey.com>
16
17 * value.h (free_all_values): Remove.
18 * value.c (free_all_values): Remove.
19
20 2018-04-06 Tom Tromey <tom@tromey.com>
21
22 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
23 (value_history_chain, value_history_count): Remove.
24 (value_history): New global.
25 (record_latest_value, access_value_history, show_values)
26 (preserve_values): Update.
27
28 2018-04-06 Tom Tromey <tom@tromey.com>
29
30 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
31 * varobj.c (varobj_set_display_format, varobj_set_value)
32 (install_default_visualizer, construct_visualizer)
33 (install_new_value, ~varobj, varobj_get_value_type)
34 (my_value_of_variable, varobj_editable_p): Update.
35 * c-varobj.c (c_describe_child, c_value_of_variable)
36 (cplus_number_of_children, cplus_describe_child): Update.
37 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
38 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
39 (ada_value_of_variable, ada_value_is_changeable_p): Update.
40
41 2018-04-06 Tom Tromey <tom@tromey.com>
42
43 * printcmd.c (last_examine_address): Change type to
44 value_ref_ptr.
45 (do_examine, x_command): Update.
46
47 2018-04-06 Tom Tromey <tom@tromey.com>
48
49 * value.c (release_value): Update.
50 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
51 (struct bpstats) <val>: Now a value_ref_ptr.
52 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
53 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
54 (~watchpoint, print_it_watchpoint, watch_command_1)
55 (invalidate_bp_value_on_memory_change): Update.
56
57 2018-04-06 Tom Tromey <tom@tromey.com>
58
59 * varobj.c (varobj_clear_saved_item)
60 (update_dynamic_varobj_children, install_new_value, ~varobj):
61 Update.
62 * value.h (value_incref): Move declaration earlier.
63 (value_decref): Rename from value_free.
64 (struct value_ref_policy): New.
65 (value_ref_ptr): New typedef.
66 (struct value_deleter): Remove.
67 (gdb_value_up): Remove typedef.
68 (release_value): Change return type.
69 (release_value_or_incref): Remove.
70 * value.c (set_value_parent): Update.
71 (value_incref): Change return type.
72 (value_decref): Rename from value_free.
73 (value_free_to_mark, free_all_values, free_value_chain): Update.
74 (release_value): Return value_ref_ptr.
75 (release_value_or_incref): Remove.
76 (record_latest_value, set_internalvar, clear_internalvar):
77 Update.
78 * stack.c (info_frame_command): Don't call value_free.
79 * python/py-value.c (valpy_dealloc, valpy_new)
80 (value_to_value_object): Update.
81 * printcmd.c (do_examine): Update.
82 * opencl-lang.c (lval_func_free_closure): Update.
83 * mi/mi-main.c (register_changed_p): Don't call value_free.
84 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
85 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
86 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
87 value_free.
88 * guile/scm-value.c (vlscm_free_value_smob)
89 (vlscm_scm_from_value): Update.
90 * frame.c (frame_register_unwind, frame_unwind_register_signed)
91 (frame_unwind_register_unsigned, get_frame_register_bytes)
92 (put_frame_register_bytes): Don't call value_free.
93 * findvar.c (address_from_register): Don't call value_free.
94 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
95 * dwarf2loc.c (entry_data_value_free_closure)
96 (value_of_dwarf_reg_entry, free_pieced_value_closure)
97 (dwarf2_evaluate_loc_desc_full): Update.
98 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
99 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
100 (~watchpoint, watch_command_1)
101 (invalidate_bp_value_on_memory_change): Update.
102 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
103
104 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
105
106 PR gdb/23022
107 * warning.m4: Add -Wno-error=deprecated-register.
108 * configure: Re-generate.
109
110 2018-04-05 Tom Tromey <tom@tromey.com>
111
112 * linespec.h: Remove include of "vec.h".
113
114 2018-04-05 Tom Tromey <tom@tromey.com>
115
116 * linespec.c (typep): Remove typedef.
117 (find_methods, find_superclass_methods): Take a std::vector.
118 (find_method): Use std::vector.
119
120 2018-04-05 Tom Tromey <tom@tromey.com>
121
122 * utils.c (compare_strings): Remove.
123 * utils.h (compare_strings): Remove.
124 * objc-lang.h (find_imps): Update.
125 * objc-lang.c (find_methods): Take a std::vector.
126 (uniquify_strings, find_imps): Likewise.
127 * linespec.c (find_methods): Take a std::vector.
128 (decode_objc): Use std::vector.
129 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
130 a std::vector.
131 (find_method, find_function_symbols): Use std::vector.
132
133 2018-04-05 Tom Tromey <tom@tromey.com>
134
135 * completer.c (completion_tracker::completion_tracker): Remove
136 cast.
137 (completion_tracker::discard_completions): Likewise.
138 * breakpoint.c (ambiguous_names_p): Remove cast.
139 * ada-lang.c (_initialize_ada_language): Remove cast.
140 * utils.h (streq): Update.
141 (streq_hash): Add new declaration.
142 * utils.c (streq): Return bool.
143 (streq_hash): New function.
144
145 2018-04-05 Tom Tromey <tom@tromey.com>
146
147 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
148 Remove a string copy.
149
150 2018-04-05 Tom Tromey <tom@tromey.com>
151
152 * linespec.c (filter_results): Use std::vector.
153 (decode_line_2, decode_line_full): Update.
154
155 2018-04-05 Tom Tromey <tom@tromey.com>
156
157 * linespec.c (canonical_to_fullform): Return std::string.
158 (filter_results): Update.
159 (struct decode_line_2_item): Add constructor.
160 <fullform, displayform>: Now std::string.
161 (decode_line_2_compare_items): Now a std::sort comparator.
162 (decode_line_2): Update.
163
164 2018-04-05 Tom Tromey <tom@tromey.com>
165
166 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
167 (unexpected_linespec_error): Update.
168 (linespec_parse_basic, parse_linespec): Update.
169
170 2018-04-05 Tom Tromey <tom@tromey.com>
171
172 * linespec.c (linespec_parse_basic): Reindent.
173
174 2018-04-05 Tom Tromey <tom@tromey.com>
175
176 * minsyms.h (iterate_over_minimal_symbols): Update.
177 * minsyms.c (iterate_over_minimal_symbols): Take a
178 gdb::function_view.
179 * linespec.c (struct collect_minsyms): Remove.
180 (compare_msyms): Now a std::sort comparator.
181 (add_minsym): Add parameters.
182 (search_minsyms_for_name): Update. Use std::vector.
183
184 2018-04-03 Tom Tromey <tom@tromey.com>
185
186 * mipsread.c (read_alphacoff_dynamic_symtab): Use
187 gdb::byte_vector.
188
189 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
190
191 * MAINTAINERS (Write After Approval): Add Weimin Pan.
192
193 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
194
195 PR gdb/16959
196 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
197 printing static type.
198
199 2018-04-01 Tom Tromey <tom@tromey.com>
200
201 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
202 (rs6000_xfer_shared_libraries): Update.
203
204 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
205
206 * common/gdb_vecs.h (char_ptr): Remove.
207 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
208
209 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
210
211 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
212 with std::vector.
213 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
214
215 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
216
217 * tracepoint.h (struct uploaded_tp): Initialize fields.
218 <actions, step_actions, cmd_strings>: Change type to
219 std::vector<char *>.
220 * tracepoint.c (get_uploaded_tp): Allocate with new.
221 (free_uploaded_tps): Free with delete.
222 (parse_tracepoint_definition): Adjust to std::vector change.
223 * breakpoint.c (read_uploaded_action): Likewise.
224 (create_tracepoint_from_upload): Likewise.
225 * ctf.c (ctf_write_uploaded_tp): Likewise.
226 (SET_ARRAY_FIELD): Likewise.
227 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
228
229 2018-03-30 Tom Tromey <tom@tromey.com>
230
231 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
232 std::unique_ptr.
233 (svr4_keep_data_in_core): Update.
234 (svr4_read_so_list): Update.
235
236 2018-03-30 Tom Tromey <tom@tromey.com>
237
238 * windows-nat.c (handle_output_debug_string, handle_exception):
239 Update.
240 * target.h (target_read_string): Update.
241 * target.c (target_read_string): Change "string" to
242 unique_xmalloc_ptr.
243 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
244 Update.
245 * solib-frv.c (frv_current_sos): Update.
246 * solib-dsbt.c (dsbt_current_sos): Update.
247 * solib-darwin.c (darwin_current_sos): Update.
248 * linux-thread-db.c (inferior_has_bug): Update.
249 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
250 Update. Remove alloca.
251 * ada-lang.c (ada_main_name): Update.
252
253 2018-03-30 Tom Tromey <tom@tromey.com>
254
255 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
256 (struct dwo_file_deleter): New.
257 (dwo_file_up): New typedef.
258 (open_and_init_dwo_file): Use dwo_file_up.
259 (free_dwo_file_cleanup): Remove.
260
261 2018-03-30 Tom Tromey <tom@tromey.com>
262
263 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
264 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
265
266 2018-03-30 Tom Tromey <tom@tromey.com>
267
268 * dwarf2read.c (class free_cached_comp_units): New class.
269 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
270 (free_cached_comp_units): Remove function.
271
272 2018-03-30 Tom Tromey <tom@tromey.com>
273
274 * utils.h (make_cleanup_unpush_target): Remove.
275 * inf-ptrace.c (struct target_unpusher): New.
276 (target_unpush_up) New typedef.
277 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
278 target_unpush_up.
279 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
280
281 2018-03-27 Tom Tromey <tom@tromey.com>
282
283 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
284
285 2018-03-27 Pedro Alves <palves@redhat.com>
286 Tom Tromey <tom@tromey.com>
287
288 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
289 destructor. Now a class.
290 (gdb_readline_wrapper_cleanup): Remove function.
291 (gdb_readline_wrapper): Remove cleanups.
292
293 2018-03-27 Tom Tromey <tom@tromey.com>
294
295 * typeprint.h (struct type_print_options) <local_typedefs,
296 global_typedefs>: Remove "struct" keyword.
297 (class typedef_hash_table): New class.
298 (recursively_update_typedef_hash, add_template_parameters)
299 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
300 (find_typedef_in_hash): Don't declare.
301 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
302 (typedef_hash_table::recursively_update): Rename from
303 recursively_update_typedef_hash. Now a member.
304 (typedef_hash_table::add_template_parameters): Rename from
305 add_template_parameters. Now a member.
306 (typedef_hash_table::typedef_hash_table): Now a constructor;
307 rename from create_typedef_hash.
308 (typedef_hash_table::~typedef_hash_table): Now a destructor;
309 rename from free_typedef_hash.
310 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
311 (do_free_global_table): Remove.
312 (typedef_hash_table::typedef_hash_table): New constructor; renamed
313 from copy_type_recursive.
314 (create_global_typedef_table): Remove.
315 (typedef_hash_table::find_global_typedef): Now a member of
316 typedef_hash_table.
317 (typedef_hash_table::find_typedef): Rename from
318 find_typedef_in_hash; now a member.
319 (whatis_exp): Update.
320 * extension.h (struct ext_lang_type_printers): Add constructor and
321 destructor.
322 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
323 declare.
324 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
325 Now a constructor; rename from start_ext_lang_type_printers.
326 (ext_lang_type_printers): Now a destructor; rename from
327 free_ext_lang_type_printers.
328 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
329 Update.
330 (c_type_print_base_struct_union): Update. Remove cleanups.
331
332 2018-03-27 Tom Tromey <tom@tromey.com>
333
334 * dwarf-index-write.c: Include <cmath>.
335
336 2018-03-27 Joel Brobecker <brobecker@adacore.com>
337
338 * NEWS: Add entry describing new "set|show varsize-limit" command.
339 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
340 command.
341 * printcmd.c (_initialize_printcmd): Add "set var" alias of
342 "set variable".
343
344 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
345
346 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
347 dwarf-index-write.c
348 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
349 * dwarf-index-common.c: New file.
350 * dwarf-index-common.h: New file.
351 * dwarf-index-write.c: New file.
352 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
353 (struct dwarf2_section_info): Move from here.
354 (dwarf2_section_info_def): Likewise.
355 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
356 (offset_type): Likewise.
357 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
358 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
359 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
360 (byte_swap): Likewise.
361 (MAYBE_SWAP): Likewise.
362 (dwarf2_per_cu_ptr): Likewise.
363 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
364 (struct tu_stats): Likewise.
365 (struct dwarf2_per_objfile): Likewise.
366 (struct dwarf2_per_cu_data): Likewise.
367 (struct signatured_type): Likewise.
368 (sig_type_ptr): Likewise.
369 (DEF_VEC_P (sig_type_ptr)): Likewise.
370 (INDEX4_SUFFIX): Likewise.
371 (INDEX5_SUFFIX): Likewise.
372 (DEBUG_STR_SUFFIX): Likewise.
373 (dwarf2_read_section): Make non-static.
374 (mapped_index_string_hash): Move from here.
375 (dwarf5_djb_hash): Likewise.
376 (file_write): Likewise.
377 (class data_buf): Likewise.
378 (struct symtab_index_entry): Likewise.
379 (struct mapped_symtab): Likewise.
380 (find_slot): Likewise.
381 (hash_expand): Likewise.
382 (add_index_entry): Likewise.
383 (uniquify_cu_indices): Likewise.
384 (class c_str_view): Likewise.
385 (class c_str_view_hasher): Likewise.
386 (class vector_hasher): Likewise.
387 (write_hash_table): Likewise.
388 (psym_index_map): Likewise.
389 (struct addrmap_index_data): Likewise.
390 (add_address_entry): Likewise.
391 (add_address_entry_worker): Likewise.
392 (write_address_map): Likewise.
393 (symbol_kind): Likewise.
394 (write_psymbols): Likewise.
395 (struct signatured_type_index_data): Likewise.
396 (write_one_signatured_type): Likewise.
397 (recursively_count_psymbols): Likewise.
398 (recursively_write_psymbols): Likewise.
399 (class debug_names): Likewise.
400 (check_dwarf64_offsets): Likewise.
401 (psyms_seen_size): Likewise.
402 (write_gdbindex): Likewise.
403 (write_debug_names): Likewise.
404 (assert_file_size): Likewise.
405 (write_psymtabs_to_index): Likewise.
406 (save_gdb_index_command): Likewise.
407 (_initialize_dwarf2_read): Don't register the "save gdb-index"
408 command.
409 * dwarf2read.h: New file.
410
411 2018-03-27 Joel Brobecker <brobecker@adacore.com>
412
413 PR gdb/22670
414 * dwarf2read.c (dwarf2_physname): Do not return the demangled
415 symbol name if the CU's language stores symbol names in linkage
416 format.
417 * language.h (struct language_defn)
418 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
419 all instances of this struct.
420
421 2018-03-26 Tom Tromey <tom@tromey.com>
422
423 * stack.c (backtrace_command_1): Remove verbose code.
424
425 2018-03-26 Tom Tromey <tom@tromey.com>
426
427 * python/py-framefilter.c (py_print_type): Don't catch
428 exceptions. Return void.
429 (py_print_value): Likewise.
430 (py_print_single_arg): Likewise.
431 (enumerate_args): Don't catch exceptions.
432 (py_print_args): Likewise.
433 (py_print_frame): Likewise.
434 (gdbpy_apply_frame_filter): Catch exceptions here.
435
436 2018-03-26 Tom Tromey <tom@tromey.com>
437
438 * stack.c (_initialize_stack): Remove trailing newlines from help
439 text. Add "Usage" line to "backtrace" help.
440
441 2018-03-26 Tom Tromey <tom@tromey.com>
442
443 PR python/16486:
444 * python/py-framefilter.c (py_print_args): Call wrap_hint.
445
446 2018-03-26 Tom Tromey <tom@tromey.com>
447
448 * python/py-framefilter.c (py_print_single_arg): Return
449 EXT_LANG_BT_ERROR from catch.
450
451 2018-03-26 Tom Tromey <tom@tromey.com>
452
453 PR backtrace/15584:
454 * stack.c (backtrace_command_1): Move some code into no-filters
455 "if".
456
457 2018-03-26 Tom Tromey <tom@tromey.com>
458
459 * python/py-framefilter.c (throw_quit_or_print_exception): New
460 function.
461 (gdbpy_apply_frame_filter): Use it.
462
463 2018-03-26 Tom Tromey <tom@tromey.com>
464
465 PR cli/17716:
466 * python/py-framefilter.c (py_print_type, py_print_value)
467 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
468 RETURN_MASK_ERROR.
469
470 2018-03-26 Tom Tromey <tom@tromey.com>
471
472 * python/py-framefilter.c (enumerate_args): Use
473 gdb::unique_xmalloc_ptr.
474
475 2018-03-26 Tom Tromey <tom@tromey.com>
476
477 * python/py-framefilter.c (py_print_frame): Return
478 EXT_LANG_BT_OK.
479 (gdbpy_apply_frame_filter): Update comment.
480 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
481 Remove.
482 <EXT_LANG_BT_NO_FILTERS>: Change value.
483
484 2018-03-26 Tom Tromey <tom@tromey.com>
485
486 PR backtrace/15582:
487 * stack.c (backtrace_command): Parse "hide" argument.
488 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
489 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
490 constant.
491
492 2018-03-26 Tom Tromey <tom@tromey.com>
493
494 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
495 add "flags".
496 (backtrace_command): Remove "fulltrace", add "flags".
497
498 2018-03-26 Tom Tromey <tom@tromey.com>
499
500 * stack.c (backtrace_command): Rewrite command line parsing.
501
502 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
503
504 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
505
506 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
507
508 * filename-seen-cache.h: Add include guard.
509
510 2018-03-26 Keith Seitz <keiths@redhat.com>
511
512 * symfile.c (place_section): Remove "struct" from section_addr_info
513 in comment.
514 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
515 "struct" keyword from section_addr_info.
516
517 2018-03-26 Alan Hayward <alan.hayward@arm.com>
518
519 * regformats/regdef.h (reg): Add constructors.
520
521 2018-03-25 Pedro Alves <palves@redhat.com>
522
523 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
524 if then/else bodies in var_func_name extraction.
525
526 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
527
528 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
529 lookup_minimal_symbol() to find symbol entry.
530 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
531
532 2018-03-23 Keith Seitz <keiths@redhat.com>
533
534 PR c++/22968
535 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
536 nested type definitions for C++, too.
537
538 2018-03-23 Tom Tromey <tom@tromey.com>
539
540 * machoread.c (struct oso_el): Add a constructor. Don't define as
541 a typedef.
542 (macho_register_oso): Remove.
543 (macho_symtab_read): Take a std::vector.
544 (oso_el_compare_name): Now a std::sort comparator.
545 (macho_symfile_read_all_oso): Take a std::vector.
546 (macho_symfile_read): Use std::vector. Remove cleanups.
547
548 2018-03-22 Tom Tromey <tom@tromey.com>
549
550 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
551 (record_full_goto_bookmark): Use std::string.
552
553 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
554
555 PR tdep/18295
556 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
557 a single mask.
558
559 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
560
561 * rs6000-tdep.c (store_insn_p): New function.
562 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
563 and cr_reg to their unshifted values. Use store_insn_p to
564 match LR saves using either R1 or fdata->alloca_reg. Use
565 store_insn_p to match CR saves. Set alloca_reg_offset
566 when alloca_reg and framep are set. Remove lr_reg shift
567 when assigning to fdata->lr_register.
568
569 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
570
571 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
572 command line args instead of emitting a warning.
573
574 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
575
576 * tracepoint.h (struct static_tracepoint_marker): Initialize
577 fields, define default constructor, move constructor and move
578 assignment, disable the rest.
579 <str_id, extra>: Make std::string.
580 (release_static_tracepoint_marker): Remove.
581 (free_current_marker): Remove.
582 * tracepoint.c (free_current_marker): Remove.
583 (parse_static_tracepoint_marker_definition): Adjust to
584 std::string, use new hex2str overload.
585 (release_static_tracepoint_marker): Remove.
586 (print_one_static_tracepoint_marker): Get marker by reference
587 and adjust to std::string.
588 (info_static_tracepoint_markers_command): Adjust to std::vector
589 changes
590 * target.h (static_tracepoint_marker_p): Remove typedef.
591 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
592 (struct target_ops) <to_static_tracepoint_marker_at>: Return
593 bool.
594 <to_static_tracepoint_markers_by_strid>: Return std::vector.
595 * target-debug.h
596 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
597 (target_debug_print_std_vector_static_tracepoint_marker): New.
598 (target_debug_print_struct_static_tracepoint_marker_p): Rename
599 to...
600 (target_debug_print_static_tracepoint_marker_p): ... this.
601 * target-delegates.c: Re-generate.
602 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
603 Make std::string.
604 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
605 (decode_static_tracepoint_spec): Adjust to std::vector.
606 (tracepoint_print_one_detail): Adjust to std::string.
607 (strace_marker_decode_location): Adjust to std::string.
608 (update_static_tracepoint): Adjust to std::string, remove call
609 to release_static_tracepoint_marker.
610 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
611 Adjust to std::vector.
612 * remote.c (remote_static_tracepoint_marker_at): Return bool.
613 (remote_static_tracepoint_markers_by_strid): Adjust to
614 std::vector.
615 * common/rsp-low.h (hex2str): New overload with explicit count
616 of bytes.
617 * common/rsp-low.c (hex2str): New overload with explicit count
618 of bytes.
619 * unittests/rsp-low-selftests.c (test_hex2str): New function.
620 (_initialize_rsp_low_selftests): Add test_hex2str test.
621 * unittests/tracepoint-selftests.c
622 (test_parse_static_tracepoint_marker_definition): Adjust to
623 std::string.
624
625 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
626
627 * tracepoint.c (parse_static_tracepoint_marker_definition):
628 Consider case where the definition is followed by more
629 definitions.
630 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
631 tracepoint-selftests.c.
632 * unittests/tracepoint-selftests.c: New.
633
634 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
635
636 * MAINTAINERS (Write After Approval): Add Pedro Franco de
637 Carvalho.
638
639 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
640
641 * symtab.c (find_pc_sect_line): fixed indentation.
642
643 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
644
645 * symtab.c (find_pc_sect_line): now uses binary search.
646
647 2018-03-19 Tom Tromey <tom@tromey.com>
648
649 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
650 "IDENT" production.
651
652 2018-03-19 Pedro Alves <palves@redhat.com>
653 Tom Tromey <tom@tromey.com>
654
655 * unittests/observable-selftests.c: New file.
656 * common/observable.h: New file.
657 * observable.h: New file.
658 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
659 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
660 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
661 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
662 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
663 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
664 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
665 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
666 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
667 python/py-breakpoint.c, python/py-finishbreakpoint.c,
668 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
669 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
670 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
671 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
672 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
673 tui/tui-interp.c, valops.c: Update all users.
674 * tui/tui-hooks.c (tui_bp_created_observer)
675 (tui_bp_deleted_observer, tui_bp_modified_observer)
676 (tui_inferior_exit_observer, tui_before_prompt_observer)
677 (tui_normal_stop_observer, tui_register_changed_observer):
678 Remove.
679 (tui_observers_token): New global.
680 (attach_or_detach, tui_attach_detach_observers): New functions.
681 (tui_install_hooks, tui_remove_hooks): Use
682 tui_attach_detach_observers.
683 * record-btrace.c (record_btrace_thread_observer): Remove.
684 (record_btrace_thread_observer_token): New global.
685 * observer.sh: Remove.
686 * observer.c: Rename to observable.c.
687 * observable.c (namespace gdb_observers): Define new objects.
688 (observer_debug): Move into gdb_observers namespace.
689 (struct observer, struct observer_list, xalloc_observer_list_node)
690 (xfree_observer_list_node, generic_observer_attach)
691 (generic_observer_detach, generic_observer_notify): Remove.
692 (_initialize_observer): Update.
693 Don't include observer.inc.
694 * Makefile.in (generated_files): Remove observer.h, observer.inc.
695 (clean mostlyclean): Likewise.
696 (observer.h, observer.inc): Remove targets.
697 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
698 (COMMON_SFILES): Use observable.c, not observer.c.
699 * .gitignore: Remove observer.h.
700
701 2018-03-18 Tom Tromey <tom@tromey.com>
702
703 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
704 gdb::def_vector.
705 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
706
707 2018-03-17 Tom Tromey <tom@tromey.com>
708
709 * auto-load.c (auto_load_objfile_script_1): Use std::string.
710
711 2018-03-17 Tom Tromey <tom@tromey.com>
712
713 * target.c (class scoped_target_fd): New.
714 (target_fileio_close_cleanup): Remove.
715 (target_fileio_read_alloc_1): Use scoped_target_fd.
716
717 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
718
719 * silent-rules.mk: New.
720 * Makefile.in: Include silent-rules.mk
721 (srcdir, VPATH, top_srcdir): Move up.
722 (COMPILE): Add ECHO_CXX.
723 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
724 (init.c): Add ECHO_INIT_C.
725 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
726 (version.c): Add ECHO_GEN.
727 (printcmd.o): Add ECHO_CXX.
728 (target-float.o): Add ECHO_CXX.
729 (ada-exp.o): Add ECHO_CXX.
730 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
731 (insight$(EXEEXT)): Add ECHO_CXXLD.
732 * gnulib/configure.ac: Add AM_SILENT_RULES.
733 * gnulib/aclocal.m4: Re-generate.
734 * gnulib/configure: Re-generate.
735 * gnulib/import/Makefile.in: Re-generate.
736
737 2018-03-16 Tom Tromey <tom@tromey.com>
738
739 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
740 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
741 * utils.c (do_free_section_addr_info)
742 (make_cleanup_free_section_addr_info): Remove.
743 * symfile.h (struct other_sections): Add constructor.
744 (struct section_addr_info): Remove.
745 (section_addr_info): New typedef.
746 (struct sym_fns) <sym_offsets>: Change type of parameter.
747 (build_section_addr_info_from_objfile)
748 (relative_addr_info_to_section_offsets, addr_info_make_relative)
749 (default_symfile_offsets, symbol_file_add)
750 (symbol_file_add_from_bfd)
751 (build_section_addr_info_from_section_table): Update.
752 (alloc_section_addr_info, free_section_addr_info): Don't declare.
753 * symfile.c (alloc_section_addr_info): Remove.
754 (build_section_addr_info_from_section_table): Change return type.
755 Update.
756 (build_section_addr_info_from_bfd)
757 (build_section_addr_info_from_objfile): Likewise.
758 (free_section_addr_info): Remove.
759 (relative_addr_info_to_section_offsets): Change type of "addrs".
760 (addrs_section_compar): Now a std::sort comparator.
761 (addrs_section_sort): Change return type.
762 (addr_info_make_relative): Change type of "addrs". Update.
763 (default_symfile_offsets, syms_from_objfile_1)
764 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
765 (symbol_file_add_separate): Update.
766 (symbol_file_add): Change type of "addrs". Update.
767 (add_symbol_file_command): Update. Remove cleanups.
768 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
769 cleanups.
770 * symfile-debug.c (debug_sym_offsets): Change type of "info".
771 * solib.c (solib_read_symbols): Update.
772 * objfiles.c (objfile_relocate): Update. Remove cleanups.
773 * machoread.c (macho_symfile_offsets): Update.
774 * jit.c (jit_bfd_try_read_symtab): Update.
775
776 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
777
778 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
779 unittests/utils-selftests.c.
780 * unittests/utils-selftests.c: New file.
781
782 2018-03-14 Tom Tromey <tom@tromey.com>
783
784 PR cli/14977:
785 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
786 for NULL.
787
788 2018-03-14 Tom Tromey <tom@tromey.com>
789
790 PR cli/19918:
791 * printcmd.c (printf_pointer): Allow "-" in format.
792
793 2018-03-14 Tom Tromey <tom@tromey.com>
794
795 * printcmd.c (_initialize_printcmd): Add usage to printf.
796
797 2018-03-14 Yao Qi <qiyao@sourceware.org>
798
799 * MAINTAINERS: Update my email address.
800
801 2018-03-13 Tom Tromey <tom@tromey.com>
802
803 * machoread.c (macho_check_dsym): Change filenamep to a
804 std::string*.
805 (macho_symfile_read): Update.
806 * symfile.c (load_command): Use std::string.
807
808 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
809
810 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
811 to error message string.
812 (riscv_register_name): Use xsnprintf instead of sprintf.
813 (riscv_insn::fetch_instruction): Use gdb_assert instead of
814 internal_error.
815 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
816 error.
817 (riscv_push_dummy_call): Likewise.
818
819 2018-03-12 Tom Tromey <tom@tromey.com>
820
821 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
822 Use gdb::byte_vector.
823 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
824
825 2018-03-12 Yao Qi <yao.qi@linaro.org>
826
827 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
828 parameter type to readable_regcache.
829 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
830 the declaration.
831
832 2018-03-11 Tom Tromey <tom@tromey.com>
833
834 * dwarf2read.c (struct nextfield): Add initializers.
835 (struct nextfnfield): Remove.
836 (struct fnfieldlist): Add initializers. Remove "length" and
837 "head", use std::vector.
838 (struct decl_field_list): Remove.
839 (struct field_info): Add initializers.
840 <fields, baseclasses>: Now std::vector.
841 <nbaseclasses, nfnfields, typedef_field_list_count,
842 nested_types_list_count>: Remove.
843 (dwarf2_add_field, dwarf2_add_type_defn)
844 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
845 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
846 (process_structure_scope): Update.
847
848 2018-03-11 Tom Tromey <tom@tromey.com>
849
850 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
851 for use by std::sort.
852 (build_type_psymtabs_1): Use std::vector.
853
854 2018-03-09 Eli Zaretskii <eliz@gnu.org>
855
856 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
857 and LIBMPFR in the printed configuration.
858
859 2018-03-08 Tom Tromey <tom@tromey.com>
860
861 * source.c (get_filename_and_charpos): Use scoped_fd.
862 * nto-procfs.c (procfs_open_1): Use scoped_fd.
863 (procfs_pidlist): Likewise.
864 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
865 (iterate_over_mappings): Likewise.
866
867 2018-03-08 Tom Tromey <tom@tromey.com>
868
869 * infcall.c (struct call_return_meta_info)
870 <stack_temporaries_enabled>: Remove.
871 (get_call_return_value, call_function_by_hand_dummy): Update.
872 * thread.c (disable_thread_stack_temporaries): Remove.
873 (enable_thread_stack_temporaries): Remove.
874 (thread_stack_temporaries_enabled_p): Return bool.
875 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
876 (get_last_thread_stack_temporary): Update.
877 * eval.c (evaluate_subexp): Update.
878 * gdbthread.h (class enable_thread_stack_temporaries): Now a
879 class, not a function.
880 (value_ptr, value_vec): Remove typedefs.
881 (class thread_info) <stack_temporaries_enabled>: Now bool.
882 <stack_temporaries>: Now a std::vector.
883 (thread_stack_temporaries_enabled_p)
884 (value_in_thread_stack_temporaries): Return bool.
885
886 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
887
888 * remote.c (putpkt_binary): Fix omitted bytes reporting.
889 (getpkt_or_notif_sane_1): Likewise.
890
891 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
892
893 * build-id.c (build_id_to_debug_bfd): Use std::string.
894
895 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
896
897 * build-id.c (find_separate_debug_file_by_buildid): Return
898 std::string.
899 * build-id.h (find_separate_debug_file_by_buildid): Return
900 std::string.
901 * coffread.c (coff_symfile_read): Adjust to std::string.
902 * elfread.c (elf_symfile_read): Adjust to std::string.
903 * symfile.c (separate_debug_file_exists): Change parameter to
904 std::string.
905 (find_separate_debug_file): Return std::string.
906 (find_separate_debug_file_by_debuglink): Return std::string.
907 * symfile.h (find_separate_debug_file_by_debuglink): Return
908 std::string.
909
910 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
911
912 * common/xml-utils.c (xml_escape_text): Move code to...
913 (xml_escape_text_append): ... this new function.
914 * common/xml-utils.h (xml_escape_text_append): New declaration.
915 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
916 New function.
917 (_initialize_xml_utils): register test_xml_escape_text_append as
918 a selftest.
919
920 2018-03-07 Alan Hayward <alan.hayward@arm.com>
921
922 * defs.h: Remove MAX_REGISTER_SIZE.
923 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
924 asserts.
925 * python/py-unwind.c (pyuw_sniffer): Likewise.
926
927 2018-03-07 Tom Tromey <tom@tromey.com>
928
929 * linux-tdep.c (linux_info_proc): Update.
930 * target.h (struct target_ops) <to_fileio_readlink>: Return
931 optional<string>.
932 (target_fileio_readlink): Return optional<string>.
933 * remote.c (remote_hostio_readlink): Return optional<string>.
934 * inf-child.c (inf_child_fileio_readlink): Return
935 optional<string>.
936 * target.c (target_fileio_readlink): Return optional<string>.
937
938 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
939
940 * regcache.c (cooked_read_test): Add riscv to the list of
941 architectures that have a save_reggroup.
942
943 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
944
945 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
946 value is not a dynamic class object.
947
948 2018-03-06 Tom Tromey <tom@tromey.com>
949
950 * rust-exp.y: Formatting fixes.
951
952 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
953
954 * riscv-tdep.c (riscv_register_name): Remove target description
955 support.
956 (riscv_gdbarch_init): Remove target description check.
957
958 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
959
960 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
961 comment.
962 * riscv-tdep.h: Likewise.
963
964 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
965
966 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
967 (riscv_pseudo_register_write): Delete.
968 (riscv_gdbarch_init): Remove all use of pseudo registers.
969
970 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
971
972 * record-btrace.c (btrace_print_lines): Replace cleanup
973 parameter with RAII equivalents.
974 (btrace_insn_history): Replace cleanup with RAII equivalents.
975 * ui-out.h (make_cleanup_ui_out_list_begin_end,
976 make_cleanup_ui_out_tuple_begin_end): Remove.
977 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
978 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
979 make_cleanup_ui_out_list_begin_end): Remove.
980
981 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
982
983 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
984 parameter types to std::vector. Use bool.
985 (record_btrace_wait): Replace VEC(tp_t) with
986 std::vector<thread_info *>.
987 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
988
989 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
990
991 * record-btrace.c (record_btrace_disable_callback): Remove.
992 (struct scoped_btrace_disable): New.
993 (record_btrace_open): Use scoped_btrace_disable.
994
995 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
996
997 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
998 reading values from registers.
999
1000 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1001
1002 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
1003 where appropriate.
1004
1005 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1006
1007 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
1008 change parameter type. Use GDB's print functions, and use
1009 core_addr_to_string where appropriate.
1010 (riscv_push_dummy_call): Use core_addr_to_string where
1011 appropriate, update call to riscv_print_arg_location, and reindent
1012 a few lines.
1013 (riscv_return_value): Update call to riscv_print_arg_location.
1014
1015 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1016 Tim Newsome <tim@sifive.com>
1017 Albert Ou <a0u@eecs.berkeley.edu>
1018 Darius Rad <darius@bluespec.com>
1019
1020 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
1021 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
1022 (ALLDEPFILES): Add riscv-tdep.c
1023 * configure.tgt: Add riscv support.
1024 * riscv-tdep.c: New file.
1025 * riscv-tdep.h: New file.
1026 * NEWS: Mention new target.
1027 * MAINTAINERS: Add entry for riscv.
1028
1029 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1030
1031 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
1032 fields within aggregates.
1033
1034 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
1035
1036 * record-btrace.c (btrace_print_lines): Change type of flags to
1037 gdb_disassembly_flags.
1038
1039 2018-03-04 John Baldwin <jhb@FreeBSD.org>
1040
1041 * fbsd-nat.c: Include "inf-ptrace.h".
1042 (USE_SIGTRAP_SIGINFO): Conditionally define.
1043 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
1044 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
1045 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
1046 function.
1047 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
1048 Likewise.
1049 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
1050 Likewise.
1051 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
1052 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
1053 "supports_stopped_by_hw_breakpoint" target methods.
1054
1055 2018-03-04 John Baldwin <jhb@FreeBSD.org>
1056
1057 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
1058 * fbsd-nat.c (debug_fbsd_nat): New variable.
1059 (show_fbsd_nat_debug): New function.
1060 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
1061 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
1062
1063 2018-03-04 John Baldwin <jhb@FreeBSD.org>
1064
1065 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
1066 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
1067 prototype.
1068 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
1069 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
1070 method.
1071
1072 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1073
1074 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
1075 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
1076
1077 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1078
1079 * charset.c (struct charset_vector): New.
1080 (charsets): Change type to charset_vector.
1081 (find_charset_names): Adjust.
1082 (add_one): Adjust.
1083 (_initialize_charset): Adjust.
1084
1085 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1086
1087 * progspace.h (struct program_space) <deleted_solibs>: Change
1088 type to std::vector<std::string>.
1089 * progspace.c (clear_program_space_solib_cache): Adjust.
1090 * breakpoint.c (print_solib_event): Adjust.
1091 (check_status_catch_solib): Adjust.
1092 * solib.c (update_solib_list): Adjust.
1093 * ui-out.h (class ui_out) <field_string>: New overload.
1094 * ui-out.c (ui_out::field_string): New overload.
1095
1096 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1097
1098 * progspace.h (struct program_space): Add constructor and
1099 destructor, initialize fields.
1100 (add_program_space): Remove.
1101 * progspace.c (add_program_space): Rename to...
1102 (program_space::program_space): ... this.
1103 (release_program_space): Rename to...
1104 (program_space::~program_space): ... this.
1105 (delete_program_space): Use delete to delete program_space.
1106 (initialize_progspace): Use new to allocate program_space.
1107 * inferior.c (add_inferior_with_spaces): Likewise.
1108 (clone_inferior_command): Likewise.
1109 * infrun.c (follow_fork_inferior): Likewise.
1110 (handle_vfork_child_exec_or_exit): Likewise.
1111
1112 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1113
1114 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
1115 (delim_string_to_char_ptr_vec): Return std::vector of
1116 gdb::unique_xmalloc_ptr.
1117 (dirnames_to_char_ptr_vec_append): Take std::vector of
1118 gdb::unique_xmalloc_ptr.
1119 (dirnames_to_char_ptr_vec): Return std::vector of
1120 gdb::unique_xmalloc_ptr.
1121 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
1122 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
1123 (delim_string_to_char_ptr_vec): Return an std::vector of
1124 gdb::unique_xmalloc_ptr, adjust the code.
1125 (dirnames_to_char_ptr_vec_append): Take an std::vector of
1126 gdb::unique_xmalloc_ptr, adjust the code.
1127 (dirnames_to_char_ptr_vec): Return an std::vector of
1128 gdb::unique_xmalloc_ptr, adjust the code.
1129 * auto-load.c (auto_load_safe_path_vec): Change type to
1130 std::vector of gdb::unique_xmalloc_ptr.
1131 (auto_load_expand_dir_vars): Return an std::vector of
1132 gdb::unique_xmalloc_ptr, adjust the code.
1133 (auto_load_safe_path_vec_update): Adjust.
1134 (filename_is_in_auto_load_safe_path_vec): Adjust.
1135 (auto_load_objfile_script_1): Adjust.
1136 * build-id.c (build_id_to_debug_bfd): Adjust.
1137 * linux-thread-db.c (thread_db_load_search): Adjust.
1138 * source.c (add_path): Adjust.
1139 (openp): Adjust.
1140 * symfile.c (find_separate_debug_file): Adjust.
1141 * utils.c (do_free_char_ptr_vec): Remove.
1142 (make_cleanup_free_char_ptr_vec): Remove.
1143
1144 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
1145
1146 PR gdb/22907
1147 * common/pathstuff.c: Conditionally include "<windows.h>".
1148
1149 2018-03-01 Georg Sauthoff <mail@georg.so>
1150
1151 PR gdb/22888
1152 * gcore.in: Quote variables and switch interpreter to bash.
1153
1154 2018-03-01 Tom Tromey <tom@tromey.com>
1155
1156 * dwarf2read.c (alloc_discriminant_info): Fix default_index
1157 assertion. Add assertion for discriminant_index.
1158 (quirk_rust_enum): Use correct base type name in univariant case.
1159
1160 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
1161
1162 * record.c (get_call_history_modifiers): Return a
1163 record_print_flags.
1164 (cmd_record_call_history): Adjust.
1165 * record-btrace.c (record_btrace_call_history): Adjust.
1166 (record_btrace_call_history_range): Adjust.
1167 (record_btrace_call_history_from): Adjust.
1168 * target-debug.h (target_debug_print_record_print_flags): New.
1169 * target-delegates.c: Re-generate.
1170 * target.c (target_call_history): Change flags type.
1171 (target_call_history_from): Likewise.
1172 (target_call_history_range): Likewise.
1173 * target.h (struct target_ops) <target_call_history>: Likewise.
1174 (target_call_history_from): Likewise.
1175 (target_call_history_range): Likewise.
1176
1177 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
1178 Simon Marchi <simon.marchi@polymtl.ca>
1179
1180 * common/common-utils.c: Include "sys/stat.h".
1181 (is_regular_file): Move here from "source.c"; change return
1182 type to "bool".
1183 * common/common-utils.h (is_regular_file): New prototype.
1184 * common/pathstuff.c (contains_dir_separator): New function.
1185 * common/pathstuff.h (contains_dir_separator): New prototype.
1186 * source.c: Don't include "sys/stat.h".
1187 (is_regular_file): Move to "common/common-utils.c".
1188
1189 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
1190
1191 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
1192 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
1193 * auto-load.c: Include "common/pathstuff.h".
1194 * common/common-def.h (current_directory): Move here.
1195 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
1196 function.
1197 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
1198 prototype.
1199 * common/pathstuff.c: New file.
1200 * common/pathstuff.h: New file.
1201 * compile/compile.c: Include "common/pathstuff.h".
1202 * defs.h (current_directory): Move to "common/common-defs.h".
1203 * dwarf2read.c: Include "common/pathstuff.h".
1204 * exec.c: Likewise.
1205 * guile/scm-safe-call.c: Likewise.
1206 * linux-thread-db.c: Likewise.
1207 * main.c: Likewise.
1208 * nto-tdep.c: Likewise.
1209 * objfiles.c: Likewise.
1210 * source.c: Likewise.
1211 * symtab.c: Likewise.
1212 * utils.c: Include "common/pathstuff.h".
1213 (gdb_realpath): Move to "common/pathstuff.c".
1214 (gdb_realpath_keepfile): Likewise.
1215 (gdb_abspath): Likewise.
1216 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
1217 (gdb_realpath_keepfile): Likewise.
1218 (gdb_abspath): Likewise.
1219
1220 2018-02-28 John Baldwin <jhb@FreeBSD.org>
1221
1222 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
1223 wildcard process pid for super_resume for kernels with a
1224 specific bug.
1225
1226 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
1227
1228 * compile/compile.c (get_args): Add additional comments
1229 explaining function.
1230
1231 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
1232 Tom Tromey <tom@tromey.com>
1233
1234 * target.h (memory_write_request_s): Remove typedef. Don't define
1235 VEC.
1236 (target_write_memory_blocks): Change argument to std::vector.
1237 (struct memory_write_request): Add constructor.
1238 * target-memory.c (compare_block_starting_address): Return bool.
1239 Change argument types.
1240 (claim_memory): Change arguments to use std::vector.
1241 (split_regular_and_flash_blocks, blocks_to_erase)
1242 (compute_garbled_blocks): Likewise.
1243 (cleanup_request_data, cleanup_write_requests_vector): Remove.
1244 (target_write_memory_blocks): Change argument to std::vector.
1245 * symfile.c (struct load_section_data): Add constructor and
1246 destructor. Use std::vector for "requests".
1247 (struct load_progress_data): Add initializers.
1248 (load_section_callback): Update. Use "new".
1249 (clear_memory_write_data): Remove.
1250 (generic_load): Update.
1251
1252 2018-02-27 Alan Hayward <alan.hayward@arm.com>
1253
1254 * arch/aarch64.h: Use common/tdesc.h.
1255
1256 2018-02-26 Maciej W. Rozycki <macro@mips.com>
1257
1258 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
1259 architecture with a 64-bit ABI.
1260
1261 2018-02-26 Maciej W. Rozycki <macro@mips.com>
1262
1263 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
1264 ahead of target description loading.
1265
1266 2018-02-26 Tom Tromey <tom@tromey.com>
1267
1268 * stack.c (backtrace_command_1): Update.
1269 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
1270 of "flags".
1271 * python/py-framefilter.c (py_print_frame)
1272 (gdbpy_apply_frame_filter): Change type of "flags".
1273 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
1274 of "flags".
1275 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
1276 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
1277 * extension.h (enum frame_filter_flag): Rename from
1278 frame_filter_flags.
1279 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
1280 (apply_ext_lang_frame_filter): Change type of "flags".
1281 * extension.c (apply_ext_lang_frame_filter): Change type of
1282 "flags".
1283 * extension-priv.h (struct extension_language_ops)
1284 <apply_frame_filter>: Change type of "flags".
1285
1286 2018-02-26 Tom Tromey <tom@tromey.com>
1287
1288 PR python/16497:
1289 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
1290 off-by-one in py_end computation.
1291 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
1292 PRINT_MORE_FRAMES.
1293 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
1294 constant.
1295
1296 2018-02-26 Tom Tromey <tom@tromey.com>
1297
1298 * dwarf2read.c (struct variant_field): New.
1299 (struct nextfield) <variant>: New field.
1300 (dwarf2_add_field): Handle DW_TAG_variant_part.
1301 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
1302 discriminated union.
1303 (read_structure_type): Handle DW_TAG_variant_part.
1304 (handle_struct_member_die): New function, extracted from
1305 process_structure_scope. Handle DW_TAG_variant.
1306 (process_structure_scope): Handle discriminated unions. Call
1307 handle_struct_member_die.
1308
1309 2018-02-26 Tom Tromey <tom@tromey.com>
1310
1311 * rust-lang.h (rust_last_path_segment): Declare.
1312 * rust-lang.c (rust_last_path_segment): Now public. Change
1313 contract.
1314 (struct disr_info): Remove.
1315 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
1316 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
1317 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
1318 (rust_enum_p, rust_enum_variant): New function.
1319 (rust_underscore_fields): Remove "offset" parameter.
1320 (rust_print_enum): New function.
1321 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
1322 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
1323 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
1324 enums.
1325 (rust_internal_print_type): New function, from rust_print_type.
1326 Remove enum code.
1327 (rust_print_type): Call rust_internal_print_type.
1328 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
1329 Update enum handling.
1330 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
1331 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
1332 (rust_union_quirks): New functions.
1333 (process_full_comp_unit, process_full_type_unit): Call
1334 rust_union_quirks.
1335 (process_structure_scope): Update rust_unions if necessary.
1336
1337 2018-02-26 Tom Tromey <tom@tromey.com>
1338
1339 * value.h (value_union_variant): Declare.
1340 * valops.c (value_union_variant): New function.
1341 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
1342 (struct discriminant_info): New.
1343 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
1344 enumerator.
1345 (struct main_type) <flag_discriminated_union>: New field.
1346
1347 2018-02-26 Tom Tromey <tom@tromey.com>
1348
1349 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1350 unittests/unpack-selftests.c.
1351 * unittests/unpack-selftests.c: New file.
1352 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
1353
1354 2018-02-26 Yao Qi <yao.qi@linaro.org>
1355
1356 * dwarf2read.c (struct partial_die_info) <read>: New method.
1357 (read_partial_die): Remove the declaration.
1358 (load_partial_dies): Update.
1359 (partial_die_info::partial_die_info):
1360 (read_partial_die): Change it to partial_die_info::read.
1361
1362 2018-02-26 Yao Qi <yao.qi@linaro.org>
1363
1364 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
1365 (fixup_partial_die): Remove declaration.
1366 (scan_partial_symbols): Update.
1367 (partial_die_parent_scope): Likewise.
1368 (partial_die_full_name): Likewise.
1369 (fixup_partial_die): Change it to partial_die_info::fixup.
1370
1371 2018-02-26 Yao Qi <yao.qi@linaro.org>
1372
1373 * dwarf2read.c (read_partial_die): Update the declaration.
1374 (load_partial_dies): Caller update.
1375 (read_partial_die): Remove one argument abbrev_len.
1376
1377 2018-02-26 Yao Qi <yao.qi@linaro.org>
1378
1379 * dwarf2read.c (struct partial_die_info): Add ctor, delete
1380 assignment operator.
1381 (load_partial_dies): Use ctor and copy ctor.
1382 (read_partial_die): Update.
1383 (dwarf2_cu::find_partial_die): Use ctor.
1384
1385 2018-02-26 Yao Qi <yao.qi@linaro.org>
1386
1387 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
1388 (find_partial_die_in_comp_unit): Change it to
1389 dwarf2_cu::find_partial_die.
1390 (find_partial_die): Update.
1391
1392 2018-02-26 Yao Qi <yao.qi@linaro.org>
1393
1394 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
1395 is NULL.
1396
1397 2018-02-26 Yao Qi <yao.qi@linaro.org>
1398
1399 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
1400
1401 2018-02-26 Alan Hayward <alan.hayward@arm.com>
1402
1403 * arch/amd64.h: Use common/tdesc.h.
1404 * arch/i386.c: Likewise.
1405 * arch/i386.h: Likewise.
1406 * arch/tic6x.c: Likewise.
1407 * arch/tdesc.h: Move file from here...
1408 * common/tdesc.h: ...to here.
1409 * features/aarch64-core.c: Regenerate.
1410 * features/aarch64-fpu.c: Regenerate.
1411 * features/i386/32bit-avx.c: Regenerate.
1412 * features/i386/32bit-avx512.c: Regenerate.
1413 * features/i386/32bit-core.c: Regenerate.
1414 * features/i386/32bit-linux.c: Regenerate.
1415 * features/i386/32bit-mpx.c: Regenerate.
1416 * features/i386/32bit-pkeys.c: Regenerate.
1417 * features/i386/32bit-sse.c: Regenerate.
1418 * features/i386/64bit-avx.c: Regenerate.
1419 * features/i386/64bit-avx512.c: Regenerate.
1420 * features/i386/64bit-core.c: Regenerate.
1421 * features/i386/64bit-linux.c: Regenerate.
1422 * features/i386/64bit-mpx.c: Regenerate.
1423 * features/i386/64bit-pkeys.c: Regenerate.
1424 * features/i386/64bit-segments.c: Regenerate.
1425 * features/i386/64bit-sse.c: Regenerate.
1426 * features/i386/x32-core.c: Regenerate.
1427 * features/tic6x-c6xp.c: Regenerate.
1428 * features/tic6x-core.c: Regenerate.
1429 * features/tic6x-gp.c: Regenerate.
1430 * target-descriptions.c: Use common/tdesc.h.
1431 * target-descriptions.h: Likewise.
1432
1433 2018-02-24 Tom Tromey <tom@tromey.com>
1434
1435 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
1436 (try_thread_db_load_from_dir, thread_db_load_search): Use
1437 std::string.
1438 (info_auto_load_libthread_db_compare): Return bool. Change
1439 argument types.
1440 (info_auto_load_libthread_db): Use std::vector, std::string.
1441 Remove cleanups.
1442
1443 2018-02-24 Tom Tromey <tom@tromey.com>
1444
1445 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
1446 std::string.
1447 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
1448 std::string*.
1449 * gdbarch.c: Rebuild.
1450 * gdbarch.h: Rebuild.
1451 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
1452 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
1453 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
1454 std::string*.
1455
1456 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1457
1458 * gdbtypes.h (sect_offset): Change type to uint64_t.
1459 (sect_offset_str): New function.
1460 * dwarf2read.c (create_addrmap_from_aranges): Use
1461 sect_offset_str.
1462 (error_check_comp_unit_head): Likewise.
1463 (create_debug_type_hash_table): Likewise.
1464 (read_cutu_die_from_dwo): Likewise.
1465 (init_cutu_and_read_dies): Likewise.
1466 (init_cutu_and_read_dies_no_follow): Likewise.
1467 (process_psymtab_comp_unit_reader): Likewise.
1468 (partial_die_parent_scope): Likewise.
1469 (peek_die_abbrev): Likewise.
1470 (process_queue): Likewise.
1471 (dwarf2_physname): Likewise.
1472 (read_namespace_alias): Likewise.
1473 (read_import_statement): Likewise.
1474 (create_dwo_cu_reader): Likewise.
1475 (create_cus_hash_table): Likewise.
1476 (lookup_dwo_cutu): Likewise.
1477 (inherit_abstract_dies): Likewise.
1478 (read_func_scope): Likewise.
1479 (read_call_site_scope): Likewise.
1480 (dwarf2_add_member_fn): Likewise.
1481 (read_common_block): Likewise.
1482 (read_module_type): Likewise.
1483 (read_typedef): Likewise.
1484 (read_subrange_type): Likewise.
1485 (load_partial_dies): Likewise.
1486 (read_partial_die): Likewise.
1487 (find_partial_die): Likewise.
1488 (read_str_index): Likewise.
1489 (dwarf2_string_attr): Likewise.
1490 (build_error_marker_type): Likewise.
1491 (lookup_die_type): Likewise.
1492 (dump_die_shallow): Likewise.
1493 (follow_die_ref): Likewise.
1494 (dwarf2_fetch_die_loc_sect_off): Likewise.
1495 (dwarf2_fetch_constant_bytes): Likewise.
1496 (follow_die_sig): Likewise.
1497 (get_signatured_type): Likewise.
1498 (get_DW_AT_signature_type): Likewise.
1499 (dwarf2_find_containing_comp_unit): Likewise.
1500 (set_die_type): Likewise.
1501
1502 2018-02-21 John Baldwin <jhb@FreeBSD.org>
1503
1504 * arch/aarch64.c: Include "common-defs.h".
1505 * arch/amd64.c: Likewise.
1506 * arch/i386.c: Likewise.
1507
1508 2018-02-21 Tom Tromey <tom@tromey.com>
1509
1510 * value.h: (extract_field_op): Update.
1511 * eval.c (extract_field_op): Return a const char *.
1512 * expression.h (parse_expression_for_completion): Update.
1513 * completer.c (complete_expression): Update.
1514 (add_struct_fields): Make fieldname const.
1515 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
1516 (mark_completion_tag, parse_exp_in_context_1): Update.
1517 (parse_expression_for_completion): Change "name" to
1518 unique_xmalloc_ptr*.
1519
1520 2018-02-21 Tom Tromey <tom@tromey.com>
1521
1522 * infcall.c (call_function_by_hand_dummy): Use std::vector.
1523
1524 2018-02-21 Yao Qi <yao.qi@linaro.org>
1525
1526 * avr-tdep.c (avr_read_pc): Change parameter type to
1527 readable_regcache.
1528 * gdbarch.sh (read_pc): Likewise.
1529 * gdbarch.c: Re-generated.
1530 * gdbarch.h: Re-generated.
1531 * hppa-tdep.c (hppa_read_pc): Change parameter type to
1532 readable_regcache.
1533 * ia64-tdep.c (ia64_read_pc): Likewise.
1534 * mips-tdep.c (mips_read_pc): Likewise.
1535 * spu-tdep.c (spu_read_pc): Likewise.
1536
1537 2018-02-21 Yao Qi <yao.qi@linaro.org>
1538
1539 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
1540 * regcache-dump.c: New file.
1541 * regcache.c: Move register_dump to regcache-dump.c.
1542 (maintenance_print_registers): Likewise.
1543 (maintenance_print_raw_registers): Likewise.
1544 (maintenance_print_cooked_registers): Likewise.
1545 (maintenance_print_register_groups): Likewise.
1546 (maintenance_print_remote_registers): Likewise.
1547 (_initialize_regcache): Likewise.
1548 * regcache.h (register_dump): Moved from regcache.c.
1549
1550 2018-02-21 Yao Qi <yao.qi@linaro.org>
1551
1552 * regcache.c (regcache::regcache): Update.
1553 (regcache::invalidate): Move it to detached_regcache::invalidate.
1554 (get_thread_arch_aspace_regcache): Update.
1555 (regcache::raw_update): Update.
1556 (regcache::cooked_read): Remove some code.
1557 (regcache::cooked_read_value): Likewise.
1558 (regcache::raw_write): Remove assert on m_readonly_p.
1559 (regcache::raw_supply_integer): Move it to
1560 detached_regcache::raw_supply_integer.
1561 (regcache::raw_supply_zeroed): Likewise.
1562 * regcache.h (detached_regcache) <raw_supply_integer>: New
1563 declaration.
1564 <raw_supply_zeroed, invalidate>: Likewise.
1565 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
1566 <invalidate>: Likewise.
1567 <m_readonly_p>: Removed.
1568
1569 2018-02-21 Yao Qi <yao.qi@linaro.org>
1570
1571 * infcmd.c (get_return_value): Let stop_regs point to
1572 get_current_regcache.
1573 * regcache.c (regcache::regcache): Remove.
1574 (register_dump_reg_buffer): New class.
1575 (regcache_print): Adjust.
1576 * regcache.h (regcache): Remove constructors.
1577
1578 2018-02-21 Yao Qi <yao.qi@linaro.org>
1579
1580 * regcache.c (class register_dump): New class.
1581 (register_dump_regcache, register_dump_none): New class.
1582 (register_dump_remote, register_dump_groups): New class.
1583 (regcache_print): Update.
1584 * regcache.h (regcache_dump_what): Move it to regcache.c.
1585 (regcache) <dump>: Remove.
1586
1587 2018-02-21 Yao Qi <yao.qi@linaro.org>
1588
1589 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
1590 reg_buffer_rw *.
1591 (jit_unwind_reg_set_impl): Call raw_supply.
1592 (jit_frame_sniffer): Use reg_buffer_rw.
1593 * record-full.c (record_full_core_regbuf): Change its type.
1594 (record_full_core_open_1): Use reg_buffer_rw.
1595 (record_full_close): Likewise.
1596 (record_full_core_fetch_registers): Use regcache->raw_supply.
1597 (record_full_core_store_registers): Likewise.
1598 * regcache.c (regcache::get_register_status): Move it to
1599 reg_buffer.
1600 (regcache_raw_set_cached_value): Remove.
1601 (regcache::raw_set_cached_value): Remove.
1602 (regcache::raw_write): Call raw_supply.
1603 (regcache::raw_supply): Move it to reg_buffer_rw.
1604 * regcache.h (regcache_raw_set_cached_value): Remove.
1605 (reg_buffer_rw): New class.
1606
1607 2018-02-21 Yao Qi <yao.qi@linaro.org>
1608
1609 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
1610 readonly_detached_regcache.
1611 (dummy_frame_prev_register): Use regcache->cooked_read.
1612 * frame.c (frame_save_as_regcache): Change return type.
1613 (frame_pop): Update.
1614 * frame.h (frame_save_as_regcache): Update declaration.
1615 * inferior.h (get_infcall_suspend_state_regcache): Update
1616 declaration.
1617 * infrun.c (infcall_suspend_state) <registers>: use
1618 readonly_detached_regcache.
1619 (save_infcall_suspend_state): Don't use regcache_dup.
1620 (get_infcall_suspend_state_regcache): Change return type.
1621 * linux-fork.c (struct fork_info) <savedregs>: Change to
1622 readonly_detached_regcache.
1623 <pc>: New field.
1624 (fork_save_infrun_state): Don't use regcache_dup.
1625 (info_checkpoints_command): Adjust.
1626 * mi/mi-main.c (register_changed_p): Update declaration.
1627 (mi_cmd_data_list_changed_registers): Use
1628 readonly_detached_regcache.
1629 (register_changed_p): Change parameter type to
1630 readonly_detached_regcache.
1631 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
1632 readonly_detached_regcache.
1633 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
1634 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
1635 New.
1636 (regcache::save): Move it to reg_buffer.
1637 (regcache::restore): Change parameter type.
1638 (regcache_dup): Remove.
1639 * regcache.h (reg_buffer) <save>: New method.
1640 (readonly_detached_regcache): New class.
1641 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
1642 readonly_detached_regcache.
1643 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
1644
1645 2018-02-21 Yao Qi <yao.qi@linaro.org>
1646
1647 * frame.c (frame_save_as_regcache): Use regcache method save.
1648 (frame_pop): Use regcache method restore.
1649 * infrun.c (restore_infcall_suspend_state): Likewise.
1650 * linux-fork.c (fork_load_infrun_state): Likewise.
1651 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
1652 save.
1653 * regcache.c (regcache_save): Remove.
1654 (regcache::restore): More asserts.
1655 (regcache_cpy): Remove.
1656 * regcache.h (regcache_save): Remove the declaration.
1657 (regcache::restore): Move from private to public.
1658 Remove the friend declaration of regcache_cpy.
1659 (regcache_cpy): Remove declaration.
1660
1661 2018-02-21 Yao Qi <yao.qi@linaro.org>
1662
1663 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
1664 parameter type to 'readable_regcache *'.
1665 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
1666 * arm-tdep.c (arm_neon_quad_read): Likewise.
1667 (arm_pseudo_read): Likewise.
1668 * avr-tdep.c (avr_pseudo_register_read): Likewise.
1669 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
1670 * frv-tdep.c (frv_pseudo_register_read): Likewise.
1671 * gdbarch.c: Re-generated.
1672 * gdbarch.h: Re-generated.
1673 * gdbarch.sh (pseudo_register_read): Change parameter type to
1674 'readable_regcache *'.
1675 (pseudo_register_read_value): Likewise.
1676 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
1677 (h8300_pseudo_register_read): Likewise.
1678 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
1679 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
1680 (i386_pseudo_register_read_into_value): Likewise.
1681 (i386_pseudo_register_read_value): Likewise.
1682 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
1683 declaration.
1684 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
1685 * m32c-tdep.c (m32c_raw_read): Likewise.
1686 (m32c_read_flg): Likewise.
1687 (m32c_banked_register): Likewise.
1688 (m32c_banked_read): Likewise.
1689 (m32c_sb_read): Likewise.
1690 (m32c_part_read): Likewise.
1691 (m32c_cat_read): Likewise.
1692 (m32c_r3r2r1r0_read): Likewise.
1693 (m32c_pseudo_register_read): Likewise.
1694 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
1695 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
1696 (mep_pseudo_cr64_read): Likewise.
1697 (mep_pseudo_register_read): Likewise.
1698 * mips-tdep.c (mips_pseudo_register_read): Likewise.
1699 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
1700 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
1701 * regcache.c (regcache::raw_read): Move it to readable_regcache.
1702 (regcache::cooked_read): Likewise.
1703 (regcache::cooked_read_value): Likewise.
1704 (regcache_cooked_read_signed):
1705 (regcache::cooked_read): Likewise.
1706 * regcache.h (readable_regcache): New class.
1707 (regcache): Inherit readable_regcache. Move some methods to
1708 readable_regcache.
1709 * rl78-tdep.c (rl78_pseudo_register_read): Change
1710 parameter type to 'readable_regcache *'.
1711 * rs6000-tdep.c (do_regcache_raw_read): Remove.
1712 (e500_pseudo_register_read): Change parameter type to
1713 'readable_regcache *'.
1714 (dfp_pseudo_register_read): Likewise.
1715 (vsx_pseudo_register_read): Likewise.
1716 (efpr_pseudo_register_read): Likewise.
1717 * s390-tdep.c (s390_pseudo_register_read): Likewise.
1718 * sh-tdep.c (sh_pseudo_register_read): Likewise.
1719 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
1720 (sh64_pseudo_register_read): Likewise.
1721 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
1722 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
1723 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
1724 (spu_pseudo_register_read): Likewise.
1725 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
1726 (xtensa_pseudo_register_read): Likewise.
1727
1728 2018-02-21 Yao Qi <yao.qi@linaro.org>
1729
1730 * regcache.c (regcache::regcache): Call reg_buffer ctor.
1731 (regcache::arch): Move it to reg_buffer::arch.
1732 (regcache::register_buffer): Likewise.
1733 (regcache::assert_regnum): Likewise.
1734 (regcache::num_raw_registers): Likewise.
1735 * regcache.h (reg_buffer): New class.
1736 (regcache): Inherit reg_buffer.
1737
1738 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
1739
1740 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
1741 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
1742
1743 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
1744
1745 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
1746
1747 2018-02-19 Alan Hayward <alan.hayward@arm.com>
1748
1749 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
1750 (SFILES): Remove common/*.c files.
1751 (COMMON_OBS): Remove some *.o files built from common/*.c files.
1752 * common/common.host: Add common reference.
1753 * configure.ac: Likewise.
1754 * configure: Regenerate.
1755
1756 2018-02-16 Yao Qi <yao.qi@linaro.org>
1757
1758 * block.c (block_namespace_info): Inherit allocate_on_obstack.
1759 (block_initialize_namespace): Use new.
1760 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
1761 (dwarf2_free_objfile): Use delete.
1762 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
1763 (copy_type_recursive): Use new.
1764 * gdb_obstack.h (allocate_on_obstack): New.
1765
1766 2018-02-15 Yao Qi <yao.qi@linaro.org>
1767
1768 PR gdb/22849
1769 * inferior.c (exit_inferior_1): Reset inf->control.
1770
1771 2018-02-15 Joel Brobecker <brobecker@adacore.com>
1772
1773 * ada-lang.c (ada_to_fixed_value_create): Delete advance
1774 declaration.
1775
1776 2018-02-14 Pedro Alves <palves@redhat.com>
1777
1778 * frame-unwind.c (frame_unwind_try_unwinder): Always call
1779 frame_cleanup_after_sniffer on exception.
1780
1781 2018-02-14 Tom Tromey <tom@tromey.com>
1782
1783 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
1784 const.
1785 (solib_bfd_open): Make pathname const.
1786 * solib.c (solib_bfd_open): Make pathname const.
1787 * solib-spu.c (spu_bfd_fopen): Make name const.
1788 (spu_bfd_open): Make pathname const.
1789 * solib-darwin.c (darwin_bfd_open): Make pathname const.
1790 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
1791
1792 2018-02-14 Tom Tromey <tom@tromey.com>
1793
1794 * symfile.c (symfile_bfd_open): Update.
1795 * source.h (openp, source_full_path_of, find_and_open_source):
1796 Change argument type to unique_xmalloc_ptr.
1797 * source.c (openp): Take a unique_xmalloc_ptr.
1798 (source_full_path_of, find_and_open_source): Likewise.
1799 (open_source_file, symtab_to_fullname): Update.
1800 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
1801 unique_xmalloc_ptr.
1802 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
1803 (exec_file_find): Update.
1804 * psymtab.c (psymtab_to_fullname): Update.
1805 * nto-tdep.h (nto_find_and_open_solib): Update.
1806 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
1807 unique_xmalloc_ptr.
1808 * exec.c (exec_file_attach): Update.
1809 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
1810 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
1811
1812 2018-02-14 Tom Tromey <tom@tromey.com>
1813
1814 * solib.c: Include source.h.
1815 * nto-tdep.c: Include source.h.
1816 * mi/mi-cmd-env.c: Include source.h.
1817 * infcmd.c: Include source.h.
1818 * exec.c: Include source.h.
1819 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
1820 (add_path, directory_switch, source_path, init_source_path): Move
1821 declarations...
1822 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
1823 (add_path, directory_switch, source_path, init_source_path):
1824 ...here.
1825
1826 2018-02-14 Tom Tromey <tom@tromey.com>
1827
1828 * solist.h (exec_file_find, solib_find): Return
1829 unique_xmalloc_ptr.
1830 (solib_bfd_fopen): Take a const char *.
1831 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
1832 (exec_file_find, solib_find): Likewise.
1833 (solib_bfd_fopen): Do not take ownership of "pathname".
1834 (solib_bfd_open): Use unique_xmalloc_ptr.
1835 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
1836 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
1837 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
1838 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
1839
1840 2018-02-14 Joel Brobecker <brobecker@adacore.com>
1841
1842 * ada-lang.c (name_match_type_from_name): Remove reference to
1843 ada_name_for_lookup in function's documentation.
1844 * ada-lang.h (ada_name_for_lookup): Delete declaration.
1845
1846 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
1847
1848 * defs.h (enum openp_flags): New enum.
1849 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
1850 Move to enum openp_flags.
1851 (openp_flags): New enum flags.
1852 (openp): Change parameter type to openp_flags.
1853 * source.c (openp): Change parameter type to openp_flags.
1854 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
1855 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
1856
1857 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
1858
1859 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
1860 per-command.
1861
1862 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
1863
1864 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
1865 into...
1866 (class dwarf2_queue_guard): ...the destructor of this new class.
1867 (dw2_do_instantiate_symtab): Create instance of the new class
1868 dwarf2_queue_guard, remove cleanup.
1869
1870 2018-02-09 Tom Tromey <tom@tromey.com>
1871
1872 * source.c (find_source_lines): Don't reference past the end of
1873 the vector.
1874
1875 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1876
1877 * remote.c (remote_btrace_maybe_reopen): Change error message.
1878 * btrace.c (btrace_enable): Likewise.
1879 (parse_xml_btrace): Likewise.
1880 (parse_xml_btrace_conf): Likewise.
1881
1882 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1883
1884 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
1885 (linux_enable_pt, linux_enable_bts): Call
1886 diagnose_perf_event_open_fail.
1887
1888 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1889
1890 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
1891 Remove parameter and change return type. Update callers. Move it.
1892 (linux_enable_bts, linux_enable_pt): Improve error message.
1893 (linux_enable_pt): Remove zero buffer size check.
1894 (linux_enable_btrace): Improve error messages. Remove NULL return
1895 check.
1896
1897 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1898
1899 * btrace.c (btrace_enable): Remove target_supports_btrace call.
1900 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
1901 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
1902 (linux_supports_pt, linux_supports_btrace): Remove.
1903 (linux_enable_bts): Call cpu_supports_bts.
1904 * nat/linux-btrace.h (linux_supports_btrace): Remove.
1905 * remote.c (remote_supports_btrace): Remove.
1906 (init_remote_ops): Remove remote_supports_btrace.
1907 * target-delegates.c: Regenerated.
1908 * target.c (target_supports_btrace): Remove.
1909 * target.h (target_ops) <to_supports_btrace>: Remove
1910 (target_supports_btrace): Remove.
1911 * x86-linux-nat.c (x86_linux_create_target): Remove
1912 linux_supports_btrace.
1913
1914 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1915
1916 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
1917 btrace failed.
1918 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
1919 exception and use message in own exception.
1920
1921 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1922
1923 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
1924 (perf_event_pt_event_type): Use gdb_file_up.
1925 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
1926 scoped_fd, and scoped_mmap.
1927
1928 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1929
1930 * common/scoped_mmap.h: New.
1931 * unittests/scoped_mmap-selftest.c: New.
1932 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1933 unittests/scoped_mmap-selftest.c.
1934
1935 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1936
1937 * common/scoped_fd.h: New.
1938 * unittests/scoped_fd-selftest.c: New.
1939 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1940 unittests/scoped_fd-selftest.c.
1941
1942 2018-02-09 Tom Tromey <tom@tromey.com>
1943
1944 * auto-load.c (auto_load_section_scripts): Use
1945 gdb::unique_xmalloc_ptr.
1946
1947 2018-02-09 Tom Tromey <tom@tromey.com>
1948
1949 * auto-load.c (execute_script_contents): Use std::string.
1950
1951 2018-02-09 Joel Brobecker <brobecker@adacore.com>
1952
1953 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
1954 Python function, rather than a new command.
1955
1956 2018-02-08 Tom Tromey <tom@tromey.com>
1957
1958 * solib.c (solib_find_1): Use std::string.
1959 (solib_bfd_fopen): Use unique_xmalloc_ptr.
1960
1961 2018-02-08 Tom Tromey <tom@tromey.com>
1962
1963 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
1964
1965 2018-02-08 Tom Tromey <tom@tromey.com>
1966
1967 * source.c (find_source_lines): Use gdb::def_vector.
1968
1969 2018-02-08 Tom Tromey <tom@tromey.com>
1970
1971 * macrocmd.c (struct temporary_macro_definition): New.
1972 (macro_define_command): Use temporary_macro_definition. Remove
1973 cleanups.
1974 (free_macro_definition_ptr): Remove.
1975
1976 2018-02-08 Tom Tromey <tom@tromey.com>
1977
1978 * macroexp.c (maybe_expand): Use std::string.
1979
1980 2018-02-08 Tom Tromey <tom@tromey.com>
1981
1982 * macroexp.c (struct macro_buffer): Add initializers for some
1983 members.
1984 (init_buffer, init_shared_buffer, free_buffer)
1985 (free_buffer_return_text): Remove.
1986 (macro_buffer): New constructors.
1987 (~macro_buffer): New destructor.
1988 (macro_buffer::set_shared): New method.
1989 (macro_buffer::resize_buffer, macro_buffer::appendc)
1990 (macro_buffer::appendmem): Now methods, not free functions.
1991 (set_token, append_tokens_without_splicing, stringify)
1992 (macro_stringify): Update.
1993 (gather_arguments): Change return type. Remove argc_p argument,
1994 add args_ptr argument. Use std::vector.
1995 (substitute_args): Remove argc argument. Accept std::vector.
1996 (expand): Update. Use std::vector.
1997 (scan, macro_expand, macro_expand_next): Update.
1998
1999 2018-02-08 Tom Tromey <tom@tromey.com>
2000
2001 * symtab.c (default_collect_symbol_completion_matches_break_on):
2002 Use unique_xmalloc_ptr.
2003 * macroscope.h: (sal_macro_scope, user_macro_scope)
2004 (default_macro_scope): Return unique_xmalloc_ptr.
2005 * macroscope.c (sal_macro_scope, user_macro_scope)
2006 (default_macro_scope): Return unique_xmalloc_ptr.
2007 * macroexp.h (macro_expand, macro_expand_once): Return
2008 unique_xmalloc_ptr.
2009 * macroexp.c (macro_expand, macro_expand_once): Return
2010 unique_xmalloc_ptr.
2011 * macrocmd.c (macro_expand_command, macro_expand_once_command)
2012 (info_macro_command, info_macros_command): Use
2013 unique_xmalloc_ptr.
2014 * compile/compile-c-support.c (write_macro_definitions): Use
2015 unique_xmalloc_ptr.
2016 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
2017
2018 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
2019
2020 * value.c (value_static_field): Assign field type instead of
2021 containing type when returning an optimized out value.
2022
2023 2018-02-06 Yao Qi <yao.qi@linaro.org>
2024
2025 * ft32-tdep.c (ft32_read_pc): Remove.
2026 (ft32_write_pc): Remove.
2027 (ft32_gdbarch_init): Update.
2028 * m32r-tdep.c (m32r_read_pc): Remove.
2029 (m32r_gdbarch_init): Update.
2030 * mep-tdep.c (mep_read_pc): Remove.
2031 (mep_gdbarch_init): Update.
2032 * microblaze-tdep.c (microblaze_write_pc): Remove.
2033 (microblaze_gdbarch_init): Update.
2034 * mn10300-tdep.c (mn10300_read_pc): Remove.
2035 (mn10300_write_pc): Remove.
2036 (mn10300_gdbarch_init): Update.
2037 * moxie-tdep.c (moxie_read_pc): Remove.
2038 (moxie_write_pc): Remove.
2039 (moxie_gdbarch_init): Update.
2040
2041 2018-02-06 Yao Qi <yao.qi@linaro.org>
2042
2043 * expprint.c (print_subexp_standard): Handle
2044 OP_F77_UNDETERMINED_ARGLIST.
2045 (dump_subexp_body_standard): Likewise.
2046
2047 2018-02-05 Alan Hayward <alan.hayward@arm.com>
2048
2049 * target-descriptions.c (tdesc_element_visitor) Add empty
2050 implementations.
2051 (tdesc_type): Move make_gdb_type from here.
2052 (tdesc_type_builtin): Likewise.
2053 (tdesc_type_vector): Likewise.
2054 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
2055 (make_gdb_type_struct): Move from tdesc_type_with_fields.
2056 (make_gdb_type_union): Likewise.
2057 (make_gdb_type_flags): Likewise.
2058 (make_gdb_type_enum): Likewise.
2059 (make_gdb_type): New function.
2060 (tdesc_register_type): Use static make_gdb_type.
2061
2062 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
2063
2064 * infcmd.c (default_print_one_register_info): Align natural-format
2065 column values consistently one under another.
2066 (pad_to_column): New function.
2067
2068 2018-02-05 Joel Brobecker <brobecker@adacore.com>
2069
2070 * dwarf2read.c (dwarf2_physname): Move commment.
2071
2072 2018-02-01 Leszek Swirski <leszeks@google.com>
2073
2074 * varobj.c (varobj_formatted_print_options): Allow recursive
2075 pretty printing if pretty printing is enabled.
2076
2077 2018-02-01 Leszek Swirski <leszeks@google.com>
2078
2079 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
2080 names after a structop as a filename.
2081
2082 2018-02-01 Yao Qi <yao.qi@linaro.org>
2083
2084 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
2085 (arm_record_coproc_data_proc): Likewise.
2086
2087 2018-02-01 Yao Qi <yao.qi@linaro.org>
2088
2089 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
2090
2091 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
2092
2093 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
2094 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
2095
2096 2018-01-31 Pedro Alves <palves@redhat.com>
2097
2098 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
2099 * inflow.c (child_terminal_save_inferior): Wrap reference to
2100 tcgetpgrp in HAVE_TERMIOS_H.
2101 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
2102 _WIN32.
2103 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
2104 always iterate over all inferiors.
2105 (gdbsim_cntrl_c): Adjust.
2106 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
2107
2108 2018-01-31 Joel Brobecker <brobecker@adacore.com>
2109
2110 * gdbtypes.c (lookup_array_range_type): Make sure the array's
2111 index type is objfile-owned if the element type is as well.
2112
2113 2018-01-31 Joel Brobecker <brobecker@adacore.com>
2114
2115 GDB 8.1 released.
2116
2117 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
2118
2119 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
2120 "features/s390x-linux64.c".
2121 (_initialize_s390_linux_tdep): Remove initialization of tdescs
2122 s390_linux32 and s390x_linux64.
2123 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
2124 default tdesc.
2125 * s390-tdep.c: Include "features/s390-linux32.c" and
2126 "features/s390x-linux64.c".
2127 (s390_tdesc_valid): Add check for tdesc_has_registers.
2128 (s390_gdbarch_init): Make sure there is always a valid tdesc.
2129 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
2130 tdesc_s390x_linux64.
2131 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
2132 tdesc_s390x_linux64 to...
2133 * s390-tdep.h: ...here.
2134
2135 2018-01-30 Pedro Alves <palves@redhat.com>
2136
2137 PR gdb/13211
2138 * config.in, configure: Regenerate.
2139 * configure.ac: Check for getpgid.
2140 * go32-nat.c (go32_pass_ctrlc): New.
2141 (go32_target): Install it.
2142 * inf-child.c (inf_child_target): Install
2143 child_terminal_save_inferior, child_pass_ctrlc and
2144 child_interrupt.
2145 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
2146 (inf_ptrace_target): No longer install it.
2147 * infcmd.c (interrupt_target_1): Adjust.
2148 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
2149 (child_interrupt): Declare.
2150 (inferior::terminal_state): New.
2151 * inflow.c (struct terminal_info): Update comments.
2152 (inferior_process_group): Delete.
2153 (terminal_is_ours): Delete.
2154 (gdb_tty_state): New.
2155 (child_terminal_init): Adjust.
2156 (is_gdb_terminal, sharing_input_terminal_1)
2157 (sharing_input_terminal): New functions.
2158 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
2159 Set the process's actual process group in the foreground if
2160 possible. Handle is_ours_for_output/is_ours distinction. Don't
2161 mark terminal as the inferior's if not sharing GDB's terminal.
2162 Don't check attach_flag.
2163 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
2164 pass down a target_terminal_state.
2165 (child_terminal_save_inferior): New, factored out from ...
2166 (child_terminal_ours_1): ... this. Handle
2167 target_terminal_state::is_ours_for_output.
2168 (child_interrupt, child_pass_ctrlc): New.
2169 (inflow_inferior_exit): Clear the inferior's terminal_state.
2170 (copy_terminal_info): Copy the inferior's terminal state.
2171 (_initialize_inflow): Remove reference to terminal_is_ours.
2172 * inflow.h (inferior_process_group): Delete.
2173 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
2174 * procfs.c (procfs_target): Don't install procfs_interrupt.
2175 (procfs_interrupt): Delete.
2176 * remote.c (remote_serial_quit_handler): Adjust.
2177 (remote_interrupt): Remove ptid parameter. Adjust.
2178 * target-delegates.c: Regenerate.
2179 * target.c: Include "terminal.h".
2180 (target_terminal::terminal_state): Rename to ...
2181 (target_terminal::m_terminal_state): ... this.
2182 (target_terminal::init): Adjust.
2183 (target_terminal::inferior): Adjust to per-inferior
2184 terminal_state.
2185 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
2186 (target_terminal::ours, target_terminal::ours_for_output): Use
2187 target_terminal_is_ours_kind.
2188 (target_interrupt): Remove ptid parameter. Adjust.
2189 (default_target_pass_ctrlc): Adjust.
2190 * target.h (target_ops::to_terminal_save_inferior): New field.
2191 (target_ops::to_interrupt): Remove ptid_t parameter.
2192 (target_interrupt): Remove ptid_t parameter. Update comment.
2193 (target_pass_ctrlc): Update comment.
2194 * target/target.h (target_terminal_state): New scoped enum,
2195 factored out of ...
2196 (target_terminal::terminal_state): ... here.
2197 (target_terminal::inferior): Update comments.
2198 (target_terminal::restore_inferior): New.
2199 (target_terminal::is_inferior, target_terminal::is_ours)
2200 (target_terminal::is_ours_for_output): Adjust.
2201 (target_terminal::scoped_restore_terminal_state): Adjust to
2202 rename, and call restore_inferior() instead of inferior().
2203 (target_terminal::scoped_restore_terminal_state::m_state): Change
2204 type.
2205 (target_terminal::terminal_state): Rename to ...
2206 (target_terminal::m_terminal_state): ... this and change type.
2207
2208 2018-01-30 Pedro Alves <palves@redhat.com>
2209
2210 * linux-nat.c (wait_for_signal): New function.
2211 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
2212 directly.
2213 (async_terminal_is_ours)
2214 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
2215 (linux_nat_add_target): Don't override
2216 to_terminal_inferior/to_terminal_ours.
2217
2218 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
2219
2220 * remote.c (remote_follow_fork): Don't call "detach_inferior".
2221
2222 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
2223
2224 * dwarf2read.c (free_dwo_files): Add forward-declaration.
2225 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
2226 dwarf2_per_objfile_free here.
2227 (dwarf2_per_objfile_free): Remove.
2228 (_initialize_dwarf2_read): Don't register
2229 dwarf2_per_objfile_free as a registry cleanup.
2230
2231 2018-01-27 Eli Zaretskii <eliz@gnu.org>
2232
2233 Avoid compilation errors in MinGW native builds
2234
2235 The error is triggered by including python-internal.h, and the
2236 error message is:
2237
2238 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
2239 from build-gnulib/import/math.h:27,
2240 from d:/usr/Python26/include/pyport.h:235,
2241 from d:/usr/Python26/include/Python.h:58,
2242 from python/python-internal.h:94,
2243 from python/py-arch.c:24:
2244 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
2245 using ::hypot;
2246 ^~~~~
2247
2248 This happens because Python headers define 'hypot' to expand t
2249 '_hypot' in the Windows builds.
2250 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
2251 'hypoth'. This avoids a compilation error.
2252
2253 2018-01-26 Alan Hayward <alan.hayward@arm.com>
2254
2255 * MAINTAINERS (Write After Approval): Fix ordering.
2256
2257 2018-01-26 Alan Hayward <alan.hayward@arm.com>
2258
2259 * MAINTAINERS (Write After Approval): Add Alan Hayward.
2260
2261 2018-01-26 Alan Modra <amodra@gmail.com>
2262
2263 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
2264 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
2265 Remove nop. Make const. Comment.
2266 (powerpc32_plt_stub_so_2): New.
2267 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
2268 Correct count. Update uses.
2269 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
2270 Move common code reading PLT entry word. Correct
2271 powerpc32_plt_stub PLT address calculation.
2272 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
2273 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
2274 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
2275 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
2276 (ppc64_standard_linkage8): Likewise.
2277 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
2278 Correct insns description.
2279 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
2280
2281 2018-01-24 Pedro Alves <palves@redhat.com>
2282
2283 GCC PR libstdc++/83906
2284 * gdbtypes.c (operator==(const dynamic_prop &,
2285 const dynamic_prop &)): New.
2286 (operator==(const range_bounds &, const range_bounds &)): New.
2287 (check_types_equal): Use them instead of memcmp.
2288 * gdbtypes.h (operator==(const dynamic_prop &,
2289 const dynamic_prop &)): Declare.
2290 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
2291 (operator==(const range_bounds &, const range_bounds &)): Declare.
2292 (operator!=(const range_bounds &, const range_bounds &)): Declare.
2293
2294 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2295
2296 * s390-linux-tdep.c (s390_record_address_mask)
2297 (s390_record_calc_disp_common, s390_record_calc_disp)
2298 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
2299 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
2300 (s390_process_record): Move to s390-tdep.c.
2301 (s390_linux_init_abi_any): Adjust.
2302 * s390-tdep.c (s390_record_address_mask)
2303 (s390_record_calc_disp_common, s390_record_calc_disp)
2304 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
2305 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
2306 (s390_process_record): Moved from s390-linux-tdep.c
2307 (s390_gdbarch_init): Adjust.
2308
2309 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2310
2311 * s390-linux-nat.c (s390-tdep.h): New include.
2312 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
2313 (HFILES_NO_SRCDIR): Add s390-tdep.h.
2314 (ALLDEPFILES): Add s390-tdep.c.
2315 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
2316 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
2317 * s390-tdep.h: ...this. New file.
2318 * s390-linux-tdep.c (s390-tdep.h): New include.
2319 (_initialize_s390_tdep): Rename to...
2320 (_initialize_s390_linux_tdep): ...this and adjust.
2321 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
2322 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
2323 s390-tdep.h.
2324 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
2325 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
2326 (s390_is_partial_instruction, s390_software_single_step)
2327 (is_non_branch_ril, s390_displaced_step_copy_insn)
2328 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
2329 (s390_prologue_data, s390_addr, s390_store, s390_load)
2330 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
2331 (s390_register_call_saved, s390_guess_tracepoint_registers)
2332 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
2333 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
2334 (s390_pseudo_register_name, s390_pseudo_register_type)
2335 (s390_pseudo_register_read, s390_pseudo_register_write)
2336 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
2337 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
2338 (s390_addr_bits_remove, s390_address_class_type_flags)
2339 (s390_address_class_type_flags_to_name)
2340 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
2341 (s390_function_arg_float, s390_function_arg_vector)
2342 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
2343 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
2344 (s390_frame_align, s390_register_return_value, s390_return_value)
2345 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
2346 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
2347 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
2348 (s390_trad_frame_prev_register, s390_unwind_cache)
2349 (s390_prologue_frame_unwind_cache)
2350 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
2351 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
2352 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
2353 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
2354 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
2355 (s390_frame_base_address, s390_local_base_address)
2356 (s390_frame_base, s390_gcc_target_options)
2357 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
2358 (s390_validate_reg_range, s390_tdesc_valid)
2359 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
2360 * s390-tdep.c: ...this. New file.
2361
2362 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2363
2364 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
2365 (s390_process_record, s390_gdbarch_tdep_alloc)
2366 (s390_linux_init_abi_any): Use/set new hook.
2367
2368 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2369
2370 * s390-linux-tdep.c (osabi.h): New include.
2371 (s390_linux_init_abi_31, s390_linux_init_abi_64)
2372 (s390_linux_init_abi_any): New functions.
2373 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
2374
2375 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2376
2377 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
2378 tdesc_has_registers check
2379
2380 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2381
2382 * s390-linux-tdep.c (s390_tdesc_valid): New function.
2383 (s390_validate_reg_range): New macro.
2384 (s390_gdbarch_init): Adjust.
2385
2386 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2387
2388 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
2389 (s390_gdbarch_tdep_alloc): Adjust.
2390 (s390_gdbarch_init): Adjust.
2391
2392 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2393
2394 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
2395 <have_tdb>: Change type to bool.
2396 (s390_gdbarch_tdep_alloc): Adjust.
2397 (s390_gdbarch_init): Adjust.
2398
2399 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2400
2401 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
2402 (gdbarch_tdep) <have_upper, have_vx>: New fields.
2403 (s390_gdbarch_tdep_alloc): New function.
2404 (s390_gdbarch_init): Allocate tdep at start and use its fields
2405 instead of separate variables.
2406
2407 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2408
2409 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
2410 when looking for cached gdbarch and add comment for remaining.
2411
2412 2018-01-22 Pedro Alves <palves@redhat.com>
2413 Sergio Durigan Junior <sergiodj@redhat.com>
2414
2415 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
2416 case.
2417
2418 2018-01-22 Maciej W. Rozycki <macro@mips.com>
2419
2420 * MAINTAINERS: Update my company e-mail address.
2421
2422 2018-01-22 Yao Qi <yao.qi@linaro.org>
2423
2424 * regcache.c (cooked_write_test): New function.
2425 (_initialize_regcache): Register the test.
2426
2427 2018-01-22 Yao Qi <yao.qi@linaro.org>
2428
2429 * ia64-tdep.c (ia64_pseudo_register_read): Call
2430 regcache->cooked_read instead of regcache_cooked_read_unsigned.
2431 * m32c-tdep.c (m32c_cat_read): Likewise.
2432 (m32c_r3r2r1r0_read): Likewise.
2433 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
2434 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
2435
2436 2018-01-22 Yao Qi <yao.qi@linaro.org>
2437
2438 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
2439 method raw_read instead of regcache_raw_read.
2440 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
2441 * arm-tdep.c (arm_neon_quad_read): Likewise.
2442 * avr-tdep.c (avr_pseudo_register_read): Likewise.
2443 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
2444 * frv-tdep.c (frv_pseudo_register_read): Likewise.
2445 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
2446 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
2447 (i386_pseudo_register_read_into_value): Likewise.
2448 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
2449 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
2450 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
2451 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
2452 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
2453 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
2454 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
2455 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
2456 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
2457
2458 2018-01-22 Yao Qi <yao.qi@linaro.org>
2459
2460 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
2461 * configure.tgt: Remove target mt.
2462 * mt-tdep.c: Remove.
2463 * regcache.c (cooked_read_test): Remove the check for mt.
2464
2465 2018-01-22 Yao Qi <yao.qi@linaro.org>
2466
2467 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
2468 instead of gdbarch_pseudo_register_read_value.
2469
2470 2018-01-22 Joel Brobecker <brobecker@adacore.com>
2471
2472 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
2473 language is Ada.
2474
2475 2018-01-22 Joel Brobecker <brobecker@adacore.com>
2476
2477 * linespec.c (create_sals_line_offset): Remove code that preserved
2478 the symtab_and_line's line number.
2479
2480 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2481
2482 * varobj.c (varobj_create): Don't set valid_block when creating a
2483 floating varobj.
2484
2485 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2486
2487 * varobj.c (varobj_create): Remove out of date comment.
2488
2489 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2490
2491 PR mi/20395
2492 * ada-exp.y (write_var_from_sym): Pass extra parameter when
2493 updating innermost block.
2494 * parse.c (innermost_block_tracker::update): Take extra type
2495 parameter, and check types match before updating innermost block.
2496 (write_dollar_variable): Update innermost block for registers.
2497 * parser-defs.h (enum innermost_block_tracker_type): New enum.
2498 (innermost_block_tracker::innermost_block_tracker): Initialise
2499 m_types member.
2500 (innermost_block_tracker::reset): Take type parameter.
2501 (innermost_block_tracker::update): Take type parameter, and pass
2502 type through as needed.
2503 (innermost_block_tracker::m_types): New member.
2504 * varobj.c (varobj_create): Pass type when reseting innermost
2505 block.
2506
2507 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2508
2509 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
2510 * ada-lang.c (resolve_subexp): Likewise.
2511 * breakpoint.c (set_breakpoint_condition) Likewise.
2512 (watch_command_1) Likewise.
2513 * c-exp.y (variable): Likewise.
2514 * d-exp.y (PrimaryExpression): Likewise.
2515 * f-exp.y (variable): Likewise.
2516 * go-exp.y (variable): Likewise.
2517 * m2-exp.y (variable): Likewise.
2518 * objfiles.c (objfile::~objfile): Likewise.
2519 * p-exp.y (variable): Likewise.
2520 * parse.c (innermost_block): Change type.
2521 * parser-defs.h (class innermost_block_tracker): New.
2522 (innermost_block): Change to innermost_block_tracker.
2523 * printcmd.c (display_command): Switch to innermost_block API.
2524 (do_one_display): Likewise.
2525 * rust-exp.y (do_one_display): Likewise.
2526 * symfile.c (clear_symtab_users): Likewise.
2527 * varobj.c (varobj_create): Switch to innermost_block API, replace
2528 use of innermost_block with block stored on varobj object.
2529
2530 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2531
2532 * expression.h (innermost_block): Remove declaration.
2533 * varobj.c: Add 'parser-defs.h' include.
2534
2535 2018-01-19 Tom Tromey <tom@tromey.com>
2536
2537 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
2538 symbols in the static and global blocks.
2539
2540 2018-01-19 James Clarke <jrtc27@jrtc27.com>
2541
2542 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
2543 gdb_ptrace.h, and move including gdb_wait.h ...
2544 * nat/linux-ptrace.h: ... to here.
2545
2546 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
2547
2548 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
2549 inf_ptrace_detach_success.
2550 (inf_ptrace_detach_success): Add inferior parameter, use it
2551 instead of inferior_ptid, pass it to detach_inferior.
2552 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
2553 parameter.
2554 * inferior.c (detach_inferior): Add overload that takes an
2555 inferior object.
2556 * inferior.h (detach_inferior): Likewise.
2557 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
2558 use inferior_ptid, adjust call to inf_ptrace_detach_success.
2559 * linux-thread-db.c (thread_db_detach): Use inf parameter.
2560
2561 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
2562
2563 * target.h (struct target_ops) <to_detach>: Add inferior
2564 parameter.
2565 (target_detach): Likewise.
2566 * target.c (dispose_inferior): Pass inferior down.
2567 (target_detach): Pass inferior down. Assert that it is equal to
2568 the current inferior.
2569 * aix-thread.c (aix_thread_detach): Pass inferior down.
2570 * corefile.c (core_file_command): Pass current_inferior() down.
2571 * corelow.c (core_detach): Add inferior parameter.
2572 * darwin-nat.c (darwin_detach): Likewise.
2573 * gnu-nat.c (gnu_detach): Likewise.
2574 * inf-ptrace.c (inf_ptrace_detach): Likewise.
2575 * infcmd.c (detach_command): Pass current_inferior() down to
2576 target_detach.
2577 * infrun.c (follow_fork_inferior): Pass parent_inf to
2578 target_detach.
2579 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
2580 target_detach.
2581 * linux-nat.c (linux_nat_detach): Add inferior parameter.
2582 * linux-thread-db.c (thread_db_detach): Likewise.
2583 * nto-procfs.c (procfs_detach): Likewise.
2584 * procfs.c (procfs_detach): Likewise.
2585 * record.c (record_detach): Likewise.
2586 * record.h (struct inferior): Forward-declare.
2587 (record_detach): Add inferior parameter.
2588 * remote-sim.c (gdbsim_detach): Likewise.
2589 * remote.c (remote_detach_1): Likewise.
2590 (remote_detach): Likewise.
2591 (extended_remote_detach): Likewise.
2592 * sol-thread.c (sol_thread_detach): Likewise.
2593 * target-debug.h (target_debug_print_inferior_p): New macro.
2594 * target-delegates.c: Re-generate.
2595 * top.c (kill_or_detach): Pass inferior down to target_detach.
2596 * windows-nat.c (windows_detach): Add inferior parameter.
2597
2598 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
2599
2600 * target.h (struct target_ops) <to_detach>: Remove args
2601 parameter.
2602 (target_detach): Likewise.
2603 * target.c (dispose_inferior): Adjust.
2604 (target_detach): Remove args parameter, adjust.
2605 * aix-thread.c (aix_thread_detach): Adjust.
2606 * corefile.c (core_file_command): Adjust.
2607 * corelow.c (core_detach): Adjust.
2608 * darwin-nat.c (darwin_detach): Adjust.
2609 * gnu-nat.c (gnu_detach): Adjust.
2610 * inf-ptrace.c (inf_ptrace_detach): Adjust.
2611 * infcmd.c (detach_command): Adjust
2612 * infrun.c (follow_fork_inferior): Adjust.
2613 (handle_vfork_child_exec_or_exit): Adjust.
2614 * linux-fork.c (linux_fork_detach): Remove args parameter.
2615 * linux-fork.h (linux_fork_detach): Likewise.
2616 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
2617 * linux-thread-db.c (thread_db_detach): Likewise.
2618 * nto-procfs.c (procfs_detach): Likewise.
2619 * procfs.c (procfs_detach): Likewise.
2620 (do_detach): Remove signo parameter.
2621 * record.c (record_detach): Remove args parameter.
2622 * record.h (record_detach): Likewise.
2623 * remote-sim.c (gdbsim_detach): Likewise.
2624 * remote.c (remote_detach_1): Likewise.
2625 (remote_detach): Likewise.
2626 (extended_remote_detach): Likewise.
2627 * sol-thread.c (sol_thread_detach): Likewise.
2628 * target-delegates.c: Re-generate.
2629 * top.c (struct qt_args) <args>: Remove field.
2630 (kill_or_detach): Don't pass args.
2631 (quit_force): Don't set args.
2632 * windows-nat.c (windows_detach): Remove args parameter.
2633
2634 2018-01-19 Yao Qi <yao.qi@linaro.org>
2635
2636 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
2637 (arm_linux_init_abi): Install it.
2638
2639 2018-01-19 Yao Qi <yao.qi@linaro.org>
2640
2641 * osabi.c (gdb_osabi_names): Extend the regexp for
2642 arm-linux-gnueabihf.
2643
2644 2018-01-18 Yao Qi <yao.qi@linaro.org>
2645
2646 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
2647 m_abbrevs.
2648 (abbrev_table::add_abbrev): Update.
2649 (abbrev_table::lookup_abbrev): Update.
2650
2651 2018-01-18 Yao Qi <yao.qi@linaro.org>
2652
2653 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
2654
2655 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
2656
2657 * compile/compile.c (compile_to_object): Convert "triplet_rx"
2658 to "std::string".
2659
2660 2018-01-17 Tom Tromey <tom@tromey.com>
2661
2662 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
2663
2664 2018-01-17 Tom Tromey <tom@tromey.com>
2665
2666 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
2667 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
2668 (create_array_type_with_stride): Update.
2669 * dwarf2read.c (set_die_type): Update.
2670
2671 2018-01-17 Tom Tromey <tom@tromey.com>
2672
2673 * dwarf2read.c (delayed_method_info): Remove typedef.
2674 (dwarf2_cu::method_info): Now a std::vector.
2675 (add_to_method_list): Update.
2676 (free_delayed_list): Remove.
2677 (compute_delayed_physnames): Update.
2678 (process_full_comp_unit, process_full_type_unit): Clear the method
2679 list. Remove cleanups.
2680 (psymtab_include_file_name): Add name_holder parameter. Use
2681 unique_xmalloc_ptr.
2682 (dwarf_decode_lines): Update.
2683
2684 2018-01-17 Tom Tromey <tom@tromey.com>
2685 Simon Marchi <simon.marchi@ericsson.com>
2686
2687 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
2688 (dwarf2_per_objfile::free_cached_comp_units)
2689 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
2690 (init_cutu_and_read_dies_no_follow): Update.
2691 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
2692 (dwarf2_cu::~dwarf2_cu): New.
2693 (free_heap_comp_unit, free_stack_comp_unit): Remove.
2694 (age_cached_comp_units, free_one_cached_comp_unit): Update.
2695
2696 2018-01-17 Tom Tromey <tom@tromey.com>
2697 Simon Marchi <simon.marchi@ericsson.com>
2698
2699 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
2700 (struct die_reader_specs) <abbrev_table>: New member.
2701 (struct abbrev_table): Add constructor.
2702 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
2703 <abbrev_obstack>: Now an auto_obstack.
2704 (abbrev_table_up): New typedef.
2705 (init_cu_die_reader): Add abbrev_table parameter.
2706 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
2707 Add result_dwo_abbrev_table.
2708 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
2709 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
2710 Update.
2711 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
2712 parameter.
2713 (skip_children): Update.
2714 (abbrev_table::alloc_abbrev): Rename from
2715 abbrev_table_alloc_abbrev.
2716 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
2717 (abbrev_table::lookup_abbrev): Rename from
2718 abbrev_table_lookup_abbrev.
2719 (abbrev_table_read_table): Return abbrev_table_up.
2720 (abbrev_table_free, abbrev_table_free_cleanup)
2721 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
2722 (load_partial_dies): Update.
2723
2724 2018-01-17 Tom Tromey <tom@tromey.com>
2725
2726 * dwarf2read.c (dwarf2_compute_name): Update comment.
2727 (read_func_scope, read_variable): Update.
2728 (new_symbol): Remove.
2729 (new_symbol_full): Rename to new_symbol.
2730
2731 2018-01-17 Mike Gulick <mgulick@mathworks.com>
2732
2733 PR gdb/16577
2734 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
2735 a warning instead of throwing an error, set section size to 0 and return
2736 NULL.
2737 * gdb_bfd.h (gdb_bfd_map_section): Update description.
2738
2739 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
2740
2741 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
2742 std::string.
2743 (linux_ptrace_attach_fail_reason_string): Likewise.
2744 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
2745 Likewise.
2746 (linux_ptrace_attach_fail_reason_string): Likewise.
2747 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
2748
2749 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
2750
2751 * linux-nat.c (linux_nat_attach): Remove xstrdup.
2752
2753 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
2754
2755 PR gdb/21559
2756 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
2757 checking for fs_base/gs_base fields in struct user_regs_struct.
2758 * configure: Regenerate.
2759
2760 2018-01-17 Yao Qi <yao.qi@linaro.org>
2761
2762 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
2763 function.
2764 (aarch64_linux_init_abi): Install it to gdbarch hook
2765 gcc_target_options.
2766
2767 2018-01-15 Pedro Alves <palves@redhat.com>
2768
2769 * common/signals-state-save-restore.c
2770 (save_original_signals_state): Fix typos.
2771
2772 2017-01-12 Tom Tromey <tom@tromey.com>
2773 Sergio Durigan Junior <sergiodj@redhat.com>
2774
2775 * Makefile.in (install-only): Install gdb-add-index.
2776
2777 2018-01-12 John Baldwin <jhb@FreeBSD.org>
2778
2779 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
2780
2781 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
2782
2783 * infrun.c (keep_going_pass_signal): Clear step-over info when
2784 insert_breakpoints fails.
2785
2786 2018-01-11 Pedro Alves <palves@redhat.com>
2787
2788 PR gdb/22583
2789 * infrun.c (resume): Rename to ...
2790 (resume_1): ... this.
2791 (resume): Reimplement as wrapper around resume_1.
2792
2793 2018-01-11 Pedro Alves <palves@redhat.com>
2794
2795 PR remote/22597
2796 * remote.c (remote_parse_stop_reply): Default to the last-set
2797 general thread instead of to 'magic_null_ptid'.
2798
2799 2018-01-10 Pedro Alves <palves@redhat.com>
2800
2801 * language.h (language_get_symbol_name_matcher): Rename ...
2802 (get_symbol_name_matcher): ... this.
2803 * language.c (language_get_symbol_name_matcher): Ditto.
2804 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
2805 callers adjusted.
2806
2807 2018-01-10 Pedro Alves <palves@redhat.com>
2808
2809 PR gdb/22670
2810 * dwarf2read.c
2811 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
2812 Adjust to use language_get_symbol_name_matcher instead of
2813 language_defn::la_get_symbol_name_matcher.
2814 * language.c (language_get_symbol_name_matcher): If in Ada mode
2815 and the lookup name is a verbatim match, return Ada's matcher.
2816 * language.h (language_get_symbol_name_matcher): Adjust comment.
2817 (ada_lookup_name_info::verbatim_p):: New method.
2818
2819 2018-01-10 Pedro Alves <palves@redhat.com>
2820
2821 PR gdb/22670
2822 * ada-lang.c (ada_collect_symbol_completion_matches): If the
2823 minsym's language is language_auto or language_cplus, pass down
2824 language_ada instead.
2825 * symtab.c (compare_symbol_name): Don't frob symbol language here.
2826
2827 2018-01-10 Pedro Alves <palves@redhat.com>
2828
2829 PR gdb/22670
2830 * minsyms.c (linkage_name_str): New function.
2831 (iterate_over_minimal_symbols): Use it.
2832
2833 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2834
2835 * NEWS: Document that 'info proc' now works on FreeBSD.
2836
2837 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2838
2839 * configure.ac: Check for kinfo_getfile in libutil.
2840 * configure: Regenerate.
2841 * config.in: Regenerate.
2842 * fbsd-nat.c: Include "fbsd-tdep.h".
2843 (fbsd_fetch_cmdline): New.
2844 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
2845 rather than calling error.
2846 (fbsd_info_proc): New.
2847 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
2848 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
2849 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
2850
2851 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2852
2853 * fbsd-nat.c (struct free_deleter): Remove.
2854 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
2855
2856 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2857
2858 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
2859 NULL for an empty pathname.
2860
2861 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2862
2863 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
2864 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
2865 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
2866 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
2867 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
2868 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
2869 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
2870 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
2871 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
2872 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
2873 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
2874 (fbsd_core_fetch_timeval, fbsd_print_sigset)
2875 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
2876 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
2877 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
2878
2879 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
2880
2881 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
2882 (gnu_xfer_auxv): New function.
2883 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
2884 TARGET_OBJECT_AUXV.
2885
2886 2018-01-08 Yao Qi <yao.qi@linaro.org>
2887 Simon Marchi <simon.marchi@ericsson.com>
2888
2889 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
2890 common/selftest.c.
2891 (COMMON_OBS): Remove selftest.o.
2892 * configure.ac: Append selftest-arch.c and common/selftest.c to
2893 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
2894 * configure: Re-generated.
2895 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
2896 GDB_SELF_TEST.
2897 (maintenance_info_selftests): Likewise.
2898
2899 2018-01-08 Xavier Roirand <roirand@adacore.com>
2900
2901 * ada-valprint.c (val_print_packed_array_elements): Use
2902 proper number of elements when printing an array indexed
2903 by an enumeration type.
2904
2905 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
2906
2907 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
2908 (dw2_get_file_names_reader): Adjust.
2909 (lookup_dwo_signatured_type): Adjust.
2910 (lookup_dwp_signatured_type): Adjust.
2911 (lookup_signatured_type): Adjust.
2912 (create_type_unit_group): Adjust.
2913 (get_type_unit_group): Adjust.
2914 (process_psymtab_comp_unit_reader): Adjust.
2915 (build_type_psymtabs_reader): Adjust.
2916 (scan_partial_symbols): Adjust.
2917 (add_partial_symbol): Adjust.
2918 (add_partial_subprogram): Adjust.
2919 (peek_die_abbrev): Adjust.
2920 (fixup_go_packaging): Adjust.
2921 (process_imported_unit_die): Adjust.
2922 (dwarf2_compute_name): Adjust.
2923 (dwarf2_physname): Adjust.
2924 (read_import_statement): Adjust.
2925 (handle_DW_AT_stmt_list): Adjust.
2926 (read_file_scope): Adjust.
2927 (read_func_scope): Adjust.
2928 (read_lexical_block_scope): Adjust.
2929 (read_call_site_scope): Adjust.
2930 (read_variable): Adjust.
2931 (dwarf2_rnglists_process): Adjust.
2932 (dwarf2_ranges_process): Adjust.
2933 (dwarf2_ranges_read): Adjust.
2934 (dwarf2_get_pc_bounds): Adjust.
2935 (dwarf2_record_block_ranges): Adjust.
2936 (dwarf2_add_field): Adjust.
2937 (dwarf2_add_member_fn): Adjust.
2938 (read_structure_type): Adjust.
2939 (process_structure_scope): Adjust.
2940 (read_enumeration_type): Adjust.
2941 (read_array_type): Adjust.
2942 (mark_common_block_symbol_computed): Adjust.
2943 (read_common_block): Adjust.
2944 (read_namespace_type): Adjust.
2945 (read_namespace): Adjust.
2946 (read_module_type): Adjust.
2947 (read_tag_pointer_type): Adjust.
2948 (read_tag_ptr_to_member_type): Adjust.
2949 (read_tag_string_type): Adjust.
2950 (read_subroutine_type): Adjust.
2951 (read_typedef): Adjust.
2952 (read_base_type): Adjust.
2953 (attr_to_dynamic_prop): Adjust.
2954 (read_subrange_type): Adjust.
2955 (read_unspecified_type): Adjust.
2956 (dwarf2_read_abbrevs): Adjust.
2957 (load_partial_dies): Adjust.
2958 (read_partial_die): Adjust.
2959 (find_partial_die): Adjust.
2960 (guess_partial_die_structure_name): Adjust.
2961 (fixup_partial_die): Adjust.
2962 (read_attribute_value): Adjust.
2963 (read_addr_index): Adjust.
2964 (read_addr_index_from_leb128): Adjust.
2965 (read_str_index): Adjust.
2966 (dwarf2_string_attr): Adjust.
2967 (get_debug_line_section): Adjust.
2968 (dwarf_decode_line_header): Adjust.
2969 (lnp_state_machine::check_line_address): Adjust.
2970 (dwarf_decode_lines_1): Adjust.
2971 (dwarf_decode_lines): Adjust.
2972 (dwarf2_start_symtab): Adjust.
2973 (var_decode_location): Adjust.
2974 (new_symbol_full): Adjust.
2975 (dwarf2_const_value_data): Adjust.
2976 (dwarf2_const_value_attr): Adjust.
2977 (dwarf2_const_value): Adjust.
2978 (die_type): Adjust.
2979 (die_containing_type): Adjust.
2980 (build_error_marker_type): Adjust.
2981 (lookup_die_type): Adjust.
2982 (guess_full_die_structure_name): Adjust.
2983 (anonymous_struct_prefix): Adjust.
2984 (determine_prefix): Adjust.
2985 (dwarf2_name): Adjust.
2986 (follow_die_ref_or_sig): Adjust.
2987 (follow_die_offset): Adjust.
2988 (follow_die_ref): Adjust.
2989 (follow_die_sig_1): Adjust.
2990 (follow_die_sig): Adjust.
2991 (get_signatured_type): Adjust.
2992 (get_DW_AT_signature_type): Adjust.
2993 (decode_locdesc): Adjust.
2994 (dwarf_decode_macros): Adjust.
2995 (cu_debug_loc_section): Adjust.
2996 (fill_in_loclist_baton): Adjust.
2997 (dwarf2_symbol_mark_computed): Adjust.
2998 (init_one_comp_unit): Don't assign
2999 dwarf2_cu::dwarf2_per_objfile.
3000 (set_die_type): Adjust.
3001
3002 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
3003
3004 * dwarf2read.c (struct mapped_debug_names): Add constructor.
3005 <dwarf2_per_objfile>: New field.
3006 (dwarf2_per_objfile): Remove global.
3007 (get_dwarf2_per_objfile): New function.
3008 (set_dwarf2_per_objfile): New function.
3009 (dwarf2_build_psymtabs_hard): Change objfile parameter to
3010 dwarf2_per_objfile.
3011 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
3012 (read_abbrev_offset): Likewise.
3013 (read_indirect_string): Likewise.
3014 (read_indirect_line_string): Likewise.
3015 (read_indirect_string_at_offset): Likewise.
3016 (read_indirect_string_from_dwz): Likewise.
3017 (dwarf2_find_containing_comp_unit): Change objfile parameter to
3018 dwarf2_per_objfile.
3019 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
3020 (create_all_comp_units): Change objfile parameter to
3021 dwarf2_per_objfile.
3022 (create_all_type_units): Likewise.
3023 (process_queue): Add dwarf2_per_objfile parameter.
3024 (read_and_check_comp_unit_head): Likewise.
3025 (lookup_dwo_unit_in_dwp): Likewise.
3026 (get_dwp_file): Likewise.
3027 (process_cu_includes): Likewise.
3028 (struct free_dwo_file_cleanup_data): New struct.
3029 (dwarf2_has_info): Use get_dwarf2_per_objfile and
3030 set_dwarf2_per_objfile.
3031 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
3032 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
3033 context, adjust calls.
3034 (dw2_instantiate_symtab): Likewise.
3035 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
3036 (dw2_get_cu): Likewise.
3037 (create_cu_from_index_list): Change objfile parameter to
3038 dwarf2_per_objfile.
3039 (create_cus_from_index_list): Get dwarf2_per_objfile from
3040 context, adjust calls.
3041 (create_cus_from_index): Likewise.
3042 (create_signatured_type_table_from_index): Change objfile
3043 parameter to dwarf2_per_objfile.
3044 (create_signatured_type_table_from_debug_names): Change objfile
3045 parameter to dwarf2_per_objfile.
3046 (create_addrmap_from_index): Likewise.
3047 (create_addrmap_from_aranges): Likewise.
3048 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
3049 (dw2_setup): Remove.
3050 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
3051 context.
3052 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
3053 get_dwarf2_per_objfile.
3054 (dw2_forget_cached_source_info): Likewise.
3055 (dw2_map_symtabs_matching_filename): Likewise.
3056 (struct dw2_symtab_iterator) <index>: Remove.
3057 <dwarf2_per_objfile>: New field.
3058 (dw2_symtab_iter_init): Replace index parameter with
3059 dwarf2_per_objfile.
3060 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
3061 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
3062 (dw2_print_stats): Likewise.
3063 (dw2_dump): Likewise.
3064 (dw2_expand_symtabs_for_function): Likewise.
3065 (dw2_expand_all_symtabs): Likewise.
3066 (dw2_expand_symtabs_with_fullname): Likewise.
3067 (dw2_expand_marked_cus): Replace index and objfile parameters
3068 with dwarf2_per_objfile.
3069 (dw_expand_symtabs_matching_file_matcher): Add
3070 dwarf2_per_objfile parameter and adjust calls.
3071 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
3072 adjust calls.
3073 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
3074 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
3075 adjust calls.
3076 (create_cus_from_debug_names_list): Replace objfile parameter
3077 with dwarf2_per_objfile and adjust calls.
3078 (create_cus_from_debug_names): Likewise.
3079 (dwarf2_read_debug_names): Likewise.
3080 (mapped_debug_names::namei_to_name): Adjust call.
3081 (dw2_debug_names_iterator::next): Likewise.
3082 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3083 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
3084 (dw2_debug_names_dump): Likewise.
3085 (dw2_debug_names_expand_symtabs_for_function): Likewise.
3086 (dw2_debug_names_expand_symtabs_matching): Likewise.
3087 (dwarf2_initialize_objfile): Likewise.
3088 (dwarf2_build_psymtabs): Likewise.
3089 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
3090 this_cu.
3091 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
3092 (read_and_check_comp_unit_head): Likewise.
3093 (read_abbrev_offset): Likewise.
3094 (create_debug_type_hash_table): Likewise.
3095 (create_debug_types_hash_table): Likewise.
3096 (create_all_type_units): Replace objfile parameter with
3097 dwarf2_per_objfile.
3098 (add_type_unit): Add dwarf2_per_objfile parameter.
3099 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
3100 with dwarf2_per_objfile.
3101 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
3102 (lookup_dwp_signatured_type): Likewise.
3103 (lookup_signatured_type): Likewise.
3104 (read_cutu_die_from_dwo): Likewise.
3105 (init_tu_and_read_dwo_dies): Likewise.
3106 (init_cutu_and_read_dies): Likewise.
3107 (init_cutu_and_read_dies_no_follow): Likewise.
3108 (allocate_type_unit_groups_table): Add objfile parameter.
3109 (create_type_unit_group): Use dwarf2_per_objfile from cu.
3110 (get_type_unit_group): Likewise.
3111 (process_psymtab_comp_unit): Update call.
3112 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
3113 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
3114 (print_tu_stats): Likewise.
3115 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
3116 in void* parameter.
3117 (build_type_psymtabs): Change objfile parameter to
3118 dwarf2_per_objfile.
3119 (process_skeletonless_type_unit): Use dwarf2_per_objfile
3120 passed in void* parameter.
3121 (process_skeletonless_type_units): Change objfile parameter to
3122 dwarf2_per_objfile.
3123 (set_partial_user): Likewise.
3124 (dwarf2_build_psymtabs_hard): Likewise.
3125 (read_comp_units_from_section): Likewise.
3126 (create_all_comp_units): Likewise.
3127 (scan_partial_symbols): Update calls.
3128 (add_partial_symbol): Likewise.
3129 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
3130 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
3131 (process_queue): Add dwarf2_per_objfile parameter.
3132 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
3133 (compute_compunit_symtab_includes): Likewise.
3134 (process_cu_includes): Add dwarf2_per_objfile parameter.
3135 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
3136 (process_full_type_unit): Likewise.
3137 (process_imported_unit_die): Update call.
3138 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
3139 (read_file_scope): Likewise.
3140 (allocate_dwo_file_hash_table): Add objfile parameter.
3141 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
3142 (create_cus_hash_table): Likewise.
3143 (create_dwp_hash_table): Likewise.
3144 (create_dwo_unit_in_dwp_v1): Likewise.
3145 (create_dwp_v2_section): Likewise.
3146 (create_dwo_unit_in_dwp_v2): Likewise.
3147 (lookup_dwo_unit_in_dwp): Likewise.
3148 (try_open_dwop_file): Likewise.
3149 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
3150 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
3151 cleanup to include a reference to dwarf2_per_objfile.
3152 (open_dwp_file): Add dwarf2_per_objfile parameter.
3153 (open_and_init_dwp_file): Likewise.
3154 (get_dwp_file): Likewise.
3155 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
3156 (queue_and_load_all_dwo_tus): Update call.
3157 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
3158 data.
3159 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
3160 (dwarf2_ranges_process): Likewise.
3161 (dwarf2_get_pc_bounds): Likewise.
3162 (mark_common_block_symbol_computed): Likewise.
3163 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
3164 (dwarf2_read_abbrevs): Update call.
3165 (read_partial_die): Use dwarf2_per_objfile from cu.
3166 (find_partial_die): Likewise.
3167 (fixup_partial_die): Likewise.
3168 (read_attribute_value): Likewise.
3169 (read_indirect_string_at_offset_from): Add objfile parameter.
3170 (read_indirect_string_at_offset): Add dwarf2_per_objfile
3171 parameter.
3172 (read_indirect_string_from_dwz): Add objfile parameter.
3173 (read_indirect_string): Add objfile parameter.
3174 (read_addr_index_1): Add dwarf2_per_objfile parameter.
3175 (read_addr_index): Use dwarf2_per_objfile from cu.
3176 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
3177 call dw2_setup.
3178 (read_str_index): Use dwarf2_per_objfile from cu.
3179 (get_debug_line_section): Likewise.
3180 (read_formatted_entries): Add dwarf2_per_objfile parameter.
3181 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
3182 (new_symbol_full): Use dwarf2_per_objfile from cu.
3183 (build_error_marker_type): Likewise.
3184 (lookup_die_type): Likewise.
3185 (determine_prefix): Likewise.
3186 (follow_die_offset): Likewise.
3187 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
3188 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
3189 (dwarf2_fetch_die_type_sect_off): Likewise.
3190 (dwarf2_get_die_type): Likewise.
3191 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
3192 (get_signatured_type): Likewise.
3193 (get_DW_AT_signature_type): Likewise.
3194 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
3195 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
3196 (cu_debug_loc_section): Likewise.
3197 (fill_in_loclist_baton): Likewise.
3198 (dwarf2_symbol_mark_computed): Likewise.
3199 (dwarf2_find_containing_comp_unit): Change objfile parameter to
3200 dwarf2_per_objfile.
3201 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
3202 parameter.
3203 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
3204 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
3205 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
3206 (set_die_type): Use dwarf2_free_objfile from cu.
3207 (get_die_type_at_offset): Likewise.
3208 (dwarf2_per_objfile_free): Don't assign global variable.
3209 (debug_names) <constructor>: Add dwarf2_per_objfile
3210 parameter, update m_debugstrlookup construction.
3211 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
3212 parameter.
3213 <m_dwarf2_per_objfile>: New field.
3214 <lookup>: Use m_dwarf2_per_objfile.
3215 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
3216 (psyms_seen_size): Likewise.
3217 (write_gdbindex): Replace objfile parameter with
3218 dwarf2_per_objfile.
3219 (write_debug_names): Likewise.
3220 (write_psymtabs_to_index): Likewise.
3221 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
3222 calls.
3223
3224 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
3225
3226 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
3227 <dwarf2_per_objfile>: New field.
3228 (struct dwarf2_per_cu_data) <objfile>: Remove.
3229 <dwarf2_per_objfile>: New field.
3230 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
3231 of objfile.
3232 (create_signatured_type_table_from_index): Likewise.
3233 (create_debug_type_hash_table): Likewise.
3234 (fill_in_sig_entry_from_dwo_entry): Likewise.
3235 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
3236 (create_type_unit_group): Assign dwarf2_per_objfile instead of
3237 objfile.
3238 (create_partial_symtab): Access objfile through
3239 dwarf2_per_objfile.
3240 (process_psymtab_comp_unit_reader): Likewise.
3241 (read_comp_units_from_section): Likewise.
3242 (scan_partial_symbols): Likewise.
3243 (add_partial_symbol): Likewise.
3244 (add_partial_subprogram): Likewise.
3245 (peek_die_abbrev): Likewise.
3246 (fixup_go_packaging): Likewise.
3247 (process_full_comp_unit): Likewise.
3248 (process_full_type_unit): Likewise.
3249 (process_imported_unit_die): Likewise.
3250 (dwarf2_compute_name): Likewise.
3251 (dwarf2_physname): Likewise.
3252 (read_import_statement): Likewise.
3253 (create_cus_hash_table): Assign dwarf2_physname instead of
3254 objfile.
3255 (read_func_scope): Access objfile through dwarf2_per_objfile.
3256 (read_lexical_block_scope): Likewise.
3257 (read_call_site_scope): Likewise.
3258 (read_variable): Likewise.
3259 (dwarf2_rnglists_process): Likewise.
3260 (dwarf2_ranges_process): Likewise.
3261 (dwarf2_ranges_read): Likewise.
3262 (dwarf2_record_block_ranges): Likewise.
3263 (dwarf2_add_field): Likewise.
3264 (dwarf2_add_member_fn): Likewise.
3265 (read_structure_type): Likewise.
3266 (process_structure_scope): Likewise.
3267 (read_enumeration_type): Likewise.
3268 (read_array_type): Likewise.
3269 (read_common_block): Likewise.
3270 (read_namespace_type): Likewise.
3271 (read_namespace): Likewise.
3272 (read_module_type): Likewise.
3273 (read_tag_pointer_type): Likewise.
3274 (read_tag_ptr_to_member_type): Likewise.
3275 (read_tag_string_type): Likewise.
3276 (read_subroutine_type): Likewise.
3277 (read_typedef): Likewise.
3278 (read_base_type): Likewise.
3279 (attr_to_dynamic_prop): Likewise.
3280 (read_subrange_type): Likewise.
3281 (read_unspecified_type): Likewise.
3282 (load_partial_dies): Likewise.
3283 (read_partial_die): Likewise.
3284 (find_partial_die): Likewise.
3285 (guess_partial_die_structure_name): Likewise.
3286 (fixup_partial_die): Likewise.
3287 (read_attribute_value): Likewise.
3288 (read_addr_index_from_leb128): Likewise.
3289 (dwarf2_read_addr_index): Likewise.
3290 (dwarf2_string_attr): Likewise.
3291 (lnp_state_machine::check_line_address): Likewise.
3292 (dwarf_decode_lines_1): Likewise.
3293 (dwarf_decode_lines): Likewise.
3294 (dwarf2_start_symtab): Likewise.
3295 (var_decode_location): Likewise.
3296 (new_symbol_full): Likewise.
3297 (dwarf2_const_value_data): Likewise.
3298 (dwarf2_const_value_attr): Likewise.
3299 (dwarf2_const_value): Likewise.
3300 (die_type): Likewise.
3301 (die_containing_type): Likewise.
3302 (lookup_die_type): Likewise.
3303 (guess_full_die_structure_name): Likewise.
3304 (anonymous_struct_prefix): Likewise.
3305 (dwarf2_name): Likewise.
3306 (follow_die_ref_or_sig): Likewise.
3307 (follow_die_offset): Likewise.
3308 (follow_die_ref): Likewise.
3309 (dwarf2_fetch_die_loc_sect_off): Likewise.
3310 (dwarf2_fetch_constant_bytes): Likewise.
3311 (dwarf2_fetch_die_type_sect_off): Likewise.
3312 (dwarf2_get_die_type): Likewise.
3313 (follow_die_sig): Likewise.
3314 (decode_locdesc): Likewise.
3315 (dwarf2_per_cu_objfile): Likewise.
3316 (dwarf2_per_cu_text_offset): Likewise.
3317 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
3318 objfile.
3319 (set_die_type): Access objfile through
3320 dwarf2_per_objfile.
3321
3322 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
3323
3324 * valprint.c (converted_character_d): Remove typedef.
3325 (DEF_VEC_O (converted_character_d)): Remove.
3326 (count_next_character): Use std::vector.
3327 (print_converted_chars_to_obstack): Likewise.
3328 (generic_printstr): Likewise.
3329
3330 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
3331
3332 * xml-support.h (struct gdb_xml_value): Add constructor.
3333 <value>: Change type to unique_xmalloc_ptr.
3334 (gdb_xml_value_s): Remove typedef.
3335 (DEF_VEC_O (gdb_xml_value_s)): Remove.
3336 (gdb_xml_element_start_handler): Change parameter type to
3337 std::vector.
3338 (xml_find_attribute): Likewise.
3339 * xml-support.c (xml_find_attribute): Change parameter type to
3340 std::vector and adjust.
3341 (gdb_xml_values_cleanup): Remove.
3342 (gdb_xml_parser::start_element): Adjust to std::vector.
3343 (xinclude_start_include): Change paraeter type to std::vector
3344 and adjust.
3345 * btrace.c (check_xml_btrace_version): Likewise.
3346 (parse_xml_btrace_block): Likewise.
3347 (parse_xml_btrace_pt_config_cpu): Likewise.
3348 (parse_xml_btrace_pt): Likewise.
3349 (parse_xml_btrace_conf_bts): Likewise.
3350 (parse_xml_btrace_conf_pt): Likewise.
3351 * memory-map.c (memory_map_start_memory): Likewise.
3352 (memory_map_start_property): Likewise.
3353 * osdata.c (osdata_start_osdata): Likewise.
3354 (osdata_start_item): Likewise.
3355 (osdata_start_column): Likewise.
3356 * remote.c (start_thread): Likewise.
3357 * solib-aix.c (library_list_start_library): Likewise.
3358 (library_list_start_list): Likewise.
3359 * solib-svr4.c (library_list_start_library): Likewise.
3360 (svr4_library_list_start_list): Likewise.
3361 * solib-target.c (library_list_start_segment): Likewise.
3362 (library_list_start_section): Likewise.
3363 (library_list_start_library): Likewise.
3364 (library_list_start_list): Likewise.
3365 * tracepoint.c (traceframe_info_start_memory): Likewise.
3366 (traceframe_info_start_tvar): Likewise.
3367 * xml-syscall.c (syscall_start_syscall): Likewise.
3368 * xml-tdesc.c (tdesc_start_target): Likewise.
3369 (tdesc_start_feature): Likewise.
3370 (tdesc_start_reg): Likewise.
3371 (tdesc_start_union): Likewise.
3372 (tdesc_start_struct): Likewise.
3373 (tdesc_start_flags): Likewise.
3374 (tdesc_start_enum): Likewise.
3375 (tdesc_start_field): Likewise.
3376 (tdesc_start_enum_value): Likewise.
3377 (tdesc_start_vector): Likewise.
3378
3379 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
3380
3381 * extension.h (struct xmethod_worker) <clone>: Remove.
3382 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
3383 Remove.
3384 (python_xmethod_worker::clone): Remove.
3385 * valops.c (find_overload_match): Use std::move instead of
3386 clone.
3387
3388 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
3389
3390 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
3391 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
3392 <free_xmethod_worker_data>: Remove.
3393 <get_matching_xmethod_workers>: Chance VEC to std::vector.
3394 <get_xmethod_arg_types>: Remove.
3395 <get_xmethod_result_type>: Remove.
3396 <invoke_xmethod>: Remove.
3397 * extension.c (new_xmethod_worker): Remove.
3398 (clone_xmethod_worker): Remove.
3399 (get_matching_xmethod_workers): Return void, pass std::vector by
3400 pointer.
3401 (get_xmethod_arg_types): Rename to...
3402 (xmethod_worker::get_arg_types): ... this, and adjust.
3403 (get_xmethod_result_type): Rename to...
3404 (xmethod_worker::get_result_type): ... this, and adjust.
3405 (invoke_xmethod): Remove.
3406 (free_xmethod_worker): Remove.
3407 (free_xmethod_worker_vec): Remove.
3408 * extension.h (enum ext_lang_rc): Move here from
3409 extension-priv.h.
3410 (struct xmethod_worker): Add constructor and destructor.
3411 <data>: Remove.
3412 <value>: Remove.
3413 <invoke, clone, do_get_result_type, do_get_arg_types>: New
3414 virtual pure methods.
3415 <get_arg_types, get_result_type>: New methods.
3416 (xmethod_worker_ptr): Remove typedef.
3417 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
3418 (xmethod_worker_vec): Remove typedef.
3419 (xmethod_worker_up): New typedef.
3420 (invoke_xmethod): Remove.
3421 (clone_xmethod_worker): Remove.
3422 (free_xmethod_worker): Remove.
3423 (free_xmethod_worker_vec): Remove.
3424 (get_xmethod_arg_types): Remove.
3425 (get_xmethod_result_type): Remove.
3426 * valops.c (find_method_list): Use std::vector, don't use
3427 intermediate vector.
3428 (value_find_oload_method_list): Use std::vector.
3429 (find_overload_match): Use std::vector.
3430 (find_oload_champ): Use std::vector.
3431 * value.c (value_free): Use operator delete.
3432 (value_of_xmethod): Rename to...
3433 (value_from_xmethod): ... this. Don't assign
3434 xmethod_worker::value, take rvalue-reference.
3435 (result_type_of_xmethod): Adjust.
3436 (call_xmethod): Adjust.
3437 * value.h: Include extension.h.
3438 (struct xmethod_worker): Don't forward-declare.
3439 (value_of_xmethod): Rename to...
3440 (value_from_xmethod): ... this, take rvalue-reference.
3441 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
3442 (struct python_xmethod_worker): ... this, add constructor and
3443 destructor.
3444 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
3445 (gdbpy_free_xmethod_worker_data): Rename to...
3446 (python_xmethod_worker::~python_xmethod_worker): ... this and
3447 adjust.
3448 (gdbpy_clone_xmethod_worker_data): Rename to...
3449 (python_xmethod_worker::clone): ... this and adjust.
3450 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
3451 temporary vector.
3452 (gdbpy_get_xmethod_arg_types): Rename to...
3453 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
3454 (gdbpy_get_xmethod_result_type): Rename to...
3455 (python_xmethod_worker::do_get_result_type): ... this and
3456 adjust.
3457 (gdbpy_invoke_xmethod): Rename to...
3458 (python_xmethod_worker::invoke): ... this and adjust.
3459 (new_python_xmethod_worker): Rename to...
3460 (python_xmethod_worker::python_xmethod_worker): ... this and
3461 adjust.
3462 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
3463 Remove.
3464 (gdbpy_free_xmethod_worker_data): Remove.
3465 (gdbpy_get_matching_xmethod_workers): Use std::vector.
3466 (gdbpy_get_xmethod_arg_types): Remove.
3467 (gdbpy_get_xmethod_result_type): Remove.
3468 (gdbpy_invoke_xmethod): Remove.
3469 * python/python.c (python_extension_ops): Remove obsolete
3470 callbacks.
3471
3472 2018-01-05 Pedro Alves <palves@redhat.com>
3473
3474 PR gdb/18653
3475 * common/signals-state-save-restore.c
3476 (save_original_signals_state): New parameter 'quiet'. Warn if we
3477 find a custom handler preinstalled, instead of internal erroring.
3478 But only warn if !quiet.
3479 * common/signals-state-save-restore.h
3480 (save_original_signals_state): New parameter 'quiet'.
3481 * main.c (captured_main_1): Move save_original_signals_state call
3482 after option handling, and pass QUIET.
3483
3484 2018-01-05 Pedro Alves <palves@redhat.com>
3485
3486 * spu-tdep.c (spu_catch_start): Pass
3487 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
3488
3489 2018-01-05 Pedro Alves <palves@redhat.com>
3490
3491 PR gdb/22670
3492 * ada-lang.c (literal_symbol_name_matcher): New function.
3493 (ada_get_symbol_name_matcher): Use it for
3494 symbol_name_match_type::SEARCH_NAME.
3495 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
3496 it down instead of assuming symbol_name_match_type::FULL.
3497 * block.h (block_lookup_symbol): New parameter 'match_type'.
3498 * c-valprint.c (print_unpacked_pointer): Use
3499 lookup_symbol_search_name instead of lookup_symbol.
3500 * compile/compile-object-load.c (get_out_value_type): Pass down
3501 symbol_name_match_type::SEARCH_NAME.
3502 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
3503 symbol_name_match_type::FULL.
3504 * cp-support.c (cp_get_symbol_name_matcher): Handle
3505 symbol_name_match_type::SEARCH_NAME.
3506 * infrun.c (insert_exception_resume_breakpoint): Use
3507 lookup_symbol_search_name.
3508 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
3509 * psymtab.c (maintenance_check_psymtabs): Use
3510 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
3511 * stack.c (print_frame_args): Use lookup_symbol_search_name and
3512 SYMBOL_SEARCH_NAME.
3513 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
3514 if symbol_name_match_type::SEARCH_NAME.
3515 (lookup_symbol_in_language): Pass down
3516 symbol_name_match_type::FULL.
3517 (lookup_symbol_search_name): New.
3518 (lookup_language_this): Pass down
3519 symbol_name_match_type::SEARCH_NAME.
3520 (lookup_symbol_aux, lookup_local_symbol): New parameter
3521 'match_type'. Pass it down.
3522 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
3523 (lookup_symbol_search_name): New declaration.
3524 (lookup_symbol_in_block): New 'match_type' parameter.
3525
3526 2018-01-05 Pedro Alves <palves@redhat.com>
3527
3528 PR gdb/22670
3529 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
3530 ada_lookup_symbol.
3531 (ada_lookup_symbol): Reimplement in terms of
3532 ada_lookup_symbol_list, bits factored out from
3533 ada_lookup_encoded_symbol.
3534
3535 2018-01-05 Joel Brobecker <brobecker@adacore.com>
3536
3537 * ada-exp.y (write_object_renaming): When subscripting an array
3538 using a symbol as the index, pass the block in call to
3539 ada_lookup_encoded_symbol when looking that symbol up.
3540
3541 2018-01-05 Jerome Guitton <guitton@adacore.com>
3542
3543 * ada-lang.c (ada_array_length): Use ada_index_type instead of
3544 TYPE_INDEX_TYPE.
3545
3546 2018-01-05 Joel Brobecker <brobecker@adacore.com>
3547
3548 * ada-lang.c (ada_to_fixed_value_create): Add handling of
3549 the case where VALUE_LVAL (val0) is not lval_memory.
3550
3551 2018-01-05 Xavier Roirand <roirand@adacore.com>
3552
3553 * ada-valprint.c (print_optional_low_bound): Handle
3554 character-indexed array printing like boolean-indexed array
3555 printing.
3556
3557 2018-01-05 Joel Brobecker <brobecker@adacore.com>
3558
3559 * NEWS: Create a new section for the next release branch.
3560 Rename the section of the current branch, now that it has
3561 been cut.
3562
3563 2018-01-05 Joel Brobecker <brobecker@adacore.com>
3564
3565 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
3566 * version.in: Bump version to 8.1.50.DATE-git.
3567
3568 2018-01-03 Xavier Roirand <roirand@adacore.com>
3569
3570 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
3571 Add field.
3572 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
3573 Add field.
3574 (default_exception_support_info) <catch_handlers_sym>: Add field.
3575 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
3576 (ada_exception_name_addr_1): Add "catch handlers" handling.
3577 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
3578 Update all callers.
3579 (create_excep_cond_exprs) <ex>: Add parameter.
3580 (re_set_exception): Update create_excep_cond_exprs call.
3581 (print_it_exception, print_one_exception, print_mention_exception)
3582 (print_recreate_exception): Add "catch handler" handling.
3583 (allocate_location_catch_handlers, re_set_catch_handlers)
3584 (check_status_catch_handlers, print_it_catch_handlers)
3585 (print_one_catch_handlers, print_mention_catch_handlers)
3586 (print_recreate_catch_handlers): New function.
3587 (catch_handlers_breakpoint_ops): New variable.
3588 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
3589 Add parameter. Add "catch handler" handling.
3590 (ada_exception_sym_name, ada_exception_breakpoint_ops):
3591 Add "catch handler" handling.
3592 (ada_exception_catchpoint_cond_string): Add "catch handler"
3593 handling.
3594 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
3595 call.
3596 (catch_ada_handlers_command): New function.
3597 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
3598 operations structure.
3599 (_initialize_ada_language): Add "catch handlers" command entry.
3600 * NEWS: Document "catch handlers" feature.
3601
3602 2018-01-02 Joel Brobecker <brobecker@adacore.com>
3603
3604 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
3605 account when creating the array type of the slice.
3606 (ada_value_slice): Likewise.
3607
3608 2018-01-02 Joel Brobecker <brobecker@adacore.com>
3609
3610 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
3611 New enum value.
3612 (create_array_type_with_stride): Add byte_stride_prop parameter.
3613 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
3614 New parameter. Update all callers in this file.
3615 (array_type_has_dynamic_stride): New function.
3616 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
3617 of arrays with dynamic byte strides.
3618 * dwarf2read.c (read_array_type): Add support for dynamic
3619 DW_AT_byte_stride attributes.
3620
3621 2018-01-02 Joel Brobecker <brobecker@adacore.com>
3622
3623 * dwarf2read.c (read_unspecified_type): Treat
3624 DW_TAG_enumeration_type DIEs from Ada units as stubs.
3625
3626 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3627
3628 Update copyright year range in all GDB files.
3629
3630 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3631
3632 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
3633 and gdb/testsuite/gdb.base/step-line.c.
3634
3635 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3636
3637 * copyright.py (main): Dump the contents of
3638 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
3639 even if BY_HAND is empty.
3640
3641 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3642
3643 * top.c (print_gdb_version): Update Copyright year in version
3644 message.
3645
3646 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3647
3648 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
3649
3650 For older changes see ChangeLog-2017.
3651 \f
3652 Local Variables:
3653 mode: change-log
3654 left-margin: 8
3655 fill-column: 74
3656 version-control: never
3657 coding: utf-8
3658 End:
This page took 0.123984 seconds and 4 git commands to generate.