Test attaching to a process that isn't a process group leader
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d1928160
PA
12017-11-06 Pedro Alves <palves@redhat.com>
2
3 * common/common.m4 (GDB_AC_COMMON): No longer check termio.h nor
4 sgtty.h.
5 * config.in, configure: Regenerate.
6
6aa899ce
PA
72017-11-06 Pedro Alves <palves@redhat.com>
8
9 * event-top.c: Check SIGTSTP instead of STOP_SIGNAL thoughout.
10 (async_init_signals): Adjust.
11 (handle_stop_sig): Rename to ...
12 (handle_sigtstp): ... this.
13 (async_stop_sig): Rename to ...
14 (async_sigtstp_handler): ... this, and delete STOP_SIGNAL !=
15 SIGTSTP path.
16 * event-top.h: Move signal.h include to the top. Check SIGTSTP
17 instead of STOP_SIGNAL thoughout.
18 (handle_stop_sig): Rename to ...
19 (handle_sigtstp): ... this.
20 * top.c (command_line_input): Replace STOP_SIGNAL -> SIGTSTP.
21
a94799ac
PA
222017-11-06 Pedro Alves <palves@redhat.com>
23
24 * inflow.c (child_terminal_inferior, child_terminal_ours_1): No
25 longer set flags twice in row.
26
726e1356
PA
272017-11-06 Pedro Alves <palves@redhat.com>
28
29 * Makefile.in (SER_HARDWIRE): Update comment.
30 (HFILES_NO_SRCDIR): Remove gdb_termios.h.
31 * common/gdb_termios.h: Delete file.
32 * common/job-control.c: Include termios.h and unistd.h instead of
33 gdb_termios.h.
34 (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor
35 check.
36 (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS.
37 Remove sgtty code.
38 * configure.ac: No longer check for termio.h and sgtty.h.
39 * configure: Regenerate.
40 * inflow.c: Include termios.h instead of gdb_termios.h. Replace
41 PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout.
42 Replace PROCESS_GROUP_TYPE references with pid_t references
43 throughout.
44 (gdb_getpgrp): Delete.
45 (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp.
46 (child_terminal_inferior): Remove comment. Remove sgtty code.
47 (child_terminal_ours_1): Use tcgetpgrp directly instead of
48 gdb_getpgrp. Use serial_set_tty_state instead aof
49 serial_noflush_set_tty_state. Remove sgtty code.
50 * inflow.h: Include unistd.h instead of gdb_termios.h. Replace
51 PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check.
52 (inferior_process_group): Now returns pid_t.
53 * ser-base.c (ser_base_noflush_set_tty_state): Delete.
54 * ser-base.h (ser_base_noflush_set_tty_state): Delete.
55 * ser-event.c (serial_event_ops): Update.
56 * ser-go32.c (dos_noflush_set_tty_state): Delete.
57 (dos_ops): Update.
58 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update.
59 * ser-pipe.c (pipe_ops): Update.
60 * ser-tcp.c (tcp_ops): Update.
61 * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove
62 HAVE_TERMIOS checks.
63 [HAVE_TERMIO] (struct hardwire_ttystate): Delete.
64 [HAVE_SGTTY] (struct hardwire_ttystate): Delete.
65 (get_tty_state, set_tty_state): Drop termio and sgtty code, and
66 assume termios.
67 (hardwire_noflush_set_tty_state): Delete.
68 (hardwire_print_tty_state, hardwire_drain_output)
69 (hardwire_flush_output, hardwire_flush_input)
70 (hardwire_send_break, hardwire_raw, hardwire_setbaudrate)
71 (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty
72 code, and assume termios.
73 (hardwire_ops): Update.
74 (_initialize_ser_hardwire): Remove HAVE_TERMIOS check.
75 * serial.c (serial_noflush_set_tty_state): Delete.
76 * serial.h (serial_noflush_set_tty_state): Delete.
77 (serial_ops::noflush_set_tty_state): Delete.
78
1cfb73db
UW
792017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
80
81 * Makefile.in (SFILES): Remove doublest.c and dfp.c.
82 (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h.
83 (COMMON_OBS): Remove doublest.o and dfp.o.
84 Do not build target-float.c (instead of doublest.c)
85 with -Wformat-nonliteral.
86
87 * doublest.c: Remove file.
88 * doublest.h: Remove file.
89 * dfp.c: Remove file.
90 * dfp.h: Remove file.
91
92 * target-float.c: Do not include "doublest.h" and "dfp.h".
93 (DOUBLEST): Move here from doublest.h.
94 (enum float_kind): Likewise.
95 (FLOATFORMAT_CHAR_BIT): Likewise.
96 (FLOATFORMAT_LARGEST_BYTES): Likewise.
97 (floatformat_totalsize_bytes): Move here from doublest.c. Make static.
98 (floatformat_precision): Likewise.
99 (floatformat_normalize_byteorder, get_field, put_field): Likewise.
100 (floatformat_is_negative, floatformat_classify, floatformat_mantissa):
101 Likewise.
102 (host_float_format, host_double_format, host_long_double_format):
103 Likewise.
104 (floatformat_to_string, floatformat_from_string): Likewise.
105 (floatformat_to_doublest): Likewise. Also, inline the original
106 convert_floatformat_to_doublest.
107 (floatformat_from_doublest): Likewise. Also, inline the original
108 convert_floatformat_from_doublest.
109
110 Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h".
111 (MAX_DECIMAL_STRING): Move here from dfp.c.
112 (match_endianness): Likewise.
113 (set_decnumber_context, decimal_check_errors): Likewise.
114 (decimal_from_number, decimal_to_number): Likewise.
115 (decimal_to_string, decimal_from_string): Likewise. Make static.
116 (decimal_from_longest, decimal_from_ulongest): Likewise.
117 (decimal_to_longest): Likewise.
118 (decimal_binop, decimal_is_zero, decimal_compare): Likewise.
119 (decimal_convert): Likewise.
120
b07e9c46
UW
1212017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
122
123 * doublest.c: Do not include "gdbtypes.h".
124 (extract_typed_floating): Remove.
125 (store_typed_floating): Remove.
126 (convert_typed_floating): Remove.
127 * doublest.h (struct type): Remove.
128 (DOUBLEST_PRINT_FORMAT): Remove.
129 (DOUBLEST_SCAN_FORMAT): Remove.
130 (extract_typed_floating): Remove.
131 (store_typed_floating): Remove.
132 (convert_typed_floating): Remove.
133
134 * dfp.c (decimal_from_doublest): Remove.
135 (decimal_to_doublest): Remove.
136 * dfp.h: Do not include "doublest.h".
137 (decimal_from_doublest): Remove.
138 (decimal_to_doublest): Remove.
139
140 * value.c: Do not include "doublest.h" and "dfp.h".
141 (value_as_double): Remove.
142 (unpack_double): Remove.
143 (value_from_double): Remove.
144 (value_from_decfloat): Remove.
145 * value.h: Do not include "doublest.h".
146 (value_as_double): Remove.
147 (unpack_double): Remove.
148 (value_from_double): Remove.
149 (value_from_decfloat): Remove.
150
3b2ca824
UW
1512017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
152
153 * i386-tdep.c: Include "target-float.h". Do not include "doublest.h".
154 (i386_extract_return_value): Use target_float_convert.
155 (i386_store_return_value): Likewise.
156 * i387-tdep.c (i387_register_to_value): Use target_float_convert.
157 (i387_value_to_register): Likewise.
158 * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h".
159 (ia64_register_to_value): Use target_float_convert.
160 (ia64_value_to_register): Likewise.
161 (ia64_extract_return_value): Likewise.
162 (ia64_store_return_value): Likewise.
163 (ia64_push_dummy_call): Likewise.
164 * m68k-tdep.c: Include "target-float.h".
165 (m68k_register_to_value): Use target_float_convert.
166 (m68k_value_to_register): Likewise.
167 (m68k_svr4_extract_return_value): Likewise.
168 (m68k_svr4_store_return_value): Likewise.
169 * ppc-sysv-tdep.c: Include "target-float.h".
170 (ppc_sysv_abi_push_dummy_call): Use target_float_convert.
171 (do_ppc_sysv_return_value): Likewise.
172 (ppc64_sysv_abi_push_freg): Likewise.
173 (ppc64_sysv_abi_return_value_base): Likewise.
174 * rs6000-aix-tdep.c: Include "target-float.h".
175 (rs6000_push_dummy_call): Use target_float_convert.
176 (rs6000_return_value): Likewise.
177 * rs6000-lynx178-tdep.c: Include "target-float.h".
178 (rs6000_lynx178_push_dummy_call): Use target_float_convert.
179 (rs6000_lynx178_return_value): Likewise.
180 * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h".
181 (rs6000_register_to_value): Use target_float_convert.
182 (rs6000_value_to_register): Likewise.
183 * arm-tdep.c: Include "target-float.h". Do not include "doublest.h".
184 (arm_extract_return_value): Use target_float_convert.
185 (arm_store_return_value): Likewise.
186 * sh-tdep.c: Include "target-float.h". Do not include "doublest.h".
187 (sh_register_convert_to_virtual): Use target_float_convert.
188 (sh_register_convert_to_raw): Likewise.
189 * sh64-tdep.c: Include "target-float.h".
190 (sh64_extract_return_value): Use target_float_convert.
191 (sh64_register_convert_to_virtual): Likewise.
192 (sh64_register_convert_to_raw): Likewise. Fix argument types.
193
14ad9311
UW
1942017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
195
196 * target-float.c (floatformat_to_host_double): New function.
197 (floatformat_from_host_double): Likewise.
198 (target_float_to_host_double): Likewise.
199 (target_float_from_host_double): Likewise.
200 * target-float.h (target_float_to_host_double): Add prototype.
201 (target_float_from_host_double): Likewise.
202
203 * guile/scm-value.c: Include "target-float.h".
204 (gdbscm_value_to_real): Use target_float_to_host_double.
205 Handle integer source values via value_as_long.
206 * guile/scm-math.c: Include "target-float.h". Do not include
207 "doublest.h", "dfp.h", and "expression.h".
208 (vlscm_convert_typed_number): Use target_float_from_host_double.
209 (vlscm_convert_number): Likewise.
210
211 * python/py-value.c (valpy_float): Use target_float_to_host_double.
212 (convert_value_from_python): Use target_float_from_host_double.
213
50eff16b
UW
2142017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
215
216 * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic.
217 (cast_from_fixed): Likewise.
218 (ada_scaling_type): New function.
219 (ada_delta): Return value instead of DOUBLEST. Perform target
220 arithmetic instead of host arithmetic.
221 (scaling_factor): Rename to ...
222 (ada_scaling_factor) ... this. Make non-static. Return value instead
223 of DOUBLEST. Perform target arithmetic instead of host arithmetic.
224 (ada_fixed_to_float): Remove.
225 (ada_float_to_fixed): Remove.
226 * ada-lang.h (ada_fixed_to_float): Remove.
227 (ada_float_to_fixed): Remove.
228 (ada_delta): Return value instead of DOUBLEST.
229 (ada_scaling_factor): Add prototype.
230
231 * ada-typeprint.c: Include "target-float.h".
232 (print_fixed_point_type): Perform target arithmetic instead of
233 host arithmetic.
234 * ada-valprint.c: Include "target-float.h".
235 (ada_val_print_num): Perform target arithmetic instead of
236 host arithmetic for fixed-point types.
237
66c02b9e
UW
2382017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
239
240 * target-float.c: Include <math.h>.
241 (floatformat_binop): New function.
242 (floatformat_compare): Likewise.
243 (target_float_binop): Likewise.
244 (target_float_compare): Likewise.
245 * target-float.h: Include "expression.h".
246 (target_float_binop): Add prototype.
247 (target_float_compare): Likewise.
248
249 * valarith.c: Do not include "doublest.h" and "dfp.h".
250 Include "common/byte-vector.h".
251 (value_args_as_decimal): Remove, replace by ...
252 (value_args_as_target_float): ... this function. Handle both
253 binary and decimal target floating-point formats.
254 (scalar_binop): Handle both binary and decimal FP using
255 value_args_as_target_float and target_float_binop.
256 (value_equal): Handle both binary and decimal FP using
257 value_args_as_target_float and target_float_compare.
258 (value_less): Likewise.
259 (value_pos): Handle all scalar types as simple copy.
260 (value_neg): Handle all scalar types via BINOP_SUB from 0.
261 * dfp.c (decimal_binop): Throw error instead of internal_error
262 when called with an unsupported operation code.
263
f69fdf9b
UW
2642017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
265
266 * target-float.c (target_float_to_string): New function.
267 (target_float_from_string): New function.
268 * target-float.h (target_float_to_string): Add prototype.
269 (target_float_from_string): Add prototype.
270
271 * valprint.c: Include "target-float.h". Do not include
272 "doublest.h" and "dfp.h".
273 (print_floating): Use target_float_to_string.
274 * printcmd.c: Include "target-float.h". Do not include "dfp.h".
275 (printf_floating): Use target_float_to_string.
276 * i387-tdep.c: Include "target-float.h". Do not include "doublest.h".
277 (print_i387_value): Use target_float_to_string.
278 * mips-tdep.c: Include "target-float.h".
279 (mips_print_fp_register): Use target_float_to_string.
280 * sh64-tdep.c: Include "target-float.h".
281 (sh64_do_fp_register): Use target_float_to_string.
282
283 * parse.c: Include "target-float.h". Do not include
284 "doublest.h" and "dfp.h".
285 (parse_float): Use target_float_from_string.
286 * stabsread.c: Include "target-float.h". Do not include "doublest.h".
287 (define_symbol): Use target_float_from_string.
288 * gdbarch-selftests.c: Include "target-float.h".
289 (register_to_value_test): Use target_float_from_string.
290
70100014
UW
2912017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
292
293 * Makefile.c (SFILES): Add target-float.c.
294 (HFILES_NO_SRCDIR): Add target-float.h.
295 (COMMON_OBS): Add target-float.o.
296 * target-float.h: New file.
297 * target-float.c: New file.
298
299 * doublest.c (floatformat_classify): Fix detection of float_zero.
300
301 * gdbtypes.c (is_floating_type): New function.
302 * gdbtypes.h (is_floating_type): Add prototype.
303
304 * value.c: Do not include "floatformat.h".
305 (unpack_double): Use target_float_is_valid.
306 (is_floating_value): New function.
307 * value.h (is_floating_value): Add prototype-
308
309 * valarith.c: Include "target-float.h".
310 (value_logical_not): Use target_float_is_zero.
311
312 * python/py-value.c: Include "target-float.h".
313 (valpy_nonzero): Use target_float_is_zero.
314
ab4b1c46
TT
3152017-11-04 Tom Tromey <tom@tromey.com>
316
317 * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
318
454dafbd
TT
3192017-11-04 Tom Tromey <tom@tromey.com>
320
321 * breakpoint.c (set_momentary_breakpoint): Return
322 breakpoint_up.
323 (until_break_command): Update.
324 (new_until_break_fsm): Change argument types to
325 breakpoint_up.
326 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
327 (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
328 Remove.
329 * infcmd.c (finish_forward): Update.
330 * breakpoint.h (set_momentary_breakpoint)
331 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
332 (make_cleanup_delete_breakpoint): Remove.
333 (struct breakpoint_deleter): New.
334 (breakpoint_up): New typedef.
335 * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
336 (insert_exception_resume_breakpoint): Update.
337 (insert_exception_resume_from_probe): Update.
338 (insert_longjmp_resume_breakpoint): Update.
339 * arm-linux-tdep.c (arm_linux_copy_svc): Update.
340 * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
341 * infcall.c (call_function_by_hand_dummy): Update
342
331b71e5
TT
3432017-11-04 Tom Tromey <tom@tromey.com>
344
345 * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
346
9f584b37
TT
3472017-11-04 Tom Tromey <tom@tromey.com>
348
349 * linux-tdep.c (linux_core_info_proc_mappings): Use
350 gdb::def_vector.
351 (linux_get_siginfo_data): Return gdb::byte_vector. Remove
352 "size" argument.
353 (linux_corefile_thread): Update.
354 (linux_make_corefile_notes): Remove unused variable.
355
779bc38e
TT
3562017-11-04 Tom Tromey <tom@tromey.com>
357
358 * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
359 gdb::byte_vector.
360
ed2b3126
TT
3612017-11-04 Tom Tromey <tom@tromey.com>
362
363 * objfiles.c (do_free_objfile_cleanup): Remove.
364 * compile/compile-object-load.c (compile_object_load): Update.
365 * objfiles.h (make_cleanup_free_objfile): Remove.
366
7f6743fd
TT
3672017-11-04 Tom Tromey <tom@tromey.com>
368
369 * sparc64-tdep.c (do_examine): Use gdb::def_vector.
370 (adi_read_versions): Change "tags" to "gdb_byte *".
371 (adi_print_versions): Likewise.
372
c80049d3
TT
3732017-11-04 Tom Tromey <tom@tromey.com>
374
375 * breakpoint.c
376 (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
377 from start_rbreak_breakpoints.
378 (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
379 * breakpoint.h (class scoped_rbreak_breakpoints): New.
380 (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
381 * symtab.c (do_end_rbreak_breakpoints): Remove.
382 (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
383
167b0be1
TT
3842017-11-04 Tom Tromey <tom@tromey.com>
385
386 * cp-namespace.c (reset_directive_searched): Remove.
387 (cp_lookup_symbol_via_imports): Use scoped_restore.
388 * cp-support.c (reset_directive_searched): Remove.
389 (make_symbol_overload_list_using): Use scoped_restore.
390 * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
391 (reset_directive_searched): Remove.
392
5eae7aea
TT
3932017-11-04 Tom Tromey <tom@tromey.com>
394
395 * symfile.c (find_separate_debug_file_by_debuglink): Use
396 unique_xmalloc_ptr.
397
c6bcad5f
TT
3982017-11-04 Tom Tromey <tom@tromey.com>
399
400 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
401 type of "info".
402 (compute_stack_depth): Likewise.
403 (do_compile_dwarf_expr_to_c): Use std::vector.
404
20dcd8ca
TT
4052017-11-04 Tom Tromey <tom@tromey.com>
406
407 * compile/compile-object-load.c (link_callbacks_einfo): Use
408 std::string.
409
33c7c59d
TT
4102017-11-04 Tom Tromey <tom@tromey.com>
411
412 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
413 Use scoped_free_pendings.
414 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
415 scoped_free_pendings.
416 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
417 (xcoff_initial_scan): Likewise.
418 * buildsym.c (reset_symtab_globals): Update comment.
419 (scoped_free_pendings): Rename from really_free_pendings.
420 (prepare_for_building): Update comment.
421 (buildsym_init): Likewise.
422 * buildsym.h (class scoped_free_pendings): New class.
423 (really_free_pendings): Don't declare.
424
67fa57cf
UW
4252017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
426
427 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
428 output when converting a zero value to a special byteorder format.
429
f26ae15b
YQ
4302017-11-02 Yao Qi <yao.qi@linaro.org>
431
432 * frame.c (do_frame_register_read): Remove aspace.
433 * jit.c (jit_frame_sniffer): Likwise.
434 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
435 * regcache.c (regcache::regcache): Pass nullptr.
436 (regcache_print): Caller updated.
437 * regcache.h (regcache::regcache): Remove one constructor
438 parameter aspace.
439
6c6e9412
YQ
4402017-11-02 Yao Qi <yao.qi@linaro.org>
441
442 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
443
8b86c959
YQ
4442017-11-02 Yao Qi <yao.qi@linaro.org>
445
446 * breakpoint.c (insert_single_step_breakpoints): Update.
447 * frame.c (struct frame_info) <aspace>: Add const.
448 (frame_save_as_regcache): Add const.
449 (get_frame_address_space): Return const address_space *.
450 * frame.h (get_frame_address_space): Update declaration.
451 * infrun.c (struct step_over_info) <aspace>: Add const.
452 (set_step_over_info): Make aspace const.
453 (displaced_step_prepare_throw): Change variable const.
454 (resume): Likewise.
455 (proceed): Likewise.
456 (adjust_pc_after_break): Likewise.
457 (save_waitstatus): Likewise.
458 (handle_signal_stop): Likewise.
459 (keep_going_pass_signal): Likewise.
460 * jit.c (jit_frame_sniffer): Add const.
461 * mips-tdep.c (mips_single_step_through_delay): Likewise.
462 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
463 * record-full.c (record_full_wait_1): Likewise.
464 * regcache.c (regcache::regcache): Change parameter to const.
465 * regcache.h (regcache::regcache): Likewise.
466 (regcache::aspace): Return const address_space *.
467 (regcache) <m_aspace>: Add const.
468
a01bda52
YQ
4692017-11-02 Yao Qi <yao.qi@linaro.org>
470
471 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
472 * frame.c (create_sentinel_frame): Likewise.
473 * infrun.c (displaced_step_prepare_throw): Likewise.
474 (resume): Likewise.
475 (thread_still_needs_step_over_bp): Likewise.
476 (proceed): Likewise.
477 (do_target_wait): Likewise.
478 (adjust_pc_after_break): Likewise.
479 (handle_syscall_event): Likewise.
480 (save_waitstatus): Likewise.
481 (handle_inferior_event_1): Likewise.
482 (handle_signal_stop): Likewise.
483 (keep_going_pass_signal): Likewise.
484 * linux-nat.c (status_callback): Likewise.
485 (save_stop_reason): Likewise.
486 (resume_stopped_resumed_lwps): Likewise.
487 * record-full.c (record_full_exec_insn): Likewise.
488 (record_full_wait_1): Likewise.
489 * regcache.c (get_regcache_aspace): Remove.
490 * regcache.h (get_regcache_aspace): Remove.
491
d999647b
YQ
4922017-11-02 Yao Qi <yao.qi@linaro.org>
493
494 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
495 (init_regcache_descr): Use gdbarch_num_regs.
496 (regcache::regcache): Likewise.
497 (regcache::get_register_status): Likewise.
498 (regcache::assert_raw_regnum): Likewise.
499 (regcache::cooked_read): Likewise.
500 (regcache::cooked_read_value): Likewise.
501 (regcache::cooked_write): Likewise.
502 (regcache::dump): Likewise.
503 (regcache::num_raw_registers): New method.
504 * regcache.h (class regcache) <num_raw_registers>: New.
505
4e888c28
YQ
5062017-11-02 Yao Qi <yao.qi@linaro.org>
507
508 * regcache.c (regcache::assert_regnum): New method.
509 (regcache::invalidate): Call assert_regnum.
510 (regcache::raw_update): Likewise.
511 (regcache::raw_write): Likewise.
512 (regcache::raw_read_part): Likewise.
513 (regcache::raw_write_part): Likewise.
514 (regcache::raw_supply): Likewise.
515 (regcache::raw_supply_integer): Likewise.
516 (regcache::raw_supply_zeroed): Likewise.
517 (regcache::raw_collect): Likewise.
518 (regcache::raw_collect_integer): Likewise.
519 * regcache.h (regcache::assert_regnum): Declare.
520
2e1b49b3
YQ
5212017-11-02 Yao Qi <yao.qi@linaro.org>
522
523 * regcache.c (regcache::dump): Remove code.
524
6c5218df
YQ
5252017-11-02 Yao Qi <yao.qi@linaro.org>
526
527 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
528 Remove.
529 <sizeof_cooked_register_status>: Remove.
530 (init_regcache_descr): Update.
531 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
532 (regcache::save): Likewise.
533 (regcache::dump): Likewise.
534
dcc31d28
JB
5352017-11-01 James Bowman <james.bowman@ftdichip.com>
536
537 * ft32-tdep.c (ft32_fetch_instruction): New function.
538 (ft32_analyze_prologue): Use ft32_fetch_instruction().
539
3a87ae65
SM
5402017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
541
542 * cli/cli-script.c (execute_control_command): Rename to ...
543 (execute_control_command_1): ... this.
544 (execute_control_command): New function.
545
09b847f3
SM
5462017-10-31 Simon Marchi <simon.marchi@ericsson.com>
547
548 * tracepoint.c (tfind_command): Remove const_cast.
549
f871c485
MG
5502017-10-30 Mike Gulick <mgulick@mathworks.com>
551
552 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
553
b020ff80
SM
5542017-10-30 Simon Marchi <simon.marchi@ericsson.com>
555
556 * common/common-utils.h (in_inclusive_range): New function.
557 * arm-tdep.c (arm_record_extension_space): Use
558 in_inclusive_range.
559 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
560 * cris-tdep.c (cris_spec_reg_applicable): Use
561 in_inclusive_range.
562
1b81856f
PA
5632017-10-30 Pedro Alves <palves@redhat.com>
564 Simon Marchi <simon.marchi@ericsson.com>
565
566 * remote.c (remote_set_syscall_catchpoint): Build a std::string
567 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
568
31b833b3
PA
5692017-10-30 Pedro Alves <palves@redhat.com>
570
571 * common/common-utils.c (string_appendf, string_vappendf): New
572 functions.
573 * common/common-utils.h (string_appendf, string_vappendf): New
574 declarations.
575 * unittests/common-utils-selftests.c (string_appendf_func)
576 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
577 (string_vappendf_tests): New functions.
578 (_initialize_common_utils_selftests): Register "string_appendf" and
579 "string_vappendf tests".
580
4a250334
PA
5812017-10-30 Pedro Alves <palves@redhat.com>
582
583 * unittests/common-utils-selftests.c (format_func): New typedef.
584 (string_printf_tests, string_vprintf_tests): Tests factored out
585 and merged to ...
586 (test_format_func): ... this new function.
587 (string_printf_tests, string_vprintf_tests): Reimplement on top of
588 test_format_func.
589
16c5c17e
SM
5902017-10-29 Simon Marchi <simon.marchi@ericsson.com>
591
592 * darwin-nat.c: Remove include of gdb.h.
593
7ca51576
SM
5942017-10-29 Simon Marchi <simon.marchi@ericsson.com>
595
596 * xtensa-xtregs.c: Fix formatting issues.
597
c1342859
SM
5982017-10-29 Simon Marchi <simon.marchi@ericsson.com>
599
600 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
601
484d8d36
MD
6022017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
603
604 PR python/21213
605 * python/py-infthread.c (thpy_get_inferior): Increment reference
606 of inferior before returning it.
607
b5540b5f
SM
6082017-10-27 Simon Marchi <simon.marchi@ericsson.com>
609
610 * unittests/common-utils-selftests.c (format): Add
611 ATTRIBUTE_PRINTF.
612
5a9dcda1
SM
6132017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
614
615 * xml-syscall.c (struct syscall_desc): Add constructor.
616 <name>: Change type to std::string.
617 (syscall_desc_up): New typedef.
618 (syscall_desc_p): Remove typeder.
619 (DEF_VEC_P(syscall_desc_p)): Remove.
620 (struct syscall_group_desc): Add constructor.
621 <name>: Change type to std::string.
622 <syscalls>: Change type to std::vector.
623 (syscall_group_desc_up): New typedef.
624 (syscall_group_desc_p): Remove typedef.
625 (DEF_VEC_P(syscall_group_desc_p)): Remove.
626 (struct syscalls_info) <syscalls>: Change type to std::vector of
627 unique_ptr.
628 <groups>: Likewise.
629 <my_gdb_datadir>: Change type to std::string.
630 (syscalls_info_up): New typedef.
631 (allocate_syscalls_info): Remove.
632 (syscalls_info_free_syscalls_desc): Remove.
633 (syscalls_info_free_syscall_group_desc): Remove.
634 (free_syscalls_info): Remove.
635 (make_cleanup_free_syscalls_info): Remove.
636 (syscall_group_create_syscall_group_desc): Adjust.
637 (syscall_group_add_syscall): Adjust.
638 (syscall_create_syscall_desc): Adjust.
639 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
640 (init_syscalls_info): Adjust.
641 (syscall_group_get_group_by_name): Adjust.
642 (xml_get_syscall_number): Adjust.
643 (xml_get_syscall_name): Adjust.
644 (xml_list_of_syscalls): Adjust.
645 (xml_list_syscalls_by_group): Adjust.
646 (xml_list_of_groups): Adjust.
647
45461e0d
SM
6482017-10-27 Simon Marchi <simon.marchi@ericsson.com>
649
650 * probe.h: Don't include gdb_vecs.h.
651 (DEF_VEC_P (probe_p)): Remove.
652 (find_probes_in_objfile): Return an std::vector.
653 * probe.c (find_probes_in_objfile): Likewise.
654 * breakpoint.c (breakpoint_objfile_data)
655 <longjmp_probes>: Change type to std::vector.
656 <exception_probes>: Likewise.
657 (free_breakpoint_probes): Don't manually free vectors.
658 (create_longjmp_master_breakpoint): Adjust.
659 (create_exception_master_breakpoint): Adjust.
660 * solib-svr4.c (svr4_create_probe_breakpoints): Change
661 parameter type, adjust.
662 (svr4_create_solib_event_breakpoints): Adjust.
663
43dce439
SM
6642017-10-27 Simon Marchi <simon.marchi@ericsson.com>
665
666 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
667 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
668 with new.
669 (free_breakpoint_probes): Rename to ...
670 (free_breakpoint_objfile_data): ... this, and call delete on
671 bp_objfile_data..
672
6a1b9516
SM
6732017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
674
675 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
676 (loaded_script_ptr): Remove typedef.
677 (DEF_VEC_P (loaded_script_ptr)): Remove.
678 (struct collect_matching_scripts_data): Add constructor.
679 <scripts_p>: Change type to (pointer to) std::vector.
680 (collect_matching_scripts_data): Adjust.
681 (sort_scripts_by_name): Make suitable for std::sort.
682 (print_scripts): Don't sort vector, adjust to std::vector.
683 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
684
593e3209
SM
6852017-10-27 Simon Marchi <simon.marchi@ericsson.com>
686
687 * symfile.c (filename_language): Make struct, not typedef. Add
688 constructor.
689 <ext>: Change type to std::string.
690 (DEF_VEC_O (filename_language)): Remove.
691 (filename_language_table): Change type to std::vector.
692 (add_filename_language): Adjust.
693 (set_ext_lang_command): Adjust.
694 (info_ext_lang_command): Adjust.
695 (deduce_language_from_filename): Adjust.
696 (class scoped_restore_filename_language_table): Remove.
697 (test_filename_language): Use scoped_restore.
698 (test_set_ext_lang_command): Use scoped_restore, adjust to
699 std::vector change.
700
32fa66eb
SM
7012017-10-27 Simon Marchi <simon.marchi@ericsson.com>
702
703 * symfile.c: Include selftest.h.
704 (class scoped_restore_filename_language_table): New.
705 (test_filename_language): New test.
706 (test_set_ext_lang_command): New test.
707 (_initialize_symfile): Register tests.
708
4a27f119
KS
7092017-10-27 Keith Seitz <keiths@redhat.com>
710
711 * breakpoint.c (print_breakpoint_location): Use the symbol saved
712 in the bp_location, falling back to find_pc_sect_function when
713 needed.
714 (add_location_to_breakpoint): Save sal->symbol.
715 * breakpoint.h (struct bp_location) <symbol>: New field.
716 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
717 * symtab.h (struct symtab_and_line) <symbol>: New field.
718
a43f3893
PF
7192017-10-26 Patrick Frants <osscontribute@gmail.com>
720
7453e6b2 721 PR gdb/13669
a43f3893
PF
722 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
723 to rewind obstack.
724
23cc4e1b
PA
7252017-10-26 Pedro Alves <palves@redhat.com>
726
727 * remote.c (remote_async_terminal_ours_p): Delete.
728 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
729 Remove references to 'remote_async_terminal_ours_p'.
730
6abc18bb
YQ
7312017-10-26 Yao Qi <yao.qi@linaro.org>
732
733 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
734
bd522513
YQ
7352017-10-26 Yao Qi <yao.qi@linaro.org>
736
737 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
738 aspace const.
739 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
740 Likewise.
741 * breakpoint.c (bpstat_check_location): Remove cast.
742 (breakpoint_hit_catch_fork): Make aspce const.
743 (breakpoint_hit_catch_solib): Likewise.
744 (breakpoint_hit_catch_exec): Likewise.
745 (breakpoint_hit_ranged_breakpoint): Likewise.
746 (breakpoint_hit_watchpoint): Likewise.
747 (base_breakpoint_breakpoint_hit): Likewise.
748 (bkpt_breakpoint_hit): Likewise.
749 (dprintf_breakpoint_hit): Likewise.
750 (tracepoint_breakpoint_hit): Likewise.
751 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
752
accd0bcd
YQ
7532017-10-26 Yao Qi <yao.qi@linaro.org>
754
755 * breakpoint.c (breakpoint_location_address_match): Change
756 "struct address_space *" to "const address_space".
757 (breakpoint_location_address_range_overlap): Likewise.
758 (breakpoint_here_p): Likewise.
759 (breakpoint_in_range_p): Likewise.
760 (moribund_breakpoint_here_p): Likewise.
761 (bp_location_inserted_here_p): Likewise.
762 (software_breakpoint_inserted_here_p): Likewise.
763 (hardware_breakpoint_inserted_here_p): Likewise.
764 (hardware_watchpoint_inserted_in_range): Likewise.
765 (bpstat_check_location): Likewise.
766 (bpstat_stop_status): Likewise.
767 (breakpoint_address_match): Likewise.
768 (breakpoint_address_match_range): Likewise.
769 (breakpoint_location_address_match): Likewise.
770 (breakpoint_location_address_range_overlap): Likewise.
771 (insert_single_step_breakpoint): Likewise.
772 (breakpoint_has_location_inserted_here): Likewise.
773 (single_step_breakpoint_inserted_here_p): Likewise.
774 (pc_at_non_inline_function): Likewise.
775 * breakpoint.h (bpstat_stop_status): Update declaration.
776 (breakpoint_here_p): Likewise.
777 (breakpoint_in_range_p): Likewise.
778 (moribund_breakpoint_here_p): Likewise.
779 (breakpoint_inserted_here_p): Likewise.
780 (software_breakpoint_inserted_here_p): Likewise.
781 (hardware_breakpoint_inserted_here_p): Likewise.
782 (breakpoint_has_location_inserted_here): Likewise.
783 (single_step_breakpoint_inserted_here_p): Likewise.
784 (hardware_watchpoint_inserted_in_range): Likewise.
785 (breakpoint_address_match): Likewise.
786 (insert_single_step_breakpoint): Likewise.
787 (pc_at_non_inline_function): Likewise.
788 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
789 * record.c (record_check_stopped_by_breakpoint): Likewise.
790 * record.h (record_check_stopped_by_breakpoint): Likewise.
791 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
792
ac7936df
YQ
7932017-10-25 Yao Qi <yao.qi@linaro.org>
794
795 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
796 regcache->arch () instead get_regcache_arch.
797 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
798 Likewise.
799 (aarch64_fbsd_store_inferior_registers): Likewise.
800 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
801 (store_gregs_to_thread): Likewise.
802 (fetch_fpregs_from_thread): Likewise.
803 (store_fpregs_to_thread): Likewise.
804 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
805 (aarch64_store_return_value): Likewise.
806 (aarch64_software_single_step): Likewise.
807 * aix-thread.c (aix_thread_wait): Likewise.
808 (supply_reg32): Likewise.
809 (supply_sprs64): Likewise.
810 (supply_sprs32): Likewise.
811 (fill_gprs64): Likewise.
812 (fill_gprs32): Likewise.
813 (fill_sprs64): Likewise.
814 (fill_sprs32): Likewise.
815 (store_regs_user_thread): Likewise.
816 (store_regs_kernel_thread): Likewise.
817 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
818 (alphabsd_store_inferior_registers): Likewise.
819 * alpha-tdep.c (alpha_extract_return_value): Likewise.
820 (alpha_store_return_value): Likewise.
821 (alpha_deal_with_atomic_sequence): Likewise.
822 (alpha_next_pc): Likewise.
823 (alpha_software_single_step): Likewise.
824 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
825 (amd64bsd_store_inferior_registers): Likewise.
826 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
827 Likewise.
828 (amd64_linux_store_inferior_registers): Likewise.
829 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
830 (amd64_collect_native_gregset): Likewise.
831 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
832 (amd64obsd_collect_uthread): Likewise.
833 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
834 (amd64_collect_fpregset): Likewise.
835 (amd64_supply_fxsave): Likewise.
836 (amd64_supply_xsave): Likewise.
837 (amd64_collect_fxsave): Likewise.
838 (amd64_collect_xsave): Likewise.
839 * arc-tdep.c (arc_write_pc): Likewise.
840 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
841 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
842 (arm_fbsd_store_inferior_registers): Likewise.
843 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
844 (store_vfp_regs): Likewise.
845 (arm_linux_fetch_inferior_registers): Likewise.
846 (arm_linux_store_inferior_registers): Likewise.
847 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
848 (arm_linux_sigreturn_next_pc): Likewise.
849 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
850 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
851 (fetch_register): Likewise.
852 (store_register): Likewise.
853 * arm-tdep.c (arm_is_thumb): Likewise.
854 (displaced_in_arm_mode): Likewise.
855 (bx_write_pc): Likewise.
856 (arm_get_next_pcs_addr_bits_remove): Likewise.
857 (arm_software_single_step): Likewise.
858 (arm_extract_return_value): Likewise.
859 (arm_store_return_value): Likewise.
860 (arm_write_pc): Likewise.
861 * bfin-tdep.c (bfin_extract_return_value): Likewise.
862 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
863 (bsd_uthread_store_registers): Likewise.
864 * core-regset.c (fetch_core_registers): Likewise.
865 * corelow.c (get_core_registers): Likewise.
866 * cris-tdep.c (cris_store_return_value): Likewise.
867 (cris_extract_return_value): Likewise.
868 (find_step_target): Likewise.
869 (find_step_target): Likewise.
870 (cris_software_single_step): Likewise.
871 * ctf.c (ctf_fetch_registers): Likewise.
872 * darwin-nat.c (cancel_breakpoint): Likewise.
873 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
874 * frv-tdep.c (frv_extract_return_value): Likewise.
875 * ft32-tdep.c (ft32_store_return_value): Likewise.
876 (ft32_extract_return_value): Likewise.
877 * go32-nat.c (fetch_register): Likewise.
878 (go32_fetch_registers): Likewise.
879 (go32_store_registers): Likewise.
880 (store_register): Likewise.
881 * h8300-tdep.c (h8300_extract_return_value): Likewise.
882 (h8300_store_return_value): Likewise.
883 * hppa-linux-nat.c (fetch_register): Likewise.
884 (store_register): Likewise.
885 (hppa_linux_fetch_inferior_registers): Likewise.
886 (hppa_linux_store_inferior_registers): Likewise.
887 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
888 (i386_darwin_store_inferior_registers): Likewise.
889 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
890 (gnu_store_registers): Likewise.
891 * i386-linux-nat.c (fetch_register): Likewise.
892 (store_register): Likewise.
893 (supply_gregset): Likewise.
894 (fill_gregset): Likewise.
895 (i386_linux_fetch_inferior_registers): Likewise.
896 (i386_linux_store_inferior_registers): Likewise.
897 (i386_linux_resume): Likewise.
898 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
899 Likewise.
900 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
901 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
902 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
903 (i386obsd_collect_uthread): Likewise.
904 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
905 (i386_supply_gregset): Likewise.
906 (i386_collect_gregset): Likewise.
907 (i386_supply_fpregset): Likewise.
908 (i386_collect_fpregset): Likewise.
909 (i386_mpx_bd_base): Likewise.
910 * i386-v4-nat.c (supply_fpregset): Likewise.
911 (fill_fpregset): Likewise.
912 * i387-tdep.c (i387_supply_fsave): Likewise.
913 (i387_collect_fsave): Likewise.
914 (i387_supply_fxsave): Likewise.
915 (i387_collect_fxsave): Likewise.
916 (i387_supply_xsave): Likewise.
917 (i387_collect_xsave): Likewise.
918 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
919 (ia64_linux_store_registers): Likewise.
920 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
921 (ia64_extract_return_value): Likewise.
922 (ia64_store_return_value): Likewise.
923 (find_func_descr): Likewise.
924 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
925 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
926 (inf_ptrace_store_registers): Likewise.
927 * infrun.c (use_displaced_stepping): Likewise.
928 (displaced_step_prepare_throw): Likewise.
929 (resume): Likewise.
930 (proceed): Likewise.
931 (do_target_wait): Likewise.
932 (adjust_pc_after_break): Likewise.
933 (handle_inferior_event_1): Likewise.
934 (handle_signal_stop): Likewise.
935 (save_infcall_suspend_state): Likewise.
936 (restore_infcall_suspend_state): Likewise.
937 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
938 * jit.c (jit_frame_prev_register): Likewise.
939 * linux-nat.c (save_stop_reason): Likewise.
940 (linux_nat_wait_1): Likewise.
941 (resume_stopped_resumed_lwps): Likewise.
942 * linux-record.c (record_linux_sockaddr): Likewise.
943 (record_linux_msghdr): Likewise.
944 (record_linux_system_call): Likewise.
945 * linux-tdep.c (linux_collect_thread_registers): Likewise.
946 * lm32-tdep.c (lm32_extract_return_value): Likewise.
947 (lm32_store_return_value): Likewise.
948 * m32c-tdep.c (m32c_read_flg): Likewise.
949 (m32c_pseudo_register_read): Likewise.
950 (m32c_pseudo_register_write): Likewise.
951 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
952 (m32r_linux_collect_gregset): Likewise.
953 * m32r-tdep.c (m32r_store_return_value): Likewise.
954 (m32r_extract_return_value): Likewise.
955 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
956 (m68kbsd_collect_fpregset): Likewise.
957 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
958 * m68k-linux-nat.c (fetch_register): Likewise.
959 (old_fetch_inferior_registers): Likewise.
960 (old_store_inferior_registers): Likewise.
961 (store_regs): Likewise.
962 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
963 (m68k_svr4_store_return_value): Likewise.
964 * m88k-tdep.c (m88k_store_arguments): Likewise.
965 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
966 (mi_cmd_data_write_register_values): Likewise.
967 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
968 (mips_fbsd_store_inferior_registers): Likewise.
969 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
970 (mips_fbsd_supply_gregs): Likewise.
971 (mips_fbsd_collect_fpregs): Likewise.
972 (mips_fbsd_collect_gregs): Likewise.
973 (mips_fbsd_supply_fpregset): Likewise.
974 (mips_fbsd_collect_fpregset): Likewise.
975 (mips_fbsd_supply_gregset): Likewise.
976 (mips_fbsd_collect_gregset): Likewise.
977 * mips-linux-nat.c (supply_gregset): Likewise.
978 (fill_gregset): Likewise.
979 (supply_fpregset): Likewise.
980 (fill_fpregset): Likewise.
981 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
982 (mips_fill_gregset): Likewise.
983 (mips_supply_fpregset): Likewise.
984 (mips_fill_fpregset): Likewise.
985 (mips64_supply_gregset): Likewise.
986 (micromips_linux_sigframe_validate): Likewise.
987 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
988 (mipsnbsd_fetch_inferior_registers): Likewise.
989 (mipsnbsd_store_inferior_registers): Likewise.
990 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
991 (mipsnbsd_supply_gregset): Likewise.
992 (mipsnbsd_iterate_over_regset_sections): Likewise.
993 (mipsnbsd_supply_reg): Likewise.
994 (mipsnbsd_supply_fpreg): Likewise.
995 * mips-tdep.c (mips_in_frame_stub): Likewise.
996 (mips_dummy_id): Likewise.
997 (is_octeon_bbit_op): Likewise.
998 (micromips_bc1_pc): Likewise.
999 (extended_mips16_next_pc): Likewise.
1000 (mips16_next_pc): Likewise.
1001 (deal_with_atomic_sequence): Likewise.
1002 * moxie-tdep.c (moxie_process_readu): Likewise.
1003 * nios2-tdep.c (nios2_get_next_pc): Likewise.
1004 * nto-procfs.c (procfs_store_registers): Likewise.
1005 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
1006 (ppcfbsd_store_inferior_registers): Likewise.
1007 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
1008 (fetch_altivec_register): Likewise.
1009 (get_spe_registers): Likewise.
1010 (fetch_spe_register): Likewise.
1011 (fetch_altivec_registers): Likewise.
1012 (fetch_all_gp_regs): Likewise.
1013 (fetch_all_fp_regs): Likewise.
1014 (store_vsx_register): Likewise.
1015 (store_altivec_register): Likewise.
1016 (set_spe_registers): Likewise.
1017 (store_spe_register): Likewise.
1018 (store_altivec_registers): Likewise.
1019 (store_all_gp_regs): Likewise.
1020 (store_all_fp_regs): Likewise.
1021 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
1022 (ppc_linux_collect_gregset): Likewise.
1023 (ppc_canonicalize_syscall): Likewise.
1024 (ppc_linux_record_signal): Likewise.
1025 (ppu2spu_prev_register): Likewise.
1026 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
1027 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
1028 (ppcobsd_store_registers): Likewise.
1029 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
1030 Likewise.
1031 (ppc_ravenscar_generic_store_registers): Likewise.
1032 * procfs.c (procfs_fetch_registers): Likewise.
1033 (procfs_store_registers): Likewise.
1034 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
1035 (ravenscar_store_registers): Likewise.
1036 (ravenscar_prepare_to_store): Likewise.
1037 * record-btrace.c (record_btrace_fetch_registers): Likewise.
1038 * record-full.c (record_full_wait_1): Likewise.
1039 (record_full_registers_change): Likewise.
1040 (record_full_store_registers): Likewise.
1041 (record_full_core_fetch_registers): Likewise.
1042 (record_full_save): Likewise.
1043 (record_full_goto_insn): Likewise.
1044 * regcache.c (regcache_register_size): Likewise.
1045 (get_regcache_arch): Remove.
1046 (regcache_read_pc): Likewise.
1047 * regcache.h (get_regcache_arch): Remove.
1048 * remote-sim.c (gdbsim_fetch_register): Likewise.
1049 (gdbsim_store_register): Likewise.
1050 * remote.c (fetch_register_using_p): Likewise.
1051 (send_g_packet): Likewise.
1052 (remote_prepare_to_store): Likewise.
1053 (store_registers_using_G): Likewise.
1054 * reverse.c (save_bookmark_command): Likewise.
1055 (goto_bookmark_command): Likewise.
1056 * rs6000-aix-tdep.c (branch_dest): Likewise.
1057 * rs6000-nat.c (rs6000_ptrace64): Likewise.
1058 (fetch_register): Likewise.
1059 * rs6000-tdep.c (ppc_supply_reg): Likewise.
1060 (ppc_collect_reg): Likewise.
1061 (ppc_collect_gregset): Likewise.
1062 (ppc_collect_fpregset): Likewise.
1063 (ppc_collect_vsxregset): Likewise.
1064 (ppc_collect_vrregset): Likewise.
1065 (ppc_displaced_step_hw_singlestep): Likewise.
1066 (rs6000_pseudo_register_read): Likewise.
1067 (rs6000_pseudo_register_write): Likewise.
1068 * s390-linux-nat.c (supply_gregset): Likewise.
1069 (fill_gregset): Likewise.
1070 (s390_linux_fetch_inferior_registers): Likewise.
1071 * s390-linux-tdep.c (s390_write_pc): Likewise.
1072 (s390_software_single_step): Likewise.
1073 (s390_all_but_pc_registers_record): Likewise.
1074 (s390_linux_syscall_record): Likewise.
1075 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
1076 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
1077 (shnbsd_store_inferior_registers): Likewise.
1078 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
1079 (sh_extract_return_value_fpu): Likewise.
1080 (sh_store_return_value_nofpu): Likewise.
1081 (sh_corefile_supply_regset): Likewise.
1082 (sh_corefile_collect_regset): Likewise.
1083 * sh64-tdep.c (sh64_extract_return_value): Likewise.
1084 (sh64_store_return_value): Likewise.
1085 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
1086 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
1087 (sparc_store_inferior_registers): Likewise.
1088 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
1089 (sparc_ravenscar_prepare_to_store): Likewise.
1090 * sparc-tdep.c (sparc32_store_arguments): Likewise.
1091 (sparc_analyze_control_transfer): Likewise.
1092 (sparc_step_trap): Likewise.
1093 (sparc_software_single_step): Likewise.
1094 (sparc32_gdbarch_init): Likewise.
1095 (sparc_supply_rwindow): Likewise.
1096 (sparc_collect_rwindow): Likewise.
1097 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
1098 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
1099 (sparc64nbsd_collect_gregset): Likewise.
1100 (sparc64nbsd_supply_fpregset): Likewise.
1101 (sparc64nbsd_collect_fpregset): Likewise.
1102 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
1103 (sparc64_supply_gregset): Likewise.
1104 (sparc64_collect_gregset): Likewise.
1105 (sparc64_supply_fpregset): Likewise.
1106 (sparc64_collect_fpregset): Likewise.
1107 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
1108 * spu-tdep.c (spu_unwind_sp): Likewise.
1109 (spu2ppu_prev_register): Likewise.
1110 (spu_memory_remove_breakpoint): Likewise.
1111 * stack.c (return_command): Likewise.
1112 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
1113 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
1114 * tracefile.c (trace_save_ctf): Likewise.
1115 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
1116 (do_windows_store_inferior_registers): Likewise.
1117 (windows_resume): Likewise.
1118 * xtensa-linux-nat.c (fill_gregset): Likewise.
1119 (supply_gregset_reg): Likewise.
1120 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
1121 (xtensa_register_read_masked): Likewise.
1122 (xtensa_supply_gregset): Likewise.
1123 (xtensa_extract_return_value): Likewise.
1124 (xtensa_store_return_value): Likewise.
1125
edd079d9
UW
11262017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
1127
1128 * doublest.c (floatformat_from_string): New function.
1129 * doublest.h (floatformat_from_string): Add prototype.
1130
1131 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
1132 (OP_FLOAT): ... this.
1133 * expression.h: Do not include "doublest.h".
1134 (union exp_element): Replace doubleconst and decfloatconst by
1135 new element floatconst.
1136 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
1137 (ada_evaluate_subexp): Likewise.
1138 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
1139 OP_DOUBLE and OP_DECFLOAT.
1140 * expprint.c (print_subexp_standard): Likewise.
1141 (dump_subexp_body_standard): Likewise.
1142 * breakpoint.c (watchpoint_exp_is_const): Likewise.
1143
1144 * parse.c: Include "dfp.h".
1145 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
1146 (write_exp_elt_floatcst): New function.
1147 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
1148 and OP_DECFLOAT.
1149 (operator_check_standard): Likewise.
1150 (parse_float): Do not accept suffix. Take type as input. Return bool.
1151 Return target format buffer instead of host DOUBLEST.
1152 Use floatformat_from_string and decimal_from_string to parse
1153 either binary or decimal floating-point types.
1154 (parse_c_float): Remove.
1155 * parser-defs.h: Do not include "doublest.h".
1156 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
1157 (write_exp_elt_floatcst): Add prototype.
1158 (parse_float): Update prototype.
1159 (parse_c_float): Remove.
1160
1161 * c-exp.y: Do not include "dfp.h".
1162 (typed_val_float): Use byte buffer instead of DOUBLEST.
1163 (typed_val_decfloat): Remove.
1164 (DECFLOAT): Remove.
1165 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1166 (parse_number): Update to new parse_float interface.
1167 Parse suffixes and determine type before calling parse_float.
1168 Handle decimal and binary FP types the same way.
1169
1170 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
1171 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
1172 (parse_number): Update to new parse_float interface.
1173 Parse suffixes and determine type before calling parse_float.
1174
1175 * f-exp.y: Replace dval by typed_val_float.
1176 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1177 (parse_number): Use parse_float instead of atof.
1178
1179 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
1180 (parse_go_float): Remove.
1181 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1182 (parse_number): Call parse_float instead of parse_go_float.
1183 Parse suffixes and determine type before calling parse_float.
1184
1185 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
1186 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1187 (parse_number): Update to new parse_float interface.
1188 Parse suffixes and determine type before calling parse_float.
1189
1190 * m2-exp.y: Replace dval by byte buffer val.
1191 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1192 (parse_number): Call parse_float instead of atof.
1193
1194 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
1195 (lex_number): Call parse_float instead of strtod.
1196 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
1197 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
1198 Use write_exp_elt_floatcst.
1199 (unit_testing): Remove static variable.
1200 (rust_type): Do not check unit_testing.
1201 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
1202
1203 * ada-exp.y (type_float, type_double): Remove.
1204 (typed_val_float): Use byte buffer instead of DOUBLEST.
1205 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1206 * ada-lex.l (processReal): Use parse_float instead of sscanf.
1207
cc628f3d
AH
12082017-10-25 Alan Hayward <alan.hayward@arm.com>
1209
1210 * aarch64-tdep.h (enum aarch64_regnum): Remove.
1211 * arch/aarch64.h: New file.
1212
09a7c6aa
UW
12132017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1214
1215 * dfp.h (decimal_from_string): Use const reference for argument.
1216 * dfp.c (decimal_from_string): Likewise.
1217
8ba0dd51
UW
12182017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1219
1220 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
1221 * sh64-tdep.c (sh64_do_fp_register): Likewise.
1222 * mips-tdep.c (mips_print_fp_register): Likewise.
1223
16e812b2
UW
12242017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1225
1226 * common/format.h (enum argclass): Replace decfloat_arg by
1227 dec32float_arg, dec64float_arg, and dec128float_arg.
1228 * common/format.c (parse_format_string): Update to return
1229 new decimal float argument classes.
1230
1231 * printcmd.c (printf_decfloat): Rename to ...
1232 (printf_floating): ... this. Add argclass argument, and use it
1233 instead of parsing the format string again. Add support for
1234 binary floating-point values, using floatformat_to_string.
1235 Convert value to the target format if it doesn't already match.
1236 (ui_printf): Call printf_floating instead of printf_decfloat,
1237 also for double_arg / long_double_arg. Pass argclass.
1238
1239 * dfp.c (decimal_to_string): Add format string argument.
1240 * dfp.h (decimal_to_string): Likewise.
1241
1242 * doublest.c (floatformat_to_string): Add format string argument.
1243 * doublest.h (floatformat_to_string): Likewise.
1244
fdf0cbc2
UW
12452017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1246
1247 * doublest.c (floatformat_precision): New routine.
1248 (floatformat_to_string): Likewise.
1249 * doublest.c (floatformat_to_string): Add prototype.
1250
1251 * printcmd.c (print_scalar_formatted): Only call print_floating
1252 on floating-point types.
1253 * valprint.c: Do not include "floatformat.h".
1254 (generic_val_print_decfloat): Remove.
1255 (generic_val_print): Call generic_val_print_float for both
1256 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
1257 (print_floating): Use floatformat_to_string. Handle decimal float.
1258 (print_decimal_floating): Remove, merge into floatformat_to_string.
1259 * value.h (print_decimal_floating): Remove.
1260
1261 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
1262
5033013f
UW
12632017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1264
1265 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
1266
a664f67e
SM
12672017-10-21 Simon Marchi <simon.marchi@ericsson.com>
1268
1269 * memattr.h: Don't include vec.h.
1270 (struct mem_attrib): Initialize fields.
1271 <unknown>: New static method.
1272 (struct mem_region): Add constructors, operator<, initialize
1273 fields.
1274 * memattr.c: Include algorithm.
1275 (default_mem_attrib, unknown_mem_attrib): Remove.
1276 (user_mem_region_list): New global.
1277 (target_mem_region_list, mem_region_list): Change type to
1278 std::vector<mem_region>.
1279 (mem_use_target): Now a function.
1280 (target_mem_regions_valid): Change type to bool.
1281 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
1282 (require_user_regions): Adjust.
1283 (require_target_regions): Adjust.
1284 (create_mem_region): Adjust.
1285 (lookup_mem_region): Adjust.
1286 (invalidate_target_mem_regions): Adjust.
1287 (mem_clear): Rename to...
1288 (user_mem_clear): ... this, and adjust.
1289 (mem_command): Adjust.
1290 (info_mem_command): Adjust.
1291 (mem_enable, enable_mem_command, mem_disable,
1292 disable_mem_command): Adjust.
1293 (mem_delete): Adjust.
1294 (delete_mem_command): Adjust.
1295 * memory-map.h (parse_memory_map): Return an std::vector.
1296 * memory-map.c (parse_memory_map): Likewise.
1297 (struct memory_map_parsing_data): Add constructor.
1298 <memory_map>: Point to std::vector.
1299 (memory_map_start_memory): Adjust.
1300 (memory_map_end_memory): Adjust.
1301 (memory_map_end_property): Adjust.
1302 (clear_result): Remove.
1303 * remote.c (remote_memory_map): Return an std::vector.
1304 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
1305 Remove.
1306 (target_debug_print_mem_region_vector): New.
1307 * target-delegates.c: Regenerate.
1308 * target.h (mem_region_vector): New typedef.
1309 (to_memory_map): Return mem_region_vector.
1310 (target_memory_map): Return an std::vector.
1311 * target.c (target_memory_map): Return an std::vector.
1312 (flash_erase_command): Adjust.
1313
6e17c565
SM
13142017-10-21 Simon Marchi <simon.marchi@ericsson.com>
1315
1316 * memory-map.c (struct memory_map_parsing_data) <property_name>:
1317 Change type to std::string.
1318 (memory_map_start_property): Adjust.
1319 (memory_map_end_property): Adjust.
1320
cfba9872
SM
13212017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1322
1323 * infrun.h: Include common/byte-vector.h.
1324 (struct displaced_step_closure): New struct.
1325 (struct buf_displaced_step_closure): New struct.
1326 * infrun.c (displaced_step_closure::~displaced_step_closure):
1327 Provide default implementation.
1328 (displaced_step_clear): Deallocate step closure with delete.
1329 * aarch64-tdep.c (displaced_step_closure): Rename to ...
1330 (aarch64_displaced_step_closure): ... this, extend
1331 displaced_step_closure.
1332 (aarch64_displaced_step_data) <dsc>: Change type to
1333 aarch64_displaced_step_closure.
1334 (aarch64_displaced_step_copy_insn): Adjust to type change, use
1335 unique_ptr.
1336 (aarch64_displaced_step_fixup): Add cast for displaced step
1337 closure.
1338 * amd64-tdep.c (displaced_step_closure): Rename to ...
1339 (amd64_displaced_step_closure): ... this, extend
1340 displaced_step_closure.
1341 <insn_buf>: Change type to std::vector<gdb_byte>.
1342 <max_len>: Remove.
1343 (fixup_riprel): Change type of DSC parameter, adjust to type
1344 change of insn_buf.
1345 (fixup_displaced_copy): Change type of DSC parameter.
1346 (amd64_displaced_step_copy_insn): Instantiate
1347 amd64_displaced_step_closure.
1348 (amd64_displaced_step_fixup): Add cast for closure type, adjust
1349 to type change of insn_buf.
1350 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
1351 parameter DSC.
1352 (arm_linux_copy_svc): Likewise.
1353 (cleanup_kernel_helper_return): Likewise.
1354 (arm_catch_kernel_helper_return): Likewise.
1355 (arm_linux_displaced_step_copy_insn): Instantiate
1356 arm_displaced_step_closure.
1357 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
1358 (displaced_read_reg): Change type of parameter DSC.
1359 (branch_write_pc): Likewise.
1360 (load_write_pc): Likewise.
1361 (alu_write_pc): Likewise.
1362 (displaced_write_reg): Likewise.
1363 (arm_copy_unmodified): Likewise.
1364 (thumb_copy_unmodified_32bit): Likewise.
1365 (thumb_copy_unmodified_16bit): Likewise.
1366 (cleanup_preload): Likewise.
1367 (install_preload): Likewise.
1368 (arm_copy_preload): Likewise.
1369 (thumb2_copy_preload): Likewise.
1370 (install_preload_reg): Likewise.
1371 (arm_copy_preload_reg): Likewise.
1372 (cleanup_copro_load_store): Likewise.
1373 (install_copro_load_store): Likewise.
1374 (arm_copy_copro_load_store) Likewise.
1375 (thumb2_copy_copro_load_store): Likewise.
1376 (cleanup_branch): Likewise.
1377 (install_b_bl_blx): Likewise.
1378 (arm_copy_b_bl_blx): Likewise.
1379 (thumb2_copy_b_bl_blx): Likewise.
1380 (thumb_copy_b): Likewise.
1381 (install_bx_blx_reg): Likewise.
1382 (arm_copy_bx_blx_reg): Likewise.
1383 (thumb_copy_bx_blx_reg): Likewise.
1384 (cleanup_alu_imm): Likewise.
1385 (arm_copy_alu_imm): Likewise.
1386 (thumb2_copy_alu_imm): Likewise.
1387 (cleanup_alu_reg): Likewise.
1388 (install_alu_reg): Likewise.
1389 (arm_copy_alu_reg): Likewise.
1390 (thumb_copy_alu_reg): Likewise.
1391 (cleanup_alu_shifted_reg): Likewise.
1392 (install_alu_shifted_reg): Likewise.
1393 (arm_copy_alu_shifted_reg): Likewise.
1394 (cleanup_load): Likewise.
1395 (cleanup_store): Likewise.
1396 (arm_copy_extra_ld_st): Likewise.
1397 (install_load_store): Likewise.
1398 (thumb2_copy_load_literal): Likewise.
1399 (thumb2_copy_load_reg_imm): Likewise.
1400 (arm_copy_ldr_str_ldrb_strb): Likewise.
1401 (cleanup_block_load_all): Likewise.
1402 (cleanup_block_store_pc): Likewise.
1403 (cleanup_block_load_pc): Likewise.
1404 (arm_copy_block_xfer): Likewise.
1405 (thumb2_copy_block_xfer): Likewise.
1406 (cleanup_svc): Likewise.
1407 (install_svc): Likewise.
1408 (arm_copy_svc): Likewise.
1409 (thumb_copy_svc): Likewise.
1410 (arm_copy_undef): Likewise.
1411 (thumb_32bit_copy_undef): Likewise.
1412 (arm_copy_unpred): Likewise.
1413 (arm_decode_misc_memhint_neon): Likewise.
1414 (arm_decode_unconditional): Likewise.
1415 (arm_decode_miscellaneous): Likewise.
1416 (arm_decode_dp_misc): Likewise.
1417 (arm_decode_ld_st_word_ubyte): Likewise.
1418 (arm_decode_media): Likewise.
1419 (arm_decode_b_bl_ldmstm): Likewise.
1420 (arm_decode_ext_reg_ld_st): Likewise.
1421 (thumb2_decode_dp_shift_reg): Likewise.
1422 (thumb2_decode_ext_reg_ld_st): Likewise.
1423 (arm_decode_svc_copro): Likewise.
1424 (thumb2_decode_svc_copro): Likewise.
1425 (install_pc_relative): Likewise.
1426 (thumb_copy_pc_relative_16bit): Likewise.
1427 (thumb_decode_pc_relative_16bit): Likewise.
1428 (thumb_copy_pc_relative_32bit): Likewise.
1429 (thumb_copy_16bit_ldr_literal): Likewise.
1430 (thumb_copy_cbnz_cbz): Likewise.
1431 (thumb2_copy_table_branch): Likewise.
1432 (cleanup_pop_pc_16bit_all): Likewise.
1433 (thumb_copy_pop_pc_16bit): Likewise.
1434 (thumb_process_displaced_16bit_insn): Likewise.
1435 (decode_thumb_32bit_ld_mem_hints): Likewise.
1436 (thumb_process_displaced_32bit_insn): Likewise.
1437 (thumb_process_displaced_insn): Likewise.
1438 (arm_process_displaced_insn): Likewise.
1439 (arm_displaced_init_closure): Likewise.
1440 (arm_displaced_step_fixup): Add cast for closure.
1441 * arm-tdep.h: Include infrun.h.
1442 (displaced_step_closure): Rename to ...
1443 (arm_displaced_step_closure): ... this, extend
1444 displaced_step_closure.
1445 <u::svc::copy_svc_os>: Change type of parameter DSC.
1446 <cleanup>: Likewise.
1447 (arm_process_displaced_insn): Likewise.
1448 (arm_displaced_init_closure): Likewise.
1449 (displaced_read_reg): Likewise.
1450 (displaced_write_reg): Likewise.
1451 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
1452 Adjust.
1453 * i386-tdep.h: Include infrun.h.
1454 (i386_displaced_step_closure): New typedef.
1455 * i386-tdep.c (i386_displaced_step_copy_insn): Use
1456 i386_displaced_step_closure.
1457 (i386_displaced_step_fixup): Adjust.
1458 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
1459 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
1460 and unique_ptr.
1461 (ppc_displaced_step_fixup): Adjust.
1462 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
1463 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
1464 and unique_ptr.
1465 (s390_displaced_step_fixup): Adjust.
1466
b392b304
SM
14672017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1468
1469 * interps.h (interp_resume, interp_suspend, interp_set_temp):
1470 Remove declarations.
1471
d5833c62
TT
14722017-10-20 Tom Tromey <tom@tromey.com>
1473
1474 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
1475 std::vector.
1476 (gdb_bfd_record_inclusion): Update.
1477 (bfdp): Remove typedef.
1478
06d5bbc8
TT
14792017-10-20 Tom Tromey <tom@tromey.com>
1480
1481 * gdb_bfd.c (gdb_bfd_ref): Use new.
1482 (struct gdb_bfd_data): Add constructor, destructor, and member
1483 initializers.
1484 (gdb_bfd_unref): Use delete.
1485
2712ce2e
TT
14862017-10-20 Tom Tromey <tom@tromey.com>
1487
1488 * exec.c (exec_file_attach): Use new_bfd_ref.
1489 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
1490 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
1491 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
1492 new_bfd_ref.
1493 * gdb_bfd.h (new_bfd_ref): New function.
1494
fcc8fb2f
PA
14952017-10-20 Pedro Alves <palves@redhat.com>
1496
1497 * main.c (captured_command_loop): Add attribute noinline.
1498
4c2287b0
SM
14992017-10-19 Simon Marchi <simon.marchi@ericsson.com>
1500
1501 * interps.c (struct interp_factory): Add constructor.
1502 (interp_factory_p): Remove typedef.
1503 (DEF_VEC_P(interp_factory_p)): Remove.
1504 (interpreter_factories): Change type to std::vector.
1505 (interp_factory_register): Adjust.
1506 (interp_lookup): Adjust.
1507 (interpreter_completer): Adjust.
1508
3d415c26
TT
15092017-10-19 Tom Tromey <tom@tromey.com>
1510
1511 * break-catch-syscall.c (catch_syscall_completer): Use
1512 std::string, gdb::unique_xmalloc_ptr.
1513
395423c4
TT
15142017-10-19 Tom Tromey <tom@tromey.com>
1515
1516 * infcall.c (call_function_by_hand_dummy): Use std::string.
1517
54f70bc1
TT
15182017-10-19 Tom Tromey <tom@tromey.com>
1519
1520 * mi/mi-main.c (mi_cmd_execute): Update.
1521 * top.h (prepare_execute_command): Return scoped_value_mark.
1522 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
1523 Add move constructor.
1524 * top.c (prepare_execute_command): Return scoped_value_mark.
1525 (execute_command): Update.
1526
63929e84
PA
15272017-10-19 Pedro Alves <palves@redhat.com>
1528
1529 * xml-support.c (xml_fetch_content_from_file): Check fread's
1530 return.
1531
a75868f5
PA
15322017-10-19 Pedro Alves <palves@redhat.com>
1533
1534 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
1535 async.
1536 (handle_error_fd): New function.
1537 (ser_base_async): Add/delete an event loop file handler for
1538 error_fd.
1539
2edf834e
PA
15402017-10-19 Pedro Alves <palves@redhat.com>
1541
1542 * xml-support.c (xml_fetch_content_from_file): Don't read in
1543 chunks. Instead use fseek to determine the file's size, and read
1544 it in one go.
1545
c8ba13ad
KS
15462017-11-18 Keith Seitz <keiths@redhat.com>
1547
1548 * c-exp.y (oper): Canonicalize conversion operators of user-defined
1549 types.
1550 Add whitespace to front of type name.
1551
37534686
KS
15522017-10-18 Keith Seitz <keiths@redhat.com>
1553
1554 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
1555 DW_AT_accessibility.
1556
28c7c158
YQ
15572017-10-18 Yao Qi <yao.qi@linaro.org>
1558
1559 * features/tic6x-c62x-linux.c: Remove.
1560
30f0b101
TT
15612017-10-17 Tom Tromey <tom@tromey.com>
1562
1563 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
1564 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
1565 (do_mixed_source_and_assembly): Likewise.
1566
57e12da9
TT
15672017-10-17 Tom Tromey <tom@tromey.com>
1568
1569 * regcache.c (regcache::xfer_part): Remove assertion.
1570
7b700999
PA
15712017-10-17 Pedro Alves <palves@redhat.com>
1572
1573 * xml-support.c (xml_fetch_content_from_file): Call
1574 unique_ptr::release() instead unique_ptr::get() when passing
1575 through xrealloc.
1576
d3037ba6
YQ
15772017-10-17 Yao Qi <yao.qi@linaro.org>
1578
1579 * regcache.c (regcache::xfer_part): Remove parameters read and
1580 write, add parameter is_raw. All callers are updated.
1581
83d5a34d
KS
15822017-10-16 Keith Seitz <keiths@redhat.com>
1583
1584 * c-typeprint.c (enum access_specifier): Moved here from
1585 c_type_print_base.
1586 (output_access_specifier): New function.
1587 (c_type_print_base): Consider typedefs when assessing
1588 whether access labels are needed.
1589 Use output_access_specifier as needed.
1590 Output access specifier for typedefs, if needed.
1591 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
1592 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
1593 fields.
1594 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
1595 accessor macros.
1596
87028b87
TT
15972017-10-16 Tom Tromey <tom@tromey.com>
1598
1599 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
1600 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
1601 * target.c (target_fileio_read_stralloc): Update.
1602 * sparc64-tdep.c (adi_is_addr_mapped): Update.
1603 * target.h (target_fileio_read_stralloc): Return
1604 unique_xmalloc_ptr.
1605
b7b030ad
TT
16062017-10-16 Tom Tromey <tom@tromey.com>
1607
1608 * xml-syscall.c (xml_init_syscalls_info): Update.
1609 * xml-support.c (xinclude_start_include): Update.
1610 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
1611 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
1612 (xml_fetch_content_from_file): Likewise.
1613 * osdata.c (get_osdata): Update.
1614 * target.h (target_read_stralloc, target_get_osdata): Return
1615 unique_xmalloc_ptr.
1616 * solib-aix.c (solib_aix_get_library_list): Update.
1617 * solib-target.c (solib_target_current_sos): Update.
1618 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
1619 * xml-tdesc.c (fetch_available_features_from_target): Update.
1620 (target_fetch_description_xml): Update.
1621 (file_read_description_xml): Update.
1622 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
1623 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
1624 (remote_pid_to_exec_file): Update.
1625 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
1626 (target_get_osdata): Likewise.
1627
b80406ac
TT
16282017-10-16 Tom Tromey <tom@tromey.com>
1629
1630 * remote.c (remote_register_number_and_offset): Use std::vector.
1631 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
1632 (putpkt_binary): Use gdb::def_vector.
1633 (compare_sections_command): Use gdb::byte_vector.
1634
a90ecff8
TT
16352017-10-16 Tom Tromey <tom@tromey.com>
1636
1637 * ppc-linux-nat.c (hwdebug_insert_point): Use
1638 gdb::unique_xmalloc_ptr, XDUP.
1639
2dc0e219
TT
16402017-10-16 Tom Tromey <tom@tromey.com>
1641
1642 * probe.c (parse_probes): Use std::string.
1643 (info_probes_for_ops, enable_probes_command)
1644 (disable_probes_command): Remove cleanups.
1645
b05628f0
TT
16462017-10-16 Tom Tromey <tom@tromey.com>
1647
1648 * buildsym.c (block_compar): Remove.
1649 (end_symtab_get_static_block): Use std::vector.
1650
a79b1bc6
SM
16512017-10-16 Simon Marchi <simon.marchi@ericsson.com>
1652
1653 * memrange.h (struct mem_range): Define operator< and operator==.
1654 (mem_range_s): Remove.
1655 (DEF_VEC_O (mem_range_s)): Remove.
1656 (normalize_mem_ranges): Change parameter type to std::vector.
1657 * memrange.c (compare_mem_ranges): Remove.
1658 (normalize_mem_ranges): Change parameter type to std::vector,
1659 adjust to vector change.
1660 * exec.c (section_table_available_memory): Return vector, remove
1661 parameter.
1662 (section_table_read_available_memory): Adjust to std::vector
1663 change.
1664 * remote.c (remote_read_bytes): Adjust to std::vector
1665 change.
1666 * tracepoint.h (traceframe_available_memory): Change parameter
1667 type to std::vector.
1668 * tracepoint.c (traceframe_available_memory): Change parameter
1669 type to std::vector, adjust.
1670 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
1671 std::vector change.
1672 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1673 unittests/memrange-selftests.c.
1674 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
1675 * gdb/unittests/memrange-selftests.c: New file.
1676
63f0e930
PA
16772017-10-16 Pedro Alves <palves@redhat.com>
1678
1679 * elfread.c (probe_key_free): Rename range-for variable.
1680 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
1681 (find_probe_by_pc, collect_probes): Rename range-for variable.
1682
c40c7bfc
YQ
16832017-10-16 Yao Qi <yao.qi@linaro.org>
1684
1685 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
1686 * features/tic6x-c62x.c: Remove.
1687 * features/tic6x-c64x-linux.c: Remove.
1688 * features/tic6x-c64x.c: Remove.
1689 * features/tic6x-c64xp-linux.c: Remove.
1690 * features/tic6x-c64xp.c: Remove.
1691 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
1692 initialize_tdesc_tic6x_*_linux functions.
1693 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
1694 initialize_tdesc_tic6x_* functions.
1695
df27ae6a
YQ
16962017-10-16 Yao Qi <yao.qi@linaro.org>
1697
1698 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
1699 tic6x-c62x.
1700 * regformats/tic6x-c62x.dat: Remove.
1701 * regformats/tic6x-c64x.dat: Remove.
1702 * regformats/tic6x-c64xp.dat: Remove.
1703
86766165
SM
17042017-10-15 Simon Marchi <simon.marchi@ericsson.com>
1705
1706 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
1707 (the !HAVE_LIBEXPAT version).
1708
824dfcc3
SM
17092017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1710
1711 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
1712 const.
1713
2098b393
SM
17142017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1715
1716 * target.h: Include tracepoint.h.
1717 (enum trace_find_type): Move to tracepoint.h.
1718 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
1719 * tracepoint.h: Don't include target.h
1720 (enum trace_find_type): Move from target.h.
1721 (parse_traceframe_info): Return a unique ptr.
1722 * tracepoint.c (current_traceframe_info): Change type to unique
1723 ptr.
1724 (free_traceframe_info): Remove.
1725 (clear_traceframe_info): Don't manually free
1726 current_traceframe_info.
1727 (free_result): Remove.
1728 (parse_traceframe_info): Return a unique ptr.
1729 (get_traceframe_info): Adjust to unique ptr.
1730 * ctf.c (ctf_traceframe_info): Return a unique ptr.
1731 * remote.c (remote_traceframe_info): Return a unique ptr.
1732 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
1733 ptr.
1734 * target-debug.h (target_debug_print_traceframe_info_up): New
1735 macro.
1736 * target-delegates.c: Regenerate.
1737
4cdd21a8
SM
17382017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1739
1740 * memrange.h (struct mem_range): Add constructors.
1741 * tracepoint.h (struct traceframe_info) <memory>: Change type to
1742 std::vector<mem_range>.
1743 * tracepoint.c (free_traceframe_info): Don't manually free
1744 vector.
1745 (traceframe_info_start_memory): Adjust to vector change.
1746 (traceframe_available_memory): Likewise.
1747 * tracefile-tfile.c (build_traceframe_info): Likewise.
1748 * ctf.c (ctf_traceframe_info): Likewise.
1749
d0d292a2
SM
17502017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1751
1752 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
1753 std::vector<int>.
1754 * tracepoint.c (free_traceframe_info): Deallocate with delete.
1755 (traceframe_info_start_tvar): Adjust to vector change.
1756 (parse_traceframe_info): Allocate with new.
1757 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
1758 vector change.
1759 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
1760 change.
1761 tfile_traceframe_info): Allocate with new.
1762 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
1763 change.
1764
8d3c73ef
SM
17652017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1766
1767 * tracepoint.c (traceframe_info): Rename to...
1768 (current_traceframe_info): ...this.
1769 (clear_traceframe_info): Adjust.
1770 (get_traceframe_info): Adjust.
1771
b129dcac
SM
17722017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1773
1774 * nat/linux-osdata.c: Include algorithm.
1775 (compare_processes): Remove.
1776 (struct pid_pgid_entry): New struct.
1777 (linux_xfer_osdata_processgroups): Use std::vector instead of
1778 XNEWVEC.
1779
af5bf4ad
SM
17802017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1781
1782 * objfiles.h: Don't include symfile.h.
1783 (struct partial_symbol): Remove forward-declaration.
1784 (struct objfile) <global_psymbols, static_psymbols>: Change type
1785 to std::vector<partial_symbol *>.
1786 * objfiles.c (objfile::objfile): Don't memset those fields.
1787 (objfile::~objfile): Don't free those fields.
1788 * psympriv.h (struct psymbol_allocation_list): Remove
1789 forward-declaration.
1790 (add_psymbol_to_list): Change psymbol_allocation_list parameter
1791 to std::vector.
1792 (start_psymtab_common): Change parameters to std::vector.
1793 * psymtab.c: Include algorithm.
1794 (require_partial_symbols): Call shrink_to_fit.
1795 (find_pc_sect_psymbol): Adjust to vector change.
1796 (match_partial_symbol): Likewise.
1797 (lookup_partial_symbol): Likewise.
1798 (psym_relocate): Likewise.
1799 (dump_psymtab): Likewise.
1800 (recursively_search_psymtabs): Likewise.
1801 (compare_psymbols): Remove.
1802 (sort_pst_symbols): Adjust to vector change.
1803 (start_psymtab_common): Likewise.
1804 (end_psymtab_common): Likewise.
1805 (psymbol_bcache_full): De-constify return value.
1806 (add_psymbol_to_bcache): Likewise.
1807 (extend_psymbol_list): Remove.
1808 (append_psymbol_to_list): Adjust to vector change.
1809 (add_psymbol_to_list): Likewise.
1810 (init_psymbol_list): Likewise.
1811 (maintenance_info_psymtabs): Likewise.
1812 (maintenance_check_psymtabs): Likewise.
1813 * symfile.h (struct psymbol_allocation_list): Remove.
1814 * symfile.c (reread_symbols): Adjust to vector change.
1815 * dbxread.c (start_psymtab): Change type of parameters.
1816 (dbx_symfile_read): Adjust to vector change.
1817 (read_dbx_symtab): Likewise.
1818 (start_psymtab): Change type of parameters.
1819 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
1820 (create_partial_symtab): Likewise.
1821 (add_partial_symbol): Likewise.
1822 (write_one_signatured_type): Likewise.
1823 (recursively_write_psymbols): Likewise.
1824 * mdebugread.c (parse_partial_symbols): Likewise.
1825 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
1826 (scan_xcoff_symtab): Adjust to vector change.
1827 (xcoff_initial_scan): Likewise.
1828
3ec5942f
SM
18292017-10-13 Simon Marchi <simon.marchi@ericsson.com>
1830
1831 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
1832
2399fe6a
YQ
18332017-10-13 Yao Qi <yao.qi@linaro.org>
1834
1835 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
1836 Remove s390x-*-expedite, add s390x-expedite.
1837
4bf3f4a8
YQ
18382017-10-13 Yao Qi <yao.qi@linaro.org>
1839
1840 * features/s390-gs-linux64.c: Regenerated.
1841 * features/s390x-gs-linux64.c: Regenerated.
1842
9e86da07
TT
18432017-10-13 Tom Tromey <tom@tromey.com>
1844
1845 * compile/compile-object-run.c (do_module_cleanup): Use delete.
1846 * solib.c (update_solib_list, reload_shared_libraries_1): Use
1847 delete.
1848 * symfile.c (symbol_file_add_with_addrs): Use new.
1849 (symbol_file_add_separate): Update comment.
1850 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
1851 * jit.c (jit_object_close_impl): Use new.
1852 (jit_unregister_code): Use delete.
1853 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
1854 (~objfile): Rename from free_objfile.
1855 (free_objfile_separate_debug, do_free_objfile_cleanup)
1856 (free_all_objfiles, objfile_purge_solibs): Use delete.
1857 * objfiles.h (struct objfile): Add constructor and destructor.
1858 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
1859 (allocate_objfile, free_objfile): Don't declare.
1860 (struct objstats): Add initializers.
1861
c2508e90
SM
18622017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1863
1864 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
1865 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
1866 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
1867 * gdbarch.h: Regenerate.
1868 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
1869 Adjust comment.
1870 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
1871 (i386_displaced_step_fixup): Adjust comment.
1872 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
1873
a900ff72
TT
18742017-10-12 Tom Tromey <tom@tromey.com>
1875
1876 * prologue-value.h (pv_area::store_would_trash): Return bool.
1877 (pv_area::find_reg): Likewise.
1878 * prologue-value.c (pv_area::store_would_trash): Return bool.
1879 (pv_area::find_reg): Likewise.
1880
f7b7ed97
TT
18812017-10-12 Tom Tromey <tom@tromey.com>
1882
1883 * s390-linux-tdep.c (s390_store, s390_load)
1884 (s390_check_for_saved, s390_analyze_prologue): Update.
1885 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
1886 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
1887 * prologue-value.h (class pv_area): Move from prologue-value.c.
1888 Change names of members. Add constructor, destructor, member
1889 functions.
1890 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
1891 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
1892 (pv_area_fetch, pv_area_scan): Don't declare.
1893 * prologue-value.c (struct pv_area::area_entry): Now member of
1894 pv_area.
1895 (struct pv_area): Move to prologue-value.h.
1896 (pv_area::pv_area): Rename from make_pv_area.
1897 (pv_area::~pv_area): Rename from free_pv_area.
1898 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
1899 (clear_entries, find_entry, overlaps, store_would_trash, store)
1900 (fetch, find_reg, scan): Now member of pv_area.
1901 Remove "area" argument. Update.
1902 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
1903 Update.
1904 * mn10300-tdep.c (push_reg, check_for_saved)
1905 (mn10300_analyze_prologue): Update.
1906 * mep-tdep.c (is_arg_spill, check_for_saved)
1907 (mep_analyze_prologue): Update.
1908 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
1909 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
1910 (m32c_is_struct_return, m32c_analyze_prologue): Update.
1911 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
1912 Update.
1913 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
1914 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
1915
466eecee
SM
19162017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1917
1918 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
1919 * linux-nat.c (linux_nat_delete_thread): New variable.
1920 (lwp_free): Invoke linux_nat_delete_thread if set.
1921 (linux_nat_set_delete_thread): New function.
1922 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
1923 thread delete callback.
1924 * arm-linux-nat.c (arm_linux_delete_thread): New function.
1925 (_initialize_arm_linux_nat): Assign thread delete callback.
1926 * s390-linux-nat.c (s390_delete_thread): New function.
1927 (_initialize_s390_nat): Assign thread delete callback.
1928 * x86-linux-nat.c (x86_linux_add_target): Likewise.
1929 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
1930 function.
1931 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
1932 declaration.
1933 * nat/x86-linux.c (x86_linux_delete_thread): New function.
1934 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
1935
f71c8822
TT
19362017-10-09 Tom Tromey <tom@tromey.com>
1937
1938 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
1939 std::string.
1940 * tui/tui-layout.c (enum tui_status): Use std::string.
1941
981a3fb3
TT
19422017-10-11 Tom Tromey <tom@tromey.com>
1943
1944 * gdbthread.h (thread_command): Constify.
1945 * inferior.h (detach_command): Constify.
1946 * top.h (set_history, show_history): Constify.
1947 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
1948 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
1949 * bsd-kvm.c (bsd_kvm_cmd): Constify.
1950 * printcmd.c (set_command): Constify.
1951 (non_const_set_command): New function.
1952 * dcache.c (set_dcache_command, show_dcache_command): Constify.
1953 * breakpoint.c (enable_command, disable_command, delete_command)
1954 (catch_command, tcatch_command, set_breakpoint_cmd)
1955 (show_breakpoint_cmd): Constify.
1956 * macrocmd.c (macro_command): Constify.
1957 * infcmd.c (unset_command, kill_command, detach_command)
1958 (info_proc_cmd): Constify.
1959 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
1960 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
1961 (info_auto_load_cmd): Constify.
1962 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
1963 (unset_tdesc_cmd): Constify.
1964 * ada-lang.c (set_ada_command, show_ada_command)
1965 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
1966 * guile/guile.c (set_guile_command, show_guile_command)
1967 (info_guile_command): Constify.
1968 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
1969 Constify.
1970 * skip.c (skip_command): Constify.
1971 * compile/compile.c (_initialize_compile): Constify.
1972 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
1973 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
1974 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
1975 (maint_btrace_pt_show_cmd): Constify.
1976 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
1977 Constify.
1978 * python/python.c (user_show_python, user_set_python): Constify.
1979 * mips-tdep.c (set_mips_command, show_mips_command)
1980 (set_mipsfpu_command): Constify.
1981 * record-btrace.c (cmd_record_btrace_start)
1982 (cmd_set_record_btrace, cmd_show_record_btrace)
1983 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
1984 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
1985 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
1986 Constify.
1987 * symfile.c (overlay_command): Constify.
1988 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
1989 * cli/cli-logging.c (set_logging_command, show_logging_command):
1990 Constify.
1991 * cli/cli-dump.c (dump_command, append_command)
1992 (srec_dump_command, ihex_dump_command, verilog_dump_command)
1993 (tekhex_dump_command, binary_dump_command)
1994 (binary_append_command): Constify.
1995 * cli/cli-decode.c (struct cmd_list_element): Change type of
1996 "fun".
1997 * cli/cli-cmds.c (info_command, show_command, set_debug)
1998 (show_debug): Constify.
1999 (show_command): Add non-const overload.
2000 * top.c (set_history, show_history): Constify.
2001 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
2002 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
2003 * target.c (target_command): Constify.
2004 * sparc64-tdep.c (info_adi_command): Constify.
2005 * record-full.c (cmd_record_full_start): Constify.
2006 (set_record_full_command): Constify. Fix typo.
2007 (show_record_full_command): Constify.
2008 * thread.c (thread_command, thread_apply_command): Constify.
2009 * memattr.c (dummy_cmd): Constify.
2010 * value.c (function_command): Constify.
2011 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
2012 * probe.c (info_probes_command): Constify.
2013 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
2014 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
2015 (show_thread_cmd, set_thread_default_cmd)
2016 (show_thread_default_cmd): Constify.
2017 (check_empty): Constify.
2018 * tracepoint.c (tfind_command): Constify.
2019 * cp-support.c (maint_cplus_command): Constify.
2020 * windows-tdep.c (info_w32_command): Constify.
2021 * record.c (cmd_record_start, set_record_command)
2022 (show_record_command, info_record_command, cmd_record_goto):
2023 Constify.
2024 * ravenscar-thread.c (set_ravenscar_command)
2025 (show_ravenscar_command): Constify.
2026 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
2027 Constify.
2028 (add_internal_problem_command): Remove casts.
2029 * arc-tdep.c (maintenance_print_arc_command): Constify.
2030 * valprint.c (set_print, show_print, set_print_raw)
2031 (show_print_raw): Constify.
2032 * maint.c (maintenance_command, maintenance_info_command)
2033 (maintenance_print_command, maintenance_set_cmd)
2034 (maintenance_show_cmd, set_per_command_cmd)
2035 (show_per_command_cmd, maintenance_check_command): Constify.
2036 * language.c (set_check, show_check): Constify.
2037 * typeprint.c (show_print_type, set_print_type): Constify.
2038 * go32-nat.c (go32_info_dos_command): Constify.
2039
fdf44873
TT
20402017-10-11 Tom Tromey <tom@tromey.com>
2041
2042 * breakpoint.c (prepare_re_set_context): Remove.
2043 (breakpoint_re_set_one): Update. Don't use cleanups.
2044 (breakpoint_re_set): Use scoped_restore, std::string, and
2045 scoped_restore_current_language.
2046
81b1e71c
TT
20472017-10-11 Tom Tromey <tom@tromey.com>
2048
2049 * breakpoint.c (commands_command_1): Use std::string.
2050 (cleanup_executing_breakpoints): Remove.
2051 (bpstat_do_actions_1): Use scoped_restore.
2052 (bpstat_check_watchpoint): Use std::string.
2053 (decode_static_tracepoint_spec): Likewise.
2054 (break_range_command): Likewise.
2055 (watch_command_1): Likewise.
2056 (compare_breakpoints): Change argument types.
2057 (clear_command): Use std::vector.
2058 (cleanup_executing_breakpoints): Remove.
2059 (update_global_location_list): Use unique_xmalloc_ptr.
2060 (strace_command): Remove unused declaration.
2061
4f9d9906
JB
20622017-10-11 John Baldwin <jhb@FreeBSD.org>
2063
2064 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
2065 * NEWS: Mention new FreeBSD/arm native configuration.
2066 * configure.host: Add arm*-*-freebsd*.
2067 * configure.nat: Likewise.
2068 * arm-fbsd-nat.c: New file.
2069
7176dfd2
JB
20702017-10-11 John Baldwin <jhb@FreeBSD.org>
2071
2072 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
2073 (ALLDEPFILES): Add arm-fbsd-tdep.c.
2074 * NEWS: Mention new FreeBSD/arm target.
2075 * configure.tgt: Add arm*-*-freebsd*.
2076 * arm-fbsd-tdep.c: New file.
2077 * arm-fbsd-tdep.h: New file.
2078
fe220226
MR
20792017-10-11 Maciej W. Rozycki <macro@imgtec.com>
2080
2081 * linux-tdep.c (linux_make_corefile_notes): Remove call to
2082 `gdbarch_elfcore_write_linux_prpsinfo'.
2083 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
2084 method.
2085 (elf_internal_linux_prpsinfo): Remove declaration.
2086 * gdbarch.h: Regenerate.
2087 * gdbarch.c: Regenerate.
2088
a2f63b2e
MR
20892017-10-11 Maciej W. Rozycki <macro@imgtec.com>
2090
2091 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
2092 `set_gdbarch_elfcore_write_linux_prpsinfo'.
2093
458ca1d0
PA
20942017-10-11 Pedro Alves <palves@redhat.com>
2095
2096 * breakpoint.c (reattach_breakpoints): Delete.
2097 * breakpoint.h (reattach_breakpoints): Delete.
2098
905014d7
SM
20992017-10-11 Simon Marchi <simon.marchi@ericsson.com>
2100
2101 * symfile.c (registered_sym_fns): Make struct, not typedef.
2102 (DEF_VEC_O (registered_sym_fns)): Remove.
2103 (symtab_fns): Change type to std::vector.
2104 (add_symtab_fns): Adjust.
2105 (find_sym_fns): Adjust.
2106
56d704da
AK
21072017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
2108
2109 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
2110 * arc-tdep.h (arc_arch_is_em): New function.
2111 (arc_arch_is_hs): Likewise.
2112
7fa29be9
EB
21132017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
2114
2115 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
2116 parentheses in the declaration.
2117 (macro_lookup_inclusion): Likewise.
2118 (macro_lookup_definition): Likewise.
2119 * p-lang.h (pascal_builtin_types): Likewise.
2120 * tui/tui-data.c (tui_win_list): Likewise.
2121 * tui/tui-data.h (tui_win_list): Likewise.
2122 * utils.h (make_cleanup_free_section_addr_info): Likewise.
2123
d9b477e3
KB
21242017-10-11 Mark Rages <markrages@gmail.com>
2125
2126 * target-memory.c (block_boundaries): Fix for block address not
2127 aligned on block size.
2128
65630365
PA
21292017-10-10 Pedro Alves <palves@redhat.com>
2130 Tom Tromey <tom@tromey.com>
2131
2132 * breakpoint.c (struct captured_breakpoint_query_args)
2133 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
2134 (print_breakpoint): New.
2135 * breakpoint.h (print_breakpoint): Declare.
2136 * common/common-exceptions.h (enum return_reason): Remove
2137 references to catch_exceptions.
2138 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
2139 Delete.
2140 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
2141 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
2142 * gdb.h: Delete.
2143 * gdbthread.h (thread_select): Declare.
2144 * mi/mi-cmd-break.c: Don't include gdb.h.
2145 (breakpoint_notify): Use print_breakpoint.
2146 * mi/mi-cmd-catch.c: Don't include gdb.h.
2147 * mi/mi-interp.c: Don't include gdb.h.
2148 (mi_print_breakpoint_for_event): New.
2149 (mi_breakpoint_created, mi_breakpoint_modified): Use
2150 mi_print_breakpoint_for_event.
2151 * mi/mi-main.c: Don't include gdb.h.
2152 (mi_cmd_thread_select): Parse the global thread ID here. Use
2153 thread_select instead of gdb_thread_select.
2154 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
2155 of using gdb_list_thread_ids.
2156 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
2157 FILEIO_ENOSYS here.
2158 (remote_fileio_request): Use TRY/CATCH instead of
2159 catch_exceptions.
2160 * symfile-mem.c (struct symbol_file_add_from_memory_args)
2161 (symbol_file_add_from_memory_wrapper): Delete.
2162 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
2163 * thread.c: Don't include gdb.h.
2164 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
2165 (thread_alive): Use thread_select.
2166 (do_captured_thread_select): Delete, parts salvaged as ...
2167 (thread_select): ... this new function.
2168 (gdb_thread_select): Delete.
2169
bf469271
PA
21702017-10-10 Pedro Alves <palves@redhat.com>
2171 Tom Tromey <tom@tromey.com>
2172
2173 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
2174 and reverse logic.
2175 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
2176 No longer macros. Instead ...
2177 (enum wp_check_result): They're now values of this new
2178 enumeration.
2179 (watchpoint_check): Change return type to wp_check_result and
2180 parameter type to bpstat.
2181 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
2182 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
2183 catch_errors. Reverse logic of watchpoint_check call.
2184 (breakpoint_re_set_one): Now returns void and takes a breakpoint
2185 pointer as parameter.
2186 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
2187 * common/common-exceptions.c (throw_exception_sjlj): Update
2188 comments to avoid mentioning catch_errors.
2189 * exceptions.c (catch_errors): Delete.
2190 * exceptions.h: Update comments to avoid mentioning catch_errors.
2191 (catch_errors_ftype, catch_errors): Delete.
2192 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
2193 (hook_stop_stub): Delete.
2194 (restore_selected_frame): Change return type to void, and
2195 parameter type to const frame_id &.
2196 (restore_infcall_control_state): Use TRY/CATCH instead of
2197 catch_errors.
2198 * main.c (captured_command_loop): Return void and remove
2199 parameter. Remove references to catch_errors.
2200 (captured_main): Use TRY/CATCH instead of catch_errors.
2201 * objc-lang.c (objc_submethod_helper_data)
2202 (find_objc_msgcall_submethod_helper): Delete.
2203 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
2204 catch_errors.
2205 * record-full.c (record_full_message): Return void.
2206 (record_full_message_args, record_full_message_wrapper): Delete.
2207 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
2208 instead of catch_errors.
2209 * solib-aix.c (solib_aix_open_symbol_file_object): Change
2210 parameter type to int.
2211 * solib-darwin.c (open_symbol_file_object): Ditto.
2212 * solib-dsbt.c (open_symbol_file_object): Ditto.
2213 * solib-frv.c (open_symbol_file_object): Ditto.
2214 * solib-svr4.c (open_symbol_file_object): Ditto.
2215 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
2216 * solib.c (update_solib_list): Use TRY/CATCH instead of
2217 catch_errors.
2218 * solist.h (struct target_so_ops) <open_symbol_file_object>:
2219 Change type.
2220 * symmisc.c (struct print_symbol_args): Remove.
2221 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
2222 (print_symbol): Change type.
2223 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
2224 and remove parameters.
2225 (catch_errors): New.
2226 (get_windows_debug_event): Adjust.
2227
1a56bfa5
TT
22282017-10-09 Tom Tromey <tom@tromey.com>
2229
2230 * mi/mi-main.c (free_splay_tree): Remove.
2231 (list_available_thread_groups): Use splay_tree_up.
2232 * common/gdb_splay_tree.h: New file.
2233
0c478e2d
TT
22342017-10-09 Tom Tromey <tom@tromey.com>
2235
2236 * mi/mi-main.c (do_nothing): Remove.
2237 (list_available_thread_groups): Update.
2238
cbd2b4e3
PA
22392017-10-09 Pedro Alves <palves@redhat.com>
2240
2241 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
2242 reading registers when switching context.
2243
a181c0bf
JB
22442017-10-09 John Baldwin <jhb@FreeBSD.org>
2245
2246 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
2247 (fbsd_convert_siginfo): Likewise.
2248 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
2249
6e66f753
SM
22502017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
2251
2252 * configure.ac (try_guile_versions): Remove guile-2.2.
2253 * configure: Regenerate.
2254
890e9790
TT
22552017-10-09 Tom Tromey <tom@tromey.com>
2256
2257 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
2258 (COMPILE.pre): Use $(CXX).
2259
109483d9
PA
22602017-10-09 Pedro Alves <palves@redhat.com>
2261
2262 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
2263 Use bool.
2264 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
2265 * cp-support.h (cp_remove_params): Now returns a
2266 gdb::unique_xmalloc_ptr.
2267 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
2268 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
2269 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
2270 returning a gdb::unique_xmalloc_ptr.
2271 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
2272 * stack.c (find_frame_funname): Adjust to cp_remove_params
2273 returning a gdb::unique_xmalloc_ptr.
2274
791afaa2
TT
22752017-10-08 Tom Tromey <tom@tromey.com>
2276
2277 * dwarf2read.c (dwarf2_get_dwz_file): Use
2278 gdb::unique_xmalloc_ptr.
2279 (find_slot_in_mapped_hash): Likewise.
2280 (dwarf2_physname): Likewise.
2281 (create_dwo_unit_in_dwp_v1): Use std::string.
2282 (create_dwo_unit_in_dwp_v2): Likewise.
2283 (lookup_dwo_cutu): Likewise.
2284 (inherit_abstract_dies): Use std::vector.
2285 (read_array_type): Likewise.
2286 (dwarf_decode_macros): Remove unused declaration.
2287 (unsigned_int_compar): Remove.
2288 (dwarf2_build_psymtabs_hard): Use scoped_restore.
2289 (psymtabs_addrmap_cleanup): Remove.
2290
30a9c02f
TT
22912017-10-08 Tom Tromey <tom@tromey.com>
2292
2293 * frame-unwind.c (frame_unwind_try_unwinder): Update.
2294 * frame.h (frame_cleanup_after_sniffer): Declare.
2295 (frame_prepare_for_sniffer): Return void.
2296 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
2297 type of argument.
2298 (frame_prepare_for_sniffer): Return void.
2299
757325a3
TT
23002017-10-08 Tom Tromey <tom@tromey.com>
2301
2302 * utils.h (make_cleanup_value_free): Remove.
2303 * utils.c (do_value_free, struct cleanup): Remove.
2304 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
2305 Use gdb_value_up.
2306 * value.h (struct value_deleter): New.
2307 (gdb_value_up): New typedef.
2308
b9c04fb2
TT
23092017-10-08 Tom Tromey <tom@tromey.com>
2310
2311 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
2312 (make_cleanup_free_search_symbols): Remove.
2313 (search_symbols): Return std::vector.
2314 (symbol_search::compare_search_syms): Now member of
2315 symbol_search. Change arguments.
2316 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
2317 (symtab_symbol_info, rbreak_command): Update.
2318 * symtab.h (struct symbol_search) <next>: Remove.
2319 Add constructors.
2320 (symbol_search::operator<): New function.
2321 (symbol_search::operator==): New function.
2322 (search_symbols): Remove std::vector.
2323 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
2324 (symbol_search::compare_search_syms): Declare.
2325
0d28b0a5
YQ
23262017-10-06 Yao Qi <yao.qi@linaro.org>
2327
2328 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
2329 arch/aarch64-insn.o.
2330 Remove one rule.
2331 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
2332
71917808
YQ
23332017-10-06 Yao Qi <yao.qi@linaro.org>
2334
2335 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
2336 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
2337 arch/arm-linux.o respectively.
2338 * configure.tgt: Likewise.
2339
2081b2b2
YQ
23402017-10-06 Yao Qi <yao.qi@linaro.org>
2341
2342 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
2343 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
2344
a1b85d28
PA
23452017-10-06 Pedro Alves <palves@redhat.com>
2346
2347 * windows-nat.c: Include <algorithm>.
2348
d97987e2
YQ
23492017-10-06 Yao Qi <yao.qi@linaro.org>
2350
2351 * configure.tgt (i386_tobjs): New variable.
2352 (amd64_tobjs): New variable.
2353 Set $cpu_obs and $os_obs.
2354
f38307f5
YQ
23552017-10-06 Yao Qi <yao.qi@linaro.org>
2356
2357 * Makefile.in (CONFIG_SRC_SUBDIR): New.
2358 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
2359 (clean): Remove object files and dependency files.
2360 (distclean): Remove the directory.
2361 * configure.ac: Invoke AC_CONFIG_COMMANDS.
2362 * configure: Re-generated.
2363 * configure.tgt: Replace amd64.o with arch/amd64.o.
2364
2f924de6
JM
23652017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
2366
2367 PR build/22188
2368 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
2369 and SETEND.
2370
2fd9d7ca
PA
23712017-10-05 Pedro Alves <palves@redhat.com>
2372
2373 * linux-nat.c (linux_child_follow_fork): When following the parent
2374 and detaching the child, consult the parent thread's architecture
2375 instead of the child's.
2376
d13b8493
UW
23772017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
2378
2379 * ax.h: Do not include "doublest.h".
2380 (union agent_val): Remove.
2381
3b4b2f16
UW
23822017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
2383
2384 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
2385 (decimal_to_string): Return std::string object.
2386 (decimal_from_string): Accept std::string object. Return bool.
2387 (decimal_from_integral, decimal_from_doublest): Remove.
2388 (decimal_from_longest): Add prototype.
2389 (decimal_from_ulongest): Likewise.
2390 (decimal_to_longest): Likewise.
2391 (decimal_from_doublest): Likewise.
2392 * dfp.c: Do not include "gdbtypes.h" or "value.h".
2393 (MAX_DECIMAL_STRING): Move here.
2394 (decimal_to_string): Return std::string object.
2395 (decimal_from_string): Accept std::string object. Return bool.
2396 (decimal_from_integral): Remove, replace by ...
2397 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
2398 (decimal_to_longest): New function.
2399 (decimal_from_floating): Remove, replace by ...
2400 (decimal_from_doublest): ... this new function.
2401 (decimal_to_doublest): Update to new decimal_to_string interface.
2402
2403 * value.c (unpack_long): Use decimal_to_longest.
2404 * valops.c (value_cast): Use decimal_from_doublest instead of
2405 decimal_from_floating. Use decimal_from_[u]longest isntead of
2406 decimal_from_integral.
2407 * valarith.c (value_args_as_decimal): Likewise.
2408 * valprint.c (print_decimal_floating): Update to new
2409 decimal_to_string interface.
2410 * printcmd.c (printf_decfloat): Likewise.
2411 * c-exp.y (parse_number): Update to new decimal_from_string interface.
2412
1841ee5d
UW
24132017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
2414
2415 * doublest.h: Do not include "floatformat.h". Remove stale comments.
2416 * gdbtypes.c: Include "floatformat.h".
2417 * value.c: Likewise.
2418 * m68k-tdep.c: Likewise.
2419
2420 * findvar.c: Do not include "floatformat.h".
2421 * amd64-darwin-tdep.c: Likewise.
2422 * arm-linux-tdep.c: Likewise.
2423 * i386-darwin-tdep.c: Likewise.
2424 * i387-tdep.c: Likewise.
2425 * m68k-linux-tdep.c: Likewise.
2426 * mep-tdep.c: Likewise.
2427 * mips-tdep.c: Likewise.
2428 * nios2-tdep.c: Likewise.
2429 * s390-linux-tdep.c: Likewise.
2430 * sparc-obsd-tdep.c: Likewise.
2431 * sparc-tdep.c: Likewise.
2432 * sparc64-tdep.c: Likewise.
2433 * spu-tdep.c: Likewise.
2434 * tic6x-tdep.c: Likewise.
2435 * tilegx-tdep.c: Likewise.
2436 * vax-tdep.c: Likewise.
2437 * xstormy16-tdep.c: Likewise.
2438 * xtensa-tdep.c: Likewise.
2439
2440 * top.c: Do not include "doublest.h".
2441 * aarch64-tdep.c: Likewise.
2442 * alpha-tdep.c: Likewise.
2443 * arm-linux-tdep.c: Likewise.
2444 * m68k-linux-tdep.c: Likewise.
2445 * tilegx-tdep.c: Likewise.
2446 * xstormy16-tdep.c: Likewise.
2447
a80a6471
JB
24482017-10-05 John Baldwin <jhb@FreeBSD.org>
2449
2450 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
2451 (mipsn32_fbsd_sigframe): Define.
2452 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
2453 for FreeBSD/mipsn32.
2454
12c4bd7f
JB
24552017-10-05 John Baldwin <jhb@FreeBSD.org>
2456
2457 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
2458 AT_HWCAP.
2459
c91933e9
TG
24602017-10-05 Tristan Gingold <tgingold@free.fr>
2461
2462 * MAINTAINERS (Misc): Update my email address.
2463
5cd63fda
PA
24642017-10-04 Pedro Alves <palves@redhat.com>
2465
2466 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
2467 it instead of target_gdbarch.
2468 (get_remote_state, get_remote_packet_size): Adjust
2469 get_remote_arch_state calls, passing down target_gdbarch
2470 explicitly.
2471 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
2472 'gdbarch' and use it instead of target_gdbarch.
2473 (get_memory_packet_size): Adjust get_remote_arch_state calls,
2474 passing down target_gdbarch explicitly.
2475 (struct stop_reply) <arch>: New field.
2476 (remote_parse_stop_reply): Use the stopped thread's architecture,
2477 not the current inferior's. Save the architecture in the
2478 stop_reply.
2479 (process_stop_reply): Use the stop reply's architecture.
2480 (process_g_packet, remote_fetch_registers)
2481 (remote_prepare_to_store, store_registers_using_G)
2482 (remote_store_registers): Adjust get_remote_arch_state calls,
2483 using the regcache's architecture.
2484 (remote_get_trace_status): Adjust get_remote_arch_state calls,
2485 passing down target_gdbarch explicitly.
2486 * spu-multiarch.c (spu_thread_architecture): Defer to the target
2487 beneath instead of calling target_gdbarch.
2488 * target.c (default_thread_architecture): Use the specified
2489 inferior's architecture, instead of the current inferior's
2490 architecture (via target_gdbarch).
2491
ed4227b7
PA
24922017-10-04 Pedro Alves <palves@redhat.com>
2493
2494 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
2495 case.
2496 (regcache_print): Handle !target_has_registers here instead.
2497
55b11ddf
PA
24982017-10-04 Pedro Alves <palves@redhat.com>
2499
2500 * frame.c (create_test_frame): Delete.
2501 * frame.h (create_test_frame): Delete.
2502 * gdbarch-selftests.c: Include gdbthread.h and target.h.
2503 (class regcache_test): Delete.
2504 (test_target_has_registers, test_target_has_stack)
2505 (test_target_has_memory, test_target_prepare_to_store)
2506 (test_target_store_registers): New functions.
2507 (test_target_ops): New class.
2508 (register_to_value_test): Error out if there's already a
2509 process_stratum (or higher) target pushed. Create a fuller mock
2510 environment, with mock target_ops, inferior, address space, thread
2511 and inferior_ptid.
2512 * progspace.c (struct address_space): Move to ...
2513 * progspace.h (struct address_space): ... here.
2514 * regcache.h (regcache::~regcache, regcache::raw_write)
2515 [GDB_SELF_TEST]: No longer virtual.
2516
4c71c105
SM
25172017-10-04 Simon Marchi <simon.marchi@ericsson.com>
2518
2519 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
2520
73dcd72d
PA
25212017-10-04 Pedro Alves <palves@redhat.com>
2522
2523 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
2524 out of 'between TRY and CATCH'.
2525
44704526
PA
25262017-10-04 Pedro Alves <palves@redhat.com>
2527
2528 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
2529 * common/common-exceptions.h (TRY): Open an outermost scope.
2530 Expand intro comment.
2531 (CATCH): Reindent.
2532 (END_CATCH): Close the outermost scope.
2533 * completer.c (complete_line_internal): Add missing END_CATCH.
2534
bc3b087d
SDJ
25352017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2536
2537 * NEWS (Changes since GDB 8.0): Add entry about new
2538 'set-cwd-on-gdbserver' feature.
2539 (New remote packets): Add entry for QSetWorkingDir.
2540 * common/common-inferior.h (set_inferior_cwd): New prototype.
2541 * infcmd.c (set_inferior_cwd): Remove "static".
2542 (show_cwd_command): Expand text to include remote debugging.
2543 * remote.c: Add PACKET_QSetWorkingDir.
2544 (remote_protocol_features) <QSetWorkingDir>: New entry for
2545 PACKET_QSetWorkingDir.
2546 (extended_remote_set_inferior_cwd): New function.
2547 (extended_remote_create_inferior): Call
2548 "extended_remote_set_inferior_cwd".
2549 (_initialize_remote): Call "add_packet_config_cmd" for
2550 QSetWorkingDir.
2551
d092c5a2
SDJ
25522017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2553
2554 * NEWS (New commands): Mention "set/show cwd".
2555 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
2556 "cd" command's help text.
2557 * common/common-inferior.h (get_inferior_cwd): New prototype.
2558 * infcmd.c (inferior_cwd_scratch): New global variable.
2559 (set_inferior_cwd): New function.
2560 (get_inferior_cwd): Likewise.
2561 (set_cwd_command): Likewise.
2562 (show_cwd_command): Likewise.
2563 (_initialize_infcmd): Add "set/show cwd" commands.
2564 * inferior.h (class inferior) <cwd>: New field.
2565 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
2566 (fork_inferior): Change inferior's cwd before its execution.
2567 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
2568 to CreateProcess.
2569
7da0a886
SDJ
25702017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2571
2572 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
2573 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
2574 (COMMON_OBS): Add gdb_tilde_expand.o.
2575 * common/gdb_tilde_expand.c: New file.
2576 * common/gdb_tilde_expand.h: Likewise.
2577
db8dd160
MR
25782017-10-03 Maciej W. Rozycki <macro@imgtec.com>
2579
2580 * gdbarch.sh (objfile): Remove duplicate declaration.
2581 * gdbarch.h: Regenerate.
2582
f8bfbf22
TT
25832017-10-03 Tom Tromey <tom@tromey.com>
2584
2585 * utils.c (internal_vproblem): Use string_vprintf.
2586
5178ed48
TT
25872017-10-03 Tom Tromey <tom@tromey.com>
2588
2589 * printcmd.c (info_symbol_command): Use std::string.
2590
8cff8730
TT
25912017-10-03 Tom Tromey <tom@tromey.com>
2592
2593 * top.c (gdb_safe_append_history): Use std::string.
2594
895b8f30
TT
25952017-10-03 Tom Tromey <tom@tromey.com>
2596
2597 * event-top.c (stdin_event_handler): Update.
2598 * main.c (captured_main_1): Update.
2599 * top.h (make_delete_ui_cleanup): Remove.
2600 (struct ui): Add constructor and destructor.
2601 (new_ui, delete_ui): Remove.
2602 * top.c (make_delete_ui_cleanup): Remove.
2603 (new_ui_command): Use std::unique_ptr.
2604 (delete_ui_cleanup): Remove.
2605 (ui::ui): Rename from new_ui. Update.
2606 (free_ui): Remove.
2607 (ui::~ui): Rename from delete_ui. Update.
2608
0efef640
TT
26092017-10-03 Tom Tromey <tom@tromey.com>
2610
2611 * symfile.c (load_progress): Use gdb::byte_vector.
2612
245ad7d3
TT
26132017-10-03 Tom Tromey <tom@tromey.com>
2614
2615 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
2616 declaration.
2617 * printcmd.c (x_command): Remove unused declaration.
2618 * symfile.c (symbol_file_command): Remove unused declaration.
2619
e05550d7
TT
26202017-10-03 Tom Tromey <tom@tromey.com>
2621
2622 * utils.c (internal_vproblem): Use std::string.
2623 (defaulted_query): Likewise.
2624
b95de2b7
TT
26252017-10-03 Tom Tromey <tom@tromey.com>
2626
2627 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
2628 * top.c (execute_command_to_string): Update.
2629 * utils.c (make_cleanup_restore_page_info): Remove.
2630 (do_restore_page_info_cleanup): Remove.
2631 (set_batch_flag_and_restore_page_info):
2632 New.
2633 (make_cleanup_restore_page_info): Remove.
2634 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
2635 (~set_batch_flag_and_restore_page_info): New
2636 (make_cleanup_restore_uinteger): Remove.
2637 (make_cleanup_restore_integer): Remove.
2638 (struct restore_integer_closure): Remove.
2639 (restore_integer): Remove.
2640 * utils.h (struct set_batch_flag_and_restore_page_info): New
2641 class.
2642 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
2643 (make_cleanup_restore_page_info): Remove.
2644 (make_cleanup_restore_uinteger) Remove.
2645 (make_cleanup_restore_integer) Remove.
2646
07036511
TT
26472017-10-03 Tom Tromey <tom@tromey.com>
2648
2649 * record-full.h (record_full_gdb_operation_disable_set): Return
2650 scoped_restore_tmpl<int>.
2651 * infrun.c (adjust_pc_after_break): Update.
2652 (handle_signal_stop): Update.
2653 * record-full.c (record_full_gdb_operation_disable_set): Return
2654 scoped_restore_tmpl<int>.
2655 (record_full_wait_1, record_full_insert_breakpoint)
2656 (record_full_remove_breakpoint, record_full_save)
2657 (record_full_goto_insn): Update.
2658
45320ffa
TT
26592017-10-02 Tom Tromey <tom@tromey.com>
2660
2661 PR rust/22236:
2662 * rust-lang.c (rust_val_print_str): New function.
2663 (val_print_struct): Call it.
2664 (rust_subscript): Preserve name of slice type.
2665
b3e3859b
TT
26662017-10-02 Tom Tromey <tom@tromey.com>
2667
2668 * rust-lang.c (rust_subscript): Handle slices in
2669 EVAL_AVOID_SIDE_EFFECTS case.
2670
01af5e0d
TT
26712017-10-02 Tom Tromey <tom@tromey.com>
2672
2673 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
2674
888e3ddb
TT
26752017-10-02 Tom Tromey <tom@tromey.com>
2676
2677 * rust-lang.h (rust_slice_type): Add "extern".
2678
cc536b21
PA
26792017-10-02 Tom Tromey <tom@tromey.com>
2680 Pedro Alves <palves@redhat.com>
2681
2682 * ada-lang.h (ada_exc_info::operator<): Make const.
2683 (ada_exc_info::operator==): Make const.
2684 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
2685 Make const.
2686
386c8614
TT
26872017-09-29 Tom Tromey <tom@tromey.com>
2688
2689 * target.c (read_whatever_is_readable): Change type of "result".
2690 Update.
2691 (free_memory_read_result_vector): Remove.
2692 (read_memory_robust): Change return type. Update.
2693 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
2694 bin2hex, std::string.
2695 * target.h (memory_read_result_s): Remove typedef.
2696 (free_memory_read_result_vector): Remove.
2697 (read_memory_robust): Return std::vector.
2698
789c4b5e
TT
26992017-09-29 Tom Tromey <tom@tromey.com>
2700
2701 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
2702
ab816a27
TT
27032017-09-29 Tom Tromey <tom@tromey.com>
2704
2705 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
2706 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
2707 operator< and operator==.
2708 (ada_exceptions_list): Return a std::vector.
2709 * ada-lang.c (ada_exc_info::operator<): Rename from
2710 compare_ada_exception_info.
2711 (ada_exc_info::operator==): New.
2712 (sort_remove_dups_ada_exceptions_list): Change type of
2713 "exceptions".
2714 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
2715 (ada_add_global_exceptions): Likewise.
2716 (ada_exceptions_list_1): Return a std::vector.
2717 (ada_exceptions_list): Likewise.
2718
52f9abe4
TT
27192017-09-29 Tom Tromey <tom@tromey.com>
2720
2721 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
2722 'std::set *'.
2723 (print_one_inferior): Update.
2724 (free_vector_of_ints): Remove.
2725 (list_available_thread_groups): Change "ids" to std::set.
2726 (mi_cmd_list_thread_groups): Update.
2727 (struct collect_cores_data) <core>: Now a std::set.
2728 (collect_cores): Update.
2729 (unique): Remove.
2730 (print_one_inferior): Update.
2731
dcd5ddcc
TT
27322017-09-29 Tom Tromey <tom@tromey.com>
2733
2734 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
2735 (mi_execute_async_cli_command): Likewise.
2736 (mi_cmd_trace_frame_collected): Use field_fmt.
2737
45d288cc
TT
27382017-09-29 Tom Tromey <tom@tromey.com>
2739
2740 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
2741 gdb::byte_vector.
2742
6afe2f4a
TT
27432017-09-29 Tom Tromey <tom@tromey.com>
2744
2745 * mi/mi-parse.c (mi_parse): Remove unused declaration.
2746
9813429a
TT
27472017-09-29 Tom Tromey <tom@tromey.com>
2748
2749 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
2750
2d6960b4
TT
27512017-09-29 Tom Tromey <tom@tromey.com>
2752
2753 * varobj.h (varobj_gen_name): Return std::string.
2754 * varobj.c (varobj_gen_name): Return std::string.
2755 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
2756 (mi_cmd_var_delete): Don't copy "name".
2757
784c453a
TT
27582017-09-29 Tom Tromey <tom@tromey.com>
2759
2760 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
2761 (mi_cmd_break_insert_1): Update.
2762
a9bc57b9
TT
27632017-09-29 Tom Tromey <tom@tromey.com>
2764
2765 * target.h (make_scoped_defer_target_commit_resume): Update.
2766 * target.c (make_scoped_defer_target_commit_resume): Rename from
2767 make_cleanup_defer_target_commit_resume. Return a
2768 scoped_restore.
2769 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
2770
9754d8c4
TT
27712017-09-29 Tom Tromey <tom@tromey.com>
2772
2773 * main.c (captured_main_1): Remove unused declaration.
2774 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
2775
99ef965c
TT
27762017-09-29 Tom Tromey <tom@tromey.com>
2777
2778 * symtab.c (search_symbols): Remove unused outer cleanup.
2779 (make_source_files_completion_list): Remove unused declaration.
2780
42518ba7
TT
27812017-09-29 Tom Tromey <tom@tromey.com>
2782
2783 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
2784
726b2169
TT
27852017-09-29 Tom Tromey <tom@tromey.com>
2786
2787 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
2788 gdb::byte_vector.
2789
55b06432
TT
27902017-09-29 Tom Tromey <tom@tromey.com>
2791
2792 * complaints.c (vcomplaint): Use std::string.
2793
8abcee91
TT
27942017-09-29 Tom Tromey <tom@tromey.com>
2795
2796 * tracepoint.c (trace_variable_command): Use std::string.
2797 (encode_actions_1): Remove unused declarations.
2798 (create_tsv_from_upload): Use std::string.
2799
6ad94bc7
TT
28002017-09-29 Tom Tromey <tom@tromey.com>
2801
2802 * cp-support.c (gdb_demangle): Use std::string.
2803
2003f3d8
TT
28042017-09-29 Tom Tromey <tom@tromey.com>
2805
2806 * stack.c (parse_frame_specification): Use std::string
2807 (info_frame_command): Use gdb::unique_xmalloc_ptr.
2808
8f8accb5
TT
28092017-09-29 Tom Tromey <tom@tromey.com>
2810
2811 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
2812
200aa7b1
TT
28132017-09-29 Tom Tromey <tom@tromey.com>
2814
2815 * utils.c (vfprintf_maybe_filtered): Use std::string.
2816 (vfprintf_unfiltered): Likewise.
2817
606aae8a
TT
28182017-09-29 Tom Tromey <tom@tromey.com>
2819
2820 * event-top.c (top_level_prompt): Return std::string.
2821 (display_gdb_prompt): Update.
2822
bd413795
TT
28232017-09-29 Tom Tromey <tom@tromey.com>
2824
2825 * unittests/common-utils-selftests.c (format): New function.
2826 (string_vprintf_tests): New function.
2827 (_initialize_common_utils_selftests): Register new tests.
2828 * common/common-utils.c (string_vprintf): New function.
2829 * common/common-utils.h (string_vprintf): Declare.
2830
256642e8
PA
28312017-09-29 Pedro Alves <palves@redhat.com>
2832
2833 * common/rsp-low.c (unpack_varlen_hex): Constify.
2834 * common/rsp-low.h (unpack_varlen_hex): Constify.
2835 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
2836 Constify.
2837 * remote.c (remote_set_permissions, read_ptid)
2838 (remote_current_thread, remote_get_threads_with_qthreadinfo)
2839 (remote_static_tracepoint_marker_at)
2840 (remote_static_tracepoint_markers_by_strid)
2841 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
2842 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
2843 (parse_tracepoint_definition, parse_tsv_definition)
2844 (parse_static_tracepoint_marker_definition): Constify.
2845 * tracepoint.h (parse_static_tracepoint_marker_definition)
2846 (parse_trace_status, parse_tracepoint_status)
2847 (parse_tracepoint_definition, parse_tsv_definition): Constify.
2848
b6bb3468
PA
28492017-09-29 Pedro Alves <palves@redhat.com>
2850
2851 * remote.c (target_buf, target_buf_size): Delete.
2852 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
2853 Use the connection's packet buffer instead.
2854 All callers adjusted.
2855 (_initialize_remote): Remove references to target_buf and
2856 target_buf_size.
2857
b2f8eb7a
PA
28582017-09-28 Pedro Alves <palves@redhat.com>
2859
2860 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2861 unittests/common-utils-selftests.c.
2862 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
2863 (COMMON_OBS): Remove utils-selftests.o.
2864 * utils-selftests.c: Move to ...
2865 * unittests/common-utils-selftests.c: ... here and rename self
2866 test to "string_printf".
2867
08302ed2
DE
28682017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
2869
2870 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
2871 having NULL cus or tus.
2872
96a5a1d3
UW
28732017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2874
2875 * arm-tdep.c: (convert_from_extended): Remove.
2876 (convert_to_extended): Likewise.
2877 (arm_extract_return_value): Use convert_typed_floating.
2878 (arm_store_return_value): Likewise.
2879
2880 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
2881 * sh-tdep.c: Do not include "floatformat.h".
2882 (sh_littlebyte_bigword_type): New function.
2883 (sh_register_convert_to_virtual): Use convert_typed_floating.
2884 (sh_register_convert_to_raw): Likewise.
2885 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
2886 (sh64_littlebyte_bigword_type): New function.
2887 (sh64_extract_return_value): Use convert_typed_floating.
2888 (sh64_register_convert_to_virtual): Likewise.
2889 (sh64_register_convert_to_raw): Likewise.
2890
0db7851f
UW
28912017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2892
2893 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
2894 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
2895
2896 * gdbtypes.h (union type_specific): Make field floatformat hold
2897 just a single struct floatformat, not an array.
2898 (floatformat_from_type): Move here.
2899 * gdbtypes.c (floatformat_from_type): Move here. Update to
2900 changed TYPE_FLOATFORMAT definition.
2901 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
2902 (recursive_dump_type): Likewise.
2903 (init_float_type): Install correct floatformat for byte order.
2904 (arch_float_type): Likewise.
2905
77b7c781
UW
29062017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2907
2908 * gdbtypes.c (init_type): Change incoming argument from
2909 length-in-bytes to length-in-bits. Assert length is a
2910 multiple of TARGET_CHAR_BITS.
2911 (arch_type, arch_flags_type): Likewise.
2912 (init_integer_type): Update call to init_type.
2913 (init_character_type): Likewise.
2914 (init_boolean_type): Likewise.
2915 (init_float_type): Likewise.
2916 (init_decfloat_type): Likewise.
2917 (init_complex_type): Likewise.
2918 (init_pointer_type): Likewise.
2919 (objfile_type): Likewise.
2920 (arch_integer_type): Update call to arch_type.
2921 (arch_character_type): Likewise.
2922 (arch_boolean_type): Likewise.
2923 (arch_float_type): Likewise.
2924 (arch_decfloat_type): Likewise.
2925 (arch_complex_type): Likewise.
2926 (arch_pointer_type): Likewise.
2927 (gdbtypes_post_init): Likewise.
2928
2929 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
2930 (read_base_type): Likewise.
2931 * mdebugread.c (basic_type): Likewise.
2932 * stabsread.c (dbx_init_float_type): Likewise.
2933 (rs6000_builtin_type): Likewise.
2934 (read_range_type): Likewise. Also, fix call to init_integer_type
2935 with erroneous length argument.
2936
2937 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
2938 * d-lang.c (build_d_types): Likewise.
2939 * f-lang.c (build_fortran_types): Likewise.
2940 * go-lang.c (build_go_types): Likewise.
2941 * opencl-lang.c (build_opencl_types): Likewise.
2942 * jit.c (finalize_symtab): Likewise.
2943 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
2944 (build_std_type_info_type): Likewise.
2945 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
2946 update call to arch_flags_type.
2947
2948 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
2949 arch_type.
2950 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
2951 * windows-tdep.c (windows_get_tlb_type): Likewise.
2952
2953 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
2954 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
2955 * m32c-tdep.c (make_types): Likewise.
2956 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
2957 (rl78_psw_type): Update call to arch_flags_type.
2958 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
2959 * rx-tdep.c (rx_psw_type): Likewise.
2960 (rx_fpsw_type): Likewise.
2961 * sparc-tdep.c (sparc_psr_type): Likewise.
2962 (sparc_fsr_type): Likewise.
2963 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
2964 (sparc64_ccr_type): Likewise.
2965 (sparc64_fsr_type): Likewise.
2966 (sparc64_fprs_type): Likewise.
2967
f21b4d5c
TT
29682017-09-27 Tom Tromey <tom@tromey.com>
2969
2970 * findcmd.c (find_command): Constify.
2971
643c2ffa
TT
29722017-09-27 Tom Tromey <tom@tromey.com>
2973
2974 * ada-tasks.c (task_command_1, task_command): Constify.
2975
510e5e56
TT
29762017-09-27 Tom Tromey <tom@tromey.com>
2977
2978 * symtab.c (maintenance_print_symbol_cache)
2979 (maintenance_flush_symbol_cache)
2980 (maintenance_print_symbol_cache_statistics): Constify.
2981
e503b191
TT
29822017-09-27 Tom Tromey <tom@tromey.com>
2983
2984 * inferior.c (detach_inferior_command, kill_inferior_command)
2985 (inferior_command): Constify.
2986
4e001312
TT
29872017-09-27 Tom Tromey <tom@tromey.com>
2988
2989 * regcache.c (regcache_print, maintenance_print_registers)
2990 (maintenance_print_raw_registers)
2991 (maintenance_print_cooked_registers)
2992 (maintenance_print_register_groups)
2993 (maintenance_print_remote_registers): Constify.
2994
77763700
TT
29952017-09-27 Tom Tromey <tom@tromey.com>
2996
2997 * printcmd.c (map_display_numbers, undisplay_command)
2998 (enable_disable_display_command, enable_display_command)
2999 (disable_display_command): Constify.
3000
4495129a
TT
30012017-09-27 Tom Tromey <tom@tromey.com>
3002
3003 * breakpoint.h (delete_command): Don't declare.
3004 * breakpoint.c (delete_command, enable_once_command)
3005 (enable_count_command, enable_delete_command, breakpoint_1)
3006 (maintenance_info_breakpoints, stopin_command, stopat_command)
3007 (delete_command, delete_trace_command, save_breakpoints)
3008 (save_breakpoints_command, save_tracepoints_command): Constify.
3009
3088cf40
TT
30102017-09-27 Tom Tromey <tom@tromey.com>
3011
3012 * macrocmd.c (macro_expand_command, macro_expand_once_command)
3013 (skip_ws, extract_identifier, macro_define_command)
3014 (macro_undef_command, macro_list_command): Constify.
3015
69f476a3
TT
30162017-09-27 Tom Tromey <tom@tromey.com>
3017
3018 * infcmd.c (environment_info, set_environment_command)
3019 (unset_environment_command, path_info, info_proc_cmd_1)
3020 (info_proc_cmd_mappings, info_proc_cmd_stat)
3021 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
3022 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
3023
c4a3e68e
TT
30242017-09-27 Tom Tromey <tom@tromey.com>
3025
3026 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
3027 Constify.
3028
c9d31bd6
TT
30292017-09-27 Tom Tromey <tom@tromey.com>
3030
3031 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
3032
1f3f85eb
TT
30332017-09-27 Tom Tromey <tom@tromey.com>
3034
3035 * demangle.c (demangle_command): Constify.
3036
9c504b5d
TT
30372017-09-27 Tom Tromey <tom@tromey.com>
3038
3039 * progspace.c (maintenance_info_program_spaces_command):
3040 Constify.
3041
6663cf91
TT
30422017-09-27 Tom Tromey <tom@tromey.com>
3043
3044 * compile/compile.c (check_raw_argument, compile_file_command)
3045 (compile_code_command, compile_print_command): Constify.
3046
34e5fa26
TT
30472017-09-27 Tom Tromey <tom@tromey.com>
3048
3049 * reggroups.c (maintenance_print_reggroups): Constify.
3050
8384c356
TT
30512017-09-27 Tom Tromey <tom@tromey.com>
3052
3053 * dwarf2read.c (save_gdb_index_command): Constify.
3054
884beb0c
TT
30552017-09-27 Tom Tromey <tom@tromey.com>
3056
3057 * stap-probe.c (info_probes_stap_command): Constify.
3058
e0b2930c
TT
30592017-09-27 Tom Tromey <tom@tromey.com>
3060
3061 * fork-child.c (unset_exec_wrapper_command): Constify.
3062
f938677d
TT
30632017-09-27 Tom Tromey <tom@tromey.com>
3064
3065 * btrace.c (get_uint, get_context_size, no_chunk)
3066 (maint_btrace_packet_history_cmd)
3067 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
3068 (maint_info_btrace_cmd): Constify.
3069
8949cb87
TT
30702017-09-27 Tom Tromey <tom@tromey.com>
3071
3072 * reverse.c (delete_bookmark_command): Constify.
3073
ac88e2de
TT
30742017-09-27 Tom Tromey <tom@tromey.com>
3075
3076 * remote.c (set_memory_packet_size)
3077 (set_memory_write_packet_size, show_memory_write_packet_size)
3078 (set_memory_read_packet_size, show_memory_read_packet_size)
3079 (compare_sections_command, packet_command, remote_put_command)
3080 (remote_get_command, remote_delete_command): Constify.
3081
bd4c9dfe
TT
30822017-09-27 Tom Tromey <tom@tromey.com>
3083
3084 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
3085 (set_mipsfpu_double_command, set_mipsfpu_none_command)
3086 (set_mipsfpu_auto_command): Constify.
3087
5e93d4c6
TT
30882017-09-27 Tom Tromey <tom@tromey.com>
3089
3090 * cli/cli-cmds.h (cd_command): Constify.
3091 * cli/cli-cmds.c (cd_command): Constify.
3092
fc41a75b
TT
30932017-09-27 Tom Tromey <tom@tromey.com>
3094
3095 * thread.c (thread_name_command, thread_find_command): Constify.
3096
67810076
TT
30972017-09-27 Tom Tromey <tom@tromey.com>
3098
3099 * probe.c (enable_probes_command, disable_probes_command):
3100 Constify.
3101
1d8b34a7
TT
31022017-09-27 Tom Tromey <tom@tromey.com>
3103
3104 * symfile.c (symbol_file_command): Constify.
3105 * gdbcore.h (deprecated_file_changed_hook): Constify.
3106 * exec.c (deprecated_file_changed_hook, exec_file_command)
3107 (file_command): Constify.
3108 * defs.h (symbol_file_command): Constify.
3109
442019e1
TT
31102017-09-27 Tom Tromey <tom@tromey.com>
3111
3112 * remote-fileio.c (set_system_call_allowed)
3113 (show_system_call_allowed): Constify.
3114
2983f7cb
TT
31152017-09-27 Tom Tromey <tom@tromey.com>
3116
3117 * tracepoint.c (delete_trace_variable_command)
3118 (tfind_end_command, tfind_start_command, tfind_pc_command)
3119 (tfind_tracepoint_command, tfind_line_command)
3120 (tfind_range_command, tfind_outside_command): Constify.
3121
4fd41b24
TT
31222017-09-27 Tom Tromey <tom@tromey.com>
3123
3124 * ax-gdb.c (maint_agent_printf_command, agent_command)
3125 (agent_eval_command): Constify.
3126
f2fc3015
TT
31272017-09-27 Tom Tromey <tom@tromey.com>
3128
3129 * tracepoint.c (info_scope_command): Constify.
3130 * python/python.c (gdbpy_decode_line): Constify.
3131 * python/py-breakpoint.c (bppy_init): Constify.
3132 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
3133 * location.h: (new_linespec_location)
3134 (string_to_event_location_basic, string_to_event_location):
3135 Constify.
3136 * location.c (new_linespec_location)
3137 (string_to_event_location_basic, string_to_event_location):
3138 Constify.
3139 * linespec.h (decode_line_with_current_source)
3140 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
3141 * linespec.c (linespec_lex_to_end)
3142 (decode_line_with_current_source)
3143 (decode_line_with_last_displayed): Constify.
3144 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
3145 Constify.
3146 * cli/cli-cmds.c (edit_command, list_command): Constify.
3147 * breakpoint.h (until_break_command, watch_command_wrapper)
3148 (awatch_command_wrapper, rwatch_command_wrapper)
3149 (init_ada_exception_breakpoint): Constify.
3150 * breakpoint.c (break_command_1, dprintf_command)
3151 (break_range_command, watch_command_wrapper)
3152 (rwatch_command_wrapper, awatch_command_wrapper)
3153 (until_break_command, init_ada_exception_breakpoint)
3154 (strace_marker_create_sals_from_location, trace_command)
3155 (ftrace_command, strace_command, struct tracepoint): Constify.
3156 * ax-gdb.c (agent_command_1): Constify.
3157 * ada-lang.c (ada_exception_sal): Constify.
3158
8c2f95f4
TT
31592017-09-27 Tom Tromey <tom@tromey.com>
3160
3161 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
3162 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
3163 (get_context_size, no_chunk, get_insn_history_modifiers)
3164 (cmd_record_insn_history, get_call_history_modifiers)
3165 (cmd_record_call_history): Constify.
3166
a0d65762
TT
31672017-09-27 Tom Tromey <tom@tromey.com>
3168
3169 * source.c (show_substitute_path_command)
3170 (unset_substitute_path_command, set_substitute_path_command):
3171 Constify.
3172
58971144
TT
31732017-09-27 Tom Tromey <tom@tromey.com>
3174
3175 * typeprint.c (maintenance_print_type): Constify.
3176 * maint.c (maintenance_dump_me, maintenance_demangle)
3177 (maintenance_time_display, maintenance_info_sections)
3178 (maintenance_print_statistics, maintenance_deprecate)
3179 (maintenance_undeprecate): Constify.
3180 (maintenance_do_deprecate): Constify. Use std::string.
3181 (maintenance_selftest): Constify.
3182 * gdbtypes.h (maintenance_print_type): Constify.
3183
c482f52c
TT
31842017-09-27 Tom Tromey <tom@tromey.com>
3185
3186 * hppa-tdep.c (unwind_command): Constify.
3187
e100df1a
TT
31882017-09-27 Tom Tromey <tom@tromey.com>
3189
3190 * target-descriptions.c (unset_tdesc_filename_cmd)
3191 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
3192 Constify.
3193
31d56ade
TT
31942017-09-27 Tom Tromey <tom@tromey.com>
3195
3196 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
3197
b961da0b
TT
31982017-09-27 Tom Tromey <tom@tromey.com>
3199
3200 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
3201
e2d8ae16
TT
32022017-09-27 Tom Tromey <tom@tromey.com>
3203
3204 * tui/tui-regs.c (tui_reg_command): Constify.
3205
863779b0
TT
32062017-09-27 Tom Tromey <tom@tromey.com>
3207
3208 * skip.c (skip_file_command, skip_function_command)
3209 (skip_enable_command, skip_disable_command, skip_delete_command):
3210 Constify.
3211
cdb34d4a
TT
32122017-09-27 Tom Tromey <tom@tromey.com>
3213
3214 * record-btrace.c (cmd_record_btrace_bts_start)
3215 (cmd_record_btrace_pt_start): Constify.
3216
e99c83e7
TT
32172017-09-27 Tom Tromey <tom@tromey.com>
3218
3219 * symmisc.c (maintenance_print_symbols)
3220 (maintenance_print_msymbols, maintenance_print_objfiles)
3221 (maintenance_info_symtabs, maintenance_check_symtabs)
3222 (maintenance_expand_symtabs, maintenance_info_line_tables):
3223 Constify.
3224
32faf971
TT
32252017-09-27 Tom Tromey <tom@tromey.com>
3226
3227 * top.c (new_ui_command): Constify.
3228
2cf311eb
TT
32292017-09-27 Tom Tromey <tom@tromey.com>
3230
3231 * symfile.c (add_symbol_file_command)
3232 (remove_symbol_file_command, list_overlays_command)
3233 (map_overlay_command, unmap_overlay_command)
3234 (overlay_auto_command, overlay_manual_command)
3235 (overlay_off_command, overlay_load_command): Constify.
3236
e6738699
TT
32372017-09-27 Tom Tromey <tom@tromey.com>
3238
3239 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3240 (info_spu_mailbox_command, info_spu_dma_command)
3241 (info_spu_proxydma_command): Constify.
3242
aa360cd5
TT
32432017-09-27 Tom Tromey <tom@tromey.com>
3244
3245 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
3246
898241a5
TT
32472017-09-27 Tom Tromey <tom@tromey.com>
3248
3249 * cli/cli-script.c (user_defined_command): Constify.
3250
2d0ac106
TT
32512017-09-27 Tom Tromey <tom@tromey.com>
3252
3253 * cli/cli-dump.c (dump_memory_command, dump_value_command)
3254 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
3255 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
3256 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
3257 (dump_binary_value, append_binary_memory, append_binary_value):
3258 Constify.
3259 (struct dump_context) <func>: Constify.
3260 (add_dump_command): Update.
3261
dede02ce
TT
32622017-09-27 Tom Tromey <tom@tromey.com>
3263
3264 * cli/cli-cmds.c (show_version, show_configuration)
3265 (source_command, show_user): Constify.
3266
d3cb6b99
TT
32672017-09-27 Tom Tromey <tom@tromey.com>
3268
3269 * target.c (maintenance_print_target_stack): Constify.
3270
1970a12f
TT
32712017-09-27 Tom Tromey <tom@tromey.com>
3272
3273 * interps.c (interpreter_exec_cmd): Constify.
3274
41243651
TT
32752017-09-27 Tom Tromey <tom@tromey.com>
3276
3277 * record-full.c (cmd_record_full_restore): Constify.
3278
4465d9db
TT
32792017-09-27 Tom Tromey <tom@tromey.com>
3280
3281 * memattr.c (enable_mem_command, disable_mem_command)
3282 (delete_mem_command): Constify.
3283
ad25e423
TT
32842017-09-27 Tom Tromey <tom@tromey.com>
3285
3286 * value.c (show_convenience): Constify.
3287
d64097b1
TT
32882017-09-27 Tom Tromey <tom@tromey.com>
3289
3290 * gdbcore.h (core_file_command): Update.
3291 * corefile.c (core_file_command): Constify.
3292
4d4589ef
TT
32932017-09-27 Tom Tromey <tom@tromey.com>
3294
3295 * user-regs.c (maintenance_print_user_registers): Constify.
3296
32a7bf17
TT
32972017-09-27 Tom Tromey <tom@tromey.com>
3298
3299 * cp-namespace.c (maintenance_cplus_namespace): Constify.
3300
4a475551
TT
33012017-09-27 Tom Tromey <tom@tromey.com>
3302
3303 * cp-support.c (first_component_command): Constify.
3304
990b9f9f
TT
33052017-09-27 Tom Tromey <tom@tromey.com>
3306
3307 * psymtab.c (maintenance_print_psymbols)
3308 (maintenance_info_psymtabs, maintenance_check_psymtabs):
3309 Constify.
3310
c281872e
TT
33112017-09-27 Tom Tromey <tom@tromey.com>
3312
3313 * windows-tdep.c (display_tib): Constify.
3314
5b64bf74
TT
33152017-09-27 Tom Tromey <tom@tromey.com>
3316
3317 * linux-fork.c (delete_checkpoint_command)
3318 (detach_checkpoint_command): Constify.
3319
4ada038f
TT
33202017-09-27 Tom Tromey <tom@tromey.com>
3321
3322 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
3323
57f5a81b
TT
33242017-09-27 Tom Tromey <tom@tromey.com>
3325
3326 * arc-tdep.c (dump_arc_instruction_command): Constify.
3327
b0a8e6c4
TT
33282017-09-27 Tom Tromey <tom@tromey.com>
3329
3330 * valprint.c (set_radix, show_radix): Constify.
3331
8d97dc1c
TT
33322017-09-27 Tom Tromey <tom@tromey.com>
3333
3334 * dtrace-probe.c (info_probes_dtrace_command): Constify.
3335
eb7c454d
TT
33362017-09-27 Tom Tromey <tom@tromey.com>
3337
3338 * command.h (not_just_help_class_command): Update.
3339 * cli/cli-decode.h (not_just_help_class_command): Update.
3340 * cli/cli-decode.c (not_just_help_class_command): Constify.
3341
e4e33335
TT
33422017-09-27 Tom Tromey <tom@tromey.com>
3343
3344 * gdb_bfd.c (maintenance_info_bfds): Constify.
3345
0450cc4c
TT
33462017-09-27 Tom Tromey <tom@tromey.com>
3347
3348 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
3349 overloads.
3350 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
3351 (do_const_cfunc): New function.
3352 (cmd_cfunc_eq): New overload.
3353 (cli_user_command_p): Check do_const_cfunc.
3354 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
3355 const_cfunc.
3356 * command.h (add_cmd): Add const overload and no-function
3357 overload.
3358 (set_cmd_cfunc): Add const overload.
3359 (cmd_const_cfunc_ftype): Declare.
3360 (cmd_cfunc_eq): Add const overload.
3361 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
3362 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
3363 overload.
3364
a9bbfbd8
TT
33652017-09-27 Tom Tromey <tom@tromey.com>
3366
3367 * macroexp.c (get_next_token_for_substitution): New function.
3368 (substitute_args): Call it. Check for __VA_OPT__.
3369
5230b05a
WT
33702017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
3371 Pedro Alves <palves@redhat.com>
3372
3373 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
3374 producer_is_icc_lt_14.
3375 (producer_is_icc_lt_14): New function.
3376 (check_producer): Add code for checking version of ICC.
3377 (producer_is_icc): Move to producer.c.
3378 (read_structure_type): Restrict ICC workaround to ICC<14.
3379 * producer.c: Include selftest.h.
3380 (producer_is_icc, producer_parsing_tests, _initialize_producer):
3381 New functions.
3382 * producer.h (producer_is_icc): New declaration.
3383
b32b108a
WT
33842017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
3385
3386 * Makefile.in (SFILES): Add producer.c.
3387 (COMMON_OBS): Add producer.o
3388 * amd64-tdep.c (producer.h): Add new include.
3389 * dwarf2read.c (producer.h): Add new include.
3390 * producer.c: New file.
3391 * producer.h: New file.
3392 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
3393 producer.c.
3394 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
3395 producer.h.
3396
5007d765
MK
33972017-09-26 Matthias Klose <doko@ubuntu.com>
3398
3399 * configure.ac: Search ncursesw before ncurses.
3400 Check ncursesw/ncurses.h before ncurses/ncurses.h.
3401 * gdb_curses.h: Include <ncursesw/ncurses.h>
3402 * config.in, configure: Regenerate.
3403
281c4447
RO
34042017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3405
3406 PR gdb/22185
3407 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
3408 obsolete.
3409 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
3410 Remove i386sol2 support.
3411 * configure.nat <i386sol2>: Remove.
3412 <sol2-64>: Fold into ...
3413 <sol2>: ... this.
3414 Move common settings to default section.
3415 Add sol-thread.o.
3416 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
3417 x86_64-*-solaris2.1[0-9]*>: Rename to ...
3418 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
3419 <i[34567]86-*-solaris*>: Remove.
3420 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
3421
3422 * configure.ac: Remove wctype in libw check.
3423 (_MSE_INT_H): Don't define on Solaris 7-9.
3424 <solaris*>: Remove libthread_db.so.1 check.
3425 * configure: Regenerate.
3426 * config.in: Regenerate.
3427
3428 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
3429 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
3430 (gdb_ps_size_t): Remove.
3431 Use base types in users.
3432 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
3433
3434 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
3435
39b06c20
RO
34362017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3437
3438 PR build/22206
3439 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
3440 (adi_is_addr_mapped): Likewise.
3441 (PSR_ICC): Don't redefine.
3442 (PSR_IMPL): Likewise.
3443
6c3e20f1
TT
34442017-09-25 Tom Tromey <tom@tromey.com>
3445
3446 * regcache.c (regcache::dump): Use string_printf.
3447
b292235f
TT
34482017-09-25 Tom Tromey <tom@tromey.com>
3449
3450 * regcache.c (class regcache_invalidator): New.
3451 (struct register_to_invalidate): Remove.
3452 (make_cleanup_regcache_invalidate): Remove.
3453 (regcache::raw_write): Use regcache_invalidator.
3454
9ac86b52
TT
34552017-09-25 Tom Tromey <tom@tromey.com>
3456
3457 * spu-tdep.c (spu2ppu_sniffer): Update.
3458 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
3459 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
3460 Remove.
3461 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
3462 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
3463 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
3464 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
3465 (frame_pop): Update.
3466
c0e383c6
TT
34672017-09-25 Tom Tromey <tom@tromey.com>
3468
3469 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
3470 * regcache.h (regcache_xfree): Don't declare.
3471 * regcache.c (regcache_xfree): Remove.
3472 (do_regcache_xfree): Use delete.
3473 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
3474 * linux-fork.c (free_fork): Use delete.
3475 (fork_save_infrun_state): Likewise.
3476 * jit.c (jit_dealloc_cache): Use delete.
3477 * infrun.c (discard_infcall_suspend_state): Use delete.
3478
791199cc
TT
34792017-09-25 Tom Tromey <tom@tromey.com>
3480
3481 * regcache.h (regcache_xmalloc): Don't declare.
3482 (regcache_raw_set_cached_value): Update comment.
3483 * regcache.c (regcache_xmalloc): Remove.
3484 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
3485 * jit.c (jit_frame_sniffer): Use new.
3486 * frame.c (frame_save_as_regcache): Use new.
3487
289e23aa
AA
34882017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3489
3490 * NEWS: Advertise support for guarded-storage registers on IBM z.
3491
1b63490c
AA
34922017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3493
3494 * s390-linux-nat.c (have_regset_gs): New static variable.
3495 (s390_linux_fetch_inferior_registers): Handle guarded-storage
3496 control block and guarded-storage broadcast control regsets.
3497 (s390_read_description): Detect whether the target has
3498 guarded-storage support, return appropriate tdesc.
3499 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
3500 (features/s390x-gs-linux64.c): Likewise.
3501 (struct gdbarch_tdep) <have_gs>: New field.
3502 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
3503 (s390_gsbc_regset): New variables.
3504 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
3505 and s390_gsbc_regset, if applicable.
3506 (s390_core_read_description): Check whether core file was from a
3507 target with guarded-storage support; include appropriate regsets.
3508 (s390_gdbarch_init): Add registers for guarded-storage support.
3509 (_initialize_s390_tdep): Initialize new target descriptions that
3510 include registers for guarded-storage support.
3511 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
3512 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
3513 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
3514 (S390_NUM_REGS): Adjust macro definition.
3515 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
3516 (tdesc_s390x_gs_linux64): New declarations.
3517
96235dc1
AA
35182017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3519
3520 * features/s390-gs-linux64.xml: New file.
3521 * features/s390-gs.xml: New file.
3522 * features/s390-gsbc.xml: New file.
3523 * features/s390x-gs-linux64.xml: New file.
3524 * features/Makefile (WHICH): Add s390-gs-linux64 and
3525 s390x-gs-linux64.
3526 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
3527 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
3528 * features/s390-gs-linux64.c: New generated file.
3529 * features/s390x-gs-linux64.c: New file.
3530 * regformats/s390-gs-linux64.dat: New file.
3531 * regformats/s390x-gs-linux64.dat: New file.
3532
b4a7c699
TT
35332017-09-23 Tom Tromey <tom@tromey.com>
3534
3535 * defs.h (make_cleanup_override_quit_handler): Don't declare.
3536
c2f97536
TT
35372017-09-22 Tom Tromey <tom@tromey.com>
3538
3539 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
3540 type to scoped_restore_tmpl.
3541 <scoped_input_handler>: Initialize m_quit_handler directly.
3542
43573013
SDJ
35432017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
3544
3545 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
3546 (cd_command): Likewise. Free "current_directory" before
3547 assigning to it.
3548 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
3549 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
3550 * top.c (gdb_dirbuf): Remove global declaration.
3551 * top.h (gdb_dirbuf): Likewise.
3552
6ec2e0f5
SDJ
35532017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
3554
3555 * gnulib/aclocal.m4: Regenerate.
3556 * gnulib/config.in: Regenerate.
3557 * gnulib/configure: Regenerate.
3558 * gnulib/import/Makefile.am: Regenerate.
3559 * gnulib/import/Makefile.in: Regenerate.
3560 * gnulib/import/assure.h: New file.
3561 * gnulib/import/at-func.c: Likewise
3562 * gnulib/import/chdir-long.c: New file.
3563 * gnulib/import/chdir-long.h: New file.
3564 * gnulib/import/cloexec.c: New file.
3565 * gnulib/import/cloexec.h: New file.
3566 * gnulib/import/close.c: New file.
3567 * gnulib/import/closedir.c: New file.
3568 * gnulib/import/dirent-private.h: New file.
3569 * gnulib/import/dup-safer.c: New file.
3570 * gnulib/import/dup.c: New file.
3571 * gnulib/import/dup2.c: New file.
3572 * gnulib/import/error.c: New file.
3573 * gnulib/import/error.h: New file.
3574 * gnulib/import/exitfail.c: New file.
3575 * gnulib/import/exitfail.h: New file.
3576 * gnulib/import/fchdir.c: New file.
3577 * gnulib/import/fcntl.c: New file.
3578 * gnulib/import/fcntl.in.h: New file.
3579 * gnulib/import/fd-hook.c: New file.
3580 * gnulib/import/fd-hook.h: New file.
3581 * gnulib/import/fd-safer.c: New file.
3582 * gnulib/import/fdopendir.c: New file.
3583 * gnulib/import/filename.h: New file.
3584 * gnulib/import/filenamecat-lgpl.c: New file.
3585 * gnulib/import/filenamecat.h: New file.
3586 * gnulib/import/fstat.c: New file.
3587 * gnulib/import/fstatat.c: New file.
3588 * gnulib/import/getcwd-lgpl.c: New file.
3589 * gnulib/import/getcwd.c: New file.
3590 * gnulib/import/getdtablesize.c: New file.
3591 * gnulib/import/getlogin_r.c: New file.
3592 * gnulib/import/getprogname.c: New file.
3593 * gnulib/import/getprogname.h: New file.
3594 * gnulib/import/gettext.h: New file.
3595 * gnulib/import/glob-libc.h: New file.
3596 * gnulib/import/glob.c: New file.
3597 * gnulib/import/glob.in.h: New file.
3598 * gnulib/import/intprops.h: New file.
3599 * gnulib/import/m4/chdir-long.m4: New file.
3600 * gnulib/import/m4/close.m4: New file.
3601 * gnulib/import/m4/closedir.m4: New file.
3602 * gnulib/import/m4/d-ino.m4: New file.
3603 * gnulib/import/m4/d-type.m4: New file.
3604 * gnulib/import/m4/dup.m4: New file.
3605 * gnulib/import/m4/dup2.m4: New file.
3606 * gnulib/import/m4/error.m4: New file.
3607 * gnulib/import/m4/fchdir.m4: New file.
3608 * gnulib/import/m4/fcntl.m4: New file.
3609 * gnulib/import/m4/fcntl_h.m4: New file.
3610 * gnulib/import/m4/fdopendir.m4: New file.
3611 * gnulib/import/m4/filenamecat.m4: New file.
3612 * gnulib/import/m4/fstat.m4: New file.
3613 * gnulib/import/m4/fstatat.m4: New file.
3614 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
3615 * gnulib/import/m4/getcwd-path-max.m4: New file.
3616 * gnulib/import/m4/getcwd.m4: New file.
3617 * gnulib/import/m4/getdtablesize.m4: New file.
3618 * gnulib/import/m4/getlogin_r.m4: New file.
3619 * gnulib/import/m4/getprogname.m4: New file.
3620 * gnulib/import/m4/glob.m4: New file.
3621 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3622 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3623 * gnulib/import/m4/mempcpy.m4: New file.
3624 * gnulib/import/m4/memrchr.m4: New file.
3625 * gnulib/import/m4/mode_t.m4: New file.
3626 * gnulib/import/m4/msvc-inval.m4: New file.
3627 * gnulib/import/m4/msvc-nothrow.m4: New file.
3628 * gnulib/import/m4/open.m4: New file.
3629 * gnulib/import/m4/openat.m4: New file.
3630 * gnulib/import/m4/opendir.m4: New file.
3631 * gnulib/import/m4/readdir.m4: New file.
3632 * gnulib/import/m4/realloc.m4: New file.
3633 * gnulib/import/m4/rewinddir.m4: New file.
3634 * gnulib/import/m4/save-cwd.m4: New file.
3635 * gnulib/import/m4/strdup.m4: New file.
3636 * gnulib/import/m4/strerror.m4: New file.
3637 * gnulib/import/m4/unistd-safer.m4: New file.
3638 * gnulib/import/mempcpy.c: New file.
3639 * gnulib/import/memrchr.c: New file.
3640 * gnulib/import/msvc-inval.c: New file.
3641 * gnulib/import/msvc-inval.h: New file.
3642 * gnulib/import/msvc-nothrow.c: New file.
3643 * gnulib/import/msvc-nothrow.h: New file.
3644 * gnulib/import/open.c: New file.
3645 * gnulib/import/openat-die.c: New file.
3646 * gnulib/import/openat-priv.h: New file.
3647 * gnulib/import/openat-proc.c: New file.
3648 * gnulib/import/openat.c: New file.
3649 * gnulib/import/openat.h: New file.
3650 * gnulib/import/opendir.c: New file.
3651 * gnulib/import/pipe-safer.c: New file.
3652 * gnulib/import/readdir.c: New file.
3653 * gnulib/import/realloc.c: New file.
3654 * gnulib/import/rewinddir.c: New file.
3655 * gnulib/import/save-cwd.c: New file.
3656 * gnulib/import/save-cwd.h: New file.
3657 * gnulib/import/strdup.c: New file.
3658 * gnulib/import/strerror-override.c: New file.
3659 * gnulib/import/strerror-override.h: New file.
3660 * gnulib/import/strerror.c: New file.
3661 * gnulib/import/unistd--.h: New file.
3662 * gnulib/import/unistd-safer.h: New file.
3663 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
3664 "getcwd" and "glob".
3665 * ser-tcp.c: Undefine "close" before redefining it.
3666
432ae719
SM
36672017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3668
3669 * guile/scm-value.c (gdbscm_value_address): Initialize address,
3670 get rid of res_val.
3671
4fa7574e
RO
36722017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3673
3674 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
3675 <sol2,sparc>: Likewise.
3676 <sol2-64,i386>: Likewise.
3677
3678 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
3679 -Wdeprecated-declarations on *-*-solaris*.
3680 * configure: Regenerate.
3681
3682 * procfs.c: Include "nat/inferior.h".
3683 (procfs_info_proc): Fix typo.
3684
f6327dcb
KB
36852017-09-21 Kevin Buettner <kevinb@redhat.com>
3686
3687 * remote.c (vector): Include.
3688 (struct private_thread_info): Add field, thread_handle.
3689 (free_private_thread_info): Deallocate storage associated with
3690 thread handle.
3691 (get_private_info_thread): Initialize `thread_handle' field.
3692 (struct thread_item): Add field, thread_handle.
3693 (clear_threads_listing_context): Deallocate storage associated
3694 with thread handle.
3695 (start_thread): Add support for "handle" attribute.
3696 (thread_attributes): Add "handle".
3697 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
3698 field.
3699 (remote_update_thread_list): Update thread_handle.
3700 (remote_thread_handle_to_thread_info): New function.
3701 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
3702
fbbe5337
KB
37032017-09-21 Kevin Buettner <kevinb@redhat.com>
3704
3705 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
3706 function.
3707 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
3708 * python/python-internal.h (thread_object_type): Declare.
3709
e04ee09e
KB
37102017-09-21 Kevin Buettner <kevinb@redhat.com>
3711
3712 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
3713 (target_thread_handle_to_thread_info): Declare.
3714 * target.c (target_thread_handle_to_thread_info): New function.
3715 * target-delegates.c: Regenerate.
3716 * gdbthread.h (find_thread_by_handle): Declare.
3717 * thread.c (find_thread_by_handle): New function.
3718 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
3719 function.
3720 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
3721
1e5b66ed
SM
37222017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3723
3724 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
3725
ebe48ba0
SM
37262017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3727
3728 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
3729
0a0bf5dc
YQ
37302017-09-21 Yao Qi <yao.qi@linaro.org>
3731
3732 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
3733 to gdb_target_obs.
3734
d1b0a7bf
TT
37352017-09-20 Tom Tromey <tom@tromey.com>
3736
3737 * breakpoint.c (struct counted_command_line): Remove.
3738 (breakpoint_commands): Update.
3739 (alloc_counted_command_line, incref_counted_command_line)
3740 (decref_counted_command_line, do_cleanup_counted_command_line)
3741 (make_cleanup_decref_counted_command_line): Remove.
3742 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
3743 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
3744 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
3745 (save_breakpoints): Update.
3746 * breakpoint.h (counted_command_line): Now a typedef to
3747 shared_ptr.
3748 (struct breakpoint) <commands>: Now a counted_command_line.
3749 (struct bpstats) <command>: Likewise.
3750
48649e1b
TT
37512017-09-20 Tom Tromey <tom@tromey.com>
3752
3753 * breakpoint.c (struct commands_info, do_map_commands_command):
3754 Remove.
3755 (commands_command_1): Update.
3756 (iterate_over_related_breakpoints): Take a function_view.
3757 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
3758 (delete_command): Update.
3759 (map_breakpoint_numbers): Take a function_view.
3760 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
3761 (disable_command): Update.
3762 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
3763 (enable_command): Update.
3764 (struct disp_data, do_enable_breakpoint_disp)
3765 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
3766 (do_map_enable_delete_breakpoint): Remove.
3767 (enable_once_command, enable_count_command, enable_delete_command)
3768 (delete_trace_variable_command): Update.
3769
04afa70c
TT
37702017-09-20 Tom Tromey <tom@tromey.com>
3771
3772 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
3773 (bpstat_clear): Use delete.
3774 (bpstats): New constructors.
3775 (bpstat_copy, bpstat_stop_status): Use new.
3776 (dprintf_after_condition_true): Update.
3777 * breakpoint.h (bpstats::bpstats): Add constructors.
3778 (bpstats::~bpstats): Add destructor.
3779
c83833f4
PA
37802017-09-20 Pedro Alves <palves@redhat.com>
3781
3782 * eval.c (make_params): Delete, refactored as ...
3783 (class fake_method): ... this new type's ctor.
3784 (fake_method::~fake_method): New.
3785 (evaluate_subexp_standard): Use 'fake_method'.
3786
223ffa71
TT
37872017-09-20 Tom Tromey <tom@tromey.com>
3788
3789 * windows-nat.c (get_windows_debug_event, windows_wait)
3790 (do_initial_windows_stuff, windows_attach): Update.
3791 * utils.c (vwarning, internal_vproblem): Update.
3792 (ui_unregister_input_event_handler_cleanup)
3793 (prepare_to_handle_input): Remove.
3794 (class scoped_input_handler): New.
3795 (defaulted_query, prompt_for_continue): Update.
3796 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
3797 Update.
3798 * top.c (undo_terminal_modifications_before_exit): Update.
3799 * target/target.h (target_terminal_init, target_terminal_inferior)
3800 (target_terminal_ours): Don't declare.
3801 (class target_terminal): New.
3802 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
3803 (target_terminal_ours_for_output)
3804 (make_cleanup_restore_target_terminal): Don't declare.
3805 (target_terminal_info): Remove.
3806 * target.c (enum terminal_state, terminal_state): Remove.
3807 (target_terminal::terminal_state): Define.
3808 (target_terminal::init): Rename from target_terminal_init.
3809 (target_terminal::inferior): Rename from
3810 target_terminal_inferior.
3811 (target_terminal::ours): Rename from target_terminal_ours.
3812 (target_terminal::ours_for_output): Rename from
3813 target_terminal_ours_for_output.
3814 (target_terminal::info): New method.
3815 (cleanup_restore_target_terminal)
3816 (make_cleanup_restore_target_terminal): Remove.
3817 * solib.c (handle_solib_event): Update.
3818 * remote.c (remote_serial_quit_handler): Update.
3819 (remote_terminal_inferior, remote_wait_as): Update.
3820 * record-full.c (record_full_wait_1): Update.
3821 * nto-procfs.c (procfs_create_inferior): Update.
3822 * nat/fork-inferior.c (startup_inferior): Update.
3823 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
3824 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
3825 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
3826 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
3827 (mi_breakpoint_created, mi_breakpoint_deleted)
3828 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
3829 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
3830 (mi_user_selected_context_changed, report_initial_inferior):
3831 Update.
3832 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
3833 (linux_nat_terminal_inferior): Update.
3834 * infrun.c (follow_fork_inferior)
3835 (handle_vfork_child_exec_or_exit, do_target_resume)
3836 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
3837 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
3838 Update.
3839 * inflow.c (child_terminal_init, info_terminal_command): Update.
3840 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
3841 (attach_command): Update.
3842 * infcall.c (call_thread_fsm_should_stop): Update.
3843 * gnu-nat.c (gnu_attach): Update.
3844 * extension.c (struct active_ext_lang_state)
3845 (restore_active_ext_lang): Update.
3846 * exceptions.c (print_flush): Update.
3847 * event-top.c (async_enable_stdin, default_quit_handler): Update.
3848 (struct quit_handler_cleanup_data, restore_quit_handler)
3849 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
3850 Remove.
3851 * cp-support.c (gdb_demangle): Update.
3852 * breakpoint.c (update_inserted_breakpoint_locations)
3853 (insert_breakpoint_locations, handle_jit_event)
3854 (disable_breakpoints_in_unloaded_shlib): Update.
3855 * annotate.c (annotate_breakpoints_invalid)
3856 (annotate_frames_invalid): Update.
3857
013af3fc
TT
38582017-09-20 Tom Tromey <tom@tromey.com>
3859
3860 * main.c (catch_command_errors): Rename from
3861 catch_command_errors_const.
3862 (captured_main_1): Update.
3863
06871ae8
PA
38642017-09-20 Pedro Alves <palves@redhat.com>
3865
3866 * cli/cli-cmds.c (list_command): Use print_sal_location.
3867 (print_sal_location): New function.
3868 (ambiguous_line_spec): Use print_sal_location.
3869 * linespec.c (symbol_to_sal): Record the symbol in the sal.
3870 * symtab.c (find_function_start_sal): Likewise.
3871 * symtab.h (symtab_and_line::symbol): New field.
3872
e5f25bc5
PA
38732017-09-20 Pedro Alves <palves@redhat.com>
3874
3875 * linespec.c (minsym_found): Handle non-text minsyms.
3876 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
3877
1b7fa39e
WT
38782017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
3879
3880 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
3881 backslash.
3882
37dd0825
WT
38832017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
3884
3885 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
3886 vmovups instead vmovaps.
3887 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
3888
4e5a4f58
JB
38892017-09-19 John Baldwin <jhb@FreeBSD.org>
3890
3891 * NEWS (Changes since GDB 8.0): Add starti.
3892 * infcmd.c (enum run_break): New.
3893 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
3894 case.
3895 (run_command): Use enum run_how.
3896 (start_command): Likewise.
3897 (starti_command): New function.
3898 (RUN_ARGS_HELP): New macro.
3899 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
3900 commands. Add starti command.
3901
aa70c9f1
YQ
39022017-09-19 Yao Qi <yao.qi@linaro.org>
3903
3904 * Makefile.in (monitor.o): Remove the rule.
3905
d6541620
YQ
39062017-09-19 Yao Qi <yao.qi@linaro.org>
3907
3908 * annotate.h (struct annotate_arg_emitter): Use
3909 DISABLE_COPY_AND_ASSIGN.
3910 * common/refcounted-object.h (refcounted_object): Likewise.
3911 * completer.h (struct completion_result): Likewise.
3912 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
3913 * filename-seen-cache.h (filename_seen_cache): Likewise.
3914 * gdbcore.h (thread_section_name): Likewise.
3915 * gdb_regex.h (compiled_regex): Likewise.
3916 * gdbthread.h (scoped_restore_current_thread): Likewise.
3917 * inferior.h (scoped_restore_current_inferior): Likewise.
3918 * jit.c (jit_reader): Likewise.
3919 * linespec.h (struct linespec_result): Likewise.
3920 * mi/mi-parse.h (struct mi_parse): Likewise.
3921 * nat/fork-inferior.c (execv_argv): Likewise.
3922 * progspace.h (scoped_restore_current_program_space): Likewise.
3923 * python/python-internal.h (class gdbpy_enter): Likewise.
3924 * regcache.h (regcache): Likewise.
3925 * target-descriptions.c (struct tdesc_reg): Likewise.
3926 (struct tdesc_type): Likewise.
3927 (struct tdesc_feature): Likewise.
3928 * ui-out.h (ui_out_emit_type): Likewise.
3929
0615127c
SM
39302017-09-18 Simon Marchi <simon.marchi@ericsson.com>
3931
3932 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
3933 label abort_expression.
3934
5e187554
SM
39352017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3936
3937 * common/buffer.c (buffer_xml_printf): Adjust.
3938 * common/xml-utils.c (xml_escape_text): Change return type to
3939 std::string, update code accordingly.
3940 * common/xml-utils.h (xml_escape_text): Change return type to
3941 std::string.
3942 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
3943 * windows-tdep.c (windows_xfer_shared_library): Adjust.
3944 * unittests/xml-utils-selftests.c (test_xml_escape_text):
3945 Adjust.
3946
c3d7b541
SM
39472017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3948
3949 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
3950 (SUBDIR_UNITTESTS_OBS): Add new object file.
3951 * unittests/xml-utils-selftests.c: New file.
3952
1526853e
SM
39532017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3954
3955 * common/selftest.h (selftest): New struct/interface.
3956 (register_test): Add name parameter, add new overload.
3957 (run_tests): Add filter parameter.
3958 (for_each_selftest_ftype): New typedef.
3959 (for_each_selftest): New declaration.
3960 * common/selftest.c (tests): Change type to
3961 map<string, unique_ptr<selftest>>.
3962 (simple_selftest): New struct.
3963 (register_test): New function.
3964 (register_test): Add name parameter and use it.
3965 (run_tests): Add filter parameter and use it. Add prints.
3966 Adjust to vector -> map change.
3967 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
3968 registering selftests.
3969 * arm-tdep.c (_initialize_arm_tdep): Likewise.
3970 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
3971 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
3972 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
3973 * findvar.c (_initialize_findvar): Likewise.
3974 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
3975 * maint.c (maintenance_selftest): Update call to run_tests.
3976 (maintenance_info_selftests): New function.
3977 (_initialize_maint_cmds): Register "maintenance info selftests"
3978 command. Update "maintenance selftest" doc.
3979 * regcache.c (_initialize_regcache): Add names when registering
3980 selftests.
3981 * rust-exp.y (_initialize_rust_exp): Likewise.
3982 * selftest-arch.c (gdbarch_selftest): New struct.
3983 (gdbarch_tests): Remove.
3984 (register_test_foreach_arch): Add name parameter. Call
3985 register_test.
3986 (tests_with_arch): Remove, move most content to
3987 gdbarch_selftest::operator().
3988 (_initialize_selftests_foreach_arch): Remove.
3989 * selftest-arch.h (register_test_foreach_arch): Add name
3990 parameter.
3991 (run_tests_with_arch): New declaration.
3992 * utils-selftests.c (_initialize_utils_selftests): Add names
3993 when registering selftests.
3994 * utils.c (_initialize_utils): Likewise.
3995 * unittests/array-view-selftests.c
3996 (_initialize_array_view_selftests): Likewise.
3997 * unittests/environ-selftests.c (_initialize_environ_selftests):
3998 Likewise.
3999 * unittests/function-view-selftests.c
4000 (_initialize_function_view_selftests): Likewise.
4001 * unittests/offset-type-selftests.c
4002 (_initialize_offset_type_selftests): Likewise.
4003 * unittests/optional-selftests.c
4004 (_initialize_optional_selftests): Likewise.
4005 * unittests/scoped_restore-selftests.c
4006 (_initialize_scoped_restore_selftests): Likewise.
4007 * NEWS: Document "maintenance selftest" and "maint info
4008 selftests".
4009
5846367a
SM
40102017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4011
4012 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
4013 scoped_restore.
4014
bd77e8ff
SM
40152017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4016
4017 * mi/mi-main.c (mi_load_progress): Make uiout variable
4018 a unique_ptr.
4019
26a67918
PA
40202017-09-15 Pedro Alves <palves@redhat.com>
4021
4022 * compile/compile-c-types.c (convert_enum, convert_int)
4023 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
4024
3f8a7804
SM
40252017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4026
4027 * dwarf2read.c (copy_string): Remove.
4028 (parse_macro_definition): Replace copy_string with savestring.
4029
8d200706
YQ
40302017-09-15 Yao Qi <yao.qi@linaro.org>
4031
4032 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
4033 gdb_target_obs.
4034 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
4035 Likewise.
4036 (i[34567]86-*-linux*): Likewise.
4037
d185219d
SM
40382017-09-14 Simon Marchi <simon.marchi@ericsson.com>
4039
4040 * dwarf2expr.h (dwarf_stack_value): Add constructor.
4041 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
4042 <stack>: Change type to std::vector.
4043 <stack_len, stack_allocated>: Remove.
4044 <grow_stack>: Remove.
4045 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
4046 (dwarf_expr_context::~dwarf_expr_context): Remove.
4047 (dwarf_expr_context::grow_stack): Remove.
4048 (dwarf_expr_context::push): Adjust.
4049 (dwarf_expr_context::pop): Adjust.
4050 (dwarf_expr_context::fetch): Adjust.
4051 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
4052 (dwarf_expr_context::stack_empty_p): Adjust.
4053 (dwarf_expr_context::execute_stack_op): Adjust.
4054
eccd80d6
SM
40552017-09-14 Simon Marchi <simon.marchi@ericsson.com>
4056
4057 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
4058 return type to bool.
4059 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
4060
69009882
SM
40612017-09-14 Simon Marchi <simon.marchi@ericsson.com>
4062
4063 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
4064 Change type to bool.
4065 (dwarf_stack_value) <in_stack_memory>: Likewise.
4066 (dwarf_expr_context) <push_address>: Change parameter type to
4067 bool.
4068 <fetch_in_stack_memory>: Change return type to bool.
4069 <push>: Change parameter type to bool.
4070 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
4071 to bool.
4072 (dwarf_expr_context::push_address): Likewise.
4073 (dwarf_expr_context::fetch_in_stack_memory): Change return type
4074 to bool.
4075 (dwarf_expr_context::execute_stack_op): Adjust.
4076 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
4077
1e467161
SM
40782017-09-14 Simon Marchi <simon.marchi@ericsson.com>
4079
4080 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
4081 (struct dwarf_expr_context) <n_pieces>: Remove.
4082 <pieces>: Change type to std::vector.
4083 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
4084 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
4085 pieces.
4086 (dwarf_expr_context::add_piece): Adjust.
4087 * dwarf2loc.c (struct piece_closure): Initialize fields.
4088 <n_pieces>: Remove.
4089 <pieces>: Change type to std::vector.
4090 (allocate_piece_closure): Adjust, change parameter to
4091 std::vector rvalue and std::move it to piece_closure.
4092 (rw_pieced_value): Adjust.
4093 (check_pieced_synthetic_pointer): Adjust.
4094 (indirect_synthetic_pointer): Adjust.
4095 (coerce_pieced_ref): Adjust.
4096 (free_pieced_value_closure): Adjust. Use delete to free
4097 piece_closure.
4098 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
4099 to allocate_piece_closure.
4100 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
4101
0782db84
SM
41022017-09-12 Simon Marchi <simon.marchi@ericsson.com>
4103
4104 * probe.h (probe_ops_cp): Remove typedef.
4105 (DEF_VEC_P (probe_ops_cp)): Remove.
4106 (all_probe_ops): Change type to std::vector.
4107 * probe.c (info_probes_for_ops): Adjust to vector change.
4108 (probe_linespec_to_ops): Likewise.
4109 (all_probe_ops): Change type to std::vector.
4110 (_initialize_probe): Adjust to vector change.
4111 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
4112 * elfread.c (elf_get_probes): Likewise.
4113 * stap-probe.c (_initialize_stap_probe): Likewise.
4114
1eac6bea
SM
41152017-09-12 Simon Marchi <simon.marchi@ericsson.com>
4116
4117 * probe.h (struct bound_probe): Define constructors.
4118 * probe.c (bound_probe_s): Remove typedef.
4119 (DEF_VEC_O (bound_probe_s)): Remove VEC.
4120 (collect_probes): Change return type to std::vector, remove
4121 cleanup.
4122 (compare_probes): Return bool, change parameter type. Change
4123 semantic to "less than".
4124 (gen_ui_out_table_header_info): Change parameter to std::vector
4125 and update.
4126 (exists_probe_with_pops): Likewise.
4127 (info_probes_for_ops): Update to std::vector change.
4128 (enable_probes_command): Likewise.
4129 (disable_probes_command): Likewise.
4130
aaa63a31
SM
41312017-09-12 Simon Marchi <simon.marchi@ericsson.com>
4132
4133 * probe.h (struct probe_ops) <get_probes>: Change parameter from
4134 vec to std::vector.
4135 * probe.c (parse_probes_in_pspace): Update.
4136 (find_probes_in_objfile): Update.
4137 (find_probe_by_pc): Update.
4138 (collect_probes): Update.
4139 (probe_any_get_probes): Update.
4140 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
4141 return type to reference to std::vector.
4142 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
4143 std::vector and update.
4144 (dtrace_process_dof): Likewise.
4145 (dtrace_get_probes): Likewise.
4146 * elfread.c (elf_get_probes): Change return type to std::vector,
4147 store an std::vector in bfd_data.
4148 (probe_key_free): Update to std::vector.
4149 * stap-probe.c (handle_stap_probe): Change parameter to
4150 std::vector and update.
4151 (stap_get_probes): Likewise.
4152 * symfile-debug.c (debug_sym_get_probes): Change return type to
4153 std::vector and update.
4154
cb85b21b
TT
41552017-09-11 Tom Tromey <tom@tromey.com>
4156
4157 * breakpoint.c (program_breakpoint_here_p): Update.
4158 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
4159 from make_show_memory_breakpoints_cleanup. Return a
4160 scoped_restore_tmpl<int>.
4161 (restore_show_memory_breakpoints): Remove.
4162 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
4163 * mem-break.c (memory_validate_breakpoint): Update.
4164 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
4165 (ia64_memory_remove_breakpoint): Update.
4166 (ia64_breakpoint_from_pc): Update.
4167 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
4168 from make_show_memory_breakpoints_cleanup.
4169
8fbc99ef
TT
41702017-09-11 Tom Tromey <tom@tromey.com>
4171
4172 * d-namespace.c (d_lookup_symbol): Use std::string.
4173 (find_symbol_in_baseclass): Likewise.
4174
50feb4bd
TT
41752017-09-11 Tom Tromey <tom@tromey.com>
4176
4177 * ctf.c (ctf_start): Use std::string.
4178
c6dc63a1
TT
41792017-09-11 Tom Tromey <tom@tromey.com>
4180
4181 * ada-lang.c (is_known_support_routine): Update.
4182 (ada_unhandled_exception_name_addr_from_raise): Update.
4183 * guile/scm-frame.c (gdbscm_frame_name): Update.
4184 * python/py-frame.c (frapy_name): Update.
4185 (frapy_function): Update.
4186 * stack.h (find_frame_funname): Update.
4187 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
4188 (print_frame): Update.
4189
d6b9b80f
TT
41902017-09-11 Tom Tromey <tom@tromey.com>
4191
4192 * findcmd.c (put_bits): Take a gdb::byte_vector.
4193 (parse_find_args): Return gdb::byte_vector. "args" now const.
4194 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
4195 cleanups.
4196 (find_command): Update.
4197
a9921622
TT
41982017-09-11 Tom Tromey <tom@tromey.com>
4199
4200 * cli/cli-script.c (class scoped_restore_hook_in): New.
4201 (clear_hook_in_cleanup): Remove.
4202 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
4203 scoped_restore_hook_in.
4204
be0d7abb
TT
42052017-09-11 Tom Tromey <tom@tromey.com>
4206
4207 * cli/cli-script.c (restore_interp): Remove.
4208 (read_command_lines): Use scoped_restore_interp.
4209 * interps.c (scoped_restore_interp::set_temp): Rename from
4210 interp_set_temp.
4211 * interps.h (class scoped_restore_interp): New.
4212 (interp_set_temp): Remove.
4213
00f675ff
TT
42142017-09-11 Tom Tromey <tom@tromey.com>
4215
4216 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
4217 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
4218 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
4219 scoped_restore.
4220 (mi_cmd_break_insert_1): Update.
4221 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
4222 scoped_restore.
4223
cb791d59
TT
42242017-09-11 Tom Tromey <tom@tromey.com>
4225
4226 * demangle.c (demangle_command): Update.
4227 * breakpoint.c (disable_command): Update.
4228 (enable_command): Update.
4229 (find_location_by_number): Make "number" const. Use
4230 get_number_trailer.
4231 * cli/cli-utils.c (extract_arg): Return std::string.
4232 * probe.c (parse_probe_linespec): Update. Change types.
4233 (collect_probes): Take string arguments.
4234 (parse_probe_linespec): Likewise.
4235 (info_probes_for_ops): Update.
4236 (enable_probes_command): Update.
4237 (disable_probes_command): Update.
4238 * break-catch-sig.c (catch_signal_split_args): Update.
4239 * mi/mi-parse.c (mi_parse): Update.
4240
2039bd9f
TT
42412017-09-11 Tom Tromey <tom@tromey.com>
4242
4243 * language.h (language_enum): Make argument const.
4244 * language.c (language_enum): Make argument const.
4245
f1735a53
TT
42462017-09-11 Tom Tromey <tom@tromey.com>
4247
4248 * common/common-utils.h (skip_to_space): Remove macro, redeclare
4249 as function.
4250 (skip_to_space): Rename from skip_to_space_const.
4251 * common/common-utils.c (skip_to_space): New function.
4252 (skip_to_space): Rename from skip_to_space_const.
4253 * cli/cli-utils.h (get_number): Rename from get_number_const.
4254 (extract_arg): Rename from extract_arg_const.
4255 * cli/cli-utils.c (get_number): Rename from get_number_const.
4256 (extract_arg): Rename from extract_arg_const.
4257 (number_or_range_parser::get_number): Use ::get_number.
4258 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
4259 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
4260 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
4261 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
4262 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
4263 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
4264 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
4265 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
4266
7d221d74
TT
42672017-09-11 Tom Tromey <tom@tromey.com>
4268
4269 * python/python.c (do_start_initialization): Use
4270 py-event-types.def to initialize types.
4271 Define all object type structures.
4272 * python/python-internal.h: Don't declare event initialization
4273 functions.
4274 * python/py-threadevent.c (thread_event_object_type): Don't
4275 define.
4276 * python/py-stopevent.c (stop_event_object_type): Don't define.
4277 * python/py-signalevent.c (signal_event_object_type): Don't
4278 declare or define.
4279 * python/py-newobjfileevent.c (new_objfile_event_object_type)
4280 (clear_objfiles_event_object_type): Don't declare or define.
4281 * python/py-infevents.c (inferior_call_pre_event_object_type)
4282 (inferior_call_post_event_object_type)
4283 (register_changed_event_object_type)
4284 (memory_changed_event_object_type): Don't declare or define.
4285 * python/py-inferior.c (new_thread_event_object_type)
4286 (new_inferior_event_object_type)
4287 (inferior_deleted_event_object_type): Don't declare or define.
4288 * python/py-exitedevent.c (exited_event_object_type): Don't
4289 declare or define.
4290 * python/py-evts.c (gdbpy_initialize_py_events): Use
4291 py-all-events.def.
4292 * python/py-events.h (thread_event_object_type): Don't declare.
4293 (events_object): Use py-all-events.def.
4294 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
4295 py-event-types.def.
4296 * python/py-event-types.def: New file.
4297 * python/py-continueevent.c (create_continue_event_object): Don't
4298 declare or define.
4299 * python/py-bpevent.c (breakpoint_event_object_type): Don't
4300 declare or define.
4301 * python/py-all-events.def: New file.
4302
35c61a1d
TT
43032017-09-11 Tom Tromey <tom@tromey.com>
4304
4305 * python/py-threadevent.c (create_thread_event_object): Return
4306 gdbpy_ref.
4307 * python/py-stopevent.h (create_stop_event_object)
4308 (create_breakpoint_event_object, create_signal_event_object):
4309 Update.
4310 * python/py-stopevent.c (create_stop_event_object): Return
4311 gdbpy_ref.
4312 (emit_stop_event): Update.
4313 * python/py-signalevent.c (create_signal_event_object): Return
4314 gdbpy_ref.
4315 * python/py-infevents.c (create_inferior_call_event_object):
4316 Update.
4317 * python/py-event.h (create_event_object)
4318 (create_thread_event_object): Update.
4319 * python/py-event.c (create_event_object): Return gdbpy_ref.
4320 * python/py-continueevent.c: Return gdbpy_ref.
4321 * python/py-bpevent.c (create_breakpoint_event_object): Return
4322 gdbpy_ref.
4323
7c96f8c1
TT
43242017-09-11 Tom Tromey <tom@tromey.com>
4325
4326 PR python/15622:
4327 * NEWS: Add entry.
4328 * python/python.c (do_start_initialization): Initialize new event
4329 types.
4330 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
4331 (gdbpy_initialize_inferior_deleted_event)
4332 (gdbpy_initialize_new_thread_event): Declare.
4333 * python/py-threadevent.c (create_thread_event_object): Add option
4334 "thread" parameter.
4335 * python/py-inferior.c (new_thread_event_object_type)
4336 (new_inferior_event_object_type)
4337 (inferior_deleted_event_object_type): Declare.
4338 (python_new_inferior, python_inferior_deleted): New functions.
4339 (add_thread_object): Emit new_thread event.
4340 (gdbpy_initialize_inferior): Attach new functions to corresponding
4341 observers.
4342 (new_thread, new_inferior, inferior_deleted): Define new event
4343 types.
4344 * python/py-evts.c (gdbpy_initialize_py_events): Add new
4345 registries.
4346 * python/py-events.h (events_object) <new_inferior,
4347 inferior_deleted, new_thread>: New fields.
4348 * python/py-event.h (create_thread_event_breakpoint): Add optional
4349 "thread" parameter.
4350
72542b8e
AB
43512017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
4352
4353 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
4354 check current_ui instead.
4355 (internal_vproblem): Likewise.
4356
0d64823e
SM
43572017-09-09 Simon Marchi <simon.marchi@ericsson.com>
4358
4359 * thread.c (print_thread_info_1): Remove unnecessary calls to
4360 uiout->is_mi_like_p.
4361
eb1e02fd
TT
43622017-09-09 Tom Tromey <tom@tromey.com>
4363
4364 * namespace.h (add_using_directive): Update.
4365 * namespace.c (add_using_directive): Change type of excludes to
4366 std::vector.
4367 * dwarf2read.c (read_import_statement): Use std::vector.
4368 (read_namespace): Update.
4369 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
4370
0fc21fd8
TT
43712017-09-09 Tom Tromey <tom@tromey.com>
4372
4373 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
4374
49663d05
TT
43752017-09-09 Tom Tromey <tom@tromey.com>
4376
4377 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
4378
0b868b60
TT
43792017-09-09 Tom Tromey <tom@tromey.com>
4380
4381 * stack.c (func_command): Use gdb::def_vector.
4382
c0470d48
TT
43832017-09-09 Tom Tromey <tom@tromey.com>
4384
4385 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
4386 ui_out_emit_list, ui_out_emit_tuple.
4387 (mi_cmd_var_update): Likewise.
4388
ca5909c7
TT
43892017-09-09 Tom Tromey <tom@tromey.com>
4390
4391 * mi/mi-interp.c (mi_user_selected_context_changed): Use
4392 ui_out_redirect_pop.
4393 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
4394 ui_out_redirect_pop.
4395 * utils.c (do_ui_out_redirect_pop)
4396 (make_cleanup_ui_out_redirect_pop): Remove.
4397 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
4398 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
4399 * ui-out.h (ui_out_redirect_pop): New class.
4400
e6a2252a
TT
44012017-09-09 Tom Tromey <tom@tromey.com>
4402
4403 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
4404 (list_available_thread_groups, mi_cmd_list_thread_groups)
4405 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
4406 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
4407 Likewise.
4408
393702cd
TT
44092017-09-09 Tom Tromey <tom@tromey.com>
4410
4411 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
4412 ui_out_emit_tuple.
4413
76f9c9cf
TT
44142017-09-09 Tom Tromey <tom@tromey.com>
4415
4416 * target.c (flash_erase_command): Use ui_out_emit_tuple.
4417 * stack.c (print_frame): Use ui_out_emit_tuple.
4418 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
4419 (info_spu_mailbox_command, info_spu_dma_command)
4420 (info_spu_proxydma_command): Likewise.
4421 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
4422 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
4423 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
4424 ui_out_emit_tuple.
4425 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
4426
dc9fe180
TT
44272017-09-09 Tom Tromey <tom@tromey.com>
4428
4429 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
4430 (class ui_out_emit_table): Update comment.
4431 * ui-out.c (do_cleanup_table_end)
4432 (make_cleanup_ui_out_table_begin_end): Remove.
4433 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
4434 (info_spu_dma_cmdlist): Likewise.
4435 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
4436 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
4437 ui_out_emit_table.
4438
f8cc3da6
TT
44392017-09-09 Tom Tromey <tom@tromey.com>
4440
4441 * thread.c (print_thread_info_1): Use ui_out_emit_table,
4442 ui_out_emit_list, gdb::optional.
4443
481695ed
JB
44442017-09-09 John Baldwin <jhb@FreeBSD.org>
4445
4446 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
4447 prototype.
4448 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
4449 prototype.
4450 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
4451 prototype.
4452 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
4453 * ada-exp.y: Remove _initialize_ada_exp prototype.
4454 * ada-lang.c: Remove _initialize_ada_language prototype.
4455 * ada-tasks.c: Remove _initialize_tasks prototype.
4456 * addrmap.c: Remove _initialize_addrmap prototype.
4457 * agent.c: Remove _initialize_agent prototype.
4458 * aix-thread.c: Remove _initialize_aix_thread prototype.
4459 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
4460 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
4461 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
4462 prototype.
4463 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
4464 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
4465 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
4466 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
4467 prototype.
4468 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
4469 prototype.
4470 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
4471 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
4472 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
4473 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
4474 prototype.
4475 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
4476 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
4477 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
4478 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
4479 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
4480 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
4481 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
4482 prototype.
4483 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
4484 prototype.
4485 * annotate.c: Remove _initialize_annotate prototype.
4486 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
4487 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
4488 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
4489 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
4490 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
4491 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
4492 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
4493 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
4494 prototype.
4495 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
4496 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
4497 * auto-load.c: Remove _initialize_auto_load prototype.
4498 * auxv.c: Remove _initialize_auxv prototype.
4499 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
4500 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
4501 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
4502 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
4503 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
4504 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
4505 prototype.
4506 * break-catch-throw.c: Remove _initialize_break_catch_throw
4507 prototype.
4508 * breakpoint.c: Remove _initialize_breakpoint prototype.
4509 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
4510 * btrace.c: Remove _initialize_btrace prototype.
4511 * charset.c: Remove _initialize_charset prototype.
4512 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
4513 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
4514 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
4515 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
4516 * cli/cli-script.c: Remove _initialize_cli_script prototype.
4517 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
4518 * coffread.c: Remove _initialize_coffread prototype.
4519 * compile/compile.c: Remove _initialize_compile prototype.
4520 * complaints.c: Remove _initialize_complaints prototype.
4521 * completer.c: Remove _initialize_completer prototype.
4522 * copying.awk: Remove _initialize_copying prototype.
4523 * copying.c: Regenerate.
4524 * core-regset.c: Remove _initialize_core_regset prototype.
4525 * corefile.c: Remove _initialize_core prototype.
4526 * corelow.c: Remove _initialize_corelow prototype.
4527 * cp-abi.c: Remove _initialize_cp_abi prototype.
4528 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
4529 * cp-support.c: Remove _initialize_cp_support prototype.
4530 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
4531 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
4532 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
4533 * ctf.c: Remove _initialize_ctf prototype.
4534 * d-lang.c: Remove _initialize_d_language prototype.
4535 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
4536 prototype.
4537 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
4538 * dbxread.c: Remove _initialize_dbxread prototype.
4539 * dcache.c: Remove _initialize_dcache prototype.
4540 * demangle.c: Remove _initialize_demangler prototype.
4541 * disasm-selftests.c: Remove _initialize_disasm_selftests
4542 prototype.
4543 * disasm.c: Remove _initialize_disasm prototype.
4544 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
4545 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
4546 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
4547 prototype.
4548 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
4549 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
4550 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
4551 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
4552 * elfread.c: Remove _initialize_elfread prototype.
4553 * exec.c: Remove _initialize_exec prototype.
4554 * extension.c: Remove _initialize_extension prototype.
4555 * f-lang.c: Remove _initialize_f_language prototype.
4556 * f-valprint.c: Remove _initialize_f_valprint prototype.
4557 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
4558 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
4559 * filesystem.c: Remove _initialize_filesystem prototype.
4560 * findcmd.c: Remove _initialize_mem_search prototype.
4561 * fork-child.c: Remove _initialize_fork_child prototype.
4562 * frame-base.c: Remove _initialize_frame_base prototype.
4563 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
4564 * frame.c: Remove _initialize_frame prototype.
4565 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
4566 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
4567 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
4568 * gcore.c: Remove _initialize_gcore prototype.
4569 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
4570 * gdbarch.c: Regenerate.
4571 * gdbarch.sh: Remove _initialize_gdbarch prototype.
4572 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
4573 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
4574 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
4575 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
4576 * go-lang.c: Remove _initialize_go_language prototype.
4577 * go32-nat.c: Remove _initialize_go32_nat prototype.
4578 * guile/guile.c: Remove _initialize_guile prototype.
4579 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
4580 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
4581 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
4582 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
4583 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
4584 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
4585 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
4586 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
4587 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
4588 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
4589 prototype.
4590 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
4591 prototype.
4592 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
4593 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
4594 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
4595 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
4596 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
4597 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
4598 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
4599 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
4600 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
4601 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
4602 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
4603 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
4604 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
4605 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
4606 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
4607 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
4608 prototype.
4609 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
4610 prototype.
4611 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
4612 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
4613 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
4614 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
4615 * infcall.c: Remove _initialize_infcall prototype.
4616 * infcmd.c: Remove _initialize_infcmd prototype.
4617 * inferior.c: Remove _initialize_inferiors prototype.
4618 * inflow.c: Remove _initialize_inflow prototype.
4619 * infrun.c: Remove _initialize_infrun prototype.
4620 * interps.c: Remove _initialize_interpreter prototype.
4621 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
4622 * jit.c: Remove _initialize_jit prototype.
4623 * language.c: Remove _initialize_language prototype.
4624 * linux-fork.c: Remove _initialize_linux_fork prototype.
4625 * linux-nat.c: Remove _initialize_linux_nat prototype.
4626 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
4627 * linux-thread-db.c: Remove _initialize_thread_db prototype.
4628 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
4629 * m2-lang.c: Remove _initialize_m2_language prototype.
4630 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
4631 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
4632 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
4633 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
4634 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
4635 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
4636 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
4637 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
4638 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
4639 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
4640 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
4641 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
4642 * machoread.c: Remove _initialize_machoread prototype.
4643 * macrocmd.c: Remove _initialize_macrocmd prototype.
4644 * macroscope.c: Remove _initialize_macroscope prototype.
4645 * maint.c: Remove _initialize_maint_cmds prototype.
4646 * mdebugread.c: Remove _initialize_mdebugread prototype.
4647 * memattr.c: Remove _initialize_mem prototype.
4648 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
4649 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
4650 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
4651 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
4652 * mi/mi-main.c: Remove _initialize_mi_main prototype.
4653 * microblaze-linux-tdep.c: Remove
4654 _initialize_microblaze_linux_tdep prototype.
4655 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
4656 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
4657 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
4658 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
4659 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
4660 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
4661 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
4662 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
4663 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
4664 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
4665 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
4666 prototype.
4667 * mipsread.c: Remove _initialize_mipsread prototype.
4668 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
4669 prototype.
4670 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
4671 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
4672 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
4673 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
4674 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
4675 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
4676 prototype.
4677 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
4678 * nto-procfs.c: Remove _initialize_procfs prototype.
4679 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
4680 * objc-lang.c: Remove _initialize_objc_language prototype.
4681 * objfiles.c: Remove _initialize_objfiles prototype.
4682 * observer.c: Remove observer_test_first_notification_function,
4683 observer_test_second_notification_function,
4684 observer_test_third_notification_function, and
4685 _initialize_observer prototypes.
4686 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
4687 * osabi.c: Remove _initialize_gdb_osabi prototype.
4688 * osdata.c: Remove _initialize_osdata prototype.
4689 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
4690 * parse.c: Remove _initialize_parse prototype.
4691 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
4692 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
4693 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
4694 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
4695 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
4696 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
4697 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
4698 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
4699 * printcmd.c: Remove _initialize_printcmd prototype.
4700 * probe.c: Remove _initialize_probe prototype.
4701 * proc-api.c: Remove _initialize_proc_api prototype.
4702 * proc-events.c: Remove _initialize_proc_events prototype.
4703 * proc-service.c: Remove _initialize_proc_service prototype.
4704 * procfs.c: Remove _initialize_procfs prototype.
4705 * psymtab.c: Remove _initialize_psymtab prototype.
4706 * python/python.c: Remove _initialize_python prototype.
4707 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
4708 * record-btrace.c: Remove _initialize_record_btrace prototype.
4709 * record-full.c: Remove _initialize_record_full prototype.
4710 * record.c: Remove _initialize_record prototype.
4711 * regcache.c: Remove _initialize_regcache prototype.
4712 * reggroups.c: Remove _initialize_reggroup prototype.
4713 * remote-notif.c: Remove _initialize_notif prototype.
4714 * remote-sim.c: Remove _initialize_remote_sim prototype.
4715 * remote.c: Remove _initialize_remote prototype.
4716 * reverse.c: Remove _initialize_reverse prototype.
4717 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
4718 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
4719 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
4720 prototype.
4721 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
4722 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
4723 * rust-exp.y: Remove _initialize_rust_exp prototype.
4724 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
4725 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
4726 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
4727 * score-tdep.c: Remove _initialize_score_tdep prototype.
4728 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
4729 prototype.
4730 * ser-go32.c: Remove _initialize_ser_dos prototype.
4731 * ser-mingw.c: Remove _initialize_ser_windows prototype.
4732 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
4733 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
4734 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
4735 * serial.c: Remove _initialize_serial prototype.
4736 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
4737 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
4738 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
4739 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
4740 * skip.c: Remove _initialize_step_skip prototype.
4741 * sol-thread.c: Remove _initialize_sol_thread prototype.
4742 * solib-aix.c: Remove _initialize_solib_aix prototype.
4743 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
4744 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
4745 * solib-frv.c: Remove _initialize_frv_solib prototype.
4746 * solib-spu.c: Remove _initialize_spu_solib prototype.
4747 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
4748 * solib-target.c: Remove _initialize_solib_target prototype.
4749 * solib.c: Remove _initialize_solib prototype.
4750 * source.c: Remove _initialize_source prototype.
4751 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
4752 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
4753 prototype.
4754 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
4755 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
4756 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
4757 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
4758 prototype.
4759 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
4760 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
4761 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
4762 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
4763 prototype.
4764 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
4765 prototype.
4766 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
4767 prototype.
4768 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
4769 prototype.
4770 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
4771 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
4772 prototype.
4773 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
4774 prototype.
4775 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
4776 prototype.
4777 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
4778 prototype.
4779 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
4780 prototype.
4781 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
4782 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
4783 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
4784 * stabsread.c: Remove _initialize_stabsread prototype.
4785 * stack.c: Remove _initialize_stack prototype.
4786 * stap-probe.c: Remove _initialize_stap_probe prototype.
4787 * std-regs.c: Remove _initialize_frame_reg prototype.
4788 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
4789 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
4790 * symfile.c: Remove _initialize_symfile prototype.
4791 * symmisc.c: Remove _initialize_symmisc prototype.
4792 * symtab.c: Remove _initialize_symtab prototype.
4793 * target-dcache.c: Remove _initialize_target_dcache prototype.
4794 * target-descriptions.c: Remove _initialize_target_descriptions
4795 prototype.
4796 * thread.c: Remove _initialize_thread prototype.
4797 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
4798 prototype.
4799 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
4800 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
4801 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
4802 prototype.
4803 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
4804 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
4805 * tracefile.c: Remove _initialize_tracefile prototype.
4806 * tracepoint.c: Remove _initialize_tracepoint prototype.
4807 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
4808 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
4809 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
4810 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
4811 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
4812 * tui/tui-win.c: Remove _initialize_tui_win prototype.
4813 * tui/tui.c: Remove _initialize_tui prototype.
4814 * typeprint.c: Remove _initialize_typeprint prototype.
4815 * user-regs.c: Remove _initialize_user_regs prototype.
4816 * utils.c: Remove _initialize_utils prototype.
4817 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
4818 * valarith.c: Remove _initialize_valarith prototype.
4819 * valops.c: Remove _initialize_valops prototype.
4820 * valprint.c: Remove _initialize_valprint prototype.
4821 * value.c: Remove _initialize_values prototype.
4822 * varobj.c: Remove _initialize_varobj prototype.
4823 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
4824 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
4825 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
4826 * windows-nat.c: Remove _initialize_windows_nat,
4827 _initialize_check_for_gdb_ini, and _initialize_loadable
4828 prototypes.
4829 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
4830 * xcoffread.c: Remove _initialize_xcoffread prototype.
4831 * xml-support.c: Remove _initialize_xml_support prototype.
4832 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
4833 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
4834 prototype.
4835 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
4836 prototype.
4837 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
4838
a611b5cb
KS
48392017-09-08 Keith Seitz <keiths@redhat.com>
4840
4841 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
4842 field.
4843
469412dd
CW
48442017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
4845
4846 * f-valprint.c (f_val_print): Remove check for one byte
4847 sized integers. Remove printing of character type.
4848
a5ad232b
FP
48492017-09-08 Frank Penczek <frank.penczek@intel.com>
4850 Christoph Weinmann <christoph.t.weinmann@intel.com>
4851 Bernhard Heckel <bernhard.heckel@intel.com>
4852
4853 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
4854 to maintain proper indentation when printing pointers/refs.
4855
e5014227
JB
48562017-09-07 Joel Brobecker <brobecker@adacore.com>
4857
4858 GDB 8.0.1 released.
4859
63c99141
JB
48602017-09-07 Joel Brobecker <brobecker@adacore.com>
4861
4862 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
4863
69c1e056
TT
48642017-09-05 Tom Tromey <tom@tromey.com>
4865
4866 * parse.c (funcall_chain): Now a std::vector.
4867 (start_arglist, end_arglist): Simplify.
4868 (free_funcalls): Remove.
4869 (parse_exp_in_context_1): Remove cleanup.
4870
fef704bf
TT
48712017-09-05 Tom Tromey <tom@tromey.com>
4872
4873 * go-exp.y (go_parse): Don't create a cleanup.
4874
5613c585
TT
48752017-09-05 Tom Tromey <tom@tromey.com>
4876
4877 * d-exp.y (PrimaryExpression): Use std::string.
4878 (d_parse): Don't create a cleanup.
4879
eae49211
TT
48802017-09-05 Tom Tromey <tom@tromey.com>
4881
4882 * utils.c (do_clear_parser_state): Remove.
4883 (make_cleanup_clear_parser_state): Remove.
4884 * p-exp.y (pascal_parse): Use scoped_restore.
4885 * m2-exp.y (m2_parse): Use scoped_restore.
4886 * f-exp.y (f_parse): Use scoped_restore.
4887 * d-exp.y (d_parse): Use scoped_restore.
4888 * c-exp.y (c_parse): Use scoped_restore.
4889 * ada-exp.y (ada_parse): Use scoped_restore.
4890 * utils.h (make_cleanup_clear_parser_state): Remove.
4891
73b9be8b
KS
48922017-09-06 Keith Seitz <keiths@redhat.com>
4893
4894 * dwarf2read.c (dw2_linkage_name_attr): New function.
4895 (dw2_linkage_name): New function.
4896 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
4897 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
4898 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
4899
a102602b
KR
49002017-09-06 Kamil Rytarowski <n54@gmx.com>
4901
4902 * config/djgpp/djconfig.sh: Correct shell portability issue.
4903
28ad437d
KR
49042017-09-06 Kamil Rytarowski <n54@gmx.com>
4905
4906 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
4907
351787dd
JB
49082017-09-06 John Baldwin <jhb@FreeBSD.org>
4909
4910 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
4911 * NEWS: Mention new FreeBSD/mips native configuration.
4912 * configure.host: Add aarch64*-*-freebsd*.
4913 * configure.nat: Likewise.
4914 * aarch64-fbsd-nat.c: New file.
4915
c0f84956
JB
49162017-09-06 John Baldwin <jhb@FreeBSD.org>
4917
4918 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
4919 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
4920 * NEWS: Mention new FreeBSD/aarch64 target.
4921 * configure.tgt: Add aarch64*-*-freebsd*.
4922 * aarch64-fbsd-tdep.c: New file.
4923 * aarch64-fbsd-tdep.h: New file.
4924
7610297a
KR
49252017-09-06 Kamil Rytarowski <n54@gmx.com>
4926
4927 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
4928
fbd1b771
JK
49292017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4930
4931 * parse.c (find_minsym_type_and_address): Don't relocate addresses
4932 of TLS symbols.
4933
5ca79eae
PW
49342017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4935
4936 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
4937 call.
4938
bf93d7ba
SM
49392017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4940
4941 * infrun.c (follow_exec): Call add_thread after
4942 target_find_description.
4943
1bb7c059
SM
49442017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4945
4946 * infrun.c (handle_inferior_event_1): When exec'ing, read
4947 stop_pc after follow_exec.
4948
fc809827
SM
49492017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4950
4951 * remote.c (process_g_packet): Update error message.
4952
d2fcdd85
YQ
49532017-09-05 Yao Qi <yao.qi@linaro.org>
4954
4955 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
4956 targets.
4957
e69570ee
PA
49582017-09-05 Pedro Alves <palves@redhat.com>
4959
4960 * eval.c (eval_call, evaluate_funcall): New functions, factored
4961 out from ...
4962 (evaluate_subexp_standard): ... this.
4963
22916b07
YQ
49642017-09-05 Yao Qi <yao.qi@linaro.org>
4965
4966 * amd64-tdep.c (amd64_target_description): Create target
4967 descriptions.
4968 (_initialize_amd64_tdep): Don't call functions
4969 initialize_tdesc_amd64_*. Add self tests.
4970 * arch/amd64.c (amd64_create_target_description): Add parameter
4971 is_linux. Call set_tdesc_osabi if is_linux is true.
4972 * arch/amd64.h (amd64_create_target_description): Update the
4973 declaration.
4974 * arch/i386.c (i386_create_target_description): Add parameter
4975 is_linux. Call set_tdesc_osabi if is_linux is true.
4976 * arch/i386.h (i386_create_target_description): Update
4977 declaration.
4978 * configure.tgt: Add i386.o to gdb_target_obs.
4979 * features/Makefile (XMLTOC): Remove i386/*.xml.
4980 * features/i386/amd64-avx-avx512.c: Remove.
4981 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
4982 * features/i386/amd64-avx-mpx.c: Remove.
4983 * features/i386/amd64-avx.c: Remove.
4984 * features/i386/amd64-mpx.c: Remove.
4985 * features/i386/amd64.c: Remove.
4986 * features/i386/i386-avx-avx512.c: Remove.
4987 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
4988 * features/i386/i386-avx-mpx.c: Remove.
4989 * features/i386/i386-avx.c: Remove.
4990 * features/i386/i386-mmx.c: Remove.
4991 * features/i386/i386-mpx.c: Remove.
4992 * features/i386/i386.c: Remove.
4993 * i386-tdep.c: Don't include features/i386/i386*.c., include
4994 target-descriptions.h and arch/i386.h.
4995 (i386_target_description): Create target descriptions.
4996 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
4997 functions. Do self tests.
4998
0854b7b1
YQ
49992017-09-05 Yao Qi <yao.qi@linaro.org>
5000
5001 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
5002 * features/i386/amd64-avx-avx512-linux.c: Removed.
5003 * features/i386/amd64-avx-linux.c: Removed.
5004 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
5005 * features/i386/amd64-avx-mpx-linux.c: Removed.
5006 * features/i386/amd64-linux.c: Removed.
5007 * features/i386/amd64-mpx-linux.c: Removed.
5008 * features/i386/x32-avx-avx512-linux.c: Removed.
5009 * features/i386/x32-avx-linux.c: Removed.
5010 * features/i386/x32-linux.c: Removed.
5011
b4570e4b
YQ
50122017-09-05 Yao Qi <yao.qi@linaro.org>
5013
5014 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
5015 features/i386/*.c.
5016 (amd64_linux_read_description): Call
5017 amd64_create_target_description.
5018 * arch/amd64.c: New file.
5019 * arch/amd64.h: New file.
5020 * configure.tgt (x86_64-*-linux*): Append amd64.o.
5021 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
5022
6c73f67f
YQ
50232017-09-05 Yao Qi <yao.qi@linaro.org>
5024
5025 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
5026 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
5027 (amd64_linux_read_description): Create target descriptions.
5028 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
5029 functions. Add unit tests.
5030 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
5031 x32-core.xml.
5032 * features/i386/64bit-avx.c: Generated.
5033 * features/i386/64bit-avx512.c: Generated.
5034 * features/i386/64bit-core.c: Generated.
5035 * features/i386/64bit-linux.c: Generated.
5036 * features/i386/64bit-mpx.c: Generated.
5037 * features/i386/64bit-pkeys.c: Generated.
5038 * features/i386/64bit-segments.c: Generated.
5039 * features/i386/64bit-sse.c: Generated.
5040 * features/i386/x32-core.c: Generated.
5041 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
5042 c files for amd64-linux and x32-linux.
5043
9d3d478b
YQ
50442017-09-05 Yao Qi <yao.qi@linaro.org>
5045
5046 * amd64-linux-tdep.c (amd64_linux_read_description): New
5047 function.
5048 (amd64_linux_core_read_description): Call
5049 amd64_linux_read_description.
5050 (amd64_linux_init_abi): Likewise.
5051 (amd64_x32_linux_init_abi): Likewise.
5052 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
5053 * x86-linux-nat.c (x86_linux_read_description): Call
5054 amd64_linux_read_description.
5055
b9f1d50f
YQ
50562017-09-05 Yao Qi <yao.qi@linaro.org>
5057
5058 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
5059 comments.
5060
188c9e6d
YQ
50612017-09-05 Yao Qi <yao.qi@linaro.org>
5062
5063 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
5064 * features/i386/i386-avx-avx512-linux.c: Remove.
5065 * features/i386/i386-avx-linux.c: Remove.
5066 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
5067 * features/i386/i386-avx-mpx-linux.c: Remove.
5068 * features/i386/i386-linux.c: Remove.
5069 * features/i386/i386-mmx-linux.c: Remove.
5070 * features/i386/i386-mpx-linux.c: Remove.
5071
5f035c07
YQ
50722017-09-05 Yao Qi <yao.qi@linaro.org>
5073
5074 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
5075 (SFILES): Add arch/i386.c.
5076 (HFILES_NO_SRCDIR): Add arch/i386.h.
5077 * arch/i386.c: New file.
5078 * arch/i386.h: New file.
5079 * arch/tdesc.h (allocate_target_description): Declare.
5080 (set_tdesc_architecture): Declare.
5081 (set_tdesc_osabi): Declare.
5082 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
5083 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
5084 include arch/i386.h.
5085 (i386_linux_read_description): Remove code and call
5086 i386_create_target_description.
5087 (set_tdesc_architecture): New function.
5088 (set_tdesc_osabi): New function.
5089 * target-descriptions.h (allocate_target_description): Remove.
5090
0abe8a89
YQ
50912017-09-05 Yao Qi <yao.qi@linaro.org>
5092
5093 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
5094 * target-descriptions.c (tdesc_create_feature): Likewise, and
5095 adjust code.
5096 * features/i386/32bit-avx.c: Re-generated.
5097 * features/i386/32bit-avx512.c: Re-generated.
5098 * features/i386/32bit-core.c: Re-generated.
5099 * features/i386/32bit-linux.c: Re-generated.
5100 * features/i386/32bit-mpx.c: Re-generated.
5101 * features/i386/32bit-pkeys.c: Re-generated.
5102 * features/i386/32bit-sse.c: Re-generated.
5103
0a188386
YQ
51042017-09-05 Yao Qi <yao.qi@linaro.org>
5105
5106 * regformats/regdef.h (struct reg): Override operator == and !=.
5107
f49ff000
YQ
51082017-09-05 Yao Qi <yao.qi@linaro.org>
5109
5110 * arch/tdesc.h: New file.
5111 * regformats/regdat.sh: Generate code using tdesc_create_reg.
5112 * target-descriptions.c: Update comments.
5113 * target-descriptions.h: Include "arch/tdesc.h". Remove the
5114 declarations.
5115 * features/i386/32bit-avx.c: Re-generated.
5116 * features/i386/32bit-avx512.c: Re-generated.
5117 * features/i386/32bit-core.c: Re-generated.
5118 * features/i386/32bit-linux.c: Re-generated.
5119 * features/i386/32bit-mpx.c: Re-generated.
5120 * features/i386/32bit-pkeys.c: Re-generated.
5121 * features/i386/32bit-sse.c: Re-generated.
5122
f7000548
YQ
51232017-09-05 Yao Qi <yao.qi@linaro.org>
5124
5125 * regformats/regdat.sh: Update generated code.
5126
c9a5e2a5
YQ
51272017-09-05 Yao Qi <yao.qi@linaro.org>
5128
5129 * regformats/regdat.sh: Adjust code order.
5130
d6b687ac
SM
51312017-09-05 Simon Marchi <simon.marchi@ericsson.com>
5132
5133 * expprint.c (dump_subexp_body_standard): Use constant format
5134 string in fprintf_filtered call.
5135
a379bfd0
JB
51362017-09-04 John Baldwin <jhb@FreeBSD.org>
5137
5138 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
5139 NetBSD/i386.
5140 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
5141
f7efc967
JB
51422017-09-04 John Baldwin <jhb@FreeBSD.org>
5143
5144 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
5145
c49fbc6c
JB
51462017-09-04 John Baldwin <jhb@FreeBSD.org>
5147
5148 * bsd-kvm.o: Define _KMEMUSER.
5149 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
5150 * configure: Regenerate.
5151
26562e73
JB
51522017-09-04 John Baldwin <jhb@FreeBSD.org>
5153
5154 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
5155 * i386-fbsd-nat.c: Likewise.
5156
31cf1487
JB
51572017-09-04 John Baldwin <jhb@FreeBSD.org>
5158
5159 * unittests/array-view-selftests.c: Add include of <array>.
5160
5b9f8a7c
JB
51612017-09-04 John Baldwin <jhb@FreeBSD.org>
5162
5163 * spu-tdep.c (flush_ea_cache): Add missing argument to
5164 call_function_by_hand.
5165
d69cf9b2
PA
51662017-09-04 Pedro Alves <palves@redhat.com>
5167
5168 * NEWS (Safer support for debugging with no debug info): New.
5169
3693fdb3
PA
51702017-09-04 Pedro Alves <palves@redhat.com>
5171
5172 * c-exp.y (function_method, function_method_void): Add current
5173 instance flags to TYPE_INSTANCE.
5174 * dwarf2read.c (check_modifier): New.
5175 (compute_delayed_physnames): Assert that only C++ adds delayed
5176 physnames. Mark fn_fields as const/volatile depending on
5177 physname.
5178 * eval.c (make_params): New type_instance_flags parameter. Use
5179 it as the new type's instance flags.
5180 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
5181 flags element and pass it to make_params.
5182 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
5183 instance flags element.
5184 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
5185 * gdbtypes.h: Include "enum-flags.h".
5186 (type_instance_flags): New enum-flags type.
5187 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
5188 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
5189 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
5190 (follow_type_instance_flags): New function.
5191 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
5192 * parser-defs.h (follow_type_instance_flags): Declare.
5193 * valops.c (value_struct_elt_for_reference): const/volatile must
5194 match too.
5195
e68cb8e0
PA
51962017-09-04 Pedro Alves <palves@redhat.com>
5197
5198 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
5199 function/method scopes; lookup the nested name as a function local
5200 static variable.
5201
858be34c
PA
52022017-09-04 Pedro Alves <palves@redhat.com>
5203
5204 (%type <voidval>): Add function_method.
5205 * c-exp.y (exp): New production for calls with no arguments.
5206 (function_method, function_method_void_or_typelist): New
5207 productions.
5208 (exp): New production for "method()::static_var".
5209 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
5210 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5211 Handle OP_FUNC_STATIC_VAR.
5212 * parse.c (operator_length_standard):
5213 Handle OP_FUNC_STATIC_VAR.
5214
dd5901a6
PA
52152017-09-04 Pedro Alves <palves@redhat.com>
5216
5217 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
5218 handling.
5219 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5220 Ditto.
5221 * parse.c (operator_length_standard, operator_check_standard):
5222 Ditto.
5223 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
5224
46a4882b
PA
52252017-09-04 Pedro Alves <palves@redhat.com>
5226
5227 * ax-gdb.c: Include "typeprint.h".
5228 (gen_expr_for_cast): New function.
5229 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
5230 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
5231 type is unknown.
5232 * dwarf2read.c (new_symbol_full): Fallback to int instead of
5233 nodebug_data_symbol.
5234 * eval.c: Include "typeprint.h".
5235 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
5236 Error out if symbol has unknown type.
5237 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
5238 evaluate_subexp_for_cast.
5239 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
5240 OP_VAR_MSYM_VALUE.
5241 (evaluate_subexp_for_cast): New function.
5242 * gdbtypes.c (init_nodebug_var_type): New function.
5243 (objfile_type): Use it to initialize types of variables with no
5244 debug info.
5245 * typeprint.c (error_unknown_type): New.
5246 * typeprint.h (error_unknown_type): New declaration.
5247 * compile/compile-c-types.c (convert_type_basic): Handle
5248 TYPE_CODE_ERROR; warn and fallback to int for variables with
5249 unknown type.
5250
fe13dfec
PA
52512017-09-04 Pedro Alves <palves@redhat.com>
5252
5253 * eval.c (evaluate_var_value): New function, factored out from ...
5254 (evaluate_subexp_standard): ... here.
5255
d008ee21
PA
52562017-09-04 Pedro Alves <palves@redhat.com>
5257
5258 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
5259 Remove useless assignments to 'op'.
5260
827d0c51
PA
52612017-09-04 Pedro Alves <palves@redhat.com>
5262
5263 * eval.c (eval_skip_value): New function.
5264 (evaluate_subexp_standard): Use it.
5265
2c5a2be1
PA
52662017-09-04 Pedro Alves <palves@redhat.com>
5267
5268 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
5269 function name from symbol/minsym and pass it to
5270 error_call_unknown_return_type.
5271
74ea4be4
PA
52722017-09-04 Pedro Alves <palves@redhat.com>
5273
5274 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
5275 * ax-gdb.c (gen_msym_var_ref): New function.
5276 (gen_expr): Handle OP_VAR_MSYM_VALUE.
5277 * eval.c (evaluate_var_msym_value): New function.
5278 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
5279 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
5280 to call_function_by_hand.
5281 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5282 Handle OP_VAR_MSYM_VALUE.
5283 (union exp_element) <msymbol>: New field.
5284 * minsyms.h (struct type): Forward declare.
5285 (find_minsym_type_and_address): Declare.
5286 * parse.c (write_exp_elt_msym): New function.
5287 (write_exp_msymbol): Delete, refactored as ...
5288 (find_minsym_type_and_address): ... this new function.
5289 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
5290 (operator_length_standard, operator_check_standard): Handle
5291 OP_VAR_MSYM_VALUE.
5292 * std-operator.def (OP_VAR_MSYM_VALUE): New.
5293
7022349d
PA
52942017-09-04 Pedro Alves <palves@redhat.com>
5295
5296 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
5297 TYPE_GNU_IFUNC specially here. Throw error if return type is
5298 unknown.
5299 * ada-typeprint.c (print_func_type): Handle functions with unknown
5300 return type.
5301 * c-typeprint.c (c_type_print_base): Handle functions and methods
5302 with unknown return type.
5303 * compile/compile-c-symbols.c (convert_symbol_bmsym)
5304 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
5305 * compile/compile-c-types.c: Include "objfiles.h".
5306 (convert_func): For functions with unknown return type, warn and
5307 default to int.
5308 * compile/compile-object-run.c (compile_object_run): Adjust call
5309 to call_function_by_hand_dummy.
5310 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
5311 call_function_by_hand.
5312 * eval.c (evaluate_subexp_standard): Adjust calls to
5313 call_function_by_hand. Handle functions and methods with unknown
5314 return type. Pass expect_type to call_function_by_hand.
5315 * f-typeprint.c (f_type_print_base): Handle functions with unknown
5316 return type.
5317 * gcore.c (call_target_sbrk): Adjust call to
5318 call_function_by_hand.
5319 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
5320 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
5321 an integer address type instead of nodebug.
5322 * guile/scm-value.c (gdbscm_value_call): Adjust call to
5323 call_function_by_hand.
5324 * infcall.c (error_call_unknown_return_type): New function.
5325 (call_function_by_hand): New "default_return_type" parameter.
5326 Pass it down.
5327 (call_function_by_hand_dummy): New "default_return_type"
5328 parameter. Use it instead of defaulting to int. If there's no
5329 default and the return type is unknown, throw an error. If
5330 there's a default return type, and the called function has no
5331 debug info, then assume the function is prototyped.
5332 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
5333 New "default_return_type" parameter.
5334 (error_call_unknown_return_type): New declaration.
5335 * linux-fork.c (call_lseek): Cast return type of lseek.
5336 (inferior_call_waitpid, checkpoint_command): Adjust calls to
5337 call_function_by_hand.
5338 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
5339 calls to call_function_by_hand.
5340 * m2-typeprint.c (m2_procedure): Handle functions with unknown
5341 return type.
5342 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5343 (value_nsstring, print_object_command): Adjust calls to
5344 call_function_by_hand.
5345 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
5346 functions with unknown return type.
5347 (pascal_type_print_func_varspec_suffix): New function.
5348 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
5349 TYPE_CODE_METHOD>: Use it.
5350 * python/py-value.c (valpy_call): Adjust call to
5351 call_function_by_hand.
5352 * rust-lang.c (rust_evaluate_funcall): Adjust call to
5353 call_function_by_hand.
5354 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
5355 call_function_by_hand.
5356 * valops.c (value_allocate_space_in_inferior): Adjust call to
5357 call_function_by_hand.
5358 * typeprint.c (type_print_unknown_return_type): New function.
5359 * typeprint.h (type_print_unknown_return_type): New declaration.
5360
54990598
PA
53612017-09-04 Pedro Alves <palves@redhat.com>
5362
5363 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
5364 types with more than one parameter as prototyped.
5365
9a24775b
PA
53662017-09-04 Pedro Alves <palves@redhat.com>
5367
5368 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
5369 (disassemble_command): Use gdb_disassembly_flags instead of bare
5370 int.
5371 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
5372 (dump_insns, do_mixed_source_and_assembly_deprecated)
5373 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
5374 Use gdb_disassembly_flags instead of bare int.
5375 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
5376 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
5377 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
5378 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
5379 (enum gdb_disassembly_flag): ... values of this new enumeration.
5380 (gdb_disassembly_flags): Define.
5381 (gdb_disassembly)
5382 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
5383 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
5384 gdb_disassembly_flags instead of bare int.
5385 * record-btrace.c (btrace_insn_history)
5386 (record_btrace_insn_history, record_btrace_insn_history_range)
5387 (record_btrace_insn_history_from): Use gdb_disassembly_flags
5388 instead of bare int.
5389 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
5390 Use gdb_disassembly_flags instead of bare int.
5391 * target-debug.h (target_debug_print_gdb_disassembly_flags):
5392 Define.
5393 * target-delegates.c: Regenerate.
5394 * target.c (target_insn_history, target_insn_history_from)
5395 (target_insn_history_range): Use gdb_disassembly_flags instead of
5396 bare int.
5397 * target.h: Include "disasm.h".
5398 (struct target_ops) <to_insn_history, to_insn_history_from,
5399 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
5400 int.
5401 (target_insn_history, target_insn_history_from)
5402 (target_insn_history_range): Use gdb_disassembly_flags instead of
5403 bare int.
5404
80a65e9b
SM
54052017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5406
5407 * cli/cli-script.c (build_command_line): For if/while commands,
5408 check whether args is empty.
5409
6b66338c
SM
54102017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5411
5412 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
5413 (enum command_control_type): Likewise.
5414 (struct command_line): Likewise.
5415 (free_command_lines): Likewise.
5416 (struct command_lines_deleter): Likewise.
5417 (command_line_up): Likewise.
5418 (read_command_lines): Likewise.
5419 (read_command_lines_1): Likewise.
5420 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
5421 (enum command_control_type): Likewise.
5422 (struct command_line): Likewise.
5423 (free_command_lines): Likewise.
5424 (struct command_lines_deleter): Likewise.
5425 (command_line_up): Likewise.
5426 (read_command_lines): Likewise.
5427 (read_command_lines_1): Likewise.
5428 * breakpoint.h: Include cli/cli-script.h.
5429 * extension-priv.h: Likewise.
5430 * gdbcmd.h: Likewise.
5431
51abb421
PA
54322017-09-04 Pedro Alves <palves@redhat.com>
5433
5434 * ada-lang.c (is_known_support_routine): Move sal declaration to
5435 where it is initialized.
5436 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
5437 (parse_breakpoint_sals, decode_static_tracepoint_spec)
5438 (clear_command, update_static_tracepoint): Remove init_sal
5439 references. Move declarations closer to initializations.
5440 * cli/cli-cmds.c (list_command): Move sal declarations closer to
5441 initializations.
5442 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
5443 references. Move sal declarations closer to initializations.
5444 * frame.c (find_frame_sal): Return a symtab_and_line via function
5445 return instead of output parameter. Remove init_sal references.
5446 * frame.h (find_frame_sal): Return a symtab_and_line via function
5447 return instead of output parameter.
5448 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
5449 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
5450 instead of memset.
5451 (gdbscm_find_pc_line): Remove init_sal reference.
5452 * infcall.c (call_function_by_hand_dummy): Remove init_sal
5453 references. Move declarations closer to initializations.
5454 * infcmd.c (set_step_frame): Update. Move declarations closer to
5455 initializations.
5456 (finish_backward): Remove init_sal references. Move declarations
5457 closer to initializations.
5458 * infrun.c (process_event_stop_test, handle_step_into_function)
5459 (insert_hp_step_resume_breakpoint_at_frame)
5460 (insert_step_resume_breakpoint_at_caller): Likewise.
5461 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
5462 (symbol_to_sal): Likewise.
5463 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
5464 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
5465 to its initialization.
5466 * reverse.c (save_bookmark_command): Use new/delete. Remove
5467 init_sal references. Move declarations closer to initializations.
5468 * source.c (get_current_source_symtab_and_line): Remove brace
5469 initialization.
5470 (set_current_source_symtab_and_line): Now takes the sal by const
5471 reference. Remove brace initialization.
5472 (line_info): Remove init_sal reference.
5473 * source.h (set_current_source_symtab_and_line): Now takes a
5474 symtab_and_line via const reference.
5475 * stack.c (set_current_sal_from_frame): Adjust.
5476 (print_frame_info): Adjust.
5477 (get_last_displayed_sal): Return the sal via function return
5478 instead of via output parameter. Simplify.
5479 (frame_info): Adjust.
5480 * stack.h (get_last_displayed_sal): Return the sal via function
5481 return instead of via output parameter.
5482 * symtab.c (init_sal): Delete.
5483 (find_pc_sect_line): Remove init_sal references. Move
5484 declarations closer to initializations.
5485 (find_function_start_sal): Remove init_sal references. Move
5486 declarations closer to initializations.
5487 * symtab.h (struct symtab_and_line): In-class initialize all
5488 fields.
5489 * tracepoint.c (set_traceframe_context)
5490 (print_one_static_tracepoint_marker): Remove init_sal references.
5491 Move declarations closer to initializations.
5492 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
5493 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
5494 declarations closer to initializations.
5495 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
5496 init_sal references. Adjust.
5497
6c5b2ebe
PA
54982017-09-04 Pedro Alves <palves@redhat.com>
5499
5500 * ax-gdb.c (agent_command_1): Use range-for.
5501 * break-catch-throw.c (re_set_exception_catchpoint): Update.
5502 * breakpoint.c: Include "common/array-view.h".
5503 (init_breakpoint_sal, create_breakpoint_sal): Change sals
5504 parameter from struct symtabs_and_lines to
5505 array_view<symtab_and_line>. Adjust. Use range-for. Update.
5506 (breakpoint_sals_to_pc): Change sals parameter from struct
5507 symtabs_and_lines to std::vector reference.
5508 (check_fast_tracepoint_sals): Change sals parameter from struct
5509 symtabs_and_lines to std::array_view. Use range-for.
5510 (decode_static_tracepoint_spec): Return a std::vector instead of
5511 symtabs_and_lines. Update.
5512 (create_breakpoint): Update.
5513 (break_range_command, until_break_command, clear_command): Update.
5514 (base_breakpoint_decode_location, bkpt_decode_location)
5515 (bkpt_probe_create_sals_from_location)
5516 (bkpt_probe_decode_location, tracepoint_decode_location)
5517 (tracepoint_probe_decode_location)
5518 (strace_marker_create_sals_from_location): Return a std::vector
5519 instead of symtabs_and_lines.
5520 (strace_marker_create_breakpoints_sal): Update.
5521 (strace_marker_decode_location): Return a std::vector instead of
5522 symtabs_and_lines. Update.
5523 (update_breakpoint_locations): Change struct symtabs_and_lines
5524 parameters to gdb::array_view. Adjust.
5525 (location_to_sals): Return a std::vector instead of
5526 symtabs_and_lines. Update.
5527 (breakpoint_re_set_default): Use std::vector instead of struct
5528 symtabs_and_lines.
5529 (decode_location_default): Return a std::vector instead of
5530 symtabs_and_lines. Update.
5531 * breakpoint.h: Include "common/array-view.h".
5532 (struct breakpoint_ops) <decode_location>: Now returns a
5533 std::vector instead of returning a symtabs_and_lines via output
5534 parameter.
5535 (update_breakpoint_locations): Change sals parameters to use
5536 gdb::array_view.
5537 * cli/cli-cmds.c (edit_command, list_command): Update to use
5538 std::vector and gdb::array_view.
5539 (ambiguous_line_spec): Adjust to use gdb::array_view and
5540 range-for.
5541 (compare_symtabs): Rename to ...
5542 (cmp_symtabs): ... this. Change parameters to symtab_and_line
5543 const reference and adjust.
5544 (filter_sals): Rewrite using std::vector and standard algorithms.
5545 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
5546 (jump_command): Update to use std::vector.
5547 * linespec.c (struct linespec_state) <canonical_names>: Update
5548 comment.
5549 (add_sal_to_sals_basic): Delete.
5550 (add_sal_to_sals, filter_results, convert_results_to_lsals)
5551 (decode_line_2, create_sals_line_offset)
5552 (convert_address_location_to_sals, convert_linespec_to_sals)
5553 (convert_explicit_location_to_sals, parse_linespec)
5554 (event_location_to_sals, decode_line_full, decode_line_1)
5555 (decode_line_with_current_source)
5556 (decode_line_with_last_displayed, decode_objc)
5557 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
5558 (linespec_result::~linespec_result): Adjust to use std::vector
5559 instead of symtabs_and_lines.
5560 * linespec.h (linespec_sals::sals): Now a std::vector.
5561 (struct linespec_result): Use std::vector, bool, and in-class
5562 initialization.
5563 (decode_line_1, decode_line_with_current_source)
5564 (decode_line_with_last_displayed): Return std::vector.
5565 * macrocmd.c (info_macros_command): Use std::vector.
5566 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
5567 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
5568 std::vector.
5569 * probe.h (parse_probes): Return a std::vector.
5570 * python/python.c (gdbpy_decode_line): Use std::vector and
5571 gdb::array_view.
5572 * source.c (select_source_symtab, line_info): Use std::vector.
5573 * stack.c (func_command): Use std::vector.
5574 * symtab.h (struct symtabs_and_lines): Delete.
5575 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
5576
7c44b49c
PA
55772017-09-04 Pedro Alves <palves@redhat.com>
5578
5579 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5580 unittests/array-view-selftests.c.
5581 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
5582 * common/array-view.h: New file.
5583 * unittests/array-view-selftests.c: New file.
5584
e439fa14
PA
55852017-09-04 Pedro Alves <palves@redhat.com>
5586
5587 * cli/cli-cmds.c (edit_command): Pass message to
5588 ambiguous_line_spec.
5589 (list_command): Pass message to ambiguous_line_spec. Say
5590 "first"/"last" instead of "start" and "end" to be consistent with
5591 the manual.
5592 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
5593 them to print formatted message.
5594
7525b645
PA
55952017-09-04 Pedro Alves <palves@redhat.com>
5596
5597 * btrace.c (ftrace_add_pt): Pass btrace_insn to
5598 ftrace_update_insns by reference instead of pointer.
5599
badc0020
YQ
56002017-09-04 Yao Qi <yao.qi@linaro.org>
5601
5602 * i386-go32-tdep.c: Include x86-xstate.h.
5603 (i386_go32_init_abi): Call i386_target_description.
5604 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
5605 if xcr0 is X86_XSTATE_X87_MASK.
5606 * i386-tdep.h (tdesc_i386): Remove the declaration.
5607 (tdesc_i386_mmx): Likewise.
5608
d78bdb54
YQ
56092017-09-04 Yao Qi <yao.qi@linaro.org>
5610
5611 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
5612 X86_XSTATE_SSE_MASK instead of 0.
5613
ca1fa5ee
YQ
56142017-09-04 Yao Qi <yao.qi@linaro.org>
5615
5616 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
5617 i386_target_description.
5618 * i386-fbsd-nat.c (i386fbsd_read_description): Call
5619 i386_target_description.
5620 * i386-tdep.c (i386_gdbarch_init): Likewise.
5621
2434b019
YQ
56222017-09-04 Yao Qi <yao.qi@linaro.org>
5623
5624 * amd64-darwin-tdep.c: Include "x86-xstate.h".
5625 (x86_darwin_init_abi_64): Call amd64_target_description.
5626 * amd64-dicos-tdep.c: Likewise.
5627 * amd64-fbsd-nat.c: Likewise.
5628 * amd64-fbsd-tdep.c: Likewise.
5629 * amd64-nbsd-tdep.c: Likewise.
5630 * amd64-obsd-tdep.c: Likewise.
5631 * amd64-sol2-tdep.c: Likewise.
5632 * amd64-windows-tdep.c: Likewise.
5633 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
5634
0860c437
SM
56352017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5636
5637 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
5638 (btrace_function) <insn>: Change type to use std::vector.
5639 * btrace.c (ftrace_debug, ftrace_call_num_insn,
5640 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
5641 ftrace_update_insns, ftrace_compute_global_level_offset,
5642 btrace_stitch_bts, btrace_clear, btrace_insn_get,
5643 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
5644 change to std::vector.
5645 (ftrace_update_insns): Adjust to change to std::vector, change
5646 type of INSN parameter.
5647 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
5648 * record-btrace.c (btrace_call_history_insn_range,
5649 btrace_compute_src_line_range,
5650 record_btrace_frame_prev_register): Adjust to change to
5651 std::vector.
5652 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
5653 to change to std::vector.
5654
0638b7f9
TT
56552017-09-03 Tom Tromey <tom@tromey.com>
5656
5657 * corefile.c (reopen_exec_file): Use std::string.
5658
8f84fb0e
TT
56592017-09-03 Tom Tromey <tom@tromey.com>
5660
5661 * compile/compile.c (compile_register_name_mangled): Return
5662 std::string.
5663 * compile/compile-loc2c.c (pushf_register_address): Update.
5664 (pushf_register): Update.
5665 * compile/compile-c-types.c (convert_array): Update.
5666 * compile/compile-c-symbols.c (generate_vla_size): Update.
5667 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
5668 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
5669 (convert_one_symbol): Update.
5670 (generate_c_for_for_one_variable): Update.
5671 * compile/compile-c-support.c (c_get_range_decl_name): Return a
5672 std::string.
5673 (generate_register_struct): Update.
5674 * compile/compile-internal.h (c_get_range_decl_name): Return a
5675 std::string.
5676 (compile_register_name_mangled): Return std::string.
5677
18e9961f
TT
56782017-09-03 Tom Tromey <tom@tromey.com>
5679
5680 * utils.c (perror_string): Return a std::string.
5681 (throw_perror_with_name, perror_warning_with_name): Update.
5682
45343786
TT
56832017-09-03 Tom Tromey <tom@tromey.com>
5684
5685 * demangle.c (demangle_command): Use std::string,
5686 unique_xmalloc_ptr.
5687
b57af503
TT
56882017-09-03 Tom Tromey <tom@tromey.com>
5689
5690 * cli/cli-setshow.c (do_set_command): Use std::string.
5691
6eecf35f
TT
56922017-09-03 Tom Tromey <tom@tromey.com>
5693
5694 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
5695
56496dd4
TT
56962017-09-03 Tom Tromey <tom@tromey.com>
5697
5698 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
5699
e91a1fa7
TT
57002017-09-03 Tom Tromey <tom@tromey.com>
5701
5702 * mi/mi-cmd-env.c (env_execute_cli_command): Use
5703 gdb::unique_xmalloc_ptr.
5704
7ffd83d7
TT
57052017-09-03 Tom Tromey <tom@tromey.com>
5706
5707 * thread.c (print_thread_info_1): Use string_printf.
5708 (thread_apply_command, thread_apply_all_command): Use
5709 std::string.
5710
1ccbe998
TT
57112017-09-03 Tom Tromey <tom@tromey.com>
5712
5713 * valprint.c (val_print_string): Update.
5714 * gdbcore.h (memory_error_message): Return std::string.
5715 * corefile.c (memory_error_message): Return std::string.
5716 (memory_error): Update.
5717 * breakpoint.c (insert_bp_location): Update.
5718
23fdd69e
SM
57192017-09-03 Simon Marchi <simon.marchi@ericsson.com>
5720
5721 * target/waitstatus.h (target_waitstatus_to_string): Change
5722 return type to std::string.
5723 * target/waitstatus.c (target_waitstatus_to_string): Return
5724 std::string.
5725 * target.h (target_waitstatus_to_string): Remove declaration.
5726 * infrun.c (resume, clear_proceed_status_thread,
5727 print_target_wait_results, do_target_wait, save_waitstatus,
5728 stop_all_threads): Adjust.
5729 * record-btrace.c (record_btrace_wait): Adjust.
5730 * target-debug.h
5731 (target_debug_print_struct_target_waitstatus_p): Adjust.
5732
5c811d30
JK
57332017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5734
5735 PR gdb/22046
5736 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
5737 detection.
5738
0a2dde4a
SDJ
57392017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
5740
5741 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
5742 for setting/unsetting environment variables on the remote target.
5743 (New remote packets): Add entries for QEnvironmentHexEncoded,
5744 QEnvironmentUnset and QEnvironmentReset.
5745 * common/environ.c (gdb_environ::operator=): Extend method to
5746 handle m_user_set_env_list and m_user_unset_env_list.
5747 (gdb_environ::clear): Likewise.
5748 (match_var_in_string): Change type of first parameter from 'char
5749 *' to 'const char *'.
5750 (gdb_environ::set): Extend method to handle
5751 m_user_set_env_list and m_user_unset_env_list.
5752 (gdb_environ::unset): Likewise.
5753 (gdb_environ::clear_user_set_env): New method.
5754 (gdb_environ::user_set_envp): Likewise.
5755 (gdb_environ::user_unset_envp): Likewise.
5756 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
5757 m_user_unset_env_list on move constructor/assignment.
5758 (unset): Add new default parameter 'update_unset_list = true'.
5759 (clear_user_set_env): New method.
5760 (user_set_envp): Likewise.
5761 (user_unset_envp): Likewise.
5762 (m_user_set_env_list): New std::set.
5763 (m_user_unset_env_list): Likewise.
5764 * common/rsp-low.c (hex2str): New function.
5765 (bin2hex): New overload for bin2hex function.
5766 * common/rsp-low.c (hex2str): New prototype.
5767 (str2hex): New overload prototype.
5768 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
5769 QEnvironmentUnset and QEnvironmentReset.
5770 (remote_protocol_features): Add QEnvironmentHexEncoded,
5771 QEnvironmentUnset and QEnvironmentReset packets.
5772 (send_environment_packet): New function.
5773 (extended_remote_environment_support): Likewise.
5774 (extended_remote_create_inferior): Call
5775 extended_remote_environment_support.
5776 (_initialize_remote): Add QEnvironmentHexEncoded,
5777 QEnvironmentUnset and QEnvironmentReset packet configs.
5778 * unittests/environ-selftests.c (gdb_selftest_env_var):
5779 New variable.
5780 (test_vector_initialization): New function.
5781 (test_init_from_host_environ): Likewise.
5782 (test_reinit_from_host_environ): Likewise.
5783 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
5784 Likewise.
5785 (test_unset_set_empty_vector): Likewise.
5786 (test_vector_clear): Likewise.
5787 (test_std_move): Likewise.
5788 (test_move_constructor):
5789 (test_self_move): Likewise.
5790 (test_set_unset_reset): Likewise.
5791 (run_tests): Rewrite in terms of the functions above.
5792
654670a4
WP
57932017-08-31 Weimin Pan <weimin.pan@oracle.com>
5794
5795 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
5796 (adi_available): Use a temp variable of type CORE_ADDR as argument
5797 3 when calling target_auxv_search.
5798 (adi_normalize_address): Use masks and xor operators to calculate
5799 normalized address.
5800 (adi_read_versions, adi_write_versions, adi_print_versions)
5801 (do_examine, do_assign): Use paddress.
5802
7755ddb7
JB
58032017-08-29 John Baldwin <jhb@FreeBSD.org>
5804
5805 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
5806 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
5807 out of loop and add supply of FIR.
5808 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
5809 add collect of FIR.
5810
fd437cbc
SM
58112017-08-28 Simon Marchi <simon.marchi@ericsson.com>
5812
3804a343 5813 PR gdb/21827
fd437cbc
SM
5814 * cli/cli-script.c (define_command): Don't convert command name
5815 to lower case.
5816
988f6b3d
JB
58172017-08-25 Joel Brobecker <brobecker@adacore.com>
5818
5819 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
5820 Update all callers accordingly. Remove all code blocks handling
5821 the case where DISPP is not NULL.
5822
663c44ac
JK
58232017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5824
5825 PR symtab/22003
5826 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
5827 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
5828 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
5829
f1902523
JK
58302017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5831
5832 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
5833 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
5834 (read_comp_units_from_section): New parameter abbrev_section, use
5835 read_and_check_comp_unit_head, allocate signatured_type if needed.
5836 (create_all_comp_units): Update read_comp_units_from_section caller.
5837
87215ad1
SDJ
58382017-08-23 Pedro Alves <palves@redhat.com>
5839
5840 PR remote/21852
5841 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
5842 to null_ptid and switch to thread without reading the registers
5843 after adding the inferior.
5844
6e41ddec
JK
58452017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5846
5847 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
5848 compile-gcc.
5849 * compile/compile.c (compile_gcc, show_compile_gcc): New.
5850 (compile_to_object): Implement compile_gcc.
5851 (_initialize_compile): Install "set compile-gcc". Initialize
5852 compile_gcc.
5853
e68c32d5
JK
58542017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5855
5856 * compile/compile.c (compile_to_object): Conditionally call
5857 set_verbose. Conditionally call compile or compile_v0.
5858
58afddc6
WP
58592017-08-07 Weimin Pan <weimin.pan@oracle.com>
5860
5861 * sparc64-tdep.h: (adi_normalize_address): New export.
5862 * sparc-nat.h: (open_adi_tag_fd): New export.
5863 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
5864 * sparc64-linux-tdep.c:
5865 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
5866 (sparc64_linux_handle_segmentation_fault): New function.
5867 (sparc64_linux_init_abi): Register
5868 sparc64_linux_handle_segmentation_fault
5869 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
5870 (sparc64_addr_bits_remove): New function.
5871 (sparc64_init_abi): Register sparc64_addr_bits_remove.
5872 (MAX_PROC_NAME_SIZE): New macro.
5873 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
5874 (sparc64adilist): New variable.
5875 (adi_proc_list): New variable.
5876 (find_adi_info): New function.
5877 (add_adi_info): New function.
5878 (get_adi_info_proc): New function.
5879 (get_adi_info): New function.
5880 (info_adi_command): New function.
5881 (read_maps_entry): New function.
5882 (adi_available): New function.
5883 (adi_normalize_address): New function.
5884 (adi_align_address): New function.
5885 (adi_convert_byte_count): New function.
5886 (adi_tag_fd): New function.
5887 (adi_is_addr_mapped): New function.
5888 (adi_read_versions): New function.
5889 (adi_write_versions): New function.
5890 (adi_print_versions): New function.
5891 (do_examine): New function.
5892 (do_assign): New function.
5893 (adi_examine_command): New function.
5894 (adi_assign_command): New function.
5895 (_initialize_sparc64_adi_tdep): New function.
5896
11db9430
SM
58972017-08-22 Simon Marchi <simon.marchi@ericsson.com>
5898
5899 * breakpoint.c (breakpoints_info): Rename to ...
5900 (info_breakpoints_command): ... this.
5901 (watchpoints_info): Rename to ...
5902 (info_watchpoints_command): ... this.
5903 (tracepoints_info): Rename to ...
5904 (info_tracepoints_command): ... this.
5905 (_initialize_breakpoint): Adjust.
5906 * dcache.c (dcache_info): Rename to ...
5907 (info_display_command): ... this.
5908 (_initialize_dcache): Adjust.
5909 * frame.h (args_info): Rename to ...
5910 (info_args_command): ... this.
5911 (locals_info): Rename to ...
5912 (info_locals_command): ... this.
5913 * infcmd.c (nofp_registers_info): Rename to ...
5914 (info_registers_command): ... this.
5915 (float_info): Rename to ...
5916 (info_float_command): ... this.
5917 (program_info): Rename to ...
5918 (info_program_command): ... this.
5919 (all_registers_info): Rename to ...
5920 (info_all_registers_command): ... this.
5921 (vector_info): Rename to ...
5922 (info_vector_command): ... this.
5923 (float_info): Rename to ...
5924 (info_float_command): ... this.
5925 (_initialize_infcmd): Adjust.
5926 * inferior.h (term_info): Rename to ...
5927 (info_terminal_command): ... this.
5928 * inflow.c (term_info): Rename to ...
5929 (info_terminal_command): ... this.
5930 (_initialize_inflow): Adjust.
5931 * infrun.c (signals_info): Rename to ...
5932 (info_signals_command): ... this.
5933 (_initialize_infrun): Adjust.
5934 * objc-lang.c (classes_info): Rename to ...
5935 (info_classes_command): ... this.
5936 (selectors_info): Rename to ...
5937 (info_selectors_command): ... this.
5938 (_initialize_objc_language): Adjust.
5939 * printcmd.c (sym_info): Rename to ...
5940 (info_symbol_command): ... this.
5941 (address_info): Rename to ...
5942 (info_address_command): ... this.
5943 (display_info): Rename to ...
5944 (info_display_command): ... this.
5945 (_initialize_printcmd): Adjust.
5946 * reverse.c (bookmarks_info): Rename to ...
5947 (info_breakpoints_command): ... this.
5948 (_initialize_reverse): Adjust.
5949 * ser-go32.c (dos_info): Rename to ...
5950 (info_serial_command): ... this.
5951 (_initialize_ser_dos): Adjust.
5952 * skip.c (skip_info): Rename to ...
5953 (info_skip_command): ... this.
5954 (_initialize_step_skip): Adjust.
5955 * source.c (line_info): Rename to ...
5956 (info_line_command): ... this.
5957 (source_info): Rename to ...
5958 (info_source_command)
5959 * stack.c (frame_info): Rename to ...
5960 (info_frame_command): ... this.
5961 (locals_info): Rename to ...
5962 (info_locals_command): ... this.
5963 (args_info): Rename to ...
5964 (info_args_command): ... this.
5965 (_initialize_stack): Adjust.
5966 * symtab.c (sources_info): Rename to ...
5967 (info_sources_command): ... this.
5968 (variables_info): Rename to ...
5969 (info_variables_command): ... this.
5970 (functions_info): Rename to ...
5971 (info_functions_command): ... this.
5972 (types_info): Rename to ...
5973 (info_types_command): ... this.
5974 (_initialize_symtab): Adjust.
5975 * target.c (target_info): Rename to ...
5976 (info_target_command): ... this.
5977 (initialize_targets): Adjust.
5978 * tracepoint.c (tvariables_info): Rename to ...
5979 (info_tvariables_command): ... this.
5980 (scope_info): Rename to ...
5981 (info_scope_command): ... this.
5982 (trace_dump_actions): Adjust.
5983 (_initialize_tracepoint): Adjust.
5984
b270e6f9
TT
59852017-08-22 Tom Tromey <tom@tromey.com>
5986
5987 * breakpoint.h (install_breakpoint): Update.
5988 * breakpoint.c (add_solib_catchpoint): Update.
5989 (install_breakpoint): Change argument to a std::unique_ptr.
5990 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
5991 (create_breakpoint_sal, create_breakpoint): Update.
5992 (watch_command_1, catch_exec_command_1)
5993 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
5994 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
5995 Return the breakpoint.
5996 (set_raw_breakpoint_without_location, set_raw_breakpoint)
5997 (new_single_step_breakpoint): Update.
5998 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
5999 std::unique_ptr.
6000 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
6001 std::unique_ptr.
6002 * break-catch-sig.c (create_signal_catchpoint): Use
6003 std::unique_ptr.
6004 * ada-lang.c (create_ada_exception_catchpoint): Use
6005 std::unique_ptr.
6006
36bd8eaa
TT
60072017-08-22 Tom Tromey <tom@tromey.com>
6008
6009 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
6010
56f37645
TT
60112017-08-22 Tom Tromey <tom@tromey.com>
6012
6013 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
6014 (lookup_partial_symbol): Update.
6015
0b581c69
TT
60162017-08-22 Tom Tromey <tom@tromey.com>
6017
6018 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
6019 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
6020 (find_and_open_source, symtab_to_fullname): Update.
6021 * psymtab.c (psymtab_to_fullname): Update.
6022
14278e1f
TT
60232017-08-22 Tom Tromey <tom@tromey.com>
6024
6025 * exec.c (exec_file_attach): Update.
6026 * linux-thread-db.c (try_thread_db_load): Update.
6027 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
6028 * utils.c (gdb_realpath): Change return type.
6029 (gdb_realpath_keepfile): Update.
6030 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
6031 (_initialize_utils): Register the new self test.
6032 * source.c (openp): Update.
6033 (find_and_open_source): Update.
6034 * nto-tdep.c (nto_find_and_open_solib): Update.
6035 * main.c (set_gdb_data_directory): Update.
6036 (captured_main_1): Update.
6037 * dwarf2read.c (dwarf2_get_dwz_file): Update
6038 (dw2_map_symbol_filenames): Update.
6039 * auto-load.c (auto_load_safe_path_vec_update): Update.
6040 (filename_is_in_auto_load_safe_path_vec): Change type of
6041 "filename_realp".
6042 (auto_load_objfile_script): Update.
6043 (file_is_auto_load_safe): Update. Use std::string.
6044 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
6045
4971c9a7
TT
60462017-08-22 Tom Tromey <tom@tromey.com>
6047
6048 * utils.c (gdb_realpath_keepfile): Return a
6049 gdb::unique_xmalloc_ptr.
6050 * exec.c (exec_file_attach): Update.
6051 * utils.h (gdb_realpath_keepfile): Return a
6052 gdb::unique_xmalloc_ptr.
6053
e3e41d58
TT
60542017-08-22 Tom Tromey <tom@tromey.com>
6055
6056 * compile/compile.c (compile_file_command): Use
6057 gdb::unique_xmalloc_ptr, std::string.
6058 * utils.c (gdb_abspath): Change return type.
6059 * source.c (openp): Update.
6060 * objfiles.c (allocate_objfile): Update.
6061 * main.c (set_gdb_data_directory): Update.
6062 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
6063
0d999a6e
ZZ
60642017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
6065
6066 * cli-cmds.c (list_commands): List actual code around more than
6067 one location.
6068
329d5e7e
JB
60692017-08-21 John Baldwin <jhb@FreeBSD.org>
6070
6071 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
6072
bf223d3e
PA
60732017-08-21 Pedro Alves <palves@redhat.com>
6074
6075 PR gdb/19487
6076 * c-exp.y (variable production): Handle function aliases.
6077 * minsyms.c (msymbol_is_text): New function.
6078 * minsyms.h (msymbol_is_text): Declare.
6079 * symtab.c (find_function_alias_target): New function.
6080 * symtab.h (find_function_alias_target): Declare.
6081
c973d0aa
PA
60822017-08-21 Pedro Alves <palves@redhat.com>
6083
6084 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
6085 typedefs.
6086 * typeprint.c (whatis_exp): If handling "whatis", and expression
6087 is OP_TYPE, strip one typedef level. Otherwise don't strip
6088 typedefs here.
6089 * valops.c (value_cast): Save "to" type before resolving
6090 stubs/typedefs. Use that type as resulting value's type.
6091
2989a365
TT
60922017-08-18 Tom Tromey <tom@tromey.com>
6093 Pedro Alves <palves@redhat.com>
6094
6095 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
6096 * sol-thread.c (sol_thread_resume, sol_thread_wait)
6097 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
6098 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
6099 * proc-service.c (ps_xfer_memory): Use scoped_restore.
6100 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
6101 (linux_get_siginfo_data): Add "thread" argument. Use
6102 scoped_restore.
6103 * linux-nat.c (linux_child_follow_fork)
6104 (check_stopped_by_watchpoint): Use scoped_restore.
6105 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
6106 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
6107 (restore_inferior_ptid, save_inferior_ptid): Remove.
6108 * btrace.c (btrace_fetch): Use scoped_restore.
6109 * bsd-uthread.c (bsd_uthread_fetch_registers)
6110 (bsd_uthread_store_registers): Use scoped_restore.
6111 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
6112 scoped_restore.
6113 * aix-thread.c (aix_thread_resume, aix_thread_wait)
6114 (aix_thread_xfer_partial): Use scoped_restore.
6115 * inferior.h (save_inferior_ptid): Remove.
6116
e60eb288
YQ
61172017-08-18 Yao Qi <yao.qi@linaro.org>
6118
6119 PR tdep/21818
6120 * arm-tdep.c (gdb_print_insn_arm): Mark
6121 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
6122
6d580b63
YQ
61232017-08-18 Yao Qi <yao.qi@linaro.org>
6124
6125 * NEWS: Mention GDBserver's new option "--selftest".
6126 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
6127 * selftest.c: Move it to common/selftest.c.
6128 * selftest.h: Move it to common/selftest.h.
6129 * selftest-arch.c (reset): New function.
6130 (tests_with_arch): Call reset.
6131
86dcbf50
YQ
61322017-08-18 Yao Qi <yao.qi@linaro.org>
6133
6134 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
6135 instead of exception_fprintf and printf_filtered.
6136
7649770c
YQ
61372017-08-18 Yao Qi <yao.qi@linaro.org>
6138
6139 * selftest.c (register_self_test): Rename it to
6140 selftests::register_test.
6141 (run_self_tests): selftest::run_tests.
6142 * selftest.h: Update declarations.
6143 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
6144 selftests::register_test_foreach_arch.
6145 * selftest-arch.h: Update declaration.
6146 * aarch64-tdep.c: Update.
6147 * arm-tdep.c: Likewise.
6148 * disasm-selftests.c: Likewise.
6149 * dwarf2loc.c: Likewise.
6150 * dwarf2-frame.c: Likewise.
6151 * findvar.c: Likewise.
6152 * gdbarch-selftests.c: Likewise.
6153 * maint.c (maintenance_selftest): Likewise.
6154 * regcache.c: Likewise.
6155 * rust-exp.y: Likewise.
6156 * selftest-arch.c: Likewise.
6157 * unittests/environ-selftests.c: Likewise.
6158 * unittests/function-view-selftests.c: Likewise.
6159 * unittests/offset-type-selftests.c: Likewise.
6160 * unittests/optional-selftests.c: Likewise.
6161 * unittests/scoped_restore-selftests.c: Likewise.
6162 * utils-selftests.c: Likewise.
6163
b0cba12e
PA
61642017-08-17 Pedro Alves <palves@redhat.com>
6165
6166 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
6167 local.
6168
4c8aa72d
PA
61692017-08-17 Pedro Alves <palves@redhat.com>
6170
6171 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
6172 field.
6173 (reset_die_in_process): Delete, replaced by ...
6174 (process_die_scope): ... this new class. Make it responsible for
6175 freeing cu->line_header too.
6176 (process_die): Use process_die_scope.
6177 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
6178 cu->line_header_die_owner. Don't release the line header if it's
6179 owned by the CU.
6180 (setup_type_unit_groups): Make the CU/DIE own the line header.
6181 Don't release the line header here.
6182
ba713918
AL
61832017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
6184
6185 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
6186
44d0fb3a
RK
61872017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
6188
6189 * NEWS: Mention new shortcuts for nexti and stepi in TUI
6190 Single-Key mode
6191
a5afdb16
RK
61922017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
6193
6194 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
6195 mode command list.
6196
47613aeb
SH
61972017-08-15 Stafford Horne <shorne@gmail.com>
6198
6199 * MAINTAINERS (Write After Approval): Add Stafford Horne.
6200
9c3cc999
SH
62012017-08-15 Stafford Horne <shorne@gmail.com>
6202
6203 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
6204
206726fb
SDJ
62052017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
6206
6207 PR gdb/21954
6208 * infcmd.c (unset_environment_command): Use the 'clear' method on
6209 the environment instead of resetting it.
6210
0335ac6d
JB
62112017-08-15 John Baldwin <jhb@FreeBSD.org>
6212
6213 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
6214 platforms.
6215
d3abe1c8
TT
62162017-08-14 Tom Tromey <tom@tromey.com>
6217
6218 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
6219 (print_binary_chars): Likewise.
6220 (BITS_IN_BYTES): Remove.
6221
d6382fff
TT
62222017-08-14 Tom Tromey <tom@tromey.com>
6223
6224 PR gdb/21675
6225 * valprint.c (LOW_ZERO): Change value to 034.
6226 (print_octal_chars): Add static_asserts for octal constants.
6227 * printcmd.c (print_scalar_formatted): Add 'd' case.
6228
f978cb06
TT
62292017-08-11 Tom Tromey <tom@tromey.com>
6230
6231 * symfile.c (add_symbol_file_command): Use std::vector.
6232
2f5404b3
TT
62332017-08-14 Tom Tromey <tom@tromey.com>
6234
6235 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
6236 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
6237 std::move.
6238 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
6239
de7985c3
PA
62402017-08-11 Pedro Alves <palves@redhat.com>
6241
6242 * infrun.c (process_event_stop_test): Adjust
6243 function_name_is_marked_for_skip call.
6244 * skip.c: Include <list>.
6245 (skiplist_entry): Make it a class with private fields, and
6246 getters/setters.
6247 (skiplist_entry_chain): Delete.
6248 (skiplist_entries): New.
6249 (skiplist_entry_count): Delete.
6250 (highest_skiplist_entry_num): New.
6251 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
6252 (add_skiplist_entry): Delete.
6253 (skiplist_entry::skiplist_entry): New.
6254 (skiplist_entry::add_entry): New.
6255 (skip_file_command, skip_function): Adjust.
6256 (compile_skip_regexp): Delete.
6257 (skip_command): Don't compile regexp here. Adjust to use
6258 skiplist_entry::add_entry.
6259 (skip_info): Adjust to use range-for and getters.
6260 (skip_enable_command, skip_disable_command): Adjust to use
6261 range-for and setters.
6262 (skip_delete_command): Adjust to use std::list.
6263 (add_skiplist_entry): Delete.
6264 (skip_file_p): Delete, refactored as ...
6265 (skiplist_entry::do_skip_file_p): ... this new method.
6266 (skip_gfile_p): Delete, refactored as ...
6267 (skiplist_entry::do_gskip_file_p): ... this new method.
6268 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
6269 (skiplist_entry::skip_function_p): ... this new method.
6270 (function_name_is_marked_for_skip): Now returns bool, and takes
6271 the function sal by const reference. Adjust to use range-for and
6272 skiplist_entry methods.
6273 (_initialize_step_skip): Remove references to
6274 skiplist_entry_chain, skiplist_entry_count.
6275 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
6276 takes the function sal by const reference.
6277
be7d3cd5
YQ
62782017-08-11 Yao Qi <yao.qi@linaro.org>
6279
6280 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
6281 (dwarf2_frame_cache): Remove reset_cache_cleanup.
6282 (dwarf2_frame_cache):
6283 * frame-unwind.c (frame_unwind_try_unwinder): Catch
6284 RETURN_MASK_ALL and set *this_case to NULL.
6285 * frame-unwind.h: Update comments.
6286
1c90d9f0
YQ
62872017-08-11 Yao Qi <yao.qi@linaro.org>
6288
6289 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
6290 (dwarf2_frame_state_copy_regs): Remove.
6291 (dwarf2_frame_state_free_regs): Remove.
6292 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
6293 (dwarf2_restore_rule): Call method .alloc_regs instead of
6294 dwarf2_frame_state_alloc_regs.
6295 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
6296 constructor. Call std::move.
6297 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
6298 (dwarf2_frame_cache): Likewise.
6299
6300 [GDB_SELF_TEST]: Include selftest.h and
6301 selftest-arch.h.
6302 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
6303 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
6304 execute_cfa_program_test.
6305
6306 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
6307 copy ctor, assignment operator, move assignment.
6308 <alloc_regs>: New method.
6309 <swap>: New method.
6310 (struct dwarf2_frame_state): Delete dtor.
6311 (dwarf2_frame_state_alloc_regs): Remove declaration.
6312 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
6313 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
6314
afe37d6b
YQ
63152017-08-11 Yao Qi <yao.qi@linaro.org>
6316
6317 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
6318 (dwarf2_frame_state::dwarf2_frame_state): New.
6319 (dwarf2_frame_state::~dwarf2_frame_state): New.
6320 (dwarf2_fetch_cfa_info): Update.
6321 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
6322 rather than a pointer. Update code.
6323 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
6324 dtor.
6325 <data_align, code_align, retaddr_column>: Change them to const.
6326 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
6327 to bool.
6328
b348037f
YQ
63292017-08-11 Yao Qi <yao.qi@linaro.org>
6330
6331 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
6332 <loc.exp>: New field.
6333 * dwarf2-frame.c (execute_cfa_program): Update.
6334 (dwarf2_frame_prev_register): Update.
6335
e7c9de26
PA
63362017-08-10 Pedro Alves <palves@redhat.com>
6337
6338 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
6339
e8c6b620
JB
63402017-08-09 John Baldwin <jhb@FreeBSD.org>
6341
6342 * fbsd-nat.c (struct fbsd_fork_info): Remove.
6343 (fbsd_pending_children): Use std::list.
6344 (fbsd_remember_child): Likewise.
6345 (fbsd_is_child_pending): Likewise.
6346 (fbsd_pending_vfork_done): Use std::forward_list.
6347 (fbsd_add_vfork_done): Likewise.
6348 (fbsd_is_vfork_done_pending): Likewise.
6349 (fbsd_next_vfork_done): Likewise.
6350
e4a26669
JB
63512017-08-09 John Baldwin <jhb@FreeBSD.org>
6352
6353 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
6354 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
6355 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
6356 for `mapfilename'.
6357 (fbsd_xfer_partial): Use gdb::byte_vector.
af3881e6 6358 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
e4a26669 6359
142311d3
JB
63602017-08-09 John Baldwin <jhb@FreeBSD.org>
6361
6362 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
6363 "filestuff.h".
6364 (fbsd_find_memory_regions): Fix `mapfile' initialization.
6365
42fa2e0e
TT
63662017-08-09 Tom Tromey <tom@tromey.com>
6367
6368 * skip.c (skiplist_entry): New constructor.
6369 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
6370 (skiplist_entry::file_is_glob): Now bool.
6371 (skiplist_entry::file, skiplist_entry::function): Now
6372 std::string.
6373 (make_skip_entry): Return a unique_ptr. Use new.
6374 (free_skiplist_entry, free_skiplist_entry_cleanup)
6375 (make_free_skiplist_entry_cleanup): Remove.
6376 (skip_command, skip_disable_command, add_skiplist_entry)
6377 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
6378 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
6379 (function_name_is_marked_for_skip): Update.
6380 (skip_delete_command): Update. Use delete.
6381
cd3af38d
JW
63822017-08-09 Jiong Wang <jiong.wang@arm.com>
6383
6384 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
6385 (aarch64_linux_core_read_description): New function.
6386 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
6387
29592bde
PA
63882017-08-09 Pedro Alves <palves@redhat.com>
6389
6390 * cp-name-parser.y (cp_comp_to_string): Return a
6391 gdb::unique_xmalloc_ptr<char>.
6392 * cp-support.c (replace_typedefs_qualified_name)
6393 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
6394 (cp_canonicalize_string_full): Use op= instead of explicit
6395 convertion.
6396 (cp_class_name_from_physname, method_name_from_physname)
6397 (cp_func_name, cp_remove_params): Adjust to use
6398 gdb::unique_xmalloc_ptr<char>.
6399 * cp-support.h (cp_comp_to_string): Return a
6400 gdb::unique_xmalloc_ptr<char>.
6401 * python/py-type.c (typy_lookup_type): Adjust to use
6402 gdb::unique_xmalloc_ptr<char>.
6403
b3340438
L
64042017-08-09 H.J. Lu <hongjiu.lu@intel.com>
6405
6406 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
6407
e88e8651
YQ
64082017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
6409 Yao Qi <yao.qi@linaro.org>
6410
6411 * cp-support.c (cp_canonicalize_string_full): Use
6412 gdb::unique_xmalloc_ptr<char>.
6413 (cp_canonicalize_string): Likewise.
6414
f5a29eb0
YQ
64152017-08-09 Yao Qi <yao.qi@linaro.org>
6416
6417 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
6418 * regformats/i386/amd64-avx-avx512.dat: Remove.
6419 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
6420 * regformats/i386/amd64-avx-mpx.dat:Remove.
6421 * regformats/i386/amd64-avx.dat: Remove.
6422 * regformats/i386/amd64-mpx.dat: Remove.
6423 * regformats/i386/i386-avx-avx512.dat: Remove.
6424 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
6425 * regformats/i386/i386-avx-mpx.dat: Remove.
6426 * regformats/i386/i386-mmx.dat: Remove.
6427 * regformats/i386/i386-mpx.dat: Remove.
6428
57757c2f
YQ
64292017-08-09 Yao Qi <yao.qi@linaro.org>
6430
6431 * amd64-tdep.h (tdesc_x32): Remove the declaration.
6432 * amd64-tdep.c: Don't include features/i386/x32*.c.
6433 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
6434 functions.
6435 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
6436 and i386/x32-avx-avx512.
6437 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
6438 and i386/x32.xml.
6439 * features/i386/x32-avx-avx512.c: Removed.
6440 * features/i386/x32-avx-avx512.xml: Removed.
6441 * features/i386/x32-avx.c: Removed.
6442 * features/i386/x32-avx.xml: Removed.
6443 * features/i386/x32.c: Removed.
6444 * features/i386/x32.xml: Removed.
6445 * regformats/i386/x32-avx-avx512.dat: Removed.
6446 * regformats/i386/x32-avx.dat: Removed.
6447 * regformats/i386/x32.dat: Removed.
6448
ba7b109b
MR
64492017-08-07 Maciej W. Rozycki <macro@imgtec.com>
6450
6451 PR breakpoints/21886
6452 * mem-break.c (default_memory_insert_breakpoint): Use
6453 `->placed_address' rather than `->reqstd_address' for the
6454 breakpoint location.
6455
e347efc3
MR
64562017-08-07 Maciej W. Rozycki <macro@imgtec.com>
6457
6458 * arch-utils.c (default_print_insn): Remove arch/mach/endian
6459 assertions.
6460
0dba2a6c
MR
64612017-08-07 Maciej W. Rozycki <macro@imgtec.com>
6462
6463 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
6464 a union of `tdep_info', `tdesc_data' and `id'.
6465 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
6466 rather than `info.tdep_info'.
6467 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
6468 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6469 * i386-tdep.c (i386_gdbarch_init): Likewise.
6470 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
6471 * mips-tdep.c (mips_gdbarch_init): Likewise.
6472 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
6473 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
6474 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
6475 `info.tdep_info'.
6476 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
6477 `info.tdep_info'.
6478 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
6479 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
6480 `info.tdep_info'.
6481 * spu-tdep.c (spu_gdbarch_init): Likewise.
6482 * gdbarch.h: Regenerate.
6483
16eb6b2d
LS
64842017-08-07 Leszek Swirski <leszeks@google.com>
6485
7b005726 6486 PR symtab/20899
16eb6b2d
LS
6487 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
6488
74cbb09e
SM
64892017-08-07 Simon Marchi <simon.marchi@ericsson.com>
6490
6491 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
6492 (gdbsim_open): Rename gdb_argv args object to argv.
6493
ee0c3293
TT
64942017-08-05 Tom Tromey <tom@tromey.com>
6495
6496 * compile/compile-object-load.c (compile_object_load): Use
6497 gdb::unique_xmalloc_ptr.
6498 * cli/cli-dump.c (scan_filename): Rename from
6499 scan_filename_with_cleanup. Change return type.
6500 (scan_expression): Rename from scan_expression_with_cleanup.
6501 Change return type.
6502 (dump_memory_to_file, dump_value_to_file, restore_command):
6503 Use gdb::unique_xmalloc_ptr. Update.
6504 * cli/cli-cmds.c (find_and_open_script): Use
6505 gdb::unique_xmalloc_ptr.
6506 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
6507 * symmisc.c (maintenance_print_symbols)
6508 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
6509 * symfile.c (symfile_bfd_open, generic_load)
6510 (add_symbol_file_command, remove_symbol_file_command): Use
6511 gdb::unique_xmalloc_ptr.
6512 * source.c (openp): Use gdb::unique_xmalloc_ptr.
6513 * psymtab.c (maintenance_print_psymbols): Use
6514 gdb::unique_xmalloc_ptr.
6515 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
6516 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
6517 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
6518 (reload_shared_libraries_1): Likewise.
6519
3232fabd
TT
65202017-08-05 Tom Tromey <tom@tromey.com>
6521
6522 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
6523 (rust_op_vector, rust_set_vector): New typedefs.
6524 (current_parser): New global.
6525 (work_obstack): Change to pointer type. Update all users.
6526 (rust_ast, pstate): Remove globals.
6527 (struct rust_parser): New.
6528 (%union) <params, field_inits>: Change type.
6529 (start, tuple_expr, unit_expr, struct_expr_list, literal)
6530 (field_expr, expr_list, maybe_expr_list, type_list): Update.
6531 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
6532 (convert_params_to_types, convert_params_to_expression): Change
6533 type of "params".
6534 (ast_string): Change type of "fields".
6535 (rust_parse): Make a rust_parser. Remove cleanups.
6536 (rust_lex_tests): Make and install an auto_obstack.
6537
f02fd774
YQ
65382017-08-04 Yao Qi <yao.qi@linaro.org>
6539
6540 * configure.srv (ipa_x32_linux_regobj): New.
6541 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
6542 instead of X86_TDESC_AVX512.
6543 (initialize_low_tracepoint): Call
6544 init_registers_x32_avx_avx512_linux.
6545
91975afd
YQ
65462017-08-04 Yao Qi <yao.qi@linaro.org>
6547
6548 * utils.h (gdb_argv): Add namespace std for nullptr_t.
6549
2331fa3a
RK
65502017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
6551
6552 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
6553
744e4fe1
TT
65542017-08-03 Tom Tromey <tom@tromey.com>
6555
6556 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
6557 Remove.
6558 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
6559
1c034b67
TT
65602017-08-03 Tom Tromey <tom@tromey.com>
6561
6562 * python/py-param.c (compute_enum_values): Use gdb_argv.
6563
773a1edc
TT
65642017-08-03 Tom Tromey <tom@tromey.com>
6565
6566 * utils.h (struct gdb_argv_deleter): New.
6567 (gdb_argv): New class.
6568 * utils.c (gdb_argv::reset): New method.
6569 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
6570 * tracefile.c (tsave_command): Use gdb_argv.
6571 * top.c (new_ui_command): Use gdb_argv.
6572 * symmisc.c (maintenance_print_symbols)
6573 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
6574 * symfile.c (symbol_file_command, generic_load)
6575 (remove_symbol_file_command): Use gdb_argv.
6576 * stack.c (backtrace_command): Use gdb_argv.
6577 * source.c (add_path, show_substitute_path_command)
6578 (unset_substitute_path_command, set_substitute_path_command):
6579 Use gdb_argv.
6580 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
6581 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
6582 * remote.c (extended_remote_run, remote_put_command)
6583 (remote_get_command, remote_delete_command): Use gdb_argv.
6584 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
6585 (gdbsim_open): Use gdb_argv.
6586 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
6587 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
6588 * procfs.c (procfs_info_proc): Use gdb_argv.
6589 * interps.c (interpreter_exec_cmd): Use gdb_argv.
6590 * infrun.c (handle_command): Use gdb_argv.
6591 * inferior.c (add_inferior_command, clone_inferior_command):
6592 Use gdb_argv.
6593 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
6594 * exec.c (exec_file_command): Use gdb_argv.
6595 * cli/cli-cmds.c (alias_command): Use gdb_argv.
6596 * compile/compile.c (build_argc_argv): Use gdb_argv.
6597
0d50bde3
TT
65982017-08-03 Tom Tromey <tom@tromey.com>
6599
6600 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
6601
7f968c89
TT
66022017-08-03 Tom Tromey <tom@tromey.com>
6603
6604 * python/python.c (compute_python_string): Return std::string.
6605 (gdbpy_eval_from_control_command): Update.
6606 (do_start_initialization): Use std::string.
6607 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
6608 xstrprintf.
6609 * python/py-breakpoint.c (local_setattro): Use string_printf, not
6610 xstrprintf.
6611
3c9ebddd
TT
66122017-08-03 Tom Tromey <tom@tromey.com>
6613
6614 * top.h (do_restore_instream_cleanup): Remove.
6615 * top.c (do_restore_instream_cleanup): Remove.
6616 (read_command_file): Use scoped_restore.
6617 * cli/cli-script.c (execute_user_command): Use scoped_restore.
6618
b51b225e
TT
66192017-08-03 Tom Tromey <tom@tromey.com>
6620
6621 * cli/cli-script.c (execute_user_command)
6622 (execute_control_command): Use scoped_restore.
6623
ac991630
TT
66242017-08-03 Tom Tromey <tom@tromey.com>
6625
6626 * cli/cli-script.c (do_restore_user_call_depth): Remove.
6627 (execute_user_command): Remove user_call_depth; use
6628 user_args_stack's size instead.
6629
898e0c8e
TT
66302017-08-03 Tom Tromey <tom@tromey.com>
6631
6632 * top.h (in_user_command): Remove.
6633 * top.c (in_user_command): Remove.
6634 * cli/cli-script.c (do_restore_user_call_depth)
6635 (execute_user_command): Update.
6636
26fcd5d7
TT
66372017-08-03 Tom Tromey <tom@tromey.com>
6638
6639 * valops.c (search_struct_method): Use gdb::byte_vector.
6640 * valarith.c (value_concat): Use std::vector.
6641 * target.c (memory_xfer_partial): Use gdb::byte_vector.
6642 (simple_search_memory): Likewise.
6643 * printcmd.c (find_string_backward): Use gdb::byte_vector.
6644 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
6645 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
6646 * elfread.c (elf_rel_plt_read): Use std::string.
6647 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
6648 * cli/cli-dump.c (restore_section_callback): Use
6649 gdb::byte_vector.
6650
7c218e6c
TT
66512017-08-03 Tom Tromey <tom@tromey.com>
6652
6653 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
6654
31b68d4a
TT
66552017-08-03 Tom Tromey <tom@tromey.com>
6656
6657 * tui/tui-regs.c (tui_restore_gdbout): Remove.
6658 (tui_register_format): Use scoped_restore.
6659
2ec845e7
TT
66602017-08-03 Tom Tromey <tom@tromey.com>
6661
6662 * reverse.c (exec_direction_default): Remove.
6663 (exec_reverse_once): Use scoped_restore.
6664 * remote.c (restore_remote_timeout): Remove.
6665 (remote_flash_erase, remote_flash_write, remote_flash_done)
6666 (readchar, remote_serial_write): Use scoped_restore.
6667 * cli/cli-script.c (struct source_cleanup_lines_args)
6668 (source_cleanup_lines): Remove.
6669 (script_from_file): Use scoped_restore.
6670 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
6671 (source_command): Use scoped_restore.
6672
b3bc8453
TT
66732017-08-03 Tom Tromey <tom@tromey.com>
6674
6675 * utils.h (make_cleanup_free_so): Remove.
6676 * utils.c (do_free_so, make_cleanup_free_so): Remove.
6677 * solist.h (struct so_deleter): New.
6678 (so_list_up): New typedef.
6679 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
6680
e3ad2841
TT
66812017-08-03 Tom Tromey <tom@tromey.com>
6682
6683 * utils.h (make_cleanup_restore_current_language): Remove.
6684 * utils.c (do_restore_current_language)
6685 (make_cleanup_restore_current_language): Remove.
6686 * parse.c (parse_exp_in_context_1)
6687 (parse_expression_with_language): Use
6688 scoped_restore_current_language.
6689 * mi/mi-main.c (mi_cmd_execute): Use
6690 scoped_restore_current_language.
6691 * language.h (scoped_restore_current_language): New class.
6692
b80cf838
TT
66932017-08-03 Tom Tromey <tom@tromey.com>
6694
6695 * compile/compile.c (cleanup_unlink_file): Remove.
6696 (compile_to_object): Use gdb::unlinker.
6697 (eval_compile_command): Likewise.
6698
fad0444a
TT
66992017-08-03 Tom Tromey <tom@tromey.com>
6700
6701 * utils.h (make_cleanup_fclose): Remove.
6702 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
6703
6e7bc05c
TT
67042017-08-03 Tom Tromey <tom@tromey.com>
6705
6706 * top.c (open_terminal_stream): Return gdb_file_up.
6707 (new_ui_command): Update.
6708
4a45905b
TT
67092017-08-03 Tom Tromey <tom@tromey.com>
6710
6711 * source.c (print_source_lines_base, forward_search_command)
6712 (reverse_search_command): Use gdb_file_up.
6713
7cd06d6e
TT
67142017-08-03 Tom Tromey <tom@tromey.com>
6715
6716 * fbsd-nat.c (fbsd_find_memory_regions): Update.
6717
ed166945
TT
67182017-08-03 Tom Tromey <tom@tromey.com>
6719
6720 * cli/cli-cmds.c (find_and_open_script): Change return type.
6721 Remove "streamp" and "full_path" parameters.
6722 (source_script_with_search): Update.
6723 * auto-load.c (source_script_file): Update.
6724 * cli/cli-cmds.h (find_and_open_script): Change type.
6725 (open_script): New struct.
6726
d419f42d
TT
67272017-08-03 Tom Tromey <tom@tromey.com>
6728
6729 * xml-support.c (xml_fetch_content_from_file): Update.
6730 * ui-file.c (stdio_file::open): Update.
6731 * tracefile-tfile.c (tfile_start): Update.
6732 * remote.c (remote_file_put, remote_file_get): Update.
6733 * nat/linux-procfs.c (linux_proc_get_int)
6734 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
6735 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
6736 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
6737 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6738 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
6739 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
6740 * linux-nat.c (linux_proc_pending_signals): Update.
6741 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
6742 (file_closer): Remove.
6743 * compile/compile.c (compile_to_object): Update.
6744 * common/filestuff.h (struct gdb_file_deleter): New.
6745 (gdb_file_up): New typedef.
6746 (gdb_fopen_cloexec): Change return type.
6747 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
6748 * cli/cli-dump.c (fopen_with_cleanup): Remove.
6749 (dump_binary_file, restore_binary_file): Update.
6750 * auto-load.c (auto_load_objfile_script_1): Update.
6751
4a2b031d
TT
67522017-08-03 Tom Tromey <tom@tromey.com>
6753
6754 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
6755 (info_static_tracepoint_markers_command): Likewise.
6756 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
6757 * skip.c (skip_info): Use ui_out_emit_table.
6758 * progspace.c (print_program_space): Use ui_out_emit_table.
6759 * osdata.c (info_osdata): Use ui_out_emit_table.
6760 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
6761 ui_out_emit_table.
6762 * linux-thread-db.c (info_auto_load_libthread_db): Use
6763 ui_out_emit_table.
6764 * inferior.c (print_inferior): Use ui_out_emit_table.
6765 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
6766 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
6767 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
6768 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
6769 * ui-out.h (class ui_out_emit_table): New.
6770
a4f320fd
MR
67712017-08-02 Maciej W. Rozycki <macro@imgtec.com>
6772
6773 * mips-tdep.c (mips_fpu_type_str): New function.
6774 (mips_dump_tdep): Call it.
6775
a2f1f308
MR
67762017-08-01 Maciej W. Rozycki <macro@imgtec.com>
6777
6778 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
6779 `->mips_fpu_type'.
6780
7e5ed83b
XR
67812017-07-31 Xavier Roirand <roirand@adacore.com>
6782
6783 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6784
4c9dc811
XR
67852017-07-27 Xavier Roirand <roirand@adacore.com>
6786
6787 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
6788
27d41eac
YQ
67892017-07-26 Yao Qi <yao.qi@linaro.org>
6790
6791 * cli/cli-cmds.c (maintenancechecklist): New variable.
6792 * gdbcmd.h (maintenancechecklist): Declare it.
6793 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
6794 Call i386_linux_read_description with different masks.
6795 * maint.c (maintenance_check_command): New function.
6796 (_initialize_maint_cmds): Call add_prefix_cmd.
6797 * target-descriptions.c (tdesc_reg): override operator != and ==.
6798 (tdesc_type): Likewise.
6799 (tdesc_feature): Likewise.
6800 (target_desc): Likewise.
6801 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
6802 (maintenance_check_xml_descriptions): New function.
6803 (_initialize_target_descriptions) Add command "xml-descriptions".
6804 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
6805
ea03d0d3
YQ
68062017-07-26 Yao Qi <yao.qi@linaro.org>
6807
6808 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
6809 Include features/i386/32bit-*.c.
6810 (i386_linux_read_description): Generate target description if it
6811 doesn't exist.
6812 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
6813 functions.
6814 * features/i386/32bit-linux.c: Re-generated.
6815 * features/i386/32bit-sse.c: Likewise.
6816 * target-descriptions.c (print_c_feature::visit): Print code to
6817 set register number if needed.
6818 (print_c_feature) <m_next_regnum>: New field.
6819
25aa13e5
YQ
68202017-07-26 Yao Qi <yao.qi@linaro.org>
6821
6822 * features/Makefile (CFILES): Rename with TDESC_CFILES.
6823 (FEATURE_XMLFILES): New.
6824 (FEATURE_CFILES): New.
6825 New rules.
6826 (clean-cfiles): Remove generated c files.
6827 * features/i386/32bit-avx.c: Generated.
6828 * features/i386/32bit-avx512.c: Generated.
6829 * features/i386/32bit-core.c: Generated.
6830 * features/i386/32bit-linux.c: Generated.
6831 * features/i386/32bit-mpx.c: Generated.
6832 * features/i386/32bit-pkeys.c: Generated.
6833 * features/i386/32bit-sse.c: Generated.
6834 * target-descriptions.c: Include algorithm.
6835 (tdesc_element_visitor): Add method visit_end.
6836 (print_c_tdesc): Implement visit_end.
6837 (print_c_tdesc:: m_filename_after_features): Move it to
6838 protected.
6839 (print_c_feature): New class.
6840 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
6841 name starts with "i386/32bit-".
6842
6eb1e6a8
YQ
68432017-07-26 Yao Qi <yao.qi@linaro.org>
6844
6845 * target-descriptions.c (tdesc_element_visitor): New class.
6846 (tdesc_element): New class.
6847 (tdesc_reg): Inherit from tdesc_element.
6848 (tdesc_reg::accept): New function.
6849 (tdesc_type): Inherit from tdesc_element.
6850 (tdesc_type::accept): New function.
6851 (tdesc_feature): Inherit from tdesc_element.
6852 (tdesc_feature::accept): New function.
6853 (target_desc): Inherit from tdesc_element.
6854 (target_desc::target_desc): New.
6855 (target_desc::~target_desc): New.
6856 (target_desc::accept): New.
6857 (allocate_target_description): Use new.
6858 (free_target_description): Use delete.
6859 (print_c_tdesc): New class.
6860 (maint_print_c_tdesc_cmd): Adjust.
6861
6862 * features/aarch64.c: Re-generated.
6863 * features/arc-arcompact.c: Re-generated.
6864 * features/arc-v2.c: Re-generated.
6865 * features/arm/arm-with-iwmmxt.c: Re-generated.
6866 * features/arm/arm-with-m.c: Re-generated.
6867 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
6868 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
6869 * features/arm/arm-with-neon.c: Re-generated.
6870 * features/arm/arm-with-vfpv2.c: Re-generated.
6871 * features/arm/arm-with-vfpv3.c: Re-generated.
6872 * features/i386/amd64-avx-avx512.c: Re-generated.
6873 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
6874 * features/i386/amd64-avx.c: Re-generated.
6875 * features/i386/amd64-avx-linux.c: Re-generated.
6876 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
6877 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
6878 * features/i386/amd64-avx-mpx.c: Re-generated.
6879 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
6880 * features/i386/amd64.c: Re-generated.
6881 * features/i386/amd64-linux.c: Re-generated.
6882 * features/i386/amd64-mpx.c: Re-generated.
6883 * features/i386/amd64-mpx-linux.c: Re-generated.
6884 * features/i386/i386-avx-avx512.c: Re-generated.
6885 * features/i386/i386-avx-avx512-linux.c: Re-generated.
6886 * features/i386/i386-avx.c: Re-generated.
6887 * features/i386/i386-avx-linux.c: Re-generated.
6888 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
6889 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
6890 * features/i386/i386-avx-mpx.c: Re-generated.
6891 * features/i386/i386-avx-mpx-linux.c: Re-generated.
6892 * features/i386/i386.c: Re-generated.
6893 * features/i386/i386-linux.c: Re-generated.
6894 * features/i386/i386-mmx.c: Re-generated.
6895 * features/i386/i386-mmx-linux.c: Re-generated.
6896 * features/i386/i386-mpx.c: Re-generated.
6897 * features/i386/i386-mpx-linux.c: Re-generated.
6898 * features/i386/x32-avx-avx512.c: Re-generated.
6899 * features/i386/x32-avx-avx512-linux.c: Re-generated.
6900 * features/i386/x32-avx.c: Re-generated.
6901 * features/i386/x32-avx-linux.c: Re-generated.
6902 * features/i386/x32.c: Re-generated.
6903 * features/i386/x32-linux.c: Re-generated.
6904 * features/microblaze.c: Re-generated.
6905 * features/microblaze-with-stack-protect.c: Re-generated.
6906 * features/mips64-dsp-linux.c: Re-generated.
6907 * features/mips64-linux.c: Re-generated.
6908 * features/mips-dsp-linux.c: Re-generated.
6909 * features/mips-linux.c: Re-generated.
6910 * features/nds32.c: Re-generated.
6911 * features/nios2.c: Re-generated.
6912 * features/nios2-linux.c: Re-generated.
6913 * features/rs6000/powerpc-32.c: Re-generated.
6914 * features/rs6000/powerpc-32l.c: Re-generated.
6915 * features/rs6000/powerpc-403.c: Re-generated.
6916 * features/rs6000/powerpc-403gc.c : Re-generated.
6917 * features/rs6000/powerpc-405.c: Re-generated.
6918 * features/rs6000/powerpc-505.c: Re-generated.
6919 * features/rs6000/powerpc-601.c: Re-generated.
6920 * features/rs6000/powerpc-602.c: Re-generated.
6921 * features/rs6000/powerpc-603.c: Re-generated.
6922 * features/rs6000/powerpc-604.c: Re-generated.
6923 * features/rs6000/powerpc-64.c: Re-generated.
6924 * features/rs6000/powerpc-64l.c: Re-generated.
6925 * features/rs6000/powerpc-7400.c: Re-generated.
6926 * features/rs6000/powerpc-750.c: Re-generated.
6927 * features/rs6000/powerpc-860.c: Re-generated.
6928 * features/rs6000/powerpc-altivec32.c: Re-generated.
6929 * features/rs6000/powerpc-altivec32l.c: Re-generated.
6930 * features/rs6000/powerpc-altivec64.c: Re-generated.
6931 * features/rs6000/powerpc-altivec64l.c: Re-generated.
6932 * features/rs6000/powerpc-cell32l.c: Re-generated.
6933 * features/rs6000/powerpc-cell64l.c: Re-generated.
6934 * features/rs6000/powerpc-e500.c: Re-generated.
6935 * features/rs6000/powerpc-e500l.c: Re-generated.
6936 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
6937 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
6938 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
6939 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
6940 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
6941 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
6942 * features/rs6000/powerpc-vsx32.c: Re-generated.
6943 * features/rs6000/powerpc-vsx32l.c: Re-generated.
6944 * features/rs6000/powerpc-vsx64.c: Re-generated.
6945 * features/rs6000/powerpc-vsx64l.c: Re-generated.
6946 * features/rs6000/rs6000.c: Re-generated.
6947 * features/s390-linux32.c: Re-generated.
6948 * features/s390-linux32v1.c: Re-generated.
6949 * features/s390-linux32v2.c: Re-generated.
6950 * features/s390-linux64.c: Re-generated.
6951 * features/s390-linux64v1.c: Re-generated.
6952 * features/s390-linux64v2.c: Re-generated.
6953 * features/s390-te-linux64.c: Re-generated.
6954 * features/s390-tevx-linux64.c: Re-generated.
6955 * features/s390-vx-linux64.c: Re-generated.
6956 * features/s390x-linux64.c: Re-generated.
6957 * features/s390x-linux64v1.c: Re-generated.
6958 * features/s390x-linux64v2.c: Re-generated.
6959 * features/s390x-te-linux64.c: Re-generated.
6960 * features/s390x-tevx-linux64.c: Re-generated.
6961 * features/s390x-vx-linux64.c: Re-generated.
6962 * features/sparc/sparc32-solaris.c: Re-generated.
6963 * features/sparc/sparc64-solaris.c: Re-generated.
6964 * features/tic6x-c62x.c: Re-generated.
6965 * features/tic6x-c62x-linux.c: Re-generated.
6966 * features/tic6x-c64x.c: Re-generated.
6967 * features/tic6x-c64x-linux.c: Re-generated.
6968 * features/tic6x-c64xp.c: Re-generated.
6969 * features/tic6x-c64xp-linux.c: Re-generated.
6970
35b4818d
YQ
69712017-07-26 Yao Qi <yao.qi@linaro.org>
6972
6973 * i386-linux-tdep.c (i386_linux_read_description): New function.
6974 (i386_linux_core_read_description): Call
6975 i386_linux_read_description.
6976 * i386-linux-tdep.h (i386_linux_read_description): Declare.
6977 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
6978 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
6979 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
6980 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
6981 * x86-linux-nat.c (x86_linux_read_description): Call
6982 i386_linux_read_description.
6983
8e2141c6
YQ
69842017-07-26 Yao Qi <yao.qi@linaro.org>
6985
6986 * NEWS: Mention it.
6987 * features/Makefile (%.c: %.xml): Pass the xml file name to
6988 command "maint print c-tdesc".
6989 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
6990 name from 'arg'.
6991
b468ff4c
YQ
69922017-07-26 Yao Qi <yao.qi@linaro.org>
6993
6994 * target-descriptions.c (target_desc): Add ctor and dtor. Do
6995 in-class initialization.
6996 (tdesc_create_feature): Call new instead of XCNEW.
6997 (free_target_description): Ue delete.
6998
b9c0e1b4
JB
69992017-07-25 John Baldwin <jhb@FreeBSD.org>
7000
7001 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
7002
a04b5337
YQ
70032017-07-25 Yao Qi <yao.qi@linaro.org>
7004
7005 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
7006 constant.
7007 (amd64_x32_init_abi): Likewise.
7008 * amd64-tdep.h (amd64_init_abi): Update declaration.
7009 (amd64_x32_init_abi): Likewise.
7010
02ad7fc2
YQ
70112017-07-25 Yao Qi <yao.qi@linaro.org>
7012
7013 PR tdep/21717
7014 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
7015 condition for FPSCR.
7016 (arm_linux_store_inferior_registers): Likewise.
7017
b6f48cb0
TT
70182017-07-22 Tom Tromey <tom@tromey.com>
7019
7020 * break-catch-syscall.c (struct catch_syscall_inferior_data)
7021 <syscalls_counts>: Now a std::vector.
7022 (get_catch_syscall_inferior_data): Use "new".
7023 (catch_syscall_inferior_data_cleanup): Use "delete".
7024 (insert_catch_syscall, remove_catch_syscall)
7025 (clear_syscall_counts): Update.
7026
e12c9b7a
TT
70272017-07-22 Tom Tromey <tom@tromey.com>
7028
7029 * break-catch-syscall.c (syscall_catchpoint)
7030 <syscalls_to_be_caught>: Now a std::vector<int>
7031 (~syscall_catchpoint): Remove.
7032 (insert_catch_syscall, remove_catch_syscall)
7033 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
7034 (print_mention_catch_syscall, print_recreate_catch_syscall):
7035 Update.
7036 (create_syscall_event_catchpoint): Change type of "filter"
7037 parameter.
7038 (catch_syscall_split_args): Return a std::vector.
7039 (catch_syscall_command_1, catching_syscall_number_1): Update.
7040
4fa8aeac
TT
70412017-07-22 Tom Tromey <tom@tromey.com>
7042
7043 * break-catch-throw.c (struct exception_catchpoint)
7044 <exception_rx>: Now a std::string.
7045 (~exception_catchpoint): Remove.
7046 (print_one_detail_exception_catchpoint): Update.
7047 (handle_gnu_v3_exceptions): Change type of except_rx.
7048 (extract_exception_regexp): Return a std::string.
7049 (catch_exception_command_1): Update.
7050
f746a154
TT
70512017-07-22 Tom Tromey <tom@tromey.com>
7052
7053 * break-catch-sig.c (gdb_signal_type): Remove typedef.
7054 (struct signal_catchpoint) <signals_to_be_caught>: Now a
7055 std::vector.
7056 <catch_all>: Now a bool.
7057 (~signal_catchpoint): Remove.
7058 (signal_catchpoint_insert_location)
7059 (signal_catchpoint_remove_location)
7060 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
7061 (signal_catchpoint_print_mention)
7062 (signal_catchpoint_print_recreate)
7063 (signal_catchpoint_explains_signal): Update.
7064 (create_signal_catchpoint): Change type of "filter" and
7065 "catch_all".
7066 (catch_signal_split_args): Return a std::vector. Change type of
7067 "catch_all".
7068 (catch_signal_command): Update.
7069
47e77640
PA
70702017-07-20 Pedro Alves <palves@redhat.com>
7071
7072 * ada-lang.c (ada_language_defn): Make extern.
7073 (_initialize_ada_language): Remove add_language call.
7074 * c-lang.c (c_language_defn, cplus_language_defn)
7075 (asm_language_defn, minimal_language_defn): Make extern.
7076 (_initialize_c_language): Delete.
7077 * completer.c (compare_cstrings): Delete, moved to utils.h.
7078 * d-lang.c (d_language_defn): Make extern.
7079 (_initialize_d_language): Remove add_language calls.
7080 * defs.h (enum language): Add comment.
7081 * f-lang.c (f_language_defn): Make extern.
7082 (_initialize_f_language): Remove add_language call.
7083 * go-lang.c (go_language_defn): Make extern.
7084 (_initialize_go_language): Remove add_language call.
7085 * language.c: Include <algorithm>.
7086 (languages): Redefine as const array.
7087 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
7088 (set_language_command): Handle "local". Use for-range loop.
7089 (set_language): Remove loop.
7090 (language_enum): Rewrite.
7091 (language_def, language_str): Remove loops.
7092 (add_language): Delete.
7093 (add_set_language_command): New, based on add_languages.
7094 (skip_language_trampoline): Adjust.
7095 (local_language_defn): Delete.
7096 (language_gdbarch_post_init): Adjust.
7097 (_initialize_language): Remove add_language calls. Call
7098 add_set_language_command.
7099 * language.h (add_language): Delete.
7100 (auto_language_defn)
7101 (unknown_language_defn, minimal_language_defn, ada_language_defn)
7102 (asm_language_defn, c_language_defn, cplus_language_defn)
7103 (d_language_defn, f_language_defn, go_language_defn)
7104 (m2_language_defn, objc_language_defn, opencl_language_defn)
7105 (pascal_language_defn, rust_language_defn): Declare.
7106 * m2-lang.c (m2_language_defn): Make extern.
7107 (_initialize_m2_language): Remove add_language call.
7108 * objc-lang.c (objc_language_defn): Make extern.
7109 (_initialize_objc_language): Remove add_language call.
7110 * opencl-lang.c (opencl_language_defn): Make extern.
7111 (_initialize_opencl_language): Remove add_language call.
7112 * p-lang.c (pascal_language_defn): Make extern.
7113 (_initialize_pascal_language): Delete.
7114 * rust-lang.c (rust_language_defn): Make extern.
7115 (_initialize_rust_language): Delete.
7116 * utils.h (compare_cstrings): New static inline function.
7117
edb0c9cb
PA
71182017-07-20 Pedro Alves <palves@redhat.com>
7119
7120 * ada-lang.c (ada_to_fixed_type_1): Adjust.
7121 (get_var_value): Constify parameters.
7122 (get_int_var_value): Change prototype.
7123 (to_fixed_range_type): Adjust.
7124 * ada-lang.h (get_int_var_value): Change prototype.
7125
a778f165
PA
71262017-07-20 Pedro Alves <palves@redhat.com>
7127
7128 * dwarf2read.c (dw2_lookup_symbol): Use
7129 SYMBOL_MATCHES_SEARCH_NAME.
7130 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
7131
42edd901
PA
71322017-07-20 Pedro Alves <palves@redhat.com>
7133
7134 * block.c (block_iter_name_step, block_iter_name_first)
7135 (block_iter_name_next): Delete.
7136 (block_lookup_symbol_primary): Adjust to use
7137 dict_iter_match_first/dict_iter_match_next.
7138 * block.h (block_iter_name_first, block_iter_name_next): Delete
7139 declarations.
7140 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
7141 dict_iter_match_first/dict_iter_match_next.
7142
cf325299
PA
71432017-07-20 Pedro Alves <palves@redhat.com>
7144
7145 * cp-support.c (cp_find_first_component_aux): Add missing case for
7146 end of string.
7147
c5ed0576
DB
71482017-07-18 David Blaikie <dblaikie@gmail.com>
7149
7150 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
7151 of dwo_cu's dwo_file.
7152
27841e76
YQ
71532017-07-18 Yao Qi <yao.qi@linaro.org>
7154
7155 * remote.c (store_registers_using_G): Remove one line comment.
7156
cfb7e58b
YQ
71572017-07-18 Yao Qi <yao.qi@linaro.org>
7158
7159 * regcache.c (regcache_cpy): Simplify it.
7160 (regcache::cpy_no_passthrough): Remove it.
7161 * regcache.h (cpy_no_passthrough): Remove it.
7162 (regcache_dup, regcache_cpy): Update comments.
7163
386535dd
PA
71642017-07-18 Pedro Alves <palves@redhat.com>
7165
7166 * remote-sim.c (sim_command_completer): Adjust to work with a
7167 completion_tracker instead of a VEC.
7168
c45ec17c
PA
71692017-07-17 Pedro Alves <palves@redhat.com>
7170
7171 * completer.c (complete_source_filenames): New function.
7172 (complete_address_and_linespec_locations): New function.
7173 (location_completer): Use complete_address_and_linespec_locations.
7174 (completion_tracker::build_completion_result): Honor the tracker's
7175 request to suppress append.
7176 * completer.h (completion_tracker::suppress_append_ws)
7177 (completion_tracker::set_suppress_append_ws): New methods.
7178 (completion_tracker::m_suppress_append_ws): New field.
7179 (complete_source_filenames): New declaration.
7180 * linespec.c (linespec_complete_what): New.
7181 (struct ls_parser) <complete_what, completion_word,
7182 completion_quote_char, completion_quote_end, completion_tracker>:
7183 New fields.
7184 (string_find_incomplete_keyword_at_end): New.
7185 (linespec_lexer_lex_string): Record quote char. If in completion
7186 mode, don't throw.
7187 (linespec_lexer_consume_token): Advance the completion word point.
7188 (linespec_lexer_peek_token): Save/restore completion info.
7189 (save_stream_and_consume_token): New.
7190 (set_completion_after_number): New.
7191 (linespec_parse_basic): Set what to complete next depending on
7192 token. Handle function and label completions specially.
7193 (parse_linespec): Disable objc shortcut in completion mode. Set
7194 what to complete next depending on token type. Skip keyword if in
7195 completion mode.
7196 (complete_linespec_component, linespec_complete): New.
7197 * linespec.h (linespec_complete): Declare.
7198
be966d42
PA
71992017-07-17 Pedro Alves <palves@redhat.com>
7200
7201 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
7202 Handle 'operator<' / 'operator<<'.
7203
a2459270
PA
72042017-07-17 Pedro Alves <palves@redhat.com>
7205
7206 * completer.c (collect_explicit_location_matches): Handle
7207 MATCH_LABEL.
7208 (convert_explicit_location_to_linespec): New, factored out from
7209 ...
7210 (convert_explicit_location_to_sals): ... this.
7211 (complete_label): New.
7212 (linespec_complete_label, find_label_symbols_in_block): New.
7213 (find_label_symbols): Add completion_mode parameter and adjust to
7214 call find_label_symbols_in_block.
7215 * linespec.h (linespec_complete_label): Declare.
7216
c6756f62
PA
72172017-07-17 Pedro Alves <palves@redhat.com>
7218
7219 * ada-lang.c (ada_collect_symbol_completion_matches): Add
7220 complete_symbol_mode parameter.
7221 * cli/cli-cmds.c (complete_command): Get the completion result out
7222 of the handle_brkchars tracker if used a custom word point.
7223 * completer.c: Include "linespec.h".
7224 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
7225 (advance_to_expression_complete_word_point): New.
7226 (completion_tracker::completes_to_completion_word): New.
7227 (complete_files_symbols): Pass down
7228 complete_symbol_mode::EXPRESSION.
7229 (explicit_options, probe_options): New.
7230 (collect_explicit_location_matches): Complete on the
7231 explictit_loc->foo instead of word. Use
7232 linespec_complete_function. Handle MATCH_LINE. Handle offering
7233 keyword and options completions.
7234 (backup_text_ptr): Delete.
7235 (skip_keyword): New.
7236 (complete_explicit_location): Remove 'word' parameter. Add
7237 language, quoted_arg_start and quoted_arg_end parameters.
7238 Rewrite, parsing left to right.
7239 (location_completer): Rewrite.
7240 (location_completer_handle_brkchars): New function.
7241 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
7242 (enum complete_line_internal_reason): Adjust comments.
7243 (completion_tracker::discard_completions): New.
7244 (completer_handle_brkchars_func_for_completer): Handle
7245 location_completer.
7246 (gdb_custom_word_point_brkchars)
7247 (gdb_org_rl_basic_quote_characters): New.
7248 (gdb_completion_word_break_characters_throw)
7249 (completion_find_completion_word): Handle trackers that use a
7250 custom word point.
7251 (completion_tracker::advance_custom_word_point_by): New.
7252 (completion_tracker::build_completion_result): Don't rely on
7253 readline appending the quote char.
7254 (gdb_rl_attempted_completion_function_throw): Handle trackers that
7255 use a custom word point.
7256 (gdb_rl_attempted_completion_function): Restore
7257 rl_basic_quote_characters.
7258 * completer.h (class completion_tracker): Extend intro comment.
7259 (completion_tracker::set_quote_char)
7260 (completion_tracker::quote_char)
7261 (completion_tracker::set_use_custom_word_point)
7262 (completion_tracker::use_custom_word_point)
7263 (completion_tracker::custom_word_point)
7264 (completion_tracker::set_custom_word_point)
7265 (completion_tracker::advance_custom_word_point_by)
7266 (completion_tracker::completes_to_completion_word)
7267 (completion_tracker::discard_completions): New methods.
7268 (completion_tracker::m_quote_char)
7269 (completion_tracker::m_use_custom_word_point)
7270 (completion_tracker::m_custom_word_point): New fields.
7271 (advance_to_expression_complete_word_point): Declare.
7272 * f-lang.c (f_collect_symbol_completion_matches): Add
7273 complete_symbol_mode parameter.
7274 * language.h (struct language_defn)
7275 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
7276 parameter.
7277 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
7278 (linespec_complete_function): New function.
7279 (linespec_lexer_lex_keyword): Adjust.
7280 * linespec.h (linespec_keywords, linespec_complete_function): New
7281 declarations.
7282 * location.c (find_end_quote): New function.
7283 (explicit_location_lex_one): Add explicit_completion_info
7284 parameter. Save quoting info. Don't throw if being called for
7285 completion. Don't handle Ada operators here.
7286 (is_cp_operator, skip_op_false_positives, first_of)
7287 (explicit_location_lex_one_function): New function.
7288 (string_to_explicit_location): Replace 'dont_throw' parameter with
7289 an explicit_completion_info pointer parameter. Handle it. Don't
7290 use explicit_location_lex_one to lex function names. Use
7291 explicit_location_lex_one_function instead.
7292 * location.h (struct explicit_completion_info): New.
7293 (string_to_explicit_location): Replace 'dont_throw' parameter with
7294 an explicit_completion_info pointer parameter.
7295 * symtab.c (default_collect_symbol_completion_matches_break_on):
7296 Add complete_symbol_mode parameter. Handle LINESPEC mode.
7297 (default_collect_symbol_completion_matches)
7298 (collect_symbol_completion_matches): Add complete_symbol_mode
7299 parameter.
7300 (collect_symbol_completion_matches_type): Pass down
7301 complete_symbol_mode::EXPRESSION.
7302 (collect_file_symbol_completion_matches): Add complete_symbol_mode
7303 parameter. Handle LINESPEC mode.
7304 * symtab.h (complete_symbol_mode): New.
7305 (default_collect_symbol_completion_matches_break_on)
7306 (default_collect_symbol_completion_matches)
7307 (collect_symbol_completion_matches)
7308 (collect_file_symbol_completion_matches): Add complete_symbol_mode
7309 parameter.
7310
1d550c82
PA
73112017-07-17 Pedro Alves <palves@redhat.com>
7312
7313 * utils.c (enum class strncmp_iw_mode): New.
7314 (strcmp_iw): Rename to ...
7315 (strncmp_iw_with_mode): ... this. Add string2_len and mode
7316 parameters. Handle them.
7317 (strncmp_iw): New.
7318 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
7319 * utils.h (strncmp_iw): Declare.
7320 (strcmp_iw): Move describing comments here.
7321
8090b426
PA
73222017-07-17 Pedro Alves <palves@redhat.com>
7323
7324 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
7325 CP_OPERATOR_STR.
7326 * c-typeprint.c (is_type_conversion_operator): Use
7327 CP_OPERATOR_STR.
7328 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
7329 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
7330 CP_OPERATOR_LEN.
7331 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
7332 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
7333 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
7334 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
7335 CP_OPERATOR_STR.
7336 * location.c: Include "cp-support.h".
7337 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
7338 CP_OPERATOR_STR.
7339 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
7340 CP_OPERATOR_LEN.
7341
6a2c1b87
PA
73422017-07-17 Pedro Alves <palves@redhat.com>
7343
7344 * cli/cli-cmds.c (complete_command): Use a completion tracker
7345 along with completion_find_completion_word for handle_brkchars
7346 phase.
7347 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
7348 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
7349 (struct gdb_rl_completion_word_info): New.
7350 (gdb_rl_find_completion_word): New.
7351 (completion_find_completion_word): New.
7352 * completer.h (completion_find_completion_word): Declare.
7353
eb3ff9a5
PA
73542017-07-17 Pedro Alves <palves@redhat.com>
7355
7356 * ada-lang.c (symbol_completion_match): Adjust comments.
7357 (symbol_completion_add): Replace vector parameter with
7358 completion_tracker parameter. Use it.
7359 (ada_make_symbol_completion_list): Rename to...
7360 (ada_collect_symbol_completion_matches): ... this. Add
7361 completion_tracker parameter and use it.
7362 (ada_language_defn): Adjust.
7363 * break-catch-syscall.c (catch_syscall_completer): Adjust
7364 prototype and work with completion_tracker instead of VEC.
7365 * breakpoint.c (condition_completer): Adjust prototype and work
7366 with completion_tracker instead of VEC.
7367 * c-lang.c (c_language_defn, cplus_language_defn)
7368 (asm_language_defn, minimal_language_defn): Adjust to renames.
7369 * cli/cli-cmds.c (complete_command): Rework using
7370 completion_tracker. Catch exceptions when completing.
7371 * cli/cli-decode.c (integer_unlimited_completer)
7372 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
7373 with completion_tracker instead of VEC.
7374 * command.h (struct completion_tracker): Forward declare.
7375 (completer_ftype, completer_handle_brkchars_ftype): Change
7376 types.
7377 (complete_on_cmdlist, complete_on_enum): Adjust.
7378 * completer.c: Include <algorithm>.
7379 (struct gdb_completer_state): New.
7380 (current_completion): New global.
7381 (readline_line_completion_function): Delete.
7382 (noop_completer, filename_completer)
7383 (filename_completer_handle_brkchars, complete_files_symbols)
7384 (linespec_location_completer): Adjust to work with a
7385 completion_tracker instead of a VEC.
7386 (string_or_empty): New.
7387 (collect_explicit_location_matches): Adjust to work with a
7388 completion_tracker instead of a VEC.
7389 (explicit_location_completer): Rename to ...
7390 (complete_explicit_location): ... this and adjust to work with a
7391 completion_tracker instead of a VEC.
7392 (location_completer): Adjust to work with a completion_tracker
7393 instead of a VEC.
7394 (add_struct_fields): Adjust to work with a completion_list instead
7395 of VEC.
7396 (expression_completer): Rename to ...
7397 (complete_expression): ... this and adjust to work with a
7398 completion_tracker instead of a VEC. Use complete_files_symbols.
7399 (expression_completer): Reimplement on top of complete_expression.
7400 (symbol_completer): Adjust to work with a completion_tracker
7401 instead of a VEC.
7402 (enum complete_line_internal_reason): Add describing comments.
7403 (complete_line_internal_normal_command): Adjust to work with a
7404 completion_tracker instead of a VEC.
7405 (complete_line_internal): Rename to ...
7406 (complete_line_internal_1): ... this and adjust to work with a
7407 completion_tracker instead of a VEC. Assert TEXT is NULL in the
7408 handle_brkchars phase.
7409 (new_completion_tracker): Delete.
7410 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
7411 complete_line_internal_1.
7412 (free_completion_tracker): Delete.
7413 (INITIAL_COMPLETION_HTAB_SIZE): New.
7414 (completion_tracker::completion_tracker)
7415 (completion_tracker::~completion_tracker): New.
7416 (maybe_add_completion): Delete.
7417 (completion_tracker::maybe_add_completion)
7418 (completion_tracker::add_completion)
7419 (completion_tracker::add_completions): New.
7420 (throw_max_completions_reached_error): Delete.
7421 (complete_line): Adjust to work with a completion_tracker instead
7422 of a VEC. Don't create a completion_tracker_t or check for max
7423 completions here.
7424 (command_completer, command_completer_handle_brkchars)
7425 (signal_completer, reg_or_group_completer_1)
7426 (reg_or_group_completer, default_completer_handle_brkchars):
7427 Adjust to work with a completion_tracker.
7428 (gdb_completion_word_break_characters_throw): New.
7429 (gdb_completion_word_break_characters): Reimplement.
7430 (line_completion_function): Delete.
7431 (completion_tracker::recompute_lowest_common_denominator)
7432 (expand_preserving_ws)
7433 (completion_tracker::build_completion_result)
7434 (completion_result::completion_result)
7435 (completion_result::completion_result)
7436 (completion_result::~completion_result)
7437 (completion_result::completion_result)
7438 (completion_result::release_match_list, compare_cstrings)
7439 (completion_result::sort_match_list)
7440 (completion_result::reset_match_list)
7441 (gdb_rl_attempted_completion_function_throw)
7442 (gdb_rl_attempted_completion_function): New.
7443 * completer.h (completion_list, struct completion_result)
7444 (class completion_tracker): New.
7445 (complete_line): Add completion_tracker parameter.
7446 (readline_line_completion_function): Delete.
7447 (gdb_rl_attempted_completion_function): New.
7448 (noop_completer, filename_completer, expression_completer)
7449 (location_completer, symbol_completer, command_completer)
7450 (signal_completer, reg_or_group_completer): Update prototypes.
7451 (completion_tracker_t, new_completion_tracker)
7452 (make_cleanup_free_completion_tracker): Delete.
7453 (enum maybe_add_completion_enum): Delete.
7454 (maybe_add_completion): Delete.
7455 (throw_max_completions_reached_error): Delete.
7456 * corefile.c (complete_set_gnutarget): Adjust to work with a
7457 completion_tracker instead of a VEC.
7458 * cp-abi.c (cp_abi_completer): Adjust to work with a
7459 completion_tracker instead of a VEC.
7460 * d-lang.c (d_language_defn): Adjust.
7461 * disasm.c (disassembler_options_completer): Adjust to work with a
7462 completion_tracker instead of a VEC.
7463 * f-lang.c (f_make_symbol_completion_list): Rename to ...
7464 (f_collect_symbol_completion_matches): ... this. Adjust to work
7465 with a completion_tracker instead of a VEC.
7466 (f_language_defn): Adjust.
7467 * go-lang.c (go_language_defn): Adjust.
7468 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
7469 Adjust to work with a completion_tracker instead of a VEC.
7470 * infrun.c (handle_completer): Likewise.
7471 * interps.c (interpreter_completer): Likewise.
7472 * interps.h (interpreter_completer): Likewise.
7473 * language.c (unknown_language_defn, auto_language_defn)
7474 (local_language_defn): Adjust.
7475 * language.h (language_defn::la_make_symbol_completion_list):
7476 Rename to ...
7477 (language_defn::la_collect_symbol_completion_matches): ... this
7478 and adjust to work with a completion_tracker instead of a VEC.
7479 * m2-lang.c (m2_language_defn): Adjust.
7480 * objc-lang.c (objc_language_defn): Adjust.
7481 * opencl-lang.c (opencl_language_defn): Adjust.
7482 * p-lang.c (pascal_language_defn): Adjust.
7483 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
7484 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
7485 with a completion_tracker.
7486 * rust-lang.c (rust_language_defn): Adjust.
7487 * symtab.c (free_completion_list, do_free_completion_list)
7488 (return_val, completion_tracker): Delete.
7489 (completion_list_add_name, completion_list_add_symbol)
7490 (completion_list_add_msymbol, completion_list_objc_symbol)
7491 (completion_list_add_fields, add_symtab_completions): Add
7492 completion_tracker parameter and use it.
7493 (default_make_symbol_completion_list_break_on_1): Rename to...
7494 (default_collect_symbol_completion_matches_break_on): ... this.
7495 Add completion_tracker parameter and use it instead of allocating
7496 a completion tracker here.
7497 (default_make_symbol_completion_list_break_on): Delete old
7498 implementation.
7499 (default_make_symbol_completion_list): Delete.
7500 (default_collect_symbol_completion_matches): New.
7501 (make_symbol_completion_list): Delete.
7502 (collect_symbol_completion_matches): New.
7503 (make_symbol_completion_type): Rename to ...
7504 (collect_symbol_completion_matches_type): ... this. Add
7505 completion_tracker parameter and use it instead of VEC.
7506 (make_file_symbol_completion_list_1): Rename to...
7507 (collect_file_symbol_completion_matches): ... this. Add
7508 completion_tracker parameter and use it instead of VEC.
7509 (make_file_symbol_completion_list): Delete.
7510 (add_filename_to_list): Use completion_list instead of a VEC.
7511 (add_partial_filename_data::list): Now a completion_list.
7512 (make_source_files_completion_list): Work with a completion_list
7513 instead of a VEC.
7514 * symtab.h: Include "completer.h".
7515 (default_make_symbol_completion_list_break_on)
7516 (default_make_symbol_completion_list, make_symbol_completion_list)
7517 (make_symbol_completion_type, make_file_symbol_completion_list)
7518 (make_source_files_completion_list): Delete.
7519 (default_collect_symbol_completion_matches_break_on)
7520 (default_collect_symbol_completion_matches)
7521 (collect_symbol_completion_matches)
7522 (collect_symbol_completion_matches_type)
7523 (collect_file_symbol_completion_matches)
7524 (make_source_files_completion_list): New.
7525 * top.c (init_main): Don't install a rl_completion_entry_function
7526 hook. Install a rl_attempted_completion_function hook instead.
7527 * tui/tui-layout.c (layout_completer): Adjust to work with a
7528 completion_tracker.
7529 * tui/tui-regs.c (tui_reggroup_completer):
7530 * tui/tui-win.c (window_name_completer, focus_completer)
7531 (winheight_completer): Adjust to work with a completion_tracker.
7532 * value.c: Include "completer.h".
7533 (complete_internalvar): Adjust to work with a completion_tracker.
7534 * value.h (complete_internalvar): Likewise.
7535
6e1dbf8c
PA
75362017-07-17 Pedro Alves <palves@redhat.com>
7537
7538 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
7539 renames.
7540 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
7541 comments to completer_ftype's declaration.
7542 <completer_handle_brkchars>: Change type to
7543 completer_handle_brkchars_ftype.
7544 * command.h (completer_ftype): Add describing comment and give
7545 names to parameters.
7546 (completer_ftype_void): Rename to ...
7547 (completer_handle_brkchars_ftype) ... this. Add describing comment.
7548 (set_cmd_completer_handle_brkchars): Adjust.
7549 * completer.c (filename_completer_handle_brkchars): New function.
7550 (complete_line_internal_normal_command): New function, factored
7551 out from ...
7552 (complete_line_internal): ... here.
7553 (command_completer_handle_brkchars)
7554 (default_completer_handle_brkchars)
7555 (completer_handle_brkchars_func_for_completer): New functions.
7556 * completer.h (set_gdb_completion_word_break_characters): Delete
7557 declaration.
7558 (completer_handle_brkchars_func_for_completer): New declaration.
7559 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
7560 completer_handle_brkchars_func_for_completer.
7561
78b13106
PA
75622017-07-17 Pedro Alves <palves@redhat.com>
7563
7564 * completer.c (symbol_completer): New function, based on
7565 make_symbol_completion_list_fn.
7566 * completer.h (symbol_completer): New declaration.
7567 * guile/scm-cmd.c (cmdscm_completers): Adjust.
7568 * python/py-cmd.c (completers): Adjust.
7569 * symtab.c (make_symbol_completion_list_fn): Delete.
7570 * symtab.h (make_symbol_completion_list_fn): Delete.
7571 * cli/cli-decode.c (add_cmd): Adjust.
7572
bbf2f4df
PA
75732017-07-17 Pedro Alves <palves@redhat.com>
7574
7575 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
7576 * dwarf2read.c: Include "filename-seen-cache.h".
7577 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
7578 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
7579 * filename-seen-cache.c: New file.
7580 * filename-seen-cache.h: New file.
7581 * symtab.c: Include "filename-seen-cache.h".
7582 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
7583 (create_filename_seen_cache, clear_filename_seen_cache)
7584 (delete_filename_seen_cache, filename_seen): Delete, parts moved
7585 to filename-seen-cache.h/filename-seen-cache.c.
7586 (output_source_filename, sources_info)
7587 (maybe_add_partial_symtab_filename)
7588 (make_source_files_completion_list): Adjust to use
7589 filename_seen_cache.
7590
330cdd98
PA
75912017-07-17 Pedro Alves <palves@redhat.com>
7592
7593 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
7594 fields.
7595 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
7596 dwarf2_debug_sections*)): New.
7597 (dwarf2_per_objfile::dwarf2_per_objfile(const
7598 dwarf2_per_objfile&)): Declare as deleted.
7599 (dwarf2_per_objfile::operator=): Declare as deleted.
7600 (dwarf2_per_objfile::dwarf2_per_objfile)
7601 (dwarf2_per_objfile::~dwarf2_per_objfile)
7602 (dwarf2_per_objfile::free_cached_comp_units): New.
7603 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
7604 ctor. Call dwarf2_per_objfile's ctor manually.
7605 (dwarf2_locate_sections): Deleted/refactored as ...
7606 (dwarf2_per_objfile::locate_sections): ... this new method.
7607 (free_cached_comp_units): Defer to
7608 dwarf2_per_objfile::free_cached_comp_units.
7609 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
7610
8880f2a9
TT
76112017-07-14 Tom Tromey <tom@tromey.com>
7612
7613 PR rust/21764:
7614 * rust-exp.y (convert_ast_to_expression): Add "want_type"
7615 parameter.
7616 <UNOP_SIZEOF>: Split into separate case.
7617 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
7618
65547233
TT
76192017-07-14 Tom Tromey <tom@tromey.com>
7620
7621 PR rust/21763:
7622 * symtab.c (symbol_matches_domain): Add language_rust to special
7623 case.
7624 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
7625 treat LOC_TYPEDEF symbols as variables.
7626
8f14146e
PA
76272017-07-14 Pedro Alves <palves@redhat.com>
7628
7629 * symtab.c (make_file_symbol_completion_list_1): Iterate over
7630 symtabs matching all symtabs with SRCFILE as file name instead of
7631 only considering the first hit, with lookup_symtab.
7632
2347965c
SM
76332017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7634
7635 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
7636 operator_name parameters.
7637 (gen_expr): Update function call.
7638
40f4af28
SM
76392017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7640
7641 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
7642 parameter.
7643 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
7644 Likewise.
7645 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
7646 parameter, use agent_expr::gdbarch instead, update function
7647 calls.
7648 (locexpr_tracepoint_var_ref): Likewise.
7649 (loclist_tracepoint_var_ref): Likewise.
7650 * ax-gdb.c (gen_trace_static_fields): Likewise.
7651 (gen_traced_pop): Likewise.
7652 (gen_frame_args_address): Likewise.
7653 (gen_frame_locals_address): Likewise.
7654 (gen_var_ref): Likewise.
7655 (gen_struct_ref_recursive): Likewise.
7656 (gen_static_field): Likewise.
7657 (gen_maybe_namespace_elt): Likewise.
7658 (gen_expr): Likewise.
7659 (gen_trace_for_var): Likewise.
7660 (gen_trace_for_expr): Likewise.
7661 (gen_trace_for_return_address): Likewise.
7662
053f8057
SM
76632017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7664
7665 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
7666 parameter.
7667 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
7668
6661ad48
SM
76692017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7670
7671 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
7672 from ax, update calls.
7673 (gen_usual_arithmetic): Likewise.
7674 (gen_integral_promotions): Likewise.
7675 (gen_bitfield_ref): Likewise.
7676 (gen_primitive_field): Likewise.
7677 (gen_struct_ref_recursive): Likewise.
7678 (gen_struct_ref): Likewise.
7679 (gen_maybe_namespace_elt): Likewise.
7680 (gen_struct_elt_for_reference): Likewise.
7681 (gen_namespace_elt): Likewise.
7682 (gen_aggregate_elt_ref): Likewise.
7683 (gen_expr): Get gdbarch from ax, update calls.
7684 (gen_expr_binop_rest): Likewise.
7685
c55a47e7
PA
76862017-07-13 Pedro Alves <palves@redhat.com>
7687
7688 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
7689 as default tdesc.
7690 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
7691 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
7692 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
7693 tdesc_amd64_linux as default tdesc. Get final tdesc from the
7694 tdep.
7695 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
7696 Get final tdesc from the tdep.
7697 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
7698 default tdesc.
7699 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
7700 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
7701 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
7702 Use it as default tdesc.
7703 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
7704 down to amd_init_abi. No longer handle fallback tdesc here.
7705 * amd64-tdep.h (tdesc_x32): Declare.
7706 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
7707 parameter.
7708 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
7709 as default tdesc.
7710
55efceab
AA
77112017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7712
7713 * s390-linux-tdep.c (s390_process_record): Add support for
7714 instructions new in arch12.
7715
0aa37b65
JB
77162017-07-11 John Baldwin <jhb@FreeBSD.org>
7717
7718 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
7719 PT_GETFSBASE and PT_GETGSBASE.
7720 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
7721 PT_SETGSBASE.
7722
48aeef91
JB
77232017-07-11 John Baldwin <jhb@FreeBSD.org>
7724
7725 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
7726 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
7727 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
7728 those rules.
7729 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
7730 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
7731 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
7732 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
7733 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
7734 * features/i386/amd64.xml: Add 64bit-segments.xml.
7735 * features/i386/amd64-avx-avx512.c: Regenerated.
7736 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
7737 * features/i386/amd64-avx-mpx.c: Regenerated.
7738 * features/i386/amd64-avx.c: Regenerated.
7739 * features/i386/amd64-mpx.c: Regenerated.
7740 * features/i386/amd64.c: Regenerated.
7741 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
7742 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
7743 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
7744 * regformats/i386/amd64-avx.dat: Regenerated.
7745 * regformats/i386/amd64-mpx.dat: Regenerated.
7746 * regformats/i386/amd64.dat: Regenerated.
7747
77c501bc
YQ
77482017-07-10 Yao Qi <yao.qi@linaro.org>
7749
7750 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
7751 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
7752
6dc8d757
AK
77532017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
7754
7755 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
7756 unsetenv.
7757 * gnulib/aclocal.m4: Regenerate.
7758 * gnulib/config.in: Regenerate.
7759 * gnulib/configure: Regenerate.
7760 * gnulib/import/Makefile.am: Regenerate.
7761 * gnulib/import/Makefile.in: Regenerate.
7762 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
7763 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
7764 * gnulib/import/m4/environ.m4: New file.
7765 * gnulib/import/m4/setenv.m4: New file.
7766 * gnulib/import/setenv.c: New file.
7767 * gnulib/import/unsetenv.c: New file.
7768
266934d1
SM
77692017-07-09 Simon Marchi <simon.marchi@ericsson.com>
7770
7771 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
7772 address when op is DW_OP_addr.
7773
03278692
TT
77742017-07-09 Tom Tromey <tom@tromey.com>
7775
7776 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
7777 check and apply to outer type.
7778
4b654465
JB
77792017-07-07 John Baldwin <jhb@FreeBSD.org>
7780
7781 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
7782 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
7783 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
7784 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
7785
2af9fc44
JB
77862017-07-07 John Baldwin <jhb@FreeBSD.org>
7787
7788 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
7789
382b69bb
JB
77902017-07-07 John Baldwin <jhb@FreeBSD.org>
7791
7792 * corelow.c (get_core_siginfo): Remove.
7793 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
7794 instead of get_core_siginfo.
7795 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
7796 * gdbarch.h: Re-generate.
7797 * gdbarch.c: Re-generate.
7798 * linux-tdep.c (linux_core_xfer_siginfo): New.
7799 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
7800
6e5eab33
JB
78012017-07-07 John Baldwin <jhb@FreeBSD.org>
7802
7803 * corelow.c (thread_section_name): Move to ...
7804 * gdbcore.h (thread_section_name): ... here.
7805
929edea9
JB
78062017-07-07 John Baldwin <jhb@FreeBSD.org>
7807
7808 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
7809 (struct siginfo32): New.
7810 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
7811 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
7812 via ptrace(PT_LWPINFO).
7813
762c974a
JB
78142017-07-07 John Baldwin <jhb@FreeBSD.org>
7815
7816 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
7817 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
7818 (fbsd_get_siginfo_type): New.
7819 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
7820 (_initialize_fbsd_tdep): New.
7821
33c5cd75
DB
78222017-07-06 David Blaikie <dblaikie@gmail.com>
7823
7824 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
7825 a singular dwo_unit*) to support multiple CUs in the same way that
7826 multiple TUs are supported.
7827 (create_cus_hash_table): Replace create_dwo_cu with a function for
7828 parsing multiple CUs from a DWO file.
7829 (open_and_init_dwo_file): Use create_cus_hash_table rather than
7830 create_dwo_cu.
7831 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
7832 htab_find, rather than comparing the signature to a singleton CU in
7833 the dwo_file.
7834
8455d262
PA
78352017-07-06 Pedro Alves <palves@redhat.com>
7836
7837 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
7838
4da3eb35
PA
78392017-07-04 Pedro Alves <palves@redhat.com>
7840
7841 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
7842 * gdbtypes.h (TYPE_STATIC): Delete.
7843 (struct fn_field) <is_public, is_abstract, is_static, is_final,
7844 is_synchronized, is_native>: Delete.
7845 <dummy>: Bump.
7846 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
7847 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
7848 (TYPE_FN_FIELD_ABSTRACT): Delete.
7849
5bfd255c
SM
78502017-07-03 Simon Marchi <simon.marchi@ericsson.com>
7851
7852 * buffer.h (buffer_finish): Fix spelling mistakes.
7853
25c54127
EZ
78542017-07-01 Eli Zaretskii <eliz@gnu.org>
7855
7856 * .dir-locals.el: Automatically switch to C-style comments in
7857 versions of Emacs that support the feature.
7858
dc4bde35
SDJ
78592017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
7860 Pedro Alves <palves@redhat.com>
7861
7862 PR cli/21688
7863 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
7864 (process_next_line): New variable 'inline_cmd'.
7865 Adjust 'if' clauses for "python", "compile" and "guile" to use
7866 'command_name_equals' and check for '!inline_cmd'.
7867
51ed89aa
SDJ
78682017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
7869
7870 PR cli/21688
7871 * cli/cli-script.c (command_name_equals_not_inline): New function.
7872 (process_next_line): Adjust 'if' clauses for "python", "compile"
7873 and "guile" to use command_name_equals_not_inline.
7874
eb17d413
PA
78752017-06-29 Pedro Alves <palves@redhat.com>
7876
7877 * completer.c (expression_completer): Call
7878 linespec_location_completer instead of location_completer.
7879
195bcdd5
PA
78802017-06-29 Pedro Alves <palves@redhat.com>
7881
7882 * completer.c (expression_completer): Remove code that recomputes
7883 'text' from 'word'.
7884
adc764e7
YQ
78852017-06-29 Yao Qi <yao.qi@linaro.org>
7886
7887 * regformats/regdat.sh: Generate code with
7888 "ifndef IN_PROCESS_AGENT".
7889
6e75794e
PA
78902017-06-28 Pedro Alves <palves@redhat.com>
7891
7892 * command.h: Include "common/scoped_restore.h".
7893
bc491f2e
YQ
78942017-06-28 Yao Qi <yao.qi@linaro.org>
7895
7896 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
7897 instead of obstack_grow.
7898
41664b45
DG
78992017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
7900
7901 PR gdb/21337
7902 * symfile.c (reread_symbols): Call objfiles_changed just before
7903 read_symbols.
7904
6da67eb1
PA
79052017-06-27 Pedro Alves <palves@redhat.com>
7906
7907 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
7908 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
7909 (completion_list_add_symbol, completion_list_add_msymbol):
7910 ... these new functions.
7911 (add_symtab_completions)
7912 (default_make_symbol_completion_list_break_on_1): Adjust.
7913
23732b1e
PA
79142017-06-27 Pedro Alves <palves@redhat.com>
7915
7916 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
7917 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
7918 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
7919 dtor.
7920 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
7921 'storage_obstack' field an auto_obstack. In-class initialize all
7922 non-bitfield fields. Make minsyms_read bool.
7923 * symfile.c (read_symbols): Adjust.
7924
a4d1e79a
AH
79252017-06-27 Alan Hayward <alan.hayward@arm.com>
7926
7927 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
7928 (gdbsim_store_register): Likewise.
7929
8268c778
PA
79302017-06-27 Pedro Alves <palves@redhat.com>
7931
7932 * c-exp.y (name_obstack): Now an auto_obstack.
7933 (yylex): Use auto_obstack::clear.
7934 (c_parse): Use auto_obstack::clear instead of reinitializing and
7935 freeing the obstack.
7936 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
7937 * d-exp.y (name_obstack): Now an auto_obstack.
7938 (yylex): Use auto_obstack::clear.
7939 (d_parse): Use auto_obstack::clear instead of reinitializing and
7940 freeing the obstack.
7941 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
7942 auto_obstack.
7943 * dwarf2read.c (create_addrmap_from_index)
7944 (dwarf2_build_psymtabs_hard)
7945 (update_enumeration_type_from_children): Likewise.
7946 * gdb_obstack.h (auto_obstack): New type.
7947 * go-exp.y (name_obstack): Now an auto_obstack.
7948 (build_packaged_name): Use auto_obstack::clear.
7949 (go_parse): Use auto_obstack::clear instead of reinitializing and
7950 freeing the obstack.
7951 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
7952 auto_obstack.
7953 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
7954 * rust-exp.y (work_obstack): Now an auto_obstack.
7955 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
7956 reinitializing and freeing the obstack.
7957 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
7958 (host_char_to_target): Use auto_obstack.
7959 * utils.h (make_cleanup_obstack_free): Delete declaration.
7960 * valprint.c (generic_emit_char, generic_printstr): Use
7961 auto_obstack.
7962
db665f42
SM
79632017-06-27 Simon Marchi <simon.marchi@ericsson.com>
7964
7965 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
7966 thread.
7967 (darwin_init_thread_list): Don't update dummy thread.
7968 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
7969
873c0814
SM
79702017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7971
7972 * record-full.c (netorder16): Remove.
7973
8b5a7a6e
SM
79742017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7975
7976 * common/diagnostics.h: Define macros for GCC.
7977 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
7978 * common/vec.h: Include diagnostics.h.
7979 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
7980 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
7981 warning.
7982
d1435379
SM
79832017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7984
7985 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
7986 New macro.
7987 * ada-lex.l: Ignore deprecated register warnings.
7988
cc75e0fd
SM
79892017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7990
7991 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
7992 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
7993
07809eaf
SM
79942017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7995
7996 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
7997 its own line.
7998
f076f034
SM
79992017-06-25 Simon Marchi <simon.marchi@ericsson.com>
8000
8001 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
8002
0dd5cbc5
AH
80032017-06-23 Alan Hayward <alan.hayward@arm.com>
8004
8005 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
8006 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
8007 (xtensa_register_read_masked): Likewise.
8008
d4c6ce5b
SDJ
80092017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
8010
8011 * common/environ.c (gdb_environ::unset): Update comment.
8012
16892a03
AH
80132017-06-22 Alan Hayward <alan.hayward@arm.com>
8014
8015 * python/py-unwind.c (pyuw_sniffer): Allocate space for
8016 registers.
8017
d7dcbefc
AH
80182017-06-22 Alan Hayward <alan.hayward@arm.com>
8019
8020 * record-full.c (record_full_exec_insn): Use byte_vector.
8021
b30ff123
YQ
80222017-06-22 Yao Qi <yao.qi@linaro.org>
8023
8024 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
8025 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
8026
4fa847d7
AH
80272017-06-22 Alan Hayward <alan.hayward@arm.com>
8028
8029 * remote.c (cached_reg): Move from here...
8030 * regcache.h (cached_reg): ...to here.
8031 * python/py-unwind.c (struct reg_info): Remove.
8032 (cached_frame_info): Use cached_reg_t.
8033 (pyuw_prev_register): Likewise.
8034 (pyuw_sniffer): Use cached_reg_t and allocate registers.
8035 (pyuw_dealloc_cache): Free all registers.
8036
f4906a9a
PA
80372017-06-22 Pedro Alves <palves@redhat.com>
8038 Simon Marchi <simon.marchi@ericsson.com>
8039
8040 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
8041 warning.
8042 * common/diagnostics.h: New file.
8043
b45a1208
PA
80442017-06-22 Pedro Alves <palves@redhat.com>
8045
8046 * common/agent.h: Add include guards.
8047
e4da2c61
SM
80482017-06-21 Simon Marchi <simon.marchi@ericsson.com>
8049
8050 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
8051 talk about addressable units instead of bytes.
8052
96160d60
SDJ
80532017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
8054
8055 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
8056 of '::const_iterator'.
8057
9a6c7d9c
SDJ
80582017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
8059
8060 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8061 'unittests/environ-selftests.c'.
8062 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
8063 * charset.c (find_charset_names): Declare object 'iconv_env'.
8064 Update code to use 'iconv_env' object. Remove call to
8065 'free_environ'.
8066 * common/environ.c: Include <utility>.
8067 (make_environ): Delete function.
8068 (free_environ): Delete function.
8069 (gdb_environ::clear): New function.
8070 (gdb_environ::operator=): New function.
8071 (gdb_environ::get): Likewise.
8072 (environ_vector): Delete function.
8073 (set_in_environ): Delete function.
8074 (gdb_environ::set): New function.
8075 (unset_in_environ): Delete function.
8076 (gdb_environ::unset): New function.
8077 (gdb_environ::envp): Likewise.
8078 * common/environ.h: Include <vector>.
8079 (struct gdb_environ): Delete; transform into...
8080 (class gdb_environ): ... this class.
8081 (free_environ): Delete prototype.
8082 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
8083 environ_vector): Likewise.
8084 * infcmd.c (run_command_1): Update code to call
8085 'envp' from 'gdb_environ' class.
8086 (environment_info): Update code to call methods from 'gdb_environ'
8087 class.
8088 (unset_environment_command): Likewise.
8089 (path_info): Likewise.
8090 (path_command): Likewise.
8091 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
8092 (inferior::inferior): Initialize 'environment' using the host's
8093 information.
8094 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
8095 Include "environ.h".
8096 (class inferior) <environment>: Change type from 'struct
8097 gdb_environ' to 'gdb_environ'.
8098 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
8099 methods from 'gdb_environ' class.
8100 * solib.c (solib_find_1): Likewise
8101 * unittests/environ-selftests.c: New file.
8102
75c554cf
YQ
81032017-06-20 Yao Qi <yao.qi@linaro.org>
8104
8105 * features/i386/i386-linux.xml: Exchange the order of including
8106 32bit-linux.xml and 32bit-sse.xml.
8107 * features/i386/i386-linux.c: Regenerated.
8108
72ddacb7
YQ
81092017-06-20 Yao Qi <yao.qi@linaro.org>
8110
8111 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
8112 Delete copy ctor and assignment operator.
8113 (tdesc_type): Likewise.
8114 (tdesc_feature): Likewise.
8115 (tdesc_free_reg): Remove.
8116 (tdesc_create_reg): Use new.
8117 (tdesc_free_type): Remove.
8118 (tdesc_create_vector): Use new.
8119 (tdesc_create_union): Likewise.
8120 (tdesc_create_flags): Likewise.
8121 (tdesc_create_enum): Likewise.
8122 (tdesc_free_feature): Delete.
8123 (free_target_description): Use delete.
8124
325c9fd4
JB
81252017-06-19 John Baldwin <jhb@FreeBSD.org>
8126
8127 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
8128 registers.
8129
16b7a719
PA
81302017-06-19 Pedro Alves <palves@redhat.com>
8131
8132 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
8133 after gdb::unlinker.
8134
1c8e01c9
SDJ
81352017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
8136
8137 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
8138 gdb_environ to access an environment variable.
8139
ffce45d2
TP
81402017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8141
8142 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
8143 gdb_byte*.
8144
1d4fbac9
SM
81452017-06-17 Simon Marchi <simon.marchi@ericsson.com>
8146
8147 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
8148
8465943a
SM
81492017-06-17 Simon Marchi <simon.marchi@ericsson.com>
8150
8151 * configure: Re-generate.
8152 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
8153
3e019bdc
SM
81542017-06-17 Simon Marchi <simon.marchi@ericsson.com>
8155
8156 * configure: Re-generate.
8157 * warning.m4: Pass -Werror to compiler when checking for
8158 supported warning flags.
8159
cf0dd6f0
SM
81602017-06-17 Simon Marchi <simon.marchi@ericsson.com>
8161
8162 * Makefile.in (COMPILE.pre): Add "-x c++".
8163
6f98355c
YQ
81642017-06-16 Alan Hayward <alan.hayward@arm.com>
8165 Pedro Alves <palves@redhat.com>
8166 Yao Qi <yao.qi@linaro.org>
8167
8168 * defs.h (RequireLongest): New.
8169 (extract_integer): Declare function template.
8170 (extract_signed_integer): Remove the declaration, but define it
8171 static inline.
8172 (extract_unsigned_integer): Likewise.
8173 (store_integer): Declare function template.
8174 (store_signed_integer): Remove the declaration, but define it
8175 static inline.
8176 (store_unsigned_integer): Likewise.
8177 * findvar.c (extract_integer): New function template.
8178 (extract_signed_integer): Remove.
8179 (extract_unsigned_integer): Remove.
8180 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
8181 instantiations.
8182 (store_integer): New function template.
8183 (store_signed_integer): Remove.
8184 (store_unsigned_integer): Remove.
8185 (store_integer): Explicit instantiations.
8186 * regcache.c (regcache_raw_read_signed): Update.
8187 (regcache::raw_read): New function.
8188 (regcache::raw_read_signed): Remove.
8189 (regcache::raw_read_unsigned): Remove.
8190 (regcache_raw_read_unsigned): Update.
8191 (regcache_raw_write_unsigned): Update.
8192 (regcache::raw_write_signed): Remove.
8193 (regcache::raw_write): New function.
8194 (regcache_cooked_read_signed): Update.
8195 (regcache::raw_write_unsigned): Remove.
8196 (regcache::cooked_read_signed): Remove.
8197 (regcache_cooked_read_unsigned): Update.
8198 (regcache::cooked_read_unsigned): Remove.
8199 (regcache_cooked_write_signed): Update.
8200 (regcache_cooked_write_unsigned): Update.
8201 * regcache.h (regcache) <raw_read_signed>: Remove.
8202 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
8203 <raw_read, raw_write>: New.
8204 <cooked_read_signed, cooked_write_signed>: Remove.
8205 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
8206 <cooked_read, cooked_write>: New.
8207 * sh64-tdep.c (sh64_pseudo_register_read): Update.
8208 (sh64_pseudo_register_write): Update.
8209
a87dc45a
AK
82102017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
8211
8212 * arc-tdep.c (arc_disassembler_options): New variable.
8213 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
8214 of default_print_insn.
8215 (arc_delayed_print_insn): Set info->section when needed,
8216 use default_print_insn to retrieve a disassembler.
8217
45159d6a
SDJ
82182017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
8219
8220 PR gdb/21574
8221 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
8222 to mention $SHELL and startup-with-shell.
8223
b46c4cf0
MF
82242017-06-14 Max Filippov <jcmvbkbc@gmail.com>
8225
8226 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
8227
6394c606
YQ
82282017-06-14 Yao Qi <yao.qi@linaro.org>
8229
8230 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
8231 default_print_insn instead of print_insn_aarch64.
8232 * arm-tdep.c (gdb_print_insn_arm): Call
8233 default_print_insn instead of print_insn_big_arm
8234 and print_insn_little_arm.
8235 * i386-tdep.c (i386_print_insn): Call default_print_insn
8236 instead of print_insn_i386.
8237 * ia64-tdep.c (ia64_print_insn): Call
8238 default_print_insn instead of print_insn_ia64.
8239 * mips-tdep.c (gdb_print_insn_mips): Call
8240 default_print_insn instead of print_insn_big_mips
8241 and print_insn_little_mips.
8242 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
8243 instead of print_insn_spu.
8244
d5722aa2
PA
82452017-06-14 Pedro Alves <palves@redhat.com>
8246
8247 * ada-lang.c: Include "common/byte-vector.h".
8248 (ada_value_primitive_packed_val): Use gdb::byte_vector.
8249 * charset.c (wchar_iterator::iterate): Resize the vector instead
8250 of reserving it.
8251 * common/byte-vector.h: Include "common/def-vector.h".
8252 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
8253 * cli/cli-dump.c: Include "common/byte-vector.h".
8254 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
8255 * common/byte-vector.h: New file.
8256 * common/def-vector.h: New file.
8257 * common/default-init-alloc.h: New file.
8258 * dwarf2loc.c: Include "common/byte-vector.h".
8259 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
8260 instead of reserving it.
8261 * dwarf2read.c: Include "common/byte-vector.h".
8262 (data_buf::m_vec): Now a gdb::byte_vector.
8263 * gdb_regex.c: Include "common/def-vector.h".
8264 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
8265 * mi/mi-main.c: Include "common/byte-vector.h".
8266 (mi_cmd_data_read_memory): Use gdb::byte_vector.
8267 * printcmd.c: Include "common/byte-vector.h".
8268 (print_scalar_formatted): Use gdb::byte_vector.
8269 * valprint.c: Include "common/byte-vector.h".
8270 (maybe_negate_by_bytes, print_decimal_chars): Use
8271 gdb::byte_vector.
8272
01ec7a27
SM
82732017-06-13 Simon Marchi <simon.marchi@ericsson.com>
8274
8275 * darwin-nat.c: Include "nat/fork-inferior.h".
8276
848d9074
SM
82772017-06-13 Simon Marchi <simon.marchi@ericsson.com>
8278
8279 * configure.nat: Factor out Darwin bits that are not
8280 architecture-specific. Add fork-inferior.o.
8281
3b912944
SM
82822017-06-13 Simon Marchi <simon.marchi@ericsson.com>
8283
8284 * configure.nat: Factor out AIX bits that are not
8285 architecture-specific. Add fork-inferior.o.
8286
55acdf22
AA
82872017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8288
8289 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
8290 (read_pieced_value, write_pieced_value): ...here. Reduce to
8291 wrappers that just call rw_pieced_value.
8292
f65e2044
AA
82932017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8294
8295 * dwarf2loc.c (write_pieced_value): When writing the data for a
8296 memory piece, use write_memory_with_notification instead of
8297 write_memory.
8298
23f945bf
AA
82992017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8300
8301 * valops.c (read_value_memory): Change embedded_offset to
8302 represent a bit offset instead of a byte offset.
8303 * value.h (read_value_memory): Adjust comment.
8304
f236533e
AA
83052017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8306
8307 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
8308 dest_offset_bits and source_offset_bits.
8309 (write_pieced_value): Likewise.
8310
65d84b76
AA
83112017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8312
8313 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
8314 given by DW_OP_bit_piece.
8315 (write_pieced_value): Likewise.
8316
242d31ab
AA
83172017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8318
8319 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
8320 some other preparations to the places where sufficient information
8321 is available.
8322 (write_pieced_value): Likewise.
8323
03c8af18
AA
83242017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8325
8326 * dwarf2loc.c (bits_to_bytes): New function.
8327 (read_pieced_value): Fix offset calculations for register pieces
8328 on big-endian targets.
8329 (write_pieced_value): Likewise.
8330
840989c1
AA
83312017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8332
8333 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
8334 (write_pieced_value): Likewise.
8335
359b19bb
AA
83362017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8337
8338 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
8339 transfer the source value's least significant bits, instead of its
8340 lowest-addressed ones. Rename type_len to max_offset.
8341 (read_pieced_value): Mirror above changes to write_pieced_value as
8342 applicable.
8343
07c9ca3b
AA
83442017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8345
8346 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
8347 truncate full bytes from dest_offset_bits before using it as an
8348 offset into the buffer.
8349
f1cc9874
AA
83502017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8351
8352 * dwarf2loc.c (write_pieced_value): Include transfer size in
8353 byte-wise check.
8354
cdaac320
AA
83552017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8356
8357 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
8358 calculation of this_size.
8359
af547a96
AA
83602017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8361
8362 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
8363 when targeting a bit-field.
8364 (write_pieced_value): Likewise.
8365
ddd7882a
AA
83662017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8367
8368 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
8369 (allocate_piece_closure): Drop addr_size parameter.
8370 (dwarf2_evaluate_loc_desc_full): Adjust call to
8371 allocate_piece_closure.
8372
e9352324
AA
83732017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8374
8375 PR gdb/21226
8376 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
8377 the LSB end, independent of endianness.
8378
d5d1163e
AA
83792017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8380
8381 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
8382 size capping.
8383
032bb6ea
YQ
83842017-06-13 Yao Qi <yao.qi@linaro.org>
8385
8386 * mips-linux-nat.c: Move include features/mips*-linux.c to
8387 mips-linux-tdep.c.
8388 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
8389 to mips-linux-tdep.c.
8390 * mips-linux-tdep.c: Include features/mips*-linux.c
8391 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
8392 functions.
8393 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
8394 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
8395 (tdesc_mips64_dsp_linux): Declare.
8396
f12f6bad
TT
83972017-06-12 Tom Tromey <tom@tromey.com>
8398
8399 * valprint.h (val_print_type_code_int): Remove.
8400 * valprint.c (generic_val_print_int): Always call
8401 val_print_scalar_formatted.
8402 (val_print_type_code_int): Remove.
8403 * printcmd.c (print_scalar_formatted): Handle options->format==0.
8404 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
8405 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
8406 * ada-valprint.c (ada_val_print_num): Use
8407 val_print_scalar_formatted.
8408
d9109c80
TT
84092017-06-12 Tom Tromey <tom@tromey.com>
8410
8411 * printcmd.c (print_scalar_formatted): Unify the two switches.
8412 Don't convert scalars to LONGEST.
8413
4ac0cb1c
TT
84142017-06-12 Tom Tromey <tom@tromey.com>
8415
8416 PR exp/16225:
8417 * valprint.h (print_decimal_chars): Update.
8418 * valprint.c (maybe_negate_by_bytes): New function.
8419 (print_decimal_chars): Add "is_signed" argument.
8420 * printcmd.c (print_scalar_formatted): Update.
8421
30a25466
TT
84222017-06-12 Tom Tromey <tom@tromey.com>
8423
8424 PR exp/16225:
8425 * valprint.h (print_binary_chars, print_hex_chars): Update.
8426 * valprint.c (val_print_type_code_int): Update.
8427 (print_binary_chars): Add "zero_pad" argument.
8428 (emit_octal_digit): New function.
8429 (print_octal_chars): Don't zero-pad.
8430 (print_decimal_chars): Likewise.
8431 (print_hex_chars): Add "zero_pad" argument.
8432 * sh64-tdep.c (sh64_do_fp_register): Update.
8433 * regcache.c (regcache::dump): Update.
8434 * printcmd.c (print_scalar_formatted): Update.
8435 * infcmd.c (default_print_one_register_info): Update.
8436
b3464d03
PA
84372017-06-12 Pedro Alves <palves@redhat.com>
8438 Alan Hayward <alan.hayward@arm.com>
8439
8440 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
8441 (mips_eabi_push_dummy_call): Rename local 'regsize' to
8442 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
8443 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
8444 Assert that abi_regsize bytes fit in 'ref_valbuf'.
8445
4b76cda9
PA
84462017-06-12 Pedro Alves <palves@redhat.com>
8447
8448 * dwarf2read.c (mapped_symtab::data): Now a vector of
8449 symtab_index_entry instead of vector of
8450 std::unique_ptr<symtab_index_entry>. All users adjusted to check
8451 whether an element's name is NULL instead of checking whether the
8452 element itself is NULL.
8453 (find_slot): Change return type. Adjust.
8454 (hash_expand, , add_index_entry, uniquify_cu_indices)
8455 (write_hash_table): Adjust.
8456
e8f8bcb3
PA
84572017-06-12 Pedro Alves <palves@redhat.com>
8458
8459 * dwarf2read.c (recursively_count_psymbols): New function.
8460 (write_psymtabs_to_index): Call it to compute number of psyms and
8461 pass estimate size of psyms_seen to unordered_set's ctor.
8462
70a1152b
PA
84632017-06-12 Pedro Alves <palves@redhat.com>
8464
8465 * dwarf2read.c (write_hash_table): Check if key already exists
8466 before emplacing.
8467
c2f134ac
PA
84682017-06-12 Pedro Alves <palves@redhat.com>
8469
8470 * dwarf2read.c (data_buf::append_space): Rename to...
8471 (data_buf::grow): ... this, and make private. Adjust all callers.
8472 (data_buf::append_uint): New method.
8473 (add_address_entry, write_one_signatured_type)
8474 (write_psymtabs_to_index): Use it.
8475
a81e6d4d
PA
84762017-06-12 Pedro Alves <palves@redhat.com>
8477
8478 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
8479 (file_write (FILE *, const std::vector<Elem>&)): Delete.
8480 (data_buf::file_write): Call ::fwrite directly.
8481
6fd931f2
PA
84822017-06-12 Pedro Alves <palves@redhat.com>
8483
8484 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
8485 std::vector::erase.
8486
bc8f2430
JK
84872017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8488
8489 Code cleanup: C++ify .gdb_index producer.
8490 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
8491 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
8492 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
8493 (create_strtab, add_string): Remove.
8494 (file_write, data_buf): New.
8495 (struct symtab_index_entry): Use std::vector for cu_indices.
8496 (struct mapped_symtab): Use std::vector for data.
8497 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
8498 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
8499 Remove.
8500 (find_slot): Change return type. Update it to the new data structures.
8501 (hash_expand, add_index_entry): Update it to the new data structures.
8502 (offset_type_compare): Remove.
8503 (uniquify_cu_indices): Update it to the new data structures.
8504 (c_str_view, c_str_view_hasher, vector_hasher): New.
8505 (add_indices_to_cpool): Remove.
8506 (write_hash_table): Update it to the new data structures.
8507 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
8508 (eq_psymtab_cu_index): Remove.
8509 (psym_index_map): New typedef.
8510 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
8511 reference and std::unordered_map for cu_index_htab.
8512 (add_address_entry, add_address_entry_worker, write_address_map)
8513 (write_psymbols): Update it to the new data structures.
8514 (write_obstack): Remove.
8515 (struct signatured_type_index_data): Change types_list to a data_buf
8516 reference and psyms_seen to a std::unordered_set reference.
8517 (write_one_signatured_type, recursively_write_psymbols)
8518 (write_psymtabs_to_index): Update it to the new data structures.
8519
c4dcb155
SM
85202017-06-11 Simon Marchi <simon.marchi@ericsson.com>
8521
8522 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
8523 separate-debug-file commands.
8524 * symfile.h (separate_debug_file_debug): New global.
8525 * symfile.c (separate_debug_file_debug): New global.
8526 (separate_debug_file_exists, find_separate_debug_file): Add
8527 debug output.
8528 (_initialize_symfile): Add "set debug separate-debug-file"
8529 command.
8530 * build-id.c (build_id_to_debug_bfd,
8531 find_separate_debug_file_by_buildid): Add debug output.
8532
6d45d4b4
SM
85332017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
8534
8535 * gdbarch.sh (displaced_step_free_closure): Remove.
8536 * gdbarch.h, gdbarch.c: Re-generate.
8537 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
8538 displaced_step_free_closure.
8539 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
8540 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8541 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8542 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
8543 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
8544 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8545 * arch-utils.h (simple_displaced_step_free_closure): Remove.
8546 * arch-utils.c (simple_displaced_step_free_closure): Remove.
8547 * infrun.c (displaced_step_clear): Call xfree instead of
8548 gdbarch_displaced_step_free_closure.
8549
2f91880f
SDJ
85502017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
8551
8552 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
8553 NULL".
8554
b8b6e72f
AH
85552017-06-08 Alan Hayward <alan.hayward@arm.com>
8556
8557 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
8558 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
8559 (mn10300_push_dummy_call): Likewise.
8560
5369082e
AH
85612017-06-08 Alan Hayward <alan.hayward@arm.com>
8562
8563 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
8564
ff4ca5ac
AH
85652017-06-08 Alan Hayward <alan.hayward@arm.com>
8566
8567 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
8568
aefd8b33
SDJ
85692017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8570
8571 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
8572 able to start inferiors using a shell.
8573 (New remote packets): Announce new packet "QStartupWithShell".
8574 * remote.c: Add PACKET_QStartupWithShell.
8575 (extended_remote_create_inferior): Handle new
8576 PACKET_QStartupWithShell.
8577 (remote_protocol_features) <QStartupWithShell>: New entry for
8578 PACKET_QStartupWithShell.
8579 (_initialize_remote): Call "add_packet_config_cmd" for
8580 QStartupShell.
8581
2090129c
SDJ
85822017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8583 Pedro Alves <palves@redhat.com>
8584
8585 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
8586 and "nat/fork-inferior.h".
8587 * common/common-inferior.h: New file, with contents from
8588 "gdb/inferior.h".
8589 * commom/common-utils.c: Include "common-utils.h".
8590 (stringify_argv): New function.
8591 * common/common-utils.h (stringify_argv): New prototype.
8592 * configure.nat: Add "fork-inferior.o" as a dependency for
8593 "*linux*", "fbsd*" and "nbsd*" hosts.
8594 * corefile.c (get_exec_file): Update comment.
8595 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
8596 instead of "startup_inferior".
8597 (darwin_create_inferior): Call "add_thread_silent" after
8598 "fork_inferior".
8599 * fork-child.c: Cleanup unnecessary includes.
8600 (SHELL_FILE): Move to "common/common-fork-child.c".
8601 (environ): Likewise.
8602 (exec_wrapper): Initialize.
8603 (get_exec_wrapper): New function.
8604 (breakup_args): Move to "common/common-fork-child.c"; rename to
8605 "breakup_args_for_exec".
8606 (escape_bang_in_quoted_argument): Move to
8607 "common/common-fork-child.c".
8608 (saved_ui): New variable.
8609 (prefork_hook): New function.
8610 (postfork_hook): Likewise.
8611 (postfork_child_hook): Likewise.
8612 (gdb_startup_inferior): Likewise.
8613 (fork_inferior): Move to "common/common-fork-child.c". Update
8614 function to support gdbserver.
8615 (startup_inferior): Likewise.
8616 * gdbcore.h (get_exec_file): Remove declaration.
8617 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
8618 instead of "startup_inferior". Call "add_thread_silent" after
8619 "fork_inferior".
8620 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
8621 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
8622 instead of "startup_inferior". Call "add_thread_silent" after
8623 "fork_inferior".
8624 * inferior.h: Include "common-inferior.h".
8625 (trace_start_error): Move to "common/common-utils.h".
8626 (trace_start_error_with_name): Likewise.
8627 (fork_inferior): Move prototype to "nat/fork-inferior.h".
8628 (startup_inferior): Likewise.
8629 (gdb_startup_inferior): New prototype.
8630 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
8631 * nat/fork-inferior.h: New file.
8632 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
8633 instead of "startup_inferior". Call "add_thread_silent" after
8634 "fork_inferior".
8635 * target.h (target_terminal_init): Move prototype to
8636 "target/target.h".
8637 (target_terminal_inferior): Likewise.
8638 (target_terminal_ours): Likewise.
8639 * target/target.h (target_terminal_init): New prototype, moved
8640 from "target.h".
8641 (target_terminal_inferior): Likewise.
8642 (target_terminal_ours): Likewise.
8643 * utils.c (gdb_flush_out_err): New function.
8644
043a4934
SDJ
86452017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8646
8647 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
8648 * common/common-gdbthread.h: New file, with parts from
8649 "gdb/gdbthread.h".
8650 * gdbthread.h: Include "common-gdbthread.h".
8651 (switch_to_thread): Moved to "common/common-gdbthread.h".
8652
15652511
SDJ
86532017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8654
8655 * Makefile.in (SFILES): Add "common/job-control.c".
8656 (HFILES_NO_SRCDIR): Add "common/job-control.h".
8657 (COMMON_OBS): Add "job-control.o".
8658 * common/job-control.c: New file, with contents from
8659 "gdb/inflow.c".
8660 * common/job-control.h: New file, with contents from "terminal.h".
8661 * fork-child.c: Include "job-control.h".
8662 * inflow.c: Include "job-control.h".
8663 (gdb_setpgid): Move to "common/common-inflow.c".
8664 (_initialize_inflow): Move setting of "job_control" to
8665 "handle_job_control".
8666 * terminal.h (job_control): Moved to "common/common-terminal.h".
8667 (gdb_setpgid): Likewise.
8668 * top.c: Include "job_control.h".
8669 * utils.c: Likewise.
8670 (job_control): Moved to "job-control.c".
8671
2d7cc5c7
PA
86722017-06-07 Pedro Alves <palves@redhat.com>
8673
8674 * Makefile.in (SFILES): Add gdb_regex.c.
8675 (COMMON_OBS): Add gdb_regex.o.
8676 * ada-lang.c (ada_add_standard_exceptions)
8677 (ada_add_exceptions_from_frame, name_matches_regex)
8678 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
8679 parameter type to compiled_regex. Adjust.
8680 (ada_exceptions_list): Use compiled_regex.
8681 * break-catch-throw.c (exception_catchpoint::pattern): Now a
8682 std::unique_ptr<compiled_regex>.
8683 (exception_catchpoint::~exception_catchpoint): Remove regfree
8684 call.
8685 (check_status_exception_catchpoint): Adjust to use compiled_regex.
8686 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
8687 * breakpoint.c (solib_catchpoint::compiled): Now a
8688 std::unique_ptr<compiled_regex>.
8689 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
8690 (check_status_catch_solib): Adjust to use compiled_regex.
8691 (add_solib_catchpoint): Adjust to use compiled_regex.
8692 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
8693 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
8694 compiled_regex reference. Adjust to use it.
8695 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
8696 declaration. Include "gdb_regex.h".
8697 (apropos_cmd): Change regex parameter to compiled_regex reference.
8698 * gdb_regex.c: New file.
8699 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
8700 declarations.
8701 (class compiled_regex): New.
8702 * linux-tdep.c: Include "common/gdb_optional.h".
8703 (struct mapping_regexes): New, factored out from
8704 mapping_is_anonymous_p, and adjusted to use compiled_regex.
8705 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
8706 gdb::optional and remove cleanups. Adjust to compiled_regex.
8707 * probe.c: Include "common/gdb_optional.h".
8708 (collect_probes): Use compiled_regex and gdb::optional and remove
8709 cleanups.
8710 * skip.c: Include "common/gdb_optional.h".
8711 (skiplist_entry::compiled_function_regexp): Now a
8712 gdb::optional<compiled_regex>.
8713 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
8714 (free_skiplist_entry): Remove regfree call.
8715 (compile_skip_regexp, skip_rfunction_p): Adjust to use
8716 compiled_regex and gdb::optional.
8717 * symtab.c: Include "common/gdb_optional.h".
8718 (search_symbols): Use compiled_regex and gdb::optional.
8719 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
8720 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
8721 to gdb_regex.c.
8722
50d6adef
AH
87232017-06-07 Alan Hayward <alan.hayward@arm.com>
8724
8725 * regcache.c (regcache::save): Avoid buffer use.
8726 (regcache::dump): Likewise.
8727
4a8a33c8
AH
87282017-06-07 Alan Hayward <alan.hayward@arm.com>
8729
8730 * sh-tdep.c (sh_pseudo_register_read): Remove
8731 MAX_REGISTER_SIZE.
8732 (sh_pseudo_register_write): Likewise.
8733 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
8734 (sh64_pseudo_register_write): Likewise
8735
d1be909e
AH
87362017-06-07 Alan Hayward <alan.hayward@arm.com>
8737
8738 * aarch64-tdep.c (aarch64_store_return_value): Use
8739 V_REGISTER_SIZE.
8740 (aarch64_pseudo_read_value): Likewise.
8741 (aarch64_pseudo_write): Likewise.
8742
f4a65042
YQ
87432017-06-06 Yao Qi <yao.qi@linaro.org>
8744
8745 * regformats/regdef.h (set_register_cache): Remove the
8746 declaration.
8747
9f7fb0aa
AH
87482017-06-06 Alan Hayward <alan.hayward@arm.com>
8749
8750 * frame.c (frame_unwind_register_signed): Use
8751 frame_unwind_register_value.
8752
e1e01040
PA
87532017-06-06 Pedro Alves <palves@redhat.com>
8754
8755 PR breakpoints/21553
8756 * breakpoint.c (create_breakpoints_sal_default)
8757 (init_breakpoint_sal, create_breakpoint_sal): Use
8758 gdb::unique_xmalloc_ptr for string parameters.
8759 (create_breakpoint): Constify 'extra_string' and 'cond_string'
8760 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
8761 (base_breakpoint_create_breakpoints_sal)
8762 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
8763 (strace_marker_create_breakpoints_sal)
8764 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
8765 string parameters.
8766 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
8767 gdb::unique_xmalloc_ptr for string parameters.
8768 (create_breakpoint): Constify 'extra_string' and 'cond_string'
8769 parameters.
8770
fbe654c8
AH
87712017-06-06 Alan Hayward <alan.hayward@arm.com>
8772
8773 * alpha-tdep.c (alpha_register_to_value): Use
8774 get_frame_register_value.
8775 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
8776
ae0d01d6
AH
87772017-06-06 Alan Hayward <alan.hayward@arm.com>
8778
8779 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
8780 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
8781 (ia64_value_to_register): Likewise.
8782 (ia64_extract_return_value): Likewise.
8783 (ia64_store_return_value): Likewise.
8784 (ia64_push_dummy_call): Likewise.
8785
49cf576c
JB
87862017-06-04 Joel Brobecker <brobecker@adacore.com>
8787
8788 GDB 8.0 released.
8789
26b6a6ab
SM
87902017-06-03 Simon Marchi <simon.marchi@ericsson.com>
8791
8792 * x86-linux-nat.c (struct arch_lwp_info): Remove.
8793
22827c51
SM
87942017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
8795
8796 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
8797 parameter.
8798 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
8799
0e05cf3a
SM
88002017-06-02 Simon Marchi <simon.marchi@ericsson.com>
8801
8802 * event-loop.c (poll_timers): Unallocate timer using delete
8803 instead of xfree.
8804
c1fc2657
SM
88052017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8806
8807 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
8808 (struct breakpoint) <~breakpoint>: New.
8809 (struct watchpoint): Inherit from breakpoint.
8810 <~watchpoint>: New.
8811 <base>: Remove.
8812 (struct tracepoint): Inherit from breakpoint.
8813 <base>: Remove.
8814 * breakpoint.c (longjmp_breakpoint_ops): Remove.
8815 (struct longjmp_breakpoint): Inherit from breakpoint.
8816 <~longjmp_breakpoint>: New.
8817 <base>: Remove.
8818 (new_breakpoint_from_type): Remove casts.
8819 (watchpoint_in_thread_scope): Remove reference to base field.
8820 (watchpoint_del_at_next_stop): Likewise.
8821 (update_watchpoint): Likewise.
8822 (watchpoint_check): Likewise.
8823 (bpstat_check_watchpoint): Likewise.
8824 (set_longjmp_breakpoint): Likewise.
8825 (struct fork_catchpoint): Inherit from breakpoint.
8826 <base>: Remove.
8827 (struct solib_catchpoint): Inherit from breakpoint.
8828 <~solib_catchpoint>: New.
8829 <base>: Remove.
8830 (dtor_catch_solib): Change to ...
8831 (solib_catchpoint::~solib_catchpoint): ... this.
8832 (breakpoint_hit_catch_solib): Remove reference to base field.
8833 (add_solib_catchpoint): Likewise.
8834 (create_fork_vfork_event_catchpoint): Likewise.
8835 (struct exec_catchpoint): Inherit from breakpoint.
8836 <~exec_catchpoint>: New.
8837 <base>: Remove.
8838 (dtor_catch_exec): Change to ...
8839 (exec_catchpoint::~exec_catchpoint): ... this.
8840 (dtor_watchpoint): Change to ...
8841 (watchpoint::~watchpoint): ... this.
8842 (watch_command_1): Remove reference to base field.
8843 (catch_exec_command_1): Likewise.
8844 (base_breakpoint_dtor): Change to ...
8845 (breakpoint::~breakpoint): ... this.
8846 (base_breakpoint_ops): Remove dtor field value.
8847 (longjmp_bkpt_dtor): Change to ...
8848 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
8849 (strace_marker_create_breakpoints_sal): Remove reference to base
8850 field.
8851 (delete_breakpoint): Don't manually call breakpoint destructor.
8852 (create_tracepoint_from_upload): Remove reference to base field.
8853 (trace_pass_set_count): Likewise.
8854 (initialize_breakpoint_ops): Don't initialize
8855 momentary_breakpoint_ops, don't set dtors.
8856 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
8857 <~ada_catchpoint>: New.
8858 <base>: Remove.
8859 (create_excep_cond_exprs): Remove reference to base field.
8860 (dtor_exception): Change to ...
8861 (ada_catchpoint::~ada_catchpoint): ... this.
8862 (dtor_catch_exception): Remove.
8863 (dtor_catch_exception_unhandled): Remove.
8864 (dtor_catch_assert): Remove.
8865 (create_ada_exception_catchpoint): Remove reference to base
8866 field.
8867 (initialize_ada_catchpoint_ops): Don't set dtors.
8868 * break-catch-sig.c (struct signal_catchpoint): Inherit from
8869 breakpoint.
8870 <~signal_catchpoint>: New.
8871 <base>: Remove.
8872 (signal_catchpoint_dtor): Change to ...
8873 (signal_catchpoint::~signal_catchpoint): ... this.
8874 (create_signal_catchpoint): Remove reference to base field.
8875 (initialize_signal_catchpoint_ops): Don't set dtor.
8876 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
8877 from breakpoint.
8878 <~syscall_catchpoint>: New.
8879 <base>: Remove.
8880 (dtor_catch_syscall): Change to ...
8881 (syscall_catchpoint::~syscall_catchpoint): ... this.
8882 (create_syscall_event_catchpoint): Remove reference to base
8883 field.
8884 (initialize_syscall_catchpoint_ops): Don't set dtor.
8885 * break-catch-throw.c (struct exception_catchpoint): Inherit
8886 from breakpoint.
8887 <~exception_catchpoint>: New.
8888 <base>: Remove.
8889 (dtor_exception_catchpoint): Change to ...
8890 (exception_catchpoint::~exception_catchpoint): ... this.
8891 (handle_gnu_v3_exceptions): Remove reference to base field.
8892 (initialize_throw_catchpoint_ops): Don't set dtor.
8893 * ctf.c (ctf_get_traceframe_address): Remove reference to base
8894 field.
8895 * remote.c (remote_get_tracepoint_status): Likewise.
8896 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
8897 * tracefile.c (tracefile_fetch_registers): Likewise.
8898 * tracepoint.c (actions_command): Likewise.
8899 (validate_actionline): Likewise.
8900 (tfind_1): Likewise.
8901 (get_traceframe_location): Likewise.
8902 (find_matching_tracepoint_location): Likewise.
8903 (parse_tracepoint_status): Likewise.
8904 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
8905
3b0871f4
SM
89062017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8907
8908 * breakpoint.c (struct longjmp_breakpoint): New struct.
8909 (is_tracepoint_type): Change return type to bool.
8910 (is_longjmp_type): New function.
8911 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
8912 (set_raw_breakpoint_without_location): Use
8913 new_breakpoint_from_type.
8914 (set_raw_breakpoint): Likewise.
8915
a5e364af
SM
89162017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8917
8918 * breakpoint.c (new_breakpoint_from_type): New function.
8919 (create_breakpoint_sal): Use new_breakpoint_from_type and
8920 unique_ptr.
8921 (create_breakpoint): Likewise.
8922
ae3b3f34
SM
89232017-05-31 Simon Marchi <simon.marchi@ericsson.com>
8924
8925 * memattr.c (mem_info_command): Rename to ...
8926 (info_mem_command): ... this.
8927 (mem_enable_command): Rename to ...
8928 (enable_mem_command): ... this.
8929 (mem_disable_command): Rename to ...
8930 (disable_mem_command): ... this.
8931 (mem_delete_command): Rename to ...
8932 (delete_mem_command): ... this.
8933 (_initialize_mem): Adjust function names.
8934
13ace077
MM
89352017-05-31 Markus Metzger <markus.t.metzger@intel.com>
8936
8937 * btrace.c (handle_pt_insn_events): New.
8938 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
8939 STATUS. Split into this and ...
8940 (handle_pt_insn_event_flags): ... this.
8941
c56ccc05
MM
89422017-05-31 Markus Metzger <markus.t.metzger@intel.com>
8943
8944 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
8945 and struct pt_insn.resynced.
8946 * configure: Regenerated.
8947 * config.in: Regenerated.
8948
08c3f6d2
TW
89492017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8950
8951 * btrace.c (ftrace_find_call_by_number): New function.
8952 (ftrace_new_function): Store objects, not pointers.
8953 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
8954 ftrace_new_gap, ftrace_update_function,
8955 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
8956 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
8957 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
8958 btrace_ends_with_single_insn, btrace_call_get): Account for
8959 btrace_thread_info::functions now storing objects.
8960 * btrace.h (struct btrace_thread_info): Add constructor.
8961 (struct btrace_thread_info) <functions>: Make std::vector.
8962 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
8963 Initialize with default values.
8964 * record-btrace.c (record_btrace_frame_sniffer): Account for
8965 btrace_thread_info::functions now storing objects.
8966
8ffd39f2
TW
89672017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8968
8969 * btrace.c: Remove typedef bfun_s.
8970 (ftrace_new_gap): Directly add gaps to the list of gaps.
8971 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
8972 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
8973 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
8974 instead of gdb VEC.
8975
4aeb0dfc
TW
89762017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8977
8978 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
8979 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
8980 with btrace_thread_info::next_segment and
8981 btrace_thread_info::prev_segment.
8982 * btrace.h: Remove struct btrace_func_link.
8983 (struct btrace_function): Replace pair of function segment pointers
8984 with pair of indices.
8985 * python/py-record-btrace.c (btpy_call_prev_sibling,
8986 btpy_call_next_sibling): Replace references to
8987 btrace_thread_info::segment with btrace_thread_info::next_segment and
8988 btrace_thread_info::prev_segment.
8989 * record-btrace.c (record_btrace_frame_this_id): Use
8990 btrace_find_call_by_number.
8991
eb8f2b9c
TW
89922017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8993
8994 * btrace.c (ftrace_new_function, ftrace_fixup_level,
8995 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
8996 btrace_insn_next, btrace_insn_prev): Remove references to
8997 btrace_thread_info::flow.
8998 * btrace.h (struct btrace_function): Remove FLOW.
8999
42bfe59e
TW
90002017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9001
9002 * btrace.c (ftrace_find_call_by_number): New function.
9003 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
9004 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
9005 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
9006 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
9007 index.
9008 * btrace.h (struct btrace_function): Turn UP into an index.
9009 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
9010 as an index.
9011 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
9012 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
9013 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
9014
b54b03bd
TW
90152017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9016
9017 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
9018 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
9019 ftrace_update_function, ftrace_compute_global_level_offset,
9020 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
9021 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
9022 btrace_insn_end, btrace_is_empty): Remove references to
9023 btrace_thread_info::begin and btrace_thread_info::end.
9024 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
9025 (struct btrace_thread_info) <functions>: Adjust comment.
9026 * record-btrace.c (record_btrace_start_replaying): Remove reference to
9027 btrace_thread_info::begin.
9028
8286623c
TW
90292017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9030
9031 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
9032 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
9033 ftrace_update_function): Remove arguments that implicitly were always
9034 BTINFO->END.
9035 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
9036 Don't pass BTINFO->END.
9037
a0f1b963
TW
90382017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9039
9040 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
9041 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
9042 btrace_find_insn_by_number): Replace function segment pointer with
9043 index.
9044 (btrace_insn_cmp): Simplify.
9045 * btrace.h: (struct btrace_insn_iterator) Rename index to
9046 insn_index. Replace function segment pointer with index into function
9047 segment vector.
9048 * record-btrace.c (record_btrace_call_history): Replace function
9049 segment pointer use with index.
9050 (record_btrace_frame_sniffer): Retrieve function call segment through
9051 vector.
9052 (record_btrace_set_replay): Remove defunc't safety check.
9053
f158f208
TW
90542017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9055
9056 * btrace.c (btrace_ends_with_single_insn): New function.
9057 (btrace_call_get, btrace_call_number, btrace_call_begin,
9058 btrace_call_end, btrace_call_next, btrace_call_prev,
9059 btrace_find_call_by_number): Use index into call segment vector
9060 instead of pointer.
9061 (btrace_call_cmp): Simplify.
9062 * btrace.h (struct btrace_call_iterator): Replace function call segment
9063 pointer with index into vector.
9064 * record-btrace.c (record_btrace_call_history): Use index instead of
9065 pointer.
9066
521103fd
TW
90672017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9068
9069 * btrace.c (btrace_insn_begin, btrace_insn_end,
9070 btrace_find_insn_by_number): Add btinfo to iterator.
9071 * btrace.h (struct btrace_insn_iterator): Add btinfo.
9072
17b89b34
TW
90732017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9074
9075 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
9076 and save pointers directly.
9077 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
9078 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
9079 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
9080 changed signature of functions.
9081 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
9082 (btrace_fetch): Remove code that adds btrace_function pointers to
9083 vector of btrace_functions.
9084 (btrace_clear): Simplify freeing vector of btrace_functions.
9085
2b51eddc
TW
90862017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9087
9088 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
9089 Replace VEC_* with std::vector functions.
9090 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
9091 (struct btrace_thread_info)<functions>: Change type to std::vector.
9092
db6be0d5
SM
90932017-05-30 Simon Marchi <simon.marchi@ericsson.com>
9094
9095 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
9096 "Removed targets and native configurations" up. Merge duplicate
9097 "New commands" sub-sections. Add "New options" sub-sections.
9098
b057297a
AH
90992017-05-26 Alan Hayward <alan.hayward@arm.com>
9100
9101 * defs.h (copy_integer_to_size): New declaration.
9102 * findvar.c (copy_integer_to_size): New function.
9103 (do_cint_test): New selftest function.
9104 (copy_integer_to_size_test): Likewise.
9105 (_initialize_findvar): Likewise.
9106 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
9107 (mips_fbsd_collect_reg): Use raw_collect_integer.
9108 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
9109 (mips64_fill_gregset): Use raw_collect_integer
9110 (mips64_fill_fpregset): Use raw_supply_integer.
9111 * regcache.c (regcache::raw_supply_integer): New function.
9112 (regcache::raw_collect_integer): Likewise.
9113 * regcache.h: (regcache::raw_supply_integer): New declaration.
9114 (regcache::raw_collect_integer): Likewise.
9115
b77b02a5
YQ
91162017-05-24 Yao Qi <yao.qi@linaro.org>
9117
9118 * Makefile.in (SFILES): Add gdbarch-selftests.c.
9119 (COMMON_OBS): Add gdbarch-selftests.o.
9120 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
9121 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
9122 * gdbarch-selftests.c: New file.
9123 * regcache.h (regcache) <~regcache>: Mark it virtual if
9124 GDB_SELF_TEST.
9125 <raw_write>: Likewise.
9126
e521e87e
YQ
91272017-05-24 Yao Qi <yao.qi@linaro.org>
9128
9129 * regcache.c (current_regcache): Change it to
9130 regcache::current_regcache.
9131 (regcache_observer_target_changed): Update.
9132 (regcache_thread_ptid_changed): Make it a regcache static
9133 method.
9134 (regcache_thread_ptid_changed): Update.
9135 (class regcache_access): New.
9136 (current_regcache_test): Update.
9137 (_initialize_regcache): Update.
9138 * regcache.h: Include forward_list.
9139 (regcache): Declare regcache_thread_ptid_changed and declare
9140 registers_changed_ptid as friend.
9141
d8e07dda
YQ
91422017-05-24 Yao Qi <yao.qi@linaro.org>
9143
9144 * i387-tdep.c (i387_register_to_value): Use register_size
9145 instead of TYPE_LENGTH.
9146 * m68k-tdep.c (m68k_register_to_value): Likewise.
9147
8c8f9122
YQ
91482017-05-24 Yao Qi <yao.qi@linaro.org>
9149
9150 * i387-tdep.c (i387_convert_register_p): Return false if type
9151 code isn't TYPE_CODE_FLT.
9152
68fce50f
YQ
91532017-05-24 Yao Qi <yao.qi@linaro.org>
9154
9155 * alpha-tdep.c (alpha_convert_register_p): Return true if type
9156 length is 4.
9157 (alpha_register_to_value): Remove type length check.
9158 (alpha_value_to_register): Likewise.
9159
88954b49
YQ
91602017-05-24 Yao Qi <yao.qi@linaro.org>
9161
9162 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
9163 TYPE_CODE_FLT.
9164
e3ec9b69
YQ
91652017-05-24 Yao Qi <yao.qi@linaro.org>
9166
9167 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
9168 TYPE_CODE_FLT or not.
9169
cdd238da
YQ
91702017-05-24 Yao Qi <yao.qi@linaro.org>
9171
9172 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
9173 * avr-tdep.c (avr_gdbarch_init): Likewise.
9174 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
9175 * cris-tdep.c (cris_gdbarch_init): Likewise.
9176 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
9177 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
9178 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
9179 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
9180 * mep-tdep.c (mep_gdbarch_init): Likewise.
9181 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
9182 * mips-tdep.c (mips_gdbarch_init): Likewise.
9183 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
9184 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
9185 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
9186 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
9187 * v850-tdep.c (v850_gdbarch_init): Likewise.
9188
7a3929c4
YQ
91892017-05-24 Yao Qi <yao.qi@linaro.org>
9190
9191 * selftest-arch.c (tests_with_arch): Call registers_changed
9192 and reinit_frame_cache.
9193 * selftest.c (run_self_tests): Likewise.
9194
f4985dba
YQ
91952017-05-24 Yao Qi <yao.qi@linaro.org>
9196
9197 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
9198 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
9199
ab20fa4a
YQ
92002017-05-24 Yao Qi <yao.qi@linaro.org>
9201
9202 * rl78-tdep.c (rl78_gdbarch_init): Don't call
9203 set_gdbarch_print_insn.
9204
f532ab94
YQ
92052017-05-24 Yao Qi <yao.qi@linaro.org>
9206
9207 * h8300-tdep.c (h8300_gdbarch_init): Don't call
9208 set_gdbarch_print_insn.
9209
39503f82
YQ
92102017-05-24 Yao Qi <yao.qi@linaro.org>
9211
9212 * alpha-tdep.c (alpha_gdbarch_init): Don't call
9213 set_gdbarch_print_insn.
9214 * arc-tdep.c (arc_gdbarch_init): Likewise.
9215 * arch-utils.c: include dis-asm.h.
9216 (default_print_insn): New function.
9217 * arch-utils.h (default_print_insn): Declare.
9218 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
9219 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
9220 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
9221 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
9222 * frv-tdep.c (frv_gdbarch_init): Likewise.
9223 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
9224 * gdbarch.sh (print_insn): Use default_print_insn.
9225 * gdbarch.c: Regenerated.
9226 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
9227 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
9228 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
9229 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
9230 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
9231 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
9232 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
9233 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
9234 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
9235 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
9236 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
9237 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
9238 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
9239 * mt-tdep.c (mt_gdbarch_init): Likewise.
9240 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
9241 * nios2-tdep.c (nios2_print_insn): Remove.
9242 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
9243 * rx-tdep.c (rx_gdbarch_init): Likewise.
9244 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
9245 * score-tdep.c (score_print_insn): Remove.
9246 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
9247 * sh-tdep.c (sh_gdbarch_init): Likewise.
9248 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
9249 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9250 * tic6x-tdep.c (tic6x_print_insn): Remove.
9251 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
9252 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
9253 * v850-tdep.c (v850_gdbarch_init): Likewise.
9254 * vax-tdep.c (vax_gdbarch_init): Likewise.
9255 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
9256 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
9257
f7241d4f
JB
92582017-05-23 John Baldwin <jhb@FreeBSD.org>
9259
9260 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
9261 (MIPS_FP0_REGNUM): Remove.
9262 (MIPS_FSR_REGNUM): Remove.
9263 (mips_fbsd_supply_fpregs): Use mips_regnum.
9264 (mips_fbsd_supply_gregs): Likewise.
9265 (mips_fbsd_collect_fpregs): Likewise.
9266 (mips_fbsd_collect_gregs): Likewise.
9267
d489d81d
JB
92682017-05-23 John Baldwin <jhb@FreeBSD.org>
9269
9270 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
9271 (getpfpregs_supplies): New function.
9272 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
9273 getfpregs_supplies.
9274 (mips_fbsd_store_inferior_registers): Likewise.
9275
e11b3cdc
PA
92762017-05-22 Pedro Alves <palves@redhat.com>
9277
9278 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
9279 maintainer.
9280
0f068fb5
AH
92812017-05-22 Alan Hayward <alan.hayward@arm.com>
9282
9283 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
9284 (store_register): Likewise.
9285 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
9286 (get_decimal_float_return_value): Likewise.
9287 (do_ppc_sysv_return_value): Likewise.
9288 (ppc64_sysv_abi_push_integer): Likewise.
9289 (ppc64_sysv_abi_push_freg): Likewise.
9290 (ppc64_sysv_abi_return_value_base): Likewise.
9291 (ppc64_sysv_abi_return_value): Likewise.
9292 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
9293 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
9294 * rs6000-nat.c: Likewise.
9295 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
9296 (rs6000_value_to_register): Likewise.
9297 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
9298
e6cf65f2
TT
92992017-05-21 Tom Tromey <tom@tromey.com>
9300
9301 PR rust/21466:
9302 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
9303 arrays as "[T]", not "[T; ]".
9304
43cc5389
TT
93052017-05-19 Tom Tromey <tom@tromey.com>
9306
9307 PR rust/21484:
9308 * rust-lang.c (exp_descriptor_rust): New function.
9309 (rust_language_defn): Use it.
9310 * p-lang.c (pascal_language_defn): Update.
9311 * opencl-lang.c (opencl_language_defn): Update.
9312 * objc-lang.c (objc_language_defn): Update.
9313 * m2-lang.c (m2_language_defn): Update.
9314 * language.h (struct language_defn)
9315 <la_watch_location_expression>: New member.
9316 * language.c (unknown_language_defn, auto_language_defn)
9317 (local_language_defn): Update.
9318 * go-lang.c (go_language_defn): Update.
9319 * f-lang.c (f_language_defn): Update.
9320 * d-lang.c (d_language_defn): Update.
9321 * c-lang.h (c_watch_location_expression): Declare.
9322 * c-lang.c (c_watch_location_expression): New function.
9323 (c_language_defn, cplus_language_defn, asm_language_defn)
9324 (minimal_language_defn): Use it.
9325 * breakpoint.c (watch_command_1): Call
9326 la_watch_location_expression.
9327 * ada-lang.c (ada_language_defn): Update.
9328
7a6e7fcc
RO
93292017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9330
6e7e1744
RO
9331 PR tui/21482
9332 * gdb_curses.h (NOMACROS): Define.
9333 (NCURSES_NOMACROS): Define.
9334
93352017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9336
9337 PR tui/21482
7a6e7fcc
RO
9338 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
9339 arg to char *.
9340 * tui/tui-wingeneral.c (box_win): Likewise.
9341 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
9342 (tui_show_source_line): Likewise.
9343 (tui_show_exec_info_content): Likewise.
9344
1933fd8e
VM
93452017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
9346
9347 * sparc-tdep.c (sparc_structure_return_p)
9348 (sparc_arg_on_registers_p): New functions.
9349 (sparc32_store_arguments): Use them.
9350 * sparc64-tdep.c (sparc64_16_byte_align_p)
9351 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
9352 Handle TYPE_CODE_ARRAY.
9353
21873064
YQ
93542017-05-17 Yao Qi <yao.qi@linaro.org>
9355
9356 * cli/cli-decode.c (add_alias_cmd): New function.
9357 * command.h (add_alias_cmd): Declare.
9358 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
9359 instead call add_alias_cmd.
9360
2b351b19
PA
93612017-05-17 Pedro Alves <palves@redhat.com>
9362
9363 * Makefile.in (nat_extra_makefile_frag): Rename to ...
9364 (nat_makefile_frag): ... this. All references updated.
9365 * configure.ac: Likewise.
9366 * configure.nat: Likewise. Enhance comments.
9367 * configure: Regenerate.
9368
5f2ad7a3
RO
93692017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9370
9371 * procfs.c (procfs_create_inferior): Change prototype to match
9372 definition.
9373
adf3dde5
EZ
93742017-05-13 Eli Zaretskii <eliz@gnu.org>
9375
9376 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
9377 C++ compiler warning.
9378
6830f270
TT
93792017-05-12 Tom Tromey <tom@tromey.com>
9380
9381 PR rust/21483:
9382 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
9383 recurse, just call value_struct_elt directly.
9384
68f2f2e3
TT
93852017-05-12 Tom Tromey <tom@tromey.com>
9386
9387 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
9388 OP_RUST_ARRAY>: Fix.
9389
256afbc2
TT
93902017-05-12 Tom Tromey <tom@tromey.com>
9391
9392 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
9393
94bb8dfe
YQ
93942017-05-09 Yao Qi <yao.qi@linaro.org>
9395
9396 * regcache.c: Include <forward_list>.
9397 (struct regcache_list): Remove.
9398 (current_regcache): Update.
9399 (get_thread_arch_aspace_regcache): Update for std::forward_list.
9400 (regcache_thread_ptid_changed): Likewise.
9401 (registers_changed_ptid): Likewise.
9402 (current_regcache_size): Likewise.
9403
8248946c
YQ
94042017-05-09 Yao Qi <yao.qi@linaro.org>
9405
9406 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
9407 (current_regcache_size): New function.
9408 (current_regcache_test): New function.
9409 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
9410
313c5961
AH
94112017-05-08 Alan Hayward <alan.hayward@arm.com>
9412
9413 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
9414 (print_gp_register_row): Use get_frame_register_value.
9415
27bfc1d1
AH
94162017-05-08 Alan Hayward <alan.hayward@arm.com>
9417
9418 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
9419 (mips_supply_fpregset): Likewise.
9420 (mips64_supply_gregset): Likewise.
9421
146e6c5c
AH
94222017-05-08 Alan Hayward <alan.hayward@arm.com>
9423
9424 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
9425 regcache->raw_supply_zeroed.
9426
e50f25ec
SDJ
94272017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
9428
9429 * configure.nat: Rearrange 'case' statements to match
9430 host before cpu.
9431
21ea5acd
SDJ
94322017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
9433
9434 * Makefile.in: Remove "@host_makefile_frag@". Add variables
9435 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
9436 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
9437 "@nat_extra_makefile_frag@".
9438 (Makefile): Remove dependency on "@frags@".
9439 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
9440 (data-directory/Makefile): Likewise.
9441 * config/aarch64/linux.mh: Deleted; moved contents to
9442 "gdb/configure.nat".
9443 * config/alpha/alpha-linux.mh: Likewise.
9444 * config/alpha/nbsd.mh: Likewise.
9445 * config/arm/linux.mh: Likewise.
9446 * config/arm/nbsdelf.mh: Likewise.
9447 * config/i386/cygwin.mh: Likewise.
9448 * config/i386/cygwin64.mh: Likewise.
9449 * config/i386/darwin.mh: Likewise.
9450 * config/i386/fbsd.mh: Likewise.
9451 * config/i386/fbsd64.mh: Likewise.
9452 * config/i386/go32.mh: Likewise.
9453 * config/i386/i386gnu.mh: Likewise.
9454 * config/i386/i386sol2.mh: Likewise.
9455 * config/i386/linux.mh: Likewise.
9456 * config/i386/linux64.mh: Likewise.
9457 * config/i386/mingw.mh: Likewise.
9458 * config/i386/mingw64.mh: Likewise.
9459 * config/i386/nbsd64.mh: Likewise.
9460 * config/i386/nbsdelf.mh: Likewise.
9461 * config/i386/nto.mh: Likewise.
9462 * config/i386/obsd.mh: Likewise.
9463 * config/i386/obsd64.mh: Likewise.
9464 * config/i386/sol2-64.mh: Likewise.
9465 * config/ia64/linux.mh: Likewise.
9466 * config/m32r/linux.mh: Likewise.
9467 * config/m68k/linux.mh: Likewise.
9468 * config/m68k/nbsdelf.mh: Likewise.
9469 * config/m68k/obsd.mh: Likewise.
9470 * config/m88k/obsd.mh: Likewise.
9471 * config/mips/fbsd.mh: Likewise.
9472 * config/mips/linux.mh: Likewise.
9473 * config/mips/nbsd.mh: Likewise.
9474 * config/mips/obsd64.mh: Likewise.
9475 * config/pa/linux.mh: Likewise.
9476 * config/pa/nbsd.mh: Likewise.
9477 * config/pa/obsd.mh: Likewise.
9478 * config/powerpc/aix.mh: Likewise.
9479 * config/powerpc/fbsd.mh: Likewise.
9480 * config/powerpc/linux.mh: Likewise.
9481 * config/powerpc/nbsd.mh: Likewise.
9482 * config/powerpc/obsd.mh: Likewise.
9483 * config/powerpc/ppc64-linux.mh: Likewise.
9484 * config/powerpc/spu-linux.mh: Likewise.
9485 * config/s390/linux.mh: Likewise.
9486 * config/sh/nbsd.mh: Likewise.
9487 * config/sparc/fbsd.mh: Likewise.
9488 * config/sparc/linux.mh: Likewise.
9489 * config/sparc/linux64.mh: Likewise.
9490 * config/sparc/nbsd64.mh: Likewise.
9491 * config/sparc/nbsdelf.mh: Likewise.
9492 * config/sparc/obsd64.mh: Likewise.
9493 * config/sparc/sol2.mh: Likewise.
9494 * config/tilegx/linux.mh: Likewise.
9495 * config/vax/nbsdelf.mh: Likewise.
9496 * config/vax/obsd.mh: Likewise.
9497 * config/xtensa/linux.mh: Likewise.
9498 * config/i386/i386gnu.mn: New file, with excerpts from
9499 "config/i386/i386gnu.mh".
9500 * configure: Regenerate.
9501 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
9502 *.mh files under "gdb/config".
9503 * configure.nat: New file, with contents from the
9504 "gdb/config/*/*.mh" files.
9505
7ed1acaf
TW
95062017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
9507
9508 * btrace.c (btrace_clear): Free insn vector.
9509
e13cb306
PA
95102017-05-05 Pedro Alves <palves@redhat.com>
9511
9512 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
9513 * configure: Regenerate.
9514
5ed8105e
PA
95152017-05-04 Pedro Alves <palves@redhat.com>
9516
9517 * Makefile.in (SFILES): Add progspace-and-thread.c.
9518 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
9519 (COMMON_OBS): Add progspace-and-thread.o.
9520 * breakpoint.c: Include "progspace-and-thread.h".
9521 (update_inserted_breakpoint_locations)
9522 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
9523 Use scoped_restore_current_pspace_and_thread.
9524 (create_std_terminate_master_breakpoint): Use
9525 scoped_restore_current_program_space.
9526 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
9527 (print_breakpoint_location): Use
9528 scoped_restore_current_program_space.
9529 (bp_loc_is_permanent): Use
9530 scoped_restore_current_pspace_and_thread.
9531 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
9532 (download_tracepoint_locations): Use
9533 scoped_restore_current_pspace_and_thread.
9534 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
9535 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
9536 (enum step_over_calls_kind): Moved from inferior.h.
9537 (class scoped_restore_current_thread): New class.
9538 * gdbthread.h (make_cleanup_restore_current_thread): Delete
9539 declaration.
9540 (scoped_restore_current_thread): New class.
9541 * infcmd.c: Include "common/gdb_optional.h".
9542 (continue_1, proceed_after_attach): Use
9543 scoped_restore_current_thread.
9544 (notice_new_inferior): Use scoped_restore_current_thread.
9545 * inferior.c: Include "progspace-and-thread.h".
9546 (restore_inferior, save_current_inferior): Delete.
9547 (add_inferior_command, clone_inferior_command): Use
9548 scoped_restore_current_pspace_and_thread.
9549 * inferior.h (scoped_restore_current_inferior): New class.
9550 * infrun.c: Include "progspace-and-thread.h" and
9551 "common/gdb_optional.h".
9552 (follow_fork_inferior): Use
9553 scoped_restore_current_pspace_and_thread.
9554 (scoped_restore_exited_inferior): New class.
9555 (handle_vfork_child_exec_or_exit): Use
9556 scoped_restore_exited_inferior,
9557 scoped_restore_current_pspace_and_thread,
9558 scoped_restore_current_thread and scoped_restore.
9559 (fetch_inferior_event): Use scoped_restore_current_thread.
9560 * linespec.c (decode_line_full, decode_line_1): Use
9561 scoped_restore_current_program_space.
9562 * mi/mi-main.c: Include "progspace-and-thread.h".
9563 (exec_continue): Use scoped_restore_current_thread.
9564 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
9565 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
9566 * proc-service.c (ps_pglobal_lookup): Use
9567 scoped_restore_current_program_space.
9568 * progspace-and-thread.c: New file.
9569 * progspace-and-thread.h: New file.
9570 * progspace.c (release_program_space, clone_program_space): Use
9571 scoped_restore_current_program_space.
9572 (restore_program_space, save_current_program_space)
9573 (save_current_space_and_thread): Delete.
9574 (switch_to_program_space_and_thread): Moved to
9575 progspace-and-thread.c.
9576 * progspace.h (save_current_program_space)
9577 (save_current_space_and_thread): Delete declarations.
9578 (scoped_restore_current_program_space): New class.
9579 * remote.c (remote_btrace_maybe_reopen): Use
9580 scoped_restore_current_thread.
9581 * symtab.c: Include "progspace-and-thread.h".
9582 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
9583 * thread.c (print_thread_info_1): Use
9584 scoped_restore_current_thread.
9585 (struct current_thread_cleanup): Delete.
9586 (do_restore_current_thread_cleanup)
9587 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
9588 (scoped_restore_current_thread::~scoped_restore_current_thread):
9589 ... this new dtor.
9590 (make_cleanup_restore_current_thread): Rename/convert to ...
9591 (scoped_restore_current_thread::scoped_restore_current_thread):
9592 ... this new ctor.
9593 (thread_apply_all_command): Use scoped_restore_current_thread.
9594 (thread_apply_command): Use scoped_restore_current_thread.
9595 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
9596 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
9597
f6223dbb
PA
95982017-05-04 Pedro Alves <palves@redhat.com>
9599
9600 * thread.c (make_cleanup_restore_current_thread): Move
9601 find_thread_ptid call before the is_stopped call. Assert that the
9602 thread is found. Replace is_stopped call by checking the thread's
9603 state directly. Remove unnecessary NULL-thread check.
9604
3c3ae77e
PA
96052017-05-04 Pedro Alves <palves@redhat.com>
9606
9607 * corelow.c (thread_section_name): New class.
9608 (get_core_register_section, get_core_siginfo): Use it.
9609
45eba0ab
AA
96102017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9611
9612 * corelow.c (sniff_core_bfd): Remove extra semicolon.
9613 (get_core_register_section): Remove xfree of NULL pointer.
9614
f81fdd35
AH
96152017-05-03 Alan Hayward <alan.hayward@arm.com>
9616
9617 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
9618 * regcache.c (regcache::raw_supply_zeroed): New function.
9619 * regcache.h (regcache::raw_supply_zeroed): New declaration.
9620
35837774
SM
96212017-05-03 Simon Marchi <simon.marchi@ericsson.com>
9622
9623 * gdbarch.sh: Remove commented out definition of
9624 TARGET_CHAR_BIT.
9625 * gdbarch.h: Re-generate.
9626
c94fee56
SDJ
96272017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
9628
9629 * configure: Regenerate.
9630
d17f7b36
SM
96312017-05-02 Simon Marchi <simon.marchi@ericsson.com>
9632
9633 * solib-target.c (solib_target_relocate_section_addresses):
9634 Remove num_section_bases, num_bases, segment_bases variables.
9635
b560ebd6
SM
96362017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9637
9638 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
9639
f2f46dfc
SM
96402017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9641
9642 * solib-target.c: Include <vector>
9643 (struct lm_info_target) <~lm_info_target>: Remove.
9644 <segment_bases, section_bases>: Change type to
9645 std::vector<CORE_ADDR>.
9646 (library_list_start_segment, library_list_start_section,
9647 library_list_end_library,
9648 solib_target_relocate_section_addresses): Adjust.
9649
a0ff9e1a
SM
96502017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9651
9652 * gdbarch.sh (software_single_step): Change return type to
9653 std::vector<CORE_ADDR>.
9654 * gdbarch.c, gdbarch.h: Re-generate.
9655 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
9656 Adjust.
9657 (arm_deal_with_atomic_sequence_raw): Adjust.
9658 (thumb_get_next_pcs_raw): Adjust.
9659 (arm_get_next_pcs_raw): Adjust.
9660 (arm_get_next_pcs): Adjust.
9661 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
9662 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
9663 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
9664 (alpha_software_single_step): Adjust.
9665 * alpha-tdep.h (alpha_software_single_step): Adjust.
9666 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
9667 * arm-tdep.c (arm_software_single_step): Adjust.
9668 (arm_breakpoint_kind_from_current_state): Adjust.
9669 * arm-tdep.h (arm_software_single_step): Adjust.
9670 * breakpoint.c (insert_single_step_breakpoint): Adjust.
9671 * cris-tdep.c (cris_software_single_step): Adjust.
9672 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
9673 (micromips_deal_with_atomic_sequence): Adjust.
9674 (deal_with_atomic_sequence): Adjust.
9675 (mips_software_single_step): Adjust.
9676 * mips-tdep.h (mips_software_single_step): Adjust.
9677 * moxie-tdep.c (moxie_software_single_step): Adjust.
9678 * nios2-tdep.c (nios2_software_single_step): Adjust.
9679 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
9680 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
9681 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
9682 * s390-linux-tdep.c (s390_software_single_step): Adjust.
9683 * sparc-tdep.c (sparc_software_single_step): Adjust.
9684 * spu-tdep.c (spu_software_single_step): Adjust.
9685 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
9686
ea480a30
SM
96872017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9688
9689 * gdbarch.sh: Use semi-colon as field separator instead of colon.
9690 * gdbarch.h: Re-generate.
9691
d050f7d7
TW
96922017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9693
9694 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
9695 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
9696 * python/py-instruction.c, python/py-instruction.h: New file.
9697 * python/py-record.c: Add py-instruction.h include.
9698 (gdbpy_initialize_record): Make gdb.Instruction a super class of
9699 gdb.RecordInstruction.
9700 * python/python-internal.h: Add gdbpy_initialize_instruction
9701 declaration.
9702 * python/python.c (do_start_initialization): Add
9703 gdbpy_initialize_instruction.
9704
14f819c8
TW
97052017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9706
9707 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
9708 Remove.
9709 (btrace_func_from_recpy_func): New function.
9710 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
9711 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
9712 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
9713 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
9714 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
9715 Also, use new helper functions.
9716 (btpy_list_item): Use new helper functions.
9717 (recpy_bt_function_call_history): Use new type name.
9718 (btpy_call_getset): Remove.
9719 (gdbpy_initialize_btrace): Remove code to initialize
9720 gdb.BtraceFunctionCall.
9721 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
9722 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
9723 recpy_bt_func_prev, recpy_bt_func_next): New export.
9724 * python/py-record.c (recpy_func_type): New static object.
9725 (recpy_func_new, recpy_func_level, recpy_func_symbol,
9726 recpy_func_instructions, recpy_func_up, recpy_func_prev,
9727 recpy_func_next): New function.
9728 (recpy_element_hash, recpy_element_richcompare): Updated comment.
9729 (recpy_func_getset): New static object.
9730 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
9731 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
9732
0ed5da75
TW
97332017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9734
9735 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
9736 (btpy_object, btpy_insn_type, btpy_new): Remove.
9737 (btpy_list_object): Use gdb.RecordInstruction type instead of
9738 gdb.BtraceInstruction type.
9739 (btrace_insn_from_recpy_insn): New function.
9740 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
9741 btpy_new.
9742 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
9743 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
9744 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
9745 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
9746 instead of btpy_object.
9747 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
9748 btpy_insn_data, btpy_insn_decode): Rename to ...
9749 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
9750 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
9751 recpy_bt_insn_decode): This. Also, use new helper functions.
9752 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
9753 recpy_insn_type.
9754 (btpy_insn_getset): Remove.
9755 (gdbpy_initialize_btrace): Remove code to initialize
9756 gdb.BtraceInstruction. Use recpy_element_object.
9757 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
9758 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
9759 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
9760 * python/py-record.c (recpy_insn_type): New static object.
9761 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
9762 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
9763 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
9764 New function.
9765 (recpy_insn_getset): New static object.
9766 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
9767 * python/py-record.h (recpy_element_object): New typedef.
9768 (recpy_insn_type, recpy_insn_new): New export.
9769
913aeadd
TW
97702017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9771
9772 * py-record-btrace.c (btpy_insn_new): Removed.
9773 (btpy_insn_or_gap_new): New function.
9774 (btpy_insn_error): Removed.
9775 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
9776 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
9777 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
9778 btpy_insn_or_gap_new instead of btpy_insn_new.
9779 (btpy_insn_getset): Remove btpy_insn_error.
9780 * py-record.c (recpy_gap_type): New static object.
9781 (recpy_gap_object): New typedef.
9782 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
9783 recpy_gap_reason_string): New function.
9784 (recpy_gap_getset): New static object.
9785 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
9786 * py-record.h (recpy_gap_new): New export.
9787
a3be24ad
TW
97882017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9789
9790 * python/py-record.c (recpy_ptid): Remove.
9791 (recpy_record_getset): Remove recpy_ptid.
9792
ae20e79a
TW
97932017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9794
9795 * btrace.c (btrace_fetch): Set inferior_ptid.
9796 * python/py-record-btrace.c: Add "py-record.h" include.
9797 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
9798 recpy_bt_end, recpy_bt_instruction_history,
9799 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
9800 in gdb.Record object instead of current ptid.
9801 * python/py-record.c: Include new "py-record.h" file.
9802 (recpy_record_object): Moved to py-record.h.
9803 * python/py-record.h: New file.
9804
8d0050ea
TW
98052017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9806
9807 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
9808 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
9809 indentation.
9810
3f380b50
JB
98112017-05-01 Joel Brobecker <brobecker@adacore.com>
9812
9813 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
9814 the past maintainers section.
9815
07495424
YQ
98162017-04-28 Yao Qi <yao.qi@linaro.org>
9817
9818 * infcmd.c (get_return_value): Use regcache ctor, and remove
9819 cleanup.
9820
deb1fa3e
YQ
98212017-04-28 Yao Qi <yao.qi@linaro.org>
9822 Pedro Alves <palves@redhat.com>
9823
9824 * regcache.c (regcache::regcache): New tag dispatch ctor.
9825 (do_cooked_read): Moved above.
9826 (regcache_dup): Use the tag dispatch ctor..
9827 * regcache.h (regcache): Declare ctor, delete copy ctor and
9828 assignment operator, remove friend regcache_dup.
9829
b421c83c
YQ
98302017-04-28 Yao Qi <yao.qi@linaro.org>
9831
9832 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
9833 call method save instead of regcache_cpy.
9834 * regcache.h (struct regcache): Make regcache_dup a friend.
9835
ef79d9a3
YQ
98362017-04-28 Yao Qi <yao.qi@linaro.org>
9837
9838 * regcache.c (struct regcache): Move to regcache.h
9839 (regcache::arch): New method.
9840 (regcache_get_ptid): Update.
9841 (get_regcache_arch): Call arch method.
9842 (get_regcache_aspace): Call method aspace.
9843 (register_buffer): Change it to method.
9844 (regcache_save): Change it to regcache::save.
9845 (regcache_restore): Likewise.
9846 (regcache_cpy_no_passthrough): Remove the declaration.
9847 (regcache_cpy): Call methods restore and cpy_no_passthrough.
9848 (regcache_cpy_no_passthrough): Change it to method
9849 cpy_no_passthrough.
9850 (regcache_register_status): Change it to method
9851 get_register_status.
9852 (regcache_invalidate): Change it to method invalidate.
9853 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
9854 (regcache_raw_update): Change it to method raw_update.
9855 (regcache_raw_read): Likewise.
9856 (regcache_raw_read_signed): Likewise.
9857 (regcache_raw_read_unsigned): Likewise.
9858 (regcache_raw_write_signed): Likewise.
9859 (regcache_raw_write_unsigned): Likewise.
9860 (regcache_cooked_read): Likewise.
9861 (regcache_cooked_read_value): Likewise.
9862 (regcache_cooked_read_signed): Likewise.
9863 (regcache_cooked_read_unsigned): Likewise.
9864 (regcache_cooked_write_signed): Likewise.
9865 (regcache_cooked_write_unsigned): Likewise.
9866 (regcache_raw_set_cached_value): Likewise.
9867 (regcache_raw_write): Likewise.
9868 (regcache_cooked_write): Likewise.
9869 (regcache_xfer_part): Likewise.
9870 (regcache_raw_read_part): Likewise.
9871 (regcache_raw_write_part): Likewise.
9872 (regcache_cooked_read_part): Likewise.
9873 (regcache_cooked_write_part): Likewise.
9874 (regcache_raw_supply): Likewise.
9875 (regcache_raw_collect): Likewise.
9876 (regcache_transfer_regset): Likewise.
9877 (regcache_supply_regset): Likewise.
9878 (regcache_collect_regset): Likewise.
9879 (regcache_debug_print_register): Likewise.
9880 (enum regcache_dump_what): Move it to regcache.h.
9881 (regcache_dump): Change it to method dump.
9882 * regcache.h (enum regcache_dump_what): New.
9883 (class regcache): New.
9884 * target.c (target_fetch_registers): Call method
9885 debug_print_register.
9886 (target_store_registers): Likewise.
9887
f8fdb78e
SM
98882017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9889
9890 * windows-nat.c (struct lm_info_windows): Initialize field.
9891 (windows_make_so): Allocate lm_info_windows with new.
9892 (windows_free_so): Free lm_info_windows with delete.
9893
9ccbfd7b
SM
98942017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9895
9896 * solib-darwin.c (struct lm_info_darwin): Initialize field.
9897 (darwin_current_sos): Allocate lm_info_darwin with new, remove
9898 cleanup.
9899 (darwin_free_so): Free lm_info_darwin with delete.
9900
76e75227
SM
99012017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9902
9903 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
9904 <l_addr_p>: Change type to bool.
9905 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
9906 (svr4_free_so): Free lm_info_svr4 with delete.
9907 (svr4_copy_library_list): Replace memcpy with call to copy
9908 constructor.
9909 (library_list_start_library, svr4_default_sos): Allocate
9910 lm_info_svr4 with new.
9911
51046d9e
SM
99122017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9913
9914 * solib-target.c (struct lm_info_target): Add destructor,
9915 initialize fields.
9916 <name>: Change type to std::string.
9917 (library_list_start_library): Allocate lm_info_target with new.
9918 (solib_target_free_library_list): Free lm_info_target with
9919 delete.
9920 (solib_target_current_sos): Adapt to std::string.
9921 (solib_target_free_so): Free lm_info_target with delete.
9922
4023ae76
SM
99232017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9924
9925 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
9926 fields.
9927 (frv_current_sos): Allocate lm_info_frv with new.
9928 (frv_relocate_main_executable): Free lm_info_frv with delete,
9929 allocate with new.
9930 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
9931
af43057b
SM
99322017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9933
9934 * solib-frv.c (struct lm_info_frv): Fix indentation.
9935
b0911207
SM
99362017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9937
9938 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
9939 map field.
9940 (dsbt_current_sos): Allocate lm_info_dsbt with new.
9941 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
9942 and allocate with new.
9943 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
9944
6c401f72
SM
99452017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9946
9947 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
9948 <filename, member_name>: Change type to std::string.
9949 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
9950 (library_list_start_library): Allocate lm_info_aix with new.
9951 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
9952 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
9953 with copy constructor.
9954
d0e449a1
SM
99552017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9956
9957 * solist.h (struct lm_info): Remove.
9958 (struct lm_info_base): New class.
9959 (struct so_list) <lm_info>: Change type to lm_info_base *.
9960 * nto-tdep.c (struct lm_info): Remove.
9961 (lm_addr): Adjust.
9962 * solib-aix.c (struct lm_info): Rename to ...
9963 (struct lm_info_aix): ... this. Extend lm_info_base.
9964 (lm_info_p): Rename to ...
9965 (lm_info_aix_p): ... this, and adjust.
9966 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
9967 solib_aix_parse_libraries, library_list_start_library,
9968 solib_aix_free_library_list, solib_aix_parse_libraries,
9969 solib_aix_get_library_list,
9970 solib_aix_relocate_section_addresses, solib_aix_free_so,
9971 solib_aix_get_section_offsets,
9972 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
9973 Adjust.
9974 (struct solib_aix_inferior_data) <library_list>: Adjust.
9975 * solib-darwin.c (struct lm_info): Rename to ...
9976 (struct lm_info_darwin): ... this. Extend lm_info_base.
9977 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
9978 * solib-dsbt.c (struct lm_info): Rename to ...
9979 (struct lm_info_dsbt): ... this. Extend lm_info_base.
9980 (struct dsbt_info) <main_executable_lm_info): Adjust.
9981 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
9982 dsbt_relocate_section_addresses): Adjust.
9983 * solib-frv.c (struct lm_info): Rename to ...
9984 (struct lm_info_frv): ... this. Extend lm_info_base.
9985 (main_executable_lm_info): Adjust.
9986 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
9987 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
9988 find_canonical_descriptor_in_load_object,
9989 frv_fdpic_find_canonical_descriptor): Adjust.
9990 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
9991 to lm_info_svr4.
9992 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
9993 svr4_clear_so, svr4_copy_library_list,
9994 library_list_start_library, svr4_default_sos, svr4_read_so_list,
9995 svr4_current_sos, svr4_fetch_objfile_link_map,
9996 solist_update_incremental): Adjust.
9997 * solib-svr4.h (struct lm_info_svr4): Move here from
9998 solib-svr4.c.
9999 * solib-target.c (struct lm_info): Rename to ...
10000 (struct lm_info_target): ... this. Extend lm_info_base.
10001 (lm_info_p): Rename to ...
10002 (lm_info_target_p): ... this.
10003 (solib_target_parse_libraries, library_list_start_segment,
10004 library_list_start_section, library_list_start_library,
10005 library_list_end_library, solib_target_free_library_list,
10006 solib_target_current_sos, solib_target_free_so,
10007 solib_target_relocate_section_addresses): Adjust.
10008 * windows-nat.c (struct lm_info): Rename to ...
10009 (struct lm_info_windows): ... this. Extend lm_info_base.
10010 (windows_make_so, handle_load_dll, handle_unload_dll,
10011 windows_xfer_shared_libraries): Adjust.
10012
434a4023
SM
100132017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10014
10015 * solib-darwin.c (struct darwin_so_list): Remove.
10016 (darwin_current_sos): Allocate an so_list object instead of a
10017 darwin_so_list, separately allocate an lm_info object.
10018 (darwin_free_so): Free lm_info.
10019
428544e8
JB
100202017-04-28 John Baldwin <jhb@FreeBSD.org>
10021
10022 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
10023 with fprintf_filtered.
10024
4621115f
YQ
100252017-04-28 Yao Qi <yao.qi@linaro.org>
10026
10027 * regcache.c (regcache::regcache): New function.
10028 (regcache::~regcache): New function.
10029 (regcache_xmalloc_1): Remove.
10030 (regcache_xmalloc): Call new regcache.
10031 (regcache_xfree): Call delete regcache.
10032 (get_thread_arch_aspace_regcache): Call new regcache.
10033
339053c2
YQ
100342017-04-28 Yao Qi <yao.qi@linaro.org>
10035
10036 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
10037 lwp instead of ptid_get_lwp.
10038
7974a605
YQ
100392017-04-28 Yao Qi <yao.qi@linaro.org>
10040
10041 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
10042 lwp_info instead of getting from inferior_ptid.
10043
e15c3eb4
KS
100442017-04-27 Keith Seitz <keiths@redhat.com>
10045
10046 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
10047 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
10048 (CV_CONVERSION_BADNESS): Define.
10049 (rank_one_type): Remove overly restrictive rvalue reference
10050 rank checks.
10051 Add cv-qualifier checks and subranks for type equality.
10052 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
10053 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
10054 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
10055
72bc1d24
SM
100562017-04-27 Simon Marchi <simon.marchi@ericsson.com>
10057
10058 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
10059 count when creating the object.
10060
55bcecda
UW
100612017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
10062 Ulrich Weigand <uweigand@de.ibm.com>
10063
10064 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
10065 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
10066 is used in AIX.
10067 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
10068 (process_xcoff_symbol): Likewise.
10069 (scan_xcoff_symtab): Likewise.
10070
5c99fcf8
AH
100712017-04-26 Alan Hayward <alan.hayward@arm.com>
10072
10073 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
10074 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
10075 (ia64_access_reg): Use get_frame_register_unsigned.
10076 (ia64_access_rse_reg): Likewise.
10077 (ia64_libunwind_frame_prev_register): Likewise.
10078
b41c5a85
JW
100792017-04-26 Jiong Wang <jiong.wang@arm.com>
10080
10081 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
10082 * gdbarch.c: Regenerated.
10083 * gdbarch.h: Regenerated.
10084 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
10085 visibility external.
10086 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
10087 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
10088 (enum cfa_how_kind): Move to ...
10089 (struct dwarf2_frame_state_reg_info): Likewise.
10090 (struct dwarf2_frame_state): Likewise.
10091 * dwarf2-frame.h: ... here.
10092 (dwarf2_frame_state_alloc_regs): New declaration.
10093 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
10094 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
10095
c185f580
AH
100962017-04-26 Alan Hayward <alan.hayward@arm.com>
10097
10098 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
10099 regcache_raw_read_unsigned.
10100 (xtensa_pseudo_register_write): Likewise.
10101
19c45594
AH
101022017-04-26 Alan Hayward <alan.hayward@arm.com>
10103
10104 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
10105 (nds32_pseudo_register_write): Likewise.
10106
4658f12e
YQ
101072017-04-25 Yao Qi <yao.qi@linaro.org>
10108
10109 * regcache.c (struct regcache) <readonly_p>: Change its type
10110 to bool.
10111 (regcache_xmalloc_1): Update parameter type and callers update.
10112
d581dda8
YQ
101132017-04-25 Yao Qi <yao.qi@linaro.org>
10114
10115 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
10116 set_gdbarch_wchar_bit.
10117 * arm-tdep.c (arm_gdbarch_init): Likewise.
10118
debed3db
PA
101192017-04-25 Pedro Alves <palves@redhat.com>
10120
10121 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
10122 (BothAreRelocatable, memcopy, memmove): Don't define.
10123 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
10124 macros.
10125
b0b92aeb
PA
101262017-04-25 Pedro Alves <palves@redhat.com>
10127
10128 * common/common-defs.h: Include "common/poison.h".
10129 * common/function-view.h: (Not, Or, Requires): Move to traits.h
10130 and adjust.
10131 * common/poison.h: New file.
10132 * common/traits.h: Include <type_traits>.
10133 (Not, Or, Requires): New, moved from common/function-view.h.
10134
16c4d54a
PA
101352017-04-25 Pedro Alves <palves@redhat.com>
10136
10137 * breakpoint.h (struct breakpoint): In-class initialize all
10138 fields. Make boolean fields "bool".
10139 * breakpoint.c (init_raw_breakpoint_without_location): Remove
10140 memset call and initializations no longer necessary.
10141
b5c36682
PA
101422017-04-25 Pedro Alves <palves@redhat.com>
10143
10144 * btrace.c (pt_btrace_insn_flags): Change parameter type to
10145 reference.
10146 (pt_btrace_insn): New function.
10147 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
10148
5625a286
PA
101492017-04-25 Pedro Alves <palves@redhat.com>
10150
10151 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
10152 "base" field and inherit from "bp_location" instead. Add
10153 non-default ctor.
10154 (allocate_location_exception): Use new non-default ctor.
10155 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
10156 (init_bp_location): Convert to ...
10157 (bp_location::bp_location): ... this new ctor, and remove memset
10158 call.
10159 (base_breakpoint_allocate_location): Use the new non-default ctor.
10160 * breakpoint.h (bp_location): Now a class. Declare default and
10161 non-default ctors. In-class initialize all members.
10162 (init_bp_location): Remove declaration.
10163
23bcc18f
PA
101642017-04-25 Pedro Alves <palves@redhat.com>
10165
10166 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
10167 assignment operator.
10168
e1ba3053
YQ
101692017-04-24 Yao Qi <yao.qi@linaro.org>
10170
10171 * doublest.c (convert_doublest_to_floatformat): Call
10172 floatformat_totalsize_bytes.
10173
10f489e5
TT
101742017-04-22 Tom Tromey <tom@tromey.com>
10175
10176 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
10177 ui_out_emit_list.
10178 * stack.c (print_frame): Use ui_out_emit_list.
10179 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
10180 ui_out_emit_list.
10181 * mi/mi-main.c (print_one_inferior)
10182 (mi_cmd_data_list_register_names)
10183 (mi_cmd_data_list_register_values, mi_cmd_list_features)
10184 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
10185 ui_out_emit_list.
10186 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
10187 (mi_output_solib_attribs): Use ui_out_emit_list,
10188 ui_out_emit_tuple.
10189 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
10190 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
10191 (mi_cmd_stack_list_args, list_args_or_locals): Use
10192 ui_out_emit_list.
10193 * disasm.c (do_assembly_only): Use ui_out_emit_list.
10194 * breakpoint.c (print_solib_event, output_thread_groups): Use
10195 ui_out_emit_list.
10196
0092b74d
TT
101972017-04-22 Tom Tromey <tom@tromey.com>
10198
10199 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
10200 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
10201 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
10202
a14a62dd
TT
102032017-04-22 Tom Tromey <tom@tromey.com>
10204
10205 * tracepoint.c (tvariables_info_1)
10206 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
10207
46b9c129
TT
102082017-04-22 Tom Tromey <tom@tromey.com>
10209
10210 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
10211 annotate_arg_emitter.
10212 * breakpoint.c (print_mention_watchpoint)
10213 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
10214 * annotate.h (struct annotate_arg_emitter): New.
10215
2e783024
TT
102162017-04-22 Tom Tromey <tom@tromey.com>
10217
10218 * record-btrace.c (record_btrace_insn_history)
10219 (record_btrace_insn_history_range, record_btrace_call_history)
10220 (record_btrace_call_history_range): Use ui_out_emit_tuple.
10221 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
10222 ui_out_emit_tuple.
10223 * stack.c (print_frame_info): Use ui_out_emit_tuple.
10224 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
10225 * skip.c (skip_info): Use ui_out_emit_tuple.
10226 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
10227 * progspace.c (print_program_space): Use ui_out_emit_tuple.
10228 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
10229 * osdata.c (info_osdata): Use ui_out_emit_tuple.
10230 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
10231 ui_out_emit_tuple.
10232 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
10233 (output_register, mi_cmd_data_read_memory)
10234 (mi_cmd_data_read_memory_bytes, mi_load_progress)
10235 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
10236 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
10237 Use ui_out_emit_tuple.
10238 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
10239 ui_out_emit_tuple.
10240 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
10241 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
10242 * linux-thread-db.c (info_auto_load_libthread_db): Use
10243 ui_out_emit_tuple.
10244 * inferior.c (print_inferior): Use ui_out_emit_tuple.
10245 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
10246 * disasm.c (do_mixed_source_and_assembly_deprecated)
10247 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
10248 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
10249 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
10250 * breakpoint.c (print_one_breakpoint_location)
10251 (print_one_breakpoint): Use ui_out_emit_tuple.
10252 * auto-load.c (print_script, info_auto_load_cmd): Use
10253 ui_out_emit_tuple.
10254 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
10255
9be21bb4
SM
102562017-04-21 Simon Marchi <simon.marchi@ericsson.com>
10257
10258 * thread.c (print_thread_info_1): Remove dead code.
10259
0d4c07af
JK
102602017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10261
10262 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
10263 GDB_SELF_TEST.
10264 * arm-tdep.c (selftests::arm_record_test): Likewise.
10265
4daf993d
YQ
102662017-04-21 Yao Qi <yao.qi@linaro.org>
10267
10268 * regcache.c (regcache_restore): Remove argument 2. Replace
10269 argument 3 with regcache. Get register status from
10270 src->register_status and get register contents from
10271 register_buffer (src, regnum).
10272 (regcache_cpy): Update.
10273
a6c21d4a
PA
102742017-04-19 Pedro Alves <palves@redhat.com>
10275
10276 * gdbthread.h (thread): Add missing closing parenthesis in
10277 comment.
10278
3a3fd0fd
PA
102792017-04-19 Pedro Alves <palves@redhat.com>
10280
10281 * common/refcounted-object.h: New file.
10282 * gdbthread.h: Include "common/refcounted-object.h".
10283 (thread_info): Inherit from refcounted_object and add comments.
10284 (thread_info::incref, thread_info::decref)
10285 (thread_info::m_refcount): Delete.
10286 (thread_info::deletable): Use the refcounted_object::refcount()
10287 method.
10288 * inferior.c (current_inferior_): Add comment.
10289 (set_current_inferior): Increment/decrement refcounts.
10290 (prune_inferiors, remove_inferior_command): Skip inferiors marked
10291 not-deletable instead of comparing with the current inferior.
10292 (initialize_inferiors): Increment the initial inferior's refcount.
10293 * inferior.h (struct inferior): Forward declare.
10294 Include "common/refcounted-object.h".
10295 (current_inferior, set_current_inferior): Move declaration to
10296 before struct inferior's definition, and fix comment.
10297 (inferior): Inherit from refcounted_object. Add comments.
10298 * thread.c (switch_to_thread_no_regs): Reference the thread's
10299 inferior pointer directly instead of doing a ptid lookup.
10300 (switch_to_no_thread): New function.
10301 (switch_to_thread(thread_info *)): New function, factored out
10302 from ...
10303 (switch_to_thread(ptid_t)): ... this.
10304 (restore_current_thread): Delete.
10305 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
10306 fields, and add 'inf' field.
10307 (do_restore_current_thread_cleanup): Check whether old->inf is
10308 alive instead of looking up an inferior by ptid. Use
10309 switch_to_thread and switch_to_no_thread.
10310 (restore_current_thread_cleanup_dtor): Use old->inf directly
10311 instead of lookup up an inferior by id. Decref the inferior.
10312 Don't restore 'removable'.
10313 (make_cleanup_restore_current_thread): Same the inferior pointer
10314 in old, instead of the inferior number. Incref the inferior.
10315 Don't save/clear 'removable'.
10316
9bcb1f16
PA
103172017-04-19 Pedro Alves <palves@redhat.com>
10318
10319 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10320 unittests/scoped_restore-selftests.c.
10321 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
10322 * common/scoped_restore.h (scoped_restore_base): Make "class".
10323 (scoped_restore_base::release): New public method.
10324 (scoped_restore_base::scoped_restore_base): New protected ctor.
10325 (scoped_restore_base::m_saved_var): New protected field.
10326 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
10327 scoped_restore_base base class instead of m_saved_var directly.
10328 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
10329 (scoped_restore_tmpl::scoped_restore_tmpl(const
10330 scoped_restore_tmpl<T>&)): Likewise.
10331 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
10332 method.
10333 (scoped_restore_tmpl::saved_var): New method.
10334 (scoped_restore_tmpl::m_saved_var): Delete.
10335 * inferior.h (inferior::detaching): Now a bool.
10336 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
10337 cleanup.
10338 * unittests/scoped_restore-selftests.c: New file.
10339
26fcd539
PA
103402017-04-19 Pedro Alves <palves@redhat.com>
10341
10342 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
10343 Re-sort in alphabetic order.
10344
fdd243b0
PA
103452017-04-18 Pedro Alves <palves@redhat.com>
10346
10347 * xml-support.c (obstack_xml_printf): Delete.
10348 * xml-support.h (obstack_xml_printf): Delete.
10349
4895cde2
PA
103502017-04-18 Pedro Alves <palves@redhat.com>
10351
10352 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
10353 vdebug, verror, body_text, start_element, end_element, name,
10354 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
10355 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
10356 is_xinclude>: Make private and add m_ prefix.
10357 (gdb_xml_parser::body_text): New method, based on ...
10358 (gdb_xml_body_text): ... this. Adjust.
10359 (gdb_xml_parser::vdebug): New method, based on ...
10360 (gdb_xml_debug): ... this. Adjust.
10361 (gdb_xml_parser::verror): New method, based on ...
10362 (gdb_xml_error): ... this. Adjust.
10363 (gdb_xml_parser::start_element): New method, based on ...
10364 (gdb_xml_start_element): ... this. Adjust.
10365 (gdb_xml_start_element_wrapper): Defer to
10366 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
10367 (gdb_xml_parser::end_element): New method, based on ...
10368 (gdb_xml_end_element_wrapper): ... this. Adjust.
10369 (gdb_xml_parser::~gdb_xml_parser): Adjust.
10370 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
10371 (gdb_xml_parser::use_dtd): New method, based on ...
10372 (gdb_xml_use_dtd): ... this. Adjust.
10373 (gdb_xml_parser::parse): New method, based on ...
10374 (gdb_xml_parse): ... this. Adjust.
10375 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
10376 (xinclude_start_include): Adjust to call the parser's name method.
10377 (xml_xinclude_default, xml_xinclude_start_doctype)
10378 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
10379 method.
10380 (xml_process_xincludes): Adjust to call parser methods.
10381 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
10382 declarations.
10383
bd8a901f
PA
103842017-04-18 Pedro Alves <palves@redhat.com>
10385
10386 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
10387 gdb::optional<std::string>.
10388 * xml-support.c: Include <string>.
10389 (scope_level::scope_level(scope_level &&))
10390 (scope_level::~scope_level): Delete.
10391 (scope_level::body): Now a std::string.
10392 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
10393 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
10394 parameter.
10395 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
10396 (xinclude_parsing_data::output): Now a std::string reference.
10397 (xinclude_start_include): Adjust.
10398 (xml_xinclude_default): Adjust.
10399 (xml_process_xincludes): Add 'output' parameter, and return bool.
10400 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
10401 and return bool.
10402 * xml-tdesc.c: Include <unordered_map> and <string>.
10403 (tdesc_xml_cache): Delete.
10404 (tdesc_xml_cache_s): Delete.
10405 (xml_cache): Now an std::unordered_map.
10406 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
10407 (target_fetch_description_xml): Change return type to
10408 gdb::optional<std::string>, and adjust.
10409 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
10410 (target_fetch_description_xml): Change return type to
10411 gdb::optional<std::string>.
10412
d35d1958
PA
104132017-04-18 Pedro Alves <palves@redhat.com>
10414
10415 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10416 unittests/optional-selftests.c.
10417 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
10418 * unittests/optional-selftests.c: New file.
10419 * unittests/optional/assignment/1.cc: New file.
10420 * unittests/optional/assignment/2.cc: New file.
10421 * unittests/optional/assignment/3.cc: New file.
10422 * unittests/optional/assignment/4.cc: New file.
10423 * unittests/optional/assignment/5.cc: New file.
10424 * unittests/optional/assignment/6.cc: New file.
10425 * unittests/optional/assignment/7.cc: New file.
10426 * unittests/optional/cons/copy.cc: New file.
10427 * unittests/optional/cons/default.cc: New file.
10428 * unittests/optional/cons/move.cc: New file.
10429 * unittests/optional/cons/value.cc: New file.
10430 * unittests/optional/in_place.cc: New file.
10431 * unittests/optional/observers/1.cc: New file.
10432 * unittests/optional/observers/2.cc: New file.
10433
22796e97
PA
104342017-04-18 Pedro Alves <palves@redhat.com>
10435
10436 * common/gdb_optional.h: Include common/traits.h.
10437 (in_place_t): New type.
10438 (in_place): New constexpr variable.
10439 (optional::optional): Remove member initialization of
10440 m_instantiated.
10441 (optional::optional(in_place_t...)): New constructor.
10442 (optional::~optional): Use reset.
10443 (optional::optional(const optional&)): New.
10444 (optional::optional(const optional&&)): New.
10445 (optional::optional(T &)): New.
10446 (optional::optional(T &&)): New.
10447 (operator::operator=(const optional &)): New.
10448 (operator::operator=(optional &&)): New.
10449 (operator::operator= (const T &))
10450 (operator::operator= (T &&))
10451 (operator::emplace (Args &&... args)): Return a T&. Use reset.
10452 (operator::reset): New.
10453 (operator::m_instantiated):: Add in-class initializer.
10454 * common/traits.h: Include <type_traits>.
10455 (struct And): New types.
10456
a7fc9b61
PA
104572017-04-18 Pedro Alves <palves@redhat.com>
10458
10459 * xml-support.c: Include <vector>.
10460 (scope_level::scope_level(const gdb_xml_element *))
10461 (scope_level::scope_level(scope_level&&)): New.
10462 (scope_level::~scope_level): New.
10463 (scope_level_s): Delete.
10464 (gdb_xml_parser::scopes): Now a std::vector.
10465 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
10466 Use std::vector.
10467 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
10468 scope cleanup code.
10469 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
10470 of the scopes member. Use std::vector::emplace_back.
10471
010151c9
PA
104722017-04-18 Pedro Alves <palves@redhat.com>
10473
10474 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
10475 a bool.
10476 (gdb_xml_end_element): Change type of first parameter.
10477 (gdb_xml_cleanup): Rename to ...
10478 (gdb_xml_parser::~gdb_xml_parser): ... this.
10479 (gdb_xml_create_parser_and_cleanup): Delete with ...
10480 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
10481 to this new ctor.
10482 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
10483 using gdb_xml_create_parser_and_cleanup.
10484 (xinclude_parsing_data): Add ctor/dtor.
10485 (xml_xinclude_cleanup): Delete.
10486 (xml_process_xincludes): Create a local xinclude_parsing_data
10487 instead of heap-allocating one. Create a local gdb_xml_parser
10488 instead of heap-allocating one with
10489 gdb_xml_create_parser_and_cleanup.
10490
d56060f0
JB
104912017-04-18 John Baldwin <jhb@FreeBSD.org>
10492
10493 PR threads/20743
10494 * fbsd-nat.c (resume_one_thread_cb): Remove.
10495 (resume_all_threads_cb): Remove.
10496 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
10497 iterate_over_threads.
10498
305d16a9
JB
104992017-04-17 Joel Brobecker <brobecker@adacore.com>
10500
10501 * NEWS: Create a new section for the next release branch.
10502 Rename the section of the current branch, now that it has
10503 been cut.
10504
8bb57231
JB
105052017-04-17 Joel Brobecker <brobecker@adacore.com>
10506
10507 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
10508 * version.in: Bump version to 8.0.50.DATE-git.
10509
096c92dd
SDJ
105102017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
10511
10512 PR gdb/21385
10513 * windows-nat.c (windows_create_inferior): Declare 'allargs'
10514 independently of the host, and fix build breakage on Cygwin.
10515
0550c955
PA
105162017-04-13 Pedro Alves <palves@redhat.com>
10517
10518 * inferior.c (free_inferior): Convert to ...
10519 (inferior::~inferior): ... this dtor.
10520 (inferior::inferior): New ctor, factored out from ...
10521 (add_inferior_silent): ... here. Allocate the inferior with a new
10522 expression.
10523 (delete_inferior): Call delete instead of free_inferior.
10524 * inferior.h (gdb_environ, continuation): Forward declare.
10525 (inferior): Now a class. Add in-class initialization to all
10526 members. Make boolean fields bool, except 'detaching'.
10527 (inferior::inferior): New explicit ctor.
10528 (inferior::~inferior): New.
10529
e3d60dfc
PA
105302017-04-13 Pedro Alves <palves@redhat.com>
10531
10532 * inferior.c (init_inferior_list): Delete.
10533 * inferior.h (init_inferior_list): Delete.
10534
5fd69d0a
PA
105352017-04-13 Pedro Alves <palves@redhat.com>
10536
10537 PR threads/13217
10538 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
10539 (top level): Call it twice, with different thread sets.
10540
c6609450
PA
105412017-04-13 Pedro Alves <palves@redhat.com>
10542
10543 * thread.c: Include <algorithm>.
10544 (thread_array_cleanup): Delete.
10545 (scoped_inc_dec_ref): New class.
10546 (live_threads_count): New function.
10547 (set_thread_refcount): Delete.
10548 (tp_array_compar_ascending): Now a bool.
10549 (tp_array_compar): Convert to a std::sort comparison function.
10550 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
10551 and live_threads_count.
10552
2a00d7ce
PA
105532017-04-13 Pedro Alves <palves@redhat.com>
10554
10555 * infrun.c (follow_fork_inferior): Also switch the current
10556 inferior.
10557
441d7c93
PA
105582017-04-13 Pedro Alves <palves@redhat.com>
10559
10560 * breakpoint.c (watch_command_1): Save watchpoint-frame info
10561 before calling create_internal_breakpoint.
10562
808480f6
PA
105632017-04-13 Pedro Alves <palves@redhat.com>
10564
10565 * fork-child.c (execv_argv): New class.
10566 (breakup_args): Refactored as ...
10567 (execv_argv::init_for_no_shell): .. this method of execv_argv.
10568 Copy arguments to storage and replace separators with NULL
10569 terminators in place.
10570 (escape_bang_in_quoted_argument): Adjust to return bool.
10571 (execv_argv::execv_argv): New ctor.
10572 (execv_argv::init_for_shell): New method, factored out from
10573 fork_inferior. Don't strdup strings into the vector.
10574 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
10575 Remove free_vector_argv call.
10576
ad3d022a
YQ
105772017-04-13 Yao Qi <yao.qi@linaro.org>
10578
10579 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
10580 tdep->rx_psw_type.
10581
e6ddc3bf
YQ
105822017-04-13 Yao Qi <yao.qi@linaro.org>
10583
10584 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
10585 * rx-tdep.c (rx_gdbarch_init): Likewise.
10586
bfb8cf90
PA
105872017-04-13 Pedro Alves <palves@redhat.com>
10588
10589 * breakpoint.h (struct breakpoint): Reindent.
10590
f5336ca5
PA
105912017-04-13 Pedro Alves <palves@redhat.com>
10592
10593 * breakpoint.c (bp_location): Rename to ...
10594 (bp_locations): ... this. All references updated.
10595 (bp_location_count): Rename to ...
10596 (bp_locations_count): ... this. All references updated.
10597 (bp_location_placed_address_before_address_max): Rename to ...
10598 (bp_locations_placed_address_before_address_max): ... this. All
10599 references updated.
10600 (bp_location_shadow_len_after_address_max): Rename to ...
10601 (bp_locations_shadow_len_after_address_max): ... this. All
10602 references updated.
10603 (bp_location_compare_addrs): Rename to ...
10604 (bp_locations_compare_addrs): ... this. All references updated.
10605 (bp_location_compare):Rename to ...
10606 (bp_locations_compare): ... this. All references updated.
10607 (bp_location_target_extensions_update): Rename to ...
10608 (bp_locations_target_extensions_update): ... this. All references
10609 updated.
10610
be628ab8
SDJ
106112017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10612
10613 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
10614 * common/common.m4: Check headers 'termios.h', 'termio.h' and
10615 'sgtty.h'.
10616 * common/gdb_termios.h: New file, with parts of "terminal.h".
10617 * inflow.c: Include "gdb_termios.h".
10618 * ser-unix.c: Include "gdb_termios.h".
10619 * terminal.h: Move terminal-related defines to
10620 "common/gdb_termios.h".
10621
8e9e35b1
TT
106222017-04-12 Tom Tromey <tom@tromey.com>
10623
10624 * probe.c (parse_probes): Update.
10625 * location.h (delete_event_location): Don't declare.
10626 (event_location_deleter::operator()): Update.
10627 * location.c (event_location_deleter::operator()): Rename from
10628 delete_event_location.
10629 * linespec.h (linespec_result) <location>: Change type to
10630 event_location_up.
10631 * linespec.c (canonicalize_linespec, event_location_to_sals)
10632 (decode_objc): Update.
10633 (linespec_result): Don't call delete_event_location.
10634 * breakpoint.c (create_breakpoints_sal)
10635 (bkpt_probe_create_sals_from_location)
10636 (strace_marker_create_sals_from_location): Update.
10637
16e802b9
TT
106382017-04-12 Tom Tromey <tom@tromey.com>
10639
10640 * linespec.h (struct linespec_result): Add constructor and
10641 destructor.
10642 (init_linespec_result, destroy_linespec_result)
10643 (make_cleanup_destroy_linespec_result): Don't declare.
10644 * linespec.c (init_linespec_result): Remove.
10645 (linespec_result::~linespec_result): Rename from
10646 destroy_linespec_result. Update.
10647 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
10648 Remove.
10649 * breakpoint.c (create_breakpoint, break_range_command)
10650 (decode_location_default): Update.
10651 * ax-gdb.c (agent_command_1): Update.
10652
d28cd78a
TT
106532017-04-12 Tom Tromey <tom@tromey.com>
10654
10655 * remote.c (remote_download_tracepoint): Update.
10656 * python/py-breakpoint.c (bppy_get_location): Update.
10657 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
10658 (gdbscm_breakpoint_location): Update.
10659 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
10660 * breakpoint.h (struct breakpoint) <location, location_range_end>:
10661 Change type to event_location_up.
10662 * breakpoint.c (create_overlay_event_breakpoint)
10663 (create_longjmp_master_breakpoint)
10664 (create_std_terminate_master_breakpoint)
10665 (create_exception_master_breakpoint)
10666 (breakpoint_event_location_empty_p, print_breakpoint_location)
10667 (print_one_breakpoint_location, create_thread_event_breakpoint)
10668 (init_breakpoint_sal, create_breakpoint)
10669 (print_recreate_ranged_breakpoint, break_range_command)
10670 (init_ada_exception_breakpoint, say_where): Update.
10671 (base_breakpoint_dtor): Don't call delete_event_location.
10672 (bkpt_print_recreate, tracepoint_print_recreate)
10673 (dprintf_print_recreate, update_static_tracepoint)
10674 (breakpoint_re_set_default): Update.
10675
711799d5
TT
106762017-04-12 Tom Tromey <tom@tromey.com>
10677
10678 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
10679 type of "to_do". Update.
10680 (compute_stack_depth): Use std::vector.
10681
52d214d3
TT
106822017-04-12 Tom Tromey <tom@tromey.com>
10683
10684 * printcmd.c (find_instruction_backward): Use std::vector.
10685
4c404b8b
TT
106862017-04-12 Tom Tromey <tom@tromey.com>
10687
10688 * symfile.c (objfilep): Remove typedef.
10689 (reread_symbols): Use a std::vector.
10690
156d9eab
TT
106912017-04-12 Tom Tromey <tom@tromey.com>
10692
10693 * mi/mi-main.c (exec_direction_forward): Remove.
10694 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
10695 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
10696 scoped_restore.
10697 * guile/guile.c (guile_repl_command, guile_command)
10698 (gdbscm_execute_gdb_command): Use scoped_restore.
10699 * go-exp.y (go_parse): Use scoped_restore.
10700 * d-exp.y (d_parse): Use scoped_restore.
10701 * cli/cli-decode.c (cmd_func): Use scoped_restore.
10702 * c-exp.y (c_parse): Use scoped_restore.
10703
4d89769a
TT
107042017-04-12 Tom Tromey <tom@tromey.com>
10705
10706 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
10707 (mi_parse): Update return type.
10708 (mi_parse_free): Remove.
10709 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
10710 (mi_parse::~mi_parse): Rename from mi_parse_free.
10711 (mi_parse_cleanup): Remove.
10712 (mi_parse): Return a unique_ptr. Use new.
10713 * mi/mi-main.c (mi_execute_command): Update.
10714
4b217cc7
TT
107152017-04-12 Tom Tromey <tom@tromey.com>
10716
10717 * location.c (explicit_location_lex_one): Return a
10718 unique_xmalloc_ptr.
10719 (string_to_explicit_location): Update. Remove cleanups.
10720
59d3651b
TT
107212017-04-12 Tom Tromey <tom@tromey.com>
10722
10723 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
10724 (compare_value_and_voffset): Change type. Update.
10725 (compute_vtable_size): Change type of "offset_vec".
10726 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
10727 (gnuv3_get_typeid): Remove extraneous declaration.
10728
b24b0d6c
TT
107292017-04-12 Tom Tromey <tom@tromey.com>
10730
10731 * charset.h (wchar_iterator): Fix comment.
10732
80a3b8c5
TT
107332017-04-12 Tom Tromey <tom@tromey.com>
10734
10735 * charset.c (iconv_wrapper): New class.
10736 (cleanup_iconv): Remove.
10737 (convert_between_encodings): Use it.
10738
c83dd867
TT
107392017-04-12 Tom Tromey <tom@tromey.com>
10740
10741 * symfile.h (increment_reading_symtab): Update type.
10742 * symfile.c (decrement_reading_symtab): Remove.
10743 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
10744 * psymtab.c (psymtab_to_symtab): Update.
10745 * dwarf2read.c (dw2_instantiate_symtab): Update.
10746
0e8621a0
TT
107472017-04-12 Tom Tromey <tom@tromey.com>
10748
10749 * jit.c (struct jit_reader): Declare separately. Add constructor
10750 and destructor. Change type of "handle".
10751 (loaded_jit_reader): Define separately.
10752 (jit_reader_load): Update. New "new".
10753 (jit_reader_unload_command): Use "delete".
10754 * gdb-dlfcn.h (struct dlclose_deleter): New.
10755 (gdb_dlhandle_up): New typedef.
10756 (gdb_dlopen, gdb_dlsym): Update types.
10757 (gdb_dlclose): Remove.
10758 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
10759 (gdb_dlsym): Change type of "handle".
10760 (make_cleanup_dlclose): Remove.
10761 (dlclose_deleter::operator()): Rename from gdb_dlclose.
10762 * compile/compile-c-support.c (load_libcc): Update.
10763
67d89901
TT
107642017-04-12 Tom Tromey <tom@tromey.com>
10765
10766 * symtab.h (find_pcs_for_symtab_line): Change return type.
10767 * symtab.c (find_pcs_for_symtab_line): Change return type.
10768 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
10769 type of "vec". Update.
10770 (ltpy_get_pcs_for_line): Update.
10771 * linespec.c (decode_digits_ordinary): Update.
10772
93921405
TT
107732017-04-12 Tom Tromey <tom@tromey.com>
10774
10775 * tracepoint.c (actions_command): Update.
10776 * python/python.c (python_command, python_interactive_command):
10777 Update.
10778 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
10779 * guile/guile.c (guile_command): Update.
10780 * defs.h (read_command_lines, read_command_lines_1): Return
10781 command_line_up.
10782 (command_lines_deleter): New struct.
10783 (command_line_up): New typedef.
10784 * compile/compile.c (compile_code_command)
10785 (compile_print_command): Update.
10786 * cli/cli-script.h (get_command_line, copy_command_lines): Return
10787 command_line_up.
10788 (make_cleanup_free_command_lines): Remove.
10789 * cli/cli-script.c (get_command_line, read_command_lines_1)
10790 (copy_command_lines): Return command_line_up.
10791 (while_command, if_command, read_command_lines, define_command)
10792 (document_command): Update.
10793 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
10794 Remove.
10795 * breakpoint.h (breakpoint_set_commands): Change type of
10796 "commands".
10797 * breakpoint.c (breakpoint_set_commands): Change type of
10798 "commands". Update.
10799 (do_map_commands_command, update_dprintf_command_list)
10800 (create_tracepoint_from_upload): Update.
10801
ffc2605c
TT
108022017-04-12 Tom Tromey <tom@tromey.com>
10803
10804 * tracepoint.c (scope_info): Update.
10805 * spu-tdep.c (spu_catch_start): Update.
10806 * python/python.c (gdbpy_decode_line): Update.
10807 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
10808 * python/py-breakpoint.c (bppy_init): Update.
10809 * probe.c (parse_probes): Update.
10810 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
10811 * location.h (event_location_deleter): New struct.
10812 (event_location_up): New typedef.
10813 (new_linespec_location, new_address_location, new_probe_location)
10814 (new_explicit_location, copy_event_location)
10815 (string_to_event_location, string_to_event_location_basic)
10816 (string_to_explicit_location): Update return type.
10817 (make_cleanup_delete_event_location): Remove.
10818 * location.c (new_linespec_location, new_address_location)
10819 (new_probe_location, new_explicit_location, copy_event_location):
10820 Return event_location_up.
10821 (delete_event_location_cleanup)
10822 (make_cleanup_delete_event_location): Remove.
10823 (string_to_explicit_location, string_to_event_location_basic)
10824 (string_to_event_location): Return event_location_up.
10825 * linespec.c (canonicalize_linespec, event_location_to_sals)
10826 (decode_line_with_current_source)
10827 (decode_line_with_last_displayed, decode_objc): Update.
10828 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10829 * completer.c (location_completer): Update.
10830 * cli/cli-cmds.c (edit_command, list_command): Update.
10831 * breakpoint.c (create_overlay_event_breakpoint)
10832 (create_longjmp_master_breakpoint)
10833 (create_std_terminate_master_breakpoint)
10834 (create_exception_master_breakpoint)
10835 (create_thread_event_breakpoint): Update.
10836 (init_breakpoint_sal): Update. Remove some dead code.
10837 (create_breakpoint_sal): Change type of "location". Update.
10838 (create_breakpoints_sal, create_breakpoint, break_command_1)
10839 (dprintf_command, break_range_command, until_break_command)
10840 (init_ada_exception_breakpoint)
10841 (strace_marker_create_sals_from_location)
10842 (update_static_tracepoint, trace_command, ftrace_command)
10843 (strace_command, create_tracepoint_from_upload): Update.
10844 * break-catch-throw.c (re_set_exception_catchpoint): Update.
10845 * ax-gdb.c (agent_command_1): Update.
10846
8f10c932
PA
108472017-04-12 Pedro Alves <palves@redhat.com>
10848
10849 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
10850 * configure.tgt: Handle i[34567]86-*-go32* and
10851 i[34567]86-*-msdosdjgpp*.
10852 * i386-tdep.c (i386_svr4_reg_to_regnum):
10853 Make extern.
10854 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
10855 i386-go32-tdep.c.
10856 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
10857 * i386-go32-tdep.c: New file.
10858 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
10859 declarations.
10860
0a31ccfb
SM
108612017-04-12 Simon Marchi <simon.marchi@ericsson.com>
10862
10863 * aix-thread.c (pd_status2str): Change return type to const char *.
10864
e9bb3fbb
PA
108652017-04-12 Pedro Alves <palves@redhat.com>
10866
10867 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
10868 calls to set_gdbarch_gnu_triplet_regexp.
10869
53375380
PA
108702017-04-12 Pedro Alves <palves@redhat.com>
10871
10872 PR gdb/21323
10873 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
10874 New enum value.
10875 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
10876 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
10877 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
10878 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
10879 * gdbarch.h, gdbarch.c: Regenerate.
10880 * aarch64-tdep.c (aarch64_gdbarch_init): Override
10881 gdbarch_wchar_bit and gdbarch_wchar_signed.
10882 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
10883 * arm-tdep.c (arm_gdbarch_init): Likewise.
10884 * avr-tdep.c (avr_gdbarch_init): Likewise.
10885 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10886 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
10887 * i386-tdep.c (i386_go32_init_abi): Likewise.
10888 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10889 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10890 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
10891 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
10892 * sh-tdep.c (sh_gdbarch_init): Likewise.
10893 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10894 * sparc64-tdep.c (sparc64_init_abi): Likewise.
10895 * windows-tdep.c (windows_init_abi): Likewise.
10896 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10897
53e710ac
PA
108982017-04-12 Pedro Alves <palves@redhat.com>
10899
10900 PR c++/21323
10901 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
10902 cplus_primitive_type_char32_t>: New enum values.
10903 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
10904 and cplus_primitive_type_char32_t.
10905 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
10906 32, use the archtecture's built-in type for char16_t and char32_t,
10907 respectively. Otherwise, fallback to init_integer_type as before,
10908 but make the type unsigned, and issue a complaint.
10909 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
10910
ab0538b8
AH
109112017-04-12 Alan Hayward <alan.hayward@arm.com>
10912
5e0e0422 10913 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
10914 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
10915
5430098f
SDJ
109162017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10917
10918 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
10919 'const char *'.
10920
7c5ded6a
SDJ
109212017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10922
10923 * common/common-utils.c (free_vector_argv): New function.
10924 * common/common-utils.h: Include <vector>.
10925 (free_vector_argv): New prototype.
10926 * darwin-nat.c (darwin_create_inferior): Rewrite function
10927 prototype in order to constify "exec_file" and accept a
10928 "std::string" for "allargs".
10929 * fork-child.c: Include <vector>.
10930 (breakup_args): Rewrite function, using C++.
10931 (fork_inferior): Rewrite function header, constify "exec_file_arg"
10932 and accept "std::string" for "allargs". Update the code to
10933 calculate "argv" based on "allargs". Update calls to "exec_fun"
10934 and "execvp".
10935 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
10936 order to constify "exec_file" and accept a "std::string" for
10937 "allargs".
10938 * go32-nat.c (go32_create_inferior): Likewise.
10939 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
10940 * infcmd.c (run_command_1): Constify "exec_file". Use
10941 "std::string" for inferior arguments.
10942 * inferior.h (fork_inferior): Update prototype.
10943 * linux-nat.c (linux_nat_create_inferior): Rewrite function
10944 prototype in order to constify "exec_file" and accept a
10945 "std::string" for "allargs".
10946 * nto-procfs.c (procfs_create_inferior): Likewise.
10947 * procfs.c (procfs_create_inferior): Likewise.
10948 * remote-sim.c (gdbsim_create_inferior): Likewise.
10949 * remote.c (extended_remote_run): Update code to accept
10950 "std::string" as argument.
10951 (extended_remote_create_inferior): Rewrite function prototype in
10952 order to constify "exec_file" and accept a "std::string" for
10953 "allargs".
10954 * rs6000-nat.c (super_create_inferior): Likewise.
10955 (rs6000_create_inferior): Likewise.
10956 * target.h (struct target_ops) <to_create_inferior>: Likewise.
10957 * windows-nat.c (windows_create_inferior): Likewise.
10958
ae0eee42
PA
109592017-04-11 Pedro Alves <palves@redhat.com>
10960
10961 * thread.c: Fix whitespace throughout.
10962
a6acac06
PR
109632017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
10964
10965 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
10966
64403bd1
AH
109672017-04-11 Alan Hayward <alan.hayward@arm.com>
10968
10969 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
10970
a5bef50f
SDJ
109712017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
10972
10973 PR gdb/21364
10974 * osdata.c (info_osdata): Check if 'type' is an empty string
10975 instead of NULL.
10976
9295a5a9
PA
109772017-04-10 Pedro Alves <palves@redhat.com>
10978
10979 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
10980 (ptid_to_global_thread_id, in_thread_list)
10981 (do_captured_list_thread_ids, set_resumed, set_running)
10982 (set_executing, set_stop_requested, finish_thread_state)
10983 (validate_registers_access, can_access_registers_ptid)
10984 (print_thread_info_1, switch_to_thread)
10985 (do_restore_current_thread_cleanup)
10986 (make_cleanup_restore_current_thread, thread_command)
10987 (thread_name_command): Use operator== instead of ptid_equal.
10988
996812e3
PA
109892017-04-10 Pedro Alves <palves@redhat.com>
10990
10991 * thread.c (struct current_thread_cleanup) <next>: Delete field.
10992 (current_thread_cleanup_chain): Delete.
10993 (restore_current_thread_cleanup_dtor)
10994 (make_cleanup_restore_current_thread): Remove references to
10995 current_thread_cleanup_chain.
10996
845b344f
AH
109972017-04-10 Alan Hayward <alan.hayward@arm.com>
10998
10999 * msp430-tdep.c (msp430_pseudo_register_read): Never return
11000 REG_UNKNOWN.
11001
803bdfe4
YQ
110022017-04-10 Yao Qi <yao.qi@linaro.org>
11003
11004 PR gdb/19942
11005 * gdbthread.h (thread_info::deletable): New method.
11006 (thread_info::incref): New method.
11007 (thread_info::decref): New method.
11008 (thread_info::refcount): Move it to private.
11009 * infrun.c (save_stop_context): Call inc_refcount.
11010 (release_stop_context_cleanup): Likewise.
11011 * thread.c (set_thread_exited): New function.
11012 (init_thread_list): Delete "tp" only it is deletable, otherwise
11013 call set_thread_exited.
11014 (delete_thread_1): Call set_thread_exited.
11015 (current_thread_cleanup) <inferior_pid>: Remove.
11016 <thread>: New field.
11017 (restore_current_thread_ptid_changed): Removed.
11018 (do_restore_current_thread_cleanup): Adjust.
11019 (restore_current_thread_cleanup_dtor): Don't call
11020 find_thread_ptid.
11021 (set_thread_refcount): Use dec_refcount.
11022 (make_cleanup_restore_current_thread): Adjust.
11023 (thread_apply_all_command): Call inc_refcount.
11024 (_initialize_thread): Don't call
11025 observer_attach_thread_ptid_changed.
11026
8c25b497
YQ
110272017-04-10 Yao Qi <yao.qi@linaro.org>
11028
11029 * thread.c (delete_thread_1): Hoist code on marking thread as
11030 exited.
11031
8473b447
SM
110322017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11033
11034 * windows-nat.c (windows_detach): Initialize ptid with
11035 minus_one_ptid.
11036
6670ec13
SM
110372017-04-07 Simon Marchi <simon.marchi@ericsson.com>
11038
11039 * unittests/ptid-selftests.c: Fix erroneous assert messages.
11040
ba2f91bb
AH
110412017-04-07 Alan Hayward <alan.hayward@arm.com>
11042
11043 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
11044 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
11045 (bfin_pseudo_register_write): Likewise
11046
436252de
SM
110472017-04-06 Simon Marchi <simon.marchi@ericsson.com>
11048
11049 * common/ptid.h (struct ptid): Change to...
11050 (class ptid_t): ... this.
11051 <ptid_t>: New constructors.
11052 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
11053 matches>: New methods.
11054 <make_null, make_minus_one>: New static methods.
11055 <pid>: Rename to...
11056 <m_pid>: ...this.
11057 <lwp>: Rename to...
11058 <m_lwp>: ...this.
11059 <tid>: Rename to...
11060 <m_tid>: ...this.
11061 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
11062 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
11063 as references, move comment to class ptid_t.
11064 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
11065 ptid_t static methods.
11066 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
11067 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
11068 Take ptid arguments as references, implement using ptid_t methods.
11069 * unittests/ptid-selftests.c: New file.
11070 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11071 unittests/ptid-selftests.c.
11072 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
11073
0dedf377
TP
110742017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
11075
11076 * python/python.c (python_run_simple_file): Cast mode literal to
11077 non-const char pointer as expected by PyFile_FromString.
11078
4e9868d4
SM
110792017-04-05 Simon Marchi <simon.marchi@ericsson.com>
11080
11081 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
11082 minus_one_ptid and null_ptid.
11083
9bf2a700
PA
110842017-04-05 Pedro Alves <palves@redhat.com>
11085
11086 * warning.m4 (build_warnings): Remove -Wno-write-strings.
11087 * configure: Regenerate.
11088
a121b7c1
PA
110892017-04-05 Pedro Alves <palves@redhat.com>
11090
11091 * ada-exp.y (yyerror): Constify.
11092 * ada-lang.c (bound_name, get_selections)
11093 (ada_variant_discrim_type)
11094 (ada_variant_discrim_name, ada_value_struct_elt)
11095 (ada_lookup_struct_elt_type, is_unchecked_variant)
11096 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
11097 (catch_ada_exception_command_split)
11098 (catch_ada_assert_command_split, catch_assert_command)
11099 (ada_op_name): Constify.
11100 * ada-lang.h (ada_yyerror, get_selections)
11101 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
11102 * arc-tdep.c (arc_print_frame_cache): Constify.
11103 * arm-tdep.c (arm_skip_stub): Constify.
11104 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
11105 (gen_aggregate_elt_ref): Constify.
11106 * bcache.c (print_bcache_statistics): Constify.
11107 * bcache.h (print_bcache_statistics): Constify.
11108 * break-catch-throw.c (catch_exception_command_1):
11109 * breakpoint.c (struct ep_type_description::description):
11110 Constify.
11111 (add_solib_catchpoint): Constify.
11112 (catch_fork_command_1): Add cast.
11113 (add_catch_command): Constify.
11114 * breakpoint.h (add_catch_command, add_solib_catchpoint):
11115 Constify.
11116 * bsd-uthread.c (bsd_uthread_state): Constify.
11117 * buildsym.c (patch_subfile_names): Constify.
11118 * buildsym.h (next_symbol_text_func, patch_subfile_names):
11119 Constify.
11120 * c-exp.y (yyerror): Constify.
11121 (token::oper): Constify.
11122 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
11123 * c-varobj.c (cplus_describe_child): Constify.
11124 * charset.c (find_charset_names): Add cast.
11125 (find_charset_names): Constify array and add const_cast.
11126 * cli/cli-cmds.c (complete_command, cd_command): Constify.
11127 (edit_command): Constify.
11128 * cli/cli-decode.c (lookup_cmd): Constify.
11129 * cli/cli-dump.c (dump_memory_command, dump_value_command):
11130 Constify.
11131 (struct dump_context): Constify.
11132 (add_dump_command, restore_command): Constify.
11133 * cli/cli-script.c (get_command_line): Constify.
11134 * cli/cli-script.h (get_command_line): Constify.
11135 * cli/cli-utils.c (check_for_argument): Constify.
11136 * cli/cli-utils.h (check_for_argument): Constify.
11137 * coff-pe-read.c (struct read_pe_section_data): Constify.
11138 * command.h (lookup_cmd): Constify.
11139 * common/print-utils.c (decimal2str): Constify.
11140 * completer.c (gdb_print_filename): Constify.
11141 * corefile.c (set_gnutarget): Constify.
11142 * cp-name-parser.y (yyerror): Constify.
11143 * cp-valprint.c (cp_print_class_member): Constify.
11144 * cris-tdep.c (cris_register_name, crisv32_register_name):
11145 Constify.
11146 * d-exp.y (yyerror): Constify.
11147 (struct token::oper): Constify.
11148 * d-lang.h (d_yyerror): Constify.
11149 * dbxread.c (struct header_file_location::name): Constify.
11150 (add_old_header_file, add_new_header_file, last_function_name)
11151 (dbx_next_symbol_text, add_bincl_to_list)
11152 (find_corresponding_bincl_psymtab, set_namestring)
11153 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
11154 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
11155 * defs.h (command_line_input, print_address_symbolic)
11156 (deprecated_readline_begin_hook): Constify.
11157 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
11158 Constify.
11159 * event-top.c (handle_line_of_input): Constify and add cast.
11160 * exceptions.c (catch_errors): Constify.
11161 * exceptions.h (catch_errors): Constify.
11162 * expprint.c (print_subexp_standard, op_string, op_name)
11163 (op_name_standard, dump_raw_expression, dump_raw_expression):
11164 * expression.h (op_name, op_string, dump_raw_expression):
11165 Constify.
11166 * f-exp.y (yyerror): Constify.
11167 (struct token::oper): Constify.
11168 (struct f77_boolean_val::name): Constify.
11169 * f-lang.c (f_word_break_characters): Constify.
11170 * f-lang.h (f_yyerror): Constify.
11171 * fork-child.c (fork_inferior): Add cast.
11172 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
11173 (new_variant): Constify.
11174 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
11175 * gdbarch.c: Regenerate.
11176 * gdbcore.h (set_gnutarget): Constify.
11177 * go-exp.y (yyerror): Constify.
11178 (token::oper): Constify.
11179 * go-lang.h (go_yyerror): Constify.
11180 * go32-nat.c (go32_sysinfo): Constify.
11181 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
11182 * guile/scm-cmd.c (cmdscm_function): Constify.
11183 * guile/scm-param.c (pascm_param_value): Constify.
11184 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
11185 (h8300sx_register_name): Constify.
11186 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
11187 Constify.
11188 * ia64-tdep.c (ia64_register_names): Constify.
11189 * infcmd.c (construct_inferior_arguments): Constify.
11190 (path_command, attach_post_wait): Constify.
11191 * language.c (show_range_command, show_case_command)
11192 (unk_lang_error): Constify.
11193 * language.h (language_defn::la_error)
11194 (language_defn::la_name_of_this): Constify.
11195 * linespec.c (decode_line_2): Constify.
11196 * linux-thread-db.c (thread_db_err_str): Constify.
11197 * lm32-tdep.c (lm32_register_name): Constify.
11198 * m2-exp.y (yyerror): Constify.
11199 * m2-lang.h (m2_yyerror): Constify.
11200 * m32r-tdep.c (m32r_register_names): Constify and make static.
11201 * m68hc11-tdep.c (m68hc11_register_names): Constify.
11202 * m88k-tdep.c (m88k_register_name): Constify.
11203 * macroexp.c (appendmem): Constify.
11204 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
11205 (upgrade_type, parse_external, parse_partial_symbols)
11206 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
11207 (new_symbol): Constify.
11208 * memattr.c (mem_info_command): Constify.
11209 * mep-tdep.c (register_name_from_keyword): Constify.
11210 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
11211 Constify.
11212 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
11213 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
11214 * mi/mi-main.c (captured_mi_execute_command): Constify and add
11215 cast.
11216 (mi_execute_async_cli_command): Constify.
11217 * mips-tdep.c (mips_register_name): Constify.
11218 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
11219 (am33_register_name, am33_2_register_name)
11220 * moxie-tdep.c (moxie_register_names): Constify.
11221 * nat/linux-osdata.c (osdata_type): Constify fields.
11222 * nto-tdep.c (nto_parse_redirection): Constify.
11223 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
11224 (lookup_child_selector): Constify.
11225 (objc_methcall::name): Constify.
11226 * objc-lang.h (lookup_objc_class, lookup_child_selector)
11227 (lookup_struct_typedef): Constify.
11228 * objfiles.c (pc_in_section): Constify.
11229 * objfiles.h (pc_in_section): Constify.
11230 * p-exp.y (struct token::oper): Constify.
11231 (yyerror): Constify.
11232 * p-lang.h (pascal_yyerror): Constify.
11233 * parser-defs.h (op_name_standard): Constify.
11234 (op_print::string): Constify.
11235 (exp_descriptor::op_name): Constify.
11236 * printcmd.c (print_address_symbolic): Constify.
11237 * psymtab.c (print_partial_symbols): Constify.
11238 * python/py-breakpoint.c (stop_func): Constify.
11239 (bppy_get_expression): Constify.
11240 * python/py-cmd.c (cmdpy_completer::name): Constify.
11241 (cmdpy_function): Constify.
11242 * python/py-event.c (evpy_add_attribute)
11243 (gdbpy_initialize_event_generic): Constify.
11244 * python/py-event.h (evpy_add_attribute)
11245 (gdbpy_initialize_event_generic): Constify.
11246 * python/py-evts.c (add_new_registry): Constify.
11247 * python/py-finishbreakpoint.c (outofscope_func): Constify.
11248 * python/py-framefilter.c (get_py_iter_from_func): Constify.
11249 * python/py-inferior.c (get_buffer): Add cast.
11250 * python/py-param.c (parm_constant::name): Constify.
11251 * python/py-unwind.c (fprint_frame_id): Constify.
11252 * python/python.c (gdbpy_parameter_value): Constify.
11253 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
11254 * remote.c (memory_packet_config::name): Constify.
11255 (show_packet_config_cmd, remote_write_bytes)
11256 (remote_buffer_add_string):
11257 * reverse.c (exec_reverse_once): Constify.
11258 * rs6000-tdep.c (variant::name, variant::description): Constify.
11259 * rust-exp.y (rustyyerror): Constify.
11260 * rust-lang.c (rust_op_name): Constify.
11261 * rust-lang.h (rustyyerror): Constify.
11262 * serial.h (serial_ops::name): Constify.
11263 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
11264 (sh_sh3e_register_name, sh_sh2e_register_name)
11265 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
11266 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
11267 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
11268 (sh_sh4al_dsp_register_name): Constify.
11269 * sh64-tdep.c (sh64_register_name): Constify.
11270 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
11271 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
11272 * stabsread.c (patch_block_stabs, read_type_number)
11273 (ref_map::stabs, ref_add, process_reference)
11274 (symbol_reference_defined, define_symbol, define_symbol)
11275 (error_type, read_type, read_member_functions, read_cpp_abbrev)
11276 (read_one_struct_field, read_struct_fields, read_baseclasses)
11277 (read_tilde_fields, read_struct_type, read_array_type)
11278 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
11279 (read_huge_number, read_range_type, read_args, common_block_start)
11280 (find_name_end): Constify.
11281 * stabsread.h (common_block_start, define_symbol)
11282 (process_one_symbol, symbol_reference_defined, ref_add):
11283 * symfile.c (get_section_index, add_symbol_file_command):
11284 * symfile.h (get_section_index): Constify.
11285 * target-descriptions.c (tdesc_type::name): Constify.
11286 (tdesc_free_type): Add cast.
11287 * target.c (find_default_run_target):
11288 (add_deprecated_target_alias, find_default_run_target)
11289 (target_announce_detach): Constify.
11290 (do_option): Constify.
11291 * target.h (add_deprecated_target_alias): Constify.
11292 * thread.c (print_thread_info_1): Constify.
11293 * top.c (deprecated_readline_begin_hook, command_line_input):
11294 Constify.
11295 (init_main): Add casts.
11296 * top.h (handle_line_of_input): Constify.
11297 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
11298 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
11299 (tfind_command): Rename to ...
11300 (tfind_command_1): ... this and constify.
11301 (tfind_command): New function.
11302 (tfind_end_command, tfind_start_command): Adjust.
11303 (encode_source_string): Constify.
11304 * tracepoint.h (encode_source_string): Constify.
11305 * tui/tui-data.c (tui_partial_win_by_name): Constify.
11306 * tui/tui-data.h (tui_partial_win_by_name): Constify.
11307 * tui/tui-source.c (tui_set_source_content_nil): Constify.
11308 * tui/tui-source.h (tui_set_source_content_nil): Constify.
11309 * tui/tui-win.c (parse_scrolling_args): Constify.
11310 * tui/tui-windata.c (tui_erase_data_content): Constify.
11311 * tui/tui-windata.h (tui_erase_data_content): Constify.
11312 * tui/tui-winsource.c (tui_erase_source_content): Constify.
11313 * tui/tui.c (tui_enable): Add cast.
11314 * utils.c (defaulted_query): Constify.
11315 (init_page_info): Add cast.
11316 (puts_debug, subset_compare): Constify.
11317 * utils.h (subset_compare): Constify.
11318 * varobj.c (varobj_format_string): Constify.
11319 * varobj.h (varobj_format_string): Constify.
11320 * vax-tdep.c (vax_register_name): Constify.
11321 * windows-nat.c (windows_detach): Constify.
11322 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
11323 * xml-support.c (gdb_xml_end_element): Constify.
11324 * xml-tdesc.c (tdesc_start_reg): Constify.
11325 * xstormy16-tdep.c (xstormy16_register_name): Constify.
11326 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
11327 * xtensa-tdep.h (xtensa_register_t::name): Constify.
11328
995816ba
PA
113292017-04-05 Pedro Alves <palves@redhat.com>
11330
11331 * proc-api.c (struct trans): Constify.
11332 (procfs_note): Constify.
11333 * proc-events.c (struct trans, syscall_table):
11334 * proc-flags.c (struct trans): Constify.
11335 * proc-utils.h (procfs_note): Constify.
11336 * proc-why.c (struct trans): Constify.
11337 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
11338 (procfs_detach): Constify.
11339 * sol-thread.c (struct string_map): Constify.
11340 (td_err_string, td_state_string): Constify.
11341
3e83a920
PA
113422017-04-05 Pedro Alves <palves@redhat.com>
11343
11344 * proc-api.c (procfs_filename): Don't initialize
11345 procfs_filename.
11346 (prepare_to_trace): Assume procfs_filename is non-NULL.
11347 (_initialize_proc_api): Give procfs_filename a default value here.
11348
63160a43
PA
113492017-04-05 Pedro Alves <palves@redhat.com>
11350
11351 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
11352 'cond_string' parameter.
11353 (extract_exception_regexp): Constify 'string' parameter.
11354 (catch_exception_command_1): Constify.
11355 * breakpoint.c (init_catchpoint)
11356 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
11357 parameter.
11358 (ep_parse_optional_if_clause, catch_fork_command_1)
11359 (catch_exec_command_1): Constify.
11360 * breakpoint.h (init_catchpoint): Constify 'cond_string'
11361 parameter.
11362 (ep_parse_optional_if_clause): Constify.
11363 * cli/cli-utils.c (remove_trailing_whitespace)
11364 (check_for_argument): Constify.
11365 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
11366 non-const overload.
11367 (check_for_argument): Likewise.
11368
9b2eba3d
PA
113692017-04-05 Pedro Alves <palves@redhat.com>
11370
11371 * event-top.c (command_line_handler): Add cast to execute_command
11372 call.
11373 * record-btrace.c (cmd_record_btrace_bts_start)
11374 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
11375 (cmd_record_btrace_start): Add cast to execute_command call.
11376 * record-full.c (record_full_goto_insn):
11377 * record.c (record_start, record_stop): Add cast to
11378 execute_command_to_string calls.
11379 (cmd_record_start): Add cast to execute_command calls.
11380
2adadf51
PA
113812017-04-05 Pedro Alves <palves@redhat.com>
11382
11383 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
11384 static inline function.
11385 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
11386 array and use gdb_PyArg_ParseTupleAndKeywords.
11387 * python/py-cmd.c (cmdpy_init): Likewise.
11388 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
11389 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
11390 (infpy_search_memory): Likewise.
11391 * python/py-objfile.c (objfpy_add_separate_debug_file)
11392 (gdbpy_lookup_objfile): Likewise.
11393 * python/py-symbol.c (gdbpy_lookup_symbol)
11394 (gdbpy_lookup_global_symbol): Likewise.
11395 * python/py-type.c (gdbpy_lookup_type): Likewise.
11396 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
11397 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
11398 Likewise.
11399
0d1f4ceb
PA
114002017-04-05 Pedro Alves <palves@redhat.com>
11401
11402 * python/python-internal.h (gdb_PyGetSetDef): New type.
11403 * python/py-block.c (block_object_getset)
11404 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
11405 * python/py-event.c (event_object_getset)
11406 (finish_breakpoint_object_getset): Likewise.
11407 * python/py-inferior.c (inferior_object_getset): Likewise.
11408 * python/py-infthread.c (thread_object_getset): Likewise.
11409 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
11410 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
11411 * python/py-objfile.c (objfile_getset): Likewise.
11412 * python/py-progspace.c (pspace_getset): Likewise.
11413 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
11414 Likewise.
11415 * python/py-record.c (recpy_record_getset): Likewise.
11416 * python/py-symbol.c (symbol_object_getset): Likewise.
11417 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
11418 Likewise.
11419 * python/py-type.c (type_object_getset, field_object_getset):
11420 Likewise.
11421 * python/py-value.c (value_object_getset): Likewise.
11422
4d759979
PA
114232017-04-05 Pedro Alves <palves@redhat.com>
11424
11425 * python/python-internal.h (gdb_PyObject_CallMethod)
11426 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
11427 New functions.
11428 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
11429 (PySys_GetObject, PySys_SetPath): New macros.
11430
fdf9e36f
PA
114312017-04-05 Pedro Alves <palves@redhat.com>
11432
11433 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
11434 info_osdata_command.
11435 * osdata.c (info_osdata_command): Rename to ...
11436 (info_osdata): ... this. Constify 'type' parameter, and remove
11437 the 'from_tty' parameter. Accept NULL TYPE.
11438 (info_osdata_command): New function.
11439 * osdata.h (info_osdata_command): Remove declaration.
11440 (info_osdata): New declaration.
11441
9f33b8b7
PA
114422017-04-05 Pedro Alves <palves@redhat.com>
11443
11444 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
11445 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
11446 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
11447 parameter.
11448 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
11449 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
11450 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
11451 parameter.
11452 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
11453 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
11454 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11455 (mi_cmd_file_list_exec_source_files)
11456 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
11457 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
11458 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
11459 parameter.
11460 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
11461 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
11462 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
11463 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
11464 (mi_cmd_stack_info_frame): Constify 'command' parameter.
11465 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
11466 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
11467 'command' parameter.
11468 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
11469 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
11470 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
11471 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
11472 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
11473 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
11474 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
11475 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
11476 (mi_cmd_var_set_update_range): Constify 'command' parameter.
11477 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
11478 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
11479 parameter.
11480 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
11481 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
11482 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
11483 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
11484 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
11485 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
11486 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
11487 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
11488 (mi_cmd_data_list_changed_registers)
11489 (mi_cmd_data_write_register_values)
11490 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
11491 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
11492 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
11493 (mi_cmd_list_features, mi_cmd_list_target_features)
11494 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
11495 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
11496 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
11497 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
11498 (mi_cmd_trace_frame_collected): Constify 'command'
11499 parameter.
11500 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
11501 'command' parameter.
11502
67cb5b2d
PA
115032017-04-05 Pedro Alves <palves@redhat.com>
11504
11505 * ada-lang.c (ada_completer_word_break_characters): Now a const
11506 array.
11507 (ada_get_gdb_completer_word_break_characters): Constify.
11508 * completer.c (gdb_completer_command_word_break_characters)
11509 (gdb_completer_file_name_break_characters)
11510 (gdb_completer_quote_characters): Now const arrays.
11511 (get_gdb_completer_quote_characters): Constify.
11512 (set_rl_completer_word_break_characters): New function.
11513 (set_gdb_completion_word_break_characters)
11514 (complete_line_internal): Use it.
11515 * completer.h (get_gdb_completer_quote_characters): Constify.
11516 (set_rl_completer_word_break_characters): Declare.
11517 * f-lang.c (f_word_break_characters): Constify.
11518 * language.c (default_word_break_characters): Constify.
11519 * language.h (language_defn::la_word_break_characters): Constify.
11520 (default_word_break_characters): Constify.
11521 * top.c (init_main): Use set_rl_completer_word_break_characters.
11522
7a114964
PA
115232017-04-05 Pedro Alves <palves@redhat.com>
11524
11525 * aix-thread.c (aix_thread_pid_to_str)
11526 (aix_thread_extra_thread_info): Constify.
11527 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
11528 * bsd-uthread.c (bsd_uthread_extra_thread_info)
11529 (bsd_uthread_pid_to_str): Constify.
11530 * corelow.c (core_pid_to_str): Constify.
11531 * darwin-nat.c (darwin_pid_to_str): Constify.
11532 * fbsd-nat.c (fbsd_pid_to_str): Constify.
11533 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
11534 Constify.
11535 * gnu-nat.c (gnu_pid_to_str): Constify.
11536 * go32-nat.c (go32_pid_to_str): Constify.
11537 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
11538 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
11539 * inferior.c (inferior_pid_to_str): Constify.
11540 * linux-nat.c (linux_nat_pid_to_str): Constify.
11541 * linux-tdep.c (linux_core_pid_to_str): Constify.
11542 * linux-thread-db.c (thread_db_pid_to_str)
11543 (thread_db_extra_thread_info): Constify.
11544 * nto-tdep.c (nto_extra_thread_info): Constify.
11545 * nto-tdep.h (nto_extra_thread_info): Constify.
11546 * obsd-nat.c (obsd_pid_to_str): Constify.
11547 * procfs.c (procfs_pid_to_str): Constify.
11548 * ravenscar-thread.c (ravenscar_extra_thread_info)
11549 (ravenscar_pid_to_str): Constify.
11550 * remote-sim.c (gdbsim_pid_to_str): Constify.
11551 * remote.c (remote_threads_extra_info, remote_pid_to_str):
11552 Constify.
11553 * sol-thread.c (solaris_pid_to_str): Constify.
11554 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
11555 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
11556 * target.c (default_pid_to_str, target_pid_to_str)
11557 (normal_pid_to_str, default_pid_to_str): Constify.
11558 * target.h (target_ops::to_pid_to_str)
11559 (target_ops::to_extra_thread_info): Constify.
11560 (target_pid_to_str, normal_pid_to_str): Constify.
11561 * windows-nat.c (windows_pid_to_str): Constify.
11562 * gdbarch.sh (core_pid_to_str): Constify.
11563 * target-delegates.c: Regenerate.
11564 * gdbarch.h, gdbarch.c: Regenerate.
11565
69bbf465
PA
115662017-04-05 Pedro Alves <palves@redhat.com>
11567
11568 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
11569 the memory of the temporary warning_pre_print override.
11570 * utils.c (warning_pre_print): Constify.
11571 * utils.h (warning_pre_print): Constify.
11572
be47f9e8
PA
115732017-04-05 Pedro Alves <palves@redhat.com>
11574
11575 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
11576 (shell_command): New function.
11577 (make_command): Use std::string.
11578 (init_cli_cmds): Register shell_command instead of shell_escape.
11579
bde6261a
PA
115802017-04-05 Pedro Alves <palves@redhat.com>
11581
11582 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
11583 * tracepoint.c (default_collect): Don't initialize.
11584
b38ef47f
PA
115852017-04-05 Pedro Alves <palves@redhat.com>
11586
11587 * macroexp.c (macro_buffer::shared): Now a bool.
11588 (init_buffer): Update.
11589 (init_shared_buffer): Constify 'addr' parameter.
11590 (substitute_args, expand, macro_expand, macro_expand_next): Remove
11591 casts.
11592
f995bbe8
PA
115932017-04-05 Pedro Alves <palves@redhat.com>
11594
11595 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
11596 * disasm.c (set_disassembler_options): Constify local.
11597 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
11598
4a596fe2
SDJ
115992017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
11600
11601 PR gdb/21352
11602 * tracefile.c (tsave_command): Fix argument parsing for '-r'
11603 option.
11604
2cad08ea
YQ
116052017-04-05 Yao Qi <yao.qi@linaro.org>
11606
11607 * frame.c (frame_unwind_register_unsigned): Call
11608 frame_unwind_register_value.
11609
55a98976
YQ
116102017-04-05 Yao Qi <yao.qi@linaro.org>
11611
11612 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
11613 Use gdb_test_multiple, and don't match anchor.
11614
4ac40124
PA
116152017-04-05 Pedro Alves <palves@redhat.com>
11616
11617 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
11618 (Write After Approval): Remove Simon Marchi.
11619
c053b654
PA
116202017-04-05 Pedro Alves <palves@redhat.com>
11621
11622 * common/gdb_optional.h (optional::optional): Make constexpr and
11623 initialize m_dummy.
11624
4c7bf4f9
JB
116252017-04-04 John Baldwin <jhb@FreeBSD.org>
11626
11627 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
11628 (amd64fbsd_jmp_buf_reg_offset): Remove.
11629 (amd64fbsd_supply_uthread): Remove function.
11630 (amd64fbsd_collect_uthread): Remove function.
11631 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
11632 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
11633 (x86_64-*-freebsd*): Remove bsd-uthread.o.
11634 (fbsd-nat.c): Update comment.
11635 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
11636 (i386fbsd_jmp_buf_reg_offset): Remove.
11637 (i386fbsd_supply_uthread): Remove function.
11638 (i386fbsd_collect_uthread): Remove function.
11639 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
11640
1e1a8bef
JB
116412017-04-04 John Baldwin <jhb@FreeBSD.org>
11642
11643 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
11644 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
11645 * NEWS: Mention that support for FreeBSD/alpha was removed.
11646 * alpha-fbsd-tdep.c: Delete file.
11647 * config/alpha/fbsd.mh: Delete file.
11648 * configure.host: Delete alpha*-*-freebsd* and
11649 alpha*-*-kfreebsd*-gnu.
11650 * configure.tgt: Delete alpha*-*-freebsd* and
11651 alpha*-*-kfreebsd*-gnu.
11652
49907934
JB
116532017-04-04 John Baldwin <jhb@FreeBSD.org>
11654
11655 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
11656 amd64bsd_store_inferior_registers): Use ptid from regcache.
11657
6f77053d
PA
116582017-04-04 Pedro Alves <palves@redhat.com>
11659
11660 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
11661 data fields, make them private and add "m_" prefixes.
11662 (lnp_state_machine::lnp_state_machine): New ctor.
11663 (record_line, check_line_address, handle_set_discriminator)
11664 (handle_set_address, handle_advance_pc, handle_special_opcode)
11665 (handle_advance_line, handle_set_file, handle_negate_stmt)
11666 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
11667 (end_sequence, advance_line): New methods.
11668 (m_gdbarch, m_record_lines_p): New fields.
11669 (lnp_reader_state): Delete.
11670 (dwarf_record_line): Rename to ...
11671 (lnp_state_machine::record_line): ... adjust.
11672 (init_lnp_state_machine): Delete.
11673 (lnp_state_machine::lnp_state_machine): New.
11674 (check_line_address): Rename to ...
11675 (lnp_state_machine::check_line_address): This.
11676 (dwarf_decode_lines_1): Remove reference to "reader_state".
11677 Adjust lnp_state_machine having a non-default ctor. Use bool.
11678 State machine internal state manipulation moved to
11679 lnp_state_machine methods.
11680
9c541725
PA
116812017-04-04 Pedro Alves <palves@redhat.com>
11682
11683 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11684 unittests/offset-type-selftests.c.
11685 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
11686 * common/offset-type.h: New file.
11687 * common/preprocessor.h: New file.
11688 * common/traits.h: New file.
11689 * common/valid-expr.h: New file.
11690 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
11691 sect_offset and cu_offset strong typedefs throughout.
11692 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
11693 typedefs throughout.
11694 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
11695 sect_offset and cu_offset strong typedefs throughout.
11696 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
11697 typedefs throughout.
11698 * gdbtypes.h: Include "common/offset-type.h".
11699 (cu_offset): Now an offset type (strong typedef) instead of a
11700 struct.
11701 (sect_offset): Likewise.
11702 (union call_site_parameter_u): Rename "param_offset" field to
11703 "param_cu_off".
11704 * unittests/offset-type-selftests.c: New file.
11705
ecfb656c
PA
117062017-04-04 Pedro Alves <palves@redhat.com>
11707
11708 * common/underlying.h: New file.
11709 * dwarf2read.c: Include "common/gdb_optional.h" and
11710 "common/underlying.h".
11711 (dir_index, file_name_index): New types.
11712 (file_entry): Use them.
11713 (file_entry::include): Use to_underlying.
11714 (line_header::add_file_name): Use dir_index.
11715 (read_formatted_entries): Use gdb::optional. Read form before
11716 writting to file_entry.
11717 (dwarf_decode_line_header): Use dir_index.
11718 (lnp_state_machine::current_file): Use to_underlying.
11719 (lnp_state_machine::file): Change type to file_name_index.
11720 (dwarf_record_line): Use to_underlying.
11721 (init_lnp_state_machine): Use file_name_index.
11722 (dwarf_decode_lines_1): Use dir_index and file_name_index.
11723
d194f1fe
PA
117242017-04-04 Pedro Alves <palves@redhat.com>
11725
11726 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
11727 operator bool, has_value and get methods.
11728
fff8551c
PA
117292017-04-04 Pedro Alves <palves@redhat.com>
11730
11731 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
11732 fields.
11733 (line_header): Initialize all data fields. Change type of
11734 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
11735 Change type of include_dirs to std::vector<const char *>. Remove
11736 num_include_dirs, include_dirs_size. Change type of file_names to
11737 std::vector<file_entry>. Remove num_file_names, file_names_size.
11738 (line_header::line_header): New.
11739 (line_header::add_include_dir, line_header::add_file_name): New
11740 methods.
11741 (line_header::include_dir_at): Remove NULL check.
11742 (line_header::file_name_at): Add const overload.
11743 (line_header_up): New unique_ptr typedef.
11744 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
11745 std::vector. Remove free_line_header call.
11746 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
11747 free_line_header call.
11748 (free_cu_line_header): Delete.
11749 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
11750 (setup_type_unit_groups): Use line_header_up instead of cleanups.
11751 Adjust to use std::vector.
11752 (free_line_header): Delete.
11753 (free_line_header_voidp): Use delete.
11754 (add_include_dir): Replace with ...
11755 (line_header::add_include_dir): ... this method. Use std::vector.
11756 (add_file_name): Replace with ...
11757 (line_header::add_file_name): ... this method. Use std::vector.
11758 (add_include_dir_stub): Delete.
11759 (read_formatted_entries): Remove memset.
11760 (dwarf_decode_line_header): Return a line_header_up instead of a
11761 raw pointer. Remove cleanup handling. Pass lambdas to
11762 read_formatted_entries. Adjust to use line_header methods.
11763 (dwarf_decode_lines_1): Adjust to use line_header methods.
11764 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
11765 use std::vector.
11766
d62a8ae2
SM
117672017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
11768
11769 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
11770 instead of struct ptid.
11771
db3a1dc7
AH
117722017-05-04 Alan Hayward <alan.hayward@arm.com>
11773
11774 * frame.c (get_frame_register_bytes): Unwind using value.
11775 (put_frame_register_bytes): Likewise.
11776
b1b45502
IB
117772017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
11778
11779 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
11780 aggregate-like.
11781
ec13808e
JK
117822017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11783
11784 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
11785
12316564
YQ
117862017-03-29 Yao Qi <yao.qi@linaro.org>
11787
11788 * gdbthread.h (struct thread_info): Declare constructor and
11789 destructor. Add some in-class member initializers.
11790 * thread.c (free_thread): Remove.
11791 (init_thread_list): Call delete instead of free_thread.
11792 (new_thread): Call thread_info constructor.
11793 (thread_info::thread_info): New function.
11794 (thread_info::~thread_info): New function.
11795 (delete_thread_1): Call delete instead of free_thread.
11796 (make_cleanup_restore_current_thread): Move tp and frame to
11797 inner block.
11798
fe5f7374
AK
117992017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11800
11801 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
11802 (arc_skip_prologue): Likewise.
11803 (arc_make_frame_cache): Likewise.
11804 (arc_pv_get_operand): New function.
11805 (arc_is_in_prologue): Likewise.
11806 (arc_analyze_prologue): Likewise.
11807 (arc_print_frame_cache): Likewise.
11808 (MAX_PROLOGUE_LENGTH): New constant.
11809
eea78757
AK
118102017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11811
11812 * configure.tgt: Add arc-insn.o.
11813 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
11814 (dump_arc_instruction_command): New function.
11815 (arc_fprintf_disasm): Likewise.
11816 (arc_disassemble_info): Likewise.
11817 (arc_insn_get_operand_value): Likewise.
11818 (arc_insn_get_operand_value_signed): Likewise.
11819 (arc_insn_get_memory_base_reg): Likewise.
11820 (arc_insn_get_memory_offset): Likewise.
11821 (arc_insn_get_branch_target): Likewise.
11822 (arc_insn_dump): Likewise.
11823 (arc_insn_get_linear_next_pc): Likewise.
11824 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
11825 (arc_disassemble_info): Likewise.
11826 (arc_insn_get_branch_target): Likewise.
11827 (arc_insn_get_linear_next_pc): Likewise.
11828 * NEWS: Mention new "maint print arc arc-instruction".
11829
3be78afd
AK
118302017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11831
11832 * arc-tdep (maintenance_print_arc_list): New variable.
11833 (maintenance_print_arc_command): New function.
11834
296ec4fa
AK
118352017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11836
11837 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
11838 Add "limm" and "reserved".
11839 (arc_cannot_fetch_register, arc_cannot_store_register): Add
11840 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
11841 * arc-tdep.h (arc_regnum): Likewise.
11842
f74f865e
MF
118432017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11844
11845 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
11846 for THREADPTR register.
11847 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
11848 register.
11849 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
11850 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
11851 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
11852
0d0bf81a
MF
118532017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11854
11855 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
11856 registers above gdbarch_num_regs (gdbarch) as privileged in
11857 call0 ABI.
11858
0ce4291e
MF
118592017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11860
11861 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
11862 for a single specified register or for all registers in
11863 a0_base..a0_base + C0_NREGS range.
11864 (supply_gregset_reg): Call regcache_raw_supply for a single
11865 specified register or for all registers in a0_base..a0_base +
11866 C0_NREGS range.
11867
c56054f9
MF
118682017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11869
11870 * arch/xtensa.h (C0_NREGS): Add definition.
11871 * xtensa-tdep.c (C0_NREGS): Remove definition.
11872
a4398628
MF
118732017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11874
11875 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
11876 Drop xtensa_default_isa initialization.
11877 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
11878
8c43009f
PA
118792017-03-27 Pedro Alves <palves@redhat.com>
11880
11881 * dwarf2read.c (file_entry) <dir_index>: Add comment.
11882 (file_entry::include_dir): New method.
11883 (line_header::include_dir_at, line_header::file_name_at): New
11884 methods.
11885 (setup_type_unit_groups, setup_type_unit_groups)
11886 (psymtab_include_file_name): Simplify using the new methods.
11887 (lnp_state_machine) <the_line_header>: New field.
11888 <file>: Add comment.
11889 (lnp_state_machine::current_file): New method.
11890 (dwarf_record_line): Simplify using the new methods.
11891 (init_lnp_state_machine): Initialize the "the_line_header" field.
11892 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
11893 Simplify using the new methods.
11894
a7e80b9e
PA
118952017-03-27 Pedro Alves <palves@redhat.com>
11896
11897 * cp-name-parser.y (make_empty): Delete.
11898 (demangler_special, nested_name, ptr_operator, array_indicator)
11899 (direct_declarator, declarator_1): Use fill_comp instead of
11900 make_empty.
11901
21047726
PA
119022017-03-27 Pedro Alves <palves@redhat.com>
11903
11904 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
11905 to ATTRIBUTE_PRINTF.
11906 * solib-target.c (library_list_start_list): Print "string" not
11907 "version".
11908 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
11909 gdb_xml_error call.
11910
d721ba37
PA
119112017-03-27 Pedro Alves <palves@redhat.com>
11912
11913 * dwarf2read.c (struct file_and_directory): New.
11914 (dwarf2_get_dwz_file): Adjust to use std::string.
11915 (dw2_get_file_names_reader): Adjust to use file_and_directory.
11916 (find_file_and_directory): Adjust to return a file_and_directory
11917 object.
11918 (read_file_scope): Adjust to use file_and_directory. Remove
11919 make_cleanup/do_cleanups calls.
11920 (open_and_init_dwp_file): Adjust to use std::string. Remove
11921 make_cleanup/do_cleanups calls.
11922 * python/python.c (do_start_initialization): Adjust to ldirname
11923 returning a std::string.
11924 * utils.c (ldirname): Now returns a std::string.
11925 * utils.h (ldirname): Change return type to std::string.
11926 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
11927 returning a std::string.
11928 * xml-tdesc.c (file_read_description_xml): Likewise.
11929
ed771251
AH
119302017-03-24 Alan Hayward <alan.hayward@arm.com>
11931
11932 * regcache.c (regcache_debug_print_register): New function.
11933 * regcache.h (regcache_debug_print_register): New declaration.
11934 * target.c (debug_print_register): Remove.
11935 (target_fetch_registers): Call regcache_debug_print_register.
11936 (target_store_registers): Likewise.
11937
568c1b9f
PB
119382017-03-24 Pádraig Brady <pbrady@fb.com>
11939
11940 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
11941 reference beyond the 'lh->include_dirs' array before accessing to
11942 it.
11943 (psymtab_include_file_name): Likewise.
11944 (dwarf_decode_lines_1): Likewise.
11945 (dwarf_decode_lines): Likewise.
11946 (file_file_name): Likewise.
11947
3e00d44f
SM
119482017-03-23 Simon Marchi <simon.marchi@ericsson.com>
11949
11950 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
11951 inferior_ptid.
11952 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
11953 ps_lsetfpregs): Likewise.
11954 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
11955 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
11956 ps_lsetfpregs): Likewise.
11957 * target.c (target_fetch_registers, target_store_registers):
11958 Remove asserts.
11959
077ae656
AH
119602017-03-23 Alan Hayward <alan.hayward@arm.com>
11961
11962 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
11963
1e2b521d
YQ
119642017-03-23 Yao Qi <yao.qi@linaro.org>
11965
11966 * aarch64-tdep.c (aarch64_process_record_test): Declare.
11967 (_initialize_aarch64_tdep): Register it.
11968 (aarch64_record_load_store): Handle PRFM instruction.
11969 (aarch64_process_record_test): New function.
11970
33877125
YQ
119712017-03-23 Yao Qi <yao.qi@linaro.org>
11972
11973 * aarch64-tdep.c (aarch64_record_load_store): Fix code
11974 indentation.
11975
a0eef940
YQ
119762017-03-23 Yao Qi <yao.qi@linaro.org>
11977
11978 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
11979
3f2a3564
PR
119802017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11981
11982 python/python.c (do_start_initialization): Fix memory leak.
11983
b67aeab0
SM
119842017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11985
11986 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
11987 using get_ptrace_pid.
11988 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
11989 inferior_ptid.
11990 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
11991 inferior_ptid instead of pid.
11992
ffdbe864
YQ
119932017-03-22 Yao Qi <yao.qi@linaro.org>
11994
11995 * aarch64-tdep.c: Wrap locally used classes in anonymous
11996 namespace.
11997 * arm-tdep.c: Likewise.
11998 * linespec.c: Likewise.
11999 * ui-out.c: Likewise.
12000
9d736fbf
JG
120012017-03-22 Jonah Graham <jonah@kichwacoders.com>
12002
12003 PR gdb/19637
12004 * python/lib/gdb/printer/bound_registers.py: Import sys.
12005
3de88e9a
SM
120062017-03-21 Simon Marchi <simon.marchi@ericsson.com>
12007
12008 * windows-nat.c (do_windows_fetch_inferior_registers): Add
12009 windows_thread_info parameter and use it instead of
12010 current_thread.
12011 (windows_fetch_inferior_registers): Don't set current_thread,
12012 pass the thread to do_windows_fetch_inferior_registers. Use
12013 ptid from regcache instead of inferior_ptid.
12014 (do_windows_store_inferior_registers): Add windows_thread_info
12015 parameter and use it instead of current_thread.
12016 (windows_store_inferior_registers): Don't set current_thread,
12017 pass the thread to do_windows_store_inferior_registers. Use
12018 ptid from regcache instead of inferior_ptid.
12019
0e7b8f61
SM
120202017-03-21 Simon Marchi <simon.marchi@ericsson.com>
12021
12022 * ser-mingw.c (ser_windows_raw): Remove reference to
12023 struct serial::current_timeout.
12024
5badf10a
IR
120252017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
12026
12027 PR tdep/20928
12028 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
12029 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
12030 (sparc64_fsr_type): Fix %fsr decoding.
12031
cee59b3f
TW
120322017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
12033
12034 * python/py-record-btrace.c (btpy_insn_data): Change return type
12035 for Python 2.
12036
639a9038
SM
120372017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
12038
12039 * spu-linux-nat.c (spu_fetch_inferior_registers,
12040 spu_store_inferior_registers): Use ptid from regcache, set and
12041 restore inferior_ptid.
12042 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
12043 Likewise.
12044
bcc0c096
SM
120452017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
12046
12047 * i386-linux-nat.c (fetch_register, store_register,
12048 i386_linux_fetch_inferior_registers,
12049 i386_linux_store_inferior_registers): Use ptid from regcache.
12050 * ia64-linux-nat.c (ia64_linux_fetch_register,
12051 ia64_linux_store_register): Likewise.
12052 * inf-ptrace.c (inf_ptrace_fetch_register,
12053 inf_ptrace_store_register): Likewise.
12054 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
12055 m32r_linux_store_inferior_registers): Likewise.
12056 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
12057 m68kbsd_store_inferior_registers): Likewise.
12058 * m68k-linux-nat.c (fetch_register, store_register,
12059 m68k_linux_fetch_inferior_registers,
12060 m68k_linux_store_inferior_registers): Likewise.
12061 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
12062 m88kbsd_store_inferior_registers): Likewise.
12063 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
12064 mips_fbsd_store_inferior_registers): Likewise.
12065 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
12066 mips64_linux_regsets_store_registers): Likewise.
12067 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
12068 mipsnbsd_store_inferior_registers): Likewise.
12069 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
12070 mips64obsd_store_inferior_registers): Likewise.
12071 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
12072 Likewise.
12073 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
12074 ppcfbsd_store_inferior_registers): Likewise.
12075 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
12076 ppc_linux_store_inferior_registers): Likewise.
12077 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
12078 ppcnbsd_store_inferior_registers): Likewise.
12079 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
12080 ppcobsd_store_registers): Likewise.
12081 * procfs.c (procfs_fetch_registers, procfs_store_registers):
12082 Likewise.
12083 * ravenscar-thread.c (ravenscar_fetch_registers,
12084 ravenscar_store_registers, ravenscar_prepare_to_store):
12085 Likewise.
12086 * record-btrace.c (record_btrace_fetch_registers,
12087 record_btrace_store_registers, record_btrace_prepare_to_store):
12088 Likewise.
12089 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
12090 Lookup inferior using ptid from regcache, instead of
12091 current_inferior.
12092 * remote.c (remote_fetch_registers, remote_store_registers): Use
12093 ptid from regcache.
12094 * rs6000-nat.c (fetch_register, store_register): Likewise.
12095 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
12096 s390_linux_store_inferior_registers): Likewise.
12097 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
12098 shnbsd_store_inferior_registers): Likewise.
12099 * sol-thread.c (sol_thread_fetch_registers,
12100 sol_thread_store_registers): Likewise.
12101 * sparc-nat.c (sparc_fetch_inferior_registers,
12102 sparc_store_inferior_registers): Likewise.
12103 * tilegx-linux-nat.c (fetch_inferior_registers,
12104 store_inferior_registers): Likewise.
12105 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
12106 vaxbsd_store_inferior_registers): Likewise.
12107 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
12108 store_xtregs): Likewise.
12109
c0f55cc6
AV
121102017-03-20 Artemiy Volkov <artemiyv@acm.org>
12111
12112 PR gdb/14441
12113 * NEWS: Mention support for rvalue references in GDB and python.
12114 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
12115 supports both lvalue and rvalue references.
12116
15c0a2a9
AV
121172017-03-20 Artemiy Volkov <artemiyv@acm.org>
12118
12119 PR gdb/14441
12120 * gdbtypes.c (rank_one_type): Implement overloading
12121 resolution rules regarding rvalue references.
12122
aa006118
AV
121232017-03-20 Artemiy Volkov <artemiyv@acm.org>
12124
12125 PR gdb/14441
12126 * aarch64-tdep.c (aarch64_type_align)
12127 (aarch64_extract_return_value, aarch64_store_return_value): Change
12128 lvalue reference type checks to general reference type checks.
12129 * amd64-tdep.c (amd64_classify): Likewise.
12130 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
12131 Likewise.
12132 * arm-tdep.c (arm_type_align, arm_extract_return_value)
12133 (arm_store_return_value): Likewise.
12134 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
12135 * c-typeprint.c (c_print_type): Likewise.
12136 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
12137 (cplus_number_of_children, cplus_describe_child): Likewise.
12138 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
12139 * completer.c (expression_completer): Likewise.
12140 * cp-support.c (make_symbol_overload_list_adl_namespace):
12141 Likewise.
12142 * darwin-nat-info.c (info_mach_region_command): Likewise.
12143 * dwarf2loc.c (entry_data_value_coerce_ref)
12144 (value_of_dwarf_reg_entry): Likewise.
12145 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
12146 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
12147 Likewise.
12148 * findvar.c (extract_typed_address, store_typed_address):
12149 Likewise.
12150 * gdbtypes.c (rank_one_type): Likewise.
12151 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
12152 * infcall.c (value_arg_coerce): Likewise.
12153 * language.c (pointer_type): Likewise.
12154 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
12155 Likewise.
12156 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
12157 * mn10300-tdep.c (mn10300_type_align): Likewise.
12158 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
12159 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
12160 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
12161 Likewise.
12162 * printcmd.c (print_formatted, x_command): Likewise.
12163 * python/py-type.c (typy_get_composite, typy_template_argument):
12164 Likewise.
12165 * python/py-value.c (valpy_referenced_value)
12166 (valpy_get_dynamic_type, value_has_field): Likewise.
12167 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
12168 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
12169 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
12170 * spu-tdep.c (spu_scalar_value_p): Likewise.
12171 * symtab.c (lookup_symbol_aux): Likewise.
12172 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
12173 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
12174 Likewise.
12175 * valops.c (value_cast_pointers, value_cast)
12176 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
12177 (value_struct_elt, value_struct_elt_bitpos)
12178 (value_find_oload_method_list, find_overload_match)
12179 (value_rtti_indirect_type): Likewise.
12180 * valprint.c (val_print_scalar_type_p, generic_val_print):
12181 Likewise.
12182 * value.c (value_actual_type, value_as_address, unpack_long)
12183 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
12184 (coerce_ref): Likewise.
12185 * varobj.c (varobj_get_value_type): Likewise.
12186
3fcf899d
AV
121872017-03-20 Artemiy Volkov <artemiyv@acm.org>
12188
12189 PR gdb/14441
12190 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
12191 table of constants.
12192 * python/lib/gdb/command/explore.py: Support exploring values
12193 of rvalue reference types.
12194 * python/lib/gdb/types.py: Implement get_basic_type() for
12195 rvalue reference types.
12196 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
12197 constant.
12198 * python/py-value.c (valpy_getitem): Add an rvalue reference
12199 check.
12200 (valpy_reference_value): Add new parameter "refcode".
12201 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
12202 New wrappers for valpy_reference_value().
12203 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
12204 (gdbpy_invoke_xmethod): Likewise.
12205
4297a3f0
AV
122062017-03-20 Artemiy Volkov <artemiyv@acm.org>
12207
12208 PR gdb/14441
12209 * dwarf2read.c (process_die, read_type_die_1): Handle the
12210 DW_TAG_rvalue_reference_type DIE.
12211 (read_tag_reference_type): Add new parameter "refcode".
12212
e1cb3213
AV
122132017-03-20 Artemiy Volkov <artemiyv@acm.org>
12214
12215 PR gdb/14441
12216 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
12217 (c_type_print_modifier, c_type_print_varspec_suffix)
12218 (c_type_print_base): Support printing rvalue reference types.
12219 * c-valprint.c (c_val_print, c_value_print): Support printing
12220 rvalue reference values.
12221
e4347c89
AV
122222017-03-20 Artemiy Volkov <artemiyv@acm.org>
12223
12224 PR gdb/14441
12225 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
12226 typename.
12227 * cp-support.c (replace_typedefs): Handle
12228 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
12229 * python/py-type.c (typy_lookup_type): Likewise.
12230
53cc15f5
AV
122312017-03-20 Artemiy Volkov <artemiyv@acm.org>
12232
12233 PR gdb/14441
12234 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
12235 * parse.c (insert_type): Change assert statement.
12236 (follow_types): Handle rvalue reference types.
12237 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
12238 constant.
12239
a65cfae5
AV
122402017-03-20 Artemiy Volkov <artemiyv@acm.org>
12241
12242 PR gdb/14441
12243 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
12244 value_ref() interface.
12245 * c-valprint.c (c_value_print): Likewise.
12246 * infcall.c (value_arg_coerce): Likewise.
12247 * python/py-value.c (valpy_reference_value): Likewise.
12248 * valops.c (value_cast, value_reinterpret_cast)
12249 (value_dynamic_cast, typecmp): Likewise.
12250 (value_ref): Parameterize by kind of return value reference type.
12251 * value.h (value_ref): Add new parameter "refcode".
12252
3b224330
AV
122532017-03-20 Artemiy Volkov <artemiyv@acm.org>
12254
12255 PR gdb/14441
12256 * dwarf2read.c (read_tag_reference_type): Use
12257 lookup_lvalue_reference_type() instead of lookup_reference_type().
12258 * eval.c (evaluate_subexp_standard): Likewise.
12259 * f-exp.y: Likewise.
12260 * gdbtypes.c (make_reference_type, lookup_reference_type):
12261 Generalize with rvalue reference types.
12262 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
12263 convenience wrappers for lookup_reference_type().
12264 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
12265 reference kind parameter.
12266 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
12267 wrappers for lookup_reference_type().
12268 * guile/scm-type.c (gdbscm_type_reference): Use
12269 lookup_lvalue_reference_type() instead of lookup_reference_type().
12270 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
12271 * parse.c (follow_types): Likewise.
12272 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
12273 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
12274 Likewise.
12275 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
12276 (gdbpy_invoke_xmethod): Likewise.
12277 * stabsread.c: Provide extra argument to make_reference_type()
12278 call.
12279 * valops.c (value_ref, value_rtti_indirect_type): Use
12280 lookup_lvalue_reference_type() instead of lookup_reference_type().
12281
f9aeb8d4
AV
122822017-03-20 Artemiy Volkov <artemiyv@acm.org>
12283
12284 PR gdb/14441
12285 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
12286 (TYPE_IS_REFERENCE): New macro.
12287 (struct type): Add rvalue_reference_type field.
12288 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
12289
51457a05
MAL
122902017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
12291
12292 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
12293 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
12294 New function definition.
12295 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
12296 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
12297 New function declaration.
12298 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
12299 * mi/mi-interp.h: New file.
12300 * solib.c (info_sharedlibrary_command): Replace for loop with
12301 ALL_SO_LIBS macro
12302 * solib.h (update_solib_list): New function declaration.
12303 (so_list_head): Move macro.
12304 * solist.h (ALL_SO_LIBS): New macro.
12305
e696b3ad
MAL
123062017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
12307
12308 * infcmd.c (post_create_inferior): Remove unused argument in
12309 call to solib_add.
12310 * remote.c (remote_start_remote): Likewise.
12311 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
12312 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
12313 (enable_break): Likewise.
12314 * solib.c (update_solib_list): Remove unused target argument
12315 and its documentation.
12316 (solib_add): Remove unused target argument. Remove unused
12317 argument in call to update_solib_list.
12318 (info_sharedlibrary_command): Remove unused argument in call
12319 to update_solib_list.
12320 (sharedlibrary_command): Remove unused argument in call to
12321 solib_add.
12322 (handle_solib_event): Likewise.
12323 (reload_shared_libraries): Likewise.
12324 * solib.h (solib_add): Remove unused target argument.
12325
dcb84eda
AA
123262017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
12327
12328 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
12329 (s390_displaced_step_fixup): Cover relative branches with the
12330 default fixup handling. This fixes lack of support for some
12331 relative branch instructions.
12332
d9cb6cdc
SM
123332017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12334
12335 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
12336 ptid from regcache.
12337
1afaf9f4
SM
123382017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12339
12340 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
12341 i386_darwin_store_inferior_registers): Use ptid from regcache.
12342
aac12e24
SM
123432017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12344
12345 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
12346 i386bsd_store_inferior_registers): Use ptid from regcache.
12347
bbe1eef1
SM
123482017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12349
12350 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
12351 hppaobsd_store_registers): Use ptid from regcache.
12352
10799020
SM
123532017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12354
12355 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
12356 hppanbsd_store_registers): Use ptid from regcache.
12357
00204cf7
SM
123582017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12359
12360 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
12361 from regcache. Use get_ptrace_pid.
12362
11a33714
SM
123632017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12364
12365 * corelow.c (get_core_register_section): Use ptid from regcache,
12366 update doc.
12367
317cd492
SM
123682017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12369
12370 * bsd-uthread.c (bsd_uthread_fetch_registers,
12371 bsd_uthread_store_registers): Use ptid from regcache, set and
12372 restore inferior_ptid.
12373
9ac8a7c2
SM
123742017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12375
12376 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
12377 fetch_fp_regs, store_register, store_regs, store_fp_register,
12378 store_fp_regs): Use ptid from regcache.
12379
4ac4bb6a
SM
123802017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12381
12382 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
12383 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
12384 store_vfp_regs): Use ptid from regcache.
12385
9bcbdca8
PA
123862017-03-17 Pedro Alves <palves@redhat.com>
12387
12388 PR remote/21188
12389 * ser-base.c (ser_base_wait_for): Add comment.
12390 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
12391 version.
12392 * ser-unix.c (hardwire_raw): Remove reference to
12393 scb->current_timeout.
12394 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
12395 (hardwire_ops): Install ser_base_readchar instead of
12396 hardwire_readchar.
12397 * serial.h (struct serial) <current_timeout, timeout_remaining>:
12398 Remove fields.
12399
7503099f
JG
124002017-03-17 Jonah Graham <jonah@kichwacoders.com>
12401
12402 PR gdb/19637
12403 * python/lib/gdb/printer/bound_registers.py: Add support for
12404 Python 3.
12405
7942e96e
AA
124062017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
12407
12408 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
12409 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
12410 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
12411 byte_offset to subobj_byte_offset. Fix the handling of
12412 DWARF_VALUE_STACK on big-endian targets when coming via an
12413 implicit pointer.
12414 (dwarf2_evaluate_loc_desc): Adjust call to
12415 dwarf2_evaluate_loc_desc_full.
12416 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
12417 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
12418
ba14f379
YQ
124192017-03-16 Yao Qi <yao.qi@linaro.org>
12420
12421 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
12422 and REVSH instructions.
12423
b121eeb9
YQ
124242017-03-16 Yao Qi <yao.qi@linaro.org>
12425
12426 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
12427 (arm_record_test): Declare.
12428 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
12429 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
12430 align with the manual.
12431 (thumb_record_misc): Adjust the code order to align with the
12432 manual.
12433 (thumb2_record_decode_insn_handler): Fix instruction matching.
12434 (instruction_reader_thumb): New class.
12435 (arm_record_test): New function.
12436
728a7913
YQ
124372017-03-16 Yao Qi <yao.qi@linaro.org>
12438
12439 * arm-tdep.c (abstract_memory_reader): New class.
12440 (instruction_reader): New class.
12441 (extract_arm_insn): Add argument 'reader'. Callers updated.
12442 (decode_insn): Likewise.
12443
34b43320
DE
124442017-03-16 Doug Evans <dje@google.com>
12445
a7c0469f
DE
12446 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
12447 member. Change type of TYPE member to SCM. All uses updated.
12448 (lsscm_make_lazy_string_smob): Add assert.
12449 (lsscm_make_lazy_string): Flag bad length values.
12450 (lsscm_elt_type): New function.
12451 (gdbscm_lazy_string_to_value): Rewrite to use
12452 lsscm_safe_lazy_string_to_value.
12453 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
12454 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
12455 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
12456 in incoming type.
12457 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
12458 * guile/scm-type.c (tyscm_scm_to_type): New function.
12459
124602017-03-15 Doug Evans <dje@google.com>
12461
34b43320
DE
12462 PR python/17728, python/18439, python/18779
12463 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
12464 member. Change type of TYPE member to PyObject *. All uses updated.
12465 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
12466 (gdbpy_create_lazy_string_object): Flag bad length values.
12467 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
12468 Handle typedefs in incoming type.
12469 (stpy_lazy_string_elt_type): New function.
12470 (gdbpy_extract_lazy_string): Call it.
12471 * python/py-value.c (valpy_lazy_string): Flag bad length values.
12472 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
12473 typedefs in incoming type.
12474
a3a5fecc
DE
124752017-03-16 Doug Evans <dje@google.com>
12476
12477 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
12478 * guile/scm-type.c (tyscm_scm_to_type): New function.
12479
28f1c605
JW
124802017-03-16 Jiong Wang <jiong.wang@arm.com>
12481
12482 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
12483 "ULONGEST" for "skip".
12484
87c336f6
AA
124852017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
12486
12487 PR gdb/21220
12488 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
12489 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
12490 (inf_ptrace_peek_poke): ...here. New function. Now also loop
12491 over ptrace peek/poke until end of buffer or error.
12492
cf81cf60
SM
124932017-03-14 Simon Marchi <simon.marchi@ericsson.com>
12494
12495 * parse.c (length_of_subexp): Make static.
12496 * parser-defs.h (length_of_subexp): Remove.
12497
a379284a
AA
124982017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
12499
12500 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
12501 as well.
12502
8a6200ba
PA
125032017-03-14 Pedro Alves <palves@redhat.com>
12504
12505 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
12506 (main): Use std::unique_ptr. Remove calls to
12507 cp_demangled_name_parse_free.
12508
f79ec206
SM
125092017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12510
12511 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
12512 alphabsd_store_inferior_registers): Use regcache->ptid instead
12513 of inferior_ptid.
12514
edb5fb00
SM
125152017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12516
12517 * aix-thread.c (aix_thread_fetch_registers,
12518 aix_thread_store_registers): Use regcache->ptid instead of
12519 inferior_ptid.
12520
55119686
SM
125212017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12522
12523 * aarch64-linux-nat.c (fetch_gregs_from_thread,
12524 store_gregs_to_thread, fetch_fpregs_from_thread,
12525 store_fpregs_to_thread): Use regcache->ptid instead of
12526 inferior_ptid.
12527
6a06fbb7
SM
125282017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12529
12530 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
12531 amd64_linux_fetch_inferior_registers): Use regcache->ptid
12532 instead of inferior_ptid.
12533
c6386875
SM
125342017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12535
12536 * target.c (target_fetch_registers, target_store_registers): Add
12537 assert.
12538
ddaaf0fb
SM
125392017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12540
12541 * regcache.h (regcache_get_ptid): New function.
12542 * regcache.c (regcache_get_ptid): New function.
12543
b9da89d1 125442017-03-13 Mark Wielaard <mark@klomp.org>
12545
12546 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
12547
5f4d1085
KS
125482017-03-10 Keith Seitz <keiths@redhat.com>
12549
12550 PR c++/8218
12551 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
12552
c65d6b55
PA
125532017-03-08 Pedro Alves <palves@redhat.com>
12554
12555 PR gdb/18360
12556 * infrun.c (start_step_over, do_target_resume, resume)
12557 (restart_threads): Assert we're not resuming a thread that is
12558 meant to be stopped.
12559 (infrun_thread_stop_requested_callback): Delete.
12560 (infrun_thread_stop_requested): If the thread is internally
12561 stopped, queue a pending stop event and clear the thread's
12562 inline-frame state.
12563 (handle_stop_requested): New function.
12564 (handle_syscall_event, handle_inferior_event_1): Use
12565 handle_stop_requested.
12566 (handle_stop_requested): New function.
12567 (handle_signal_stop): Set the thread's stop_signal here instead of
12568 at caller.
12569 (finish_step_over): Clear step over info unconditionally.
12570 (handle_signal_stop): If the user had interrupted the event
12571 thread, consider the stop a random signal.
12572 (handle_signal_stop) <signal arrived while stepping over
12573 breakpoint>: Don't restart threads here.
12574 (stop_waiting): Don't clear step-over info here.
12575
15c22686
PA
125762017-03-08 Pedro Alves <palves@redhat.com>
12577
12578 PR 21206
12579 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
12580 goes to argument 2, not 1.
12581
6e5d74e7
PA
125822017-03-08 Pedro Alves <palves@redhat.com>
12583
12584 PR cli/21218
12585 * top.c (gdb_readline_wrapper): Avoid passing NULL to
12586 display_gdb_prompt.
12587 (command_line_input): Add comment.
12588
9753a2f6
PA
125892017-03-08 Pedro Alves <palves@redhat.com>
12590
12591 PR tui/21216
12592 * tui/tui-file.c (tui_file::write): New.
12593 * tui/tui-file.h (tui_file): Override "write".
12594 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
12595 factored out from ...
12596 (tui_puts): ... here.
12597 (tui_putc): Use them.
12598 (tui_write): New function.
12599 * tui/tui-io.h (tui_write): Declare.
12600
1672e0d9
SDJ
126012017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
12602
12603 * Makefile.in (SFILES): Replace "environ.c" with
12604 "common/environ.c".
12605 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
12606 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
12607 to...
12608 * common/environ.c: ... here.
12609 * environ.h: Moved to...
12610 * common/environ.h: ... here.
12611
f7bb4e3a
PB
126122017-03-07 Peter Bergner <bergner@vnet.ibm.com>
12613
12614 * gdbarch.sh (pstring_ptr): New static function.
12615 (gdbarch_disassembler_options): Use it.
12616 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
12617 not valid_disassembler_option->name.
12618 * gdbarch.c: Regenerate.
12619
e45ced6c
PB
126202017-03-07 Peter Bergner <bergner@vnet.ibm.com>
12621
12622 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
12623
5f6fd321
PA
126242017-03-07 Pedro Alves <palves@redhat.com>
12625
12626 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
12627
6dbb839a 126282017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
12629
12630 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
12631 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
12632 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 12633 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 12634
d274ecf4
SM
126352017-03-06 Simon Marchi <simon.marchi@ericsson.com>
12636
12637 * xtensa-linux-nat.c (fetch_gregs): Remove const.
12638
df97be55
SM
126392017-03-03 Simon Marchi <simon.marchi@ericsson.com>
12640
12641 * remote.c (remote_add_target_side_commands): Use range-based
12642 for loop.
12643
7d45f3df
YQ
126442017-03-03 Yao Qi <yao.qi@linaro.org>
12645
12646 PR gdb/21165
12647 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
12648 value is lazy.
12649 * valprint.c (common_val_print): Likewise.
12650
65b48a81
PB
126512017-02-28 Peter Bergner <bergner@vnet.ibm.com>
12652
12653 * NEWS: Mention new set/show disassembler-options commands.
12654 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
12655 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
12656 (prospective_options): New static variable.
12657 (gdb_disassembler::gdb_disassembler): Initialize
12658 m_di.disassembler_options.
12659 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
12660 (get_disassembler_options): New function.
12661 (set_disassembler_options): Likewise.
12662 (set_disassembler_options_sfunc): Likewise.
12663 (show_disassembler_options_sfunc): Likewise.
12664 (disassembler_options_completer): Likewise.
12665 (_initialize_disasm): Likewise.
12666 * disasm.h (get_disassembler_options): New prototype.
12667 (set_disassembler_options): Likewise.
12668 * gdbarch.sh (gdbarch_disassembler_options): New variable.
12669 (gdbarch_verify_disassembler_options): Likewise.
12670 * gdbarch.c: Regenerate.
12671 * gdbarch.h: Likewise.
12672 * arm-tdep.c (num_disassembly_options): Delete.
12673 (set_disassembly_style): Likewise.
12674 (arm_disassembler_options): New static variable.
12675 (set_disassembly_style_sfunc): Convert short style name into long
12676 option name. Call set_disassembler_options.
12677 (show_disassembly_style_sfunc): New function.
12678 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
12679 set_gdbarch_verify_disassembler_options.
12680 (_initialize_arm_tdep): Delete regnames variable and update callers.
12681 (arm_disassembler_options): Initialize.
12682 (disasm_options): New variable.
12683 (num_disassembly_options): Rename from this...
12684 (num_disassembly_styles): ...to this. Compute by scanning through
12685 disasm_options.
12686 (valid_disassembly_styles): Initialize using disasm_options.
12687 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
12688 set_arm_regname_option.
12689 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
12690 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
12691 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
12692 set_gdbarch_verify_disassembler_options.
12693 * s390-tdep.c (s390_disassembler_options): New static variable.
12694 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
12695 set_gdbarch_verify_disassembler_options.
12696
d538e36d
SM
126972017-02-27 Simon Marchi <simon.marchi@ericsson.com>
12698
12699 * remote.c (remote_add_target_side_condition): Remove "struct"
12700 keyword from range-based for loop.
12701
83621223
SM
127022017-02-27 Simon Marchi <simon.marchi@ericsson.com>
12703
12704 * remote.c (remote_add_target_side_condition): Use range-based
12705 for loop. Update comment.
12706
2123df0e
YQ
127072017-02-27 Yao Qi <yao.qi@linaro.org>
12708
12709 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
12710
8e368124
AH
127112017-02-26 Alan Hayward <alan.hayward@arm.com>
12712
12713 * regcache.c (regcache_raw_update): New function.
12714 (regcache_raw_read): Move code to regcache_raw_update.
12715 * regcache.h (regcache_raw_update): New declaration.
12716 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
12717
a49dd8dd
JK
127182017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
12719
12720 * dwarf2read.c (create_debug_type_hash_table): Initialize
12721 header.signature and header.type_offset_in_tu.
12722
34e4bae9
PA
127232017-02-24 Pedro Alves <palves@redhat.com>
12724
12725 * symtab.c (make_file_symbol_completion_list_1): Use
12726 add_symtab_completions.
12727
b0e4b369
AH
127282017-02-24 Alan Hayward <alan.hayward@arm.com>
12729
12730 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
12731
975c21ab
AH
127322017-02-24 Alan Hayward <alan.hayward@arm.com>
12733
12734 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
12735 I386_MAX_REGISTER_SIZE.
12736 (i386_pseudo_register_write): Likewise.
12737 (i386_process_record): Likewise.
12738 * i387-tdep.c (i387_supply_xsave): Likewise.
12739 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
12740 (store_register): Likewise.
12741
14bc53a8
PA
127422017-02-23 Pedro Alves <palves@redhat.com>
12743
12744 * ada-lang.c: Include "common/function-view.h".
12745 (ada_iterate_over_symbols): Adjust to use function_view as
12746 callback type.
12747 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
12748 (ada_make_symbol_completion_list): Use a lambda.
12749 (ada_exc_search_name_matches): Delete.
12750 (name_matches_regex): New.
12751 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
12752 * compile/compile-c-support.c: Include "common/function-view.h".
12753 (print_one_macro): Change prototype to accept a ui_file pointer.
12754 (write_macro_definitions): Use a lambda.
12755 * dwarf2read.c: Include "common/function-view.h".
12756 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
12757 (dw2_expand_symtabs_matching): Adjust to use function_view as
12758 callback type.
12759 * language.h: Include "common/function-view.h".
12760 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
12761 function_view as callback type.
12762 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
12763 * linespec.c: Include "common/function-view.h".
12764 (collect_info::add_symbol): New method.
12765 (struct symbol_and_data_callback, iterate_inline_only, struct
12766 symbol_matcher_data, iterate_name_matcher): Delete.
12767 (iterate_over_all_matching_symtabs): Adjust to use function_view
12768 as callback type and lambdas.
12769 (iterate_over_file_blocks): Adjust to use function_view as
12770 callback type.
12771 (decode_compound_collector): Now a class with private fields.
12772 (decode_compound_collector::release_symbols): New method.
12773 (collect_one_symbol): Rename to...
12774 (decode_compound_collector::operator()): ... this and adjust.
12775 (lookup_prefix_sym): decode_compound_collector construction bits
12776 move to decode_compound_collector ctor. Pass the
12777 decode_compound_collector object directly as callback. Remove
12778 cleanups and use decode_compound_collector::release_symbols
12779 instead.
12780 (symtab_collector): Now a class with private fields.
12781 (symtab_collector::release_symtabs): New method.
12782 (add_symtabs_to_list): Rename to...
12783 (symtab_collector::operator()): ... this and adjust.
12784 (collect_symtabs_from_filename): symtab_collector construction
12785 bits move to symtab_collector ctor. Pass the symtab_collector
12786 object directly as callback. Remove cleanups and use
12787 symtab_collector::release_symtabs instead.
12788 (collect_symbols): Delete.
12789 (add_matching_symbols_to_info): Use lambdas.
12790 * macrocmd.c (print_macro_callback): Delete.
12791 (info_macro_command): Use a lambda.
12792 (info_macros_command): Pass print_macro_definition as callable
12793 directly.
12794 (print_one_macro): Remove 'ignore' parameter.
12795 (macro_list_command): Adjust.
12796 * macrotab.c (macro_for_each_data::fn): Now a function_view.
12797 (macro_for_each_data::user_data): Delete field.
12798 (foreach_macro): Adjust to call the function_view.
12799 (macro_for_each): Adjust to use function_view as callback type.
12800 (foreach_macro_in_scope): Adjust to call the function_view.
12801 (macro_for_each_in_scope): Adjust to use function_view as callback
12802 type.
12803 * macrotab.h: Include "common/function-view.h".
12804 (macro_callback_fn): Declare a prototype instead of a pointer.
12805 Remove "user_data" parameter.
12806 (macro_for_each, macro_for_each_in_scope): Adjust to use
12807 function_view as callback type.
12808 * psymtab.c (partial_map_expand_apply)
12809 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
12810 Adjust to use function_view as callback type and to return bool.
12811 (psym_expand_symtabs_matching): Adjust to use function_view as
12812 callback types.
12813 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
12814 to use function_view as callback type and to return bool.
12815 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
12816 callback types.
12817 * symfile.c (expand_symtabs_matching): Adjust to use function_view
12818 as callback types.
12819 * symfile.h: Include "common/function-view.h".
12820 (expand_symtabs_file_matcher_ftype)
12821 (expand_symtabs_symbol_matcher_ftype)
12822 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
12823 return bool.
12824 (quick_symbol_functions::map_symtabs_matching_filename)
12825 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
12826 function_view as callback type and return bool.
12827 (expand_symtabs_matching): Adjust to use function_view as callback
12828 type.
12829 (maintenance_expand_name_matcher)
12830 (maintenance_expand_file_matcher): Delete.
12831 (maintenance_expand_symtabs): Use lambdas.
12832 * symtab.c (iterate_over_some_symtabs): Adjust to use
12833 function_view as callback types and return bool.
12834 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
12835 of a cleanup.
12836 (lookup_symtab_callback): Delete.
12837 (lookup_symtab): Use a lambda.
12838 (iterate_over_symbols): Adjust to use function_view as callback
12839 type.
12840 (struct search_symbols_data, search_symbols_file_matches)
12841 (search_symbols_name_matches): Delete.
12842 (search_symbols): Use a pair of lambdas.
12843 (struct add_name_data, add_macro_name, symbol_completion_matcher)
12844 (symtab_expansion_callback): Delete.
12845 (default_make_symbol_completion_list_break_on_1): Use lambdas.
12846 * symtab.h: Include "common/function-view.h".
12847 (iterate_over_some_symtabs): Adjust to use function_view as
12848 callback type and return bool.
12849 (iterate_over_symtabs): Adjust to use function_view as callback
12850 type.
12851 (symbol_found_callback_ftype): Remove 'data' parameter and return
12852 bool.
12853 (iterate_over_symbols): Adjust to use function_view as callback
12854 type.
12855
07e253aa
PA
128562017-02-23 Pedro Alves <palves@redhat.com>
12857
12858 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
12859 (%.o) <unittests/%.c>: New pattern.
12860 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
12861 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
12862 * common/function-view.h: New file.
12863 * unittests/function-view-selftests.c: New file.
12864 * configure: Regenerate.
12865
8eaf5320
SM
128662017-02-23 Simon Marchi <simon.marchi@ericsson.com>
12867
12868 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
12869 inferior_ptid.
12870 * go32-nat.c (go32_thread_alive): Likewise.
12871
38768751
YQ
128722017-02-23 Yao Qi <yao.qi@linaro.org>
12873
12874 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
12875 delete.
12876
0a8beaba
YQ
128772017-02-23 Yao Qi <yao.qi@linaro.org>
12878
12879 * varobj.c (varobj_clear_saved_item): Use delete instead of
12880 xfree.
12881 (update_dynamic_varobj_children): Likewise.
12882
58fdfd2c
JK
128832017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12884
12885 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
12886
1b90b139
SM
128872017-02-21 Simon Marchi <simon.marchi@ericsson.com>
12888
12889 * common/enum-flags.h (enum_flags::enum_flags): Initialize
12890 m_enum_value to 0 in default constructor.
12891
2039d74e
EBM
128922017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12893
12894 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
12895 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
12896 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
12897 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
12898 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
12899 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
12900 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
12901 IS_STORE_CONDITIONAL_INSN.
12902
7814882a
JK
129032017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12904
12905 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
12906
0ae60b63
JK
129072017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12908
12909 * NEWS (Changes since GDB 7.12): Add DWARF-5.
12910
0224619f
JK
129112017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12912
12913 * dwarf2read.c (skip_one_die, read_attribute_value)
12914 (dwarf2_const_value_attr, dump_die_shallow)
12915 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
12916 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
12917
0af92d60
JK
129182017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12919
12920 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
12921 (dwarf_parse_macro_header): Accept DWARF version 5.
12922 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
12923
216f72a1
JK
129242017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12925
12926 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
12927 DW_AT_GNU_*.
12928 * common/common-exceptions.h (enum errors): Likewise.
12929 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
12930 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
12931 (dwarf_expr_context::execute_stack_op): Likewise.
12932 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
12933 Likewise.
12934 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
12935 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12936 (show_entry_values_debug, call_site_to_target_addr)
12937 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
12938 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
12939 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
12940 (value_of_dwarf_block_entry, indirect_pieced_value)
12941 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
12942 (disassemble_dwarf_expression): Likewise.
12943 * dwarf2read.c (process_die, inherit_abstract_dies)
12944 (read_call_site_scope): Likewise.
12945 * gdbtypes.h (struct func_type, struct call_site_parameter)
12946 (struct call_site): Likewise.
12947 * stack.c (read_frame_arg): Likewise.
12948 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
12949
43988095
JK
129502017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12951
12952 * defs.h (read_unsigned_leb128): New declaration.
12953 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
12954 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
12955 (dwarf2_find_location_expression): Call also
12956 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
12957 * dwarf2loc.h (dwarf2_version): New declaration.
12958 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
12959 rnglists.
12960 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
12961 .debug_rnglists.
12962 (struct dwop_section_names): Add loclists_dwo.
12963 (dwop_section_names): Add .debug_loclists.dwo.
12964 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
12965 (struct dwarf2_per_cu_data): Add dwarf_version.
12966 (struct dwo_sections): Add loclists.
12967 (struct attr_abbrev): Add implicit_const.
12968 (read_indirect_line_string): New declaration.
12969 (read_unsigned_leb128): Delete declaration.
12970 (rcuh_kind): New definition.
12971 (read_and_check_comp_unit_head): Change parameter
12972 is_debug_types_section to section_kind.
12973 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
12974 (read_comp_unit_head): Change parameter abfd to section, add parameter
12975 section_kind. Handle DWARF-5.
12976 (error_check_comp_unit_head): Accept also DWARF version 5.
12977 (read_and_check_comp_unit_head): Change parameter
12978 is_debug_types_section to section_kind.
12979 (read_and_check_type_unit_head): Delete function.
12980 (read_abbrev_offset): Handle DWARF-5.
12981 (create_debug_type_hash_table): Add parameter section_kind. Process
12982 only DW_UT_type. Use signature and type_offset_in_tu from struct
12983 comp_unit_head.
12984 (create_debug_types_hash_table): Update create_debug_type_hash_table
12985 caller.
12986 (create_all_type_units): Call create_debug_type_hash_table.
12987 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
12988 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
12989 caller.
12990 (skip_one_die): Handle DW_FORM_implicit_const.
12991 (dwarf2_rnglists_process): New function.
12992 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
12993 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
12994 (read_attribute_value): Handle DW_FORM_implicit_const,
12995 DW_FORM_line_strp.
12996 (read_attribute): Handle DW_FORM_implicit_const.
12997 (read_indirect_string_at_offset_from): New function from
12998 read_indirect_string_at_offset.
12999 (read_indirect_string_at_offset): Call
13000 read_indirect_string_at_offset_from.
13001 (read_indirect_line_string_at_offset): New function.
13002 (read_indirect_string): New function comment.
13003 (read_indirect_line_string): New function.
13004 (read_unsigned_leb128): Make it global.
13005 (dwarf2_string_attr): Handle DWARF-5.
13006 (add_include_dir_stub, read_formatted_entries): New functions.
13007 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
13008 Handle DWARF-5.
13009 (per_cu_header_read_in): Update read_comp_unit_head caller.
13010 (dwarf2_version): New function.
13011 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
13012 rnglists.
13013 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
13014 fields.
13015
22d2f3ab
JK
130162017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13017
13018 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
13019
5f46c5a5
JK
130202017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13021
13022 * dwarf2read.c (dwarf2_ranges_process): New function from
13023 dwarf2_ranges_read.
13024 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
13025 dwarf2_ranges_process.
13026
78d4d2c5
JK
130272017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13028
13029 * dwarf2read.c (create_debug_type_hash_table): New function from
13030 create_debug_types_hash_table.
13031 (create_debug_types_hash_table): Call create_debug_type_hash_table.
13032 (create_all_type_units, open_and_init_dwo_file): Update
13033 create_debug_types_hash_table callers.
13034
1b076f25
SDJ
130352017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13036
13037 PR gdb/16188
13038 * fork-child.c (trace_start_error): Fix thinko. va_end should
13039 refer to 'ap', not 'args'.
13040
0db8980c
SDJ
130412017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13042 Pedro Alves <palves@redhat.com>
13043
13044 PR gdb/16188
13045 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
13046 calls succeeded.
13047 * fork-child.c (trace_start_error): New function.
13048 (trace_start_error_with_name): Likewise.
13049 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
13050 * inf-ptrace.c (inf_ptrace_me): Likewise.
13051 * inferior.h (trace_start_error): New prototype.
13052 (trace_start_error_with_name): Likewise.
13053
99e8a4f9
SDJ
130542017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
13055
13056 PR gdb/21164
13057 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
13058 NULL before using it.
13059 * symmisc.c (maintenance_print_symbols): Likewise.
13060 (maintenance_print_msymbols): Likewise.
13061
4e746bb6
TW
130622017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13063
13064 * NEWS: Add record Python bindings entry.
13065
130662017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13067
13068 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
13069 py-record-full.o.
13070 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
13071 * python/py-record-btrace.c, python/py-record-btrace.h,
13072 python/py-record-full.c, python/py-record-full.h: New file.
13073 * python/py-record.c: Add include for py-record-btrace.h and
13074 py-record-full.h.
13075 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
13076 recpy_instruction_history, recpy_function_call_history, recpy_begin,
13077 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
13078 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
13079 New definition.
13080 (gdbpy_initialize_btrace): New export.
13081 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
13082
130832017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13084
13085 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
13086 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
13087 * python/py-record.c: New file.
13088 * python/python-internal.h (gdbpy_start_recording,
13089 gdbpy_current_recording, gdpy_stop_recording,
13090 gdbpy_initialize_record): New export.
13091 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
13092 (python_GdbMethods): Add gdbpy_start_recording,
13093 gdbpy_current_recording and gdbpy_stop_recording.
13094
130952017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13096
13097 * record-btrace.c (record_btrace_record_method): New function.
13098 (init_record_btrace_ops): Initialize to_record_method.
13099 * record-full.c (record_full_record_method): New function.
13100 (init_record_full_ops, init_record_full_core_ops): Add
13101 record_full_record_method.
13102 * record.h (enum record_method): New enum.
13103 * target-debug.h (target_debug_print_enum_record_method: New define.
13104 * target-delegates.c: Regenerate.
13105 * target.c (target_record_method): New function.
13106 * target.h: Include record.h.
13107 (struct target_ops) <to_record_method>: New field.
13108 (target_record_method): New export.
13109
131102017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13111
13112 * record.h (record_start, record_stop): New export.
13113 * record.c (record_start, record_stop): New function.
13114
131152017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13116
13117 * btrace.c (btrace_fetch): Copy function call segments pointer
13118 into a vector.
13119 (btrace_clear): Clear the vector.
13120 (btrace_find_insn_by_number): Use binary search to find the correct
13121 function call segment.
13122 * btrace.h (brace_fun_p): New typedef.
13123 (struct btrace_thread_info) <functions>: New field.
13124
131252017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13126
13127 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
13128 * btrace.c (btrace_decode_error): ... here. New function.
13129 * btrace.h (btrace_decode_error): New export.
13130
131312017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13132
13133 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
13134 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
13135 btrace_find_insn_by_number): Remove special case for gaps.
13136 * btrace.h (btrace_insn_get_error): New export.
13137 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
13138 * record-btrace.c (btrace_insn_history): Print number for gaps.
13139 (record_btrace_info, record_btrace_goto): Handle gaps.
13140
3f77c769
TT
131412017-02-14 Tom Tromey <tom@tromey.com>
13142
13143 PR python/13598:
13144 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
13145 event.
13146 * python/py-evts.c (gdbpy_initialize_py_events): Add
13147 before_prompt registry.
13148 * python/py-events.h (events_object) <before_prompt>: New field.
13149
4c2c7ac6
MM
131502017-02-14 Markus Metzger <markus.t.metzger@intel.com>
13151
13152 * btrace.c (ftrace_new_switch): Preserve up link and flags.
13153
5cf30ebf
LM
131542017-02-13 Luis Machado <lgustavo@codesourcery.com>
13155
13156 * symfile (_initialize_symfile): Add usage text to the load command's
13157 help text.
13158
26a06916
SM
131592017-02-10 Simon Marchi <simon.marchi@ericsson.com>
13160
13161 * utils.c (defaulted_query): Don't query on secondary UIs.
13162
0b145e37
TT
131632017-02-10 Tom Tromey <tom@tromey.com>
13164
13165 * rust-lang.c (rust_get_disr_info): Remove unused variable.
13166
2d8365c4
TT
131672017-02-10 Tom Tromey <tom@tromey.com>
13168
13169 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
13170 "cleanup" local.
13171 * python/py-type.c (typy_legacy_template_argument): Remove
13172 unnecessary "cleanup" local.
13173
2bb8f231
TT
131742017-02-10 Tom Tromey <tom@tromey.com>
13175
13176 * python/python.c (do_start_initialization): New function, from
13177 _initialize_python.
13178 (_initialize_python): Call do_start_initialization.
13179 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
13180 goto.
13181
1bdfaf42
TT
131822017-02-10 Tom Tromey <tom@tromey.com>
13183
13184 * python/py-prettyprint.c (pretty_print_one_value): Use
13185 gdbpy_ref.
13186
88b6faea
TT
131872017-02-10 Tom Tromey <tom@tromey.com>
13188
13189 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
13190 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
13191 gdbpy_ref.
13192 * python/py-type.c (field_new): Use gdbpy_ref.
13193 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
13194 gdbpy_ref.
13195 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
13196 (py_free_pspace): Likewise.
13197 (pspace_to_pspace_object): Likewise.
13198 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
13199 (py_free_objfile): Likewise.
13200 (objfile_to_objfile_object): Likewise.
13201 * python/py-inferior.c (delete_thread_object): Use
13202 gdbpy_ref.
13203 (infpy_read_memory): Likewise.
13204 (py_free_inferior): Likewise.
13205 * python/py-evtregistry.c (create_eventregistry_object): Use
13206 gdbpy_ref.
13207 * python/py-event.c (create_event_object): Use gdbpy_ref.
13208
7780f186
TT
132092017-02-10 Tom Tromey <tom@tromey.com>
13210
13211 * python/py-ref.h (gdbpy_ref_policy): Now a template.
13212 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
13213 used.
13214 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
13215 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
13216 python/py-exitedevent.c, python/py-finishbreakpoint.c,
13217 python/py-framefilter.c, python/py-function.c,
13218 python/py-inferior.c, python/py-infevents.c,
13219 python/py-linetable.c, python/py-newobjfileevent.c,
13220 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
13221 python/py-signalevent.c, python/py-stopevent.c,
13222 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
13223 python/py-unwind.c, python/py-utils.c, python/py-value.c,
13224 python/py-varobj.c, python/py-xmethods.c, python/python.c,
13225 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
13226
d4b0bb18
TT
132272017-02-10 Tom Tromey <tom@tromey.com>
13228
13229 * ui-out.h (ui_out_emit_type): New class.
13230 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
13231 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
13232 and ui_out_emit_tuple.
13233 (enumerate_locals): Likewise.
13234 (py_mi_print_variables, py_print_locals, py_print_args): Use
13235 ui_out_emit_list.
13236 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
13237 ui_out_emit_list.
13238 * common/gdb_optional.h: New file.
13239
f67f945c
MG
132402017-02-10 Martin Galvan <martingalvan@sourceware.org>
13241
13242 * MAINTAINERS (Write After Approval): Update my e-mail address.
13243
18da0c51
MG
132442017-02-10 Martin Galvan <martingalvan@sourceware.org>
13245
13246 PR gdb/21122
13247 * breakpoint.c (_initialize_breakpoint): Update the help description
13248 of the 'commands' command to indicate that it takes a list argument.
13249
62c14536
SM
132502017-02-09 Simon Marchi <simon.marchi@ericsson.com>
13251
13252 * interps.c (current_interp_set_logging): Remove "return".
13253
ff6fa247
GB
132542017-02-09 Gary Benson <gbenson@redhat.com>
13255
13256 * symtab.c (add_symtab_completions): Prevent NULL pointer
13257 dereference.
13258
a474bd8e
PA
132592017-02-08 Pedro Alves <palves@redhat.com>
13260
13261 * interps.c (interp::interp): Remove reference to quiet_p.
13262 (interp_set): Make static. Remove dead "Switching to" output
13263 code.
13264 (interp_quiet_p, interp_set_quiet): Delete.
13265 (interpreter_exec_cmd): Don't set the interpreter quiet.
13266 * interps.h (interp_quiet_p): Make static.
13267 (class interp) <quiet_p>: Remove field
13268
3d7b173c
JG
132692017-02-08 Jerome Guitton <guitton@adacore.com>
13270
604c4576
JG
13271 * cli/cli-decode.c (find_command_name_length): Make it extern.
13272 * cli/cli-decode.h (find_command_name_length): Declare.
13273 * cli/cli-script.c (command_name_equals, line_first_arg):
13274 New functions.
13275 (process_next_line): Use cli-decode to parse command names.
13276 (build_command_line): Make args a constant pointer.
13277
132782017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 13279
3d7b173c
JG
13280 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
13281 Remove case-insensitive search.
13282
1291063d
JM
132832017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
13284
13285 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
13286 at the end of the line. Avoids an ARI warning.
13287
20b477a7
LM
132882017-02-06 Luis Machado <lgustavo@codesourcery.com>
13289
13290 * NEWS: Mention support for record/replay of Intel 64 rdrand and
13291 rdseed instructions.
13292 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
13293
3f7b46f2
IR
132942017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
13295
13296 PR tdep/20936
13297 Provide and use sparc32 and sparc64 target description XML files.
13298 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
13299 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
13300 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
13301 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
13302 * features/sparc/sparc32-solaris.xml: New file.
13303 * features/sparc/sparc64-solaris.xml: New file.
13304 * features/sparc/sparc32-solaris.c: Generated.
13305 * features/sparc/sparc64-solaris.c: Generated.
13306 * sparc-tdep.h: Account for differences in target descriptions.
13307 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
13308 (sparc32_register_type): Use target provided registers.
13309 (validate_tdesc_registers): New function.
13310 (sparc32_gdbarch_init): Use tdesc_has_registers.
13311 Set pseudoregister functions.
13312 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
13313 (sparc64_register_type): Use target provided registers.
13314 (sparc64_init_abi): Set pseudoregister functions.
13315
f0fd41c1
TT
133162017-02-03 Tom Tromey <tom@tromey.com>
13317
13318 PR rust/21097:
13319 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
13320 with a single member.
13321
d6f9b0fb
PA
133222017-02-03 Pedro Alves <palves@redhat.com>
13323
13324 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
13325 (cli_interp_base::~cli_interp_base): New.
13326 (cli_interp): New struct.
13327 (as_cli_interp): Cast the interp itself to cli_interp.
13328 (cli_interpreter_pre_command_loop): Rename to ...
13329 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
13330 parameter.
13331 (cli_interpreter_init): Rename to ...
13332 (cli_interp::init): ... this. Remove 'self' parameter. Use
13333 boolean. Make extern.
13334 (cli_interpreter_resume): Rename to ...
13335 (cli_interp::resume): ... this. Remove 'data' parameter. Make
13336 extern.
13337 (cli_interpreter_suspend): Rename to ...
13338 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
13339 extern.
13340 (cli_interpreter_exec): Rename to ...
13341 (cli_interp::exec): ... this. Remove 'data' parameter. Make
13342 extern.
13343 (cli_interpreter_supports_command_editing): Rename to ...
13344 (cli_interp_base::supports_command_editing): ... this. Remove
13345 'interp' parameter. Make extern.
13346 (cli_ui_out): Rename to ...
13347 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
13348 Make extern.
13349 (cli_set_logging): Rename to ...
13350 (cli_interp_base::set_logging): ... this. Remove 'interp'
13351 parameter. Make extern.
13352 (cli_interp_procs): Delete.
13353 (cli_interp_factory): Adjust to use "new".
13354 * cli/cli-interp.h: Include "interps.h".
13355 (struct cli_interp_base): New struct.
13356 * interps.c (struct interp): Delete. Fields moved to interps.h.
13357 (interp_new): Delete.
13358 (interp::interp, interp::~interp): New.
13359 (interp_set): Use bool, and return void. Assume the interpreter
13360 has suspend, init and resume methods, and that the all return
13361 void.
13362 (set_top_level_interpreter): interp_set returns void.
13363 (interp_ui_out): Adapt.
13364 (current_interp_set_logging): Adapt.
13365 (interp_data): Delete.
13366 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
13367 (interp_exec): Adapt.
13368 (top_level_interpreter_data): Delete.
13369 * interps.h (interp_init_ftype, interp_resume_ftype)
13370 (interp_suspend_ftype, interp_exec_ftype)
13371 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
13372 (class interp): New.
13373 (interp_new): Delete.
13374 (interp_set): Now returns void. Use bool.
13375 (interp_data, top_level_interpreter_data): Delete.
13376 * mi/mi-common.h: Include interps.h.
13377 (class mi_interp): Inherit from interp. Define a ctor. Declare
13378 init, resume, suspect, exec, interp_ui_out, set_logging and
13379 pre_command_loop methods.
13380 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
13381 (mi_interpreter_init): Rename to ...
13382 (mi_interp::init): ... this. Remove the 'interp' parameter, use
13383 bool, return void and make extern. Adjust.
13384 (mi_interpreter_resume): ... Rename to ...
13385 (mi_interp::resume): ... this. Remove the 'data' parameter,
13386 return void and make extern. Adjust.
13387 (mi_interpreter_suspend): ... Rename to ...
13388 (mi_interp::suspend): ... this. Remove the 'data' parameter,
13389 return void and make extern. Adjust.
13390 (mi_interpreter_exec): ... Rename to ...
13391 (mi_interp::exec): ... this. Remove the 'data' parameter and make
13392 extern. Adjust.
13393 (mi_interpreter_pre_command_loop): ... Rename to ...
13394 (mi_interp::pre_command_loop): ... this. Remove the 'self'
13395 parameter and make extern.
13396 (mi_on_normal_stop_1): Adjust.
13397 (mi_ui_out): Rename to ...
13398 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
13399 parameter and make extern. Adjust.
13400 (mi_set_logging): Rename to ...
13401 (mi_interp::set_logging): ... this. Remove the 'interp'
13402 parameter and make extern. Adjust.
13403 (mi_interp_procs): Delete.
13404 (mi_interp_factory): Adjust to use 'new'.
13405 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
13406 (mi_print_exception, mi_execute_command, mi_load_progress):
13407 Adjust.
13408 * tui/tui-interp.c (tui_interp): New class.
13409 (as_tui_interp): Return a tui_interp pointer.
13410 (tui_on_normal_stop, tui_on_signal_received)
13411 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
13412 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
13413 to use interp::interp_ui_out.
13414 (tui_init): Rename to ...
13415 (tui_interp::init): ... this. Remove the 'self' parameter, use
13416 bool, return void and make extern. Adjust.
13417 (tui_resume): Rename to ...
13418 (tui_interp::resume): ... this. Remove the 'data' parameter,
13419 return void and make extern. Adjust.
13420 (tui_suspend): Rename to ...
13421 (tui_interp::suspend): ... this. Remove the 'data' parameter,
13422 return void and make extern. Adjust.
13423 (tui_ui_out): Rename to ...
13424 (tui_interp::interp_ui_out): ... this. Remove the 'self'
13425 parameter, and make extern. Adjust.
13426 (tui_exec): Rename to ...
13427 (tui_interp::exec): ... this. Remove the 'data' parameter and
13428 make extern.
13429 (tui_interp_procs): Delete.
13430 (tui_interp_factory): Use "new".
13431
65c40c95
TT
134322017-02-02 Tom Tromey <tom@tromey.com>
13433
13434 * rust-exp.y (ends_raw_string, space_then_number)
13435 (rust_identifier_start_p): Return bool.
13436 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
13437 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
13438 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
13439 (rust_chartype_p): Return bool.
13440 (val_print_struct, rust_print_struct_def, rust_print_type):
13441 Update.
13442 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
13443 Return bool.
13444
b50f188d
TT
134452017-02-02 Tom Tromey <tom@tromey.com>
13446
13447 * rust-lang.c: Reindent.
13448
03c85b11
TT
134492017-02-02 Tom Tromey <tom@tromey.com>
13450
13451 * rust-lang.h (rust_crate_for_block): Update.
13452 * rust-lang.c (rust_crate_for_block): Return std::string.
13453 (rust_get_disr_info): Use std:;string, not
13454 gdb::unique_xmalloc_ptr.
13455 * rust-exp.y (crate_name): Update.
13456
9b6da501
PA
134572017-02-02 Pedro Alves <palves@redhat.com>
13458
13459 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
13460 field out of gdb_disassembler_test and make it static.
13461
ec4cb20b
PA
134622017-02-02 Pedro Alves <palves@redhat.com>
13463
13464 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
13465 mi1_interp and mi_interp fields.
13466
5be5dbf0
PA
134672017-02-02 Pedro Alves <palves@redhat.com>
13468
616268b6
PA
13469 * cli/cli-interp.c (struct saved_output_files, saved_output):
13470 Moved from cli/cli-logging.c.
13471 (cli_set_logging): New function.
13472 (cli_interp_procs): Install cli_set_logging.
13473 * cli/cli-interp.h (make_logging_output, cli_set_logging):
13474 Declare.
13475 * cli/cli-logging.c (struct saved_output_files, saved_output):
13476 Moved to cli/cli-interp.c.
13477 (pop_output_files): Don't save outputs here.
13478 (make_logging_output): New function.
13479 (handle_redirections): Don't build tee nor save previous outputs
13480 here.
13481 * interps.c (current_interp_set_logging): Change prototype.
13482 Assume there's always a set_logging_proc method installed.
13483 * interps.h (interp_set_logging_ftype): Change prototype.
13484 (current_interp_set_logging): Change prototype and adjust comment.
13485 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
13486 use make_logging_output.
13487 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
134882017-02-02 Pedro Alves <palves@redhat.com>
13489
5be5dbf0
PA
13490 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
13491 from ...
13492 (set_logging_overwrite): ... here.
13493 (logging_no_redirect_file): Delete.
13494 (set_logging_redirect): Don't handle redirection on the fly.
13495 Instead warn that "logging off" / "logging on" is necessary.
13496 (pop_output_files): Delete references to logging_no_redirect_file.
13497 (show_logging_command): Always speak in terms of what will happen
13498 once logging is reenabled.
13499
c99cc448
PA
135002017-02-02 Pedro Alves <palves@redhat.com>
13501
13502 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
13503
8b172ce7
PA
135042017-02-02 Pedro Alves <palves@redhat.com>
13505
13506 * disasm.c (gdb_pretty_print_insn): Rename to ...
13507 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
13508 Remove gdbarch parameter. Adapt to clear the object's buffers
13509 instead of allocating new buffers, and to print using the object's
13510 gdb_disassembler instead of calling gdb_print_insn.
13511 (dump_insns): Use gdb_pretty_print_disassembler.
13512 * disasm.h (gdb_pretty_print_insn): Delete declaration.
13513 (gdb_pretty_print_disassembler): New class.
13514 * record-btrace.c (btrace_insn_history): Use
13515 gdb_pretty_print_disassembler.
13516
d7e74731
PA
135172017-02-02 Pedro Alves <palves@redhat.com>
13518
13519 * ada-lang.c (type_as_string): Use string_file.
13520 * ada-valprint.c (ada_print_floating): Use string_file.
13521 * ada-varobj.c (ada_varobj_scalar_image)
13522 (ada_varobj_get_value_image): Use string_file.
13523 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
13524 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
13525 * breakpoint.c (update_inserted_breakpoint_locations)
13526 (insert_breakpoint_locations, reattach_breakpoints)
13527 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
13528 (print_it_watchpoint): Use string_file.
13529 (save_breakpoints): Use stdio_file.
13530 * c-exp.y (oper): Use string_file.
13531 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
13532 tee_file.
13533 (pop_output_files): Use delete.
13534 (handle_redirections): Use stdio_file and tee_file.
13535 * cli/cli-setshow.c (do_show_command): Use string_file.
13536 * compile/compile-c-support.c (c_compute_program): Use
13537 string_file.
13538 * compile/compile-c-symbols.c (generate_vla_size): Take a
13539 'string_file &' instead of a 'ui_file *'.
13540 (generate_c_for_for_one_variable): Take a 'string_file &' instead
13541 of a 'ui_file *'. Use string_file.
13542 (generate_c_for_variable_locations): Take a 'string_file &'
13543 instead of a 'ui_file *'.
13544 * compile/compile-internal.h (generate_c_for_for_one_variable):
13545 Take a 'string_file &' instead of a 'ui_file *'.
13546 * compile/compile-loc2c.c (push, pushf, unary, binary)
13547 (print_label, pushf_register_address, pushf_register)
13548 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
13549 'ui_file *'. Adjust.
13550 * compile/compile.c (compile_to_object): Use string_file.
13551 * compile/compile.h (compile_dwarf_expr_to_c)
13552 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
13553 'ui_file *'.
13554 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
13555 (replace_typedefs_qualified_name): Use string_file and
13556 obstack_copy0.
13557 * disasm.c (gdb_pretty_print_insn): Use string_file.
13558 (gdb_disassembly): Adjust reference the null_stream global.
13559 (do_ui_file_delete): Delete.
13560 (gdb_insn_length): Use null_stream.
13561 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
13562 * dwarf2loc.c (dwarf2_compile_property_to_c)
13563 (locexpr_generate_c_location, loclist_generate_c_location): Take a
13564 'string_file &' instead of a 'ui_file *'.
13565 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
13566 * dwarf2read.c (do_ui_file_peek_last): Delete.
13567 (dwarf2_compute_name): Use string_file.
13568 * event-top.c (gdb_setup_readline): Use stdio_file.
13569 * gdbarch.sh (verify_gdbarch): Use string_file.
13570 * gdbtypes.c (safe_parse_type): Use null_stream.
13571 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
13572 string_file.
13573 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
13574 'string_file *' instead of a 'ui_file *'.
13575 (gdbscm_arch_disassemble): Use string_file.
13576 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
13577 * guile/scm-ports.c (class ioscm_file_port): Now a class that
13578 inherits from ui_file.
13579 (ioscm_file_port_delete, ioscm_file_port_rewind)
13580 (ioscm_file_port_put): Delete.
13581 (ioscm_file_port_write): Rename to ...
13582 (ioscm_file_port::write): ... this. Remove file_port_magic
13583 checks.
13584 (ioscm_file_port_new): Delete.
13585 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
13586 ui_file_up.
13587 * guile/scm-type.c (tyscm_type_name): Use string_file.
13588 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
13589 Use string_file.
13590 * infcmd.c (print_return_value_1): Use string_file.
13591 * infrun.c (print_target_wait_results): Use string_file.
13592 * language.c (add_language): Use string_file.
13593 * location.c (explicit_to_string_internal): Use string_file.
13594 * main.c (captured_main_1): Use null_file.
13595 * maint.c (maintenance_print_architecture): Use stdio_file.
13596 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
13597 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
13598 event_channel>: Change type to mi_console_file pointer.
13599 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
13600 (mi_console_file_delete): Delete.
13601 (struct mi_console_file): Delete.
13602 (mi_console_file_magic): Delete.
13603 (mi_console_file_new): Delete.
13604 (mi_console_file::mi_console_file): New.
13605 (mi_console_file_delete): Delete.
13606 (mi_console_file_fputs): Delete.
13607 (mi_console_file::write): New.
13608 (mi_console_raw_packet): Delete.
13609 (mi_console_file::flush): New.
13610 (mi_console_file_flush): Delete.
13611 (mi_console_set_raw): Rename to ...
13612 (mi_console_file::set_raw): ... this.
13613 * mi/mi-console.h (class mi_console_file): New class.
13614 (mi_console_file_new, mi_console_set_raw): Delete.
13615 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
13616 (mi_set_logging): Use delete and tee_file. Adjust.
13617 * mi/mi-main.c (output_register): Use string_file.
13618 (mi_cmd_data_evaluate_expression): Use string_file.
13619 (mi_cmd_data_read_memory): Use string_file.
13620 (mi_cmd_execute, print_variable_or_computed): Use string_file.
13621 * mi/mi-out.c (mi_ui_out::main_stream): New.
13622 (mi_ui_out::rewind): Use main_stream and
13623 string_file.
13624 (mi_ui_out::put): Use main_stream and string_file.
13625 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
13626 Allocate a 'string_file' instead.
13627 (mi_out_new): Don't allocate a mem_fileopen stream here.
13628 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
13629 (mi_ui_out::main_stream): Declare method.
13630 * printcmd.c (eval_command): Use string_file.
13631 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
13632 * python/py-arch.c (archpy_disassemble): Use string_file.
13633 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
13634 * python/py-frame.c (frapy_str): Use string_file.
13635 * python/py-framefilter.c (py_print_type, py_print_single_arg):
13636 Use string_file.
13637 * python/py-type.c (typy_str): Use string_file.
13638 * python/py-unwind.c (unwind_infopy_str): Use string_file.
13639 * python/py-value.c (valpy_str): Use string_file.
13640 * record-btrace.c (btrace_insn_history): Use string_file.
13641 * regcache.c (regcache_print): Use stdio_file.
13642 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
13643 * remote.c (escape_buffer): Use string_file.
13644 * rust-lang.c (rust_get_disr_info): Use string_file.
13645 * serial.c (serial_open_ops_1): Use stdio_file.
13646 (do_serial_close): Use delete.
13647 * stack.c (print_frame_arg): Use string_file.
13648 (print_frame_args): Remove local mem_fileopen stream, not used.
13649 (print_frame): Use string_file.
13650 * symmisc.c (maintenance_print_symbols): Use stdio_file.
13651 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
13652 Take a 'string_file *' instead of a 'ui_file *'.
13653 * top.c (new_ui): Use stdio_file and stderr_file.
13654 (free_ui): Use delete.
13655 (execute_command_to_string): Use string_file.
13656 (quit_confirm): Use string_file.
13657 * tracepoint.c (collection_list::append_exp): Use string_file.
13658 * tui/tui-disasm.c (tui_disassemble): Use string_file.
13659 * tui/tui-file.c: Don't include "ui-file.h".
13660 (enum streamtype, struct tui_stream): Delete.
13661 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
13662 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
13663 (tui_file::tui_file): New method.
13664 (tui_file_fputs): Delete.
13665 (tui_file_get_strbuf): Delete.
13666 (tui_file::puts): New method.
13667 (tui_file_adjust_strbuf): Delete.
13668 (tui_file_flush): Delete.
13669 (tui_file::flush): New method.
13670 * tui/tui-file.h: Tweak intro comment.
13671 Include ui-file.h.
13672 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
13673 (tui_file_adjust_strbuf): Delete declarations.
13674 (class tui_file): New class.
13675 * tui/tui-io.c (tui_initialize_io): Use tui_file.
13676 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
13677 (tui_register_format): Use string_stream.
13678 * tui/tui-stack.c (tui_make_status_line): Use string_file.
13679 (tui_get_function_from_frame): Use string_file.
13680 * typeprint.c (type_to_string): Use string_file.
13681 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
13682 (null_stream): New global.
13683 (ui_file_delete): Delete.
13684 (ui_file::ui_file): New.
13685 (null_file_isatty): Delete.
13686 (ui_file::~ui_file): New.
13687 (null_file_rewind): Delete.
13688 (ui_file::printf): New.
13689 (null_file_put): Delete.
13690 (null_file_flush): Delete.
13691 (ui_file::putstr): New.
13692 (null_file_write): Delete.
13693 (ui_file::putstrn): New.
13694 (null_file_read): Delete.
13695 (ui_file::putc): New.
13696 (null_file_fputs): Delete.
13697 (null_file_write_async_safe): Delete.
13698 (ui_file::vprintf): New.
13699 (null_file_delete): Delete.
13700 (null_file::write): New.
13701 (null_file_fseek): Delete.
13702 (null_file::puts): New.
13703 (ui_file_data): Delete.
13704 (null_file::write_async_safe): New.
13705 (gdb_flush, ui_file_isatty): Adjust.
13706 (ui_file_put, ui_file_rewind): Delete.
13707 (ui_file_write): Adjust.
13708 (ui_file_write_for_put): Delete.
13709 (ui_file_write_async_safe, ui_file_read): Adjust.
13710 (ui_file_fseek): Delete.
13711 (fputs_unfiltered): Adjust.
13712 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
13713 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
13714 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
13715 (set_ui_file_data): Delete.
13716 (string_file::~string_file, string_file::write)
13717 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
13718 (do_ui_file_as_string, ui_file_as_string): Delete.
13719 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
13720 (struct mem_file): Delete.
13721 (mem_file_new): Delete.
13722 (stdio_file::stdio_file): New.
13723 (mem_file_delete): Delete.
13724 (stdio_file::stdio_file): New.
13725 (mem_fileopen): Delete.
13726 (stdio_file::~stdio_file): New.
13727 (mem_file_rewind): Delete.
13728 (stdio_file::set_stream): New.
13729 (mem_file_put): Delete.
13730 (stdio_file::open): New.
13731 (mem_file_write): Delete.
13732 (stdio_file_magic, struct stdio_file): Delete.
13733 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
13734 (stdio_file::flush): New.
13735 (stdio_file_read): Rename to ...
13736 (stdio_file::read): ... this. Adjust.
13737 (stdio_file_write): Rename to ...
13738 (stdio_file::write): ... this. Adjust.
13739 (stdio_file_write_async_safe): Rename to ...
13740 (stdio_file::write_async_safe) ... this. Adjust.
13741 (stdio_file_fputs): Rename to ...
13742 (stdio_file::puts) ... this. Adjust.
13743 (stdio_file_isatty): Delete.
13744 (stdio_file_fseek): Delete.
13745 (stdio_file::isatty): New.
13746 (stderr_file_write): Rename to ...
13747 (stderr_file::write) ... this. Adjust.
13748 (stderr_file_fputs): Rename to ...
13749 (stderr_file::puts) ... this. Adjust.
13750 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
13751 (stderr_file::stderr_file): New.
13752 (tee_file_magic): Delete.
13753 (struct tee_file): Delete.
13754 (tee_file::tee_file): New.
13755 (tee_file_new): Delete.
13756 (tee_file::~tee_file): New.
13757 (tee_file_delete): Delete.
13758 (tee_file_flush): Rename to ...
13759 (tee_file::flush): ... this. Adjust.
13760 (tee_file_write): Rename to ...
13761 (tee_file::write): ... this. Adjust.
13762 (tee_file::write_async_safe): New.
13763 (tee_file_fputs): Rename to ...
13764 (tee_file::puts): ... this. Adjust.
13765 (tee_file_isatty): Rename to ...
13766 (tee_file::isatty): ... this. Adjust.
13767 * ui-file.h (struct obstack, struct ui_file): Don't
13768 forward-declare.
13769 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
13770 (ui_file_write_ftype)
13771 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
13772 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
13773 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
13774 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
13775 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
13776 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
13777 (set_ui_file_fseek): Delete.
13778 (ui_file_data, ui_file_delete, ui_file_rewind)
13779 (struct ui_file): New.
13780 (ui_file_up): New.
13781 (class null_file): New.
13782 (null_stream): Declare.
13783 (ui_file_write_for_put, ui_file_put): Delete.
13784 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
13785 Delete.
13786 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
13787 (gdb_fopen, tee_file_new): Delete.
13788 (struct string_file): New.
13789 (struct stdio_file): New.
13790 (stdio_file_up): New.
13791 (struct stderr_file): New.
13792 (class tee_file): New.
13793 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
13794 of a 'ui_file *'. Adjust.
13795 * ui-out.h (class ui_out) <field_stream>: Likewise.
13796 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
13797 (null_stream): Delete.
13798 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
13799 Adjust.
13800 * utils.h (struct ui_file): Delete forward declaration..
13801 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
13802 (error_stream): Take a 'string_file &' instead of a
13803 'ui_file *'.
13804 * varobj.c (varobj_value_get_print_value): Use string_file.
13805 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
13806 * gdbarch.c: Regenerate.
13807
187808b0
PA
138082017-02-02 Pedro Alves <palves@redhat.com>
13809
13810 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
13811 (gdb_pretty_print_insn): ... this. Now a free function. Add back
13812 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
13813 Adjust to call gdb_print_insn instead of
13814 gdb_disassembler::print_insn.
13815 (dump_insns, do_mixed_source_and_assembly_deprecated)
13816 (do_mixed_source_and_assembly, do_assembly_only): Add back a
13817 'gdbarch' parameter. Remove gdb_disassembler parameter.
13818 (gdb_disassembly): Don't allocate a gdb_disassembler here.
13819 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
13820 declaration.
13821 (gdb_pretty_print_insn): Re-add declaration.
13822 * record-btrace.c (btrace_insn_history): Don't allocate a
13823 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
13824
7a8eb317
SM
138252017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
13826
13827 * disasm.h (gdb_disassembly): Remove file_string parameter.
13828 * disasm.c (gdb_disassembly): Likewise.
13829 * cli/cli-cmds.c (print_disassembly): Adapt.
13830 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
13831 * stack.c (do_gdb_disassembly): Likewise.
13832
7346ef59
AA
138332017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
13834
13835 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
13836 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
13837 targets. And if the implicit value is longer than needed, extract
13838 the first bytes instead of the "least significant" ones.
13839
cd4007e4
MM
138402017-02-01 Markus Metzger <markus.t.metzger@intel.com>
13841
13842 * btrace.c (btrace_enable): Do not call btrace_add_pc for
13843 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
13844 (btrace_fetch): Assert can_access_registers_ptid.
13845 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
13846 validate_registers_access.
13847
cf77c34e
MM
138482017-02-01 Markus Metzger <markus.t.metzger@intel.com>
13849
13850 * gdbthread.h (can_access_registers_ptid): New.
13851 * thread.c (can_access_registers_ptid): New.
13852
be85ce7d
PA
138532017-02-01 Pedro Alves <palves@redhat.com>
13854
13855 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
13856
29b0b251
PA
138572017-01-31 Pedro Alves <palves@redhat.com>
13858
13859 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
13860 Fix typos.
13861
289b5b24
PA
138622017-01-31 Pedro Alves <palves@redhat.com>
13863
13864 * stack.c (print_frame_args): Remove local mem_fileopen stream,
13865 not used.
13866
b47413b4
PA
138672017-01-31 Pedro Alves <palves@redhat.com>
13868
13869 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
13870
60adb36c
PA
138712017-01-31 Pedro Alves <palves@redhat.com>
13872
13873 * common/scoped_restore.h
13874 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
13875 change the value's parameter type to T2.
13876 (make_scoped_restore): Likewise.
13877
2735833d
WT
138782017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13879 Richard Henderson <rth@redhat.com>
13880
13881 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
13882 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
13883 GS_BASE for older kernels.
13884 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
13885 GS_BASE for older kernels.
13886 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
13887 and GS_BASE to the offset table.
13888 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
13889 system register group.
13890 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
13891 for older kernels.
13892 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
13893 amd64 ABI.
13894 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
13895 AMD64_GSBASE_REGNUM.
13896 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
13897 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
13898 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
13899 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
13900 i386/64bit-segments.xml in those rules.
13901 * features/i386/64bit-segments.xml: New file.
13902 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
13903 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
13904 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
13905 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
13906 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
13907 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
13908 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
13909 * features/i386/amd64-avx-linux.c: Regenerated.
13910 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
13911 * features/i386/amd64-avx-mpx.c: Regenerated.
13912 * features/i386/amd64-avx512-linux.c: Regenerated.
13913 * features/i386/amd64-linux.c: Regenerated.
13914 * features/i386/amd64-mpx-linux.c: Regenerated.
13915 * features/i386/i386-avx-mpx-linux.c: Regenerated.
13916 * features/i386/i386-avx-mpx.c: Regenerated.
13917 * features/i386/x32-avx-linux.c: Regenerated.
13918 * features/i386/x32-avx512-linux.c: Regenerated.
13919 * regformats/i386/amd64-avx-linux.dat: Regenerated.
13920 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
13921 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
13922 * regformats/i386/amd64-linux.dat: Regenerated.
13923 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
13924 * regformats/i386/x32-avx-linux.dat: Regenerated.
13925 * regformats/i386/x32-avx512-linux.dat: Regenerated.
13926 * regformats/i386/x32-linux.dat: Regenerated.
13927
8884e97e
WT
139282017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13929
13930 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
13931 Set to AMD64_NUM_REGS.
13932
7005d26a
WT
139332017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13934
13935 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
13936 that checks validity of a register number.
13937
4bd2e1b2
KC
139382017-01-27 Kees Cook <keescook@google.com>
13939
13940 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
13941 fetch_fpregs if target has fpa registers.
13942 (arm_linux_store_inferior_registers): Call store_fpregs if target
13943 has fpa registers.
13944
7cf1de6c
AA
139452017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
13946
13947 * cris-tdep.c (cris_gdbarch_init): Remove check for
13948 info.byte_order and force it to BFD_ENDIAN_LITTLE.
13949
874a1c8c
AT
139502017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
13951
13952 * corelow.c (get_core_register_section): Check for regset
13953 existence before checking for REGSET_VARIABLE_SIZE.
13954
d8b49cf0
YQ
139552017-01-26 Yao Qi <yao.qi@linaro.org>
13956 Pedro Alves <palves@redhat.com>
13957
13958 PR gdb/20939
13959 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
13960 call memory_error, save memaddr instead.
13961 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
13962 negative, cal memory_error.
13963 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
13964
658ca58c
YQ
139652017-01-26 Yao Qi <yao.qi@linaro.org>
13966
13967 * disasm-selftests.c (memory_error_test): New function.
13968 (_initialize_disasm_selftests): Register memory_error_test.
13969
79843d45
YQ
139702017-01-26 Yao Qi <yao.qi@linaro.org>
13971
13972 * Makefile.in (SFILES): Add disasm-selftests.c and
13973 selftest-arch.c.
13974 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
13975 * disasm-selftests.c: New file.
13976 * selftest-arch.c: New file.
13977 * selftest-arch.h: New file.
13978
8cafda32
YQ
139792017-01-26 Yao Qi <yao.qi@linaro.org>
13980
13981 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
13982 to bfd_arch_mep. Don't return 0 if section is not
13983 found. Call print_insn_mep.
13984
e47ad6c0
YQ
139852017-01-26 Pedro Alves <palves@redhat.com>
13986 Yao Qi <yao.qi@linaro.org>
13987
13988 * arm-tdep.c: Include "disasm.h".
13989 (gdb_print_insn_arm): Update code to get gdbarch.
13990 * disasm.c (dis_asm_read_memory): Change it to
13991 gdb_disassembler::dis_asm_read_memory.
13992 (dis_asm_memory_error): Likewise.
13993 (dis_asm_print_address): Likewise.
13994 (gdb_pretty_print_insn): Change it to
13995 gdb_disassembler::pretty_print_insn.
13996 (dump_insns): Add one argument gdb_disassemlber. All
13997 callers updated.
13998 (do_mixed_source_and_assembly_deprecated): Likewise.
13999 (do_mixed_source_and_assembly): Likewise.
14000 (do_assembly_only): Likewise.
14001 (gdb_disassembler::gdb_disassembler): New.
14002 (gdb_disassembler::print_insn): New.
14003 * disasm.h (class gdb_disassembler): New.
14004 (gdb_pretty_print_insn): Remove declaration.
14005 (gdb_disassemble_info): Likewise.
14006 * guile/scm-disasm.c (class gdbscm_disassembler): New.
14007 (gdbscm_disasm_read_memory_worker): Update.
14008 (gdbscm_disasm_read_memory): Update.
14009 (gdbscm_disasm_memory_error): Remove.
14010 (gdbscm_disasm_print_address): Remove.
14011 (gdbscm_disassembler::gdbscm_disassembler): New.
14012 (gdbscm_print_insn_from_port): Update.
14013 * mips-tdep.c: Include disasm.h.
14014 (gdb_print_insn_mips): Update code to get gdbarch.
14015 * record-btrace.c (btrace_insn_history): Update.
14016 * spu-tdep.c: Include disasm.h.
14017 (struct spu_dis_asm_data): Remove.
14018 (struct spu_dis_asm_info): New.
14019 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
14020 SPU id.
14021 (gdb_print_insn_spu): Cast disassemble_info to
14022 spu_dis_asm_info.
14023
80d75874
YQ
140242017-01-26 Yao Qi <yao.qi@linaro.org>
14025
14026 * disasm.c (do_ui_file_delete): Delete.
14027 (gdb_insn_length): Move code creating stream to ...
14028 * utils.c (null_stream): ... here. New function.
14029 * utils.h (null_stream): Declare.
14030
60685cd0
SM
140312017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14032
14033 * python/py-inferior.c (find_thread_object): Return directly
14034 from the loop. Remove "found" variable.
14035
eb1cdb62
JB
140362017-01-21 Joel Brobecker <brobecker@adacore.com>
14037
14038 GDB 7.12.1 released.
14039
b1ce6568
SM
140402017-01-20 Simon Marchi <simon.marchi@ericsson.com>
14041
14042 * python/py-function.c (fnpy_call): Reorder declarations to have
14043 the gdbpy_enter object declared first.
14044 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
14045
6f8b0407
SM
140462017-01-20 Simon Marchi <simon.marchi@ericsson.com>
14047
fec93fb1 14048 PR python/21068
6f8b0407
SM
14049 * python/python-internal.h (PyMem_RawMalloc): Define for
14050 Python < 3.4.
14051 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
14052 PyMem_RawMalloc instead of PyMem_Malloc.
14053
78cbbba8
LM
140542017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
14055 Luis Machado <lgustavo@codesourcery.com>
14056
14057 * NEWS (New commands): Mention flash-erase.
14058 (New MI commands): Mention target-flash-erase.
14059 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
14060 command.
14061 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
14062 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
14063 * target.c (flash_erase_command): New function.
14064 (initialize_targets): Add new flash-erase command.
14065 * target.h (flash_erase_command): New declaration.
14066
2132fe85
JB
140672017-01-20 Joel Brobecker <brobecker@adacore.com>
14068
14069 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
14070 HAVE_SYS_PROCFS_H is defined.
14071
d1dff226
AH
140722017-01-18 Alan Hayward <alan.hayward@arm.com>
14073
14074 * remote.c (struct cached_reg): Change data into a pointer.
14075 * (stop_reply_dtr): Free data pointers before deleting vector.
14076 (process_stop_reply): Likewise.
14077 (remote_parse_stop_reply): Allocate space for data
14078
9890e433
AH
140792017-01-18 Alan Hayward <alan.hayward@arm.com>
14080
14081 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
14082 MAX_REGISTER_SIZE.
14083 (amd64_pseudo_register_read_value): Likewise.
14084 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
14085 (store_register_using_P): Likewise.
14086 * regcache.c (regcache_xfer_part): Likewise.
14087
7a36499a
IR
140882017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
14089
14090 Split real and pseudo registers.
14091 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
14092 (sparc32_pseudo_regnum): New enum.
14093 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
14094 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
14095 (SPARC32_CP0_REGISTERS): New macro.
14096 (sparc32_pseudo_register_name): New function.
14097 (sparc32_register_name): Use sparc32_pseudo_register_name.
14098 (sparc32_pseudo_register_type): New function.
14099 (sparc32_register_type): Use sparc32_pseudo_register_type.
14100 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
14101 pseudo register numbers.
14102 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
14103 (SPARC64_CP0_REGISTERS): New macro.
14104 (sparc64_pseudo_register_name): New function.
14105 (sparc64_register_name): Use sparc64_pseudo_register_name.
14106 (sparc64_pseudo_register_type): New function.
14107 (sparc64_register_type): Use sparc64_pseudo_register_type.
14108 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
14109 pseudo register numbers.
14110 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
14111 sparc64_store_arguments): Handle pseudo register numbers.
14112
6f8976bf
YQ
141132017-01-13 Yao Qi <yao.qi@linaro.org>
14114
14115 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
14116 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
14117 output.
14118 (getpkt_or_notif_sane_1): Likewise.
14119
e4241ace
YQ
141202017-01-13 Yao Qi <yao.qi@linaro.org>
14121
14122 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
14123 of CC. Pass "-x c++-header" instead of "-x c".
14124
3015c064
SM
141252017-01-12 Simon Marchi <simon.marchi@ericsson.com>
14126
14127 * remote.c (remote_can_async_p): Update comment.
14128
fde1b17d
SM
141292017-01-12 Simon Marchi <simon.marchi@ericsson.com>
14130
14131 * linux-nat.c (linux_nat_can_async_p): Update comment.
14132
ca1ca08b
SM
141332017-01-12 Simon Marchi <simon.marchi@ericsson.com>
14134
14135 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
14136
4ad2da73
SM
141372017-01-11 Simon Marchi <simon.marchi@ericsson.com>
14138
14139 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
14140
c8b23b3f
TT
141412017-01-10 Tom Tromey <tom@tromey.com>
14142
14143 * python/py-type.c (typy_legacy_template_argument): Update.
14144 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
14145 ~demangle_parse_info): Declare new members.
14146 (cp_demangled_name_to_comp): Return unique_ptr.
14147 (cp_demangled_name_parse_free)
14148 (make_cleanup_cp_demangled_name_parse_free)
14149 (cp_new_demangle_parse_info): Remove.
14150 * cp-support.c (do_demangled_name_parse_free_cleanup)
14151 (make_cleanup_cp_demangled_name_parse_free): Remove.
14152 (inspect_type, cp_canonicalize_string_full)
14153 (cp_canonicalize_string): Update.
14154 (mangled_name_to_comp): Change return type.
14155 (cp_class_name_from_physname, method_name_from_physname)
14156 (cp_func_name, cp_remove_params): Update.
14157 * cp-name-parser.y (demangle_parse_info): New constructor, from
14158 cp_new_demangle_parse_info.
14159 (~demangle_parse_info): New destructor, from
14160 cp_demangled_name_parse_free.
14161 (cp_merge_demangle_parse_infos): Update.
14162 (cp_demangled_name_to_comp): Change return type.
14163
1ac32117
TT
141642017-01-10 Tom Tromey <tom@tromey.com>
14165
14166 * top.c (prevent_dont_repeat): Change return type.
14167 * python/python.c (execute_gdb_command): Use std::string.
14168 Update.
14169 * guile/guile.c (gdbscm_execute_gdb_command): Update.
14170 * command.h (prevent_dont_repeat): Change return type.
14171 * breakpoint.c (bpstat_do_actions_1): Update.
14172
0cf08227
TT
141732017-01-10 Tom Tromey <tom@tromey.com>
14174
14175 * value.h (scoped_value_mark::~scoped_value_mark): Call
14176 free_to_mark.
14177 (scoped_value_mark::free_to_mark): New method.
14178 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
14179 scoped_value_mark.
14180
eb115069
TT
141812017-01-10 Tom Tromey <tom@tromey.com>
14182
14183 * python/py-value.c (valpy_dereference, valpy_referenced_value)
14184 (valpy_reference_value, valpy_const_value, valpy_get_address)
14185 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
14186 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
14187 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
14188 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
14189 scoped_value_mark.
14190 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
14191 * value.h (scoped_value_mark): New class.
14192
906768f9
TT
141932017-01-10 Tom Tromey <tom@tromey.com>
14194
14195 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
14196 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
14197 * psymtab.c (discard_psymtabs_upto): Remove.
14198 (make_cleanup_discard_psymtabs): Remove.
14199 (struct psymtab_state): Remove.
14200
bef155c3
TT
142012017-01-10 Tom Tromey <tom@tromey.com>
14202
14203 * record-full.c (record_full_save_cleanups): Remove.
14204 (record_full_save): Use gdb::unlinker.
14205 * gcore.c (do_bfd_delete_cleanup): Remove.
14206 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
14207 cleanups.
14208 * dwarf2read.c (unlink_if_set): Remove.
14209 (write_psymtabs_to_index): Use gdb::unlinker.
14210 * common/gdb_unlinker.h: New file.
14211
192b62ce
TT
142122017-01-10 Tom Tromey <tom@tromey.com>
14213
14214 * windows-tdep.c (windows_xfer_shared_library): Update.
14215 * windows-nat.c (windows_make_so): Update.
14216 * utils.h (make_cleanup_bfd_unref): Remove.
14217 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
14218 * symfile.h (symfile_bfd_open)
14219 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
14220 * symfile.c (read_symbols, symbol_file_add)
14221 (separate_debug_file_exists): Update.
14222 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
14223 (generic_load, reread_symbols): Update.
14224 * symfile-mem.c (symbol_file_add_from_memory): Update.
14225 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
14226 (spu_symbol_file_add_from_memory): Update.
14227 * solist.h (struct target_so_ops) <bfd_open>: Return
14228 gdb_bfd_ref_ptr.
14229 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
14230 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
14231 gdb_bfd_ref_ptr.
14232 (solib_map_sections, reload_shared_libraries_1): Update.
14233 * solib-svr4.c (enable_break): Update.
14234 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
14235 * solib-frv.c (enable_break2): Update.
14236 * solib-dsbt.c (enable_break): Update.
14237 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
14238 gdb_bfd_ref_ptr.
14239 (darwin_solib_get_all_image_info_addr_at_init): Update.
14240 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
14241 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
14242 * record-full.c (record_full_save): Update.
14243 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
14244 * procfs.c (insert_dbx_link_bpt_in_file): Update.
14245 * minidebug.c (find_separate_debug_file_in_section): Return
14246 gdb_bfd_ref_ptr.
14247 * machoread.c (macho_add_oso_symfile): Change abfd to
14248 gdb_bfd_ref_ptr.
14249 (macho_symfile_read_all_oso): Update.
14250 (macho_check_dsym): Return gdb_bfd_ref_ptr.
14251 (macho_symfile_read): Update.
14252 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
14253 (jit_bfd_try_read_symtab): Update.
14254 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
14255 (gdb_bfd_openw, gdb_bfd_openr_iovec)
14256 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
14257 gdb_bfd_ref_ptr.
14258 (gdb_bfd_ref_policy): New struct.
14259 (gdb_bfd_ref_ptr): New typedef.
14260 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
14261 (gdb_bfd_openw, gdb_bfd_openr_iovec)
14262 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
14263 gdb_bfd_ref_ptr.
14264 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
14265 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
14266 (gcore_command): Update.
14267 * exec.c (exec_file_attach): Update.
14268 * elfread.c (elf_symfile_read): Update.
14269 * dwarf2read.c (dwarf2_get_dwz_file): Update.
14270 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
14271 (open_and_init_dwo_file): Update.
14272 (open_dwp_file): Return gdb_bfd_ref_ptr.
14273 (open_and_init_dwp_file): Update.
14274 * corelow.c (core_open): Update.
14275 * compile/compile-object-load.c (compile_object_load): Update.
14276 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
14277 * coffread.c (coff_symfile_read): Update.
14278 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
14279 gdb_bfd_ref_ptr. Rename.
14280 (dump_bfd_file, restore_command): Update.
14281 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
14282 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
14283 (find_separate_debug_file_by_buildid): Update.
14284
50315b21
TT
142852017-01-10 Tom Tromey <tom@tromey.com>
14286
14287 * common/gdb_ref_ptr.h: New file.
14288 * python/py-ref.h (struct gdbpy_ref_policy): New.
14289 (gdbpy_ref): Now a typedef.
14290
fc4007c9
TT
142912017-01-10 Tom Tromey <tom@tromey.com>
14292
14293 * utils.h (make_cleanup_htab_delete): Don't declare.
14294 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
14295 Remove.
14296 * linespec.c (decode_compound_collector): Add constructor,
14297 destructor.
14298 (lookup_prefix_sym): Remove cleanup.
14299 (symtab_collector): Add constructor, destructor.
14300 (collect_symtabs_from_filename): Remove cleanup.
14301 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
14302 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
14303 Use htab_up.
14304 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
14305 * dwarf2read.c (dw2_expand_symtabs_matching)
14306 (dw2_map_symbol_filenames, dwarf_decode_macros)
14307 (write_psymtabs_to_index): Use htab_up.
14308 * dwarf2loc.c (func_verify_no_selftailcall)
14309 (call_site_find_chain_1, func_verify_no_selftailcall)
14310 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
14311 std::vector, gdb::unique_xmalloc_ptr.
14312 (call_sitep): Remove typedef.
14313 (dwarf2_locexpr_baton_eval): Remove unused variable.
14314
8dbcee67
TT
143152017-01-10 Tom Tromey <tom@tromey.com>
14316
14317 * python/python-internal.h (make_cleanup_py_decref)
14318 (make_cleanup_py_xdecref): Don't declare.
14319 * python/py-utils.c (py_decref, make_cleanup_py_decref)
14320 (py_xdecref, make_cleanup_py_xdecref): Remove.
14321
13df46cc
TT
143222017-01-10 Tom Tromey <tom@tromey.com>
14323
14324 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
14325 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
14326
06fc9bf7
TT
143272017-01-10 Tom Tromey <tom@tromey.com>
14328
14329 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
14330
830a4934
TT
143312017-01-10 Tom Tromey <tom@tromey.com>
14332
14333 * python/py-utils.c (unicode_to_encoded_string)
14334 (python_string_to_target_string)
14335 (python_string_to_target_python_string)
14336 (python_string_to_host_string, gdbpy_obj_to_string)
14337 (get_addr_from_python): Use gdbpy_ref.
14338
4586d543
TT
143392017-01-10 Tom Tromey <tom@tromey.com>
14340
14341 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
14342 gdbpy_ref.
14343
59876f8f
TT
143442017-01-10 Tom Tromey <tom@tromey.com>
14345
14346 * python/python.c (eval_python_command, gdbpy_decode_line)
14347 (gdbpy_run_events, gdbpy_start_type_printers)
14348 (gdbpy_apply_type_printers): Use gdbpy_ref.
14349
97d83487
TT
143502017-01-10 Tom Tromey <tom@tromey.com>
14351
14352 * python/py-param.c (get_doc_string, compute_enum_values): Use
14353 gdbpy_ref.
14354
9205649a
TT
143552017-01-10 Tom Tromey <tom@tromey.com>
14356
14357 * python/py-inferior.c (find_thread_object, build_inferior_list):
14358 Use gdbpy_ref.
14359
74c49d45
TT
143602017-01-10 Tom Tromey <tom@tromey.com>
14361
14362 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
14363
16361ffb
TT
143642017-01-10 Tom Tromey <tom@tromey.com>
14365
14366 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
14367 gdbpy_ref.
14368
905f2cca
TT
143692017-01-10 Tom Tromey <tom@tromey.com>
14370
14371 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
14372 extra incref.
14373 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
14374 Use gdbpy_ref.
14375
64081434
TT
143762017-01-10 Tom Tromey <tom@tromey.com>
14377
14378 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
14379 gdbpy_ref.
14380
59e9e831
TT
143812017-01-10 Tom Tromey <tom@tromey.com>
14382
14383 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
14384 decref results of PyArg_ParseTupleAndKeywords.
14385
9de10f6d
TT
143862017-01-10 Tom Tromey <tom@tromey.com>
14387
14388 * python/python.c (python_run_simple_file): Use
14389 unique_xmalloc_ptr, gdbpy_ref.
14390
2bd5759d
TT
143912017-01-10 Tom Tromey <tom@tromey.com>
14392
14393 * python/py-prettyprint.c (print_stack_unless_memory_error)
14394 (print_string_repr, print_children): Use gdbpy_ref.
14395 (dummy_python_frame): New class.
14396 (dummy_python_frame::dummy_python_frame): Rename from
14397 push_dummy_python_frame.
14398 (py_restore_tstate): Remove.
14399
3b4e0e01
TT
144002017-01-10 Tom Tromey <tom@tromey.com>
14401
14402 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
14403
17a22718
TT
144042017-01-10 Tom Tromey <tom@tromey.com>
14405
14406 * python/python.c (ensure_python_env, restore_python_env):
14407 Remove.
14408 * python/python-internal.h (ensure_python_env): Don't declare.
14409 * varobj.h (varobj_ensure_python_env): Don't declare.
14410 * varobj.c (varobj_ensure_python_env): Remove.
14411
68cdc557
TT
144122017-01-10 Tom Tromey <tom@tromey.com>
14413
14414 * varobj.c (varobj_value_get_print_value): Use
14415 gdbpy_enter_varobj.
14416
1eba6383
TT
144172017-01-10 Tom Tromey <tom@tromey.com>
14418
14419 * python/py-prettyprint.c (print_string_repr, print_children):
14420 Update.
14421 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
14422 of "encoding".
14423 * varobj.c (varobj_value_get_print_value): Update.
14424 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
14425
bde7b3e3
TT
144262017-01-10 Tom Tromey <tom@tromey.com>
14427
14428 * varobj.c (varobj_get_display_hint)
14429 (dynamic_varobj_has_child_method, install_new_value_visualizer)
14430 (varobj_set_visualizer, free_variable): Use
14431 gdbpy_enter_varobj.
14432
a7785f8c
TT
144332017-01-10 Tom Tromey <tom@tromey.com>
14434
14435 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
14436 (do_finish_initialization): New function. Use gdbpy_ref.
14437 (gdbpy_finish_initialization): Use gdbpy_enter. Call
14438 do_finish_initialization.
14439
2865bfce
TT
144402017-01-10 Tom Tromey <tom@tromey.com>
14441
14442 * python/py-param.c (get_set_value, get_show_value): Use
14443 gdbpy_enter, gdbpy_ref.
14444
0e9dcc75
TT
144452017-01-10 Tom Tromey <tom@tromey.com>
14446
14447 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
14448
12a5cedd
TT
144492017-01-10 Tom Tromey <tom@tromey.com>
14450
14451 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
14452
788f2586
TT
144532017-01-10 Tom Tromey <tom@tromey.com>
14454
14455 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
14456 Use gdbpy_enter_varobj.
14457
6cd67bea
TT
144582017-01-10 Tom Tromey <tom@tromey.com>
14459
14460 * varobj.c (gdbpy_enter_varobj): New constructor.
14461 * python/python-internal.h (gdbpy_enter_varobj): New class.
14462 * python/py-varobj.c (py_varobj_get_iterator): Use
14463 gdbpy_enter_varobj.
14464
14b122bf
TT
144652017-01-10 Tom Tromey <tom@tromey.com>
14466
14467 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
14468 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
14469 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
14470 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
14471 unique_xmalloc_ptr.
14472 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
14473
bf1ca3b9
TT
144742017-01-10 Tom Tromey <tom@tromey.com>
14475
14476 * python/py-xmethods.c (invoke_match_method): Use
14477 gdbpy_ref.
14478
572a5524
TT
144792017-01-10 Tom Tromey <tom@tromey.com>
14480
14481 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
14482 gdbpy_enter, gdbpy_ref.
14483
396a78b6
TT
144842017-01-10 Tom Tromey <tom@tromey.com>
14485
14486 * python/python.c (python_interactive_command): Use gdbpy_enter.
14487
a88b13c7
TT
144882017-01-10 Tom Tromey <tom@tromey.com>
14489
14490 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
14491 gdbpy_ref.
14492
e9f0c363
TT
144932017-01-10 Tom Tromey <tom@tromey.com>
14494
14495 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
14496 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
14497
6349f452
TT
144982017-01-10 Tom Tromey <tom@tromey.com>
14499
14500 * utils.h (htab_deleter): New struct.
14501 (htab_up): New typedef.
14502 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
14503 gdbpy_enter, gdbpy_ref, htab_up.
14504
c0171de6
TT
145052017-01-10 Tom Tromey <tom@tromey.com>
14506
14507 * python/py-unwind.c (pending_frame_invalidate): Remove.
14508 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
14509
f18e226f
TT
145102017-01-10 Tom Tromey <tom@tromey.com>
14511
14512 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
14513 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
14514
c57af3f1
TT
145152017-01-10 Tom Tromey <tom@tromey.com>
14516
14517 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
14518
60e600ec
TT
145192017-01-10 Tom Tromey <tom@tromey.com>
14520
14521 * python/python.c (gdbpy_eval_from_control_command)
14522 (gdbpy_source_script, gdbpy_run_events)
14523 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
14524 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
14525 gdbpy_enter.
14526
bf7da5b0
TT
145272017-01-10 Tom Tromey <tom@tromey.com>
14528
14529 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
14530
2d38bced
TT
145312017-01-10 Tom Tromey <tom@tromey.com>
14532
14533 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
14534
07bc7329
TT
145352017-01-10 Tom Tromey <tom@tromey.com>
14536
14537 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
14538 (python_on_inferior_call_pre, python_on_inferior_call_post)
14539 (python_on_memory_change, python_on_register_change)
14540 (python_inferior_exit, python_new_objfile, add_thread_object)
14541 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
14542
6e7c365e
TT
145432017-01-10 Tom Tromey <tom@tromey.com>
14544
14545 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
14546 (bpfinishpy_handle_exit): Use gdbpy_enter.
14547
6ba0cd40
TT
145482017-01-10 Tom Tromey <tom@tromey.com>
14549
14550 * python/py-cmd.c (cmdpy_destroyer)
14551 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
14552 gdbpy_enter.
14553
de2dc875
TT
145542017-01-10 Tom Tromey <tom@tromey.com>
14555
14556 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
14557 gdbpy_enter.
14558 (gdbpy_breakpoint_has_cond): Likewise.
14559
4ecee2c4
TT
145602017-01-10 Tom Tromey <tom@tromey.com>
14561
14562 * python/python.c (gdbpy_enter): New constructor.
14563 (~gdbpy_enter): New destructor.
14564 (restore_python_env, ensure_python_env): Rewrite.
14565 * python/python-internal.h (gdbpy_enter): New class.
14566
37fce74f
TT
145672017-01-10 Tom Tromey <tom@tromey.com>
14568
14569 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
14570
53a0cca3
TT
145712017-01-10 Tom Tromey <tom@tromey.com>
14572
14573 * python/py-value.c (value_has_field, get_field_flag)
14574 (get_field_type, valpy_getitem, convert_value_from_python): Use
14575 gdbpy_ref.
14576
ff3724f5
TT
145772017-01-10 Tom Tromey <tom@tromey.com>
14578
14579 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
14580 gdbpy_ref.
14581
0700aea5
TT
145822017-01-10 Tom Tromey <tom@tromey.com>
14583
14584 * python/py-prettyprint.c (search_pp_list)
14585 (find_pretty_printer_from_objfiles)
14586 (find_pretty_printer_from_progspace)
14587 (find_pretty_printer_from_gdb, find_pretty_printer)
14588 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
14589 gdbpy_ref.
14590
1bb44c9f
TT
145912017-01-10 Tom Tromey <tom@tromey.com>
14592
14593 * python/py-param.c (call_doc_function): Use gdbpy_ref.
14594
87ce03fd
TT
145952017-01-10 Tom Tromey <tom@tromey.com>
14596
14597 * python/py-linetable.c (build_line_table_tuple_from_pcs)
14598 (ltpy_get_all_source_lines): Use gdbpy_ref.
14599
ee0a3fb8
TT
146002017-01-10 Tom Tromey <tom@tromey.com>
14601
14602 * python/py-framefilter.c (extract_sym, extract_value)
14603 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
14604 gdbpy_ref.
14605
bf2a52fa
TT
146062017-01-10 Tom Tromey <tom@tromey.com>
14607
14608 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
14609
f59fe7f8
TT
146102017-01-10 Tom Tromey <tom@tromey.com>
14611
14612 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
14613
80bd970a
TT
146142017-01-10 Tom Tromey <tom@tromey.com>
14615
14616 * python/py-function.c (convert_values_to_python, fnpy_init): Use
14617 gdbpy_ref.
14618
d1b3de2e
TT
146192017-01-10 Tom Tromey <tom@tromey.com>
14620
14621 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
14622
3bb43384
TT
146232017-01-10 Tom Tromey <tom@tromey.com>
14624
14625 * python/py-type.c (convert_field, make_fielditem, typy_fields)
14626 (typy_range): Use gdbpy_ref.
14627
abf5651e
TT
146282017-01-10 Tom Tromey <tom@tromey.com>
14629
14630 * python/py-threadevent.c (create_thread_event_object): Use
14631 gdbpy_ref.
14632 * python/py-stopevent.c (create_stop_event_object): Simplify.
14633 (emit_stop_event): Use gdbpy_ref.
14634 * python/py-signalevent.c (create_signal_event_object): Use
14635 gdbpy_ref.
14636 * python/py-newobjfileevent.c (create_new_objfile_event_object)
14637 (emit_new_objfile_event, create_clear_objfiles_event_object)
14638 (emit_clear_objfiles_event): Use gdbpy_ref.
14639 * python/py-infevents.c (create_inferior_call_event_object)
14640 (create_register_changed_event_object)
14641 (create_memory_changed_event_object, emit_inferior_call_event)
14642 (emit_memory_changed_event, emit_register_changed_event): Use
14643 gdbpy_ref.
14644 * python/py-exitedevent.c (create_exited_event_object)
14645 (emit_exited_event): Use gdbpy_ref.
14646 * python/py-event.h (evpy_emit_event): Remove
14647 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
14648 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
14649 * python/py-continueevent.c (emit_continue_event): Use
14650 gdbpy_ref.
14651 * python/py-breakpoint.c (gdbpy_breakpoint_created)
14652 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
14653 gdbpy_ref.
14654 * python/py-bpevent.c (create_breakpoint_event_object): Use
14655 gdbpy_ref.
14656
a68ff33e
TT
146572017-01-10 Tom Tromey <tom@tromey.com>
14658
14659 * python/py-ref.h: New file.
14660
7becfd03
SM
146612017-01-10 Simon Marchi <simon.marchi@ericsson.com>
14662
14663 * cli-out.c (cli_ui_out::do_redirect): Change return type to
14664 void.
14665 * cli-out.h (cli_ui_out::do_redirect): Likewise.
14666 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
14667 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
14668 * ui-out.c (ui_out::redirect): Likewise.
14669 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
14670 * cli/cli-logging.c (set_logging_redirect): Update call site of
14671 ui_out::redirect.
14672 (handle_redirections): Likewise.
14673 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
14674 * top.c (execute_command_to_string): Likewise.
14675 * utils.c (do_ui_out_redirect_pop): Likewise.
14676
df294654
SM
146772017-01-10 Simon Marchi <simon.marchi@ericsson.com>
14678
14679 * stack.c (_initialize_stack): Update "frame" command help message.
14680
f5e6296e
IB
146812017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
14682
14683 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
14684
0e2d6fa6
YQ
146852017-01-06 Yao Qi <yao.qi@linaro.org>
14686
14687 * x86-linux-nat.h: Include gdb_proc_service.h.
14688
44d6d3f9
YQ
146892017-01-06 Yao Qi <yao.qi@linaro.org>
14690
14691 * ser-base.h: Include serial.h.
14692
656731fe
YQ
146932017-01-06 Yao Qi <yao.qi@linaro.org>
14694
14695 * ppc-linux-tdep.h: Include ppc-tdep.h.
14696
1ca8f924
YQ
146972017-01-06 Yao Qi <yao.qi@linaro.org>
14698
14699 * nat/amd64-linux-siginfo.h: Include signal.h.
14700
bc3008c4
YQ
147012017-01-06 Yao Qi <yao.qi@linaro.org>
14702
14703 * nat/aarch64-linux-hw-point.h: Include break-common.h.
14704
66c80d03
YQ
147052017-01-06 Yao Qi <yao.qi@linaro.org>
14706
14707 * mi/mi-parse.h: Include mi-cmds.h.
14708
051d2dda
YQ
147092017-01-06 Yao Qi <yao.qi@linaro.org>
14710
14711 * inf-loop.c: Don't include "target.h".
14712 * inf-loop.h: Include it here.
14713
8018d34f
YQ
147142017-01-06 Yao Qi <yao.qi@linaro.org>
14715
14716 * dfp.h: Include "dboulest.h" and "expression.h".
14717
c0b8369c
YQ
147182017-01-06 Yao Qi <yao.qi@linaro.org>
14719
14720 * ax-gdb.h: Include "ax.h".
14721
ad5cba2a
YQ
147222017-01-06 Yao Qi <yao.qi@linaro.org>
14723
14724 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
14725 with nat/gdb_ptrace.h.
14726
1c33cd7f
YQ
147272017-01-05 Yao Qi <yao.qi@linaro.org>
14728
14729 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
14730 new line.
14731 (mips64_fbsd_sigframe_init): Likewise.
14732
c988ac1d
JB
147332017-01-04 John Baldwin <jhb@FreeBSD.org>
14734
14735 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
14736 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
14737
b268007c
JB
147382017-01-04 John Baldwin <jhb@FreeBSD.org>
14739
14740 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
14741 * NEWS: Mention new FreeBSD/mips native configuration.
14742 * config/mips/fbsd.mh: New file.
14743 * configure.host: Add mips*-*-freebsd*.
14744 * mips-fbsd-nat.c: New file.
14745
387360da
JB
147462017-01-04 John Baldwin <jhb@FreeBSD.org>
14747
14748 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
14749 (ALLDEPFILES): Add mips-fbsd-tdep.c.
14750 * NEWS: Mention new FreeBSD/mips target.
14751 * configure.tgt: Add mips*-*-freebsd*.
14752 * mips-fbsd-tdep.c: New file.
14753 * mips-fbsd-tdep.h: New file.
14754
2aaaf250
YQ
147552017-01-04 Yao Qi <yao.qi@linaro.org>
14756
14757 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
14758 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
14759
61baf725
JB
147602017-01-01 Joel Brobecker <brobecker@adacore.com>
14761
6dbb839a 14762 Update copyright year range in all GDB files.
61baf725 14763
c113e7ff 147642017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 14765
c113e7ff 14766 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 14767
c113e7ff 14768For older changes see ChangeLog-2016.
c906108c
SS
14769\f
14770Local Variables:
14771mode: change-log
14772left-margin: 8
14773fill-column: 74
14774version-control: never
57da7796 14775coding: utf-8
c906108c 14776End:
This page took 2.612567 seconds and 4 git commands to generate.