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