Remove some cleanups from dwarf2read.c
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
791afaa2
TT
12017-10-08 Tom Tromey <tom@tromey.com>
2
3 * dwarf2read.c (dwarf2_get_dwz_file): Use
4 gdb::unique_xmalloc_ptr.
5 (find_slot_in_mapped_hash): Likewise.
6 (dwarf2_physname): Likewise.
7 (create_dwo_unit_in_dwp_v1): Use std::string.
8 (create_dwo_unit_in_dwp_v2): Likewise.
9 (lookup_dwo_cutu): Likewise.
10 (inherit_abstract_dies): Use std::vector.
11 (read_array_type): Likewise.
12 (dwarf_decode_macros): Remove unused declaration.
13 (unsigned_int_compar): Remove.
14 (dwarf2_build_psymtabs_hard): Use scoped_restore.
15 (psymtabs_addrmap_cleanup): Remove.
16
30a9c02f
TT
172017-10-08 Tom Tromey <tom@tromey.com>
18
19 * frame-unwind.c (frame_unwind_try_unwinder): Update.
20 * frame.h (frame_cleanup_after_sniffer): Declare.
21 (frame_prepare_for_sniffer): Return void.
22 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
23 type of argument.
24 (frame_prepare_for_sniffer): Return void.
25
757325a3
TT
262017-10-08 Tom Tromey <tom@tromey.com>
27
28 * utils.h (make_cleanup_value_free): Remove.
29 * utils.c (do_value_free, struct cleanup): Remove.
30 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
31 Use gdb_value_up.
32 * value.h (struct value_deleter): New.
33 (gdb_value_up): New typedef.
34
b9c04fb2
TT
352017-10-08 Tom Tromey <tom@tromey.com>
36
37 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
38 (make_cleanup_free_search_symbols): Remove.
39 (search_symbols): Return std::vector.
40 (symbol_search::compare_search_syms): Now member of
41 symbol_search. Change arguments.
42 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
43 (symtab_symbol_info, rbreak_command): Update.
44 * symtab.h (struct symbol_search) <next>: Remove.
45 Add constructors.
46 (symbol_search::operator<): New function.
47 (symbol_search::operator==): New function.
48 (search_symbols): Remove std::vector.
49 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
50 (symbol_search::compare_search_syms): Declare.
51
0d28b0a5
YQ
522017-10-06 Yao Qi <yao.qi@linaro.org>
53
54 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
55 arch/aarch64-insn.o.
56 Remove one rule.
57 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
58
71917808
YQ
592017-10-06 Yao Qi <yao.qi@linaro.org>
60
61 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
62 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
63 arch/arm-linux.o respectively.
64 * configure.tgt: Likewise.
65
2081b2b2
YQ
662017-10-06 Yao Qi <yao.qi@linaro.org>
67
68 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
69 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
70
a1b85d28
PA
712017-10-06 Pedro Alves <palves@redhat.com>
72
73 * windows-nat.c: Include <algorithm>.
74
d97987e2
YQ
752017-10-06 Yao Qi <yao.qi@linaro.org>
76
77 * configure.tgt (i386_tobjs): New variable.
78 (amd64_tobjs): New variable.
79 Set $cpu_obs and $os_obs.
80
f38307f5
YQ
812017-10-06 Yao Qi <yao.qi@linaro.org>
82
83 * Makefile.in (CONFIG_SRC_SUBDIR): New.
84 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
85 (clean): Remove object files and dependency files.
86 (distclean): Remove the directory.
87 * configure.ac: Invoke AC_CONFIG_COMMANDS.
88 * configure: Re-generated.
89 * configure.tgt: Replace amd64.o with arch/amd64.o.
90
2f924de6
JM
912017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
92
93 PR build/22188
94 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
95 and SETEND.
96
2fd9d7ca
PA
972017-10-05 Pedro Alves <palves@redhat.com>
98
99 * linux-nat.c (linux_child_follow_fork): When following the parent
100 and detaching the child, consult the parent thread's architecture
101 instead of the child's.
102
d13b8493
UW
1032017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
104
105 * ax.h: Do not include "doublest.h".
106 (union agent_val): Remove.
107
3b4b2f16
UW
1082017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
109
110 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
111 (decimal_to_string): Return std::string object.
112 (decimal_from_string): Accept std::string object. Return bool.
113 (decimal_from_integral, decimal_from_doublest): Remove.
114 (decimal_from_longest): Add prototype.
115 (decimal_from_ulongest): Likewise.
116 (decimal_to_longest): Likewise.
117 (decimal_from_doublest): Likewise.
118 * dfp.c: Do not include "gdbtypes.h" or "value.h".
119 (MAX_DECIMAL_STRING): Move here.
120 (decimal_to_string): Return std::string object.
121 (decimal_from_string): Accept std::string object. Return bool.
122 (decimal_from_integral): Remove, replace by ...
123 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
124 (decimal_to_longest): New function.
125 (decimal_from_floating): Remove, replace by ...
126 (decimal_from_doublest): ... this new function.
127 (decimal_to_doublest): Update to new decimal_to_string interface.
128
129 * value.c (unpack_long): Use decimal_to_longest.
130 * valops.c (value_cast): Use decimal_from_doublest instead of
131 decimal_from_floating. Use decimal_from_[u]longest isntead of
132 decimal_from_integral.
133 * valarith.c (value_args_as_decimal): Likewise.
134 * valprint.c (print_decimal_floating): Update to new
135 decimal_to_string interface.
136 * printcmd.c (printf_decfloat): Likewise.
137 * c-exp.y (parse_number): Update to new decimal_from_string interface.
138
1841ee5d
UW
1392017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
140
141 * doublest.h: Do not include "floatformat.h". Remove stale comments.
142 * gdbtypes.c: Include "floatformat.h".
143 * value.c: Likewise.
144 * m68k-tdep.c: Likewise.
145
146 * findvar.c: Do not include "floatformat.h".
147 * amd64-darwin-tdep.c: Likewise.
148 * arm-linux-tdep.c: Likewise.
149 * i386-darwin-tdep.c: Likewise.
150 * i387-tdep.c: Likewise.
151 * m68k-linux-tdep.c: Likewise.
152 * mep-tdep.c: Likewise.
153 * mips-tdep.c: Likewise.
154 * nios2-tdep.c: Likewise.
155 * s390-linux-tdep.c: Likewise.
156 * sparc-obsd-tdep.c: Likewise.
157 * sparc-tdep.c: Likewise.
158 * sparc64-tdep.c: Likewise.
159 * spu-tdep.c: Likewise.
160 * tic6x-tdep.c: Likewise.
161 * tilegx-tdep.c: Likewise.
162 * vax-tdep.c: Likewise.
163 * xstormy16-tdep.c: Likewise.
164 * xtensa-tdep.c: Likewise.
165
166 * top.c: Do not include "doublest.h".
167 * aarch64-tdep.c: Likewise.
168 * alpha-tdep.c: Likewise.
169 * arm-linux-tdep.c: Likewise.
170 * m68k-linux-tdep.c: Likewise.
171 * tilegx-tdep.c: Likewise.
172 * xstormy16-tdep.c: Likewise.
173
a80a6471
JB
1742017-10-05 John Baldwin <jhb@FreeBSD.org>
175
176 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
177 (mipsn32_fbsd_sigframe): Define.
178 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
179 for FreeBSD/mipsn32.
180
12c4bd7f
JB
1812017-10-05 John Baldwin <jhb@FreeBSD.org>
182
183 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
184 AT_HWCAP.
185
c91933e9
TG
1862017-10-05 Tristan Gingold <tgingold@free.fr>
187
188 * MAINTAINERS (Misc): Update my email address.
189
5cd63fda
PA
1902017-10-04 Pedro Alves <palves@redhat.com>
191
192 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
193 it instead of target_gdbarch.
194 (get_remote_state, get_remote_packet_size): Adjust
195 get_remote_arch_state calls, passing down target_gdbarch
196 explicitly.
197 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
198 'gdbarch' and use it instead of target_gdbarch.
199 (get_memory_packet_size): Adjust get_remote_arch_state calls,
200 passing down target_gdbarch explicitly.
201 (struct stop_reply) <arch>: New field.
202 (remote_parse_stop_reply): Use the stopped thread's architecture,
203 not the current inferior's. Save the architecture in the
204 stop_reply.
205 (process_stop_reply): Use the stop reply's architecture.
206 (process_g_packet, remote_fetch_registers)
207 (remote_prepare_to_store, store_registers_using_G)
208 (remote_store_registers): Adjust get_remote_arch_state calls,
209 using the regcache's architecture.
210 (remote_get_trace_status): Adjust get_remote_arch_state calls,
211 passing down target_gdbarch explicitly.
212 * spu-multiarch.c (spu_thread_architecture): Defer to the target
213 beneath instead of calling target_gdbarch.
214 * target.c (default_thread_architecture): Use the specified
215 inferior's architecture, instead of the current inferior's
216 architecture (via target_gdbarch).
217
ed4227b7
PA
2182017-10-04 Pedro Alves <palves@redhat.com>
219
220 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
221 case.
222 (regcache_print): Handle !target_has_registers here instead.
223
55b11ddf
PA
2242017-10-04 Pedro Alves <palves@redhat.com>
225
226 * frame.c (create_test_frame): Delete.
227 * frame.h (create_test_frame): Delete.
228 * gdbarch-selftests.c: Include gdbthread.h and target.h.
229 (class regcache_test): Delete.
230 (test_target_has_registers, test_target_has_stack)
231 (test_target_has_memory, test_target_prepare_to_store)
232 (test_target_store_registers): New functions.
233 (test_target_ops): New class.
234 (register_to_value_test): Error out if there's already a
235 process_stratum (or higher) target pushed. Create a fuller mock
236 environment, with mock target_ops, inferior, address space, thread
237 and inferior_ptid.
238 * progspace.c (struct address_space): Move to ...
239 * progspace.h (struct address_space): ... here.
240 * regcache.h (regcache::~regcache, regcache::raw_write)
241 [GDB_SELF_TEST]: No longer virtual.
242
4c71c105
SM
2432017-10-04 Simon Marchi <simon.marchi@ericsson.com>
244
245 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
246
73dcd72d
PA
2472017-10-04 Pedro Alves <palves@redhat.com>
248
249 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
250 out of 'between TRY and CATCH'.
251
44704526
PA
2522017-10-04 Pedro Alves <palves@redhat.com>
253
254 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
255 * common/common-exceptions.h (TRY): Open an outermost scope.
256 Expand intro comment.
257 (CATCH): Reindent.
258 (END_CATCH): Close the outermost scope.
259 * completer.c (complete_line_internal): Add missing END_CATCH.
260
bc3b087d
SDJ
2612017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
262
263 * NEWS (Changes since GDB 8.0): Add entry about new
264 'set-cwd-on-gdbserver' feature.
265 (New remote packets): Add entry for QSetWorkingDir.
266 * common/common-inferior.h (set_inferior_cwd): New prototype.
267 * infcmd.c (set_inferior_cwd): Remove "static".
268 (show_cwd_command): Expand text to include remote debugging.
269 * remote.c: Add PACKET_QSetWorkingDir.
270 (remote_protocol_features) <QSetWorkingDir>: New entry for
271 PACKET_QSetWorkingDir.
272 (extended_remote_set_inferior_cwd): New function.
273 (extended_remote_create_inferior): Call
274 "extended_remote_set_inferior_cwd".
275 (_initialize_remote): Call "add_packet_config_cmd" for
276 QSetWorkingDir.
277
d092c5a2
SDJ
2782017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
279
280 * NEWS (New commands): Mention "set/show cwd".
281 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
282 "cd" command's help text.
283 * common/common-inferior.h (get_inferior_cwd): New prototype.
284 * infcmd.c (inferior_cwd_scratch): New global variable.
285 (set_inferior_cwd): New function.
286 (get_inferior_cwd): Likewise.
287 (set_cwd_command): Likewise.
288 (show_cwd_command): Likewise.
289 (_initialize_infcmd): Add "set/show cwd" commands.
290 * inferior.h (class inferior) <cwd>: New field.
291 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
292 (fork_inferior): Change inferior's cwd before its execution.
293 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
294 to CreateProcess.
295
7da0a886
SDJ
2962017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
297
298 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
299 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
300 (COMMON_OBS): Add gdb_tilde_expand.o.
301 * common/gdb_tilde_expand.c: New file.
302 * common/gdb_tilde_expand.h: Likewise.
303
db8dd160
MR
3042017-10-03 Maciej W. Rozycki <macro@imgtec.com>
305
306 * gdbarch.sh (objfile): Remove duplicate declaration.
307 * gdbarch.h: Regenerate.
308
f8bfbf22
TT
3092017-10-03 Tom Tromey <tom@tromey.com>
310
311 * utils.c (internal_vproblem): Use string_vprintf.
312
5178ed48
TT
3132017-10-03 Tom Tromey <tom@tromey.com>
314
315 * printcmd.c (info_symbol_command): Use std::string.
316
8cff8730
TT
3172017-10-03 Tom Tromey <tom@tromey.com>
318
319 * top.c (gdb_safe_append_history): Use std::string.
320
895b8f30
TT
3212017-10-03 Tom Tromey <tom@tromey.com>
322
323 * event-top.c (stdin_event_handler): Update.
324 * main.c (captured_main_1): Update.
325 * top.h (make_delete_ui_cleanup): Remove.
326 (struct ui): Add constructor and destructor.
327 (new_ui, delete_ui): Remove.
328 * top.c (make_delete_ui_cleanup): Remove.
329 (new_ui_command): Use std::unique_ptr.
330 (delete_ui_cleanup): Remove.
331 (ui::ui): Rename from new_ui. Update.
332 (free_ui): Remove.
333 (ui::~ui): Rename from delete_ui. Update.
334
0efef640
TT
3352017-10-03 Tom Tromey <tom@tromey.com>
336
337 * symfile.c (load_progress): Use gdb::byte_vector.
338
245ad7d3
TT
3392017-10-03 Tom Tromey <tom@tromey.com>
340
341 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
342 declaration.
343 * printcmd.c (x_command): Remove unused declaration.
344 * symfile.c (symbol_file_command): Remove unused declaration.
345
e05550d7
TT
3462017-10-03 Tom Tromey <tom@tromey.com>
347
348 * utils.c (internal_vproblem): Use std::string.
349 (defaulted_query): Likewise.
350
b95de2b7
TT
3512017-10-03 Tom Tromey <tom@tromey.com>
352
353 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
354 * top.c (execute_command_to_string): Update.
355 * utils.c (make_cleanup_restore_page_info): Remove.
356 (do_restore_page_info_cleanup): Remove.
357 (set_batch_flag_and_restore_page_info):
358 New.
359 (make_cleanup_restore_page_info): Remove.
360 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
361 (~set_batch_flag_and_restore_page_info): New
362 (make_cleanup_restore_uinteger): Remove.
363 (make_cleanup_restore_integer): Remove.
364 (struct restore_integer_closure): Remove.
365 (restore_integer): Remove.
366 * utils.h (struct set_batch_flag_and_restore_page_info): New
367 class.
368 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
369 (make_cleanup_restore_page_info): Remove.
370 (make_cleanup_restore_uinteger) Remove.
371 (make_cleanup_restore_integer) Remove.
372
07036511
TT
3732017-10-03 Tom Tromey <tom@tromey.com>
374
375 * record-full.h (record_full_gdb_operation_disable_set): Return
376 scoped_restore_tmpl<int>.
377 * infrun.c (adjust_pc_after_break): Update.
378 (handle_signal_stop): Update.
379 * record-full.c (record_full_gdb_operation_disable_set): Return
380 scoped_restore_tmpl<int>.
381 (record_full_wait_1, record_full_insert_breakpoint)
382 (record_full_remove_breakpoint, record_full_save)
383 (record_full_goto_insn): Update.
384
45320ffa
TT
3852017-10-02 Tom Tromey <tom@tromey.com>
386
387 PR rust/22236:
388 * rust-lang.c (rust_val_print_str): New function.
389 (val_print_struct): Call it.
390 (rust_subscript): Preserve name of slice type.
391
b3e3859b
TT
3922017-10-02 Tom Tromey <tom@tromey.com>
393
394 * rust-lang.c (rust_subscript): Handle slices in
395 EVAL_AVOID_SIDE_EFFECTS case.
396
01af5e0d
TT
3972017-10-02 Tom Tromey <tom@tromey.com>
398
399 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
400
888e3ddb
TT
4012017-10-02 Tom Tromey <tom@tromey.com>
402
403 * rust-lang.h (rust_slice_type): Add "extern".
404
cc536b21
PA
4052017-10-02 Tom Tromey <tom@tromey.com>
406 Pedro Alves <palves@redhat.com>
407
408 * ada-lang.h (ada_exc_info::operator<): Make const.
409 (ada_exc_info::operator==): Make const.
410 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
411 Make const.
412
386c8614
TT
4132017-09-29 Tom Tromey <tom@tromey.com>
414
415 * target.c (read_whatever_is_readable): Change type of "result".
416 Update.
417 (free_memory_read_result_vector): Remove.
418 (read_memory_robust): Change return type. Update.
419 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
420 bin2hex, std::string.
421 * target.h (memory_read_result_s): Remove typedef.
422 (free_memory_read_result_vector): Remove.
423 (read_memory_robust): Return std::vector.
424
789c4b5e
TT
4252017-09-29 Tom Tromey <tom@tromey.com>
426
427 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
428
ab816a27
TT
4292017-09-29 Tom Tromey <tom@tromey.com>
430
431 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
432 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
433 operator< and operator==.
434 (ada_exceptions_list): Return a std::vector.
435 * ada-lang.c (ada_exc_info::operator<): Rename from
436 compare_ada_exception_info.
437 (ada_exc_info::operator==): New.
438 (sort_remove_dups_ada_exceptions_list): Change type of
439 "exceptions".
440 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
441 (ada_add_global_exceptions): Likewise.
442 (ada_exceptions_list_1): Return a std::vector.
443 (ada_exceptions_list): Likewise.
444
52f9abe4
TT
4452017-09-29 Tom Tromey <tom@tromey.com>
446
447 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
448 'std::set *'.
449 (print_one_inferior): Update.
450 (free_vector_of_ints): Remove.
451 (list_available_thread_groups): Change "ids" to std::set.
452 (mi_cmd_list_thread_groups): Update.
453 (struct collect_cores_data) <core>: Now a std::set.
454 (collect_cores): Update.
455 (unique): Remove.
456 (print_one_inferior): Update.
457
dcd5ddcc
TT
4582017-09-29 Tom Tromey <tom@tromey.com>
459
460 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
461 (mi_execute_async_cli_command): Likewise.
462 (mi_cmd_trace_frame_collected): Use field_fmt.
463
45d288cc
TT
4642017-09-29 Tom Tromey <tom@tromey.com>
465
466 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
467 gdb::byte_vector.
468
6afe2f4a
TT
4692017-09-29 Tom Tromey <tom@tromey.com>
470
471 * mi/mi-parse.c (mi_parse): Remove unused declaration.
472
9813429a
TT
4732017-09-29 Tom Tromey <tom@tromey.com>
474
475 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
476
2d6960b4
TT
4772017-09-29 Tom Tromey <tom@tromey.com>
478
479 * varobj.h (varobj_gen_name): Return std::string.
480 * varobj.c (varobj_gen_name): Return std::string.
481 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
482 (mi_cmd_var_delete): Don't copy "name".
483
784c453a
TT
4842017-09-29 Tom Tromey <tom@tromey.com>
485
486 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
487 (mi_cmd_break_insert_1): Update.
488
a9bc57b9
TT
4892017-09-29 Tom Tromey <tom@tromey.com>
490
491 * target.h (make_scoped_defer_target_commit_resume): Update.
492 * target.c (make_scoped_defer_target_commit_resume): Rename from
493 make_cleanup_defer_target_commit_resume. Return a
494 scoped_restore.
495 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
496
9754d8c4
TT
4972017-09-29 Tom Tromey <tom@tromey.com>
498
499 * main.c (captured_main_1): Remove unused declaration.
500 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
501
99ef965c
TT
5022017-09-29 Tom Tromey <tom@tromey.com>
503
504 * symtab.c (search_symbols): Remove unused outer cleanup.
505 (make_source_files_completion_list): Remove unused declaration.
506
42518ba7
TT
5072017-09-29 Tom Tromey <tom@tromey.com>
508
509 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
510
726b2169
TT
5112017-09-29 Tom Tromey <tom@tromey.com>
512
513 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
514 gdb::byte_vector.
515
55b06432
TT
5162017-09-29 Tom Tromey <tom@tromey.com>
517
518 * complaints.c (vcomplaint): Use std::string.
519
8abcee91
TT
5202017-09-29 Tom Tromey <tom@tromey.com>
521
522 * tracepoint.c (trace_variable_command): Use std::string.
523 (encode_actions_1): Remove unused declarations.
524 (create_tsv_from_upload): Use std::string.
525
6ad94bc7
TT
5262017-09-29 Tom Tromey <tom@tromey.com>
527
528 * cp-support.c (gdb_demangle): Use std::string.
529
2003f3d8
TT
5302017-09-29 Tom Tromey <tom@tromey.com>
531
532 * stack.c (parse_frame_specification): Use std::string
533 (info_frame_command): Use gdb::unique_xmalloc_ptr.
534
8f8accb5
TT
5352017-09-29 Tom Tromey <tom@tromey.com>
536
537 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
538
200aa7b1
TT
5392017-09-29 Tom Tromey <tom@tromey.com>
540
541 * utils.c (vfprintf_maybe_filtered): Use std::string.
542 (vfprintf_unfiltered): Likewise.
543
606aae8a
TT
5442017-09-29 Tom Tromey <tom@tromey.com>
545
546 * event-top.c (top_level_prompt): Return std::string.
547 (display_gdb_prompt): Update.
548
bd413795
TT
5492017-09-29 Tom Tromey <tom@tromey.com>
550
551 * unittests/common-utils-selftests.c (format): New function.
552 (string_vprintf_tests): New function.
553 (_initialize_common_utils_selftests): Register new tests.
554 * common/common-utils.c (string_vprintf): New function.
555 * common/common-utils.h (string_vprintf): Declare.
556
256642e8
PA
5572017-09-29 Pedro Alves <palves@redhat.com>
558
559 * common/rsp-low.c (unpack_varlen_hex): Constify.
560 * common/rsp-low.h (unpack_varlen_hex): Constify.
561 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
562 Constify.
563 * remote.c (remote_set_permissions, read_ptid)
564 (remote_current_thread, remote_get_threads_with_qthreadinfo)
565 (remote_static_tracepoint_marker_at)
566 (remote_static_tracepoint_markers_by_strid)
567 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
568 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
569 (parse_tracepoint_definition, parse_tsv_definition)
570 (parse_static_tracepoint_marker_definition): Constify.
571 * tracepoint.h (parse_static_tracepoint_marker_definition)
572 (parse_trace_status, parse_tracepoint_status)
573 (parse_tracepoint_definition, parse_tsv_definition): Constify.
574
b6bb3468
PA
5752017-09-29 Pedro Alves <palves@redhat.com>
576
577 * remote.c (target_buf, target_buf_size): Delete.
578 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
579 Use the connection's packet buffer instead.
580 All callers adjusted.
581 (_initialize_remote): Remove references to target_buf and
582 target_buf_size.
583
b2f8eb7a
PA
5842017-09-28 Pedro Alves <palves@redhat.com>
585
586 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
587 unittests/common-utils-selftests.c.
588 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
589 (COMMON_OBS): Remove utils-selftests.o.
590 * utils-selftests.c: Move to ...
591 * unittests/common-utils-selftests.c: ... here and rename self
592 test to "string_printf".
593
08302ed2
DE
5942017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
595
596 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
597 having NULL cus or tus.
598
96a5a1d3
UW
5992017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
600
601 * arm-tdep.c: (convert_from_extended): Remove.
602 (convert_to_extended): Likewise.
603 (arm_extract_return_value): Use convert_typed_floating.
604 (arm_store_return_value): Likewise.
605
606 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
607 * sh-tdep.c: Do not include "floatformat.h".
608 (sh_littlebyte_bigword_type): New function.
609 (sh_register_convert_to_virtual): Use convert_typed_floating.
610 (sh_register_convert_to_raw): Likewise.
611 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
612 (sh64_littlebyte_bigword_type): New function.
613 (sh64_extract_return_value): Use convert_typed_floating.
614 (sh64_register_convert_to_virtual): Likewise.
615 (sh64_register_convert_to_raw): Likewise.
616
0db7851f
UW
6172017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
618
619 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
620 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
621
622 * gdbtypes.h (union type_specific): Make field floatformat hold
623 just a single struct floatformat, not an array.
624 (floatformat_from_type): Move here.
625 * gdbtypes.c (floatformat_from_type): Move here. Update to
626 changed TYPE_FLOATFORMAT definition.
627 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
628 (recursive_dump_type): Likewise.
629 (init_float_type): Install correct floatformat for byte order.
630 (arch_float_type): Likewise.
631
77b7c781
UW
6322017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
633
634 * gdbtypes.c (init_type): Change incoming argument from
635 length-in-bytes to length-in-bits. Assert length is a
636 multiple of TARGET_CHAR_BITS.
637 (arch_type, arch_flags_type): Likewise.
638 (init_integer_type): Update call to init_type.
639 (init_character_type): Likewise.
640 (init_boolean_type): Likewise.
641 (init_float_type): Likewise.
642 (init_decfloat_type): Likewise.
643 (init_complex_type): Likewise.
644 (init_pointer_type): Likewise.
645 (objfile_type): Likewise.
646 (arch_integer_type): Update call to arch_type.
647 (arch_character_type): Likewise.
648 (arch_boolean_type): Likewise.
649 (arch_float_type): Likewise.
650 (arch_decfloat_type): Likewise.
651 (arch_complex_type): Likewise.
652 (arch_pointer_type): Likewise.
653 (gdbtypes_post_init): Likewise.
654
655 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
656 (read_base_type): Likewise.
657 * mdebugread.c (basic_type): Likewise.
658 * stabsread.c (dbx_init_float_type): Likewise.
659 (rs6000_builtin_type): Likewise.
660 (read_range_type): Likewise. Also, fix call to init_integer_type
661 with erroneous length argument.
662
663 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
664 * d-lang.c (build_d_types): Likewise.
665 * f-lang.c (build_fortran_types): Likewise.
666 * go-lang.c (build_go_types): Likewise.
667 * opencl-lang.c (build_opencl_types): Likewise.
668 * jit.c (finalize_symtab): Likewise.
669 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
670 (build_std_type_info_type): Likewise.
671 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
672 update call to arch_flags_type.
673
674 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
675 arch_type.
676 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
677 * windows-tdep.c (windows_get_tlb_type): Likewise.
678
679 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
680 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
681 * m32c-tdep.c (make_types): Likewise.
682 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
683 (rl78_psw_type): Update call to arch_flags_type.
684 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
685 * rx-tdep.c (rx_psw_type): Likewise.
686 (rx_fpsw_type): Likewise.
687 * sparc-tdep.c (sparc_psr_type): Likewise.
688 (sparc_fsr_type): Likewise.
689 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
690 (sparc64_ccr_type): Likewise.
691 (sparc64_fsr_type): Likewise.
692 (sparc64_fprs_type): Likewise.
693
f21b4d5c
TT
6942017-09-27 Tom Tromey <tom@tromey.com>
695
696 * findcmd.c (find_command): Constify.
697
643c2ffa
TT
6982017-09-27 Tom Tromey <tom@tromey.com>
699
700 * ada-tasks.c (task_command_1, task_command): Constify.
701
510e5e56
TT
7022017-09-27 Tom Tromey <tom@tromey.com>
703
704 * symtab.c (maintenance_print_symbol_cache)
705 (maintenance_flush_symbol_cache)
706 (maintenance_print_symbol_cache_statistics): Constify.
707
e503b191
TT
7082017-09-27 Tom Tromey <tom@tromey.com>
709
710 * inferior.c (detach_inferior_command, kill_inferior_command)
711 (inferior_command): Constify.
712
4e001312
TT
7132017-09-27 Tom Tromey <tom@tromey.com>
714
715 * regcache.c (regcache_print, maintenance_print_registers)
716 (maintenance_print_raw_registers)
717 (maintenance_print_cooked_registers)
718 (maintenance_print_register_groups)
719 (maintenance_print_remote_registers): Constify.
720
77763700
TT
7212017-09-27 Tom Tromey <tom@tromey.com>
722
723 * printcmd.c (map_display_numbers, undisplay_command)
724 (enable_disable_display_command, enable_display_command)
725 (disable_display_command): Constify.
726
4495129a
TT
7272017-09-27 Tom Tromey <tom@tromey.com>
728
729 * breakpoint.h (delete_command): Don't declare.
730 * breakpoint.c (delete_command, enable_once_command)
731 (enable_count_command, enable_delete_command, breakpoint_1)
732 (maintenance_info_breakpoints, stopin_command, stopat_command)
733 (delete_command, delete_trace_command, save_breakpoints)
734 (save_breakpoints_command, save_tracepoints_command): Constify.
735
3088cf40
TT
7362017-09-27 Tom Tromey <tom@tromey.com>
737
738 * macrocmd.c (macro_expand_command, macro_expand_once_command)
739 (skip_ws, extract_identifier, macro_define_command)
740 (macro_undef_command, macro_list_command): Constify.
741
69f476a3
TT
7422017-09-27 Tom Tromey <tom@tromey.com>
743
744 * infcmd.c (environment_info, set_environment_command)
745 (unset_environment_command, path_info, info_proc_cmd_1)
746 (info_proc_cmd_mappings, info_proc_cmd_stat)
747 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
748 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
749
c4a3e68e
TT
7502017-09-27 Tom Tromey <tom@tromey.com>
751
752 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
753 Constify.
754
c9d31bd6
TT
7552017-09-27 Tom Tromey <tom@tromey.com>
756
757 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
758
1f3f85eb
TT
7592017-09-27 Tom Tromey <tom@tromey.com>
760
761 * demangle.c (demangle_command): Constify.
762
9c504b5d
TT
7632017-09-27 Tom Tromey <tom@tromey.com>
764
765 * progspace.c (maintenance_info_program_spaces_command):
766 Constify.
767
6663cf91
TT
7682017-09-27 Tom Tromey <tom@tromey.com>
769
770 * compile/compile.c (check_raw_argument, compile_file_command)
771 (compile_code_command, compile_print_command): Constify.
772
34e5fa26
TT
7732017-09-27 Tom Tromey <tom@tromey.com>
774
775 * reggroups.c (maintenance_print_reggroups): Constify.
776
8384c356
TT
7772017-09-27 Tom Tromey <tom@tromey.com>
778
779 * dwarf2read.c (save_gdb_index_command): Constify.
780
884beb0c
TT
7812017-09-27 Tom Tromey <tom@tromey.com>
782
783 * stap-probe.c (info_probes_stap_command): Constify.
784
e0b2930c
TT
7852017-09-27 Tom Tromey <tom@tromey.com>
786
787 * fork-child.c (unset_exec_wrapper_command): Constify.
788
f938677d
TT
7892017-09-27 Tom Tromey <tom@tromey.com>
790
791 * btrace.c (get_uint, get_context_size, no_chunk)
792 (maint_btrace_packet_history_cmd)
793 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
794 (maint_info_btrace_cmd): Constify.
795
8949cb87
TT
7962017-09-27 Tom Tromey <tom@tromey.com>
797
798 * reverse.c (delete_bookmark_command): Constify.
799
ac88e2de
TT
8002017-09-27 Tom Tromey <tom@tromey.com>
801
802 * remote.c (set_memory_packet_size)
803 (set_memory_write_packet_size, show_memory_write_packet_size)
804 (set_memory_read_packet_size, show_memory_read_packet_size)
805 (compare_sections_command, packet_command, remote_put_command)
806 (remote_get_command, remote_delete_command): Constify.
807
bd4c9dfe
TT
8082017-09-27 Tom Tromey <tom@tromey.com>
809
810 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
811 (set_mipsfpu_double_command, set_mipsfpu_none_command)
812 (set_mipsfpu_auto_command): Constify.
813
5e93d4c6
TT
8142017-09-27 Tom Tromey <tom@tromey.com>
815
816 * cli/cli-cmds.h (cd_command): Constify.
817 * cli/cli-cmds.c (cd_command): Constify.
818
fc41a75b
TT
8192017-09-27 Tom Tromey <tom@tromey.com>
820
821 * thread.c (thread_name_command, thread_find_command): Constify.
822
67810076
TT
8232017-09-27 Tom Tromey <tom@tromey.com>
824
825 * probe.c (enable_probes_command, disable_probes_command):
826 Constify.
827
1d8b34a7
TT
8282017-09-27 Tom Tromey <tom@tromey.com>
829
830 * symfile.c (symbol_file_command): Constify.
831 * gdbcore.h (deprecated_file_changed_hook): Constify.
832 * exec.c (deprecated_file_changed_hook, exec_file_command)
833 (file_command): Constify.
834 * defs.h (symbol_file_command): Constify.
835
442019e1
TT
8362017-09-27 Tom Tromey <tom@tromey.com>
837
838 * remote-fileio.c (set_system_call_allowed)
839 (show_system_call_allowed): Constify.
840
2983f7cb
TT
8412017-09-27 Tom Tromey <tom@tromey.com>
842
843 * tracepoint.c (delete_trace_variable_command)
844 (tfind_end_command, tfind_start_command, tfind_pc_command)
845 (tfind_tracepoint_command, tfind_line_command)
846 (tfind_range_command, tfind_outside_command): Constify.
847
4fd41b24
TT
8482017-09-27 Tom Tromey <tom@tromey.com>
849
850 * ax-gdb.c (maint_agent_printf_command, agent_command)
851 (agent_eval_command): Constify.
852
f2fc3015
TT
8532017-09-27 Tom Tromey <tom@tromey.com>
854
855 * tracepoint.c (info_scope_command): Constify.
856 * python/python.c (gdbpy_decode_line): Constify.
857 * python/py-breakpoint.c (bppy_init): Constify.
858 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
859 * location.h: (new_linespec_location)
860 (string_to_event_location_basic, string_to_event_location):
861 Constify.
862 * location.c (new_linespec_location)
863 (string_to_event_location_basic, string_to_event_location):
864 Constify.
865 * linespec.h (decode_line_with_current_source)
866 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
867 * linespec.c (linespec_lex_to_end)
868 (decode_line_with_current_source)
869 (decode_line_with_last_displayed): Constify.
870 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
871 Constify.
872 * cli/cli-cmds.c (edit_command, list_command): Constify.
873 * breakpoint.h (until_break_command, watch_command_wrapper)
874 (awatch_command_wrapper, rwatch_command_wrapper)
875 (init_ada_exception_breakpoint): Constify.
876 * breakpoint.c (break_command_1, dprintf_command)
877 (break_range_command, watch_command_wrapper)
878 (rwatch_command_wrapper, awatch_command_wrapper)
879 (until_break_command, init_ada_exception_breakpoint)
880 (strace_marker_create_sals_from_location, trace_command)
881 (ftrace_command, strace_command, struct tracepoint): Constify.
882 * ax-gdb.c (agent_command_1): Constify.
883 * ada-lang.c (ada_exception_sal): Constify.
884
8c2f95f4
TT
8852017-09-27 Tom Tromey <tom@tromey.com>
886
887 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
888 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
889 (get_context_size, no_chunk, get_insn_history_modifiers)
890 (cmd_record_insn_history, get_call_history_modifiers)
891 (cmd_record_call_history): Constify.
892
a0d65762
TT
8932017-09-27 Tom Tromey <tom@tromey.com>
894
895 * source.c (show_substitute_path_command)
896 (unset_substitute_path_command, set_substitute_path_command):
897 Constify.
898
58971144
TT
8992017-09-27 Tom Tromey <tom@tromey.com>
900
901 * typeprint.c (maintenance_print_type): Constify.
902 * maint.c (maintenance_dump_me, maintenance_demangle)
903 (maintenance_time_display, maintenance_info_sections)
904 (maintenance_print_statistics, maintenance_deprecate)
905 (maintenance_undeprecate): Constify.
906 (maintenance_do_deprecate): Constify. Use std::string.
907 (maintenance_selftest): Constify.
908 * gdbtypes.h (maintenance_print_type): Constify.
909
c482f52c
TT
9102017-09-27 Tom Tromey <tom@tromey.com>
911
912 * hppa-tdep.c (unwind_command): Constify.
913
e100df1a
TT
9142017-09-27 Tom Tromey <tom@tromey.com>
915
916 * target-descriptions.c (unset_tdesc_filename_cmd)
917 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
918 Constify.
919
31d56ade
TT
9202017-09-27 Tom Tromey <tom@tromey.com>
921
922 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
923
b961da0b
TT
9242017-09-27 Tom Tromey <tom@tromey.com>
925
926 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
927
e2d8ae16
TT
9282017-09-27 Tom Tromey <tom@tromey.com>
929
930 * tui/tui-regs.c (tui_reg_command): Constify.
931
863779b0
TT
9322017-09-27 Tom Tromey <tom@tromey.com>
933
934 * skip.c (skip_file_command, skip_function_command)
935 (skip_enable_command, skip_disable_command, skip_delete_command):
936 Constify.
937
cdb34d4a
TT
9382017-09-27 Tom Tromey <tom@tromey.com>
939
940 * record-btrace.c (cmd_record_btrace_bts_start)
941 (cmd_record_btrace_pt_start): Constify.
942
e99c83e7
TT
9432017-09-27 Tom Tromey <tom@tromey.com>
944
945 * symmisc.c (maintenance_print_symbols)
946 (maintenance_print_msymbols, maintenance_print_objfiles)
947 (maintenance_info_symtabs, maintenance_check_symtabs)
948 (maintenance_expand_symtabs, maintenance_info_line_tables):
949 Constify.
950
32faf971
TT
9512017-09-27 Tom Tromey <tom@tromey.com>
952
953 * top.c (new_ui_command): Constify.
954
2cf311eb
TT
9552017-09-27 Tom Tromey <tom@tromey.com>
956
957 * symfile.c (add_symbol_file_command)
958 (remove_symbol_file_command, list_overlays_command)
959 (map_overlay_command, unmap_overlay_command)
960 (overlay_auto_command, overlay_manual_command)
961 (overlay_off_command, overlay_load_command): Constify.
962
e6738699
TT
9632017-09-27 Tom Tromey <tom@tromey.com>
964
965 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
966 (info_spu_mailbox_command, info_spu_dma_command)
967 (info_spu_proxydma_command): Constify.
968
aa360cd5
TT
9692017-09-27 Tom Tromey <tom@tromey.com>
970
971 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
972
898241a5
TT
9732017-09-27 Tom Tromey <tom@tromey.com>
974
975 * cli/cli-script.c (user_defined_command): Constify.
976
2d0ac106
TT
9772017-09-27 Tom Tromey <tom@tromey.com>
978
979 * cli/cli-dump.c (dump_memory_command, dump_value_command)
980 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
981 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
982 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
983 (dump_binary_value, append_binary_memory, append_binary_value):
984 Constify.
985 (struct dump_context) <func>: Constify.
986 (add_dump_command): Update.
987
dede02ce
TT
9882017-09-27 Tom Tromey <tom@tromey.com>
989
990 * cli/cli-cmds.c (show_version, show_configuration)
991 (source_command, show_user): Constify.
992
d3cb6b99
TT
9932017-09-27 Tom Tromey <tom@tromey.com>
994
995 * target.c (maintenance_print_target_stack): Constify.
996
1970a12f
TT
9972017-09-27 Tom Tromey <tom@tromey.com>
998
999 * interps.c (interpreter_exec_cmd): Constify.
1000
41243651
TT
10012017-09-27 Tom Tromey <tom@tromey.com>
1002
1003 * record-full.c (cmd_record_full_restore): Constify.
1004
4465d9db
TT
10052017-09-27 Tom Tromey <tom@tromey.com>
1006
1007 * memattr.c (enable_mem_command, disable_mem_command)
1008 (delete_mem_command): Constify.
1009
ad25e423
TT
10102017-09-27 Tom Tromey <tom@tromey.com>
1011
1012 * value.c (show_convenience): Constify.
1013
d64097b1
TT
10142017-09-27 Tom Tromey <tom@tromey.com>
1015
1016 * gdbcore.h (core_file_command): Update.
1017 * corefile.c (core_file_command): Constify.
1018
4d4589ef
TT
10192017-09-27 Tom Tromey <tom@tromey.com>
1020
1021 * user-regs.c (maintenance_print_user_registers): Constify.
1022
32a7bf17
TT
10232017-09-27 Tom Tromey <tom@tromey.com>
1024
1025 * cp-namespace.c (maintenance_cplus_namespace): Constify.
1026
4a475551
TT
10272017-09-27 Tom Tromey <tom@tromey.com>
1028
1029 * cp-support.c (first_component_command): Constify.
1030
990b9f9f
TT
10312017-09-27 Tom Tromey <tom@tromey.com>
1032
1033 * psymtab.c (maintenance_print_psymbols)
1034 (maintenance_info_psymtabs, maintenance_check_psymtabs):
1035 Constify.
1036
c281872e
TT
10372017-09-27 Tom Tromey <tom@tromey.com>
1038
1039 * windows-tdep.c (display_tib): Constify.
1040
5b64bf74
TT
10412017-09-27 Tom Tromey <tom@tromey.com>
1042
1043 * linux-fork.c (delete_checkpoint_command)
1044 (detach_checkpoint_command): Constify.
1045
4ada038f
TT
10462017-09-27 Tom Tromey <tom@tromey.com>
1047
1048 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
1049
57f5a81b
TT
10502017-09-27 Tom Tromey <tom@tromey.com>
1051
1052 * arc-tdep.c (dump_arc_instruction_command): Constify.
1053
b0a8e6c4
TT
10542017-09-27 Tom Tromey <tom@tromey.com>
1055
1056 * valprint.c (set_radix, show_radix): Constify.
1057
8d97dc1c
TT
10582017-09-27 Tom Tromey <tom@tromey.com>
1059
1060 * dtrace-probe.c (info_probes_dtrace_command): Constify.
1061
eb7c454d
TT
10622017-09-27 Tom Tromey <tom@tromey.com>
1063
1064 * command.h (not_just_help_class_command): Update.
1065 * cli/cli-decode.h (not_just_help_class_command): Update.
1066 * cli/cli-decode.c (not_just_help_class_command): Constify.
1067
e4e33335
TT
10682017-09-27 Tom Tromey <tom@tromey.com>
1069
1070 * gdb_bfd.c (maintenance_info_bfds): Constify.
1071
0450cc4c
TT
10722017-09-27 Tom Tromey <tom@tromey.com>
1073
1074 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
1075 overloads.
1076 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
1077 (do_const_cfunc): New function.
1078 (cmd_cfunc_eq): New overload.
1079 (cli_user_command_p): Check do_const_cfunc.
1080 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
1081 const_cfunc.
1082 * command.h (add_cmd): Add const overload and no-function
1083 overload.
1084 (set_cmd_cfunc): Add const overload.
1085 (cmd_const_cfunc_ftype): Declare.
1086 (cmd_cfunc_eq): Add const overload.
1087 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
1088 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
1089 overload.
1090
a9bbfbd8
TT
10912017-09-27 Tom Tromey <tom@tromey.com>
1092
1093 * macroexp.c (get_next_token_for_substitution): New function.
1094 (substitute_args): Call it. Check for __VA_OPT__.
1095
5230b05a
WT
10962017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
1097 Pedro Alves <palves@redhat.com>
1098
1099 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
1100 producer_is_icc_lt_14.
1101 (producer_is_icc_lt_14): New function.
1102 (check_producer): Add code for checking version of ICC.
1103 (producer_is_icc): Move to producer.c.
1104 (read_structure_type): Restrict ICC workaround to ICC<14.
1105 * producer.c: Include selftest.h.
1106 (producer_is_icc, producer_parsing_tests, _initialize_producer):
1107 New functions.
1108 * producer.h (producer_is_icc): New declaration.
1109
b32b108a
WT
11102017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
1111
1112 * Makefile.in (SFILES): Add producer.c.
1113 (COMMON_OBS): Add producer.o
1114 * amd64-tdep.c (producer.h): Add new include.
1115 * dwarf2read.c (producer.h): Add new include.
1116 * producer.c: New file.
1117 * producer.h: New file.
1118 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
1119 producer.c.
1120 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
1121 producer.h.
1122
5007d765
MK
11232017-09-26 Matthias Klose <doko@ubuntu.com>
1124
1125 * configure.ac: Search ncursesw before ncurses.
1126 Check ncursesw/ncurses.h before ncurses/ncurses.h.
1127 * gdb_curses.h: Include <ncursesw/ncurses.h>
1128 * config.in, configure: Regenerate.
1129
281c4447
RO
11302017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1131
1132 PR gdb/22185
1133 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
1134 obsolete.
1135 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
1136 Remove i386sol2 support.
1137 * configure.nat <i386sol2>: Remove.
1138 <sol2-64>: Fold into ...
1139 <sol2>: ... this.
1140 Move common settings to default section.
1141 Add sol-thread.o.
1142 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
1143 x86_64-*-solaris2.1[0-9]*>: Rename to ...
1144 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
1145 <i[34567]86-*-solaris*>: Remove.
1146 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
1147
1148 * configure.ac: Remove wctype in libw check.
1149 (_MSE_INT_H): Don't define on Solaris 7-9.
1150 <solaris*>: Remove libthread_db.so.1 check.
1151 * configure: Regenerate.
1152 * config.in: Regenerate.
1153
1154 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
1155 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
1156 (gdb_ps_size_t): Remove.
1157 Use base types in users.
1158 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
1159
1160 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
1161
39b06c20
RO
11622017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1163
1164 PR build/22206
1165 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
1166 (adi_is_addr_mapped): Likewise.
1167 (PSR_ICC): Don't redefine.
1168 (PSR_IMPL): Likewise.
1169
6c3e20f1
TT
11702017-09-25 Tom Tromey <tom@tromey.com>
1171
1172 * regcache.c (regcache::dump): Use string_printf.
1173
b292235f
TT
11742017-09-25 Tom Tromey <tom@tromey.com>
1175
1176 * regcache.c (class regcache_invalidator): New.
1177 (struct register_to_invalidate): Remove.
1178 (make_cleanup_regcache_invalidate): Remove.
1179 (regcache::raw_write): Use regcache_invalidator.
1180
9ac86b52
TT
11812017-09-25 Tom Tromey <tom@tromey.com>
1182
1183 * spu-tdep.c (spu2ppu_sniffer): Update.
1184 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
1185 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
1186 Remove.
1187 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
1188 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
1189 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
1190 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
1191 (frame_pop): Update.
1192
c0e383c6
TT
11932017-09-25 Tom Tromey <tom@tromey.com>
1194
1195 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
1196 * regcache.h (regcache_xfree): Don't declare.
1197 * regcache.c (regcache_xfree): Remove.
1198 (do_regcache_xfree): Use delete.
1199 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
1200 * linux-fork.c (free_fork): Use delete.
1201 (fork_save_infrun_state): Likewise.
1202 * jit.c (jit_dealloc_cache): Use delete.
1203 * infrun.c (discard_infcall_suspend_state): Use delete.
1204
791199cc
TT
12052017-09-25 Tom Tromey <tom@tromey.com>
1206
1207 * regcache.h (regcache_xmalloc): Don't declare.
1208 (regcache_raw_set_cached_value): Update comment.
1209 * regcache.c (regcache_xmalloc): Remove.
1210 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
1211 * jit.c (jit_frame_sniffer): Use new.
1212 * frame.c (frame_save_as_regcache): Use new.
1213
289e23aa
AA
12142017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1215
1216 * NEWS: Advertise support for guarded-storage registers on IBM z.
1217
1b63490c
AA
12182017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1219
1220 * s390-linux-nat.c (have_regset_gs): New static variable.
1221 (s390_linux_fetch_inferior_registers): Handle guarded-storage
1222 control block and guarded-storage broadcast control regsets.
1223 (s390_read_description): Detect whether the target has
1224 guarded-storage support, return appropriate tdesc.
1225 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
1226 (features/s390x-gs-linux64.c): Likewise.
1227 (struct gdbarch_tdep) <have_gs>: New field.
1228 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
1229 (s390_gsbc_regset): New variables.
1230 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
1231 and s390_gsbc_regset, if applicable.
1232 (s390_core_read_description): Check whether core file was from a
1233 target with guarded-storage support; include appropriate regsets.
1234 (s390_gdbarch_init): Add registers for guarded-storage support.
1235 (_initialize_s390_tdep): Initialize new target descriptions that
1236 include registers for guarded-storage support.
1237 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
1238 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
1239 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
1240 (S390_NUM_REGS): Adjust macro definition.
1241 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
1242 (tdesc_s390x_gs_linux64): New declarations.
1243
96235dc1
AA
12442017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1245
1246 * features/s390-gs-linux64.xml: New file.
1247 * features/s390-gs.xml: New file.
1248 * features/s390-gsbc.xml: New file.
1249 * features/s390x-gs-linux64.xml: New file.
1250 * features/Makefile (WHICH): Add s390-gs-linux64 and
1251 s390x-gs-linux64.
1252 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
1253 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
1254 * features/s390-gs-linux64.c: New generated file.
1255 * features/s390x-gs-linux64.c: New file.
1256 * regformats/s390-gs-linux64.dat: New file.
1257 * regformats/s390x-gs-linux64.dat: New file.
1258
b4a7c699
TT
12592017-09-23 Tom Tromey <tom@tromey.com>
1260
1261 * defs.h (make_cleanup_override_quit_handler): Don't declare.
1262
c2f97536
TT
12632017-09-22 Tom Tromey <tom@tromey.com>
1264
1265 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
1266 type to scoped_restore_tmpl.
1267 <scoped_input_handler>: Initialize m_quit_handler directly.
1268
43573013
SDJ
12692017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
1270
1271 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
1272 (cd_command): Likewise. Free "current_directory" before
1273 assigning to it.
1274 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
1275 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
1276 * top.c (gdb_dirbuf): Remove global declaration.
1277 * top.h (gdb_dirbuf): Likewise.
1278
6ec2e0f5
SDJ
12792017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
1280
1281 * gnulib/aclocal.m4: Regenerate.
1282 * gnulib/config.in: Regenerate.
1283 * gnulib/configure: Regenerate.
1284 * gnulib/import/Makefile.am: Regenerate.
1285 * gnulib/import/Makefile.in: Regenerate.
1286 * gnulib/import/assure.h: New file.
1287 * gnulib/import/at-func.c: Likewise
1288 * gnulib/import/chdir-long.c: New file.
1289 * gnulib/import/chdir-long.h: New file.
1290 * gnulib/import/cloexec.c: New file.
1291 * gnulib/import/cloexec.h: New file.
1292 * gnulib/import/close.c: New file.
1293 * gnulib/import/closedir.c: New file.
1294 * gnulib/import/dirent-private.h: New file.
1295 * gnulib/import/dup-safer.c: New file.
1296 * gnulib/import/dup.c: New file.
1297 * gnulib/import/dup2.c: New file.
1298 * gnulib/import/error.c: New file.
1299 * gnulib/import/error.h: New file.
1300 * gnulib/import/exitfail.c: New file.
1301 * gnulib/import/exitfail.h: New file.
1302 * gnulib/import/fchdir.c: New file.
1303 * gnulib/import/fcntl.c: New file.
1304 * gnulib/import/fcntl.in.h: New file.
1305 * gnulib/import/fd-hook.c: New file.
1306 * gnulib/import/fd-hook.h: New file.
1307 * gnulib/import/fd-safer.c: New file.
1308 * gnulib/import/fdopendir.c: New file.
1309 * gnulib/import/filename.h: New file.
1310 * gnulib/import/filenamecat-lgpl.c: New file.
1311 * gnulib/import/filenamecat.h: New file.
1312 * gnulib/import/fstat.c: New file.
1313 * gnulib/import/fstatat.c: New file.
1314 * gnulib/import/getcwd-lgpl.c: New file.
1315 * gnulib/import/getcwd.c: New file.
1316 * gnulib/import/getdtablesize.c: New file.
1317 * gnulib/import/getlogin_r.c: New file.
1318 * gnulib/import/getprogname.c: New file.
1319 * gnulib/import/getprogname.h: New file.
1320 * gnulib/import/gettext.h: New file.
1321 * gnulib/import/glob-libc.h: New file.
1322 * gnulib/import/glob.c: New file.
1323 * gnulib/import/glob.in.h: New file.
1324 * gnulib/import/intprops.h: New file.
1325 * gnulib/import/m4/chdir-long.m4: New file.
1326 * gnulib/import/m4/close.m4: New file.
1327 * gnulib/import/m4/closedir.m4: New file.
1328 * gnulib/import/m4/d-ino.m4: New file.
1329 * gnulib/import/m4/d-type.m4: New file.
1330 * gnulib/import/m4/dup.m4: New file.
1331 * gnulib/import/m4/dup2.m4: New file.
1332 * gnulib/import/m4/error.m4: New file.
1333 * gnulib/import/m4/fchdir.m4: New file.
1334 * gnulib/import/m4/fcntl.m4: New file.
1335 * gnulib/import/m4/fcntl_h.m4: New file.
1336 * gnulib/import/m4/fdopendir.m4: New file.
1337 * gnulib/import/m4/filenamecat.m4: New file.
1338 * gnulib/import/m4/fstat.m4: New file.
1339 * gnulib/import/m4/fstatat.m4: New file.
1340 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
1341 * gnulib/import/m4/getcwd-path-max.m4: New file.
1342 * gnulib/import/m4/getcwd.m4: New file.
1343 * gnulib/import/m4/getdtablesize.m4: New file.
1344 * gnulib/import/m4/getlogin_r.m4: New file.
1345 * gnulib/import/m4/getprogname.m4: New file.
1346 * gnulib/import/m4/glob.m4: New file.
1347 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
1348 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
1349 * gnulib/import/m4/mempcpy.m4: New file.
1350 * gnulib/import/m4/memrchr.m4: New file.
1351 * gnulib/import/m4/mode_t.m4: New file.
1352 * gnulib/import/m4/msvc-inval.m4: New file.
1353 * gnulib/import/m4/msvc-nothrow.m4: New file.
1354 * gnulib/import/m4/open.m4: New file.
1355 * gnulib/import/m4/openat.m4: New file.
1356 * gnulib/import/m4/opendir.m4: New file.
1357 * gnulib/import/m4/readdir.m4: New file.
1358 * gnulib/import/m4/realloc.m4: New file.
1359 * gnulib/import/m4/rewinddir.m4: New file.
1360 * gnulib/import/m4/save-cwd.m4: New file.
1361 * gnulib/import/m4/strdup.m4: New file.
1362 * gnulib/import/m4/strerror.m4: New file.
1363 * gnulib/import/m4/unistd-safer.m4: New file.
1364 * gnulib/import/mempcpy.c: New file.
1365 * gnulib/import/memrchr.c: New file.
1366 * gnulib/import/msvc-inval.c: New file.
1367 * gnulib/import/msvc-inval.h: New file.
1368 * gnulib/import/msvc-nothrow.c: New file.
1369 * gnulib/import/msvc-nothrow.h: New file.
1370 * gnulib/import/open.c: New file.
1371 * gnulib/import/openat-die.c: New file.
1372 * gnulib/import/openat-priv.h: New file.
1373 * gnulib/import/openat-proc.c: New file.
1374 * gnulib/import/openat.c: New file.
1375 * gnulib/import/openat.h: New file.
1376 * gnulib/import/opendir.c: New file.
1377 * gnulib/import/pipe-safer.c: New file.
1378 * gnulib/import/readdir.c: New file.
1379 * gnulib/import/realloc.c: New file.
1380 * gnulib/import/rewinddir.c: New file.
1381 * gnulib/import/save-cwd.c: New file.
1382 * gnulib/import/save-cwd.h: New file.
1383 * gnulib/import/strdup.c: New file.
1384 * gnulib/import/strerror-override.c: New file.
1385 * gnulib/import/strerror-override.h: New file.
1386 * gnulib/import/strerror.c: New file.
1387 * gnulib/import/unistd--.h: New file.
1388 * gnulib/import/unistd-safer.h: New file.
1389 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1390 "getcwd" and "glob".
1391 * ser-tcp.c: Undefine "close" before redefining it.
1392
432ae719
SM
13932017-09-21 Simon Marchi <simon.marchi@ericsson.com>
1394
1395 * guile/scm-value.c (gdbscm_value_address): Initialize address,
1396 get rid of res_val.
1397
4fa7574e
RO
13982017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1399
1400 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
1401 <sol2,sparc>: Likewise.
1402 <sol2-64,i386>: Likewise.
1403
1404 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
1405 -Wdeprecated-declarations on *-*-solaris*.
1406 * configure: Regenerate.
1407
1408 * procfs.c: Include "nat/inferior.h".
1409 (procfs_info_proc): Fix typo.
1410
f6327dcb
KB
14112017-09-21 Kevin Buettner <kevinb@redhat.com>
1412
1413 * remote.c (vector): Include.
1414 (struct private_thread_info): Add field, thread_handle.
1415 (free_private_thread_info): Deallocate storage associated with
1416 thread handle.
1417 (get_private_info_thread): Initialize `thread_handle' field.
1418 (struct thread_item): Add field, thread_handle.
1419 (clear_threads_listing_context): Deallocate storage associated
1420 with thread handle.
1421 (start_thread): Add support for "handle" attribute.
1422 (thread_attributes): Add "handle".
1423 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
1424 field.
1425 (remote_update_thread_list): Update thread_handle.
1426 (remote_thread_handle_to_thread_info): New function.
1427 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
1428
fbbe5337
KB
14292017-09-21 Kevin Buettner <kevinb@redhat.com>
1430
1431 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
1432 function.
1433 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
1434 * python/python-internal.h (thread_object_type): Declare.
1435
e04ee09e
KB
14362017-09-21 Kevin Buettner <kevinb@redhat.com>
1437
1438 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
1439 (target_thread_handle_to_thread_info): Declare.
1440 * target.c (target_thread_handle_to_thread_info): New function.
1441 * target-delegates.c: Regenerate.
1442 * gdbthread.h (find_thread_by_handle): Declare.
1443 * thread.c (find_thread_by_handle): New function.
1444 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
1445 function.
1446 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
1447
1e5b66ed
SM
14482017-09-21 Simon Marchi <simon.marchi@ericsson.com>
1449
1450 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
1451
ebe48ba0
SM
14522017-09-21 Simon Marchi <simon.marchi@ericsson.com>
1453
1454 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
1455
0a0bf5dc
YQ
14562017-09-21 Yao Qi <yao.qi@linaro.org>
1457
1458 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
1459 to gdb_target_obs.
1460
d1b0a7bf
TT
14612017-09-20 Tom Tromey <tom@tromey.com>
1462
1463 * breakpoint.c (struct counted_command_line): Remove.
1464 (breakpoint_commands): Update.
1465 (alloc_counted_command_line, incref_counted_command_line)
1466 (decref_counted_command_line, do_cleanup_counted_command_line)
1467 (make_cleanup_decref_counted_command_line): Remove.
1468 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
1469 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
1470 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
1471 (save_breakpoints): Update.
1472 * breakpoint.h (counted_command_line): Now a typedef to
1473 shared_ptr.
1474 (struct breakpoint) <commands>: Now a counted_command_line.
1475 (struct bpstats) <command>: Likewise.
1476
48649e1b
TT
14772017-09-20 Tom Tromey <tom@tromey.com>
1478
1479 * breakpoint.c (struct commands_info, do_map_commands_command):
1480 Remove.
1481 (commands_command_1): Update.
1482 (iterate_over_related_breakpoints): Take a function_view.
1483 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
1484 (delete_command): Update.
1485 (map_breakpoint_numbers): Take a function_view.
1486 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
1487 (disable_command): Update.
1488 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
1489 (enable_command): Update.
1490 (struct disp_data, do_enable_breakpoint_disp)
1491 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
1492 (do_map_enable_delete_breakpoint): Remove.
1493 (enable_once_command, enable_count_command, enable_delete_command)
1494 (delete_trace_variable_command): Update.
1495
04afa70c
TT
14962017-09-20 Tom Tromey <tom@tromey.com>
1497
1498 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
1499 (bpstat_clear): Use delete.
1500 (bpstats): New constructors.
1501 (bpstat_copy, bpstat_stop_status): Use new.
1502 (dprintf_after_condition_true): Update.
1503 * breakpoint.h (bpstats::bpstats): Add constructors.
1504 (bpstats::~bpstats): Add destructor.
1505
c83833f4
PA
15062017-09-20 Pedro Alves <palves@redhat.com>
1507
1508 * eval.c (make_params): Delete, refactored as ...
1509 (class fake_method): ... this new type's ctor.
1510 (fake_method::~fake_method): New.
1511 (evaluate_subexp_standard): Use 'fake_method'.
1512
223ffa71
TT
15132017-09-20 Tom Tromey <tom@tromey.com>
1514
1515 * windows-nat.c (get_windows_debug_event, windows_wait)
1516 (do_initial_windows_stuff, windows_attach): Update.
1517 * utils.c (vwarning, internal_vproblem): Update.
1518 (ui_unregister_input_event_handler_cleanup)
1519 (prepare_to_handle_input): Remove.
1520 (class scoped_input_handler): New.
1521 (defaulted_query, prompt_for_continue): Update.
1522 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
1523 Update.
1524 * top.c (undo_terminal_modifications_before_exit): Update.
1525 * target/target.h (target_terminal_init, target_terminal_inferior)
1526 (target_terminal_ours): Don't declare.
1527 (class target_terminal): New.
1528 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
1529 (target_terminal_ours_for_output)
1530 (make_cleanup_restore_target_terminal): Don't declare.
1531 (target_terminal_info): Remove.
1532 * target.c (enum terminal_state, terminal_state): Remove.
1533 (target_terminal::terminal_state): Define.
1534 (target_terminal::init): Rename from target_terminal_init.
1535 (target_terminal::inferior): Rename from
1536 target_terminal_inferior.
1537 (target_terminal::ours): Rename from target_terminal_ours.
1538 (target_terminal::ours_for_output): Rename from
1539 target_terminal_ours_for_output.
1540 (target_terminal::info): New method.
1541 (cleanup_restore_target_terminal)
1542 (make_cleanup_restore_target_terminal): Remove.
1543 * solib.c (handle_solib_event): Update.
1544 * remote.c (remote_serial_quit_handler): Update.
1545 (remote_terminal_inferior, remote_wait_as): Update.
1546 * record-full.c (record_full_wait_1): Update.
1547 * nto-procfs.c (procfs_create_inferior): Update.
1548 * nat/fork-inferior.c (startup_inferior): Update.
1549 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
1550 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
1551 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
1552 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
1553 (mi_breakpoint_created, mi_breakpoint_deleted)
1554 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
1555 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
1556 (mi_user_selected_context_changed, report_initial_inferior):
1557 Update.
1558 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
1559 (linux_nat_terminal_inferior): Update.
1560 * infrun.c (follow_fork_inferior)
1561 (handle_vfork_child_exec_or_exit, do_target_resume)
1562 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
1563 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
1564 Update.
1565 * inflow.c (child_terminal_init, info_terminal_command): Update.
1566 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
1567 (attach_command): Update.
1568 * infcall.c (call_thread_fsm_should_stop): Update.
1569 * gnu-nat.c (gnu_attach): Update.
1570 * extension.c (struct active_ext_lang_state)
1571 (restore_active_ext_lang): Update.
1572 * exceptions.c (print_flush): Update.
1573 * event-top.c (async_enable_stdin, default_quit_handler): Update.
1574 (struct quit_handler_cleanup_data, restore_quit_handler)
1575 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
1576 Remove.
1577 * cp-support.c (gdb_demangle): Update.
1578 * breakpoint.c (update_inserted_breakpoint_locations)
1579 (insert_breakpoint_locations, handle_jit_event)
1580 (disable_breakpoints_in_unloaded_shlib): Update.
1581 * annotate.c (annotate_breakpoints_invalid)
1582 (annotate_frames_invalid): Update.
1583
013af3fc
TT
15842017-09-20 Tom Tromey <tom@tromey.com>
1585
1586 * main.c (catch_command_errors): Rename from
1587 catch_command_errors_const.
1588 (captured_main_1): Update.
1589
06871ae8
PA
15902017-09-20 Pedro Alves <palves@redhat.com>
1591
1592 * cli/cli-cmds.c (list_command): Use print_sal_location.
1593 (print_sal_location): New function.
1594 (ambiguous_line_spec): Use print_sal_location.
1595 * linespec.c (symbol_to_sal): Record the symbol in the sal.
1596 * symtab.c (find_function_start_sal): Likewise.
1597 * symtab.h (symtab_and_line::symbol): New field.
1598
e5f25bc5
PA
15992017-09-20 Pedro Alves <palves@redhat.com>
1600
1601 * linespec.c (minsym_found): Handle non-text minsyms.
1602 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
1603
1b7fa39e
WT
16042017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1605
1606 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
1607 backslash.
1608
37dd0825
WT
16092017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1610
1611 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
1612 vmovups instead vmovaps.
1613 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
1614
4e5a4f58
JB
16152017-09-19 John Baldwin <jhb@FreeBSD.org>
1616
1617 * NEWS (Changes since GDB 8.0): Add starti.
1618 * infcmd.c (enum run_break): New.
1619 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
1620 case.
1621 (run_command): Use enum run_how.
1622 (start_command): Likewise.
1623 (starti_command): New function.
1624 (RUN_ARGS_HELP): New macro.
1625 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
1626 commands. Add starti command.
1627
aa70c9f1
YQ
16282017-09-19 Yao Qi <yao.qi@linaro.org>
1629
1630 * Makefile.in (monitor.o): Remove the rule.
1631
d6541620
YQ
16322017-09-19 Yao Qi <yao.qi@linaro.org>
1633
1634 * annotate.h (struct annotate_arg_emitter): Use
1635 DISABLE_COPY_AND_ASSIGN.
1636 * common/refcounted-object.h (refcounted_object): Likewise.
1637 * completer.h (struct completion_result): Likewise.
1638 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
1639 * filename-seen-cache.h (filename_seen_cache): Likewise.
1640 * gdbcore.h (thread_section_name): Likewise.
1641 * gdb_regex.h (compiled_regex): Likewise.
1642 * gdbthread.h (scoped_restore_current_thread): Likewise.
1643 * inferior.h (scoped_restore_current_inferior): Likewise.
1644 * jit.c (jit_reader): Likewise.
1645 * linespec.h (struct linespec_result): Likewise.
1646 * mi/mi-parse.h (struct mi_parse): Likewise.
1647 * nat/fork-inferior.c (execv_argv): Likewise.
1648 * progspace.h (scoped_restore_current_program_space): Likewise.
1649 * python/python-internal.h (class gdbpy_enter): Likewise.
1650 * regcache.h (regcache): Likewise.
1651 * target-descriptions.c (struct tdesc_reg): Likewise.
1652 (struct tdesc_type): Likewise.
1653 (struct tdesc_feature): Likewise.
1654 * ui-out.h (ui_out_emit_type): Likewise.
1655
0615127c
SM
16562017-09-18 Simon Marchi <simon.marchi@ericsson.com>
1657
1658 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
1659 label abort_expression.
1660
5e187554
SM
16612017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1662
1663 * common/buffer.c (buffer_xml_printf): Adjust.
1664 * common/xml-utils.c (xml_escape_text): Change return type to
1665 std::string, update code accordingly.
1666 * common/xml-utils.h (xml_escape_text): Change return type to
1667 std::string.
1668 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
1669 * windows-tdep.c (windows_xfer_shared_library): Adjust.
1670 * unittests/xml-utils-selftests.c (test_xml_escape_text):
1671 Adjust.
1672
c3d7b541
SM
16732017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1674
1675 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
1676 (SUBDIR_UNITTESTS_OBS): Add new object file.
1677 * unittests/xml-utils-selftests.c: New file.
1678
1526853e
SM
16792017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1680
1681 * common/selftest.h (selftest): New struct/interface.
1682 (register_test): Add name parameter, add new overload.
1683 (run_tests): Add filter parameter.
1684 (for_each_selftest_ftype): New typedef.
1685 (for_each_selftest): New declaration.
1686 * common/selftest.c (tests): Change type to
1687 map<string, unique_ptr<selftest>>.
1688 (simple_selftest): New struct.
1689 (register_test): New function.
1690 (register_test): Add name parameter and use it.
1691 (run_tests): Add filter parameter and use it. Add prints.
1692 Adjust to vector -> map change.
1693 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
1694 registering selftests.
1695 * arm-tdep.c (_initialize_arm_tdep): Likewise.
1696 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
1697 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
1698 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
1699 * findvar.c (_initialize_findvar): Likewise.
1700 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
1701 * maint.c (maintenance_selftest): Update call to run_tests.
1702 (maintenance_info_selftests): New function.
1703 (_initialize_maint_cmds): Register "maintenance info selftests"
1704 command. Update "maintenance selftest" doc.
1705 * regcache.c (_initialize_regcache): Add names when registering
1706 selftests.
1707 * rust-exp.y (_initialize_rust_exp): Likewise.
1708 * selftest-arch.c (gdbarch_selftest): New struct.
1709 (gdbarch_tests): Remove.
1710 (register_test_foreach_arch): Add name parameter. Call
1711 register_test.
1712 (tests_with_arch): Remove, move most content to
1713 gdbarch_selftest::operator().
1714 (_initialize_selftests_foreach_arch): Remove.
1715 * selftest-arch.h (register_test_foreach_arch): Add name
1716 parameter.
1717 (run_tests_with_arch): New declaration.
1718 * utils-selftests.c (_initialize_utils_selftests): Add names
1719 when registering selftests.
1720 * utils.c (_initialize_utils): Likewise.
1721 * unittests/array-view-selftests.c
1722 (_initialize_array_view_selftests): Likewise.
1723 * unittests/environ-selftests.c (_initialize_environ_selftests):
1724 Likewise.
1725 * unittests/function-view-selftests.c
1726 (_initialize_function_view_selftests): Likewise.
1727 * unittests/offset-type-selftests.c
1728 (_initialize_offset_type_selftests): Likewise.
1729 * unittests/optional-selftests.c
1730 (_initialize_optional_selftests): Likewise.
1731 * unittests/scoped_restore-selftests.c
1732 (_initialize_scoped_restore_selftests): Likewise.
1733 * NEWS: Document "maintenance selftest" and "maint info
1734 selftests".
1735
5846367a
SM
17362017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1737
1738 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
1739 scoped_restore.
1740
bd77e8ff
SM
17412017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1742
1743 * mi/mi-main.c (mi_load_progress): Make uiout variable
1744 a unique_ptr.
1745
26a67918
PA
17462017-09-15 Pedro Alves <palves@redhat.com>
1747
1748 * compile/compile-c-types.c (convert_enum, convert_int)
1749 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
1750
3f8a7804
SM
17512017-09-15 Simon Marchi <simon.marchi@ericsson.com>
1752
1753 * dwarf2read.c (copy_string): Remove.
1754 (parse_macro_definition): Replace copy_string with savestring.
1755
8d200706
YQ
17562017-09-15 Yao Qi <yao.qi@linaro.org>
1757
1758 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
1759 gdb_target_obs.
1760 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
1761 Likewise.
1762 (i[34567]86-*-linux*): Likewise.
1763
d185219d
SM
17642017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1765
1766 * dwarf2expr.h (dwarf_stack_value): Add constructor.
1767 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
1768 <stack>: Change type to std::vector.
1769 <stack_len, stack_allocated>: Remove.
1770 <grow_stack>: Remove.
1771 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
1772 (dwarf_expr_context::~dwarf_expr_context): Remove.
1773 (dwarf_expr_context::grow_stack): Remove.
1774 (dwarf_expr_context::push): Adjust.
1775 (dwarf_expr_context::pop): Adjust.
1776 (dwarf_expr_context::fetch): Adjust.
1777 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
1778 (dwarf_expr_context::stack_empty_p): Adjust.
1779 (dwarf_expr_context::execute_stack_op): Adjust.
1780
eccd80d6
SM
17812017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1782
1783 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
1784 return type to bool.
1785 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
1786
69009882
SM
17872017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1788
1789 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
1790 Change type to bool.
1791 (dwarf_stack_value) <in_stack_memory>: Likewise.
1792 (dwarf_expr_context) <push_address>: Change parameter type to
1793 bool.
1794 <fetch_in_stack_memory>: Change return type to bool.
1795 <push>: Change parameter type to bool.
1796 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
1797 to bool.
1798 (dwarf_expr_context::push_address): Likewise.
1799 (dwarf_expr_context::fetch_in_stack_memory): Change return type
1800 to bool.
1801 (dwarf_expr_context::execute_stack_op): Adjust.
1802 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
1803
1e467161
SM
18042017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1805
1806 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
1807 (struct dwarf_expr_context) <n_pieces>: Remove.
1808 <pieces>: Change type to std::vector.
1809 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
1810 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
1811 pieces.
1812 (dwarf_expr_context::add_piece): Adjust.
1813 * dwarf2loc.c (struct piece_closure): Initialize fields.
1814 <n_pieces>: Remove.
1815 <pieces>: Change type to std::vector.
1816 (allocate_piece_closure): Adjust, change parameter to
1817 std::vector rvalue and std::move it to piece_closure.
1818 (rw_pieced_value): Adjust.
1819 (check_pieced_synthetic_pointer): Adjust.
1820 (indirect_synthetic_pointer): Adjust.
1821 (coerce_pieced_ref): Adjust.
1822 (free_pieced_value_closure): Adjust. Use delete to free
1823 piece_closure.
1824 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
1825 to allocate_piece_closure.
1826 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
1827
0782db84
SM
18282017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1829
1830 * probe.h (probe_ops_cp): Remove typedef.
1831 (DEF_VEC_P (probe_ops_cp)): Remove.
1832 (all_probe_ops): Change type to std::vector.
1833 * probe.c (info_probes_for_ops): Adjust to vector change.
1834 (probe_linespec_to_ops): Likewise.
1835 (all_probe_ops): Change type to std::vector.
1836 (_initialize_probe): Adjust to vector change.
1837 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
1838 * elfread.c (elf_get_probes): Likewise.
1839 * stap-probe.c (_initialize_stap_probe): Likewise.
1840
1eac6bea
SM
18412017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1842
1843 * probe.h (struct bound_probe): Define constructors.
1844 * probe.c (bound_probe_s): Remove typedef.
1845 (DEF_VEC_O (bound_probe_s)): Remove VEC.
1846 (collect_probes): Change return type to std::vector, remove
1847 cleanup.
1848 (compare_probes): Return bool, change parameter type. Change
1849 semantic to "less than".
1850 (gen_ui_out_table_header_info): Change parameter to std::vector
1851 and update.
1852 (exists_probe_with_pops): Likewise.
1853 (info_probes_for_ops): Update to std::vector change.
1854 (enable_probes_command): Likewise.
1855 (disable_probes_command): Likewise.
1856
aaa63a31
SM
18572017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1858
1859 * probe.h (struct probe_ops) <get_probes>: Change parameter from
1860 vec to std::vector.
1861 * probe.c (parse_probes_in_pspace): Update.
1862 (find_probes_in_objfile): Update.
1863 (find_probe_by_pc): Update.
1864 (collect_probes): Update.
1865 (probe_any_get_probes): Update.
1866 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
1867 return type to reference to std::vector.
1868 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
1869 std::vector and update.
1870 (dtrace_process_dof): Likewise.
1871 (dtrace_get_probes): Likewise.
1872 * elfread.c (elf_get_probes): Change return type to std::vector,
1873 store an std::vector in bfd_data.
1874 (probe_key_free): Update to std::vector.
1875 * stap-probe.c (handle_stap_probe): Change parameter to
1876 std::vector and update.
1877 (stap_get_probes): Likewise.
1878 * symfile-debug.c (debug_sym_get_probes): Change return type to
1879 std::vector and update.
1880
cb85b21b
TT
18812017-09-11 Tom Tromey <tom@tromey.com>
1882
1883 * breakpoint.c (program_breakpoint_here_p): Update.
1884 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
1885 from make_show_memory_breakpoints_cleanup. Return a
1886 scoped_restore_tmpl<int>.
1887 (restore_show_memory_breakpoints): Remove.
1888 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
1889 * mem-break.c (memory_validate_breakpoint): Update.
1890 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
1891 (ia64_memory_remove_breakpoint): Update.
1892 (ia64_breakpoint_from_pc): Update.
1893 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
1894 from make_show_memory_breakpoints_cleanup.
1895
8fbc99ef
TT
18962017-09-11 Tom Tromey <tom@tromey.com>
1897
1898 * d-namespace.c (d_lookup_symbol): Use std::string.
1899 (find_symbol_in_baseclass): Likewise.
1900
50feb4bd
TT
19012017-09-11 Tom Tromey <tom@tromey.com>
1902
1903 * ctf.c (ctf_start): Use std::string.
1904
c6dc63a1
TT
19052017-09-11 Tom Tromey <tom@tromey.com>
1906
1907 * ada-lang.c (is_known_support_routine): Update.
1908 (ada_unhandled_exception_name_addr_from_raise): Update.
1909 * guile/scm-frame.c (gdbscm_frame_name): Update.
1910 * python/py-frame.c (frapy_name): Update.
1911 (frapy_function): Update.
1912 * stack.h (find_frame_funname): Update.
1913 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
1914 (print_frame): Update.
1915
d6b9b80f
TT
19162017-09-11 Tom Tromey <tom@tromey.com>
1917
1918 * findcmd.c (put_bits): Take a gdb::byte_vector.
1919 (parse_find_args): Return gdb::byte_vector. "args" now const.
1920 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
1921 cleanups.
1922 (find_command): Update.
1923
a9921622
TT
19242017-09-11 Tom Tromey <tom@tromey.com>
1925
1926 * cli/cli-script.c (class scoped_restore_hook_in): New.
1927 (clear_hook_in_cleanup): Remove.
1928 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
1929 scoped_restore_hook_in.
1930
be0d7abb
TT
19312017-09-11 Tom Tromey <tom@tromey.com>
1932
1933 * cli/cli-script.c (restore_interp): Remove.
1934 (read_command_lines): Use scoped_restore_interp.
1935 * interps.c (scoped_restore_interp::set_temp): Rename from
1936 interp_set_temp.
1937 * interps.h (class scoped_restore_interp): New.
1938 (interp_set_temp): Remove.
1939
00f675ff
TT
19402017-09-11 Tom Tromey <tom@tromey.com>
1941
1942 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
1943 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
1944 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
1945 scoped_restore.
1946 (mi_cmd_break_insert_1): Update.
1947 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
1948 scoped_restore.
1949
cb791d59
TT
19502017-09-11 Tom Tromey <tom@tromey.com>
1951
1952 * demangle.c (demangle_command): Update.
1953 * breakpoint.c (disable_command): Update.
1954 (enable_command): Update.
1955 (find_location_by_number): Make "number" const. Use
1956 get_number_trailer.
1957 * cli/cli-utils.c (extract_arg): Return std::string.
1958 * probe.c (parse_probe_linespec): Update. Change types.
1959 (collect_probes): Take string arguments.
1960 (parse_probe_linespec): Likewise.
1961 (info_probes_for_ops): Update.
1962 (enable_probes_command): Update.
1963 (disable_probes_command): Update.
1964 * break-catch-sig.c (catch_signal_split_args): Update.
1965 * mi/mi-parse.c (mi_parse): Update.
1966
2039bd9f
TT
19672017-09-11 Tom Tromey <tom@tromey.com>
1968
1969 * language.h (language_enum): Make argument const.
1970 * language.c (language_enum): Make argument const.
1971
f1735a53
TT
19722017-09-11 Tom Tromey <tom@tromey.com>
1973
1974 * common/common-utils.h (skip_to_space): Remove macro, redeclare
1975 as function.
1976 (skip_to_space): Rename from skip_to_space_const.
1977 * common/common-utils.c (skip_to_space): New function.
1978 (skip_to_space): Rename from skip_to_space_const.
1979 * cli/cli-utils.h (get_number): Rename from get_number_const.
1980 (extract_arg): Rename from extract_arg_const.
1981 * cli/cli-utils.c (get_number): Rename from get_number_const.
1982 (extract_arg): Rename from extract_arg_const.
1983 (number_or_range_parser::get_number): Use ::get_number.
1984 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
1985 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
1986 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
1987 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
1988 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
1989 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
1990 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
1991 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
1992
7d221d74
TT
19932017-09-11 Tom Tromey <tom@tromey.com>
1994
1995 * python/python.c (do_start_initialization): Use
1996 py-event-types.def to initialize types.
1997 Define all object type structures.
1998 * python/python-internal.h: Don't declare event initialization
1999 functions.
2000 * python/py-threadevent.c (thread_event_object_type): Don't
2001 define.
2002 * python/py-stopevent.c (stop_event_object_type): Don't define.
2003 * python/py-signalevent.c (signal_event_object_type): Don't
2004 declare or define.
2005 * python/py-newobjfileevent.c (new_objfile_event_object_type)
2006 (clear_objfiles_event_object_type): Don't declare or define.
2007 * python/py-infevents.c (inferior_call_pre_event_object_type)
2008 (inferior_call_post_event_object_type)
2009 (register_changed_event_object_type)
2010 (memory_changed_event_object_type): Don't declare or define.
2011 * python/py-inferior.c (new_thread_event_object_type)
2012 (new_inferior_event_object_type)
2013 (inferior_deleted_event_object_type): Don't declare or define.
2014 * python/py-exitedevent.c (exited_event_object_type): Don't
2015 declare or define.
2016 * python/py-evts.c (gdbpy_initialize_py_events): Use
2017 py-all-events.def.
2018 * python/py-events.h (thread_event_object_type): Don't declare.
2019 (events_object): Use py-all-events.def.
2020 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
2021 py-event-types.def.
2022 * python/py-event-types.def: New file.
2023 * python/py-continueevent.c (create_continue_event_object): Don't
2024 declare or define.
2025 * python/py-bpevent.c (breakpoint_event_object_type): Don't
2026 declare or define.
2027 * python/py-all-events.def: New file.
2028
35c61a1d
TT
20292017-09-11 Tom Tromey <tom@tromey.com>
2030
2031 * python/py-threadevent.c (create_thread_event_object): Return
2032 gdbpy_ref.
2033 * python/py-stopevent.h (create_stop_event_object)
2034 (create_breakpoint_event_object, create_signal_event_object):
2035 Update.
2036 * python/py-stopevent.c (create_stop_event_object): Return
2037 gdbpy_ref.
2038 (emit_stop_event): Update.
2039 * python/py-signalevent.c (create_signal_event_object): Return
2040 gdbpy_ref.
2041 * python/py-infevents.c (create_inferior_call_event_object):
2042 Update.
2043 * python/py-event.h (create_event_object)
2044 (create_thread_event_object): Update.
2045 * python/py-event.c (create_event_object): Return gdbpy_ref.
2046 * python/py-continueevent.c: Return gdbpy_ref.
2047 * python/py-bpevent.c (create_breakpoint_event_object): Return
2048 gdbpy_ref.
2049
7c96f8c1
TT
20502017-09-11 Tom Tromey <tom@tromey.com>
2051
2052 PR python/15622:
2053 * NEWS: Add entry.
2054 * python/python.c (do_start_initialization): Initialize new event
2055 types.
2056 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
2057 (gdbpy_initialize_inferior_deleted_event)
2058 (gdbpy_initialize_new_thread_event): Declare.
2059 * python/py-threadevent.c (create_thread_event_object): Add option
2060 "thread" parameter.
2061 * python/py-inferior.c (new_thread_event_object_type)
2062 (new_inferior_event_object_type)
2063 (inferior_deleted_event_object_type): Declare.
2064 (python_new_inferior, python_inferior_deleted): New functions.
2065 (add_thread_object): Emit new_thread event.
2066 (gdbpy_initialize_inferior): Attach new functions to corresponding
2067 observers.
2068 (new_thread, new_inferior, inferior_deleted): Define new event
2069 types.
2070 * python/py-evts.c (gdbpy_initialize_py_events): Add new
2071 registries.
2072 * python/py-events.h (events_object) <new_inferior,
2073 inferior_deleted, new_thread>: New fields.
2074 * python/py-event.h (create_thread_event_breakpoint): Add optional
2075 "thread" parameter.
2076
72542b8e
AB
20772017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
2078
2079 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
2080 check current_ui instead.
2081 (internal_vproblem): Likewise.
2082
0d64823e
SM
20832017-09-09 Simon Marchi <simon.marchi@ericsson.com>
2084
2085 * thread.c (print_thread_info_1): Remove unnecessary calls to
2086 uiout->is_mi_like_p.
2087
eb1e02fd
TT
20882017-09-09 Tom Tromey <tom@tromey.com>
2089
2090 * namespace.h (add_using_directive): Update.
2091 * namespace.c (add_using_directive): Change type of excludes to
2092 std::vector.
2093 * dwarf2read.c (read_import_statement): Use std::vector.
2094 (read_namespace): Update.
2095 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
2096
0fc21fd8
TT
20972017-09-09 Tom Tromey <tom@tromey.com>
2098
2099 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
2100
49663d05
TT
21012017-09-09 Tom Tromey <tom@tromey.com>
2102
2103 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
2104
0b868b60
TT
21052017-09-09 Tom Tromey <tom@tromey.com>
2106
2107 * stack.c (func_command): Use gdb::def_vector.
2108
c0470d48
TT
21092017-09-09 Tom Tromey <tom@tromey.com>
2110
2111 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
2112 ui_out_emit_list, ui_out_emit_tuple.
2113 (mi_cmd_var_update): Likewise.
2114
ca5909c7
TT
21152017-09-09 Tom Tromey <tom@tromey.com>
2116
2117 * mi/mi-interp.c (mi_user_selected_context_changed): Use
2118 ui_out_redirect_pop.
2119 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
2120 ui_out_redirect_pop.
2121 * utils.c (do_ui_out_redirect_pop)
2122 (make_cleanup_ui_out_redirect_pop): Remove.
2123 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
2124 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
2125 * ui-out.h (ui_out_redirect_pop): New class.
2126
e6a2252a
TT
21272017-09-09 Tom Tromey <tom@tromey.com>
2128
2129 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
2130 (list_available_thread_groups, mi_cmd_list_thread_groups)
2131 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
2132 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
2133 Likewise.
2134
393702cd
TT
21352017-09-09 Tom Tromey <tom@tromey.com>
2136
2137 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
2138 ui_out_emit_tuple.
2139
76f9c9cf
TT
21402017-09-09 Tom Tromey <tom@tromey.com>
2141
2142 * target.c (flash_erase_command): Use ui_out_emit_tuple.
2143 * stack.c (print_frame): Use ui_out_emit_tuple.
2144 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
2145 (info_spu_mailbox_command, info_spu_dma_command)
2146 (info_spu_proxydma_command): Likewise.
2147 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
2148 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
2149 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
2150 ui_out_emit_tuple.
2151 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
2152
dc9fe180
TT
21532017-09-09 Tom Tromey <tom@tromey.com>
2154
2155 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
2156 (class ui_out_emit_table): Update comment.
2157 * ui-out.c (do_cleanup_table_end)
2158 (make_cleanup_ui_out_table_begin_end): Remove.
2159 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
2160 (info_spu_dma_cmdlist): Likewise.
2161 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
2162 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
2163 ui_out_emit_table.
2164
f8cc3da6
TT
21652017-09-09 Tom Tromey <tom@tromey.com>
2166
2167 * thread.c (print_thread_info_1): Use ui_out_emit_table,
2168 ui_out_emit_list, gdb::optional.
2169
481695ed
JB
21702017-09-09 John Baldwin <jhb@FreeBSD.org>
2171
2172 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
2173 prototype.
2174 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
2175 prototype.
2176 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
2177 prototype.
2178 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
2179 * ada-exp.y: Remove _initialize_ada_exp prototype.
2180 * ada-lang.c: Remove _initialize_ada_language prototype.
2181 * ada-tasks.c: Remove _initialize_tasks prototype.
2182 * addrmap.c: Remove _initialize_addrmap prototype.
2183 * agent.c: Remove _initialize_agent prototype.
2184 * aix-thread.c: Remove _initialize_aix_thread prototype.
2185 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
2186 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
2187 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
2188 prototype.
2189 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
2190 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
2191 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
2192 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
2193 prototype.
2194 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
2195 prototype.
2196 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
2197 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
2198 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
2199 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
2200 prototype.
2201 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
2202 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
2203 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
2204 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
2205 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
2206 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
2207 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
2208 prototype.
2209 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
2210 prototype.
2211 * annotate.c: Remove _initialize_annotate prototype.
2212 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
2213 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
2214 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
2215 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
2216 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
2217 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
2218 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
2219 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
2220 prototype.
2221 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
2222 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
2223 * auto-load.c: Remove _initialize_auto_load prototype.
2224 * auxv.c: Remove _initialize_auxv prototype.
2225 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
2226 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
2227 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
2228 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
2229 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
2230 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
2231 prototype.
2232 * break-catch-throw.c: Remove _initialize_break_catch_throw
2233 prototype.
2234 * breakpoint.c: Remove _initialize_breakpoint prototype.
2235 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
2236 * btrace.c: Remove _initialize_btrace prototype.
2237 * charset.c: Remove _initialize_charset prototype.
2238 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
2239 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
2240 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
2241 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
2242 * cli/cli-script.c: Remove _initialize_cli_script prototype.
2243 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
2244 * coffread.c: Remove _initialize_coffread prototype.
2245 * compile/compile.c: Remove _initialize_compile prototype.
2246 * complaints.c: Remove _initialize_complaints prototype.
2247 * completer.c: Remove _initialize_completer prototype.
2248 * copying.awk: Remove _initialize_copying prototype.
2249 * copying.c: Regenerate.
2250 * core-regset.c: Remove _initialize_core_regset prototype.
2251 * corefile.c: Remove _initialize_core prototype.
2252 * corelow.c: Remove _initialize_corelow prototype.
2253 * cp-abi.c: Remove _initialize_cp_abi prototype.
2254 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
2255 * cp-support.c: Remove _initialize_cp_support prototype.
2256 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
2257 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
2258 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
2259 * ctf.c: Remove _initialize_ctf prototype.
2260 * d-lang.c: Remove _initialize_d_language prototype.
2261 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
2262 prototype.
2263 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
2264 * dbxread.c: Remove _initialize_dbxread prototype.
2265 * dcache.c: Remove _initialize_dcache prototype.
2266 * demangle.c: Remove _initialize_demangler prototype.
2267 * disasm-selftests.c: Remove _initialize_disasm_selftests
2268 prototype.
2269 * disasm.c: Remove _initialize_disasm prototype.
2270 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
2271 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
2272 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
2273 prototype.
2274 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
2275 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
2276 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
2277 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
2278 * elfread.c: Remove _initialize_elfread prototype.
2279 * exec.c: Remove _initialize_exec prototype.
2280 * extension.c: Remove _initialize_extension prototype.
2281 * f-lang.c: Remove _initialize_f_language prototype.
2282 * f-valprint.c: Remove _initialize_f_valprint prototype.
2283 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
2284 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
2285 * filesystem.c: Remove _initialize_filesystem prototype.
2286 * findcmd.c: Remove _initialize_mem_search prototype.
2287 * fork-child.c: Remove _initialize_fork_child prototype.
2288 * frame-base.c: Remove _initialize_frame_base prototype.
2289 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
2290 * frame.c: Remove _initialize_frame prototype.
2291 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
2292 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
2293 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
2294 * gcore.c: Remove _initialize_gcore prototype.
2295 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
2296 * gdbarch.c: Regenerate.
2297 * gdbarch.sh: Remove _initialize_gdbarch prototype.
2298 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
2299 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
2300 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
2301 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
2302 * go-lang.c: Remove _initialize_go_language prototype.
2303 * go32-nat.c: Remove _initialize_go32_nat prototype.
2304 * guile/guile.c: Remove _initialize_guile prototype.
2305 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
2306 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
2307 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
2308 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
2309 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
2310 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
2311 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
2312 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
2313 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
2314 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
2315 prototype.
2316 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
2317 prototype.
2318 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
2319 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
2320 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
2321 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
2322 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
2323 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
2324 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
2325 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
2326 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
2327 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
2328 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
2329 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
2330 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
2331 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
2332 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
2333 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
2334 prototype.
2335 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
2336 prototype.
2337 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
2338 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
2339 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
2340 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
2341 * infcall.c: Remove _initialize_infcall prototype.
2342 * infcmd.c: Remove _initialize_infcmd prototype.
2343 * inferior.c: Remove _initialize_inferiors prototype.
2344 * inflow.c: Remove _initialize_inflow prototype.
2345 * infrun.c: Remove _initialize_infrun prototype.
2346 * interps.c: Remove _initialize_interpreter prototype.
2347 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
2348 * jit.c: Remove _initialize_jit prototype.
2349 * language.c: Remove _initialize_language prototype.
2350 * linux-fork.c: Remove _initialize_linux_fork prototype.
2351 * linux-nat.c: Remove _initialize_linux_nat prototype.
2352 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
2353 * linux-thread-db.c: Remove _initialize_thread_db prototype.
2354 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
2355 * m2-lang.c: Remove _initialize_m2_language prototype.
2356 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
2357 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
2358 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
2359 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
2360 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
2361 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
2362 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
2363 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
2364 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
2365 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
2366 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
2367 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
2368 * machoread.c: Remove _initialize_machoread prototype.
2369 * macrocmd.c: Remove _initialize_macrocmd prototype.
2370 * macroscope.c: Remove _initialize_macroscope prototype.
2371 * maint.c: Remove _initialize_maint_cmds prototype.
2372 * mdebugread.c: Remove _initialize_mdebugread prototype.
2373 * memattr.c: Remove _initialize_mem prototype.
2374 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
2375 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
2376 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
2377 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
2378 * mi/mi-main.c: Remove _initialize_mi_main prototype.
2379 * microblaze-linux-tdep.c: Remove
2380 _initialize_microblaze_linux_tdep prototype.
2381 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
2382 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
2383 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
2384 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
2385 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
2386 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
2387 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
2388 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
2389 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
2390 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
2391 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
2392 prototype.
2393 * mipsread.c: Remove _initialize_mipsread prototype.
2394 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
2395 prototype.
2396 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
2397 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
2398 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
2399 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
2400 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
2401 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
2402 prototype.
2403 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
2404 * nto-procfs.c: Remove _initialize_procfs prototype.
2405 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
2406 * objc-lang.c: Remove _initialize_objc_language prototype.
2407 * objfiles.c: Remove _initialize_objfiles prototype.
2408 * observer.c: Remove observer_test_first_notification_function,
2409 observer_test_second_notification_function,
2410 observer_test_third_notification_function, and
2411 _initialize_observer prototypes.
2412 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
2413 * osabi.c: Remove _initialize_gdb_osabi prototype.
2414 * osdata.c: Remove _initialize_osdata prototype.
2415 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
2416 * parse.c: Remove _initialize_parse prototype.
2417 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
2418 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
2419 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
2420 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
2421 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
2422 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
2423 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
2424 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
2425 * printcmd.c: Remove _initialize_printcmd prototype.
2426 * probe.c: Remove _initialize_probe prototype.
2427 * proc-api.c: Remove _initialize_proc_api prototype.
2428 * proc-events.c: Remove _initialize_proc_events prototype.
2429 * proc-service.c: Remove _initialize_proc_service prototype.
2430 * procfs.c: Remove _initialize_procfs prototype.
2431 * psymtab.c: Remove _initialize_psymtab prototype.
2432 * python/python.c: Remove _initialize_python prototype.
2433 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
2434 * record-btrace.c: Remove _initialize_record_btrace prototype.
2435 * record-full.c: Remove _initialize_record_full prototype.
2436 * record.c: Remove _initialize_record prototype.
2437 * regcache.c: Remove _initialize_regcache prototype.
2438 * reggroups.c: Remove _initialize_reggroup prototype.
2439 * remote-notif.c: Remove _initialize_notif prototype.
2440 * remote-sim.c: Remove _initialize_remote_sim prototype.
2441 * remote.c: Remove _initialize_remote prototype.
2442 * reverse.c: Remove _initialize_reverse prototype.
2443 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
2444 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
2445 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
2446 prototype.
2447 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
2448 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
2449 * rust-exp.y: Remove _initialize_rust_exp prototype.
2450 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
2451 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
2452 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
2453 * score-tdep.c: Remove _initialize_score_tdep prototype.
2454 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
2455 prototype.
2456 * ser-go32.c: Remove _initialize_ser_dos prototype.
2457 * ser-mingw.c: Remove _initialize_ser_windows prototype.
2458 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
2459 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
2460 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
2461 * serial.c: Remove _initialize_serial prototype.
2462 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
2463 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
2464 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
2465 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
2466 * skip.c: Remove _initialize_step_skip prototype.
2467 * sol-thread.c: Remove _initialize_sol_thread prototype.
2468 * solib-aix.c: Remove _initialize_solib_aix prototype.
2469 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
2470 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
2471 * solib-frv.c: Remove _initialize_frv_solib prototype.
2472 * solib-spu.c: Remove _initialize_spu_solib prototype.
2473 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
2474 * solib-target.c: Remove _initialize_solib_target prototype.
2475 * solib.c: Remove _initialize_solib prototype.
2476 * source.c: Remove _initialize_source prototype.
2477 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
2478 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
2479 prototype.
2480 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
2481 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
2482 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
2483 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
2484 prototype.
2485 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
2486 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
2487 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
2488 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
2489 prototype.
2490 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
2491 prototype.
2492 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
2493 prototype.
2494 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
2495 prototype.
2496 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
2497 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
2498 prototype.
2499 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
2500 prototype.
2501 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
2502 prototype.
2503 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
2504 prototype.
2505 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
2506 prototype.
2507 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
2508 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
2509 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
2510 * stabsread.c: Remove _initialize_stabsread prototype.
2511 * stack.c: Remove _initialize_stack prototype.
2512 * stap-probe.c: Remove _initialize_stap_probe prototype.
2513 * std-regs.c: Remove _initialize_frame_reg prototype.
2514 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
2515 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
2516 * symfile.c: Remove _initialize_symfile prototype.
2517 * symmisc.c: Remove _initialize_symmisc prototype.
2518 * symtab.c: Remove _initialize_symtab prototype.
2519 * target-dcache.c: Remove _initialize_target_dcache prototype.
2520 * target-descriptions.c: Remove _initialize_target_descriptions
2521 prototype.
2522 * thread.c: Remove _initialize_thread prototype.
2523 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
2524 prototype.
2525 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
2526 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
2527 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
2528 prototype.
2529 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
2530 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
2531 * tracefile.c: Remove _initialize_tracefile prototype.
2532 * tracepoint.c: Remove _initialize_tracepoint prototype.
2533 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
2534 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
2535 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
2536 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
2537 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
2538 * tui/tui-win.c: Remove _initialize_tui_win prototype.
2539 * tui/tui.c: Remove _initialize_tui prototype.
2540 * typeprint.c: Remove _initialize_typeprint prototype.
2541 * user-regs.c: Remove _initialize_user_regs prototype.
2542 * utils.c: Remove _initialize_utils prototype.
2543 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
2544 * valarith.c: Remove _initialize_valarith prototype.
2545 * valops.c: Remove _initialize_valops prototype.
2546 * valprint.c: Remove _initialize_valprint prototype.
2547 * value.c: Remove _initialize_values prototype.
2548 * varobj.c: Remove _initialize_varobj prototype.
2549 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
2550 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
2551 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
2552 * windows-nat.c: Remove _initialize_windows_nat,
2553 _initialize_check_for_gdb_ini, and _initialize_loadable
2554 prototypes.
2555 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
2556 * xcoffread.c: Remove _initialize_xcoffread prototype.
2557 * xml-support.c: Remove _initialize_xml_support prototype.
2558 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
2559 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
2560 prototype.
2561 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
2562 prototype.
2563 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
2564
a611b5cb
KS
25652017-09-08 Keith Seitz <keiths@redhat.com>
2566
2567 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
2568 field.
2569
469412dd
CW
25702017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
2571
2572 * f-valprint.c (f_val_print): Remove check for one byte
2573 sized integers. Remove printing of character type.
2574
a5ad232b
FP
25752017-09-08 Frank Penczek <frank.penczek@intel.com>
2576 Christoph Weinmann <christoph.t.weinmann@intel.com>
2577 Bernhard Heckel <bernhard.heckel@intel.com>
2578
2579 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
2580 to maintain proper indentation when printing pointers/refs.
2581
e5014227
JB
25822017-09-07 Joel Brobecker <brobecker@adacore.com>
2583
2584 GDB 8.0.1 released.
2585
63c99141
JB
25862017-09-07 Joel Brobecker <brobecker@adacore.com>
2587
2588 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
2589
69c1e056
TT
25902017-09-05 Tom Tromey <tom@tromey.com>
2591
2592 * parse.c (funcall_chain): Now a std::vector.
2593 (start_arglist, end_arglist): Simplify.
2594 (free_funcalls): Remove.
2595 (parse_exp_in_context_1): Remove cleanup.
2596
fef704bf
TT
25972017-09-05 Tom Tromey <tom@tromey.com>
2598
2599 * go-exp.y (go_parse): Don't create a cleanup.
2600
5613c585
TT
26012017-09-05 Tom Tromey <tom@tromey.com>
2602
2603 * d-exp.y (PrimaryExpression): Use std::string.
2604 (d_parse): Don't create a cleanup.
2605
eae49211
TT
26062017-09-05 Tom Tromey <tom@tromey.com>
2607
2608 * utils.c (do_clear_parser_state): Remove.
2609 (make_cleanup_clear_parser_state): Remove.
2610 * p-exp.y (pascal_parse): Use scoped_restore.
2611 * m2-exp.y (m2_parse): Use scoped_restore.
2612 * f-exp.y (f_parse): Use scoped_restore.
2613 * d-exp.y (d_parse): Use scoped_restore.
2614 * c-exp.y (c_parse): Use scoped_restore.
2615 * ada-exp.y (ada_parse): Use scoped_restore.
2616 * utils.h (make_cleanup_clear_parser_state): Remove.
2617
73b9be8b
KS
26182017-09-06 Keith Seitz <keiths@redhat.com>
2619
2620 * dwarf2read.c (dw2_linkage_name_attr): New function.
2621 (dw2_linkage_name): New function.
2622 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
2623 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
2624 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
2625
a102602b
KR
26262017-09-06 Kamil Rytarowski <n54@gmx.com>
2627
2628 * config/djgpp/djconfig.sh: Correct shell portability issue.
2629
28ad437d
KR
26302017-09-06 Kamil Rytarowski <n54@gmx.com>
2631
2632 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
2633
351787dd
JB
26342017-09-06 John Baldwin <jhb@FreeBSD.org>
2635
2636 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
2637 * NEWS: Mention new FreeBSD/mips native configuration.
2638 * configure.host: Add aarch64*-*-freebsd*.
2639 * configure.nat: Likewise.
2640 * aarch64-fbsd-nat.c: New file.
2641
c0f84956
JB
26422017-09-06 John Baldwin <jhb@FreeBSD.org>
2643
2644 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
2645 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
2646 * NEWS: Mention new FreeBSD/aarch64 target.
2647 * configure.tgt: Add aarch64*-*-freebsd*.
2648 * aarch64-fbsd-tdep.c: New file.
2649 * aarch64-fbsd-tdep.h: New file.
2650
7610297a
KR
26512017-09-06 Kamil Rytarowski <n54@gmx.com>
2652
2653 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
2654
fbd1b771
JK
26552017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2656
2657 * parse.c (find_minsym_type_and_address): Don't relocate addresses
2658 of TLS symbols.
2659
5ca79eae
PW
26602017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2661
2662 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
2663 call.
2664
bf93d7ba
SM
26652017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2666
2667 * infrun.c (follow_exec): Call add_thread after
2668 target_find_description.
2669
1bb7c059
SM
26702017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2671
2672 * infrun.c (handle_inferior_event_1): When exec'ing, read
2673 stop_pc after follow_exec.
2674
fc809827
SM
26752017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2676
2677 * remote.c (process_g_packet): Update error message.
2678
d2fcdd85
YQ
26792017-09-05 Yao Qi <yao.qi@linaro.org>
2680
2681 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
2682 targets.
2683
e69570ee
PA
26842017-09-05 Pedro Alves <palves@redhat.com>
2685
2686 * eval.c (eval_call, evaluate_funcall): New functions, factored
2687 out from ...
2688 (evaluate_subexp_standard): ... this.
2689
22916b07
YQ
26902017-09-05 Yao Qi <yao.qi@linaro.org>
2691
2692 * amd64-tdep.c (amd64_target_description): Create target
2693 descriptions.
2694 (_initialize_amd64_tdep): Don't call functions
2695 initialize_tdesc_amd64_*. Add self tests.
2696 * arch/amd64.c (amd64_create_target_description): Add parameter
2697 is_linux. Call set_tdesc_osabi if is_linux is true.
2698 * arch/amd64.h (amd64_create_target_description): Update the
2699 declaration.
2700 * arch/i386.c (i386_create_target_description): Add parameter
2701 is_linux. Call set_tdesc_osabi if is_linux is true.
2702 * arch/i386.h (i386_create_target_description): Update
2703 declaration.
2704 * configure.tgt: Add i386.o to gdb_target_obs.
2705 * features/Makefile (XMLTOC): Remove i386/*.xml.
2706 * features/i386/amd64-avx-avx512.c: Remove.
2707 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
2708 * features/i386/amd64-avx-mpx.c: Remove.
2709 * features/i386/amd64-avx.c: Remove.
2710 * features/i386/amd64-mpx.c: Remove.
2711 * features/i386/amd64.c: Remove.
2712 * features/i386/i386-avx-avx512.c: Remove.
2713 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
2714 * features/i386/i386-avx-mpx.c: Remove.
2715 * features/i386/i386-avx.c: Remove.
2716 * features/i386/i386-mmx.c: Remove.
2717 * features/i386/i386-mpx.c: Remove.
2718 * features/i386/i386.c: Remove.
2719 * i386-tdep.c: Don't include features/i386/i386*.c., include
2720 target-descriptions.h and arch/i386.h.
2721 (i386_target_description): Create target descriptions.
2722 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
2723 functions. Do self tests.
2724
0854b7b1
YQ
27252017-09-05 Yao Qi <yao.qi@linaro.org>
2726
2727 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
2728 * features/i386/amd64-avx-avx512-linux.c: Removed.
2729 * features/i386/amd64-avx-linux.c: Removed.
2730 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
2731 * features/i386/amd64-avx-mpx-linux.c: Removed.
2732 * features/i386/amd64-linux.c: Removed.
2733 * features/i386/amd64-mpx-linux.c: Removed.
2734 * features/i386/x32-avx-avx512-linux.c: Removed.
2735 * features/i386/x32-avx-linux.c: Removed.
2736 * features/i386/x32-linux.c: Removed.
2737
b4570e4b
YQ
27382017-09-05 Yao Qi <yao.qi@linaro.org>
2739
2740 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
2741 features/i386/*.c.
2742 (amd64_linux_read_description): Call
2743 amd64_create_target_description.
2744 * arch/amd64.c: New file.
2745 * arch/amd64.h: New file.
2746 * configure.tgt (x86_64-*-linux*): Append amd64.o.
2747 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
2748
6c73f67f
YQ
27492017-09-05 Yao Qi <yao.qi@linaro.org>
2750
2751 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
2752 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
2753 (amd64_linux_read_description): Create target descriptions.
2754 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
2755 functions. Add unit tests.
2756 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
2757 x32-core.xml.
2758 * features/i386/64bit-avx.c: Generated.
2759 * features/i386/64bit-avx512.c: Generated.
2760 * features/i386/64bit-core.c: Generated.
2761 * features/i386/64bit-linux.c: Generated.
2762 * features/i386/64bit-mpx.c: Generated.
2763 * features/i386/64bit-pkeys.c: Generated.
2764 * features/i386/64bit-segments.c: Generated.
2765 * features/i386/64bit-sse.c: Generated.
2766 * features/i386/x32-core.c: Generated.
2767 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
2768 c files for amd64-linux and x32-linux.
2769
9d3d478b
YQ
27702017-09-05 Yao Qi <yao.qi@linaro.org>
2771
2772 * amd64-linux-tdep.c (amd64_linux_read_description): New
2773 function.
2774 (amd64_linux_core_read_description): Call
2775 amd64_linux_read_description.
2776 (amd64_linux_init_abi): Likewise.
2777 (amd64_x32_linux_init_abi): Likewise.
2778 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
2779 * x86-linux-nat.c (x86_linux_read_description): Call
2780 amd64_linux_read_description.
2781
b9f1d50f
YQ
27822017-09-05 Yao Qi <yao.qi@linaro.org>
2783
2784 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
2785 comments.
2786
188c9e6d
YQ
27872017-09-05 Yao Qi <yao.qi@linaro.org>
2788
2789 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
2790 * features/i386/i386-avx-avx512-linux.c: Remove.
2791 * features/i386/i386-avx-linux.c: Remove.
2792 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
2793 * features/i386/i386-avx-mpx-linux.c: Remove.
2794 * features/i386/i386-linux.c: Remove.
2795 * features/i386/i386-mmx-linux.c: Remove.
2796 * features/i386/i386-mpx-linux.c: Remove.
2797
5f035c07
YQ
27982017-09-05 Yao Qi <yao.qi@linaro.org>
2799
2800 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
2801 (SFILES): Add arch/i386.c.
2802 (HFILES_NO_SRCDIR): Add arch/i386.h.
2803 * arch/i386.c: New file.
2804 * arch/i386.h: New file.
2805 * arch/tdesc.h (allocate_target_description): Declare.
2806 (set_tdesc_architecture): Declare.
2807 (set_tdesc_osabi): Declare.
2808 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
2809 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
2810 include arch/i386.h.
2811 (i386_linux_read_description): Remove code and call
2812 i386_create_target_description.
2813 (set_tdesc_architecture): New function.
2814 (set_tdesc_osabi): New function.
2815 * target-descriptions.h (allocate_target_description): Remove.
2816
0abe8a89
YQ
28172017-09-05 Yao Qi <yao.qi@linaro.org>
2818
2819 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
2820 * target-descriptions.c (tdesc_create_feature): Likewise, and
2821 adjust code.
2822 * features/i386/32bit-avx.c: Re-generated.
2823 * features/i386/32bit-avx512.c: Re-generated.
2824 * features/i386/32bit-core.c: Re-generated.
2825 * features/i386/32bit-linux.c: Re-generated.
2826 * features/i386/32bit-mpx.c: Re-generated.
2827 * features/i386/32bit-pkeys.c: Re-generated.
2828 * features/i386/32bit-sse.c: Re-generated.
2829
0a188386
YQ
28302017-09-05 Yao Qi <yao.qi@linaro.org>
2831
2832 * regformats/regdef.h (struct reg): Override operator == and !=.
2833
f49ff000
YQ
28342017-09-05 Yao Qi <yao.qi@linaro.org>
2835
2836 * arch/tdesc.h: New file.
2837 * regformats/regdat.sh: Generate code using tdesc_create_reg.
2838 * target-descriptions.c: Update comments.
2839 * target-descriptions.h: Include "arch/tdesc.h". Remove the
2840 declarations.
2841 * features/i386/32bit-avx.c: Re-generated.
2842 * features/i386/32bit-avx512.c: Re-generated.
2843 * features/i386/32bit-core.c: Re-generated.
2844 * features/i386/32bit-linux.c: Re-generated.
2845 * features/i386/32bit-mpx.c: Re-generated.
2846 * features/i386/32bit-pkeys.c: Re-generated.
2847 * features/i386/32bit-sse.c: Re-generated.
2848
f7000548
YQ
28492017-09-05 Yao Qi <yao.qi@linaro.org>
2850
2851 * regformats/regdat.sh: Update generated code.
2852
c9a5e2a5
YQ
28532017-09-05 Yao Qi <yao.qi@linaro.org>
2854
2855 * regformats/regdat.sh: Adjust code order.
2856
d6b687ac
SM
28572017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2858
2859 * expprint.c (dump_subexp_body_standard): Use constant format
2860 string in fprintf_filtered call.
2861
a379bfd0
JB
28622017-09-04 John Baldwin <jhb@FreeBSD.org>
2863
2864 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
2865 NetBSD/i386.
2866 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
2867
f7efc967
JB
28682017-09-04 John Baldwin <jhb@FreeBSD.org>
2869
2870 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
2871
c49fbc6c
JB
28722017-09-04 John Baldwin <jhb@FreeBSD.org>
2873
2874 * bsd-kvm.o: Define _KMEMUSER.
2875 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
2876 * configure: Regenerate.
2877
26562e73
JB
28782017-09-04 John Baldwin <jhb@FreeBSD.org>
2879
2880 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
2881 * i386-fbsd-nat.c: Likewise.
2882
31cf1487
JB
28832017-09-04 John Baldwin <jhb@FreeBSD.org>
2884
2885 * unittests/array-view-selftests.c: Add include of <array>.
2886
5b9f8a7c
JB
28872017-09-04 John Baldwin <jhb@FreeBSD.org>
2888
2889 * spu-tdep.c (flush_ea_cache): Add missing argument to
2890 call_function_by_hand.
2891
d69cf9b2
PA
28922017-09-04 Pedro Alves <palves@redhat.com>
2893
2894 * NEWS (Safer support for debugging with no debug info): New.
2895
3693fdb3
PA
28962017-09-04 Pedro Alves <palves@redhat.com>
2897
2898 * c-exp.y (function_method, function_method_void): Add current
2899 instance flags to TYPE_INSTANCE.
2900 * dwarf2read.c (check_modifier): New.
2901 (compute_delayed_physnames): Assert that only C++ adds delayed
2902 physnames. Mark fn_fields as const/volatile depending on
2903 physname.
2904 * eval.c (make_params): New type_instance_flags parameter. Use
2905 it as the new type's instance flags.
2906 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
2907 flags element and pass it to make_params.
2908 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
2909 instance flags element.
2910 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
2911 * gdbtypes.h: Include "enum-flags.h".
2912 (type_instance_flags): New enum-flags type.
2913 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
2914 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
2915 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
2916 (follow_type_instance_flags): New function.
2917 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
2918 * parser-defs.h (follow_type_instance_flags): Declare.
2919 * valops.c (value_struct_elt_for_reference): const/volatile must
2920 match too.
2921
e68cb8e0
PA
29222017-09-04 Pedro Alves <palves@redhat.com>
2923
2924 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
2925 function/method scopes; lookup the nested name as a function local
2926 static variable.
2927
858be34c
PA
29282017-09-04 Pedro Alves <palves@redhat.com>
2929
2930 (%type <voidval>): Add function_method.
2931 * c-exp.y (exp): New production for calls with no arguments.
2932 (function_method, function_method_void_or_typelist): New
2933 productions.
2934 (exp): New production for "method()::static_var".
2935 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
2936 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2937 Handle OP_FUNC_STATIC_VAR.
2938 * parse.c (operator_length_standard):
2939 Handle OP_FUNC_STATIC_VAR.
2940
dd5901a6
PA
29412017-09-04 Pedro Alves <palves@redhat.com>
2942
2943 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
2944 handling.
2945 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2946 Ditto.
2947 * parse.c (operator_length_standard, operator_check_standard):
2948 Ditto.
2949 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
2950
46a4882b
PA
29512017-09-04 Pedro Alves <palves@redhat.com>
2952
2953 * ax-gdb.c: Include "typeprint.h".
2954 (gen_expr_for_cast): New function.
2955 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
2956 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
2957 type is unknown.
2958 * dwarf2read.c (new_symbol_full): Fallback to int instead of
2959 nodebug_data_symbol.
2960 * eval.c: Include "typeprint.h".
2961 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
2962 Error out if symbol has unknown type.
2963 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
2964 evaluate_subexp_for_cast.
2965 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
2966 OP_VAR_MSYM_VALUE.
2967 (evaluate_subexp_for_cast): New function.
2968 * gdbtypes.c (init_nodebug_var_type): New function.
2969 (objfile_type): Use it to initialize types of variables with no
2970 debug info.
2971 * typeprint.c (error_unknown_type): New.
2972 * typeprint.h (error_unknown_type): New declaration.
2973 * compile/compile-c-types.c (convert_type_basic): Handle
2974 TYPE_CODE_ERROR; warn and fallback to int for variables with
2975 unknown type.
2976
fe13dfec
PA
29772017-09-04 Pedro Alves <palves@redhat.com>
2978
2979 * eval.c (evaluate_var_value): New function, factored out from ...
2980 (evaluate_subexp_standard): ... here.
2981
d008ee21
PA
29822017-09-04 Pedro Alves <palves@redhat.com>
2983
2984 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
2985 Remove useless assignments to 'op'.
2986
827d0c51
PA
29872017-09-04 Pedro Alves <palves@redhat.com>
2988
2989 * eval.c (eval_skip_value): New function.
2990 (evaluate_subexp_standard): Use it.
2991
2c5a2be1
PA
29922017-09-04 Pedro Alves <palves@redhat.com>
2993
2994 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
2995 function name from symbol/minsym and pass it to
2996 error_call_unknown_return_type.
2997
74ea4be4
PA
29982017-09-04 Pedro Alves <palves@redhat.com>
2999
3000 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
3001 * ax-gdb.c (gen_msym_var_ref): New function.
3002 (gen_expr): Handle OP_VAR_MSYM_VALUE.
3003 * eval.c (evaluate_var_msym_value): New function.
3004 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
3005 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
3006 to call_function_by_hand.
3007 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
3008 Handle OP_VAR_MSYM_VALUE.
3009 (union exp_element) <msymbol>: New field.
3010 * minsyms.h (struct type): Forward declare.
3011 (find_minsym_type_and_address): Declare.
3012 * parse.c (write_exp_elt_msym): New function.
3013 (write_exp_msymbol): Delete, refactored as ...
3014 (find_minsym_type_and_address): ... this new function.
3015 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
3016 (operator_length_standard, operator_check_standard): Handle
3017 OP_VAR_MSYM_VALUE.
3018 * std-operator.def (OP_VAR_MSYM_VALUE): New.
3019
7022349d
PA
30202017-09-04 Pedro Alves <palves@redhat.com>
3021
3022 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
3023 TYPE_GNU_IFUNC specially here. Throw error if return type is
3024 unknown.
3025 * ada-typeprint.c (print_func_type): Handle functions with unknown
3026 return type.
3027 * c-typeprint.c (c_type_print_base): Handle functions and methods
3028 with unknown return type.
3029 * compile/compile-c-symbols.c (convert_symbol_bmsym)
3030 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
3031 * compile/compile-c-types.c: Include "objfiles.h".
3032 (convert_func): For functions with unknown return type, warn and
3033 default to int.
3034 * compile/compile-object-run.c (compile_object_run): Adjust call
3035 to call_function_by_hand_dummy.
3036 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
3037 call_function_by_hand.
3038 * eval.c (evaluate_subexp_standard): Adjust calls to
3039 call_function_by_hand. Handle functions and methods with unknown
3040 return type. Pass expect_type to call_function_by_hand.
3041 * f-typeprint.c (f_type_print_base): Handle functions with unknown
3042 return type.
3043 * gcore.c (call_target_sbrk): Adjust call to
3044 call_function_by_hand.
3045 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
3046 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
3047 an integer address type instead of nodebug.
3048 * guile/scm-value.c (gdbscm_value_call): Adjust call to
3049 call_function_by_hand.
3050 * infcall.c (error_call_unknown_return_type): New function.
3051 (call_function_by_hand): New "default_return_type" parameter.
3052 Pass it down.
3053 (call_function_by_hand_dummy): New "default_return_type"
3054 parameter. Use it instead of defaulting to int. If there's no
3055 default and the return type is unknown, throw an error. If
3056 there's a default return type, and the called function has no
3057 debug info, then assume the function is prototyped.
3058 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
3059 New "default_return_type" parameter.
3060 (error_call_unknown_return_type): New declaration.
3061 * linux-fork.c (call_lseek): Cast return type of lseek.
3062 (inferior_call_waitpid, checkpoint_command): Adjust calls to
3063 call_function_by_hand.
3064 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
3065 calls to call_function_by_hand.
3066 * m2-typeprint.c (m2_procedure): Handle functions with unknown
3067 return type.
3068 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3069 (value_nsstring, print_object_command): Adjust calls to
3070 call_function_by_hand.
3071 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
3072 functions with unknown return type.
3073 (pascal_type_print_func_varspec_suffix): New function.
3074 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
3075 TYPE_CODE_METHOD>: Use it.
3076 * python/py-value.c (valpy_call): Adjust call to
3077 call_function_by_hand.
3078 * rust-lang.c (rust_evaluate_funcall): Adjust call to
3079 call_function_by_hand.
3080 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
3081 call_function_by_hand.
3082 * valops.c (value_allocate_space_in_inferior): Adjust call to
3083 call_function_by_hand.
3084 * typeprint.c (type_print_unknown_return_type): New function.
3085 * typeprint.h (type_print_unknown_return_type): New declaration.
3086
54990598
PA
30872017-09-04 Pedro Alves <palves@redhat.com>
3088
3089 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
3090 types with more than one parameter as prototyped.
3091
9a24775b
PA
30922017-09-04 Pedro Alves <palves@redhat.com>
3093
3094 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
3095 (disassemble_command): Use gdb_disassembly_flags instead of bare
3096 int.
3097 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
3098 (dump_insns, do_mixed_source_and_assembly_deprecated)
3099 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
3100 Use gdb_disassembly_flags instead of bare int.
3101 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
3102 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
3103 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
3104 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
3105 (enum gdb_disassembly_flag): ... values of this new enumeration.
3106 (gdb_disassembly_flags): Define.
3107 (gdb_disassembly)
3108 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
3109 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
3110 gdb_disassembly_flags instead of bare int.
3111 * record-btrace.c (btrace_insn_history)
3112 (record_btrace_insn_history, record_btrace_insn_history_range)
3113 (record_btrace_insn_history_from): Use gdb_disassembly_flags
3114 instead of bare int.
3115 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
3116 Use gdb_disassembly_flags instead of bare int.
3117 * target-debug.h (target_debug_print_gdb_disassembly_flags):
3118 Define.
3119 * target-delegates.c: Regenerate.
3120 * target.c (target_insn_history, target_insn_history_from)
3121 (target_insn_history_range): Use gdb_disassembly_flags instead of
3122 bare int.
3123 * target.h: Include "disasm.h".
3124 (struct target_ops) <to_insn_history, to_insn_history_from,
3125 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
3126 int.
3127 (target_insn_history, target_insn_history_from)
3128 (target_insn_history_range): Use gdb_disassembly_flags instead of
3129 bare int.
3130
80a65e9b
SM
31312017-09-04 Simon Marchi <simon.marchi@ericsson.com>
3132
3133 * cli/cli-script.c (build_command_line): For if/while commands,
3134 check whether args is empty.
3135
6b66338c
SM
31362017-09-04 Simon Marchi <simon.marchi@ericsson.com>
3137
3138 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
3139 (enum command_control_type): Likewise.
3140 (struct command_line): Likewise.
3141 (free_command_lines): Likewise.
3142 (struct command_lines_deleter): Likewise.
3143 (command_line_up): Likewise.
3144 (read_command_lines): Likewise.
3145 (read_command_lines_1): Likewise.
3146 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
3147 (enum command_control_type): Likewise.
3148 (struct command_line): Likewise.
3149 (free_command_lines): Likewise.
3150 (struct command_lines_deleter): Likewise.
3151 (command_line_up): Likewise.
3152 (read_command_lines): Likewise.
3153 (read_command_lines_1): Likewise.
3154 * breakpoint.h: Include cli/cli-script.h.
3155 * extension-priv.h: Likewise.
3156 * gdbcmd.h: Likewise.
3157
51abb421
PA
31582017-09-04 Pedro Alves <palves@redhat.com>
3159
3160 * ada-lang.c (is_known_support_routine): Move sal declaration to
3161 where it is initialized.
3162 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
3163 (parse_breakpoint_sals, decode_static_tracepoint_spec)
3164 (clear_command, update_static_tracepoint): Remove init_sal
3165 references. Move declarations closer to initializations.
3166 * cli/cli-cmds.c (list_command): Move sal declarations closer to
3167 initializations.
3168 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
3169 references. Move sal declarations closer to initializations.
3170 * frame.c (find_frame_sal): Return a symtab_and_line via function
3171 return instead of output parameter. Remove init_sal references.
3172 * frame.h (find_frame_sal): Return a symtab_and_line via function
3173 return instead of output parameter.
3174 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
3175 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
3176 instead of memset.
3177 (gdbscm_find_pc_line): Remove init_sal reference.
3178 * infcall.c (call_function_by_hand_dummy): Remove init_sal
3179 references. Move declarations closer to initializations.
3180 * infcmd.c (set_step_frame): Update. Move declarations closer to
3181 initializations.
3182 (finish_backward): Remove init_sal references. Move declarations
3183 closer to initializations.
3184 * infrun.c (process_event_stop_test, handle_step_into_function)
3185 (insert_hp_step_resume_breakpoint_at_frame)
3186 (insert_step_resume_breakpoint_at_caller): Likewise.
3187 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
3188 (symbol_to_sal): Likewise.
3189 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
3190 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
3191 to its initialization.
3192 * reverse.c (save_bookmark_command): Use new/delete. Remove
3193 init_sal references. Move declarations closer to initializations.
3194 * source.c (get_current_source_symtab_and_line): Remove brace
3195 initialization.
3196 (set_current_source_symtab_and_line): Now takes the sal by const
3197 reference. Remove brace initialization.
3198 (line_info): Remove init_sal reference.
3199 * source.h (set_current_source_symtab_and_line): Now takes a
3200 symtab_and_line via const reference.
3201 * stack.c (set_current_sal_from_frame): Adjust.
3202 (print_frame_info): Adjust.
3203 (get_last_displayed_sal): Return the sal via function return
3204 instead of via output parameter. Simplify.
3205 (frame_info): Adjust.
3206 * stack.h (get_last_displayed_sal): Return the sal via function
3207 return instead of via output parameter.
3208 * symtab.c (init_sal): Delete.
3209 (find_pc_sect_line): Remove init_sal references. Move
3210 declarations closer to initializations.
3211 (find_function_start_sal): Remove init_sal references. Move
3212 declarations closer to initializations.
3213 * symtab.h (struct symtab_and_line): In-class initialize all
3214 fields.
3215 * tracepoint.c (set_traceframe_context)
3216 (print_one_static_tracepoint_marker): Remove init_sal references.
3217 Move declarations closer to initializations.
3218 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
3219 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
3220 declarations closer to initializations.
3221 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
3222 init_sal references. Adjust.
3223
6c5b2ebe
PA
32242017-09-04 Pedro Alves <palves@redhat.com>
3225
3226 * ax-gdb.c (agent_command_1): Use range-for.
3227 * break-catch-throw.c (re_set_exception_catchpoint): Update.
3228 * breakpoint.c: Include "common/array-view.h".
3229 (init_breakpoint_sal, create_breakpoint_sal): Change sals
3230 parameter from struct symtabs_and_lines to
3231 array_view<symtab_and_line>. Adjust. Use range-for. Update.
3232 (breakpoint_sals_to_pc): Change sals parameter from struct
3233 symtabs_and_lines to std::vector reference.
3234 (check_fast_tracepoint_sals): Change sals parameter from struct
3235 symtabs_and_lines to std::array_view. Use range-for.
3236 (decode_static_tracepoint_spec): Return a std::vector instead of
3237 symtabs_and_lines. Update.
3238 (create_breakpoint): Update.
3239 (break_range_command, until_break_command, clear_command): Update.
3240 (base_breakpoint_decode_location, bkpt_decode_location)
3241 (bkpt_probe_create_sals_from_location)
3242 (bkpt_probe_decode_location, tracepoint_decode_location)
3243 (tracepoint_probe_decode_location)
3244 (strace_marker_create_sals_from_location): Return a std::vector
3245 instead of symtabs_and_lines.
3246 (strace_marker_create_breakpoints_sal): Update.
3247 (strace_marker_decode_location): Return a std::vector instead of
3248 symtabs_and_lines. Update.
3249 (update_breakpoint_locations): Change struct symtabs_and_lines
3250 parameters to gdb::array_view. Adjust.
3251 (location_to_sals): Return a std::vector instead of
3252 symtabs_and_lines. Update.
3253 (breakpoint_re_set_default): Use std::vector instead of struct
3254 symtabs_and_lines.
3255 (decode_location_default): Return a std::vector instead of
3256 symtabs_and_lines. Update.
3257 * breakpoint.h: Include "common/array-view.h".
3258 (struct breakpoint_ops) <decode_location>: Now returns a
3259 std::vector instead of returning a symtabs_and_lines via output
3260 parameter.
3261 (update_breakpoint_locations): Change sals parameters to use
3262 gdb::array_view.
3263 * cli/cli-cmds.c (edit_command, list_command): Update to use
3264 std::vector and gdb::array_view.
3265 (ambiguous_line_spec): Adjust to use gdb::array_view and
3266 range-for.
3267 (compare_symtabs): Rename to ...
3268 (cmp_symtabs): ... this. Change parameters to symtab_and_line
3269 const reference and adjust.
3270 (filter_sals): Rewrite using std::vector and standard algorithms.
3271 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
3272 (jump_command): Update to use std::vector.
3273 * linespec.c (struct linespec_state) <canonical_names>: Update
3274 comment.
3275 (add_sal_to_sals_basic): Delete.
3276 (add_sal_to_sals, filter_results, convert_results_to_lsals)
3277 (decode_line_2, create_sals_line_offset)
3278 (convert_address_location_to_sals, convert_linespec_to_sals)
3279 (convert_explicit_location_to_sals, parse_linespec)
3280 (event_location_to_sals, decode_line_full, decode_line_1)
3281 (decode_line_with_current_source)
3282 (decode_line_with_last_displayed, decode_objc)
3283 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
3284 (linespec_result::~linespec_result): Adjust to use std::vector
3285 instead of symtabs_and_lines.
3286 * linespec.h (linespec_sals::sals): Now a std::vector.
3287 (struct linespec_result): Use std::vector, bool, and in-class
3288 initialization.
3289 (decode_line_1, decode_line_with_current_source)
3290 (decode_line_with_last_displayed): Return std::vector.
3291 * macrocmd.c (info_macros_command): Use std::vector.
3292 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
3293 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
3294 std::vector.
3295 * probe.h (parse_probes): Return a std::vector.
3296 * python/python.c (gdbpy_decode_line): Use std::vector and
3297 gdb::array_view.
3298 * source.c (select_source_symtab, line_info): Use std::vector.
3299 * stack.c (func_command): Use std::vector.
3300 * symtab.h (struct symtabs_and_lines): Delete.
3301 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
3302
7c44b49c
PA
33032017-09-04 Pedro Alves <palves@redhat.com>
3304
3305 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3306 unittests/array-view-selftests.c.
3307 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
3308 * common/array-view.h: New file.
3309 * unittests/array-view-selftests.c: New file.
3310
e439fa14
PA
33112017-09-04 Pedro Alves <palves@redhat.com>
3312
3313 * cli/cli-cmds.c (edit_command): Pass message to
3314 ambiguous_line_spec.
3315 (list_command): Pass message to ambiguous_line_spec. Say
3316 "first"/"last" instead of "start" and "end" to be consistent with
3317 the manual.
3318 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
3319 them to print formatted message.
3320
7525b645
PA
33212017-09-04 Pedro Alves <palves@redhat.com>
3322
3323 * btrace.c (ftrace_add_pt): Pass btrace_insn to
3324 ftrace_update_insns by reference instead of pointer.
3325
badc0020
YQ
33262017-09-04 Yao Qi <yao.qi@linaro.org>
3327
3328 * i386-go32-tdep.c: Include x86-xstate.h.
3329 (i386_go32_init_abi): Call i386_target_description.
3330 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
3331 if xcr0 is X86_XSTATE_X87_MASK.
3332 * i386-tdep.h (tdesc_i386): Remove the declaration.
3333 (tdesc_i386_mmx): Likewise.
3334
d78bdb54
YQ
33352017-09-04 Yao Qi <yao.qi@linaro.org>
3336
3337 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
3338 X86_XSTATE_SSE_MASK instead of 0.
3339
ca1fa5ee
YQ
33402017-09-04 Yao Qi <yao.qi@linaro.org>
3341
3342 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
3343 i386_target_description.
3344 * i386-fbsd-nat.c (i386fbsd_read_description): Call
3345 i386_target_description.
3346 * i386-tdep.c (i386_gdbarch_init): Likewise.
3347
2434b019
YQ
33482017-09-04 Yao Qi <yao.qi@linaro.org>
3349
3350 * amd64-darwin-tdep.c: Include "x86-xstate.h".
3351 (x86_darwin_init_abi_64): Call amd64_target_description.
3352 * amd64-dicos-tdep.c: Likewise.
3353 * amd64-fbsd-nat.c: Likewise.
3354 * amd64-fbsd-tdep.c: Likewise.
3355 * amd64-nbsd-tdep.c: Likewise.
3356 * amd64-obsd-tdep.c: Likewise.
3357 * amd64-sol2-tdep.c: Likewise.
3358 * amd64-windows-tdep.c: Likewise.
3359 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
3360
0860c437
SM
33612017-09-04 Simon Marchi <simon.marchi@ericsson.com>
3362
3363 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
3364 (btrace_function) <insn>: Change type to use std::vector.
3365 * btrace.c (ftrace_debug, ftrace_call_num_insn,
3366 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
3367 ftrace_update_insns, ftrace_compute_global_level_offset,
3368 btrace_stitch_bts, btrace_clear, btrace_insn_get,
3369 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
3370 change to std::vector.
3371 (ftrace_update_insns): Adjust to change to std::vector, change
3372 type of INSN parameter.
3373 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
3374 * record-btrace.c (btrace_call_history_insn_range,
3375 btrace_compute_src_line_range,
3376 record_btrace_frame_prev_register): Adjust to change to
3377 std::vector.
3378 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
3379 to change to std::vector.
3380
0638b7f9
TT
33812017-09-03 Tom Tromey <tom@tromey.com>
3382
3383 * corefile.c (reopen_exec_file): Use std::string.
3384
8f84fb0e
TT
33852017-09-03 Tom Tromey <tom@tromey.com>
3386
3387 * compile/compile.c (compile_register_name_mangled): Return
3388 std::string.
3389 * compile/compile-loc2c.c (pushf_register_address): Update.
3390 (pushf_register): Update.
3391 * compile/compile-c-types.c (convert_array): Update.
3392 * compile/compile-c-symbols.c (generate_vla_size): Update.
3393 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
3394 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
3395 (convert_one_symbol): Update.
3396 (generate_c_for_for_one_variable): Update.
3397 * compile/compile-c-support.c (c_get_range_decl_name): Return a
3398 std::string.
3399 (generate_register_struct): Update.
3400 * compile/compile-internal.h (c_get_range_decl_name): Return a
3401 std::string.
3402 (compile_register_name_mangled): Return std::string.
3403
18e9961f
TT
34042017-09-03 Tom Tromey <tom@tromey.com>
3405
3406 * utils.c (perror_string): Return a std::string.
3407 (throw_perror_with_name, perror_warning_with_name): Update.
3408
45343786
TT
34092017-09-03 Tom Tromey <tom@tromey.com>
3410
3411 * demangle.c (demangle_command): Use std::string,
3412 unique_xmalloc_ptr.
3413
b57af503
TT
34142017-09-03 Tom Tromey <tom@tromey.com>
3415
3416 * cli/cli-setshow.c (do_set_command): Use std::string.
3417
6eecf35f
TT
34182017-09-03 Tom Tromey <tom@tromey.com>
3419
3420 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
3421
56496dd4
TT
34222017-09-03 Tom Tromey <tom@tromey.com>
3423
3424 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
3425
e91a1fa7
TT
34262017-09-03 Tom Tromey <tom@tromey.com>
3427
3428 * mi/mi-cmd-env.c (env_execute_cli_command): Use
3429 gdb::unique_xmalloc_ptr.
3430
7ffd83d7
TT
34312017-09-03 Tom Tromey <tom@tromey.com>
3432
3433 * thread.c (print_thread_info_1): Use string_printf.
3434 (thread_apply_command, thread_apply_all_command): Use
3435 std::string.
3436
1ccbe998
TT
34372017-09-03 Tom Tromey <tom@tromey.com>
3438
3439 * valprint.c (val_print_string): Update.
3440 * gdbcore.h (memory_error_message): Return std::string.
3441 * corefile.c (memory_error_message): Return std::string.
3442 (memory_error): Update.
3443 * breakpoint.c (insert_bp_location): Update.
3444
23fdd69e
SM
34452017-09-03 Simon Marchi <simon.marchi@ericsson.com>
3446
3447 * target/waitstatus.h (target_waitstatus_to_string): Change
3448 return type to std::string.
3449 * target/waitstatus.c (target_waitstatus_to_string): Return
3450 std::string.
3451 * target.h (target_waitstatus_to_string): Remove declaration.
3452 * infrun.c (resume, clear_proceed_status_thread,
3453 print_target_wait_results, do_target_wait, save_waitstatus,
3454 stop_all_threads): Adjust.
3455 * record-btrace.c (record_btrace_wait): Adjust.
3456 * target-debug.h
3457 (target_debug_print_struct_target_waitstatus_p): Adjust.
3458
5c811d30
JK
34592017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3460
3461 PR gdb/22046
3462 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
3463 detection.
3464
0a2dde4a
SDJ
34652017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
3466
3467 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
3468 for setting/unsetting environment variables on the remote target.
3469 (New remote packets): Add entries for QEnvironmentHexEncoded,
3470 QEnvironmentUnset and QEnvironmentReset.
3471 * common/environ.c (gdb_environ::operator=): Extend method to
3472 handle m_user_set_env_list and m_user_unset_env_list.
3473 (gdb_environ::clear): Likewise.
3474 (match_var_in_string): Change type of first parameter from 'char
3475 *' to 'const char *'.
3476 (gdb_environ::set): Extend method to handle
3477 m_user_set_env_list and m_user_unset_env_list.
3478 (gdb_environ::unset): Likewise.
3479 (gdb_environ::clear_user_set_env): New method.
3480 (gdb_environ::user_set_envp): Likewise.
3481 (gdb_environ::user_unset_envp): Likewise.
3482 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
3483 m_user_unset_env_list on move constructor/assignment.
3484 (unset): Add new default parameter 'update_unset_list = true'.
3485 (clear_user_set_env): New method.
3486 (user_set_envp): Likewise.
3487 (user_unset_envp): Likewise.
3488 (m_user_set_env_list): New std::set.
3489 (m_user_unset_env_list): Likewise.
3490 * common/rsp-low.c (hex2str): New function.
3491 (bin2hex): New overload for bin2hex function.
3492 * common/rsp-low.c (hex2str): New prototype.
3493 (str2hex): New overload prototype.
3494 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
3495 QEnvironmentUnset and QEnvironmentReset.
3496 (remote_protocol_features): Add QEnvironmentHexEncoded,
3497 QEnvironmentUnset and QEnvironmentReset packets.
3498 (send_environment_packet): New function.
3499 (extended_remote_environment_support): Likewise.
3500 (extended_remote_create_inferior): Call
3501 extended_remote_environment_support.
3502 (_initialize_remote): Add QEnvironmentHexEncoded,
3503 QEnvironmentUnset and QEnvironmentReset packet configs.
3504 * unittests/environ-selftests.c (gdb_selftest_env_var):
3505 New variable.
3506 (test_vector_initialization): New function.
3507 (test_init_from_host_environ): Likewise.
3508 (test_reinit_from_host_environ): Likewise.
3509 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
3510 Likewise.
3511 (test_unset_set_empty_vector): Likewise.
3512 (test_vector_clear): Likewise.
3513 (test_std_move): Likewise.
3514 (test_move_constructor):
3515 (test_self_move): Likewise.
3516 (test_set_unset_reset): Likewise.
3517 (run_tests): Rewrite in terms of the functions above.
3518
654670a4
WP
35192017-08-31 Weimin Pan <weimin.pan@oracle.com>
3520
3521 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
3522 (adi_available): Use a temp variable of type CORE_ADDR as argument
3523 3 when calling target_auxv_search.
3524 (adi_normalize_address): Use masks and xor operators to calculate
3525 normalized address.
3526 (adi_read_versions, adi_write_versions, adi_print_versions)
3527 (do_examine, do_assign): Use paddress.
3528
7755ddb7
JB
35292017-08-29 John Baldwin <jhb@FreeBSD.org>
3530
3531 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
3532 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
3533 out of loop and add supply of FIR.
3534 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
3535 add collect of FIR.
3536
fd437cbc
SM
35372017-08-28 Simon Marchi <simon.marchi@ericsson.com>
3538
3804a343 3539 PR gdb/21827
fd437cbc
SM
3540 * cli/cli-script.c (define_command): Don't convert command name
3541 to lower case.
3542
988f6b3d
JB
35432017-08-25 Joel Brobecker <brobecker@adacore.com>
3544
3545 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
3546 Update all callers accordingly. Remove all code blocks handling
3547 the case where DISPP is not NULL.
3548
663c44ac
JK
35492017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3550
3551 PR symtab/22003
3552 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
3553 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
3554 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
3555
f1902523
JK
35562017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3557
3558 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
3559 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
3560 (read_comp_units_from_section): New parameter abbrev_section, use
3561 read_and_check_comp_unit_head, allocate signatured_type if needed.
3562 (create_all_comp_units): Update read_comp_units_from_section caller.
3563
87215ad1
SDJ
35642017-08-23 Pedro Alves <palves@redhat.com>
3565
3566 PR remote/21852
3567 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
3568 to null_ptid and switch to thread without reading the registers
3569 after adding the inferior.
3570
6e41ddec
JK
35712017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3572
3573 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
3574 compile-gcc.
3575 * compile/compile.c (compile_gcc, show_compile_gcc): New.
3576 (compile_to_object): Implement compile_gcc.
3577 (_initialize_compile): Install "set compile-gcc". Initialize
3578 compile_gcc.
3579
e68c32d5
JK
35802017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3581
3582 * compile/compile.c (compile_to_object): Conditionally call
3583 set_verbose. Conditionally call compile or compile_v0.
3584
58afddc6
WP
35852017-08-07 Weimin Pan <weimin.pan@oracle.com>
3586
3587 * sparc64-tdep.h: (adi_normalize_address): New export.
3588 * sparc-nat.h: (open_adi_tag_fd): New export.
3589 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
3590 * sparc64-linux-tdep.c:
3591 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
3592 (sparc64_linux_handle_segmentation_fault): New function.
3593 (sparc64_linux_init_abi): Register
3594 sparc64_linux_handle_segmentation_fault
3595 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
3596 (sparc64_addr_bits_remove): New function.
3597 (sparc64_init_abi): Register sparc64_addr_bits_remove.
3598 (MAX_PROC_NAME_SIZE): New macro.
3599 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
3600 (sparc64adilist): New variable.
3601 (adi_proc_list): New variable.
3602 (find_adi_info): New function.
3603 (add_adi_info): New function.
3604 (get_adi_info_proc): New function.
3605 (get_adi_info): New function.
3606 (info_adi_command): New function.
3607 (read_maps_entry): New function.
3608 (adi_available): New function.
3609 (adi_normalize_address): New function.
3610 (adi_align_address): New function.
3611 (adi_convert_byte_count): New function.
3612 (adi_tag_fd): New function.
3613 (adi_is_addr_mapped): New function.
3614 (adi_read_versions): New function.
3615 (adi_write_versions): New function.
3616 (adi_print_versions): New function.
3617 (do_examine): New function.
3618 (do_assign): New function.
3619 (adi_examine_command): New function.
3620 (adi_assign_command): New function.
3621 (_initialize_sparc64_adi_tdep): New function.
3622
11db9430
SM
36232017-08-22 Simon Marchi <simon.marchi@ericsson.com>
3624
3625 * breakpoint.c (breakpoints_info): Rename to ...
3626 (info_breakpoints_command): ... this.
3627 (watchpoints_info): Rename to ...
3628 (info_watchpoints_command): ... this.
3629 (tracepoints_info): Rename to ...
3630 (info_tracepoints_command): ... this.
3631 (_initialize_breakpoint): Adjust.
3632 * dcache.c (dcache_info): Rename to ...
3633 (info_display_command): ... this.
3634 (_initialize_dcache): Adjust.
3635 * frame.h (args_info): Rename to ...
3636 (info_args_command): ... this.
3637 (locals_info): Rename to ...
3638 (info_locals_command): ... this.
3639 * infcmd.c (nofp_registers_info): Rename to ...
3640 (info_registers_command): ... this.
3641 (float_info): Rename to ...
3642 (info_float_command): ... this.
3643 (program_info): Rename to ...
3644 (info_program_command): ... this.
3645 (all_registers_info): Rename to ...
3646 (info_all_registers_command): ... this.
3647 (vector_info): Rename to ...
3648 (info_vector_command): ... this.
3649 (float_info): Rename to ...
3650 (info_float_command): ... this.
3651 (_initialize_infcmd): Adjust.
3652 * inferior.h (term_info): Rename to ...
3653 (info_terminal_command): ... this.
3654 * inflow.c (term_info): Rename to ...
3655 (info_terminal_command): ... this.
3656 (_initialize_inflow): Adjust.
3657 * infrun.c (signals_info): Rename to ...
3658 (info_signals_command): ... this.
3659 (_initialize_infrun): Adjust.
3660 * objc-lang.c (classes_info): Rename to ...
3661 (info_classes_command): ... this.
3662 (selectors_info): Rename to ...
3663 (info_selectors_command): ... this.
3664 (_initialize_objc_language): Adjust.
3665 * printcmd.c (sym_info): Rename to ...
3666 (info_symbol_command): ... this.
3667 (address_info): Rename to ...
3668 (info_address_command): ... this.
3669 (display_info): Rename to ...
3670 (info_display_command): ... this.
3671 (_initialize_printcmd): Adjust.
3672 * reverse.c (bookmarks_info): Rename to ...
3673 (info_breakpoints_command): ... this.
3674 (_initialize_reverse): Adjust.
3675 * ser-go32.c (dos_info): Rename to ...
3676 (info_serial_command): ... this.
3677 (_initialize_ser_dos): Adjust.
3678 * skip.c (skip_info): Rename to ...
3679 (info_skip_command): ... this.
3680 (_initialize_step_skip): Adjust.
3681 * source.c (line_info): Rename to ...
3682 (info_line_command): ... this.
3683 (source_info): Rename to ...
3684 (info_source_command)
3685 * stack.c (frame_info): Rename to ...
3686 (info_frame_command): ... this.
3687 (locals_info): Rename to ...
3688 (info_locals_command): ... this.
3689 (args_info): Rename to ...
3690 (info_args_command): ... this.
3691 (_initialize_stack): Adjust.
3692 * symtab.c (sources_info): Rename to ...
3693 (info_sources_command): ... this.
3694 (variables_info): Rename to ...
3695 (info_variables_command): ... this.
3696 (functions_info): Rename to ...
3697 (info_functions_command): ... this.
3698 (types_info): Rename to ...
3699 (info_types_command): ... this.
3700 (_initialize_symtab): Adjust.
3701 * target.c (target_info): Rename to ...
3702 (info_target_command): ... this.
3703 (initialize_targets): Adjust.
3704 * tracepoint.c (tvariables_info): Rename to ...
3705 (info_tvariables_command): ... this.
3706 (scope_info): Rename to ...
3707 (info_scope_command): ... this.
3708 (trace_dump_actions): Adjust.
3709 (_initialize_tracepoint): Adjust.
3710
b270e6f9
TT
37112017-08-22 Tom Tromey <tom@tromey.com>
3712
3713 * breakpoint.h (install_breakpoint): Update.
3714 * breakpoint.c (add_solib_catchpoint): Update.
3715 (install_breakpoint): Change argument to a std::unique_ptr.
3716 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
3717 (create_breakpoint_sal, create_breakpoint): Update.
3718 (watch_command_1, catch_exec_command_1)
3719 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
3720 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
3721 Return the breakpoint.
3722 (set_raw_breakpoint_without_location, set_raw_breakpoint)
3723 (new_single_step_breakpoint): Update.
3724 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
3725 std::unique_ptr.
3726 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
3727 std::unique_ptr.
3728 * break-catch-sig.c (create_signal_catchpoint): Use
3729 std::unique_ptr.
3730 * ada-lang.c (create_ada_exception_catchpoint): Use
3731 std::unique_ptr.
3732
36bd8eaa
TT
37332017-08-22 Tom Tromey <tom@tromey.com>
3734
3735 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
3736
56f37645
TT
37372017-08-22 Tom Tromey <tom@tromey.com>
3738
3739 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
3740 (lookup_partial_symbol): Update.
3741
0b581c69
TT
37422017-08-22 Tom Tromey <tom@tromey.com>
3743
3744 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
3745 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
3746 (find_and_open_source, symtab_to_fullname): Update.
3747 * psymtab.c (psymtab_to_fullname): Update.
3748
14278e1f
TT
37492017-08-22 Tom Tromey <tom@tromey.com>
3750
3751 * exec.c (exec_file_attach): Update.
3752 * linux-thread-db.c (try_thread_db_load): Update.
3753 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
3754 * utils.c (gdb_realpath): Change return type.
3755 (gdb_realpath_keepfile): Update.
3756 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
3757 (_initialize_utils): Register the new self test.
3758 * source.c (openp): Update.
3759 (find_and_open_source): Update.
3760 * nto-tdep.c (nto_find_and_open_solib): Update.
3761 * main.c (set_gdb_data_directory): Update.
3762 (captured_main_1): Update.
3763 * dwarf2read.c (dwarf2_get_dwz_file): Update
3764 (dw2_map_symbol_filenames): Update.
3765 * auto-load.c (auto_load_safe_path_vec_update): Update.
3766 (filename_is_in_auto_load_safe_path_vec): Change type of
3767 "filename_realp".
3768 (auto_load_objfile_script): Update.
3769 (file_is_auto_load_safe): Update. Use std::string.
3770 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
3771
4971c9a7
TT
37722017-08-22 Tom Tromey <tom@tromey.com>
3773
3774 * utils.c (gdb_realpath_keepfile): Return a
3775 gdb::unique_xmalloc_ptr.
3776 * exec.c (exec_file_attach): Update.
3777 * utils.h (gdb_realpath_keepfile): Return a
3778 gdb::unique_xmalloc_ptr.
3779
e3e41d58
TT
37802017-08-22 Tom Tromey <tom@tromey.com>
3781
3782 * compile/compile.c (compile_file_command): Use
3783 gdb::unique_xmalloc_ptr, std::string.
3784 * utils.c (gdb_abspath): Change return type.
3785 * source.c (openp): Update.
3786 * objfiles.c (allocate_objfile): Update.
3787 * main.c (set_gdb_data_directory): Update.
3788 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
3789
0d999a6e
ZZ
37902017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
3791
3792 * cli-cmds.c (list_commands): List actual code around more than
3793 one location.
3794
329d5e7e
JB
37952017-08-21 John Baldwin <jhb@FreeBSD.org>
3796
3797 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
3798
bf223d3e
PA
37992017-08-21 Pedro Alves <palves@redhat.com>
3800
3801 PR gdb/19487
3802 * c-exp.y (variable production): Handle function aliases.
3803 * minsyms.c (msymbol_is_text): New function.
3804 * minsyms.h (msymbol_is_text): Declare.
3805 * symtab.c (find_function_alias_target): New function.
3806 * symtab.h (find_function_alias_target): Declare.
3807
c973d0aa
PA
38082017-08-21 Pedro Alves <palves@redhat.com>
3809
3810 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
3811 typedefs.
3812 * typeprint.c (whatis_exp): If handling "whatis", and expression
3813 is OP_TYPE, strip one typedef level. Otherwise don't strip
3814 typedefs here.
3815 * valops.c (value_cast): Save "to" type before resolving
3816 stubs/typedefs. Use that type as resulting value's type.
3817
2989a365
TT
38182017-08-18 Tom Tromey <tom@tromey.com>
3819 Pedro Alves <palves@redhat.com>
3820
3821 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
3822 * sol-thread.c (sol_thread_resume, sol_thread_wait)
3823 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
3824 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
3825 * proc-service.c (ps_xfer_memory): Use scoped_restore.
3826 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
3827 (linux_get_siginfo_data): Add "thread" argument. Use
3828 scoped_restore.
3829 * linux-nat.c (linux_child_follow_fork)
3830 (check_stopped_by_watchpoint): Use scoped_restore.
3831 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
3832 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
3833 (restore_inferior_ptid, save_inferior_ptid): Remove.
3834 * btrace.c (btrace_fetch): Use scoped_restore.
3835 * bsd-uthread.c (bsd_uthread_fetch_registers)
3836 (bsd_uthread_store_registers): Use scoped_restore.
3837 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
3838 scoped_restore.
3839 * aix-thread.c (aix_thread_resume, aix_thread_wait)
3840 (aix_thread_xfer_partial): Use scoped_restore.
3841 * inferior.h (save_inferior_ptid): Remove.
3842
e60eb288
YQ
38432017-08-18 Yao Qi <yao.qi@linaro.org>
3844
3845 PR tdep/21818
3846 * arm-tdep.c (gdb_print_insn_arm): Mark
3847 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
3848
6d580b63
YQ
38492017-08-18 Yao Qi <yao.qi@linaro.org>
3850
3851 * NEWS: Mention GDBserver's new option "--selftest".
3852 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
3853 * selftest.c: Move it to common/selftest.c.
3854 * selftest.h: Move it to common/selftest.h.
3855 * selftest-arch.c (reset): New function.
3856 (tests_with_arch): Call reset.
3857
86dcbf50
YQ
38582017-08-18 Yao Qi <yao.qi@linaro.org>
3859
3860 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
3861 instead of exception_fprintf and printf_filtered.
3862
7649770c
YQ
38632017-08-18 Yao Qi <yao.qi@linaro.org>
3864
3865 * selftest.c (register_self_test): Rename it to
3866 selftests::register_test.
3867 (run_self_tests): selftest::run_tests.
3868 * selftest.h: Update declarations.
3869 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
3870 selftests::register_test_foreach_arch.
3871 * selftest-arch.h: Update declaration.
3872 * aarch64-tdep.c: Update.
3873 * arm-tdep.c: Likewise.
3874 * disasm-selftests.c: Likewise.
3875 * dwarf2loc.c: Likewise.
3876 * dwarf2-frame.c: Likewise.
3877 * findvar.c: Likewise.
3878 * gdbarch-selftests.c: Likewise.
3879 * maint.c (maintenance_selftest): Likewise.
3880 * regcache.c: Likewise.
3881 * rust-exp.y: Likewise.
3882 * selftest-arch.c: Likewise.
3883 * unittests/environ-selftests.c: Likewise.
3884 * unittests/function-view-selftests.c: Likewise.
3885 * unittests/offset-type-selftests.c: Likewise.
3886 * unittests/optional-selftests.c: Likewise.
3887 * unittests/scoped_restore-selftests.c: Likewise.
3888 * utils-selftests.c: Likewise.
3889
b0cba12e
PA
38902017-08-17 Pedro Alves <palves@redhat.com>
3891
3892 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
3893 local.
3894
4c8aa72d
PA
38952017-08-17 Pedro Alves <palves@redhat.com>
3896
3897 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
3898 field.
3899 (reset_die_in_process): Delete, replaced by ...
3900 (process_die_scope): ... this new class. Make it responsible for
3901 freeing cu->line_header too.
3902 (process_die): Use process_die_scope.
3903 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
3904 cu->line_header_die_owner. Don't release the line header if it's
3905 owned by the CU.
3906 (setup_type_unit_groups): Make the CU/DIE own the line header.
3907 Don't release the line header here.
3908
ba713918
AL
39092017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
3910
3911 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
3912
44d0fb3a
RK
39132017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
3914
3915 * NEWS: Mention new shortcuts for nexti and stepi in TUI
3916 Single-Key mode
3917
a5afdb16
RK
39182017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
3919
3920 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
3921 mode command list.
3922
47613aeb
SH
39232017-08-15 Stafford Horne <shorne@gmail.com>
3924
3925 * MAINTAINERS (Write After Approval): Add Stafford Horne.
3926
9c3cc999
SH
39272017-08-15 Stafford Horne <shorne@gmail.com>
3928
3929 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
3930
206726fb
SDJ
39312017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
3932
3933 PR gdb/21954
3934 * infcmd.c (unset_environment_command): Use the 'clear' method on
3935 the environment instead of resetting it.
3936
0335ac6d
JB
39372017-08-15 John Baldwin <jhb@FreeBSD.org>
3938
3939 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
3940 platforms.
3941
d3abe1c8
TT
39422017-08-14 Tom Tromey <tom@tromey.com>
3943
3944 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
3945 (print_binary_chars): Likewise.
3946 (BITS_IN_BYTES): Remove.
3947
d6382fff
TT
39482017-08-14 Tom Tromey <tom@tromey.com>
3949
3950 PR gdb/21675
3951 * valprint.c (LOW_ZERO): Change value to 034.
3952 (print_octal_chars): Add static_asserts for octal constants.
3953 * printcmd.c (print_scalar_formatted): Add 'd' case.
3954
f978cb06
TT
39552017-08-11 Tom Tromey <tom@tromey.com>
3956
3957 * symfile.c (add_symbol_file_command): Use std::vector.
3958
2f5404b3
TT
39592017-08-14 Tom Tromey <tom@tromey.com>
3960
3961 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
3962 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
3963 std::move.
3964 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
3965
de7985c3
PA
39662017-08-11 Pedro Alves <palves@redhat.com>
3967
3968 * infrun.c (process_event_stop_test): Adjust
3969 function_name_is_marked_for_skip call.
3970 * skip.c: Include <list>.
3971 (skiplist_entry): Make it a class with private fields, and
3972 getters/setters.
3973 (skiplist_entry_chain): Delete.
3974 (skiplist_entries): New.
3975 (skiplist_entry_count): Delete.
3976 (highest_skiplist_entry_num): New.
3977 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
3978 (add_skiplist_entry): Delete.
3979 (skiplist_entry::skiplist_entry): New.
3980 (skiplist_entry::add_entry): New.
3981 (skip_file_command, skip_function): Adjust.
3982 (compile_skip_regexp): Delete.
3983 (skip_command): Don't compile regexp here. Adjust to use
3984 skiplist_entry::add_entry.
3985 (skip_info): Adjust to use range-for and getters.
3986 (skip_enable_command, skip_disable_command): Adjust to use
3987 range-for and setters.
3988 (skip_delete_command): Adjust to use std::list.
3989 (add_skiplist_entry): Delete.
3990 (skip_file_p): Delete, refactored as ...
3991 (skiplist_entry::do_skip_file_p): ... this new method.
3992 (skip_gfile_p): Delete, refactored as ...
3993 (skiplist_entry::do_gskip_file_p): ... this new method.
3994 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
3995 (skiplist_entry::skip_function_p): ... this new method.
3996 (function_name_is_marked_for_skip): Now returns bool, and takes
3997 the function sal by const reference. Adjust to use range-for and
3998 skiplist_entry methods.
3999 (_initialize_step_skip): Remove references to
4000 skiplist_entry_chain, skiplist_entry_count.
4001 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
4002 takes the function sal by const reference.
4003
be7d3cd5
YQ
40042017-08-11 Yao Qi <yao.qi@linaro.org>
4005
4006 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
4007 (dwarf2_frame_cache): Remove reset_cache_cleanup.
4008 (dwarf2_frame_cache):
4009 * frame-unwind.c (frame_unwind_try_unwinder): Catch
4010 RETURN_MASK_ALL and set *this_case to NULL.
4011 * frame-unwind.h: Update comments.
4012
1c90d9f0
YQ
40132017-08-11 Yao Qi <yao.qi@linaro.org>
4014
4015 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
4016 (dwarf2_frame_state_copy_regs): Remove.
4017 (dwarf2_frame_state_free_regs): Remove.
4018 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
4019 (dwarf2_restore_rule): Call method .alloc_regs instead of
4020 dwarf2_frame_state_alloc_regs.
4021 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
4022 constructor. Call std::move.
4023 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
4024 (dwarf2_frame_cache): Likewise.
4025
4026 [GDB_SELF_TEST]: Include selftest.h and
4027 selftest-arch.h.
4028 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
4029 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
4030 execute_cfa_program_test.
4031
4032 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
4033 copy ctor, assignment operator, move assignment.
4034 <alloc_regs>: New method.
4035 <swap>: New method.
4036 (struct dwarf2_frame_state): Delete dtor.
4037 (dwarf2_frame_state_alloc_regs): Remove declaration.
4038 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
4039 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
4040
afe37d6b
YQ
40412017-08-11 Yao Qi <yao.qi@linaro.org>
4042
4043 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
4044 (dwarf2_frame_state::dwarf2_frame_state): New.
4045 (dwarf2_frame_state::~dwarf2_frame_state): New.
4046 (dwarf2_fetch_cfa_info): Update.
4047 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
4048 rather than a pointer. Update code.
4049 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
4050 dtor.
4051 <data_align, code_align, retaddr_column>: Change them to const.
4052 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
4053 to bool.
4054
b348037f
YQ
40552017-08-11 Yao Qi <yao.qi@linaro.org>
4056
4057 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
4058 <loc.exp>: New field.
4059 * dwarf2-frame.c (execute_cfa_program): Update.
4060 (dwarf2_frame_prev_register): Update.
4061
e7c9de26
PA
40622017-08-10 Pedro Alves <palves@redhat.com>
4063
4064 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
4065
e8c6b620
JB
40662017-08-09 John Baldwin <jhb@FreeBSD.org>
4067
4068 * fbsd-nat.c (struct fbsd_fork_info): Remove.
4069 (fbsd_pending_children): Use std::list.
4070 (fbsd_remember_child): Likewise.
4071 (fbsd_is_child_pending): Likewise.
4072 (fbsd_pending_vfork_done): Use std::forward_list.
4073 (fbsd_add_vfork_done): Likewise.
4074 (fbsd_is_vfork_done_pending): Likewise.
4075 (fbsd_next_vfork_done): Likewise.
4076
e4a26669
JB
40772017-08-09 John Baldwin <jhb@FreeBSD.org>
4078
4079 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
4080 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
4081 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
4082 for `mapfilename'.
4083 (fbsd_xfer_partial): Use gdb::byte_vector.
af3881e6 4084 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
e4a26669 4085
142311d3
JB
40862017-08-09 John Baldwin <jhb@FreeBSD.org>
4087
4088 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
4089 "filestuff.h".
4090 (fbsd_find_memory_regions): Fix `mapfile' initialization.
4091
42fa2e0e
TT
40922017-08-09 Tom Tromey <tom@tromey.com>
4093
4094 * skip.c (skiplist_entry): New constructor.
4095 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
4096 (skiplist_entry::file_is_glob): Now bool.
4097 (skiplist_entry::file, skiplist_entry::function): Now
4098 std::string.
4099 (make_skip_entry): Return a unique_ptr. Use new.
4100 (free_skiplist_entry, free_skiplist_entry_cleanup)
4101 (make_free_skiplist_entry_cleanup): Remove.
4102 (skip_command, skip_disable_command, add_skiplist_entry)
4103 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
4104 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
4105 (function_name_is_marked_for_skip): Update.
4106 (skip_delete_command): Update. Use delete.
4107
cd3af38d
JW
41082017-08-09 Jiong Wang <jiong.wang@arm.com>
4109
4110 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
4111 (aarch64_linux_core_read_description): New function.
4112 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
4113
29592bde
PA
41142017-08-09 Pedro Alves <palves@redhat.com>
4115
4116 * cp-name-parser.y (cp_comp_to_string): Return a
4117 gdb::unique_xmalloc_ptr<char>.
4118 * cp-support.c (replace_typedefs_qualified_name)
4119 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
4120 (cp_canonicalize_string_full): Use op= instead of explicit
4121 convertion.
4122 (cp_class_name_from_physname, method_name_from_physname)
4123 (cp_func_name, cp_remove_params): Adjust to use
4124 gdb::unique_xmalloc_ptr<char>.
4125 * cp-support.h (cp_comp_to_string): Return a
4126 gdb::unique_xmalloc_ptr<char>.
4127 * python/py-type.c (typy_lookup_type): Adjust to use
4128 gdb::unique_xmalloc_ptr<char>.
4129
b3340438
L
41302017-08-09 H.J. Lu <hongjiu.lu@intel.com>
4131
4132 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
4133
e88e8651
YQ
41342017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
4135 Yao Qi <yao.qi@linaro.org>
4136
4137 * cp-support.c (cp_canonicalize_string_full): Use
4138 gdb::unique_xmalloc_ptr<char>.
4139 (cp_canonicalize_string): Likewise.
4140
f5a29eb0
YQ
41412017-08-09 Yao Qi <yao.qi@linaro.org>
4142
4143 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
4144 * regformats/i386/amd64-avx-avx512.dat: Remove.
4145 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
4146 * regformats/i386/amd64-avx-mpx.dat:Remove.
4147 * regformats/i386/amd64-avx.dat: Remove.
4148 * regformats/i386/amd64-mpx.dat: Remove.
4149 * regformats/i386/i386-avx-avx512.dat: Remove.
4150 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
4151 * regformats/i386/i386-avx-mpx.dat: Remove.
4152 * regformats/i386/i386-mmx.dat: Remove.
4153 * regformats/i386/i386-mpx.dat: Remove.
4154
57757c2f
YQ
41552017-08-09 Yao Qi <yao.qi@linaro.org>
4156
4157 * amd64-tdep.h (tdesc_x32): Remove the declaration.
4158 * amd64-tdep.c: Don't include features/i386/x32*.c.
4159 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
4160 functions.
4161 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
4162 and i386/x32-avx-avx512.
4163 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
4164 and i386/x32.xml.
4165 * features/i386/x32-avx-avx512.c: Removed.
4166 * features/i386/x32-avx-avx512.xml: Removed.
4167 * features/i386/x32-avx.c: Removed.
4168 * features/i386/x32-avx.xml: Removed.
4169 * features/i386/x32.c: Removed.
4170 * features/i386/x32.xml: Removed.
4171 * regformats/i386/x32-avx-avx512.dat: Removed.
4172 * regformats/i386/x32-avx.dat: Removed.
4173 * regformats/i386/x32.dat: Removed.
4174
ba7b109b
MR
41752017-08-07 Maciej W. Rozycki <macro@imgtec.com>
4176
4177 PR breakpoints/21886
4178 * mem-break.c (default_memory_insert_breakpoint): Use
4179 `->placed_address' rather than `->reqstd_address' for the
4180 breakpoint location.
4181
e347efc3
MR
41822017-08-07 Maciej W. Rozycki <macro@imgtec.com>
4183
4184 * arch-utils.c (default_print_insn): Remove arch/mach/endian
4185 assertions.
4186
0dba2a6c
MR
41872017-08-07 Maciej W. Rozycki <macro@imgtec.com>
4188
4189 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
4190 a union of `tdep_info', `tdesc_data' and `id'.
4191 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
4192 rather than `info.tdep_info'.
4193 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
4194 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
4195 * i386-tdep.c (i386_gdbarch_init): Likewise.
4196 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
4197 * mips-tdep.c (mips_gdbarch_init): Likewise.
4198 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
4199 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
4200 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
4201 `info.tdep_info'.
4202 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
4203 `info.tdep_info'.
4204 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
4205 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
4206 `info.tdep_info'.
4207 * spu-tdep.c (spu_gdbarch_init): Likewise.
4208 * gdbarch.h: Regenerate.
4209
16eb6b2d
LS
42102017-08-07 Leszek Swirski <leszeks@google.com>
4211
7b005726 4212 PR symtab/20899
16eb6b2d
LS
4213 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
4214
74cbb09e
SM
42152017-08-07 Simon Marchi <simon.marchi@ericsson.com>
4216
4217 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
4218 (gdbsim_open): Rename gdb_argv args object to argv.
4219
ee0c3293
TT
42202017-08-05 Tom Tromey <tom@tromey.com>
4221
4222 * compile/compile-object-load.c (compile_object_load): Use
4223 gdb::unique_xmalloc_ptr.
4224 * cli/cli-dump.c (scan_filename): Rename from
4225 scan_filename_with_cleanup. Change return type.
4226 (scan_expression): Rename from scan_expression_with_cleanup.
4227 Change return type.
4228 (dump_memory_to_file, dump_value_to_file, restore_command):
4229 Use gdb::unique_xmalloc_ptr. Update.
4230 * cli/cli-cmds.c (find_and_open_script): Use
4231 gdb::unique_xmalloc_ptr.
4232 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
4233 * symmisc.c (maintenance_print_symbols)
4234 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
4235 * symfile.c (symfile_bfd_open, generic_load)
4236 (add_symbol_file_command, remove_symbol_file_command): Use
4237 gdb::unique_xmalloc_ptr.
4238 * source.c (openp): Use gdb::unique_xmalloc_ptr.
4239 * psymtab.c (maintenance_print_psymbols): Use
4240 gdb::unique_xmalloc_ptr.
4241 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
4242 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
4243 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
4244 (reload_shared_libraries_1): Likewise.
4245
3232fabd
TT
42462017-08-05 Tom Tromey <tom@tromey.com>
4247
4248 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
4249 (rust_op_vector, rust_set_vector): New typedefs.
4250 (current_parser): New global.
4251 (work_obstack): Change to pointer type. Update all users.
4252 (rust_ast, pstate): Remove globals.
4253 (struct rust_parser): New.
4254 (%union) <params, field_inits>: Change type.
4255 (start, tuple_expr, unit_expr, struct_expr_list, literal)
4256 (field_expr, expr_list, maybe_expr_list, type_list): Update.
4257 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
4258 (convert_params_to_types, convert_params_to_expression): Change
4259 type of "params".
4260 (ast_string): Change type of "fields".
4261 (rust_parse): Make a rust_parser. Remove cleanups.
4262 (rust_lex_tests): Make and install an auto_obstack.
4263
f02fd774
YQ
42642017-08-04 Yao Qi <yao.qi@linaro.org>
4265
4266 * configure.srv (ipa_x32_linux_regobj): New.
4267 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
4268 instead of X86_TDESC_AVX512.
4269 (initialize_low_tracepoint): Call
4270 init_registers_x32_avx_avx512_linux.
4271
91975afd
YQ
42722017-08-04 Yao Qi <yao.qi@linaro.org>
4273
4274 * utils.h (gdb_argv): Add namespace std for nullptr_t.
4275
2331fa3a
RK
42762017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
4277
4278 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
4279
744e4fe1
TT
42802017-08-03 Tom Tromey <tom@tromey.com>
4281
4282 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
4283 Remove.
4284 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
4285
1c034b67
TT
42862017-08-03 Tom Tromey <tom@tromey.com>
4287
4288 * python/py-param.c (compute_enum_values): Use gdb_argv.
4289
773a1edc
TT
42902017-08-03 Tom Tromey <tom@tromey.com>
4291
4292 * utils.h (struct gdb_argv_deleter): New.
4293 (gdb_argv): New class.
4294 * utils.c (gdb_argv::reset): New method.
4295 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
4296 * tracefile.c (tsave_command): Use gdb_argv.
4297 * top.c (new_ui_command): Use gdb_argv.
4298 * symmisc.c (maintenance_print_symbols)
4299 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
4300 * symfile.c (symbol_file_command, generic_load)
4301 (remove_symbol_file_command): Use gdb_argv.
4302 * stack.c (backtrace_command): Use gdb_argv.
4303 * source.c (add_path, show_substitute_path_command)
4304 (unset_substitute_path_command, set_substitute_path_command):
4305 Use gdb_argv.
4306 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
4307 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
4308 * remote.c (extended_remote_run, remote_put_command)
4309 (remote_get_command, remote_delete_command): Use gdb_argv.
4310 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
4311 (gdbsim_open): Use gdb_argv.
4312 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
4313 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
4314 * procfs.c (procfs_info_proc): Use gdb_argv.
4315 * interps.c (interpreter_exec_cmd): Use gdb_argv.
4316 * infrun.c (handle_command): Use gdb_argv.
4317 * inferior.c (add_inferior_command, clone_inferior_command):
4318 Use gdb_argv.
4319 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
4320 * exec.c (exec_file_command): Use gdb_argv.
4321 * cli/cli-cmds.c (alias_command): Use gdb_argv.
4322 * compile/compile.c (build_argc_argv): Use gdb_argv.
4323
0d50bde3
TT
43242017-08-03 Tom Tromey <tom@tromey.com>
4325
4326 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
4327
7f968c89
TT
43282017-08-03 Tom Tromey <tom@tromey.com>
4329
4330 * python/python.c (compute_python_string): Return std::string.
4331 (gdbpy_eval_from_control_command): Update.
4332 (do_start_initialization): Use std::string.
4333 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
4334 xstrprintf.
4335 * python/py-breakpoint.c (local_setattro): Use string_printf, not
4336 xstrprintf.
4337
3c9ebddd
TT
43382017-08-03 Tom Tromey <tom@tromey.com>
4339
4340 * top.h (do_restore_instream_cleanup): Remove.
4341 * top.c (do_restore_instream_cleanup): Remove.
4342 (read_command_file): Use scoped_restore.
4343 * cli/cli-script.c (execute_user_command): Use scoped_restore.
4344
b51b225e
TT
43452017-08-03 Tom Tromey <tom@tromey.com>
4346
4347 * cli/cli-script.c (execute_user_command)
4348 (execute_control_command): Use scoped_restore.
4349
ac991630
TT
43502017-08-03 Tom Tromey <tom@tromey.com>
4351
4352 * cli/cli-script.c (do_restore_user_call_depth): Remove.
4353 (execute_user_command): Remove user_call_depth; use
4354 user_args_stack's size instead.
4355
898e0c8e
TT
43562017-08-03 Tom Tromey <tom@tromey.com>
4357
4358 * top.h (in_user_command): Remove.
4359 * top.c (in_user_command): Remove.
4360 * cli/cli-script.c (do_restore_user_call_depth)
4361 (execute_user_command): Update.
4362
26fcd5d7
TT
43632017-08-03 Tom Tromey <tom@tromey.com>
4364
4365 * valops.c (search_struct_method): Use gdb::byte_vector.
4366 * valarith.c (value_concat): Use std::vector.
4367 * target.c (memory_xfer_partial): Use gdb::byte_vector.
4368 (simple_search_memory): Likewise.
4369 * printcmd.c (find_string_backward): Use gdb::byte_vector.
4370 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
4371 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
4372 * elfread.c (elf_rel_plt_read): Use std::string.
4373 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
4374 * cli/cli-dump.c (restore_section_callback): Use
4375 gdb::byte_vector.
4376
7c218e6c
TT
43772017-08-03 Tom Tromey <tom@tromey.com>
4378
4379 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
4380
31b68d4a
TT
43812017-08-03 Tom Tromey <tom@tromey.com>
4382
4383 * tui/tui-regs.c (tui_restore_gdbout): Remove.
4384 (tui_register_format): Use scoped_restore.
4385
2ec845e7
TT
43862017-08-03 Tom Tromey <tom@tromey.com>
4387
4388 * reverse.c (exec_direction_default): Remove.
4389 (exec_reverse_once): Use scoped_restore.
4390 * remote.c (restore_remote_timeout): Remove.
4391 (remote_flash_erase, remote_flash_write, remote_flash_done)
4392 (readchar, remote_serial_write): Use scoped_restore.
4393 * cli/cli-script.c (struct source_cleanup_lines_args)
4394 (source_cleanup_lines): Remove.
4395 (script_from_file): Use scoped_restore.
4396 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
4397 (source_command): Use scoped_restore.
4398
b3bc8453
TT
43992017-08-03 Tom Tromey <tom@tromey.com>
4400
4401 * utils.h (make_cleanup_free_so): Remove.
4402 * utils.c (do_free_so, make_cleanup_free_so): Remove.
4403 * solist.h (struct so_deleter): New.
4404 (so_list_up): New typedef.
4405 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
4406
e3ad2841
TT
44072017-08-03 Tom Tromey <tom@tromey.com>
4408
4409 * utils.h (make_cleanup_restore_current_language): Remove.
4410 * utils.c (do_restore_current_language)
4411 (make_cleanup_restore_current_language): Remove.
4412 * parse.c (parse_exp_in_context_1)
4413 (parse_expression_with_language): Use
4414 scoped_restore_current_language.
4415 * mi/mi-main.c (mi_cmd_execute): Use
4416 scoped_restore_current_language.
4417 * language.h (scoped_restore_current_language): New class.
4418
b80cf838
TT
44192017-08-03 Tom Tromey <tom@tromey.com>
4420
4421 * compile/compile.c (cleanup_unlink_file): Remove.
4422 (compile_to_object): Use gdb::unlinker.
4423 (eval_compile_command): Likewise.
4424
fad0444a
TT
44252017-08-03 Tom Tromey <tom@tromey.com>
4426
4427 * utils.h (make_cleanup_fclose): Remove.
4428 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
4429
6e7bc05c
TT
44302017-08-03 Tom Tromey <tom@tromey.com>
4431
4432 * top.c (open_terminal_stream): Return gdb_file_up.
4433 (new_ui_command): Update.
4434
4a45905b
TT
44352017-08-03 Tom Tromey <tom@tromey.com>
4436
4437 * source.c (print_source_lines_base, forward_search_command)
4438 (reverse_search_command): Use gdb_file_up.
4439
7cd06d6e
TT
44402017-08-03 Tom Tromey <tom@tromey.com>
4441
4442 * fbsd-nat.c (fbsd_find_memory_regions): Update.
4443
ed166945
TT
44442017-08-03 Tom Tromey <tom@tromey.com>
4445
4446 * cli/cli-cmds.c (find_and_open_script): Change return type.
4447 Remove "streamp" and "full_path" parameters.
4448 (source_script_with_search): Update.
4449 * auto-load.c (source_script_file): Update.
4450 * cli/cli-cmds.h (find_and_open_script): Change type.
4451 (open_script): New struct.
4452
d419f42d
TT
44532017-08-03 Tom Tromey <tom@tromey.com>
4454
4455 * xml-support.c (xml_fetch_content_from_file): Update.
4456 * ui-file.c (stdio_file::open): Update.
4457 * tracefile-tfile.c (tfile_start): Update.
4458 * remote.c (remote_file_put, remote_file_get): Update.
4459 * nat/linux-procfs.c (linux_proc_get_int)
4460 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
4461 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
4462 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
4463 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
4464 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
4465 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
4466 * linux-nat.c (linux_proc_pending_signals): Update.
4467 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
4468 (file_closer): Remove.
4469 * compile/compile.c (compile_to_object): Update.
4470 * common/filestuff.h (struct gdb_file_deleter): New.
4471 (gdb_file_up): New typedef.
4472 (gdb_fopen_cloexec): Change return type.
4473 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
4474 * cli/cli-dump.c (fopen_with_cleanup): Remove.
4475 (dump_binary_file, restore_binary_file): Update.
4476 * auto-load.c (auto_load_objfile_script_1): Update.
4477
4a2b031d
TT
44782017-08-03 Tom Tromey <tom@tromey.com>
4479
4480 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
4481 (info_static_tracepoint_markers_command): Likewise.
4482 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
4483 * skip.c (skip_info): Use ui_out_emit_table.
4484 * progspace.c (print_program_space): Use ui_out_emit_table.
4485 * osdata.c (info_osdata): Use ui_out_emit_table.
4486 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
4487 ui_out_emit_table.
4488 * linux-thread-db.c (info_auto_load_libthread_db): Use
4489 ui_out_emit_table.
4490 * inferior.c (print_inferior): Use ui_out_emit_table.
4491 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
4492 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
4493 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
4494 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
4495 * ui-out.h (class ui_out_emit_table): New.
4496
a4f320fd
MR
44972017-08-02 Maciej W. Rozycki <macro@imgtec.com>
4498
4499 * mips-tdep.c (mips_fpu_type_str): New function.
4500 (mips_dump_tdep): Call it.
4501
a2f1f308
MR
45022017-08-01 Maciej W. Rozycki <macro@imgtec.com>
4503
4504 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
4505 `->mips_fpu_type'.
4506
7e5ed83b
XR
45072017-07-31 Xavier Roirand <roirand@adacore.com>
4508
4509 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4510
4c9dc811
XR
45112017-07-27 Xavier Roirand <roirand@adacore.com>
4512
4513 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
4514
27d41eac
YQ
45152017-07-26 Yao Qi <yao.qi@linaro.org>
4516
4517 * cli/cli-cmds.c (maintenancechecklist): New variable.
4518 * gdbcmd.h (maintenancechecklist): Declare it.
4519 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
4520 Call i386_linux_read_description with different masks.
4521 * maint.c (maintenance_check_command): New function.
4522 (_initialize_maint_cmds): Call add_prefix_cmd.
4523 * target-descriptions.c (tdesc_reg): override operator != and ==.
4524 (tdesc_type): Likewise.
4525 (tdesc_feature): Likewise.
4526 (target_desc): Likewise.
4527 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
4528 (maintenance_check_xml_descriptions): New function.
4529 (_initialize_target_descriptions) Add command "xml-descriptions".
4530 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
4531
ea03d0d3
YQ
45322017-07-26 Yao Qi <yao.qi@linaro.org>
4533
4534 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
4535 Include features/i386/32bit-*.c.
4536 (i386_linux_read_description): Generate target description if it
4537 doesn't exist.
4538 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
4539 functions.
4540 * features/i386/32bit-linux.c: Re-generated.
4541 * features/i386/32bit-sse.c: Likewise.
4542 * target-descriptions.c (print_c_feature::visit): Print code to
4543 set register number if needed.
4544 (print_c_feature) <m_next_regnum>: New field.
4545
25aa13e5
YQ
45462017-07-26 Yao Qi <yao.qi@linaro.org>
4547
4548 * features/Makefile (CFILES): Rename with TDESC_CFILES.
4549 (FEATURE_XMLFILES): New.
4550 (FEATURE_CFILES): New.
4551 New rules.
4552 (clean-cfiles): Remove generated c files.
4553 * features/i386/32bit-avx.c: Generated.
4554 * features/i386/32bit-avx512.c: Generated.
4555 * features/i386/32bit-core.c: Generated.
4556 * features/i386/32bit-linux.c: Generated.
4557 * features/i386/32bit-mpx.c: Generated.
4558 * features/i386/32bit-pkeys.c: Generated.
4559 * features/i386/32bit-sse.c: Generated.
4560 * target-descriptions.c: Include algorithm.
4561 (tdesc_element_visitor): Add method visit_end.
4562 (print_c_tdesc): Implement visit_end.
4563 (print_c_tdesc:: m_filename_after_features): Move it to
4564 protected.
4565 (print_c_feature): New class.
4566 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
4567 name starts with "i386/32bit-".
4568
6eb1e6a8
YQ
45692017-07-26 Yao Qi <yao.qi@linaro.org>
4570
4571 * target-descriptions.c (tdesc_element_visitor): New class.
4572 (tdesc_element): New class.
4573 (tdesc_reg): Inherit from tdesc_element.
4574 (tdesc_reg::accept): New function.
4575 (tdesc_type): Inherit from tdesc_element.
4576 (tdesc_type::accept): New function.
4577 (tdesc_feature): Inherit from tdesc_element.
4578 (tdesc_feature::accept): New function.
4579 (target_desc): Inherit from tdesc_element.
4580 (target_desc::target_desc): New.
4581 (target_desc::~target_desc): New.
4582 (target_desc::accept): New.
4583 (allocate_target_description): Use new.
4584 (free_target_description): Use delete.
4585 (print_c_tdesc): New class.
4586 (maint_print_c_tdesc_cmd): Adjust.
4587
4588 * features/aarch64.c: Re-generated.
4589 * features/arc-arcompact.c: Re-generated.
4590 * features/arc-v2.c: Re-generated.
4591 * features/arm/arm-with-iwmmxt.c: Re-generated.
4592 * features/arm/arm-with-m.c: Re-generated.
4593 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
4594 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
4595 * features/arm/arm-with-neon.c: Re-generated.
4596 * features/arm/arm-with-vfpv2.c: Re-generated.
4597 * features/arm/arm-with-vfpv3.c: Re-generated.
4598 * features/i386/amd64-avx-avx512.c: Re-generated.
4599 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
4600 * features/i386/amd64-avx.c: Re-generated.
4601 * features/i386/amd64-avx-linux.c: Re-generated.
4602 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
4603 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
4604 * features/i386/amd64-avx-mpx.c: Re-generated.
4605 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
4606 * features/i386/amd64.c: Re-generated.
4607 * features/i386/amd64-linux.c: Re-generated.
4608 * features/i386/amd64-mpx.c: Re-generated.
4609 * features/i386/amd64-mpx-linux.c: Re-generated.
4610 * features/i386/i386-avx-avx512.c: Re-generated.
4611 * features/i386/i386-avx-avx512-linux.c: Re-generated.
4612 * features/i386/i386-avx.c: Re-generated.
4613 * features/i386/i386-avx-linux.c: Re-generated.
4614 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
4615 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
4616 * features/i386/i386-avx-mpx.c: Re-generated.
4617 * features/i386/i386-avx-mpx-linux.c: Re-generated.
4618 * features/i386/i386.c: Re-generated.
4619 * features/i386/i386-linux.c: Re-generated.
4620 * features/i386/i386-mmx.c: Re-generated.
4621 * features/i386/i386-mmx-linux.c: Re-generated.
4622 * features/i386/i386-mpx.c: Re-generated.
4623 * features/i386/i386-mpx-linux.c: Re-generated.
4624 * features/i386/x32-avx-avx512.c: Re-generated.
4625 * features/i386/x32-avx-avx512-linux.c: Re-generated.
4626 * features/i386/x32-avx.c: Re-generated.
4627 * features/i386/x32-avx-linux.c: Re-generated.
4628 * features/i386/x32.c: Re-generated.
4629 * features/i386/x32-linux.c: Re-generated.
4630 * features/microblaze.c: Re-generated.
4631 * features/microblaze-with-stack-protect.c: Re-generated.
4632 * features/mips64-dsp-linux.c: Re-generated.
4633 * features/mips64-linux.c: Re-generated.
4634 * features/mips-dsp-linux.c: Re-generated.
4635 * features/mips-linux.c: Re-generated.
4636 * features/nds32.c: Re-generated.
4637 * features/nios2.c: Re-generated.
4638 * features/nios2-linux.c: Re-generated.
4639 * features/rs6000/powerpc-32.c: Re-generated.
4640 * features/rs6000/powerpc-32l.c: Re-generated.
4641 * features/rs6000/powerpc-403.c: Re-generated.
4642 * features/rs6000/powerpc-403gc.c : Re-generated.
4643 * features/rs6000/powerpc-405.c: Re-generated.
4644 * features/rs6000/powerpc-505.c: Re-generated.
4645 * features/rs6000/powerpc-601.c: Re-generated.
4646 * features/rs6000/powerpc-602.c: Re-generated.
4647 * features/rs6000/powerpc-603.c: Re-generated.
4648 * features/rs6000/powerpc-604.c: Re-generated.
4649 * features/rs6000/powerpc-64.c: Re-generated.
4650 * features/rs6000/powerpc-64l.c: Re-generated.
4651 * features/rs6000/powerpc-7400.c: Re-generated.
4652 * features/rs6000/powerpc-750.c: Re-generated.
4653 * features/rs6000/powerpc-860.c: Re-generated.
4654 * features/rs6000/powerpc-altivec32.c: Re-generated.
4655 * features/rs6000/powerpc-altivec32l.c: Re-generated.
4656 * features/rs6000/powerpc-altivec64.c: Re-generated.
4657 * features/rs6000/powerpc-altivec64l.c: Re-generated.
4658 * features/rs6000/powerpc-cell32l.c: Re-generated.
4659 * features/rs6000/powerpc-cell64l.c: Re-generated.
4660 * features/rs6000/powerpc-e500.c: Re-generated.
4661 * features/rs6000/powerpc-e500l.c: Re-generated.
4662 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
4663 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
4664 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
4665 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
4666 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
4667 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
4668 * features/rs6000/powerpc-vsx32.c: Re-generated.
4669 * features/rs6000/powerpc-vsx32l.c: Re-generated.
4670 * features/rs6000/powerpc-vsx64.c: Re-generated.
4671 * features/rs6000/powerpc-vsx64l.c: Re-generated.
4672 * features/rs6000/rs6000.c: Re-generated.
4673 * features/s390-linux32.c: Re-generated.
4674 * features/s390-linux32v1.c: Re-generated.
4675 * features/s390-linux32v2.c: Re-generated.
4676 * features/s390-linux64.c: Re-generated.
4677 * features/s390-linux64v1.c: Re-generated.
4678 * features/s390-linux64v2.c: Re-generated.
4679 * features/s390-te-linux64.c: Re-generated.
4680 * features/s390-tevx-linux64.c: Re-generated.
4681 * features/s390-vx-linux64.c: Re-generated.
4682 * features/s390x-linux64.c: Re-generated.
4683 * features/s390x-linux64v1.c: Re-generated.
4684 * features/s390x-linux64v2.c: Re-generated.
4685 * features/s390x-te-linux64.c: Re-generated.
4686 * features/s390x-tevx-linux64.c: Re-generated.
4687 * features/s390x-vx-linux64.c: Re-generated.
4688 * features/sparc/sparc32-solaris.c: Re-generated.
4689 * features/sparc/sparc64-solaris.c: Re-generated.
4690 * features/tic6x-c62x.c: Re-generated.
4691 * features/tic6x-c62x-linux.c: Re-generated.
4692 * features/tic6x-c64x.c: Re-generated.
4693 * features/tic6x-c64x-linux.c: Re-generated.
4694 * features/tic6x-c64xp.c: Re-generated.
4695 * features/tic6x-c64xp-linux.c: Re-generated.
4696
35b4818d
YQ
46972017-07-26 Yao Qi <yao.qi@linaro.org>
4698
4699 * i386-linux-tdep.c (i386_linux_read_description): New function.
4700 (i386_linux_core_read_description): Call
4701 i386_linux_read_description.
4702 * i386-linux-tdep.h (i386_linux_read_description): Declare.
4703 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
4704 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
4705 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
4706 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
4707 * x86-linux-nat.c (x86_linux_read_description): Call
4708 i386_linux_read_description.
4709
8e2141c6
YQ
47102017-07-26 Yao Qi <yao.qi@linaro.org>
4711
4712 * NEWS: Mention it.
4713 * features/Makefile (%.c: %.xml): Pass the xml file name to
4714 command "maint print c-tdesc".
4715 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
4716 name from 'arg'.
4717
b468ff4c
YQ
47182017-07-26 Yao Qi <yao.qi@linaro.org>
4719
4720 * target-descriptions.c (target_desc): Add ctor and dtor. Do
4721 in-class initialization.
4722 (tdesc_create_feature): Call new instead of XCNEW.
4723 (free_target_description): Ue delete.
4724
b9c0e1b4
JB
47252017-07-25 John Baldwin <jhb@FreeBSD.org>
4726
4727 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
4728
a04b5337
YQ
47292017-07-25 Yao Qi <yao.qi@linaro.org>
4730
4731 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
4732 constant.
4733 (amd64_x32_init_abi): Likewise.
4734 * amd64-tdep.h (amd64_init_abi): Update declaration.
4735 (amd64_x32_init_abi): Likewise.
4736
02ad7fc2
YQ
47372017-07-25 Yao Qi <yao.qi@linaro.org>
4738
4739 PR tdep/21717
4740 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
4741 condition for FPSCR.
4742 (arm_linux_store_inferior_registers): Likewise.
4743
b6f48cb0
TT
47442017-07-22 Tom Tromey <tom@tromey.com>
4745
4746 * break-catch-syscall.c (struct catch_syscall_inferior_data)
4747 <syscalls_counts>: Now a std::vector.
4748 (get_catch_syscall_inferior_data): Use "new".
4749 (catch_syscall_inferior_data_cleanup): Use "delete".
4750 (insert_catch_syscall, remove_catch_syscall)
4751 (clear_syscall_counts): Update.
4752
e12c9b7a
TT
47532017-07-22 Tom Tromey <tom@tromey.com>
4754
4755 * break-catch-syscall.c (syscall_catchpoint)
4756 <syscalls_to_be_caught>: Now a std::vector<int>
4757 (~syscall_catchpoint): Remove.
4758 (insert_catch_syscall, remove_catch_syscall)
4759 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4760 (print_mention_catch_syscall, print_recreate_catch_syscall):
4761 Update.
4762 (create_syscall_event_catchpoint): Change type of "filter"
4763 parameter.
4764 (catch_syscall_split_args): Return a std::vector.
4765 (catch_syscall_command_1, catching_syscall_number_1): Update.
4766
4fa8aeac
TT
47672017-07-22 Tom Tromey <tom@tromey.com>
4768
4769 * break-catch-throw.c (struct exception_catchpoint)
4770 <exception_rx>: Now a std::string.
4771 (~exception_catchpoint): Remove.
4772 (print_one_detail_exception_catchpoint): Update.
4773 (handle_gnu_v3_exceptions): Change type of except_rx.
4774 (extract_exception_regexp): Return a std::string.
4775 (catch_exception_command_1): Update.
4776
f746a154
TT
47772017-07-22 Tom Tromey <tom@tromey.com>
4778
4779 * break-catch-sig.c (gdb_signal_type): Remove typedef.
4780 (struct signal_catchpoint) <signals_to_be_caught>: Now a
4781 std::vector.
4782 <catch_all>: Now a bool.
4783 (~signal_catchpoint): Remove.
4784 (signal_catchpoint_insert_location)
4785 (signal_catchpoint_remove_location)
4786 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
4787 (signal_catchpoint_print_mention)
4788 (signal_catchpoint_print_recreate)
4789 (signal_catchpoint_explains_signal): Update.
4790 (create_signal_catchpoint): Change type of "filter" and
4791 "catch_all".
4792 (catch_signal_split_args): Return a std::vector. Change type of
4793 "catch_all".
4794 (catch_signal_command): Update.
4795
47e77640
PA
47962017-07-20 Pedro Alves <palves@redhat.com>
4797
4798 * ada-lang.c (ada_language_defn): Make extern.
4799 (_initialize_ada_language): Remove add_language call.
4800 * c-lang.c (c_language_defn, cplus_language_defn)
4801 (asm_language_defn, minimal_language_defn): Make extern.
4802 (_initialize_c_language): Delete.
4803 * completer.c (compare_cstrings): Delete, moved to utils.h.
4804 * d-lang.c (d_language_defn): Make extern.
4805 (_initialize_d_language): Remove add_language calls.
4806 * defs.h (enum language): Add comment.
4807 * f-lang.c (f_language_defn): Make extern.
4808 (_initialize_f_language): Remove add_language call.
4809 * go-lang.c (go_language_defn): Make extern.
4810 (_initialize_go_language): Remove add_language call.
4811 * language.c: Include <algorithm>.
4812 (languages): Redefine as const array.
4813 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
4814 (set_language_command): Handle "local". Use for-range loop.
4815 (set_language): Remove loop.
4816 (language_enum): Rewrite.
4817 (language_def, language_str): Remove loops.
4818 (add_language): Delete.
4819 (add_set_language_command): New, based on add_languages.
4820 (skip_language_trampoline): Adjust.
4821 (local_language_defn): Delete.
4822 (language_gdbarch_post_init): Adjust.
4823 (_initialize_language): Remove add_language calls. Call
4824 add_set_language_command.
4825 * language.h (add_language): Delete.
4826 (auto_language_defn)
4827 (unknown_language_defn, minimal_language_defn, ada_language_defn)
4828 (asm_language_defn, c_language_defn, cplus_language_defn)
4829 (d_language_defn, f_language_defn, go_language_defn)
4830 (m2_language_defn, objc_language_defn, opencl_language_defn)
4831 (pascal_language_defn, rust_language_defn): Declare.
4832 * m2-lang.c (m2_language_defn): Make extern.
4833 (_initialize_m2_language): Remove add_language call.
4834 * objc-lang.c (objc_language_defn): Make extern.
4835 (_initialize_objc_language): Remove add_language call.
4836 * opencl-lang.c (opencl_language_defn): Make extern.
4837 (_initialize_opencl_language): Remove add_language call.
4838 * p-lang.c (pascal_language_defn): Make extern.
4839 (_initialize_pascal_language): Delete.
4840 * rust-lang.c (rust_language_defn): Make extern.
4841 (_initialize_rust_language): Delete.
4842 * utils.h (compare_cstrings): New static inline function.
4843
edb0c9cb
PA
48442017-07-20 Pedro Alves <palves@redhat.com>
4845
4846 * ada-lang.c (ada_to_fixed_type_1): Adjust.
4847 (get_var_value): Constify parameters.
4848 (get_int_var_value): Change prototype.
4849 (to_fixed_range_type): Adjust.
4850 * ada-lang.h (get_int_var_value): Change prototype.
4851
a778f165
PA
48522017-07-20 Pedro Alves <palves@redhat.com>
4853
4854 * dwarf2read.c (dw2_lookup_symbol): Use
4855 SYMBOL_MATCHES_SEARCH_NAME.
4856 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
4857
42edd901
PA
48582017-07-20 Pedro Alves <palves@redhat.com>
4859
4860 * block.c (block_iter_name_step, block_iter_name_first)
4861 (block_iter_name_next): Delete.
4862 (block_lookup_symbol_primary): Adjust to use
4863 dict_iter_match_first/dict_iter_match_next.
4864 * block.h (block_iter_name_first, block_iter_name_next): Delete
4865 declarations.
4866 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
4867 dict_iter_match_first/dict_iter_match_next.
4868
cf325299
PA
48692017-07-20 Pedro Alves <palves@redhat.com>
4870
4871 * cp-support.c (cp_find_first_component_aux): Add missing case for
4872 end of string.
4873
c5ed0576
DB
48742017-07-18 David Blaikie <dblaikie@gmail.com>
4875
4876 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
4877 of dwo_cu's dwo_file.
4878
27841e76
YQ
48792017-07-18 Yao Qi <yao.qi@linaro.org>
4880
4881 * remote.c (store_registers_using_G): Remove one line comment.
4882
cfb7e58b
YQ
48832017-07-18 Yao Qi <yao.qi@linaro.org>
4884
4885 * regcache.c (regcache_cpy): Simplify it.
4886 (regcache::cpy_no_passthrough): Remove it.
4887 * regcache.h (cpy_no_passthrough): Remove it.
4888 (regcache_dup, regcache_cpy): Update comments.
4889
386535dd
PA
48902017-07-18 Pedro Alves <palves@redhat.com>
4891
4892 * remote-sim.c (sim_command_completer): Adjust to work with a
4893 completion_tracker instead of a VEC.
4894
c45ec17c
PA
48952017-07-17 Pedro Alves <palves@redhat.com>
4896
4897 * completer.c (complete_source_filenames): New function.
4898 (complete_address_and_linespec_locations): New function.
4899 (location_completer): Use complete_address_and_linespec_locations.
4900 (completion_tracker::build_completion_result): Honor the tracker's
4901 request to suppress append.
4902 * completer.h (completion_tracker::suppress_append_ws)
4903 (completion_tracker::set_suppress_append_ws): New methods.
4904 (completion_tracker::m_suppress_append_ws): New field.
4905 (complete_source_filenames): New declaration.
4906 * linespec.c (linespec_complete_what): New.
4907 (struct ls_parser) <complete_what, completion_word,
4908 completion_quote_char, completion_quote_end, completion_tracker>:
4909 New fields.
4910 (string_find_incomplete_keyword_at_end): New.
4911 (linespec_lexer_lex_string): Record quote char. If in completion
4912 mode, don't throw.
4913 (linespec_lexer_consume_token): Advance the completion word point.
4914 (linespec_lexer_peek_token): Save/restore completion info.
4915 (save_stream_and_consume_token): New.
4916 (set_completion_after_number): New.
4917 (linespec_parse_basic): Set what to complete next depending on
4918 token. Handle function and label completions specially.
4919 (parse_linespec): Disable objc shortcut in completion mode. Set
4920 what to complete next depending on token type. Skip keyword if in
4921 completion mode.
4922 (complete_linespec_component, linespec_complete): New.
4923 * linespec.h (linespec_complete): Declare.
4924
be966d42
PA
49252017-07-17 Pedro Alves <palves@redhat.com>
4926
4927 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
4928 Handle 'operator<' / 'operator<<'.
4929
a2459270
PA
49302017-07-17 Pedro Alves <palves@redhat.com>
4931
4932 * completer.c (collect_explicit_location_matches): Handle
4933 MATCH_LABEL.
4934 (convert_explicit_location_to_linespec): New, factored out from
4935 ...
4936 (convert_explicit_location_to_sals): ... this.
4937 (complete_label): New.
4938 (linespec_complete_label, find_label_symbols_in_block): New.
4939 (find_label_symbols): Add completion_mode parameter and adjust to
4940 call find_label_symbols_in_block.
4941 * linespec.h (linespec_complete_label): Declare.
4942
c6756f62
PA
49432017-07-17 Pedro Alves <palves@redhat.com>
4944
4945 * ada-lang.c (ada_collect_symbol_completion_matches): Add
4946 complete_symbol_mode parameter.
4947 * cli/cli-cmds.c (complete_command): Get the completion result out
4948 of the handle_brkchars tracker if used a custom word point.
4949 * completer.c: Include "linespec.h".
4950 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
4951 (advance_to_expression_complete_word_point): New.
4952 (completion_tracker::completes_to_completion_word): New.
4953 (complete_files_symbols): Pass down
4954 complete_symbol_mode::EXPRESSION.
4955 (explicit_options, probe_options): New.
4956 (collect_explicit_location_matches): Complete on the
4957 explictit_loc->foo instead of word. Use
4958 linespec_complete_function. Handle MATCH_LINE. Handle offering
4959 keyword and options completions.
4960 (backup_text_ptr): Delete.
4961 (skip_keyword): New.
4962 (complete_explicit_location): Remove 'word' parameter. Add
4963 language, quoted_arg_start and quoted_arg_end parameters.
4964 Rewrite, parsing left to right.
4965 (location_completer): Rewrite.
4966 (location_completer_handle_brkchars): New function.
4967 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
4968 (enum complete_line_internal_reason): Adjust comments.
4969 (completion_tracker::discard_completions): New.
4970 (completer_handle_brkchars_func_for_completer): Handle
4971 location_completer.
4972 (gdb_custom_word_point_brkchars)
4973 (gdb_org_rl_basic_quote_characters): New.
4974 (gdb_completion_word_break_characters_throw)
4975 (completion_find_completion_word): Handle trackers that use a
4976 custom word point.
4977 (completion_tracker::advance_custom_word_point_by): New.
4978 (completion_tracker::build_completion_result): Don't rely on
4979 readline appending the quote char.
4980 (gdb_rl_attempted_completion_function_throw): Handle trackers that
4981 use a custom word point.
4982 (gdb_rl_attempted_completion_function): Restore
4983 rl_basic_quote_characters.
4984 * completer.h (class completion_tracker): Extend intro comment.
4985 (completion_tracker::set_quote_char)
4986 (completion_tracker::quote_char)
4987 (completion_tracker::set_use_custom_word_point)
4988 (completion_tracker::use_custom_word_point)
4989 (completion_tracker::custom_word_point)
4990 (completion_tracker::set_custom_word_point)
4991 (completion_tracker::advance_custom_word_point_by)
4992 (completion_tracker::completes_to_completion_word)
4993 (completion_tracker::discard_completions): New methods.
4994 (completion_tracker::m_quote_char)
4995 (completion_tracker::m_use_custom_word_point)
4996 (completion_tracker::m_custom_word_point): New fields.
4997 (advance_to_expression_complete_word_point): Declare.
4998 * f-lang.c (f_collect_symbol_completion_matches): Add
4999 complete_symbol_mode parameter.
5000 * language.h (struct language_defn)
5001 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
5002 parameter.
5003 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
5004 (linespec_complete_function): New function.
5005 (linespec_lexer_lex_keyword): Adjust.
5006 * linespec.h (linespec_keywords, linespec_complete_function): New
5007 declarations.
5008 * location.c (find_end_quote): New function.
5009 (explicit_location_lex_one): Add explicit_completion_info
5010 parameter. Save quoting info. Don't throw if being called for
5011 completion. Don't handle Ada operators here.
5012 (is_cp_operator, skip_op_false_positives, first_of)
5013 (explicit_location_lex_one_function): New function.
5014 (string_to_explicit_location): Replace 'dont_throw' parameter with
5015 an explicit_completion_info pointer parameter. Handle it. Don't
5016 use explicit_location_lex_one to lex function names. Use
5017 explicit_location_lex_one_function instead.
5018 * location.h (struct explicit_completion_info): New.
5019 (string_to_explicit_location): Replace 'dont_throw' parameter with
5020 an explicit_completion_info pointer parameter.
5021 * symtab.c (default_collect_symbol_completion_matches_break_on):
5022 Add complete_symbol_mode parameter. Handle LINESPEC mode.
5023 (default_collect_symbol_completion_matches)
5024 (collect_symbol_completion_matches): Add complete_symbol_mode
5025 parameter.
5026 (collect_symbol_completion_matches_type): Pass down
5027 complete_symbol_mode::EXPRESSION.
5028 (collect_file_symbol_completion_matches): Add complete_symbol_mode
5029 parameter. Handle LINESPEC mode.
5030 * symtab.h (complete_symbol_mode): New.
5031 (default_collect_symbol_completion_matches_break_on)
5032 (default_collect_symbol_completion_matches)
5033 (collect_symbol_completion_matches)
5034 (collect_file_symbol_completion_matches): Add complete_symbol_mode
5035 parameter.
5036
1d550c82
PA
50372017-07-17 Pedro Alves <palves@redhat.com>
5038
5039 * utils.c (enum class strncmp_iw_mode): New.
5040 (strcmp_iw): Rename to ...
5041 (strncmp_iw_with_mode): ... this. Add string2_len and mode
5042 parameters. Handle them.
5043 (strncmp_iw): New.
5044 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
5045 * utils.h (strncmp_iw): Declare.
5046 (strcmp_iw): Move describing comments here.
5047
8090b426
PA
50482017-07-17 Pedro Alves <palves@redhat.com>
5049
5050 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
5051 CP_OPERATOR_STR.
5052 * c-typeprint.c (is_type_conversion_operator): Use
5053 CP_OPERATOR_STR.
5054 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
5055 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
5056 CP_OPERATOR_LEN.
5057 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
5058 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
5059 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
5060 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
5061 CP_OPERATOR_STR.
5062 * location.c: Include "cp-support.h".
5063 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
5064 CP_OPERATOR_STR.
5065 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
5066 CP_OPERATOR_LEN.
5067
6a2c1b87
PA
50682017-07-17 Pedro Alves <palves@redhat.com>
5069
5070 * cli/cli-cmds.c (complete_command): Use a completion tracker
5071 along with completion_find_completion_word for handle_brkchars
5072 phase.
5073 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
5074 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
5075 (struct gdb_rl_completion_word_info): New.
5076 (gdb_rl_find_completion_word): New.
5077 (completion_find_completion_word): New.
5078 * completer.h (completion_find_completion_word): Declare.
5079
eb3ff9a5
PA
50802017-07-17 Pedro Alves <palves@redhat.com>
5081
5082 * ada-lang.c (symbol_completion_match): Adjust comments.
5083 (symbol_completion_add): Replace vector parameter with
5084 completion_tracker parameter. Use it.
5085 (ada_make_symbol_completion_list): Rename to...
5086 (ada_collect_symbol_completion_matches): ... this. Add
5087 completion_tracker parameter and use it.
5088 (ada_language_defn): Adjust.
5089 * break-catch-syscall.c (catch_syscall_completer): Adjust
5090 prototype and work with completion_tracker instead of VEC.
5091 * breakpoint.c (condition_completer): Adjust prototype and work
5092 with completion_tracker instead of VEC.
5093 * c-lang.c (c_language_defn, cplus_language_defn)
5094 (asm_language_defn, minimal_language_defn): Adjust to renames.
5095 * cli/cli-cmds.c (complete_command): Rework using
5096 completion_tracker. Catch exceptions when completing.
5097 * cli/cli-decode.c (integer_unlimited_completer)
5098 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
5099 with completion_tracker instead of VEC.
5100 * command.h (struct completion_tracker): Forward declare.
5101 (completer_ftype, completer_handle_brkchars_ftype): Change
5102 types.
5103 (complete_on_cmdlist, complete_on_enum): Adjust.
5104 * completer.c: Include <algorithm>.
5105 (struct gdb_completer_state): New.
5106 (current_completion): New global.
5107 (readline_line_completion_function): Delete.
5108 (noop_completer, filename_completer)
5109 (filename_completer_handle_brkchars, complete_files_symbols)
5110 (linespec_location_completer): Adjust to work with a
5111 completion_tracker instead of a VEC.
5112 (string_or_empty): New.
5113 (collect_explicit_location_matches): Adjust to work with a
5114 completion_tracker instead of a VEC.
5115 (explicit_location_completer): Rename to ...
5116 (complete_explicit_location): ... this and adjust to work with a
5117 completion_tracker instead of a VEC.
5118 (location_completer): Adjust to work with a completion_tracker
5119 instead of a VEC.
5120 (add_struct_fields): Adjust to work with a completion_list instead
5121 of VEC.
5122 (expression_completer): Rename to ...
5123 (complete_expression): ... this and adjust to work with a
5124 completion_tracker instead of a VEC. Use complete_files_symbols.
5125 (expression_completer): Reimplement on top of complete_expression.
5126 (symbol_completer): Adjust to work with a completion_tracker
5127 instead of a VEC.
5128 (enum complete_line_internal_reason): Add describing comments.
5129 (complete_line_internal_normal_command): Adjust to work with a
5130 completion_tracker instead of a VEC.
5131 (complete_line_internal): Rename to ...
5132 (complete_line_internal_1): ... this and adjust to work with a
5133 completion_tracker instead of a VEC. Assert TEXT is NULL in the
5134 handle_brkchars phase.
5135 (new_completion_tracker): Delete.
5136 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
5137 complete_line_internal_1.
5138 (free_completion_tracker): Delete.
5139 (INITIAL_COMPLETION_HTAB_SIZE): New.
5140 (completion_tracker::completion_tracker)
5141 (completion_tracker::~completion_tracker): New.
5142 (maybe_add_completion): Delete.
5143 (completion_tracker::maybe_add_completion)
5144 (completion_tracker::add_completion)
5145 (completion_tracker::add_completions): New.
5146 (throw_max_completions_reached_error): Delete.
5147 (complete_line): Adjust to work with a completion_tracker instead
5148 of a VEC. Don't create a completion_tracker_t or check for max
5149 completions here.
5150 (command_completer, command_completer_handle_brkchars)
5151 (signal_completer, reg_or_group_completer_1)
5152 (reg_or_group_completer, default_completer_handle_brkchars):
5153 Adjust to work with a completion_tracker.
5154 (gdb_completion_word_break_characters_throw): New.
5155 (gdb_completion_word_break_characters): Reimplement.
5156 (line_completion_function): Delete.
5157 (completion_tracker::recompute_lowest_common_denominator)
5158 (expand_preserving_ws)
5159 (completion_tracker::build_completion_result)
5160 (completion_result::completion_result)
5161 (completion_result::completion_result)
5162 (completion_result::~completion_result)
5163 (completion_result::completion_result)
5164 (completion_result::release_match_list, compare_cstrings)
5165 (completion_result::sort_match_list)
5166 (completion_result::reset_match_list)
5167 (gdb_rl_attempted_completion_function_throw)
5168 (gdb_rl_attempted_completion_function): New.
5169 * completer.h (completion_list, struct completion_result)
5170 (class completion_tracker): New.
5171 (complete_line): Add completion_tracker parameter.
5172 (readline_line_completion_function): Delete.
5173 (gdb_rl_attempted_completion_function): New.
5174 (noop_completer, filename_completer, expression_completer)
5175 (location_completer, symbol_completer, command_completer)
5176 (signal_completer, reg_or_group_completer): Update prototypes.
5177 (completion_tracker_t, new_completion_tracker)
5178 (make_cleanup_free_completion_tracker): Delete.
5179 (enum maybe_add_completion_enum): Delete.
5180 (maybe_add_completion): Delete.
5181 (throw_max_completions_reached_error): Delete.
5182 * corefile.c (complete_set_gnutarget): Adjust to work with a
5183 completion_tracker instead of a VEC.
5184 * cp-abi.c (cp_abi_completer): Adjust to work with a
5185 completion_tracker instead of a VEC.
5186 * d-lang.c (d_language_defn): Adjust.
5187 * disasm.c (disassembler_options_completer): Adjust to work with a
5188 completion_tracker instead of a VEC.
5189 * f-lang.c (f_make_symbol_completion_list): Rename to ...
5190 (f_collect_symbol_completion_matches): ... this. Adjust to work
5191 with a completion_tracker instead of a VEC.
5192 (f_language_defn): Adjust.
5193 * go-lang.c (go_language_defn): Adjust.
5194 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
5195 Adjust to work with a completion_tracker instead of a VEC.
5196 * infrun.c (handle_completer): Likewise.
5197 * interps.c (interpreter_completer): Likewise.
5198 * interps.h (interpreter_completer): Likewise.
5199 * language.c (unknown_language_defn, auto_language_defn)
5200 (local_language_defn): Adjust.
5201 * language.h (language_defn::la_make_symbol_completion_list):
5202 Rename to ...
5203 (language_defn::la_collect_symbol_completion_matches): ... this
5204 and adjust to work with a completion_tracker instead of a VEC.
5205 * m2-lang.c (m2_language_defn): Adjust.
5206 * objc-lang.c (objc_language_defn): Adjust.
5207 * opencl-lang.c (opencl_language_defn): Adjust.
5208 * p-lang.c (pascal_language_defn): Adjust.
5209 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
5210 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
5211 with a completion_tracker.
5212 * rust-lang.c (rust_language_defn): Adjust.
5213 * symtab.c (free_completion_list, do_free_completion_list)
5214 (return_val, completion_tracker): Delete.
5215 (completion_list_add_name, completion_list_add_symbol)
5216 (completion_list_add_msymbol, completion_list_objc_symbol)
5217 (completion_list_add_fields, add_symtab_completions): Add
5218 completion_tracker parameter and use it.
5219 (default_make_symbol_completion_list_break_on_1): Rename to...
5220 (default_collect_symbol_completion_matches_break_on): ... this.
5221 Add completion_tracker parameter and use it instead of allocating
5222 a completion tracker here.
5223 (default_make_symbol_completion_list_break_on): Delete old
5224 implementation.
5225 (default_make_symbol_completion_list): Delete.
5226 (default_collect_symbol_completion_matches): New.
5227 (make_symbol_completion_list): Delete.
5228 (collect_symbol_completion_matches): New.
5229 (make_symbol_completion_type): Rename to ...
5230 (collect_symbol_completion_matches_type): ... this. Add
5231 completion_tracker parameter and use it instead of VEC.
5232 (make_file_symbol_completion_list_1): Rename to...
5233 (collect_file_symbol_completion_matches): ... this. Add
5234 completion_tracker parameter and use it instead of VEC.
5235 (make_file_symbol_completion_list): Delete.
5236 (add_filename_to_list): Use completion_list instead of a VEC.
5237 (add_partial_filename_data::list): Now a completion_list.
5238 (make_source_files_completion_list): Work with a completion_list
5239 instead of a VEC.
5240 * symtab.h: Include "completer.h".
5241 (default_make_symbol_completion_list_break_on)
5242 (default_make_symbol_completion_list, make_symbol_completion_list)
5243 (make_symbol_completion_type, make_file_symbol_completion_list)
5244 (make_source_files_completion_list): Delete.
5245 (default_collect_symbol_completion_matches_break_on)
5246 (default_collect_symbol_completion_matches)
5247 (collect_symbol_completion_matches)
5248 (collect_symbol_completion_matches_type)
5249 (collect_file_symbol_completion_matches)
5250 (make_source_files_completion_list): New.
5251 * top.c (init_main): Don't install a rl_completion_entry_function
5252 hook. Install a rl_attempted_completion_function hook instead.
5253 * tui/tui-layout.c (layout_completer): Adjust to work with a
5254 completion_tracker.
5255 * tui/tui-regs.c (tui_reggroup_completer):
5256 * tui/tui-win.c (window_name_completer, focus_completer)
5257 (winheight_completer): Adjust to work with a completion_tracker.
5258 * value.c: Include "completer.h".
5259 (complete_internalvar): Adjust to work with a completion_tracker.
5260 * value.h (complete_internalvar): Likewise.
5261
6e1dbf8c
PA
52622017-07-17 Pedro Alves <palves@redhat.com>
5263
5264 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
5265 renames.
5266 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
5267 comments to completer_ftype's declaration.
5268 <completer_handle_brkchars>: Change type to
5269 completer_handle_brkchars_ftype.
5270 * command.h (completer_ftype): Add describing comment and give
5271 names to parameters.
5272 (completer_ftype_void): Rename to ...
5273 (completer_handle_brkchars_ftype) ... this. Add describing comment.
5274 (set_cmd_completer_handle_brkchars): Adjust.
5275 * completer.c (filename_completer_handle_brkchars): New function.
5276 (complete_line_internal_normal_command): New function, factored
5277 out from ...
5278 (complete_line_internal): ... here.
5279 (command_completer_handle_brkchars)
5280 (default_completer_handle_brkchars)
5281 (completer_handle_brkchars_func_for_completer): New functions.
5282 * completer.h (set_gdb_completion_word_break_characters): Delete
5283 declaration.
5284 (completer_handle_brkchars_func_for_completer): New declaration.
5285 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
5286 completer_handle_brkchars_func_for_completer.
5287
78b13106
PA
52882017-07-17 Pedro Alves <palves@redhat.com>
5289
5290 * completer.c (symbol_completer): New function, based on
5291 make_symbol_completion_list_fn.
5292 * completer.h (symbol_completer): New declaration.
5293 * guile/scm-cmd.c (cmdscm_completers): Adjust.
5294 * python/py-cmd.c (completers): Adjust.
5295 * symtab.c (make_symbol_completion_list_fn): Delete.
5296 * symtab.h (make_symbol_completion_list_fn): Delete.
5297 * cli/cli-decode.c (add_cmd): Adjust.
5298
bbf2f4df
PA
52992017-07-17 Pedro Alves <palves@redhat.com>
5300
5301 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
5302 * dwarf2read.c: Include "filename-seen-cache.h".
5303 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
5304 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
5305 * filename-seen-cache.c: New file.
5306 * filename-seen-cache.h: New file.
5307 * symtab.c: Include "filename-seen-cache.h".
5308 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
5309 (create_filename_seen_cache, clear_filename_seen_cache)
5310 (delete_filename_seen_cache, filename_seen): Delete, parts moved
5311 to filename-seen-cache.h/filename-seen-cache.c.
5312 (output_source_filename, sources_info)
5313 (maybe_add_partial_symtab_filename)
5314 (make_source_files_completion_list): Adjust to use
5315 filename_seen_cache.
5316
330cdd98
PA
53172017-07-17 Pedro Alves <palves@redhat.com>
5318
5319 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
5320 fields.
5321 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
5322 dwarf2_debug_sections*)): New.
5323 (dwarf2_per_objfile::dwarf2_per_objfile(const
5324 dwarf2_per_objfile&)): Declare as deleted.
5325 (dwarf2_per_objfile::operator=): Declare as deleted.
5326 (dwarf2_per_objfile::dwarf2_per_objfile)
5327 (dwarf2_per_objfile::~dwarf2_per_objfile)
5328 (dwarf2_per_objfile::free_cached_comp_units): New.
5329 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
5330 ctor. Call dwarf2_per_objfile's ctor manually.
5331 (dwarf2_locate_sections): Deleted/refactored as ...
5332 (dwarf2_per_objfile::locate_sections): ... this new method.
5333 (free_cached_comp_units): Defer to
5334 dwarf2_per_objfile::free_cached_comp_units.
5335 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
5336
8880f2a9
TT
53372017-07-14 Tom Tromey <tom@tromey.com>
5338
5339 PR rust/21764:
5340 * rust-exp.y (convert_ast_to_expression): Add "want_type"
5341 parameter.
5342 <UNOP_SIZEOF>: Split into separate case.
5343 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
5344
65547233
TT
53452017-07-14 Tom Tromey <tom@tromey.com>
5346
5347 PR rust/21763:
5348 * symtab.c (symbol_matches_domain): Add language_rust to special
5349 case.
5350 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
5351 treat LOC_TYPEDEF symbols as variables.
5352
8f14146e
PA
53532017-07-14 Pedro Alves <palves@redhat.com>
5354
5355 * symtab.c (make_file_symbol_completion_list_1): Iterate over
5356 symtabs matching all symtabs with SRCFILE as file name instead of
5357 only considering the first hit, with lookup_symtab.
5358
2347965c
SM
53592017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5360
5361 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
5362 operator_name parameters.
5363 (gen_expr): Update function call.
5364
40f4af28
SM
53652017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5366
5367 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
5368 parameter.
5369 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
5370 Likewise.
5371 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
5372 parameter, use agent_expr::gdbarch instead, update function
5373 calls.
5374 (locexpr_tracepoint_var_ref): Likewise.
5375 (loclist_tracepoint_var_ref): Likewise.
5376 * ax-gdb.c (gen_trace_static_fields): Likewise.
5377 (gen_traced_pop): Likewise.
5378 (gen_frame_args_address): Likewise.
5379 (gen_frame_locals_address): Likewise.
5380 (gen_var_ref): Likewise.
5381 (gen_struct_ref_recursive): Likewise.
5382 (gen_static_field): Likewise.
5383 (gen_maybe_namespace_elt): Likewise.
5384 (gen_expr): Likewise.
5385 (gen_trace_for_var): Likewise.
5386 (gen_trace_for_expr): Likewise.
5387 (gen_trace_for_return_address): Likewise.
5388
053f8057
SM
53892017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5390
5391 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
5392 parameter.
5393 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
5394
6661ad48
SM
53952017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5396
5397 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
5398 from ax, update calls.
5399 (gen_usual_arithmetic): Likewise.
5400 (gen_integral_promotions): Likewise.
5401 (gen_bitfield_ref): Likewise.
5402 (gen_primitive_field): Likewise.
5403 (gen_struct_ref_recursive): Likewise.
5404 (gen_struct_ref): Likewise.
5405 (gen_maybe_namespace_elt): Likewise.
5406 (gen_struct_elt_for_reference): Likewise.
5407 (gen_namespace_elt): Likewise.
5408 (gen_aggregate_elt_ref): Likewise.
5409 (gen_expr): Get gdbarch from ax, update calls.
5410 (gen_expr_binop_rest): Likewise.
5411
c55a47e7
PA
54122017-07-13 Pedro Alves <palves@redhat.com>
5413
5414 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
5415 as default tdesc.
5416 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
5417 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
5418 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
5419 tdesc_amd64_linux as default tdesc. Get final tdesc from the
5420 tdep.
5421 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
5422 Get final tdesc from the tdep.
5423 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
5424 default tdesc.
5425 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
5426 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
5427 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
5428 Use it as default tdesc.
5429 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
5430 down to amd_init_abi. No longer handle fallback tdesc here.
5431 * amd64-tdep.h (tdesc_x32): Declare.
5432 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
5433 parameter.
5434 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
5435 as default tdesc.
5436
55efceab
AA
54372017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5438
5439 * s390-linux-tdep.c (s390_process_record): Add support for
5440 instructions new in arch12.
5441
0aa37b65
JB
54422017-07-11 John Baldwin <jhb@FreeBSD.org>
5443
5444 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
5445 PT_GETFSBASE and PT_GETGSBASE.
5446 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
5447 PT_SETGSBASE.
5448
48aeef91
JB
54492017-07-11 John Baldwin <jhb@FreeBSD.org>
5450
5451 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
5452 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
5453 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
5454 those rules.
5455 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
5456 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
5457 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
5458 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
5459 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
5460 * features/i386/amd64.xml: Add 64bit-segments.xml.
5461 * features/i386/amd64-avx-avx512.c: Regenerated.
5462 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
5463 * features/i386/amd64-avx-mpx.c: Regenerated.
5464 * features/i386/amd64-avx.c: Regenerated.
5465 * features/i386/amd64-mpx.c: Regenerated.
5466 * features/i386/amd64.c: Regenerated.
5467 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
5468 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
5469 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
5470 * regformats/i386/amd64-avx.dat: Regenerated.
5471 * regformats/i386/amd64-mpx.dat: Regenerated.
5472 * regformats/i386/amd64.dat: Regenerated.
5473
77c501bc
YQ
54742017-07-10 Yao Qi <yao.qi@linaro.org>
5475
5476 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
5477 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
5478
6dc8d757
AK
54792017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
5480
5481 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
5482 unsetenv.
5483 * gnulib/aclocal.m4: Regenerate.
5484 * gnulib/config.in: Regenerate.
5485 * gnulib/configure: Regenerate.
5486 * gnulib/import/Makefile.am: Regenerate.
5487 * gnulib/import/Makefile.in: Regenerate.
5488 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5489 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5490 * gnulib/import/m4/environ.m4: New file.
5491 * gnulib/import/m4/setenv.m4: New file.
5492 * gnulib/import/setenv.c: New file.
5493 * gnulib/import/unsetenv.c: New file.
5494
266934d1
SM
54952017-07-09 Simon Marchi <simon.marchi@ericsson.com>
5496
5497 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
5498 address when op is DW_OP_addr.
5499
03278692
TT
55002017-07-09 Tom Tromey <tom@tromey.com>
5501
5502 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
5503 check and apply to outer type.
5504
4b654465
JB
55052017-07-07 John Baldwin <jhb@FreeBSD.org>
5506
5507 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
5508 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
5509 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
5510 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
5511
2af9fc44
JB
55122017-07-07 John Baldwin <jhb@FreeBSD.org>
5513
5514 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
5515
382b69bb
JB
55162017-07-07 John Baldwin <jhb@FreeBSD.org>
5517
5518 * corelow.c (get_core_siginfo): Remove.
5519 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
5520 instead of get_core_siginfo.
5521 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
5522 * gdbarch.h: Re-generate.
5523 * gdbarch.c: Re-generate.
5524 * linux-tdep.c (linux_core_xfer_siginfo): New.
5525 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
5526
6e5eab33
JB
55272017-07-07 John Baldwin <jhb@FreeBSD.org>
5528
5529 * corelow.c (thread_section_name): Move to ...
5530 * gdbcore.h (thread_section_name): ... here.
5531
929edea9
JB
55322017-07-07 John Baldwin <jhb@FreeBSD.org>
5533
5534 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
5535 (struct siginfo32): New.
5536 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
5537 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
5538 via ptrace(PT_LWPINFO).
5539
762c974a
JB
55402017-07-07 John Baldwin <jhb@FreeBSD.org>
5541
5542 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
5543 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
5544 (fbsd_get_siginfo_type): New.
5545 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5546 (_initialize_fbsd_tdep): New.
5547
33c5cd75
DB
55482017-07-06 David Blaikie <dblaikie@gmail.com>
5549
5550 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
5551 a singular dwo_unit*) to support multiple CUs in the same way that
5552 multiple TUs are supported.
5553 (create_cus_hash_table): Replace create_dwo_cu with a function for
5554 parsing multiple CUs from a DWO file.
5555 (open_and_init_dwo_file): Use create_cus_hash_table rather than
5556 create_dwo_cu.
5557 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
5558 htab_find, rather than comparing the signature to a singleton CU in
5559 the dwo_file.
5560
8455d262
PA
55612017-07-06 Pedro Alves <palves@redhat.com>
5562
5563 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
5564
4da3eb35
PA
55652017-07-04 Pedro Alves <palves@redhat.com>
5566
5567 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
5568 * gdbtypes.h (TYPE_STATIC): Delete.
5569 (struct fn_field) <is_public, is_abstract, is_static, is_final,
5570 is_synchronized, is_native>: Delete.
5571 <dummy>: Bump.
5572 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
5573 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
5574 (TYPE_FN_FIELD_ABSTRACT): Delete.
5575
5bfd255c
SM
55762017-07-03 Simon Marchi <simon.marchi@ericsson.com>
5577
5578 * buffer.h (buffer_finish): Fix spelling mistakes.
5579
25c54127
EZ
55802017-07-01 Eli Zaretskii <eliz@gnu.org>
5581
5582 * .dir-locals.el: Automatically switch to C-style comments in
5583 versions of Emacs that support the feature.
5584
dc4bde35
SDJ
55852017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
5586 Pedro Alves <palves@redhat.com>
5587
5588 PR cli/21688
5589 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
5590 (process_next_line): New variable 'inline_cmd'.
5591 Adjust 'if' clauses for "python", "compile" and "guile" to use
5592 'command_name_equals' and check for '!inline_cmd'.
5593
51ed89aa
SDJ
55942017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
5595
5596 PR cli/21688
5597 * cli/cli-script.c (command_name_equals_not_inline): New function.
5598 (process_next_line): Adjust 'if' clauses for "python", "compile"
5599 and "guile" to use command_name_equals_not_inline.
5600
eb17d413
PA
56012017-06-29 Pedro Alves <palves@redhat.com>
5602
5603 * completer.c (expression_completer): Call
5604 linespec_location_completer instead of location_completer.
5605
195bcdd5
PA
56062017-06-29 Pedro Alves <palves@redhat.com>
5607
5608 * completer.c (expression_completer): Remove code that recomputes
5609 'text' from 'word'.
5610
adc764e7
YQ
56112017-06-29 Yao Qi <yao.qi@linaro.org>
5612
5613 * regformats/regdat.sh: Generate code with
5614 "ifndef IN_PROCESS_AGENT".
5615
6e75794e
PA
56162017-06-28 Pedro Alves <palves@redhat.com>
5617
5618 * command.h: Include "common/scoped_restore.h".
5619
bc491f2e
YQ
56202017-06-28 Yao Qi <yao.qi@linaro.org>
5621
5622 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
5623 instead of obstack_grow.
5624
41664b45
DG
56252017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
5626
5627 PR gdb/21337
5628 * symfile.c (reread_symbols): Call objfiles_changed just before
5629 read_symbols.
5630
6da67eb1
PA
56312017-06-27 Pedro Alves <palves@redhat.com>
5632
5633 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
5634 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
5635 (completion_list_add_symbol, completion_list_add_msymbol):
5636 ... these new functions.
5637 (add_symtab_completions)
5638 (default_make_symbol_completion_list_break_on_1): Adjust.
5639
23732b1e
PA
56402017-06-27 Pedro Alves <palves@redhat.com>
5641
5642 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
5643 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
5644 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
5645 dtor.
5646 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
5647 'storage_obstack' field an auto_obstack. In-class initialize all
5648 non-bitfield fields. Make minsyms_read bool.
5649 * symfile.c (read_symbols): Adjust.
5650
a4d1e79a
AH
56512017-06-27 Alan Hayward <alan.hayward@arm.com>
5652
5653 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
5654 (gdbsim_store_register): Likewise.
5655
8268c778
PA
56562017-06-27 Pedro Alves <palves@redhat.com>
5657
5658 * c-exp.y (name_obstack): Now an auto_obstack.
5659 (yylex): Use auto_obstack::clear.
5660 (c_parse): Use auto_obstack::clear instead of reinitializing and
5661 freeing the obstack.
5662 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
5663 * d-exp.y (name_obstack): Now an auto_obstack.
5664 (yylex): Use auto_obstack::clear.
5665 (d_parse): Use auto_obstack::clear instead of reinitializing and
5666 freeing the obstack.
5667 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
5668 auto_obstack.
5669 * dwarf2read.c (create_addrmap_from_index)
5670 (dwarf2_build_psymtabs_hard)
5671 (update_enumeration_type_from_children): Likewise.
5672 * gdb_obstack.h (auto_obstack): New type.
5673 * go-exp.y (name_obstack): Now an auto_obstack.
5674 (build_packaged_name): Use auto_obstack::clear.
5675 (go_parse): Use auto_obstack::clear instead of reinitializing and
5676 freeing the obstack.
5677 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
5678 auto_obstack.
5679 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
5680 * rust-exp.y (work_obstack): Now an auto_obstack.
5681 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
5682 reinitializing and freeing the obstack.
5683 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
5684 (host_char_to_target): Use auto_obstack.
5685 * utils.h (make_cleanup_obstack_free): Delete declaration.
5686 * valprint.c (generic_emit_char, generic_printstr): Use
5687 auto_obstack.
5688
db665f42
SM
56892017-06-27 Simon Marchi <simon.marchi@ericsson.com>
5690
5691 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
5692 thread.
5693 (darwin_init_thread_list): Don't update dummy thread.
5694 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
5695
873c0814
SM
56962017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5697
5698 * record-full.c (netorder16): Remove.
5699
8b5a7a6e
SM
57002017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5701
5702 * common/diagnostics.h: Define macros for GCC.
5703 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
5704 * common/vec.h: Include diagnostics.h.
5705 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
5706 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
5707 warning.
5708
d1435379
SM
57092017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5710
5711 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
5712 New macro.
5713 * ada-lex.l: Ignore deprecated register warnings.
5714
cc75e0fd
SM
57152017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5716
5717 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
5718 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
5719
07809eaf
SM
57202017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5721
5722 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
5723 its own line.
5724
f076f034
SM
57252017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5726
5727 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
5728
0dd5cbc5
AH
57292017-06-23 Alan Hayward <alan.hayward@arm.com>
5730
5731 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
5732 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
5733 (xtensa_register_read_masked): Likewise.
5734
d4c6ce5b
SDJ
57352017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
5736
5737 * common/environ.c (gdb_environ::unset): Update comment.
5738
16892a03
AH
57392017-06-22 Alan Hayward <alan.hayward@arm.com>
5740
5741 * python/py-unwind.c (pyuw_sniffer): Allocate space for
5742 registers.
5743
d7dcbefc
AH
57442017-06-22 Alan Hayward <alan.hayward@arm.com>
5745
5746 * record-full.c (record_full_exec_insn): Use byte_vector.
5747
b30ff123
YQ
57482017-06-22 Yao Qi <yao.qi@linaro.org>
5749
5750 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
5751 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
5752
4fa847d7
AH
57532017-06-22 Alan Hayward <alan.hayward@arm.com>
5754
5755 * remote.c (cached_reg): Move from here...
5756 * regcache.h (cached_reg): ...to here.
5757 * python/py-unwind.c (struct reg_info): Remove.
5758 (cached_frame_info): Use cached_reg_t.
5759 (pyuw_prev_register): Likewise.
5760 (pyuw_sniffer): Use cached_reg_t and allocate registers.
5761 (pyuw_dealloc_cache): Free all registers.
5762
f4906a9a
PA
57632017-06-22 Pedro Alves <palves@redhat.com>
5764 Simon Marchi <simon.marchi@ericsson.com>
5765
5766 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
5767 warning.
5768 * common/diagnostics.h: New file.
5769
b45a1208
PA
57702017-06-22 Pedro Alves <palves@redhat.com>
5771
5772 * common/agent.h: Add include guards.
5773
e4da2c61
SM
57742017-06-21 Simon Marchi <simon.marchi@ericsson.com>
5775
5776 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
5777 talk about addressable units instead of bytes.
5778
96160d60
SDJ
57792017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5780
5781 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
5782 of '::const_iterator'.
5783
9a6c7d9c
SDJ
57842017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5785
5786 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5787 'unittests/environ-selftests.c'.
5788 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
5789 * charset.c (find_charset_names): Declare object 'iconv_env'.
5790 Update code to use 'iconv_env' object. Remove call to
5791 'free_environ'.
5792 * common/environ.c: Include <utility>.
5793 (make_environ): Delete function.
5794 (free_environ): Delete function.
5795 (gdb_environ::clear): New function.
5796 (gdb_environ::operator=): New function.
5797 (gdb_environ::get): Likewise.
5798 (environ_vector): Delete function.
5799 (set_in_environ): Delete function.
5800 (gdb_environ::set): New function.
5801 (unset_in_environ): Delete function.
5802 (gdb_environ::unset): New function.
5803 (gdb_environ::envp): Likewise.
5804 * common/environ.h: Include <vector>.
5805 (struct gdb_environ): Delete; transform into...
5806 (class gdb_environ): ... this class.
5807 (free_environ): Delete prototype.
5808 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
5809 environ_vector): Likewise.
5810 * infcmd.c (run_command_1): Update code to call
5811 'envp' from 'gdb_environ' class.
5812 (environment_info): Update code to call methods from 'gdb_environ'
5813 class.
5814 (unset_environment_command): Likewise.
5815 (path_info): Likewise.
5816 (path_command): Likewise.
5817 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
5818 (inferior::inferior): Initialize 'environment' using the host's
5819 information.
5820 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
5821 Include "environ.h".
5822 (class inferior) <environment>: Change type from 'struct
5823 gdb_environ' to 'gdb_environ'.
5824 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
5825 methods from 'gdb_environ' class.
5826 * solib.c (solib_find_1): Likewise
5827 * unittests/environ-selftests.c: New file.
5828
75c554cf
YQ
58292017-06-20 Yao Qi <yao.qi@linaro.org>
5830
5831 * features/i386/i386-linux.xml: Exchange the order of including
5832 32bit-linux.xml and 32bit-sse.xml.
5833 * features/i386/i386-linux.c: Regenerated.
5834
72ddacb7
YQ
58352017-06-20 Yao Qi <yao.qi@linaro.org>
5836
5837 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
5838 Delete copy ctor and assignment operator.
5839 (tdesc_type): Likewise.
5840 (tdesc_feature): Likewise.
5841 (tdesc_free_reg): Remove.
5842 (tdesc_create_reg): Use new.
5843 (tdesc_free_type): Remove.
5844 (tdesc_create_vector): Use new.
5845 (tdesc_create_union): Likewise.
5846 (tdesc_create_flags): Likewise.
5847 (tdesc_create_enum): Likewise.
5848 (tdesc_free_feature): Delete.
5849 (free_target_description): Use delete.
5850
325c9fd4
JB
58512017-06-19 John Baldwin <jhb@FreeBSD.org>
5852
5853 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
5854 registers.
5855
16b7a719
PA
58562017-06-19 Pedro Alves <palves@redhat.com>
5857
5858 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
5859 after gdb::unlinker.
5860
1c8e01c9
SDJ
58612017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
5862
5863 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
5864 gdb_environ to access an environment variable.
5865
ffce45d2
TP
58662017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
5867
5868 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
5869 gdb_byte*.
5870
1d4fbac9
SM
58712017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5872
5873 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
5874
8465943a
SM
58752017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5876
5877 * configure: Re-generate.
5878 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
5879
3e019bdc
SM
58802017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5881
5882 * configure: Re-generate.
5883 * warning.m4: Pass -Werror to compiler when checking for
5884 supported warning flags.
5885
cf0dd6f0
SM
58862017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5887
5888 * Makefile.in (COMPILE.pre): Add "-x c++".
5889
6f98355c
YQ
58902017-06-16 Alan Hayward <alan.hayward@arm.com>
5891 Pedro Alves <palves@redhat.com>
5892 Yao Qi <yao.qi@linaro.org>
5893
5894 * defs.h (RequireLongest): New.
5895 (extract_integer): Declare function template.
5896 (extract_signed_integer): Remove the declaration, but define it
5897 static inline.
5898 (extract_unsigned_integer): Likewise.
5899 (store_integer): Declare function template.
5900 (store_signed_integer): Remove the declaration, but define it
5901 static inline.
5902 (store_unsigned_integer): Likewise.
5903 * findvar.c (extract_integer): New function template.
5904 (extract_signed_integer): Remove.
5905 (extract_unsigned_integer): Remove.
5906 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
5907 instantiations.
5908 (store_integer): New function template.
5909 (store_signed_integer): Remove.
5910 (store_unsigned_integer): Remove.
5911 (store_integer): Explicit instantiations.
5912 * regcache.c (regcache_raw_read_signed): Update.
5913 (regcache::raw_read): New function.
5914 (regcache::raw_read_signed): Remove.
5915 (regcache::raw_read_unsigned): Remove.
5916 (regcache_raw_read_unsigned): Update.
5917 (regcache_raw_write_unsigned): Update.
5918 (regcache::raw_write_signed): Remove.
5919 (regcache::raw_write): New function.
5920 (regcache_cooked_read_signed): Update.
5921 (regcache::raw_write_unsigned): Remove.
5922 (regcache::cooked_read_signed): Remove.
5923 (regcache_cooked_read_unsigned): Update.
5924 (regcache::cooked_read_unsigned): Remove.
5925 (regcache_cooked_write_signed): Update.
5926 (regcache_cooked_write_unsigned): Update.
5927 * regcache.h (regcache) <raw_read_signed>: Remove.
5928 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
5929 <raw_read, raw_write>: New.
5930 <cooked_read_signed, cooked_write_signed>: Remove.
5931 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
5932 <cooked_read, cooked_write>: New.
5933 * sh64-tdep.c (sh64_pseudo_register_read): Update.
5934 (sh64_pseudo_register_write): Update.
5935
a87dc45a
AK
59362017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
5937
5938 * arc-tdep.c (arc_disassembler_options): New variable.
5939 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
5940 of default_print_insn.
5941 (arc_delayed_print_insn): Set info->section when needed,
5942 use default_print_insn to retrieve a disassembler.
5943
45159d6a
SDJ
59442017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
5945
5946 PR gdb/21574
5947 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
5948 to mention $SHELL and startup-with-shell.
5949
b46c4cf0
MF
59502017-06-14 Max Filippov <jcmvbkbc@gmail.com>
5951
5952 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
5953
6394c606
YQ
59542017-06-14 Yao Qi <yao.qi@linaro.org>
5955
5956 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
5957 default_print_insn instead of print_insn_aarch64.
5958 * arm-tdep.c (gdb_print_insn_arm): Call
5959 default_print_insn instead of print_insn_big_arm
5960 and print_insn_little_arm.
5961 * i386-tdep.c (i386_print_insn): Call default_print_insn
5962 instead of print_insn_i386.
5963 * ia64-tdep.c (ia64_print_insn): Call
5964 default_print_insn instead of print_insn_ia64.
5965 * mips-tdep.c (gdb_print_insn_mips): Call
5966 default_print_insn instead of print_insn_big_mips
5967 and print_insn_little_mips.
5968 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
5969 instead of print_insn_spu.
5970
d5722aa2
PA
59712017-06-14 Pedro Alves <palves@redhat.com>
5972
5973 * ada-lang.c: Include "common/byte-vector.h".
5974 (ada_value_primitive_packed_val): Use gdb::byte_vector.
5975 * charset.c (wchar_iterator::iterate): Resize the vector instead
5976 of reserving it.
5977 * common/byte-vector.h: Include "common/def-vector.h".
5978 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
5979 * cli/cli-dump.c: Include "common/byte-vector.h".
5980 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
5981 * common/byte-vector.h: New file.
5982 * common/def-vector.h: New file.
5983 * common/default-init-alloc.h: New file.
5984 * dwarf2loc.c: Include "common/byte-vector.h".
5985 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
5986 instead of reserving it.
5987 * dwarf2read.c: Include "common/byte-vector.h".
5988 (data_buf::m_vec): Now a gdb::byte_vector.
5989 * gdb_regex.c: Include "common/def-vector.h".
5990 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
5991 * mi/mi-main.c: Include "common/byte-vector.h".
5992 (mi_cmd_data_read_memory): Use gdb::byte_vector.
5993 * printcmd.c: Include "common/byte-vector.h".
5994 (print_scalar_formatted): Use gdb::byte_vector.
5995 * valprint.c: Include "common/byte-vector.h".
5996 (maybe_negate_by_bytes, print_decimal_chars): Use
5997 gdb::byte_vector.
5998
01ec7a27
SM
59992017-06-13 Simon Marchi <simon.marchi@ericsson.com>
6000
6001 * darwin-nat.c: Include "nat/fork-inferior.h".
6002
848d9074
SM
60032017-06-13 Simon Marchi <simon.marchi@ericsson.com>
6004
6005 * configure.nat: Factor out Darwin bits that are not
6006 architecture-specific. Add fork-inferior.o.
6007
3b912944
SM
60082017-06-13 Simon Marchi <simon.marchi@ericsson.com>
6009
6010 * configure.nat: Factor out AIX bits that are not
6011 architecture-specific. Add fork-inferior.o.
6012
55acdf22
AA
60132017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6014
6015 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
6016 (read_pieced_value, write_pieced_value): ...here. Reduce to
6017 wrappers that just call rw_pieced_value.
6018
f65e2044
AA
60192017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6020
6021 * dwarf2loc.c (write_pieced_value): When writing the data for a
6022 memory piece, use write_memory_with_notification instead of
6023 write_memory.
6024
23f945bf
AA
60252017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6026
6027 * valops.c (read_value_memory): Change embedded_offset to
6028 represent a bit offset instead of a byte offset.
6029 * value.h (read_value_memory): Adjust comment.
6030
f236533e
AA
60312017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6032
6033 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
6034 dest_offset_bits and source_offset_bits.
6035 (write_pieced_value): Likewise.
6036
65d84b76
AA
60372017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6038
6039 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
6040 given by DW_OP_bit_piece.
6041 (write_pieced_value): Likewise.
6042
242d31ab
AA
60432017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6044
6045 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
6046 some other preparations to the places where sufficient information
6047 is available.
6048 (write_pieced_value): Likewise.
6049
03c8af18
AA
60502017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6051
6052 * dwarf2loc.c (bits_to_bytes): New function.
6053 (read_pieced_value): Fix offset calculations for register pieces
6054 on big-endian targets.
6055 (write_pieced_value): Likewise.
6056
840989c1
AA
60572017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6058
6059 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
6060 (write_pieced_value): Likewise.
6061
359b19bb
AA
60622017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6063
6064 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
6065 transfer the source value's least significant bits, instead of its
6066 lowest-addressed ones. Rename type_len to max_offset.
6067 (read_pieced_value): Mirror above changes to write_pieced_value as
6068 applicable.
6069
07c9ca3b
AA
60702017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6071
6072 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
6073 truncate full bytes from dest_offset_bits before using it as an
6074 offset into the buffer.
6075
f1cc9874
AA
60762017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6077
6078 * dwarf2loc.c (write_pieced_value): Include transfer size in
6079 byte-wise check.
6080
cdaac320
AA
60812017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6082
6083 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
6084 calculation of this_size.
6085
af547a96
AA
60862017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6087
6088 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
6089 when targeting a bit-field.
6090 (write_pieced_value): Likewise.
6091
ddd7882a
AA
60922017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6093
6094 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
6095 (allocate_piece_closure): Drop addr_size parameter.
6096 (dwarf2_evaluate_loc_desc_full): Adjust call to
6097 allocate_piece_closure.
6098
e9352324
AA
60992017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6100
6101 PR gdb/21226
6102 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
6103 the LSB end, independent of endianness.
6104
d5d1163e
AA
61052017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6106
6107 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
6108 size capping.
6109
032bb6ea
YQ
61102017-06-13 Yao Qi <yao.qi@linaro.org>
6111
6112 * mips-linux-nat.c: Move include features/mips*-linux.c to
6113 mips-linux-tdep.c.
6114 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
6115 to mips-linux-tdep.c.
6116 * mips-linux-tdep.c: Include features/mips*-linux.c
6117 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
6118 functions.
6119 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
6120 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
6121 (tdesc_mips64_dsp_linux): Declare.
6122
f12f6bad
TT
61232017-06-12 Tom Tromey <tom@tromey.com>
6124
6125 * valprint.h (val_print_type_code_int): Remove.
6126 * valprint.c (generic_val_print_int): Always call
6127 val_print_scalar_formatted.
6128 (val_print_type_code_int): Remove.
6129 * printcmd.c (print_scalar_formatted): Handle options->format==0.
6130 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
6131 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
6132 * ada-valprint.c (ada_val_print_num): Use
6133 val_print_scalar_formatted.
6134
d9109c80
TT
61352017-06-12 Tom Tromey <tom@tromey.com>
6136
6137 * printcmd.c (print_scalar_formatted): Unify the two switches.
6138 Don't convert scalars to LONGEST.
6139
4ac0cb1c
TT
61402017-06-12 Tom Tromey <tom@tromey.com>
6141
6142 PR exp/16225:
6143 * valprint.h (print_decimal_chars): Update.
6144 * valprint.c (maybe_negate_by_bytes): New function.
6145 (print_decimal_chars): Add "is_signed" argument.
6146 * printcmd.c (print_scalar_formatted): Update.
6147
30a25466
TT
61482017-06-12 Tom Tromey <tom@tromey.com>
6149
6150 PR exp/16225:
6151 * valprint.h (print_binary_chars, print_hex_chars): Update.
6152 * valprint.c (val_print_type_code_int): Update.
6153 (print_binary_chars): Add "zero_pad" argument.
6154 (emit_octal_digit): New function.
6155 (print_octal_chars): Don't zero-pad.
6156 (print_decimal_chars): Likewise.
6157 (print_hex_chars): Add "zero_pad" argument.
6158 * sh64-tdep.c (sh64_do_fp_register): Update.
6159 * regcache.c (regcache::dump): Update.
6160 * printcmd.c (print_scalar_formatted): Update.
6161 * infcmd.c (default_print_one_register_info): Update.
6162
b3464d03
PA
61632017-06-12 Pedro Alves <palves@redhat.com>
6164 Alan Hayward <alan.hayward@arm.com>
6165
6166 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
6167 (mips_eabi_push_dummy_call): Rename local 'regsize' to
6168 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
6169 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
6170 Assert that abi_regsize bytes fit in 'ref_valbuf'.
6171
4b76cda9
PA
61722017-06-12 Pedro Alves <palves@redhat.com>
6173
6174 * dwarf2read.c (mapped_symtab::data): Now a vector of
6175 symtab_index_entry instead of vector of
6176 std::unique_ptr<symtab_index_entry>. All users adjusted to check
6177 whether an element's name is NULL instead of checking whether the
6178 element itself is NULL.
6179 (find_slot): Change return type. Adjust.
6180 (hash_expand, , add_index_entry, uniquify_cu_indices)
6181 (write_hash_table): Adjust.
6182
e8f8bcb3
PA
61832017-06-12 Pedro Alves <palves@redhat.com>
6184
6185 * dwarf2read.c (recursively_count_psymbols): New function.
6186 (write_psymtabs_to_index): Call it to compute number of psyms and
6187 pass estimate size of psyms_seen to unordered_set's ctor.
6188
70a1152b
PA
61892017-06-12 Pedro Alves <palves@redhat.com>
6190
6191 * dwarf2read.c (write_hash_table): Check if key already exists
6192 before emplacing.
6193
c2f134ac
PA
61942017-06-12 Pedro Alves <palves@redhat.com>
6195
6196 * dwarf2read.c (data_buf::append_space): Rename to...
6197 (data_buf::grow): ... this, and make private. Adjust all callers.
6198 (data_buf::append_uint): New method.
6199 (add_address_entry, write_one_signatured_type)
6200 (write_psymtabs_to_index): Use it.
6201
a81e6d4d
PA
62022017-06-12 Pedro Alves <palves@redhat.com>
6203
6204 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
6205 (file_write (FILE *, const std::vector<Elem>&)): Delete.
6206 (data_buf::file_write): Call ::fwrite directly.
6207
6fd931f2
PA
62082017-06-12 Pedro Alves <palves@redhat.com>
6209
6210 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
6211 std::vector::erase.
6212
bc8f2430
JK
62132017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6214
6215 Code cleanup: C++ify .gdb_index producer.
6216 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
6217 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
6218 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
6219 (create_strtab, add_string): Remove.
6220 (file_write, data_buf): New.
6221 (struct symtab_index_entry): Use std::vector for cu_indices.
6222 (struct mapped_symtab): Use std::vector for data.
6223 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
6224 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
6225 Remove.
6226 (find_slot): Change return type. Update it to the new data structures.
6227 (hash_expand, add_index_entry): Update it to the new data structures.
6228 (offset_type_compare): Remove.
6229 (uniquify_cu_indices): Update it to the new data structures.
6230 (c_str_view, c_str_view_hasher, vector_hasher): New.
6231 (add_indices_to_cpool): Remove.
6232 (write_hash_table): Update it to the new data structures.
6233 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
6234 (eq_psymtab_cu_index): Remove.
6235 (psym_index_map): New typedef.
6236 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
6237 reference and std::unordered_map for cu_index_htab.
6238 (add_address_entry, add_address_entry_worker, write_address_map)
6239 (write_psymbols): Update it to the new data structures.
6240 (write_obstack): Remove.
6241 (struct signatured_type_index_data): Change types_list to a data_buf
6242 reference and psyms_seen to a std::unordered_set reference.
6243 (write_one_signatured_type, recursively_write_psymbols)
6244 (write_psymtabs_to_index): Update it to the new data structures.
6245
c4dcb155
SM
62462017-06-11 Simon Marchi <simon.marchi@ericsson.com>
6247
6248 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
6249 separate-debug-file commands.
6250 * symfile.h (separate_debug_file_debug): New global.
6251 * symfile.c (separate_debug_file_debug): New global.
6252 (separate_debug_file_exists, find_separate_debug_file): Add
6253 debug output.
6254 (_initialize_symfile): Add "set debug separate-debug-file"
6255 command.
6256 * build-id.c (build_id_to_debug_bfd,
6257 find_separate_debug_file_by_buildid): Add debug output.
6258
6d45d4b4
SM
62592017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
6260
6261 * gdbarch.sh (displaced_step_free_closure): Remove.
6262 * gdbarch.h, gdbarch.c: Re-generate.
6263 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
6264 displaced_step_free_closure.
6265 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6266 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6267 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6268 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
6269 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
6270 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6271 * arch-utils.h (simple_displaced_step_free_closure): Remove.
6272 * arch-utils.c (simple_displaced_step_free_closure): Remove.
6273 * infrun.c (displaced_step_clear): Call xfree instead of
6274 gdbarch_displaced_step_free_closure.
6275
2f91880f
SDJ
62762017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
6277
6278 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
6279 NULL".
6280
b8b6e72f
AH
62812017-06-08 Alan Hayward <alan.hayward@arm.com>
6282
6283 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
6284 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
6285 (mn10300_push_dummy_call): Likewise.
6286
5369082e
AH
62872017-06-08 Alan Hayward <alan.hayward@arm.com>
6288
6289 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
6290
ff4ca5ac
AH
62912017-06-08 Alan Hayward <alan.hayward@arm.com>
6292
6293 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
6294
aefd8b33
SDJ
62952017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6296
6297 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
6298 able to start inferiors using a shell.
6299 (New remote packets): Announce new packet "QStartupWithShell".
6300 * remote.c: Add PACKET_QStartupWithShell.
6301 (extended_remote_create_inferior): Handle new
6302 PACKET_QStartupWithShell.
6303 (remote_protocol_features) <QStartupWithShell>: New entry for
6304 PACKET_QStartupWithShell.
6305 (_initialize_remote): Call "add_packet_config_cmd" for
6306 QStartupShell.
6307
2090129c
SDJ
63082017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6309 Pedro Alves <palves@redhat.com>
6310
6311 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
6312 and "nat/fork-inferior.h".
6313 * common/common-inferior.h: New file, with contents from
6314 "gdb/inferior.h".
6315 * commom/common-utils.c: Include "common-utils.h".
6316 (stringify_argv): New function.
6317 * common/common-utils.h (stringify_argv): New prototype.
6318 * configure.nat: Add "fork-inferior.o" as a dependency for
6319 "*linux*", "fbsd*" and "nbsd*" hosts.
6320 * corefile.c (get_exec_file): Update comment.
6321 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
6322 instead of "startup_inferior".
6323 (darwin_create_inferior): Call "add_thread_silent" after
6324 "fork_inferior".
6325 * fork-child.c: Cleanup unnecessary includes.
6326 (SHELL_FILE): Move to "common/common-fork-child.c".
6327 (environ): Likewise.
6328 (exec_wrapper): Initialize.
6329 (get_exec_wrapper): New function.
6330 (breakup_args): Move to "common/common-fork-child.c"; rename to
6331 "breakup_args_for_exec".
6332 (escape_bang_in_quoted_argument): Move to
6333 "common/common-fork-child.c".
6334 (saved_ui): New variable.
6335 (prefork_hook): New function.
6336 (postfork_hook): Likewise.
6337 (postfork_child_hook): Likewise.
6338 (gdb_startup_inferior): Likewise.
6339 (fork_inferior): Move to "common/common-fork-child.c". Update
6340 function to support gdbserver.
6341 (startup_inferior): Likewise.
6342 * gdbcore.h (get_exec_file): Remove declaration.
6343 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
6344 instead of "startup_inferior". Call "add_thread_silent" after
6345 "fork_inferior".
6346 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
6347 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
6348 instead of "startup_inferior". Call "add_thread_silent" after
6349 "fork_inferior".
6350 * inferior.h: Include "common-inferior.h".
6351 (trace_start_error): Move to "common/common-utils.h".
6352 (trace_start_error_with_name): Likewise.
6353 (fork_inferior): Move prototype to "nat/fork-inferior.h".
6354 (startup_inferior): Likewise.
6355 (gdb_startup_inferior): New prototype.
6356 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
6357 * nat/fork-inferior.h: New file.
6358 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
6359 instead of "startup_inferior". Call "add_thread_silent" after
6360 "fork_inferior".
6361 * target.h (target_terminal_init): Move prototype to
6362 "target/target.h".
6363 (target_terminal_inferior): Likewise.
6364 (target_terminal_ours): Likewise.
6365 * target/target.h (target_terminal_init): New prototype, moved
6366 from "target.h".
6367 (target_terminal_inferior): Likewise.
6368 (target_terminal_ours): Likewise.
6369 * utils.c (gdb_flush_out_err): New function.
6370
043a4934
SDJ
63712017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6372
6373 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
6374 * common/common-gdbthread.h: New file, with parts from
6375 "gdb/gdbthread.h".
6376 * gdbthread.h: Include "common-gdbthread.h".
6377 (switch_to_thread): Moved to "common/common-gdbthread.h".
6378
15652511
SDJ
63792017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6380
6381 * Makefile.in (SFILES): Add "common/job-control.c".
6382 (HFILES_NO_SRCDIR): Add "common/job-control.h".
6383 (COMMON_OBS): Add "job-control.o".
6384 * common/job-control.c: New file, with contents from
6385 "gdb/inflow.c".
6386 * common/job-control.h: New file, with contents from "terminal.h".
6387 * fork-child.c: Include "job-control.h".
6388 * inflow.c: Include "job-control.h".
6389 (gdb_setpgid): Move to "common/common-inflow.c".
6390 (_initialize_inflow): Move setting of "job_control" to
6391 "handle_job_control".
6392 * terminal.h (job_control): Moved to "common/common-terminal.h".
6393 (gdb_setpgid): Likewise.
6394 * top.c: Include "job_control.h".
6395 * utils.c: Likewise.
6396 (job_control): Moved to "job-control.c".
6397
2d7cc5c7
PA
63982017-06-07 Pedro Alves <palves@redhat.com>
6399
6400 * Makefile.in (SFILES): Add gdb_regex.c.
6401 (COMMON_OBS): Add gdb_regex.o.
6402 * ada-lang.c (ada_add_standard_exceptions)
6403 (ada_add_exceptions_from_frame, name_matches_regex)
6404 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
6405 parameter type to compiled_regex. Adjust.
6406 (ada_exceptions_list): Use compiled_regex.
6407 * break-catch-throw.c (exception_catchpoint::pattern): Now a
6408 std::unique_ptr<compiled_regex>.
6409 (exception_catchpoint::~exception_catchpoint): Remove regfree
6410 call.
6411 (check_status_exception_catchpoint): Adjust to use compiled_regex.
6412 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
6413 * breakpoint.c (solib_catchpoint::compiled): Now a
6414 std::unique_ptr<compiled_regex>.
6415 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
6416 (check_status_catch_solib): Adjust to use compiled_regex.
6417 (add_solib_catchpoint): Adjust to use compiled_regex.
6418 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
6419 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
6420 compiled_regex reference. Adjust to use it.
6421 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
6422 declaration. Include "gdb_regex.h".
6423 (apropos_cmd): Change regex parameter to compiled_regex reference.
6424 * gdb_regex.c: New file.
6425 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
6426 declarations.
6427 (class compiled_regex): New.
6428 * linux-tdep.c: Include "common/gdb_optional.h".
6429 (struct mapping_regexes): New, factored out from
6430 mapping_is_anonymous_p, and adjusted to use compiled_regex.
6431 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
6432 gdb::optional and remove cleanups. Adjust to compiled_regex.
6433 * probe.c: Include "common/gdb_optional.h".
6434 (collect_probes): Use compiled_regex and gdb::optional and remove
6435 cleanups.
6436 * skip.c: Include "common/gdb_optional.h".
6437 (skiplist_entry::compiled_function_regexp): Now a
6438 gdb::optional<compiled_regex>.
6439 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
6440 (free_skiplist_entry): Remove regfree call.
6441 (compile_skip_regexp, skip_rfunction_p): Adjust to use
6442 compiled_regex and gdb::optional.
6443 * symtab.c: Include "common/gdb_optional.h".
6444 (search_symbols): Use compiled_regex and gdb::optional.
6445 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
6446 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
6447 to gdb_regex.c.
6448
50d6adef
AH
64492017-06-07 Alan Hayward <alan.hayward@arm.com>
6450
6451 * regcache.c (regcache::save): Avoid buffer use.
6452 (regcache::dump): Likewise.
6453
4a8a33c8
AH
64542017-06-07 Alan Hayward <alan.hayward@arm.com>
6455
6456 * sh-tdep.c (sh_pseudo_register_read): Remove
6457 MAX_REGISTER_SIZE.
6458 (sh_pseudo_register_write): Likewise.
6459 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
6460 (sh64_pseudo_register_write): Likewise
6461
d1be909e
AH
64622017-06-07 Alan Hayward <alan.hayward@arm.com>
6463
6464 * aarch64-tdep.c (aarch64_store_return_value): Use
6465 V_REGISTER_SIZE.
6466 (aarch64_pseudo_read_value): Likewise.
6467 (aarch64_pseudo_write): Likewise.
6468
f4a65042
YQ
64692017-06-06 Yao Qi <yao.qi@linaro.org>
6470
6471 * regformats/regdef.h (set_register_cache): Remove the
6472 declaration.
6473
9f7fb0aa
AH
64742017-06-06 Alan Hayward <alan.hayward@arm.com>
6475
6476 * frame.c (frame_unwind_register_signed): Use
6477 frame_unwind_register_value.
6478
e1e01040
PA
64792017-06-06 Pedro Alves <palves@redhat.com>
6480
6481 PR breakpoints/21553
6482 * breakpoint.c (create_breakpoints_sal_default)
6483 (init_breakpoint_sal, create_breakpoint_sal): Use
6484 gdb::unique_xmalloc_ptr for string parameters.
6485 (create_breakpoint): Constify 'extra_string' and 'cond_string'
6486 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
6487 (base_breakpoint_create_breakpoints_sal)
6488 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
6489 (strace_marker_create_breakpoints_sal)
6490 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
6491 string parameters.
6492 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
6493 gdb::unique_xmalloc_ptr for string parameters.
6494 (create_breakpoint): Constify 'extra_string' and 'cond_string'
6495 parameters.
6496
fbe654c8
AH
64972017-06-06 Alan Hayward <alan.hayward@arm.com>
6498
6499 * alpha-tdep.c (alpha_register_to_value): Use
6500 get_frame_register_value.
6501 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
6502
ae0d01d6
AH
65032017-06-06 Alan Hayward <alan.hayward@arm.com>
6504
6505 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
6506 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
6507 (ia64_value_to_register): Likewise.
6508 (ia64_extract_return_value): Likewise.
6509 (ia64_store_return_value): Likewise.
6510 (ia64_push_dummy_call): Likewise.
6511
49cf576c
JB
65122017-06-04 Joel Brobecker <brobecker@adacore.com>
6513
6514 GDB 8.0 released.
6515
26b6a6ab
SM
65162017-06-03 Simon Marchi <simon.marchi@ericsson.com>
6517
6518 * x86-linux-nat.c (struct arch_lwp_info): Remove.
6519
22827c51
SM
65202017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
6521
6522 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
6523 parameter.
6524 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
6525
0e05cf3a
SM
65262017-06-02 Simon Marchi <simon.marchi@ericsson.com>
6527
6528 * event-loop.c (poll_timers): Unallocate timer using delete
6529 instead of xfree.
6530
c1fc2657
SM
65312017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
6532
6533 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
6534 (struct breakpoint) <~breakpoint>: New.
6535 (struct watchpoint): Inherit from breakpoint.
6536 <~watchpoint>: New.
6537 <base>: Remove.
6538 (struct tracepoint): Inherit from breakpoint.
6539 <base>: Remove.
6540 * breakpoint.c (longjmp_breakpoint_ops): Remove.
6541 (struct longjmp_breakpoint): Inherit from breakpoint.
6542 <~longjmp_breakpoint>: New.
6543 <base>: Remove.
6544 (new_breakpoint_from_type): Remove casts.
6545 (watchpoint_in_thread_scope): Remove reference to base field.
6546 (watchpoint_del_at_next_stop): Likewise.
6547 (update_watchpoint): Likewise.
6548 (watchpoint_check): Likewise.
6549 (bpstat_check_watchpoint): Likewise.
6550 (set_longjmp_breakpoint): Likewise.
6551 (struct fork_catchpoint): Inherit from breakpoint.
6552 <base>: Remove.
6553 (struct solib_catchpoint): Inherit from breakpoint.
6554 <~solib_catchpoint>: New.
6555 <base>: Remove.
6556 (dtor_catch_solib): Change to ...
6557 (solib_catchpoint::~solib_catchpoint): ... this.
6558 (breakpoint_hit_catch_solib): Remove reference to base field.
6559 (add_solib_catchpoint): Likewise.
6560 (create_fork_vfork_event_catchpoint): Likewise.
6561 (struct exec_catchpoint): Inherit from breakpoint.
6562 <~exec_catchpoint>: New.
6563 <base>: Remove.
6564 (dtor_catch_exec): Change to ...
6565 (exec_catchpoint::~exec_catchpoint): ... this.
6566 (dtor_watchpoint): Change to ...
6567 (watchpoint::~watchpoint): ... this.
6568 (watch_command_1): Remove reference to base field.
6569 (catch_exec_command_1): Likewise.
6570 (base_breakpoint_dtor): Change to ...
6571 (breakpoint::~breakpoint): ... this.
6572 (base_breakpoint_ops): Remove dtor field value.
6573 (longjmp_bkpt_dtor): Change to ...
6574 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
6575 (strace_marker_create_breakpoints_sal): Remove reference to base
6576 field.
6577 (delete_breakpoint): Don't manually call breakpoint destructor.
6578 (create_tracepoint_from_upload): Remove reference to base field.
6579 (trace_pass_set_count): Likewise.
6580 (initialize_breakpoint_ops): Don't initialize
6581 momentary_breakpoint_ops, don't set dtors.
6582 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
6583 <~ada_catchpoint>: New.
6584 <base>: Remove.
6585 (create_excep_cond_exprs): Remove reference to base field.
6586 (dtor_exception): Change to ...
6587 (ada_catchpoint::~ada_catchpoint): ... this.
6588 (dtor_catch_exception): Remove.
6589 (dtor_catch_exception_unhandled): Remove.
6590 (dtor_catch_assert): Remove.
6591 (create_ada_exception_catchpoint): Remove reference to base
6592 field.
6593 (initialize_ada_catchpoint_ops): Don't set dtors.
6594 * break-catch-sig.c (struct signal_catchpoint): Inherit from
6595 breakpoint.
6596 <~signal_catchpoint>: New.
6597 <base>: Remove.
6598 (signal_catchpoint_dtor): Change to ...
6599 (signal_catchpoint::~signal_catchpoint): ... this.
6600 (create_signal_catchpoint): Remove reference to base field.
6601 (initialize_signal_catchpoint_ops): Don't set dtor.
6602 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
6603 from breakpoint.
6604 <~syscall_catchpoint>: New.
6605 <base>: Remove.
6606 (dtor_catch_syscall): Change to ...
6607 (syscall_catchpoint::~syscall_catchpoint): ... this.
6608 (create_syscall_event_catchpoint): Remove reference to base
6609 field.
6610 (initialize_syscall_catchpoint_ops): Don't set dtor.
6611 * break-catch-throw.c (struct exception_catchpoint): Inherit
6612 from breakpoint.
6613 <~exception_catchpoint>: New.
6614 <base>: Remove.
6615 (dtor_exception_catchpoint): Change to ...
6616 (exception_catchpoint::~exception_catchpoint): ... this.
6617 (handle_gnu_v3_exceptions): Remove reference to base field.
6618 (initialize_throw_catchpoint_ops): Don't set dtor.
6619 * ctf.c (ctf_get_traceframe_address): Remove reference to base
6620 field.
6621 * remote.c (remote_get_tracepoint_status): Likewise.
6622 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
6623 * tracefile.c (tracefile_fetch_registers): Likewise.
6624 * tracepoint.c (actions_command): Likewise.
6625 (validate_actionline): Likewise.
6626 (tfind_1): Likewise.
6627 (get_traceframe_location): Likewise.
6628 (find_matching_tracepoint_location): Likewise.
6629 (parse_tracepoint_status): Likewise.
6630 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
6631
3b0871f4
SM
66322017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
6633
6634 * breakpoint.c (struct longjmp_breakpoint): New struct.
6635 (is_tracepoint_type): Change return type to bool.
6636 (is_longjmp_type): New function.
6637 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
6638 (set_raw_breakpoint_without_location): Use
6639 new_breakpoint_from_type.
6640 (set_raw_breakpoint): Likewise.
6641
a5e364af
SM
66422017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
6643
6644 * breakpoint.c (new_breakpoint_from_type): New function.
6645 (create_breakpoint_sal): Use new_breakpoint_from_type and
6646 unique_ptr.
6647 (create_breakpoint): Likewise.
6648
ae3b3f34
SM
66492017-05-31 Simon Marchi <simon.marchi@ericsson.com>
6650
6651 * memattr.c (mem_info_command): Rename to ...
6652 (info_mem_command): ... this.
6653 (mem_enable_command): Rename to ...
6654 (enable_mem_command): ... this.
6655 (mem_disable_command): Rename to ...
6656 (disable_mem_command): ... this.
6657 (mem_delete_command): Rename to ...
6658 (delete_mem_command): ... this.
6659 (_initialize_mem): Adjust function names.
6660
13ace077
MM
66612017-05-31 Markus Metzger <markus.t.metzger@intel.com>
6662
6663 * btrace.c (handle_pt_insn_events): New.
6664 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
6665 STATUS. Split into this and ...
6666 (handle_pt_insn_event_flags): ... this.
6667
c56ccc05
MM
66682017-05-31 Markus Metzger <markus.t.metzger@intel.com>
6669
6670 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
6671 and struct pt_insn.resynced.
6672 * configure: Regenerated.
6673 * config.in: Regenerated.
6674
08c3f6d2
TW
66752017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6676
6677 * btrace.c (ftrace_find_call_by_number): New function.
6678 (ftrace_new_function): Store objects, not pointers.
6679 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
6680 ftrace_new_gap, ftrace_update_function,
6681 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
6682 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
6683 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
6684 btrace_ends_with_single_insn, btrace_call_get): Account for
6685 btrace_thread_info::functions now storing objects.
6686 * btrace.h (struct btrace_thread_info): Add constructor.
6687 (struct btrace_thread_info) <functions>: Make std::vector.
6688 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
6689 Initialize with default values.
6690 * record-btrace.c (record_btrace_frame_sniffer): Account for
6691 btrace_thread_info::functions now storing objects.
6692
8ffd39f2
TW
66932017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6694
6695 * btrace.c: Remove typedef bfun_s.
6696 (ftrace_new_gap): Directly add gaps to the list of gaps.
6697 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
6698 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
6699 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
6700 instead of gdb VEC.
6701
4aeb0dfc
TW
67022017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6703
6704 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
6705 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
6706 with btrace_thread_info::next_segment and
6707 btrace_thread_info::prev_segment.
6708 * btrace.h: Remove struct btrace_func_link.
6709 (struct btrace_function): Replace pair of function segment pointers
6710 with pair of indices.
6711 * python/py-record-btrace.c (btpy_call_prev_sibling,
6712 btpy_call_next_sibling): Replace references to
6713 btrace_thread_info::segment with btrace_thread_info::next_segment and
6714 btrace_thread_info::prev_segment.
6715 * record-btrace.c (record_btrace_frame_this_id): Use
6716 btrace_find_call_by_number.
6717
eb8f2b9c
TW
67182017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6719
6720 * btrace.c (ftrace_new_function, ftrace_fixup_level,
6721 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
6722 btrace_insn_next, btrace_insn_prev): Remove references to
6723 btrace_thread_info::flow.
6724 * btrace.h (struct btrace_function): Remove FLOW.
6725
42bfe59e
TW
67262017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6727
6728 * btrace.c (ftrace_find_call_by_number): New function.
6729 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
6730 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
6731 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
6732 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
6733 index.
6734 * btrace.h (struct btrace_function): Turn UP into an index.
6735 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
6736 as an index.
6737 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
6738 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
6739 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
6740
b54b03bd
TW
67412017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6742
6743 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
6744 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
6745 ftrace_update_function, ftrace_compute_global_level_offset,
6746 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
6747 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
6748 btrace_insn_end, btrace_is_empty): Remove references to
6749 btrace_thread_info::begin and btrace_thread_info::end.
6750 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
6751 (struct btrace_thread_info) <functions>: Adjust comment.
6752 * record-btrace.c (record_btrace_start_replaying): Remove reference to
6753 btrace_thread_info::begin.
6754
8286623c
TW
67552017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6756
6757 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
6758 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
6759 ftrace_update_function): Remove arguments that implicitly were always
6760 BTINFO->END.
6761 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
6762 Don't pass BTINFO->END.
6763
a0f1b963
TW
67642017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6765
6766 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
6767 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
6768 btrace_find_insn_by_number): Replace function segment pointer with
6769 index.
6770 (btrace_insn_cmp): Simplify.
6771 * btrace.h: (struct btrace_insn_iterator) Rename index to
6772 insn_index. Replace function segment pointer with index into function
6773 segment vector.
6774 * record-btrace.c (record_btrace_call_history): Replace function
6775 segment pointer use with index.
6776 (record_btrace_frame_sniffer): Retrieve function call segment through
6777 vector.
6778 (record_btrace_set_replay): Remove defunc't safety check.
6779
f158f208
TW
67802017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6781
6782 * btrace.c (btrace_ends_with_single_insn): New function.
6783 (btrace_call_get, btrace_call_number, btrace_call_begin,
6784 btrace_call_end, btrace_call_next, btrace_call_prev,
6785 btrace_find_call_by_number): Use index into call segment vector
6786 instead of pointer.
6787 (btrace_call_cmp): Simplify.
6788 * btrace.h (struct btrace_call_iterator): Replace function call segment
6789 pointer with index into vector.
6790 * record-btrace.c (record_btrace_call_history): Use index instead of
6791 pointer.
6792
521103fd
TW
67932017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6794
6795 * btrace.c (btrace_insn_begin, btrace_insn_end,
6796 btrace_find_insn_by_number): Add btinfo to iterator.
6797 * btrace.h (struct btrace_insn_iterator): Add btinfo.
6798
17b89b34
TW
67992017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6800
6801 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
6802 and save pointers directly.
6803 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
6804 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
6805 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
6806 changed signature of functions.
6807 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
6808 (btrace_fetch): Remove code that adds btrace_function pointers to
6809 vector of btrace_functions.
6810 (btrace_clear): Simplify freeing vector of btrace_functions.
6811
2b51eddc
TW
68122017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6813
6814 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
6815 Replace VEC_* with std::vector functions.
6816 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
6817 (struct btrace_thread_info)<functions>: Change type to std::vector.
6818
db6be0d5
SM
68192017-05-30 Simon Marchi <simon.marchi@ericsson.com>
6820
6821 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
6822 "Removed targets and native configurations" up. Merge duplicate
6823 "New commands" sub-sections. Add "New options" sub-sections.
6824
b057297a
AH
68252017-05-26 Alan Hayward <alan.hayward@arm.com>
6826
6827 * defs.h (copy_integer_to_size): New declaration.
6828 * findvar.c (copy_integer_to_size): New function.
6829 (do_cint_test): New selftest function.
6830 (copy_integer_to_size_test): Likewise.
6831 (_initialize_findvar): Likewise.
6832 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
6833 (mips_fbsd_collect_reg): Use raw_collect_integer.
6834 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
6835 (mips64_fill_gregset): Use raw_collect_integer
6836 (mips64_fill_fpregset): Use raw_supply_integer.
6837 * regcache.c (regcache::raw_supply_integer): New function.
6838 (regcache::raw_collect_integer): Likewise.
6839 * regcache.h: (regcache::raw_supply_integer): New declaration.
6840 (regcache::raw_collect_integer): Likewise.
6841
b77b02a5
YQ
68422017-05-24 Yao Qi <yao.qi@linaro.org>
6843
6844 * Makefile.in (SFILES): Add gdbarch-selftests.c.
6845 (COMMON_OBS): Add gdbarch-selftests.o.
6846 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
6847 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
6848 * gdbarch-selftests.c: New file.
6849 * regcache.h (regcache) <~regcache>: Mark it virtual if
6850 GDB_SELF_TEST.
6851 <raw_write>: Likewise.
6852
e521e87e
YQ
68532017-05-24 Yao Qi <yao.qi@linaro.org>
6854
6855 * regcache.c (current_regcache): Change it to
6856 regcache::current_regcache.
6857 (regcache_observer_target_changed): Update.
6858 (regcache_thread_ptid_changed): Make it a regcache static
6859 method.
6860 (regcache_thread_ptid_changed): Update.
6861 (class regcache_access): New.
6862 (current_regcache_test): Update.
6863 (_initialize_regcache): Update.
6864 * regcache.h: Include forward_list.
6865 (regcache): Declare regcache_thread_ptid_changed and declare
6866 registers_changed_ptid as friend.
6867
d8e07dda
YQ
68682017-05-24 Yao Qi <yao.qi@linaro.org>
6869
6870 * i387-tdep.c (i387_register_to_value): Use register_size
6871 instead of TYPE_LENGTH.
6872 * m68k-tdep.c (m68k_register_to_value): Likewise.
6873
8c8f9122
YQ
68742017-05-24 Yao Qi <yao.qi@linaro.org>
6875
6876 * i387-tdep.c (i387_convert_register_p): Return false if type
6877 code isn't TYPE_CODE_FLT.
6878
68fce50f
YQ
68792017-05-24 Yao Qi <yao.qi@linaro.org>
6880
6881 * alpha-tdep.c (alpha_convert_register_p): Return true if type
6882 length is 4.
6883 (alpha_register_to_value): Remove type length check.
6884 (alpha_value_to_register): Likewise.
6885
88954b49
YQ
68862017-05-24 Yao Qi <yao.qi@linaro.org>
6887
6888 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
6889 TYPE_CODE_FLT.
6890
e3ec9b69
YQ
68912017-05-24 Yao Qi <yao.qi@linaro.org>
6892
6893 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
6894 TYPE_CODE_FLT or not.
6895
cdd238da
YQ
68962017-05-24 Yao Qi <yao.qi@linaro.org>
6897
6898 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
6899 * avr-tdep.c (avr_gdbarch_init): Likewise.
6900 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6901 * cris-tdep.c (cris_gdbarch_init): Likewise.
6902 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6903 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6904 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6905 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
6906 * mep-tdep.c (mep_gdbarch_init): Likewise.
6907 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6908 * mips-tdep.c (mips_gdbarch_init): Likewise.
6909 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6910 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6911 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
6912 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6913 * v850-tdep.c (v850_gdbarch_init): Likewise.
6914
7a3929c4
YQ
69152017-05-24 Yao Qi <yao.qi@linaro.org>
6916
6917 * selftest-arch.c (tests_with_arch): Call registers_changed
6918 and reinit_frame_cache.
6919 * selftest.c (run_self_tests): Likewise.
6920
f4985dba
YQ
69212017-05-24 Yao Qi <yao.qi@linaro.org>
6922
6923 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
6924 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
6925
ab20fa4a
YQ
69262017-05-24 Yao Qi <yao.qi@linaro.org>
6927
6928 * rl78-tdep.c (rl78_gdbarch_init): Don't call
6929 set_gdbarch_print_insn.
6930
f532ab94
YQ
69312017-05-24 Yao Qi <yao.qi@linaro.org>
6932
6933 * h8300-tdep.c (h8300_gdbarch_init): Don't call
6934 set_gdbarch_print_insn.
6935
39503f82
YQ
69362017-05-24 Yao Qi <yao.qi@linaro.org>
6937
6938 * alpha-tdep.c (alpha_gdbarch_init): Don't call
6939 set_gdbarch_print_insn.
6940 * arc-tdep.c (arc_gdbarch_init): Likewise.
6941 * arch-utils.c: include dis-asm.h.
6942 (default_print_insn): New function.
6943 * arch-utils.h (default_print_insn): Declare.
6944 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
6945 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6946 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
6947 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
6948 * frv-tdep.c (frv_gdbarch_init): Likewise.
6949 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6950 * gdbarch.sh (print_insn): Use default_print_insn.
6951 * gdbarch.c: Regenerated.
6952 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
6953 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
6954 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6955 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
6956 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6957 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
6958 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
6959 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
6960 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
6961 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6962 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6963 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6964 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
6965 * mt-tdep.c (mt_gdbarch_init): Likewise.
6966 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
6967 * nios2-tdep.c (nios2_print_insn): Remove.
6968 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
6969 * rx-tdep.c (rx_gdbarch_init): Likewise.
6970 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6971 * score-tdep.c (score_print_insn): Remove.
6972 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
6973 * sh-tdep.c (sh_gdbarch_init): Likewise.
6974 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6975 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
6976 * tic6x-tdep.c (tic6x_print_insn): Remove.
6977 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
6978 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
6979 * v850-tdep.c (v850_gdbarch_init): Likewise.
6980 * vax-tdep.c (vax_gdbarch_init): Likewise.
6981 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
6982 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
6983
f7241d4f
JB
69842017-05-23 John Baldwin <jhb@FreeBSD.org>
6985
6986 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
6987 (MIPS_FP0_REGNUM): Remove.
6988 (MIPS_FSR_REGNUM): Remove.
6989 (mips_fbsd_supply_fpregs): Use mips_regnum.
6990 (mips_fbsd_supply_gregs): Likewise.
6991 (mips_fbsd_collect_fpregs): Likewise.
6992 (mips_fbsd_collect_gregs): Likewise.
6993
d489d81d
JB
69942017-05-23 John Baldwin <jhb@FreeBSD.org>
6995
6996 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
6997 (getpfpregs_supplies): New function.
6998 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
6999 getfpregs_supplies.
7000 (mips_fbsd_store_inferior_registers): Likewise.
7001
e11b3cdc
PA
70022017-05-22 Pedro Alves <palves@redhat.com>
7003
7004 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
7005 maintainer.
7006
0f068fb5
AH
70072017-05-22 Alan Hayward <alan.hayward@arm.com>
7008
7009 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
7010 (store_register): Likewise.
7011 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
7012 (get_decimal_float_return_value): Likewise.
7013 (do_ppc_sysv_return_value): Likewise.
7014 (ppc64_sysv_abi_push_integer): Likewise.
7015 (ppc64_sysv_abi_push_freg): Likewise.
7016 (ppc64_sysv_abi_return_value_base): Likewise.
7017 (ppc64_sysv_abi_return_value): Likewise.
7018 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
7019 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
7020 * rs6000-nat.c: Likewise.
7021 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
7022 (rs6000_value_to_register): Likewise.
7023 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
7024
e6cf65f2
TT
70252017-05-21 Tom Tromey <tom@tromey.com>
7026
7027 PR rust/21466:
7028 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
7029 arrays as "[T]", not "[T; ]".
7030
43cc5389
TT
70312017-05-19 Tom Tromey <tom@tromey.com>
7032
7033 PR rust/21484:
7034 * rust-lang.c (exp_descriptor_rust): New function.
7035 (rust_language_defn): Use it.
7036 * p-lang.c (pascal_language_defn): Update.
7037 * opencl-lang.c (opencl_language_defn): Update.
7038 * objc-lang.c (objc_language_defn): Update.
7039 * m2-lang.c (m2_language_defn): Update.
7040 * language.h (struct language_defn)
7041 <la_watch_location_expression>: New member.
7042 * language.c (unknown_language_defn, auto_language_defn)
7043 (local_language_defn): Update.
7044 * go-lang.c (go_language_defn): Update.
7045 * f-lang.c (f_language_defn): Update.
7046 * d-lang.c (d_language_defn): Update.
7047 * c-lang.h (c_watch_location_expression): Declare.
7048 * c-lang.c (c_watch_location_expression): New function.
7049 (c_language_defn, cplus_language_defn, asm_language_defn)
7050 (minimal_language_defn): Use it.
7051 * breakpoint.c (watch_command_1): Call
7052 la_watch_location_expression.
7053 * ada-lang.c (ada_language_defn): Update.
7054
7a6e7fcc
RO
70552017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7056
6e7e1744
RO
7057 PR tui/21482
7058 * gdb_curses.h (NOMACROS): Define.
7059 (NCURSES_NOMACROS): Define.
7060
70612017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7062
7063 PR tui/21482
7a6e7fcc
RO
7064 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
7065 arg to char *.
7066 * tui/tui-wingeneral.c (box_win): Likewise.
7067 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
7068 (tui_show_source_line): Likewise.
7069 (tui_show_exec_info_content): Likewise.
7070
1933fd8e
VM
70712017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
7072
7073 * sparc-tdep.c (sparc_structure_return_p)
7074 (sparc_arg_on_registers_p): New functions.
7075 (sparc32_store_arguments): Use them.
7076 * sparc64-tdep.c (sparc64_16_byte_align_p)
7077 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
7078 Handle TYPE_CODE_ARRAY.
7079
21873064
YQ
70802017-05-17 Yao Qi <yao.qi@linaro.org>
7081
7082 * cli/cli-decode.c (add_alias_cmd): New function.
7083 * command.h (add_alias_cmd): Declare.
7084 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
7085 instead call add_alias_cmd.
7086
2b351b19
PA
70872017-05-17 Pedro Alves <palves@redhat.com>
7088
7089 * Makefile.in (nat_extra_makefile_frag): Rename to ...
7090 (nat_makefile_frag): ... this. All references updated.
7091 * configure.ac: Likewise.
7092 * configure.nat: Likewise. Enhance comments.
7093 * configure: Regenerate.
7094
5f2ad7a3
RO
70952017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7096
7097 * procfs.c (procfs_create_inferior): Change prototype to match
7098 definition.
7099
adf3dde5
EZ
71002017-05-13 Eli Zaretskii <eliz@gnu.org>
7101
7102 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
7103 C++ compiler warning.
7104
6830f270
TT
71052017-05-12 Tom Tromey <tom@tromey.com>
7106
7107 PR rust/21483:
7108 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
7109 recurse, just call value_struct_elt directly.
7110
68f2f2e3
TT
71112017-05-12 Tom Tromey <tom@tromey.com>
7112
7113 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
7114 OP_RUST_ARRAY>: Fix.
7115
256afbc2
TT
71162017-05-12 Tom Tromey <tom@tromey.com>
7117
7118 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
7119
94bb8dfe
YQ
71202017-05-09 Yao Qi <yao.qi@linaro.org>
7121
7122 * regcache.c: Include <forward_list>.
7123 (struct regcache_list): Remove.
7124 (current_regcache): Update.
7125 (get_thread_arch_aspace_regcache): Update for std::forward_list.
7126 (regcache_thread_ptid_changed): Likewise.
7127 (registers_changed_ptid): Likewise.
7128 (current_regcache_size): Likewise.
7129
8248946c
YQ
71302017-05-09 Yao Qi <yao.qi@linaro.org>
7131
7132 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
7133 (current_regcache_size): New function.
7134 (current_regcache_test): New function.
7135 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
7136
313c5961
AH
71372017-05-08 Alan Hayward <alan.hayward@arm.com>
7138
7139 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
7140 (print_gp_register_row): Use get_frame_register_value.
7141
27bfc1d1
AH
71422017-05-08 Alan Hayward <alan.hayward@arm.com>
7143
7144 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
7145 (mips_supply_fpregset): Likewise.
7146 (mips64_supply_gregset): Likewise.
7147
146e6c5c
AH
71482017-05-08 Alan Hayward <alan.hayward@arm.com>
7149
7150 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
7151 regcache->raw_supply_zeroed.
7152
e50f25ec
SDJ
71532017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7154
7155 * configure.nat: Rearrange 'case' statements to match
7156 host before cpu.
7157
21ea5acd
SDJ
71582017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7159
7160 * Makefile.in: Remove "@host_makefile_frag@". Add variables
7161 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
7162 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
7163 "@nat_extra_makefile_frag@".
7164 (Makefile): Remove dependency on "@frags@".
7165 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
7166 (data-directory/Makefile): Likewise.
7167 * config/aarch64/linux.mh: Deleted; moved contents to
7168 "gdb/configure.nat".
7169 * config/alpha/alpha-linux.mh: Likewise.
7170 * config/alpha/nbsd.mh: Likewise.
7171 * config/arm/linux.mh: Likewise.
7172 * config/arm/nbsdelf.mh: Likewise.
7173 * config/i386/cygwin.mh: Likewise.
7174 * config/i386/cygwin64.mh: Likewise.
7175 * config/i386/darwin.mh: Likewise.
7176 * config/i386/fbsd.mh: Likewise.
7177 * config/i386/fbsd64.mh: Likewise.
7178 * config/i386/go32.mh: Likewise.
7179 * config/i386/i386gnu.mh: Likewise.
7180 * config/i386/i386sol2.mh: Likewise.
7181 * config/i386/linux.mh: Likewise.
7182 * config/i386/linux64.mh: Likewise.
7183 * config/i386/mingw.mh: Likewise.
7184 * config/i386/mingw64.mh: Likewise.
7185 * config/i386/nbsd64.mh: Likewise.
7186 * config/i386/nbsdelf.mh: Likewise.
7187 * config/i386/nto.mh: Likewise.
7188 * config/i386/obsd.mh: Likewise.
7189 * config/i386/obsd64.mh: Likewise.
7190 * config/i386/sol2-64.mh: Likewise.
7191 * config/ia64/linux.mh: Likewise.
7192 * config/m32r/linux.mh: Likewise.
7193 * config/m68k/linux.mh: Likewise.
7194 * config/m68k/nbsdelf.mh: Likewise.
7195 * config/m68k/obsd.mh: Likewise.
7196 * config/m88k/obsd.mh: Likewise.
7197 * config/mips/fbsd.mh: Likewise.
7198 * config/mips/linux.mh: Likewise.
7199 * config/mips/nbsd.mh: Likewise.
7200 * config/mips/obsd64.mh: Likewise.
7201 * config/pa/linux.mh: Likewise.
7202 * config/pa/nbsd.mh: Likewise.
7203 * config/pa/obsd.mh: Likewise.
7204 * config/powerpc/aix.mh: Likewise.
7205 * config/powerpc/fbsd.mh: Likewise.
7206 * config/powerpc/linux.mh: Likewise.
7207 * config/powerpc/nbsd.mh: Likewise.
7208 * config/powerpc/obsd.mh: Likewise.
7209 * config/powerpc/ppc64-linux.mh: Likewise.
7210 * config/powerpc/spu-linux.mh: Likewise.
7211 * config/s390/linux.mh: Likewise.
7212 * config/sh/nbsd.mh: Likewise.
7213 * config/sparc/fbsd.mh: Likewise.
7214 * config/sparc/linux.mh: Likewise.
7215 * config/sparc/linux64.mh: Likewise.
7216 * config/sparc/nbsd64.mh: Likewise.
7217 * config/sparc/nbsdelf.mh: Likewise.
7218 * config/sparc/obsd64.mh: Likewise.
7219 * config/sparc/sol2.mh: Likewise.
7220 * config/tilegx/linux.mh: Likewise.
7221 * config/vax/nbsdelf.mh: Likewise.
7222 * config/vax/obsd.mh: Likewise.
7223 * config/xtensa/linux.mh: Likewise.
7224 * config/i386/i386gnu.mn: New file, with excerpts from
7225 "config/i386/i386gnu.mh".
7226 * configure: Regenerate.
7227 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
7228 *.mh files under "gdb/config".
7229 * configure.nat: New file, with contents from the
7230 "gdb/config/*/*.mh" files.
7231
7ed1acaf
TW
72322017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
7233
7234 * btrace.c (btrace_clear): Free insn vector.
7235
e13cb306
PA
72362017-05-05 Pedro Alves <palves@redhat.com>
7237
7238 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
7239 * configure: Regenerate.
7240
5ed8105e
PA
72412017-05-04 Pedro Alves <palves@redhat.com>
7242
7243 * Makefile.in (SFILES): Add progspace-and-thread.c.
7244 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
7245 (COMMON_OBS): Add progspace-and-thread.o.
7246 * breakpoint.c: Include "progspace-and-thread.h".
7247 (update_inserted_breakpoint_locations)
7248 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
7249 Use scoped_restore_current_pspace_and_thread.
7250 (create_std_terminate_master_breakpoint): Use
7251 scoped_restore_current_program_space.
7252 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
7253 (print_breakpoint_location): Use
7254 scoped_restore_current_program_space.
7255 (bp_loc_is_permanent): Use
7256 scoped_restore_current_pspace_and_thread.
7257 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
7258 (download_tracepoint_locations): Use
7259 scoped_restore_current_pspace_and_thread.
7260 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
7261 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
7262 (enum step_over_calls_kind): Moved from inferior.h.
7263 (class scoped_restore_current_thread): New class.
7264 * gdbthread.h (make_cleanup_restore_current_thread): Delete
7265 declaration.
7266 (scoped_restore_current_thread): New class.
7267 * infcmd.c: Include "common/gdb_optional.h".
7268 (continue_1, proceed_after_attach): Use
7269 scoped_restore_current_thread.
7270 (notice_new_inferior): Use scoped_restore_current_thread.
7271 * inferior.c: Include "progspace-and-thread.h".
7272 (restore_inferior, save_current_inferior): Delete.
7273 (add_inferior_command, clone_inferior_command): Use
7274 scoped_restore_current_pspace_and_thread.
7275 * inferior.h (scoped_restore_current_inferior): New class.
7276 * infrun.c: Include "progspace-and-thread.h" and
7277 "common/gdb_optional.h".
7278 (follow_fork_inferior): Use
7279 scoped_restore_current_pspace_and_thread.
7280 (scoped_restore_exited_inferior): New class.
7281 (handle_vfork_child_exec_or_exit): Use
7282 scoped_restore_exited_inferior,
7283 scoped_restore_current_pspace_and_thread,
7284 scoped_restore_current_thread and scoped_restore.
7285 (fetch_inferior_event): Use scoped_restore_current_thread.
7286 * linespec.c (decode_line_full, decode_line_1): Use
7287 scoped_restore_current_program_space.
7288 * mi/mi-main.c: Include "progspace-and-thread.h".
7289 (exec_continue): Use scoped_restore_current_thread.
7290 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
7291 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
7292 * proc-service.c (ps_pglobal_lookup): Use
7293 scoped_restore_current_program_space.
7294 * progspace-and-thread.c: New file.
7295 * progspace-and-thread.h: New file.
7296 * progspace.c (release_program_space, clone_program_space): Use
7297 scoped_restore_current_program_space.
7298 (restore_program_space, save_current_program_space)
7299 (save_current_space_and_thread): Delete.
7300 (switch_to_program_space_and_thread): Moved to
7301 progspace-and-thread.c.
7302 * progspace.h (save_current_program_space)
7303 (save_current_space_and_thread): Delete declarations.
7304 (scoped_restore_current_program_space): New class.
7305 * remote.c (remote_btrace_maybe_reopen): Use
7306 scoped_restore_current_thread.
7307 * symtab.c: Include "progspace-and-thread.h".
7308 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
7309 * thread.c (print_thread_info_1): Use
7310 scoped_restore_current_thread.
7311 (struct current_thread_cleanup): Delete.
7312 (do_restore_current_thread_cleanup)
7313 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
7314 (scoped_restore_current_thread::~scoped_restore_current_thread):
7315 ... this new dtor.
7316 (make_cleanup_restore_current_thread): Rename/convert to ...
7317 (scoped_restore_current_thread::scoped_restore_current_thread):
7318 ... this new ctor.
7319 (thread_apply_all_command): Use scoped_restore_current_thread.
7320 (thread_apply_command): Use scoped_restore_current_thread.
7321 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
7322 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
7323
f6223dbb
PA
73242017-05-04 Pedro Alves <palves@redhat.com>
7325
7326 * thread.c (make_cleanup_restore_current_thread): Move
7327 find_thread_ptid call before the is_stopped call. Assert that the
7328 thread is found. Replace is_stopped call by checking the thread's
7329 state directly. Remove unnecessary NULL-thread check.
7330
3c3ae77e
PA
73312017-05-04 Pedro Alves <palves@redhat.com>
7332
7333 * corelow.c (thread_section_name): New class.
7334 (get_core_register_section, get_core_siginfo): Use it.
7335
45eba0ab
AA
73362017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
7337
7338 * corelow.c (sniff_core_bfd): Remove extra semicolon.
7339 (get_core_register_section): Remove xfree of NULL pointer.
7340
f81fdd35
AH
73412017-05-03 Alan Hayward <alan.hayward@arm.com>
7342
7343 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
7344 * regcache.c (regcache::raw_supply_zeroed): New function.
7345 * regcache.h (regcache::raw_supply_zeroed): New declaration.
7346
35837774
SM
73472017-05-03 Simon Marchi <simon.marchi@ericsson.com>
7348
7349 * gdbarch.sh: Remove commented out definition of
7350 TARGET_CHAR_BIT.
7351 * gdbarch.h: Re-generate.
7352
c94fee56
SDJ
73532017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7354
7355 * configure: Regenerate.
7356
d17f7b36
SM
73572017-05-02 Simon Marchi <simon.marchi@ericsson.com>
7358
7359 * solib-target.c (solib_target_relocate_section_addresses):
7360 Remove num_section_bases, num_bases, segment_bases variables.
7361
b560ebd6
SM
73622017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7363
7364 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
7365
f2f46dfc
SM
73662017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7367
7368 * solib-target.c: Include <vector>
7369 (struct lm_info_target) <~lm_info_target>: Remove.
7370 <segment_bases, section_bases>: Change type to
7371 std::vector<CORE_ADDR>.
7372 (library_list_start_segment, library_list_start_section,
7373 library_list_end_library,
7374 solib_target_relocate_section_addresses): Adjust.
7375
a0ff9e1a
SM
73762017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7377
7378 * gdbarch.sh (software_single_step): Change return type to
7379 std::vector<CORE_ADDR>.
7380 * gdbarch.c, gdbarch.h: Re-generate.
7381 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
7382 Adjust.
7383 (arm_deal_with_atomic_sequence_raw): Adjust.
7384 (thumb_get_next_pcs_raw): Adjust.
7385 (arm_get_next_pcs_raw): Adjust.
7386 (arm_get_next_pcs): Adjust.
7387 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
7388 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
7389 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
7390 (alpha_software_single_step): Adjust.
7391 * alpha-tdep.h (alpha_software_single_step): Adjust.
7392 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
7393 * arm-tdep.c (arm_software_single_step): Adjust.
7394 (arm_breakpoint_kind_from_current_state): Adjust.
7395 * arm-tdep.h (arm_software_single_step): Adjust.
7396 * breakpoint.c (insert_single_step_breakpoint): Adjust.
7397 * cris-tdep.c (cris_software_single_step): Adjust.
7398 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
7399 (micromips_deal_with_atomic_sequence): Adjust.
7400 (deal_with_atomic_sequence): Adjust.
7401 (mips_software_single_step): Adjust.
7402 * mips-tdep.h (mips_software_single_step): Adjust.
7403 * moxie-tdep.c (moxie_software_single_step): Adjust.
7404 * nios2-tdep.c (nios2_software_single_step): Adjust.
7405 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
7406 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
7407 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
7408 * s390-linux-tdep.c (s390_software_single_step): Adjust.
7409 * sparc-tdep.c (sparc_software_single_step): Adjust.
7410 * spu-tdep.c (spu_software_single_step): Adjust.
7411 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
7412
ea480a30
SM
74132017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7414
7415 * gdbarch.sh: Use semi-colon as field separator instead of colon.
7416 * gdbarch.h: Re-generate.
7417
d050f7d7
TW
74182017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7419
7420 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
7421 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
7422 * python/py-instruction.c, python/py-instruction.h: New file.
7423 * python/py-record.c: Add py-instruction.h include.
7424 (gdbpy_initialize_record): Make gdb.Instruction a super class of
7425 gdb.RecordInstruction.
7426 * python/python-internal.h: Add gdbpy_initialize_instruction
7427 declaration.
7428 * python/python.c (do_start_initialization): Add
7429 gdbpy_initialize_instruction.
7430
14f819c8
TW
74312017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7432
7433 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
7434 Remove.
7435 (btrace_func_from_recpy_func): New function.
7436 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
7437 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
7438 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
7439 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
7440 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
7441 Also, use new helper functions.
7442 (btpy_list_item): Use new helper functions.
7443 (recpy_bt_function_call_history): Use new type name.
7444 (btpy_call_getset): Remove.
7445 (gdbpy_initialize_btrace): Remove code to initialize
7446 gdb.BtraceFunctionCall.
7447 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
7448 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
7449 recpy_bt_func_prev, recpy_bt_func_next): New export.
7450 * python/py-record.c (recpy_func_type): New static object.
7451 (recpy_func_new, recpy_func_level, recpy_func_symbol,
7452 recpy_func_instructions, recpy_func_up, recpy_func_prev,
7453 recpy_func_next): New function.
7454 (recpy_element_hash, recpy_element_richcompare): Updated comment.
7455 (recpy_func_getset): New static object.
7456 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
7457 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
7458
0ed5da75
TW
74592017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7460
7461 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
7462 (btpy_object, btpy_insn_type, btpy_new): Remove.
7463 (btpy_list_object): Use gdb.RecordInstruction type instead of
7464 gdb.BtraceInstruction type.
7465 (btrace_insn_from_recpy_insn): New function.
7466 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
7467 btpy_new.
7468 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
7469 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
7470 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
7471 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
7472 instead of btpy_object.
7473 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
7474 btpy_insn_data, btpy_insn_decode): Rename to ...
7475 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
7476 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
7477 recpy_bt_insn_decode): This. Also, use new helper functions.
7478 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
7479 recpy_insn_type.
7480 (btpy_insn_getset): Remove.
7481 (gdbpy_initialize_btrace): Remove code to initialize
7482 gdb.BtraceInstruction. Use recpy_element_object.
7483 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
7484 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
7485 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
7486 * python/py-record.c (recpy_insn_type): New static object.
7487 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
7488 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
7489 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
7490 New function.
7491 (recpy_insn_getset): New static object.
7492 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
7493 * python/py-record.h (recpy_element_object): New typedef.
7494 (recpy_insn_type, recpy_insn_new): New export.
7495
913aeadd
TW
74962017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7497
7498 * py-record-btrace.c (btpy_insn_new): Removed.
7499 (btpy_insn_or_gap_new): New function.
7500 (btpy_insn_error): Removed.
7501 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
7502 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
7503 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
7504 btpy_insn_or_gap_new instead of btpy_insn_new.
7505 (btpy_insn_getset): Remove btpy_insn_error.
7506 * py-record.c (recpy_gap_type): New static object.
7507 (recpy_gap_object): New typedef.
7508 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
7509 recpy_gap_reason_string): New function.
7510 (recpy_gap_getset): New static object.
7511 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
7512 * py-record.h (recpy_gap_new): New export.
7513
a3be24ad
TW
75142017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7515
7516 * python/py-record.c (recpy_ptid): Remove.
7517 (recpy_record_getset): Remove recpy_ptid.
7518
ae20e79a
TW
75192017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7520
7521 * btrace.c (btrace_fetch): Set inferior_ptid.
7522 * python/py-record-btrace.c: Add "py-record.h" include.
7523 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
7524 recpy_bt_end, recpy_bt_instruction_history,
7525 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
7526 in gdb.Record object instead of current ptid.
7527 * python/py-record.c: Include new "py-record.h" file.
7528 (recpy_record_object): Moved to py-record.h.
7529 * python/py-record.h: New file.
7530
8d0050ea
TW
75312017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7532
7533 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
7534 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
7535 indentation.
7536
3f380b50
JB
75372017-05-01 Joel Brobecker <brobecker@adacore.com>
7538
7539 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
7540 the past maintainers section.
7541
07495424
YQ
75422017-04-28 Yao Qi <yao.qi@linaro.org>
7543
7544 * infcmd.c (get_return_value): Use regcache ctor, and remove
7545 cleanup.
7546
deb1fa3e
YQ
75472017-04-28 Yao Qi <yao.qi@linaro.org>
7548 Pedro Alves <palves@redhat.com>
7549
7550 * regcache.c (regcache::regcache): New tag dispatch ctor.
7551 (do_cooked_read): Moved above.
7552 (regcache_dup): Use the tag dispatch ctor..
7553 * regcache.h (regcache): Declare ctor, delete copy ctor and
7554 assignment operator, remove friend regcache_dup.
7555
b421c83c
YQ
75562017-04-28 Yao Qi <yao.qi@linaro.org>
7557
7558 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
7559 call method save instead of regcache_cpy.
7560 * regcache.h (struct regcache): Make regcache_dup a friend.
7561
ef79d9a3
YQ
75622017-04-28 Yao Qi <yao.qi@linaro.org>
7563
7564 * regcache.c (struct regcache): Move to regcache.h
7565 (regcache::arch): New method.
7566 (regcache_get_ptid): Update.
7567 (get_regcache_arch): Call arch method.
7568 (get_regcache_aspace): Call method aspace.
7569 (register_buffer): Change it to method.
7570 (regcache_save): Change it to regcache::save.
7571 (regcache_restore): Likewise.
7572 (regcache_cpy_no_passthrough): Remove the declaration.
7573 (regcache_cpy): Call methods restore and cpy_no_passthrough.
7574 (regcache_cpy_no_passthrough): Change it to method
7575 cpy_no_passthrough.
7576 (regcache_register_status): Change it to method
7577 get_register_status.
7578 (regcache_invalidate): Change it to method invalidate.
7579 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
7580 (regcache_raw_update): Change it to method raw_update.
7581 (regcache_raw_read): Likewise.
7582 (regcache_raw_read_signed): Likewise.
7583 (regcache_raw_read_unsigned): Likewise.
7584 (regcache_raw_write_signed): Likewise.
7585 (regcache_raw_write_unsigned): Likewise.
7586 (regcache_cooked_read): Likewise.
7587 (regcache_cooked_read_value): Likewise.
7588 (regcache_cooked_read_signed): Likewise.
7589 (regcache_cooked_read_unsigned): Likewise.
7590 (regcache_cooked_write_signed): Likewise.
7591 (regcache_cooked_write_unsigned): Likewise.
7592 (regcache_raw_set_cached_value): Likewise.
7593 (regcache_raw_write): Likewise.
7594 (regcache_cooked_write): Likewise.
7595 (regcache_xfer_part): Likewise.
7596 (regcache_raw_read_part): Likewise.
7597 (regcache_raw_write_part): Likewise.
7598 (regcache_cooked_read_part): Likewise.
7599 (regcache_cooked_write_part): Likewise.
7600 (regcache_raw_supply): Likewise.
7601 (regcache_raw_collect): Likewise.
7602 (regcache_transfer_regset): Likewise.
7603 (regcache_supply_regset): Likewise.
7604 (regcache_collect_regset): Likewise.
7605 (regcache_debug_print_register): Likewise.
7606 (enum regcache_dump_what): Move it to regcache.h.
7607 (regcache_dump): Change it to method dump.
7608 * regcache.h (enum regcache_dump_what): New.
7609 (class regcache): New.
7610 * target.c (target_fetch_registers): Call method
7611 debug_print_register.
7612 (target_store_registers): Likewise.
7613
f8fdb78e
SM
76142017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7615
7616 * windows-nat.c (struct lm_info_windows): Initialize field.
7617 (windows_make_so): Allocate lm_info_windows with new.
7618 (windows_free_so): Free lm_info_windows with delete.
7619
9ccbfd7b
SM
76202017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7621
7622 * solib-darwin.c (struct lm_info_darwin): Initialize field.
7623 (darwin_current_sos): Allocate lm_info_darwin with new, remove
7624 cleanup.
7625 (darwin_free_so): Free lm_info_darwin with delete.
7626
76e75227
SM
76272017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7628
7629 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
7630 <l_addr_p>: Change type to bool.
7631 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
7632 (svr4_free_so): Free lm_info_svr4 with delete.
7633 (svr4_copy_library_list): Replace memcpy with call to copy
7634 constructor.
7635 (library_list_start_library, svr4_default_sos): Allocate
7636 lm_info_svr4 with new.
7637
51046d9e
SM
76382017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7639
7640 * solib-target.c (struct lm_info_target): Add destructor,
7641 initialize fields.
7642 <name>: Change type to std::string.
7643 (library_list_start_library): Allocate lm_info_target with new.
7644 (solib_target_free_library_list): Free lm_info_target with
7645 delete.
7646 (solib_target_current_sos): Adapt to std::string.
7647 (solib_target_free_so): Free lm_info_target with delete.
7648
4023ae76
SM
76492017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7650
7651 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
7652 fields.
7653 (frv_current_sos): Allocate lm_info_frv with new.
7654 (frv_relocate_main_executable): Free lm_info_frv with delete,
7655 allocate with new.
7656 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
7657
af43057b
SM
76582017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7659
7660 * solib-frv.c (struct lm_info_frv): Fix indentation.
7661
b0911207
SM
76622017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7663
7664 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
7665 map field.
7666 (dsbt_current_sos): Allocate lm_info_dsbt with new.
7667 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
7668 and allocate with new.
7669 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
7670
6c401f72
SM
76712017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7672
7673 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
7674 <filename, member_name>: Change type to std::string.
7675 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
7676 (library_list_start_library): Allocate lm_info_aix with new.
7677 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
7678 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
7679 with copy constructor.
7680
d0e449a1
SM
76812017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7682
7683 * solist.h (struct lm_info): Remove.
7684 (struct lm_info_base): New class.
7685 (struct so_list) <lm_info>: Change type to lm_info_base *.
7686 * nto-tdep.c (struct lm_info): Remove.
7687 (lm_addr): Adjust.
7688 * solib-aix.c (struct lm_info): Rename to ...
7689 (struct lm_info_aix): ... this. Extend lm_info_base.
7690 (lm_info_p): Rename to ...
7691 (lm_info_aix_p): ... this, and adjust.
7692 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
7693 solib_aix_parse_libraries, library_list_start_library,
7694 solib_aix_free_library_list, solib_aix_parse_libraries,
7695 solib_aix_get_library_list,
7696 solib_aix_relocate_section_addresses, solib_aix_free_so,
7697 solib_aix_get_section_offsets,
7698 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
7699 Adjust.
7700 (struct solib_aix_inferior_data) <library_list>: Adjust.
7701 * solib-darwin.c (struct lm_info): Rename to ...
7702 (struct lm_info_darwin): ... this. Extend lm_info_base.
7703 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
7704 * solib-dsbt.c (struct lm_info): Rename to ...
7705 (struct lm_info_dsbt): ... this. Extend lm_info_base.
7706 (struct dsbt_info) <main_executable_lm_info): Adjust.
7707 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
7708 dsbt_relocate_section_addresses): Adjust.
7709 * solib-frv.c (struct lm_info): Rename to ...
7710 (struct lm_info_frv): ... this. Extend lm_info_base.
7711 (main_executable_lm_info): Adjust.
7712 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
7713 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
7714 find_canonical_descriptor_in_load_object,
7715 frv_fdpic_find_canonical_descriptor): Adjust.
7716 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
7717 to lm_info_svr4.
7718 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
7719 svr4_clear_so, svr4_copy_library_list,
7720 library_list_start_library, svr4_default_sos, svr4_read_so_list,
7721 svr4_current_sos, svr4_fetch_objfile_link_map,
7722 solist_update_incremental): Adjust.
7723 * solib-svr4.h (struct lm_info_svr4): Move here from
7724 solib-svr4.c.
7725 * solib-target.c (struct lm_info): Rename to ...
7726 (struct lm_info_target): ... this. Extend lm_info_base.
7727 (lm_info_p): Rename to ...
7728 (lm_info_target_p): ... this.
7729 (solib_target_parse_libraries, library_list_start_segment,
7730 library_list_start_section, library_list_start_library,
7731 library_list_end_library, solib_target_free_library_list,
7732 solib_target_current_sos, solib_target_free_so,
7733 solib_target_relocate_section_addresses): Adjust.
7734 * windows-nat.c (struct lm_info): Rename to ...
7735 (struct lm_info_windows): ... this. Extend lm_info_base.
7736 (windows_make_so, handle_load_dll, handle_unload_dll,
7737 windows_xfer_shared_libraries): Adjust.
7738
434a4023
SM
77392017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7740
7741 * solib-darwin.c (struct darwin_so_list): Remove.
7742 (darwin_current_sos): Allocate an so_list object instead of a
7743 darwin_so_list, separately allocate an lm_info object.
7744 (darwin_free_so): Free lm_info.
7745
428544e8
JB
77462017-04-28 John Baldwin <jhb@FreeBSD.org>
7747
7748 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
7749 with fprintf_filtered.
7750
4621115f
YQ
77512017-04-28 Yao Qi <yao.qi@linaro.org>
7752
7753 * regcache.c (regcache::regcache): New function.
7754 (regcache::~regcache): New function.
7755 (regcache_xmalloc_1): Remove.
7756 (regcache_xmalloc): Call new regcache.
7757 (regcache_xfree): Call delete regcache.
7758 (get_thread_arch_aspace_regcache): Call new regcache.
7759
339053c2
YQ
77602017-04-28 Yao Qi <yao.qi@linaro.org>
7761
7762 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
7763 lwp instead of ptid_get_lwp.
7764
7974a605
YQ
77652017-04-28 Yao Qi <yao.qi@linaro.org>
7766
7767 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
7768 lwp_info instead of getting from inferior_ptid.
7769
e15c3eb4
KS
77702017-04-27 Keith Seitz <keiths@redhat.com>
7771
7772 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
7773 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
7774 (CV_CONVERSION_BADNESS): Define.
7775 (rank_one_type): Remove overly restrictive rvalue reference
7776 rank checks.
7777 Add cv-qualifier checks and subranks for type equality.
7778 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
7779 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
7780 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
7781
72bc1d24
SM
77822017-04-27 Simon Marchi <simon.marchi@ericsson.com>
7783
7784 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
7785 count when creating the object.
7786
55bcecda
UW
77872017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
7788 Ulrich Weigand <uweigand@de.ibm.com>
7789
7790 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
7791 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
7792 is used in AIX.
7793 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
7794 (process_xcoff_symbol): Likewise.
7795 (scan_xcoff_symtab): Likewise.
7796
5c99fcf8
AH
77972017-04-26 Alan Hayward <alan.hayward@arm.com>
7798
7799 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
7800 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
7801 (ia64_access_reg): Use get_frame_register_unsigned.
7802 (ia64_access_rse_reg): Likewise.
7803 (ia64_libunwind_frame_prev_register): Likewise.
7804
b41c5a85
JW
78052017-04-26 Jiong Wang <jiong.wang@arm.com>
7806
7807 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
7808 * gdbarch.c: Regenerated.
7809 * gdbarch.h: Regenerated.
7810 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
7811 visibility external.
7812 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
7813 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
7814 (enum cfa_how_kind): Move to ...
7815 (struct dwarf2_frame_state_reg_info): Likewise.
7816 (struct dwarf2_frame_state): Likewise.
7817 * dwarf2-frame.h: ... here.
7818 (dwarf2_frame_state_alloc_regs): New declaration.
7819 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
7820 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
7821
c185f580
AH
78222017-04-26 Alan Hayward <alan.hayward@arm.com>
7823
7824 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
7825 regcache_raw_read_unsigned.
7826 (xtensa_pseudo_register_write): Likewise.
7827
19c45594
AH
78282017-04-26 Alan Hayward <alan.hayward@arm.com>
7829
7830 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
7831 (nds32_pseudo_register_write): Likewise.
7832
4658f12e
YQ
78332017-04-25 Yao Qi <yao.qi@linaro.org>
7834
7835 * regcache.c (struct regcache) <readonly_p>: Change its type
7836 to bool.
7837 (regcache_xmalloc_1): Update parameter type and callers update.
7838
d581dda8
YQ
78392017-04-25 Yao Qi <yao.qi@linaro.org>
7840
7841 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
7842 set_gdbarch_wchar_bit.
7843 * arm-tdep.c (arm_gdbarch_init): Likewise.
7844
debed3db
PA
78452017-04-25 Pedro Alves <palves@redhat.com>
7846
7847 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
7848 (BothAreRelocatable, memcopy, memmove): Don't define.
7849 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
7850 macros.
7851
b0b92aeb
PA
78522017-04-25 Pedro Alves <palves@redhat.com>
7853
7854 * common/common-defs.h: Include "common/poison.h".
7855 * common/function-view.h: (Not, Or, Requires): Move to traits.h
7856 and adjust.
7857 * common/poison.h: New file.
7858 * common/traits.h: Include <type_traits>.
7859 (Not, Or, Requires): New, moved from common/function-view.h.
7860
16c4d54a
PA
78612017-04-25 Pedro Alves <palves@redhat.com>
7862
7863 * breakpoint.h (struct breakpoint): In-class initialize all
7864 fields. Make boolean fields "bool".
7865 * breakpoint.c (init_raw_breakpoint_without_location): Remove
7866 memset call and initializations no longer necessary.
7867
b5c36682
PA
78682017-04-25 Pedro Alves <palves@redhat.com>
7869
7870 * btrace.c (pt_btrace_insn_flags): Change parameter type to
7871 reference.
7872 (pt_btrace_insn): New function.
7873 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
7874
5625a286
PA
78752017-04-25 Pedro Alves <palves@redhat.com>
7876
7877 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
7878 "base" field and inherit from "bp_location" instead. Add
7879 non-default ctor.
7880 (allocate_location_exception): Use new non-default ctor.
7881 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
7882 (init_bp_location): Convert to ...
7883 (bp_location::bp_location): ... this new ctor, and remove memset
7884 call.
7885 (base_breakpoint_allocate_location): Use the new non-default ctor.
7886 * breakpoint.h (bp_location): Now a class. Declare default and
7887 non-default ctors. In-class initialize all members.
7888 (init_bp_location): Remove declaration.
7889
23bcc18f
PA
78902017-04-25 Pedro Alves <palves@redhat.com>
7891
7892 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
7893 assignment operator.
7894
e1ba3053
YQ
78952017-04-24 Yao Qi <yao.qi@linaro.org>
7896
7897 * doublest.c (convert_doublest_to_floatformat): Call
7898 floatformat_totalsize_bytes.
7899
10f489e5
TT
79002017-04-22 Tom Tromey <tom@tromey.com>
7901
7902 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
7903 ui_out_emit_list.
7904 * stack.c (print_frame): Use ui_out_emit_list.
7905 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
7906 ui_out_emit_list.
7907 * mi/mi-main.c (print_one_inferior)
7908 (mi_cmd_data_list_register_names)
7909 (mi_cmd_data_list_register_values, mi_cmd_list_features)
7910 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
7911 ui_out_emit_list.
7912 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
7913 (mi_output_solib_attribs): Use ui_out_emit_list,
7914 ui_out_emit_tuple.
7915 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
7916 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7917 (mi_cmd_stack_list_args, list_args_or_locals): Use
7918 ui_out_emit_list.
7919 * disasm.c (do_assembly_only): Use ui_out_emit_list.
7920 * breakpoint.c (print_solib_event, output_thread_groups): Use
7921 ui_out_emit_list.
7922
0092b74d
TT
79232017-04-22 Tom Tromey <tom@tromey.com>
7924
7925 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
7926 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
7927 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
7928
a14a62dd
TT
79292017-04-22 Tom Tromey <tom@tromey.com>
7930
7931 * tracepoint.c (tvariables_info_1)
7932 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
7933
46b9c129
TT
79342017-04-22 Tom Tromey <tom@tromey.com>
7935
7936 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
7937 annotate_arg_emitter.
7938 * breakpoint.c (print_mention_watchpoint)
7939 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
7940 * annotate.h (struct annotate_arg_emitter): New.
7941
2e783024
TT
79422017-04-22 Tom Tromey <tom@tromey.com>
7943
7944 * record-btrace.c (record_btrace_insn_history)
7945 (record_btrace_insn_history_range, record_btrace_call_history)
7946 (record_btrace_call_history_range): Use ui_out_emit_tuple.
7947 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
7948 ui_out_emit_tuple.
7949 * stack.c (print_frame_info): Use ui_out_emit_tuple.
7950 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
7951 * skip.c (skip_info): Use ui_out_emit_tuple.
7952 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
7953 * progspace.c (print_program_space): Use ui_out_emit_tuple.
7954 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
7955 * osdata.c (info_osdata): Use ui_out_emit_tuple.
7956 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
7957 ui_out_emit_tuple.
7958 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
7959 (output_register, mi_cmd_data_read_memory)
7960 (mi_cmd_data_read_memory_bytes, mi_load_progress)
7961 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
7962 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
7963 Use ui_out_emit_tuple.
7964 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
7965 ui_out_emit_tuple.
7966 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
7967 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
7968 * linux-thread-db.c (info_auto_load_libthread_db): Use
7969 ui_out_emit_tuple.
7970 * inferior.c (print_inferior): Use ui_out_emit_tuple.
7971 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
7972 * disasm.c (do_mixed_source_and_assembly_deprecated)
7973 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
7974 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
7975 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
7976 * breakpoint.c (print_one_breakpoint_location)
7977 (print_one_breakpoint): Use ui_out_emit_tuple.
7978 * auto-load.c (print_script, info_auto_load_cmd): Use
7979 ui_out_emit_tuple.
7980 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
7981
9be21bb4
SM
79822017-04-21 Simon Marchi <simon.marchi@ericsson.com>
7983
7984 * thread.c (print_thread_info_1): Remove dead code.
7985
0d4c07af
JK
79862017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7987
7988 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
7989 GDB_SELF_TEST.
7990 * arm-tdep.c (selftests::arm_record_test): Likewise.
7991
4daf993d
YQ
79922017-04-21 Yao Qi <yao.qi@linaro.org>
7993
7994 * regcache.c (regcache_restore): Remove argument 2. Replace
7995 argument 3 with regcache. Get register status from
7996 src->register_status and get register contents from
7997 register_buffer (src, regnum).
7998 (regcache_cpy): Update.
7999
a6c21d4a
PA
80002017-04-19 Pedro Alves <palves@redhat.com>
8001
8002 * gdbthread.h (thread): Add missing closing parenthesis in
8003 comment.
8004
3a3fd0fd
PA
80052017-04-19 Pedro Alves <palves@redhat.com>
8006
8007 * common/refcounted-object.h: New file.
8008 * gdbthread.h: Include "common/refcounted-object.h".
8009 (thread_info): Inherit from refcounted_object and add comments.
8010 (thread_info::incref, thread_info::decref)
8011 (thread_info::m_refcount): Delete.
8012 (thread_info::deletable): Use the refcounted_object::refcount()
8013 method.
8014 * inferior.c (current_inferior_): Add comment.
8015 (set_current_inferior): Increment/decrement refcounts.
8016 (prune_inferiors, remove_inferior_command): Skip inferiors marked
8017 not-deletable instead of comparing with the current inferior.
8018 (initialize_inferiors): Increment the initial inferior's refcount.
8019 * inferior.h (struct inferior): Forward declare.
8020 Include "common/refcounted-object.h".
8021 (current_inferior, set_current_inferior): Move declaration to
8022 before struct inferior's definition, and fix comment.
8023 (inferior): Inherit from refcounted_object. Add comments.
8024 * thread.c (switch_to_thread_no_regs): Reference the thread's
8025 inferior pointer directly instead of doing a ptid lookup.
8026 (switch_to_no_thread): New function.
8027 (switch_to_thread(thread_info *)): New function, factored out
8028 from ...
8029 (switch_to_thread(ptid_t)): ... this.
8030 (restore_current_thread): Delete.
8031 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
8032 fields, and add 'inf' field.
8033 (do_restore_current_thread_cleanup): Check whether old->inf is
8034 alive instead of looking up an inferior by ptid. Use
8035 switch_to_thread and switch_to_no_thread.
8036 (restore_current_thread_cleanup_dtor): Use old->inf directly
8037 instead of lookup up an inferior by id. Decref the inferior.
8038 Don't restore 'removable'.
8039 (make_cleanup_restore_current_thread): Same the inferior pointer
8040 in old, instead of the inferior number. Incref the inferior.
8041 Don't save/clear 'removable'.
8042
9bcb1f16
PA
80432017-04-19 Pedro Alves <palves@redhat.com>
8044
8045 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8046 unittests/scoped_restore-selftests.c.
8047 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
8048 * common/scoped_restore.h (scoped_restore_base): Make "class".
8049 (scoped_restore_base::release): New public method.
8050 (scoped_restore_base::scoped_restore_base): New protected ctor.
8051 (scoped_restore_base::m_saved_var): New protected field.
8052 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
8053 scoped_restore_base base class instead of m_saved_var directly.
8054 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
8055 (scoped_restore_tmpl::scoped_restore_tmpl(const
8056 scoped_restore_tmpl<T>&)): Likewise.
8057 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
8058 method.
8059 (scoped_restore_tmpl::saved_var): New method.
8060 (scoped_restore_tmpl::m_saved_var): Delete.
8061 * inferior.h (inferior::detaching): Now a bool.
8062 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
8063 cleanup.
8064 * unittests/scoped_restore-selftests.c: New file.
8065
26fcd539
PA
80662017-04-19 Pedro Alves <palves@redhat.com>
8067
8068 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
8069 Re-sort in alphabetic order.
8070
fdd243b0
PA
80712017-04-18 Pedro Alves <palves@redhat.com>
8072
8073 * xml-support.c (obstack_xml_printf): Delete.
8074 * xml-support.h (obstack_xml_printf): Delete.
8075
4895cde2
PA
80762017-04-18 Pedro Alves <palves@redhat.com>
8077
8078 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
8079 vdebug, verror, body_text, start_element, end_element, name,
8080 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
8081 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
8082 is_xinclude>: Make private and add m_ prefix.
8083 (gdb_xml_parser::body_text): New method, based on ...
8084 (gdb_xml_body_text): ... this. Adjust.
8085 (gdb_xml_parser::vdebug): New method, based on ...
8086 (gdb_xml_debug): ... this. Adjust.
8087 (gdb_xml_parser::verror): New method, based on ...
8088 (gdb_xml_error): ... this. Adjust.
8089 (gdb_xml_parser::start_element): New method, based on ...
8090 (gdb_xml_start_element): ... this. Adjust.
8091 (gdb_xml_start_element_wrapper): Defer to
8092 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
8093 (gdb_xml_parser::end_element): New method, based on ...
8094 (gdb_xml_end_element_wrapper): ... this. Adjust.
8095 (gdb_xml_parser::~gdb_xml_parser): Adjust.
8096 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
8097 (gdb_xml_parser::use_dtd): New method, based on ...
8098 (gdb_xml_use_dtd): ... this. Adjust.
8099 (gdb_xml_parser::parse): New method, based on ...
8100 (gdb_xml_parse): ... this. Adjust.
8101 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
8102 (xinclude_start_include): Adjust to call the parser's name method.
8103 (xml_xinclude_default, xml_xinclude_start_doctype)
8104 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
8105 method.
8106 (xml_process_xincludes): Adjust to call parser methods.
8107 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
8108 declarations.
8109
bd8a901f
PA
81102017-04-18 Pedro Alves <palves@redhat.com>
8111
8112 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
8113 gdb::optional<std::string>.
8114 * xml-support.c: Include <string>.
8115 (scope_level::scope_level(scope_level &&))
8116 (scope_level::~scope_level): Delete.
8117 (scope_level::body): Now a std::string.
8118 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
8119 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
8120 parameter.
8121 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
8122 (xinclude_parsing_data::output): Now a std::string reference.
8123 (xinclude_start_include): Adjust.
8124 (xml_xinclude_default): Adjust.
8125 (xml_process_xincludes): Add 'output' parameter, and return bool.
8126 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
8127 and return bool.
8128 * xml-tdesc.c: Include <unordered_map> and <string>.
8129 (tdesc_xml_cache): Delete.
8130 (tdesc_xml_cache_s): Delete.
8131 (xml_cache): Now an std::unordered_map.
8132 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
8133 (target_fetch_description_xml): Change return type to
8134 gdb::optional<std::string>, and adjust.
8135 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
8136 (target_fetch_description_xml): Change return type to
8137 gdb::optional<std::string>.
8138
d35d1958
PA
81392017-04-18 Pedro Alves <palves@redhat.com>
8140
8141 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8142 unittests/optional-selftests.c.
8143 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
8144 * unittests/optional-selftests.c: New file.
8145 * unittests/optional/assignment/1.cc: New file.
8146 * unittests/optional/assignment/2.cc: New file.
8147 * unittests/optional/assignment/3.cc: New file.
8148 * unittests/optional/assignment/4.cc: New file.
8149 * unittests/optional/assignment/5.cc: New file.
8150 * unittests/optional/assignment/6.cc: New file.
8151 * unittests/optional/assignment/7.cc: New file.
8152 * unittests/optional/cons/copy.cc: New file.
8153 * unittests/optional/cons/default.cc: New file.
8154 * unittests/optional/cons/move.cc: New file.
8155 * unittests/optional/cons/value.cc: New file.
8156 * unittests/optional/in_place.cc: New file.
8157 * unittests/optional/observers/1.cc: New file.
8158 * unittests/optional/observers/2.cc: New file.
8159
22796e97
PA
81602017-04-18 Pedro Alves <palves@redhat.com>
8161
8162 * common/gdb_optional.h: Include common/traits.h.
8163 (in_place_t): New type.
8164 (in_place): New constexpr variable.
8165 (optional::optional): Remove member initialization of
8166 m_instantiated.
8167 (optional::optional(in_place_t...)): New constructor.
8168 (optional::~optional): Use reset.
8169 (optional::optional(const optional&)): New.
8170 (optional::optional(const optional&&)): New.
8171 (optional::optional(T &)): New.
8172 (optional::optional(T &&)): New.
8173 (operator::operator=(const optional &)): New.
8174 (operator::operator=(optional &&)): New.
8175 (operator::operator= (const T &))
8176 (operator::operator= (T &&))
8177 (operator::emplace (Args &&... args)): Return a T&. Use reset.
8178 (operator::reset): New.
8179 (operator::m_instantiated):: Add in-class initializer.
8180 * common/traits.h: Include <type_traits>.
8181 (struct And): New types.
8182
a7fc9b61
PA
81832017-04-18 Pedro Alves <palves@redhat.com>
8184
8185 * xml-support.c: Include <vector>.
8186 (scope_level::scope_level(const gdb_xml_element *))
8187 (scope_level::scope_level(scope_level&&)): New.
8188 (scope_level::~scope_level): New.
8189 (scope_level_s): Delete.
8190 (gdb_xml_parser::scopes): Now a std::vector.
8191 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
8192 Use std::vector.
8193 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
8194 scope cleanup code.
8195 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
8196 of the scopes member. Use std::vector::emplace_back.
8197
010151c9
PA
81982017-04-18 Pedro Alves <palves@redhat.com>
8199
8200 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
8201 a bool.
8202 (gdb_xml_end_element): Change type of first parameter.
8203 (gdb_xml_cleanup): Rename to ...
8204 (gdb_xml_parser::~gdb_xml_parser): ... this.
8205 (gdb_xml_create_parser_and_cleanup): Delete with ...
8206 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
8207 to this new ctor.
8208 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
8209 using gdb_xml_create_parser_and_cleanup.
8210 (xinclude_parsing_data): Add ctor/dtor.
8211 (xml_xinclude_cleanup): Delete.
8212 (xml_process_xincludes): Create a local xinclude_parsing_data
8213 instead of heap-allocating one. Create a local gdb_xml_parser
8214 instead of heap-allocating one with
8215 gdb_xml_create_parser_and_cleanup.
8216
d56060f0
JB
82172017-04-18 John Baldwin <jhb@FreeBSD.org>
8218
8219 PR threads/20743
8220 * fbsd-nat.c (resume_one_thread_cb): Remove.
8221 (resume_all_threads_cb): Remove.
8222 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
8223 iterate_over_threads.
8224
305d16a9
JB
82252017-04-17 Joel Brobecker <brobecker@adacore.com>
8226
8227 * NEWS: Create a new section for the next release branch.
8228 Rename the section of the current branch, now that it has
8229 been cut.
8230
8bb57231
JB
82312017-04-17 Joel Brobecker <brobecker@adacore.com>
8232
8233 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
8234 * version.in: Bump version to 8.0.50.DATE-git.
8235
096c92dd
SDJ
82362017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
8237
8238 PR gdb/21385
8239 * windows-nat.c (windows_create_inferior): Declare 'allargs'
8240 independently of the host, and fix build breakage on Cygwin.
8241
0550c955
PA
82422017-04-13 Pedro Alves <palves@redhat.com>
8243
8244 * inferior.c (free_inferior): Convert to ...
8245 (inferior::~inferior): ... this dtor.
8246 (inferior::inferior): New ctor, factored out from ...
8247 (add_inferior_silent): ... here. Allocate the inferior with a new
8248 expression.
8249 (delete_inferior): Call delete instead of free_inferior.
8250 * inferior.h (gdb_environ, continuation): Forward declare.
8251 (inferior): Now a class. Add in-class initialization to all
8252 members. Make boolean fields bool, except 'detaching'.
8253 (inferior::inferior): New explicit ctor.
8254 (inferior::~inferior): New.
8255
e3d60dfc
PA
82562017-04-13 Pedro Alves <palves@redhat.com>
8257
8258 * inferior.c (init_inferior_list): Delete.
8259 * inferior.h (init_inferior_list): Delete.
8260
5fd69d0a
PA
82612017-04-13 Pedro Alves <palves@redhat.com>
8262
8263 PR threads/13217
8264 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
8265 (top level): Call it twice, with different thread sets.
8266
c6609450
PA
82672017-04-13 Pedro Alves <palves@redhat.com>
8268
8269 * thread.c: Include <algorithm>.
8270 (thread_array_cleanup): Delete.
8271 (scoped_inc_dec_ref): New class.
8272 (live_threads_count): New function.
8273 (set_thread_refcount): Delete.
8274 (tp_array_compar_ascending): Now a bool.
8275 (tp_array_compar): Convert to a std::sort comparison function.
8276 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
8277 and live_threads_count.
8278
2a00d7ce
PA
82792017-04-13 Pedro Alves <palves@redhat.com>
8280
8281 * infrun.c (follow_fork_inferior): Also switch the current
8282 inferior.
8283
441d7c93
PA
82842017-04-13 Pedro Alves <palves@redhat.com>
8285
8286 * breakpoint.c (watch_command_1): Save watchpoint-frame info
8287 before calling create_internal_breakpoint.
8288
808480f6
PA
82892017-04-13 Pedro Alves <palves@redhat.com>
8290
8291 * fork-child.c (execv_argv): New class.
8292 (breakup_args): Refactored as ...
8293 (execv_argv::init_for_no_shell): .. this method of execv_argv.
8294 Copy arguments to storage and replace separators with NULL
8295 terminators in place.
8296 (escape_bang_in_quoted_argument): Adjust to return bool.
8297 (execv_argv::execv_argv): New ctor.
8298 (execv_argv::init_for_shell): New method, factored out from
8299 fork_inferior. Don't strdup strings into the vector.
8300 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
8301 Remove free_vector_argv call.
8302
ad3d022a
YQ
83032017-04-13 Yao Qi <yao.qi@linaro.org>
8304
8305 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
8306 tdep->rx_psw_type.
8307
e6ddc3bf
YQ
83082017-04-13 Yao Qi <yao.qi@linaro.org>
8309
8310 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
8311 * rx-tdep.c (rx_gdbarch_init): Likewise.
8312
bfb8cf90
PA
83132017-04-13 Pedro Alves <palves@redhat.com>
8314
8315 * breakpoint.h (struct breakpoint): Reindent.
8316
f5336ca5
PA
83172017-04-13 Pedro Alves <palves@redhat.com>
8318
8319 * breakpoint.c (bp_location): Rename to ...
8320 (bp_locations): ... this. All references updated.
8321 (bp_location_count): Rename to ...
8322 (bp_locations_count): ... this. All references updated.
8323 (bp_location_placed_address_before_address_max): Rename to ...
8324 (bp_locations_placed_address_before_address_max): ... this. All
8325 references updated.
8326 (bp_location_shadow_len_after_address_max): Rename to ...
8327 (bp_locations_shadow_len_after_address_max): ... this. All
8328 references updated.
8329 (bp_location_compare_addrs): Rename to ...
8330 (bp_locations_compare_addrs): ... this. All references updated.
8331 (bp_location_compare):Rename to ...
8332 (bp_locations_compare): ... this. All references updated.
8333 (bp_location_target_extensions_update): Rename to ...
8334 (bp_locations_target_extensions_update): ... this. All references
8335 updated.
8336
be628ab8
SDJ
83372017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
8338
8339 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
8340 * common/common.m4: Check headers 'termios.h', 'termio.h' and
8341 'sgtty.h'.
8342 * common/gdb_termios.h: New file, with parts of "terminal.h".
8343 * inflow.c: Include "gdb_termios.h".
8344 * ser-unix.c: Include "gdb_termios.h".
8345 * terminal.h: Move terminal-related defines to
8346 "common/gdb_termios.h".
8347
8e9e35b1
TT
83482017-04-12 Tom Tromey <tom@tromey.com>
8349
8350 * probe.c (parse_probes): Update.
8351 * location.h (delete_event_location): Don't declare.
8352 (event_location_deleter::operator()): Update.
8353 * location.c (event_location_deleter::operator()): Rename from
8354 delete_event_location.
8355 * linespec.h (linespec_result) <location>: Change type to
8356 event_location_up.
8357 * linespec.c (canonicalize_linespec, event_location_to_sals)
8358 (decode_objc): Update.
8359 (linespec_result): Don't call delete_event_location.
8360 * breakpoint.c (create_breakpoints_sal)
8361 (bkpt_probe_create_sals_from_location)
8362 (strace_marker_create_sals_from_location): Update.
8363
16e802b9
TT
83642017-04-12 Tom Tromey <tom@tromey.com>
8365
8366 * linespec.h (struct linespec_result): Add constructor and
8367 destructor.
8368 (init_linespec_result, destroy_linespec_result)
8369 (make_cleanup_destroy_linespec_result): Don't declare.
8370 * linespec.c (init_linespec_result): Remove.
8371 (linespec_result::~linespec_result): Rename from
8372 destroy_linespec_result. Update.
8373 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
8374 Remove.
8375 * breakpoint.c (create_breakpoint, break_range_command)
8376 (decode_location_default): Update.
8377 * ax-gdb.c (agent_command_1): Update.
8378
d28cd78a
TT
83792017-04-12 Tom Tromey <tom@tromey.com>
8380
8381 * remote.c (remote_download_tracepoint): Update.
8382 * python/py-breakpoint.c (bppy_get_location): Update.
8383 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
8384 (gdbscm_breakpoint_location): Update.
8385 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
8386 * breakpoint.h (struct breakpoint) <location, location_range_end>:
8387 Change type to event_location_up.
8388 * breakpoint.c (create_overlay_event_breakpoint)
8389 (create_longjmp_master_breakpoint)
8390 (create_std_terminate_master_breakpoint)
8391 (create_exception_master_breakpoint)
8392 (breakpoint_event_location_empty_p, print_breakpoint_location)
8393 (print_one_breakpoint_location, create_thread_event_breakpoint)
8394 (init_breakpoint_sal, create_breakpoint)
8395 (print_recreate_ranged_breakpoint, break_range_command)
8396 (init_ada_exception_breakpoint, say_where): Update.
8397 (base_breakpoint_dtor): Don't call delete_event_location.
8398 (bkpt_print_recreate, tracepoint_print_recreate)
8399 (dprintf_print_recreate, update_static_tracepoint)
8400 (breakpoint_re_set_default): Update.
8401
711799d5
TT
84022017-04-12 Tom Tromey <tom@tromey.com>
8403
8404 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
8405 type of "to_do". Update.
8406 (compute_stack_depth): Use std::vector.
8407
52d214d3
TT
84082017-04-12 Tom Tromey <tom@tromey.com>
8409
8410 * printcmd.c (find_instruction_backward): Use std::vector.
8411
4c404b8b
TT
84122017-04-12 Tom Tromey <tom@tromey.com>
8413
8414 * symfile.c (objfilep): Remove typedef.
8415 (reread_symbols): Use a std::vector.
8416
156d9eab
TT
84172017-04-12 Tom Tromey <tom@tromey.com>
8418
8419 * mi/mi-main.c (exec_direction_forward): Remove.
8420 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
8421 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
8422 scoped_restore.
8423 * guile/guile.c (guile_repl_command, guile_command)
8424 (gdbscm_execute_gdb_command): Use scoped_restore.
8425 * go-exp.y (go_parse): Use scoped_restore.
8426 * d-exp.y (d_parse): Use scoped_restore.
8427 * cli/cli-decode.c (cmd_func): Use scoped_restore.
8428 * c-exp.y (c_parse): Use scoped_restore.
8429
4d89769a
TT
84302017-04-12 Tom Tromey <tom@tromey.com>
8431
8432 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
8433 (mi_parse): Update return type.
8434 (mi_parse_free): Remove.
8435 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
8436 (mi_parse::~mi_parse): Rename from mi_parse_free.
8437 (mi_parse_cleanup): Remove.
8438 (mi_parse): Return a unique_ptr. Use new.
8439 * mi/mi-main.c (mi_execute_command): Update.
8440
4b217cc7
TT
84412017-04-12 Tom Tromey <tom@tromey.com>
8442
8443 * location.c (explicit_location_lex_one): Return a
8444 unique_xmalloc_ptr.
8445 (string_to_explicit_location): Update. Remove cleanups.
8446
59d3651b
TT
84472017-04-12 Tom Tromey <tom@tromey.com>
8448
8449 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
8450 (compare_value_and_voffset): Change type. Update.
8451 (compute_vtable_size): Change type of "offset_vec".
8452 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
8453 (gnuv3_get_typeid): Remove extraneous declaration.
8454
b24b0d6c
TT
84552017-04-12 Tom Tromey <tom@tromey.com>
8456
8457 * charset.h (wchar_iterator): Fix comment.
8458
80a3b8c5
TT
84592017-04-12 Tom Tromey <tom@tromey.com>
8460
8461 * charset.c (iconv_wrapper): New class.
8462 (cleanup_iconv): Remove.
8463 (convert_between_encodings): Use it.
8464
c83dd867
TT
84652017-04-12 Tom Tromey <tom@tromey.com>
8466
8467 * symfile.h (increment_reading_symtab): Update type.
8468 * symfile.c (decrement_reading_symtab): Remove.
8469 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
8470 * psymtab.c (psymtab_to_symtab): Update.
8471 * dwarf2read.c (dw2_instantiate_symtab): Update.
8472
0e8621a0
TT
84732017-04-12 Tom Tromey <tom@tromey.com>
8474
8475 * jit.c (struct jit_reader): Declare separately. Add constructor
8476 and destructor. Change type of "handle".
8477 (loaded_jit_reader): Define separately.
8478 (jit_reader_load): Update. New "new".
8479 (jit_reader_unload_command): Use "delete".
8480 * gdb-dlfcn.h (struct dlclose_deleter): New.
8481 (gdb_dlhandle_up): New typedef.
8482 (gdb_dlopen, gdb_dlsym): Update types.
8483 (gdb_dlclose): Remove.
8484 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
8485 (gdb_dlsym): Change type of "handle".
8486 (make_cleanup_dlclose): Remove.
8487 (dlclose_deleter::operator()): Rename from gdb_dlclose.
8488 * compile/compile-c-support.c (load_libcc): Update.
8489
67d89901
TT
84902017-04-12 Tom Tromey <tom@tromey.com>
8491
8492 * symtab.h (find_pcs_for_symtab_line): Change return type.
8493 * symtab.c (find_pcs_for_symtab_line): Change return type.
8494 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
8495 type of "vec". Update.
8496 (ltpy_get_pcs_for_line): Update.
8497 * linespec.c (decode_digits_ordinary): Update.
8498
93921405
TT
84992017-04-12 Tom Tromey <tom@tromey.com>
8500
8501 * tracepoint.c (actions_command): Update.
8502 * python/python.c (python_command, python_interactive_command):
8503 Update.
8504 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
8505 * guile/guile.c (guile_command): Update.
8506 * defs.h (read_command_lines, read_command_lines_1): Return
8507 command_line_up.
8508 (command_lines_deleter): New struct.
8509 (command_line_up): New typedef.
8510 * compile/compile.c (compile_code_command)
8511 (compile_print_command): Update.
8512 * cli/cli-script.h (get_command_line, copy_command_lines): Return
8513 command_line_up.
8514 (make_cleanup_free_command_lines): Remove.
8515 * cli/cli-script.c (get_command_line, read_command_lines_1)
8516 (copy_command_lines): Return command_line_up.
8517 (while_command, if_command, read_command_lines, define_command)
8518 (document_command): Update.
8519 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
8520 Remove.
8521 * breakpoint.h (breakpoint_set_commands): Change type of
8522 "commands".
8523 * breakpoint.c (breakpoint_set_commands): Change type of
8524 "commands". Update.
8525 (do_map_commands_command, update_dprintf_command_list)
8526 (create_tracepoint_from_upload): Update.
8527
ffc2605c
TT
85282017-04-12 Tom Tromey <tom@tromey.com>
8529
8530 * tracepoint.c (scope_info): Update.
8531 * spu-tdep.c (spu_catch_start): Update.
8532 * python/python.c (gdbpy_decode_line): Update.
8533 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
8534 * python/py-breakpoint.c (bppy_init): Update.
8535 * probe.c (parse_probes): Update.
8536 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
8537 * location.h (event_location_deleter): New struct.
8538 (event_location_up): New typedef.
8539 (new_linespec_location, new_address_location, new_probe_location)
8540 (new_explicit_location, copy_event_location)
8541 (string_to_event_location, string_to_event_location_basic)
8542 (string_to_explicit_location): Update return type.
8543 (make_cleanup_delete_event_location): Remove.
8544 * location.c (new_linespec_location, new_address_location)
8545 (new_probe_location, new_explicit_location, copy_event_location):
8546 Return event_location_up.
8547 (delete_event_location_cleanup)
8548 (make_cleanup_delete_event_location): Remove.
8549 (string_to_explicit_location, string_to_event_location_basic)
8550 (string_to_event_location): Return event_location_up.
8551 * linespec.c (canonicalize_linespec, event_location_to_sals)
8552 (decode_line_with_current_source)
8553 (decode_line_with_last_displayed, decode_objc): Update.
8554 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8555 * completer.c (location_completer): Update.
8556 * cli/cli-cmds.c (edit_command, list_command): Update.
8557 * breakpoint.c (create_overlay_event_breakpoint)
8558 (create_longjmp_master_breakpoint)
8559 (create_std_terminate_master_breakpoint)
8560 (create_exception_master_breakpoint)
8561 (create_thread_event_breakpoint): Update.
8562 (init_breakpoint_sal): Update. Remove some dead code.
8563 (create_breakpoint_sal): Change type of "location". Update.
8564 (create_breakpoints_sal, create_breakpoint, break_command_1)
8565 (dprintf_command, break_range_command, until_break_command)
8566 (init_ada_exception_breakpoint)
8567 (strace_marker_create_sals_from_location)
8568 (update_static_tracepoint, trace_command, ftrace_command)
8569 (strace_command, create_tracepoint_from_upload): Update.
8570 * break-catch-throw.c (re_set_exception_catchpoint): Update.
8571 * ax-gdb.c (agent_command_1): Update.
8572
8f10c932
PA
85732017-04-12 Pedro Alves <palves@redhat.com>
8574
8575 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
8576 * configure.tgt: Handle i[34567]86-*-go32* and
8577 i[34567]86-*-msdosdjgpp*.
8578 * i386-tdep.c (i386_svr4_reg_to_regnum):
8579 Make extern.
8580 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
8581 i386-go32-tdep.c.
8582 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
8583 * i386-go32-tdep.c: New file.
8584 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
8585 declarations.
8586
0a31ccfb
SM
85872017-04-12 Simon Marchi <simon.marchi@ericsson.com>
8588
8589 * aix-thread.c (pd_status2str): Change return type to const char *.
8590
e9bb3fbb
PA
85912017-04-12 Pedro Alves <palves@redhat.com>
8592
8593 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
8594 calls to set_gdbarch_gnu_triplet_regexp.
8595
53375380
PA
85962017-04-12 Pedro Alves <palves@redhat.com>
8597
8598 PR gdb/21323
8599 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
8600 New enum value.
8601 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
8602 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
8603 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
8604 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
8605 * gdbarch.h, gdbarch.c: Regenerate.
8606 * aarch64-tdep.c (aarch64_gdbarch_init): Override
8607 gdbarch_wchar_bit and gdbarch_wchar_signed.
8608 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
8609 * arm-tdep.c (arm_gdbarch_init): Likewise.
8610 * avr-tdep.c (avr_gdbarch_init): Likewise.
8611 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
8612 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
8613 * i386-tdep.c (i386_go32_init_abi): Likewise.
8614 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8615 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8616 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
8617 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
8618 * sh-tdep.c (sh_gdbarch_init): Likewise.
8619 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8620 * sparc64-tdep.c (sparc64_init_abi): Likewise.
8621 * windows-tdep.c (windows_init_abi): Likewise.
8622 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
8623
53e710ac
PA
86242017-04-12 Pedro Alves <palves@redhat.com>
8625
8626 PR c++/21323
8627 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
8628 cplus_primitive_type_char32_t>: New enum values.
8629 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
8630 and cplus_primitive_type_char32_t.
8631 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
8632 32, use the archtecture's built-in type for char16_t and char32_t,
8633 respectively. Otherwise, fallback to init_integer_type as before,
8634 but make the type unsigned, and issue a complaint.
8635 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
8636
ab0538b8
AH
86372017-04-12 Alan Hayward <alan.hayward@arm.com>
8638
5e0e0422 8639 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
8640 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
8641
5430098f
SDJ
86422017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
8643
8644 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
8645 'const char *'.
8646
7c5ded6a
SDJ
86472017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
8648
8649 * common/common-utils.c (free_vector_argv): New function.
8650 * common/common-utils.h: Include <vector>.
8651 (free_vector_argv): New prototype.
8652 * darwin-nat.c (darwin_create_inferior): Rewrite function
8653 prototype in order to constify "exec_file" and accept a
8654 "std::string" for "allargs".
8655 * fork-child.c: Include <vector>.
8656 (breakup_args): Rewrite function, using C++.
8657 (fork_inferior): Rewrite function header, constify "exec_file_arg"
8658 and accept "std::string" for "allargs". Update the code to
8659 calculate "argv" based on "allargs". Update calls to "exec_fun"
8660 and "execvp".
8661 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
8662 order to constify "exec_file" and accept a "std::string" for
8663 "allargs".
8664 * go32-nat.c (go32_create_inferior): Likewise.
8665 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
8666 * infcmd.c (run_command_1): Constify "exec_file". Use
8667 "std::string" for inferior arguments.
8668 * inferior.h (fork_inferior): Update prototype.
8669 * linux-nat.c (linux_nat_create_inferior): Rewrite function
8670 prototype in order to constify "exec_file" and accept a
8671 "std::string" for "allargs".
8672 * nto-procfs.c (procfs_create_inferior): Likewise.
8673 * procfs.c (procfs_create_inferior): Likewise.
8674 * remote-sim.c (gdbsim_create_inferior): Likewise.
8675 * remote.c (extended_remote_run): Update code to accept
8676 "std::string" as argument.
8677 (extended_remote_create_inferior): Rewrite function prototype in
8678 order to constify "exec_file" and accept a "std::string" for
8679 "allargs".
8680 * rs6000-nat.c (super_create_inferior): Likewise.
8681 (rs6000_create_inferior): Likewise.
8682 * target.h (struct target_ops) <to_create_inferior>: Likewise.
8683 * windows-nat.c (windows_create_inferior): Likewise.
8684
ae0eee42
PA
86852017-04-11 Pedro Alves <palves@redhat.com>
8686
8687 * thread.c: Fix whitespace throughout.
8688
a6acac06
PR
86892017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
8690
8691 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
8692
64403bd1
AH
86932017-04-11 Alan Hayward <alan.hayward@arm.com>
8694
8695 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
8696
a5bef50f
SDJ
86972017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
8698
8699 PR gdb/21364
8700 * osdata.c (info_osdata): Check if 'type' is an empty string
8701 instead of NULL.
8702
9295a5a9
PA
87032017-04-10 Pedro Alves <palves@redhat.com>
8704
8705 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
8706 (ptid_to_global_thread_id, in_thread_list)
8707 (do_captured_list_thread_ids, set_resumed, set_running)
8708 (set_executing, set_stop_requested, finish_thread_state)
8709 (validate_registers_access, can_access_registers_ptid)
8710 (print_thread_info_1, switch_to_thread)
8711 (do_restore_current_thread_cleanup)
8712 (make_cleanup_restore_current_thread, thread_command)
8713 (thread_name_command): Use operator== instead of ptid_equal.
8714
996812e3
PA
87152017-04-10 Pedro Alves <palves@redhat.com>
8716
8717 * thread.c (struct current_thread_cleanup) <next>: Delete field.
8718 (current_thread_cleanup_chain): Delete.
8719 (restore_current_thread_cleanup_dtor)
8720 (make_cleanup_restore_current_thread): Remove references to
8721 current_thread_cleanup_chain.
8722
845b344f
AH
87232017-04-10 Alan Hayward <alan.hayward@arm.com>
8724
8725 * msp430-tdep.c (msp430_pseudo_register_read): Never return
8726 REG_UNKNOWN.
8727
803bdfe4
YQ
87282017-04-10 Yao Qi <yao.qi@linaro.org>
8729
8730 PR gdb/19942
8731 * gdbthread.h (thread_info::deletable): New method.
8732 (thread_info::incref): New method.
8733 (thread_info::decref): New method.
8734 (thread_info::refcount): Move it to private.
8735 * infrun.c (save_stop_context): Call inc_refcount.
8736 (release_stop_context_cleanup): Likewise.
8737 * thread.c (set_thread_exited): New function.
8738 (init_thread_list): Delete "tp" only it is deletable, otherwise
8739 call set_thread_exited.
8740 (delete_thread_1): Call set_thread_exited.
8741 (current_thread_cleanup) <inferior_pid>: Remove.
8742 <thread>: New field.
8743 (restore_current_thread_ptid_changed): Removed.
8744 (do_restore_current_thread_cleanup): Adjust.
8745 (restore_current_thread_cleanup_dtor): Don't call
8746 find_thread_ptid.
8747 (set_thread_refcount): Use dec_refcount.
8748 (make_cleanup_restore_current_thread): Adjust.
8749 (thread_apply_all_command): Call inc_refcount.
8750 (_initialize_thread): Don't call
8751 observer_attach_thread_ptid_changed.
8752
8c25b497
YQ
87532017-04-10 Yao Qi <yao.qi@linaro.org>
8754
8755 * thread.c (delete_thread_1): Hoist code on marking thread as
8756 exited.
8757
8473b447
SM
87582017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8759
8760 * windows-nat.c (windows_detach): Initialize ptid with
8761 minus_one_ptid.
8762
6670ec13
SM
87632017-04-07 Simon Marchi <simon.marchi@ericsson.com>
8764
8765 * unittests/ptid-selftests.c: Fix erroneous assert messages.
8766
ba2f91bb
AH
87672017-04-07 Alan Hayward <alan.hayward@arm.com>
8768
8769 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
8770 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
8771 (bfin_pseudo_register_write): Likewise
8772
436252de
SM
87732017-04-06 Simon Marchi <simon.marchi@ericsson.com>
8774
8775 * common/ptid.h (struct ptid): Change to...
8776 (class ptid_t): ... this.
8777 <ptid_t>: New constructors.
8778 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
8779 matches>: New methods.
8780 <make_null, make_minus_one>: New static methods.
8781 <pid>: Rename to...
8782 <m_pid>: ...this.
8783 <lwp>: Rename to...
8784 <m_lwp>: ...this.
8785 <tid>: Rename to...
8786 <m_tid>: ...this.
8787 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
8788 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
8789 as references, move comment to class ptid_t.
8790 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
8791 ptid_t static methods.
8792 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
8793 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
8794 Take ptid arguments as references, implement using ptid_t methods.
8795 * unittests/ptid-selftests.c: New file.
8796 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8797 unittests/ptid-selftests.c.
8798 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
8799
0dedf377
TP
88002017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
8801
8802 * python/python.c (python_run_simple_file): Cast mode literal to
8803 non-const char pointer as expected by PyFile_FromString.
8804
4e9868d4
SM
88052017-04-05 Simon Marchi <simon.marchi@ericsson.com>
8806
8807 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
8808 minus_one_ptid and null_ptid.
8809
9bf2a700
PA
88102017-04-05 Pedro Alves <palves@redhat.com>
8811
8812 * warning.m4 (build_warnings): Remove -Wno-write-strings.
8813 * configure: Regenerate.
8814
a121b7c1
PA
88152017-04-05 Pedro Alves <palves@redhat.com>
8816
8817 * ada-exp.y (yyerror): Constify.
8818 * ada-lang.c (bound_name, get_selections)
8819 (ada_variant_discrim_type)
8820 (ada_variant_discrim_name, ada_value_struct_elt)
8821 (ada_lookup_struct_elt_type, is_unchecked_variant)
8822 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
8823 (catch_ada_exception_command_split)
8824 (catch_ada_assert_command_split, catch_assert_command)
8825 (ada_op_name): Constify.
8826 * ada-lang.h (ada_yyerror, get_selections)
8827 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
8828 * arc-tdep.c (arc_print_frame_cache): Constify.
8829 * arm-tdep.c (arm_skip_stub): Constify.
8830 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
8831 (gen_aggregate_elt_ref): Constify.
8832 * bcache.c (print_bcache_statistics): Constify.
8833 * bcache.h (print_bcache_statistics): Constify.
8834 * break-catch-throw.c (catch_exception_command_1):
8835 * breakpoint.c (struct ep_type_description::description):
8836 Constify.
8837 (add_solib_catchpoint): Constify.
8838 (catch_fork_command_1): Add cast.
8839 (add_catch_command): Constify.
8840 * breakpoint.h (add_catch_command, add_solib_catchpoint):
8841 Constify.
8842 * bsd-uthread.c (bsd_uthread_state): Constify.
8843 * buildsym.c (patch_subfile_names): Constify.
8844 * buildsym.h (next_symbol_text_func, patch_subfile_names):
8845 Constify.
8846 * c-exp.y (yyerror): Constify.
8847 (token::oper): Constify.
8848 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
8849 * c-varobj.c (cplus_describe_child): Constify.
8850 * charset.c (find_charset_names): Add cast.
8851 (find_charset_names): Constify array and add const_cast.
8852 * cli/cli-cmds.c (complete_command, cd_command): Constify.
8853 (edit_command): Constify.
8854 * cli/cli-decode.c (lookup_cmd): Constify.
8855 * cli/cli-dump.c (dump_memory_command, dump_value_command):
8856 Constify.
8857 (struct dump_context): Constify.
8858 (add_dump_command, restore_command): Constify.
8859 * cli/cli-script.c (get_command_line): Constify.
8860 * cli/cli-script.h (get_command_line): Constify.
8861 * cli/cli-utils.c (check_for_argument): Constify.
8862 * cli/cli-utils.h (check_for_argument): Constify.
8863 * coff-pe-read.c (struct read_pe_section_data): Constify.
8864 * command.h (lookup_cmd): Constify.
8865 * common/print-utils.c (decimal2str): Constify.
8866 * completer.c (gdb_print_filename): Constify.
8867 * corefile.c (set_gnutarget): Constify.
8868 * cp-name-parser.y (yyerror): Constify.
8869 * cp-valprint.c (cp_print_class_member): Constify.
8870 * cris-tdep.c (cris_register_name, crisv32_register_name):
8871 Constify.
8872 * d-exp.y (yyerror): Constify.
8873 (struct token::oper): Constify.
8874 * d-lang.h (d_yyerror): Constify.
8875 * dbxread.c (struct header_file_location::name): Constify.
8876 (add_old_header_file, add_new_header_file, last_function_name)
8877 (dbx_next_symbol_text, add_bincl_to_list)
8878 (find_corresponding_bincl_psymtab, set_namestring)
8879 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
8880 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
8881 * defs.h (command_line_input, print_address_symbolic)
8882 (deprecated_readline_begin_hook): Constify.
8883 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
8884 Constify.
8885 * event-top.c (handle_line_of_input): Constify and add cast.
8886 * exceptions.c (catch_errors): Constify.
8887 * exceptions.h (catch_errors): Constify.
8888 * expprint.c (print_subexp_standard, op_string, op_name)
8889 (op_name_standard, dump_raw_expression, dump_raw_expression):
8890 * expression.h (op_name, op_string, dump_raw_expression):
8891 Constify.
8892 * f-exp.y (yyerror): Constify.
8893 (struct token::oper): Constify.
8894 (struct f77_boolean_val::name): Constify.
8895 * f-lang.c (f_word_break_characters): Constify.
8896 * f-lang.h (f_yyerror): Constify.
8897 * fork-child.c (fork_inferior): Add cast.
8898 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
8899 (new_variant): Constify.
8900 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
8901 * gdbarch.c: Regenerate.
8902 * gdbcore.h (set_gnutarget): Constify.
8903 * go-exp.y (yyerror): Constify.
8904 (token::oper): Constify.
8905 * go-lang.h (go_yyerror): Constify.
8906 * go32-nat.c (go32_sysinfo): Constify.
8907 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
8908 * guile/scm-cmd.c (cmdscm_function): Constify.
8909 * guile/scm-param.c (pascm_param_value): Constify.
8910 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
8911 (h8300sx_register_name): Constify.
8912 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
8913 Constify.
8914 * ia64-tdep.c (ia64_register_names): Constify.
8915 * infcmd.c (construct_inferior_arguments): Constify.
8916 (path_command, attach_post_wait): Constify.
8917 * language.c (show_range_command, show_case_command)
8918 (unk_lang_error): Constify.
8919 * language.h (language_defn::la_error)
8920 (language_defn::la_name_of_this): Constify.
8921 * linespec.c (decode_line_2): Constify.
8922 * linux-thread-db.c (thread_db_err_str): Constify.
8923 * lm32-tdep.c (lm32_register_name): Constify.
8924 * m2-exp.y (yyerror): Constify.
8925 * m2-lang.h (m2_yyerror): Constify.
8926 * m32r-tdep.c (m32r_register_names): Constify and make static.
8927 * m68hc11-tdep.c (m68hc11_register_names): Constify.
8928 * m88k-tdep.c (m88k_register_name): Constify.
8929 * macroexp.c (appendmem): Constify.
8930 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
8931 (upgrade_type, parse_external, parse_partial_symbols)
8932 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
8933 (new_symbol): Constify.
8934 * memattr.c (mem_info_command): Constify.
8935 * mep-tdep.c (register_name_from_keyword): Constify.
8936 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
8937 Constify.
8938 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
8939 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
8940 * mi/mi-main.c (captured_mi_execute_command): Constify and add
8941 cast.
8942 (mi_execute_async_cli_command): Constify.
8943 * mips-tdep.c (mips_register_name): Constify.
8944 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
8945 (am33_register_name, am33_2_register_name)
8946 * moxie-tdep.c (moxie_register_names): Constify.
8947 * nat/linux-osdata.c (osdata_type): Constify fields.
8948 * nto-tdep.c (nto_parse_redirection): Constify.
8949 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
8950 (lookup_child_selector): Constify.
8951 (objc_methcall::name): Constify.
8952 * objc-lang.h (lookup_objc_class, lookup_child_selector)
8953 (lookup_struct_typedef): Constify.
8954 * objfiles.c (pc_in_section): Constify.
8955 * objfiles.h (pc_in_section): Constify.
8956 * p-exp.y (struct token::oper): Constify.
8957 (yyerror): Constify.
8958 * p-lang.h (pascal_yyerror): Constify.
8959 * parser-defs.h (op_name_standard): Constify.
8960 (op_print::string): Constify.
8961 (exp_descriptor::op_name): Constify.
8962 * printcmd.c (print_address_symbolic): Constify.
8963 * psymtab.c (print_partial_symbols): Constify.
8964 * python/py-breakpoint.c (stop_func): Constify.
8965 (bppy_get_expression): Constify.
8966 * python/py-cmd.c (cmdpy_completer::name): Constify.
8967 (cmdpy_function): Constify.
8968 * python/py-event.c (evpy_add_attribute)
8969 (gdbpy_initialize_event_generic): Constify.
8970 * python/py-event.h (evpy_add_attribute)
8971 (gdbpy_initialize_event_generic): Constify.
8972 * python/py-evts.c (add_new_registry): Constify.
8973 * python/py-finishbreakpoint.c (outofscope_func): Constify.
8974 * python/py-framefilter.c (get_py_iter_from_func): Constify.
8975 * python/py-inferior.c (get_buffer): Add cast.
8976 * python/py-param.c (parm_constant::name): Constify.
8977 * python/py-unwind.c (fprint_frame_id): Constify.
8978 * python/python.c (gdbpy_parameter_value): Constify.
8979 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
8980 * remote.c (memory_packet_config::name): Constify.
8981 (show_packet_config_cmd, remote_write_bytes)
8982 (remote_buffer_add_string):
8983 * reverse.c (exec_reverse_once): Constify.
8984 * rs6000-tdep.c (variant::name, variant::description): Constify.
8985 * rust-exp.y (rustyyerror): Constify.
8986 * rust-lang.c (rust_op_name): Constify.
8987 * rust-lang.h (rustyyerror): Constify.
8988 * serial.h (serial_ops::name): Constify.
8989 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
8990 (sh_sh3e_register_name, sh_sh2e_register_name)
8991 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
8992 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
8993 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
8994 (sh_sh4al_dsp_register_name): Constify.
8995 * sh64-tdep.c (sh64_register_name): Constify.
8996 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
8997 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
8998 * stabsread.c (patch_block_stabs, read_type_number)
8999 (ref_map::stabs, ref_add, process_reference)
9000 (symbol_reference_defined, define_symbol, define_symbol)
9001 (error_type, read_type, read_member_functions, read_cpp_abbrev)
9002 (read_one_struct_field, read_struct_fields, read_baseclasses)
9003 (read_tilde_fields, read_struct_type, read_array_type)
9004 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
9005 (read_huge_number, read_range_type, read_args, common_block_start)
9006 (find_name_end): Constify.
9007 * stabsread.h (common_block_start, define_symbol)
9008 (process_one_symbol, symbol_reference_defined, ref_add):
9009 * symfile.c (get_section_index, add_symbol_file_command):
9010 * symfile.h (get_section_index): Constify.
9011 * target-descriptions.c (tdesc_type::name): Constify.
9012 (tdesc_free_type): Add cast.
9013 * target.c (find_default_run_target):
9014 (add_deprecated_target_alias, find_default_run_target)
9015 (target_announce_detach): Constify.
9016 (do_option): Constify.
9017 * target.h (add_deprecated_target_alias): Constify.
9018 * thread.c (print_thread_info_1): Constify.
9019 * top.c (deprecated_readline_begin_hook, command_line_input):
9020 Constify.
9021 (init_main): Add casts.
9022 * top.h (handle_line_of_input): Constify.
9023 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
9024 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
9025 (tfind_command): Rename to ...
9026 (tfind_command_1): ... this and constify.
9027 (tfind_command): New function.
9028 (tfind_end_command, tfind_start_command): Adjust.
9029 (encode_source_string): Constify.
9030 * tracepoint.h (encode_source_string): Constify.
9031 * tui/tui-data.c (tui_partial_win_by_name): Constify.
9032 * tui/tui-data.h (tui_partial_win_by_name): Constify.
9033 * tui/tui-source.c (tui_set_source_content_nil): Constify.
9034 * tui/tui-source.h (tui_set_source_content_nil): Constify.
9035 * tui/tui-win.c (parse_scrolling_args): Constify.
9036 * tui/tui-windata.c (tui_erase_data_content): Constify.
9037 * tui/tui-windata.h (tui_erase_data_content): Constify.
9038 * tui/tui-winsource.c (tui_erase_source_content): Constify.
9039 * tui/tui.c (tui_enable): Add cast.
9040 * utils.c (defaulted_query): Constify.
9041 (init_page_info): Add cast.
9042 (puts_debug, subset_compare): Constify.
9043 * utils.h (subset_compare): Constify.
9044 * varobj.c (varobj_format_string): Constify.
9045 * varobj.h (varobj_format_string): Constify.
9046 * vax-tdep.c (vax_register_name): Constify.
9047 * windows-nat.c (windows_detach): Constify.
9048 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
9049 * xml-support.c (gdb_xml_end_element): Constify.
9050 * xml-tdesc.c (tdesc_start_reg): Constify.
9051 * xstormy16-tdep.c (xstormy16_register_name): Constify.
9052 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
9053 * xtensa-tdep.h (xtensa_register_t::name): Constify.
9054
995816ba
PA
90552017-04-05 Pedro Alves <palves@redhat.com>
9056
9057 * proc-api.c (struct trans): Constify.
9058 (procfs_note): Constify.
9059 * proc-events.c (struct trans, syscall_table):
9060 * proc-flags.c (struct trans): Constify.
9061 * proc-utils.h (procfs_note): Constify.
9062 * proc-why.c (struct trans): Constify.
9063 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
9064 (procfs_detach): Constify.
9065 * sol-thread.c (struct string_map): Constify.
9066 (td_err_string, td_state_string): Constify.
9067
3e83a920
PA
90682017-04-05 Pedro Alves <palves@redhat.com>
9069
9070 * proc-api.c (procfs_filename): Don't initialize
9071 procfs_filename.
9072 (prepare_to_trace): Assume procfs_filename is non-NULL.
9073 (_initialize_proc_api): Give procfs_filename a default value here.
9074
63160a43
PA
90752017-04-05 Pedro Alves <palves@redhat.com>
9076
9077 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
9078 'cond_string' parameter.
9079 (extract_exception_regexp): Constify 'string' parameter.
9080 (catch_exception_command_1): Constify.
9081 * breakpoint.c (init_catchpoint)
9082 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
9083 parameter.
9084 (ep_parse_optional_if_clause, catch_fork_command_1)
9085 (catch_exec_command_1): Constify.
9086 * breakpoint.h (init_catchpoint): Constify 'cond_string'
9087 parameter.
9088 (ep_parse_optional_if_clause): Constify.
9089 * cli/cli-utils.c (remove_trailing_whitespace)
9090 (check_for_argument): Constify.
9091 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
9092 non-const overload.
9093 (check_for_argument): Likewise.
9094
9b2eba3d
PA
90952017-04-05 Pedro Alves <palves@redhat.com>
9096
9097 * event-top.c (command_line_handler): Add cast to execute_command
9098 call.
9099 * record-btrace.c (cmd_record_btrace_bts_start)
9100 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
9101 (cmd_record_btrace_start): Add cast to execute_command call.
9102 * record-full.c (record_full_goto_insn):
9103 * record.c (record_start, record_stop): Add cast to
9104 execute_command_to_string calls.
9105 (cmd_record_start): Add cast to execute_command calls.
9106
2adadf51
PA
91072017-04-05 Pedro Alves <palves@redhat.com>
9108
9109 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
9110 static inline function.
9111 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
9112 array and use gdb_PyArg_ParseTupleAndKeywords.
9113 * python/py-cmd.c (cmdpy_init): Likewise.
9114 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
9115 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
9116 (infpy_search_memory): Likewise.
9117 * python/py-objfile.c (objfpy_add_separate_debug_file)
9118 (gdbpy_lookup_objfile): Likewise.
9119 * python/py-symbol.c (gdbpy_lookup_symbol)
9120 (gdbpy_lookup_global_symbol): Likewise.
9121 * python/py-type.c (gdbpy_lookup_type): Likewise.
9122 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
9123 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
9124 Likewise.
9125
0d1f4ceb
PA
91262017-04-05 Pedro Alves <palves@redhat.com>
9127
9128 * python/python-internal.h (gdb_PyGetSetDef): New type.
9129 * python/py-block.c (block_object_getset)
9130 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
9131 * python/py-event.c (event_object_getset)
9132 (finish_breakpoint_object_getset): Likewise.
9133 * python/py-inferior.c (inferior_object_getset): Likewise.
9134 * python/py-infthread.c (thread_object_getset): Likewise.
9135 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
9136 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
9137 * python/py-objfile.c (objfile_getset): Likewise.
9138 * python/py-progspace.c (pspace_getset): Likewise.
9139 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
9140 Likewise.
9141 * python/py-record.c (recpy_record_getset): Likewise.
9142 * python/py-symbol.c (symbol_object_getset): Likewise.
9143 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
9144 Likewise.
9145 * python/py-type.c (type_object_getset, field_object_getset):
9146 Likewise.
9147 * python/py-value.c (value_object_getset): Likewise.
9148
4d759979
PA
91492017-04-05 Pedro Alves <palves@redhat.com>
9150
9151 * python/python-internal.h (gdb_PyObject_CallMethod)
9152 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
9153 New functions.
9154 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
9155 (PySys_GetObject, PySys_SetPath): New macros.
9156
fdf9e36f
PA
91572017-04-05 Pedro Alves <palves@redhat.com>
9158
9159 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
9160 info_osdata_command.
9161 * osdata.c (info_osdata_command): Rename to ...
9162 (info_osdata): ... this. Constify 'type' parameter, and remove
9163 the 'from_tty' parameter. Accept NULL TYPE.
9164 (info_osdata_command): New function.
9165 * osdata.h (info_osdata_command): Remove declaration.
9166 (info_osdata): New declaration.
9167
9f33b8b7
PA
91682017-04-05 Pedro Alves <palves@redhat.com>
9169
9170 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
9171 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
9172 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
9173 parameter.
9174 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
9175 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
9176 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
9177 parameter.
9178 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
9179 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
9180 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
9181 (mi_cmd_file_list_exec_source_files)
9182 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
9183 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
9184 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
9185 parameter.
9186 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
9187 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
9188 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
9189 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
9190 (mi_cmd_stack_info_frame): Constify 'command' parameter.
9191 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
9192 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
9193 'command' parameter.
9194 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
9195 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
9196 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
9197 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
9198 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
9199 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
9200 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
9201 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
9202 (mi_cmd_var_set_update_range): Constify 'command' parameter.
9203 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
9204 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
9205 parameter.
9206 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
9207 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
9208 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
9209 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
9210 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
9211 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
9212 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
9213 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
9214 (mi_cmd_data_list_changed_registers)
9215 (mi_cmd_data_write_register_values)
9216 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
9217 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
9218 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
9219 (mi_cmd_list_features, mi_cmd_list_target_features)
9220 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
9221 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
9222 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
9223 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
9224 (mi_cmd_trace_frame_collected): Constify 'command'
9225 parameter.
9226 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
9227 'command' parameter.
9228
67cb5b2d
PA
92292017-04-05 Pedro Alves <palves@redhat.com>
9230
9231 * ada-lang.c (ada_completer_word_break_characters): Now a const
9232 array.
9233 (ada_get_gdb_completer_word_break_characters): Constify.
9234 * completer.c (gdb_completer_command_word_break_characters)
9235 (gdb_completer_file_name_break_characters)
9236 (gdb_completer_quote_characters): Now const arrays.
9237 (get_gdb_completer_quote_characters): Constify.
9238 (set_rl_completer_word_break_characters): New function.
9239 (set_gdb_completion_word_break_characters)
9240 (complete_line_internal): Use it.
9241 * completer.h (get_gdb_completer_quote_characters): Constify.
9242 (set_rl_completer_word_break_characters): Declare.
9243 * f-lang.c (f_word_break_characters): Constify.
9244 * language.c (default_word_break_characters): Constify.
9245 * language.h (language_defn::la_word_break_characters): Constify.
9246 (default_word_break_characters): Constify.
9247 * top.c (init_main): Use set_rl_completer_word_break_characters.
9248
7a114964
PA
92492017-04-05 Pedro Alves <palves@redhat.com>
9250
9251 * aix-thread.c (aix_thread_pid_to_str)
9252 (aix_thread_extra_thread_info): Constify.
9253 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
9254 * bsd-uthread.c (bsd_uthread_extra_thread_info)
9255 (bsd_uthread_pid_to_str): Constify.
9256 * corelow.c (core_pid_to_str): Constify.
9257 * darwin-nat.c (darwin_pid_to_str): Constify.
9258 * fbsd-nat.c (fbsd_pid_to_str): Constify.
9259 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
9260 Constify.
9261 * gnu-nat.c (gnu_pid_to_str): Constify.
9262 * go32-nat.c (go32_pid_to_str): Constify.
9263 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
9264 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
9265 * inferior.c (inferior_pid_to_str): Constify.
9266 * linux-nat.c (linux_nat_pid_to_str): Constify.
9267 * linux-tdep.c (linux_core_pid_to_str): Constify.
9268 * linux-thread-db.c (thread_db_pid_to_str)
9269 (thread_db_extra_thread_info): Constify.
9270 * nto-tdep.c (nto_extra_thread_info): Constify.
9271 * nto-tdep.h (nto_extra_thread_info): Constify.
9272 * obsd-nat.c (obsd_pid_to_str): Constify.
9273 * procfs.c (procfs_pid_to_str): Constify.
9274 * ravenscar-thread.c (ravenscar_extra_thread_info)
9275 (ravenscar_pid_to_str): Constify.
9276 * remote-sim.c (gdbsim_pid_to_str): Constify.
9277 * remote.c (remote_threads_extra_info, remote_pid_to_str):
9278 Constify.
9279 * sol-thread.c (solaris_pid_to_str): Constify.
9280 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
9281 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
9282 * target.c (default_pid_to_str, target_pid_to_str)
9283 (normal_pid_to_str, default_pid_to_str): Constify.
9284 * target.h (target_ops::to_pid_to_str)
9285 (target_ops::to_extra_thread_info): Constify.
9286 (target_pid_to_str, normal_pid_to_str): Constify.
9287 * windows-nat.c (windows_pid_to_str): Constify.
9288 * gdbarch.sh (core_pid_to_str): Constify.
9289 * target-delegates.c: Regenerate.
9290 * gdbarch.h, gdbarch.c: Regenerate.
9291
69bbf465
PA
92922017-04-05 Pedro Alves <palves@redhat.com>
9293
9294 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
9295 the memory of the temporary warning_pre_print override.
9296 * utils.c (warning_pre_print): Constify.
9297 * utils.h (warning_pre_print): Constify.
9298
be47f9e8
PA
92992017-04-05 Pedro Alves <palves@redhat.com>
9300
9301 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
9302 (shell_command): New function.
9303 (make_command): Use std::string.
9304 (init_cli_cmds): Register shell_command instead of shell_escape.
9305
bde6261a
PA
93062017-04-05 Pedro Alves <palves@redhat.com>
9307
9308 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
9309 * tracepoint.c (default_collect): Don't initialize.
9310
b38ef47f
PA
93112017-04-05 Pedro Alves <palves@redhat.com>
9312
9313 * macroexp.c (macro_buffer::shared): Now a bool.
9314 (init_buffer): Update.
9315 (init_shared_buffer): Constify 'addr' parameter.
9316 (substitute_args, expand, macro_expand, macro_expand_next): Remove
9317 casts.
9318
f995bbe8
PA
93192017-04-05 Pedro Alves <palves@redhat.com>
9320
9321 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
9322 * disasm.c (set_disassembler_options): Constify local.
9323 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
9324
4a596fe2
SDJ
93252017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
9326
9327 PR gdb/21352
9328 * tracefile.c (tsave_command): Fix argument parsing for '-r'
9329 option.
9330
2cad08ea
YQ
93312017-04-05 Yao Qi <yao.qi@linaro.org>
9332
9333 * frame.c (frame_unwind_register_unsigned): Call
9334 frame_unwind_register_value.
9335
55a98976
YQ
93362017-04-05 Yao Qi <yao.qi@linaro.org>
9337
9338 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
9339 Use gdb_test_multiple, and don't match anchor.
9340
4ac40124
PA
93412017-04-05 Pedro Alves <palves@redhat.com>
9342
9343 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
9344 (Write After Approval): Remove Simon Marchi.
9345
c053b654
PA
93462017-04-05 Pedro Alves <palves@redhat.com>
9347
9348 * common/gdb_optional.h (optional::optional): Make constexpr and
9349 initialize m_dummy.
9350
4c7bf4f9
JB
93512017-04-04 John Baldwin <jhb@FreeBSD.org>
9352
9353 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
9354 (amd64fbsd_jmp_buf_reg_offset): Remove.
9355 (amd64fbsd_supply_uthread): Remove function.
9356 (amd64fbsd_collect_uthread): Remove function.
9357 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
9358 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
9359 (x86_64-*-freebsd*): Remove bsd-uthread.o.
9360 (fbsd-nat.c): Update comment.
9361 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
9362 (i386fbsd_jmp_buf_reg_offset): Remove.
9363 (i386fbsd_supply_uthread): Remove function.
9364 (i386fbsd_collect_uthread): Remove function.
9365 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
9366
1e1a8bef
JB
93672017-04-04 John Baldwin <jhb@FreeBSD.org>
9368
9369 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
9370 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
9371 * NEWS: Mention that support for FreeBSD/alpha was removed.
9372 * alpha-fbsd-tdep.c: Delete file.
9373 * config/alpha/fbsd.mh: Delete file.
9374 * configure.host: Delete alpha*-*-freebsd* and
9375 alpha*-*-kfreebsd*-gnu.
9376 * configure.tgt: Delete alpha*-*-freebsd* and
9377 alpha*-*-kfreebsd*-gnu.
9378
49907934
JB
93792017-04-04 John Baldwin <jhb@FreeBSD.org>
9380
9381 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
9382 amd64bsd_store_inferior_registers): Use ptid from regcache.
9383
6f77053d
PA
93842017-04-04 Pedro Alves <palves@redhat.com>
9385
9386 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
9387 data fields, make them private and add "m_" prefixes.
9388 (lnp_state_machine::lnp_state_machine): New ctor.
9389 (record_line, check_line_address, handle_set_discriminator)
9390 (handle_set_address, handle_advance_pc, handle_special_opcode)
9391 (handle_advance_line, handle_set_file, handle_negate_stmt)
9392 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
9393 (end_sequence, advance_line): New methods.
9394 (m_gdbarch, m_record_lines_p): New fields.
9395 (lnp_reader_state): Delete.
9396 (dwarf_record_line): Rename to ...
9397 (lnp_state_machine::record_line): ... adjust.
9398 (init_lnp_state_machine): Delete.
9399 (lnp_state_machine::lnp_state_machine): New.
9400 (check_line_address): Rename to ...
9401 (lnp_state_machine::check_line_address): This.
9402 (dwarf_decode_lines_1): Remove reference to "reader_state".
9403 Adjust lnp_state_machine having a non-default ctor. Use bool.
9404 State machine internal state manipulation moved to
9405 lnp_state_machine methods.
9406
9c541725
PA
94072017-04-04 Pedro Alves <palves@redhat.com>
9408
9409 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9410 unittests/offset-type-selftests.c.
9411 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
9412 * common/offset-type.h: New file.
9413 * common/preprocessor.h: New file.
9414 * common/traits.h: New file.
9415 * common/valid-expr.h: New file.
9416 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
9417 sect_offset and cu_offset strong typedefs throughout.
9418 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
9419 typedefs throughout.
9420 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
9421 sect_offset and cu_offset strong typedefs throughout.
9422 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
9423 typedefs throughout.
9424 * gdbtypes.h: Include "common/offset-type.h".
9425 (cu_offset): Now an offset type (strong typedef) instead of a
9426 struct.
9427 (sect_offset): Likewise.
9428 (union call_site_parameter_u): Rename "param_offset" field to
9429 "param_cu_off".
9430 * unittests/offset-type-selftests.c: New file.
9431
ecfb656c
PA
94322017-04-04 Pedro Alves <palves@redhat.com>
9433
9434 * common/underlying.h: New file.
9435 * dwarf2read.c: Include "common/gdb_optional.h" and
9436 "common/underlying.h".
9437 (dir_index, file_name_index): New types.
9438 (file_entry): Use them.
9439 (file_entry::include): Use to_underlying.
9440 (line_header::add_file_name): Use dir_index.
9441 (read_formatted_entries): Use gdb::optional. Read form before
9442 writting to file_entry.
9443 (dwarf_decode_line_header): Use dir_index.
9444 (lnp_state_machine::current_file): Use to_underlying.
9445 (lnp_state_machine::file): Change type to file_name_index.
9446 (dwarf_record_line): Use to_underlying.
9447 (init_lnp_state_machine): Use file_name_index.
9448 (dwarf_decode_lines_1): Use dir_index and file_name_index.
9449
d194f1fe
PA
94502017-04-04 Pedro Alves <palves@redhat.com>
9451
9452 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
9453 operator bool, has_value and get methods.
9454
fff8551c
PA
94552017-04-04 Pedro Alves <palves@redhat.com>
9456
9457 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
9458 fields.
9459 (line_header): Initialize all data fields. Change type of
9460 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
9461 Change type of include_dirs to std::vector<const char *>. Remove
9462 num_include_dirs, include_dirs_size. Change type of file_names to
9463 std::vector<file_entry>. Remove num_file_names, file_names_size.
9464 (line_header::line_header): New.
9465 (line_header::add_include_dir, line_header::add_file_name): New
9466 methods.
9467 (line_header::include_dir_at): Remove NULL check.
9468 (line_header::file_name_at): Add const overload.
9469 (line_header_up): New unique_ptr typedef.
9470 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
9471 std::vector. Remove free_line_header call.
9472 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
9473 free_line_header call.
9474 (free_cu_line_header): Delete.
9475 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
9476 (setup_type_unit_groups): Use line_header_up instead of cleanups.
9477 Adjust to use std::vector.
9478 (free_line_header): Delete.
9479 (free_line_header_voidp): Use delete.
9480 (add_include_dir): Replace with ...
9481 (line_header::add_include_dir): ... this method. Use std::vector.
9482 (add_file_name): Replace with ...
9483 (line_header::add_file_name): ... this method. Use std::vector.
9484 (add_include_dir_stub): Delete.
9485 (read_formatted_entries): Remove memset.
9486 (dwarf_decode_line_header): Return a line_header_up instead of a
9487 raw pointer. Remove cleanup handling. Pass lambdas to
9488 read_formatted_entries. Adjust to use line_header methods.
9489 (dwarf_decode_lines_1): Adjust to use line_header methods.
9490 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
9491 use std::vector.
9492
d62a8ae2
SM
94932017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
9494
9495 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
9496 instead of struct ptid.
9497
db3a1dc7
AH
94982017-05-04 Alan Hayward <alan.hayward@arm.com>
9499
9500 * frame.c (get_frame_register_bytes): Unwind using value.
9501 (put_frame_register_bytes): Likewise.
9502
b1b45502
IB
95032017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
9504
9505 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
9506 aggregate-like.
9507
ec13808e
JK
95082017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9509
9510 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
9511
12316564
YQ
95122017-03-29 Yao Qi <yao.qi@linaro.org>
9513
9514 * gdbthread.h (struct thread_info): Declare constructor and
9515 destructor. Add some in-class member initializers.
9516 * thread.c (free_thread): Remove.
9517 (init_thread_list): Call delete instead of free_thread.
9518 (new_thread): Call thread_info constructor.
9519 (thread_info::thread_info): New function.
9520 (thread_info::~thread_info): New function.
9521 (delete_thread_1): Call delete instead of free_thread.
9522 (make_cleanup_restore_current_thread): Move tp and frame to
9523 inner block.
9524
fe5f7374
AK
95252017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9526
9527 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
9528 (arc_skip_prologue): Likewise.
9529 (arc_make_frame_cache): Likewise.
9530 (arc_pv_get_operand): New function.
9531 (arc_is_in_prologue): Likewise.
9532 (arc_analyze_prologue): Likewise.
9533 (arc_print_frame_cache): Likewise.
9534 (MAX_PROLOGUE_LENGTH): New constant.
9535
eea78757
AK
95362017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9537
9538 * configure.tgt: Add arc-insn.o.
9539 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
9540 (dump_arc_instruction_command): New function.
9541 (arc_fprintf_disasm): Likewise.
9542 (arc_disassemble_info): Likewise.
9543 (arc_insn_get_operand_value): Likewise.
9544 (arc_insn_get_operand_value_signed): Likewise.
9545 (arc_insn_get_memory_base_reg): Likewise.
9546 (arc_insn_get_memory_offset): Likewise.
9547 (arc_insn_get_branch_target): Likewise.
9548 (arc_insn_dump): Likewise.
9549 (arc_insn_get_linear_next_pc): Likewise.
9550 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
9551 (arc_disassemble_info): Likewise.
9552 (arc_insn_get_branch_target): Likewise.
9553 (arc_insn_get_linear_next_pc): Likewise.
9554 * NEWS: Mention new "maint print arc arc-instruction".
9555
3be78afd
AK
95562017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9557
9558 * arc-tdep (maintenance_print_arc_list): New variable.
9559 (maintenance_print_arc_command): New function.
9560
296ec4fa
AK
95612017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9562
9563 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
9564 Add "limm" and "reserved".
9565 (arc_cannot_fetch_register, arc_cannot_store_register): Add
9566 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
9567 * arc-tdep.h (arc_regnum): Likewise.
9568
f74f865e
MF
95692017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9570
9571 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
9572 for THREADPTR register.
9573 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
9574 register.
9575 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
9576 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
9577 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
9578
0d0bf81a
MF
95792017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9580
9581 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
9582 registers above gdbarch_num_regs (gdbarch) as privileged in
9583 call0 ABI.
9584
0ce4291e
MF
95852017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9586
9587 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
9588 for a single specified register or for all registers in
9589 a0_base..a0_base + C0_NREGS range.
9590 (supply_gregset_reg): Call regcache_raw_supply for a single
9591 specified register or for all registers in a0_base..a0_base +
9592 C0_NREGS range.
9593
c56054f9
MF
95942017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9595
9596 * arch/xtensa.h (C0_NREGS): Add definition.
9597 * xtensa-tdep.c (C0_NREGS): Remove definition.
9598
a4398628
MF
95992017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9600
9601 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
9602 Drop xtensa_default_isa initialization.
9603 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
9604
8c43009f
PA
96052017-03-27 Pedro Alves <palves@redhat.com>
9606
9607 * dwarf2read.c (file_entry) <dir_index>: Add comment.
9608 (file_entry::include_dir): New method.
9609 (line_header::include_dir_at, line_header::file_name_at): New
9610 methods.
9611 (setup_type_unit_groups, setup_type_unit_groups)
9612 (psymtab_include_file_name): Simplify using the new methods.
9613 (lnp_state_machine) <the_line_header>: New field.
9614 <file>: Add comment.
9615 (lnp_state_machine::current_file): New method.
9616 (dwarf_record_line): Simplify using the new methods.
9617 (init_lnp_state_machine): Initialize the "the_line_header" field.
9618 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
9619 Simplify using the new methods.
9620
a7e80b9e
PA
96212017-03-27 Pedro Alves <palves@redhat.com>
9622
9623 * cp-name-parser.y (make_empty): Delete.
9624 (demangler_special, nested_name, ptr_operator, array_indicator)
9625 (direct_declarator, declarator_1): Use fill_comp instead of
9626 make_empty.
9627
21047726
PA
96282017-03-27 Pedro Alves <palves@redhat.com>
9629
9630 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
9631 to ATTRIBUTE_PRINTF.
9632 * solib-target.c (library_list_start_list): Print "string" not
9633 "version".
9634 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
9635 gdb_xml_error call.
9636
d721ba37
PA
96372017-03-27 Pedro Alves <palves@redhat.com>
9638
9639 * dwarf2read.c (struct file_and_directory): New.
9640 (dwarf2_get_dwz_file): Adjust to use std::string.
9641 (dw2_get_file_names_reader): Adjust to use file_and_directory.
9642 (find_file_and_directory): Adjust to return a file_and_directory
9643 object.
9644 (read_file_scope): Adjust to use file_and_directory. Remove
9645 make_cleanup/do_cleanups calls.
9646 (open_and_init_dwp_file): Adjust to use std::string. Remove
9647 make_cleanup/do_cleanups calls.
9648 * python/python.c (do_start_initialization): Adjust to ldirname
9649 returning a std::string.
9650 * utils.c (ldirname): Now returns a std::string.
9651 * utils.h (ldirname): Change return type to std::string.
9652 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
9653 returning a std::string.
9654 * xml-tdesc.c (file_read_description_xml): Likewise.
9655
ed771251
AH
96562017-03-24 Alan Hayward <alan.hayward@arm.com>
9657
9658 * regcache.c (regcache_debug_print_register): New function.
9659 * regcache.h (regcache_debug_print_register): New declaration.
9660 * target.c (debug_print_register): Remove.
9661 (target_fetch_registers): Call regcache_debug_print_register.
9662 (target_store_registers): Likewise.
9663
568c1b9f
PB
96642017-03-24 Pádraig Brady <pbrady@fb.com>
9665
9666 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
9667 reference beyond the 'lh->include_dirs' array before accessing to
9668 it.
9669 (psymtab_include_file_name): Likewise.
9670 (dwarf_decode_lines_1): Likewise.
9671 (dwarf_decode_lines): Likewise.
9672 (file_file_name): Likewise.
9673
3e00d44f
SM
96742017-03-23 Simon Marchi <simon.marchi@ericsson.com>
9675
9676 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
9677 inferior_ptid.
9678 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
9679 ps_lsetfpregs): Likewise.
9680 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
9681 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
9682 ps_lsetfpregs): Likewise.
9683 * target.c (target_fetch_registers, target_store_registers):
9684 Remove asserts.
9685
077ae656
AH
96862017-03-23 Alan Hayward <alan.hayward@arm.com>
9687
9688 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
9689
1e2b521d
YQ
96902017-03-23 Yao Qi <yao.qi@linaro.org>
9691
9692 * aarch64-tdep.c (aarch64_process_record_test): Declare.
9693 (_initialize_aarch64_tdep): Register it.
9694 (aarch64_record_load_store): Handle PRFM instruction.
9695 (aarch64_process_record_test): New function.
9696
33877125
YQ
96972017-03-23 Yao Qi <yao.qi@linaro.org>
9698
9699 * aarch64-tdep.c (aarch64_record_load_store): Fix code
9700 indentation.
9701
a0eef940
YQ
97022017-03-23 Yao Qi <yao.qi@linaro.org>
9703
9704 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
9705
3f2a3564
PR
97062017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
9707
9708 python/python.c (do_start_initialization): Fix memory leak.
9709
b67aeab0
SM
97102017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
9711
9712 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
9713 using get_ptrace_pid.
9714 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
9715 inferior_ptid.
9716 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
9717 inferior_ptid instead of pid.
9718
ffdbe864
YQ
97192017-03-22 Yao Qi <yao.qi@linaro.org>
9720
9721 * aarch64-tdep.c: Wrap locally used classes in anonymous
9722 namespace.
9723 * arm-tdep.c: Likewise.
9724 * linespec.c: Likewise.
9725 * ui-out.c: Likewise.
9726
9d736fbf
JG
97272017-03-22 Jonah Graham <jonah@kichwacoders.com>
9728
9729 PR gdb/19637
9730 * python/lib/gdb/printer/bound_registers.py: Import sys.
9731
3de88e9a
SM
97322017-03-21 Simon Marchi <simon.marchi@ericsson.com>
9733
9734 * windows-nat.c (do_windows_fetch_inferior_registers): Add
9735 windows_thread_info parameter and use it instead of
9736 current_thread.
9737 (windows_fetch_inferior_registers): Don't set current_thread,
9738 pass the thread to do_windows_fetch_inferior_registers. Use
9739 ptid from regcache instead of inferior_ptid.
9740 (do_windows_store_inferior_registers): Add windows_thread_info
9741 parameter and use it instead of current_thread.
9742 (windows_store_inferior_registers): Don't set current_thread,
9743 pass the thread to do_windows_store_inferior_registers. Use
9744 ptid from regcache instead of inferior_ptid.
9745
0e7b8f61
SM
97462017-03-21 Simon Marchi <simon.marchi@ericsson.com>
9747
9748 * ser-mingw.c (ser_windows_raw): Remove reference to
9749 struct serial::current_timeout.
9750
5badf10a
IR
97512017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
9752
9753 PR tdep/20928
9754 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
9755 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
9756 (sparc64_fsr_type): Fix %fsr decoding.
9757
cee59b3f
TW
97582017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
9759
9760 * python/py-record-btrace.c (btpy_insn_data): Change return type
9761 for Python 2.
9762
639a9038
SM
97632017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
9764
9765 * spu-linux-nat.c (spu_fetch_inferior_registers,
9766 spu_store_inferior_registers): Use ptid from regcache, set and
9767 restore inferior_ptid.
9768 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
9769 Likewise.
9770
bcc0c096
SM
97712017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
9772
9773 * i386-linux-nat.c (fetch_register, store_register,
9774 i386_linux_fetch_inferior_registers,
9775 i386_linux_store_inferior_registers): Use ptid from regcache.
9776 * ia64-linux-nat.c (ia64_linux_fetch_register,
9777 ia64_linux_store_register): Likewise.
9778 * inf-ptrace.c (inf_ptrace_fetch_register,
9779 inf_ptrace_store_register): Likewise.
9780 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
9781 m32r_linux_store_inferior_registers): Likewise.
9782 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
9783 m68kbsd_store_inferior_registers): Likewise.
9784 * m68k-linux-nat.c (fetch_register, store_register,
9785 m68k_linux_fetch_inferior_registers,
9786 m68k_linux_store_inferior_registers): Likewise.
9787 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
9788 m88kbsd_store_inferior_registers): Likewise.
9789 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
9790 mips_fbsd_store_inferior_registers): Likewise.
9791 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
9792 mips64_linux_regsets_store_registers): Likewise.
9793 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
9794 mipsnbsd_store_inferior_registers): Likewise.
9795 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
9796 mips64obsd_store_inferior_registers): Likewise.
9797 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
9798 Likewise.
9799 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
9800 ppcfbsd_store_inferior_registers): Likewise.
9801 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
9802 ppc_linux_store_inferior_registers): Likewise.
9803 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
9804 ppcnbsd_store_inferior_registers): Likewise.
9805 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
9806 ppcobsd_store_registers): Likewise.
9807 * procfs.c (procfs_fetch_registers, procfs_store_registers):
9808 Likewise.
9809 * ravenscar-thread.c (ravenscar_fetch_registers,
9810 ravenscar_store_registers, ravenscar_prepare_to_store):
9811 Likewise.
9812 * record-btrace.c (record_btrace_fetch_registers,
9813 record_btrace_store_registers, record_btrace_prepare_to_store):
9814 Likewise.
9815 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
9816 Lookup inferior using ptid from regcache, instead of
9817 current_inferior.
9818 * remote.c (remote_fetch_registers, remote_store_registers): Use
9819 ptid from regcache.
9820 * rs6000-nat.c (fetch_register, store_register): Likewise.
9821 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
9822 s390_linux_store_inferior_registers): Likewise.
9823 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
9824 shnbsd_store_inferior_registers): Likewise.
9825 * sol-thread.c (sol_thread_fetch_registers,
9826 sol_thread_store_registers): Likewise.
9827 * sparc-nat.c (sparc_fetch_inferior_registers,
9828 sparc_store_inferior_registers): Likewise.
9829 * tilegx-linux-nat.c (fetch_inferior_registers,
9830 store_inferior_registers): Likewise.
9831 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
9832 vaxbsd_store_inferior_registers): Likewise.
9833 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
9834 store_xtregs): Likewise.
9835
c0f55cc6
AV
98362017-03-20 Artemiy Volkov <artemiyv@acm.org>
9837
9838 PR gdb/14441
9839 * NEWS: Mention support for rvalue references in GDB and python.
9840 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
9841 supports both lvalue and rvalue references.
9842
15c0a2a9
AV
98432017-03-20 Artemiy Volkov <artemiyv@acm.org>
9844
9845 PR gdb/14441
9846 * gdbtypes.c (rank_one_type): Implement overloading
9847 resolution rules regarding rvalue references.
9848
aa006118
AV
98492017-03-20 Artemiy Volkov <artemiyv@acm.org>
9850
9851 PR gdb/14441
9852 * aarch64-tdep.c (aarch64_type_align)
9853 (aarch64_extract_return_value, aarch64_store_return_value): Change
9854 lvalue reference type checks to general reference type checks.
9855 * amd64-tdep.c (amd64_classify): Likewise.
9856 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
9857 Likewise.
9858 * arm-tdep.c (arm_type_align, arm_extract_return_value)
9859 (arm_store_return_value): Likewise.
9860 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
9861 * c-typeprint.c (c_print_type): Likewise.
9862 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
9863 (cplus_number_of_children, cplus_describe_child): Likewise.
9864 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
9865 * completer.c (expression_completer): Likewise.
9866 * cp-support.c (make_symbol_overload_list_adl_namespace):
9867 Likewise.
9868 * darwin-nat-info.c (info_mach_region_command): Likewise.
9869 * dwarf2loc.c (entry_data_value_coerce_ref)
9870 (value_of_dwarf_reg_entry): Likewise.
9871 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
9872 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
9873 Likewise.
9874 * findvar.c (extract_typed_address, store_typed_address):
9875 Likewise.
9876 * gdbtypes.c (rank_one_type): Likewise.
9877 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
9878 * infcall.c (value_arg_coerce): Likewise.
9879 * language.c (pointer_type): Likewise.
9880 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
9881 Likewise.
9882 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
9883 * mn10300-tdep.c (mn10300_type_align): Likewise.
9884 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
9885 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
9886 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
9887 Likewise.
9888 * printcmd.c (print_formatted, x_command): Likewise.
9889 * python/py-type.c (typy_get_composite, typy_template_argument):
9890 Likewise.
9891 * python/py-value.c (valpy_referenced_value)
9892 (valpy_get_dynamic_type, value_has_field): Likewise.
9893 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
9894 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
9895 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
9896 * spu-tdep.c (spu_scalar_value_p): Likewise.
9897 * symtab.c (lookup_symbol_aux): Likewise.
9898 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
9899 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
9900 Likewise.
9901 * valops.c (value_cast_pointers, value_cast)
9902 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
9903 (value_struct_elt, value_struct_elt_bitpos)
9904 (value_find_oload_method_list, find_overload_match)
9905 (value_rtti_indirect_type): Likewise.
9906 * valprint.c (val_print_scalar_type_p, generic_val_print):
9907 Likewise.
9908 * value.c (value_actual_type, value_as_address, unpack_long)
9909 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
9910 (coerce_ref): Likewise.
9911 * varobj.c (varobj_get_value_type): Likewise.
9912
3fcf899d
AV
99132017-03-20 Artemiy Volkov <artemiyv@acm.org>
9914
9915 PR gdb/14441
9916 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
9917 table of constants.
9918 * python/lib/gdb/command/explore.py: Support exploring values
9919 of rvalue reference types.
9920 * python/lib/gdb/types.py: Implement get_basic_type() for
9921 rvalue reference types.
9922 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
9923 constant.
9924 * python/py-value.c (valpy_getitem): Add an rvalue reference
9925 check.
9926 (valpy_reference_value): Add new parameter "refcode".
9927 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
9928 New wrappers for valpy_reference_value().
9929 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
9930 (gdbpy_invoke_xmethod): Likewise.
9931
4297a3f0
AV
99322017-03-20 Artemiy Volkov <artemiyv@acm.org>
9933
9934 PR gdb/14441
9935 * dwarf2read.c (process_die, read_type_die_1): Handle the
9936 DW_TAG_rvalue_reference_type DIE.
9937 (read_tag_reference_type): Add new parameter "refcode".
9938
e1cb3213
AV
99392017-03-20 Artemiy Volkov <artemiyv@acm.org>
9940
9941 PR gdb/14441
9942 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
9943 (c_type_print_modifier, c_type_print_varspec_suffix)
9944 (c_type_print_base): Support printing rvalue reference types.
9945 * c-valprint.c (c_val_print, c_value_print): Support printing
9946 rvalue reference values.
9947
e4347c89
AV
99482017-03-20 Artemiy Volkov <artemiyv@acm.org>
9949
9950 PR gdb/14441
9951 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
9952 typename.
9953 * cp-support.c (replace_typedefs): Handle
9954 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
9955 * python/py-type.c (typy_lookup_type): Likewise.
9956
53cc15f5
AV
99572017-03-20 Artemiy Volkov <artemiyv@acm.org>
9958
9959 PR gdb/14441
9960 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
9961 * parse.c (insert_type): Change assert statement.
9962 (follow_types): Handle rvalue reference types.
9963 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
9964 constant.
9965
a65cfae5
AV
99662017-03-20 Artemiy Volkov <artemiyv@acm.org>
9967
9968 PR gdb/14441
9969 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
9970 value_ref() interface.
9971 * c-valprint.c (c_value_print): Likewise.
9972 * infcall.c (value_arg_coerce): Likewise.
9973 * python/py-value.c (valpy_reference_value): Likewise.
9974 * valops.c (value_cast, value_reinterpret_cast)
9975 (value_dynamic_cast, typecmp): Likewise.
9976 (value_ref): Parameterize by kind of return value reference type.
9977 * value.h (value_ref): Add new parameter "refcode".
9978
3b224330
AV
99792017-03-20 Artemiy Volkov <artemiyv@acm.org>
9980
9981 PR gdb/14441
9982 * dwarf2read.c (read_tag_reference_type): Use
9983 lookup_lvalue_reference_type() instead of lookup_reference_type().
9984 * eval.c (evaluate_subexp_standard): Likewise.
9985 * f-exp.y: Likewise.
9986 * gdbtypes.c (make_reference_type, lookup_reference_type):
9987 Generalize with rvalue reference types.
9988 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
9989 convenience wrappers for lookup_reference_type().
9990 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
9991 reference kind parameter.
9992 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
9993 wrappers for lookup_reference_type().
9994 * guile/scm-type.c (gdbscm_type_reference): Use
9995 lookup_lvalue_reference_type() instead of lookup_reference_type().
9996 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
9997 * parse.c (follow_types): Likewise.
9998 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
9999 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
10000 Likewise.
10001 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
10002 (gdbpy_invoke_xmethod): Likewise.
10003 * stabsread.c: Provide extra argument to make_reference_type()
10004 call.
10005 * valops.c (value_ref, value_rtti_indirect_type): Use
10006 lookup_lvalue_reference_type() instead of lookup_reference_type().
10007
f9aeb8d4
AV
100082017-03-20 Artemiy Volkov <artemiyv@acm.org>
10009
10010 PR gdb/14441
10011 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
10012 (TYPE_IS_REFERENCE): New macro.
10013 (struct type): Add rvalue_reference_type field.
10014 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
10015
51457a05
MAL
100162017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
10017
10018 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
10019 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
10020 New function definition.
10021 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
10022 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
10023 New function declaration.
10024 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
10025 * mi/mi-interp.h: New file.
10026 * solib.c (info_sharedlibrary_command): Replace for loop with
10027 ALL_SO_LIBS macro
10028 * solib.h (update_solib_list): New function declaration.
10029 (so_list_head): Move macro.
10030 * solist.h (ALL_SO_LIBS): New macro.
10031
e696b3ad
MAL
100322017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
10033
10034 * infcmd.c (post_create_inferior): Remove unused argument in
10035 call to solib_add.
10036 * remote.c (remote_start_remote): Likewise.
10037 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
10038 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
10039 (enable_break): Likewise.
10040 * solib.c (update_solib_list): Remove unused target argument
10041 and its documentation.
10042 (solib_add): Remove unused target argument. Remove unused
10043 argument in call to update_solib_list.
10044 (info_sharedlibrary_command): Remove unused argument in call
10045 to update_solib_list.
10046 (sharedlibrary_command): Remove unused argument in call to
10047 solib_add.
10048 (handle_solib_event): Likewise.
10049 (reload_shared_libraries): Likewise.
10050 * solib.h (solib_add): Remove unused target argument.
10051
dcb84eda
AA
100522017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
10053
10054 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
10055 (s390_displaced_step_fixup): Cover relative branches with the
10056 default fixup handling. This fixes lack of support for some
10057 relative branch instructions.
10058
d9cb6cdc
SM
100592017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10060
10061 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
10062 ptid from regcache.
10063
1afaf9f4
SM
100642017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10065
10066 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
10067 i386_darwin_store_inferior_registers): Use ptid from regcache.
10068
aac12e24
SM
100692017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10070
10071 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
10072 i386bsd_store_inferior_registers): Use ptid from regcache.
10073
bbe1eef1
SM
100742017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10075
10076 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
10077 hppaobsd_store_registers): Use ptid from regcache.
10078
10799020
SM
100792017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10080
10081 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
10082 hppanbsd_store_registers): Use ptid from regcache.
10083
00204cf7
SM
100842017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10085
10086 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
10087 from regcache. Use get_ptrace_pid.
10088
11a33714
SM
100892017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10090
10091 * corelow.c (get_core_register_section): Use ptid from regcache,
10092 update doc.
10093
317cd492
SM
100942017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10095
10096 * bsd-uthread.c (bsd_uthread_fetch_registers,
10097 bsd_uthread_store_registers): Use ptid from regcache, set and
10098 restore inferior_ptid.
10099
9ac8a7c2
SM
101002017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10101
10102 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
10103 fetch_fp_regs, store_register, store_regs, store_fp_register,
10104 store_fp_regs): Use ptid from regcache.
10105
4ac4bb6a
SM
101062017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10107
10108 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
10109 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
10110 store_vfp_regs): Use ptid from regcache.
10111
9bcbdca8
PA
101122017-03-17 Pedro Alves <palves@redhat.com>
10113
10114 PR remote/21188
10115 * ser-base.c (ser_base_wait_for): Add comment.
10116 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
10117 version.
10118 * ser-unix.c (hardwire_raw): Remove reference to
10119 scb->current_timeout.
10120 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
10121 (hardwire_ops): Install ser_base_readchar instead of
10122 hardwire_readchar.
10123 * serial.h (struct serial) <current_timeout, timeout_remaining>:
10124 Remove fields.
10125
7503099f
JG
101262017-03-17 Jonah Graham <jonah@kichwacoders.com>
10127
10128 PR gdb/19637
10129 * python/lib/gdb/printer/bound_registers.py: Add support for
10130 Python 3.
10131
7942e96e
AA
101322017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
10133
10134 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
10135 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
10136 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
10137 byte_offset to subobj_byte_offset. Fix the handling of
10138 DWARF_VALUE_STACK on big-endian targets when coming via an
10139 implicit pointer.
10140 (dwarf2_evaluate_loc_desc): Adjust call to
10141 dwarf2_evaluate_loc_desc_full.
10142 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
10143 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
10144
ba14f379
YQ
101452017-03-16 Yao Qi <yao.qi@linaro.org>
10146
10147 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
10148 and REVSH instructions.
10149
b121eeb9
YQ
101502017-03-16 Yao Qi <yao.qi@linaro.org>
10151
10152 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
10153 (arm_record_test): Declare.
10154 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
10155 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
10156 align with the manual.
10157 (thumb_record_misc): Adjust the code order to align with the
10158 manual.
10159 (thumb2_record_decode_insn_handler): Fix instruction matching.
10160 (instruction_reader_thumb): New class.
10161 (arm_record_test): New function.
10162
728a7913
YQ
101632017-03-16 Yao Qi <yao.qi@linaro.org>
10164
10165 * arm-tdep.c (abstract_memory_reader): New class.
10166 (instruction_reader): New class.
10167 (extract_arm_insn): Add argument 'reader'. Callers updated.
10168 (decode_insn): Likewise.
10169
34b43320
DE
101702017-03-16 Doug Evans <dje@google.com>
10171
a7c0469f
DE
10172 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
10173 member. Change type of TYPE member to SCM. All uses updated.
10174 (lsscm_make_lazy_string_smob): Add assert.
10175 (lsscm_make_lazy_string): Flag bad length values.
10176 (lsscm_elt_type): New function.
10177 (gdbscm_lazy_string_to_value): Rewrite to use
10178 lsscm_safe_lazy_string_to_value.
10179 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
10180 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
10181 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
10182 in incoming type.
10183 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
10184 * guile/scm-type.c (tyscm_scm_to_type): New function.
10185
101862017-03-15 Doug Evans <dje@google.com>
10187
34b43320
DE
10188 PR python/17728, python/18439, python/18779
10189 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
10190 member. Change type of TYPE member to PyObject *. All uses updated.
10191 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
10192 (gdbpy_create_lazy_string_object): Flag bad length values.
10193 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
10194 Handle typedefs in incoming type.
10195 (stpy_lazy_string_elt_type): New function.
10196 (gdbpy_extract_lazy_string): Call it.
10197 * python/py-value.c (valpy_lazy_string): Flag bad length values.
10198 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
10199 typedefs in incoming type.
10200
a3a5fecc
DE
102012017-03-16 Doug Evans <dje@google.com>
10202
10203 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
10204 * guile/scm-type.c (tyscm_scm_to_type): New function.
10205
28f1c605
JW
102062017-03-16 Jiong Wang <jiong.wang@arm.com>
10207
10208 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
10209 "ULONGEST" for "skip".
10210
87c336f6
AA
102112017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
10212
10213 PR gdb/21220
10214 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
10215 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
10216 (inf_ptrace_peek_poke): ...here. New function. Now also loop
10217 over ptrace peek/poke until end of buffer or error.
10218
cf81cf60
SM
102192017-03-14 Simon Marchi <simon.marchi@ericsson.com>
10220
10221 * parse.c (length_of_subexp): Make static.
10222 * parser-defs.h (length_of_subexp): Remove.
10223
a379284a
AA
102242017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
10225
10226 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
10227 as well.
10228
8a6200ba
PA
102292017-03-14 Pedro Alves <palves@redhat.com>
10230
10231 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
10232 (main): Use std::unique_ptr. Remove calls to
10233 cp_demangled_name_parse_free.
10234
f79ec206
SM
102352017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10236
10237 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
10238 alphabsd_store_inferior_registers): Use regcache->ptid instead
10239 of inferior_ptid.
10240
edb5fb00
SM
102412017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10242
10243 * aix-thread.c (aix_thread_fetch_registers,
10244 aix_thread_store_registers): Use regcache->ptid instead of
10245 inferior_ptid.
10246
55119686
SM
102472017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10248
10249 * aarch64-linux-nat.c (fetch_gregs_from_thread,
10250 store_gregs_to_thread, fetch_fpregs_from_thread,
10251 store_fpregs_to_thread): Use regcache->ptid instead of
10252 inferior_ptid.
10253
6a06fbb7
SM
102542017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10255
10256 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
10257 amd64_linux_fetch_inferior_registers): Use regcache->ptid
10258 instead of inferior_ptid.
10259
c6386875
SM
102602017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10261
10262 * target.c (target_fetch_registers, target_store_registers): Add
10263 assert.
10264
ddaaf0fb
SM
102652017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10266
10267 * regcache.h (regcache_get_ptid): New function.
10268 * regcache.c (regcache_get_ptid): New function.
10269
b9da89d1 102702017-03-13 Mark Wielaard <mark@klomp.org>
10271
10272 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
10273
5f4d1085
KS
102742017-03-10 Keith Seitz <keiths@redhat.com>
10275
10276 PR c++/8218
10277 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
10278
c65d6b55
PA
102792017-03-08 Pedro Alves <palves@redhat.com>
10280
10281 PR gdb/18360
10282 * infrun.c (start_step_over, do_target_resume, resume)
10283 (restart_threads): Assert we're not resuming a thread that is
10284 meant to be stopped.
10285 (infrun_thread_stop_requested_callback): Delete.
10286 (infrun_thread_stop_requested): If the thread is internally
10287 stopped, queue a pending stop event and clear the thread's
10288 inline-frame state.
10289 (handle_stop_requested): New function.
10290 (handle_syscall_event, handle_inferior_event_1): Use
10291 handle_stop_requested.
10292 (handle_stop_requested): New function.
10293 (handle_signal_stop): Set the thread's stop_signal here instead of
10294 at caller.
10295 (finish_step_over): Clear step over info unconditionally.
10296 (handle_signal_stop): If the user had interrupted the event
10297 thread, consider the stop a random signal.
10298 (handle_signal_stop) <signal arrived while stepping over
10299 breakpoint>: Don't restart threads here.
10300 (stop_waiting): Don't clear step-over info here.
10301
15c22686
PA
103022017-03-08 Pedro Alves <palves@redhat.com>
10303
10304 PR 21206
10305 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
10306 goes to argument 2, not 1.
10307
6e5d74e7
PA
103082017-03-08 Pedro Alves <palves@redhat.com>
10309
10310 PR cli/21218
10311 * top.c (gdb_readline_wrapper): Avoid passing NULL to
10312 display_gdb_prompt.
10313 (command_line_input): Add comment.
10314
9753a2f6
PA
103152017-03-08 Pedro Alves <palves@redhat.com>
10316
10317 PR tui/21216
10318 * tui/tui-file.c (tui_file::write): New.
10319 * tui/tui-file.h (tui_file): Override "write".
10320 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
10321 factored out from ...
10322 (tui_puts): ... here.
10323 (tui_putc): Use them.
10324 (tui_write): New function.
10325 * tui/tui-io.h (tui_write): Declare.
10326
1672e0d9
SDJ
103272017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
10328
10329 * Makefile.in (SFILES): Replace "environ.c" with
10330 "common/environ.c".
10331 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
10332 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
10333 to...
10334 * common/environ.c: ... here.
10335 * environ.h: Moved to...
10336 * common/environ.h: ... here.
10337
f7bb4e3a
PB
103382017-03-07 Peter Bergner <bergner@vnet.ibm.com>
10339
10340 * gdbarch.sh (pstring_ptr): New static function.
10341 (gdbarch_disassembler_options): Use it.
10342 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
10343 not valid_disassembler_option->name.
10344 * gdbarch.c: Regenerate.
10345
e45ced6c
PB
103462017-03-07 Peter Bergner <bergner@vnet.ibm.com>
10347
10348 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
10349
5f6fd321
PA
103502017-03-07 Pedro Alves <palves@redhat.com>
10351
10352 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
10353
6dbb839a 103542017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
10355
10356 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
10357 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
10358 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 10359 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 10360
d274ecf4
SM
103612017-03-06 Simon Marchi <simon.marchi@ericsson.com>
10362
10363 * xtensa-linux-nat.c (fetch_gregs): Remove const.
10364
df97be55
SM
103652017-03-03 Simon Marchi <simon.marchi@ericsson.com>
10366
10367 * remote.c (remote_add_target_side_commands): Use range-based
10368 for loop.
10369
7d45f3df
YQ
103702017-03-03 Yao Qi <yao.qi@linaro.org>
10371
10372 PR gdb/21165
10373 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
10374 value is lazy.
10375 * valprint.c (common_val_print): Likewise.
10376
65b48a81
PB
103772017-02-28 Peter Bergner <bergner@vnet.ibm.com>
10378
10379 * NEWS: Mention new set/show disassembler-options commands.
10380 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
10381 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
10382 (prospective_options): New static variable.
10383 (gdb_disassembler::gdb_disassembler): Initialize
10384 m_di.disassembler_options.
10385 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
10386 (get_disassembler_options): New function.
10387 (set_disassembler_options): Likewise.
10388 (set_disassembler_options_sfunc): Likewise.
10389 (show_disassembler_options_sfunc): Likewise.
10390 (disassembler_options_completer): Likewise.
10391 (_initialize_disasm): Likewise.
10392 * disasm.h (get_disassembler_options): New prototype.
10393 (set_disassembler_options): Likewise.
10394 * gdbarch.sh (gdbarch_disassembler_options): New variable.
10395 (gdbarch_verify_disassembler_options): Likewise.
10396 * gdbarch.c: Regenerate.
10397 * gdbarch.h: Likewise.
10398 * arm-tdep.c (num_disassembly_options): Delete.
10399 (set_disassembly_style): Likewise.
10400 (arm_disassembler_options): New static variable.
10401 (set_disassembly_style_sfunc): Convert short style name into long
10402 option name. Call set_disassembler_options.
10403 (show_disassembly_style_sfunc): New function.
10404 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
10405 set_gdbarch_verify_disassembler_options.
10406 (_initialize_arm_tdep): Delete regnames variable and update callers.
10407 (arm_disassembler_options): Initialize.
10408 (disasm_options): New variable.
10409 (num_disassembly_options): Rename from this...
10410 (num_disassembly_styles): ...to this. Compute by scanning through
10411 disasm_options.
10412 (valid_disassembly_styles): Initialize using disasm_options.
10413 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
10414 set_arm_regname_option.
10415 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
10416 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
10417 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
10418 set_gdbarch_verify_disassembler_options.
10419 * s390-tdep.c (s390_disassembler_options): New static variable.
10420 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
10421 set_gdbarch_verify_disassembler_options.
10422
d538e36d
SM
104232017-02-27 Simon Marchi <simon.marchi@ericsson.com>
10424
10425 * remote.c (remote_add_target_side_condition): Remove "struct"
10426 keyword from range-based for loop.
10427
83621223
SM
104282017-02-27 Simon Marchi <simon.marchi@ericsson.com>
10429
10430 * remote.c (remote_add_target_side_condition): Use range-based
10431 for loop. Update comment.
10432
2123df0e
YQ
104332017-02-27 Yao Qi <yao.qi@linaro.org>
10434
10435 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
10436
8e368124
AH
104372017-02-26 Alan Hayward <alan.hayward@arm.com>
10438
10439 * regcache.c (regcache_raw_update): New function.
10440 (regcache_raw_read): Move code to regcache_raw_update.
10441 * regcache.h (regcache_raw_update): New declaration.
10442 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
10443
a49dd8dd
JK
104442017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10445
10446 * dwarf2read.c (create_debug_type_hash_table): Initialize
10447 header.signature and header.type_offset_in_tu.
10448
34e4bae9
PA
104492017-02-24 Pedro Alves <palves@redhat.com>
10450
10451 * symtab.c (make_file_symbol_completion_list_1): Use
10452 add_symtab_completions.
10453
b0e4b369
AH
104542017-02-24 Alan Hayward <alan.hayward@arm.com>
10455
10456 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
10457
975c21ab
AH
104582017-02-24 Alan Hayward <alan.hayward@arm.com>
10459
10460 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
10461 I386_MAX_REGISTER_SIZE.
10462 (i386_pseudo_register_write): Likewise.
10463 (i386_process_record): Likewise.
10464 * i387-tdep.c (i387_supply_xsave): Likewise.
10465 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
10466 (store_register): Likewise.
10467
14bc53a8
PA
104682017-02-23 Pedro Alves <palves@redhat.com>
10469
10470 * ada-lang.c: Include "common/function-view.h".
10471 (ada_iterate_over_symbols): Adjust to use function_view as
10472 callback type.
10473 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
10474 (ada_make_symbol_completion_list): Use a lambda.
10475 (ada_exc_search_name_matches): Delete.
10476 (name_matches_regex): New.
10477 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
10478 * compile/compile-c-support.c: Include "common/function-view.h".
10479 (print_one_macro): Change prototype to accept a ui_file pointer.
10480 (write_macro_definitions): Use a lambda.
10481 * dwarf2read.c: Include "common/function-view.h".
10482 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10483 (dw2_expand_symtabs_matching): Adjust to use function_view as
10484 callback type.
10485 * language.h: Include "common/function-view.h".
10486 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
10487 function_view as callback type.
10488 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
10489 * linespec.c: Include "common/function-view.h".
10490 (collect_info::add_symbol): New method.
10491 (struct symbol_and_data_callback, iterate_inline_only, struct
10492 symbol_matcher_data, iterate_name_matcher): Delete.
10493 (iterate_over_all_matching_symtabs): Adjust to use function_view
10494 as callback type and lambdas.
10495 (iterate_over_file_blocks): Adjust to use function_view as
10496 callback type.
10497 (decode_compound_collector): Now a class with private fields.
10498 (decode_compound_collector::release_symbols): New method.
10499 (collect_one_symbol): Rename to...
10500 (decode_compound_collector::operator()): ... this and adjust.
10501 (lookup_prefix_sym): decode_compound_collector construction bits
10502 move to decode_compound_collector ctor. Pass the
10503 decode_compound_collector object directly as callback. Remove
10504 cleanups and use decode_compound_collector::release_symbols
10505 instead.
10506 (symtab_collector): Now a class with private fields.
10507 (symtab_collector::release_symtabs): New method.
10508 (add_symtabs_to_list): Rename to...
10509 (symtab_collector::operator()): ... this and adjust.
10510 (collect_symtabs_from_filename): symtab_collector construction
10511 bits move to symtab_collector ctor. Pass the symtab_collector
10512 object directly as callback. Remove cleanups and use
10513 symtab_collector::release_symtabs instead.
10514 (collect_symbols): Delete.
10515 (add_matching_symbols_to_info): Use lambdas.
10516 * macrocmd.c (print_macro_callback): Delete.
10517 (info_macro_command): Use a lambda.
10518 (info_macros_command): Pass print_macro_definition as callable
10519 directly.
10520 (print_one_macro): Remove 'ignore' parameter.
10521 (macro_list_command): Adjust.
10522 * macrotab.c (macro_for_each_data::fn): Now a function_view.
10523 (macro_for_each_data::user_data): Delete field.
10524 (foreach_macro): Adjust to call the function_view.
10525 (macro_for_each): Adjust to use function_view as callback type.
10526 (foreach_macro_in_scope): Adjust to call the function_view.
10527 (macro_for_each_in_scope): Adjust to use function_view as callback
10528 type.
10529 * macrotab.h: Include "common/function-view.h".
10530 (macro_callback_fn): Declare a prototype instead of a pointer.
10531 Remove "user_data" parameter.
10532 (macro_for_each, macro_for_each_in_scope): Adjust to use
10533 function_view as callback type.
10534 * psymtab.c (partial_map_expand_apply)
10535 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
10536 Adjust to use function_view as callback type and to return bool.
10537 (psym_expand_symtabs_matching): Adjust to use function_view as
10538 callback types.
10539 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
10540 to use function_view as callback type and to return bool.
10541 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
10542 callback types.
10543 * symfile.c (expand_symtabs_matching): Adjust to use function_view
10544 as callback types.
10545 * symfile.h: Include "common/function-view.h".
10546 (expand_symtabs_file_matcher_ftype)
10547 (expand_symtabs_symbol_matcher_ftype)
10548 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
10549 return bool.
10550 (quick_symbol_functions::map_symtabs_matching_filename)
10551 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
10552 function_view as callback type and return bool.
10553 (expand_symtabs_matching): Adjust to use function_view as callback
10554 type.
10555 (maintenance_expand_name_matcher)
10556 (maintenance_expand_file_matcher): Delete.
10557 (maintenance_expand_symtabs): Use lambdas.
10558 * symtab.c (iterate_over_some_symtabs): Adjust to use
10559 function_view as callback types and return bool.
10560 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
10561 of a cleanup.
10562 (lookup_symtab_callback): Delete.
10563 (lookup_symtab): Use a lambda.
10564 (iterate_over_symbols): Adjust to use function_view as callback
10565 type.
10566 (struct search_symbols_data, search_symbols_file_matches)
10567 (search_symbols_name_matches): Delete.
10568 (search_symbols): Use a pair of lambdas.
10569 (struct add_name_data, add_macro_name, symbol_completion_matcher)
10570 (symtab_expansion_callback): Delete.
10571 (default_make_symbol_completion_list_break_on_1): Use lambdas.
10572 * symtab.h: Include "common/function-view.h".
10573 (iterate_over_some_symtabs): Adjust to use function_view as
10574 callback type and return bool.
10575 (iterate_over_symtabs): Adjust to use function_view as callback
10576 type.
10577 (symbol_found_callback_ftype): Remove 'data' parameter and return
10578 bool.
10579 (iterate_over_symbols): Adjust to use function_view as callback
10580 type.
10581
07e253aa
PA
105822017-02-23 Pedro Alves <palves@redhat.com>
10583
10584 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
10585 (%.o) <unittests/%.c>: New pattern.
10586 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
10587 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
10588 * common/function-view.h: New file.
10589 * unittests/function-view-selftests.c: New file.
10590 * configure: Regenerate.
10591
8eaf5320
SM
105922017-02-23 Simon Marchi <simon.marchi@ericsson.com>
10593
10594 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
10595 inferior_ptid.
10596 * go32-nat.c (go32_thread_alive): Likewise.
10597
38768751
YQ
105982017-02-23 Yao Qi <yao.qi@linaro.org>
10599
10600 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
10601 delete.
10602
0a8beaba
YQ
106032017-02-23 Yao Qi <yao.qi@linaro.org>
10604
10605 * varobj.c (varobj_clear_saved_item): Use delete instead of
10606 xfree.
10607 (update_dynamic_varobj_children): Likewise.
10608
58fdfd2c
JK
106092017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10610
10611 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
10612
1b90b139
SM
106132017-02-21 Simon Marchi <simon.marchi@ericsson.com>
10614
10615 * common/enum-flags.h (enum_flags::enum_flags): Initialize
10616 m_enum_value to 0 in default constructor.
10617
2039d74e
EBM
106182017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10619
10620 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
10621 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
10622 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
10623 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
10624 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
10625 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
10626 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
10627 IS_STORE_CONDITIONAL_INSN.
10628
7814882a
JK
106292017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10630
10631 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
10632
0ae60b63
JK
106332017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10634
10635 * NEWS (Changes since GDB 7.12): Add DWARF-5.
10636
0224619f
JK
106372017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10638
10639 * dwarf2read.c (skip_one_die, read_attribute_value)
10640 (dwarf2_const_value_attr, dump_die_shallow)
10641 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
10642 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
10643
0af92d60
JK
106442017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10645
10646 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
10647 (dwarf_parse_macro_header): Accept DWARF version 5.
10648 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
10649
216f72a1
JK
106502017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10651
10652 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
10653 DW_AT_GNU_*.
10654 * common/common-exceptions.h (enum errors): Likewise.
10655 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
10656 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
10657 (dwarf_expr_context::execute_stack_op): Likewise.
10658 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
10659 Likewise.
10660 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
10661 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10662 (show_entry_values_debug, call_site_to_target_addr)
10663 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
10664 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
10665 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
10666 (value_of_dwarf_block_entry, indirect_pieced_value)
10667 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
10668 (disassemble_dwarf_expression): Likewise.
10669 * dwarf2read.c (process_die, inherit_abstract_dies)
10670 (read_call_site_scope): Likewise.
10671 * gdbtypes.h (struct func_type, struct call_site_parameter)
10672 (struct call_site): Likewise.
10673 * stack.c (read_frame_arg): Likewise.
10674 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
10675
43988095
JK
106762017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10677
10678 * defs.h (read_unsigned_leb128): New declaration.
10679 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
10680 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
10681 (dwarf2_find_location_expression): Call also
10682 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
10683 * dwarf2loc.h (dwarf2_version): New declaration.
10684 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
10685 rnglists.
10686 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
10687 .debug_rnglists.
10688 (struct dwop_section_names): Add loclists_dwo.
10689 (dwop_section_names): Add .debug_loclists.dwo.
10690 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
10691 (struct dwarf2_per_cu_data): Add dwarf_version.
10692 (struct dwo_sections): Add loclists.
10693 (struct attr_abbrev): Add implicit_const.
10694 (read_indirect_line_string): New declaration.
10695 (read_unsigned_leb128): Delete declaration.
10696 (rcuh_kind): New definition.
10697 (read_and_check_comp_unit_head): Change parameter
10698 is_debug_types_section to section_kind.
10699 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
10700 (read_comp_unit_head): Change parameter abfd to section, add parameter
10701 section_kind. Handle DWARF-5.
10702 (error_check_comp_unit_head): Accept also DWARF version 5.
10703 (read_and_check_comp_unit_head): Change parameter
10704 is_debug_types_section to section_kind.
10705 (read_and_check_type_unit_head): Delete function.
10706 (read_abbrev_offset): Handle DWARF-5.
10707 (create_debug_type_hash_table): Add parameter section_kind. Process
10708 only DW_UT_type. Use signature and type_offset_in_tu from struct
10709 comp_unit_head.
10710 (create_debug_types_hash_table): Update create_debug_type_hash_table
10711 caller.
10712 (create_all_type_units): Call create_debug_type_hash_table.
10713 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
10714 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
10715 caller.
10716 (skip_one_die): Handle DW_FORM_implicit_const.
10717 (dwarf2_rnglists_process): New function.
10718 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
10719 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
10720 (read_attribute_value): Handle DW_FORM_implicit_const,
10721 DW_FORM_line_strp.
10722 (read_attribute): Handle DW_FORM_implicit_const.
10723 (read_indirect_string_at_offset_from): New function from
10724 read_indirect_string_at_offset.
10725 (read_indirect_string_at_offset): Call
10726 read_indirect_string_at_offset_from.
10727 (read_indirect_line_string_at_offset): New function.
10728 (read_indirect_string): New function comment.
10729 (read_indirect_line_string): New function.
10730 (read_unsigned_leb128): Make it global.
10731 (dwarf2_string_attr): Handle DWARF-5.
10732 (add_include_dir_stub, read_formatted_entries): New functions.
10733 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
10734 Handle DWARF-5.
10735 (per_cu_header_read_in): Update read_comp_unit_head caller.
10736 (dwarf2_version): New function.
10737 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
10738 rnglists.
10739 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
10740 fields.
10741
22d2f3ab
JK
107422017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10743
10744 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
10745
5f46c5a5
JK
107462017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10747
10748 * dwarf2read.c (dwarf2_ranges_process): New function from
10749 dwarf2_ranges_read.
10750 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
10751 dwarf2_ranges_process.
10752
78d4d2c5
JK
107532017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10754
10755 * dwarf2read.c (create_debug_type_hash_table): New function from
10756 create_debug_types_hash_table.
10757 (create_debug_types_hash_table): Call create_debug_type_hash_table.
10758 (create_all_type_units, open_and_init_dwo_file): Update
10759 create_debug_types_hash_table callers.
10760
1b076f25
SDJ
107612017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10762
10763 PR gdb/16188
10764 * fork-child.c (trace_start_error): Fix thinko. va_end should
10765 refer to 'ap', not 'args'.
10766
0db8980c
SDJ
107672017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10768 Pedro Alves <palves@redhat.com>
10769
10770 PR gdb/16188
10771 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
10772 calls succeeded.
10773 * fork-child.c (trace_start_error): New function.
10774 (trace_start_error_with_name): Likewise.
10775 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
10776 * inf-ptrace.c (inf_ptrace_me): Likewise.
10777 * inferior.h (trace_start_error): New prototype.
10778 (trace_start_error_with_name): Likewise.
10779
99e8a4f9
SDJ
107802017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
10781
10782 PR gdb/21164
10783 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
10784 NULL before using it.
10785 * symmisc.c (maintenance_print_symbols): Likewise.
10786 (maintenance_print_msymbols): Likewise.
10787
4e746bb6
TW
107882017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10789
10790 * NEWS: Add record Python bindings entry.
10791
107922017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10793
10794 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
10795 py-record-full.o.
10796 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
10797 * python/py-record-btrace.c, python/py-record-btrace.h,
10798 python/py-record-full.c, python/py-record-full.h: New file.
10799 * python/py-record.c: Add include for py-record-btrace.h and
10800 py-record-full.h.
10801 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
10802 recpy_instruction_history, recpy_function_call_history, recpy_begin,
10803 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
10804 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
10805 New definition.
10806 (gdbpy_initialize_btrace): New export.
10807 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
10808
108092017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10810
10811 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
10812 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
10813 * python/py-record.c: New file.
10814 * python/python-internal.h (gdbpy_start_recording,
10815 gdbpy_current_recording, gdpy_stop_recording,
10816 gdbpy_initialize_record): New export.
10817 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
10818 (python_GdbMethods): Add gdbpy_start_recording,
10819 gdbpy_current_recording and gdbpy_stop_recording.
10820
108212017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10822
10823 * record-btrace.c (record_btrace_record_method): New function.
10824 (init_record_btrace_ops): Initialize to_record_method.
10825 * record-full.c (record_full_record_method): New function.
10826 (init_record_full_ops, init_record_full_core_ops): Add
10827 record_full_record_method.
10828 * record.h (enum record_method): New enum.
10829 * target-debug.h (target_debug_print_enum_record_method: New define.
10830 * target-delegates.c: Regenerate.
10831 * target.c (target_record_method): New function.
10832 * target.h: Include record.h.
10833 (struct target_ops) <to_record_method>: New field.
10834 (target_record_method): New export.
10835
108362017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10837
10838 * record.h (record_start, record_stop): New export.
10839 * record.c (record_start, record_stop): New function.
10840
108412017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10842
10843 * btrace.c (btrace_fetch): Copy function call segments pointer
10844 into a vector.
10845 (btrace_clear): Clear the vector.
10846 (btrace_find_insn_by_number): Use binary search to find the correct
10847 function call segment.
10848 * btrace.h (brace_fun_p): New typedef.
10849 (struct btrace_thread_info) <functions>: New field.
10850
108512017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10852
10853 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
10854 * btrace.c (btrace_decode_error): ... here. New function.
10855 * btrace.h (btrace_decode_error): New export.
10856
108572017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10858
10859 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
10860 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
10861 btrace_find_insn_by_number): Remove special case for gaps.
10862 * btrace.h (btrace_insn_get_error): New export.
10863 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
10864 * record-btrace.c (btrace_insn_history): Print number for gaps.
10865 (record_btrace_info, record_btrace_goto): Handle gaps.
10866
3f77c769
TT
108672017-02-14 Tom Tromey <tom@tromey.com>
10868
10869 PR python/13598:
10870 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
10871 event.
10872 * python/py-evts.c (gdbpy_initialize_py_events): Add
10873 before_prompt registry.
10874 * python/py-events.h (events_object) <before_prompt>: New field.
10875
4c2c7ac6
MM
108762017-02-14 Markus Metzger <markus.t.metzger@intel.com>
10877
10878 * btrace.c (ftrace_new_switch): Preserve up link and flags.
10879
5cf30ebf
LM
108802017-02-13 Luis Machado <lgustavo@codesourcery.com>
10881
10882 * symfile (_initialize_symfile): Add usage text to the load command's
10883 help text.
10884
26a06916
SM
108852017-02-10 Simon Marchi <simon.marchi@ericsson.com>
10886
10887 * utils.c (defaulted_query): Don't query on secondary UIs.
10888
0b145e37
TT
108892017-02-10 Tom Tromey <tom@tromey.com>
10890
10891 * rust-lang.c (rust_get_disr_info): Remove unused variable.
10892
2d8365c4
TT
108932017-02-10 Tom Tromey <tom@tromey.com>
10894
10895 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
10896 "cleanup" local.
10897 * python/py-type.c (typy_legacy_template_argument): Remove
10898 unnecessary "cleanup" local.
10899
2bb8f231
TT
109002017-02-10 Tom Tromey <tom@tromey.com>
10901
10902 * python/python.c (do_start_initialization): New function, from
10903 _initialize_python.
10904 (_initialize_python): Call do_start_initialization.
10905 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
10906 goto.
10907
1bdfaf42
TT
109082017-02-10 Tom Tromey <tom@tromey.com>
10909
10910 * python/py-prettyprint.c (pretty_print_one_value): Use
10911 gdbpy_ref.
10912
88b6faea
TT
109132017-02-10 Tom Tromey <tom@tromey.com>
10914
10915 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
10916 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
10917 gdbpy_ref.
10918 * python/py-type.c (field_new): Use gdbpy_ref.
10919 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
10920 gdbpy_ref.
10921 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
10922 (py_free_pspace): Likewise.
10923 (pspace_to_pspace_object): Likewise.
10924 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
10925 (py_free_objfile): Likewise.
10926 (objfile_to_objfile_object): Likewise.
10927 * python/py-inferior.c (delete_thread_object): Use
10928 gdbpy_ref.
10929 (infpy_read_memory): Likewise.
10930 (py_free_inferior): Likewise.
10931 * python/py-evtregistry.c (create_eventregistry_object): Use
10932 gdbpy_ref.
10933 * python/py-event.c (create_event_object): Use gdbpy_ref.
10934
7780f186
TT
109352017-02-10 Tom Tromey <tom@tromey.com>
10936
10937 * python/py-ref.h (gdbpy_ref_policy): Now a template.
10938 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
10939 used.
10940 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
10941 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
10942 python/py-exitedevent.c, python/py-finishbreakpoint.c,
10943 python/py-framefilter.c, python/py-function.c,
10944 python/py-inferior.c, python/py-infevents.c,
10945 python/py-linetable.c, python/py-newobjfileevent.c,
10946 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
10947 python/py-signalevent.c, python/py-stopevent.c,
10948 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
10949 python/py-unwind.c, python/py-utils.c, python/py-value.c,
10950 python/py-varobj.c, python/py-xmethods.c, python/python.c,
10951 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
10952
d4b0bb18
TT
109532017-02-10 Tom Tromey <tom@tromey.com>
10954
10955 * ui-out.h (ui_out_emit_type): New class.
10956 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
10957 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
10958 and ui_out_emit_tuple.
10959 (enumerate_locals): Likewise.
10960 (py_mi_print_variables, py_print_locals, py_print_args): Use
10961 ui_out_emit_list.
10962 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
10963 ui_out_emit_list.
10964 * common/gdb_optional.h: New file.
10965
f67f945c
MG
109662017-02-10 Martin Galvan <martingalvan@sourceware.org>
10967
10968 * MAINTAINERS (Write After Approval): Update my e-mail address.
10969
18da0c51
MG
109702017-02-10 Martin Galvan <martingalvan@sourceware.org>
10971
10972 PR gdb/21122
10973 * breakpoint.c (_initialize_breakpoint): Update the help description
10974 of the 'commands' command to indicate that it takes a list argument.
10975
62c14536
SM
109762017-02-09 Simon Marchi <simon.marchi@ericsson.com>
10977
10978 * interps.c (current_interp_set_logging): Remove "return".
10979
ff6fa247
GB
109802017-02-09 Gary Benson <gbenson@redhat.com>
10981
10982 * symtab.c (add_symtab_completions): Prevent NULL pointer
10983 dereference.
10984
a474bd8e
PA
109852017-02-08 Pedro Alves <palves@redhat.com>
10986
10987 * interps.c (interp::interp): Remove reference to quiet_p.
10988 (interp_set): Make static. Remove dead "Switching to" output
10989 code.
10990 (interp_quiet_p, interp_set_quiet): Delete.
10991 (interpreter_exec_cmd): Don't set the interpreter quiet.
10992 * interps.h (interp_quiet_p): Make static.
10993 (class interp) <quiet_p>: Remove field
10994
3d7b173c
JG
109952017-02-08 Jerome Guitton <guitton@adacore.com>
10996
604c4576
JG
10997 * cli/cli-decode.c (find_command_name_length): Make it extern.
10998 * cli/cli-decode.h (find_command_name_length): Declare.
10999 * cli/cli-script.c (command_name_equals, line_first_arg):
11000 New functions.
11001 (process_next_line): Use cli-decode to parse command names.
11002 (build_command_line): Make args a constant pointer.
11003
110042017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 11005
3d7b173c
JG
11006 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
11007 Remove case-insensitive search.
11008
1291063d
JM
110092017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
11010
11011 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
11012 at the end of the line. Avoids an ARI warning.
11013
20b477a7
LM
110142017-02-06 Luis Machado <lgustavo@codesourcery.com>
11015
11016 * NEWS: Mention support for record/replay of Intel 64 rdrand and
11017 rdseed instructions.
11018 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
11019
3f7b46f2
IR
110202017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
11021
11022 PR tdep/20936
11023 Provide and use sparc32 and sparc64 target description XML files.
11024 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
11025 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
11026 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
11027 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
11028 * features/sparc/sparc32-solaris.xml: New file.
11029 * features/sparc/sparc64-solaris.xml: New file.
11030 * features/sparc/sparc32-solaris.c: Generated.
11031 * features/sparc/sparc64-solaris.c: Generated.
11032 * sparc-tdep.h: Account for differences in target descriptions.
11033 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
11034 (sparc32_register_type): Use target provided registers.
11035 (validate_tdesc_registers): New function.
11036 (sparc32_gdbarch_init): Use tdesc_has_registers.
11037 Set pseudoregister functions.
11038 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
11039 (sparc64_register_type): Use target provided registers.
11040 (sparc64_init_abi): Set pseudoregister functions.
11041
f0fd41c1
TT
110422017-02-03 Tom Tromey <tom@tromey.com>
11043
11044 PR rust/21097:
11045 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
11046 with a single member.
11047
d6f9b0fb
PA
110482017-02-03 Pedro Alves <palves@redhat.com>
11049
11050 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
11051 (cli_interp_base::~cli_interp_base): New.
11052 (cli_interp): New struct.
11053 (as_cli_interp): Cast the interp itself to cli_interp.
11054 (cli_interpreter_pre_command_loop): Rename to ...
11055 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
11056 parameter.
11057 (cli_interpreter_init): Rename to ...
11058 (cli_interp::init): ... this. Remove 'self' parameter. Use
11059 boolean. Make extern.
11060 (cli_interpreter_resume): Rename to ...
11061 (cli_interp::resume): ... this. Remove 'data' parameter. Make
11062 extern.
11063 (cli_interpreter_suspend): Rename to ...
11064 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
11065 extern.
11066 (cli_interpreter_exec): Rename to ...
11067 (cli_interp::exec): ... this. Remove 'data' parameter. Make
11068 extern.
11069 (cli_interpreter_supports_command_editing): Rename to ...
11070 (cli_interp_base::supports_command_editing): ... this. Remove
11071 'interp' parameter. Make extern.
11072 (cli_ui_out): Rename to ...
11073 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
11074 Make extern.
11075 (cli_set_logging): Rename to ...
11076 (cli_interp_base::set_logging): ... this. Remove 'interp'
11077 parameter. Make extern.
11078 (cli_interp_procs): Delete.
11079 (cli_interp_factory): Adjust to use "new".
11080 * cli/cli-interp.h: Include "interps.h".
11081 (struct cli_interp_base): New struct.
11082 * interps.c (struct interp): Delete. Fields moved to interps.h.
11083 (interp_new): Delete.
11084 (interp::interp, interp::~interp): New.
11085 (interp_set): Use bool, and return void. Assume the interpreter
11086 has suspend, init and resume methods, and that the all return
11087 void.
11088 (set_top_level_interpreter): interp_set returns void.
11089 (interp_ui_out): Adapt.
11090 (current_interp_set_logging): Adapt.
11091 (interp_data): Delete.
11092 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
11093 (interp_exec): Adapt.
11094 (top_level_interpreter_data): Delete.
11095 * interps.h (interp_init_ftype, interp_resume_ftype)
11096 (interp_suspend_ftype, interp_exec_ftype)
11097 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
11098 (class interp): New.
11099 (interp_new): Delete.
11100 (interp_set): Now returns void. Use bool.
11101 (interp_data, top_level_interpreter_data): Delete.
11102 * mi/mi-common.h: Include interps.h.
11103 (class mi_interp): Inherit from interp. Define a ctor. Declare
11104 init, resume, suspect, exec, interp_ui_out, set_logging and
11105 pre_command_loop methods.
11106 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
11107 (mi_interpreter_init): Rename to ...
11108 (mi_interp::init): ... this. Remove the 'interp' parameter, use
11109 bool, return void and make extern. Adjust.
11110 (mi_interpreter_resume): ... Rename to ...
11111 (mi_interp::resume): ... this. Remove the 'data' parameter,
11112 return void and make extern. Adjust.
11113 (mi_interpreter_suspend): ... Rename to ...
11114 (mi_interp::suspend): ... this. Remove the 'data' parameter,
11115 return void and make extern. Adjust.
11116 (mi_interpreter_exec): ... Rename to ...
11117 (mi_interp::exec): ... this. Remove the 'data' parameter and make
11118 extern. Adjust.
11119 (mi_interpreter_pre_command_loop): ... Rename to ...
11120 (mi_interp::pre_command_loop): ... this. Remove the 'self'
11121 parameter and make extern.
11122 (mi_on_normal_stop_1): Adjust.
11123 (mi_ui_out): Rename to ...
11124 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
11125 parameter and make extern. Adjust.
11126 (mi_set_logging): Rename to ...
11127 (mi_interp::set_logging): ... this. Remove the 'interp'
11128 parameter and make extern. Adjust.
11129 (mi_interp_procs): Delete.
11130 (mi_interp_factory): Adjust to use 'new'.
11131 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
11132 (mi_print_exception, mi_execute_command, mi_load_progress):
11133 Adjust.
11134 * tui/tui-interp.c (tui_interp): New class.
11135 (as_tui_interp): Return a tui_interp pointer.
11136 (tui_on_normal_stop, tui_on_signal_received)
11137 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
11138 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
11139 to use interp::interp_ui_out.
11140 (tui_init): Rename to ...
11141 (tui_interp::init): ... this. Remove the 'self' parameter, use
11142 bool, return void and make extern. Adjust.
11143 (tui_resume): Rename to ...
11144 (tui_interp::resume): ... this. Remove the 'data' parameter,
11145 return void and make extern. Adjust.
11146 (tui_suspend): Rename to ...
11147 (tui_interp::suspend): ... this. Remove the 'data' parameter,
11148 return void and make extern. Adjust.
11149 (tui_ui_out): Rename to ...
11150 (tui_interp::interp_ui_out): ... this. Remove the 'self'
11151 parameter, and make extern. Adjust.
11152 (tui_exec): Rename to ...
11153 (tui_interp::exec): ... this. Remove the 'data' parameter and
11154 make extern.
11155 (tui_interp_procs): Delete.
11156 (tui_interp_factory): Use "new".
11157
65c40c95
TT
111582017-02-02 Tom Tromey <tom@tromey.com>
11159
11160 * rust-exp.y (ends_raw_string, space_then_number)
11161 (rust_identifier_start_p): Return bool.
11162 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
11163 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
11164 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
11165 (rust_chartype_p): Return bool.
11166 (val_print_struct, rust_print_struct_def, rust_print_type):
11167 Update.
11168 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
11169 Return bool.
11170
b50f188d
TT
111712017-02-02 Tom Tromey <tom@tromey.com>
11172
11173 * rust-lang.c: Reindent.
11174
03c85b11
TT
111752017-02-02 Tom Tromey <tom@tromey.com>
11176
11177 * rust-lang.h (rust_crate_for_block): Update.
11178 * rust-lang.c (rust_crate_for_block): Return std::string.
11179 (rust_get_disr_info): Use std:;string, not
11180 gdb::unique_xmalloc_ptr.
11181 * rust-exp.y (crate_name): Update.
11182
9b6da501
PA
111832017-02-02 Pedro Alves <palves@redhat.com>
11184
11185 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
11186 field out of gdb_disassembler_test and make it static.
11187
ec4cb20b
PA
111882017-02-02 Pedro Alves <palves@redhat.com>
11189
11190 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
11191 mi1_interp and mi_interp fields.
11192
5be5dbf0
PA
111932017-02-02 Pedro Alves <palves@redhat.com>
11194
616268b6
PA
11195 * cli/cli-interp.c (struct saved_output_files, saved_output):
11196 Moved from cli/cli-logging.c.
11197 (cli_set_logging): New function.
11198 (cli_interp_procs): Install cli_set_logging.
11199 * cli/cli-interp.h (make_logging_output, cli_set_logging):
11200 Declare.
11201 * cli/cli-logging.c (struct saved_output_files, saved_output):
11202 Moved to cli/cli-interp.c.
11203 (pop_output_files): Don't save outputs here.
11204 (make_logging_output): New function.
11205 (handle_redirections): Don't build tee nor save previous outputs
11206 here.
11207 * interps.c (current_interp_set_logging): Change prototype.
11208 Assume there's always a set_logging_proc method installed.
11209 * interps.h (interp_set_logging_ftype): Change prototype.
11210 (current_interp_set_logging): Change prototype and adjust comment.
11211 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
11212 use make_logging_output.
11213 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
112142017-02-02 Pedro Alves <palves@redhat.com>
11215
5be5dbf0
PA
11216 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
11217 from ...
11218 (set_logging_overwrite): ... here.
11219 (logging_no_redirect_file): Delete.
11220 (set_logging_redirect): Don't handle redirection on the fly.
11221 Instead warn that "logging off" / "logging on" is necessary.
11222 (pop_output_files): Delete references to logging_no_redirect_file.
11223 (show_logging_command): Always speak in terms of what will happen
11224 once logging is reenabled.
11225
c99cc448
PA
112262017-02-02 Pedro Alves <palves@redhat.com>
11227
11228 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
11229
8b172ce7
PA
112302017-02-02 Pedro Alves <palves@redhat.com>
11231
11232 * disasm.c (gdb_pretty_print_insn): Rename to ...
11233 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
11234 Remove gdbarch parameter. Adapt to clear the object's buffers
11235 instead of allocating new buffers, and to print using the object's
11236 gdb_disassembler instead of calling gdb_print_insn.
11237 (dump_insns): Use gdb_pretty_print_disassembler.
11238 * disasm.h (gdb_pretty_print_insn): Delete declaration.
11239 (gdb_pretty_print_disassembler): New class.
11240 * record-btrace.c (btrace_insn_history): Use
11241 gdb_pretty_print_disassembler.
11242
d7e74731
PA
112432017-02-02 Pedro Alves <palves@redhat.com>
11244
11245 * ada-lang.c (type_as_string): Use string_file.
11246 * ada-valprint.c (ada_print_floating): Use string_file.
11247 * ada-varobj.c (ada_varobj_scalar_image)
11248 (ada_varobj_get_value_image): Use string_file.
11249 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
11250 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
11251 * breakpoint.c (update_inserted_breakpoint_locations)
11252 (insert_breakpoint_locations, reattach_breakpoints)
11253 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
11254 (print_it_watchpoint): Use string_file.
11255 (save_breakpoints): Use stdio_file.
11256 * c-exp.y (oper): Use string_file.
11257 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
11258 tee_file.
11259 (pop_output_files): Use delete.
11260 (handle_redirections): Use stdio_file and tee_file.
11261 * cli/cli-setshow.c (do_show_command): Use string_file.
11262 * compile/compile-c-support.c (c_compute_program): Use
11263 string_file.
11264 * compile/compile-c-symbols.c (generate_vla_size): Take a
11265 'string_file &' instead of a 'ui_file *'.
11266 (generate_c_for_for_one_variable): Take a 'string_file &' instead
11267 of a 'ui_file *'. Use string_file.
11268 (generate_c_for_variable_locations): Take a 'string_file &'
11269 instead of a 'ui_file *'.
11270 * compile/compile-internal.h (generate_c_for_for_one_variable):
11271 Take a 'string_file &' instead of a 'ui_file *'.
11272 * compile/compile-loc2c.c (push, pushf, unary, binary)
11273 (print_label, pushf_register_address, pushf_register)
11274 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
11275 'ui_file *'. Adjust.
11276 * compile/compile.c (compile_to_object): Use string_file.
11277 * compile/compile.h (compile_dwarf_expr_to_c)
11278 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
11279 'ui_file *'.
11280 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
11281 (replace_typedefs_qualified_name): Use string_file and
11282 obstack_copy0.
11283 * disasm.c (gdb_pretty_print_insn): Use string_file.
11284 (gdb_disassembly): Adjust reference the null_stream global.
11285 (do_ui_file_delete): Delete.
11286 (gdb_insn_length): Use null_stream.
11287 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
11288 * dwarf2loc.c (dwarf2_compile_property_to_c)
11289 (locexpr_generate_c_location, loclist_generate_c_location): Take a
11290 'string_file &' instead of a 'ui_file *'.
11291 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
11292 * dwarf2read.c (do_ui_file_peek_last): Delete.
11293 (dwarf2_compute_name): Use string_file.
11294 * event-top.c (gdb_setup_readline): Use stdio_file.
11295 * gdbarch.sh (verify_gdbarch): Use string_file.
11296 * gdbtypes.c (safe_parse_type): Use null_stream.
11297 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
11298 string_file.
11299 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
11300 'string_file *' instead of a 'ui_file *'.
11301 (gdbscm_arch_disassemble): Use string_file.
11302 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
11303 * guile/scm-ports.c (class ioscm_file_port): Now a class that
11304 inherits from ui_file.
11305 (ioscm_file_port_delete, ioscm_file_port_rewind)
11306 (ioscm_file_port_put): Delete.
11307 (ioscm_file_port_write): Rename to ...
11308 (ioscm_file_port::write): ... this. Remove file_port_magic
11309 checks.
11310 (ioscm_file_port_new): Delete.
11311 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
11312 ui_file_up.
11313 * guile/scm-type.c (tyscm_type_name): Use string_file.
11314 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
11315 Use string_file.
11316 * infcmd.c (print_return_value_1): Use string_file.
11317 * infrun.c (print_target_wait_results): Use string_file.
11318 * language.c (add_language): Use string_file.
11319 * location.c (explicit_to_string_internal): Use string_file.
11320 * main.c (captured_main_1): Use null_file.
11321 * maint.c (maintenance_print_architecture): Use stdio_file.
11322 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
11323 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
11324 event_channel>: Change type to mi_console_file pointer.
11325 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
11326 (mi_console_file_delete): Delete.
11327 (struct mi_console_file): Delete.
11328 (mi_console_file_magic): Delete.
11329 (mi_console_file_new): Delete.
11330 (mi_console_file::mi_console_file): New.
11331 (mi_console_file_delete): Delete.
11332 (mi_console_file_fputs): Delete.
11333 (mi_console_file::write): New.
11334 (mi_console_raw_packet): Delete.
11335 (mi_console_file::flush): New.
11336 (mi_console_file_flush): Delete.
11337 (mi_console_set_raw): Rename to ...
11338 (mi_console_file::set_raw): ... this.
11339 * mi/mi-console.h (class mi_console_file): New class.
11340 (mi_console_file_new, mi_console_set_raw): Delete.
11341 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
11342 (mi_set_logging): Use delete and tee_file. Adjust.
11343 * mi/mi-main.c (output_register): Use string_file.
11344 (mi_cmd_data_evaluate_expression): Use string_file.
11345 (mi_cmd_data_read_memory): Use string_file.
11346 (mi_cmd_execute, print_variable_or_computed): Use string_file.
11347 * mi/mi-out.c (mi_ui_out::main_stream): New.
11348 (mi_ui_out::rewind): Use main_stream and
11349 string_file.
11350 (mi_ui_out::put): Use main_stream and string_file.
11351 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
11352 Allocate a 'string_file' instead.
11353 (mi_out_new): Don't allocate a mem_fileopen stream here.
11354 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
11355 (mi_ui_out::main_stream): Declare method.
11356 * printcmd.c (eval_command): Use string_file.
11357 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
11358 * python/py-arch.c (archpy_disassemble): Use string_file.
11359 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
11360 * python/py-frame.c (frapy_str): Use string_file.
11361 * python/py-framefilter.c (py_print_type, py_print_single_arg):
11362 Use string_file.
11363 * python/py-type.c (typy_str): Use string_file.
11364 * python/py-unwind.c (unwind_infopy_str): Use string_file.
11365 * python/py-value.c (valpy_str): Use string_file.
11366 * record-btrace.c (btrace_insn_history): Use string_file.
11367 * regcache.c (regcache_print): Use stdio_file.
11368 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
11369 * remote.c (escape_buffer): Use string_file.
11370 * rust-lang.c (rust_get_disr_info): Use string_file.
11371 * serial.c (serial_open_ops_1): Use stdio_file.
11372 (do_serial_close): Use delete.
11373 * stack.c (print_frame_arg): Use string_file.
11374 (print_frame_args): Remove local mem_fileopen stream, not used.
11375 (print_frame): Use string_file.
11376 * symmisc.c (maintenance_print_symbols): Use stdio_file.
11377 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
11378 Take a 'string_file *' instead of a 'ui_file *'.
11379 * top.c (new_ui): Use stdio_file and stderr_file.
11380 (free_ui): Use delete.
11381 (execute_command_to_string): Use string_file.
11382 (quit_confirm): Use string_file.
11383 * tracepoint.c (collection_list::append_exp): Use string_file.
11384 * tui/tui-disasm.c (tui_disassemble): Use string_file.
11385 * tui/tui-file.c: Don't include "ui-file.h".
11386 (enum streamtype, struct tui_stream): Delete.
11387 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
11388 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
11389 (tui_file::tui_file): New method.
11390 (tui_file_fputs): Delete.
11391 (tui_file_get_strbuf): Delete.
11392 (tui_file::puts): New method.
11393 (tui_file_adjust_strbuf): Delete.
11394 (tui_file_flush): Delete.
11395 (tui_file::flush): New method.
11396 * tui/tui-file.h: Tweak intro comment.
11397 Include ui-file.h.
11398 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
11399 (tui_file_adjust_strbuf): Delete declarations.
11400 (class tui_file): New class.
11401 * tui/tui-io.c (tui_initialize_io): Use tui_file.
11402 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
11403 (tui_register_format): Use string_stream.
11404 * tui/tui-stack.c (tui_make_status_line): Use string_file.
11405 (tui_get_function_from_frame): Use string_file.
11406 * typeprint.c (type_to_string): Use string_file.
11407 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
11408 (null_stream): New global.
11409 (ui_file_delete): Delete.
11410 (ui_file::ui_file): New.
11411 (null_file_isatty): Delete.
11412 (ui_file::~ui_file): New.
11413 (null_file_rewind): Delete.
11414 (ui_file::printf): New.
11415 (null_file_put): Delete.
11416 (null_file_flush): Delete.
11417 (ui_file::putstr): New.
11418 (null_file_write): Delete.
11419 (ui_file::putstrn): New.
11420 (null_file_read): Delete.
11421 (ui_file::putc): New.
11422 (null_file_fputs): Delete.
11423 (null_file_write_async_safe): Delete.
11424 (ui_file::vprintf): New.
11425 (null_file_delete): Delete.
11426 (null_file::write): New.
11427 (null_file_fseek): Delete.
11428 (null_file::puts): New.
11429 (ui_file_data): Delete.
11430 (null_file::write_async_safe): New.
11431 (gdb_flush, ui_file_isatty): Adjust.
11432 (ui_file_put, ui_file_rewind): Delete.
11433 (ui_file_write): Adjust.
11434 (ui_file_write_for_put): Delete.
11435 (ui_file_write_async_safe, ui_file_read): Adjust.
11436 (ui_file_fseek): Delete.
11437 (fputs_unfiltered): Adjust.
11438 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
11439 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
11440 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
11441 (set_ui_file_data): Delete.
11442 (string_file::~string_file, string_file::write)
11443 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
11444 (do_ui_file_as_string, ui_file_as_string): Delete.
11445 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
11446 (struct mem_file): Delete.
11447 (mem_file_new): Delete.
11448 (stdio_file::stdio_file): New.
11449 (mem_file_delete): Delete.
11450 (stdio_file::stdio_file): New.
11451 (mem_fileopen): Delete.
11452 (stdio_file::~stdio_file): New.
11453 (mem_file_rewind): Delete.
11454 (stdio_file::set_stream): New.
11455 (mem_file_put): Delete.
11456 (stdio_file::open): New.
11457 (mem_file_write): Delete.
11458 (stdio_file_magic, struct stdio_file): Delete.
11459 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
11460 (stdio_file::flush): New.
11461 (stdio_file_read): Rename to ...
11462 (stdio_file::read): ... this. Adjust.
11463 (stdio_file_write): Rename to ...
11464 (stdio_file::write): ... this. Adjust.
11465 (stdio_file_write_async_safe): Rename to ...
11466 (stdio_file::write_async_safe) ... this. Adjust.
11467 (stdio_file_fputs): Rename to ...
11468 (stdio_file::puts) ... this. Adjust.
11469 (stdio_file_isatty): Delete.
11470 (stdio_file_fseek): Delete.
11471 (stdio_file::isatty): New.
11472 (stderr_file_write): Rename to ...
11473 (stderr_file::write) ... this. Adjust.
11474 (stderr_file_fputs): Rename to ...
11475 (stderr_file::puts) ... this. Adjust.
11476 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
11477 (stderr_file::stderr_file): New.
11478 (tee_file_magic): Delete.
11479 (struct tee_file): Delete.
11480 (tee_file::tee_file): New.
11481 (tee_file_new): Delete.
11482 (tee_file::~tee_file): New.
11483 (tee_file_delete): Delete.
11484 (tee_file_flush): Rename to ...
11485 (tee_file::flush): ... this. Adjust.
11486 (tee_file_write): Rename to ...
11487 (tee_file::write): ... this. Adjust.
11488 (tee_file::write_async_safe): New.
11489 (tee_file_fputs): Rename to ...
11490 (tee_file::puts): ... this. Adjust.
11491 (tee_file_isatty): Rename to ...
11492 (tee_file::isatty): ... this. Adjust.
11493 * ui-file.h (struct obstack, struct ui_file): Don't
11494 forward-declare.
11495 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
11496 (ui_file_write_ftype)
11497 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
11498 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
11499 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
11500 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
11501 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
11502 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
11503 (set_ui_file_fseek): Delete.
11504 (ui_file_data, ui_file_delete, ui_file_rewind)
11505 (struct ui_file): New.
11506 (ui_file_up): New.
11507 (class null_file): New.
11508 (null_stream): Declare.
11509 (ui_file_write_for_put, ui_file_put): Delete.
11510 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
11511 Delete.
11512 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
11513 (gdb_fopen, tee_file_new): Delete.
11514 (struct string_file): New.
11515 (struct stdio_file): New.
11516 (stdio_file_up): New.
11517 (struct stderr_file): New.
11518 (class tee_file): New.
11519 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
11520 of a 'ui_file *'. Adjust.
11521 * ui-out.h (class ui_out) <field_stream>: Likewise.
11522 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
11523 (null_stream): Delete.
11524 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
11525 Adjust.
11526 * utils.h (struct ui_file): Delete forward declaration..
11527 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
11528 (error_stream): Take a 'string_file &' instead of a
11529 'ui_file *'.
11530 * varobj.c (varobj_value_get_print_value): Use string_file.
11531 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
11532 * gdbarch.c: Regenerate.
11533
187808b0
PA
115342017-02-02 Pedro Alves <palves@redhat.com>
11535
11536 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
11537 (gdb_pretty_print_insn): ... this. Now a free function. Add back
11538 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
11539 Adjust to call gdb_print_insn instead of
11540 gdb_disassembler::print_insn.
11541 (dump_insns, do_mixed_source_and_assembly_deprecated)
11542 (do_mixed_source_and_assembly, do_assembly_only): Add back a
11543 'gdbarch' parameter. Remove gdb_disassembler parameter.
11544 (gdb_disassembly): Don't allocate a gdb_disassembler here.
11545 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
11546 declaration.
11547 (gdb_pretty_print_insn): Re-add declaration.
11548 * record-btrace.c (btrace_insn_history): Don't allocate a
11549 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
11550
7a8eb317
SM
115512017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
11552
11553 * disasm.h (gdb_disassembly): Remove file_string parameter.
11554 * disasm.c (gdb_disassembly): Likewise.
11555 * cli/cli-cmds.c (print_disassembly): Adapt.
11556 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
11557 * stack.c (do_gdb_disassembly): Likewise.
11558
7346ef59
AA
115592017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
11560
11561 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
11562 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
11563 targets. And if the implicit value is longer than needed, extract
11564 the first bytes instead of the "least significant" ones.
11565
cd4007e4
MM
115662017-02-01 Markus Metzger <markus.t.metzger@intel.com>
11567
11568 * btrace.c (btrace_enable): Do not call btrace_add_pc for
11569 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
11570 (btrace_fetch): Assert can_access_registers_ptid.
11571 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
11572 validate_registers_access.
11573
cf77c34e
MM
115742017-02-01 Markus Metzger <markus.t.metzger@intel.com>
11575
11576 * gdbthread.h (can_access_registers_ptid): New.
11577 * thread.c (can_access_registers_ptid): New.
11578
be85ce7d
PA
115792017-02-01 Pedro Alves <palves@redhat.com>
11580
11581 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
11582
29b0b251
PA
115832017-01-31 Pedro Alves <palves@redhat.com>
11584
11585 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
11586 Fix typos.
11587
289b5b24
PA
115882017-01-31 Pedro Alves <palves@redhat.com>
11589
11590 * stack.c (print_frame_args): Remove local mem_fileopen stream,
11591 not used.
11592
b47413b4
PA
115932017-01-31 Pedro Alves <palves@redhat.com>
11594
11595 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
11596
60adb36c
PA
115972017-01-31 Pedro Alves <palves@redhat.com>
11598
11599 * common/scoped_restore.h
11600 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
11601 change the value's parameter type to T2.
11602 (make_scoped_restore): Likewise.
11603
2735833d
WT
116042017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
11605 Richard Henderson <rth@redhat.com>
11606
11607 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
11608 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
11609 GS_BASE for older kernels.
11610 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
11611 GS_BASE for older kernels.
11612 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
11613 and GS_BASE to the offset table.
11614 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
11615 system register group.
11616 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
11617 for older kernels.
11618 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
11619 amd64 ABI.
11620 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
11621 AMD64_GSBASE_REGNUM.
11622 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
11623 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
11624 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
11625 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
11626 i386/64bit-segments.xml in those rules.
11627 * features/i386/64bit-segments.xml: New file.
11628 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
11629 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
11630 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
11631 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
11632 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
11633 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
11634 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
11635 * features/i386/amd64-avx-linux.c: Regenerated.
11636 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
11637 * features/i386/amd64-avx-mpx.c: Regenerated.
11638 * features/i386/amd64-avx512-linux.c: Regenerated.
11639 * features/i386/amd64-linux.c: Regenerated.
11640 * features/i386/amd64-mpx-linux.c: Regenerated.
11641 * features/i386/i386-avx-mpx-linux.c: Regenerated.
11642 * features/i386/i386-avx-mpx.c: Regenerated.
11643 * features/i386/x32-avx-linux.c: Regenerated.
11644 * features/i386/x32-avx512-linux.c: Regenerated.
11645 * regformats/i386/amd64-avx-linux.dat: Regenerated.
11646 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
11647 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
11648 * regformats/i386/amd64-linux.dat: Regenerated.
11649 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
11650 * regformats/i386/x32-avx-linux.dat: Regenerated.
11651 * regformats/i386/x32-avx512-linux.dat: Regenerated.
11652 * regformats/i386/x32-linux.dat: Regenerated.
11653
8884e97e
WT
116542017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
11655
11656 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
11657 Set to AMD64_NUM_REGS.
11658
7005d26a
WT
116592017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
11660
11661 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
11662 that checks validity of a register number.
11663
4bd2e1b2
KC
116642017-01-27 Kees Cook <keescook@google.com>
11665
11666 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
11667 fetch_fpregs if target has fpa registers.
11668 (arm_linux_store_inferior_registers): Call store_fpregs if target
11669 has fpa registers.
11670
7cf1de6c
AA
116712017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
11672
11673 * cris-tdep.c (cris_gdbarch_init): Remove check for
11674 info.byte_order and force it to BFD_ENDIAN_LITTLE.
11675
874a1c8c
AT
116762017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
11677
11678 * corelow.c (get_core_register_section): Check for regset
11679 existence before checking for REGSET_VARIABLE_SIZE.
11680
d8b49cf0
YQ
116812017-01-26 Yao Qi <yao.qi@linaro.org>
11682 Pedro Alves <palves@redhat.com>
11683
11684 PR gdb/20939
11685 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
11686 call memory_error, save memaddr instead.
11687 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
11688 negative, cal memory_error.
11689 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
11690
658ca58c
YQ
116912017-01-26 Yao Qi <yao.qi@linaro.org>
11692
11693 * disasm-selftests.c (memory_error_test): New function.
11694 (_initialize_disasm_selftests): Register memory_error_test.
11695
79843d45
YQ
116962017-01-26 Yao Qi <yao.qi@linaro.org>
11697
11698 * Makefile.in (SFILES): Add disasm-selftests.c and
11699 selftest-arch.c.
11700 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
11701 * disasm-selftests.c: New file.
11702 * selftest-arch.c: New file.
11703 * selftest-arch.h: New file.
11704
8cafda32
YQ
117052017-01-26 Yao Qi <yao.qi@linaro.org>
11706
11707 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
11708 to bfd_arch_mep. Don't return 0 if section is not
11709 found. Call print_insn_mep.
11710
e47ad6c0
YQ
117112017-01-26 Pedro Alves <palves@redhat.com>
11712 Yao Qi <yao.qi@linaro.org>
11713
11714 * arm-tdep.c: Include "disasm.h".
11715 (gdb_print_insn_arm): Update code to get gdbarch.
11716 * disasm.c (dis_asm_read_memory): Change it to
11717 gdb_disassembler::dis_asm_read_memory.
11718 (dis_asm_memory_error): Likewise.
11719 (dis_asm_print_address): Likewise.
11720 (gdb_pretty_print_insn): Change it to
11721 gdb_disassembler::pretty_print_insn.
11722 (dump_insns): Add one argument gdb_disassemlber. All
11723 callers updated.
11724 (do_mixed_source_and_assembly_deprecated): Likewise.
11725 (do_mixed_source_and_assembly): Likewise.
11726 (do_assembly_only): Likewise.
11727 (gdb_disassembler::gdb_disassembler): New.
11728 (gdb_disassembler::print_insn): New.
11729 * disasm.h (class gdb_disassembler): New.
11730 (gdb_pretty_print_insn): Remove declaration.
11731 (gdb_disassemble_info): Likewise.
11732 * guile/scm-disasm.c (class gdbscm_disassembler): New.
11733 (gdbscm_disasm_read_memory_worker): Update.
11734 (gdbscm_disasm_read_memory): Update.
11735 (gdbscm_disasm_memory_error): Remove.
11736 (gdbscm_disasm_print_address): Remove.
11737 (gdbscm_disassembler::gdbscm_disassembler): New.
11738 (gdbscm_print_insn_from_port): Update.
11739 * mips-tdep.c: Include disasm.h.
11740 (gdb_print_insn_mips): Update code to get gdbarch.
11741 * record-btrace.c (btrace_insn_history): Update.
11742 * spu-tdep.c: Include disasm.h.
11743 (struct spu_dis_asm_data): Remove.
11744 (struct spu_dis_asm_info): New.
11745 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
11746 SPU id.
11747 (gdb_print_insn_spu): Cast disassemble_info to
11748 spu_dis_asm_info.
11749
80d75874
YQ
117502017-01-26 Yao Qi <yao.qi@linaro.org>
11751
11752 * disasm.c (do_ui_file_delete): Delete.
11753 (gdb_insn_length): Move code creating stream to ...
11754 * utils.c (null_stream): ... here. New function.
11755 * utils.h (null_stream): Declare.
11756
60685cd0
SM
117572017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11758
11759 * python/py-inferior.c (find_thread_object): Return directly
11760 from the loop. Remove "found" variable.
11761
eb1cdb62
JB
117622017-01-21 Joel Brobecker <brobecker@adacore.com>
11763
11764 GDB 7.12.1 released.
11765
b1ce6568
SM
117662017-01-20 Simon Marchi <simon.marchi@ericsson.com>
11767
11768 * python/py-function.c (fnpy_call): Reorder declarations to have
11769 the gdbpy_enter object declared first.
11770 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
11771
6f8b0407
SM
117722017-01-20 Simon Marchi <simon.marchi@ericsson.com>
11773
fec93fb1 11774 PR python/21068
6f8b0407
SM
11775 * python/python-internal.h (PyMem_RawMalloc): Define for
11776 Python < 3.4.
11777 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
11778 PyMem_RawMalloc instead of PyMem_Malloc.
11779
78cbbba8
LM
117802017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
11781 Luis Machado <lgustavo@codesourcery.com>
11782
11783 * NEWS (New commands): Mention flash-erase.
11784 (New MI commands): Mention target-flash-erase.
11785 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
11786 command.
11787 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
11788 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
11789 * target.c (flash_erase_command): New function.
11790 (initialize_targets): Add new flash-erase command.
11791 * target.h (flash_erase_command): New declaration.
11792
2132fe85
JB
117932017-01-20 Joel Brobecker <brobecker@adacore.com>
11794
11795 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
11796 HAVE_SYS_PROCFS_H is defined.
11797
d1dff226
AH
117982017-01-18 Alan Hayward <alan.hayward@arm.com>
11799
11800 * remote.c (struct cached_reg): Change data into a pointer.
11801 * (stop_reply_dtr): Free data pointers before deleting vector.
11802 (process_stop_reply): Likewise.
11803 (remote_parse_stop_reply): Allocate space for data
11804
9890e433
AH
118052017-01-18 Alan Hayward <alan.hayward@arm.com>
11806
11807 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
11808 MAX_REGISTER_SIZE.
11809 (amd64_pseudo_register_read_value): Likewise.
11810 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
11811 (store_register_using_P): Likewise.
11812 * regcache.c (regcache_xfer_part): Likewise.
11813
7a36499a
IR
118142017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
11815
11816 Split real and pseudo registers.
11817 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
11818 (sparc32_pseudo_regnum): New enum.
11819 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
11820 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
11821 (SPARC32_CP0_REGISTERS): New macro.
11822 (sparc32_pseudo_register_name): New function.
11823 (sparc32_register_name): Use sparc32_pseudo_register_name.
11824 (sparc32_pseudo_register_type): New function.
11825 (sparc32_register_type): Use sparc32_pseudo_register_type.
11826 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
11827 pseudo register numbers.
11828 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
11829 (SPARC64_CP0_REGISTERS): New macro.
11830 (sparc64_pseudo_register_name): New function.
11831 (sparc64_register_name): Use sparc64_pseudo_register_name.
11832 (sparc64_pseudo_register_type): New function.
11833 (sparc64_register_type): Use sparc64_pseudo_register_type.
11834 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
11835 pseudo register numbers.
11836 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
11837 sparc64_store_arguments): Handle pseudo register numbers.
11838
6f8976bf
YQ
118392017-01-13 Yao Qi <yao.qi@linaro.org>
11840
11841 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
11842 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
11843 output.
11844 (getpkt_or_notif_sane_1): Likewise.
11845
e4241ace
YQ
118462017-01-13 Yao Qi <yao.qi@linaro.org>
11847
11848 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
11849 of CC. Pass "-x c++-header" instead of "-x c".
11850
3015c064
SM
118512017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11852
11853 * remote.c (remote_can_async_p): Update comment.
11854
fde1b17d
SM
118552017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11856
11857 * linux-nat.c (linux_nat_can_async_p): Update comment.
11858
ca1ca08b
SM
118592017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11860
11861 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
11862
4ad2da73
SM
118632017-01-11 Simon Marchi <simon.marchi@ericsson.com>
11864
11865 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
11866
c8b23b3f
TT
118672017-01-10 Tom Tromey <tom@tromey.com>
11868
11869 * python/py-type.c (typy_legacy_template_argument): Update.
11870 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
11871 ~demangle_parse_info): Declare new members.
11872 (cp_demangled_name_to_comp): Return unique_ptr.
11873 (cp_demangled_name_parse_free)
11874 (make_cleanup_cp_demangled_name_parse_free)
11875 (cp_new_demangle_parse_info): Remove.
11876 * cp-support.c (do_demangled_name_parse_free_cleanup)
11877 (make_cleanup_cp_demangled_name_parse_free): Remove.
11878 (inspect_type, cp_canonicalize_string_full)
11879 (cp_canonicalize_string): Update.
11880 (mangled_name_to_comp): Change return type.
11881 (cp_class_name_from_physname, method_name_from_physname)
11882 (cp_func_name, cp_remove_params): Update.
11883 * cp-name-parser.y (demangle_parse_info): New constructor, from
11884 cp_new_demangle_parse_info.
11885 (~demangle_parse_info): New destructor, from
11886 cp_demangled_name_parse_free.
11887 (cp_merge_demangle_parse_infos): Update.
11888 (cp_demangled_name_to_comp): Change return type.
11889
1ac32117
TT
118902017-01-10 Tom Tromey <tom@tromey.com>
11891
11892 * top.c (prevent_dont_repeat): Change return type.
11893 * python/python.c (execute_gdb_command): Use std::string.
11894 Update.
11895 * guile/guile.c (gdbscm_execute_gdb_command): Update.
11896 * command.h (prevent_dont_repeat): Change return type.
11897 * breakpoint.c (bpstat_do_actions_1): Update.
11898
0cf08227
TT
118992017-01-10 Tom Tromey <tom@tromey.com>
11900
11901 * value.h (scoped_value_mark::~scoped_value_mark): Call
11902 free_to_mark.
11903 (scoped_value_mark::free_to_mark): New method.
11904 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
11905 scoped_value_mark.
11906
eb115069
TT
119072017-01-10 Tom Tromey <tom@tromey.com>
11908
11909 * python/py-value.c (valpy_dereference, valpy_referenced_value)
11910 (valpy_reference_value, valpy_const_value, valpy_get_address)
11911 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11912 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
11913 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
11914 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
11915 scoped_value_mark.
11916 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
11917 * value.h (scoped_value_mark): New class.
11918
906768f9
TT
119192017-01-10 Tom Tromey <tom@tromey.com>
11920
11921 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
11922 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
11923 * psymtab.c (discard_psymtabs_upto): Remove.
11924 (make_cleanup_discard_psymtabs): Remove.
11925 (struct psymtab_state): Remove.
11926
bef155c3
TT
119272017-01-10 Tom Tromey <tom@tromey.com>
11928
11929 * record-full.c (record_full_save_cleanups): Remove.
11930 (record_full_save): Use gdb::unlinker.
11931 * gcore.c (do_bfd_delete_cleanup): Remove.
11932 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
11933 cleanups.
11934 * dwarf2read.c (unlink_if_set): Remove.
11935 (write_psymtabs_to_index): Use gdb::unlinker.
11936 * common/gdb_unlinker.h: New file.
11937
192b62ce
TT
119382017-01-10 Tom Tromey <tom@tromey.com>
11939
11940 * windows-tdep.c (windows_xfer_shared_library): Update.
11941 * windows-nat.c (windows_make_so): Update.
11942 * utils.h (make_cleanup_bfd_unref): Remove.
11943 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
11944 * symfile.h (symfile_bfd_open)
11945 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
11946 * symfile.c (read_symbols, symbol_file_add)
11947 (separate_debug_file_exists): Update.
11948 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
11949 (generic_load, reread_symbols): Update.
11950 * symfile-mem.c (symbol_file_add_from_memory): Update.
11951 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
11952 (spu_symbol_file_add_from_memory): Update.
11953 * solist.h (struct target_so_ops) <bfd_open>: Return
11954 gdb_bfd_ref_ptr.
11955 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
11956 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
11957 gdb_bfd_ref_ptr.
11958 (solib_map_sections, reload_shared_libraries_1): Update.
11959 * solib-svr4.c (enable_break): Update.
11960 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
11961 * solib-frv.c (enable_break2): Update.
11962 * solib-dsbt.c (enable_break): Update.
11963 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
11964 gdb_bfd_ref_ptr.
11965 (darwin_solib_get_all_image_info_addr_at_init): Update.
11966 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
11967 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
11968 * record-full.c (record_full_save): Update.
11969 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
11970 * procfs.c (insert_dbx_link_bpt_in_file): Update.
11971 * minidebug.c (find_separate_debug_file_in_section): Return
11972 gdb_bfd_ref_ptr.
11973 * machoread.c (macho_add_oso_symfile): Change abfd to
11974 gdb_bfd_ref_ptr.
11975 (macho_symfile_read_all_oso): Update.
11976 (macho_check_dsym): Return gdb_bfd_ref_ptr.
11977 (macho_symfile_read): Update.
11978 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
11979 (jit_bfd_try_read_symtab): Update.
11980 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11981 (gdb_bfd_openw, gdb_bfd_openr_iovec)
11982 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
11983 gdb_bfd_ref_ptr.
11984 (gdb_bfd_ref_policy): New struct.
11985 (gdb_bfd_ref_ptr): New typedef.
11986 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11987 (gdb_bfd_openw, gdb_bfd_openr_iovec)
11988 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
11989 gdb_bfd_ref_ptr.
11990 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
11991 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
11992 (gcore_command): Update.
11993 * exec.c (exec_file_attach): Update.
11994 * elfread.c (elf_symfile_read): Update.
11995 * dwarf2read.c (dwarf2_get_dwz_file): Update.
11996 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
11997 (open_and_init_dwo_file): Update.
11998 (open_dwp_file): Return gdb_bfd_ref_ptr.
11999 (open_and_init_dwp_file): Update.
12000 * corelow.c (core_open): Update.
12001 * compile/compile-object-load.c (compile_object_load): Update.
12002 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
12003 * coffread.c (coff_symfile_read): Update.
12004 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
12005 gdb_bfd_ref_ptr. Rename.
12006 (dump_bfd_file, restore_command): Update.
12007 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
12008 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
12009 (find_separate_debug_file_by_buildid): Update.
12010
50315b21
TT
120112017-01-10 Tom Tromey <tom@tromey.com>
12012
12013 * common/gdb_ref_ptr.h: New file.
12014 * python/py-ref.h (struct gdbpy_ref_policy): New.
12015 (gdbpy_ref): Now a typedef.
12016
fc4007c9
TT
120172017-01-10 Tom Tromey <tom@tromey.com>
12018
12019 * utils.h (make_cleanup_htab_delete): Don't declare.
12020 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
12021 Remove.
12022 * linespec.c (decode_compound_collector): Add constructor,
12023 destructor.
12024 (lookup_prefix_sym): Remove cleanup.
12025 (symtab_collector): Add constructor, destructor.
12026 (collect_symtabs_from_filename): Remove cleanup.
12027 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
12028 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
12029 Use htab_up.
12030 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
12031 * dwarf2read.c (dw2_expand_symtabs_matching)
12032 (dw2_map_symbol_filenames, dwarf_decode_macros)
12033 (write_psymtabs_to_index): Use htab_up.
12034 * dwarf2loc.c (func_verify_no_selftailcall)
12035 (call_site_find_chain_1, func_verify_no_selftailcall)
12036 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
12037 std::vector, gdb::unique_xmalloc_ptr.
12038 (call_sitep): Remove typedef.
12039 (dwarf2_locexpr_baton_eval): Remove unused variable.
12040
8dbcee67
TT
120412017-01-10 Tom Tromey <tom@tromey.com>
12042
12043 * python/python-internal.h (make_cleanup_py_decref)
12044 (make_cleanup_py_xdecref): Don't declare.
12045 * python/py-utils.c (py_decref, make_cleanup_py_decref)
12046 (py_xdecref, make_cleanup_py_xdecref): Remove.
12047
13df46cc
TT
120482017-01-10 Tom Tromey <tom@tromey.com>
12049
12050 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
12051 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
12052
06fc9bf7
TT
120532017-01-10 Tom Tromey <tom@tromey.com>
12054
12055 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
12056
830a4934
TT
120572017-01-10 Tom Tromey <tom@tromey.com>
12058
12059 * python/py-utils.c (unicode_to_encoded_string)
12060 (python_string_to_target_string)
12061 (python_string_to_target_python_string)
12062 (python_string_to_host_string, gdbpy_obj_to_string)
12063 (get_addr_from_python): Use gdbpy_ref.
12064
4586d543
TT
120652017-01-10 Tom Tromey <tom@tromey.com>
12066
12067 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
12068 gdbpy_ref.
12069
59876f8f
TT
120702017-01-10 Tom Tromey <tom@tromey.com>
12071
12072 * python/python.c (eval_python_command, gdbpy_decode_line)
12073 (gdbpy_run_events, gdbpy_start_type_printers)
12074 (gdbpy_apply_type_printers): Use gdbpy_ref.
12075
97d83487
TT
120762017-01-10 Tom Tromey <tom@tromey.com>
12077
12078 * python/py-param.c (get_doc_string, compute_enum_values): Use
12079 gdbpy_ref.
12080
9205649a
TT
120812017-01-10 Tom Tromey <tom@tromey.com>
12082
12083 * python/py-inferior.c (find_thread_object, build_inferior_list):
12084 Use gdbpy_ref.
12085
74c49d45
TT
120862017-01-10 Tom Tromey <tom@tromey.com>
12087
12088 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
12089
16361ffb
TT
120902017-01-10 Tom Tromey <tom@tromey.com>
12091
12092 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
12093 gdbpy_ref.
12094
905f2cca
TT
120952017-01-10 Tom Tromey <tom@tromey.com>
12096
12097 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
12098 extra incref.
12099 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
12100 Use gdbpy_ref.
12101
64081434
TT
121022017-01-10 Tom Tromey <tom@tromey.com>
12103
12104 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
12105 gdbpy_ref.
12106
59e9e831
TT
121072017-01-10 Tom Tromey <tom@tromey.com>
12108
12109 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
12110 decref results of PyArg_ParseTupleAndKeywords.
12111
9de10f6d
TT
121122017-01-10 Tom Tromey <tom@tromey.com>
12113
12114 * python/python.c (python_run_simple_file): Use
12115 unique_xmalloc_ptr, gdbpy_ref.
12116
2bd5759d
TT
121172017-01-10 Tom Tromey <tom@tromey.com>
12118
12119 * python/py-prettyprint.c (print_stack_unless_memory_error)
12120 (print_string_repr, print_children): Use gdbpy_ref.
12121 (dummy_python_frame): New class.
12122 (dummy_python_frame::dummy_python_frame): Rename from
12123 push_dummy_python_frame.
12124 (py_restore_tstate): Remove.
12125
3b4e0e01
TT
121262017-01-10 Tom Tromey <tom@tromey.com>
12127
12128 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
12129
17a22718
TT
121302017-01-10 Tom Tromey <tom@tromey.com>
12131
12132 * python/python.c (ensure_python_env, restore_python_env):
12133 Remove.
12134 * python/python-internal.h (ensure_python_env): Don't declare.
12135 * varobj.h (varobj_ensure_python_env): Don't declare.
12136 * varobj.c (varobj_ensure_python_env): Remove.
12137
68cdc557
TT
121382017-01-10 Tom Tromey <tom@tromey.com>
12139
12140 * varobj.c (varobj_value_get_print_value): Use
12141 gdbpy_enter_varobj.
12142
1eba6383
TT
121432017-01-10 Tom Tromey <tom@tromey.com>
12144
12145 * python/py-prettyprint.c (print_string_repr, print_children):
12146 Update.
12147 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
12148 of "encoding".
12149 * varobj.c (varobj_value_get_print_value): Update.
12150 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
12151
bde7b3e3
TT
121522017-01-10 Tom Tromey <tom@tromey.com>
12153
12154 * varobj.c (varobj_get_display_hint)
12155 (dynamic_varobj_has_child_method, install_new_value_visualizer)
12156 (varobj_set_visualizer, free_variable): Use
12157 gdbpy_enter_varobj.
12158
a7785f8c
TT
121592017-01-10 Tom Tromey <tom@tromey.com>
12160
12161 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
12162 (do_finish_initialization): New function. Use gdbpy_ref.
12163 (gdbpy_finish_initialization): Use gdbpy_enter. Call
12164 do_finish_initialization.
12165
2865bfce
TT
121662017-01-10 Tom Tromey <tom@tromey.com>
12167
12168 * python/py-param.c (get_set_value, get_show_value): Use
12169 gdbpy_enter, gdbpy_ref.
12170
0e9dcc75
TT
121712017-01-10 Tom Tromey <tom@tromey.com>
12172
12173 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
12174
12a5cedd
TT
121752017-01-10 Tom Tromey <tom@tromey.com>
12176
12177 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
12178
788f2586
TT
121792017-01-10 Tom Tromey <tom@tromey.com>
12180
12181 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
12182 Use gdbpy_enter_varobj.
12183
6cd67bea
TT
121842017-01-10 Tom Tromey <tom@tromey.com>
12185
12186 * varobj.c (gdbpy_enter_varobj): New constructor.
12187 * python/python-internal.h (gdbpy_enter_varobj): New class.
12188 * python/py-varobj.c (py_varobj_get_iterator): Use
12189 gdbpy_enter_varobj.
12190
14b122bf
TT
121912017-01-10 Tom Tromey <tom@tromey.com>
12192
12193 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
12194 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
12195 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
12196 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
12197 unique_xmalloc_ptr.
12198 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
12199
bf1ca3b9
TT
122002017-01-10 Tom Tromey <tom@tromey.com>
12201
12202 * python/py-xmethods.c (invoke_match_method): Use
12203 gdbpy_ref.
12204
572a5524
TT
122052017-01-10 Tom Tromey <tom@tromey.com>
12206
12207 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
12208 gdbpy_enter, gdbpy_ref.
12209
396a78b6
TT
122102017-01-10 Tom Tromey <tom@tromey.com>
12211
12212 * python/python.c (python_interactive_command): Use gdbpy_enter.
12213
a88b13c7
TT
122142017-01-10 Tom Tromey <tom@tromey.com>
12215
12216 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
12217 gdbpy_ref.
12218
e9f0c363
TT
122192017-01-10 Tom Tromey <tom@tromey.com>
12220
12221 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
12222 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
12223
6349f452
TT
122242017-01-10 Tom Tromey <tom@tromey.com>
12225
12226 * utils.h (htab_deleter): New struct.
12227 (htab_up): New typedef.
12228 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
12229 gdbpy_enter, gdbpy_ref, htab_up.
12230
c0171de6
TT
122312017-01-10 Tom Tromey <tom@tromey.com>
12232
12233 * python/py-unwind.c (pending_frame_invalidate): Remove.
12234 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
12235
f18e226f
TT
122362017-01-10 Tom Tromey <tom@tromey.com>
12237
12238 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
12239 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
12240
c57af3f1
TT
122412017-01-10 Tom Tromey <tom@tromey.com>
12242
12243 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
12244
60e600ec
TT
122452017-01-10 Tom Tromey <tom@tromey.com>
12246
12247 * python/python.c (gdbpy_eval_from_control_command)
12248 (gdbpy_source_script, gdbpy_run_events)
12249 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
12250 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
12251 gdbpy_enter.
12252
bf7da5b0
TT
122532017-01-10 Tom Tromey <tom@tromey.com>
12254
12255 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
12256
2d38bced
TT
122572017-01-10 Tom Tromey <tom@tromey.com>
12258
12259 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
12260
07bc7329
TT
122612017-01-10 Tom Tromey <tom@tromey.com>
12262
12263 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
12264 (python_on_inferior_call_pre, python_on_inferior_call_post)
12265 (python_on_memory_change, python_on_register_change)
12266 (python_inferior_exit, python_new_objfile, add_thread_object)
12267 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
12268
6e7c365e
TT
122692017-01-10 Tom Tromey <tom@tromey.com>
12270
12271 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
12272 (bpfinishpy_handle_exit): Use gdbpy_enter.
12273
6ba0cd40
TT
122742017-01-10 Tom Tromey <tom@tromey.com>
12275
12276 * python/py-cmd.c (cmdpy_destroyer)
12277 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
12278 gdbpy_enter.
12279
de2dc875
TT
122802017-01-10 Tom Tromey <tom@tromey.com>
12281
12282 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
12283 gdbpy_enter.
12284 (gdbpy_breakpoint_has_cond): Likewise.
12285
4ecee2c4
TT
122862017-01-10 Tom Tromey <tom@tromey.com>
12287
12288 * python/python.c (gdbpy_enter): New constructor.
12289 (~gdbpy_enter): New destructor.
12290 (restore_python_env, ensure_python_env): Rewrite.
12291 * python/python-internal.h (gdbpy_enter): New class.
12292
37fce74f
TT
122932017-01-10 Tom Tromey <tom@tromey.com>
12294
12295 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
12296
53a0cca3
TT
122972017-01-10 Tom Tromey <tom@tromey.com>
12298
12299 * python/py-value.c (value_has_field, get_field_flag)
12300 (get_field_type, valpy_getitem, convert_value_from_python): Use
12301 gdbpy_ref.
12302
ff3724f5
TT
123032017-01-10 Tom Tromey <tom@tromey.com>
12304
12305 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
12306 gdbpy_ref.
12307
0700aea5
TT
123082017-01-10 Tom Tromey <tom@tromey.com>
12309
12310 * python/py-prettyprint.c (search_pp_list)
12311 (find_pretty_printer_from_objfiles)
12312 (find_pretty_printer_from_progspace)
12313 (find_pretty_printer_from_gdb, find_pretty_printer)
12314 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
12315 gdbpy_ref.
12316
1bb44c9f
TT
123172017-01-10 Tom Tromey <tom@tromey.com>
12318
12319 * python/py-param.c (call_doc_function): Use gdbpy_ref.
12320
87ce03fd
TT
123212017-01-10 Tom Tromey <tom@tromey.com>
12322
12323 * python/py-linetable.c (build_line_table_tuple_from_pcs)
12324 (ltpy_get_all_source_lines): Use gdbpy_ref.
12325
ee0a3fb8
TT
123262017-01-10 Tom Tromey <tom@tromey.com>
12327
12328 * python/py-framefilter.c (extract_sym, extract_value)
12329 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
12330 gdbpy_ref.
12331
bf2a52fa
TT
123322017-01-10 Tom Tromey <tom@tromey.com>
12333
12334 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
12335
f59fe7f8
TT
123362017-01-10 Tom Tromey <tom@tromey.com>
12337
12338 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
12339
80bd970a
TT
123402017-01-10 Tom Tromey <tom@tromey.com>
12341
12342 * python/py-function.c (convert_values_to_python, fnpy_init): Use
12343 gdbpy_ref.
12344
d1b3de2e
TT
123452017-01-10 Tom Tromey <tom@tromey.com>
12346
12347 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
12348
3bb43384
TT
123492017-01-10 Tom Tromey <tom@tromey.com>
12350
12351 * python/py-type.c (convert_field, make_fielditem, typy_fields)
12352 (typy_range): Use gdbpy_ref.
12353
abf5651e
TT
123542017-01-10 Tom Tromey <tom@tromey.com>
12355
12356 * python/py-threadevent.c (create_thread_event_object): Use
12357 gdbpy_ref.
12358 * python/py-stopevent.c (create_stop_event_object): Simplify.
12359 (emit_stop_event): Use gdbpy_ref.
12360 * python/py-signalevent.c (create_signal_event_object): Use
12361 gdbpy_ref.
12362 * python/py-newobjfileevent.c (create_new_objfile_event_object)
12363 (emit_new_objfile_event, create_clear_objfiles_event_object)
12364 (emit_clear_objfiles_event): Use gdbpy_ref.
12365 * python/py-infevents.c (create_inferior_call_event_object)
12366 (create_register_changed_event_object)
12367 (create_memory_changed_event_object, emit_inferior_call_event)
12368 (emit_memory_changed_event, emit_register_changed_event): Use
12369 gdbpy_ref.
12370 * python/py-exitedevent.c (create_exited_event_object)
12371 (emit_exited_event): Use gdbpy_ref.
12372 * python/py-event.h (evpy_emit_event): Remove
12373 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
12374 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
12375 * python/py-continueevent.c (emit_continue_event): Use
12376 gdbpy_ref.
12377 * python/py-breakpoint.c (gdbpy_breakpoint_created)
12378 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
12379 gdbpy_ref.
12380 * python/py-bpevent.c (create_breakpoint_event_object): Use
12381 gdbpy_ref.
12382
a68ff33e
TT
123832017-01-10 Tom Tromey <tom@tromey.com>
12384
12385 * python/py-ref.h: New file.
12386
7becfd03
SM
123872017-01-10 Simon Marchi <simon.marchi@ericsson.com>
12388
12389 * cli-out.c (cli_ui_out::do_redirect): Change return type to
12390 void.
12391 * cli-out.h (cli_ui_out::do_redirect): Likewise.
12392 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
12393 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
12394 * ui-out.c (ui_out::redirect): Likewise.
12395 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
12396 * cli/cli-logging.c (set_logging_redirect): Update call site of
12397 ui_out::redirect.
12398 (handle_redirections): Likewise.
12399 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
12400 * top.c (execute_command_to_string): Likewise.
12401 * utils.c (do_ui_out_redirect_pop): Likewise.
12402
df294654
SM
124032017-01-10 Simon Marchi <simon.marchi@ericsson.com>
12404
12405 * stack.c (_initialize_stack): Update "frame" command help message.
12406
f5e6296e
IB
124072017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
12408
12409 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
12410
0e2d6fa6
YQ
124112017-01-06 Yao Qi <yao.qi@linaro.org>
12412
12413 * x86-linux-nat.h: Include gdb_proc_service.h.
12414
44d6d3f9
YQ
124152017-01-06 Yao Qi <yao.qi@linaro.org>
12416
12417 * ser-base.h: Include serial.h.
12418
656731fe
YQ
124192017-01-06 Yao Qi <yao.qi@linaro.org>
12420
12421 * ppc-linux-tdep.h: Include ppc-tdep.h.
12422
1ca8f924
YQ
124232017-01-06 Yao Qi <yao.qi@linaro.org>
12424
12425 * nat/amd64-linux-siginfo.h: Include signal.h.
12426
bc3008c4
YQ
124272017-01-06 Yao Qi <yao.qi@linaro.org>
12428
12429 * nat/aarch64-linux-hw-point.h: Include break-common.h.
12430
66c80d03
YQ
124312017-01-06 Yao Qi <yao.qi@linaro.org>
12432
12433 * mi/mi-parse.h: Include mi-cmds.h.
12434
051d2dda
YQ
124352017-01-06 Yao Qi <yao.qi@linaro.org>
12436
12437 * inf-loop.c: Don't include "target.h".
12438 * inf-loop.h: Include it here.
12439
8018d34f
YQ
124402017-01-06 Yao Qi <yao.qi@linaro.org>
12441
12442 * dfp.h: Include "dboulest.h" and "expression.h".
12443
c0b8369c
YQ
124442017-01-06 Yao Qi <yao.qi@linaro.org>
12445
12446 * ax-gdb.h: Include "ax.h".
12447
ad5cba2a
YQ
124482017-01-06 Yao Qi <yao.qi@linaro.org>
12449
12450 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
12451 with nat/gdb_ptrace.h.
12452
1c33cd7f
YQ
124532017-01-05 Yao Qi <yao.qi@linaro.org>
12454
12455 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
12456 new line.
12457 (mips64_fbsd_sigframe_init): Likewise.
12458
c988ac1d
JB
124592017-01-04 John Baldwin <jhb@FreeBSD.org>
12460
12461 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
12462 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
12463
b268007c
JB
124642017-01-04 John Baldwin <jhb@FreeBSD.org>
12465
12466 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
12467 * NEWS: Mention new FreeBSD/mips native configuration.
12468 * config/mips/fbsd.mh: New file.
12469 * configure.host: Add mips*-*-freebsd*.
12470 * mips-fbsd-nat.c: New file.
12471
387360da
JB
124722017-01-04 John Baldwin <jhb@FreeBSD.org>
12473
12474 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
12475 (ALLDEPFILES): Add mips-fbsd-tdep.c.
12476 * NEWS: Mention new FreeBSD/mips target.
12477 * configure.tgt: Add mips*-*-freebsd*.
12478 * mips-fbsd-tdep.c: New file.
12479 * mips-fbsd-tdep.h: New file.
12480
2aaaf250
YQ
124812017-01-04 Yao Qi <yao.qi@linaro.org>
12482
12483 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
12484 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
12485
61baf725
JB
124862017-01-01 Joel Brobecker <brobecker@adacore.com>
12487
6dbb839a 12488 Update copyright year range in all GDB files.
61baf725 12489
c113e7ff 124902017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 12491
c113e7ff 12492 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 12493
c113e7ff 12494For older changes see ChangeLog-2016.
c906108c
SS
12495\f
12496Local Variables:
12497mode: change-log
12498left-margin: 8
12499fill-column: 74
12500version-control: never
57da7796 12501coding: utf-8
c906108c 12502End:
This page took 2.802947 seconds and 4 git commands to generate.