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