mn10300: Don't free cached internal symbol table
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
cbd2b4e3
PA
12017-10-09 Pedro Alves <palves@redhat.com>
2
3 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
4 reading registers when switching context.
5
a181c0bf
JB
62017-10-09 John Baldwin <jhb@FreeBSD.org>
7
8 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
9 (fbsd_convert_siginfo): Likewise.
10 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
11
6e66f753
SM
122017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
13
14 * configure.ac (try_guile_versions): Remove guile-2.2.
15 * configure: Regenerate.
16
890e9790
TT
172017-10-09 Tom Tromey <tom@tromey.com>
18
19 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
20 (COMPILE.pre): Use $(CXX).
21
109483d9
PA
222017-10-09 Pedro Alves <palves@redhat.com>
23
24 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
25 Use bool.
26 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
27 * cp-support.h (cp_remove_params): Now returns a
28 gdb::unique_xmalloc_ptr.
29 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
30 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
31 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
32 returning a gdb::unique_xmalloc_ptr.
33 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
34 * stack.c (find_frame_funname): Adjust to cp_remove_params
35 returning a gdb::unique_xmalloc_ptr.
36
791afaa2
TT
372017-10-08 Tom Tromey <tom@tromey.com>
38
39 * dwarf2read.c (dwarf2_get_dwz_file): Use
40 gdb::unique_xmalloc_ptr.
41 (find_slot_in_mapped_hash): Likewise.
42 (dwarf2_physname): Likewise.
43 (create_dwo_unit_in_dwp_v1): Use std::string.
44 (create_dwo_unit_in_dwp_v2): Likewise.
45 (lookup_dwo_cutu): Likewise.
46 (inherit_abstract_dies): Use std::vector.
47 (read_array_type): Likewise.
48 (dwarf_decode_macros): Remove unused declaration.
49 (unsigned_int_compar): Remove.
50 (dwarf2_build_psymtabs_hard): Use scoped_restore.
51 (psymtabs_addrmap_cleanup): Remove.
52
30a9c02f
TT
532017-10-08 Tom Tromey <tom@tromey.com>
54
55 * frame-unwind.c (frame_unwind_try_unwinder): Update.
56 * frame.h (frame_cleanup_after_sniffer): Declare.
57 (frame_prepare_for_sniffer): Return void.
58 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
59 type of argument.
60 (frame_prepare_for_sniffer): Return void.
61
757325a3
TT
622017-10-08 Tom Tromey <tom@tromey.com>
63
64 * utils.h (make_cleanup_value_free): Remove.
65 * utils.c (do_value_free, struct cleanup): Remove.
66 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
67 Use gdb_value_up.
68 * value.h (struct value_deleter): New.
69 (gdb_value_up): New typedef.
70
b9c04fb2
TT
712017-10-08 Tom Tromey <tom@tromey.com>
72
73 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
74 (make_cleanup_free_search_symbols): Remove.
75 (search_symbols): Return std::vector.
76 (symbol_search::compare_search_syms): Now member of
77 symbol_search. Change arguments.
78 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
79 (symtab_symbol_info, rbreak_command): Update.
80 * symtab.h (struct symbol_search) <next>: Remove.
81 Add constructors.
82 (symbol_search::operator<): New function.
83 (symbol_search::operator==): New function.
84 (search_symbols): Remove std::vector.
85 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
86 (symbol_search::compare_search_syms): Declare.
87
0d28b0a5
YQ
882017-10-06 Yao Qi <yao.qi@linaro.org>
89
90 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
91 arch/aarch64-insn.o.
92 Remove one rule.
93 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
94
71917808
YQ
952017-10-06 Yao Qi <yao.qi@linaro.org>
96
97 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
98 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
99 arch/arm-linux.o respectively.
100 * configure.tgt: Likewise.
101
2081b2b2
YQ
1022017-10-06 Yao Qi <yao.qi@linaro.org>
103
104 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
105 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
106
a1b85d28
PA
1072017-10-06 Pedro Alves <palves@redhat.com>
108
109 * windows-nat.c: Include <algorithm>.
110
d97987e2
YQ
1112017-10-06 Yao Qi <yao.qi@linaro.org>
112
113 * configure.tgt (i386_tobjs): New variable.
114 (amd64_tobjs): New variable.
115 Set $cpu_obs and $os_obs.
116
f38307f5
YQ
1172017-10-06 Yao Qi <yao.qi@linaro.org>
118
119 * Makefile.in (CONFIG_SRC_SUBDIR): New.
120 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
121 (clean): Remove object files and dependency files.
122 (distclean): Remove the directory.
123 * configure.ac: Invoke AC_CONFIG_COMMANDS.
124 * configure: Re-generated.
125 * configure.tgt: Replace amd64.o with arch/amd64.o.
126
2f924de6
JM
1272017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
128
129 PR build/22188
130 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
131 and SETEND.
132
2fd9d7ca
PA
1332017-10-05 Pedro Alves <palves@redhat.com>
134
135 * linux-nat.c (linux_child_follow_fork): When following the parent
136 and detaching the child, consult the parent thread's architecture
137 instead of the child's.
138
d13b8493
UW
1392017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
140
141 * ax.h: Do not include "doublest.h".
142 (union agent_val): Remove.
143
3b4b2f16
UW
1442017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
145
146 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
147 (decimal_to_string): Return std::string object.
148 (decimal_from_string): Accept std::string object. Return bool.
149 (decimal_from_integral, decimal_from_doublest): Remove.
150 (decimal_from_longest): Add prototype.
151 (decimal_from_ulongest): Likewise.
152 (decimal_to_longest): Likewise.
153 (decimal_from_doublest): Likewise.
154 * dfp.c: Do not include "gdbtypes.h" or "value.h".
155 (MAX_DECIMAL_STRING): Move here.
156 (decimal_to_string): Return std::string object.
157 (decimal_from_string): Accept std::string object. Return bool.
158 (decimal_from_integral): Remove, replace by ...
159 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
160 (decimal_to_longest): New function.
161 (decimal_from_floating): Remove, replace by ...
162 (decimal_from_doublest): ... this new function.
163 (decimal_to_doublest): Update to new decimal_to_string interface.
164
165 * value.c (unpack_long): Use decimal_to_longest.
166 * valops.c (value_cast): Use decimal_from_doublest instead of
167 decimal_from_floating. Use decimal_from_[u]longest isntead of
168 decimal_from_integral.
169 * valarith.c (value_args_as_decimal): Likewise.
170 * valprint.c (print_decimal_floating): Update to new
171 decimal_to_string interface.
172 * printcmd.c (printf_decfloat): Likewise.
173 * c-exp.y (parse_number): Update to new decimal_from_string interface.
174
1841ee5d
UW
1752017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
176
177 * doublest.h: Do not include "floatformat.h". Remove stale comments.
178 * gdbtypes.c: Include "floatformat.h".
179 * value.c: Likewise.
180 * m68k-tdep.c: Likewise.
181
182 * findvar.c: Do not include "floatformat.h".
183 * amd64-darwin-tdep.c: Likewise.
184 * arm-linux-tdep.c: Likewise.
185 * i386-darwin-tdep.c: Likewise.
186 * i387-tdep.c: Likewise.
187 * m68k-linux-tdep.c: Likewise.
188 * mep-tdep.c: Likewise.
189 * mips-tdep.c: Likewise.
190 * nios2-tdep.c: Likewise.
191 * s390-linux-tdep.c: Likewise.
192 * sparc-obsd-tdep.c: Likewise.
193 * sparc-tdep.c: Likewise.
194 * sparc64-tdep.c: Likewise.
195 * spu-tdep.c: Likewise.
196 * tic6x-tdep.c: Likewise.
197 * tilegx-tdep.c: Likewise.
198 * vax-tdep.c: Likewise.
199 * xstormy16-tdep.c: Likewise.
200 * xtensa-tdep.c: Likewise.
201
202 * top.c: Do not include "doublest.h".
203 * aarch64-tdep.c: Likewise.
204 * alpha-tdep.c: Likewise.
205 * arm-linux-tdep.c: Likewise.
206 * m68k-linux-tdep.c: Likewise.
207 * tilegx-tdep.c: Likewise.
208 * xstormy16-tdep.c: Likewise.
209
a80a6471
JB
2102017-10-05 John Baldwin <jhb@FreeBSD.org>
211
212 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
213 (mipsn32_fbsd_sigframe): Define.
214 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
215 for FreeBSD/mipsn32.
216
12c4bd7f
JB
2172017-10-05 John Baldwin <jhb@FreeBSD.org>
218
219 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
220 AT_HWCAP.
221
c91933e9
TG
2222017-10-05 Tristan Gingold <tgingold@free.fr>
223
224 * MAINTAINERS (Misc): Update my email address.
225
5cd63fda
PA
2262017-10-04 Pedro Alves <palves@redhat.com>
227
228 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
229 it instead of target_gdbarch.
230 (get_remote_state, get_remote_packet_size): Adjust
231 get_remote_arch_state calls, passing down target_gdbarch
232 explicitly.
233 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
234 'gdbarch' and use it instead of target_gdbarch.
235 (get_memory_packet_size): Adjust get_remote_arch_state calls,
236 passing down target_gdbarch explicitly.
237 (struct stop_reply) <arch>: New field.
238 (remote_parse_stop_reply): Use the stopped thread's architecture,
239 not the current inferior's. Save the architecture in the
240 stop_reply.
241 (process_stop_reply): Use the stop reply's architecture.
242 (process_g_packet, remote_fetch_registers)
243 (remote_prepare_to_store, store_registers_using_G)
244 (remote_store_registers): Adjust get_remote_arch_state calls,
245 using the regcache's architecture.
246 (remote_get_trace_status): Adjust get_remote_arch_state calls,
247 passing down target_gdbarch explicitly.
248 * spu-multiarch.c (spu_thread_architecture): Defer to the target
249 beneath instead of calling target_gdbarch.
250 * target.c (default_thread_architecture): Use the specified
251 inferior's architecture, instead of the current inferior's
252 architecture (via target_gdbarch).
253
ed4227b7
PA
2542017-10-04 Pedro Alves <palves@redhat.com>
255
256 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
257 case.
258 (regcache_print): Handle !target_has_registers here instead.
259
55b11ddf
PA
2602017-10-04 Pedro Alves <palves@redhat.com>
261
262 * frame.c (create_test_frame): Delete.
263 * frame.h (create_test_frame): Delete.
264 * gdbarch-selftests.c: Include gdbthread.h and target.h.
265 (class regcache_test): Delete.
266 (test_target_has_registers, test_target_has_stack)
267 (test_target_has_memory, test_target_prepare_to_store)
268 (test_target_store_registers): New functions.
269 (test_target_ops): New class.
270 (register_to_value_test): Error out if there's already a
271 process_stratum (or higher) target pushed. Create a fuller mock
272 environment, with mock target_ops, inferior, address space, thread
273 and inferior_ptid.
274 * progspace.c (struct address_space): Move to ...
275 * progspace.h (struct address_space): ... here.
276 * regcache.h (regcache::~regcache, regcache::raw_write)
277 [GDB_SELF_TEST]: No longer virtual.
278
4c71c105
SM
2792017-10-04 Simon Marchi <simon.marchi@ericsson.com>
280
281 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
282
73dcd72d
PA
2832017-10-04 Pedro Alves <palves@redhat.com>
284
285 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
286 out of 'between TRY and CATCH'.
287
44704526
PA
2882017-10-04 Pedro Alves <palves@redhat.com>
289
290 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
291 * common/common-exceptions.h (TRY): Open an outermost scope.
292 Expand intro comment.
293 (CATCH): Reindent.
294 (END_CATCH): Close the outermost scope.
295 * completer.c (complete_line_internal): Add missing END_CATCH.
296
bc3b087d
SDJ
2972017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
298
299 * NEWS (Changes since GDB 8.0): Add entry about new
300 'set-cwd-on-gdbserver' feature.
301 (New remote packets): Add entry for QSetWorkingDir.
302 * common/common-inferior.h (set_inferior_cwd): New prototype.
303 * infcmd.c (set_inferior_cwd): Remove "static".
304 (show_cwd_command): Expand text to include remote debugging.
305 * remote.c: Add PACKET_QSetWorkingDir.
306 (remote_protocol_features) <QSetWorkingDir>: New entry for
307 PACKET_QSetWorkingDir.
308 (extended_remote_set_inferior_cwd): New function.
309 (extended_remote_create_inferior): Call
310 "extended_remote_set_inferior_cwd".
311 (_initialize_remote): Call "add_packet_config_cmd" for
312 QSetWorkingDir.
313
d092c5a2
SDJ
3142017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
315
316 * NEWS (New commands): Mention "set/show cwd".
317 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
318 "cd" command's help text.
319 * common/common-inferior.h (get_inferior_cwd): New prototype.
320 * infcmd.c (inferior_cwd_scratch): New global variable.
321 (set_inferior_cwd): New function.
322 (get_inferior_cwd): Likewise.
323 (set_cwd_command): Likewise.
324 (show_cwd_command): Likewise.
325 (_initialize_infcmd): Add "set/show cwd" commands.
326 * inferior.h (class inferior) <cwd>: New field.
327 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
328 (fork_inferior): Change inferior's cwd before its execution.
329 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
330 to CreateProcess.
331
7da0a886
SDJ
3322017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
333
334 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
335 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
336 (COMMON_OBS): Add gdb_tilde_expand.o.
337 * common/gdb_tilde_expand.c: New file.
338 * common/gdb_tilde_expand.h: Likewise.
339
db8dd160
MR
3402017-10-03 Maciej W. Rozycki <macro@imgtec.com>
341
342 * gdbarch.sh (objfile): Remove duplicate declaration.
343 * gdbarch.h: Regenerate.
344
f8bfbf22
TT
3452017-10-03 Tom Tromey <tom@tromey.com>
346
347 * utils.c (internal_vproblem): Use string_vprintf.
348
5178ed48
TT
3492017-10-03 Tom Tromey <tom@tromey.com>
350
351 * printcmd.c (info_symbol_command): Use std::string.
352
8cff8730
TT
3532017-10-03 Tom Tromey <tom@tromey.com>
354
355 * top.c (gdb_safe_append_history): Use std::string.
356
895b8f30
TT
3572017-10-03 Tom Tromey <tom@tromey.com>
358
359 * event-top.c (stdin_event_handler): Update.
360 * main.c (captured_main_1): Update.
361 * top.h (make_delete_ui_cleanup): Remove.
362 (struct ui): Add constructor and destructor.
363 (new_ui, delete_ui): Remove.
364 * top.c (make_delete_ui_cleanup): Remove.
365 (new_ui_command): Use std::unique_ptr.
366 (delete_ui_cleanup): Remove.
367 (ui::ui): Rename from new_ui. Update.
368 (free_ui): Remove.
369 (ui::~ui): Rename from delete_ui. Update.
370
0efef640
TT
3712017-10-03 Tom Tromey <tom@tromey.com>
372
373 * symfile.c (load_progress): Use gdb::byte_vector.
374
245ad7d3
TT
3752017-10-03 Tom Tromey <tom@tromey.com>
376
377 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
378 declaration.
379 * printcmd.c (x_command): Remove unused declaration.
380 * symfile.c (symbol_file_command): Remove unused declaration.
381
e05550d7
TT
3822017-10-03 Tom Tromey <tom@tromey.com>
383
384 * utils.c (internal_vproblem): Use std::string.
385 (defaulted_query): Likewise.
386
b95de2b7
TT
3872017-10-03 Tom Tromey <tom@tromey.com>
388
389 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
390 * top.c (execute_command_to_string): Update.
391 * utils.c (make_cleanup_restore_page_info): Remove.
392 (do_restore_page_info_cleanup): Remove.
393 (set_batch_flag_and_restore_page_info):
394 New.
395 (make_cleanup_restore_page_info): Remove.
396 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
397 (~set_batch_flag_and_restore_page_info): New
398 (make_cleanup_restore_uinteger): Remove.
399 (make_cleanup_restore_integer): Remove.
400 (struct restore_integer_closure): Remove.
401 (restore_integer): Remove.
402 * utils.h (struct set_batch_flag_and_restore_page_info): New
403 class.
404 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
405 (make_cleanup_restore_page_info): Remove.
406 (make_cleanup_restore_uinteger) Remove.
407 (make_cleanup_restore_integer) Remove.
408
07036511
TT
4092017-10-03 Tom Tromey <tom@tromey.com>
410
411 * record-full.h (record_full_gdb_operation_disable_set): Return
412 scoped_restore_tmpl<int>.
413 * infrun.c (adjust_pc_after_break): Update.
414 (handle_signal_stop): Update.
415 * record-full.c (record_full_gdb_operation_disable_set): Return
416 scoped_restore_tmpl<int>.
417 (record_full_wait_1, record_full_insert_breakpoint)
418 (record_full_remove_breakpoint, record_full_save)
419 (record_full_goto_insn): Update.
420
45320ffa
TT
4212017-10-02 Tom Tromey <tom@tromey.com>
422
423 PR rust/22236:
424 * rust-lang.c (rust_val_print_str): New function.
425 (val_print_struct): Call it.
426 (rust_subscript): Preserve name of slice type.
427
b3e3859b
TT
4282017-10-02 Tom Tromey <tom@tromey.com>
429
430 * rust-lang.c (rust_subscript): Handle slices in
431 EVAL_AVOID_SIDE_EFFECTS case.
432
01af5e0d
TT
4332017-10-02 Tom Tromey <tom@tromey.com>
434
435 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
436
888e3ddb
TT
4372017-10-02 Tom Tromey <tom@tromey.com>
438
439 * rust-lang.h (rust_slice_type): Add "extern".
440
cc536b21
PA
4412017-10-02 Tom Tromey <tom@tromey.com>
442 Pedro Alves <palves@redhat.com>
443
444 * ada-lang.h (ada_exc_info::operator<): Make const.
445 (ada_exc_info::operator==): Make const.
446 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
447 Make const.
448
386c8614
TT
4492017-09-29 Tom Tromey <tom@tromey.com>
450
451 * target.c (read_whatever_is_readable): Change type of "result".
452 Update.
453 (free_memory_read_result_vector): Remove.
454 (read_memory_robust): Change return type. Update.
455 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
456 bin2hex, std::string.
457 * target.h (memory_read_result_s): Remove typedef.
458 (free_memory_read_result_vector): Remove.
459 (read_memory_robust): Return std::vector.
460
789c4b5e
TT
4612017-09-29 Tom Tromey <tom@tromey.com>
462
463 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
464
ab816a27
TT
4652017-09-29 Tom Tromey <tom@tromey.com>
466
467 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
468 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
469 operator< and operator==.
470 (ada_exceptions_list): Return a std::vector.
471 * ada-lang.c (ada_exc_info::operator<): Rename from
472 compare_ada_exception_info.
473 (ada_exc_info::operator==): New.
474 (sort_remove_dups_ada_exceptions_list): Change type of
475 "exceptions".
476 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
477 (ada_add_global_exceptions): Likewise.
478 (ada_exceptions_list_1): Return a std::vector.
479 (ada_exceptions_list): Likewise.
480
52f9abe4
TT
4812017-09-29 Tom Tromey <tom@tromey.com>
482
483 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
484 'std::set *'.
485 (print_one_inferior): Update.
486 (free_vector_of_ints): Remove.
487 (list_available_thread_groups): Change "ids" to std::set.
488 (mi_cmd_list_thread_groups): Update.
489 (struct collect_cores_data) <core>: Now a std::set.
490 (collect_cores): Update.
491 (unique): Remove.
492 (print_one_inferior): Update.
493
dcd5ddcc
TT
4942017-09-29 Tom Tromey <tom@tromey.com>
495
496 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
497 (mi_execute_async_cli_command): Likewise.
498 (mi_cmd_trace_frame_collected): Use field_fmt.
499
45d288cc
TT
5002017-09-29 Tom Tromey <tom@tromey.com>
501
502 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
503 gdb::byte_vector.
504
6afe2f4a
TT
5052017-09-29 Tom Tromey <tom@tromey.com>
506
507 * mi/mi-parse.c (mi_parse): Remove unused declaration.
508
9813429a
TT
5092017-09-29 Tom Tromey <tom@tromey.com>
510
511 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
512
2d6960b4
TT
5132017-09-29 Tom Tromey <tom@tromey.com>
514
515 * varobj.h (varobj_gen_name): Return std::string.
516 * varobj.c (varobj_gen_name): Return std::string.
517 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
518 (mi_cmd_var_delete): Don't copy "name".
519
784c453a
TT
5202017-09-29 Tom Tromey <tom@tromey.com>
521
522 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
523 (mi_cmd_break_insert_1): Update.
524
a9bc57b9
TT
5252017-09-29 Tom Tromey <tom@tromey.com>
526
527 * target.h (make_scoped_defer_target_commit_resume): Update.
528 * target.c (make_scoped_defer_target_commit_resume): Rename from
529 make_cleanup_defer_target_commit_resume. Return a
530 scoped_restore.
531 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
532
9754d8c4
TT
5332017-09-29 Tom Tromey <tom@tromey.com>
534
535 * main.c (captured_main_1): Remove unused declaration.
536 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
537
99ef965c
TT
5382017-09-29 Tom Tromey <tom@tromey.com>
539
540 * symtab.c (search_symbols): Remove unused outer cleanup.
541 (make_source_files_completion_list): Remove unused declaration.
542
42518ba7
TT
5432017-09-29 Tom Tromey <tom@tromey.com>
544
545 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
546
726b2169
TT
5472017-09-29 Tom Tromey <tom@tromey.com>
548
549 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
550 gdb::byte_vector.
551
55b06432
TT
5522017-09-29 Tom Tromey <tom@tromey.com>
553
554 * complaints.c (vcomplaint): Use std::string.
555
8abcee91
TT
5562017-09-29 Tom Tromey <tom@tromey.com>
557
558 * tracepoint.c (trace_variable_command): Use std::string.
559 (encode_actions_1): Remove unused declarations.
560 (create_tsv_from_upload): Use std::string.
561
6ad94bc7
TT
5622017-09-29 Tom Tromey <tom@tromey.com>
563
564 * cp-support.c (gdb_demangle): Use std::string.
565
2003f3d8
TT
5662017-09-29 Tom Tromey <tom@tromey.com>
567
568 * stack.c (parse_frame_specification): Use std::string
569 (info_frame_command): Use gdb::unique_xmalloc_ptr.
570
8f8accb5
TT
5712017-09-29 Tom Tromey <tom@tromey.com>
572
573 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
574
200aa7b1
TT
5752017-09-29 Tom Tromey <tom@tromey.com>
576
577 * utils.c (vfprintf_maybe_filtered): Use std::string.
578 (vfprintf_unfiltered): Likewise.
579
606aae8a
TT
5802017-09-29 Tom Tromey <tom@tromey.com>
581
582 * event-top.c (top_level_prompt): Return std::string.
583 (display_gdb_prompt): Update.
584
bd413795
TT
5852017-09-29 Tom Tromey <tom@tromey.com>
586
587 * unittests/common-utils-selftests.c (format): New function.
588 (string_vprintf_tests): New function.
589 (_initialize_common_utils_selftests): Register new tests.
590 * common/common-utils.c (string_vprintf): New function.
591 * common/common-utils.h (string_vprintf): Declare.
592
256642e8
PA
5932017-09-29 Pedro Alves <palves@redhat.com>
594
595 * common/rsp-low.c (unpack_varlen_hex): Constify.
596 * common/rsp-low.h (unpack_varlen_hex): Constify.
597 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
598 Constify.
599 * remote.c (remote_set_permissions, read_ptid)
600 (remote_current_thread, remote_get_threads_with_qthreadinfo)
601 (remote_static_tracepoint_marker_at)
602 (remote_static_tracepoint_markers_by_strid)
603 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
604 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
605 (parse_tracepoint_definition, parse_tsv_definition)
606 (parse_static_tracepoint_marker_definition): Constify.
607 * tracepoint.h (parse_static_tracepoint_marker_definition)
608 (parse_trace_status, parse_tracepoint_status)
609 (parse_tracepoint_definition, parse_tsv_definition): Constify.
610
b6bb3468
PA
6112017-09-29 Pedro Alves <palves@redhat.com>
612
613 * remote.c (target_buf, target_buf_size): Delete.
614 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
615 Use the connection's packet buffer instead.
616 All callers adjusted.
617 (_initialize_remote): Remove references to target_buf and
618 target_buf_size.
619
b2f8eb7a
PA
6202017-09-28 Pedro Alves <palves@redhat.com>
621
622 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
623 unittests/common-utils-selftests.c.
624 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
625 (COMMON_OBS): Remove utils-selftests.o.
626 * utils-selftests.c: Move to ...
627 * unittests/common-utils-selftests.c: ... here and rename self
628 test to "string_printf".
629
08302ed2
DE
6302017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
631
632 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
633 having NULL cus or tus.
634
96a5a1d3
UW
6352017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
636
637 * arm-tdep.c: (convert_from_extended): Remove.
638 (convert_to_extended): Likewise.
639 (arm_extract_return_value): Use convert_typed_floating.
640 (arm_store_return_value): Likewise.
641
642 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
643 * sh-tdep.c: Do not include "floatformat.h".
644 (sh_littlebyte_bigword_type): New function.
645 (sh_register_convert_to_virtual): Use convert_typed_floating.
646 (sh_register_convert_to_raw): Likewise.
647 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
648 (sh64_littlebyte_bigword_type): New function.
649 (sh64_extract_return_value): Use convert_typed_floating.
650 (sh64_register_convert_to_virtual): Likewise.
651 (sh64_register_convert_to_raw): Likewise.
652
0db7851f
UW
6532017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
654
655 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
656 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
657
658 * gdbtypes.h (union type_specific): Make field floatformat hold
659 just a single struct floatformat, not an array.
660 (floatformat_from_type): Move here.
661 * gdbtypes.c (floatformat_from_type): Move here. Update to
662 changed TYPE_FLOATFORMAT definition.
663 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
664 (recursive_dump_type): Likewise.
665 (init_float_type): Install correct floatformat for byte order.
666 (arch_float_type): Likewise.
667
77b7c781
UW
6682017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
669
670 * gdbtypes.c (init_type): Change incoming argument from
671 length-in-bytes to length-in-bits. Assert length is a
672 multiple of TARGET_CHAR_BITS.
673 (arch_type, arch_flags_type): Likewise.
674 (init_integer_type): Update call to init_type.
675 (init_character_type): Likewise.
676 (init_boolean_type): Likewise.
677 (init_float_type): Likewise.
678 (init_decfloat_type): Likewise.
679 (init_complex_type): Likewise.
680 (init_pointer_type): Likewise.
681 (objfile_type): Likewise.
682 (arch_integer_type): Update call to arch_type.
683 (arch_character_type): Likewise.
684 (arch_boolean_type): Likewise.
685 (arch_float_type): Likewise.
686 (arch_decfloat_type): Likewise.
687 (arch_complex_type): Likewise.
688 (arch_pointer_type): Likewise.
689 (gdbtypes_post_init): Likewise.
690
691 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
692 (read_base_type): Likewise.
693 * mdebugread.c (basic_type): Likewise.
694 * stabsread.c (dbx_init_float_type): Likewise.
695 (rs6000_builtin_type): Likewise.
696 (read_range_type): Likewise. Also, fix call to init_integer_type
697 with erroneous length argument.
698
699 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
700 * d-lang.c (build_d_types): Likewise.
701 * f-lang.c (build_fortran_types): Likewise.
702 * go-lang.c (build_go_types): Likewise.
703 * opencl-lang.c (build_opencl_types): Likewise.
704 * jit.c (finalize_symtab): Likewise.
705 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
706 (build_std_type_info_type): Likewise.
707 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
708 update call to arch_flags_type.
709
710 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
711 arch_type.
712 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
713 * windows-tdep.c (windows_get_tlb_type): Likewise.
714
715 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
716 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
717 * m32c-tdep.c (make_types): Likewise.
718 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
719 (rl78_psw_type): Update call to arch_flags_type.
720 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
721 * rx-tdep.c (rx_psw_type): Likewise.
722 (rx_fpsw_type): Likewise.
723 * sparc-tdep.c (sparc_psr_type): Likewise.
724 (sparc_fsr_type): Likewise.
725 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
726 (sparc64_ccr_type): Likewise.
727 (sparc64_fsr_type): Likewise.
728 (sparc64_fprs_type): Likewise.
729
f21b4d5c
TT
7302017-09-27 Tom Tromey <tom@tromey.com>
731
732 * findcmd.c (find_command): Constify.
733
643c2ffa
TT
7342017-09-27 Tom Tromey <tom@tromey.com>
735
736 * ada-tasks.c (task_command_1, task_command): Constify.
737
510e5e56
TT
7382017-09-27 Tom Tromey <tom@tromey.com>
739
740 * symtab.c (maintenance_print_symbol_cache)
741 (maintenance_flush_symbol_cache)
742 (maintenance_print_symbol_cache_statistics): Constify.
743
e503b191
TT
7442017-09-27 Tom Tromey <tom@tromey.com>
745
746 * inferior.c (detach_inferior_command, kill_inferior_command)
747 (inferior_command): Constify.
748
4e001312
TT
7492017-09-27 Tom Tromey <tom@tromey.com>
750
751 * regcache.c (regcache_print, maintenance_print_registers)
752 (maintenance_print_raw_registers)
753 (maintenance_print_cooked_registers)
754 (maintenance_print_register_groups)
755 (maintenance_print_remote_registers): Constify.
756
77763700
TT
7572017-09-27 Tom Tromey <tom@tromey.com>
758
759 * printcmd.c (map_display_numbers, undisplay_command)
760 (enable_disable_display_command, enable_display_command)
761 (disable_display_command): Constify.
762
4495129a
TT
7632017-09-27 Tom Tromey <tom@tromey.com>
764
765 * breakpoint.h (delete_command): Don't declare.
766 * breakpoint.c (delete_command, enable_once_command)
767 (enable_count_command, enable_delete_command, breakpoint_1)
768 (maintenance_info_breakpoints, stopin_command, stopat_command)
769 (delete_command, delete_trace_command, save_breakpoints)
770 (save_breakpoints_command, save_tracepoints_command): Constify.
771
3088cf40
TT
7722017-09-27 Tom Tromey <tom@tromey.com>
773
774 * macrocmd.c (macro_expand_command, macro_expand_once_command)
775 (skip_ws, extract_identifier, macro_define_command)
776 (macro_undef_command, macro_list_command): Constify.
777
69f476a3
TT
7782017-09-27 Tom Tromey <tom@tromey.com>
779
780 * infcmd.c (environment_info, set_environment_command)
781 (unset_environment_command, path_info, info_proc_cmd_1)
782 (info_proc_cmd_mappings, info_proc_cmd_stat)
783 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
784 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
785
c4a3e68e
TT
7862017-09-27 Tom Tromey <tom@tromey.com>
787
788 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
789 Constify.
790
c9d31bd6
TT
7912017-09-27 Tom Tromey <tom@tromey.com>
792
793 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
794
1f3f85eb
TT
7952017-09-27 Tom Tromey <tom@tromey.com>
796
797 * demangle.c (demangle_command): Constify.
798
9c504b5d
TT
7992017-09-27 Tom Tromey <tom@tromey.com>
800
801 * progspace.c (maintenance_info_program_spaces_command):
802 Constify.
803
6663cf91
TT
8042017-09-27 Tom Tromey <tom@tromey.com>
805
806 * compile/compile.c (check_raw_argument, compile_file_command)
807 (compile_code_command, compile_print_command): Constify.
808
34e5fa26
TT
8092017-09-27 Tom Tromey <tom@tromey.com>
810
811 * reggroups.c (maintenance_print_reggroups): Constify.
812
8384c356
TT
8132017-09-27 Tom Tromey <tom@tromey.com>
814
815 * dwarf2read.c (save_gdb_index_command): Constify.
816
884beb0c
TT
8172017-09-27 Tom Tromey <tom@tromey.com>
818
819 * stap-probe.c (info_probes_stap_command): Constify.
820
e0b2930c
TT
8212017-09-27 Tom Tromey <tom@tromey.com>
822
823 * fork-child.c (unset_exec_wrapper_command): Constify.
824
f938677d
TT
8252017-09-27 Tom Tromey <tom@tromey.com>
826
827 * btrace.c (get_uint, get_context_size, no_chunk)
828 (maint_btrace_packet_history_cmd)
829 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
830 (maint_info_btrace_cmd): Constify.
831
8949cb87
TT
8322017-09-27 Tom Tromey <tom@tromey.com>
833
834 * reverse.c (delete_bookmark_command): Constify.
835
ac88e2de
TT
8362017-09-27 Tom Tromey <tom@tromey.com>
837
838 * remote.c (set_memory_packet_size)
839 (set_memory_write_packet_size, show_memory_write_packet_size)
840 (set_memory_read_packet_size, show_memory_read_packet_size)
841 (compare_sections_command, packet_command, remote_put_command)
842 (remote_get_command, remote_delete_command): Constify.
843
bd4c9dfe
TT
8442017-09-27 Tom Tromey <tom@tromey.com>
845
846 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
847 (set_mipsfpu_double_command, set_mipsfpu_none_command)
848 (set_mipsfpu_auto_command): Constify.
849
5e93d4c6
TT
8502017-09-27 Tom Tromey <tom@tromey.com>
851
852 * cli/cli-cmds.h (cd_command): Constify.
853 * cli/cli-cmds.c (cd_command): Constify.
854
fc41a75b
TT
8552017-09-27 Tom Tromey <tom@tromey.com>
856
857 * thread.c (thread_name_command, thread_find_command): Constify.
858
67810076
TT
8592017-09-27 Tom Tromey <tom@tromey.com>
860
861 * probe.c (enable_probes_command, disable_probes_command):
862 Constify.
863
1d8b34a7
TT
8642017-09-27 Tom Tromey <tom@tromey.com>
865
866 * symfile.c (symbol_file_command): Constify.
867 * gdbcore.h (deprecated_file_changed_hook): Constify.
868 * exec.c (deprecated_file_changed_hook, exec_file_command)
869 (file_command): Constify.
870 * defs.h (symbol_file_command): Constify.
871
442019e1
TT
8722017-09-27 Tom Tromey <tom@tromey.com>
873
874 * remote-fileio.c (set_system_call_allowed)
875 (show_system_call_allowed): Constify.
876
2983f7cb
TT
8772017-09-27 Tom Tromey <tom@tromey.com>
878
879 * tracepoint.c (delete_trace_variable_command)
880 (tfind_end_command, tfind_start_command, tfind_pc_command)
881 (tfind_tracepoint_command, tfind_line_command)
882 (tfind_range_command, tfind_outside_command): Constify.
883
4fd41b24
TT
8842017-09-27 Tom Tromey <tom@tromey.com>
885
886 * ax-gdb.c (maint_agent_printf_command, agent_command)
887 (agent_eval_command): Constify.
888
f2fc3015
TT
8892017-09-27 Tom Tromey <tom@tromey.com>
890
891 * tracepoint.c (info_scope_command): Constify.
892 * python/python.c (gdbpy_decode_line): Constify.
893 * python/py-breakpoint.c (bppy_init): Constify.
894 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
895 * location.h: (new_linespec_location)
896 (string_to_event_location_basic, string_to_event_location):
897 Constify.
898 * location.c (new_linespec_location)
899 (string_to_event_location_basic, string_to_event_location):
900 Constify.
901 * linespec.h (decode_line_with_current_source)
902 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
903 * linespec.c (linespec_lex_to_end)
904 (decode_line_with_current_source)
905 (decode_line_with_last_displayed): Constify.
906 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
907 Constify.
908 * cli/cli-cmds.c (edit_command, list_command): Constify.
909 * breakpoint.h (until_break_command, watch_command_wrapper)
910 (awatch_command_wrapper, rwatch_command_wrapper)
911 (init_ada_exception_breakpoint): Constify.
912 * breakpoint.c (break_command_1, dprintf_command)
913 (break_range_command, watch_command_wrapper)
914 (rwatch_command_wrapper, awatch_command_wrapper)
915 (until_break_command, init_ada_exception_breakpoint)
916 (strace_marker_create_sals_from_location, trace_command)
917 (ftrace_command, strace_command, struct tracepoint): Constify.
918 * ax-gdb.c (agent_command_1): Constify.
919 * ada-lang.c (ada_exception_sal): Constify.
920
8c2f95f4
TT
9212017-09-27 Tom Tromey <tom@tromey.com>
922
923 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
924 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
925 (get_context_size, no_chunk, get_insn_history_modifiers)
926 (cmd_record_insn_history, get_call_history_modifiers)
927 (cmd_record_call_history): Constify.
928
a0d65762
TT
9292017-09-27 Tom Tromey <tom@tromey.com>
930
931 * source.c (show_substitute_path_command)
932 (unset_substitute_path_command, set_substitute_path_command):
933 Constify.
934
58971144
TT
9352017-09-27 Tom Tromey <tom@tromey.com>
936
937 * typeprint.c (maintenance_print_type): Constify.
938 * maint.c (maintenance_dump_me, maintenance_demangle)
939 (maintenance_time_display, maintenance_info_sections)
940 (maintenance_print_statistics, maintenance_deprecate)
941 (maintenance_undeprecate): Constify.
942 (maintenance_do_deprecate): Constify. Use std::string.
943 (maintenance_selftest): Constify.
944 * gdbtypes.h (maintenance_print_type): Constify.
945
c482f52c
TT
9462017-09-27 Tom Tromey <tom@tromey.com>
947
948 * hppa-tdep.c (unwind_command): Constify.
949
e100df1a
TT
9502017-09-27 Tom Tromey <tom@tromey.com>
951
952 * target-descriptions.c (unset_tdesc_filename_cmd)
953 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
954 Constify.
955
31d56ade
TT
9562017-09-27 Tom Tromey <tom@tromey.com>
957
958 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
959
b961da0b
TT
9602017-09-27 Tom Tromey <tom@tromey.com>
961
962 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
963
e2d8ae16
TT
9642017-09-27 Tom Tromey <tom@tromey.com>
965
966 * tui/tui-regs.c (tui_reg_command): Constify.
967
863779b0
TT
9682017-09-27 Tom Tromey <tom@tromey.com>
969
970 * skip.c (skip_file_command, skip_function_command)
971 (skip_enable_command, skip_disable_command, skip_delete_command):
972 Constify.
973
cdb34d4a
TT
9742017-09-27 Tom Tromey <tom@tromey.com>
975
976 * record-btrace.c (cmd_record_btrace_bts_start)
977 (cmd_record_btrace_pt_start): Constify.
978
e99c83e7
TT
9792017-09-27 Tom Tromey <tom@tromey.com>
980
981 * symmisc.c (maintenance_print_symbols)
982 (maintenance_print_msymbols, maintenance_print_objfiles)
983 (maintenance_info_symtabs, maintenance_check_symtabs)
984 (maintenance_expand_symtabs, maintenance_info_line_tables):
985 Constify.
986
32faf971
TT
9872017-09-27 Tom Tromey <tom@tromey.com>
988
989 * top.c (new_ui_command): Constify.
990
2cf311eb
TT
9912017-09-27 Tom Tromey <tom@tromey.com>
992
993 * symfile.c (add_symbol_file_command)
994 (remove_symbol_file_command, list_overlays_command)
995 (map_overlay_command, unmap_overlay_command)
996 (overlay_auto_command, overlay_manual_command)
997 (overlay_off_command, overlay_load_command): Constify.
998
e6738699
TT
9992017-09-27 Tom Tromey <tom@tromey.com>
1000
1001 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
1002 (info_spu_mailbox_command, info_spu_dma_command)
1003 (info_spu_proxydma_command): Constify.
1004
aa360cd5
TT
10052017-09-27 Tom Tromey <tom@tromey.com>
1006
1007 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
1008
898241a5
TT
10092017-09-27 Tom Tromey <tom@tromey.com>
1010
1011 * cli/cli-script.c (user_defined_command): Constify.
1012
2d0ac106
TT
10132017-09-27 Tom Tromey <tom@tromey.com>
1014
1015 * cli/cli-dump.c (dump_memory_command, dump_value_command)
1016 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
1017 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
1018 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
1019 (dump_binary_value, append_binary_memory, append_binary_value):
1020 Constify.
1021 (struct dump_context) <func>: Constify.
1022 (add_dump_command): Update.
1023
dede02ce
TT
10242017-09-27 Tom Tromey <tom@tromey.com>
1025
1026 * cli/cli-cmds.c (show_version, show_configuration)
1027 (source_command, show_user): Constify.
1028
d3cb6b99
TT
10292017-09-27 Tom Tromey <tom@tromey.com>
1030
1031 * target.c (maintenance_print_target_stack): Constify.
1032
1970a12f
TT
10332017-09-27 Tom Tromey <tom@tromey.com>
1034
1035 * interps.c (interpreter_exec_cmd): Constify.
1036
41243651
TT
10372017-09-27 Tom Tromey <tom@tromey.com>
1038
1039 * record-full.c (cmd_record_full_restore): Constify.
1040
4465d9db
TT
10412017-09-27 Tom Tromey <tom@tromey.com>
1042
1043 * memattr.c (enable_mem_command, disable_mem_command)
1044 (delete_mem_command): Constify.
1045
ad25e423
TT
10462017-09-27 Tom Tromey <tom@tromey.com>
1047
1048 * value.c (show_convenience): Constify.
1049
d64097b1
TT
10502017-09-27 Tom Tromey <tom@tromey.com>
1051
1052 * gdbcore.h (core_file_command): Update.
1053 * corefile.c (core_file_command): Constify.
1054
4d4589ef
TT
10552017-09-27 Tom Tromey <tom@tromey.com>
1056
1057 * user-regs.c (maintenance_print_user_registers): Constify.
1058
32a7bf17
TT
10592017-09-27 Tom Tromey <tom@tromey.com>
1060
1061 * cp-namespace.c (maintenance_cplus_namespace): Constify.
1062
4a475551
TT
10632017-09-27 Tom Tromey <tom@tromey.com>
1064
1065 * cp-support.c (first_component_command): Constify.
1066
990b9f9f
TT
10672017-09-27 Tom Tromey <tom@tromey.com>
1068
1069 * psymtab.c (maintenance_print_psymbols)
1070 (maintenance_info_psymtabs, maintenance_check_psymtabs):
1071 Constify.
1072
c281872e
TT
10732017-09-27 Tom Tromey <tom@tromey.com>
1074
1075 * windows-tdep.c (display_tib): Constify.
1076
5b64bf74
TT
10772017-09-27 Tom Tromey <tom@tromey.com>
1078
1079 * linux-fork.c (delete_checkpoint_command)
1080 (detach_checkpoint_command): Constify.
1081
4ada038f
TT
10822017-09-27 Tom Tromey <tom@tromey.com>
1083
1084 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
1085
57f5a81b
TT
10862017-09-27 Tom Tromey <tom@tromey.com>
1087
1088 * arc-tdep.c (dump_arc_instruction_command): Constify.
1089
b0a8e6c4
TT
10902017-09-27 Tom Tromey <tom@tromey.com>
1091
1092 * valprint.c (set_radix, show_radix): Constify.
1093
8d97dc1c
TT
10942017-09-27 Tom Tromey <tom@tromey.com>
1095
1096 * dtrace-probe.c (info_probes_dtrace_command): Constify.
1097
eb7c454d
TT
10982017-09-27 Tom Tromey <tom@tromey.com>
1099
1100 * command.h (not_just_help_class_command): Update.
1101 * cli/cli-decode.h (not_just_help_class_command): Update.
1102 * cli/cli-decode.c (not_just_help_class_command): Constify.
1103
e4e33335
TT
11042017-09-27 Tom Tromey <tom@tromey.com>
1105
1106 * gdb_bfd.c (maintenance_info_bfds): Constify.
1107
0450cc4c
TT
11082017-09-27 Tom Tromey <tom@tromey.com>
1109
1110 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
1111 overloads.
1112 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
1113 (do_const_cfunc): New function.
1114 (cmd_cfunc_eq): New overload.
1115 (cli_user_command_p): Check do_const_cfunc.
1116 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
1117 const_cfunc.
1118 * command.h (add_cmd): Add const overload and no-function
1119 overload.
1120 (set_cmd_cfunc): Add const overload.
1121 (cmd_const_cfunc_ftype): Declare.
1122 (cmd_cfunc_eq): Add const overload.
1123 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
1124 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
1125 overload.
1126
a9bbfbd8
TT
11272017-09-27 Tom Tromey <tom@tromey.com>
1128
1129 * macroexp.c (get_next_token_for_substitution): New function.
1130 (substitute_args): Call it. Check for __VA_OPT__.
1131
5230b05a
WT
11322017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
1133 Pedro Alves <palves@redhat.com>
1134
1135 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
1136 producer_is_icc_lt_14.
1137 (producer_is_icc_lt_14): New function.
1138 (check_producer): Add code for checking version of ICC.
1139 (producer_is_icc): Move to producer.c.
1140 (read_structure_type): Restrict ICC workaround to ICC<14.
1141 * producer.c: Include selftest.h.
1142 (producer_is_icc, producer_parsing_tests, _initialize_producer):
1143 New functions.
1144 * producer.h (producer_is_icc): New declaration.
1145
b32b108a
WT
11462017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
1147
1148 * Makefile.in (SFILES): Add producer.c.
1149 (COMMON_OBS): Add producer.o
1150 * amd64-tdep.c (producer.h): Add new include.
1151 * dwarf2read.c (producer.h): Add new include.
1152 * producer.c: New file.
1153 * producer.h: New file.
1154 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
1155 producer.c.
1156 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
1157 producer.h.
1158
5007d765
MK
11592017-09-26 Matthias Klose <doko@ubuntu.com>
1160
1161 * configure.ac: Search ncursesw before ncurses.
1162 Check ncursesw/ncurses.h before ncurses/ncurses.h.
1163 * gdb_curses.h: Include <ncursesw/ncurses.h>
1164 * config.in, configure: Regenerate.
1165
281c4447
RO
11662017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1167
1168 PR gdb/22185
1169 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
1170 obsolete.
1171 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
1172 Remove i386sol2 support.
1173 * configure.nat <i386sol2>: Remove.
1174 <sol2-64>: Fold into ...
1175 <sol2>: ... this.
1176 Move common settings to default section.
1177 Add sol-thread.o.
1178 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
1179 x86_64-*-solaris2.1[0-9]*>: Rename to ...
1180 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
1181 <i[34567]86-*-solaris*>: Remove.
1182 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
1183
1184 * configure.ac: Remove wctype in libw check.
1185 (_MSE_INT_H): Don't define on Solaris 7-9.
1186 <solaris*>: Remove libthread_db.so.1 check.
1187 * configure: Regenerate.
1188 * config.in: Regenerate.
1189
1190 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
1191 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
1192 (gdb_ps_size_t): Remove.
1193 Use base types in users.
1194 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
1195
1196 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
1197
39b06c20
RO
11982017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1199
1200 PR build/22206
1201 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
1202 (adi_is_addr_mapped): Likewise.
1203 (PSR_ICC): Don't redefine.
1204 (PSR_IMPL): Likewise.
1205
6c3e20f1
TT
12062017-09-25 Tom Tromey <tom@tromey.com>
1207
1208 * regcache.c (regcache::dump): Use string_printf.
1209
b292235f
TT
12102017-09-25 Tom Tromey <tom@tromey.com>
1211
1212 * regcache.c (class regcache_invalidator): New.
1213 (struct register_to_invalidate): Remove.
1214 (make_cleanup_regcache_invalidate): Remove.
1215 (regcache::raw_write): Use regcache_invalidator.
1216
9ac86b52
TT
12172017-09-25 Tom Tromey <tom@tromey.com>
1218
1219 * spu-tdep.c (spu2ppu_sniffer): Update.
1220 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
1221 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
1222 Remove.
1223 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
1224 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
1225 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
1226 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
1227 (frame_pop): Update.
1228
c0e383c6
TT
12292017-09-25 Tom Tromey <tom@tromey.com>
1230
1231 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
1232 * regcache.h (regcache_xfree): Don't declare.
1233 * regcache.c (regcache_xfree): Remove.
1234 (do_regcache_xfree): Use delete.
1235 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
1236 * linux-fork.c (free_fork): Use delete.
1237 (fork_save_infrun_state): Likewise.
1238 * jit.c (jit_dealloc_cache): Use delete.
1239 * infrun.c (discard_infcall_suspend_state): Use delete.
1240
791199cc
TT
12412017-09-25 Tom Tromey <tom@tromey.com>
1242
1243 * regcache.h (regcache_xmalloc): Don't declare.
1244 (regcache_raw_set_cached_value): Update comment.
1245 * regcache.c (regcache_xmalloc): Remove.
1246 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
1247 * jit.c (jit_frame_sniffer): Use new.
1248 * frame.c (frame_save_as_regcache): Use new.
1249
289e23aa
AA
12502017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1251
1252 * NEWS: Advertise support for guarded-storage registers on IBM z.
1253
1b63490c
AA
12542017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1255
1256 * s390-linux-nat.c (have_regset_gs): New static variable.
1257 (s390_linux_fetch_inferior_registers): Handle guarded-storage
1258 control block and guarded-storage broadcast control regsets.
1259 (s390_read_description): Detect whether the target has
1260 guarded-storage support, return appropriate tdesc.
1261 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
1262 (features/s390x-gs-linux64.c): Likewise.
1263 (struct gdbarch_tdep) <have_gs>: New field.
1264 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
1265 (s390_gsbc_regset): New variables.
1266 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
1267 and s390_gsbc_regset, if applicable.
1268 (s390_core_read_description): Check whether core file was from a
1269 target with guarded-storage support; include appropriate regsets.
1270 (s390_gdbarch_init): Add registers for guarded-storage support.
1271 (_initialize_s390_tdep): Initialize new target descriptions that
1272 include registers for guarded-storage support.
1273 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
1274 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
1275 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
1276 (S390_NUM_REGS): Adjust macro definition.
1277 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
1278 (tdesc_s390x_gs_linux64): New declarations.
1279
96235dc1
AA
12802017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1281
1282 * features/s390-gs-linux64.xml: New file.
1283 * features/s390-gs.xml: New file.
1284 * features/s390-gsbc.xml: New file.
1285 * features/s390x-gs-linux64.xml: New file.
1286 * features/Makefile (WHICH): Add s390-gs-linux64 and
1287 s390x-gs-linux64.
1288 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
1289 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
1290 * features/s390-gs-linux64.c: New generated file.
1291 * features/s390x-gs-linux64.c: New file.
1292 * regformats/s390-gs-linux64.dat: New file.
1293 * regformats/s390x-gs-linux64.dat: New file.
1294
b4a7c699
TT
12952017-09-23 Tom Tromey <tom@tromey.com>
1296
1297 * defs.h (make_cleanup_override_quit_handler): Don't declare.
1298
c2f97536
TT
12992017-09-22 Tom Tromey <tom@tromey.com>
1300
1301 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
1302 type to scoped_restore_tmpl.
1303 <scoped_input_handler>: Initialize m_quit_handler directly.
1304
43573013
SDJ
13052017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
1306
1307 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
1308 (cd_command): Likewise. Free "current_directory" before
1309 assigning to it.
1310 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
1311 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
1312 * top.c (gdb_dirbuf): Remove global declaration.
1313 * top.h (gdb_dirbuf): Likewise.
1314
6ec2e0f5
SDJ
13152017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
1316
1317 * gnulib/aclocal.m4: Regenerate.
1318 * gnulib/config.in: Regenerate.
1319 * gnulib/configure: Regenerate.
1320 * gnulib/import/Makefile.am: Regenerate.
1321 * gnulib/import/Makefile.in: Regenerate.
1322 * gnulib/import/assure.h: New file.
1323 * gnulib/import/at-func.c: Likewise
1324 * gnulib/import/chdir-long.c: New file.
1325 * gnulib/import/chdir-long.h: New file.
1326 * gnulib/import/cloexec.c: New file.
1327 * gnulib/import/cloexec.h: New file.
1328 * gnulib/import/close.c: New file.
1329 * gnulib/import/closedir.c: New file.
1330 * gnulib/import/dirent-private.h: New file.
1331 * gnulib/import/dup-safer.c: New file.
1332 * gnulib/import/dup.c: New file.
1333 * gnulib/import/dup2.c: New file.
1334 * gnulib/import/error.c: New file.
1335 * gnulib/import/error.h: New file.
1336 * gnulib/import/exitfail.c: New file.
1337 * gnulib/import/exitfail.h: New file.
1338 * gnulib/import/fchdir.c: New file.
1339 * gnulib/import/fcntl.c: New file.
1340 * gnulib/import/fcntl.in.h: New file.
1341 * gnulib/import/fd-hook.c: New file.
1342 * gnulib/import/fd-hook.h: New file.
1343 * gnulib/import/fd-safer.c: New file.
1344 * gnulib/import/fdopendir.c: New file.
1345 * gnulib/import/filename.h: New file.
1346 * gnulib/import/filenamecat-lgpl.c: New file.
1347 * gnulib/import/filenamecat.h: New file.
1348 * gnulib/import/fstat.c: New file.
1349 * gnulib/import/fstatat.c: New file.
1350 * gnulib/import/getcwd-lgpl.c: New file.
1351 * gnulib/import/getcwd.c: New file.
1352 * gnulib/import/getdtablesize.c: New file.
1353 * gnulib/import/getlogin_r.c: New file.
1354 * gnulib/import/getprogname.c: New file.
1355 * gnulib/import/getprogname.h: New file.
1356 * gnulib/import/gettext.h: New file.
1357 * gnulib/import/glob-libc.h: New file.
1358 * gnulib/import/glob.c: New file.
1359 * gnulib/import/glob.in.h: New file.
1360 * gnulib/import/intprops.h: New file.
1361 * gnulib/import/m4/chdir-long.m4: New file.
1362 * gnulib/import/m4/close.m4: New file.
1363 * gnulib/import/m4/closedir.m4: New file.
1364 * gnulib/import/m4/d-ino.m4: New file.
1365 * gnulib/import/m4/d-type.m4: New file.
1366 * gnulib/import/m4/dup.m4: New file.
1367 * gnulib/import/m4/dup2.m4: New file.
1368 * gnulib/import/m4/error.m4: New file.
1369 * gnulib/import/m4/fchdir.m4: New file.
1370 * gnulib/import/m4/fcntl.m4: New file.
1371 * gnulib/import/m4/fcntl_h.m4: New file.
1372 * gnulib/import/m4/fdopendir.m4: New file.
1373 * gnulib/import/m4/filenamecat.m4: New file.
1374 * gnulib/import/m4/fstat.m4: New file.
1375 * gnulib/import/m4/fstatat.m4: New file.
1376 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
1377 * gnulib/import/m4/getcwd-path-max.m4: New file.
1378 * gnulib/import/m4/getcwd.m4: New file.
1379 * gnulib/import/m4/getdtablesize.m4: New file.
1380 * gnulib/import/m4/getlogin_r.m4: New file.
1381 * gnulib/import/m4/getprogname.m4: New file.
1382 * gnulib/import/m4/glob.m4: New file.
1383 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
1384 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
1385 * gnulib/import/m4/mempcpy.m4: New file.
1386 * gnulib/import/m4/memrchr.m4: New file.
1387 * gnulib/import/m4/mode_t.m4: New file.
1388 * gnulib/import/m4/msvc-inval.m4: New file.
1389 * gnulib/import/m4/msvc-nothrow.m4: New file.
1390 * gnulib/import/m4/open.m4: New file.
1391 * gnulib/import/m4/openat.m4: New file.
1392 * gnulib/import/m4/opendir.m4: New file.
1393 * gnulib/import/m4/readdir.m4: New file.
1394 * gnulib/import/m4/realloc.m4: New file.
1395 * gnulib/import/m4/rewinddir.m4: New file.
1396 * gnulib/import/m4/save-cwd.m4: New file.
1397 * gnulib/import/m4/strdup.m4: New file.
1398 * gnulib/import/m4/strerror.m4: New file.
1399 * gnulib/import/m4/unistd-safer.m4: New file.
1400 * gnulib/import/mempcpy.c: New file.
1401 * gnulib/import/memrchr.c: New file.
1402 * gnulib/import/msvc-inval.c: New file.
1403 * gnulib/import/msvc-inval.h: New file.
1404 * gnulib/import/msvc-nothrow.c: New file.
1405 * gnulib/import/msvc-nothrow.h: New file.
1406 * gnulib/import/open.c: New file.
1407 * gnulib/import/openat-die.c: New file.
1408 * gnulib/import/openat-priv.h: New file.
1409 * gnulib/import/openat-proc.c: New file.
1410 * gnulib/import/openat.c: New file.
1411 * gnulib/import/openat.h: New file.
1412 * gnulib/import/opendir.c: New file.
1413 * gnulib/import/pipe-safer.c: New file.
1414 * gnulib/import/readdir.c: New file.
1415 * gnulib/import/realloc.c: New file.
1416 * gnulib/import/rewinddir.c: New file.
1417 * gnulib/import/save-cwd.c: New file.
1418 * gnulib/import/save-cwd.h: New file.
1419 * gnulib/import/strdup.c: New file.
1420 * gnulib/import/strerror-override.c: New file.
1421 * gnulib/import/strerror-override.h: New file.
1422 * gnulib/import/strerror.c: New file.
1423 * gnulib/import/unistd--.h: New file.
1424 * gnulib/import/unistd-safer.h: New file.
1425 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1426 "getcwd" and "glob".
1427 * ser-tcp.c: Undefine "close" before redefining it.
1428
432ae719
SM
14292017-09-21 Simon Marchi <simon.marchi@ericsson.com>
1430
1431 * guile/scm-value.c (gdbscm_value_address): Initialize address,
1432 get rid of res_val.
1433
4fa7574e
RO
14342017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1435
1436 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
1437 <sol2,sparc>: Likewise.
1438 <sol2-64,i386>: Likewise.
1439
1440 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
1441 -Wdeprecated-declarations on *-*-solaris*.
1442 * configure: Regenerate.
1443
1444 * procfs.c: Include "nat/inferior.h".
1445 (procfs_info_proc): Fix typo.
1446
f6327dcb
KB
14472017-09-21 Kevin Buettner <kevinb@redhat.com>
1448
1449 * remote.c (vector): Include.
1450 (struct private_thread_info): Add field, thread_handle.
1451 (free_private_thread_info): Deallocate storage associated with
1452 thread handle.
1453 (get_private_info_thread): Initialize `thread_handle' field.
1454 (struct thread_item): Add field, thread_handle.
1455 (clear_threads_listing_context): Deallocate storage associated
1456 with thread handle.
1457 (start_thread): Add support for "handle" attribute.
1458 (thread_attributes): Add "handle".
1459 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
1460 field.
1461 (remote_update_thread_list): Update thread_handle.
1462 (remote_thread_handle_to_thread_info): New function.
1463 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
1464
fbbe5337
KB
14652017-09-21 Kevin Buettner <kevinb@redhat.com>
1466
1467 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
1468 function.
1469 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
1470 * python/python-internal.h (thread_object_type): Declare.
1471
e04ee09e
KB
14722017-09-21 Kevin Buettner <kevinb@redhat.com>
1473
1474 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
1475 (target_thread_handle_to_thread_info): Declare.
1476 * target.c (target_thread_handle_to_thread_info): New function.
1477 * target-delegates.c: Regenerate.
1478 * gdbthread.h (find_thread_by_handle): Declare.
1479 * thread.c (find_thread_by_handle): New function.
1480 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
1481 function.
1482 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
1483
1e5b66ed
SM
14842017-09-21 Simon Marchi <simon.marchi@ericsson.com>
1485
1486 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
1487
ebe48ba0
SM
14882017-09-21 Simon Marchi <simon.marchi@ericsson.com>
1489
1490 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
1491
0a0bf5dc
YQ
14922017-09-21 Yao Qi <yao.qi@linaro.org>
1493
1494 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
1495 to gdb_target_obs.
1496
d1b0a7bf
TT
14972017-09-20 Tom Tromey <tom@tromey.com>
1498
1499 * breakpoint.c (struct counted_command_line): Remove.
1500 (breakpoint_commands): Update.
1501 (alloc_counted_command_line, incref_counted_command_line)
1502 (decref_counted_command_line, do_cleanup_counted_command_line)
1503 (make_cleanup_decref_counted_command_line): Remove.
1504 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
1505 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
1506 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
1507 (save_breakpoints): Update.
1508 * breakpoint.h (counted_command_line): Now a typedef to
1509 shared_ptr.
1510 (struct breakpoint) <commands>: Now a counted_command_line.
1511 (struct bpstats) <command>: Likewise.
1512
48649e1b
TT
15132017-09-20 Tom Tromey <tom@tromey.com>
1514
1515 * breakpoint.c (struct commands_info, do_map_commands_command):
1516 Remove.
1517 (commands_command_1): Update.
1518 (iterate_over_related_breakpoints): Take a function_view.
1519 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
1520 (delete_command): Update.
1521 (map_breakpoint_numbers): Take a function_view.
1522 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
1523 (disable_command): Update.
1524 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
1525 (enable_command): Update.
1526 (struct disp_data, do_enable_breakpoint_disp)
1527 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
1528 (do_map_enable_delete_breakpoint): Remove.
1529 (enable_once_command, enable_count_command, enable_delete_command)
1530 (delete_trace_variable_command): Update.
1531
04afa70c
TT
15322017-09-20 Tom Tromey <tom@tromey.com>
1533
1534 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
1535 (bpstat_clear): Use delete.
1536 (bpstats): New constructors.
1537 (bpstat_copy, bpstat_stop_status): Use new.
1538 (dprintf_after_condition_true): Update.
1539 * breakpoint.h (bpstats::bpstats): Add constructors.
1540 (bpstats::~bpstats): Add destructor.
1541
c83833f4
PA
15422017-09-20 Pedro Alves <palves@redhat.com>
1543
1544 * eval.c (make_params): Delete, refactored as ...
1545 (class fake_method): ... this new type's ctor.
1546 (fake_method::~fake_method): New.
1547 (evaluate_subexp_standard): Use 'fake_method'.
1548
223ffa71
TT
15492017-09-20 Tom Tromey <tom@tromey.com>
1550
1551 * windows-nat.c (get_windows_debug_event, windows_wait)
1552 (do_initial_windows_stuff, windows_attach): Update.
1553 * utils.c (vwarning, internal_vproblem): Update.
1554 (ui_unregister_input_event_handler_cleanup)
1555 (prepare_to_handle_input): Remove.
1556 (class scoped_input_handler): New.
1557 (defaulted_query, prompt_for_continue): Update.
1558 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
1559 Update.
1560 * top.c (undo_terminal_modifications_before_exit): Update.
1561 * target/target.h (target_terminal_init, target_terminal_inferior)
1562 (target_terminal_ours): Don't declare.
1563 (class target_terminal): New.
1564 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
1565 (target_terminal_ours_for_output)
1566 (make_cleanup_restore_target_terminal): Don't declare.
1567 (target_terminal_info): Remove.
1568 * target.c (enum terminal_state, terminal_state): Remove.
1569 (target_terminal::terminal_state): Define.
1570 (target_terminal::init): Rename from target_terminal_init.
1571 (target_terminal::inferior): Rename from
1572 target_terminal_inferior.
1573 (target_terminal::ours): Rename from target_terminal_ours.
1574 (target_terminal::ours_for_output): Rename from
1575 target_terminal_ours_for_output.
1576 (target_terminal::info): New method.
1577 (cleanup_restore_target_terminal)
1578 (make_cleanup_restore_target_terminal): Remove.
1579 * solib.c (handle_solib_event): Update.
1580 * remote.c (remote_serial_quit_handler): Update.
1581 (remote_terminal_inferior, remote_wait_as): Update.
1582 * record-full.c (record_full_wait_1): Update.
1583 * nto-procfs.c (procfs_create_inferior): Update.
1584 * nat/fork-inferior.c (startup_inferior): Update.
1585 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
1586 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
1587 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
1588 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
1589 (mi_breakpoint_created, mi_breakpoint_deleted)
1590 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
1591 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
1592 (mi_user_selected_context_changed, report_initial_inferior):
1593 Update.
1594 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
1595 (linux_nat_terminal_inferior): Update.
1596 * infrun.c (follow_fork_inferior)
1597 (handle_vfork_child_exec_or_exit, do_target_resume)
1598 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
1599 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
1600 Update.
1601 * inflow.c (child_terminal_init, info_terminal_command): Update.
1602 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
1603 (attach_command): Update.
1604 * infcall.c (call_thread_fsm_should_stop): Update.
1605 * gnu-nat.c (gnu_attach): Update.
1606 * extension.c (struct active_ext_lang_state)
1607 (restore_active_ext_lang): Update.
1608 * exceptions.c (print_flush): Update.
1609 * event-top.c (async_enable_stdin, default_quit_handler): Update.
1610 (struct quit_handler_cleanup_data, restore_quit_handler)
1611 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
1612 Remove.
1613 * cp-support.c (gdb_demangle): Update.
1614 * breakpoint.c (update_inserted_breakpoint_locations)
1615 (insert_breakpoint_locations, handle_jit_event)
1616 (disable_breakpoints_in_unloaded_shlib): Update.
1617 * annotate.c (annotate_breakpoints_invalid)
1618 (annotate_frames_invalid): Update.
1619
013af3fc
TT
16202017-09-20 Tom Tromey <tom@tromey.com>
1621
1622 * main.c (catch_command_errors): Rename from
1623 catch_command_errors_const.
1624 (captured_main_1): Update.
1625
06871ae8
PA
16262017-09-20 Pedro Alves <palves@redhat.com>
1627
1628 * cli/cli-cmds.c (list_command): Use print_sal_location.
1629 (print_sal_location): New function.
1630 (ambiguous_line_spec): Use print_sal_location.
1631 * linespec.c (symbol_to_sal): Record the symbol in the sal.
1632 * symtab.c (find_function_start_sal): Likewise.
1633 * symtab.h (symtab_and_line::symbol): New field.
1634
e5f25bc5
PA
16352017-09-20 Pedro Alves <palves@redhat.com>
1636
1637 * linespec.c (minsym_found): Handle non-text minsyms.
1638 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
1639
1b7fa39e
WT
16402017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1641
1642 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
1643 backslash.
1644
37dd0825
WT
16452017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1646
1647 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
1648 vmovups instead vmovaps.
1649 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
1650
4e5a4f58
JB
16512017-09-19 John Baldwin <jhb@FreeBSD.org>
1652
1653 * NEWS (Changes since GDB 8.0): Add starti.
1654 * infcmd.c (enum run_break): New.
1655 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
1656 case.
1657 (run_command): Use enum run_how.
1658 (start_command): Likewise.
1659 (starti_command): New function.
1660 (RUN_ARGS_HELP): New macro.
1661 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
1662 commands. Add starti command.
1663
aa70c9f1
YQ
16642017-09-19 Yao Qi <yao.qi@linaro.org>
1665
1666 * Makefile.in (monitor.o): Remove the rule.
1667
d6541620
YQ
16682017-09-19 Yao Qi <yao.qi@linaro.org>
1669
1670 * annotate.h (struct annotate_arg_emitter): Use
1671 DISABLE_COPY_AND_ASSIGN.
1672 * common/refcounted-object.h (refcounted_object): Likewise.
1673 * completer.h (struct completion_result): Likewise.
1674 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
1675 * filename-seen-cache.h (filename_seen_cache): Likewise.
1676 * gdbcore.h (thread_section_name): Likewise.
1677 * gdb_regex.h (compiled_regex): Likewise.
1678 * gdbthread.h (scoped_restore_current_thread): Likewise.
1679 * inferior.h (scoped_restore_current_inferior): Likewise.
1680 * jit.c (jit_reader): Likewise.
1681 * linespec.h (struct linespec_result): Likewise.
1682 * mi/mi-parse.h (struct mi_parse): Likewise.
1683 * nat/fork-inferior.c (execv_argv): Likewise.
1684 * progspace.h (scoped_restore_current_program_space): Likewise.
1685 * python/python-internal.h (class gdbpy_enter): Likewise.
1686 * regcache.h (regcache): Likewise.
1687 * target-descriptions.c (struct tdesc_reg): Likewise.
1688 (struct tdesc_type): Likewise.
1689 (struct tdesc_feature): Likewise.
1690 * ui-out.h (ui_out_emit_type): Likewise.
1691
0615127c
SM
16922017-09-18 Simon Marchi <simon.marchi@ericsson.com>
1693
1694 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
1695 label abort_expression.
1696
5e187554
SM
16972017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1698
1699 * common/buffer.c (buffer_xml_printf): Adjust.
1700 * common/xml-utils.c (xml_escape_text): Change return type to
1701 std::string, update code accordingly.
1702 * common/xml-utils.h (xml_escape_text): Change return type to
1703 std::string.
1704 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
1705 * windows-tdep.c (windows_xfer_shared_library): Adjust.
1706 * unittests/xml-utils-selftests.c (test_xml_escape_text):
1707 Adjust.
1708
c3d7b541
SM
17092017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1710
1711 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
1712 (SUBDIR_UNITTESTS_OBS): Add new object file.
1713 * unittests/xml-utils-selftests.c: New file.
1714
1526853e
SM
17152017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1716
1717 * common/selftest.h (selftest): New struct/interface.
1718 (register_test): Add name parameter, add new overload.
1719 (run_tests): Add filter parameter.
1720 (for_each_selftest_ftype): New typedef.
1721 (for_each_selftest): New declaration.
1722 * common/selftest.c (tests): Change type to
1723 map<string, unique_ptr<selftest>>.
1724 (simple_selftest): New struct.
1725 (register_test): New function.
1726 (register_test): Add name parameter and use it.
1727 (run_tests): Add filter parameter and use it. Add prints.
1728 Adjust to vector -> map change.
1729 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
1730 registering selftests.
1731 * arm-tdep.c (_initialize_arm_tdep): Likewise.
1732 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
1733 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
1734 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
1735 * findvar.c (_initialize_findvar): Likewise.
1736 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
1737 * maint.c (maintenance_selftest): Update call to run_tests.
1738 (maintenance_info_selftests): New function.
1739 (_initialize_maint_cmds): Register "maintenance info selftests"
1740 command. Update "maintenance selftest" doc.
1741 * regcache.c (_initialize_regcache): Add names when registering
1742 selftests.
1743 * rust-exp.y (_initialize_rust_exp): Likewise.
1744 * selftest-arch.c (gdbarch_selftest): New struct.
1745 (gdbarch_tests): Remove.
1746 (register_test_foreach_arch): Add name parameter. Call
1747 register_test.
1748 (tests_with_arch): Remove, move most content to
1749 gdbarch_selftest::operator().
1750 (_initialize_selftests_foreach_arch): Remove.
1751 * selftest-arch.h (register_test_foreach_arch): Add name
1752 parameter.
1753 (run_tests_with_arch): New declaration.
1754 * utils-selftests.c (_initialize_utils_selftests): Add names
1755 when registering selftests.
1756 * utils.c (_initialize_utils): Likewise.
1757 * unittests/array-view-selftests.c
1758 (_initialize_array_view_selftests): Likewise.
1759 * unittests/environ-selftests.c (_initialize_environ_selftests):
1760 Likewise.
1761 * unittests/function-view-selftests.c
1762 (_initialize_function_view_selftests): Likewise.
1763 * unittests/offset-type-selftests.c
1764 (_initialize_offset_type_selftests): Likewise.
1765 * unittests/optional-selftests.c
1766 (_initialize_optional_selftests): Likewise.
1767 * unittests/scoped_restore-selftests.c
1768 (_initialize_scoped_restore_selftests): Likewise.
1769 * NEWS: Document "maintenance selftest" and "maint info
1770 selftests".
1771
5846367a
SM
17722017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1773
1774 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
1775 scoped_restore.
1776
bd77e8ff
SM
17772017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1778
1779 * mi/mi-main.c (mi_load_progress): Make uiout variable
1780 a unique_ptr.
1781
26a67918
PA
17822017-09-15 Pedro Alves <palves@redhat.com>
1783
1784 * compile/compile-c-types.c (convert_enum, convert_int)
1785 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
1786
3f8a7804
SM
17872017-09-15 Simon Marchi <simon.marchi@ericsson.com>
1788
1789 * dwarf2read.c (copy_string): Remove.
1790 (parse_macro_definition): Replace copy_string with savestring.
1791
8d200706
YQ
17922017-09-15 Yao Qi <yao.qi@linaro.org>
1793
1794 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
1795 gdb_target_obs.
1796 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
1797 Likewise.
1798 (i[34567]86-*-linux*): Likewise.
1799
d185219d
SM
18002017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1801
1802 * dwarf2expr.h (dwarf_stack_value): Add constructor.
1803 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
1804 <stack>: Change type to std::vector.
1805 <stack_len, stack_allocated>: Remove.
1806 <grow_stack>: Remove.
1807 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
1808 (dwarf_expr_context::~dwarf_expr_context): Remove.
1809 (dwarf_expr_context::grow_stack): Remove.
1810 (dwarf_expr_context::push): Adjust.
1811 (dwarf_expr_context::pop): Adjust.
1812 (dwarf_expr_context::fetch): Adjust.
1813 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
1814 (dwarf_expr_context::stack_empty_p): Adjust.
1815 (dwarf_expr_context::execute_stack_op): Adjust.
1816
eccd80d6
SM
18172017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1818
1819 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
1820 return type to bool.
1821 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
1822
69009882
SM
18232017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1824
1825 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
1826 Change type to bool.
1827 (dwarf_stack_value) <in_stack_memory>: Likewise.
1828 (dwarf_expr_context) <push_address>: Change parameter type to
1829 bool.
1830 <fetch_in_stack_memory>: Change return type to bool.
1831 <push>: Change parameter type to bool.
1832 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
1833 to bool.
1834 (dwarf_expr_context::push_address): Likewise.
1835 (dwarf_expr_context::fetch_in_stack_memory): Change return type
1836 to bool.
1837 (dwarf_expr_context::execute_stack_op): Adjust.
1838 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
1839
1e467161
SM
18402017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1841
1842 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
1843 (struct dwarf_expr_context) <n_pieces>: Remove.
1844 <pieces>: Change type to std::vector.
1845 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
1846 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
1847 pieces.
1848 (dwarf_expr_context::add_piece): Adjust.
1849 * dwarf2loc.c (struct piece_closure): Initialize fields.
1850 <n_pieces>: Remove.
1851 <pieces>: Change type to std::vector.
1852 (allocate_piece_closure): Adjust, change parameter to
1853 std::vector rvalue and std::move it to piece_closure.
1854 (rw_pieced_value): Adjust.
1855 (check_pieced_synthetic_pointer): Adjust.
1856 (indirect_synthetic_pointer): Adjust.
1857 (coerce_pieced_ref): Adjust.
1858 (free_pieced_value_closure): Adjust. Use delete to free
1859 piece_closure.
1860 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
1861 to allocate_piece_closure.
1862 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
1863
0782db84
SM
18642017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1865
1866 * probe.h (probe_ops_cp): Remove typedef.
1867 (DEF_VEC_P (probe_ops_cp)): Remove.
1868 (all_probe_ops): Change type to std::vector.
1869 * probe.c (info_probes_for_ops): Adjust to vector change.
1870 (probe_linespec_to_ops): Likewise.
1871 (all_probe_ops): Change type to std::vector.
1872 (_initialize_probe): Adjust to vector change.
1873 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
1874 * elfread.c (elf_get_probes): Likewise.
1875 * stap-probe.c (_initialize_stap_probe): Likewise.
1876
1eac6bea
SM
18772017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1878
1879 * probe.h (struct bound_probe): Define constructors.
1880 * probe.c (bound_probe_s): Remove typedef.
1881 (DEF_VEC_O (bound_probe_s)): Remove VEC.
1882 (collect_probes): Change return type to std::vector, remove
1883 cleanup.
1884 (compare_probes): Return bool, change parameter type. Change
1885 semantic to "less than".
1886 (gen_ui_out_table_header_info): Change parameter to std::vector
1887 and update.
1888 (exists_probe_with_pops): Likewise.
1889 (info_probes_for_ops): Update to std::vector change.
1890 (enable_probes_command): Likewise.
1891 (disable_probes_command): Likewise.
1892
aaa63a31
SM
18932017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1894
1895 * probe.h (struct probe_ops) <get_probes>: Change parameter from
1896 vec to std::vector.
1897 * probe.c (parse_probes_in_pspace): Update.
1898 (find_probes_in_objfile): Update.
1899 (find_probe_by_pc): Update.
1900 (collect_probes): Update.
1901 (probe_any_get_probes): Update.
1902 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
1903 return type to reference to std::vector.
1904 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
1905 std::vector and update.
1906 (dtrace_process_dof): Likewise.
1907 (dtrace_get_probes): Likewise.
1908 * elfread.c (elf_get_probes): Change return type to std::vector,
1909 store an std::vector in bfd_data.
1910 (probe_key_free): Update to std::vector.
1911 * stap-probe.c (handle_stap_probe): Change parameter to
1912 std::vector and update.
1913 (stap_get_probes): Likewise.
1914 * symfile-debug.c (debug_sym_get_probes): Change return type to
1915 std::vector and update.
1916
cb85b21b
TT
19172017-09-11 Tom Tromey <tom@tromey.com>
1918
1919 * breakpoint.c (program_breakpoint_here_p): Update.
1920 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
1921 from make_show_memory_breakpoints_cleanup. Return a
1922 scoped_restore_tmpl<int>.
1923 (restore_show_memory_breakpoints): Remove.
1924 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
1925 * mem-break.c (memory_validate_breakpoint): Update.
1926 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
1927 (ia64_memory_remove_breakpoint): Update.
1928 (ia64_breakpoint_from_pc): Update.
1929 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
1930 from make_show_memory_breakpoints_cleanup.
1931
8fbc99ef
TT
19322017-09-11 Tom Tromey <tom@tromey.com>
1933
1934 * d-namespace.c (d_lookup_symbol): Use std::string.
1935 (find_symbol_in_baseclass): Likewise.
1936
50feb4bd
TT
19372017-09-11 Tom Tromey <tom@tromey.com>
1938
1939 * ctf.c (ctf_start): Use std::string.
1940
c6dc63a1
TT
19412017-09-11 Tom Tromey <tom@tromey.com>
1942
1943 * ada-lang.c (is_known_support_routine): Update.
1944 (ada_unhandled_exception_name_addr_from_raise): Update.
1945 * guile/scm-frame.c (gdbscm_frame_name): Update.
1946 * python/py-frame.c (frapy_name): Update.
1947 (frapy_function): Update.
1948 * stack.h (find_frame_funname): Update.
1949 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
1950 (print_frame): Update.
1951
d6b9b80f
TT
19522017-09-11 Tom Tromey <tom@tromey.com>
1953
1954 * findcmd.c (put_bits): Take a gdb::byte_vector.
1955 (parse_find_args): Return gdb::byte_vector. "args" now const.
1956 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
1957 cleanups.
1958 (find_command): Update.
1959
a9921622
TT
19602017-09-11 Tom Tromey <tom@tromey.com>
1961
1962 * cli/cli-script.c (class scoped_restore_hook_in): New.
1963 (clear_hook_in_cleanup): Remove.
1964 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
1965 scoped_restore_hook_in.
1966
be0d7abb
TT
19672017-09-11 Tom Tromey <tom@tromey.com>
1968
1969 * cli/cli-script.c (restore_interp): Remove.
1970 (read_command_lines): Use scoped_restore_interp.
1971 * interps.c (scoped_restore_interp::set_temp): Rename from
1972 interp_set_temp.
1973 * interps.h (class scoped_restore_interp): New.
1974 (interp_set_temp): Remove.
1975
00f675ff
TT
19762017-09-11 Tom Tromey <tom@tromey.com>
1977
1978 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
1979 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
1980 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
1981 scoped_restore.
1982 (mi_cmd_break_insert_1): Update.
1983 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
1984 scoped_restore.
1985
cb791d59
TT
19862017-09-11 Tom Tromey <tom@tromey.com>
1987
1988 * demangle.c (demangle_command): Update.
1989 * breakpoint.c (disable_command): Update.
1990 (enable_command): Update.
1991 (find_location_by_number): Make "number" const. Use
1992 get_number_trailer.
1993 * cli/cli-utils.c (extract_arg): Return std::string.
1994 * probe.c (parse_probe_linespec): Update. Change types.
1995 (collect_probes): Take string arguments.
1996 (parse_probe_linespec): Likewise.
1997 (info_probes_for_ops): Update.
1998 (enable_probes_command): Update.
1999 (disable_probes_command): Update.
2000 * break-catch-sig.c (catch_signal_split_args): Update.
2001 * mi/mi-parse.c (mi_parse): Update.
2002
2039bd9f
TT
20032017-09-11 Tom Tromey <tom@tromey.com>
2004
2005 * language.h (language_enum): Make argument const.
2006 * language.c (language_enum): Make argument const.
2007
f1735a53
TT
20082017-09-11 Tom Tromey <tom@tromey.com>
2009
2010 * common/common-utils.h (skip_to_space): Remove macro, redeclare
2011 as function.
2012 (skip_to_space): Rename from skip_to_space_const.
2013 * common/common-utils.c (skip_to_space): New function.
2014 (skip_to_space): Rename from skip_to_space_const.
2015 * cli/cli-utils.h (get_number): Rename from get_number_const.
2016 (extract_arg): Rename from extract_arg_const.
2017 * cli/cli-utils.c (get_number): Rename from get_number_const.
2018 (extract_arg): Rename from extract_arg_const.
2019 (number_or_range_parser::get_number): Use ::get_number.
2020 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
2021 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
2022 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
2023 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
2024 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
2025 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
2026 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
2027 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
2028
7d221d74
TT
20292017-09-11 Tom Tromey <tom@tromey.com>
2030
2031 * python/python.c (do_start_initialization): Use
2032 py-event-types.def to initialize types.
2033 Define all object type structures.
2034 * python/python-internal.h: Don't declare event initialization
2035 functions.
2036 * python/py-threadevent.c (thread_event_object_type): Don't
2037 define.
2038 * python/py-stopevent.c (stop_event_object_type): Don't define.
2039 * python/py-signalevent.c (signal_event_object_type): Don't
2040 declare or define.
2041 * python/py-newobjfileevent.c (new_objfile_event_object_type)
2042 (clear_objfiles_event_object_type): Don't declare or define.
2043 * python/py-infevents.c (inferior_call_pre_event_object_type)
2044 (inferior_call_post_event_object_type)
2045 (register_changed_event_object_type)
2046 (memory_changed_event_object_type): Don't declare or define.
2047 * python/py-inferior.c (new_thread_event_object_type)
2048 (new_inferior_event_object_type)
2049 (inferior_deleted_event_object_type): Don't declare or define.
2050 * python/py-exitedevent.c (exited_event_object_type): Don't
2051 declare or define.
2052 * python/py-evts.c (gdbpy_initialize_py_events): Use
2053 py-all-events.def.
2054 * python/py-events.h (thread_event_object_type): Don't declare.
2055 (events_object): Use py-all-events.def.
2056 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
2057 py-event-types.def.
2058 * python/py-event-types.def: New file.
2059 * python/py-continueevent.c (create_continue_event_object): Don't
2060 declare or define.
2061 * python/py-bpevent.c (breakpoint_event_object_type): Don't
2062 declare or define.
2063 * python/py-all-events.def: New file.
2064
35c61a1d
TT
20652017-09-11 Tom Tromey <tom@tromey.com>
2066
2067 * python/py-threadevent.c (create_thread_event_object): Return
2068 gdbpy_ref.
2069 * python/py-stopevent.h (create_stop_event_object)
2070 (create_breakpoint_event_object, create_signal_event_object):
2071 Update.
2072 * python/py-stopevent.c (create_stop_event_object): Return
2073 gdbpy_ref.
2074 (emit_stop_event): Update.
2075 * python/py-signalevent.c (create_signal_event_object): Return
2076 gdbpy_ref.
2077 * python/py-infevents.c (create_inferior_call_event_object):
2078 Update.
2079 * python/py-event.h (create_event_object)
2080 (create_thread_event_object): Update.
2081 * python/py-event.c (create_event_object): Return gdbpy_ref.
2082 * python/py-continueevent.c: Return gdbpy_ref.
2083 * python/py-bpevent.c (create_breakpoint_event_object): Return
2084 gdbpy_ref.
2085
7c96f8c1
TT
20862017-09-11 Tom Tromey <tom@tromey.com>
2087
2088 PR python/15622:
2089 * NEWS: Add entry.
2090 * python/python.c (do_start_initialization): Initialize new event
2091 types.
2092 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
2093 (gdbpy_initialize_inferior_deleted_event)
2094 (gdbpy_initialize_new_thread_event): Declare.
2095 * python/py-threadevent.c (create_thread_event_object): Add option
2096 "thread" parameter.
2097 * python/py-inferior.c (new_thread_event_object_type)
2098 (new_inferior_event_object_type)
2099 (inferior_deleted_event_object_type): Declare.
2100 (python_new_inferior, python_inferior_deleted): New functions.
2101 (add_thread_object): Emit new_thread event.
2102 (gdbpy_initialize_inferior): Attach new functions to corresponding
2103 observers.
2104 (new_thread, new_inferior, inferior_deleted): Define new event
2105 types.
2106 * python/py-evts.c (gdbpy_initialize_py_events): Add new
2107 registries.
2108 * python/py-events.h (events_object) <new_inferior,
2109 inferior_deleted, new_thread>: New fields.
2110 * python/py-event.h (create_thread_event_breakpoint): Add optional
2111 "thread" parameter.
2112
72542b8e
AB
21132017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
2114
2115 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
2116 check current_ui instead.
2117 (internal_vproblem): Likewise.
2118
0d64823e
SM
21192017-09-09 Simon Marchi <simon.marchi@ericsson.com>
2120
2121 * thread.c (print_thread_info_1): Remove unnecessary calls to
2122 uiout->is_mi_like_p.
2123
eb1e02fd
TT
21242017-09-09 Tom Tromey <tom@tromey.com>
2125
2126 * namespace.h (add_using_directive): Update.
2127 * namespace.c (add_using_directive): Change type of excludes to
2128 std::vector.
2129 * dwarf2read.c (read_import_statement): Use std::vector.
2130 (read_namespace): Update.
2131 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
2132
0fc21fd8
TT
21332017-09-09 Tom Tromey <tom@tromey.com>
2134
2135 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
2136
49663d05
TT
21372017-09-09 Tom Tromey <tom@tromey.com>
2138
2139 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
2140
0b868b60
TT
21412017-09-09 Tom Tromey <tom@tromey.com>
2142
2143 * stack.c (func_command): Use gdb::def_vector.
2144
c0470d48
TT
21452017-09-09 Tom Tromey <tom@tromey.com>
2146
2147 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
2148 ui_out_emit_list, ui_out_emit_tuple.
2149 (mi_cmd_var_update): Likewise.
2150
ca5909c7
TT
21512017-09-09 Tom Tromey <tom@tromey.com>
2152
2153 * mi/mi-interp.c (mi_user_selected_context_changed): Use
2154 ui_out_redirect_pop.
2155 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
2156 ui_out_redirect_pop.
2157 * utils.c (do_ui_out_redirect_pop)
2158 (make_cleanup_ui_out_redirect_pop): Remove.
2159 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
2160 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
2161 * ui-out.h (ui_out_redirect_pop): New class.
2162
e6a2252a
TT
21632017-09-09 Tom Tromey <tom@tromey.com>
2164
2165 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
2166 (list_available_thread_groups, mi_cmd_list_thread_groups)
2167 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
2168 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
2169 Likewise.
2170
393702cd
TT
21712017-09-09 Tom Tromey <tom@tromey.com>
2172
2173 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
2174 ui_out_emit_tuple.
2175
76f9c9cf
TT
21762017-09-09 Tom Tromey <tom@tromey.com>
2177
2178 * target.c (flash_erase_command): Use ui_out_emit_tuple.
2179 * stack.c (print_frame): Use ui_out_emit_tuple.
2180 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
2181 (info_spu_mailbox_command, info_spu_dma_command)
2182 (info_spu_proxydma_command): Likewise.
2183 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
2184 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
2185 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
2186 ui_out_emit_tuple.
2187 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
2188
dc9fe180
TT
21892017-09-09 Tom Tromey <tom@tromey.com>
2190
2191 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
2192 (class ui_out_emit_table): Update comment.
2193 * ui-out.c (do_cleanup_table_end)
2194 (make_cleanup_ui_out_table_begin_end): Remove.
2195 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
2196 (info_spu_dma_cmdlist): Likewise.
2197 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
2198 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
2199 ui_out_emit_table.
2200
f8cc3da6
TT
22012017-09-09 Tom Tromey <tom@tromey.com>
2202
2203 * thread.c (print_thread_info_1): Use ui_out_emit_table,
2204 ui_out_emit_list, gdb::optional.
2205
481695ed
JB
22062017-09-09 John Baldwin <jhb@FreeBSD.org>
2207
2208 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
2209 prototype.
2210 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
2211 prototype.
2212 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
2213 prototype.
2214 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
2215 * ada-exp.y: Remove _initialize_ada_exp prototype.
2216 * ada-lang.c: Remove _initialize_ada_language prototype.
2217 * ada-tasks.c: Remove _initialize_tasks prototype.
2218 * addrmap.c: Remove _initialize_addrmap prototype.
2219 * agent.c: Remove _initialize_agent prototype.
2220 * aix-thread.c: Remove _initialize_aix_thread prototype.
2221 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
2222 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
2223 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
2224 prototype.
2225 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
2226 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
2227 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
2228 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
2229 prototype.
2230 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
2231 prototype.
2232 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
2233 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
2234 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
2235 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
2236 prototype.
2237 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
2238 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
2239 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
2240 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
2241 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
2242 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
2243 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
2244 prototype.
2245 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
2246 prototype.
2247 * annotate.c: Remove _initialize_annotate prototype.
2248 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
2249 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
2250 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
2251 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
2252 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
2253 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
2254 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
2255 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
2256 prototype.
2257 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
2258 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
2259 * auto-load.c: Remove _initialize_auto_load prototype.
2260 * auxv.c: Remove _initialize_auxv prototype.
2261 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
2262 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
2263 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
2264 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
2265 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
2266 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
2267 prototype.
2268 * break-catch-throw.c: Remove _initialize_break_catch_throw
2269 prototype.
2270 * breakpoint.c: Remove _initialize_breakpoint prototype.
2271 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
2272 * btrace.c: Remove _initialize_btrace prototype.
2273 * charset.c: Remove _initialize_charset prototype.
2274 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
2275 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
2276 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
2277 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
2278 * cli/cli-script.c: Remove _initialize_cli_script prototype.
2279 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
2280 * coffread.c: Remove _initialize_coffread prototype.
2281 * compile/compile.c: Remove _initialize_compile prototype.
2282 * complaints.c: Remove _initialize_complaints prototype.
2283 * completer.c: Remove _initialize_completer prototype.
2284 * copying.awk: Remove _initialize_copying prototype.
2285 * copying.c: Regenerate.
2286 * core-regset.c: Remove _initialize_core_regset prototype.
2287 * corefile.c: Remove _initialize_core prototype.
2288 * corelow.c: Remove _initialize_corelow prototype.
2289 * cp-abi.c: Remove _initialize_cp_abi prototype.
2290 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
2291 * cp-support.c: Remove _initialize_cp_support prototype.
2292 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
2293 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
2294 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
2295 * ctf.c: Remove _initialize_ctf prototype.
2296 * d-lang.c: Remove _initialize_d_language prototype.
2297 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
2298 prototype.
2299 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
2300 * dbxread.c: Remove _initialize_dbxread prototype.
2301 * dcache.c: Remove _initialize_dcache prototype.
2302 * demangle.c: Remove _initialize_demangler prototype.
2303 * disasm-selftests.c: Remove _initialize_disasm_selftests
2304 prototype.
2305 * disasm.c: Remove _initialize_disasm prototype.
2306 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
2307 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
2308 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
2309 prototype.
2310 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
2311 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
2312 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
2313 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
2314 * elfread.c: Remove _initialize_elfread prototype.
2315 * exec.c: Remove _initialize_exec prototype.
2316 * extension.c: Remove _initialize_extension prototype.
2317 * f-lang.c: Remove _initialize_f_language prototype.
2318 * f-valprint.c: Remove _initialize_f_valprint prototype.
2319 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
2320 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
2321 * filesystem.c: Remove _initialize_filesystem prototype.
2322 * findcmd.c: Remove _initialize_mem_search prototype.
2323 * fork-child.c: Remove _initialize_fork_child prototype.
2324 * frame-base.c: Remove _initialize_frame_base prototype.
2325 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
2326 * frame.c: Remove _initialize_frame prototype.
2327 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
2328 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
2329 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
2330 * gcore.c: Remove _initialize_gcore prototype.
2331 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
2332 * gdbarch.c: Regenerate.
2333 * gdbarch.sh: Remove _initialize_gdbarch prototype.
2334 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
2335 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
2336 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
2337 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
2338 * go-lang.c: Remove _initialize_go_language prototype.
2339 * go32-nat.c: Remove _initialize_go32_nat prototype.
2340 * guile/guile.c: Remove _initialize_guile prototype.
2341 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
2342 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
2343 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
2344 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
2345 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
2346 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
2347 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
2348 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
2349 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
2350 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
2351 prototype.
2352 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
2353 prototype.
2354 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
2355 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
2356 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
2357 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
2358 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
2359 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
2360 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
2361 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
2362 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
2363 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
2364 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
2365 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
2366 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
2367 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
2368 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
2369 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
2370 prototype.
2371 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
2372 prototype.
2373 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
2374 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
2375 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
2376 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
2377 * infcall.c: Remove _initialize_infcall prototype.
2378 * infcmd.c: Remove _initialize_infcmd prototype.
2379 * inferior.c: Remove _initialize_inferiors prototype.
2380 * inflow.c: Remove _initialize_inflow prototype.
2381 * infrun.c: Remove _initialize_infrun prototype.
2382 * interps.c: Remove _initialize_interpreter prototype.
2383 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
2384 * jit.c: Remove _initialize_jit prototype.
2385 * language.c: Remove _initialize_language prototype.
2386 * linux-fork.c: Remove _initialize_linux_fork prototype.
2387 * linux-nat.c: Remove _initialize_linux_nat prototype.
2388 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
2389 * linux-thread-db.c: Remove _initialize_thread_db prototype.
2390 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
2391 * m2-lang.c: Remove _initialize_m2_language prototype.
2392 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
2393 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
2394 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
2395 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
2396 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
2397 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
2398 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
2399 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
2400 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
2401 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
2402 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
2403 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
2404 * machoread.c: Remove _initialize_machoread prototype.
2405 * macrocmd.c: Remove _initialize_macrocmd prototype.
2406 * macroscope.c: Remove _initialize_macroscope prototype.
2407 * maint.c: Remove _initialize_maint_cmds prototype.
2408 * mdebugread.c: Remove _initialize_mdebugread prototype.
2409 * memattr.c: Remove _initialize_mem prototype.
2410 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
2411 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
2412 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
2413 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
2414 * mi/mi-main.c: Remove _initialize_mi_main prototype.
2415 * microblaze-linux-tdep.c: Remove
2416 _initialize_microblaze_linux_tdep prototype.
2417 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
2418 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
2419 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
2420 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
2421 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
2422 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
2423 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
2424 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
2425 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
2426 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
2427 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
2428 prototype.
2429 * mipsread.c: Remove _initialize_mipsread prototype.
2430 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
2431 prototype.
2432 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
2433 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
2434 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
2435 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
2436 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
2437 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
2438 prototype.
2439 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
2440 * nto-procfs.c: Remove _initialize_procfs prototype.
2441 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
2442 * objc-lang.c: Remove _initialize_objc_language prototype.
2443 * objfiles.c: Remove _initialize_objfiles prototype.
2444 * observer.c: Remove observer_test_first_notification_function,
2445 observer_test_second_notification_function,
2446 observer_test_third_notification_function, and
2447 _initialize_observer prototypes.
2448 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
2449 * osabi.c: Remove _initialize_gdb_osabi prototype.
2450 * osdata.c: Remove _initialize_osdata prototype.
2451 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
2452 * parse.c: Remove _initialize_parse prototype.
2453 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
2454 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
2455 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
2456 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
2457 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
2458 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
2459 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
2460 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
2461 * printcmd.c: Remove _initialize_printcmd prototype.
2462 * probe.c: Remove _initialize_probe prototype.
2463 * proc-api.c: Remove _initialize_proc_api prototype.
2464 * proc-events.c: Remove _initialize_proc_events prototype.
2465 * proc-service.c: Remove _initialize_proc_service prototype.
2466 * procfs.c: Remove _initialize_procfs prototype.
2467 * psymtab.c: Remove _initialize_psymtab prototype.
2468 * python/python.c: Remove _initialize_python prototype.
2469 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
2470 * record-btrace.c: Remove _initialize_record_btrace prototype.
2471 * record-full.c: Remove _initialize_record_full prototype.
2472 * record.c: Remove _initialize_record prototype.
2473 * regcache.c: Remove _initialize_regcache prototype.
2474 * reggroups.c: Remove _initialize_reggroup prototype.
2475 * remote-notif.c: Remove _initialize_notif prototype.
2476 * remote-sim.c: Remove _initialize_remote_sim prototype.
2477 * remote.c: Remove _initialize_remote prototype.
2478 * reverse.c: Remove _initialize_reverse prototype.
2479 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
2480 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
2481 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
2482 prototype.
2483 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
2484 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
2485 * rust-exp.y: Remove _initialize_rust_exp prototype.
2486 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
2487 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
2488 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
2489 * score-tdep.c: Remove _initialize_score_tdep prototype.
2490 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
2491 prototype.
2492 * ser-go32.c: Remove _initialize_ser_dos prototype.
2493 * ser-mingw.c: Remove _initialize_ser_windows prototype.
2494 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
2495 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
2496 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
2497 * serial.c: Remove _initialize_serial prototype.
2498 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
2499 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
2500 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
2501 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
2502 * skip.c: Remove _initialize_step_skip prototype.
2503 * sol-thread.c: Remove _initialize_sol_thread prototype.
2504 * solib-aix.c: Remove _initialize_solib_aix prototype.
2505 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
2506 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
2507 * solib-frv.c: Remove _initialize_frv_solib prototype.
2508 * solib-spu.c: Remove _initialize_spu_solib prototype.
2509 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
2510 * solib-target.c: Remove _initialize_solib_target prototype.
2511 * solib.c: Remove _initialize_solib prototype.
2512 * source.c: Remove _initialize_source prototype.
2513 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
2514 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
2515 prototype.
2516 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
2517 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
2518 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
2519 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
2520 prototype.
2521 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
2522 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
2523 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
2524 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
2525 prototype.
2526 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
2527 prototype.
2528 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
2529 prototype.
2530 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
2531 prototype.
2532 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
2533 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
2534 prototype.
2535 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
2536 prototype.
2537 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
2538 prototype.
2539 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
2540 prototype.
2541 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
2542 prototype.
2543 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
2544 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
2545 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
2546 * stabsread.c: Remove _initialize_stabsread prototype.
2547 * stack.c: Remove _initialize_stack prototype.
2548 * stap-probe.c: Remove _initialize_stap_probe prototype.
2549 * std-regs.c: Remove _initialize_frame_reg prototype.
2550 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
2551 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
2552 * symfile.c: Remove _initialize_symfile prototype.
2553 * symmisc.c: Remove _initialize_symmisc prototype.
2554 * symtab.c: Remove _initialize_symtab prototype.
2555 * target-dcache.c: Remove _initialize_target_dcache prototype.
2556 * target-descriptions.c: Remove _initialize_target_descriptions
2557 prototype.
2558 * thread.c: Remove _initialize_thread prototype.
2559 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
2560 prototype.
2561 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
2562 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
2563 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
2564 prototype.
2565 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
2566 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
2567 * tracefile.c: Remove _initialize_tracefile prototype.
2568 * tracepoint.c: Remove _initialize_tracepoint prototype.
2569 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
2570 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
2571 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
2572 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
2573 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
2574 * tui/tui-win.c: Remove _initialize_tui_win prototype.
2575 * tui/tui.c: Remove _initialize_tui prototype.
2576 * typeprint.c: Remove _initialize_typeprint prototype.
2577 * user-regs.c: Remove _initialize_user_regs prototype.
2578 * utils.c: Remove _initialize_utils prototype.
2579 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
2580 * valarith.c: Remove _initialize_valarith prototype.
2581 * valops.c: Remove _initialize_valops prototype.
2582 * valprint.c: Remove _initialize_valprint prototype.
2583 * value.c: Remove _initialize_values prototype.
2584 * varobj.c: Remove _initialize_varobj prototype.
2585 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
2586 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
2587 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
2588 * windows-nat.c: Remove _initialize_windows_nat,
2589 _initialize_check_for_gdb_ini, and _initialize_loadable
2590 prototypes.
2591 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
2592 * xcoffread.c: Remove _initialize_xcoffread prototype.
2593 * xml-support.c: Remove _initialize_xml_support prototype.
2594 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
2595 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
2596 prototype.
2597 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
2598 prototype.
2599 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
2600
a611b5cb
KS
26012017-09-08 Keith Seitz <keiths@redhat.com>
2602
2603 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
2604 field.
2605
469412dd
CW
26062017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
2607
2608 * f-valprint.c (f_val_print): Remove check for one byte
2609 sized integers. Remove printing of character type.
2610
a5ad232b
FP
26112017-09-08 Frank Penczek <frank.penczek@intel.com>
2612 Christoph Weinmann <christoph.t.weinmann@intel.com>
2613 Bernhard Heckel <bernhard.heckel@intel.com>
2614
2615 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
2616 to maintain proper indentation when printing pointers/refs.
2617
e5014227
JB
26182017-09-07 Joel Brobecker <brobecker@adacore.com>
2619
2620 GDB 8.0.1 released.
2621
63c99141
JB
26222017-09-07 Joel Brobecker <brobecker@adacore.com>
2623
2624 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
2625
69c1e056
TT
26262017-09-05 Tom Tromey <tom@tromey.com>
2627
2628 * parse.c (funcall_chain): Now a std::vector.
2629 (start_arglist, end_arglist): Simplify.
2630 (free_funcalls): Remove.
2631 (parse_exp_in_context_1): Remove cleanup.
2632
fef704bf
TT
26332017-09-05 Tom Tromey <tom@tromey.com>
2634
2635 * go-exp.y (go_parse): Don't create a cleanup.
2636
5613c585
TT
26372017-09-05 Tom Tromey <tom@tromey.com>
2638
2639 * d-exp.y (PrimaryExpression): Use std::string.
2640 (d_parse): Don't create a cleanup.
2641
eae49211
TT
26422017-09-05 Tom Tromey <tom@tromey.com>
2643
2644 * utils.c (do_clear_parser_state): Remove.
2645 (make_cleanup_clear_parser_state): Remove.
2646 * p-exp.y (pascal_parse): Use scoped_restore.
2647 * m2-exp.y (m2_parse): Use scoped_restore.
2648 * f-exp.y (f_parse): Use scoped_restore.
2649 * d-exp.y (d_parse): Use scoped_restore.
2650 * c-exp.y (c_parse): Use scoped_restore.
2651 * ada-exp.y (ada_parse): Use scoped_restore.
2652 * utils.h (make_cleanup_clear_parser_state): Remove.
2653
73b9be8b
KS
26542017-09-06 Keith Seitz <keiths@redhat.com>
2655
2656 * dwarf2read.c (dw2_linkage_name_attr): New function.
2657 (dw2_linkage_name): New function.
2658 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
2659 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
2660 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
2661
a102602b
KR
26622017-09-06 Kamil Rytarowski <n54@gmx.com>
2663
2664 * config/djgpp/djconfig.sh: Correct shell portability issue.
2665
28ad437d
KR
26662017-09-06 Kamil Rytarowski <n54@gmx.com>
2667
2668 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
2669
351787dd
JB
26702017-09-06 John Baldwin <jhb@FreeBSD.org>
2671
2672 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
2673 * NEWS: Mention new FreeBSD/mips native configuration.
2674 * configure.host: Add aarch64*-*-freebsd*.
2675 * configure.nat: Likewise.
2676 * aarch64-fbsd-nat.c: New file.
2677
c0f84956
JB
26782017-09-06 John Baldwin <jhb@FreeBSD.org>
2679
2680 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
2681 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
2682 * NEWS: Mention new FreeBSD/aarch64 target.
2683 * configure.tgt: Add aarch64*-*-freebsd*.
2684 * aarch64-fbsd-tdep.c: New file.
2685 * aarch64-fbsd-tdep.h: New file.
2686
7610297a
KR
26872017-09-06 Kamil Rytarowski <n54@gmx.com>
2688
2689 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
2690
fbd1b771
JK
26912017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2692
2693 * parse.c (find_minsym_type_and_address): Don't relocate addresses
2694 of TLS symbols.
2695
5ca79eae
PW
26962017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2697
2698 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
2699 call.
2700
bf93d7ba
SM
27012017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2702
2703 * infrun.c (follow_exec): Call add_thread after
2704 target_find_description.
2705
1bb7c059
SM
27062017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2707
2708 * infrun.c (handle_inferior_event_1): When exec'ing, read
2709 stop_pc after follow_exec.
2710
fc809827
SM
27112017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2712
2713 * remote.c (process_g_packet): Update error message.
2714
d2fcdd85
YQ
27152017-09-05 Yao Qi <yao.qi@linaro.org>
2716
2717 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
2718 targets.
2719
e69570ee
PA
27202017-09-05 Pedro Alves <palves@redhat.com>
2721
2722 * eval.c (eval_call, evaluate_funcall): New functions, factored
2723 out from ...
2724 (evaluate_subexp_standard): ... this.
2725
22916b07
YQ
27262017-09-05 Yao Qi <yao.qi@linaro.org>
2727
2728 * amd64-tdep.c (amd64_target_description): Create target
2729 descriptions.
2730 (_initialize_amd64_tdep): Don't call functions
2731 initialize_tdesc_amd64_*. Add self tests.
2732 * arch/amd64.c (amd64_create_target_description): Add parameter
2733 is_linux. Call set_tdesc_osabi if is_linux is true.
2734 * arch/amd64.h (amd64_create_target_description): Update the
2735 declaration.
2736 * arch/i386.c (i386_create_target_description): Add parameter
2737 is_linux. Call set_tdesc_osabi if is_linux is true.
2738 * arch/i386.h (i386_create_target_description): Update
2739 declaration.
2740 * configure.tgt: Add i386.o to gdb_target_obs.
2741 * features/Makefile (XMLTOC): Remove i386/*.xml.
2742 * features/i386/amd64-avx-avx512.c: Remove.
2743 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
2744 * features/i386/amd64-avx-mpx.c: Remove.
2745 * features/i386/amd64-avx.c: Remove.
2746 * features/i386/amd64-mpx.c: Remove.
2747 * features/i386/amd64.c: Remove.
2748 * features/i386/i386-avx-avx512.c: Remove.
2749 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
2750 * features/i386/i386-avx-mpx.c: Remove.
2751 * features/i386/i386-avx.c: Remove.
2752 * features/i386/i386-mmx.c: Remove.
2753 * features/i386/i386-mpx.c: Remove.
2754 * features/i386/i386.c: Remove.
2755 * i386-tdep.c: Don't include features/i386/i386*.c., include
2756 target-descriptions.h and arch/i386.h.
2757 (i386_target_description): Create target descriptions.
2758 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
2759 functions. Do self tests.
2760
0854b7b1
YQ
27612017-09-05 Yao Qi <yao.qi@linaro.org>
2762
2763 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
2764 * features/i386/amd64-avx-avx512-linux.c: Removed.
2765 * features/i386/amd64-avx-linux.c: Removed.
2766 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
2767 * features/i386/amd64-avx-mpx-linux.c: Removed.
2768 * features/i386/amd64-linux.c: Removed.
2769 * features/i386/amd64-mpx-linux.c: Removed.
2770 * features/i386/x32-avx-avx512-linux.c: Removed.
2771 * features/i386/x32-avx-linux.c: Removed.
2772 * features/i386/x32-linux.c: Removed.
2773
b4570e4b
YQ
27742017-09-05 Yao Qi <yao.qi@linaro.org>
2775
2776 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
2777 features/i386/*.c.
2778 (amd64_linux_read_description): Call
2779 amd64_create_target_description.
2780 * arch/amd64.c: New file.
2781 * arch/amd64.h: New file.
2782 * configure.tgt (x86_64-*-linux*): Append amd64.o.
2783 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
2784
6c73f67f
YQ
27852017-09-05 Yao Qi <yao.qi@linaro.org>
2786
2787 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
2788 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
2789 (amd64_linux_read_description): Create target descriptions.
2790 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
2791 functions. Add unit tests.
2792 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
2793 x32-core.xml.
2794 * features/i386/64bit-avx.c: Generated.
2795 * features/i386/64bit-avx512.c: Generated.
2796 * features/i386/64bit-core.c: Generated.
2797 * features/i386/64bit-linux.c: Generated.
2798 * features/i386/64bit-mpx.c: Generated.
2799 * features/i386/64bit-pkeys.c: Generated.
2800 * features/i386/64bit-segments.c: Generated.
2801 * features/i386/64bit-sse.c: Generated.
2802 * features/i386/x32-core.c: Generated.
2803 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
2804 c files for amd64-linux and x32-linux.
2805
9d3d478b
YQ
28062017-09-05 Yao Qi <yao.qi@linaro.org>
2807
2808 * amd64-linux-tdep.c (amd64_linux_read_description): New
2809 function.
2810 (amd64_linux_core_read_description): Call
2811 amd64_linux_read_description.
2812 (amd64_linux_init_abi): Likewise.
2813 (amd64_x32_linux_init_abi): Likewise.
2814 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
2815 * x86-linux-nat.c (x86_linux_read_description): Call
2816 amd64_linux_read_description.
2817
b9f1d50f
YQ
28182017-09-05 Yao Qi <yao.qi@linaro.org>
2819
2820 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
2821 comments.
2822
188c9e6d
YQ
28232017-09-05 Yao Qi <yao.qi@linaro.org>
2824
2825 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
2826 * features/i386/i386-avx-avx512-linux.c: Remove.
2827 * features/i386/i386-avx-linux.c: Remove.
2828 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
2829 * features/i386/i386-avx-mpx-linux.c: Remove.
2830 * features/i386/i386-linux.c: Remove.
2831 * features/i386/i386-mmx-linux.c: Remove.
2832 * features/i386/i386-mpx-linux.c: Remove.
2833
5f035c07
YQ
28342017-09-05 Yao Qi <yao.qi@linaro.org>
2835
2836 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
2837 (SFILES): Add arch/i386.c.
2838 (HFILES_NO_SRCDIR): Add arch/i386.h.
2839 * arch/i386.c: New file.
2840 * arch/i386.h: New file.
2841 * arch/tdesc.h (allocate_target_description): Declare.
2842 (set_tdesc_architecture): Declare.
2843 (set_tdesc_osabi): Declare.
2844 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
2845 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
2846 include arch/i386.h.
2847 (i386_linux_read_description): Remove code and call
2848 i386_create_target_description.
2849 (set_tdesc_architecture): New function.
2850 (set_tdesc_osabi): New function.
2851 * target-descriptions.h (allocate_target_description): Remove.
2852
0abe8a89
YQ
28532017-09-05 Yao Qi <yao.qi@linaro.org>
2854
2855 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
2856 * target-descriptions.c (tdesc_create_feature): Likewise, and
2857 adjust code.
2858 * features/i386/32bit-avx.c: Re-generated.
2859 * features/i386/32bit-avx512.c: Re-generated.
2860 * features/i386/32bit-core.c: Re-generated.
2861 * features/i386/32bit-linux.c: Re-generated.
2862 * features/i386/32bit-mpx.c: Re-generated.
2863 * features/i386/32bit-pkeys.c: Re-generated.
2864 * features/i386/32bit-sse.c: Re-generated.
2865
0a188386
YQ
28662017-09-05 Yao Qi <yao.qi@linaro.org>
2867
2868 * regformats/regdef.h (struct reg): Override operator == and !=.
2869
f49ff000
YQ
28702017-09-05 Yao Qi <yao.qi@linaro.org>
2871
2872 * arch/tdesc.h: New file.
2873 * regformats/regdat.sh: Generate code using tdesc_create_reg.
2874 * target-descriptions.c: Update comments.
2875 * target-descriptions.h: Include "arch/tdesc.h". Remove the
2876 declarations.
2877 * features/i386/32bit-avx.c: Re-generated.
2878 * features/i386/32bit-avx512.c: Re-generated.
2879 * features/i386/32bit-core.c: Re-generated.
2880 * features/i386/32bit-linux.c: Re-generated.
2881 * features/i386/32bit-mpx.c: Re-generated.
2882 * features/i386/32bit-pkeys.c: Re-generated.
2883 * features/i386/32bit-sse.c: Re-generated.
2884
f7000548
YQ
28852017-09-05 Yao Qi <yao.qi@linaro.org>
2886
2887 * regformats/regdat.sh: Update generated code.
2888
c9a5e2a5
YQ
28892017-09-05 Yao Qi <yao.qi@linaro.org>
2890
2891 * regformats/regdat.sh: Adjust code order.
2892
d6b687ac
SM
28932017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2894
2895 * expprint.c (dump_subexp_body_standard): Use constant format
2896 string in fprintf_filtered call.
2897
a379bfd0
JB
28982017-09-04 John Baldwin <jhb@FreeBSD.org>
2899
2900 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
2901 NetBSD/i386.
2902 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
2903
f7efc967
JB
29042017-09-04 John Baldwin <jhb@FreeBSD.org>
2905
2906 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
2907
c49fbc6c
JB
29082017-09-04 John Baldwin <jhb@FreeBSD.org>
2909
2910 * bsd-kvm.o: Define _KMEMUSER.
2911 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
2912 * configure: Regenerate.
2913
26562e73
JB
29142017-09-04 John Baldwin <jhb@FreeBSD.org>
2915
2916 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
2917 * i386-fbsd-nat.c: Likewise.
2918
31cf1487
JB
29192017-09-04 John Baldwin <jhb@FreeBSD.org>
2920
2921 * unittests/array-view-selftests.c: Add include of <array>.
2922
5b9f8a7c
JB
29232017-09-04 John Baldwin <jhb@FreeBSD.org>
2924
2925 * spu-tdep.c (flush_ea_cache): Add missing argument to
2926 call_function_by_hand.
2927
d69cf9b2
PA
29282017-09-04 Pedro Alves <palves@redhat.com>
2929
2930 * NEWS (Safer support for debugging with no debug info): New.
2931
3693fdb3
PA
29322017-09-04 Pedro Alves <palves@redhat.com>
2933
2934 * c-exp.y (function_method, function_method_void): Add current
2935 instance flags to TYPE_INSTANCE.
2936 * dwarf2read.c (check_modifier): New.
2937 (compute_delayed_physnames): Assert that only C++ adds delayed
2938 physnames. Mark fn_fields as const/volatile depending on
2939 physname.
2940 * eval.c (make_params): New type_instance_flags parameter. Use
2941 it as the new type's instance flags.
2942 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
2943 flags element and pass it to make_params.
2944 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
2945 instance flags element.
2946 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
2947 * gdbtypes.h: Include "enum-flags.h".
2948 (type_instance_flags): New enum-flags type.
2949 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
2950 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
2951 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
2952 (follow_type_instance_flags): New function.
2953 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
2954 * parser-defs.h (follow_type_instance_flags): Declare.
2955 * valops.c (value_struct_elt_for_reference): const/volatile must
2956 match too.
2957
e68cb8e0
PA
29582017-09-04 Pedro Alves <palves@redhat.com>
2959
2960 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
2961 function/method scopes; lookup the nested name as a function local
2962 static variable.
2963
858be34c
PA
29642017-09-04 Pedro Alves <palves@redhat.com>
2965
2966 (%type <voidval>): Add function_method.
2967 * c-exp.y (exp): New production for calls with no arguments.
2968 (function_method, function_method_void_or_typelist): New
2969 productions.
2970 (exp): New production for "method()::static_var".
2971 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
2972 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2973 Handle OP_FUNC_STATIC_VAR.
2974 * parse.c (operator_length_standard):
2975 Handle OP_FUNC_STATIC_VAR.
2976
dd5901a6
PA
29772017-09-04 Pedro Alves <palves@redhat.com>
2978
2979 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
2980 handling.
2981 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2982 Ditto.
2983 * parse.c (operator_length_standard, operator_check_standard):
2984 Ditto.
2985 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
2986
46a4882b
PA
29872017-09-04 Pedro Alves <palves@redhat.com>
2988
2989 * ax-gdb.c: Include "typeprint.h".
2990 (gen_expr_for_cast): New function.
2991 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
2992 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
2993 type is unknown.
2994 * dwarf2read.c (new_symbol_full): Fallback to int instead of
2995 nodebug_data_symbol.
2996 * eval.c: Include "typeprint.h".
2997 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
2998 Error out if symbol has unknown type.
2999 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
3000 evaluate_subexp_for_cast.
3001 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
3002 OP_VAR_MSYM_VALUE.
3003 (evaluate_subexp_for_cast): New function.
3004 * gdbtypes.c (init_nodebug_var_type): New function.
3005 (objfile_type): Use it to initialize types of variables with no
3006 debug info.
3007 * typeprint.c (error_unknown_type): New.
3008 * typeprint.h (error_unknown_type): New declaration.
3009 * compile/compile-c-types.c (convert_type_basic): Handle
3010 TYPE_CODE_ERROR; warn and fallback to int for variables with
3011 unknown type.
3012
fe13dfec
PA
30132017-09-04 Pedro Alves <palves@redhat.com>
3014
3015 * eval.c (evaluate_var_value): New function, factored out from ...
3016 (evaluate_subexp_standard): ... here.
3017
d008ee21
PA
30182017-09-04 Pedro Alves <palves@redhat.com>
3019
3020 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
3021 Remove useless assignments to 'op'.
3022
827d0c51
PA
30232017-09-04 Pedro Alves <palves@redhat.com>
3024
3025 * eval.c (eval_skip_value): New function.
3026 (evaluate_subexp_standard): Use it.
3027
2c5a2be1
PA
30282017-09-04 Pedro Alves <palves@redhat.com>
3029
3030 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
3031 function name from symbol/minsym and pass it to
3032 error_call_unknown_return_type.
3033
74ea4be4
PA
30342017-09-04 Pedro Alves <palves@redhat.com>
3035
3036 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
3037 * ax-gdb.c (gen_msym_var_ref): New function.
3038 (gen_expr): Handle OP_VAR_MSYM_VALUE.
3039 * eval.c (evaluate_var_msym_value): New function.
3040 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
3041 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
3042 to call_function_by_hand.
3043 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
3044 Handle OP_VAR_MSYM_VALUE.
3045 (union exp_element) <msymbol>: New field.
3046 * minsyms.h (struct type): Forward declare.
3047 (find_minsym_type_and_address): Declare.
3048 * parse.c (write_exp_elt_msym): New function.
3049 (write_exp_msymbol): Delete, refactored as ...
3050 (find_minsym_type_and_address): ... this new function.
3051 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
3052 (operator_length_standard, operator_check_standard): Handle
3053 OP_VAR_MSYM_VALUE.
3054 * std-operator.def (OP_VAR_MSYM_VALUE): New.
3055
7022349d
PA
30562017-09-04 Pedro Alves <palves@redhat.com>
3057
3058 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
3059 TYPE_GNU_IFUNC specially here. Throw error if return type is
3060 unknown.
3061 * ada-typeprint.c (print_func_type): Handle functions with unknown
3062 return type.
3063 * c-typeprint.c (c_type_print_base): Handle functions and methods
3064 with unknown return type.
3065 * compile/compile-c-symbols.c (convert_symbol_bmsym)
3066 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
3067 * compile/compile-c-types.c: Include "objfiles.h".
3068 (convert_func): For functions with unknown return type, warn and
3069 default to int.
3070 * compile/compile-object-run.c (compile_object_run): Adjust call
3071 to call_function_by_hand_dummy.
3072 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
3073 call_function_by_hand.
3074 * eval.c (evaluate_subexp_standard): Adjust calls to
3075 call_function_by_hand. Handle functions and methods with unknown
3076 return type. Pass expect_type to call_function_by_hand.
3077 * f-typeprint.c (f_type_print_base): Handle functions with unknown
3078 return type.
3079 * gcore.c (call_target_sbrk): Adjust call to
3080 call_function_by_hand.
3081 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
3082 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
3083 an integer address type instead of nodebug.
3084 * guile/scm-value.c (gdbscm_value_call): Adjust call to
3085 call_function_by_hand.
3086 * infcall.c (error_call_unknown_return_type): New function.
3087 (call_function_by_hand): New "default_return_type" parameter.
3088 Pass it down.
3089 (call_function_by_hand_dummy): New "default_return_type"
3090 parameter. Use it instead of defaulting to int. If there's no
3091 default and the return type is unknown, throw an error. If
3092 there's a default return type, and the called function has no
3093 debug info, then assume the function is prototyped.
3094 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
3095 New "default_return_type" parameter.
3096 (error_call_unknown_return_type): New declaration.
3097 * linux-fork.c (call_lseek): Cast return type of lseek.
3098 (inferior_call_waitpid, checkpoint_command): Adjust calls to
3099 call_function_by_hand.
3100 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
3101 calls to call_function_by_hand.
3102 * m2-typeprint.c (m2_procedure): Handle functions with unknown
3103 return type.
3104 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3105 (value_nsstring, print_object_command): Adjust calls to
3106 call_function_by_hand.
3107 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
3108 functions with unknown return type.
3109 (pascal_type_print_func_varspec_suffix): New function.
3110 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
3111 TYPE_CODE_METHOD>: Use it.
3112 * python/py-value.c (valpy_call): Adjust call to
3113 call_function_by_hand.
3114 * rust-lang.c (rust_evaluate_funcall): Adjust call to
3115 call_function_by_hand.
3116 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
3117 call_function_by_hand.
3118 * valops.c (value_allocate_space_in_inferior): Adjust call to
3119 call_function_by_hand.
3120 * typeprint.c (type_print_unknown_return_type): New function.
3121 * typeprint.h (type_print_unknown_return_type): New declaration.
3122
54990598
PA
31232017-09-04 Pedro Alves <palves@redhat.com>
3124
3125 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
3126 types with more than one parameter as prototyped.
3127
9a24775b
PA
31282017-09-04 Pedro Alves <palves@redhat.com>
3129
3130 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
3131 (disassemble_command): Use gdb_disassembly_flags instead of bare
3132 int.
3133 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
3134 (dump_insns, do_mixed_source_and_assembly_deprecated)
3135 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
3136 Use gdb_disassembly_flags instead of bare int.
3137 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
3138 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
3139 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
3140 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
3141 (enum gdb_disassembly_flag): ... values of this new enumeration.
3142 (gdb_disassembly_flags): Define.
3143 (gdb_disassembly)
3144 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
3145 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
3146 gdb_disassembly_flags instead of bare int.
3147 * record-btrace.c (btrace_insn_history)
3148 (record_btrace_insn_history, record_btrace_insn_history_range)
3149 (record_btrace_insn_history_from): Use gdb_disassembly_flags
3150 instead of bare int.
3151 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
3152 Use gdb_disassembly_flags instead of bare int.
3153 * target-debug.h (target_debug_print_gdb_disassembly_flags):
3154 Define.
3155 * target-delegates.c: Regenerate.
3156 * target.c (target_insn_history, target_insn_history_from)
3157 (target_insn_history_range): Use gdb_disassembly_flags instead of
3158 bare int.
3159 * target.h: Include "disasm.h".
3160 (struct target_ops) <to_insn_history, to_insn_history_from,
3161 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
3162 int.
3163 (target_insn_history, target_insn_history_from)
3164 (target_insn_history_range): Use gdb_disassembly_flags instead of
3165 bare int.
3166
80a65e9b
SM
31672017-09-04 Simon Marchi <simon.marchi@ericsson.com>
3168
3169 * cli/cli-script.c (build_command_line): For if/while commands,
3170 check whether args is empty.
3171
6b66338c
SM
31722017-09-04 Simon Marchi <simon.marchi@ericsson.com>
3173
3174 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
3175 (enum command_control_type): Likewise.
3176 (struct command_line): Likewise.
3177 (free_command_lines): Likewise.
3178 (struct command_lines_deleter): Likewise.
3179 (command_line_up): Likewise.
3180 (read_command_lines): Likewise.
3181 (read_command_lines_1): Likewise.
3182 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
3183 (enum command_control_type): Likewise.
3184 (struct command_line): Likewise.
3185 (free_command_lines): Likewise.
3186 (struct command_lines_deleter): Likewise.
3187 (command_line_up): Likewise.
3188 (read_command_lines): Likewise.
3189 (read_command_lines_1): Likewise.
3190 * breakpoint.h: Include cli/cli-script.h.
3191 * extension-priv.h: Likewise.
3192 * gdbcmd.h: Likewise.
3193
51abb421
PA
31942017-09-04 Pedro Alves <palves@redhat.com>
3195
3196 * ada-lang.c (is_known_support_routine): Move sal declaration to
3197 where it is initialized.
3198 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
3199 (parse_breakpoint_sals, decode_static_tracepoint_spec)
3200 (clear_command, update_static_tracepoint): Remove init_sal
3201 references. Move declarations closer to initializations.
3202 * cli/cli-cmds.c (list_command): Move sal declarations closer to
3203 initializations.
3204 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
3205 references. Move sal declarations closer to initializations.
3206 * frame.c (find_frame_sal): Return a symtab_and_line via function
3207 return instead of output parameter. Remove init_sal references.
3208 * frame.h (find_frame_sal): Return a symtab_and_line via function
3209 return instead of output parameter.
3210 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
3211 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
3212 instead of memset.
3213 (gdbscm_find_pc_line): Remove init_sal reference.
3214 * infcall.c (call_function_by_hand_dummy): Remove init_sal
3215 references. Move declarations closer to initializations.
3216 * infcmd.c (set_step_frame): Update. Move declarations closer to
3217 initializations.
3218 (finish_backward): Remove init_sal references. Move declarations
3219 closer to initializations.
3220 * infrun.c (process_event_stop_test, handle_step_into_function)
3221 (insert_hp_step_resume_breakpoint_at_frame)
3222 (insert_step_resume_breakpoint_at_caller): Likewise.
3223 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
3224 (symbol_to_sal): Likewise.
3225 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
3226 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
3227 to its initialization.
3228 * reverse.c (save_bookmark_command): Use new/delete. Remove
3229 init_sal references. Move declarations closer to initializations.
3230 * source.c (get_current_source_symtab_and_line): Remove brace
3231 initialization.
3232 (set_current_source_symtab_and_line): Now takes the sal by const
3233 reference. Remove brace initialization.
3234 (line_info): Remove init_sal reference.
3235 * source.h (set_current_source_symtab_and_line): Now takes a
3236 symtab_and_line via const reference.
3237 * stack.c (set_current_sal_from_frame): Adjust.
3238 (print_frame_info): Adjust.
3239 (get_last_displayed_sal): Return the sal via function return
3240 instead of via output parameter. Simplify.
3241 (frame_info): Adjust.
3242 * stack.h (get_last_displayed_sal): Return the sal via function
3243 return instead of via output parameter.
3244 * symtab.c (init_sal): Delete.
3245 (find_pc_sect_line): Remove init_sal references. Move
3246 declarations closer to initializations.
3247 (find_function_start_sal): Remove init_sal references. Move
3248 declarations closer to initializations.
3249 * symtab.h (struct symtab_and_line): In-class initialize all
3250 fields.
3251 * tracepoint.c (set_traceframe_context)
3252 (print_one_static_tracepoint_marker): Remove init_sal references.
3253 Move declarations closer to initializations.
3254 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
3255 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
3256 declarations closer to initializations.
3257 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
3258 init_sal references. Adjust.
3259
6c5b2ebe
PA
32602017-09-04 Pedro Alves <palves@redhat.com>
3261
3262 * ax-gdb.c (agent_command_1): Use range-for.
3263 * break-catch-throw.c (re_set_exception_catchpoint): Update.
3264 * breakpoint.c: Include "common/array-view.h".
3265 (init_breakpoint_sal, create_breakpoint_sal): Change sals
3266 parameter from struct symtabs_and_lines to
3267 array_view<symtab_and_line>. Adjust. Use range-for. Update.
3268 (breakpoint_sals_to_pc): Change sals parameter from struct
3269 symtabs_and_lines to std::vector reference.
3270 (check_fast_tracepoint_sals): Change sals parameter from struct
3271 symtabs_and_lines to std::array_view. Use range-for.
3272 (decode_static_tracepoint_spec): Return a std::vector instead of
3273 symtabs_and_lines. Update.
3274 (create_breakpoint): Update.
3275 (break_range_command, until_break_command, clear_command): Update.
3276 (base_breakpoint_decode_location, bkpt_decode_location)
3277 (bkpt_probe_create_sals_from_location)
3278 (bkpt_probe_decode_location, tracepoint_decode_location)
3279 (tracepoint_probe_decode_location)
3280 (strace_marker_create_sals_from_location): Return a std::vector
3281 instead of symtabs_and_lines.
3282 (strace_marker_create_breakpoints_sal): Update.
3283 (strace_marker_decode_location): Return a std::vector instead of
3284 symtabs_and_lines. Update.
3285 (update_breakpoint_locations): Change struct symtabs_and_lines
3286 parameters to gdb::array_view. Adjust.
3287 (location_to_sals): Return a std::vector instead of
3288 symtabs_and_lines. Update.
3289 (breakpoint_re_set_default): Use std::vector instead of struct
3290 symtabs_and_lines.
3291 (decode_location_default): Return a std::vector instead of
3292 symtabs_and_lines. Update.
3293 * breakpoint.h: Include "common/array-view.h".
3294 (struct breakpoint_ops) <decode_location>: Now returns a
3295 std::vector instead of returning a symtabs_and_lines via output
3296 parameter.
3297 (update_breakpoint_locations): Change sals parameters to use
3298 gdb::array_view.
3299 * cli/cli-cmds.c (edit_command, list_command): Update to use
3300 std::vector and gdb::array_view.
3301 (ambiguous_line_spec): Adjust to use gdb::array_view and
3302 range-for.
3303 (compare_symtabs): Rename to ...
3304 (cmp_symtabs): ... this. Change parameters to symtab_and_line
3305 const reference and adjust.
3306 (filter_sals): Rewrite using std::vector and standard algorithms.
3307 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
3308 (jump_command): Update to use std::vector.
3309 * linespec.c (struct linespec_state) <canonical_names>: Update
3310 comment.
3311 (add_sal_to_sals_basic): Delete.
3312 (add_sal_to_sals, filter_results, convert_results_to_lsals)
3313 (decode_line_2, create_sals_line_offset)
3314 (convert_address_location_to_sals, convert_linespec_to_sals)
3315 (convert_explicit_location_to_sals, parse_linespec)
3316 (event_location_to_sals, decode_line_full, decode_line_1)
3317 (decode_line_with_current_source)
3318 (decode_line_with_last_displayed, decode_objc)
3319 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
3320 (linespec_result::~linespec_result): Adjust to use std::vector
3321 instead of symtabs_and_lines.
3322 * linespec.h (linespec_sals::sals): Now a std::vector.
3323 (struct linespec_result): Use std::vector, bool, and in-class
3324 initialization.
3325 (decode_line_1, decode_line_with_current_source)
3326 (decode_line_with_last_displayed): Return std::vector.
3327 * macrocmd.c (info_macros_command): Use std::vector.
3328 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
3329 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
3330 std::vector.
3331 * probe.h (parse_probes): Return a std::vector.
3332 * python/python.c (gdbpy_decode_line): Use std::vector and
3333 gdb::array_view.
3334 * source.c (select_source_symtab, line_info): Use std::vector.
3335 * stack.c (func_command): Use std::vector.
3336 * symtab.h (struct symtabs_and_lines): Delete.
3337 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
3338
7c44b49c
PA
33392017-09-04 Pedro Alves <palves@redhat.com>
3340
3341 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3342 unittests/array-view-selftests.c.
3343 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
3344 * common/array-view.h: New file.
3345 * unittests/array-view-selftests.c: New file.
3346
e439fa14
PA
33472017-09-04 Pedro Alves <palves@redhat.com>
3348
3349 * cli/cli-cmds.c (edit_command): Pass message to
3350 ambiguous_line_spec.
3351 (list_command): Pass message to ambiguous_line_spec. Say
3352 "first"/"last" instead of "start" and "end" to be consistent with
3353 the manual.
3354 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
3355 them to print formatted message.
3356
7525b645
PA
33572017-09-04 Pedro Alves <palves@redhat.com>
3358
3359 * btrace.c (ftrace_add_pt): Pass btrace_insn to
3360 ftrace_update_insns by reference instead of pointer.
3361
badc0020
YQ
33622017-09-04 Yao Qi <yao.qi@linaro.org>
3363
3364 * i386-go32-tdep.c: Include x86-xstate.h.
3365 (i386_go32_init_abi): Call i386_target_description.
3366 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
3367 if xcr0 is X86_XSTATE_X87_MASK.
3368 * i386-tdep.h (tdesc_i386): Remove the declaration.
3369 (tdesc_i386_mmx): Likewise.
3370
d78bdb54
YQ
33712017-09-04 Yao Qi <yao.qi@linaro.org>
3372
3373 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
3374 X86_XSTATE_SSE_MASK instead of 0.
3375
ca1fa5ee
YQ
33762017-09-04 Yao Qi <yao.qi@linaro.org>
3377
3378 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
3379 i386_target_description.
3380 * i386-fbsd-nat.c (i386fbsd_read_description): Call
3381 i386_target_description.
3382 * i386-tdep.c (i386_gdbarch_init): Likewise.
3383
2434b019
YQ
33842017-09-04 Yao Qi <yao.qi@linaro.org>
3385
3386 * amd64-darwin-tdep.c: Include "x86-xstate.h".
3387 (x86_darwin_init_abi_64): Call amd64_target_description.
3388 * amd64-dicos-tdep.c: Likewise.
3389 * amd64-fbsd-nat.c: Likewise.
3390 * amd64-fbsd-tdep.c: Likewise.
3391 * amd64-nbsd-tdep.c: Likewise.
3392 * amd64-obsd-tdep.c: Likewise.
3393 * amd64-sol2-tdep.c: Likewise.
3394 * amd64-windows-tdep.c: Likewise.
3395 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
3396
0860c437
SM
33972017-09-04 Simon Marchi <simon.marchi@ericsson.com>
3398
3399 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
3400 (btrace_function) <insn>: Change type to use std::vector.
3401 * btrace.c (ftrace_debug, ftrace_call_num_insn,
3402 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
3403 ftrace_update_insns, ftrace_compute_global_level_offset,
3404 btrace_stitch_bts, btrace_clear, btrace_insn_get,
3405 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
3406 change to std::vector.
3407 (ftrace_update_insns): Adjust to change to std::vector, change
3408 type of INSN parameter.
3409 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
3410 * record-btrace.c (btrace_call_history_insn_range,
3411 btrace_compute_src_line_range,
3412 record_btrace_frame_prev_register): Adjust to change to
3413 std::vector.
3414 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
3415 to change to std::vector.
3416
0638b7f9
TT
34172017-09-03 Tom Tromey <tom@tromey.com>
3418
3419 * corefile.c (reopen_exec_file): Use std::string.
3420
8f84fb0e
TT
34212017-09-03 Tom Tromey <tom@tromey.com>
3422
3423 * compile/compile.c (compile_register_name_mangled): Return
3424 std::string.
3425 * compile/compile-loc2c.c (pushf_register_address): Update.
3426 (pushf_register): Update.
3427 * compile/compile-c-types.c (convert_array): Update.
3428 * compile/compile-c-symbols.c (generate_vla_size): Update.
3429 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
3430 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
3431 (convert_one_symbol): Update.
3432 (generate_c_for_for_one_variable): Update.
3433 * compile/compile-c-support.c (c_get_range_decl_name): Return a
3434 std::string.
3435 (generate_register_struct): Update.
3436 * compile/compile-internal.h (c_get_range_decl_name): Return a
3437 std::string.
3438 (compile_register_name_mangled): Return std::string.
3439
18e9961f
TT
34402017-09-03 Tom Tromey <tom@tromey.com>
3441
3442 * utils.c (perror_string): Return a std::string.
3443 (throw_perror_with_name, perror_warning_with_name): Update.
3444
45343786
TT
34452017-09-03 Tom Tromey <tom@tromey.com>
3446
3447 * demangle.c (demangle_command): Use std::string,
3448 unique_xmalloc_ptr.
3449
b57af503
TT
34502017-09-03 Tom Tromey <tom@tromey.com>
3451
3452 * cli/cli-setshow.c (do_set_command): Use std::string.
3453
6eecf35f
TT
34542017-09-03 Tom Tromey <tom@tromey.com>
3455
3456 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
3457
56496dd4
TT
34582017-09-03 Tom Tromey <tom@tromey.com>
3459
3460 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
3461
e91a1fa7
TT
34622017-09-03 Tom Tromey <tom@tromey.com>
3463
3464 * mi/mi-cmd-env.c (env_execute_cli_command): Use
3465 gdb::unique_xmalloc_ptr.
3466
7ffd83d7
TT
34672017-09-03 Tom Tromey <tom@tromey.com>
3468
3469 * thread.c (print_thread_info_1): Use string_printf.
3470 (thread_apply_command, thread_apply_all_command): Use
3471 std::string.
3472
1ccbe998
TT
34732017-09-03 Tom Tromey <tom@tromey.com>
3474
3475 * valprint.c (val_print_string): Update.
3476 * gdbcore.h (memory_error_message): Return std::string.
3477 * corefile.c (memory_error_message): Return std::string.
3478 (memory_error): Update.
3479 * breakpoint.c (insert_bp_location): Update.
3480
23fdd69e
SM
34812017-09-03 Simon Marchi <simon.marchi@ericsson.com>
3482
3483 * target/waitstatus.h (target_waitstatus_to_string): Change
3484 return type to std::string.
3485 * target/waitstatus.c (target_waitstatus_to_string): Return
3486 std::string.
3487 * target.h (target_waitstatus_to_string): Remove declaration.
3488 * infrun.c (resume, clear_proceed_status_thread,
3489 print_target_wait_results, do_target_wait, save_waitstatus,
3490 stop_all_threads): Adjust.
3491 * record-btrace.c (record_btrace_wait): Adjust.
3492 * target-debug.h
3493 (target_debug_print_struct_target_waitstatus_p): Adjust.
3494
5c811d30
JK
34952017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3496
3497 PR gdb/22046
3498 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
3499 detection.
3500
0a2dde4a
SDJ
35012017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
3502
3503 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
3504 for setting/unsetting environment variables on the remote target.
3505 (New remote packets): Add entries for QEnvironmentHexEncoded,
3506 QEnvironmentUnset and QEnvironmentReset.
3507 * common/environ.c (gdb_environ::operator=): Extend method to
3508 handle m_user_set_env_list and m_user_unset_env_list.
3509 (gdb_environ::clear): Likewise.
3510 (match_var_in_string): Change type of first parameter from 'char
3511 *' to 'const char *'.
3512 (gdb_environ::set): Extend method to handle
3513 m_user_set_env_list and m_user_unset_env_list.
3514 (gdb_environ::unset): Likewise.
3515 (gdb_environ::clear_user_set_env): New method.
3516 (gdb_environ::user_set_envp): Likewise.
3517 (gdb_environ::user_unset_envp): Likewise.
3518 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
3519 m_user_unset_env_list on move constructor/assignment.
3520 (unset): Add new default parameter 'update_unset_list = true'.
3521 (clear_user_set_env): New method.
3522 (user_set_envp): Likewise.
3523 (user_unset_envp): Likewise.
3524 (m_user_set_env_list): New std::set.
3525 (m_user_unset_env_list): Likewise.
3526 * common/rsp-low.c (hex2str): New function.
3527 (bin2hex): New overload for bin2hex function.
3528 * common/rsp-low.c (hex2str): New prototype.
3529 (str2hex): New overload prototype.
3530 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
3531 QEnvironmentUnset and QEnvironmentReset.
3532 (remote_protocol_features): Add QEnvironmentHexEncoded,
3533 QEnvironmentUnset and QEnvironmentReset packets.
3534 (send_environment_packet): New function.
3535 (extended_remote_environment_support): Likewise.
3536 (extended_remote_create_inferior): Call
3537 extended_remote_environment_support.
3538 (_initialize_remote): Add QEnvironmentHexEncoded,
3539 QEnvironmentUnset and QEnvironmentReset packet configs.
3540 * unittests/environ-selftests.c (gdb_selftest_env_var):
3541 New variable.
3542 (test_vector_initialization): New function.
3543 (test_init_from_host_environ): Likewise.
3544 (test_reinit_from_host_environ): Likewise.
3545 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
3546 Likewise.
3547 (test_unset_set_empty_vector): Likewise.
3548 (test_vector_clear): Likewise.
3549 (test_std_move): Likewise.
3550 (test_move_constructor):
3551 (test_self_move): Likewise.
3552 (test_set_unset_reset): Likewise.
3553 (run_tests): Rewrite in terms of the functions above.
3554
654670a4
WP
35552017-08-31 Weimin Pan <weimin.pan@oracle.com>
3556
3557 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
3558 (adi_available): Use a temp variable of type CORE_ADDR as argument
3559 3 when calling target_auxv_search.
3560 (adi_normalize_address): Use masks and xor operators to calculate
3561 normalized address.
3562 (adi_read_versions, adi_write_versions, adi_print_versions)
3563 (do_examine, do_assign): Use paddress.
3564
7755ddb7
JB
35652017-08-29 John Baldwin <jhb@FreeBSD.org>
3566
3567 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
3568 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
3569 out of loop and add supply of FIR.
3570 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
3571 add collect of FIR.
3572
fd437cbc
SM
35732017-08-28 Simon Marchi <simon.marchi@ericsson.com>
3574
3804a343 3575 PR gdb/21827
fd437cbc
SM
3576 * cli/cli-script.c (define_command): Don't convert command name
3577 to lower case.
3578
988f6b3d
JB
35792017-08-25 Joel Brobecker <brobecker@adacore.com>
3580
3581 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
3582 Update all callers accordingly. Remove all code blocks handling
3583 the case where DISPP is not NULL.
3584
663c44ac
JK
35852017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3586
3587 PR symtab/22003
3588 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
3589 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
3590 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
3591
f1902523
JK
35922017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3593
3594 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
3595 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
3596 (read_comp_units_from_section): New parameter abbrev_section, use
3597 read_and_check_comp_unit_head, allocate signatured_type if needed.
3598 (create_all_comp_units): Update read_comp_units_from_section caller.
3599
87215ad1
SDJ
36002017-08-23 Pedro Alves <palves@redhat.com>
3601
3602 PR remote/21852
3603 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
3604 to null_ptid and switch to thread without reading the registers
3605 after adding the inferior.
3606
6e41ddec
JK
36072017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3608
3609 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
3610 compile-gcc.
3611 * compile/compile.c (compile_gcc, show_compile_gcc): New.
3612 (compile_to_object): Implement compile_gcc.
3613 (_initialize_compile): Install "set compile-gcc". Initialize
3614 compile_gcc.
3615
e68c32d5
JK
36162017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3617
3618 * compile/compile.c (compile_to_object): Conditionally call
3619 set_verbose. Conditionally call compile or compile_v0.
3620
58afddc6
WP
36212017-08-07 Weimin Pan <weimin.pan@oracle.com>
3622
3623 * sparc64-tdep.h: (adi_normalize_address): New export.
3624 * sparc-nat.h: (open_adi_tag_fd): New export.
3625 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
3626 * sparc64-linux-tdep.c:
3627 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
3628 (sparc64_linux_handle_segmentation_fault): New function.
3629 (sparc64_linux_init_abi): Register
3630 sparc64_linux_handle_segmentation_fault
3631 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
3632 (sparc64_addr_bits_remove): New function.
3633 (sparc64_init_abi): Register sparc64_addr_bits_remove.
3634 (MAX_PROC_NAME_SIZE): New macro.
3635 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
3636 (sparc64adilist): New variable.
3637 (adi_proc_list): New variable.
3638 (find_adi_info): New function.
3639 (add_adi_info): New function.
3640 (get_adi_info_proc): New function.
3641 (get_adi_info): New function.
3642 (info_adi_command): New function.
3643 (read_maps_entry): New function.
3644 (adi_available): New function.
3645 (adi_normalize_address): New function.
3646 (adi_align_address): New function.
3647 (adi_convert_byte_count): New function.
3648 (adi_tag_fd): New function.
3649 (adi_is_addr_mapped): New function.
3650 (adi_read_versions): New function.
3651 (adi_write_versions): New function.
3652 (adi_print_versions): New function.
3653 (do_examine): New function.
3654 (do_assign): New function.
3655 (adi_examine_command): New function.
3656 (adi_assign_command): New function.
3657 (_initialize_sparc64_adi_tdep): New function.
3658
11db9430
SM
36592017-08-22 Simon Marchi <simon.marchi@ericsson.com>
3660
3661 * breakpoint.c (breakpoints_info): Rename to ...
3662 (info_breakpoints_command): ... this.
3663 (watchpoints_info): Rename to ...
3664 (info_watchpoints_command): ... this.
3665 (tracepoints_info): Rename to ...
3666 (info_tracepoints_command): ... this.
3667 (_initialize_breakpoint): Adjust.
3668 * dcache.c (dcache_info): Rename to ...
3669 (info_display_command): ... this.
3670 (_initialize_dcache): Adjust.
3671 * frame.h (args_info): Rename to ...
3672 (info_args_command): ... this.
3673 (locals_info): Rename to ...
3674 (info_locals_command): ... this.
3675 * infcmd.c (nofp_registers_info): Rename to ...
3676 (info_registers_command): ... this.
3677 (float_info): Rename to ...
3678 (info_float_command): ... this.
3679 (program_info): Rename to ...
3680 (info_program_command): ... this.
3681 (all_registers_info): Rename to ...
3682 (info_all_registers_command): ... this.
3683 (vector_info): Rename to ...
3684 (info_vector_command): ... this.
3685 (float_info): Rename to ...
3686 (info_float_command): ... this.
3687 (_initialize_infcmd): Adjust.
3688 * inferior.h (term_info): Rename to ...
3689 (info_terminal_command): ... this.
3690 * inflow.c (term_info): Rename to ...
3691 (info_terminal_command): ... this.
3692 (_initialize_inflow): Adjust.
3693 * infrun.c (signals_info): Rename to ...
3694 (info_signals_command): ... this.
3695 (_initialize_infrun): Adjust.
3696 * objc-lang.c (classes_info): Rename to ...
3697 (info_classes_command): ... this.
3698 (selectors_info): Rename to ...
3699 (info_selectors_command): ... this.
3700 (_initialize_objc_language): Adjust.
3701 * printcmd.c (sym_info): Rename to ...
3702 (info_symbol_command): ... this.
3703 (address_info): Rename to ...
3704 (info_address_command): ... this.
3705 (display_info): Rename to ...
3706 (info_display_command): ... this.
3707 (_initialize_printcmd): Adjust.
3708 * reverse.c (bookmarks_info): Rename to ...
3709 (info_breakpoints_command): ... this.
3710 (_initialize_reverse): Adjust.
3711 * ser-go32.c (dos_info): Rename to ...
3712 (info_serial_command): ... this.
3713 (_initialize_ser_dos): Adjust.
3714 * skip.c (skip_info): Rename to ...
3715 (info_skip_command): ... this.
3716 (_initialize_step_skip): Adjust.
3717 * source.c (line_info): Rename to ...
3718 (info_line_command): ... this.
3719 (source_info): Rename to ...
3720 (info_source_command)
3721 * stack.c (frame_info): Rename to ...
3722 (info_frame_command): ... this.
3723 (locals_info): Rename to ...
3724 (info_locals_command): ... this.
3725 (args_info): Rename to ...
3726 (info_args_command): ... this.
3727 (_initialize_stack): Adjust.
3728 * symtab.c (sources_info): Rename to ...
3729 (info_sources_command): ... this.
3730 (variables_info): Rename to ...
3731 (info_variables_command): ... this.
3732 (functions_info): Rename to ...
3733 (info_functions_command): ... this.
3734 (types_info): Rename to ...
3735 (info_types_command): ... this.
3736 (_initialize_symtab): Adjust.
3737 * target.c (target_info): Rename to ...
3738 (info_target_command): ... this.
3739 (initialize_targets): Adjust.
3740 * tracepoint.c (tvariables_info): Rename to ...
3741 (info_tvariables_command): ... this.
3742 (scope_info): Rename to ...
3743 (info_scope_command): ... this.
3744 (trace_dump_actions): Adjust.
3745 (_initialize_tracepoint): Adjust.
3746
b270e6f9
TT
37472017-08-22 Tom Tromey <tom@tromey.com>
3748
3749 * breakpoint.h (install_breakpoint): Update.
3750 * breakpoint.c (add_solib_catchpoint): Update.
3751 (install_breakpoint): Change argument to a std::unique_ptr.
3752 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
3753 (create_breakpoint_sal, create_breakpoint): Update.
3754 (watch_command_1, catch_exec_command_1)
3755 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
3756 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
3757 Return the breakpoint.
3758 (set_raw_breakpoint_without_location, set_raw_breakpoint)
3759 (new_single_step_breakpoint): Update.
3760 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
3761 std::unique_ptr.
3762 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
3763 std::unique_ptr.
3764 * break-catch-sig.c (create_signal_catchpoint): Use
3765 std::unique_ptr.
3766 * ada-lang.c (create_ada_exception_catchpoint): Use
3767 std::unique_ptr.
3768
36bd8eaa
TT
37692017-08-22 Tom Tromey <tom@tromey.com>
3770
3771 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
3772
56f37645
TT
37732017-08-22 Tom Tromey <tom@tromey.com>
3774
3775 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
3776 (lookup_partial_symbol): Update.
3777
0b581c69
TT
37782017-08-22 Tom Tromey <tom@tromey.com>
3779
3780 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
3781 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
3782 (find_and_open_source, symtab_to_fullname): Update.
3783 * psymtab.c (psymtab_to_fullname): Update.
3784
14278e1f
TT
37852017-08-22 Tom Tromey <tom@tromey.com>
3786
3787 * exec.c (exec_file_attach): Update.
3788 * linux-thread-db.c (try_thread_db_load): Update.
3789 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
3790 * utils.c (gdb_realpath): Change return type.
3791 (gdb_realpath_keepfile): Update.
3792 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
3793 (_initialize_utils): Register the new self test.
3794 * source.c (openp): Update.
3795 (find_and_open_source): Update.
3796 * nto-tdep.c (nto_find_and_open_solib): Update.
3797 * main.c (set_gdb_data_directory): Update.
3798 (captured_main_1): Update.
3799 * dwarf2read.c (dwarf2_get_dwz_file): Update
3800 (dw2_map_symbol_filenames): Update.
3801 * auto-load.c (auto_load_safe_path_vec_update): Update.
3802 (filename_is_in_auto_load_safe_path_vec): Change type of
3803 "filename_realp".
3804 (auto_load_objfile_script): Update.
3805 (file_is_auto_load_safe): Update. Use std::string.
3806 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
3807
4971c9a7
TT
38082017-08-22 Tom Tromey <tom@tromey.com>
3809
3810 * utils.c (gdb_realpath_keepfile): Return a
3811 gdb::unique_xmalloc_ptr.
3812 * exec.c (exec_file_attach): Update.
3813 * utils.h (gdb_realpath_keepfile): Return a
3814 gdb::unique_xmalloc_ptr.
3815
e3e41d58
TT
38162017-08-22 Tom Tromey <tom@tromey.com>
3817
3818 * compile/compile.c (compile_file_command): Use
3819 gdb::unique_xmalloc_ptr, std::string.
3820 * utils.c (gdb_abspath): Change return type.
3821 * source.c (openp): Update.
3822 * objfiles.c (allocate_objfile): Update.
3823 * main.c (set_gdb_data_directory): Update.
3824 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
3825
0d999a6e
ZZ
38262017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
3827
3828 * cli-cmds.c (list_commands): List actual code around more than
3829 one location.
3830
329d5e7e
JB
38312017-08-21 John Baldwin <jhb@FreeBSD.org>
3832
3833 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
3834
bf223d3e
PA
38352017-08-21 Pedro Alves <palves@redhat.com>
3836
3837 PR gdb/19487
3838 * c-exp.y (variable production): Handle function aliases.
3839 * minsyms.c (msymbol_is_text): New function.
3840 * minsyms.h (msymbol_is_text): Declare.
3841 * symtab.c (find_function_alias_target): New function.
3842 * symtab.h (find_function_alias_target): Declare.
3843
c973d0aa
PA
38442017-08-21 Pedro Alves <palves@redhat.com>
3845
3846 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
3847 typedefs.
3848 * typeprint.c (whatis_exp): If handling "whatis", and expression
3849 is OP_TYPE, strip one typedef level. Otherwise don't strip
3850 typedefs here.
3851 * valops.c (value_cast): Save "to" type before resolving
3852 stubs/typedefs. Use that type as resulting value's type.
3853
2989a365
TT
38542017-08-18 Tom Tromey <tom@tromey.com>
3855 Pedro Alves <palves@redhat.com>
3856
3857 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
3858 * sol-thread.c (sol_thread_resume, sol_thread_wait)
3859 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
3860 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
3861 * proc-service.c (ps_xfer_memory): Use scoped_restore.
3862 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
3863 (linux_get_siginfo_data): Add "thread" argument. Use
3864 scoped_restore.
3865 * linux-nat.c (linux_child_follow_fork)
3866 (check_stopped_by_watchpoint): Use scoped_restore.
3867 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
3868 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
3869 (restore_inferior_ptid, save_inferior_ptid): Remove.
3870 * btrace.c (btrace_fetch): Use scoped_restore.
3871 * bsd-uthread.c (bsd_uthread_fetch_registers)
3872 (bsd_uthread_store_registers): Use scoped_restore.
3873 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
3874 scoped_restore.
3875 * aix-thread.c (aix_thread_resume, aix_thread_wait)
3876 (aix_thread_xfer_partial): Use scoped_restore.
3877 * inferior.h (save_inferior_ptid): Remove.
3878
e60eb288
YQ
38792017-08-18 Yao Qi <yao.qi@linaro.org>
3880
3881 PR tdep/21818
3882 * arm-tdep.c (gdb_print_insn_arm): Mark
3883 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
3884
6d580b63
YQ
38852017-08-18 Yao Qi <yao.qi@linaro.org>
3886
3887 * NEWS: Mention GDBserver's new option "--selftest".
3888 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
3889 * selftest.c: Move it to common/selftest.c.
3890 * selftest.h: Move it to common/selftest.h.
3891 * selftest-arch.c (reset): New function.
3892 (tests_with_arch): Call reset.
3893
86dcbf50
YQ
38942017-08-18 Yao Qi <yao.qi@linaro.org>
3895
3896 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
3897 instead of exception_fprintf and printf_filtered.
3898
7649770c
YQ
38992017-08-18 Yao Qi <yao.qi@linaro.org>
3900
3901 * selftest.c (register_self_test): Rename it to
3902 selftests::register_test.
3903 (run_self_tests): selftest::run_tests.
3904 * selftest.h: Update declarations.
3905 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
3906 selftests::register_test_foreach_arch.
3907 * selftest-arch.h: Update declaration.
3908 * aarch64-tdep.c: Update.
3909 * arm-tdep.c: Likewise.
3910 * disasm-selftests.c: Likewise.
3911 * dwarf2loc.c: Likewise.
3912 * dwarf2-frame.c: Likewise.
3913 * findvar.c: Likewise.
3914 * gdbarch-selftests.c: Likewise.
3915 * maint.c (maintenance_selftest): Likewise.
3916 * regcache.c: Likewise.
3917 * rust-exp.y: Likewise.
3918 * selftest-arch.c: Likewise.
3919 * unittests/environ-selftests.c: Likewise.
3920 * unittests/function-view-selftests.c: Likewise.
3921 * unittests/offset-type-selftests.c: Likewise.
3922 * unittests/optional-selftests.c: Likewise.
3923 * unittests/scoped_restore-selftests.c: Likewise.
3924 * utils-selftests.c: Likewise.
3925
b0cba12e
PA
39262017-08-17 Pedro Alves <palves@redhat.com>
3927
3928 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
3929 local.
3930
4c8aa72d
PA
39312017-08-17 Pedro Alves <palves@redhat.com>
3932
3933 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
3934 field.
3935 (reset_die_in_process): Delete, replaced by ...
3936 (process_die_scope): ... this new class. Make it responsible for
3937 freeing cu->line_header too.
3938 (process_die): Use process_die_scope.
3939 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
3940 cu->line_header_die_owner. Don't release the line header if it's
3941 owned by the CU.
3942 (setup_type_unit_groups): Make the CU/DIE own the line header.
3943 Don't release the line header here.
3944
ba713918
AL
39452017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
3946
3947 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
3948
44d0fb3a
RK
39492017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
3950
3951 * NEWS: Mention new shortcuts for nexti and stepi in TUI
3952 Single-Key mode
3953
a5afdb16
RK
39542017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
3955
3956 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
3957 mode command list.
3958
47613aeb
SH
39592017-08-15 Stafford Horne <shorne@gmail.com>
3960
3961 * MAINTAINERS (Write After Approval): Add Stafford Horne.
3962
9c3cc999
SH
39632017-08-15 Stafford Horne <shorne@gmail.com>
3964
3965 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
3966
206726fb
SDJ
39672017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
3968
3969 PR gdb/21954
3970 * infcmd.c (unset_environment_command): Use the 'clear' method on
3971 the environment instead of resetting it.
3972
0335ac6d
JB
39732017-08-15 John Baldwin <jhb@FreeBSD.org>
3974
3975 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
3976 platforms.
3977
d3abe1c8
TT
39782017-08-14 Tom Tromey <tom@tromey.com>
3979
3980 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
3981 (print_binary_chars): Likewise.
3982 (BITS_IN_BYTES): Remove.
3983
d6382fff
TT
39842017-08-14 Tom Tromey <tom@tromey.com>
3985
3986 PR gdb/21675
3987 * valprint.c (LOW_ZERO): Change value to 034.
3988 (print_octal_chars): Add static_asserts for octal constants.
3989 * printcmd.c (print_scalar_formatted): Add 'd' case.
3990
f978cb06
TT
39912017-08-11 Tom Tromey <tom@tromey.com>
3992
3993 * symfile.c (add_symbol_file_command): Use std::vector.
3994
2f5404b3
TT
39952017-08-14 Tom Tromey <tom@tromey.com>
3996
3997 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
3998 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
3999 std::move.
4000 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
4001
de7985c3
PA
40022017-08-11 Pedro Alves <palves@redhat.com>
4003
4004 * infrun.c (process_event_stop_test): Adjust
4005 function_name_is_marked_for_skip call.
4006 * skip.c: Include <list>.
4007 (skiplist_entry): Make it a class with private fields, and
4008 getters/setters.
4009 (skiplist_entry_chain): Delete.
4010 (skiplist_entries): New.
4011 (skiplist_entry_count): Delete.
4012 (highest_skiplist_entry_num): New.
4013 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
4014 (add_skiplist_entry): Delete.
4015 (skiplist_entry::skiplist_entry): New.
4016 (skiplist_entry::add_entry): New.
4017 (skip_file_command, skip_function): Adjust.
4018 (compile_skip_regexp): Delete.
4019 (skip_command): Don't compile regexp here. Adjust to use
4020 skiplist_entry::add_entry.
4021 (skip_info): Adjust to use range-for and getters.
4022 (skip_enable_command, skip_disable_command): Adjust to use
4023 range-for and setters.
4024 (skip_delete_command): Adjust to use std::list.
4025 (add_skiplist_entry): Delete.
4026 (skip_file_p): Delete, refactored as ...
4027 (skiplist_entry::do_skip_file_p): ... this new method.
4028 (skip_gfile_p): Delete, refactored as ...
4029 (skiplist_entry::do_gskip_file_p): ... this new method.
4030 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
4031 (skiplist_entry::skip_function_p): ... this new method.
4032 (function_name_is_marked_for_skip): Now returns bool, and takes
4033 the function sal by const reference. Adjust to use range-for and
4034 skiplist_entry methods.
4035 (_initialize_step_skip): Remove references to
4036 skiplist_entry_chain, skiplist_entry_count.
4037 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
4038 takes the function sal by const reference.
4039
be7d3cd5
YQ
40402017-08-11 Yao Qi <yao.qi@linaro.org>
4041
4042 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
4043 (dwarf2_frame_cache): Remove reset_cache_cleanup.
4044 (dwarf2_frame_cache):
4045 * frame-unwind.c (frame_unwind_try_unwinder): Catch
4046 RETURN_MASK_ALL and set *this_case to NULL.
4047 * frame-unwind.h: Update comments.
4048
1c90d9f0
YQ
40492017-08-11 Yao Qi <yao.qi@linaro.org>
4050
4051 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
4052 (dwarf2_frame_state_copy_regs): Remove.
4053 (dwarf2_frame_state_free_regs): Remove.
4054 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
4055 (dwarf2_restore_rule): Call method .alloc_regs instead of
4056 dwarf2_frame_state_alloc_regs.
4057 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
4058 constructor. Call std::move.
4059 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
4060 (dwarf2_frame_cache): Likewise.
4061
4062 [GDB_SELF_TEST]: Include selftest.h and
4063 selftest-arch.h.
4064 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
4065 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
4066 execute_cfa_program_test.
4067
4068 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
4069 copy ctor, assignment operator, move assignment.
4070 <alloc_regs>: New method.
4071 <swap>: New method.
4072 (struct dwarf2_frame_state): Delete dtor.
4073 (dwarf2_frame_state_alloc_regs): Remove declaration.
4074 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
4075 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
4076
afe37d6b
YQ
40772017-08-11 Yao Qi <yao.qi@linaro.org>
4078
4079 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
4080 (dwarf2_frame_state::dwarf2_frame_state): New.
4081 (dwarf2_frame_state::~dwarf2_frame_state): New.
4082 (dwarf2_fetch_cfa_info): Update.
4083 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
4084 rather than a pointer. Update code.
4085 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
4086 dtor.
4087 <data_align, code_align, retaddr_column>: Change them to const.
4088 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
4089 to bool.
4090
b348037f
YQ
40912017-08-11 Yao Qi <yao.qi@linaro.org>
4092
4093 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
4094 <loc.exp>: New field.
4095 * dwarf2-frame.c (execute_cfa_program): Update.
4096 (dwarf2_frame_prev_register): Update.
4097
e7c9de26
PA
40982017-08-10 Pedro Alves <palves@redhat.com>
4099
4100 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
4101
e8c6b620
JB
41022017-08-09 John Baldwin <jhb@FreeBSD.org>
4103
4104 * fbsd-nat.c (struct fbsd_fork_info): Remove.
4105 (fbsd_pending_children): Use std::list.
4106 (fbsd_remember_child): Likewise.
4107 (fbsd_is_child_pending): Likewise.
4108 (fbsd_pending_vfork_done): Use std::forward_list.
4109 (fbsd_add_vfork_done): Likewise.
4110 (fbsd_is_vfork_done_pending): Likewise.
4111 (fbsd_next_vfork_done): Likewise.
4112
e4a26669
JB
41132017-08-09 John Baldwin <jhb@FreeBSD.org>
4114
4115 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
4116 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
4117 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
4118 for `mapfilename'.
4119 (fbsd_xfer_partial): Use gdb::byte_vector.
af3881e6 4120 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
e4a26669 4121
142311d3
JB
41222017-08-09 John Baldwin <jhb@FreeBSD.org>
4123
4124 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
4125 "filestuff.h".
4126 (fbsd_find_memory_regions): Fix `mapfile' initialization.
4127
42fa2e0e
TT
41282017-08-09 Tom Tromey <tom@tromey.com>
4129
4130 * skip.c (skiplist_entry): New constructor.
4131 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
4132 (skiplist_entry::file_is_glob): Now bool.
4133 (skiplist_entry::file, skiplist_entry::function): Now
4134 std::string.
4135 (make_skip_entry): Return a unique_ptr. Use new.
4136 (free_skiplist_entry, free_skiplist_entry_cleanup)
4137 (make_free_skiplist_entry_cleanup): Remove.
4138 (skip_command, skip_disable_command, add_skiplist_entry)
4139 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
4140 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
4141 (function_name_is_marked_for_skip): Update.
4142 (skip_delete_command): Update. Use delete.
4143
cd3af38d
JW
41442017-08-09 Jiong Wang <jiong.wang@arm.com>
4145
4146 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
4147 (aarch64_linux_core_read_description): New function.
4148 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
4149
29592bde
PA
41502017-08-09 Pedro Alves <palves@redhat.com>
4151
4152 * cp-name-parser.y (cp_comp_to_string): Return a
4153 gdb::unique_xmalloc_ptr<char>.
4154 * cp-support.c (replace_typedefs_qualified_name)
4155 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
4156 (cp_canonicalize_string_full): Use op= instead of explicit
4157 convertion.
4158 (cp_class_name_from_physname, method_name_from_physname)
4159 (cp_func_name, cp_remove_params): Adjust to use
4160 gdb::unique_xmalloc_ptr<char>.
4161 * cp-support.h (cp_comp_to_string): Return a
4162 gdb::unique_xmalloc_ptr<char>.
4163 * python/py-type.c (typy_lookup_type): Adjust to use
4164 gdb::unique_xmalloc_ptr<char>.
4165
b3340438
L
41662017-08-09 H.J. Lu <hongjiu.lu@intel.com>
4167
4168 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
4169
e88e8651
YQ
41702017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
4171 Yao Qi <yao.qi@linaro.org>
4172
4173 * cp-support.c (cp_canonicalize_string_full): Use
4174 gdb::unique_xmalloc_ptr<char>.
4175 (cp_canonicalize_string): Likewise.
4176
f5a29eb0
YQ
41772017-08-09 Yao Qi <yao.qi@linaro.org>
4178
4179 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
4180 * regformats/i386/amd64-avx-avx512.dat: Remove.
4181 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
4182 * regformats/i386/amd64-avx-mpx.dat:Remove.
4183 * regformats/i386/amd64-avx.dat: Remove.
4184 * regformats/i386/amd64-mpx.dat: Remove.
4185 * regformats/i386/i386-avx-avx512.dat: Remove.
4186 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
4187 * regformats/i386/i386-avx-mpx.dat: Remove.
4188 * regformats/i386/i386-mmx.dat: Remove.
4189 * regformats/i386/i386-mpx.dat: Remove.
4190
57757c2f
YQ
41912017-08-09 Yao Qi <yao.qi@linaro.org>
4192
4193 * amd64-tdep.h (tdesc_x32): Remove the declaration.
4194 * amd64-tdep.c: Don't include features/i386/x32*.c.
4195 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
4196 functions.
4197 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
4198 and i386/x32-avx-avx512.
4199 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
4200 and i386/x32.xml.
4201 * features/i386/x32-avx-avx512.c: Removed.
4202 * features/i386/x32-avx-avx512.xml: Removed.
4203 * features/i386/x32-avx.c: Removed.
4204 * features/i386/x32-avx.xml: Removed.
4205 * features/i386/x32.c: Removed.
4206 * features/i386/x32.xml: Removed.
4207 * regformats/i386/x32-avx-avx512.dat: Removed.
4208 * regformats/i386/x32-avx.dat: Removed.
4209 * regformats/i386/x32.dat: Removed.
4210
ba7b109b
MR
42112017-08-07 Maciej W. Rozycki <macro@imgtec.com>
4212
4213 PR breakpoints/21886
4214 * mem-break.c (default_memory_insert_breakpoint): Use
4215 `->placed_address' rather than `->reqstd_address' for the
4216 breakpoint location.
4217
e347efc3
MR
42182017-08-07 Maciej W. Rozycki <macro@imgtec.com>
4219
4220 * arch-utils.c (default_print_insn): Remove arch/mach/endian
4221 assertions.
4222
0dba2a6c
MR
42232017-08-07 Maciej W. Rozycki <macro@imgtec.com>
4224
4225 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
4226 a union of `tdep_info', `tdesc_data' and `id'.
4227 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
4228 rather than `info.tdep_info'.
4229 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
4230 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
4231 * i386-tdep.c (i386_gdbarch_init): Likewise.
4232 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
4233 * mips-tdep.c (mips_gdbarch_init): Likewise.
4234 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
4235 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
4236 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
4237 `info.tdep_info'.
4238 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
4239 `info.tdep_info'.
4240 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
4241 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
4242 `info.tdep_info'.
4243 * spu-tdep.c (spu_gdbarch_init): Likewise.
4244 * gdbarch.h: Regenerate.
4245
16eb6b2d
LS
42462017-08-07 Leszek Swirski <leszeks@google.com>
4247
7b005726 4248 PR symtab/20899
16eb6b2d
LS
4249 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
4250
74cbb09e
SM
42512017-08-07 Simon Marchi <simon.marchi@ericsson.com>
4252
4253 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
4254 (gdbsim_open): Rename gdb_argv args object to argv.
4255
ee0c3293
TT
42562017-08-05 Tom Tromey <tom@tromey.com>
4257
4258 * compile/compile-object-load.c (compile_object_load): Use
4259 gdb::unique_xmalloc_ptr.
4260 * cli/cli-dump.c (scan_filename): Rename from
4261 scan_filename_with_cleanup. Change return type.
4262 (scan_expression): Rename from scan_expression_with_cleanup.
4263 Change return type.
4264 (dump_memory_to_file, dump_value_to_file, restore_command):
4265 Use gdb::unique_xmalloc_ptr. Update.
4266 * cli/cli-cmds.c (find_and_open_script): Use
4267 gdb::unique_xmalloc_ptr.
4268 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
4269 * symmisc.c (maintenance_print_symbols)
4270 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
4271 * symfile.c (symfile_bfd_open, generic_load)
4272 (add_symbol_file_command, remove_symbol_file_command): Use
4273 gdb::unique_xmalloc_ptr.
4274 * source.c (openp): Use gdb::unique_xmalloc_ptr.
4275 * psymtab.c (maintenance_print_psymbols): Use
4276 gdb::unique_xmalloc_ptr.
4277 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
4278 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
4279 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
4280 (reload_shared_libraries_1): Likewise.
4281
3232fabd
TT
42822017-08-05 Tom Tromey <tom@tromey.com>
4283
4284 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
4285 (rust_op_vector, rust_set_vector): New typedefs.
4286 (current_parser): New global.
4287 (work_obstack): Change to pointer type. Update all users.
4288 (rust_ast, pstate): Remove globals.
4289 (struct rust_parser): New.
4290 (%union) <params, field_inits>: Change type.
4291 (start, tuple_expr, unit_expr, struct_expr_list, literal)
4292 (field_expr, expr_list, maybe_expr_list, type_list): Update.
4293 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
4294 (convert_params_to_types, convert_params_to_expression): Change
4295 type of "params".
4296 (ast_string): Change type of "fields".
4297 (rust_parse): Make a rust_parser. Remove cleanups.
4298 (rust_lex_tests): Make and install an auto_obstack.
4299
f02fd774
YQ
43002017-08-04 Yao Qi <yao.qi@linaro.org>
4301
4302 * configure.srv (ipa_x32_linux_regobj): New.
4303 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
4304 instead of X86_TDESC_AVX512.
4305 (initialize_low_tracepoint): Call
4306 init_registers_x32_avx_avx512_linux.
4307
91975afd
YQ
43082017-08-04 Yao Qi <yao.qi@linaro.org>
4309
4310 * utils.h (gdb_argv): Add namespace std for nullptr_t.
4311
2331fa3a
RK
43122017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
4313
4314 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
4315
744e4fe1
TT
43162017-08-03 Tom Tromey <tom@tromey.com>
4317
4318 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
4319 Remove.
4320 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
4321
1c034b67
TT
43222017-08-03 Tom Tromey <tom@tromey.com>
4323
4324 * python/py-param.c (compute_enum_values): Use gdb_argv.
4325
773a1edc
TT
43262017-08-03 Tom Tromey <tom@tromey.com>
4327
4328 * utils.h (struct gdb_argv_deleter): New.
4329 (gdb_argv): New class.
4330 * utils.c (gdb_argv::reset): New method.
4331 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
4332 * tracefile.c (tsave_command): Use gdb_argv.
4333 * top.c (new_ui_command): Use gdb_argv.
4334 * symmisc.c (maintenance_print_symbols)
4335 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
4336 * symfile.c (symbol_file_command, generic_load)
4337 (remove_symbol_file_command): Use gdb_argv.
4338 * stack.c (backtrace_command): Use gdb_argv.
4339 * source.c (add_path, show_substitute_path_command)
4340 (unset_substitute_path_command, set_substitute_path_command):
4341 Use gdb_argv.
4342 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
4343 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
4344 * remote.c (extended_remote_run, remote_put_command)
4345 (remote_get_command, remote_delete_command): Use gdb_argv.
4346 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
4347 (gdbsim_open): Use gdb_argv.
4348 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
4349 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
4350 * procfs.c (procfs_info_proc): Use gdb_argv.
4351 * interps.c (interpreter_exec_cmd): Use gdb_argv.
4352 * infrun.c (handle_command): Use gdb_argv.
4353 * inferior.c (add_inferior_command, clone_inferior_command):
4354 Use gdb_argv.
4355 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
4356 * exec.c (exec_file_command): Use gdb_argv.
4357 * cli/cli-cmds.c (alias_command): Use gdb_argv.
4358 * compile/compile.c (build_argc_argv): Use gdb_argv.
4359
0d50bde3
TT
43602017-08-03 Tom Tromey <tom@tromey.com>
4361
4362 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
4363
7f968c89
TT
43642017-08-03 Tom Tromey <tom@tromey.com>
4365
4366 * python/python.c (compute_python_string): Return std::string.
4367 (gdbpy_eval_from_control_command): Update.
4368 (do_start_initialization): Use std::string.
4369 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
4370 xstrprintf.
4371 * python/py-breakpoint.c (local_setattro): Use string_printf, not
4372 xstrprintf.
4373
3c9ebddd
TT
43742017-08-03 Tom Tromey <tom@tromey.com>
4375
4376 * top.h (do_restore_instream_cleanup): Remove.
4377 * top.c (do_restore_instream_cleanup): Remove.
4378 (read_command_file): Use scoped_restore.
4379 * cli/cli-script.c (execute_user_command): Use scoped_restore.
4380
b51b225e
TT
43812017-08-03 Tom Tromey <tom@tromey.com>
4382
4383 * cli/cli-script.c (execute_user_command)
4384 (execute_control_command): Use scoped_restore.
4385
ac991630
TT
43862017-08-03 Tom Tromey <tom@tromey.com>
4387
4388 * cli/cli-script.c (do_restore_user_call_depth): Remove.
4389 (execute_user_command): Remove user_call_depth; use
4390 user_args_stack's size instead.
4391
898e0c8e
TT
43922017-08-03 Tom Tromey <tom@tromey.com>
4393
4394 * top.h (in_user_command): Remove.
4395 * top.c (in_user_command): Remove.
4396 * cli/cli-script.c (do_restore_user_call_depth)
4397 (execute_user_command): Update.
4398
26fcd5d7
TT
43992017-08-03 Tom Tromey <tom@tromey.com>
4400
4401 * valops.c (search_struct_method): Use gdb::byte_vector.
4402 * valarith.c (value_concat): Use std::vector.
4403 * target.c (memory_xfer_partial): Use gdb::byte_vector.
4404 (simple_search_memory): Likewise.
4405 * printcmd.c (find_string_backward): Use gdb::byte_vector.
4406 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
4407 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
4408 * elfread.c (elf_rel_plt_read): Use std::string.
4409 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
4410 * cli/cli-dump.c (restore_section_callback): Use
4411 gdb::byte_vector.
4412
7c218e6c
TT
44132017-08-03 Tom Tromey <tom@tromey.com>
4414
4415 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
4416
31b68d4a
TT
44172017-08-03 Tom Tromey <tom@tromey.com>
4418
4419 * tui/tui-regs.c (tui_restore_gdbout): Remove.
4420 (tui_register_format): Use scoped_restore.
4421
2ec845e7
TT
44222017-08-03 Tom Tromey <tom@tromey.com>
4423
4424 * reverse.c (exec_direction_default): Remove.
4425 (exec_reverse_once): Use scoped_restore.
4426 * remote.c (restore_remote_timeout): Remove.
4427 (remote_flash_erase, remote_flash_write, remote_flash_done)
4428 (readchar, remote_serial_write): Use scoped_restore.
4429 * cli/cli-script.c (struct source_cleanup_lines_args)
4430 (source_cleanup_lines): Remove.
4431 (script_from_file): Use scoped_restore.
4432 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
4433 (source_command): Use scoped_restore.
4434
b3bc8453
TT
44352017-08-03 Tom Tromey <tom@tromey.com>
4436
4437 * utils.h (make_cleanup_free_so): Remove.
4438 * utils.c (do_free_so, make_cleanup_free_so): Remove.
4439 * solist.h (struct so_deleter): New.
4440 (so_list_up): New typedef.
4441 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
4442
e3ad2841
TT
44432017-08-03 Tom Tromey <tom@tromey.com>
4444
4445 * utils.h (make_cleanup_restore_current_language): Remove.
4446 * utils.c (do_restore_current_language)
4447 (make_cleanup_restore_current_language): Remove.
4448 * parse.c (parse_exp_in_context_1)
4449 (parse_expression_with_language): Use
4450 scoped_restore_current_language.
4451 * mi/mi-main.c (mi_cmd_execute): Use
4452 scoped_restore_current_language.
4453 * language.h (scoped_restore_current_language): New class.
4454
b80cf838
TT
44552017-08-03 Tom Tromey <tom@tromey.com>
4456
4457 * compile/compile.c (cleanup_unlink_file): Remove.
4458 (compile_to_object): Use gdb::unlinker.
4459 (eval_compile_command): Likewise.
4460
fad0444a
TT
44612017-08-03 Tom Tromey <tom@tromey.com>
4462
4463 * utils.h (make_cleanup_fclose): Remove.
4464 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
4465
6e7bc05c
TT
44662017-08-03 Tom Tromey <tom@tromey.com>
4467
4468 * top.c (open_terminal_stream): Return gdb_file_up.
4469 (new_ui_command): Update.
4470
4a45905b
TT
44712017-08-03 Tom Tromey <tom@tromey.com>
4472
4473 * source.c (print_source_lines_base, forward_search_command)
4474 (reverse_search_command): Use gdb_file_up.
4475
7cd06d6e
TT
44762017-08-03 Tom Tromey <tom@tromey.com>
4477
4478 * fbsd-nat.c (fbsd_find_memory_regions): Update.
4479
ed166945
TT
44802017-08-03 Tom Tromey <tom@tromey.com>
4481
4482 * cli/cli-cmds.c (find_and_open_script): Change return type.
4483 Remove "streamp" and "full_path" parameters.
4484 (source_script_with_search): Update.
4485 * auto-load.c (source_script_file): Update.
4486 * cli/cli-cmds.h (find_and_open_script): Change type.
4487 (open_script): New struct.
4488
d419f42d
TT
44892017-08-03 Tom Tromey <tom@tromey.com>
4490
4491 * xml-support.c (xml_fetch_content_from_file): Update.
4492 * ui-file.c (stdio_file::open): Update.
4493 * tracefile-tfile.c (tfile_start): Update.
4494 * remote.c (remote_file_put, remote_file_get): Update.
4495 * nat/linux-procfs.c (linux_proc_get_int)
4496 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
4497 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
4498 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
4499 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
4500 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
4501 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
4502 * linux-nat.c (linux_proc_pending_signals): Update.
4503 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
4504 (file_closer): Remove.
4505 * compile/compile.c (compile_to_object): Update.
4506 * common/filestuff.h (struct gdb_file_deleter): New.
4507 (gdb_file_up): New typedef.
4508 (gdb_fopen_cloexec): Change return type.
4509 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
4510 * cli/cli-dump.c (fopen_with_cleanup): Remove.
4511 (dump_binary_file, restore_binary_file): Update.
4512 * auto-load.c (auto_load_objfile_script_1): Update.
4513
4a2b031d
TT
45142017-08-03 Tom Tromey <tom@tromey.com>
4515
4516 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
4517 (info_static_tracepoint_markers_command): Likewise.
4518 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
4519 * skip.c (skip_info): Use ui_out_emit_table.
4520 * progspace.c (print_program_space): Use ui_out_emit_table.
4521 * osdata.c (info_osdata): Use ui_out_emit_table.
4522 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
4523 ui_out_emit_table.
4524 * linux-thread-db.c (info_auto_load_libthread_db): Use
4525 ui_out_emit_table.
4526 * inferior.c (print_inferior): Use ui_out_emit_table.
4527 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
4528 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
4529 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
4530 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
4531 * ui-out.h (class ui_out_emit_table): New.
4532
a4f320fd
MR
45332017-08-02 Maciej W. Rozycki <macro@imgtec.com>
4534
4535 * mips-tdep.c (mips_fpu_type_str): New function.
4536 (mips_dump_tdep): Call it.
4537
a2f1f308
MR
45382017-08-01 Maciej W. Rozycki <macro@imgtec.com>
4539
4540 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
4541 `->mips_fpu_type'.
4542
7e5ed83b
XR
45432017-07-31 Xavier Roirand <roirand@adacore.com>
4544
4545 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4546
4c9dc811
XR
45472017-07-27 Xavier Roirand <roirand@adacore.com>
4548
4549 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
4550
27d41eac
YQ
45512017-07-26 Yao Qi <yao.qi@linaro.org>
4552
4553 * cli/cli-cmds.c (maintenancechecklist): New variable.
4554 * gdbcmd.h (maintenancechecklist): Declare it.
4555 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
4556 Call i386_linux_read_description with different masks.
4557 * maint.c (maintenance_check_command): New function.
4558 (_initialize_maint_cmds): Call add_prefix_cmd.
4559 * target-descriptions.c (tdesc_reg): override operator != and ==.
4560 (tdesc_type): Likewise.
4561 (tdesc_feature): Likewise.
4562 (target_desc): Likewise.
4563 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
4564 (maintenance_check_xml_descriptions): New function.
4565 (_initialize_target_descriptions) Add command "xml-descriptions".
4566 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
4567
ea03d0d3
YQ
45682017-07-26 Yao Qi <yao.qi@linaro.org>
4569
4570 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
4571 Include features/i386/32bit-*.c.
4572 (i386_linux_read_description): Generate target description if it
4573 doesn't exist.
4574 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
4575 functions.
4576 * features/i386/32bit-linux.c: Re-generated.
4577 * features/i386/32bit-sse.c: Likewise.
4578 * target-descriptions.c (print_c_feature::visit): Print code to
4579 set register number if needed.
4580 (print_c_feature) <m_next_regnum>: New field.
4581
25aa13e5
YQ
45822017-07-26 Yao Qi <yao.qi@linaro.org>
4583
4584 * features/Makefile (CFILES): Rename with TDESC_CFILES.
4585 (FEATURE_XMLFILES): New.
4586 (FEATURE_CFILES): New.
4587 New rules.
4588 (clean-cfiles): Remove generated c files.
4589 * features/i386/32bit-avx.c: Generated.
4590 * features/i386/32bit-avx512.c: Generated.
4591 * features/i386/32bit-core.c: Generated.
4592 * features/i386/32bit-linux.c: Generated.
4593 * features/i386/32bit-mpx.c: Generated.
4594 * features/i386/32bit-pkeys.c: Generated.
4595 * features/i386/32bit-sse.c: Generated.
4596 * target-descriptions.c: Include algorithm.
4597 (tdesc_element_visitor): Add method visit_end.
4598 (print_c_tdesc): Implement visit_end.
4599 (print_c_tdesc:: m_filename_after_features): Move it to
4600 protected.
4601 (print_c_feature): New class.
4602 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
4603 name starts with "i386/32bit-".
4604
6eb1e6a8
YQ
46052017-07-26 Yao Qi <yao.qi@linaro.org>
4606
4607 * target-descriptions.c (tdesc_element_visitor): New class.
4608 (tdesc_element): New class.
4609 (tdesc_reg): Inherit from tdesc_element.
4610 (tdesc_reg::accept): New function.
4611 (tdesc_type): Inherit from tdesc_element.
4612 (tdesc_type::accept): New function.
4613 (tdesc_feature): Inherit from tdesc_element.
4614 (tdesc_feature::accept): New function.
4615 (target_desc): Inherit from tdesc_element.
4616 (target_desc::target_desc): New.
4617 (target_desc::~target_desc): New.
4618 (target_desc::accept): New.
4619 (allocate_target_description): Use new.
4620 (free_target_description): Use delete.
4621 (print_c_tdesc): New class.
4622 (maint_print_c_tdesc_cmd): Adjust.
4623
4624 * features/aarch64.c: Re-generated.
4625 * features/arc-arcompact.c: Re-generated.
4626 * features/arc-v2.c: Re-generated.
4627 * features/arm/arm-with-iwmmxt.c: Re-generated.
4628 * features/arm/arm-with-m.c: Re-generated.
4629 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
4630 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
4631 * features/arm/arm-with-neon.c: Re-generated.
4632 * features/arm/arm-with-vfpv2.c: Re-generated.
4633 * features/arm/arm-with-vfpv3.c: Re-generated.
4634 * features/i386/amd64-avx-avx512.c: Re-generated.
4635 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
4636 * features/i386/amd64-avx.c: Re-generated.
4637 * features/i386/amd64-avx-linux.c: Re-generated.
4638 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
4639 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
4640 * features/i386/amd64-avx-mpx.c: Re-generated.
4641 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
4642 * features/i386/amd64.c: Re-generated.
4643 * features/i386/amd64-linux.c: Re-generated.
4644 * features/i386/amd64-mpx.c: Re-generated.
4645 * features/i386/amd64-mpx-linux.c: Re-generated.
4646 * features/i386/i386-avx-avx512.c: Re-generated.
4647 * features/i386/i386-avx-avx512-linux.c: Re-generated.
4648 * features/i386/i386-avx.c: Re-generated.
4649 * features/i386/i386-avx-linux.c: Re-generated.
4650 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
4651 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
4652 * features/i386/i386-avx-mpx.c: Re-generated.
4653 * features/i386/i386-avx-mpx-linux.c: Re-generated.
4654 * features/i386/i386.c: Re-generated.
4655 * features/i386/i386-linux.c: Re-generated.
4656 * features/i386/i386-mmx.c: Re-generated.
4657 * features/i386/i386-mmx-linux.c: Re-generated.
4658 * features/i386/i386-mpx.c: Re-generated.
4659 * features/i386/i386-mpx-linux.c: Re-generated.
4660 * features/i386/x32-avx-avx512.c: Re-generated.
4661 * features/i386/x32-avx-avx512-linux.c: Re-generated.
4662 * features/i386/x32-avx.c: Re-generated.
4663 * features/i386/x32-avx-linux.c: Re-generated.
4664 * features/i386/x32.c: Re-generated.
4665 * features/i386/x32-linux.c: Re-generated.
4666 * features/microblaze.c: Re-generated.
4667 * features/microblaze-with-stack-protect.c: Re-generated.
4668 * features/mips64-dsp-linux.c: Re-generated.
4669 * features/mips64-linux.c: Re-generated.
4670 * features/mips-dsp-linux.c: Re-generated.
4671 * features/mips-linux.c: Re-generated.
4672 * features/nds32.c: Re-generated.
4673 * features/nios2.c: Re-generated.
4674 * features/nios2-linux.c: Re-generated.
4675 * features/rs6000/powerpc-32.c: Re-generated.
4676 * features/rs6000/powerpc-32l.c: Re-generated.
4677 * features/rs6000/powerpc-403.c: Re-generated.
4678 * features/rs6000/powerpc-403gc.c : Re-generated.
4679 * features/rs6000/powerpc-405.c: Re-generated.
4680 * features/rs6000/powerpc-505.c: Re-generated.
4681 * features/rs6000/powerpc-601.c: Re-generated.
4682 * features/rs6000/powerpc-602.c: Re-generated.
4683 * features/rs6000/powerpc-603.c: Re-generated.
4684 * features/rs6000/powerpc-604.c: Re-generated.
4685 * features/rs6000/powerpc-64.c: Re-generated.
4686 * features/rs6000/powerpc-64l.c: Re-generated.
4687 * features/rs6000/powerpc-7400.c: Re-generated.
4688 * features/rs6000/powerpc-750.c: Re-generated.
4689 * features/rs6000/powerpc-860.c: Re-generated.
4690 * features/rs6000/powerpc-altivec32.c: Re-generated.
4691 * features/rs6000/powerpc-altivec32l.c: Re-generated.
4692 * features/rs6000/powerpc-altivec64.c: Re-generated.
4693 * features/rs6000/powerpc-altivec64l.c: Re-generated.
4694 * features/rs6000/powerpc-cell32l.c: Re-generated.
4695 * features/rs6000/powerpc-cell64l.c: Re-generated.
4696 * features/rs6000/powerpc-e500.c: Re-generated.
4697 * features/rs6000/powerpc-e500l.c: Re-generated.
4698 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
4699 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
4700 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
4701 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
4702 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
4703 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
4704 * features/rs6000/powerpc-vsx32.c: Re-generated.
4705 * features/rs6000/powerpc-vsx32l.c: Re-generated.
4706 * features/rs6000/powerpc-vsx64.c: Re-generated.
4707 * features/rs6000/powerpc-vsx64l.c: Re-generated.
4708 * features/rs6000/rs6000.c: Re-generated.
4709 * features/s390-linux32.c: Re-generated.
4710 * features/s390-linux32v1.c: Re-generated.
4711 * features/s390-linux32v2.c: Re-generated.
4712 * features/s390-linux64.c: Re-generated.
4713 * features/s390-linux64v1.c: Re-generated.
4714 * features/s390-linux64v2.c: Re-generated.
4715 * features/s390-te-linux64.c: Re-generated.
4716 * features/s390-tevx-linux64.c: Re-generated.
4717 * features/s390-vx-linux64.c: Re-generated.
4718 * features/s390x-linux64.c: Re-generated.
4719 * features/s390x-linux64v1.c: Re-generated.
4720 * features/s390x-linux64v2.c: Re-generated.
4721 * features/s390x-te-linux64.c: Re-generated.
4722 * features/s390x-tevx-linux64.c: Re-generated.
4723 * features/s390x-vx-linux64.c: Re-generated.
4724 * features/sparc/sparc32-solaris.c: Re-generated.
4725 * features/sparc/sparc64-solaris.c: Re-generated.
4726 * features/tic6x-c62x.c: Re-generated.
4727 * features/tic6x-c62x-linux.c: Re-generated.
4728 * features/tic6x-c64x.c: Re-generated.
4729 * features/tic6x-c64x-linux.c: Re-generated.
4730 * features/tic6x-c64xp.c: Re-generated.
4731 * features/tic6x-c64xp-linux.c: Re-generated.
4732
35b4818d
YQ
47332017-07-26 Yao Qi <yao.qi@linaro.org>
4734
4735 * i386-linux-tdep.c (i386_linux_read_description): New function.
4736 (i386_linux_core_read_description): Call
4737 i386_linux_read_description.
4738 * i386-linux-tdep.h (i386_linux_read_description): Declare.
4739 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
4740 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
4741 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
4742 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
4743 * x86-linux-nat.c (x86_linux_read_description): Call
4744 i386_linux_read_description.
4745
8e2141c6
YQ
47462017-07-26 Yao Qi <yao.qi@linaro.org>
4747
4748 * NEWS: Mention it.
4749 * features/Makefile (%.c: %.xml): Pass the xml file name to
4750 command "maint print c-tdesc".
4751 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
4752 name from 'arg'.
4753
b468ff4c
YQ
47542017-07-26 Yao Qi <yao.qi@linaro.org>
4755
4756 * target-descriptions.c (target_desc): Add ctor and dtor. Do
4757 in-class initialization.
4758 (tdesc_create_feature): Call new instead of XCNEW.
4759 (free_target_description): Ue delete.
4760
b9c0e1b4
JB
47612017-07-25 John Baldwin <jhb@FreeBSD.org>
4762
4763 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
4764
a04b5337
YQ
47652017-07-25 Yao Qi <yao.qi@linaro.org>
4766
4767 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
4768 constant.
4769 (amd64_x32_init_abi): Likewise.
4770 * amd64-tdep.h (amd64_init_abi): Update declaration.
4771 (amd64_x32_init_abi): Likewise.
4772
02ad7fc2
YQ
47732017-07-25 Yao Qi <yao.qi@linaro.org>
4774
4775 PR tdep/21717
4776 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
4777 condition for FPSCR.
4778 (arm_linux_store_inferior_registers): Likewise.
4779
b6f48cb0
TT
47802017-07-22 Tom Tromey <tom@tromey.com>
4781
4782 * break-catch-syscall.c (struct catch_syscall_inferior_data)
4783 <syscalls_counts>: Now a std::vector.
4784 (get_catch_syscall_inferior_data): Use "new".
4785 (catch_syscall_inferior_data_cleanup): Use "delete".
4786 (insert_catch_syscall, remove_catch_syscall)
4787 (clear_syscall_counts): Update.
4788
e12c9b7a
TT
47892017-07-22 Tom Tromey <tom@tromey.com>
4790
4791 * break-catch-syscall.c (syscall_catchpoint)
4792 <syscalls_to_be_caught>: Now a std::vector<int>
4793 (~syscall_catchpoint): Remove.
4794 (insert_catch_syscall, remove_catch_syscall)
4795 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4796 (print_mention_catch_syscall, print_recreate_catch_syscall):
4797 Update.
4798 (create_syscall_event_catchpoint): Change type of "filter"
4799 parameter.
4800 (catch_syscall_split_args): Return a std::vector.
4801 (catch_syscall_command_1, catching_syscall_number_1): Update.
4802
4fa8aeac
TT
48032017-07-22 Tom Tromey <tom@tromey.com>
4804
4805 * break-catch-throw.c (struct exception_catchpoint)
4806 <exception_rx>: Now a std::string.
4807 (~exception_catchpoint): Remove.
4808 (print_one_detail_exception_catchpoint): Update.
4809 (handle_gnu_v3_exceptions): Change type of except_rx.
4810 (extract_exception_regexp): Return a std::string.
4811 (catch_exception_command_1): Update.
4812
f746a154
TT
48132017-07-22 Tom Tromey <tom@tromey.com>
4814
4815 * break-catch-sig.c (gdb_signal_type): Remove typedef.
4816 (struct signal_catchpoint) <signals_to_be_caught>: Now a
4817 std::vector.
4818 <catch_all>: Now a bool.
4819 (~signal_catchpoint): Remove.
4820 (signal_catchpoint_insert_location)
4821 (signal_catchpoint_remove_location)
4822 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
4823 (signal_catchpoint_print_mention)
4824 (signal_catchpoint_print_recreate)
4825 (signal_catchpoint_explains_signal): Update.
4826 (create_signal_catchpoint): Change type of "filter" and
4827 "catch_all".
4828 (catch_signal_split_args): Return a std::vector. Change type of
4829 "catch_all".
4830 (catch_signal_command): Update.
4831
47e77640
PA
48322017-07-20 Pedro Alves <palves@redhat.com>
4833
4834 * ada-lang.c (ada_language_defn): Make extern.
4835 (_initialize_ada_language): Remove add_language call.
4836 * c-lang.c (c_language_defn, cplus_language_defn)
4837 (asm_language_defn, minimal_language_defn): Make extern.
4838 (_initialize_c_language): Delete.
4839 * completer.c (compare_cstrings): Delete, moved to utils.h.
4840 * d-lang.c (d_language_defn): Make extern.
4841 (_initialize_d_language): Remove add_language calls.
4842 * defs.h (enum language): Add comment.
4843 * f-lang.c (f_language_defn): Make extern.
4844 (_initialize_f_language): Remove add_language call.
4845 * go-lang.c (go_language_defn): Make extern.
4846 (_initialize_go_language): Remove add_language call.
4847 * language.c: Include <algorithm>.
4848 (languages): Redefine as const array.
4849 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
4850 (set_language_command): Handle "local". Use for-range loop.
4851 (set_language): Remove loop.
4852 (language_enum): Rewrite.
4853 (language_def, language_str): Remove loops.
4854 (add_language): Delete.
4855 (add_set_language_command): New, based on add_languages.
4856 (skip_language_trampoline): Adjust.
4857 (local_language_defn): Delete.
4858 (language_gdbarch_post_init): Adjust.
4859 (_initialize_language): Remove add_language calls. Call
4860 add_set_language_command.
4861 * language.h (add_language): Delete.
4862 (auto_language_defn)
4863 (unknown_language_defn, minimal_language_defn, ada_language_defn)
4864 (asm_language_defn, c_language_defn, cplus_language_defn)
4865 (d_language_defn, f_language_defn, go_language_defn)
4866 (m2_language_defn, objc_language_defn, opencl_language_defn)
4867 (pascal_language_defn, rust_language_defn): Declare.
4868 * m2-lang.c (m2_language_defn): Make extern.
4869 (_initialize_m2_language): Remove add_language call.
4870 * objc-lang.c (objc_language_defn): Make extern.
4871 (_initialize_objc_language): Remove add_language call.
4872 * opencl-lang.c (opencl_language_defn): Make extern.
4873 (_initialize_opencl_language): Remove add_language call.
4874 * p-lang.c (pascal_language_defn): Make extern.
4875 (_initialize_pascal_language): Delete.
4876 * rust-lang.c (rust_language_defn): Make extern.
4877 (_initialize_rust_language): Delete.
4878 * utils.h (compare_cstrings): New static inline function.
4879
edb0c9cb
PA
48802017-07-20 Pedro Alves <palves@redhat.com>
4881
4882 * ada-lang.c (ada_to_fixed_type_1): Adjust.
4883 (get_var_value): Constify parameters.
4884 (get_int_var_value): Change prototype.
4885 (to_fixed_range_type): Adjust.
4886 * ada-lang.h (get_int_var_value): Change prototype.
4887
a778f165
PA
48882017-07-20 Pedro Alves <palves@redhat.com>
4889
4890 * dwarf2read.c (dw2_lookup_symbol): Use
4891 SYMBOL_MATCHES_SEARCH_NAME.
4892 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
4893
42edd901
PA
48942017-07-20 Pedro Alves <palves@redhat.com>
4895
4896 * block.c (block_iter_name_step, block_iter_name_first)
4897 (block_iter_name_next): Delete.
4898 (block_lookup_symbol_primary): Adjust to use
4899 dict_iter_match_first/dict_iter_match_next.
4900 * block.h (block_iter_name_first, block_iter_name_next): Delete
4901 declarations.
4902 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
4903 dict_iter_match_first/dict_iter_match_next.
4904
cf325299
PA
49052017-07-20 Pedro Alves <palves@redhat.com>
4906
4907 * cp-support.c (cp_find_first_component_aux): Add missing case for
4908 end of string.
4909
c5ed0576
DB
49102017-07-18 David Blaikie <dblaikie@gmail.com>
4911
4912 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
4913 of dwo_cu's dwo_file.
4914
27841e76
YQ
49152017-07-18 Yao Qi <yao.qi@linaro.org>
4916
4917 * remote.c (store_registers_using_G): Remove one line comment.
4918
cfb7e58b
YQ
49192017-07-18 Yao Qi <yao.qi@linaro.org>
4920
4921 * regcache.c (regcache_cpy): Simplify it.
4922 (regcache::cpy_no_passthrough): Remove it.
4923 * regcache.h (cpy_no_passthrough): Remove it.
4924 (regcache_dup, regcache_cpy): Update comments.
4925
386535dd
PA
49262017-07-18 Pedro Alves <palves@redhat.com>
4927
4928 * remote-sim.c (sim_command_completer): Adjust to work with a
4929 completion_tracker instead of a VEC.
4930
c45ec17c
PA
49312017-07-17 Pedro Alves <palves@redhat.com>
4932
4933 * completer.c (complete_source_filenames): New function.
4934 (complete_address_and_linespec_locations): New function.
4935 (location_completer): Use complete_address_and_linespec_locations.
4936 (completion_tracker::build_completion_result): Honor the tracker's
4937 request to suppress append.
4938 * completer.h (completion_tracker::suppress_append_ws)
4939 (completion_tracker::set_suppress_append_ws): New methods.
4940 (completion_tracker::m_suppress_append_ws): New field.
4941 (complete_source_filenames): New declaration.
4942 * linespec.c (linespec_complete_what): New.
4943 (struct ls_parser) <complete_what, completion_word,
4944 completion_quote_char, completion_quote_end, completion_tracker>:
4945 New fields.
4946 (string_find_incomplete_keyword_at_end): New.
4947 (linespec_lexer_lex_string): Record quote char. If in completion
4948 mode, don't throw.
4949 (linespec_lexer_consume_token): Advance the completion word point.
4950 (linespec_lexer_peek_token): Save/restore completion info.
4951 (save_stream_and_consume_token): New.
4952 (set_completion_after_number): New.
4953 (linespec_parse_basic): Set what to complete next depending on
4954 token. Handle function and label completions specially.
4955 (parse_linespec): Disable objc shortcut in completion mode. Set
4956 what to complete next depending on token type. Skip keyword if in
4957 completion mode.
4958 (complete_linespec_component, linespec_complete): New.
4959 * linespec.h (linespec_complete): Declare.
4960
be966d42
PA
49612017-07-17 Pedro Alves <palves@redhat.com>
4962
4963 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
4964 Handle 'operator<' / 'operator<<'.
4965
a2459270
PA
49662017-07-17 Pedro Alves <palves@redhat.com>
4967
4968 * completer.c (collect_explicit_location_matches): Handle
4969 MATCH_LABEL.
4970 (convert_explicit_location_to_linespec): New, factored out from
4971 ...
4972 (convert_explicit_location_to_sals): ... this.
4973 (complete_label): New.
4974 (linespec_complete_label, find_label_symbols_in_block): New.
4975 (find_label_symbols): Add completion_mode parameter and adjust to
4976 call find_label_symbols_in_block.
4977 * linespec.h (linespec_complete_label): Declare.
4978
c6756f62
PA
49792017-07-17 Pedro Alves <palves@redhat.com>
4980
4981 * ada-lang.c (ada_collect_symbol_completion_matches): Add
4982 complete_symbol_mode parameter.
4983 * cli/cli-cmds.c (complete_command): Get the completion result out
4984 of the handle_brkchars tracker if used a custom word point.
4985 * completer.c: Include "linespec.h".
4986 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
4987 (advance_to_expression_complete_word_point): New.
4988 (completion_tracker::completes_to_completion_word): New.
4989 (complete_files_symbols): Pass down
4990 complete_symbol_mode::EXPRESSION.
4991 (explicit_options, probe_options): New.
4992 (collect_explicit_location_matches): Complete on the
4993 explictit_loc->foo instead of word. Use
4994 linespec_complete_function. Handle MATCH_LINE. Handle offering
4995 keyword and options completions.
4996 (backup_text_ptr): Delete.
4997 (skip_keyword): New.
4998 (complete_explicit_location): Remove 'word' parameter. Add
4999 language, quoted_arg_start and quoted_arg_end parameters.
5000 Rewrite, parsing left to right.
5001 (location_completer): Rewrite.
5002 (location_completer_handle_brkchars): New function.
5003 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
5004 (enum complete_line_internal_reason): Adjust comments.
5005 (completion_tracker::discard_completions): New.
5006 (completer_handle_brkchars_func_for_completer): Handle
5007 location_completer.
5008 (gdb_custom_word_point_brkchars)
5009 (gdb_org_rl_basic_quote_characters): New.
5010 (gdb_completion_word_break_characters_throw)
5011 (completion_find_completion_word): Handle trackers that use a
5012 custom word point.
5013 (completion_tracker::advance_custom_word_point_by): New.
5014 (completion_tracker::build_completion_result): Don't rely on
5015 readline appending the quote char.
5016 (gdb_rl_attempted_completion_function_throw): Handle trackers that
5017 use a custom word point.
5018 (gdb_rl_attempted_completion_function): Restore
5019 rl_basic_quote_characters.
5020 * completer.h (class completion_tracker): Extend intro comment.
5021 (completion_tracker::set_quote_char)
5022 (completion_tracker::quote_char)
5023 (completion_tracker::set_use_custom_word_point)
5024 (completion_tracker::use_custom_word_point)
5025 (completion_tracker::custom_word_point)
5026 (completion_tracker::set_custom_word_point)
5027 (completion_tracker::advance_custom_word_point_by)
5028 (completion_tracker::completes_to_completion_word)
5029 (completion_tracker::discard_completions): New methods.
5030 (completion_tracker::m_quote_char)
5031 (completion_tracker::m_use_custom_word_point)
5032 (completion_tracker::m_custom_word_point): New fields.
5033 (advance_to_expression_complete_word_point): Declare.
5034 * f-lang.c (f_collect_symbol_completion_matches): Add
5035 complete_symbol_mode parameter.
5036 * language.h (struct language_defn)
5037 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
5038 parameter.
5039 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
5040 (linespec_complete_function): New function.
5041 (linespec_lexer_lex_keyword): Adjust.
5042 * linespec.h (linespec_keywords, linespec_complete_function): New
5043 declarations.
5044 * location.c (find_end_quote): New function.
5045 (explicit_location_lex_one): Add explicit_completion_info
5046 parameter. Save quoting info. Don't throw if being called for
5047 completion. Don't handle Ada operators here.
5048 (is_cp_operator, skip_op_false_positives, first_of)
5049 (explicit_location_lex_one_function): New function.
5050 (string_to_explicit_location): Replace 'dont_throw' parameter with
5051 an explicit_completion_info pointer parameter. Handle it. Don't
5052 use explicit_location_lex_one to lex function names. Use
5053 explicit_location_lex_one_function instead.
5054 * location.h (struct explicit_completion_info): New.
5055 (string_to_explicit_location): Replace 'dont_throw' parameter with
5056 an explicit_completion_info pointer parameter.
5057 * symtab.c (default_collect_symbol_completion_matches_break_on):
5058 Add complete_symbol_mode parameter. Handle LINESPEC mode.
5059 (default_collect_symbol_completion_matches)
5060 (collect_symbol_completion_matches): Add complete_symbol_mode
5061 parameter.
5062 (collect_symbol_completion_matches_type): Pass down
5063 complete_symbol_mode::EXPRESSION.
5064 (collect_file_symbol_completion_matches): Add complete_symbol_mode
5065 parameter. Handle LINESPEC mode.
5066 * symtab.h (complete_symbol_mode): New.
5067 (default_collect_symbol_completion_matches_break_on)
5068 (default_collect_symbol_completion_matches)
5069 (collect_symbol_completion_matches)
5070 (collect_file_symbol_completion_matches): Add complete_symbol_mode
5071 parameter.
5072
1d550c82
PA
50732017-07-17 Pedro Alves <palves@redhat.com>
5074
5075 * utils.c (enum class strncmp_iw_mode): New.
5076 (strcmp_iw): Rename to ...
5077 (strncmp_iw_with_mode): ... this. Add string2_len and mode
5078 parameters. Handle them.
5079 (strncmp_iw): New.
5080 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
5081 * utils.h (strncmp_iw): Declare.
5082 (strcmp_iw): Move describing comments here.
5083
8090b426
PA
50842017-07-17 Pedro Alves <palves@redhat.com>
5085
5086 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
5087 CP_OPERATOR_STR.
5088 * c-typeprint.c (is_type_conversion_operator): Use
5089 CP_OPERATOR_STR.
5090 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
5091 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
5092 CP_OPERATOR_LEN.
5093 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
5094 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
5095 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
5096 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
5097 CP_OPERATOR_STR.
5098 * location.c: Include "cp-support.h".
5099 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
5100 CP_OPERATOR_STR.
5101 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
5102 CP_OPERATOR_LEN.
5103
6a2c1b87
PA
51042017-07-17 Pedro Alves <palves@redhat.com>
5105
5106 * cli/cli-cmds.c (complete_command): Use a completion tracker
5107 along with completion_find_completion_word for handle_brkchars
5108 phase.
5109 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
5110 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
5111 (struct gdb_rl_completion_word_info): New.
5112 (gdb_rl_find_completion_word): New.
5113 (completion_find_completion_word): New.
5114 * completer.h (completion_find_completion_word): Declare.
5115
eb3ff9a5
PA
51162017-07-17 Pedro Alves <palves@redhat.com>
5117
5118 * ada-lang.c (symbol_completion_match): Adjust comments.
5119 (symbol_completion_add): Replace vector parameter with
5120 completion_tracker parameter. Use it.
5121 (ada_make_symbol_completion_list): Rename to...
5122 (ada_collect_symbol_completion_matches): ... this. Add
5123 completion_tracker parameter and use it.
5124 (ada_language_defn): Adjust.
5125 * break-catch-syscall.c (catch_syscall_completer): Adjust
5126 prototype and work with completion_tracker instead of VEC.
5127 * breakpoint.c (condition_completer): Adjust prototype and work
5128 with completion_tracker instead of VEC.
5129 * c-lang.c (c_language_defn, cplus_language_defn)
5130 (asm_language_defn, minimal_language_defn): Adjust to renames.
5131 * cli/cli-cmds.c (complete_command): Rework using
5132 completion_tracker. Catch exceptions when completing.
5133 * cli/cli-decode.c (integer_unlimited_completer)
5134 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
5135 with completion_tracker instead of VEC.
5136 * command.h (struct completion_tracker): Forward declare.
5137 (completer_ftype, completer_handle_brkchars_ftype): Change
5138 types.
5139 (complete_on_cmdlist, complete_on_enum): Adjust.
5140 * completer.c: Include <algorithm>.
5141 (struct gdb_completer_state): New.
5142 (current_completion): New global.
5143 (readline_line_completion_function): Delete.
5144 (noop_completer, filename_completer)
5145 (filename_completer_handle_brkchars, complete_files_symbols)
5146 (linespec_location_completer): Adjust to work with a
5147 completion_tracker instead of a VEC.
5148 (string_or_empty): New.
5149 (collect_explicit_location_matches): Adjust to work with a
5150 completion_tracker instead of a VEC.
5151 (explicit_location_completer): Rename to ...
5152 (complete_explicit_location): ... this and adjust to work with a
5153 completion_tracker instead of a VEC.
5154 (location_completer): Adjust to work with a completion_tracker
5155 instead of a VEC.
5156 (add_struct_fields): Adjust to work with a completion_list instead
5157 of VEC.
5158 (expression_completer): Rename to ...
5159 (complete_expression): ... this and adjust to work with a
5160 completion_tracker instead of a VEC. Use complete_files_symbols.
5161 (expression_completer): Reimplement on top of complete_expression.
5162 (symbol_completer): Adjust to work with a completion_tracker
5163 instead of a VEC.
5164 (enum complete_line_internal_reason): Add describing comments.
5165 (complete_line_internal_normal_command): Adjust to work with a
5166 completion_tracker instead of a VEC.
5167 (complete_line_internal): Rename to ...
5168 (complete_line_internal_1): ... this and adjust to work with a
5169 completion_tracker instead of a VEC. Assert TEXT is NULL in the
5170 handle_brkchars phase.
5171 (new_completion_tracker): Delete.
5172 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
5173 complete_line_internal_1.
5174 (free_completion_tracker): Delete.
5175 (INITIAL_COMPLETION_HTAB_SIZE): New.
5176 (completion_tracker::completion_tracker)
5177 (completion_tracker::~completion_tracker): New.
5178 (maybe_add_completion): Delete.
5179 (completion_tracker::maybe_add_completion)
5180 (completion_tracker::add_completion)
5181 (completion_tracker::add_completions): New.
5182 (throw_max_completions_reached_error): Delete.
5183 (complete_line): Adjust to work with a completion_tracker instead
5184 of a VEC. Don't create a completion_tracker_t or check for max
5185 completions here.
5186 (command_completer, command_completer_handle_brkchars)
5187 (signal_completer, reg_or_group_completer_1)
5188 (reg_or_group_completer, default_completer_handle_brkchars):
5189 Adjust to work with a completion_tracker.
5190 (gdb_completion_word_break_characters_throw): New.
5191 (gdb_completion_word_break_characters): Reimplement.
5192 (line_completion_function): Delete.
5193 (completion_tracker::recompute_lowest_common_denominator)
5194 (expand_preserving_ws)
5195 (completion_tracker::build_completion_result)
5196 (completion_result::completion_result)
5197 (completion_result::completion_result)
5198 (completion_result::~completion_result)
5199 (completion_result::completion_result)
5200 (completion_result::release_match_list, compare_cstrings)
5201 (completion_result::sort_match_list)
5202 (completion_result::reset_match_list)
5203 (gdb_rl_attempted_completion_function_throw)
5204 (gdb_rl_attempted_completion_function): New.
5205 * completer.h (completion_list, struct completion_result)
5206 (class completion_tracker): New.
5207 (complete_line): Add completion_tracker parameter.
5208 (readline_line_completion_function): Delete.
5209 (gdb_rl_attempted_completion_function): New.
5210 (noop_completer, filename_completer, expression_completer)
5211 (location_completer, symbol_completer, command_completer)
5212 (signal_completer, reg_or_group_completer): Update prototypes.
5213 (completion_tracker_t, new_completion_tracker)
5214 (make_cleanup_free_completion_tracker): Delete.
5215 (enum maybe_add_completion_enum): Delete.
5216 (maybe_add_completion): Delete.
5217 (throw_max_completions_reached_error): Delete.
5218 * corefile.c (complete_set_gnutarget): Adjust to work with a
5219 completion_tracker instead of a VEC.
5220 * cp-abi.c (cp_abi_completer): Adjust to work with a
5221 completion_tracker instead of a VEC.
5222 * d-lang.c (d_language_defn): Adjust.
5223 * disasm.c (disassembler_options_completer): Adjust to work with a
5224 completion_tracker instead of a VEC.
5225 * f-lang.c (f_make_symbol_completion_list): Rename to ...
5226 (f_collect_symbol_completion_matches): ... this. Adjust to work
5227 with a completion_tracker instead of a VEC.
5228 (f_language_defn): Adjust.
5229 * go-lang.c (go_language_defn): Adjust.
5230 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
5231 Adjust to work with a completion_tracker instead of a VEC.
5232 * infrun.c (handle_completer): Likewise.
5233 * interps.c (interpreter_completer): Likewise.
5234 * interps.h (interpreter_completer): Likewise.
5235 * language.c (unknown_language_defn, auto_language_defn)
5236 (local_language_defn): Adjust.
5237 * language.h (language_defn::la_make_symbol_completion_list):
5238 Rename to ...
5239 (language_defn::la_collect_symbol_completion_matches): ... this
5240 and adjust to work with a completion_tracker instead of a VEC.
5241 * m2-lang.c (m2_language_defn): Adjust.
5242 * objc-lang.c (objc_language_defn): Adjust.
5243 * opencl-lang.c (opencl_language_defn): Adjust.
5244 * p-lang.c (pascal_language_defn): Adjust.
5245 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
5246 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
5247 with a completion_tracker.
5248 * rust-lang.c (rust_language_defn): Adjust.
5249 * symtab.c (free_completion_list, do_free_completion_list)
5250 (return_val, completion_tracker): Delete.
5251 (completion_list_add_name, completion_list_add_symbol)
5252 (completion_list_add_msymbol, completion_list_objc_symbol)
5253 (completion_list_add_fields, add_symtab_completions): Add
5254 completion_tracker parameter and use it.
5255 (default_make_symbol_completion_list_break_on_1): Rename to...
5256 (default_collect_symbol_completion_matches_break_on): ... this.
5257 Add completion_tracker parameter and use it instead of allocating
5258 a completion tracker here.
5259 (default_make_symbol_completion_list_break_on): Delete old
5260 implementation.
5261 (default_make_symbol_completion_list): Delete.
5262 (default_collect_symbol_completion_matches): New.
5263 (make_symbol_completion_list): Delete.
5264 (collect_symbol_completion_matches): New.
5265 (make_symbol_completion_type): Rename to ...
5266 (collect_symbol_completion_matches_type): ... this. Add
5267 completion_tracker parameter and use it instead of VEC.
5268 (make_file_symbol_completion_list_1): Rename to...
5269 (collect_file_symbol_completion_matches): ... this. Add
5270 completion_tracker parameter and use it instead of VEC.
5271 (make_file_symbol_completion_list): Delete.
5272 (add_filename_to_list): Use completion_list instead of a VEC.
5273 (add_partial_filename_data::list): Now a completion_list.
5274 (make_source_files_completion_list): Work with a completion_list
5275 instead of a VEC.
5276 * symtab.h: Include "completer.h".
5277 (default_make_symbol_completion_list_break_on)
5278 (default_make_symbol_completion_list, make_symbol_completion_list)
5279 (make_symbol_completion_type, make_file_symbol_completion_list)
5280 (make_source_files_completion_list): Delete.
5281 (default_collect_symbol_completion_matches_break_on)
5282 (default_collect_symbol_completion_matches)
5283 (collect_symbol_completion_matches)
5284 (collect_symbol_completion_matches_type)
5285 (collect_file_symbol_completion_matches)
5286 (make_source_files_completion_list): New.
5287 * top.c (init_main): Don't install a rl_completion_entry_function
5288 hook. Install a rl_attempted_completion_function hook instead.
5289 * tui/tui-layout.c (layout_completer): Adjust to work with a
5290 completion_tracker.
5291 * tui/tui-regs.c (tui_reggroup_completer):
5292 * tui/tui-win.c (window_name_completer, focus_completer)
5293 (winheight_completer): Adjust to work with a completion_tracker.
5294 * value.c: Include "completer.h".
5295 (complete_internalvar): Adjust to work with a completion_tracker.
5296 * value.h (complete_internalvar): Likewise.
5297
6e1dbf8c
PA
52982017-07-17 Pedro Alves <palves@redhat.com>
5299
5300 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
5301 renames.
5302 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
5303 comments to completer_ftype's declaration.
5304 <completer_handle_brkchars>: Change type to
5305 completer_handle_brkchars_ftype.
5306 * command.h (completer_ftype): Add describing comment and give
5307 names to parameters.
5308 (completer_ftype_void): Rename to ...
5309 (completer_handle_brkchars_ftype) ... this. Add describing comment.
5310 (set_cmd_completer_handle_brkchars): Adjust.
5311 * completer.c (filename_completer_handle_brkchars): New function.
5312 (complete_line_internal_normal_command): New function, factored
5313 out from ...
5314 (complete_line_internal): ... here.
5315 (command_completer_handle_brkchars)
5316 (default_completer_handle_brkchars)
5317 (completer_handle_brkchars_func_for_completer): New functions.
5318 * completer.h (set_gdb_completion_word_break_characters): Delete
5319 declaration.
5320 (completer_handle_brkchars_func_for_completer): New declaration.
5321 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
5322 completer_handle_brkchars_func_for_completer.
5323
78b13106
PA
53242017-07-17 Pedro Alves <palves@redhat.com>
5325
5326 * completer.c (symbol_completer): New function, based on
5327 make_symbol_completion_list_fn.
5328 * completer.h (symbol_completer): New declaration.
5329 * guile/scm-cmd.c (cmdscm_completers): Adjust.
5330 * python/py-cmd.c (completers): Adjust.
5331 * symtab.c (make_symbol_completion_list_fn): Delete.
5332 * symtab.h (make_symbol_completion_list_fn): Delete.
5333 * cli/cli-decode.c (add_cmd): Adjust.
5334
bbf2f4df
PA
53352017-07-17 Pedro Alves <palves@redhat.com>
5336
5337 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
5338 * dwarf2read.c: Include "filename-seen-cache.h".
5339 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
5340 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
5341 * filename-seen-cache.c: New file.
5342 * filename-seen-cache.h: New file.
5343 * symtab.c: Include "filename-seen-cache.h".
5344 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
5345 (create_filename_seen_cache, clear_filename_seen_cache)
5346 (delete_filename_seen_cache, filename_seen): Delete, parts moved
5347 to filename-seen-cache.h/filename-seen-cache.c.
5348 (output_source_filename, sources_info)
5349 (maybe_add_partial_symtab_filename)
5350 (make_source_files_completion_list): Adjust to use
5351 filename_seen_cache.
5352
330cdd98
PA
53532017-07-17 Pedro Alves <palves@redhat.com>
5354
5355 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
5356 fields.
5357 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
5358 dwarf2_debug_sections*)): New.
5359 (dwarf2_per_objfile::dwarf2_per_objfile(const
5360 dwarf2_per_objfile&)): Declare as deleted.
5361 (dwarf2_per_objfile::operator=): Declare as deleted.
5362 (dwarf2_per_objfile::dwarf2_per_objfile)
5363 (dwarf2_per_objfile::~dwarf2_per_objfile)
5364 (dwarf2_per_objfile::free_cached_comp_units): New.
5365 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
5366 ctor. Call dwarf2_per_objfile's ctor manually.
5367 (dwarf2_locate_sections): Deleted/refactored as ...
5368 (dwarf2_per_objfile::locate_sections): ... this new method.
5369 (free_cached_comp_units): Defer to
5370 dwarf2_per_objfile::free_cached_comp_units.
5371 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
5372
8880f2a9
TT
53732017-07-14 Tom Tromey <tom@tromey.com>
5374
5375 PR rust/21764:
5376 * rust-exp.y (convert_ast_to_expression): Add "want_type"
5377 parameter.
5378 <UNOP_SIZEOF>: Split into separate case.
5379 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
5380
65547233
TT
53812017-07-14 Tom Tromey <tom@tromey.com>
5382
5383 PR rust/21763:
5384 * symtab.c (symbol_matches_domain): Add language_rust to special
5385 case.
5386 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
5387 treat LOC_TYPEDEF symbols as variables.
5388
8f14146e
PA
53892017-07-14 Pedro Alves <palves@redhat.com>
5390
5391 * symtab.c (make_file_symbol_completion_list_1): Iterate over
5392 symtabs matching all symtabs with SRCFILE as file name instead of
5393 only considering the first hit, with lookup_symtab.
5394
2347965c
SM
53952017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5396
5397 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
5398 operator_name parameters.
5399 (gen_expr): Update function call.
5400
40f4af28
SM
54012017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5402
5403 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
5404 parameter.
5405 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
5406 Likewise.
5407 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
5408 parameter, use agent_expr::gdbarch instead, update function
5409 calls.
5410 (locexpr_tracepoint_var_ref): Likewise.
5411 (loclist_tracepoint_var_ref): Likewise.
5412 * ax-gdb.c (gen_trace_static_fields): Likewise.
5413 (gen_traced_pop): Likewise.
5414 (gen_frame_args_address): Likewise.
5415 (gen_frame_locals_address): Likewise.
5416 (gen_var_ref): Likewise.
5417 (gen_struct_ref_recursive): Likewise.
5418 (gen_static_field): Likewise.
5419 (gen_maybe_namespace_elt): Likewise.
5420 (gen_expr): Likewise.
5421 (gen_trace_for_var): Likewise.
5422 (gen_trace_for_expr): Likewise.
5423 (gen_trace_for_return_address): Likewise.
5424
053f8057
SM
54252017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5426
5427 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
5428 parameter.
5429 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
5430
6661ad48
SM
54312017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5432
5433 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
5434 from ax, update calls.
5435 (gen_usual_arithmetic): Likewise.
5436 (gen_integral_promotions): Likewise.
5437 (gen_bitfield_ref): Likewise.
5438 (gen_primitive_field): Likewise.
5439 (gen_struct_ref_recursive): Likewise.
5440 (gen_struct_ref): Likewise.
5441 (gen_maybe_namespace_elt): Likewise.
5442 (gen_struct_elt_for_reference): Likewise.
5443 (gen_namespace_elt): Likewise.
5444 (gen_aggregate_elt_ref): Likewise.
5445 (gen_expr): Get gdbarch from ax, update calls.
5446 (gen_expr_binop_rest): Likewise.
5447
c55a47e7
PA
54482017-07-13 Pedro Alves <palves@redhat.com>
5449
5450 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
5451 as default tdesc.
5452 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
5453 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
5454 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
5455 tdesc_amd64_linux as default tdesc. Get final tdesc from the
5456 tdep.
5457 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
5458 Get final tdesc from the tdep.
5459 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
5460 default tdesc.
5461 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
5462 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
5463 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
5464 Use it as default tdesc.
5465 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
5466 down to amd_init_abi. No longer handle fallback tdesc here.
5467 * amd64-tdep.h (tdesc_x32): Declare.
5468 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
5469 parameter.
5470 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
5471 as default tdesc.
5472
55efceab
AA
54732017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5474
5475 * s390-linux-tdep.c (s390_process_record): Add support for
5476 instructions new in arch12.
5477
0aa37b65
JB
54782017-07-11 John Baldwin <jhb@FreeBSD.org>
5479
5480 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
5481 PT_GETFSBASE and PT_GETGSBASE.
5482 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
5483 PT_SETGSBASE.
5484
48aeef91
JB
54852017-07-11 John Baldwin <jhb@FreeBSD.org>
5486
5487 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
5488 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
5489 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
5490 those rules.
5491 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
5492 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
5493 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
5494 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
5495 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
5496 * features/i386/amd64.xml: Add 64bit-segments.xml.
5497 * features/i386/amd64-avx-avx512.c: Regenerated.
5498 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
5499 * features/i386/amd64-avx-mpx.c: Regenerated.
5500 * features/i386/amd64-avx.c: Regenerated.
5501 * features/i386/amd64-mpx.c: Regenerated.
5502 * features/i386/amd64.c: Regenerated.
5503 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
5504 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
5505 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
5506 * regformats/i386/amd64-avx.dat: Regenerated.
5507 * regformats/i386/amd64-mpx.dat: Regenerated.
5508 * regformats/i386/amd64.dat: Regenerated.
5509
77c501bc
YQ
55102017-07-10 Yao Qi <yao.qi@linaro.org>
5511
5512 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
5513 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
5514
6dc8d757
AK
55152017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
5516
5517 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
5518 unsetenv.
5519 * gnulib/aclocal.m4: Regenerate.
5520 * gnulib/config.in: Regenerate.
5521 * gnulib/configure: Regenerate.
5522 * gnulib/import/Makefile.am: Regenerate.
5523 * gnulib/import/Makefile.in: Regenerate.
5524 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5525 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5526 * gnulib/import/m4/environ.m4: New file.
5527 * gnulib/import/m4/setenv.m4: New file.
5528 * gnulib/import/setenv.c: New file.
5529 * gnulib/import/unsetenv.c: New file.
5530
266934d1
SM
55312017-07-09 Simon Marchi <simon.marchi@ericsson.com>
5532
5533 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
5534 address when op is DW_OP_addr.
5535
03278692
TT
55362017-07-09 Tom Tromey <tom@tromey.com>
5537
5538 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
5539 check and apply to outer type.
5540
4b654465
JB
55412017-07-07 John Baldwin <jhb@FreeBSD.org>
5542
5543 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
5544 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
5545 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
5546 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
5547
2af9fc44
JB
55482017-07-07 John Baldwin <jhb@FreeBSD.org>
5549
5550 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
5551
382b69bb
JB
55522017-07-07 John Baldwin <jhb@FreeBSD.org>
5553
5554 * corelow.c (get_core_siginfo): Remove.
5555 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
5556 instead of get_core_siginfo.
5557 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
5558 * gdbarch.h: Re-generate.
5559 * gdbarch.c: Re-generate.
5560 * linux-tdep.c (linux_core_xfer_siginfo): New.
5561 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
5562
6e5eab33
JB
55632017-07-07 John Baldwin <jhb@FreeBSD.org>
5564
5565 * corelow.c (thread_section_name): Move to ...
5566 * gdbcore.h (thread_section_name): ... here.
5567
929edea9
JB
55682017-07-07 John Baldwin <jhb@FreeBSD.org>
5569
5570 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
5571 (struct siginfo32): New.
5572 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
5573 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
5574 via ptrace(PT_LWPINFO).
5575
762c974a
JB
55762017-07-07 John Baldwin <jhb@FreeBSD.org>
5577
5578 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
5579 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
5580 (fbsd_get_siginfo_type): New.
5581 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5582 (_initialize_fbsd_tdep): New.
5583
33c5cd75
DB
55842017-07-06 David Blaikie <dblaikie@gmail.com>
5585
5586 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
5587 a singular dwo_unit*) to support multiple CUs in the same way that
5588 multiple TUs are supported.
5589 (create_cus_hash_table): Replace create_dwo_cu with a function for
5590 parsing multiple CUs from a DWO file.
5591 (open_and_init_dwo_file): Use create_cus_hash_table rather than
5592 create_dwo_cu.
5593 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
5594 htab_find, rather than comparing the signature to a singleton CU in
5595 the dwo_file.
5596
8455d262
PA
55972017-07-06 Pedro Alves <palves@redhat.com>
5598
5599 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
5600
4da3eb35
PA
56012017-07-04 Pedro Alves <palves@redhat.com>
5602
5603 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
5604 * gdbtypes.h (TYPE_STATIC): Delete.
5605 (struct fn_field) <is_public, is_abstract, is_static, is_final,
5606 is_synchronized, is_native>: Delete.
5607 <dummy>: Bump.
5608 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
5609 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
5610 (TYPE_FN_FIELD_ABSTRACT): Delete.
5611
5bfd255c
SM
56122017-07-03 Simon Marchi <simon.marchi@ericsson.com>
5613
5614 * buffer.h (buffer_finish): Fix spelling mistakes.
5615
25c54127
EZ
56162017-07-01 Eli Zaretskii <eliz@gnu.org>
5617
5618 * .dir-locals.el: Automatically switch to C-style comments in
5619 versions of Emacs that support the feature.
5620
dc4bde35
SDJ
56212017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
5622 Pedro Alves <palves@redhat.com>
5623
5624 PR cli/21688
5625 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
5626 (process_next_line): New variable 'inline_cmd'.
5627 Adjust 'if' clauses for "python", "compile" and "guile" to use
5628 'command_name_equals' and check for '!inline_cmd'.
5629
51ed89aa
SDJ
56302017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
5631
5632 PR cli/21688
5633 * cli/cli-script.c (command_name_equals_not_inline): New function.
5634 (process_next_line): Adjust 'if' clauses for "python", "compile"
5635 and "guile" to use command_name_equals_not_inline.
5636
eb17d413
PA
56372017-06-29 Pedro Alves <palves@redhat.com>
5638
5639 * completer.c (expression_completer): Call
5640 linespec_location_completer instead of location_completer.
5641
195bcdd5
PA
56422017-06-29 Pedro Alves <palves@redhat.com>
5643
5644 * completer.c (expression_completer): Remove code that recomputes
5645 'text' from 'word'.
5646
adc764e7
YQ
56472017-06-29 Yao Qi <yao.qi@linaro.org>
5648
5649 * regformats/regdat.sh: Generate code with
5650 "ifndef IN_PROCESS_AGENT".
5651
6e75794e
PA
56522017-06-28 Pedro Alves <palves@redhat.com>
5653
5654 * command.h: Include "common/scoped_restore.h".
5655
bc491f2e
YQ
56562017-06-28 Yao Qi <yao.qi@linaro.org>
5657
5658 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
5659 instead of obstack_grow.
5660
41664b45
DG
56612017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
5662
5663 PR gdb/21337
5664 * symfile.c (reread_symbols): Call objfiles_changed just before
5665 read_symbols.
5666
6da67eb1
PA
56672017-06-27 Pedro Alves <palves@redhat.com>
5668
5669 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
5670 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
5671 (completion_list_add_symbol, completion_list_add_msymbol):
5672 ... these new functions.
5673 (add_symtab_completions)
5674 (default_make_symbol_completion_list_break_on_1): Adjust.
5675
23732b1e
PA
56762017-06-27 Pedro Alves <palves@redhat.com>
5677
5678 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
5679 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
5680 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
5681 dtor.
5682 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
5683 'storage_obstack' field an auto_obstack. In-class initialize all
5684 non-bitfield fields. Make minsyms_read bool.
5685 * symfile.c (read_symbols): Adjust.
5686
a4d1e79a
AH
56872017-06-27 Alan Hayward <alan.hayward@arm.com>
5688
5689 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
5690 (gdbsim_store_register): Likewise.
5691
8268c778
PA
56922017-06-27 Pedro Alves <palves@redhat.com>
5693
5694 * c-exp.y (name_obstack): Now an auto_obstack.
5695 (yylex): Use auto_obstack::clear.
5696 (c_parse): Use auto_obstack::clear instead of reinitializing and
5697 freeing the obstack.
5698 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
5699 * d-exp.y (name_obstack): Now an auto_obstack.
5700 (yylex): Use auto_obstack::clear.
5701 (d_parse): Use auto_obstack::clear instead of reinitializing and
5702 freeing the obstack.
5703 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
5704 auto_obstack.
5705 * dwarf2read.c (create_addrmap_from_index)
5706 (dwarf2_build_psymtabs_hard)
5707 (update_enumeration_type_from_children): Likewise.
5708 * gdb_obstack.h (auto_obstack): New type.
5709 * go-exp.y (name_obstack): Now an auto_obstack.
5710 (build_packaged_name): Use auto_obstack::clear.
5711 (go_parse): Use auto_obstack::clear instead of reinitializing and
5712 freeing the obstack.
5713 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
5714 auto_obstack.
5715 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
5716 * rust-exp.y (work_obstack): Now an auto_obstack.
5717 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
5718 reinitializing and freeing the obstack.
5719 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
5720 (host_char_to_target): Use auto_obstack.
5721 * utils.h (make_cleanup_obstack_free): Delete declaration.
5722 * valprint.c (generic_emit_char, generic_printstr): Use
5723 auto_obstack.
5724
db665f42
SM
57252017-06-27 Simon Marchi <simon.marchi@ericsson.com>
5726
5727 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
5728 thread.
5729 (darwin_init_thread_list): Don't update dummy thread.
5730 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
5731
873c0814
SM
57322017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5733
5734 * record-full.c (netorder16): Remove.
5735
8b5a7a6e
SM
57362017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5737
5738 * common/diagnostics.h: Define macros for GCC.
5739 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
5740 * common/vec.h: Include diagnostics.h.
5741 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
5742 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
5743 warning.
5744
d1435379
SM
57452017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5746
5747 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
5748 New macro.
5749 * ada-lex.l: Ignore deprecated register warnings.
5750
cc75e0fd
SM
57512017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5752
5753 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
5754 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
5755
07809eaf
SM
57562017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5757
5758 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
5759 its own line.
5760
f076f034
SM
57612017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5762
5763 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
5764
0dd5cbc5
AH
57652017-06-23 Alan Hayward <alan.hayward@arm.com>
5766
5767 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
5768 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
5769 (xtensa_register_read_masked): Likewise.
5770
d4c6ce5b
SDJ
57712017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
5772
5773 * common/environ.c (gdb_environ::unset): Update comment.
5774
16892a03
AH
57752017-06-22 Alan Hayward <alan.hayward@arm.com>
5776
5777 * python/py-unwind.c (pyuw_sniffer): Allocate space for
5778 registers.
5779
d7dcbefc
AH
57802017-06-22 Alan Hayward <alan.hayward@arm.com>
5781
5782 * record-full.c (record_full_exec_insn): Use byte_vector.
5783
b30ff123
YQ
57842017-06-22 Yao Qi <yao.qi@linaro.org>
5785
5786 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
5787 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
5788
4fa847d7
AH
57892017-06-22 Alan Hayward <alan.hayward@arm.com>
5790
5791 * remote.c (cached_reg): Move from here...
5792 * regcache.h (cached_reg): ...to here.
5793 * python/py-unwind.c (struct reg_info): Remove.
5794 (cached_frame_info): Use cached_reg_t.
5795 (pyuw_prev_register): Likewise.
5796 (pyuw_sniffer): Use cached_reg_t and allocate registers.
5797 (pyuw_dealloc_cache): Free all registers.
5798
f4906a9a
PA
57992017-06-22 Pedro Alves <palves@redhat.com>
5800 Simon Marchi <simon.marchi@ericsson.com>
5801
5802 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
5803 warning.
5804 * common/diagnostics.h: New file.
5805
b45a1208
PA
58062017-06-22 Pedro Alves <palves@redhat.com>
5807
5808 * common/agent.h: Add include guards.
5809
e4da2c61
SM
58102017-06-21 Simon Marchi <simon.marchi@ericsson.com>
5811
5812 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
5813 talk about addressable units instead of bytes.
5814
96160d60
SDJ
58152017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5816
5817 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
5818 of '::const_iterator'.
5819
9a6c7d9c
SDJ
58202017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5821
5822 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5823 'unittests/environ-selftests.c'.
5824 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
5825 * charset.c (find_charset_names): Declare object 'iconv_env'.
5826 Update code to use 'iconv_env' object. Remove call to
5827 'free_environ'.
5828 * common/environ.c: Include <utility>.
5829 (make_environ): Delete function.
5830 (free_environ): Delete function.
5831 (gdb_environ::clear): New function.
5832 (gdb_environ::operator=): New function.
5833 (gdb_environ::get): Likewise.
5834 (environ_vector): Delete function.
5835 (set_in_environ): Delete function.
5836 (gdb_environ::set): New function.
5837 (unset_in_environ): Delete function.
5838 (gdb_environ::unset): New function.
5839 (gdb_environ::envp): Likewise.
5840 * common/environ.h: Include <vector>.
5841 (struct gdb_environ): Delete; transform into...
5842 (class gdb_environ): ... this class.
5843 (free_environ): Delete prototype.
5844 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
5845 environ_vector): Likewise.
5846 * infcmd.c (run_command_1): Update code to call
5847 'envp' from 'gdb_environ' class.
5848 (environment_info): Update code to call methods from 'gdb_environ'
5849 class.
5850 (unset_environment_command): Likewise.
5851 (path_info): Likewise.
5852 (path_command): Likewise.
5853 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
5854 (inferior::inferior): Initialize 'environment' using the host's
5855 information.
5856 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
5857 Include "environ.h".
5858 (class inferior) <environment>: Change type from 'struct
5859 gdb_environ' to 'gdb_environ'.
5860 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
5861 methods from 'gdb_environ' class.
5862 * solib.c (solib_find_1): Likewise
5863 * unittests/environ-selftests.c: New file.
5864
75c554cf
YQ
58652017-06-20 Yao Qi <yao.qi@linaro.org>
5866
5867 * features/i386/i386-linux.xml: Exchange the order of including
5868 32bit-linux.xml and 32bit-sse.xml.
5869 * features/i386/i386-linux.c: Regenerated.
5870
72ddacb7
YQ
58712017-06-20 Yao Qi <yao.qi@linaro.org>
5872
5873 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
5874 Delete copy ctor and assignment operator.
5875 (tdesc_type): Likewise.
5876 (tdesc_feature): Likewise.
5877 (tdesc_free_reg): Remove.
5878 (tdesc_create_reg): Use new.
5879 (tdesc_free_type): Remove.
5880 (tdesc_create_vector): Use new.
5881 (tdesc_create_union): Likewise.
5882 (tdesc_create_flags): Likewise.
5883 (tdesc_create_enum): Likewise.
5884 (tdesc_free_feature): Delete.
5885 (free_target_description): Use delete.
5886
325c9fd4
JB
58872017-06-19 John Baldwin <jhb@FreeBSD.org>
5888
5889 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
5890 registers.
5891
16b7a719
PA
58922017-06-19 Pedro Alves <palves@redhat.com>
5893
5894 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
5895 after gdb::unlinker.
5896
1c8e01c9
SDJ
58972017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
5898
5899 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
5900 gdb_environ to access an environment variable.
5901
ffce45d2
TP
59022017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
5903
5904 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
5905 gdb_byte*.
5906
1d4fbac9
SM
59072017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5908
5909 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
5910
8465943a
SM
59112017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5912
5913 * configure: Re-generate.
5914 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
5915
3e019bdc
SM
59162017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5917
5918 * configure: Re-generate.
5919 * warning.m4: Pass -Werror to compiler when checking for
5920 supported warning flags.
5921
cf0dd6f0
SM
59222017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5923
5924 * Makefile.in (COMPILE.pre): Add "-x c++".
5925
6f98355c
YQ
59262017-06-16 Alan Hayward <alan.hayward@arm.com>
5927 Pedro Alves <palves@redhat.com>
5928 Yao Qi <yao.qi@linaro.org>
5929
5930 * defs.h (RequireLongest): New.
5931 (extract_integer): Declare function template.
5932 (extract_signed_integer): Remove the declaration, but define it
5933 static inline.
5934 (extract_unsigned_integer): Likewise.
5935 (store_integer): Declare function template.
5936 (store_signed_integer): Remove the declaration, but define it
5937 static inline.
5938 (store_unsigned_integer): Likewise.
5939 * findvar.c (extract_integer): New function template.
5940 (extract_signed_integer): Remove.
5941 (extract_unsigned_integer): Remove.
5942 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
5943 instantiations.
5944 (store_integer): New function template.
5945 (store_signed_integer): Remove.
5946 (store_unsigned_integer): Remove.
5947 (store_integer): Explicit instantiations.
5948 * regcache.c (regcache_raw_read_signed): Update.
5949 (regcache::raw_read): New function.
5950 (regcache::raw_read_signed): Remove.
5951 (regcache::raw_read_unsigned): Remove.
5952 (regcache_raw_read_unsigned): Update.
5953 (regcache_raw_write_unsigned): Update.
5954 (regcache::raw_write_signed): Remove.
5955 (regcache::raw_write): New function.
5956 (regcache_cooked_read_signed): Update.
5957 (regcache::raw_write_unsigned): Remove.
5958 (regcache::cooked_read_signed): Remove.
5959 (regcache_cooked_read_unsigned): Update.
5960 (regcache::cooked_read_unsigned): Remove.
5961 (regcache_cooked_write_signed): Update.
5962 (regcache_cooked_write_unsigned): Update.
5963 * regcache.h (regcache) <raw_read_signed>: Remove.
5964 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
5965 <raw_read, raw_write>: New.
5966 <cooked_read_signed, cooked_write_signed>: Remove.
5967 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
5968 <cooked_read, cooked_write>: New.
5969 * sh64-tdep.c (sh64_pseudo_register_read): Update.
5970 (sh64_pseudo_register_write): Update.
5971
a87dc45a
AK
59722017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
5973
5974 * arc-tdep.c (arc_disassembler_options): New variable.
5975 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
5976 of default_print_insn.
5977 (arc_delayed_print_insn): Set info->section when needed,
5978 use default_print_insn to retrieve a disassembler.
5979
45159d6a
SDJ
59802017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
5981
5982 PR gdb/21574
5983 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
5984 to mention $SHELL and startup-with-shell.
5985
b46c4cf0
MF
59862017-06-14 Max Filippov <jcmvbkbc@gmail.com>
5987
5988 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
5989
6394c606
YQ
59902017-06-14 Yao Qi <yao.qi@linaro.org>
5991
5992 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
5993 default_print_insn instead of print_insn_aarch64.
5994 * arm-tdep.c (gdb_print_insn_arm): Call
5995 default_print_insn instead of print_insn_big_arm
5996 and print_insn_little_arm.
5997 * i386-tdep.c (i386_print_insn): Call default_print_insn
5998 instead of print_insn_i386.
5999 * ia64-tdep.c (ia64_print_insn): Call
6000 default_print_insn instead of print_insn_ia64.
6001 * mips-tdep.c (gdb_print_insn_mips): Call
6002 default_print_insn instead of print_insn_big_mips
6003 and print_insn_little_mips.
6004 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
6005 instead of print_insn_spu.
6006
d5722aa2
PA
60072017-06-14 Pedro Alves <palves@redhat.com>
6008
6009 * ada-lang.c: Include "common/byte-vector.h".
6010 (ada_value_primitive_packed_val): Use gdb::byte_vector.
6011 * charset.c (wchar_iterator::iterate): Resize the vector instead
6012 of reserving it.
6013 * common/byte-vector.h: Include "common/def-vector.h".
6014 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
6015 * cli/cli-dump.c: Include "common/byte-vector.h".
6016 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
6017 * common/byte-vector.h: New file.
6018 * common/def-vector.h: New file.
6019 * common/default-init-alloc.h: New file.
6020 * dwarf2loc.c: Include "common/byte-vector.h".
6021 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
6022 instead of reserving it.
6023 * dwarf2read.c: Include "common/byte-vector.h".
6024 (data_buf::m_vec): Now a gdb::byte_vector.
6025 * gdb_regex.c: Include "common/def-vector.h".
6026 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
6027 * mi/mi-main.c: Include "common/byte-vector.h".
6028 (mi_cmd_data_read_memory): Use gdb::byte_vector.
6029 * printcmd.c: Include "common/byte-vector.h".
6030 (print_scalar_formatted): Use gdb::byte_vector.
6031 * valprint.c: Include "common/byte-vector.h".
6032 (maybe_negate_by_bytes, print_decimal_chars): Use
6033 gdb::byte_vector.
6034
01ec7a27
SM
60352017-06-13 Simon Marchi <simon.marchi@ericsson.com>
6036
6037 * darwin-nat.c: Include "nat/fork-inferior.h".
6038
848d9074
SM
60392017-06-13 Simon Marchi <simon.marchi@ericsson.com>
6040
6041 * configure.nat: Factor out Darwin bits that are not
6042 architecture-specific. Add fork-inferior.o.
6043
3b912944
SM
60442017-06-13 Simon Marchi <simon.marchi@ericsson.com>
6045
6046 * configure.nat: Factor out AIX bits that are not
6047 architecture-specific. Add fork-inferior.o.
6048
55acdf22
AA
60492017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6050
6051 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
6052 (read_pieced_value, write_pieced_value): ...here. Reduce to
6053 wrappers that just call rw_pieced_value.
6054
f65e2044
AA
60552017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6056
6057 * dwarf2loc.c (write_pieced_value): When writing the data for a
6058 memory piece, use write_memory_with_notification instead of
6059 write_memory.
6060
23f945bf
AA
60612017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6062
6063 * valops.c (read_value_memory): Change embedded_offset to
6064 represent a bit offset instead of a byte offset.
6065 * value.h (read_value_memory): Adjust comment.
6066
f236533e
AA
60672017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6068
6069 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
6070 dest_offset_bits and source_offset_bits.
6071 (write_pieced_value): Likewise.
6072
65d84b76
AA
60732017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6074
6075 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
6076 given by DW_OP_bit_piece.
6077 (write_pieced_value): Likewise.
6078
242d31ab
AA
60792017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6080
6081 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
6082 some other preparations to the places where sufficient information
6083 is available.
6084 (write_pieced_value): Likewise.
6085
03c8af18
AA
60862017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6087
6088 * dwarf2loc.c (bits_to_bytes): New function.
6089 (read_pieced_value): Fix offset calculations for register pieces
6090 on big-endian targets.
6091 (write_pieced_value): Likewise.
6092
840989c1
AA
60932017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6094
6095 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
6096 (write_pieced_value): Likewise.
6097
359b19bb
AA
60982017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6099
6100 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
6101 transfer the source value's least significant bits, instead of its
6102 lowest-addressed ones. Rename type_len to max_offset.
6103 (read_pieced_value): Mirror above changes to write_pieced_value as
6104 applicable.
6105
07c9ca3b
AA
61062017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6107
6108 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
6109 truncate full bytes from dest_offset_bits before using it as an
6110 offset into the buffer.
6111
f1cc9874
AA
61122017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6113
6114 * dwarf2loc.c (write_pieced_value): Include transfer size in
6115 byte-wise check.
6116
cdaac320
AA
61172017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6118
6119 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
6120 calculation of this_size.
6121
af547a96
AA
61222017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6123
6124 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
6125 when targeting a bit-field.
6126 (write_pieced_value): Likewise.
6127
ddd7882a
AA
61282017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6129
6130 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
6131 (allocate_piece_closure): Drop addr_size parameter.
6132 (dwarf2_evaluate_loc_desc_full): Adjust call to
6133 allocate_piece_closure.
6134
e9352324
AA
61352017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6136
6137 PR gdb/21226
6138 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
6139 the LSB end, independent of endianness.
6140
d5d1163e
AA
61412017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6142
6143 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
6144 size capping.
6145
032bb6ea
YQ
61462017-06-13 Yao Qi <yao.qi@linaro.org>
6147
6148 * mips-linux-nat.c: Move include features/mips*-linux.c to
6149 mips-linux-tdep.c.
6150 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
6151 to mips-linux-tdep.c.
6152 * mips-linux-tdep.c: Include features/mips*-linux.c
6153 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
6154 functions.
6155 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
6156 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
6157 (tdesc_mips64_dsp_linux): Declare.
6158
f12f6bad
TT
61592017-06-12 Tom Tromey <tom@tromey.com>
6160
6161 * valprint.h (val_print_type_code_int): Remove.
6162 * valprint.c (generic_val_print_int): Always call
6163 val_print_scalar_formatted.
6164 (val_print_type_code_int): Remove.
6165 * printcmd.c (print_scalar_formatted): Handle options->format==0.
6166 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
6167 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
6168 * ada-valprint.c (ada_val_print_num): Use
6169 val_print_scalar_formatted.
6170
d9109c80
TT
61712017-06-12 Tom Tromey <tom@tromey.com>
6172
6173 * printcmd.c (print_scalar_formatted): Unify the two switches.
6174 Don't convert scalars to LONGEST.
6175
4ac0cb1c
TT
61762017-06-12 Tom Tromey <tom@tromey.com>
6177
6178 PR exp/16225:
6179 * valprint.h (print_decimal_chars): Update.
6180 * valprint.c (maybe_negate_by_bytes): New function.
6181 (print_decimal_chars): Add "is_signed" argument.
6182 * printcmd.c (print_scalar_formatted): Update.
6183
30a25466
TT
61842017-06-12 Tom Tromey <tom@tromey.com>
6185
6186 PR exp/16225:
6187 * valprint.h (print_binary_chars, print_hex_chars): Update.
6188 * valprint.c (val_print_type_code_int): Update.
6189 (print_binary_chars): Add "zero_pad" argument.
6190 (emit_octal_digit): New function.
6191 (print_octal_chars): Don't zero-pad.
6192 (print_decimal_chars): Likewise.
6193 (print_hex_chars): Add "zero_pad" argument.
6194 * sh64-tdep.c (sh64_do_fp_register): Update.
6195 * regcache.c (regcache::dump): Update.
6196 * printcmd.c (print_scalar_formatted): Update.
6197 * infcmd.c (default_print_one_register_info): Update.
6198
b3464d03
PA
61992017-06-12 Pedro Alves <palves@redhat.com>
6200 Alan Hayward <alan.hayward@arm.com>
6201
6202 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
6203 (mips_eabi_push_dummy_call): Rename local 'regsize' to
6204 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
6205 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
6206 Assert that abi_regsize bytes fit in 'ref_valbuf'.
6207
4b76cda9
PA
62082017-06-12 Pedro Alves <palves@redhat.com>
6209
6210 * dwarf2read.c (mapped_symtab::data): Now a vector of
6211 symtab_index_entry instead of vector of
6212 std::unique_ptr<symtab_index_entry>. All users adjusted to check
6213 whether an element's name is NULL instead of checking whether the
6214 element itself is NULL.
6215 (find_slot): Change return type. Adjust.
6216 (hash_expand, , add_index_entry, uniquify_cu_indices)
6217 (write_hash_table): Adjust.
6218
e8f8bcb3
PA
62192017-06-12 Pedro Alves <palves@redhat.com>
6220
6221 * dwarf2read.c (recursively_count_psymbols): New function.
6222 (write_psymtabs_to_index): Call it to compute number of psyms and
6223 pass estimate size of psyms_seen to unordered_set's ctor.
6224
70a1152b
PA
62252017-06-12 Pedro Alves <palves@redhat.com>
6226
6227 * dwarf2read.c (write_hash_table): Check if key already exists
6228 before emplacing.
6229
c2f134ac
PA
62302017-06-12 Pedro Alves <palves@redhat.com>
6231
6232 * dwarf2read.c (data_buf::append_space): Rename to...
6233 (data_buf::grow): ... this, and make private. Adjust all callers.
6234 (data_buf::append_uint): New method.
6235 (add_address_entry, write_one_signatured_type)
6236 (write_psymtabs_to_index): Use it.
6237
a81e6d4d
PA
62382017-06-12 Pedro Alves <palves@redhat.com>
6239
6240 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
6241 (file_write (FILE *, const std::vector<Elem>&)): Delete.
6242 (data_buf::file_write): Call ::fwrite directly.
6243
6fd931f2
PA
62442017-06-12 Pedro Alves <palves@redhat.com>
6245
6246 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
6247 std::vector::erase.
6248
bc8f2430
JK
62492017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6250
6251 Code cleanup: C++ify .gdb_index producer.
6252 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
6253 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
6254 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
6255 (create_strtab, add_string): Remove.
6256 (file_write, data_buf): New.
6257 (struct symtab_index_entry): Use std::vector for cu_indices.
6258 (struct mapped_symtab): Use std::vector for data.
6259 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
6260 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
6261 Remove.
6262 (find_slot): Change return type. Update it to the new data structures.
6263 (hash_expand, add_index_entry): Update it to the new data structures.
6264 (offset_type_compare): Remove.
6265 (uniquify_cu_indices): Update it to the new data structures.
6266 (c_str_view, c_str_view_hasher, vector_hasher): New.
6267 (add_indices_to_cpool): Remove.
6268 (write_hash_table): Update it to the new data structures.
6269 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
6270 (eq_psymtab_cu_index): Remove.
6271 (psym_index_map): New typedef.
6272 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
6273 reference and std::unordered_map for cu_index_htab.
6274 (add_address_entry, add_address_entry_worker, write_address_map)
6275 (write_psymbols): Update it to the new data structures.
6276 (write_obstack): Remove.
6277 (struct signatured_type_index_data): Change types_list to a data_buf
6278 reference and psyms_seen to a std::unordered_set reference.
6279 (write_one_signatured_type, recursively_write_psymbols)
6280 (write_psymtabs_to_index): Update it to the new data structures.
6281
c4dcb155
SM
62822017-06-11 Simon Marchi <simon.marchi@ericsson.com>
6283
6284 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
6285 separate-debug-file commands.
6286 * symfile.h (separate_debug_file_debug): New global.
6287 * symfile.c (separate_debug_file_debug): New global.
6288 (separate_debug_file_exists, find_separate_debug_file): Add
6289 debug output.
6290 (_initialize_symfile): Add "set debug separate-debug-file"
6291 command.
6292 * build-id.c (build_id_to_debug_bfd,
6293 find_separate_debug_file_by_buildid): Add debug output.
6294
6d45d4b4
SM
62952017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
6296
6297 * gdbarch.sh (displaced_step_free_closure): Remove.
6298 * gdbarch.h, gdbarch.c: Re-generate.
6299 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
6300 displaced_step_free_closure.
6301 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6302 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6303 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6304 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
6305 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
6306 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6307 * arch-utils.h (simple_displaced_step_free_closure): Remove.
6308 * arch-utils.c (simple_displaced_step_free_closure): Remove.
6309 * infrun.c (displaced_step_clear): Call xfree instead of
6310 gdbarch_displaced_step_free_closure.
6311
2f91880f
SDJ
63122017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
6313
6314 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
6315 NULL".
6316
b8b6e72f
AH
63172017-06-08 Alan Hayward <alan.hayward@arm.com>
6318
6319 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
6320 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
6321 (mn10300_push_dummy_call): Likewise.
6322
5369082e
AH
63232017-06-08 Alan Hayward <alan.hayward@arm.com>
6324
6325 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
6326
ff4ca5ac
AH
63272017-06-08 Alan Hayward <alan.hayward@arm.com>
6328
6329 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
6330
aefd8b33
SDJ
63312017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6332
6333 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
6334 able to start inferiors using a shell.
6335 (New remote packets): Announce new packet "QStartupWithShell".
6336 * remote.c: Add PACKET_QStartupWithShell.
6337 (extended_remote_create_inferior): Handle new
6338 PACKET_QStartupWithShell.
6339 (remote_protocol_features) <QStartupWithShell>: New entry for
6340 PACKET_QStartupWithShell.
6341 (_initialize_remote): Call "add_packet_config_cmd" for
6342 QStartupShell.
6343
2090129c
SDJ
63442017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6345 Pedro Alves <palves@redhat.com>
6346
6347 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
6348 and "nat/fork-inferior.h".
6349 * common/common-inferior.h: New file, with contents from
6350 "gdb/inferior.h".
6351 * commom/common-utils.c: Include "common-utils.h".
6352 (stringify_argv): New function.
6353 * common/common-utils.h (stringify_argv): New prototype.
6354 * configure.nat: Add "fork-inferior.o" as a dependency for
6355 "*linux*", "fbsd*" and "nbsd*" hosts.
6356 * corefile.c (get_exec_file): Update comment.
6357 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
6358 instead of "startup_inferior".
6359 (darwin_create_inferior): Call "add_thread_silent" after
6360 "fork_inferior".
6361 * fork-child.c: Cleanup unnecessary includes.
6362 (SHELL_FILE): Move to "common/common-fork-child.c".
6363 (environ): Likewise.
6364 (exec_wrapper): Initialize.
6365 (get_exec_wrapper): New function.
6366 (breakup_args): Move to "common/common-fork-child.c"; rename to
6367 "breakup_args_for_exec".
6368 (escape_bang_in_quoted_argument): Move to
6369 "common/common-fork-child.c".
6370 (saved_ui): New variable.
6371 (prefork_hook): New function.
6372 (postfork_hook): Likewise.
6373 (postfork_child_hook): Likewise.
6374 (gdb_startup_inferior): Likewise.
6375 (fork_inferior): Move to "common/common-fork-child.c". Update
6376 function to support gdbserver.
6377 (startup_inferior): Likewise.
6378 * gdbcore.h (get_exec_file): Remove declaration.
6379 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
6380 instead of "startup_inferior". Call "add_thread_silent" after
6381 "fork_inferior".
6382 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
6383 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
6384 instead of "startup_inferior". Call "add_thread_silent" after
6385 "fork_inferior".
6386 * inferior.h: Include "common-inferior.h".
6387 (trace_start_error): Move to "common/common-utils.h".
6388 (trace_start_error_with_name): Likewise.
6389 (fork_inferior): Move prototype to "nat/fork-inferior.h".
6390 (startup_inferior): Likewise.
6391 (gdb_startup_inferior): New prototype.
6392 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
6393 * nat/fork-inferior.h: New file.
6394 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
6395 instead of "startup_inferior". Call "add_thread_silent" after
6396 "fork_inferior".
6397 * target.h (target_terminal_init): Move prototype to
6398 "target/target.h".
6399 (target_terminal_inferior): Likewise.
6400 (target_terminal_ours): Likewise.
6401 * target/target.h (target_terminal_init): New prototype, moved
6402 from "target.h".
6403 (target_terminal_inferior): Likewise.
6404 (target_terminal_ours): Likewise.
6405 * utils.c (gdb_flush_out_err): New function.
6406
043a4934
SDJ
64072017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6408
6409 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
6410 * common/common-gdbthread.h: New file, with parts from
6411 "gdb/gdbthread.h".
6412 * gdbthread.h: Include "common-gdbthread.h".
6413 (switch_to_thread): Moved to "common/common-gdbthread.h".
6414
15652511
SDJ
64152017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6416
6417 * Makefile.in (SFILES): Add "common/job-control.c".
6418 (HFILES_NO_SRCDIR): Add "common/job-control.h".
6419 (COMMON_OBS): Add "job-control.o".
6420 * common/job-control.c: New file, with contents from
6421 "gdb/inflow.c".
6422 * common/job-control.h: New file, with contents from "terminal.h".
6423 * fork-child.c: Include "job-control.h".
6424 * inflow.c: Include "job-control.h".
6425 (gdb_setpgid): Move to "common/common-inflow.c".
6426 (_initialize_inflow): Move setting of "job_control" to
6427 "handle_job_control".
6428 * terminal.h (job_control): Moved to "common/common-terminal.h".
6429 (gdb_setpgid): Likewise.
6430 * top.c: Include "job_control.h".
6431 * utils.c: Likewise.
6432 (job_control): Moved to "job-control.c".
6433
2d7cc5c7
PA
64342017-06-07 Pedro Alves <palves@redhat.com>
6435
6436 * Makefile.in (SFILES): Add gdb_regex.c.
6437 (COMMON_OBS): Add gdb_regex.o.
6438 * ada-lang.c (ada_add_standard_exceptions)
6439 (ada_add_exceptions_from_frame, name_matches_regex)
6440 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
6441 parameter type to compiled_regex. Adjust.
6442 (ada_exceptions_list): Use compiled_regex.
6443 * break-catch-throw.c (exception_catchpoint::pattern): Now a
6444 std::unique_ptr<compiled_regex>.
6445 (exception_catchpoint::~exception_catchpoint): Remove regfree
6446 call.
6447 (check_status_exception_catchpoint): Adjust to use compiled_regex.
6448 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
6449 * breakpoint.c (solib_catchpoint::compiled): Now a
6450 std::unique_ptr<compiled_regex>.
6451 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
6452 (check_status_catch_solib): Adjust to use compiled_regex.
6453 (add_solib_catchpoint): Adjust to use compiled_regex.
6454 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
6455 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
6456 compiled_regex reference. Adjust to use it.
6457 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
6458 declaration. Include "gdb_regex.h".
6459 (apropos_cmd): Change regex parameter to compiled_regex reference.
6460 * gdb_regex.c: New file.
6461 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
6462 declarations.
6463 (class compiled_regex): New.
6464 * linux-tdep.c: Include "common/gdb_optional.h".
6465 (struct mapping_regexes): New, factored out from
6466 mapping_is_anonymous_p, and adjusted to use compiled_regex.
6467 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
6468 gdb::optional and remove cleanups. Adjust to compiled_regex.
6469 * probe.c: Include "common/gdb_optional.h".
6470 (collect_probes): Use compiled_regex and gdb::optional and remove
6471 cleanups.
6472 * skip.c: Include "common/gdb_optional.h".
6473 (skiplist_entry::compiled_function_regexp): Now a
6474 gdb::optional<compiled_regex>.
6475 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
6476 (free_skiplist_entry): Remove regfree call.
6477 (compile_skip_regexp, skip_rfunction_p): Adjust to use
6478 compiled_regex and gdb::optional.
6479 * symtab.c: Include "common/gdb_optional.h".
6480 (search_symbols): Use compiled_regex and gdb::optional.
6481 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
6482 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
6483 to gdb_regex.c.
6484
50d6adef
AH
64852017-06-07 Alan Hayward <alan.hayward@arm.com>
6486
6487 * regcache.c (regcache::save): Avoid buffer use.
6488 (regcache::dump): Likewise.
6489
4a8a33c8
AH
64902017-06-07 Alan Hayward <alan.hayward@arm.com>
6491
6492 * sh-tdep.c (sh_pseudo_register_read): Remove
6493 MAX_REGISTER_SIZE.
6494 (sh_pseudo_register_write): Likewise.
6495 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
6496 (sh64_pseudo_register_write): Likewise
6497
d1be909e
AH
64982017-06-07 Alan Hayward <alan.hayward@arm.com>
6499
6500 * aarch64-tdep.c (aarch64_store_return_value): Use
6501 V_REGISTER_SIZE.
6502 (aarch64_pseudo_read_value): Likewise.
6503 (aarch64_pseudo_write): Likewise.
6504
f4a65042
YQ
65052017-06-06 Yao Qi <yao.qi@linaro.org>
6506
6507 * regformats/regdef.h (set_register_cache): Remove the
6508 declaration.
6509
9f7fb0aa
AH
65102017-06-06 Alan Hayward <alan.hayward@arm.com>
6511
6512 * frame.c (frame_unwind_register_signed): Use
6513 frame_unwind_register_value.
6514
e1e01040
PA
65152017-06-06 Pedro Alves <palves@redhat.com>
6516
6517 PR breakpoints/21553
6518 * breakpoint.c (create_breakpoints_sal_default)
6519 (init_breakpoint_sal, create_breakpoint_sal): Use
6520 gdb::unique_xmalloc_ptr for string parameters.
6521 (create_breakpoint): Constify 'extra_string' and 'cond_string'
6522 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
6523 (base_breakpoint_create_breakpoints_sal)
6524 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
6525 (strace_marker_create_breakpoints_sal)
6526 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
6527 string parameters.
6528 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
6529 gdb::unique_xmalloc_ptr for string parameters.
6530 (create_breakpoint): Constify 'extra_string' and 'cond_string'
6531 parameters.
6532
fbe654c8
AH
65332017-06-06 Alan Hayward <alan.hayward@arm.com>
6534
6535 * alpha-tdep.c (alpha_register_to_value): Use
6536 get_frame_register_value.
6537 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
6538
ae0d01d6
AH
65392017-06-06 Alan Hayward <alan.hayward@arm.com>
6540
6541 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
6542 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
6543 (ia64_value_to_register): Likewise.
6544 (ia64_extract_return_value): Likewise.
6545 (ia64_store_return_value): Likewise.
6546 (ia64_push_dummy_call): Likewise.
6547
49cf576c
JB
65482017-06-04 Joel Brobecker <brobecker@adacore.com>
6549
6550 GDB 8.0 released.
6551
26b6a6ab
SM
65522017-06-03 Simon Marchi <simon.marchi@ericsson.com>
6553
6554 * x86-linux-nat.c (struct arch_lwp_info): Remove.
6555
22827c51
SM
65562017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
6557
6558 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
6559 parameter.
6560 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
6561
0e05cf3a
SM
65622017-06-02 Simon Marchi <simon.marchi@ericsson.com>
6563
6564 * event-loop.c (poll_timers): Unallocate timer using delete
6565 instead of xfree.
6566
c1fc2657
SM
65672017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
6568
6569 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
6570 (struct breakpoint) <~breakpoint>: New.
6571 (struct watchpoint): Inherit from breakpoint.
6572 <~watchpoint>: New.
6573 <base>: Remove.
6574 (struct tracepoint): Inherit from breakpoint.
6575 <base>: Remove.
6576 * breakpoint.c (longjmp_breakpoint_ops): Remove.
6577 (struct longjmp_breakpoint): Inherit from breakpoint.
6578 <~longjmp_breakpoint>: New.
6579 <base>: Remove.
6580 (new_breakpoint_from_type): Remove casts.
6581 (watchpoint_in_thread_scope): Remove reference to base field.
6582 (watchpoint_del_at_next_stop): Likewise.
6583 (update_watchpoint): Likewise.
6584 (watchpoint_check): Likewise.
6585 (bpstat_check_watchpoint): Likewise.
6586 (set_longjmp_breakpoint): Likewise.
6587 (struct fork_catchpoint): Inherit from breakpoint.
6588 <base>: Remove.
6589 (struct solib_catchpoint): Inherit from breakpoint.
6590 <~solib_catchpoint>: New.
6591 <base>: Remove.
6592 (dtor_catch_solib): Change to ...
6593 (solib_catchpoint::~solib_catchpoint): ... this.
6594 (breakpoint_hit_catch_solib): Remove reference to base field.
6595 (add_solib_catchpoint): Likewise.
6596 (create_fork_vfork_event_catchpoint): Likewise.
6597 (struct exec_catchpoint): Inherit from breakpoint.
6598 <~exec_catchpoint>: New.
6599 <base>: Remove.
6600 (dtor_catch_exec): Change to ...
6601 (exec_catchpoint::~exec_catchpoint): ... this.
6602 (dtor_watchpoint): Change to ...
6603 (watchpoint::~watchpoint): ... this.
6604 (watch_command_1): Remove reference to base field.
6605 (catch_exec_command_1): Likewise.
6606 (base_breakpoint_dtor): Change to ...
6607 (breakpoint::~breakpoint): ... this.
6608 (base_breakpoint_ops): Remove dtor field value.
6609 (longjmp_bkpt_dtor): Change to ...
6610 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
6611 (strace_marker_create_breakpoints_sal): Remove reference to base
6612 field.
6613 (delete_breakpoint): Don't manually call breakpoint destructor.
6614 (create_tracepoint_from_upload): Remove reference to base field.
6615 (trace_pass_set_count): Likewise.
6616 (initialize_breakpoint_ops): Don't initialize
6617 momentary_breakpoint_ops, don't set dtors.
6618 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
6619 <~ada_catchpoint>: New.
6620 <base>: Remove.
6621 (create_excep_cond_exprs): Remove reference to base field.
6622 (dtor_exception): Change to ...
6623 (ada_catchpoint::~ada_catchpoint): ... this.
6624 (dtor_catch_exception): Remove.
6625 (dtor_catch_exception_unhandled): Remove.
6626 (dtor_catch_assert): Remove.
6627 (create_ada_exception_catchpoint): Remove reference to base
6628 field.
6629 (initialize_ada_catchpoint_ops): Don't set dtors.
6630 * break-catch-sig.c (struct signal_catchpoint): Inherit from
6631 breakpoint.
6632 <~signal_catchpoint>: New.
6633 <base>: Remove.
6634 (signal_catchpoint_dtor): Change to ...
6635 (signal_catchpoint::~signal_catchpoint): ... this.
6636 (create_signal_catchpoint): Remove reference to base field.
6637 (initialize_signal_catchpoint_ops): Don't set dtor.
6638 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
6639 from breakpoint.
6640 <~syscall_catchpoint>: New.
6641 <base>: Remove.
6642 (dtor_catch_syscall): Change to ...
6643 (syscall_catchpoint::~syscall_catchpoint): ... this.
6644 (create_syscall_event_catchpoint): Remove reference to base
6645 field.
6646 (initialize_syscall_catchpoint_ops): Don't set dtor.
6647 * break-catch-throw.c (struct exception_catchpoint): Inherit
6648 from breakpoint.
6649 <~exception_catchpoint>: New.
6650 <base>: Remove.
6651 (dtor_exception_catchpoint): Change to ...
6652 (exception_catchpoint::~exception_catchpoint): ... this.
6653 (handle_gnu_v3_exceptions): Remove reference to base field.
6654 (initialize_throw_catchpoint_ops): Don't set dtor.
6655 * ctf.c (ctf_get_traceframe_address): Remove reference to base
6656 field.
6657 * remote.c (remote_get_tracepoint_status): Likewise.
6658 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
6659 * tracefile.c (tracefile_fetch_registers): Likewise.
6660 * tracepoint.c (actions_command): Likewise.
6661 (validate_actionline): Likewise.
6662 (tfind_1): Likewise.
6663 (get_traceframe_location): Likewise.
6664 (find_matching_tracepoint_location): Likewise.
6665 (parse_tracepoint_status): Likewise.
6666 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
6667
3b0871f4
SM
66682017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
6669
6670 * breakpoint.c (struct longjmp_breakpoint): New struct.
6671 (is_tracepoint_type): Change return type to bool.
6672 (is_longjmp_type): New function.
6673 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
6674 (set_raw_breakpoint_without_location): Use
6675 new_breakpoint_from_type.
6676 (set_raw_breakpoint): Likewise.
6677
a5e364af
SM
66782017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
6679
6680 * breakpoint.c (new_breakpoint_from_type): New function.
6681 (create_breakpoint_sal): Use new_breakpoint_from_type and
6682 unique_ptr.
6683 (create_breakpoint): Likewise.
6684
ae3b3f34
SM
66852017-05-31 Simon Marchi <simon.marchi@ericsson.com>
6686
6687 * memattr.c (mem_info_command): Rename to ...
6688 (info_mem_command): ... this.
6689 (mem_enable_command): Rename to ...
6690 (enable_mem_command): ... this.
6691 (mem_disable_command): Rename to ...
6692 (disable_mem_command): ... this.
6693 (mem_delete_command): Rename to ...
6694 (delete_mem_command): ... this.
6695 (_initialize_mem): Adjust function names.
6696
13ace077
MM
66972017-05-31 Markus Metzger <markus.t.metzger@intel.com>
6698
6699 * btrace.c (handle_pt_insn_events): New.
6700 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
6701 STATUS. Split into this and ...
6702 (handle_pt_insn_event_flags): ... this.
6703
c56ccc05
MM
67042017-05-31 Markus Metzger <markus.t.metzger@intel.com>
6705
6706 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
6707 and struct pt_insn.resynced.
6708 * configure: Regenerated.
6709 * config.in: Regenerated.
6710
08c3f6d2
TW
67112017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6712
6713 * btrace.c (ftrace_find_call_by_number): New function.
6714 (ftrace_new_function): Store objects, not pointers.
6715 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
6716 ftrace_new_gap, ftrace_update_function,
6717 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
6718 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
6719 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
6720 btrace_ends_with_single_insn, btrace_call_get): Account for
6721 btrace_thread_info::functions now storing objects.
6722 * btrace.h (struct btrace_thread_info): Add constructor.
6723 (struct btrace_thread_info) <functions>: Make std::vector.
6724 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
6725 Initialize with default values.
6726 * record-btrace.c (record_btrace_frame_sniffer): Account for
6727 btrace_thread_info::functions now storing objects.
6728
8ffd39f2
TW
67292017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6730
6731 * btrace.c: Remove typedef bfun_s.
6732 (ftrace_new_gap): Directly add gaps to the list of gaps.
6733 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
6734 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
6735 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
6736 instead of gdb VEC.
6737
4aeb0dfc
TW
67382017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6739
6740 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
6741 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
6742 with btrace_thread_info::next_segment and
6743 btrace_thread_info::prev_segment.
6744 * btrace.h: Remove struct btrace_func_link.
6745 (struct btrace_function): Replace pair of function segment pointers
6746 with pair of indices.
6747 * python/py-record-btrace.c (btpy_call_prev_sibling,
6748 btpy_call_next_sibling): Replace references to
6749 btrace_thread_info::segment with btrace_thread_info::next_segment and
6750 btrace_thread_info::prev_segment.
6751 * record-btrace.c (record_btrace_frame_this_id): Use
6752 btrace_find_call_by_number.
6753
eb8f2b9c
TW
67542017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6755
6756 * btrace.c (ftrace_new_function, ftrace_fixup_level,
6757 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
6758 btrace_insn_next, btrace_insn_prev): Remove references to
6759 btrace_thread_info::flow.
6760 * btrace.h (struct btrace_function): Remove FLOW.
6761
42bfe59e
TW
67622017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6763
6764 * btrace.c (ftrace_find_call_by_number): New function.
6765 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
6766 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
6767 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
6768 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
6769 index.
6770 * btrace.h (struct btrace_function): Turn UP into an index.
6771 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
6772 as an index.
6773 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
6774 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
6775 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
6776
b54b03bd
TW
67772017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6778
6779 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
6780 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
6781 ftrace_update_function, ftrace_compute_global_level_offset,
6782 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
6783 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
6784 btrace_insn_end, btrace_is_empty): Remove references to
6785 btrace_thread_info::begin and btrace_thread_info::end.
6786 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
6787 (struct btrace_thread_info) <functions>: Adjust comment.
6788 * record-btrace.c (record_btrace_start_replaying): Remove reference to
6789 btrace_thread_info::begin.
6790
8286623c
TW
67912017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6792
6793 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
6794 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
6795 ftrace_update_function): Remove arguments that implicitly were always
6796 BTINFO->END.
6797 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
6798 Don't pass BTINFO->END.
6799
a0f1b963
TW
68002017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6801
6802 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
6803 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
6804 btrace_find_insn_by_number): Replace function segment pointer with
6805 index.
6806 (btrace_insn_cmp): Simplify.
6807 * btrace.h: (struct btrace_insn_iterator) Rename index to
6808 insn_index. Replace function segment pointer with index into function
6809 segment vector.
6810 * record-btrace.c (record_btrace_call_history): Replace function
6811 segment pointer use with index.
6812 (record_btrace_frame_sniffer): Retrieve function call segment through
6813 vector.
6814 (record_btrace_set_replay): Remove defunc't safety check.
6815
f158f208
TW
68162017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6817
6818 * btrace.c (btrace_ends_with_single_insn): New function.
6819 (btrace_call_get, btrace_call_number, btrace_call_begin,
6820 btrace_call_end, btrace_call_next, btrace_call_prev,
6821 btrace_find_call_by_number): Use index into call segment vector
6822 instead of pointer.
6823 (btrace_call_cmp): Simplify.
6824 * btrace.h (struct btrace_call_iterator): Replace function call segment
6825 pointer with index into vector.
6826 * record-btrace.c (record_btrace_call_history): Use index instead of
6827 pointer.
6828
521103fd
TW
68292017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6830
6831 * btrace.c (btrace_insn_begin, btrace_insn_end,
6832 btrace_find_insn_by_number): Add btinfo to iterator.
6833 * btrace.h (struct btrace_insn_iterator): Add btinfo.
6834
17b89b34
TW
68352017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6836
6837 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
6838 and save pointers directly.
6839 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
6840 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
6841 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
6842 changed signature of functions.
6843 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
6844 (btrace_fetch): Remove code that adds btrace_function pointers to
6845 vector of btrace_functions.
6846 (btrace_clear): Simplify freeing vector of btrace_functions.
6847
2b51eddc
TW
68482017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6849
6850 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
6851 Replace VEC_* with std::vector functions.
6852 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
6853 (struct btrace_thread_info)<functions>: Change type to std::vector.
6854
db6be0d5
SM
68552017-05-30 Simon Marchi <simon.marchi@ericsson.com>
6856
6857 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
6858 "Removed targets and native configurations" up. Merge duplicate
6859 "New commands" sub-sections. Add "New options" sub-sections.
6860
b057297a
AH
68612017-05-26 Alan Hayward <alan.hayward@arm.com>
6862
6863 * defs.h (copy_integer_to_size): New declaration.
6864 * findvar.c (copy_integer_to_size): New function.
6865 (do_cint_test): New selftest function.
6866 (copy_integer_to_size_test): Likewise.
6867 (_initialize_findvar): Likewise.
6868 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
6869 (mips_fbsd_collect_reg): Use raw_collect_integer.
6870 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
6871 (mips64_fill_gregset): Use raw_collect_integer
6872 (mips64_fill_fpregset): Use raw_supply_integer.
6873 * regcache.c (regcache::raw_supply_integer): New function.
6874 (regcache::raw_collect_integer): Likewise.
6875 * regcache.h: (regcache::raw_supply_integer): New declaration.
6876 (regcache::raw_collect_integer): Likewise.
6877
b77b02a5
YQ
68782017-05-24 Yao Qi <yao.qi@linaro.org>
6879
6880 * Makefile.in (SFILES): Add gdbarch-selftests.c.
6881 (COMMON_OBS): Add gdbarch-selftests.o.
6882 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
6883 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
6884 * gdbarch-selftests.c: New file.
6885 * regcache.h (regcache) <~regcache>: Mark it virtual if
6886 GDB_SELF_TEST.
6887 <raw_write>: Likewise.
6888
e521e87e
YQ
68892017-05-24 Yao Qi <yao.qi@linaro.org>
6890
6891 * regcache.c (current_regcache): Change it to
6892 regcache::current_regcache.
6893 (regcache_observer_target_changed): Update.
6894 (regcache_thread_ptid_changed): Make it a regcache static
6895 method.
6896 (regcache_thread_ptid_changed): Update.
6897 (class regcache_access): New.
6898 (current_regcache_test): Update.
6899 (_initialize_regcache): Update.
6900 * regcache.h: Include forward_list.
6901 (regcache): Declare regcache_thread_ptid_changed and declare
6902 registers_changed_ptid as friend.
6903
d8e07dda
YQ
69042017-05-24 Yao Qi <yao.qi@linaro.org>
6905
6906 * i387-tdep.c (i387_register_to_value): Use register_size
6907 instead of TYPE_LENGTH.
6908 * m68k-tdep.c (m68k_register_to_value): Likewise.
6909
8c8f9122
YQ
69102017-05-24 Yao Qi <yao.qi@linaro.org>
6911
6912 * i387-tdep.c (i387_convert_register_p): Return false if type
6913 code isn't TYPE_CODE_FLT.
6914
68fce50f
YQ
69152017-05-24 Yao Qi <yao.qi@linaro.org>
6916
6917 * alpha-tdep.c (alpha_convert_register_p): Return true if type
6918 length is 4.
6919 (alpha_register_to_value): Remove type length check.
6920 (alpha_value_to_register): Likewise.
6921
88954b49
YQ
69222017-05-24 Yao Qi <yao.qi@linaro.org>
6923
6924 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
6925 TYPE_CODE_FLT.
6926
e3ec9b69
YQ
69272017-05-24 Yao Qi <yao.qi@linaro.org>
6928
6929 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
6930 TYPE_CODE_FLT or not.
6931
cdd238da
YQ
69322017-05-24 Yao Qi <yao.qi@linaro.org>
6933
6934 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
6935 * avr-tdep.c (avr_gdbarch_init): Likewise.
6936 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6937 * cris-tdep.c (cris_gdbarch_init): Likewise.
6938 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6939 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6940 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6941 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
6942 * mep-tdep.c (mep_gdbarch_init): Likewise.
6943 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6944 * mips-tdep.c (mips_gdbarch_init): Likewise.
6945 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6946 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6947 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
6948 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6949 * v850-tdep.c (v850_gdbarch_init): Likewise.
6950
7a3929c4
YQ
69512017-05-24 Yao Qi <yao.qi@linaro.org>
6952
6953 * selftest-arch.c (tests_with_arch): Call registers_changed
6954 and reinit_frame_cache.
6955 * selftest.c (run_self_tests): Likewise.
6956
f4985dba
YQ
69572017-05-24 Yao Qi <yao.qi@linaro.org>
6958
6959 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
6960 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
6961
ab20fa4a
YQ
69622017-05-24 Yao Qi <yao.qi@linaro.org>
6963
6964 * rl78-tdep.c (rl78_gdbarch_init): Don't call
6965 set_gdbarch_print_insn.
6966
f532ab94
YQ
69672017-05-24 Yao Qi <yao.qi@linaro.org>
6968
6969 * h8300-tdep.c (h8300_gdbarch_init): Don't call
6970 set_gdbarch_print_insn.
6971
39503f82
YQ
69722017-05-24 Yao Qi <yao.qi@linaro.org>
6973
6974 * alpha-tdep.c (alpha_gdbarch_init): Don't call
6975 set_gdbarch_print_insn.
6976 * arc-tdep.c (arc_gdbarch_init): Likewise.
6977 * arch-utils.c: include dis-asm.h.
6978 (default_print_insn): New function.
6979 * arch-utils.h (default_print_insn): Declare.
6980 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
6981 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6982 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
6983 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
6984 * frv-tdep.c (frv_gdbarch_init): Likewise.
6985 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6986 * gdbarch.sh (print_insn): Use default_print_insn.
6987 * gdbarch.c: Regenerated.
6988 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
6989 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
6990 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6991 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
6992 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6993 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
6994 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
6995 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
6996 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
6997 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6998 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6999 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
7000 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
7001 * mt-tdep.c (mt_gdbarch_init): Likewise.
7002 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
7003 * nios2-tdep.c (nios2_print_insn): Remove.
7004 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
7005 * rx-tdep.c (rx_gdbarch_init): Likewise.
7006 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7007 * score-tdep.c (score_print_insn): Remove.
7008 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
7009 * sh-tdep.c (sh_gdbarch_init): Likewise.
7010 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
7011 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
7012 * tic6x-tdep.c (tic6x_print_insn): Remove.
7013 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
7014 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
7015 * v850-tdep.c (v850_gdbarch_init): Likewise.
7016 * vax-tdep.c (vax_gdbarch_init): Likewise.
7017 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
7018 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
7019
f7241d4f
JB
70202017-05-23 John Baldwin <jhb@FreeBSD.org>
7021
7022 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
7023 (MIPS_FP0_REGNUM): Remove.
7024 (MIPS_FSR_REGNUM): Remove.
7025 (mips_fbsd_supply_fpregs): Use mips_regnum.
7026 (mips_fbsd_supply_gregs): Likewise.
7027 (mips_fbsd_collect_fpregs): Likewise.
7028 (mips_fbsd_collect_gregs): Likewise.
7029
d489d81d
JB
70302017-05-23 John Baldwin <jhb@FreeBSD.org>
7031
7032 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
7033 (getpfpregs_supplies): New function.
7034 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
7035 getfpregs_supplies.
7036 (mips_fbsd_store_inferior_registers): Likewise.
7037
e11b3cdc
PA
70382017-05-22 Pedro Alves <palves@redhat.com>
7039
7040 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
7041 maintainer.
7042
0f068fb5
AH
70432017-05-22 Alan Hayward <alan.hayward@arm.com>
7044
7045 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
7046 (store_register): Likewise.
7047 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
7048 (get_decimal_float_return_value): Likewise.
7049 (do_ppc_sysv_return_value): Likewise.
7050 (ppc64_sysv_abi_push_integer): Likewise.
7051 (ppc64_sysv_abi_push_freg): Likewise.
7052 (ppc64_sysv_abi_return_value_base): Likewise.
7053 (ppc64_sysv_abi_return_value): Likewise.
7054 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
7055 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
7056 * rs6000-nat.c: Likewise.
7057 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
7058 (rs6000_value_to_register): Likewise.
7059 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
7060
e6cf65f2
TT
70612017-05-21 Tom Tromey <tom@tromey.com>
7062
7063 PR rust/21466:
7064 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
7065 arrays as "[T]", not "[T; ]".
7066
43cc5389
TT
70672017-05-19 Tom Tromey <tom@tromey.com>
7068
7069 PR rust/21484:
7070 * rust-lang.c (exp_descriptor_rust): New function.
7071 (rust_language_defn): Use it.
7072 * p-lang.c (pascal_language_defn): Update.
7073 * opencl-lang.c (opencl_language_defn): Update.
7074 * objc-lang.c (objc_language_defn): Update.
7075 * m2-lang.c (m2_language_defn): Update.
7076 * language.h (struct language_defn)
7077 <la_watch_location_expression>: New member.
7078 * language.c (unknown_language_defn, auto_language_defn)
7079 (local_language_defn): Update.
7080 * go-lang.c (go_language_defn): Update.
7081 * f-lang.c (f_language_defn): Update.
7082 * d-lang.c (d_language_defn): Update.
7083 * c-lang.h (c_watch_location_expression): Declare.
7084 * c-lang.c (c_watch_location_expression): New function.
7085 (c_language_defn, cplus_language_defn, asm_language_defn)
7086 (minimal_language_defn): Use it.
7087 * breakpoint.c (watch_command_1): Call
7088 la_watch_location_expression.
7089 * ada-lang.c (ada_language_defn): Update.
7090
7a6e7fcc
RO
70912017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7092
6e7e1744
RO
7093 PR tui/21482
7094 * gdb_curses.h (NOMACROS): Define.
7095 (NCURSES_NOMACROS): Define.
7096
70972017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7098
7099 PR tui/21482
7a6e7fcc
RO
7100 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
7101 arg to char *.
7102 * tui/tui-wingeneral.c (box_win): Likewise.
7103 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
7104 (tui_show_source_line): Likewise.
7105 (tui_show_exec_info_content): Likewise.
7106
1933fd8e
VM
71072017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
7108
7109 * sparc-tdep.c (sparc_structure_return_p)
7110 (sparc_arg_on_registers_p): New functions.
7111 (sparc32_store_arguments): Use them.
7112 * sparc64-tdep.c (sparc64_16_byte_align_p)
7113 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
7114 Handle TYPE_CODE_ARRAY.
7115
21873064
YQ
71162017-05-17 Yao Qi <yao.qi@linaro.org>
7117
7118 * cli/cli-decode.c (add_alias_cmd): New function.
7119 * command.h (add_alias_cmd): Declare.
7120 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
7121 instead call add_alias_cmd.
7122
2b351b19
PA
71232017-05-17 Pedro Alves <palves@redhat.com>
7124
7125 * Makefile.in (nat_extra_makefile_frag): Rename to ...
7126 (nat_makefile_frag): ... this. All references updated.
7127 * configure.ac: Likewise.
7128 * configure.nat: Likewise. Enhance comments.
7129 * configure: Regenerate.
7130
5f2ad7a3
RO
71312017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7132
7133 * procfs.c (procfs_create_inferior): Change prototype to match
7134 definition.
7135
adf3dde5
EZ
71362017-05-13 Eli Zaretskii <eliz@gnu.org>
7137
7138 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
7139 C++ compiler warning.
7140
6830f270
TT
71412017-05-12 Tom Tromey <tom@tromey.com>
7142
7143 PR rust/21483:
7144 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
7145 recurse, just call value_struct_elt directly.
7146
68f2f2e3
TT
71472017-05-12 Tom Tromey <tom@tromey.com>
7148
7149 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
7150 OP_RUST_ARRAY>: Fix.
7151
256afbc2
TT
71522017-05-12 Tom Tromey <tom@tromey.com>
7153
7154 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
7155
94bb8dfe
YQ
71562017-05-09 Yao Qi <yao.qi@linaro.org>
7157
7158 * regcache.c: Include <forward_list>.
7159 (struct regcache_list): Remove.
7160 (current_regcache): Update.
7161 (get_thread_arch_aspace_regcache): Update for std::forward_list.
7162 (regcache_thread_ptid_changed): Likewise.
7163 (registers_changed_ptid): Likewise.
7164 (current_regcache_size): Likewise.
7165
8248946c
YQ
71662017-05-09 Yao Qi <yao.qi@linaro.org>
7167
7168 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
7169 (current_regcache_size): New function.
7170 (current_regcache_test): New function.
7171 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
7172
313c5961
AH
71732017-05-08 Alan Hayward <alan.hayward@arm.com>
7174
7175 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
7176 (print_gp_register_row): Use get_frame_register_value.
7177
27bfc1d1
AH
71782017-05-08 Alan Hayward <alan.hayward@arm.com>
7179
7180 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
7181 (mips_supply_fpregset): Likewise.
7182 (mips64_supply_gregset): Likewise.
7183
146e6c5c
AH
71842017-05-08 Alan Hayward <alan.hayward@arm.com>
7185
7186 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
7187 regcache->raw_supply_zeroed.
7188
e50f25ec
SDJ
71892017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7190
7191 * configure.nat: Rearrange 'case' statements to match
7192 host before cpu.
7193
21ea5acd
SDJ
71942017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7195
7196 * Makefile.in: Remove "@host_makefile_frag@". Add variables
7197 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
7198 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
7199 "@nat_extra_makefile_frag@".
7200 (Makefile): Remove dependency on "@frags@".
7201 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
7202 (data-directory/Makefile): Likewise.
7203 * config/aarch64/linux.mh: Deleted; moved contents to
7204 "gdb/configure.nat".
7205 * config/alpha/alpha-linux.mh: Likewise.
7206 * config/alpha/nbsd.mh: Likewise.
7207 * config/arm/linux.mh: Likewise.
7208 * config/arm/nbsdelf.mh: Likewise.
7209 * config/i386/cygwin.mh: Likewise.
7210 * config/i386/cygwin64.mh: Likewise.
7211 * config/i386/darwin.mh: Likewise.
7212 * config/i386/fbsd.mh: Likewise.
7213 * config/i386/fbsd64.mh: Likewise.
7214 * config/i386/go32.mh: Likewise.
7215 * config/i386/i386gnu.mh: Likewise.
7216 * config/i386/i386sol2.mh: Likewise.
7217 * config/i386/linux.mh: Likewise.
7218 * config/i386/linux64.mh: Likewise.
7219 * config/i386/mingw.mh: Likewise.
7220 * config/i386/mingw64.mh: Likewise.
7221 * config/i386/nbsd64.mh: Likewise.
7222 * config/i386/nbsdelf.mh: Likewise.
7223 * config/i386/nto.mh: Likewise.
7224 * config/i386/obsd.mh: Likewise.
7225 * config/i386/obsd64.mh: Likewise.
7226 * config/i386/sol2-64.mh: Likewise.
7227 * config/ia64/linux.mh: Likewise.
7228 * config/m32r/linux.mh: Likewise.
7229 * config/m68k/linux.mh: Likewise.
7230 * config/m68k/nbsdelf.mh: Likewise.
7231 * config/m68k/obsd.mh: Likewise.
7232 * config/m88k/obsd.mh: Likewise.
7233 * config/mips/fbsd.mh: Likewise.
7234 * config/mips/linux.mh: Likewise.
7235 * config/mips/nbsd.mh: Likewise.
7236 * config/mips/obsd64.mh: Likewise.
7237 * config/pa/linux.mh: Likewise.
7238 * config/pa/nbsd.mh: Likewise.
7239 * config/pa/obsd.mh: Likewise.
7240 * config/powerpc/aix.mh: Likewise.
7241 * config/powerpc/fbsd.mh: Likewise.
7242 * config/powerpc/linux.mh: Likewise.
7243 * config/powerpc/nbsd.mh: Likewise.
7244 * config/powerpc/obsd.mh: Likewise.
7245 * config/powerpc/ppc64-linux.mh: Likewise.
7246 * config/powerpc/spu-linux.mh: Likewise.
7247 * config/s390/linux.mh: Likewise.
7248 * config/sh/nbsd.mh: Likewise.
7249 * config/sparc/fbsd.mh: Likewise.
7250 * config/sparc/linux.mh: Likewise.
7251 * config/sparc/linux64.mh: Likewise.
7252 * config/sparc/nbsd64.mh: Likewise.
7253 * config/sparc/nbsdelf.mh: Likewise.
7254 * config/sparc/obsd64.mh: Likewise.
7255 * config/sparc/sol2.mh: Likewise.
7256 * config/tilegx/linux.mh: Likewise.
7257 * config/vax/nbsdelf.mh: Likewise.
7258 * config/vax/obsd.mh: Likewise.
7259 * config/xtensa/linux.mh: Likewise.
7260 * config/i386/i386gnu.mn: New file, with excerpts from
7261 "config/i386/i386gnu.mh".
7262 * configure: Regenerate.
7263 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
7264 *.mh files under "gdb/config".
7265 * configure.nat: New file, with contents from the
7266 "gdb/config/*/*.mh" files.
7267
7ed1acaf
TW
72682017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
7269
7270 * btrace.c (btrace_clear): Free insn vector.
7271
e13cb306
PA
72722017-05-05 Pedro Alves <palves@redhat.com>
7273
7274 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
7275 * configure: Regenerate.
7276
5ed8105e
PA
72772017-05-04 Pedro Alves <palves@redhat.com>
7278
7279 * Makefile.in (SFILES): Add progspace-and-thread.c.
7280 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
7281 (COMMON_OBS): Add progspace-and-thread.o.
7282 * breakpoint.c: Include "progspace-and-thread.h".
7283 (update_inserted_breakpoint_locations)
7284 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
7285 Use scoped_restore_current_pspace_and_thread.
7286 (create_std_terminate_master_breakpoint): Use
7287 scoped_restore_current_program_space.
7288 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
7289 (print_breakpoint_location): Use
7290 scoped_restore_current_program_space.
7291 (bp_loc_is_permanent): Use
7292 scoped_restore_current_pspace_and_thread.
7293 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
7294 (download_tracepoint_locations): Use
7295 scoped_restore_current_pspace_and_thread.
7296 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
7297 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
7298 (enum step_over_calls_kind): Moved from inferior.h.
7299 (class scoped_restore_current_thread): New class.
7300 * gdbthread.h (make_cleanup_restore_current_thread): Delete
7301 declaration.
7302 (scoped_restore_current_thread): New class.
7303 * infcmd.c: Include "common/gdb_optional.h".
7304 (continue_1, proceed_after_attach): Use
7305 scoped_restore_current_thread.
7306 (notice_new_inferior): Use scoped_restore_current_thread.
7307 * inferior.c: Include "progspace-and-thread.h".
7308 (restore_inferior, save_current_inferior): Delete.
7309 (add_inferior_command, clone_inferior_command): Use
7310 scoped_restore_current_pspace_and_thread.
7311 * inferior.h (scoped_restore_current_inferior): New class.
7312 * infrun.c: Include "progspace-and-thread.h" and
7313 "common/gdb_optional.h".
7314 (follow_fork_inferior): Use
7315 scoped_restore_current_pspace_and_thread.
7316 (scoped_restore_exited_inferior): New class.
7317 (handle_vfork_child_exec_or_exit): Use
7318 scoped_restore_exited_inferior,
7319 scoped_restore_current_pspace_and_thread,
7320 scoped_restore_current_thread and scoped_restore.
7321 (fetch_inferior_event): Use scoped_restore_current_thread.
7322 * linespec.c (decode_line_full, decode_line_1): Use
7323 scoped_restore_current_program_space.
7324 * mi/mi-main.c: Include "progspace-and-thread.h".
7325 (exec_continue): Use scoped_restore_current_thread.
7326 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
7327 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
7328 * proc-service.c (ps_pglobal_lookup): Use
7329 scoped_restore_current_program_space.
7330 * progspace-and-thread.c: New file.
7331 * progspace-and-thread.h: New file.
7332 * progspace.c (release_program_space, clone_program_space): Use
7333 scoped_restore_current_program_space.
7334 (restore_program_space, save_current_program_space)
7335 (save_current_space_and_thread): Delete.
7336 (switch_to_program_space_and_thread): Moved to
7337 progspace-and-thread.c.
7338 * progspace.h (save_current_program_space)
7339 (save_current_space_and_thread): Delete declarations.
7340 (scoped_restore_current_program_space): New class.
7341 * remote.c (remote_btrace_maybe_reopen): Use
7342 scoped_restore_current_thread.
7343 * symtab.c: Include "progspace-and-thread.h".
7344 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
7345 * thread.c (print_thread_info_1): Use
7346 scoped_restore_current_thread.
7347 (struct current_thread_cleanup): Delete.
7348 (do_restore_current_thread_cleanup)
7349 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
7350 (scoped_restore_current_thread::~scoped_restore_current_thread):
7351 ... this new dtor.
7352 (make_cleanup_restore_current_thread): Rename/convert to ...
7353 (scoped_restore_current_thread::scoped_restore_current_thread):
7354 ... this new ctor.
7355 (thread_apply_all_command): Use scoped_restore_current_thread.
7356 (thread_apply_command): Use scoped_restore_current_thread.
7357 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
7358 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
7359
f6223dbb
PA
73602017-05-04 Pedro Alves <palves@redhat.com>
7361
7362 * thread.c (make_cleanup_restore_current_thread): Move
7363 find_thread_ptid call before the is_stopped call. Assert that the
7364 thread is found. Replace is_stopped call by checking the thread's
7365 state directly. Remove unnecessary NULL-thread check.
7366
3c3ae77e
PA
73672017-05-04 Pedro Alves <palves@redhat.com>
7368
7369 * corelow.c (thread_section_name): New class.
7370 (get_core_register_section, get_core_siginfo): Use it.
7371
45eba0ab
AA
73722017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
7373
7374 * corelow.c (sniff_core_bfd): Remove extra semicolon.
7375 (get_core_register_section): Remove xfree of NULL pointer.
7376
f81fdd35
AH
73772017-05-03 Alan Hayward <alan.hayward@arm.com>
7378
7379 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
7380 * regcache.c (regcache::raw_supply_zeroed): New function.
7381 * regcache.h (regcache::raw_supply_zeroed): New declaration.
7382
35837774
SM
73832017-05-03 Simon Marchi <simon.marchi@ericsson.com>
7384
7385 * gdbarch.sh: Remove commented out definition of
7386 TARGET_CHAR_BIT.
7387 * gdbarch.h: Re-generate.
7388
c94fee56
SDJ
73892017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7390
7391 * configure: Regenerate.
7392
d17f7b36
SM
73932017-05-02 Simon Marchi <simon.marchi@ericsson.com>
7394
7395 * solib-target.c (solib_target_relocate_section_addresses):
7396 Remove num_section_bases, num_bases, segment_bases variables.
7397
b560ebd6
SM
73982017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7399
7400 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
7401
f2f46dfc
SM
74022017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7403
7404 * solib-target.c: Include <vector>
7405 (struct lm_info_target) <~lm_info_target>: Remove.
7406 <segment_bases, section_bases>: Change type to
7407 std::vector<CORE_ADDR>.
7408 (library_list_start_segment, library_list_start_section,
7409 library_list_end_library,
7410 solib_target_relocate_section_addresses): Adjust.
7411
a0ff9e1a
SM
74122017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7413
7414 * gdbarch.sh (software_single_step): Change return type to
7415 std::vector<CORE_ADDR>.
7416 * gdbarch.c, gdbarch.h: Re-generate.
7417 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
7418 Adjust.
7419 (arm_deal_with_atomic_sequence_raw): Adjust.
7420 (thumb_get_next_pcs_raw): Adjust.
7421 (arm_get_next_pcs_raw): Adjust.
7422 (arm_get_next_pcs): Adjust.
7423 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
7424 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
7425 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
7426 (alpha_software_single_step): Adjust.
7427 * alpha-tdep.h (alpha_software_single_step): Adjust.
7428 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
7429 * arm-tdep.c (arm_software_single_step): Adjust.
7430 (arm_breakpoint_kind_from_current_state): Adjust.
7431 * arm-tdep.h (arm_software_single_step): Adjust.
7432 * breakpoint.c (insert_single_step_breakpoint): Adjust.
7433 * cris-tdep.c (cris_software_single_step): Adjust.
7434 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
7435 (micromips_deal_with_atomic_sequence): Adjust.
7436 (deal_with_atomic_sequence): Adjust.
7437 (mips_software_single_step): Adjust.
7438 * mips-tdep.h (mips_software_single_step): Adjust.
7439 * moxie-tdep.c (moxie_software_single_step): Adjust.
7440 * nios2-tdep.c (nios2_software_single_step): Adjust.
7441 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
7442 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
7443 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
7444 * s390-linux-tdep.c (s390_software_single_step): Adjust.
7445 * sparc-tdep.c (sparc_software_single_step): Adjust.
7446 * spu-tdep.c (spu_software_single_step): Adjust.
7447 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
7448
ea480a30
SM
74492017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7450
7451 * gdbarch.sh: Use semi-colon as field separator instead of colon.
7452 * gdbarch.h: Re-generate.
7453
d050f7d7
TW
74542017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7455
7456 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
7457 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
7458 * python/py-instruction.c, python/py-instruction.h: New file.
7459 * python/py-record.c: Add py-instruction.h include.
7460 (gdbpy_initialize_record): Make gdb.Instruction a super class of
7461 gdb.RecordInstruction.
7462 * python/python-internal.h: Add gdbpy_initialize_instruction
7463 declaration.
7464 * python/python.c (do_start_initialization): Add
7465 gdbpy_initialize_instruction.
7466
14f819c8
TW
74672017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7468
7469 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
7470 Remove.
7471 (btrace_func_from_recpy_func): New function.
7472 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
7473 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
7474 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
7475 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
7476 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
7477 Also, use new helper functions.
7478 (btpy_list_item): Use new helper functions.
7479 (recpy_bt_function_call_history): Use new type name.
7480 (btpy_call_getset): Remove.
7481 (gdbpy_initialize_btrace): Remove code to initialize
7482 gdb.BtraceFunctionCall.
7483 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
7484 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
7485 recpy_bt_func_prev, recpy_bt_func_next): New export.
7486 * python/py-record.c (recpy_func_type): New static object.
7487 (recpy_func_new, recpy_func_level, recpy_func_symbol,
7488 recpy_func_instructions, recpy_func_up, recpy_func_prev,
7489 recpy_func_next): New function.
7490 (recpy_element_hash, recpy_element_richcompare): Updated comment.
7491 (recpy_func_getset): New static object.
7492 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
7493 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
7494
0ed5da75
TW
74952017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7496
7497 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
7498 (btpy_object, btpy_insn_type, btpy_new): Remove.
7499 (btpy_list_object): Use gdb.RecordInstruction type instead of
7500 gdb.BtraceInstruction type.
7501 (btrace_insn_from_recpy_insn): New function.
7502 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
7503 btpy_new.
7504 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
7505 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
7506 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
7507 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
7508 instead of btpy_object.
7509 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
7510 btpy_insn_data, btpy_insn_decode): Rename to ...
7511 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
7512 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
7513 recpy_bt_insn_decode): This. Also, use new helper functions.
7514 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
7515 recpy_insn_type.
7516 (btpy_insn_getset): Remove.
7517 (gdbpy_initialize_btrace): Remove code to initialize
7518 gdb.BtraceInstruction. Use recpy_element_object.
7519 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
7520 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
7521 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
7522 * python/py-record.c (recpy_insn_type): New static object.
7523 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
7524 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
7525 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
7526 New function.
7527 (recpy_insn_getset): New static object.
7528 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
7529 * python/py-record.h (recpy_element_object): New typedef.
7530 (recpy_insn_type, recpy_insn_new): New export.
7531
913aeadd
TW
75322017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7533
7534 * py-record-btrace.c (btpy_insn_new): Removed.
7535 (btpy_insn_or_gap_new): New function.
7536 (btpy_insn_error): Removed.
7537 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
7538 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
7539 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
7540 btpy_insn_or_gap_new instead of btpy_insn_new.
7541 (btpy_insn_getset): Remove btpy_insn_error.
7542 * py-record.c (recpy_gap_type): New static object.
7543 (recpy_gap_object): New typedef.
7544 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
7545 recpy_gap_reason_string): New function.
7546 (recpy_gap_getset): New static object.
7547 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
7548 * py-record.h (recpy_gap_new): New export.
7549
a3be24ad
TW
75502017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7551
7552 * python/py-record.c (recpy_ptid): Remove.
7553 (recpy_record_getset): Remove recpy_ptid.
7554
ae20e79a
TW
75552017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7556
7557 * btrace.c (btrace_fetch): Set inferior_ptid.
7558 * python/py-record-btrace.c: Add "py-record.h" include.
7559 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
7560 recpy_bt_end, recpy_bt_instruction_history,
7561 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
7562 in gdb.Record object instead of current ptid.
7563 * python/py-record.c: Include new "py-record.h" file.
7564 (recpy_record_object): Moved to py-record.h.
7565 * python/py-record.h: New file.
7566
8d0050ea
TW
75672017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7568
7569 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
7570 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
7571 indentation.
7572
3f380b50
JB
75732017-05-01 Joel Brobecker <brobecker@adacore.com>
7574
7575 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
7576 the past maintainers section.
7577
07495424
YQ
75782017-04-28 Yao Qi <yao.qi@linaro.org>
7579
7580 * infcmd.c (get_return_value): Use regcache ctor, and remove
7581 cleanup.
7582
deb1fa3e
YQ
75832017-04-28 Yao Qi <yao.qi@linaro.org>
7584 Pedro Alves <palves@redhat.com>
7585
7586 * regcache.c (regcache::regcache): New tag dispatch ctor.
7587 (do_cooked_read): Moved above.
7588 (regcache_dup): Use the tag dispatch ctor..
7589 * regcache.h (regcache): Declare ctor, delete copy ctor and
7590 assignment operator, remove friend regcache_dup.
7591
b421c83c
YQ
75922017-04-28 Yao Qi <yao.qi@linaro.org>
7593
7594 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
7595 call method save instead of regcache_cpy.
7596 * regcache.h (struct regcache): Make regcache_dup a friend.
7597
ef79d9a3
YQ
75982017-04-28 Yao Qi <yao.qi@linaro.org>
7599
7600 * regcache.c (struct regcache): Move to regcache.h
7601 (regcache::arch): New method.
7602 (regcache_get_ptid): Update.
7603 (get_regcache_arch): Call arch method.
7604 (get_regcache_aspace): Call method aspace.
7605 (register_buffer): Change it to method.
7606 (regcache_save): Change it to regcache::save.
7607 (regcache_restore): Likewise.
7608 (regcache_cpy_no_passthrough): Remove the declaration.
7609 (regcache_cpy): Call methods restore and cpy_no_passthrough.
7610 (regcache_cpy_no_passthrough): Change it to method
7611 cpy_no_passthrough.
7612 (regcache_register_status): Change it to method
7613 get_register_status.
7614 (regcache_invalidate): Change it to method invalidate.
7615 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
7616 (regcache_raw_update): Change it to method raw_update.
7617 (regcache_raw_read): Likewise.
7618 (regcache_raw_read_signed): Likewise.
7619 (regcache_raw_read_unsigned): Likewise.
7620 (regcache_raw_write_signed): Likewise.
7621 (regcache_raw_write_unsigned): Likewise.
7622 (regcache_cooked_read): Likewise.
7623 (regcache_cooked_read_value): Likewise.
7624 (regcache_cooked_read_signed): Likewise.
7625 (regcache_cooked_read_unsigned): Likewise.
7626 (regcache_cooked_write_signed): Likewise.
7627 (regcache_cooked_write_unsigned): Likewise.
7628 (regcache_raw_set_cached_value): Likewise.
7629 (regcache_raw_write): Likewise.
7630 (regcache_cooked_write): Likewise.
7631 (regcache_xfer_part): Likewise.
7632 (regcache_raw_read_part): Likewise.
7633 (regcache_raw_write_part): Likewise.
7634 (regcache_cooked_read_part): Likewise.
7635 (regcache_cooked_write_part): Likewise.
7636 (regcache_raw_supply): Likewise.
7637 (regcache_raw_collect): Likewise.
7638 (regcache_transfer_regset): Likewise.
7639 (regcache_supply_regset): Likewise.
7640 (regcache_collect_regset): Likewise.
7641 (regcache_debug_print_register): Likewise.
7642 (enum regcache_dump_what): Move it to regcache.h.
7643 (regcache_dump): Change it to method dump.
7644 * regcache.h (enum regcache_dump_what): New.
7645 (class regcache): New.
7646 * target.c (target_fetch_registers): Call method
7647 debug_print_register.
7648 (target_store_registers): Likewise.
7649
f8fdb78e
SM
76502017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7651
7652 * windows-nat.c (struct lm_info_windows): Initialize field.
7653 (windows_make_so): Allocate lm_info_windows with new.
7654 (windows_free_so): Free lm_info_windows with delete.
7655
9ccbfd7b
SM
76562017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7657
7658 * solib-darwin.c (struct lm_info_darwin): Initialize field.
7659 (darwin_current_sos): Allocate lm_info_darwin with new, remove
7660 cleanup.
7661 (darwin_free_so): Free lm_info_darwin with delete.
7662
76e75227
SM
76632017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7664
7665 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
7666 <l_addr_p>: Change type to bool.
7667 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
7668 (svr4_free_so): Free lm_info_svr4 with delete.
7669 (svr4_copy_library_list): Replace memcpy with call to copy
7670 constructor.
7671 (library_list_start_library, svr4_default_sos): Allocate
7672 lm_info_svr4 with new.
7673
51046d9e
SM
76742017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7675
7676 * solib-target.c (struct lm_info_target): Add destructor,
7677 initialize fields.
7678 <name>: Change type to std::string.
7679 (library_list_start_library): Allocate lm_info_target with new.
7680 (solib_target_free_library_list): Free lm_info_target with
7681 delete.
7682 (solib_target_current_sos): Adapt to std::string.
7683 (solib_target_free_so): Free lm_info_target with delete.
7684
4023ae76
SM
76852017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7686
7687 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
7688 fields.
7689 (frv_current_sos): Allocate lm_info_frv with new.
7690 (frv_relocate_main_executable): Free lm_info_frv with delete,
7691 allocate with new.
7692 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
7693
af43057b
SM
76942017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7695
7696 * solib-frv.c (struct lm_info_frv): Fix indentation.
7697
b0911207
SM
76982017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7699
7700 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
7701 map field.
7702 (dsbt_current_sos): Allocate lm_info_dsbt with new.
7703 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
7704 and allocate with new.
7705 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
7706
6c401f72
SM
77072017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7708
7709 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
7710 <filename, member_name>: Change type to std::string.
7711 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
7712 (library_list_start_library): Allocate lm_info_aix with new.
7713 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
7714 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
7715 with copy constructor.
7716
d0e449a1
SM
77172017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7718
7719 * solist.h (struct lm_info): Remove.
7720 (struct lm_info_base): New class.
7721 (struct so_list) <lm_info>: Change type to lm_info_base *.
7722 * nto-tdep.c (struct lm_info): Remove.
7723 (lm_addr): Adjust.
7724 * solib-aix.c (struct lm_info): Rename to ...
7725 (struct lm_info_aix): ... this. Extend lm_info_base.
7726 (lm_info_p): Rename to ...
7727 (lm_info_aix_p): ... this, and adjust.
7728 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
7729 solib_aix_parse_libraries, library_list_start_library,
7730 solib_aix_free_library_list, solib_aix_parse_libraries,
7731 solib_aix_get_library_list,
7732 solib_aix_relocate_section_addresses, solib_aix_free_so,
7733 solib_aix_get_section_offsets,
7734 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
7735 Adjust.
7736 (struct solib_aix_inferior_data) <library_list>: Adjust.
7737 * solib-darwin.c (struct lm_info): Rename to ...
7738 (struct lm_info_darwin): ... this. Extend lm_info_base.
7739 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
7740 * solib-dsbt.c (struct lm_info): Rename to ...
7741 (struct lm_info_dsbt): ... this. Extend lm_info_base.
7742 (struct dsbt_info) <main_executable_lm_info): Adjust.
7743 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
7744 dsbt_relocate_section_addresses): Adjust.
7745 * solib-frv.c (struct lm_info): Rename to ...
7746 (struct lm_info_frv): ... this. Extend lm_info_base.
7747 (main_executable_lm_info): Adjust.
7748 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
7749 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
7750 find_canonical_descriptor_in_load_object,
7751 frv_fdpic_find_canonical_descriptor): Adjust.
7752 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
7753 to lm_info_svr4.
7754 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
7755 svr4_clear_so, svr4_copy_library_list,
7756 library_list_start_library, svr4_default_sos, svr4_read_so_list,
7757 svr4_current_sos, svr4_fetch_objfile_link_map,
7758 solist_update_incremental): Adjust.
7759 * solib-svr4.h (struct lm_info_svr4): Move here from
7760 solib-svr4.c.
7761 * solib-target.c (struct lm_info): Rename to ...
7762 (struct lm_info_target): ... this. Extend lm_info_base.
7763 (lm_info_p): Rename to ...
7764 (lm_info_target_p): ... this.
7765 (solib_target_parse_libraries, library_list_start_segment,
7766 library_list_start_section, library_list_start_library,
7767 library_list_end_library, solib_target_free_library_list,
7768 solib_target_current_sos, solib_target_free_so,
7769 solib_target_relocate_section_addresses): Adjust.
7770 * windows-nat.c (struct lm_info): Rename to ...
7771 (struct lm_info_windows): ... this. Extend lm_info_base.
7772 (windows_make_so, handle_load_dll, handle_unload_dll,
7773 windows_xfer_shared_libraries): Adjust.
7774
434a4023
SM
77752017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7776
7777 * solib-darwin.c (struct darwin_so_list): Remove.
7778 (darwin_current_sos): Allocate an so_list object instead of a
7779 darwin_so_list, separately allocate an lm_info object.
7780 (darwin_free_so): Free lm_info.
7781
428544e8
JB
77822017-04-28 John Baldwin <jhb@FreeBSD.org>
7783
7784 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
7785 with fprintf_filtered.
7786
4621115f
YQ
77872017-04-28 Yao Qi <yao.qi@linaro.org>
7788
7789 * regcache.c (regcache::regcache): New function.
7790 (regcache::~regcache): New function.
7791 (regcache_xmalloc_1): Remove.
7792 (regcache_xmalloc): Call new regcache.
7793 (regcache_xfree): Call delete regcache.
7794 (get_thread_arch_aspace_regcache): Call new regcache.
7795
339053c2
YQ
77962017-04-28 Yao Qi <yao.qi@linaro.org>
7797
7798 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
7799 lwp instead of ptid_get_lwp.
7800
7974a605
YQ
78012017-04-28 Yao Qi <yao.qi@linaro.org>
7802
7803 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
7804 lwp_info instead of getting from inferior_ptid.
7805
e15c3eb4
KS
78062017-04-27 Keith Seitz <keiths@redhat.com>
7807
7808 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
7809 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
7810 (CV_CONVERSION_BADNESS): Define.
7811 (rank_one_type): Remove overly restrictive rvalue reference
7812 rank checks.
7813 Add cv-qualifier checks and subranks for type equality.
7814 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
7815 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
7816 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
7817
72bc1d24
SM
78182017-04-27 Simon Marchi <simon.marchi@ericsson.com>
7819
7820 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
7821 count when creating the object.
7822
55bcecda
UW
78232017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
7824 Ulrich Weigand <uweigand@de.ibm.com>
7825
7826 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
7827 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
7828 is used in AIX.
7829 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
7830 (process_xcoff_symbol): Likewise.
7831 (scan_xcoff_symtab): Likewise.
7832
5c99fcf8
AH
78332017-04-26 Alan Hayward <alan.hayward@arm.com>
7834
7835 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
7836 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
7837 (ia64_access_reg): Use get_frame_register_unsigned.
7838 (ia64_access_rse_reg): Likewise.
7839 (ia64_libunwind_frame_prev_register): Likewise.
7840
b41c5a85
JW
78412017-04-26 Jiong Wang <jiong.wang@arm.com>
7842
7843 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
7844 * gdbarch.c: Regenerated.
7845 * gdbarch.h: Regenerated.
7846 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
7847 visibility external.
7848 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
7849 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
7850 (enum cfa_how_kind): Move to ...
7851 (struct dwarf2_frame_state_reg_info): Likewise.
7852 (struct dwarf2_frame_state): Likewise.
7853 * dwarf2-frame.h: ... here.
7854 (dwarf2_frame_state_alloc_regs): New declaration.
7855 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
7856 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
7857
c185f580
AH
78582017-04-26 Alan Hayward <alan.hayward@arm.com>
7859
7860 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
7861 regcache_raw_read_unsigned.
7862 (xtensa_pseudo_register_write): Likewise.
7863
19c45594
AH
78642017-04-26 Alan Hayward <alan.hayward@arm.com>
7865
7866 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
7867 (nds32_pseudo_register_write): Likewise.
7868
4658f12e
YQ
78692017-04-25 Yao Qi <yao.qi@linaro.org>
7870
7871 * regcache.c (struct regcache) <readonly_p>: Change its type
7872 to bool.
7873 (regcache_xmalloc_1): Update parameter type and callers update.
7874
d581dda8
YQ
78752017-04-25 Yao Qi <yao.qi@linaro.org>
7876
7877 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
7878 set_gdbarch_wchar_bit.
7879 * arm-tdep.c (arm_gdbarch_init): Likewise.
7880
debed3db
PA
78812017-04-25 Pedro Alves <palves@redhat.com>
7882
7883 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
7884 (BothAreRelocatable, memcopy, memmove): Don't define.
7885 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
7886 macros.
7887
b0b92aeb
PA
78882017-04-25 Pedro Alves <palves@redhat.com>
7889
7890 * common/common-defs.h: Include "common/poison.h".
7891 * common/function-view.h: (Not, Or, Requires): Move to traits.h
7892 and adjust.
7893 * common/poison.h: New file.
7894 * common/traits.h: Include <type_traits>.
7895 (Not, Or, Requires): New, moved from common/function-view.h.
7896
16c4d54a
PA
78972017-04-25 Pedro Alves <palves@redhat.com>
7898
7899 * breakpoint.h (struct breakpoint): In-class initialize all
7900 fields. Make boolean fields "bool".
7901 * breakpoint.c (init_raw_breakpoint_without_location): Remove
7902 memset call and initializations no longer necessary.
7903
b5c36682
PA
79042017-04-25 Pedro Alves <palves@redhat.com>
7905
7906 * btrace.c (pt_btrace_insn_flags): Change parameter type to
7907 reference.
7908 (pt_btrace_insn): New function.
7909 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
7910
5625a286
PA
79112017-04-25 Pedro Alves <palves@redhat.com>
7912
7913 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
7914 "base" field and inherit from "bp_location" instead. Add
7915 non-default ctor.
7916 (allocate_location_exception): Use new non-default ctor.
7917 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
7918 (init_bp_location): Convert to ...
7919 (bp_location::bp_location): ... this new ctor, and remove memset
7920 call.
7921 (base_breakpoint_allocate_location): Use the new non-default ctor.
7922 * breakpoint.h (bp_location): Now a class. Declare default and
7923 non-default ctors. In-class initialize all members.
7924 (init_bp_location): Remove declaration.
7925
23bcc18f
PA
79262017-04-25 Pedro Alves <palves@redhat.com>
7927
7928 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
7929 assignment operator.
7930
e1ba3053
YQ
79312017-04-24 Yao Qi <yao.qi@linaro.org>
7932
7933 * doublest.c (convert_doublest_to_floatformat): Call
7934 floatformat_totalsize_bytes.
7935
10f489e5
TT
79362017-04-22 Tom Tromey <tom@tromey.com>
7937
7938 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
7939 ui_out_emit_list.
7940 * stack.c (print_frame): Use ui_out_emit_list.
7941 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
7942 ui_out_emit_list.
7943 * mi/mi-main.c (print_one_inferior)
7944 (mi_cmd_data_list_register_names)
7945 (mi_cmd_data_list_register_values, mi_cmd_list_features)
7946 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
7947 ui_out_emit_list.
7948 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
7949 (mi_output_solib_attribs): Use ui_out_emit_list,
7950 ui_out_emit_tuple.
7951 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
7952 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7953 (mi_cmd_stack_list_args, list_args_or_locals): Use
7954 ui_out_emit_list.
7955 * disasm.c (do_assembly_only): Use ui_out_emit_list.
7956 * breakpoint.c (print_solib_event, output_thread_groups): Use
7957 ui_out_emit_list.
7958
0092b74d
TT
79592017-04-22 Tom Tromey <tom@tromey.com>
7960
7961 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
7962 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
7963 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
7964
a14a62dd
TT
79652017-04-22 Tom Tromey <tom@tromey.com>
7966
7967 * tracepoint.c (tvariables_info_1)
7968 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
7969
46b9c129
TT
79702017-04-22 Tom Tromey <tom@tromey.com>
7971
7972 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
7973 annotate_arg_emitter.
7974 * breakpoint.c (print_mention_watchpoint)
7975 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
7976 * annotate.h (struct annotate_arg_emitter): New.
7977
2e783024
TT
79782017-04-22 Tom Tromey <tom@tromey.com>
7979
7980 * record-btrace.c (record_btrace_insn_history)
7981 (record_btrace_insn_history_range, record_btrace_call_history)
7982 (record_btrace_call_history_range): Use ui_out_emit_tuple.
7983 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
7984 ui_out_emit_tuple.
7985 * stack.c (print_frame_info): Use ui_out_emit_tuple.
7986 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
7987 * skip.c (skip_info): Use ui_out_emit_tuple.
7988 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
7989 * progspace.c (print_program_space): Use ui_out_emit_tuple.
7990 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
7991 * osdata.c (info_osdata): Use ui_out_emit_tuple.
7992 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
7993 ui_out_emit_tuple.
7994 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
7995 (output_register, mi_cmd_data_read_memory)
7996 (mi_cmd_data_read_memory_bytes, mi_load_progress)
7997 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
7998 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
7999 Use ui_out_emit_tuple.
8000 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
8001 ui_out_emit_tuple.
8002 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
8003 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
8004 * linux-thread-db.c (info_auto_load_libthread_db): Use
8005 ui_out_emit_tuple.
8006 * inferior.c (print_inferior): Use ui_out_emit_tuple.
8007 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
8008 * disasm.c (do_mixed_source_and_assembly_deprecated)
8009 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
8010 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
8011 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
8012 * breakpoint.c (print_one_breakpoint_location)
8013 (print_one_breakpoint): Use ui_out_emit_tuple.
8014 * auto-load.c (print_script, info_auto_load_cmd): Use
8015 ui_out_emit_tuple.
8016 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
8017
9be21bb4
SM
80182017-04-21 Simon Marchi <simon.marchi@ericsson.com>
8019
8020 * thread.c (print_thread_info_1): Remove dead code.
8021
0d4c07af
JK
80222017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8023
8024 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
8025 GDB_SELF_TEST.
8026 * arm-tdep.c (selftests::arm_record_test): Likewise.
8027
4daf993d
YQ
80282017-04-21 Yao Qi <yao.qi@linaro.org>
8029
8030 * regcache.c (regcache_restore): Remove argument 2. Replace
8031 argument 3 with regcache. Get register status from
8032 src->register_status and get register contents from
8033 register_buffer (src, regnum).
8034 (regcache_cpy): Update.
8035
a6c21d4a
PA
80362017-04-19 Pedro Alves <palves@redhat.com>
8037
8038 * gdbthread.h (thread): Add missing closing parenthesis in
8039 comment.
8040
3a3fd0fd
PA
80412017-04-19 Pedro Alves <palves@redhat.com>
8042
8043 * common/refcounted-object.h: New file.
8044 * gdbthread.h: Include "common/refcounted-object.h".
8045 (thread_info): Inherit from refcounted_object and add comments.
8046 (thread_info::incref, thread_info::decref)
8047 (thread_info::m_refcount): Delete.
8048 (thread_info::deletable): Use the refcounted_object::refcount()
8049 method.
8050 * inferior.c (current_inferior_): Add comment.
8051 (set_current_inferior): Increment/decrement refcounts.
8052 (prune_inferiors, remove_inferior_command): Skip inferiors marked
8053 not-deletable instead of comparing with the current inferior.
8054 (initialize_inferiors): Increment the initial inferior's refcount.
8055 * inferior.h (struct inferior): Forward declare.
8056 Include "common/refcounted-object.h".
8057 (current_inferior, set_current_inferior): Move declaration to
8058 before struct inferior's definition, and fix comment.
8059 (inferior): Inherit from refcounted_object. Add comments.
8060 * thread.c (switch_to_thread_no_regs): Reference the thread's
8061 inferior pointer directly instead of doing a ptid lookup.
8062 (switch_to_no_thread): New function.
8063 (switch_to_thread(thread_info *)): New function, factored out
8064 from ...
8065 (switch_to_thread(ptid_t)): ... this.
8066 (restore_current_thread): Delete.
8067 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
8068 fields, and add 'inf' field.
8069 (do_restore_current_thread_cleanup): Check whether old->inf is
8070 alive instead of looking up an inferior by ptid. Use
8071 switch_to_thread and switch_to_no_thread.
8072 (restore_current_thread_cleanup_dtor): Use old->inf directly
8073 instead of lookup up an inferior by id. Decref the inferior.
8074 Don't restore 'removable'.
8075 (make_cleanup_restore_current_thread): Same the inferior pointer
8076 in old, instead of the inferior number. Incref the inferior.
8077 Don't save/clear 'removable'.
8078
9bcb1f16
PA
80792017-04-19 Pedro Alves <palves@redhat.com>
8080
8081 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8082 unittests/scoped_restore-selftests.c.
8083 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
8084 * common/scoped_restore.h (scoped_restore_base): Make "class".
8085 (scoped_restore_base::release): New public method.
8086 (scoped_restore_base::scoped_restore_base): New protected ctor.
8087 (scoped_restore_base::m_saved_var): New protected field.
8088 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
8089 scoped_restore_base base class instead of m_saved_var directly.
8090 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
8091 (scoped_restore_tmpl::scoped_restore_tmpl(const
8092 scoped_restore_tmpl<T>&)): Likewise.
8093 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
8094 method.
8095 (scoped_restore_tmpl::saved_var): New method.
8096 (scoped_restore_tmpl::m_saved_var): Delete.
8097 * inferior.h (inferior::detaching): Now a bool.
8098 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
8099 cleanup.
8100 * unittests/scoped_restore-selftests.c: New file.
8101
26fcd539
PA
81022017-04-19 Pedro Alves <palves@redhat.com>
8103
8104 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
8105 Re-sort in alphabetic order.
8106
fdd243b0
PA
81072017-04-18 Pedro Alves <palves@redhat.com>
8108
8109 * xml-support.c (obstack_xml_printf): Delete.
8110 * xml-support.h (obstack_xml_printf): Delete.
8111
4895cde2
PA
81122017-04-18 Pedro Alves <palves@redhat.com>
8113
8114 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
8115 vdebug, verror, body_text, start_element, end_element, name,
8116 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
8117 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
8118 is_xinclude>: Make private and add m_ prefix.
8119 (gdb_xml_parser::body_text): New method, based on ...
8120 (gdb_xml_body_text): ... this. Adjust.
8121 (gdb_xml_parser::vdebug): New method, based on ...
8122 (gdb_xml_debug): ... this. Adjust.
8123 (gdb_xml_parser::verror): New method, based on ...
8124 (gdb_xml_error): ... this. Adjust.
8125 (gdb_xml_parser::start_element): New method, based on ...
8126 (gdb_xml_start_element): ... this. Adjust.
8127 (gdb_xml_start_element_wrapper): Defer to
8128 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
8129 (gdb_xml_parser::end_element): New method, based on ...
8130 (gdb_xml_end_element_wrapper): ... this. Adjust.
8131 (gdb_xml_parser::~gdb_xml_parser): Adjust.
8132 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
8133 (gdb_xml_parser::use_dtd): New method, based on ...
8134 (gdb_xml_use_dtd): ... this. Adjust.
8135 (gdb_xml_parser::parse): New method, based on ...
8136 (gdb_xml_parse): ... this. Adjust.
8137 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
8138 (xinclude_start_include): Adjust to call the parser's name method.
8139 (xml_xinclude_default, xml_xinclude_start_doctype)
8140 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
8141 method.
8142 (xml_process_xincludes): Adjust to call parser methods.
8143 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
8144 declarations.
8145
bd8a901f
PA
81462017-04-18 Pedro Alves <palves@redhat.com>
8147
8148 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
8149 gdb::optional<std::string>.
8150 * xml-support.c: Include <string>.
8151 (scope_level::scope_level(scope_level &&))
8152 (scope_level::~scope_level): Delete.
8153 (scope_level::body): Now a std::string.
8154 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
8155 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
8156 parameter.
8157 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
8158 (xinclude_parsing_data::output): Now a std::string reference.
8159 (xinclude_start_include): Adjust.
8160 (xml_xinclude_default): Adjust.
8161 (xml_process_xincludes): Add 'output' parameter, and return bool.
8162 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
8163 and return bool.
8164 * xml-tdesc.c: Include <unordered_map> and <string>.
8165 (tdesc_xml_cache): Delete.
8166 (tdesc_xml_cache_s): Delete.
8167 (xml_cache): Now an std::unordered_map.
8168 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
8169 (target_fetch_description_xml): Change return type to
8170 gdb::optional<std::string>, and adjust.
8171 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
8172 (target_fetch_description_xml): Change return type to
8173 gdb::optional<std::string>.
8174
d35d1958
PA
81752017-04-18 Pedro Alves <palves@redhat.com>
8176
8177 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8178 unittests/optional-selftests.c.
8179 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
8180 * unittests/optional-selftests.c: New file.
8181 * unittests/optional/assignment/1.cc: New file.
8182 * unittests/optional/assignment/2.cc: New file.
8183 * unittests/optional/assignment/3.cc: New file.
8184 * unittests/optional/assignment/4.cc: New file.
8185 * unittests/optional/assignment/5.cc: New file.
8186 * unittests/optional/assignment/6.cc: New file.
8187 * unittests/optional/assignment/7.cc: New file.
8188 * unittests/optional/cons/copy.cc: New file.
8189 * unittests/optional/cons/default.cc: New file.
8190 * unittests/optional/cons/move.cc: New file.
8191 * unittests/optional/cons/value.cc: New file.
8192 * unittests/optional/in_place.cc: New file.
8193 * unittests/optional/observers/1.cc: New file.
8194 * unittests/optional/observers/2.cc: New file.
8195
22796e97
PA
81962017-04-18 Pedro Alves <palves@redhat.com>
8197
8198 * common/gdb_optional.h: Include common/traits.h.
8199 (in_place_t): New type.
8200 (in_place): New constexpr variable.
8201 (optional::optional): Remove member initialization of
8202 m_instantiated.
8203 (optional::optional(in_place_t...)): New constructor.
8204 (optional::~optional): Use reset.
8205 (optional::optional(const optional&)): New.
8206 (optional::optional(const optional&&)): New.
8207 (optional::optional(T &)): New.
8208 (optional::optional(T &&)): New.
8209 (operator::operator=(const optional &)): New.
8210 (operator::operator=(optional &&)): New.
8211 (operator::operator= (const T &))
8212 (operator::operator= (T &&))
8213 (operator::emplace (Args &&... args)): Return a T&. Use reset.
8214 (operator::reset): New.
8215 (operator::m_instantiated):: Add in-class initializer.
8216 * common/traits.h: Include <type_traits>.
8217 (struct And): New types.
8218
a7fc9b61
PA
82192017-04-18 Pedro Alves <palves@redhat.com>
8220
8221 * xml-support.c: Include <vector>.
8222 (scope_level::scope_level(const gdb_xml_element *))
8223 (scope_level::scope_level(scope_level&&)): New.
8224 (scope_level::~scope_level): New.
8225 (scope_level_s): Delete.
8226 (gdb_xml_parser::scopes): Now a std::vector.
8227 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
8228 Use std::vector.
8229 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
8230 scope cleanup code.
8231 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
8232 of the scopes member. Use std::vector::emplace_back.
8233
010151c9
PA
82342017-04-18 Pedro Alves <palves@redhat.com>
8235
8236 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
8237 a bool.
8238 (gdb_xml_end_element): Change type of first parameter.
8239 (gdb_xml_cleanup): Rename to ...
8240 (gdb_xml_parser::~gdb_xml_parser): ... this.
8241 (gdb_xml_create_parser_and_cleanup): Delete with ...
8242 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
8243 to this new ctor.
8244 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
8245 using gdb_xml_create_parser_and_cleanup.
8246 (xinclude_parsing_data): Add ctor/dtor.
8247 (xml_xinclude_cleanup): Delete.
8248 (xml_process_xincludes): Create a local xinclude_parsing_data
8249 instead of heap-allocating one. Create a local gdb_xml_parser
8250 instead of heap-allocating one with
8251 gdb_xml_create_parser_and_cleanup.
8252
d56060f0
JB
82532017-04-18 John Baldwin <jhb@FreeBSD.org>
8254
8255 PR threads/20743
8256 * fbsd-nat.c (resume_one_thread_cb): Remove.
8257 (resume_all_threads_cb): Remove.
8258 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
8259 iterate_over_threads.
8260
305d16a9
JB
82612017-04-17 Joel Brobecker <brobecker@adacore.com>
8262
8263 * NEWS: Create a new section for the next release branch.
8264 Rename the section of the current branch, now that it has
8265 been cut.
8266
8bb57231
JB
82672017-04-17 Joel Brobecker <brobecker@adacore.com>
8268
8269 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
8270 * version.in: Bump version to 8.0.50.DATE-git.
8271
096c92dd
SDJ
82722017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
8273
8274 PR gdb/21385
8275 * windows-nat.c (windows_create_inferior): Declare 'allargs'
8276 independently of the host, and fix build breakage on Cygwin.
8277
0550c955
PA
82782017-04-13 Pedro Alves <palves@redhat.com>
8279
8280 * inferior.c (free_inferior): Convert to ...
8281 (inferior::~inferior): ... this dtor.
8282 (inferior::inferior): New ctor, factored out from ...
8283 (add_inferior_silent): ... here. Allocate the inferior with a new
8284 expression.
8285 (delete_inferior): Call delete instead of free_inferior.
8286 * inferior.h (gdb_environ, continuation): Forward declare.
8287 (inferior): Now a class. Add in-class initialization to all
8288 members. Make boolean fields bool, except 'detaching'.
8289 (inferior::inferior): New explicit ctor.
8290 (inferior::~inferior): New.
8291
e3d60dfc
PA
82922017-04-13 Pedro Alves <palves@redhat.com>
8293
8294 * inferior.c (init_inferior_list): Delete.
8295 * inferior.h (init_inferior_list): Delete.
8296
5fd69d0a
PA
82972017-04-13 Pedro Alves <palves@redhat.com>
8298
8299 PR threads/13217
8300 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
8301 (top level): Call it twice, with different thread sets.
8302
c6609450
PA
83032017-04-13 Pedro Alves <palves@redhat.com>
8304
8305 * thread.c: Include <algorithm>.
8306 (thread_array_cleanup): Delete.
8307 (scoped_inc_dec_ref): New class.
8308 (live_threads_count): New function.
8309 (set_thread_refcount): Delete.
8310 (tp_array_compar_ascending): Now a bool.
8311 (tp_array_compar): Convert to a std::sort comparison function.
8312 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
8313 and live_threads_count.
8314
2a00d7ce
PA
83152017-04-13 Pedro Alves <palves@redhat.com>
8316
8317 * infrun.c (follow_fork_inferior): Also switch the current
8318 inferior.
8319
441d7c93
PA
83202017-04-13 Pedro Alves <palves@redhat.com>
8321
8322 * breakpoint.c (watch_command_1): Save watchpoint-frame info
8323 before calling create_internal_breakpoint.
8324
808480f6
PA
83252017-04-13 Pedro Alves <palves@redhat.com>
8326
8327 * fork-child.c (execv_argv): New class.
8328 (breakup_args): Refactored as ...
8329 (execv_argv::init_for_no_shell): .. this method of execv_argv.
8330 Copy arguments to storage and replace separators with NULL
8331 terminators in place.
8332 (escape_bang_in_quoted_argument): Adjust to return bool.
8333 (execv_argv::execv_argv): New ctor.
8334 (execv_argv::init_for_shell): New method, factored out from
8335 fork_inferior. Don't strdup strings into the vector.
8336 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
8337 Remove free_vector_argv call.
8338
ad3d022a
YQ
83392017-04-13 Yao Qi <yao.qi@linaro.org>
8340
8341 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
8342 tdep->rx_psw_type.
8343
e6ddc3bf
YQ
83442017-04-13 Yao Qi <yao.qi@linaro.org>
8345
8346 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
8347 * rx-tdep.c (rx_gdbarch_init): Likewise.
8348
bfb8cf90
PA
83492017-04-13 Pedro Alves <palves@redhat.com>
8350
8351 * breakpoint.h (struct breakpoint): Reindent.
8352
f5336ca5
PA
83532017-04-13 Pedro Alves <palves@redhat.com>
8354
8355 * breakpoint.c (bp_location): Rename to ...
8356 (bp_locations): ... this. All references updated.
8357 (bp_location_count): Rename to ...
8358 (bp_locations_count): ... this. All references updated.
8359 (bp_location_placed_address_before_address_max): Rename to ...
8360 (bp_locations_placed_address_before_address_max): ... this. All
8361 references updated.
8362 (bp_location_shadow_len_after_address_max): Rename to ...
8363 (bp_locations_shadow_len_after_address_max): ... this. All
8364 references updated.
8365 (bp_location_compare_addrs): Rename to ...
8366 (bp_locations_compare_addrs): ... this. All references updated.
8367 (bp_location_compare):Rename to ...
8368 (bp_locations_compare): ... this. All references updated.
8369 (bp_location_target_extensions_update): Rename to ...
8370 (bp_locations_target_extensions_update): ... this. All references
8371 updated.
8372
be628ab8
SDJ
83732017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
8374
8375 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
8376 * common/common.m4: Check headers 'termios.h', 'termio.h' and
8377 'sgtty.h'.
8378 * common/gdb_termios.h: New file, with parts of "terminal.h".
8379 * inflow.c: Include "gdb_termios.h".
8380 * ser-unix.c: Include "gdb_termios.h".
8381 * terminal.h: Move terminal-related defines to
8382 "common/gdb_termios.h".
8383
8e9e35b1
TT
83842017-04-12 Tom Tromey <tom@tromey.com>
8385
8386 * probe.c (parse_probes): Update.
8387 * location.h (delete_event_location): Don't declare.
8388 (event_location_deleter::operator()): Update.
8389 * location.c (event_location_deleter::operator()): Rename from
8390 delete_event_location.
8391 * linespec.h (linespec_result) <location>: Change type to
8392 event_location_up.
8393 * linespec.c (canonicalize_linespec, event_location_to_sals)
8394 (decode_objc): Update.
8395 (linespec_result): Don't call delete_event_location.
8396 * breakpoint.c (create_breakpoints_sal)
8397 (bkpt_probe_create_sals_from_location)
8398 (strace_marker_create_sals_from_location): Update.
8399
16e802b9
TT
84002017-04-12 Tom Tromey <tom@tromey.com>
8401
8402 * linespec.h (struct linespec_result): Add constructor and
8403 destructor.
8404 (init_linespec_result, destroy_linespec_result)
8405 (make_cleanup_destroy_linespec_result): Don't declare.
8406 * linespec.c (init_linespec_result): Remove.
8407 (linespec_result::~linespec_result): Rename from
8408 destroy_linespec_result. Update.
8409 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
8410 Remove.
8411 * breakpoint.c (create_breakpoint, break_range_command)
8412 (decode_location_default): Update.
8413 * ax-gdb.c (agent_command_1): Update.
8414
d28cd78a
TT
84152017-04-12 Tom Tromey <tom@tromey.com>
8416
8417 * remote.c (remote_download_tracepoint): Update.
8418 * python/py-breakpoint.c (bppy_get_location): Update.
8419 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
8420 (gdbscm_breakpoint_location): Update.
8421 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
8422 * breakpoint.h (struct breakpoint) <location, location_range_end>:
8423 Change type to event_location_up.
8424 * breakpoint.c (create_overlay_event_breakpoint)
8425 (create_longjmp_master_breakpoint)
8426 (create_std_terminate_master_breakpoint)
8427 (create_exception_master_breakpoint)
8428 (breakpoint_event_location_empty_p, print_breakpoint_location)
8429 (print_one_breakpoint_location, create_thread_event_breakpoint)
8430 (init_breakpoint_sal, create_breakpoint)
8431 (print_recreate_ranged_breakpoint, break_range_command)
8432 (init_ada_exception_breakpoint, say_where): Update.
8433 (base_breakpoint_dtor): Don't call delete_event_location.
8434 (bkpt_print_recreate, tracepoint_print_recreate)
8435 (dprintf_print_recreate, update_static_tracepoint)
8436 (breakpoint_re_set_default): Update.
8437
711799d5
TT
84382017-04-12 Tom Tromey <tom@tromey.com>
8439
8440 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
8441 type of "to_do". Update.
8442 (compute_stack_depth): Use std::vector.
8443
52d214d3
TT
84442017-04-12 Tom Tromey <tom@tromey.com>
8445
8446 * printcmd.c (find_instruction_backward): Use std::vector.
8447
4c404b8b
TT
84482017-04-12 Tom Tromey <tom@tromey.com>
8449
8450 * symfile.c (objfilep): Remove typedef.
8451 (reread_symbols): Use a std::vector.
8452
156d9eab
TT
84532017-04-12 Tom Tromey <tom@tromey.com>
8454
8455 * mi/mi-main.c (exec_direction_forward): Remove.
8456 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
8457 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
8458 scoped_restore.
8459 * guile/guile.c (guile_repl_command, guile_command)
8460 (gdbscm_execute_gdb_command): Use scoped_restore.
8461 * go-exp.y (go_parse): Use scoped_restore.
8462 * d-exp.y (d_parse): Use scoped_restore.
8463 * cli/cli-decode.c (cmd_func): Use scoped_restore.
8464 * c-exp.y (c_parse): Use scoped_restore.
8465
4d89769a
TT
84662017-04-12 Tom Tromey <tom@tromey.com>
8467
8468 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
8469 (mi_parse): Update return type.
8470 (mi_parse_free): Remove.
8471 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
8472 (mi_parse::~mi_parse): Rename from mi_parse_free.
8473 (mi_parse_cleanup): Remove.
8474 (mi_parse): Return a unique_ptr. Use new.
8475 * mi/mi-main.c (mi_execute_command): Update.
8476
4b217cc7
TT
84772017-04-12 Tom Tromey <tom@tromey.com>
8478
8479 * location.c (explicit_location_lex_one): Return a
8480 unique_xmalloc_ptr.
8481 (string_to_explicit_location): Update. Remove cleanups.
8482
59d3651b
TT
84832017-04-12 Tom Tromey <tom@tromey.com>
8484
8485 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
8486 (compare_value_and_voffset): Change type. Update.
8487 (compute_vtable_size): Change type of "offset_vec".
8488 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
8489 (gnuv3_get_typeid): Remove extraneous declaration.
8490
b24b0d6c
TT
84912017-04-12 Tom Tromey <tom@tromey.com>
8492
8493 * charset.h (wchar_iterator): Fix comment.
8494
80a3b8c5
TT
84952017-04-12 Tom Tromey <tom@tromey.com>
8496
8497 * charset.c (iconv_wrapper): New class.
8498 (cleanup_iconv): Remove.
8499 (convert_between_encodings): Use it.
8500
c83dd867
TT
85012017-04-12 Tom Tromey <tom@tromey.com>
8502
8503 * symfile.h (increment_reading_symtab): Update type.
8504 * symfile.c (decrement_reading_symtab): Remove.
8505 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
8506 * psymtab.c (psymtab_to_symtab): Update.
8507 * dwarf2read.c (dw2_instantiate_symtab): Update.
8508
0e8621a0
TT
85092017-04-12 Tom Tromey <tom@tromey.com>
8510
8511 * jit.c (struct jit_reader): Declare separately. Add constructor
8512 and destructor. Change type of "handle".
8513 (loaded_jit_reader): Define separately.
8514 (jit_reader_load): Update. New "new".
8515 (jit_reader_unload_command): Use "delete".
8516 * gdb-dlfcn.h (struct dlclose_deleter): New.
8517 (gdb_dlhandle_up): New typedef.
8518 (gdb_dlopen, gdb_dlsym): Update types.
8519 (gdb_dlclose): Remove.
8520 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
8521 (gdb_dlsym): Change type of "handle".
8522 (make_cleanup_dlclose): Remove.
8523 (dlclose_deleter::operator()): Rename from gdb_dlclose.
8524 * compile/compile-c-support.c (load_libcc): Update.
8525
67d89901
TT
85262017-04-12 Tom Tromey <tom@tromey.com>
8527
8528 * symtab.h (find_pcs_for_symtab_line): Change return type.
8529 * symtab.c (find_pcs_for_symtab_line): Change return type.
8530 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
8531 type of "vec". Update.
8532 (ltpy_get_pcs_for_line): Update.
8533 * linespec.c (decode_digits_ordinary): Update.
8534
93921405
TT
85352017-04-12 Tom Tromey <tom@tromey.com>
8536
8537 * tracepoint.c (actions_command): Update.
8538 * python/python.c (python_command, python_interactive_command):
8539 Update.
8540 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
8541 * guile/guile.c (guile_command): Update.
8542 * defs.h (read_command_lines, read_command_lines_1): Return
8543 command_line_up.
8544 (command_lines_deleter): New struct.
8545 (command_line_up): New typedef.
8546 * compile/compile.c (compile_code_command)
8547 (compile_print_command): Update.
8548 * cli/cli-script.h (get_command_line, copy_command_lines): Return
8549 command_line_up.
8550 (make_cleanup_free_command_lines): Remove.
8551 * cli/cli-script.c (get_command_line, read_command_lines_1)
8552 (copy_command_lines): Return command_line_up.
8553 (while_command, if_command, read_command_lines, define_command)
8554 (document_command): Update.
8555 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
8556 Remove.
8557 * breakpoint.h (breakpoint_set_commands): Change type of
8558 "commands".
8559 * breakpoint.c (breakpoint_set_commands): Change type of
8560 "commands". Update.
8561 (do_map_commands_command, update_dprintf_command_list)
8562 (create_tracepoint_from_upload): Update.
8563
ffc2605c
TT
85642017-04-12 Tom Tromey <tom@tromey.com>
8565
8566 * tracepoint.c (scope_info): Update.
8567 * spu-tdep.c (spu_catch_start): Update.
8568 * python/python.c (gdbpy_decode_line): Update.
8569 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
8570 * python/py-breakpoint.c (bppy_init): Update.
8571 * probe.c (parse_probes): Update.
8572 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
8573 * location.h (event_location_deleter): New struct.
8574 (event_location_up): New typedef.
8575 (new_linespec_location, new_address_location, new_probe_location)
8576 (new_explicit_location, copy_event_location)
8577 (string_to_event_location, string_to_event_location_basic)
8578 (string_to_explicit_location): Update return type.
8579 (make_cleanup_delete_event_location): Remove.
8580 * location.c (new_linespec_location, new_address_location)
8581 (new_probe_location, new_explicit_location, copy_event_location):
8582 Return event_location_up.
8583 (delete_event_location_cleanup)
8584 (make_cleanup_delete_event_location): Remove.
8585 (string_to_explicit_location, string_to_event_location_basic)
8586 (string_to_event_location): Return event_location_up.
8587 * linespec.c (canonicalize_linespec, event_location_to_sals)
8588 (decode_line_with_current_source)
8589 (decode_line_with_last_displayed, decode_objc): Update.
8590 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8591 * completer.c (location_completer): Update.
8592 * cli/cli-cmds.c (edit_command, list_command): Update.
8593 * breakpoint.c (create_overlay_event_breakpoint)
8594 (create_longjmp_master_breakpoint)
8595 (create_std_terminate_master_breakpoint)
8596 (create_exception_master_breakpoint)
8597 (create_thread_event_breakpoint): Update.
8598 (init_breakpoint_sal): Update. Remove some dead code.
8599 (create_breakpoint_sal): Change type of "location". Update.
8600 (create_breakpoints_sal, create_breakpoint, break_command_1)
8601 (dprintf_command, break_range_command, until_break_command)
8602 (init_ada_exception_breakpoint)
8603 (strace_marker_create_sals_from_location)
8604 (update_static_tracepoint, trace_command, ftrace_command)
8605 (strace_command, create_tracepoint_from_upload): Update.
8606 * break-catch-throw.c (re_set_exception_catchpoint): Update.
8607 * ax-gdb.c (agent_command_1): Update.
8608
8f10c932
PA
86092017-04-12 Pedro Alves <palves@redhat.com>
8610
8611 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
8612 * configure.tgt: Handle i[34567]86-*-go32* and
8613 i[34567]86-*-msdosdjgpp*.
8614 * i386-tdep.c (i386_svr4_reg_to_regnum):
8615 Make extern.
8616 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
8617 i386-go32-tdep.c.
8618 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
8619 * i386-go32-tdep.c: New file.
8620 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
8621 declarations.
8622
0a31ccfb
SM
86232017-04-12 Simon Marchi <simon.marchi@ericsson.com>
8624
8625 * aix-thread.c (pd_status2str): Change return type to const char *.
8626
e9bb3fbb
PA
86272017-04-12 Pedro Alves <palves@redhat.com>
8628
8629 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
8630 calls to set_gdbarch_gnu_triplet_regexp.
8631
53375380
PA
86322017-04-12 Pedro Alves <palves@redhat.com>
8633
8634 PR gdb/21323
8635 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
8636 New enum value.
8637 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
8638 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
8639 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
8640 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
8641 * gdbarch.h, gdbarch.c: Regenerate.
8642 * aarch64-tdep.c (aarch64_gdbarch_init): Override
8643 gdbarch_wchar_bit and gdbarch_wchar_signed.
8644 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
8645 * arm-tdep.c (arm_gdbarch_init): Likewise.
8646 * avr-tdep.c (avr_gdbarch_init): Likewise.
8647 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
8648 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
8649 * i386-tdep.c (i386_go32_init_abi): Likewise.
8650 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8651 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8652 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
8653 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
8654 * sh-tdep.c (sh_gdbarch_init): Likewise.
8655 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8656 * sparc64-tdep.c (sparc64_init_abi): Likewise.
8657 * windows-tdep.c (windows_init_abi): Likewise.
8658 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
8659
53e710ac
PA
86602017-04-12 Pedro Alves <palves@redhat.com>
8661
8662 PR c++/21323
8663 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
8664 cplus_primitive_type_char32_t>: New enum values.
8665 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
8666 and cplus_primitive_type_char32_t.
8667 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
8668 32, use the archtecture's built-in type for char16_t and char32_t,
8669 respectively. Otherwise, fallback to init_integer_type as before,
8670 but make the type unsigned, and issue a complaint.
8671 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
8672
ab0538b8
AH
86732017-04-12 Alan Hayward <alan.hayward@arm.com>
8674
5e0e0422 8675 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
8676 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
8677
5430098f
SDJ
86782017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
8679
8680 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
8681 'const char *'.
8682
7c5ded6a
SDJ
86832017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
8684
8685 * common/common-utils.c (free_vector_argv): New function.
8686 * common/common-utils.h: Include <vector>.
8687 (free_vector_argv): New prototype.
8688 * darwin-nat.c (darwin_create_inferior): Rewrite function
8689 prototype in order to constify "exec_file" and accept a
8690 "std::string" for "allargs".
8691 * fork-child.c: Include <vector>.
8692 (breakup_args): Rewrite function, using C++.
8693 (fork_inferior): Rewrite function header, constify "exec_file_arg"
8694 and accept "std::string" for "allargs". Update the code to
8695 calculate "argv" based on "allargs". Update calls to "exec_fun"
8696 and "execvp".
8697 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
8698 order to constify "exec_file" and accept a "std::string" for
8699 "allargs".
8700 * go32-nat.c (go32_create_inferior): Likewise.
8701 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
8702 * infcmd.c (run_command_1): Constify "exec_file". Use
8703 "std::string" for inferior arguments.
8704 * inferior.h (fork_inferior): Update prototype.
8705 * linux-nat.c (linux_nat_create_inferior): Rewrite function
8706 prototype in order to constify "exec_file" and accept a
8707 "std::string" for "allargs".
8708 * nto-procfs.c (procfs_create_inferior): Likewise.
8709 * procfs.c (procfs_create_inferior): Likewise.
8710 * remote-sim.c (gdbsim_create_inferior): Likewise.
8711 * remote.c (extended_remote_run): Update code to accept
8712 "std::string" as argument.
8713 (extended_remote_create_inferior): Rewrite function prototype in
8714 order to constify "exec_file" and accept a "std::string" for
8715 "allargs".
8716 * rs6000-nat.c (super_create_inferior): Likewise.
8717 (rs6000_create_inferior): Likewise.
8718 * target.h (struct target_ops) <to_create_inferior>: Likewise.
8719 * windows-nat.c (windows_create_inferior): Likewise.
8720
ae0eee42
PA
87212017-04-11 Pedro Alves <palves@redhat.com>
8722
8723 * thread.c: Fix whitespace throughout.
8724
a6acac06
PR
87252017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
8726
8727 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
8728
64403bd1
AH
87292017-04-11 Alan Hayward <alan.hayward@arm.com>
8730
8731 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
8732
a5bef50f
SDJ
87332017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
8734
8735 PR gdb/21364
8736 * osdata.c (info_osdata): Check if 'type' is an empty string
8737 instead of NULL.
8738
9295a5a9
PA
87392017-04-10 Pedro Alves <palves@redhat.com>
8740
8741 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
8742 (ptid_to_global_thread_id, in_thread_list)
8743 (do_captured_list_thread_ids, set_resumed, set_running)
8744 (set_executing, set_stop_requested, finish_thread_state)
8745 (validate_registers_access, can_access_registers_ptid)
8746 (print_thread_info_1, switch_to_thread)
8747 (do_restore_current_thread_cleanup)
8748 (make_cleanup_restore_current_thread, thread_command)
8749 (thread_name_command): Use operator== instead of ptid_equal.
8750
996812e3
PA
87512017-04-10 Pedro Alves <palves@redhat.com>
8752
8753 * thread.c (struct current_thread_cleanup) <next>: Delete field.
8754 (current_thread_cleanup_chain): Delete.
8755 (restore_current_thread_cleanup_dtor)
8756 (make_cleanup_restore_current_thread): Remove references to
8757 current_thread_cleanup_chain.
8758
845b344f
AH
87592017-04-10 Alan Hayward <alan.hayward@arm.com>
8760
8761 * msp430-tdep.c (msp430_pseudo_register_read): Never return
8762 REG_UNKNOWN.
8763
803bdfe4
YQ
87642017-04-10 Yao Qi <yao.qi@linaro.org>
8765
8766 PR gdb/19942
8767 * gdbthread.h (thread_info::deletable): New method.
8768 (thread_info::incref): New method.
8769 (thread_info::decref): New method.
8770 (thread_info::refcount): Move it to private.
8771 * infrun.c (save_stop_context): Call inc_refcount.
8772 (release_stop_context_cleanup): Likewise.
8773 * thread.c (set_thread_exited): New function.
8774 (init_thread_list): Delete "tp" only it is deletable, otherwise
8775 call set_thread_exited.
8776 (delete_thread_1): Call set_thread_exited.
8777 (current_thread_cleanup) <inferior_pid>: Remove.
8778 <thread>: New field.
8779 (restore_current_thread_ptid_changed): Removed.
8780 (do_restore_current_thread_cleanup): Adjust.
8781 (restore_current_thread_cleanup_dtor): Don't call
8782 find_thread_ptid.
8783 (set_thread_refcount): Use dec_refcount.
8784 (make_cleanup_restore_current_thread): Adjust.
8785 (thread_apply_all_command): Call inc_refcount.
8786 (_initialize_thread): Don't call
8787 observer_attach_thread_ptid_changed.
8788
8c25b497
YQ
87892017-04-10 Yao Qi <yao.qi@linaro.org>
8790
8791 * thread.c (delete_thread_1): Hoist code on marking thread as
8792 exited.
8793
8473b447
SM
87942017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8795
8796 * windows-nat.c (windows_detach): Initialize ptid with
8797 minus_one_ptid.
8798
6670ec13
SM
87992017-04-07 Simon Marchi <simon.marchi@ericsson.com>
8800
8801 * unittests/ptid-selftests.c: Fix erroneous assert messages.
8802
ba2f91bb
AH
88032017-04-07 Alan Hayward <alan.hayward@arm.com>
8804
8805 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
8806 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
8807 (bfin_pseudo_register_write): Likewise
8808
436252de
SM
88092017-04-06 Simon Marchi <simon.marchi@ericsson.com>
8810
8811 * common/ptid.h (struct ptid): Change to...
8812 (class ptid_t): ... this.
8813 <ptid_t>: New constructors.
8814 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
8815 matches>: New methods.
8816 <make_null, make_minus_one>: New static methods.
8817 <pid>: Rename to...
8818 <m_pid>: ...this.
8819 <lwp>: Rename to...
8820 <m_lwp>: ...this.
8821 <tid>: Rename to...
8822 <m_tid>: ...this.
8823 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
8824 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
8825 as references, move comment to class ptid_t.
8826 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
8827 ptid_t static methods.
8828 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
8829 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
8830 Take ptid arguments as references, implement using ptid_t methods.
8831 * unittests/ptid-selftests.c: New file.
8832 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8833 unittests/ptid-selftests.c.
8834 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
8835
0dedf377
TP
88362017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
8837
8838 * python/python.c (python_run_simple_file): Cast mode literal to
8839 non-const char pointer as expected by PyFile_FromString.
8840
4e9868d4
SM
88412017-04-05 Simon Marchi <simon.marchi@ericsson.com>
8842
8843 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
8844 minus_one_ptid and null_ptid.
8845
9bf2a700
PA
88462017-04-05 Pedro Alves <palves@redhat.com>
8847
8848 * warning.m4 (build_warnings): Remove -Wno-write-strings.
8849 * configure: Regenerate.
8850
a121b7c1
PA
88512017-04-05 Pedro Alves <palves@redhat.com>
8852
8853 * ada-exp.y (yyerror): Constify.
8854 * ada-lang.c (bound_name, get_selections)
8855 (ada_variant_discrim_type)
8856 (ada_variant_discrim_name, ada_value_struct_elt)
8857 (ada_lookup_struct_elt_type, is_unchecked_variant)
8858 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
8859 (catch_ada_exception_command_split)
8860 (catch_ada_assert_command_split, catch_assert_command)
8861 (ada_op_name): Constify.
8862 * ada-lang.h (ada_yyerror, get_selections)
8863 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
8864 * arc-tdep.c (arc_print_frame_cache): Constify.
8865 * arm-tdep.c (arm_skip_stub): Constify.
8866 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
8867 (gen_aggregate_elt_ref): Constify.
8868 * bcache.c (print_bcache_statistics): Constify.
8869 * bcache.h (print_bcache_statistics): Constify.
8870 * break-catch-throw.c (catch_exception_command_1):
8871 * breakpoint.c (struct ep_type_description::description):
8872 Constify.
8873 (add_solib_catchpoint): Constify.
8874 (catch_fork_command_1): Add cast.
8875 (add_catch_command): Constify.
8876 * breakpoint.h (add_catch_command, add_solib_catchpoint):
8877 Constify.
8878 * bsd-uthread.c (bsd_uthread_state): Constify.
8879 * buildsym.c (patch_subfile_names): Constify.
8880 * buildsym.h (next_symbol_text_func, patch_subfile_names):
8881 Constify.
8882 * c-exp.y (yyerror): Constify.
8883 (token::oper): Constify.
8884 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
8885 * c-varobj.c (cplus_describe_child): Constify.
8886 * charset.c (find_charset_names): Add cast.
8887 (find_charset_names): Constify array and add const_cast.
8888 * cli/cli-cmds.c (complete_command, cd_command): Constify.
8889 (edit_command): Constify.
8890 * cli/cli-decode.c (lookup_cmd): Constify.
8891 * cli/cli-dump.c (dump_memory_command, dump_value_command):
8892 Constify.
8893 (struct dump_context): Constify.
8894 (add_dump_command, restore_command): Constify.
8895 * cli/cli-script.c (get_command_line): Constify.
8896 * cli/cli-script.h (get_command_line): Constify.
8897 * cli/cli-utils.c (check_for_argument): Constify.
8898 * cli/cli-utils.h (check_for_argument): Constify.
8899 * coff-pe-read.c (struct read_pe_section_data): Constify.
8900 * command.h (lookup_cmd): Constify.
8901 * common/print-utils.c (decimal2str): Constify.
8902 * completer.c (gdb_print_filename): Constify.
8903 * corefile.c (set_gnutarget): Constify.
8904 * cp-name-parser.y (yyerror): Constify.
8905 * cp-valprint.c (cp_print_class_member): Constify.
8906 * cris-tdep.c (cris_register_name, crisv32_register_name):
8907 Constify.
8908 * d-exp.y (yyerror): Constify.
8909 (struct token::oper): Constify.
8910 * d-lang.h (d_yyerror): Constify.
8911 * dbxread.c (struct header_file_location::name): Constify.
8912 (add_old_header_file, add_new_header_file, last_function_name)
8913 (dbx_next_symbol_text, add_bincl_to_list)
8914 (find_corresponding_bincl_psymtab, set_namestring)
8915 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
8916 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
8917 * defs.h (command_line_input, print_address_symbolic)
8918 (deprecated_readline_begin_hook): Constify.
8919 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
8920 Constify.
8921 * event-top.c (handle_line_of_input): Constify and add cast.
8922 * exceptions.c (catch_errors): Constify.
8923 * exceptions.h (catch_errors): Constify.
8924 * expprint.c (print_subexp_standard, op_string, op_name)
8925 (op_name_standard, dump_raw_expression, dump_raw_expression):
8926 * expression.h (op_name, op_string, dump_raw_expression):
8927 Constify.
8928 * f-exp.y (yyerror): Constify.
8929 (struct token::oper): Constify.
8930 (struct f77_boolean_val::name): Constify.
8931 * f-lang.c (f_word_break_characters): Constify.
8932 * f-lang.h (f_yyerror): Constify.
8933 * fork-child.c (fork_inferior): Add cast.
8934 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
8935 (new_variant): Constify.
8936 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
8937 * gdbarch.c: Regenerate.
8938 * gdbcore.h (set_gnutarget): Constify.
8939 * go-exp.y (yyerror): Constify.
8940 (token::oper): Constify.
8941 * go-lang.h (go_yyerror): Constify.
8942 * go32-nat.c (go32_sysinfo): Constify.
8943 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
8944 * guile/scm-cmd.c (cmdscm_function): Constify.
8945 * guile/scm-param.c (pascm_param_value): Constify.
8946 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
8947 (h8300sx_register_name): Constify.
8948 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
8949 Constify.
8950 * ia64-tdep.c (ia64_register_names): Constify.
8951 * infcmd.c (construct_inferior_arguments): Constify.
8952 (path_command, attach_post_wait): Constify.
8953 * language.c (show_range_command, show_case_command)
8954 (unk_lang_error): Constify.
8955 * language.h (language_defn::la_error)
8956 (language_defn::la_name_of_this): Constify.
8957 * linespec.c (decode_line_2): Constify.
8958 * linux-thread-db.c (thread_db_err_str): Constify.
8959 * lm32-tdep.c (lm32_register_name): Constify.
8960 * m2-exp.y (yyerror): Constify.
8961 * m2-lang.h (m2_yyerror): Constify.
8962 * m32r-tdep.c (m32r_register_names): Constify and make static.
8963 * m68hc11-tdep.c (m68hc11_register_names): Constify.
8964 * m88k-tdep.c (m88k_register_name): Constify.
8965 * macroexp.c (appendmem): Constify.
8966 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
8967 (upgrade_type, parse_external, parse_partial_symbols)
8968 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
8969 (new_symbol): Constify.
8970 * memattr.c (mem_info_command): Constify.
8971 * mep-tdep.c (register_name_from_keyword): Constify.
8972 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
8973 Constify.
8974 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
8975 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
8976 * mi/mi-main.c (captured_mi_execute_command): Constify and add
8977 cast.
8978 (mi_execute_async_cli_command): Constify.
8979 * mips-tdep.c (mips_register_name): Constify.
8980 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
8981 (am33_register_name, am33_2_register_name)
8982 * moxie-tdep.c (moxie_register_names): Constify.
8983 * nat/linux-osdata.c (osdata_type): Constify fields.
8984 * nto-tdep.c (nto_parse_redirection): Constify.
8985 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
8986 (lookup_child_selector): Constify.
8987 (objc_methcall::name): Constify.
8988 * objc-lang.h (lookup_objc_class, lookup_child_selector)
8989 (lookup_struct_typedef): Constify.
8990 * objfiles.c (pc_in_section): Constify.
8991 * objfiles.h (pc_in_section): Constify.
8992 * p-exp.y (struct token::oper): Constify.
8993 (yyerror): Constify.
8994 * p-lang.h (pascal_yyerror): Constify.
8995 * parser-defs.h (op_name_standard): Constify.
8996 (op_print::string): Constify.
8997 (exp_descriptor::op_name): Constify.
8998 * printcmd.c (print_address_symbolic): Constify.
8999 * psymtab.c (print_partial_symbols): Constify.
9000 * python/py-breakpoint.c (stop_func): Constify.
9001 (bppy_get_expression): Constify.
9002 * python/py-cmd.c (cmdpy_completer::name): Constify.
9003 (cmdpy_function): Constify.
9004 * python/py-event.c (evpy_add_attribute)
9005 (gdbpy_initialize_event_generic): Constify.
9006 * python/py-event.h (evpy_add_attribute)
9007 (gdbpy_initialize_event_generic): Constify.
9008 * python/py-evts.c (add_new_registry): Constify.
9009 * python/py-finishbreakpoint.c (outofscope_func): Constify.
9010 * python/py-framefilter.c (get_py_iter_from_func): Constify.
9011 * python/py-inferior.c (get_buffer): Add cast.
9012 * python/py-param.c (parm_constant::name): Constify.
9013 * python/py-unwind.c (fprint_frame_id): Constify.
9014 * python/python.c (gdbpy_parameter_value): Constify.
9015 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
9016 * remote.c (memory_packet_config::name): Constify.
9017 (show_packet_config_cmd, remote_write_bytes)
9018 (remote_buffer_add_string):
9019 * reverse.c (exec_reverse_once): Constify.
9020 * rs6000-tdep.c (variant::name, variant::description): Constify.
9021 * rust-exp.y (rustyyerror): Constify.
9022 * rust-lang.c (rust_op_name): Constify.
9023 * rust-lang.h (rustyyerror): Constify.
9024 * serial.h (serial_ops::name): Constify.
9025 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
9026 (sh_sh3e_register_name, sh_sh2e_register_name)
9027 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
9028 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
9029 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
9030 (sh_sh4al_dsp_register_name): Constify.
9031 * sh64-tdep.c (sh64_register_name): Constify.
9032 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
9033 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
9034 * stabsread.c (patch_block_stabs, read_type_number)
9035 (ref_map::stabs, ref_add, process_reference)
9036 (symbol_reference_defined, define_symbol, define_symbol)
9037 (error_type, read_type, read_member_functions, read_cpp_abbrev)
9038 (read_one_struct_field, read_struct_fields, read_baseclasses)
9039 (read_tilde_fields, read_struct_type, read_array_type)
9040 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
9041 (read_huge_number, read_range_type, read_args, common_block_start)
9042 (find_name_end): Constify.
9043 * stabsread.h (common_block_start, define_symbol)
9044 (process_one_symbol, symbol_reference_defined, ref_add):
9045 * symfile.c (get_section_index, add_symbol_file_command):
9046 * symfile.h (get_section_index): Constify.
9047 * target-descriptions.c (tdesc_type::name): Constify.
9048 (tdesc_free_type): Add cast.
9049 * target.c (find_default_run_target):
9050 (add_deprecated_target_alias, find_default_run_target)
9051 (target_announce_detach): Constify.
9052 (do_option): Constify.
9053 * target.h (add_deprecated_target_alias): Constify.
9054 * thread.c (print_thread_info_1): Constify.
9055 * top.c (deprecated_readline_begin_hook, command_line_input):
9056 Constify.
9057 (init_main): Add casts.
9058 * top.h (handle_line_of_input): Constify.
9059 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
9060 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
9061 (tfind_command): Rename to ...
9062 (tfind_command_1): ... this and constify.
9063 (tfind_command): New function.
9064 (tfind_end_command, tfind_start_command): Adjust.
9065 (encode_source_string): Constify.
9066 * tracepoint.h (encode_source_string): Constify.
9067 * tui/tui-data.c (tui_partial_win_by_name): Constify.
9068 * tui/tui-data.h (tui_partial_win_by_name): Constify.
9069 * tui/tui-source.c (tui_set_source_content_nil): Constify.
9070 * tui/tui-source.h (tui_set_source_content_nil): Constify.
9071 * tui/tui-win.c (parse_scrolling_args): Constify.
9072 * tui/tui-windata.c (tui_erase_data_content): Constify.
9073 * tui/tui-windata.h (tui_erase_data_content): Constify.
9074 * tui/tui-winsource.c (tui_erase_source_content): Constify.
9075 * tui/tui.c (tui_enable): Add cast.
9076 * utils.c (defaulted_query): Constify.
9077 (init_page_info): Add cast.
9078 (puts_debug, subset_compare): Constify.
9079 * utils.h (subset_compare): Constify.
9080 * varobj.c (varobj_format_string): Constify.
9081 * varobj.h (varobj_format_string): Constify.
9082 * vax-tdep.c (vax_register_name): Constify.
9083 * windows-nat.c (windows_detach): Constify.
9084 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
9085 * xml-support.c (gdb_xml_end_element): Constify.
9086 * xml-tdesc.c (tdesc_start_reg): Constify.
9087 * xstormy16-tdep.c (xstormy16_register_name): Constify.
9088 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
9089 * xtensa-tdep.h (xtensa_register_t::name): Constify.
9090
995816ba
PA
90912017-04-05 Pedro Alves <palves@redhat.com>
9092
9093 * proc-api.c (struct trans): Constify.
9094 (procfs_note): Constify.
9095 * proc-events.c (struct trans, syscall_table):
9096 * proc-flags.c (struct trans): Constify.
9097 * proc-utils.h (procfs_note): Constify.
9098 * proc-why.c (struct trans): Constify.
9099 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
9100 (procfs_detach): Constify.
9101 * sol-thread.c (struct string_map): Constify.
9102 (td_err_string, td_state_string): Constify.
9103
3e83a920
PA
91042017-04-05 Pedro Alves <palves@redhat.com>
9105
9106 * proc-api.c (procfs_filename): Don't initialize
9107 procfs_filename.
9108 (prepare_to_trace): Assume procfs_filename is non-NULL.
9109 (_initialize_proc_api): Give procfs_filename a default value here.
9110
63160a43
PA
91112017-04-05 Pedro Alves <palves@redhat.com>
9112
9113 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
9114 'cond_string' parameter.
9115 (extract_exception_regexp): Constify 'string' parameter.
9116 (catch_exception_command_1): Constify.
9117 * breakpoint.c (init_catchpoint)
9118 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
9119 parameter.
9120 (ep_parse_optional_if_clause, catch_fork_command_1)
9121 (catch_exec_command_1): Constify.
9122 * breakpoint.h (init_catchpoint): Constify 'cond_string'
9123 parameter.
9124 (ep_parse_optional_if_clause): Constify.
9125 * cli/cli-utils.c (remove_trailing_whitespace)
9126 (check_for_argument): Constify.
9127 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
9128 non-const overload.
9129 (check_for_argument): Likewise.
9130
9b2eba3d
PA
91312017-04-05 Pedro Alves <palves@redhat.com>
9132
9133 * event-top.c (command_line_handler): Add cast to execute_command
9134 call.
9135 * record-btrace.c (cmd_record_btrace_bts_start)
9136 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
9137 (cmd_record_btrace_start): Add cast to execute_command call.
9138 * record-full.c (record_full_goto_insn):
9139 * record.c (record_start, record_stop): Add cast to
9140 execute_command_to_string calls.
9141 (cmd_record_start): Add cast to execute_command calls.
9142
2adadf51
PA
91432017-04-05 Pedro Alves <palves@redhat.com>
9144
9145 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
9146 static inline function.
9147 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
9148 array and use gdb_PyArg_ParseTupleAndKeywords.
9149 * python/py-cmd.c (cmdpy_init): Likewise.
9150 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
9151 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
9152 (infpy_search_memory): Likewise.
9153 * python/py-objfile.c (objfpy_add_separate_debug_file)
9154 (gdbpy_lookup_objfile): Likewise.
9155 * python/py-symbol.c (gdbpy_lookup_symbol)
9156 (gdbpy_lookup_global_symbol): Likewise.
9157 * python/py-type.c (gdbpy_lookup_type): Likewise.
9158 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
9159 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
9160 Likewise.
9161
0d1f4ceb
PA
91622017-04-05 Pedro Alves <palves@redhat.com>
9163
9164 * python/python-internal.h (gdb_PyGetSetDef): New type.
9165 * python/py-block.c (block_object_getset)
9166 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
9167 * python/py-event.c (event_object_getset)
9168 (finish_breakpoint_object_getset): Likewise.
9169 * python/py-inferior.c (inferior_object_getset): Likewise.
9170 * python/py-infthread.c (thread_object_getset): Likewise.
9171 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
9172 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
9173 * python/py-objfile.c (objfile_getset): Likewise.
9174 * python/py-progspace.c (pspace_getset): Likewise.
9175 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
9176 Likewise.
9177 * python/py-record.c (recpy_record_getset): Likewise.
9178 * python/py-symbol.c (symbol_object_getset): Likewise.
9179 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
9180 Likewise.
9181 * python/py-type.c (type_object_getset, field_object_getset):
9182 Likewise.
9183 * python/py-value.c (value_object_getset): Likewise.
9184
4d759979
PA
91852017-04-05 Pedro Alves <palves@redhat.com>
9186
9187 * python/python-internal.h (gdb_PyObject_CallMethod)
9188 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
9189 New functions.
9190 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
9191 (PySys_GetObject, PySys_SetPath): New macros.
9192
fdf9e36f
PA
91932017-04-05 Pedro Alves <palves@redhat.com>
9194
9195 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
9196 info_osdata_command.
9197 * osdata.c (info_osdata_command): Rename to ...
9198 (info_osdata): ... this. Constify 'type' parameter, and remove
9199 the 'from_tty' parameter. Accept NULL TYPE.
9200 (info_osdata_command): New function.
9201 * osdata.h (info_osdata_command): Remove declaration.
9202 (info_osdata): New declaration.
9203
9f33b8b7
PA
92042017-04-05 Pedro Alves <palves@redhat.com>
9205
9206 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
9207 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
9208 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
9209 parameter.
9210 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
9211 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
9212 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
9213 parameter.
9214 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
9215 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
9216 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
9217 (mi_cmd_file_list_exec_source_files)
9218 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
9219 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
9220 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
9221 parameter.
9222 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
9223 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
9224 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
9225 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
9226 (mi_cmd_stack_info_frame): Constify 'command' parameter.
9227 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
9228 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
9229 'command' parameter.
9230 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
9231 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
9232 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
9233 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
9234 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
9235 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
9236 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
9237 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
9238 (mi_cmd_var_set_update_range): Constify 'command' parameter.
9239 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
9240 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
9241 parameter.
9242 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
9243 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
9244 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
9245 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
9246 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
9247 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
9248 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
9249 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
9250 (mi_cmd_data_list_changed_registers)
9251 (mi_cmd_data_write_register_values)
9252 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
9253 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
9254 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
9255 (mi_cmd_list_features, mi_cmd_list_target_features)
9256 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
9257 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
9258 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
9259 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
9260 (mi_cmd_trace_frame_collected): Constify 'command'
9261 parameter.
9262 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
9263 'command' parameter.
9264
67cb5b2d
PA
92652017-04-05 Pedro Alves <palves@redhat.com>
9266
9267 * ada-lang.c (ada_completer_word_break_characters): Now a const
9268 array.
9269 (ada_get_gdb_completer_word_break_characters): Constify.
9270 * completer.c (gdb_completer_command_word_break_characters)
9271 (gdb_completer_file_name_break_characters)
9272 (gdb_completer_quote_characters): Now const arrays.
9273 (get_gdb_completer_quote_characters): Constify.
9274 (set_rl_completer_word_break_characters): New function.
9275 (set_gdb_completion_word_break_characters)
9276 (complete_line_internal): Use it.
9277 * completer.h (get_gdb_completer_quote_characters): Constify.
9278 (set_rl_completer_word_break_characters): Declare.
9279 * f-lang.c (f_word_break_characters): Constify.
9280 * language.c (default_word_break_characters): Constify.
9281 * language.h (language_defn::la_word_break_characters): Constify.
9282 (default_word_break_characters): Constify.
9283 * top.c (init_main): Use set_rl_completer_word_break_characters.
9284
7a114964
PA
92852017-04-05 Pedro Alves <palves@redhat.com>
9286
9287 * aix-thread.c (aix_thread_pid_to_str)
9288 (aix_thread_extra_thread_info): Constify.
9289 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
9290 * bsd-uthread.c (bsd_uthread_extra_thread_info)
9291 (bsd_uthread_pid_to_str): Constify.
9292 * corelow.c (core_pid_to_str): Constify.
9293 * darwin-nat.c (darwin_pid_to_str): Constify.
9294 * fbsd-nat.c (fbsd_pid_to_str): Constify.
9295 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
9296 Constify.
9297 * gnu-nat.c (gnu_pid_to_str): Constify.
9298 * go32-nat.c (go32_pid_to_str): Constify.
9299 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
9300 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
9301 * inferior.c (inferior_pid_to_str): Constify.
9302 * linux-nat.c (linux_nat_pid_to_str): Constify.
9303 * linux-tdep.c (linux_core_pid_to_str): Constify.
9304 * linux-thread-db.c (thread_db_pid_to_str)
9305 (thread_db_extra_thread_info): Constify.
9306 * nto-tdep.c (nto_extra_thread_info): Constify.
9307 * nto-tdep.h (nto_extra_thread_info): Constify.
9308 * obsd-nat.c (obsd_pid_to_str): Constify.
9309 * procfs.c (procfs_pid_to_str): Constify.
9310 * ravenscar-thread.c (ravenscar_extra_thread_info)
9311 (ravenscar_pid_to_str): Constify.
9312 * remote-sim.c (gdbsim_pid_to_str): Constify.
9313 * remote.c (remote_threads_extra_info, remote_pid_to_str):
9314 Constify.
9315 * sol-thread.c (solaris_pid_to_str): Constify.
9316 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
9317 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
9318 * target.c (default_pid_to_str, target_pid_to_str)
9319 (normal_pid_to_str, default_pid_to_str): Constify.
9320 * target.h (target_ops::to_pid_to_str)
9321 (target_ops::to_extra_thread_info): Constify.
9322 (target_pid_to_str, normal_pid_to_str): Constify.
9323 * windows-nat.c (windows_pid_to_str): Constify.
9324 * gdbarch.sh (core_pid_to_str): Constify.
9325 * target-delegates.c: Regenerate.
9326 * gdbarch.h, gdbarch.c: Regenerate.
9327
69bbf465
PA
93282017-04-05 Pedro Alves <palves@redhat.com>
9329
9330 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
9331 the memory of the temporary warning_pre_print override.
9332 * utils.c (warning_pre_print): Constify.
9333 * utils.h (warning_pre_print): Constify.
9334
be47f9e8
PA
93352017-04-05 Pedro Alves <palves@redhat.com>
9336
9337 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
9338 (shell_command): New function.
9339 (make_command): Use std::string.
9340 (init_cli_cmds): Register shell_command instead of shell_escape.
9341
bde6261a
PA
93422017-04-05 Pedro Alves <palves@redhat.com>
9343
9344 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
9345 * tracepoint.c (default_collect): Don't initialize.
9346
b38ef47f
PA
93472017-04-05 Pedro Alves <palves@redhat.com>
9348
9349 * macroexp.c (macro_buffer::shared): Now a bool.
9350 (init_buffer): Update.
9351 (init_shared_buffer): Constify 'addr' parameter.
9352 (substitute_args, expand, macro_expand, macro_expand_next): Remove
9353 casts.
9354
f995bbe8
PA
93552017-04-05 Pedro Alves <palves@redhat.com>
9356
9357 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
9358 * disasm.c (set_disassembler_options): Constify local.
9359 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
9360
4a596fe2
SDJ
93612017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
9362
9363 PR gdb/21352
9364 * tracefile.c (tsave_command): Fix argument parsing for '-r'
9365 option.
9366
2cad08ea
YQ
93672017-04-05 Yao Qi <yao.qi@linaro.org>
9368
9369 * frame.c (frame_unwind_register_unsigned): Call
9370 frame_unwind_register_value.
9371
55a98976
YQ
93722017-04-05 Yao Qi <yao.qi@linaro.org>
9373
9374 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
9375 Use gdb_test_multiple, and don't match anchor.
9376
4ac40124
PA
93772017-04-05 Pedro Alves <palves@redhat.com>
9378
9379 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
9380 (Write After Approval): Remove Simon Marchi.
9381
c053b654
PA
93822017-04-05 Pedro Alves <palves@redhat.com>
9383
9384 * common/gdb_optional.h (optional::optional): Make constexpr and
9385 initialize m_dummy.
9386
4c7bf4f9
JB
93872017-04-04 John Baldwin <jhb@FreeBSD.org>
9388
9389 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
9390 (amd64fbsd_jmp_buf_reg_offset): Remove.
9391 (amd64fbsd_supply_uthread): Remove function.
9392 (amd64fbsd_collect_uthread): Remove function.
9393 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
9394 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
9395 (x86_64-*-freebsd*): Remove bsd-uthread.o.
9396 (fbsd-nat.c): Update comment.
9397 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
9398 (i386fbsd_jmp_buf_reg_offset): Remove.
9399 (i386fbsd_supply_uthread): Remove function.
9400 (i386fbsd_collect_uthread): Remove function.
9401 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
9402
1e1a8bef
JB
94032017-04-04 John Baldwin <jhb@FreeBSD.org>
9404
9405 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
9406 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
9407 * NEWS: Mention that support for FreeBSD/alpha was removed.
9408 * alpha-fbsd-tdep.c: Delete file.
9409 * config/alpha/fbsd.mh: Delete file.
9410 * configure.host: Delete alpha*-*-freebsd* and
9411 alpha*-*-kfreebsd*-gnu.
9412 * configure.tgt: Delete alpha*-*-freebsd* and
9413 alpha*-*-kfreebsd*-gnu.
9414
49907934
JB
94152017-04-04 John Baldwin <jhb@FreeBSD.org>
9416
9417 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
9418 amd64bsd_store_inferior_registers): Use ptid from regcache.
9419
6f77053d
PA
94202017-04-04 Pedro Alves <palves@redhat.com>
9421
9422 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
9423 data fields, make them private and add "m_" prefixes.
9424 (lnp_state_machine::lnp_state_machine): New ctor.
9425 (record_line, check_line_address, handle_set_discriminator)
9426 (handle_set_address, handle_advance_pc, handle_special_opcode)
9427 (handle_advance_line, handle_set_file, handle_negate_stmt)
9428 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
9429 (end_sequence, advance_line): New methods.
9430 (m_gdbarch, m_record_lines_p): New fields.
9431 (lnp_reader_state): Delete.
9432 (dwarf_record_line): Rename to ...
9433 (lnp_state_machine::record_line): ... adjust.
9434 (init_lnp_state_machine): Delete.
9435 (lnp_state_machine::lnp_state_machine): New.
9436 (check_line_address): Rename to ...
9437 (lnp_state_machine::check_line_address): This.
9438 (dwarf_decode_lines_1): Remove reference to "reader_state".
9439 Adjust lnp_state_machine having a non-default ctor. Use bool.
9440 State machine internal state manipulation moved to
9441 lnp_state_machine methods.
9442
9c541725
PA
94432017-04-04 Pedro Alves <palves@redhat.com>
9444
9445 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9446 unittests/offset-type-selftests.c.
9447 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
9448 * common/offset-type.h: New file.
9449 * common/preprocessor.h: New file.
9450 * common/traits.h: New file.
9451 * common/valid-expr.h: New file.
9452 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
9453 sect_offset and cu_offset strong typedefs throughout.
9454 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
9455 typedefs throughout.
9456 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
9457 sect_offset and cu_offset strong typedefs throughout.
9458 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
9459 typedefs throughout.
9460 * gdbtypes.h: Include "common/offset-type.h".
9461 (cu_offset): Now an offset type (strong typedef) instead of a
9462 struct.
9463 (sect_offset): Likewise.
9464 (union call_site_parameter_u): Rename "param_offset" field to
9465 "param_cu_off".
9466 * unittests/offset-type-selftests.c: New file.
9467
ecfb656c
PA
94682017-04-04 Pedro Alves <palves@redhat.com>
9469
9470 * common/underlying.h: New file.
9471 * dwarf2read.c: Include "common/gdb_optional.h" and
9472 "common/underlying.h".
9473 (dir_index, file_name_index): New types.
9474 (file_entry): Use them.
9475 (file_entry::include): Use to_underlying.
9476 (line_header::add_file_name): Use dir_index.
9477 (read_formatted_entries): Use gdb::optional. Read form before
9478 writting to file_entry.
9479 (dwarf_decode_line_header): Use dir_index.
9480 (lnp_state_machine::current_file): Use to_underlying.
9481 (lnp_state_machine::file): Change type to file_name_index.
9482 (dwarf_record_line): Use to_underlying.
9483 (init_lnp_state_machine): Use file_name_index.
9484 (dwarf_decode_lines_1): Use dir_index and file_name_index.
9485
d194f1fe
PA
94862017-04-04 Pedro Alves <palves@redhat.com>
9487
9488 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
9489 operator bool, has_value and get methods.
9490
fff8551c
PA
94912017-04-04 Pedro Alves <palves@redhat.com>
9492
9493 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
9494 fields.
9495 (line_header): Initialize all data fields. Change type of
9496 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
9497 Change type of include_dirs to std::vector<const char *>. Remove
9498 num_include_dirs, include_dirs_size. Change type of file_names to
9499 std::vector<file_entry>. Remove num_file_names, file_names_size.
9500 (line_header::line_header): New.
9501 (line_header::add_include_dir, line_header::add_file_name): New
9502 methods.
9503 (line_header::include_dir_at): Remove NULL check.
9504 (line_header::file_name_at): Add const overload.
9505 (line_header_up): New unique_ptr typedef.
9506 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
9507 std::vector. Remove free_line_header call.
9508 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
9509 free_line_header call.
9510 (free_cu_line_header): Delete.
9511 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
9512 (setup_type_unit_groups): Use line_header_up instead of cleanups.
9513 Adjust to use std::vector.
9514 (free_line_header): Delete.
9515 (free_line_header_voidp): Use delete.
9516 (add_include_dir): Replace with ...
9517 (line_header::add_include_dir): ... this method. Use std::vector.
9518 (add_file_name): Replace with ...
9519 (line_header::add_file_name): ... this method. Use std::vector.
9520 (add_include_dir_stub): Delete.
9521 (read_formatted_entries): Remove memset.
9522 (dwarf_decode_line_header): Return a line_header_up instead of a
9523 raw pointer. Remove cleanup handling. Pass lambdas to
9524 read_formatted_entries. Adjust to use line_header methods.
9525 (dwarf_decode_lines_1): Adjust to use line_header methods.
9526 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
9527 use std::vector.
9528
d62a8ae2
SM
95292017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
9530
9531 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
9532 instead of struct ptid.
9533
db3a1dc7
AH
95342017-05-04 Alan Hayward <alan.hayward@arm.com>
9535
9536 * frame.c (get_frame_register_bytes): Unwind using value.
9537 (put_frame_register_bytes): Likewise.
9538
b1b45502
IB
95392017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
9540
9541 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
9542 aggregate-like.
9543
ec13808e
JK
95442017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9545
9546 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
9547
12316564
YQ
95482017-03-29 Yao Qi <yao.qi@linaro.org>
9549
9550 * gdbthread.h (struct thread_info): Declare constructor and
9551 destructor. Add some in-class member initializers.
9552 * thread.c (free_thread): Remove.
9553 (init_thread_list): Call delete instead of free_thread.
9554 (new_thread): Call thread_info constructor.
9555 (thread_info::thread_info): New function.
9556 (thread_info::~thread_info): New function.
9557 (delete_thread_1): Call delete instead of free_thread.
9558 (make_cleanup_restore_current_thread): Move tp and frame to
9559 inner block.
9560
fe5f7374
AK
95612017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9562
9563 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
9564 (arc_skip_prologue): Likewise.
9565 (arc_make_frame_cache): Likewise.
9566 (arc_pv_get_operand): New function.
9567 (arc_is_in_prologue): Likewise.
9568 (arc_analyze_prologue): Likewise.
9569 (arc_print_frame_cache): Likewise.
9570 (MAX_PROLOGUE_LENGTH): New constant.
9571
eea78757
AK
95722017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9573
9574 * configure.tgt: Add arc-insn.o.
9575 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
9576 (dump_arc_instruction_command): New function.
9577 (arc_fprintf_disasm): Likewise.
9578 (arc_disassemble_info): Likewise.
9579 (arc_insn_get_operand_value): Likewise.
9580 (arc_insn_get_operand_value_signed): Likewise.
9581 (arc_insn_get_memory_base_reg): Likewise.
9582 (arc_insn_get_memory_offset): Likewise.
9583 (arc_insn_get_branch_target): Likewise.
9584 (arc_insn_dump): Likewise.
9585 (arc_insn_get_linear_next_pc): Likewise.
9586 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
9587 (arc_disassemble_info): Likewise.
9588 (arc_insn_get_branch_target): Likewise.
9589 (arc_insn_get_linear_next_pc): Likewise.
9590 * NEWS: Mention new "maint print arc arc-instruction".
9591
3be78afd
AK
95922017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9593
9594 * arc-tdep (maintenance_print_arc_list): New variable.
9595 (maintenance_print_arc_command): New function.
9596
296ec4fa
AK
95972017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9598
9599 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
9600 Add "limm" and "reserved".
9601 (arc_cannot_fetch_register, arc_cannot_store_register): Add
9602 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
9603 * arc-tdep.h (arc_regnum): Likewise.
9604
f74f865e
MF
96052017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9606
9607 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
9608 for THREADPTR register.
9609 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
9610 register.
9611 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
9612 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
9613 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
9614
0d0bf81a
MF
96152017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9616
9617 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
9618 registers above gdbarch_num_regs (gdbarch) as privileged in
9619 call0 ABI.
9620
0ce4291e
MF
96212017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9622
9623 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
9624 for a single specified register or for all registers in
9625 a0_base..a0_base + C0_NREGS range.
9626 (supply_gregset_reg): Call regcache_raw_supply for a single
9627 specified register or for all registers in a0_base..a0_base +
9628 C0_NREGS range.
9629
c56054f9
MF
96302017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9631
9632 * arch/xtensa.h (C0_NREGS): Add definition.
9633 * xtensa-tdep.c (C0_NREGS): Remove definition.
9634
a4398628
MF
96352017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9636
9637 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
9638 Drop xtensa_default_isa initialization.
9639 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
9640
8c43009f
PA
96412017-03-27 Pedro Alves <palves@redhat.com>
9642
9643 * dwarf2read.c (file_entry) <dir_index>: Add comment.
9644 (file_entry::include_dir): New method.
9645 (line_header::include_dir_at, line_header::file_name_at): New
9646 methods.
9647 (setup_type_unit_groups, setup_type_unit_groups)
9648 (psymtab_include_file_name): Simplify using the new methods.
9649 (lnp_state_machine) <the_line_header>: New field.
9650 <file>: Add comment.
9651 (lnp_state_machine::current_file): New method.
9652 (dwarf_record_line): Simplify using the new methods.
9653 (init_lnp_state_machine): Initialize the "the_line_header" field.
9654 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
9655 Simplify using the new methods.
9656
a7e80b9e
PA
96572017-03-27 Pedro Alves <palves@redhat.com>
9658
9659 * cp-name-parser.y (make_empty): Delete.
9660 (demangler_special, nested_name, ptr_operator, array_indicator)
9661 (direct_declarator, declarator_1): Use fill_comp instead of
9662 make_empty.
9663
21047726
PA
96642017-03-27 Pedro Alves <palves@redhat.com>
9665
9666 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
9667 to ATTRIBUTE_PRINTF.
9668 * solib-target.c (library_list_start_list): Print "string" not
9669 "version".
9670 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
9671 gdb_xml_error call.
9672
d721ba37
PA
96732017-03-27 Pedro Alves <palves@redhat.com>
9674
9675 * dwarf2read.c (struct file_and_directory): New.
9676 (dwarf2_get_dwz_file): Adjust to use std::string.
9677 (dw2_get_file_names_reader): Adjust to use file_and_directory.
9678 (find_file_and_directory): Adjust to return a file_and_directory
9679 object.
9680 (read_file_scope): Adjust to use file_and_directory. Remove
9681 make_cleanup/do_cleanups calls.
9682 (open_and_init_dwp_file): Adjust to use std::string. Remove
9683 make_cleanup/do_cleanups calls.
9684 * python/python.c (do_start_initialization): Adjust to ldirname
9685 returning a std::string.
9686 * utils.c (ldirname): Now returns a std::string.
9687 * utils.h (ldirname): Change return type to std::string.
9688 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
9689 returning a std::string.
9690 * xml-tdesc.c (file_read_description_xml): Likewise.
9691
ed771251
AH
96922017-03-24 Alan Hayward <alan.hayward@arm.com>
9693
9694 * regcache.c (regcache_debug_print_register): New function.
9695 * regcache.h (regcache_debug_print_register): New declaration.
9696 * target.c (debug_print_register): Remove.
9697 (target_fetch_registers): Call regcache_debug_print_register.
9698 (target_store_registers): Likewise.
9699
568c1b9f
PB
97002017-03-24 Pádraig Brady <pbrady@fb.com>
9701
9702 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
9703 reference beyond the 'lh->include_dirs' array before accessing to
9704 it.
9705 (psymtab_include_file_name): Likewise.
9706 (dwarf_decode_lines_1): Likewise.
9707 (dwarf_decode_lines): Likewise.
9708 (file_file_name): Likewise.
9709
3e00d44f
SM
97102017-03-23 Simon Marchi <simon.marchi@ericsson.com>
9711
9712 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
9713 inferior_ptid.
9714 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
9715 ps_lsetfpregs): Likewise.
9716 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
9717 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
9718 ps_lsetfpregs): Likewise.
9719 * target.c (target_fetch_registers, target_store_registers):
9720 Remove asserts.
9721
077ae656
AH
97222017-03-23 Alan Hayward <alan.hayward@arm.com>
9723
9724 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
9725
1e2b521d
YQ
97262017-03-23 Yao Qi <yao.qi@linaro.org>
9727
9728 * aarch64-tdep.c (aarch64_process_record_test): Declare.
9729 (_initialize_aarch64_tdep): Register it.
9730 (aarch64_record_load_store): Handle PRFM instruction.
9731 (aarch64_process_record_test): New function.
9732
33877125
YQ
97332017-03-23 Yao Qi <yao.qi@linaro.org>
9734
9735 * aarch64-tdep.c (aarch64_record_load_store): Fix code
9736 indentation.
9737
a0eef940
YQ
97382017-03-23 Yao Qi <yao.qi@linaro.org>
9739
9740 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
9741
3f2a3564
PR
97422017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
9743
9744 python/python.c (do_start_initialization): Fix memory leak.
9745
b67aeab0
SM
97462017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
9747
9748 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
9749 using get_ptrace_pid.
9750 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
9751 inferior_ptid.
9752 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
9753 inferior_ptid instead of pid.
9754
ffdbe864
YQ
97552017-03-22 Yao Qi <yao.qi@linaro.org>
9756
9757 * aarch64-tdep.c: Wrap locally used classes in anonymous
9758 namespace.
9759 * arm-tdep.c: Likewise.
9760 * linespec.c: Likewise.
9761 * ui-out.c: Likewise.
9762
9d736fbf
JG
97632017-03-22 Jonah Graham <jonah@kichwacoders.com>
9764
9765 PR gdb/19637
9766 * python/lib/gdb/printer/bound_registers.py: Import sys.
9767
3de88e9a
SM
97682017-03-21 Simon Marchi <simon.marchi@ericsson.com>
9769
9770 * windows-nat.c (do_windows_fetch_inferior_registers): Add
9771 windows_thread_info parameter and use it instead of
9772 current_thread.
9773 (windows_fetch_inferior_registers): Don't set current_thread,
9774 pass the thread to do_windows_fetch_inferior_registers. Use
9775 ptid from regcache instead of inferior_ptid.
9776 (do_windows_store_inferior_registers): Add windows_thread_info
9777 parameter and use it instead of current_thread.
9778 (windows_store_inferior_registers): Don't set current_thread,
9779 pass the thread to do_windows_store_inferior_registers. Use
9780 ptid from regcache instead of inferior_ptid.
9781
0e7b8f61
SM
97822017-03-21 Simon Marchi <simon.marchi@ericsson.com>
9783
9784 * ser-mingw.c (ser_windows_raw): Remove reference to
9785 struct serial::current_timeout.
9786
5badf10a
IR
97872017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
9788
9789 PR tdep/20928
9790 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
9791 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
9792 (sparc64_fsr_type): Fix %fsr decoding.
9793
cee59b3f
TW
97942017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
9795
9796 * python/py-record-btrace.c (btpy_insn_data): Change return type
9797 for Python 2.
9798
639a9038
SM
97992017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
9800
9801 * spu-linux-nat.c (spu_fetch_inferior_registers,
9802 spu_store_inferior_registers): Use ptid from regcache, set and
9803 restore inferior_ptid.
9804 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
9805 Likewise.
9806
bcc0c096
SM
98072017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
9808
9809 * i386-linux-nat.c (fetch_register, store_register,
9810 i386_linux_fetch_inferior_registers,
9811 i386_linux_store_inferior_registers): Use ptid from regcache.
9812 * ia64-linux-nat.c (ia64_linux_fetch_register,
9813 ia64_linux_store_register): Likewise.
9814 * inf-ptrace.c (inf_ptrace_fetch_register,
9815 inf_ptrace_store_register): Likewise.
9816 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
9817 m32r_linux_store_inferior_registers): Likewise.
9818 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
9819 m68kbsd_store_inferior_registers): Likewise.
9820 * m68k-linux-nat.c (fetch_register, store_register,
9821 m68k_linux_fetch_inferior_registers,
9822 m68k_linux_store_inferior_registers): Likewise.
9823 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
9824 m88kbsd_store_inferior_registers): Likewise.
9825 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
9826 mips_fbsd_store_inferior_registers): Likewise.
9827 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
9828 mips64_linux_regsets_store_registers): Likewise.
9829 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
9830 mipsnbsd_store_inferior_registers): Likewise.
9831 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
9832 mips64obsd_store_inferior_registers): Likewise.
9833 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
9834 Likewise.
9835 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
9836 ppcfbsd_store_inferior_registers): Likewise.
9837 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
9838 ppc_linux_store_inferior_registers): Likewise.
9839 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
9840 ppcnbsd_store_inferior_registers): Likewise.
9841 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
9842 ppcobsd_store_registers): Likewise.
9843 * procfs.c (procfs_fetch_registers, procfs_store_registers):
9844 Likewise.
9845 * ravenscar-thread.c (ravenscar_fetch_registers,
9846 ravenscar_store_registers, ravenscar_prepare_to_store):
9847 Likewise.
9848 * record-btrace.c (record_btrace_fetch_registers,
9849 record_btrace_store_registers, record_btrace_prepare_to_store):
9850 Likewise.
9851 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
9852 Lookup inferior using ptid from regcache, instead of
9853 current_inferior.
9854 * remote.c (remote_fetch_registers, remote_store_registers): Use
9855 ptid from regcache.
9856 * rs6000-nat.c (fetch_register, store_register): Likewise.
9857 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
9858 s390_linux_store_inferior_registers): Likewise.
9859 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
9860 shnbsd_store_inferior_registers): Likewise.
9861 * sol-thread.c (sol_thread_fetch_registers,
9862 sol_thread_store_registers): Likewise.
9863 * sparc-nat.c (sparc_fetch_inferior_registers,
9864 sparc_store_inferior_registers): Likewise.
9865 * tilegx-linux-nat.c (fetch_inferior_registers,
9866 store_inferior_registers): Likewise.
9867 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
9868 vaxbsd_store_inferior_registers): Likewise.
9869 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
9870 store_xtregs): Likewise.
9871
c0f55cc6
AV
98722017-03-20 Artemiy Volkov <artemiyv@acm.org>
9873
9874 PR gdb/14441
9875 * NEWS: Mention support for rvalue references in GDB and python.
9876 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
9877 supports both lvalue and rvalue references.
9878
15c0a2a9
AV
98792017-03-20 Artemiy Volkov <artemiyv@acm.org>
9880
9881 PR gdb/14441
9882 * gdbtypes.c (rank_one_type): Implement overloading
9883 resolution rules regarding rvalue references.
9884
aa006118
AV
98852017-03-20 Artemiy Volkov <artemiyv@acm.org>
9886
9887 PR gdb/14441
9888 * aarch64-tdep.c (aarch64_type_align)
9889 (aarch64_extract_return_value, aarch64_store_return_value): Change
9890 lvalue reference type checks to general reference type checks.
9891 * amd64-tdep.c (amd64_classify): Likewise.
9892 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
9893 Likewise.
9894 * arm-tdep.c (arm_type_align, arm_extract_return_value)
9895 (arm_store_return_value): Likewise.
9896 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
9897 * c-typeprint.c (c_print_type): Likewise.
9898 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
9899 (cplus_number_of_children, cplus_describe_child): Likewise.
9900 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
9901 * completer.c (expression_completer): Likewise.
9902 * cp-support.c (make_symbol_overload_list_adl_namespace):
9903 Likewise.
9904 * darwin-nat-info.c (info_mach_region_command): Likewise.
9905 * dwarf2loc.c (entry_data_value_coerce_ref)
9906 (value_of_dwarf_reg_entry): Likewise.
9907 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
9908 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
9909 Likewise.
9910 * findvar.c (extract_typed_address, store_typed_address):
9911 Likewise.
9912 * gdbtypes.c (rank_one_type): Likewise.
9913 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
9914 * infcall.c (value_arg_coerce): Likewise.
9915 * language.c (pointer_type): Likewise.
9916 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
9917 Likewise.
9918 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
9919 * mn10300-tdep.c (mn10300_type_align): Likewise.
9920 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
9921 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
9922 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
9923 Likewise.
9924 * printcmd.c (print_formatted, x_command): Likewise.
9925 * python/py-type.c (typy_get_composite, typy_template_argument):
9926 Likewise.
9927 * python/py-value.c (valpy_referenced_value)
9928 (valpy_get_dynamic_type, value_has_field): Likewise.
9929 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
9930 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
9931 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
9932 * spu-tdep.c (spu_scalar_value_p): Likewise.
9933 * symtab.c (lookup_symbol_aux): Likewise.
9934 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
9935 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
9936 Likewise.
9937 * valops.c (value_cast_pointers, value_cast)
9938 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
9939 (value_struct_elt, value_struct_elt_bitpos)
9940 (value_find_oload_method_list, find_overload_match)
9941 (value_rtti_indirect_type): Likewise.
9942 * valprint.c (val_print_scalar_type_p, generic_val_print):
9943 Likewise.
9944 * value.c (value_actual_type, value_as_address, unpack_long)
9945 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
9946 (coerce_ref): Likewise.
9947 * varobj.c (varobj_get_value_type): Likewise.
9948
3fcf899d
AV
99492017-03-20 Artemiy Volkov <artemiyv@acm.org>
9950
9951 PR gdb/14441
9952 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
9953 table of constants.
9954 * python/lib/gdb/command/explore.py: Support exploring values
9955 of rvalue reference types.
9956 * python/lib/gdb/types.py: Implement get_basic_type() for
9957 rvalue reference types.
9958 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
9959 constant.
9960 * python/py-value.c (valpy_getitem): Add an rvalue reference
9961 check.
9962 (valpy_reference_value): Add new parameter "refcode".
9963 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
9964 New wrappers for valpy_reference_value().
9965 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
9966 (gdbpy_invoke_xmethod): Likewise.
9967
4297a3f0
AV
99682017-03-20 Artemiy Volkov <artemiyv@acm.org>
9969
9970 PR gdb/14441
9971 * dwarf2read.c (process_die, read_type_die_1): Handle the
9972 DW_TAG_rvalue_reference_type DIE.
9973 (read_tag_reference_type): Add new parameter "refcode".
9974
e1cb3213
AV
99752017-03-20 Artemiy Volkov <artemiyv@acm.org>
9976
9977 PR gdb/14441
9978 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
9979 (c_type_print_modifier, c_type_print_varspec_suffix)
9980 (c_type_print_base): Support printing rvalue reference types.
9981 * c-valprint.c (c_val_print, c_value_print): Support printing
9982 rvalue reference values.
9983
e4347c89
AV
99842017-03-20 Artemiy Volkov <artemiyv@acm.org>
9985
9986 PR gdb/14441
9987 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
9988 typename.
9989 * cp-support.c (replace_typedefs): Handle
9990 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
9991 * python/py-type.c (typy_lookup_type): Likewise.
9992
53cc15f5
AV
99932017-03-20 Artemiy Volkov <artemiyv@acm.org>
9994
9995 PR gdb/14441
9996 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
9997 * parse.c (insert_type): Change assert statement.
9998 (follow_types): Handle rvalue reference types.
9999 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
10000 constant.
10001
a65cfae5
AV
100022017-03-20 Artemiy Volkov <artemiyv@acm.org>
10003
10004 PR gdb/14441
10005 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
10006 value_ref() interface.
10007 * c-valprint.c (c_value_print): Likewise.
10008 * infcall.c (value_arg_coerce): Likewise.
10009 * python/py-value.c (valpy_reference_value): Likewise.
10010 * valops.c (value_cast, value_reinterpret_cast)
10011 (value_dynamic_cast, typecmp): Likewise.
10012 (value_ref): Parameterize by kind of return value reference type.
10013 * value.h (value_ref): Add new parameter "refcode".
10014
3b224330
AV
100152017-03-20 Artemiy Volkov <artemiyv@acm.org>
10016
10017 PR gdb/14441
10018 * dwarf2read.c (read_tag_reference_type): Use
10019 lookup_lvalue_reference_type() instead of lookup_reference_type().
10020 * eval.c (evaluate_subexp_standard): Likewise.
10021 * f-exp.y: Likewise.
10022 * gdbtypes.c (make_reference_type, lookup_reference_type):
10023 Generalize with rvalue reference types.
10024 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
10025 convenience wrappers for lookup_reference_type().
10026 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
10027 reference kind parameter.
10028 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
10029 wrappers for lookup_reference_type().
10030 * guile/scm-type.c (gdbscm_type_reference): Use
10031 lookup_lvalue_reference_type() instead of lookup_reference_type().
10032 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
10033 * parse.c (follow_types): Likewise.
10034 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
10035 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
10036 Likewise.
10037 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
10038 (gdbpy_invoke_xmethod): Likewise.
10039 * stabsread.c: Provide extra argument to make_reference_type()
10040 call.
10041 * valops.c (value_ref, value_rtti_indirect_type): Use
10042 lookup_lvalue_reference_type() instead of lookup_reference_type().
10043
f9aeb8d4
AV
100442017-03-20 Artemiy Volkov <artemiyv@acm.org>
10045
10046 PR gdb/14441
10047 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
10048 (TYPE_IS_REFERENCE): New macro.
10049 (struct type): Add rvalue_reference_type field.
10050 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
10051
51457a05
MAL
100522017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
10053
10054 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
10055 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
10056 New function definition.
10057 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
10058 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
10059 New function declaration.
10060 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
10061 * mi/mi-interp.h: New file.
10062 * solib.c (info_sharedlibrary_command): Replace for loop with
10063 ALL_SO_LIBS macro
10064 * solib.h (update_solib_list): New function declaration.
10065 (so_list_head): Move macro.
10066 * solist.h (ALL_SO_LIBS): New macro.
10067
e696b3ad
MAL
100682017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
10069
10070 * infcmd.c (post_create_inferior): Remove unused argument in
10071 call to solib_add.
10072 * remote.c (remote_start_remote): Likewise.
10073 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
10074 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
10075 (enable_break): Likewise.
10076 * solib.c (update_solib_list): Remove unused target argument
10077 and its documentation.
10078 (solib_add): Remove unused target argument. Remove unused
10079 argument in call to update_solib_list.
10080 (info_sharedlibrary_command): Remove unused argument in call
10081 to update_solib_list.
10082 (sharedlibrary_command): Remove unused argument in call to
10083 solib_add.
10084 (handle_solib_event): Likewise.
10085 (reload_shared_libraries): Likewise.
10086 * solib.h (solib_add): Remove unused target argument.
10087
dcb84eda
AA
100882017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
10089
10090 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
10091 (s390_displaced_step_fixup): Cover relative branches with the
10092 default fixup handling. This fixes lack of support for some
10093 relative branch instructions.
10094
d9cb6cdc
SM
100952017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10096
10097 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
10098 ptid from regcache.
10099
1afaf9f4
SM
101002017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10101
10102 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
10103 i386_darwin_store_inferior_registers): Use ptid from regcache.
10104
aac12e24
SM
101052017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10106
10107 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
10108 i386bsd_store_inferior_registers): Use ptid from regcache.
10109
bbe1eef1
SM
101102017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10111
10112 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
10113 hppaobsd_store_registers): Use ptid from regcache.
10114
10799020
SM
101152017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10116
10117 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
10118 hppanbsd_store_registers): Use ptid from regcache.
10119
00204cf7
SM
101202017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10121
10122 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
10123 from regcache. Use get_ptrace_pid.
10124
11a33714
SM
101252017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10126
10127 * corelow.c (get_core_register_section): Use ptid from regcache,
10128 update doc.
10129
317cd492
SM
101302017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10131
10132 * bsd-uthread.c (bsd_uthread_fetch_registers,
10133 bsd_uthread_store_registers): Use ptid from regcache, set and
10134 restore inferior_ptid.
10135
9ac8a7c2
SM
101362017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10137
10138 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
10139 fetch_fp_regs, store_register, store_regs, store_fp_register,
10140 store_fp_regs): Use ptid from regcache.
10141
4ac4bb6a
SM
101422017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10143
10144 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
10145 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
10146 store_vfp_regs): Use ptid from regcache.
10147
9bcbdca8
PA
101482017-03-17 Pedro Alves <palves@redhat.com>
10149
10150 PR remote/21188
10151 * ser-base.c (ser_base_wait_for): Add comment.
10152 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
10153 version.
10154 * ser-unix.c (hardwire_raw): Remove reference to
10155 scb->current_timeout.
10156 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
10157 (hardwire_ops): Install ser_base_readchar instead of
10158 hardwire_readchar.
10159 * serial.h (struct serial) <current_timeout, timeout_remaining>:
10160 Remove fields.
10161
7503099f
JG
101622017-03-17 Jonah Graham <jonah@kichwacoders.com>
10163
10164 PR gdb/19637
10165 * python/lib/gdb/printer/bound_registers.py: Add support for
10166 Python 3.
10167
7942e96e
AA
101682017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
10169
10170 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
10171 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
10172 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
10173 byte_offset to subobj_byte_offset. Fix the handling of
10174 DWARF_VALUE_STACK on big-endian targets when coming via an
10175 implicit pointer.
10176 (dwarf2_evaluate_loc_desc): Adjust call to
10177 dwarf2_evaluate_loc_desc_full.
10178 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
10179 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
10180
ba14f379
YQ
101812017-03-16 Yao Qi <yao.qi@linaro.org>
10182
10183 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
10184 and REVSH instructions.
10185
b121eeb9
YQ
101862017-03-16 Yao Qi <yao.qi@linaro.org>
10187
10188 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
10189 (arm_record_test): Declare.
10190 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
10191 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
10192 align with the manual.
10193 (thumb_record_misc): Adjust the code order to align with the
10194 manual.
10195 (thumb2_record_decode_insn_handler): Fix instruction matching.
10196 (instruction_reader_thumb): New class.
10197 (arm_record_test): New function.
10198
728a7913
YQ
101992017-03-16 Yao Qi <yao.qi@linaro.org>
10200
10201 * arm-tdep.c (abstract_memory_reader): New class.
10202 (instruction_reader): New class.
10203 (extract_arm_insn): Add argument 'reader'. Callers updated.
10204 (decode_insn): Likewise.
10205
34b43320
DE
102062017-03-16 Doug Evans <dje@google.com>
10207
a7c0469f
DE
10208 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
10209 member. Change type of TYPE member to SCM. All uses updated.
10210 (lsscm_make_lazy_string_smob): Add assert.
10211 (lsscm_make_lazy_string): Flag bad length values.
10212 (lsscm_elt_type): New function.
10213 (gdbscm_lazy_string_to_value): Rewrite to use
10214 lsscm_safe_lazy_string_to_value.
10215 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
10216 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
10217 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
10218 in incoming type.
10219 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
10220 * guile/scm-type.c (tyscm_scm_to_type): New function.
10221
102222017-03-15 Doug Evans <dje@google.com>
10223
34b43320
DE
10224 PR python/17728, python/18439, python/18779
10225 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
10226 member. Change type of TYPE member to PyObject *. All uses updated.
10227 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
10228 (gdbpy_create_lazy_string_object): Flag bad length values.
10229 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
10230 Handle typedefs in incoming type.
10231 (stpy_lazy_string_elt_type): New function.
10232 (gdbpy_extract_lazy_string): Call it.
10233 * python/py-value.c (valpy_lazy_string): Flag bad length values.
10234 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
10235 typedefs in incoming type.
10236
a3a5fecc
DE
102372017-03-16 Doug Evans <dje@google.com>
10238
10239 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
10240 * guile/scm-type.c (tyscm_scm_to_type): New function.
10241
28f1c605
JW
102422017-03-16 Jiong Wang <jiong.wang@arm.com>
10243
10244 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
10245 "ULONGEST" for "skip".
10246
87c336f6
AA
102472017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
10248
10249 PR gdb/21220
10250 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
10251 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
10252 (inf_ptrace_peek_poke): ...here. New function. Now also loop
10253 over ptrace peek/poke until end of buffer or error.
10254
cf81cf60
SM
102552017-03-14 Simon Marchi <simon.marchi@ericsson.com>
10256
10257 * parse.c (length_of_subexp): Make static.
10258 * parser-defs.h (length_of_subexp): Remove.
10259
a379284a
AA
102602017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
10261
10262 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
10263 as well.
10264
8a6200ba
PA
102652017-03-14 Pedro Alves <palves@redhat.com>
10266
10267 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
10268 (main): Use std::unique_ptr. Remove calls to
10269 cp_demangled_name_parse_free.
10270
f79ec206
SM
102712017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10272
10273 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
10274 alphabsd_store_inferior_registers): Use regcache->ptid instead
10275 of inferior_ptid.
10276
edb5fb00
SM
102772017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10278
10279 * aix-thread.c (aix_thread_fetch_registers,
10280 aix_thread_store_registers): Use regcache->ptid instead of
10281 inferior_ptid.
10282
55119686
SM
102832017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10284
10285 * aarch64-linux-nat.c (fetch_gregs_from_thread,
10286 store_gregs_to_thread, fetch_fpregs_from_thread,
10287 store_fpregs_to_thread): Use regcache->ptid instead of
10288 inferior_ptid.
10289
6a06fbb7
SM
102902017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10291
10292 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
10293 amd64_linux_fetch_inferior_registers): Use regcache->ptid
10294 instead of inferior_ptid.
10295
c6386875
SM
102962017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10297
10298 * target.c (target_fetch_registers, target_store_registers): Add
10299 assert.
10300
ddaaf0fb
SM
103012017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10302
10303 * regcache.h (regcache_get_ptid): New function.
10304 * regcache.c (regcache_get_ptid): New function.
10305
b9da89d1 103062017-03-13 Mark Wielaard <mark@klomp.org>
10307
10308 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
10309
5f4d1085
KS
103102017-03-10 Keith Seitz <keiths@redhat.com>
10311
10312 PR c++/8218
10313 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
10314
c65d6b55
PA
103152017-03-08 Pedro Alves <palves@redhat.com>
10316
10317 PR gdb/18360
10318 * infrun.c (start_step_over, do_target_resume, resume)
10319 (restart_threads): Assert we're not resuming a thread that is
10320 meant to be stopped.
10321 (infrun_thread_stop_requested_callback): Delete.
10322 (infrun_thread_stop_requested): If the thread is internally
10323 stopped, queue a pending stop event and clear the thread's
10324 inline-frame state.
10325 (handle_stop_requested): New function.
10326 (handle_syscall_event, handle_inferior_event_1): Use
10327 handle_stop_requested.
10328 (handle_stop_requested): New function.
10329 (handle_signal_stop): Set the thread's stop_signal here instead of
10330 at caller.
10331 (finish_step_over): Clear step over info unconditionally.
10332 (handle_signal_stop): If the user had interrupted the event
10333 thread, consider the stop a random signal.
10334 (handle_signal_stop) <signal arrived while stepping over
10335 breakpoint>: Don't restart threads here.
10336 (stop_waiting): Don't clear step-over info here.
10337
15c22686
PA
103382017-03-08 Pedro Alves <palves@redhat.com>
10339
10340 PR 21206
10341 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
10342 goes to argument 2, not 1.
10343
6e5d74e7
PA
103442017-03-08 Pedro Alves <palves@redhat.com>
10345
10346 PR cli/21218
10347 * top.c (gdb_readline_wrapper): Avoid passing NULL to
10348 display_gdb_prompt.
10349 (command_line_input): Add comment.
10350
9753a2f6
PA
103512017-03-08 Pedro Alves <palves@redhat.com>
10352
10353 PR tui/21216
10354 * tui/tui-file.c (tui_file::write): New.
10355 * tui/tui-file.h (tui_file): Override "write".
10356 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
10357 factored out from ...
10358 (tui_puts): ... here.
10359 (tui_putc): Use them.
10360 (tui_write): New function.
10361 * tui/tui-io.h (tui_write): Declare.
10362
1672e0d9
SDJ
103632017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
10364
10365 * Makefile.in (SFILES): Replace "environ.c" with
10366 "common/environ.c".
10367 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
10368 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
10369 to...
10370 * common/environ.c: ... here.
10371 * environ.h: Moved to...
10372 * common/environ.h: ... here.
10373
f7bb4e3a
PB
103742017-03-07 Peter Bergner <bergner@vnet.ibm.com>
10375
10376 * gdbarch.sh (pstring_ptr): New static function.
10377 (gdbarch_disassembler_options): Use it.
10378 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
10379 not valid_disassembler_option->name.
10380 * gdbarch.c: Regenerate.
10381
e45ced6c
PB
103822017-03-07 Peter Bergner <bergner@vnet.ibm.com>
10383
10384 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
10385
5f6fd321
PA
103862017-03-07 Pedro Alves <palves@redhat.com>
10387
10388 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
10389
6dbb839a 103902017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
10391
10392 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
10393 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
10394 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 10395 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 10396
d274ecf4
SM
103972017-03-06 Simon Marchi <simon.marchi@ericsson.com>
10398
10399 * xtensa-linux-nat.c (fetch_gregs): Remove const.
10400
df97be55
SM
104012017-03-03 Simon Marchi <simon.marchi@ericsson.com>
10402
10403 * remote.c (remote_add_target_side_commands): Use range-based
10404 for loop.
10405
7d45f3df
YQ
104062017-03-03 Yao Qi <yao.qi@linaro.org>
10407
10408 PR gdb/21165
10409 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
10410 value is lazy.
10411 * valprint.c (common_val_print): Likewise.
10412
65b48a81
PB
104132017-02-28 Peter Bergner <bergner@vnet.ibm.com>
10414
10415 * NEWS: Mention new set/show disassembler-options commands.
10416 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
10417 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
10418 (prospective_options): New static variable.
10419 (gdb_disassembler::gdb_disassembler): Initialize
10420 m_di.disassembler_options.
10421 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
10422 (get_disassembler_options): New function.
10423 (set_disassembler_options): Likewise.
10424 (set_disassembler_options_sfunc): Likewise.
10425 (show_disassembler_options_sfunc): Likewise.
10426 (disassembler_options_completer): Likewise.
10427 (_initialize_disasm): Likewise.
10428 * disasm.h (get_disassembler_options): New prototype.
10429 (set_disassembler_options): Likewise.
10430 * gdbarch.sh (gdbarch_disassembler_options): New variable.
10431 (gdbarch_verify_disassembler_options): Likewise.
10432 * gdbarch.c: Regenerate.
10433 * gdbarch.h: Likewise.
10434 * arm-tdep.c (num_disassembly_options): Delete.
10435 (set_disassembly_style): Likewise.
10436 (arm_disassembler_options): New static variable.
10437 (set_disassembly_style_sfunc): Convert short style name into long
10438 option name. Call set_disassembler_options.
10439 (show_disassembly_style_sfunc): New function.
10440 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
10441 set_gdbarch_verify_disassembler_options.
10442 (_initialize_arm_tdep): Delete regnames variable and update callers.
10443 (arm_disassembler_options): Initialize.
10444 (disasm_options): New variable.
10445 (num_disassembly_options): Rename from this...
10446 (num_disassembly_styles): ...to this. Compute by scanning through
10447 disasm_options.
10448 (valid_disassembly_styles): Initialize using disasm_options.
10449 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
10450 set_arm_regname_option.
10451 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
10452 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
10453 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
10454 set_gdbarch_verify_disassembler_options.
10455 * s390-tdep.c (s390_disassembler_options): New static variable.
10456 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
10457 set_gdbarch_verify_disassembler_options.
10458
d538e36d
SM
104592017-02-27 Simon Marchi <simon.marchi@ericsson.com>
10460
10461 * remote.c (remote_add_target_side_condition): Remove "struct"
10462 keyword from range-based for loop.
10463
83621223
SM
104642017-02-27 Simon Marchi <simon.marchi@ericsson.com>
10465
10466 * remote.c (remote_add_target_side_condition): Use range-based
10467 for loop. Update comment.
10468
2123df0e
YQ
104692017-02-27 Yao Qi <yao.qi@linaro.org>
10470
10471 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
10472
8e368124
AH
104732017-02-26 Alan Hayward <alan.hayward@arm.com>
10474
10475 * regcache.c (regcache_raw_update): New function.
10476 (regcache_raw_read): Move code to regcache_raw_update.
10477 * regcache.h (regcache_raw_update): New declaration.
10478 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
10479
a49dd8dd
JK
104802017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10481
10482 * dwarf2read.c (create_debug_type_hash_table): Initialize
10483 header.signature and header.type_offset_in_tu.
10484
34e4bae9
PA
104852017-02-24 Pedro Alves <palves@redhat.com>
10486
10487 * symtab.c (make_file_symbol_completion_list_1): Use
10488 add_symtab_completions.
10489
b0e4b369
AH
104902017-02-24 Alan Hayward <alan.hayward@arm.com>
10491
10492 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
10493
975c21ab
AH
104942017-02-24 Alan Hayward <alan.hayward@arm.com>
10495
10496 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
10497 I386_MAX_REGISTER_SIZE.
10498 (i386_pseudo_register_write): Likewise.
10499 (i386_process_record): Likewise.
10500 * i387-tdep.c (i387_supply_xsave): Likewise.
10501 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
10502 (store_register): Likewise.
10503
14bc53a8
PA
105042017-02-23 Pedro Alves <palves@redhat.com>
10505
10506 * ada-lang.c: Include "common/function-view.h".
10507 (ada_iterate_over_symbols): Adjust to use function_view as
10508 callback type.
10509 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
10510 (ada_make_symbol_completion_list): Use a lambda.
10511 (ada_exc_search_name_matches): Delete.
10512 (name_matches_regex): New.
10513 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
10514 * compile/compile-c-support.c: Include "common/function-view.h".
10515 (print_one_macro): Change prototype to accept a ui_file pointer.
10516 (write_macro_definitions): Use a lambda.
10517 * dwarf2read.c: Include "common/function-view.h".
10518 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10519 (dw2_expand_symtabs_matching): Adjust to use function_view as
10520 callback type.
10521 * language.h: Include "common/function-view.h".
10522 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
10523 function_view as callback type.
10524 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
10525 * linespec.c: Include "common/function-view.h".
10526 (collect_info::add_symbol): New method.
10527 (struct symbol_and_data_callback, iterate_inline_only, struct
10528 symbol_matcher_data, iterate_name_matcher): Delete.
10529 (iterate_over_all_matching_symtabs): Adjust to use function_view
10530 as callback type and lambdas.
10531 (iterate_over_file_blocks): Adjust to use function_view as
10532 callback type.
10533 (decode_compound_collector): Now a class with private fields.
10534 (decode_compound_collector::release_symbols): New method.
10535 (collect_one_symbol): Rename to...
10536 (decode_compound_collector::operator()): ... this and adjust.
10537 (lookup_prefix_sym): decode_compound_collector construction bits
10538 move to decode_compound_collector ctor. Pass the
10539 decode_compound_collector object directly as callback. Remove
10540 cleanups and use decode_compound_collector::release_symbols
10541 instead.
10542 (symtab_collector): Now a class with private fields.
10543 (symtab_collector::release_symtabs): New method.
10544 (add_symtabs_to_list): Rename to...
10545 (symtab_collector::operator()): ... this and adjust.
10546 (collect_symtabs_from_filename): symtab_collector construction
10547 bits move to symtab_collector ctor. Pass the symtab_collector
10548 object directly as callback. Remove cleanups and use
10549 symtab_collector::release_symtabs instead.
10550 (collect_symbols): Delete.
10551 (add_matching_symbols_to_info): Use lambdas.
10552 * macrocmd.c (print_macro_callback): Delete.
10553 (info_macro_command): Use a lambda.
10554 (info_macros_command): Pass print_macro_definition as callable
10555 directly.
10556 (print_one_macro): Remove 'ignore' parameter.
10557 (macro_list_command): Adjust.
10558 * macrotab.c (macro_for_each_data::fn): Now a function_view.
10559 (macro_for_each_data::user_data): Delete field.
10560 (foreach_macro): Adjust to call the function_view.
10561 (macro_for_each): Adjust to use function_view as callback type.
10562 (foreach_macro_in_scope): Adjust to call the function_view.
10563 (macro_for_each_in_scope): Adjust to use function_view as callback
10564 type.
10565 * macrotab.h: Include "common/function-view.h".
10566 (macro_callback_fn): Declare a prototype instead of a pointer.
10567 Remove "user_data" parameter.
10568 (macro_for_each, macro_for_each_in_scope): Adjust to use
10569 function_view as callback type.
10570 * psymtab.c (partial_map_expand_apply)
10571 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
10572 Adjust to use function_view as callback type and to return bool.
10573 (psym_expand_symtabs_matching): Adjust to use function_view as
10574 callback types.
10575 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
10576 to use function_view as callback type and to return bool.
10577 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
10578 callback types.
10579 * symfile.c (expand_symtabs_matching): Adjust to use function_view
10580 as callback types.
10581 * symfile.h: Include "common/function-view.h".
10582 (expand_symtabs_file_matcher_ftype)
10583 (expand_symtabs_symbol_matcher_ftype)
10584 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
10585 return bool.
10586 (quick_symbol_functions::map_symtabs_matching_filename)
10587 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
10588 function_view as callback type and return bool.
10589 (expand_symtabs_matching): Adjust to use function_view as callback
10590 type.
10591 (maintenance_expand_name_matcher)
10592 (maintenance_expand_file_matcher): Delete.
10593 (maintenance_expand_symtabs): Use lambdas.
10594 * symtab.c (iterate_over_some_symtabs): Adjust to use
10595 function_view as callback types and return bool.
10596 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
10597 of a cleanup.
10598 (lookup_symtab_callback): Delete.
10599 (lookup_symtab): Use a lambda.
10600 (iterate_over_symbols): Adjust to use function_view as callback
10601 type.
10602 (struct search_symbols_data, search_symbols_file_matches)
10603 (search_symbols_name_matches): Delete.
10604 (search_symbols): Use a pair of lambdas.
10605 (struct add_name_data, add_macro_name, symbol_completion_matcher)
10606 (symtab_expansion_callback): Delete.
10607 (default_make_symbol_completion_list_break_on_1): Use lambdas.
10608 * symtab.h: Include "common/function-view.h".
10609 (iterate_over_some_symtabs): Adjust to use function_view as
10610 callback type and return bool.
10611 (iterate_over_symtabs): Adjust to use function_view as callback
10612 type.
10613 (symbol_found_callback_ftype): Remove 'data' parameter and return
10614 bool.
10615 (iterate_over_symbols): Adjust to use function_view as callback
10616 type.
10617
07e253aa
PA
106182017-02-23 Pedro Alves <palves@redhat.com>
10619
10620 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
10621 (%.o) <unittests/%.c>: New pattern.
10622 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
10623 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
10624 * common/function-view.h: New file.
10625 * unittests/function-view-selftests.c: New file.
10626 * configure: Regenerate.
10627
8eaf5320
SM
106282017-02-23 Simon Marchi <simon.marchi@ericsson.com>
10629
10630 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
10631 inferior_ptid.
10632 * go32-nat.c (go32_thread_alive): Likewise.
10633
38768751
YQ
106342017-02-23 Yao Qi <yao.qi@linaro.org>
10635
10636 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
10637 delete.
10638
0a8beaba
YQ
106392017-02-23 Yao Qi <yao.qi@linaro.org>
10640
10641 * varobj.c (varobj_clear_saved_item): Use delete instead of
10642 xfree.
10643 (update_dynamic_varobj_children): Likewise.
10644
58fdfd2c
JK
106452017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10646
10647 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
10648
1b90b139
SM
106492017-02-21 Simon Marchi <simon.marchi@ericsson.com>
10650
10651 * common/enum-flags.h (enum_flags::enum_flags): Initialize
10652 m_enum_value to 0 in default constructor.
10653
2039d74e
EBM
106542017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10655
10656 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
10657 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
10658 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
10659 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
10660 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
10661 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
10662 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
10663 IS_STORE_CONDITIONAL_INSN.
10664
7814882a
JK
106652017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10666
10667 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
10668
0ae60b63
JK
106692017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10670
10671 * NEWS (Changes since GDB 7.12): Add DWARF-5.
10672
0224619f
JK
106732017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10674
10675 * dwarf2read.c (skip_one_die, read_attribute_value)
10676 (dwarf2_const_value_attr, dump_die_shallow)
10677 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
10678 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
10679
0af92d60
JK
106802017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10681
10682 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
10683 (dwarf_parse_macro_header): Accept DWARF version 5.
10684 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
10685
216f72a1
JK
106862017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10687
10688 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
10689 DW_AT_GNU_*.
10690 * common/common-exceptions.h (enum errors): Likewise.
10691 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
10692 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
10693 (dwarf_expr_context::execute_stack_op): Likewise.
10694 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
10695 Likewise.
10696 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
10697 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10698 (show_entry_values_debug, call_site_to_target_addr)
10699 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
10700 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
10701 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
10702 (value_of_dwarf_block_entry, indirect_pieced_value)
10703 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
10704 (disassemble_dwarf_expression): Likewise.
10705 * dwarf2read.c (process_die, inherit_abstract_dies)
10706 (read_call_site_scope): Likewise.
10707 * gdbtypes.h (struct func_type, struct call_site_parameter)
10708 (struct call_site): Likewise.
10709 * stack.c (read_frame_arg): Likewise.
10710 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
10711
43988095
JK
107122017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10713
10714 * defs.h (read_unsigned_leb128): New declaration.
10715 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
10716 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
10717 (dwarf2_find_location_expression): Call also
10718 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
10719 * dwarf2loc.h (dwarf2_version): New declaration.
10720 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
10721 rnglists.
10722 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
10723 .debug_rnglists.
10724 (struct dwop_section_names): Add loclists_dwo.
10725 (dwop_section_names): Add .debug_loclists.dwo.
10726 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
10727 (struct dwarf2_per_cu_data): Add dwarf_version.
10728 (struct dwo_sections): Add loclists.
10729 (struct attr_abbrev): Add implicit_const.
10730 (read_indirect_line_string): New declaration.
10731 (read_unsigned_leb128): Delete declaration.
10732 (rcuh_kind): New definition.
10733 (read_and_check_comp_unit_head): Change parameter
10734 is_debug_types_section to section_kind.
10735 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
10736 (read_comp_unit_head): Change parameter abfd to section, add parameter
10737 section_kind. Handle DWARF-5.
10738 (error_check_comp_unit_head): Accept also DWARF version 5.
10739 (read_and_check_comp_unit_head): Change parameter
10740 is_debug_types_section to section_kind.
10741 (read_and_check_type_unit_head): Delete function.
10742 (read_abbrev_offset): Handle DWARF-5.
10743 (create_debug_type_hash_table): Add parameter section_kind. Process
10744 only DW_UT_type. Use signature and type_offset_in_tu from struct
10745 comp_unit_head.
10746 (create_debug_types_hash_table): Update create_debug_type_hash_table
10747 caller.
10748 (create_all_type_units): Call create_debug_type_hash_table.
10749 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
10750 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
10751 caller.
10752 (skip_one_die): Handle DW_FORM_implicit_const.
10753 (dwarf2_rnglists_process): New function.
10754 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
10755 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
10756 (read_attribute_value): Handle DW_FORM_implicit_const,
10757 DW_FORM_line_strp.
10758 (read_attribute): Handle DW_FORM_implicit_const.
10759 (read_indirect_string_at_offset_from): New function from
10760 read_indirect_string_at_offset.
10761 (read_indirect_string_at_offset): Call
10762 read_indirect_string_at_offset_from.
10763 (read_indirect_line_string_at_offset): New function.
10764 (read_indirect_string): New function comment.
10765 (read_indirect_line_string): New function.
10766 (read_unsigned_leb128): Make it global.
10767 (dwarf2_string_attr): Handle DWARF-5.
10768 (add_include_dir_stub, read_formatted_entries): New functions.
10769 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
10770 Handle DWARF-5.
10771 (per_cu_header_read_in): Update read_comp_unit_head caller.
10772 (dwarf2_version): New function.
10773 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
10774 rnglists.
10775 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
10776 fields.
10777
22d2f3ab
JK
107782017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10779
10780 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
10781
5f46c5a5
JK
107822017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10783
10784 * dwarf2read.c (dwarf2_ranges_process): New function from
10785 dwarf2_ranges_read.
10786 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
10787 dwarf2_ranges_process.
10788
78d4d2c5
JK
107892017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10790
10791 * dwarf2read.c (create_debug_type_hash_table): New function from
10792 create_debug_types_hash_table.
10793 (create_debug_types_hash_table): Call create_debug_type_hash_table.
10794 (create_all_type_units, open_and_init_dwo_file): Update
10795 create_debug_types_hash_table callers.
10796
1b076f25
SDJ
107972017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10798
10799 PR gdb/16188
10800 * fork-child.c (trace_start_error): Fix thinko. va_end should
10801 refer to 'ap', not 'args'.
10802
0db8980c
SDJ
108032017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10804 Pedro Alves <palves@redhat.com>
10805
10806 PR gdb/16188
10807 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
10808 calls succeeded.
10809 * fork-child.c (trace_start_error): New function.
10810 (trace_start_error_with_name): Likewise.
10811 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
10812 * inf-ptrace.c (inf_ptrace_me): Likewise.
10813 * inferior.h (trace_start_error): New prototype.
10814 (trace_start_error_with_name): Likewise.
10815
99e8a4f9
SDJ
108162017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
10817
10818 PR gdb/21164
10819 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
10820 NULL before using it.
10821 * symmisc.c (maintenance_print_symbols): Likewise.
10822 (maintenance_print_msymbols): Likewise.
10823
4e746bb6
TW
108242017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10825
10826 * NEWS: Add record Python bindings entry.
10827
108282017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10829
10830 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
10831 py-record-full.o.
10832 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
10833 * python/py-record-btrace.c, python/py-record-btrace.h,
10834 python/py-record-full.c, python/py-record-full.h: New file.
10835 * python/py-record.c: Add include for py-record-btrace.h and
10836 py-record-full.h.
10837 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
10838 recpy_instruction_history, recpy_function_call_history, recpy_begin,
10839 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
10840 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
10841 New definition.
10842 (gdbpy_initialize_btrace): New export.
10843 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
10844
108452017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10846
10847 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
10848 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
10849 * python/py-record.c: New file.
10850 * python/python-internal.h (gdbpy_start_recording,
10851 gdbpy_current_recording, gdpy_stop_recording,
10852 gdbpy_initialize_record): New export.
10853 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
10854 (python_GdbMethods): Add gdbpy_start_recording,
10855 gdbpy_current_recording and gdbpy_stop_recording.
10856
108572017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10858
10859 * record-btrace.c (record_btrace_record_method): New function.
10860 (init_record_btrace_ops): Initialize to_record_method.
10861 * record-full.c (record_full_record_method): New function.
10862 (init_record_full_ops, init_record_full_core_ops): Add
10863 record_full_record_method.
10864 * record.h (enum record_method): New enum.
10865 * target-debug.h (target_debug_print_enum_record_method: New define.
10866 * target-delegates.c: Regenerate.
10867 * target.c (target_record_method): New function.
10868 * target.h: Include record.h.
10869 (struct target_ops) <to_record_method>: New field.
10870 (target_record_method): New export.
10871
108722017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10873
10874 * record.h (record_start, record_stop): New export.
10875 * record.c (record_start, record_stop): New function.
10876
108772017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10878
10879 * btrace.c (btrace_fetch): Copy function call segments pointer
10880 into a vector.
10881 (btrace_clear): Clear the vector.
10882 (btrace_find_insn_by_number): Use binary search to find the correct
10883 function call segment.
10884 * btrace.h (brace_fun_p): New typedef.
10885 (struct btrace_thread_info) <functions>: New field.
10886
108872017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10888
10889 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
10890 * btrace.c (btrace_decode_error): ... here. New function.
10891 * btrace.h (btrace_decode_error): New export.
10892
108932017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10894
10895 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
10896 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
10897 btrace_find_insn_by_number): Remove special case for gaps.
10898 * btrace.h (btrace_insn_get_error): New export.
10899 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
10900 * record-btrace.c (btrace_insn_history): Print number for gaps.
10901 (record_btrace_info, record_btrace_goto): Handle gaps.
10902
3f77c769
TT
109032017-02-14 Tom Tromey <tom@tromey.com>
10904
10905 PR python/13598:
10906 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
10907 event.
10908 * python/py-evts.c (gdbpy_initialize_py_events): Add
10909 before_prompt registry.
10910 * python/py-events.h (events_object) <before_prompt>: New field.
10911
4c2c7ac6
MM
109122017-02-14 Markus Metzger <markus.t.metzger@intel.com>
10913
10914 * btrace.c (ftrace_new_switch): Preserve up link and flags.
10915
5cf30ebf
LM
109162017-02-13 Luis Machado <lgustavo@codesourcery.com>
10917
10918 * symfile (_initialize_symfile): Add usage text to the load command's
10919 help text.
10920
26a06916
SM
109212017-02-10 Simon Marchi <simon.marchi@ericsson.com>
10922
10923 * utils.c (defaulted_query): Don't query on secondary UIs.
10924
0b145e37
TT
109252017-02-10 Tom Tromey <tom@tromey.com>
10926
10927 * rust-lang.c (rust_get_disr_info): Remove unused variable.
10928
2d8365c4
TT
109292017-02-10 Tom Tromey <tom@tromey.com>
10930
10931 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
10932 "cleanup" local.
10933 * python/py-type.c (typy_legacy_template_argument): Remove
10934 unnecessary "cleanup" local.
10935
2bb8f231
TT
109362017-02-10 Tom Tromey <tom@tromey.com>
10937
10938 * python/python.c (do_start_initialization): New function, from
10939 _initialize_python.
10940 (_initialize_python): Call do_start_initialization.
10941 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
10942 goto.
10943
1bdfaf42
TT
109442017-02-10 Tom Tromey <tom@tromey.com>
10945
10946 * python/py-prettyprint.c (pretty_print_one_value): Use
10947 gdbpy_ref.
10948
88b6faea
TT
109492017-02-10 Tom Tromey <tom@tromey.com>
10950
10951 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
10952 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
10953 gdbpy_ref.
10954 * python/py-type.c (field_new): Use gdbpy_ref.
10955 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
10956 gdbpy_ref.
10957 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
10958 (py_free_pspace): Likewise.
10959 (pspace_to_pspace_object): Likewise.
10960 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
10961 (py_free_objfile): Likewise.
10962 (objfile_to_objfile_object): Likewise.
10963 * python/py-inferior.c (delete_thread_object): Use
10964 gdbpy_ref.
10965 (infpy_read_memory): Likewise.
10966 (py_free_inferior): Likewise.
10967 * python/py-evtregistry.c (create_eventregistry_object): Use
10968 gdbpy_ref.
10969 * python/py-event.c (create_event_object): Use gdbpy_ref.
10970
7780f186
TT
109712017-02-10 Tom Tromey <tom@tromey.com>
10972
10973 * python/py-ref.h (gdbpy_ref_policy): Now a template.
10974 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
10975 used.
10976 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
10977 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
10978 python/py-exitedevent.c, python/py-finishbreakpoint.c,
10979 python/py-framefilter.c, python/py-function.c,
10980 python/py-inferior.c, python/py-infevents.c,
10981 python/py-linetable.c, python/py-newobjfileevent.c,
10982 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
10983 python/py-signalevent.c, python/py-stopevent.c,
10984 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
10985 python/py-unwind.c, python/py-utils.c, python/py-value.c,
10986 python/py-varobj.c, python/py-xmethods.c, python/python.c,
10987 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
10988
d4b0bb18
TT
109892017-02-10 Tom Tromey <tom@tromey.com>
10990
10991 * ui-out.h (ui_out_emit_type): New class.
10992 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
10993 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
10994 and ui_out_emit_tuple.
10995 (enumerate_locals): Likewise.
10996 (py_mi_print_variables, py_print_locals, py_print_args): Use
10997 ui_out_emit_list.
10998 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
10999 ui_out_emit_list.
11000 * common/gdb_optional.h: New file.
11001
f67f945c
MG
110022017-02-10 Martin Galvan <martingalvan@sourceware.org>
11003
11004 * MAINTAINERS (Write After Approval): Update my e-mail address.
11005
18da0c51
MG
110062017-02-10 Martin Galvan <martingalvan@sourceware.org>
11007
11008 PR gdb/21122
11009 * breakpoint.c (_initialize_breakpoint): Update the help description
11010 of the 'commands' command to indicate that it takes a list argument.
11011
62c14536
SM
110122017-02-09 Simon Marchi <simon.marchi@ericsson.com>
11013
11014 * interps.c (current_interp_set_logging): Remove "return".
11015
ff6fa247
GB
110162017-02-09 Gary Benson <gbenson@redhat.com>
11017
11018 * symtab.c (add_symtab_completions): Prevent NULL pointer
11019 dereference.
11020
a474bd8e
PA
110212017-02-08 Pedro Alves <palves@redhat.com>
11022
11023 * interps.c (interp::interp): Remove reference to quiet_p.
11024 (interp_set): Make static. Remove dead "Switching to" output
11025 code.
11026 (interp_quiet_p, interp_set_quiet): Delete.
11027 (interpreter_exec_cmd): Don't set the interpreter quiet.
11028 * interps.h (interp_quiet_p): Make static.
11029 (class interp) <quiet_p>: Remove field
11030
3d7b173c
JG
110312017-02-08 Jerome Guitton <guitton@adacore.com>
11032
604c4576
JG
11033 * cli/cli-decode.c (find_command_name_length): Make it extern.
11034 * cli/cli-decode.h (find_command_name_length): Declare.
11035 * cli/cli-script.c (command_name_equals, line_first_arg):
11036 New functions.
11037 (process_next_line): Use cli-decode to parse command names.
11038 (build_command_line): Make args a constant pointer.
11039
110402017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 11041
3d7b173c
JG
11042 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
11043 Remove case-insensitive search.
11044
1291063d
JM
110452017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
11046
11047 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
11048 at the end of the line. Avoids an ARI warning.
11049
20b477a7
LM
110502017-02-06 Luis Machado <lgustavo@codesourcery.com>
11051
11052 * NEWS: Mention support for record/replay of Intel 64 rdrand and
11053 rdseed instructions.
11054 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
11055
3f7b46f2
IR
110562017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
11057
11058 PR tdep/20936
11059 Provide and use sparc32 and sparc64 target description XML files.
11060 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
11061 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
11062 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
11063 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
11064 * features/sparc/sparc32-solaris.xml: New file.
11065 * features/sparc/sparc64-solaris.xml: New file.
11066 * features/sparc/sparc32-solaris.c: Generated.
11067 * features/sparc/sparc64-solaris.c: Generated.
11068 * sparc-tdep.h: Account for differences in target descriptions.
11069 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
11070 (sparc32_register_type): Use target provided registers.
11071 (validate_tdesc_registers): New function.
11072 (sparc32_gdbarch_init): Use tdesc_has_registers.
11073 Set pseudoregister functions.
11074 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
11075 (sparc64_register_type): Use target provided registers.
11076 (sparc64_init_abi): Set pseudoregister functions.
11077
f0fd41c1
TT
110782017-02-03 Tom Tromey <tom@tromey.com>
11079
11080 PR rust/21097:
11081 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
11082 with a single member.
11083
d6f9b0fb
PA
110842017-02-03 Pedro Alves <palves@redhat.com>
11085
11086 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
11087 (cli_interp_base::~cli_interp_base): New.
11088 (cli_interp): New struct.
11089 (as_cli_interp): Cast the interp itself to cli_interp.
11090 (cli_interpreter_pre_command_loop): Rename to ...
11091 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
11092 parameter.
11093 (cli_interpreter_init): Rename to ...
11094 (cli_interp::init): ... this. Remove 'self' parameter. Use
11095 boolean. Make extern.
11096 (cli_interpreter_resume): Rename to ...
11097 (cli_interp::resume): ... this. Remove 'data' parameter. Make
11098 extern.
11099 (cli_interpreter_suspend): Rename to ...
11100 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
11101 extern.
11102 (cli_interpreter_exec): Rename to ...
11103 (cli_interp::exec): ... this. Remove 'data' parameter. Make
11104 extern.
11105 (cli_interpreter_supports_command_editing): Rename to ...
11106 (cli_interp_base::supports_command_editing): ... this. Remove
11107 'interp' parameter. Make extern.
11108 (cli_ui_out): Rename to ...
11109 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
11110 Make extern.
11111 (cli_set_logging): Rename to ...
11112 (cli_interp_base::set_logging): ... this. Remove 'interp'
11113 parameter. Make extern.
11114 (cli_interp_procs): Delete.
11115 (cli_interp_factory): Adjust to use "new".
11116 * cli/cli-interp.h: Include "interps.h".
11117 (struct cli_interp_base): New struct.
11118 * interps.c (struct interp): Delete. Fields moved to interps.h.
11119 (interp_new): Delete.
11120 (interp::interp, interp::~interp): New.
11121 (interp_set): Use bool, and return void. Assume the interpreter
11122 has suspend, init and resume methods, and that the all return
11123 void.
11124 (set_top_level_interpreter): interp_set returns void.
11125 (interp_ui_out): Adapt.
11126 (current_interp_set_logging): Adapt.
11127 (interp_data): Delete.
11128 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
11129 (interp_exec): Adapt.
11130 (top_level_interpreter_data): Delete.
11131 * interps.h (interp_init_ftype, interp_resume_ftype)
11132 (interp_suspend_ftype, interp_exec_ftype)
11133 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
11134 (class interp): New.
11135 (interp_new): Delete.
11136 (interp_set): Now returns void. Use bool.
11137 (interp_data, top_level_interpreter_data): Delete.
11138 * mi/mi-common.h: Include interps.h.
11139 (class mi_interp): Inherit from interp. Define a ctor. Declare
11140 init, resume, suspect, exec, interp_ui_out, set_logging and
11141 pre_command_loop methods.
11142 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
11143 (mi_interpreter_init): Rename to ...
11144 (mi_interp::init): ... this. Remove the 'interp' parameter, use
11145 bool, return void and make extern. Adjust.
11146 (mi_interpreter_resume): ... Rename to ...
11147 (mi_interp::resume): ... this. Remove the 'data' parameter,
11148 return void and make extern. Adjust.
11149 (mi_interpreter_suspend): ... Rename to ...
11150 (mi_interp::suspend): ... this. Remove the 'data' parameter,
11151 return void and make extern. Adjust.
11152 (mi_interpreter_exec): ... Rename to ...
11153 (mi_interp::exec): ... this. Remove the 'data' parameter and make
11154 extern. Adjust.
11155 (mi_interpreter_pre_command_loop): ... Rename to ...
11156 (mi_interp::pre_command_loop): ... this. Remove the 'self'
11157 parameter and make extern.
11158 (mi_on_normal_stop_1): Adjust.
11159 (mi_ui_out): Rename to ...
11160 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
11161 parameter and make extern. Adjust.
11162 (mi_set_logging): Rename to ...
11163 (mi_interp::set_logging): ... this. Remove the 'interp'
11164 parameter and make extern. Adjust.
11165 (mi_interp_procs): Delete.
11166 (mi_interp_factory): Adjust to use 'new'.
11167 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
11168 (mi_print_exception, mi_execute_command, mi_load_progress):
11169 Adjust.
11170 * tui/tui-interp.c (tui_interp): New class.
11171 (as_tui_interp): Return a tui_interp pointer.
11172 (tui_on_normal_stop, tui_on_signal_received)
11173 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
11174 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
11175 to use interp::interp_ui_out.
11176 (tui_init): Rename to ...
11177 (tui_interp::init): ... this. Remove the 'self' parameter, use
11178 bool, return void and make extern. Adjust.
11179 (tui_resume): Rename to ...
11180 (tui_interp::resume): ... this. Remove the 'data' parameter,
11181 return void and make extern. Adjust.
11182 (tui_suspend): Rename to ...
11183 (tui_interp::suspend): ... this. Remove the 'data' parameter,
11184 return void and make extern. Adjust.
11185 (tui_ui_out): Rename to ...
11186 (tui_interp::interp_ui_out): ... this. Remove the 'self'
11187 parameter, and make extern. Adjust.
11188 (tui_exec): Rename to ...
11189 (tui_interp::exec): ... this. Remove the 'data' parameter and
11190 make extern.
11191 (tui_interp_procs): Delete.
11192 (tui_interp_factory): Use "new".
11193
65c40c95
TT
111942017-02-02 Tom Tromey <tom@tromey.com>
11195
11196 * rust-exp.y (ends_raw_string, space_then_number)
11197 (rust_identifier_start_p): Return bool.
11198 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
11199 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
11200 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
11201 (rust_chartype_p): Return bool.
11202 (val_print_struct, rust_print_struct_def, rust_print_type):
11203 Update.
11204 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
11205 Return bool.
11206
b50f188d
TT
112072017-02-02 Tom Tromey <tom@tromey.com>
11208
11209 * rust-lang.c: Reindent.
11210
03c85b11
TT
112112017-02-02 Tom Tromey <tom@tromey.com>
11212
11213 * rust-lang.h (rust_crate_for_block): Update.
11214 * rust-lang.c (rust_crate_for_block): Return std::string.
11215 (rust_get_disr_info): Use std:;string, not
11216 gdb::unique_xmalloc_ptr.
11217 * rust-exp.y (crate_name): Update.
11218
9b6da501
PA
112192017-02-02 Pedro Alves <palves@redhat.com>
11220
11221 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
11222 field out of gdb_disassembler_test and make it static.
11223
ec4cb20b
PA
112242017-02-02 Pedro Alves <palves@redhat.com>
11225
11226 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
11227 mi1_interp and mi_interp fields.
11228
5be5dbf0
PA
112292017-02-02 Pedro Alves <palves@redhat.com>
11230
616268b6
PA
11231 * cli/cli-interp.c (struct saved_output_files, saved_output):
11232 Moved from cli/cli-logging.c.
11233 (cli_set_logging): New function.
11234 (cli_interp_procs): Install cli_set_logging.
11235 * cli/cli-interp.h (make_logging_output, cli_set_logging):
11236 Declare.
11237 * cli/cli-logging.c (struct saved_output_files, saved_output):
11238 Moved to cli/cli-interp.c.
11239 (pop_output_files): Don't save outputs here.
11240 (make_logging_output): New function.
11241 (handle_redirections): Don't build tee nor save previous outputs
11242 here.
11243 * interps.c (current_interp_set_logging): Change prototype.
11244 Assume there's always a set_logging_proc method installed.
11245 * interps.h (interp_set_logging_ftype): Change prototype.
11246 (current_interp_set_logging): Change prototype and adjust comment.
11247 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
11248 use make_logging_output.
11249 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
112502017-02-02 Pedro Alves <palves@redhat.com>
11251
5be5dbf0
PA
11252 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
11253 from ...
11254 (set_logging_overwrite): ... here.
11255 (logging_no_redirect_file): Delete.
11256 (set_logging_redirect): Don't handle redirection on the fly.
11257 Instead warn that "logging off" / "logging on" is necessary.
11258 (pop_output_files): Delete references to logging_no_redirect_file.
11259 (show_logging_command): Always speak in terms of what will happen
11260 once logging is reenabled.
11261
c99cc448
PA
112622017-02-02 Pedro Alves <palves@redhat.com>
11263
11264 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
11265
8b172ce7
PA
112662017-02-02 Pedro Alves <palves@redhat.com>
11267
11268 * disasm.c (gdb_pretty_print_insn): Rename to ...
11269 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
11270 Remove gdbarch parameter. Adapt to clear the object's buffers
11271 instead of allocating new buffers, and to print using the object's
11272 gdb_disassembler instead of calling gdb_print_insn.
11273 (dump_insns): Use gdb_pretty_print_disassembler.
11274 * disasm.h (gdb_pretty_print_insn): Delete declaration.
11275 (gdb_pretty_print_disassembler): New class.
11276 * record-btrace.c (btrace_insn_history): Use
11277 gdb_pretty_print_disassembler.
11278
d7e74731
PA
112792017-02-02 Pedro Alves <palves@redhat.com>
11280
11281 * ada-lang.c (type_as_string): Use string_file.
11282 * ada-valprint.c (ada_print_floating): Use string_file.
11283 * ada-varobj.c (ada_varobj_scalar_image)
11284 (ada_varobj_get_value_image): Use string_file.
11285 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
11286 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
11287 * breakpoint.c (update_inserted_breakpoint_locations)
11288 (insert_breakpoint_locations, reattach_breakpoints)
11289 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
11290 (print_it_watchpoint): Use string_file.
11291 (save_breakpoints): Use stdio_file.
11292 * c-exp.y (oper): Use string_file.
11293 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
11294 tee_file.
11295 (pop_output_files): Use delete.
11296 (handle_redirections): Use stdio_file and tee_file.
11297 * cli/cli-setshow.c (do_show_command): Use string_file.
11298 * compile/compile-c-support.c (c_compute_program): Use
11299 string_file.
11300 * compile/compile-c-symbols.c (generate_vla_size): Take a
11301 'string_file &' instead of a 'ui_file *'.
11302 (generate_c_for_for_one_variable): Take a 'string_file &' instead
11303 of a 'ui_file *'. Use string_file.
11304 (generate_c_for_variable_locations): Take a 'string_file &'
11305 instead of a 'ui_file *'.
11306 * compile/compile-internal.h (generate_c_for_for_one_variable):
11307 Take a 'string_file &' instead of a 'ui_file *'.
11308 * compile/compile-loc2c.c (push, pushf, unary, binary)
11309 (print_label, pushf_register_address, pushf_register)
11310 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
11311 'ui_file *'. Adjust.
11312 * compile/compile.c (compile_to_object): Use string_file.
11313 * compile/compile.h (compile_dwarf_expr_to_c)
11314 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
11315 'ui_file *'.
11316 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
11317 (replace_typedefs_qualified_name): Use string_file and
11318 obstack_copy0.
11319 * disasm.c (gdb_pretty_print_insn): Use string_file.
11320 (gdb_disassembly): Adjust reference the null_stream global.
11321 (do_ui_file_delete): Delete.
11322 (gdb_insn_length): Use null_stream.
11323 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
11324 * dwarf2loc.c (dwarf2_compile_property_to_c)
11325 (locexpr_generate_c_location, loclist_generate_c_location): Take a
11326 'string_file &' instead of a 'ui_file *'.
11327 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
11328 * dwarf2read.c (do_ui_file_peek_last): Delete.
11329 (dwarf2_compute_name): Use string_file.
11330 * event-top.c (gdb_setup_readline): Use stdio_file.
11331 * gdbarch.sh (verify_gdbarch): Use string_file.
11332 * gdbtypes.c (safe_parse_type): Use null_stream.
11333 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
11334 string_file.
11335 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
11336 'string_file *' instead of a 'ui_file *'.
11337 (gdbscm_arch_disassemble): Use string_file.
11338 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
11339 * guile/scm-ports.c (class ioscm_file_port): Now a class that
11340 inherits from ui_file.
11341 (ioscm_file_port_delete, ioscm_file_port_rewind)
11342 (ioscm_file_port_put): Delete.
11343 (ioscm_file_port_write): Rename to ...
11344 (ioscm_file_port::write): ... this. Remove file_port_magic
11345 checks.
11346 (ioscm_file_port_new): Delete.
11347 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
11348 ui_file_up.
11349 * guile/scm-type.c (tyscm_type_name): Use string_file.
11350 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
11351 Use string_file.
11352 * infcmd.c (print_return_value_1): Use string_file.
11353 * infrun.c (print_target_wait_results): Use string_file.
11354 * language.c (add_language): Use string_file.
11355 * location.c (explicit_to_string_internal): Use string_file.
11356 * main.c (captured_main_1): Use null_file.
11357 * maint.c (maintenance_print_architecture): Use stdio_file.
11358 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
11359 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
11360 event_channel>: Change type to mi_console_file pointer.
11361 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
11362 (mi_console_file_delete): Delete.
11363 (struct mi_console_file): Delete.
11364 (mi_console_file_magic): Delete.
11365 (mi_console_file_new): Delete.
11366 (mi_console_file::mi_console_file): New.
11367 (mi_console_file_delete): Delete.
11368 (mi_console_file_fputs): Delete.
11369 (mi_console_file::write): New.
11370 (mi_console_raw_packet): Delete.
11371 (mi_console_file::flush): New.
11372 (mi_console_file_flush): Delete.
11373 (mi_console_set_raw): Rename to ...
11374 (mi_console_file::set_raw): ... this.
11375 * mi/mi-console.h (class mi_console_file): New class.
11376 (mi_console_file_new, mi_console_set_raw): Delete.
11377 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
11378 (mi_set_logging): Use delete and tee_file. Adjust.
11379 * mi/mi-main.c (output_register): Use string_file.
11380 (mi_cmd_data_evaluate_expression): Use string_file.
11381 (mi_cmd_data_read_memory): Use string_file.
11382 (mi_cmd_execute, print_variable_or_computed): Use string_file.
11383 * mi/mi-out.c (mi_ui_out::main_stream): New.
11384 (mi_ui_out::rewind): Use main_stream and
11385 string_file.
11386 (mi_ui_out::put): Use main_stream and string_file.
11387 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
11388 Allocate a 'string_file' instead.
11389 (mi_out_new): Don't allocate a mem_fileopen stream here.
11390 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
11391 (mi_ui_out::main_stream): Declare method.
11392 * printcmd.c (eval_command): Use string_file.
11393 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
11394 * python/py-arch.c (archpy_disassemble): Use string_file.
11395 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
11396 * python/py-frame.c (frapy_str): Use string_file.
11397 * python/py-framefilter.c (py_print_type, py_print_single_arg):
11398 Use string_file.
11399 * python/py-type.c (typy_str): Use string_file.
11400 * python/py-unwind.c (unwind_infopy_str): Use string_file.
11401 * python/py-value.c (valpy_str): Use string_file.
11402 * record-btrace.c (btrace_insn_history): Use string_file.
11403 * regcache.c (regcache_print): Use stdio_file.
11404 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
11405 * remote.c (escape_buffer): Use string_file.
11406 * rust-lang.c (rust_get_disr_info): Use string_file.
11407 * serial.c (serial_open_ops_1): Use stdio_file.
11408 (do_serial_close): Use delete.
11409 * stack.c (print_frame_arg): Use string_file.
11410 (print_frame_args): Remove local mem_fileopen stream, not used.
11411 (print_frame): Use string_file.
11412 * symmisc.c (maintenance_print_symbols): Use stdio_file.
11413 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
11414 Take a 'string_file *' instead of a 'ui_file *'.
11415 * top.c (new_ui): Use stdio_file and stderr_file.
11416 (free_ui): Use delete.
11417 (execute_command_to_string): Use string_file.
11418 (quit_confirm): Use string_file.
11419 * tracepoint.c (collection_list::append_exp): Use string_file.
11420 * tui/tui-disasm.c (tui_disassemble): Use string_file.
11421 * tui/tui-file.c: Don't include "ui-file.h".
11422 (enum streamtype, struct tui_stream): Delete.
11423 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
11424 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
11425 (tui_file::tui_file): New method.
11426 (tui_file_fputs): Delete.
11427 (tui_file_get_strbuf): Delete.
11428 (tui_file::puts): New method.
11429 (tui_file_adjust_strbuf): Delete.
11430 (tui_file_flush): Delete.
11431 (tui_file::flush): New method.
11432 * tui/tui-file.h: Tweak intro comment.
11433 Include ui-file.h.
11434 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
11435 (tui_file_adjust_strbuf): Delete declarations.
11436 (class tui_file): New class.
11437 * tui/tui-io.c (tui_initialize_io): Use tui_file.
11438 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
11439 (tui_register_format): Use string_stream.
11440 * tui/tui-stack.c (tui_make_status_line): Use string_file.
11441 (tui_get_function_from_frame): Use string_file.
11442 * typeprint.c (type_to_string): Use string_file.
11443 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
11444 (null_stream): New global.
11445 (ui_file_delete): Delete.
11446 (ui_file::ui_file): New.
11447 (null_file_isatty): Delete.
11448 (ui_file::~ui_file): New.
11449 (null_file_rewind): Delete.
11450 (ui_file::printf): New.
11451 (null_file_put): Delete.
11452 (null_file_flush): Delete.
11453 (ui_file::putstr): New.
11454 (null_file_write): Delete.
11455 (ui_file::putstrn): New.
11456 (null_file_read): Delete.
11457 (ui_file::putc): New.
11458 (null_file_fputs): Delete.
11459 (null_file_write_async_safe): Delete.
11460 (ui_file::vprintf): New.
11461 (null_file_delete): Delete.
11462 (null_file::write): New.
11463 (null_file_fseek): Delete.
11464 (null_file::puts): New.
11465 (ui_file_data): Delete.
11466 (null_file::write_async_safe): New.
11467 (gdb_flush, ui_file_isatty): Adjust.
11468 (ui_file_put, ui_file_rewind): Delete.
11469 (ui_file_write): Adjust.
11470 (ui_file_write_for_put): Delete.
11471 (ui_file_write_async_safe, ui_file_read): Adjust.
11472 (ui_file_fseek): Delete.
11473 (fputs_unfiltered): Adjust.
11474 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
11475 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
11476 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
11477 (set_ui_file_data): Delete.
11478 (string_file::~string_file, string_file::write)
11479 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
11480 (do_ui_file_as_string, ui_file_as_string): Delete.
11481 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
11482 (struct mem_file): Delete.
11483 (mem_file_new): Delete.
11484 (stdio_file::stdio_file): New.
11485 (mem_file_delete): Delete.
11486 (stdio_file::stdio_file): New.
11487 (mem_fileopen): Delete.
11488 (stdio_file::~stdio_file): New.
11489 (mem_file_rewind): Delete.
11490 (stdio_file::set_stream): New.
11491 (mem_file_put): Delete.
11492 (stdio_file::open): New.
11493 (mem_file_write): Delete.
11494 (stdio_file_magic, struct stdio_file): Delete.
11495 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
11496 (stdio_file::flush): New.
11497 (stdio_file_read): Rename to ...
11498 (stdio_file::read): ... this. Adjust.
11499 (stdio_file_write): Rename to ...
11500 (stdio_file::write): ... this. Adjust.
11501 (stdio_file_write_async_safe): Rename to ...
11502 (stdio_file::write_async_safe) ... this. Adjust.
11503 (stdio_file_fputs): Rename to ...
11504 (stdio_file::puts) ... this. Adjust.
11505 (stdio_file_isatty): Delete.
11506 (stdio_file_fseek): Delete.
11507 (stdio_file::isatty): New.
11508 (stderr_file_write): Rename to ...
11509 (stderr_file::write) ... this. Adjust.
11510 (stderr_file_fputs): Rename to ...
11511 (stderr_file::puts) ... this. Adjust.
11512 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
11513 (stderr_file::stderr_file): New.
11514 (tee_file_magic): Delete.
11515 (struct tee_file): Delete.
11516 (tee_file::tee_file): New.
11517 (tee_file_new): Delete.
11518 (tee_file::~tee_file): New.
11519 (tee_file_delete): Delete.
11520 (tee_file_flush): Rename to ...
11521 (tee_file::flush): ... this. Adjust.
11522 (tee_file_write): Rename to ...
11523 (tee_file::write): ... this. Adjust.
11524 (tee_file::write_async_safe): New.
11525 (tee_file_fputs): Rename to ...
11526 (tee_file::puts): ... this. Adjust.
11527 (tee_file_isatty): Rename to ...
11528 (tee_file::isatty): ... this. Adjust.
11529 * ui-file.h (struct obstack, struct ui_file): Don't
11530 forward-declare.
11531 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
11532 (ui_file_write_ftype)
11533 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
11534 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
11535 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
11536 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
11537 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
11538 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
11539 (set_ui_file_fseek): Delete.
11540 (ui_file_data, ui_file_delete, ui_file_rewind)
11541 (struct ui_file): New.
11542 (ui_file_up): New.
11543 (class null_file): New.
11544 (null_stream): Declare.
11545 (ui_file_write_for_put, ui_file_put): Delete.
11546 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
11547 Delete.
11548 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
11549 (gdb_fopen, tee_file_new): Delete.
11550 (struct string_file): New.
11551 (struct stdio_file): New.
11552 (stdio_file_up): New.
11553 (struct stderr_file): New.
11554 (class tee_file): New.
11555 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
11556 of a 'ui_file *'. Adjust.
11557 * ui-out.h (class ui_out) <field_stream>: Likewise.
11558 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
11559 (null_stream): Delete.
11560 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
11561 Adjust.
11562 * utils.h (struct ui_file): Delete forward declaration..
11563 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
11564 (error_stream): Take a 'string_file &' instead of a
11565 'ui_file *'.
11566 * varobj.c (varobj_value_get_print_value): Use string_file.
11567 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
11568 * gdbarch.c: Regenerate.
11569
187808b0
PA
115702017-02-02 Pedro Alves <palves@redhat.com>
11571
11572 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
11573 (gdb_pretty_print_insn): ... this. Now a free function. Add back
11574 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
11575 Adjust to call gdb_print_insn instead of
11576 gdb_disassembler::print_insn.
11577 (dump_insns, do_mixed_source_and_assembly_deprecated)
11578 (do_mixed_source_and_assembly, do_assembly_only): Add back a
11579 'gdbarch' parameter. Remove gdb_disassembler parameter.
11580 (gdb_disassembly): Don't allocate a gdb_disassembler here.
11581 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
11582 declaration.
11583 (gdb_pretty_print_insn): Re-add declaration.
11584 * record-btrace.c (btrace_insn_history): Don't allocate a
11585 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
11586
7a8eb317
SM
115872017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
11588
11589 * disasm.h (gdb_disassembly): Remove file_string parameter.
11590 * disasm.c (gdb_disassembly): Likewise.
11591 * cli/cli-cmds.c (print_disassembly): Adapt.
11592 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
11593 * stack.c (do_gdb_disassembly): Likewise.
11594
7346ef59
AA
115952017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
11596
11597 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
11598 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
11599 targets. And if the implicit value is longer than needed, extract
11600 the first bytes instead of the "least significant" ones.
11601
cd4007e4
MM
116022017-02-01 Markus Metzger <markus.t.metzger@intel.com>
11603
11604 * btrace.c (btrace_enable): Do not call btrace_add_pc for
11605 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
11606 (btrace_fetch): Assert can_access_registers_ptid.
11607 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
11608 validate_registers_access.
11609
cf77c34e
MM
116102017-02-01 Markus Metzger <markus.t.metzger@intel.com>
11611
11612 * gdbthread.h (can_access_registers_ptid): New.
11613 * thread.c (can_access_registers_ptid): New.
11614
be85ce7d
PA
116152017-02-01 Pedro Alves <palves@redhat.com>
11616
11617 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
11618
29b0b251
PA
116192017-01-31 Pedro Alves <palves@redhat.com>
11620
11621 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
11622 Fix typos.
11623
289b5b24
PA
116242017-01-31 Pedro Alves <palves@redhat.com>
11625
11626 * stack.c (print_frame_args): Remove local mem_fileopen stream,
11627 not used.
11628
b47413b4
PA
116292017-01-31 Pedro Alves <palves@redhat.com>
11630
11631 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
11632
60adb36c
PA
116332017-01-31 Pedro Alves <palves@redhat.com>
11634
11635 * common/scoped_restore.h
11636 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
11637 change the value's parameter type to T2.
11638 (make_scoped_restore): Likewise.
11639
2735833d
WT
116402017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
11641 Richard Henderson <rth@redhat.com>
11642
11643 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
11644 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
11645 GS_BASE for older kernels.
11646 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
11647 GS_BASE for older kernels.
11648 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
11649 and GS_BASE to the offset table.
11650 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
11651 system register group.
11652 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
11653 for older kernels.
11654 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
11655 amd64 ABI.
11656 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
11657 AMD64_GSBASE_REGNUM.
11658 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
11659 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
11660 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
11661 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
11662 i386/64bit-segments.xml in those rules.
11663 * features/i386/64bit-segments.xml: New file.
11664 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
11665 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
11666 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
11667 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
11668 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
11669 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
11670 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
11671 * features/i386/amd64-avx-linux.c: Regenerated.
11672 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
11673 * features/i386/amd64-avx-mpx.c: Regenerated.
11674 * features/i386/amd64-avx512-linux.c: Regenerated.
11675 * features/i386/amd64-linux.c: Regenerated.
11676 * features/i386/amd64-mpx-linux.c: Regenerated.
11677 * features/i386/i386-avx-mpx-linux.c: Regenerated.
11678 * features/i386/i386-avx-mpx.c: Regenerated.
11679 * features/i386/x32-avx-linux.c: Regenerated.
11680 * features/i386/x32-avx512-linux.c: Regenerated.
11681 * regformats/i386/amd64-avx-linux.dat: Regenerated.
11682 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
11683 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
11684 * regformats/i386/amd64-linux.dat: Regenerated.
11685 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
11686 * regformats/i386/x32-avx-linux.dat: Regenerated.
11687 * regformats/i386/x32-avx512-linux.dat: Regenerated.
11688 * regformats/i386/x32-linux.dat: Regenerated.
11689
8884e97e
WT
116902017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
11691
11692 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
11693 Set to AMD64_NUM_REGS.
11694
7005d26a
WT
116952017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
11696
11697 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
11698 that checks validity of a register number.
11699
4bd2e1b2
KC
117002017-01-27 Kees Cook <keescook@google.com>
11701
11702 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
11703 fetch_fpregs if target has fpa registers.
11704 (arm_linux_store_inferior_registers): Call store_fpregs if target
11705 has fpa registers.
11706
7cf1de6c
AA
117072017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
11708
11709 * cris-tdep.c (cris_gdbarch_init): Remove check for
11710 info.byte_order and force it to BFD_ENDIAN_LITTLE.
11711
874a1c8c
AT
117122017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
11713
11714 * corelow.c (get_core_register_section): Check for regset
11715 existence before checking for REGSET_VARIABLE_SIZE.
11716
d8b49cf0
YQ
117172017-01-26 Yao Qi <yao.qi@linaro.org>
11718 Pedro Alves <palves@redhat.com>
11719
11720 PR gdb/20939
11721 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
11722 call memory_error, save memaddr instead.
11723 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
11724 negative, cal memory_error.
11725 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
11726
658ca58c
YQ
117272017-01-26 Yao Qi <yao.qi@linaro.org>
11728
11729 * disasm-selftests.c (memory_error_test): New function.
11730 (_initialize_disasm_selftests): Register memory_error_test.
11731
79843d45
YQ
117322017-01-26 Yao Qi <yao.qi@linaro.org>
11733
11734 * Makefile.in (SFILES): Add disasm-selftests.c and
11735 selftest-arch.c.
11736 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
11737 * disasm-selftests.c: New file.
11738 * selftest-arch.c: New file.
11739 * selftest-arch.h: New file.
11740
8cafda32
YQ
117412017-01-26 Yao Qi <yao.qi@linaro.org>
11742
11743 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
11744 to bfd_arch_mep. Don't return 0 if section is not
11745 found. Call print_insn_mep.
11746
e47ad6c0
YQ
117472017-01-26 Pedro Alves <palves@redhat.com>
11748 Yao Qi <yao.qi@linaro.org>
11749
11750 * arm-tdep.c: Include "disasm.h".
11751 (gdb_print_insn_arm): Update code to get gdbarch.
11752 * disasm.c (dis_asm_read_memory): Change it to
11753 gdb_disassembler::dis_asm_read_memory.
11754 (dis_asm_memory_error): Likewise.
11755 (dis_asm_print_address): Likewise.
11756 (gdb_pretty_print_insn): Change it to
11757 gdb_disassembler::pretty_print_insn.
11758 (dump_insns): Add one argument gdb_disassemlber. All
11759 callers updated.
11760 (do_mixed_source_and_assembly_deprecated): Likewise.
11761 (do_mixed_source_and_assembly): Likewise.
11762 (do_assembly_only): Likewise.
11763 (gdb_disassembler::gdb_disassembler): New.
11764 (gdb_disassembler::print_insn): New.
11765 * disasm.h (class gdb_disassembler): New.
11766 (gdb_pretty_print_insn): Remove declaration.
11767 (gdb_disassemble_info): Likewise.
11768 * guile/scm-disasm.c (class gdbscm_disassembler): New.
11769 (gdbscm_disasm_read_memory_worker): Update.
11770 (gdbscm_disasm_read_memory): Update.
11771 (gdbscm_disasm_memory_error): Remove.
11772 (gdbscm_disasm_print_address): Remove.
11773 (gdbscm_disassembler::gdbscm_disassembler): New.
11774 (gdbscm_print_insn_from_port): Update.
11775 * mips-tdep.c: Include disasm.h.
11776 (gdb_print_insn_mips): Update code to get gdbarch.
11777 * record-btrace.c (btrace_insn_history): Update.
11778 * spu-tdep.c: Include disasm.h.
11779 (struct spu_dis_asm_data): Remove.
11780 (struct spu_dis_asm_info): New.
11781 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
11782 SPU id.
11783 (gdb_print_insn_spu): Cast disassemble_info to
11784 spu_dis_asm_info.
11785
80d75874
YQ
117862017-01-26 Yao Qi <yao.qi@linaro.org>
11787
11788 * disasm.c (do_ui_file_delete): Delete.
11789 (gdb_insn_length): Move code creating stream to ...
11790 * utils.c (null_stream): ... here. New function.
11791 * utils.h (null_stream): Declare.
11792
60685cd0
SM
117932017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11794
11795 * python/py-inferior.c (find_thread_object): Return directly
11796 from the loop. Remove "found" variable.
11797
eb1cdb62
JB
117982017-01-21 Joel Brobecker <brobecker@adacore.com>
11799
11800 GDB 7.12.1 released.
11801
b1ce6568
SM
118022017-01-20 Simon Marchi <simon.marchi@ericsson.com>
11803
11804 * python/py-function.c (fnpy_call): Reorder declarations to have
11805 the gdbpy_enter object declared first.
11806 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
11807
6f8b0407
SM
118082017-01-20 Simon Marchi <simon.marchi@ericsson.com>
11809
fec93fb1 11810 PR python/21068
6f8b0407
SM
11811 * python/python-internal.h (PyMem_RawMalloc): Define for
11812 Python < 3.4.
11813 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
11814 PyMem_RawMalloc instead of PyMem_Malloc.
11815
78cbbba8
LM
118162017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
11817 Luis Machado <lgustavo@codesourcery.com>
11818
11819 * NEWS (New commands): Mention flash-erase.
11820 (New MI commands): Mention target-flash-erase.
11821 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
11822 command.
11823 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
11824 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
11825 * target.c (flash_erase_command): New function.
11826 (initialize_targets): Add new flash-erase command.
11827 * target.h (flash_erase_command): New declaration.
11828
2132fe85
JB
118292017-01-20 Joel Brobecker <brobecker@adacore.com>
11830
11831 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
11832 HAVE_SYS_PROCFS_H is defined.
11833
d1dff226
AH
118342017-01-18 Alan Hayward <alan.hayward@arm.com>
11835
11836 * remote.c (struct cached_reg): Change data into a pointer.
11837 * (stop_reply_dtr): Free data pointers before deleting vector.
11838 (process_stop_reply): Likewise.
11839 (remote_parse_stop_reply): Allocate space for data
11840
9890e433
AH
118412017-01-18 Alan Hayward <alan.hayward@arm.com>
11842
11843 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
11844 MAX_REGISTER_SIZE.
11845 (amd64_pseudo_register_read_value): Likewise.
11846 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
11847 (store_register_using_P): Likewise.
11848 * regcache.c (regcache_xfer_part): Likewise.
11849
7a36499a
IR
118502017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
11851
11852 Split real and pseudo registers.
11853 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
11854 (sparc32_pseudo_regnum): New enum.
11855 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
11856 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
11857 (SPARC32_CP0_REGISTERS): New macro.
11858 (sparc32_pseudo_register_name): New function.
11859 (sparc32_register_name): Use sparc32_pseudo_register_name.
11860 (sparc32_pseudo_register_type): New function.
11861 (sparc32_register_type): Use sparc32_pseudo_register_type.
11862 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
11863 pseudo register numbers.
11864 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
11865 (SPARC64_CP0_REGISTERS): New macro.
11866 (sparc64_pseudo_register_name): New function.
11867 (sparc64_register_name): Use sparc64_pseudo_register_name.
11868 (sparc64_pseudo_register_type): New function.
11869 (sparc64_register_type): Use sparc64_pseudo_register_type.
11870 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
11871 pseudo register numbers.
11872 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
11873 sparc64_store_arguments): Handle pseudo register numbers.
11874
6f8976bf
YQ
118752017-01-13 Yao Qi <yao.qi@linaro.org>
11876
11877 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
11878 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
11879 output.
11880 (getpkt_or_notif_sane_1): Likewise.
11881
e4241ace
YQ
118822017-01-13 Yao Qi <yao.qi@linaro.org>
11883
11884 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
11885 of CC. Pass "-x c++-header" instead of "-x c".
11886
3015c064
SM
118872017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11888
11889 * remote.c (remote_can_async_p): Update comment.
11890
fde1b17d
SM
118912017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11892
11893 * linux-nat.c (linux_nat_can_async_p): Update comment.
11894
ca1ca08b
SM
118952017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11896
11897 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
11898
4ad2da73
SM
118992017-01-11 Simon Marchi <simon.marchi@ericsson.com>
11900
11901 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
11902
c8b23b3f
TT
119032017-01-10 Tom Tromey <tom@tromey.com>
11904
11905 * python/py-type.c (typy_legacy_template_argument): Update.
11906 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
11907 ~demangle_parse_info): Declare new members.
11908 (cp_demangled_name_to_comp): Return unique_ptr.
11909 (cp_demangled_name_parse_free)
11910 (make_cleanup_cp_demangled_name_parse_free)
11911 (cp_new_demangle_parse_info): Remove.
11912 * cp-support.c (do_demangled_name_parse_free_cleanup)
11913 (make_cleanup_cp_demangled_name_parse_free): Remove.
11914 (inspect_type, cp_canonicalize_string_full)
11915 (cp_canonicalize_string): Update.
11916 (mangled_name_to_comp): Change return type.
11917 (cp_class_name_from_physname, method_name_from_physname)
11918 (cp_func_name, cp_remove_params): Update.
11919 * cp-name-parser.y (demangle_parse_info): New constructor, from
11920 cp_new_demangle_parse_info.
11921 (~demangle_parse_info): New destructor, from
11922 cp_demangled_name_parse_free.
11923 (cp_merge_demangle_parse_infos): Update.
11924 (cp_demangled_name_to_comp): Change return type.
11925
1ac32117
TT
119262017-01-10 Tom Tromey <tom@tromey.com>
11927
11928 * top.c (prevent_dont_repeat): Change return type.
11929 * python/python.c (execute_gdb_command): Use std::string.
11930 Update.
11931 * guile/guile.c (gdbscm_execute_gdb_command): Update.
11932 * command.h (prevent_dont_repeat): Change return type.
11933 * breakpoint.c (bpstat_do_actions_1): Update.
11934
0cf08227
TT
119352017-01-10 Tom Tromey <tom@tromey.com>
11936
11937 * value.h (scoped_value_mark::~scoped_value_mark): Call
11938 free_to_mark.
11939 (scoped_value_mark::free_to_mark): New method.
11940 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
11941 scoped_value_mark.
11942
eb115069
TT
119432017-01-10 Tom Tromey <tom@tromey.com>
11944
11945 * python/py-value.c (valpy_dereference, valpy_referenced_value)
11946 (valpy_reference_value, valpy_const_value, valpy_get_address)
11947 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11948 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
11949 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
11950 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
11951 scoped_value_mark.
11952 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
11953 * value.h (scoped_value_mark): New class.
11954
906768f9
TT
119552017-01-10 Tom Tromey <tom@tromey.com>
11956
11957 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
11958 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
11959 * psymtab.c (discard_psymtabs_upto): Remove.
11960 (make_cleanup_discard_psymtabs): Remove.
11961 (struct psymtab_state): Remove.
11962
bef155c3
TT
119632017-01-10 Tom Tromey <tom@tromey.com>
11964
11965 * record-full.c (record_full_save_cleanups): Remove.
11966 (record_full_save): Use gdb::unlinker.
11967 * gcore.c (do_bfd_delete_cleanup): Remove.
11968 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
11969 cleanups.
11970 * dwarf2read.c (unlink_if_set): Remove.
11971 (write_psymtabs_to_index): Use gdb::unlinker.
11972 * common/gdb_unlinker.h: New file.
11973
192b62ce
TT
119742017-01-10 Tom Tromey <tom@tromey.com>
11975
11976 * windows-tdep.c (windows_xfer_shared_library): Update.
11977 * windows-nat.c (windows_make_so): Update.
11978 * utils.h (make_cleanup_bfd_unref): Remove.
11979 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
11980 * symfile.h (symfile_bfd_open)
11981 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
11982 * symfile.c (read_symbols, symbol_file_add)
11983 (separate_debug_file_exists): Update.
11984 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
11985 (generic_load, reread_symbols): Update.
11986 * symfile-mem.c (symbol_file_add_from_memory): Update.
11987 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
11988 (spu_symbol_file_add_from_memory): Update.
11989 * solist.h (struct target_so_ops) <bfd_open>: Return
11990 gdb_bfd_ref_ptr.
11991 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
11992 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
11993 gdb_bfd_ref_ptr.
11994 (solib_map_sections, reload_shared_libraries_1): Update.
11995 * solib-svr4.c (enable_break): Update.
11996 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
11997 * solib-frv.c (enable_break2): Update.
11998 * solib-dsbt.c (enable_break): Update.
11999 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
12000 gdb_bfd_ref_ptr.
12001 (darwin_solib_get_all_image_info_addr_at_init): Update.
12002 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
12003 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
12004 * record-full.c (record_full_save): Update.
12005 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
12006 * procfs.c (insert_dbx_link_bpt_in_file): Update.
12007 * minidebug.c (find_separate_debug_file_in_section): Return
12008 gdb_bfd_ref_ptr.
12009 * machoread.c (macho_add_oso_symfile): Change abfd to
12010 gdb_bfd_ref_ptr.
12011 (macho_symfile_read_all_oso): Update.
12012 (macho_check_dsym): Return gdb_bfd_ref_ptr.
12013 (macho_symfile_read): Update.
12014 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
12015 (jit_bfd_try_read_symtab): Update.
12016 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
12017 (gdb_bfd_openw, gdb_bfd_openr_iovec)
12018 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
12019 gdb_bfd_ref_ptr.
12020 (gdb_bfd_ref_policy): New struct.
12021 (gdb_bfd_ref_ptr): New typedef.
12022 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
12023 (gdb_bfd_openw, gdb_bfd_openr_iovec)
12024 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
12025 gdb_bfd_ref_ptr.
12026 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
12027 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
12028 (gcore_command): Update.
12029 * exec.c (exec_file_attach): Update.
12030 * elfread.c (elf_symfile_read): Update.
12031 * dwarf2read.c (dwarf2_get_dwz_file): Update.
12032 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
12033 (open_and_init_dwo_file): Update.
12034 (open_dwp_file): Return gdb_bfd_ref_ptr.
12035 (open_and_init_dwp_file): Update.
12036 * corelow.c (core_open): Update.
12037 * compile/compile-object-load.c (compile_object_load): Update.
12038 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
12039 * coffread.c (coff_symfile_read): Update.
12040 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
12041 gdb_bfd_ref_ptr. Rename.
12042 (dump_bfd_file, restore_command): Update.
12043 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
12044 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
12045 (find_separate_debug_file_by_buildid): Update.
12046
50315b21
TT
120472017-01-10 Tom Tromey <tom@tromey.com>
12048
12049 * common/gdb_ref_ptr.h: New file.
12050 * python/py-ref.h (struct gdbpy_ref_policy): New.
12051 (gdbpy_ref): Now a typedef.
12052
fc4007c9
TT
120532017-01-10 Tom Tromey <tom@tromey.com>
12054
12055 * utils.h (make_cleanup_htab_delete): Don't declare.
12056 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
12057 Remove.
12058 * linespec.c (decode_compound_collector): Add constructor,
12059 destructor.
12060 (lookup_prefix_sym): Remove cleanup.
12061 (symtab_collector): Add constructor, destructor.
12062 (collect_symtabs_from_filename): Remove cleanup.
12063 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
12064 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
12065 Use htab_up.
12066 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
12067 * dwarf2read.c (dw2_expand_symtabs_matching)
12068 (dw2_map_symbol_filenames, dwarf_decode_macros)
12069 (write_psymtabs_to_index): Use htab_up.
12070 * dwarf2loc.c (func_verify_no_selftailcall)
12071 (call_site_find_chain_1, func_verify_no_selftailcall)
12072 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
12073 std::vector, gdb::unique_xmalloc_ptr.
12074 (call_sitep): Remove typedef.
12075 (dwarf2_locexpr_baton_eval): Remove unused variable.
12076
8dbcee67
TT
120772017-01-10 Tom Tromey <tom@tromey.com>
12078
12079 * python/python-internal.h (make_cleanup_py_decref)
12080 (make_cleanup_py_xdecref): Don't declare.
12081 * python/py-utils.c (py_decref, make_cleanup_py_decref)
12082 (py_xdecref, make_cleanup_py_xdecref): Remove.
12083
13df46cc
TT
120842017-01-10 Tom Tromey <tom@tromey.com>
12085
12086 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
12087 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
12088
06fc9bf7
TT
120892017-01-10 Tom Tromey <tom@tromey.com>
12090
12091 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
12092
830a4934
TT
120932017-01-10 Tom Tromey <tom@tromey.com>
12094
12095 * python/py-utils.c (unicode_to_encoded_string)
12096 (python_string_to_target_string)
12097 (python_string_to_target_python_string)
12098 (python_string_to_host_string, gdbpy_obj_to_string)
12099 (get_addr_from_python): Use gdbpy_ref.
12100
4586d543
TT
121012017-01-10 Tom Tromey <tom@tromey.com>
12102
12103 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
12104 gdbpy_ref.
12105
59876f8f
TT
121062017-01-10 Tom Tromey <tom@tromey.com>
12107
12108 * python/python.c (eval_python_command, gdbpy_decode_line)
12109 (gdbpy_run_events, gdbpy_start_type_printers)
12110 (gdbpy_apply_type_printers): Use gdbpy_ref.
12111
97d83487
TT
121122017-01-10 Tom Tromey <tom@tromey.com>
12113
12114 * python/py-param.c (get_doc_string, compute_enum_values): Use
12115 gdbpy_ref.
12116
9205649a
TT
121172017-01-10 Tom Tromey <tom@tromey.com>
12118
12119 * python/py-inferior.c (find_thread_object, build_inferior_list):
12120 Use gdbpy_ref.
12121
74c49d45
TT
121222017-01-10 Tom Tromey <tom@tromey.com>
12123
12124 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
12125
16361ffb
TT
121262017-01-10 Tom Tromey <tom@tromey.com>
12127
12128 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
12129 gdbpy_ref.
12130
905f2cca
TT
121312017-01-10 Tom Tromey <tom@tromey.com>
12132
12133 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
12134 extra incref.
12135 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
12136 Use gdbpy_ref.
12137
64081434
TT
121382017-01-10 Tom Tromey <tom@tromey.com>
12139
12140 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
12141 gdbpy_ref.
12142
59e9e831
TT
121432017-01-10 Tom Tromey <tom@tromey.com>
12144
12145 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
12146 decref results of PyArg_ParseTupleAndKeywords.
12147
9de10f6d
TT
121482017-01-10 Tom Tromey <tom@tromey.com>
12149
12150 * python/python.c (python_run_simple_file): Use
12151 unique_xmalloc_ptr, gdbpy_ref.
12152
2bd5759d
TT
121532017-01-10 Tom Tromey <tom@tromey.com>
12154
12155 * python/py-prettyprint.c (print_stack_unless_memory_error)
12156 (print_string_repr, print_children): Use gdbpy_ref.
12157 (dummy_python_frame): New class.
12158 (dummy_python_frame::dummy_python_frame): Rename from
12159 push_dummy_python_frame.
12160 (py_restore_tstate): Remove.
12161
3b4e0e01
TT
121622017-01-10 Tom Tromey <tom@tromey.com>
12163
12164 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
12165
17a22718
TT
121662017-01-10 Tom Tromey <tom@tromey.com>
12167
12168 * python/python.c (ensure_python_env, restore_python_env):
12169 Remove.
12170 * python/python-internal.h (ensure_python_env): Don't declare.
12171 * varobj.h (varobj_ensure_python_env): Don't declare.
12172 * varobj.c (varobj_ensure_python_env): Remove.
12173
68cdc557
TT
121742017-01-10 Tom Tromey <tom@tromey.com>
12175
12176 * varobj.c (varobj_value_get_print_value): Use
12177 gdbpy_enter_varobj.
12178
1eba6383
TT
121792017-01-10 Tom Tromey <tom@tromey.com>
12180
12181 * python/py-prettyprint.c (print_string_repr, print_children):
12182 Update.
12183 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
12184 of "encoding".
12185 * varobj.c (varobj_value_get_print_value): Update.
12186 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
12187
bde7b3e3
TT
121882017-01-10 Tom Tromey <tom@tromey.com>
12189
12190 * varobj.c (varobj_get_display_hint)
12191 (dynamic_varobj_has_child_method, install_new_value_visualizer)
12192 (varobj_set_visualizer, free_variable): Use
12193 gdbpy_enter_varobj.
12194
a7785f8c
TT
121952017-01-10 Tom Tromey <tom@tromey.com>
12196
12197 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
12198 (do_finish_initialization): New function. Use gdbpy_ref.
12199 (gdbpy_finish_initialization): Use gdbpy_enter. Call
12200 do_finish_initialization.
12201
2865bfce
TT
122022017-01-10 Tom Tromey <tom@tromey.com>
12203
12204 * python/py-param.c (get_set_value, get_show_value): Use
12205 gdbpy_enter, gdbpy_ref.
12206
0e9dcc75
TT
122072017-01-10 Tom Tromey <tom@tromey.com>
12208
12209 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
12210
12a5cedd
TT
122112017-01-10 Tom Tromey <tom@tromey.com>
12212
12213 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
12214
788f2586
TT
122152017-01-10 Tom Tromey <tom@tromey.com>
12216
12217 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
12218 Use gdbpy_enter_varobj.
12219
6cd67bea
TT
122202017-01-10 Tom Tromey <tom@tromey.com>
12221
12222 * varobj.c (gdbpy_enter_varobj): New constructor.
12223 * python/python-internal.h (gdbpy_enter_varobj): New class.
12224 * python/py-varobj.c (py_varobj_get_iterator): Use
12225 gdbpy_enter_varobj.
12226
14b122bf
TT
122272017-01-10 Tom Tromey <tom@tromey.com>
12228
12229 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
12230 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
12231 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
12232 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
12233 unique_xmalloc_ptr.
12234 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
12235
bf1ca3b9
TT
122362017-01-10 Tom Tromey <tom@tromey.com>
12237
12238 * python/py-xmethods.c (invoke_match_method): Use
12239 gdbpy_ref.
12240
572a5524
TT
122412017-01-10 Tom Tromey <tom@tromey.com>
12242
12243 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
12244 gdbpy_enter, gdbpy_ref.
12245
396a78b6
TT
122462017-01-10 Tom Tromey <tom@tromey.com>
12247
12248 * python/python.c (python_interactive_command): Use gdbpy_enter.
12249
a88b13c7
TT
122502017-01-10 Tom Tromey <tom@tromey.com>
12251
12252 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
12253 gdbpy_ref.
12254
e9f0c363
TT
122552017-01-10 Tom Tromey <tom@tromey.com>
12256
12257 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
12258 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
12259
6349f452
TT
122602017-01-10 Tom Tromey <tom@tromey.com>
12261
12262 * utils.h (htab_deleter): New struct.
12263 (htab_up): New typedef.
12264 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
12265 gdbpy_enter, gdbpy_ref, htab_up.
12266
c0171de6
TT
122672017-01-10 Tom Tromey <tom@tromey.com>
12268
12269 * python/py-unwind.c (pending_frame_invalidate): Remove.
12270 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
12271
f18e226f
TT
122722017-01-10 Tom Tromey <tom@tromey.com>
12273
12274 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
12275 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
12276
c57af3f1
TT
122772017-01-10 Tom Tromey <tom@tromey.com>
12278
12279 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
12280
60e600ec
TT
122812017-01-10 Tom Tromey <tom@tromey.com>
12282
12283 * python/python.c (gdbpy_eval_from_control_command)
12284 (gdbpy_source_script, gdbpy_run_events)
12285 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
12286 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
12287 gdbpy_enter.
12288
bf7da5b0
TT
122892017-01-10 Tom Tromey <tom@tromey.com>
12290
12291 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
12292
2d38bced
TT
122932017-01-10 Tom Tromey <tom@tromey.com>
12294
12295 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
12296
07bc7329
TT
122972017-01-10 Tom Tromey <tom@tromey.com>
12298
12299 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
12300 (python_on_inferior_call_pre, python_on_inferior_call_post)
12301 (python_on_memory_change, python_on_register_change)
12302 (python_inferior_exit, python_new_objfile, add_thread_object)
12303 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
12304
6e7c365e
TT
123052017-01-10 Tom Tromey <tom@tromey.com>
12306
12307 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
12308 (bpfinishpy_handle_exit): Use gdbpy_enter.
12309
6ba0cd40
TT
123102017-01-10 Tom Tromey <tom@tromey.com>
12311
12312 * python/py-cmd.c (cmdpy_destroyer)
12313 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
12314 gdbpy_enter.
12315
de2dc875
TT
123162017-01-10 Tom Tromey <tom@tromey.com>
12317
12318 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
12319 gdbpy_enter.
12320 (gdbpy_breakpoint_has_cond): Likewise.
12321
4ecee2c4
TT
123222017-01-10 Tom Tromey <tom@tromey.com>
12323
12324 * python/python.c (gdbpy_enter): New constructor.
12325 (~gdbpy_enter): New destructor.
12326 (restore_python_env, ensure_python_env): Rewrite.
12327 * python/python-internal.h (gdbpy_enter): New class.
12328
37fce74f
TT
123292017-01-10 Tom Tromey <tom@tromey.com>
12330
12331 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
12332
53a0cca3
TT
123332017-01-10 Tom Tromey <tom@tromey.com>
12334
12335 * python/py-value.c (value_has_field, get_field_flag)
12336 (get_field_type, valpy_getitem, convert_value_from_python): Use
12337 gdbpy_ref.
12338
ff3724f5
TT
123392017-01-10 Tom Tromey <tom@tromey.com>
12340
12341 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
12342 gdbpy_ref.
12343
0700aea5
TT
123442017-01-10 Tom Tromey <tom@tromey.com>
12345
12346 * python/py-prettyprint.c (search_pp_list)
12347 (find_pretty_printer_from_objfiles)
12348 (find_pretty_printer_from_progspace)
12349 (find_pretty_printer_from_gdb, find_pretty_printer)
12350 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
12351 gdbpy_ref.
12352
1bb44c9f
TT
123532017-01-10 Tom Tromey <tom@tromey.com>
12354
12355 * python/py-param.c (call_doc_function): Use gdbpy_ref.
12356
87ce03fd
TT
123572017-01-10 Tom Tromey <tom@tromey.com>
12358
12359 * python/py-linetable.c (build_line_table_tuple_from_pcs)
12360 (ltpy_get_all_source_lines): Use gdbpy_ref.
12361
ee0a3fb8
TT
123622017-01-10 Tom Tromey <tom@tromey.com>
12363
12364 * python/py-framefilter.c (extract_sym, extract_value)
12365 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
12366 gdbpy_ref.
12367
bf2a52fa
TT
123682017-01-10 Tom Tromey <tom@tromey.com>
12369
12370 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
12371
f59fe7f8
TT
123722017-01-10 Tom Tromey <tom@tromey.com>
12373
12374 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
12375
80bd970a
TT
123762017-01-10 Tom Tromey <tom@tromey.com>
12377
12378 * python/py-function.c (convert_values_to_python, fnpy_init): Use
12379 gdbpy_ref.
12380
d1b3de2e
TT
123812017-01-10 Tom Tromey <tom@tromey.com>
12382
12383 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
12384
3bb43384
TT
123852017-01-10 Tom Tromey <tom@tromey.com>
12386
12387 * python/py-type.c (convert_field, make_fielditem, typy_fields)
12388 (typy_range): Use gdbpy_ref.
12389
abf5651e
TT
123902017-01-10 Tom Tromey <tom@tromey.com>
12391
12392 * python/py-threadevent.c (create_thread_event_object): Use
12393 gdbpy_ref.
12394 * python/py-stopevent.c (create_stop_event_object): Simplify.
12395 (emit_stop_event): Use gdbpy_ref.
12396 * python/py-signalevent.c (create_signal_event_object): Use
12397 gdbpy_ref.
12398 * python/py-newobjfileevent.c (create_new_objfile_event_object)
12399 (emit_new_objfile_event, create_clear_objfiles_event_object)
12400 (emit_clear_objfiles_event): Use gdbpy_ref.
12401 * python/py-infevents.c (create_inferior_call_event_object)
12402 (create_register_changed_event_object)
12403 (create_memory_changed_event_object, emit_inferior_call_event)
12404 (emit_memory_changed_event, emit_register_changed_event): Use
12405 gdbpy_ref.
12406 * python/py-exitedevent.c (create_exited_event_object)
12407 (emit_exited_event): Use gdbpy_ref.
12408 * python/py-event.h (evpy_emit_event): Remove
12409 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
12410 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
12411 * python/py-continueevent.c (emit_continue_event): Use
12412 gdbpy_ref.
12413 * python/py-breakpoint.c (gdbpy_breakpoint_created)
12414 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
12415 gdbpy_ref.
12416 * python/py-bpevent.c (create_breakpoint_event_object): Use
12417 gdbpy_ref.
12418
a68ff33e
TT
124192017-01-10 Tom Tromey <tom@tromey.com>
12420
12421 * python/py-ref.h: New file.
12422
7becfd03
SM
124232017-01-10 Simon Marchi <simon.marchi@ericsson.com>
12424
12425 * cli-out.c (cli_ui_out::do_redirect): Change return type to
12426 void.
12427 * cli-out.h (cli_ui_out::do_redirect): Likewise.
12428 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
12429 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
12430 * ui-out.c (ui_out::redirect): Likewise.
12431 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
12432 * cli/cli-logging.c (set_logging_redirect): Update call site of
12433 ui_out::redirect.
12434 (handle_redirections): Likewise.
12435 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
12436 * top.c (execute_command_to_string): Likewise.
12437 * utils.c (do_ui_out_redirect_pop): Likewise.
12438
df294654
SM
124392017-01-10 Simon Marchi <simon.marchi@ericsson.com>
12440
12441 * stack.c (_initialize_stack): Update "frame" command help message.
12442
f5e6296e
IB
124432017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
12444
12445 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
12446
0e2d6fa6
YQ
124472017-01-06 Yao Qi <yao.qi@linaro.org>
12448
12449 * x86-linux-nat.h: Include gdb_proc_service.h.
12450
44d6d3f9
YQ
124512017-01-06 Yao Qi <yao.qi@linaro.org>
12452
12453 * ser-base.h: Include serial.h.
12454
656731fe
YQ
124552017-01-06 Yao Qi <yao.qi@linaro.org>
12456
12457 * ppc-linux-tdep.h: Include ppc-tdep.h.
12458
1ca8f924
YQ
124592017-01-06 Yao Qi <yao.qi@linaro.org>
12460
12461 * nat/amd64-linux-siginfo.h: Include signal.h.
12462
bc3008c4
YQ
124632017-01-06 Yao Qi <yao.qi@linaro.org>
12464
12465 * nat/aarch64-linux-hw-point.h: Include break-common.h.
12466
66c80d03
YQ
124672017-01-06 Yao Qi <yao.qi@linaro.org>
12468
12469 * mi/mi-parse.h: Include mi-cmds.h.
12470
051d2dda
YQ
124712017-01-06 Yao Qi <yao.qi@linaro.org>
12472
12473 * inf-loop.c: Don't include "target.h".
12474 * inf-loop.h: Include it here.
12475
8018d34f
YQ
124762017-01-06 Yao Qi <yao.qi@linaro.org>
12477
12478 * dfp.h: Include "dboulest.h" and "expression.h".
12479
c0b8369c
YQ
124802017-01-06 Yao Qi <yao.qi@linaro.org>
12481
12482 * ax-gdb.h: Include "ax.h".
12483
ad5cba2a
YQ
124842017-01-06 Yao Qi <yao.qi@linaro.org>
12485
12486 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
12487 with nat/gdb_ptrace.h.
12488
1c33cd7f
YQ
124892017-01-05 Yao Qi <yao.qi@linaro.org>
12490
12491 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
12492 new line.
12493 (mips64_fbsd_sigframe_init): Likewise.
12494
c988ac1d
JB
124952017-01-04 John Baldwin <jhb@FreeBSD.org>
12496
12497 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
12498 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
12499
b268007c
JB
125002017-01-04 John Baldwin <jhb@FreeBSD.org>
12501
12502 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
12503 * NEWS: Mention new FreeBSD/mips native configuration.
12504 * config/mips/fbsd.mh: New file.
12505 * configure.host: Add mips*-*-freebsd*.
12506 * mips-fbsd-nat.c: New file.
12507
387360da
JB
125082017-01-04 John Baldwin <jhb@FreeBSD.org>
12509
12510 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
12511 (ALLDEPFILES): Add mips-fbsd-tdep.c.
12512 * NEWS: Mention new FreeBSD/mips target.
12513 * configure.tgt: Add mips*-*-freebsd*.
12514 * mips-fbsd-tdep.c: New file.
12515 * mips-fbsd-tdep.h: New file.
12516
2aaaf250
YQ
125172017-01-04 Yao Qi <yao.qi@linaro.org>
12518
12519 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
12520 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
12521
61baf725
JB
125222017-01-01 Joel Brobecker <brobecker@adacore.com>
12523
6dbb839a 12524 Update copyright year range in all GDB files.
61baf725 12525
c113e7ff 125262017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 12527
c113e7ff 12528 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 12529
c113e7ff 12530For older changes see ChangeLog-2016.
c906108c
SS
12531\f
12532Local Variables:
12533mode: change-log
12534left-margin: 8
12535fill-column: 74
12536version-control: never
57da7796 12537coding: utf-8
c906108c 12538End:
This page took 2.60098 seconds and 4 git commands to generate.