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