Detect invalid length field in debug frame FDE header.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
723adb65
SL
12019-04-25 Sandra Loosemore <sandra@codesourcery.com>
2 Kang Li <kanglictf@gmail.com>
3
4 PR gdb/21600
5
6 * dwarf2-frame.c (read_initial_length): Be consistent about using
7 unsigned representation of length.
8 (decode_frame_entry_1): Likewise. Check for wraparound of
9 end pointer as well as buffer overflow.
10
596179f7
SDJ
112019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
12
13 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
14 "vq".
15
a59240a4
TT
162019-04-24 Tom Tromey <tromey@adacore.com>
17
18 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
19
f872fdbb
AB
202019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
21
22 * s12z-tdep.c (s12z_unwind_pc): Delete.
23 (s12z_unwind_sp): Delete.
24 (s12z_gdbarch_init): Don't register deleted functions with
25 gdbarch.
26
b614e6f3
AB
272019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
28
29 * rl78-tdep.c (rl78_unwind_sp): Delete.
30 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
31
14faed38
AB
322019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
33
34 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
35 (xstormy16_unwind_pc): Delete.
36 (xstormy16_dummy_id): Delete.
37 (xstormy16_gdbarch_init): Don't register deleted functions with
38 gdbarch.
39
541aad8a
AB
402019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
41
42 * vax-tdep.c (vax_unwind_pc): Delete.
43 (vax_gdbarch_init): Don't register deleted function with gdbarch.
44
29222070
AB
452019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
46
47 * v850-tdep.c (v850_unwind_sp): Delete.
48 (v850_unwind_pc): Delete.
49 (v850_dummy_id): Delete.
50 (v850_gdbarch_init): Don't register deleted functions with
51 gdbarch.
52
0f534d76
AB
532019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
54
55 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
56 (tilegx_unwind_pc): Delete.
57 (tilegx_unwind_dummy_id): Delete.
58 (tilegx_gdbarch_init): Don't register deleted functions with
59 gdbarch.
60
1ba7b7f9
AB
612019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
62
63 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
64 (tic6x_dummy_id): Delete.
65 (tic6x_gdbarch_init): Don't register deleted functions with
66 gdbarch.
67
d31f262c
AB
682019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
69
70 * sparc-tdep.c (sparc_unwind_pc): Delete.
71 (sparc32_gdbarch_init): Don't register deleted function with
72 gdbarch.
73
6d14d64d
AB
742019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
75
76 * sh-tdep.c (sh_unwind_sp): Delete.
77 (sh_unwind_pc): Delete.
78 (sh_dummy_id): Delete.
79 (sh_gdbarch_init): Don't register deleted functions with
80 gdbarch.
81
a40dde9d
AB
822019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
83
84 * score-tdep.c (score_unwind_sp): Delete.
85 (score_unwind_pc): Delete.
86 (score_dummy_id): Delete.
87 (score_gdbarch_init): Don't register deleted functions with
88 gdbarch.
89
47c47d69
AB
902019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
91
92 * rx-tdep.c (rx_unwind_pc): Delete.
93 (rx_unwind_sp): Delete.
94 (rx_dummy_id): Delete.
95 (rx_gdbarch_init): Don't register deleted functions with
96 gdbarch. Update comment.
97
833a4480
AB
982019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
99
100 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
101 (rs6000_dummy_id): Delete.
102 (rs6000_gdbarch_init): Don't register deleted functions with
103 gdbarch.
104
3f2cef49
AB
1052019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
106
107 * or1k-tdep.c (or1k_dummy_id): Delete.
108 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
109
96acf884
AB
1102019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
111
112 * nios2-tdep.c (nios2_dummy_id): Delete.
113 (nios2_unwind_sp): Delete.
114 (nios2_gdbarch_init): Don't register deleted functions with
115 gdbarch.
116
ca0ab0aa
AB
1172019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
118
119 * nds32-tdep.c (nds32_dummy_id): Delete.
120 (nds32_unwind_pc): Delete.
121 (nds32_unwind_sp): Delete.
122 (nds32_gdbarch_init): Don't register deleted functions with
123 gdbarch.
124
c8259044
AB
1252019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
126
127 * msp430-tdep.c (msp430_unwind_pc): Delete.
128 (msp430_unwind_sp): Delete.
129 (msp430_dummy_id): Delete.
130 (msp430_gdbarch_init): Don't register deleted functions with
131 gdbarch.
132
27f113c8
AB
1332019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
134
135 * moxie-tdep.c (moxie_unwind_sp): Delete.
136 (moxie_unwind_pc): Delete.
137 (moxie_dummy_id): Delete.
138 (moxie_gdbarch_init): Don't register deleted functions with
139 gdbarch.
140
aee6c3cd
AB
1412019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
142
143 * mn10300-tdep.c (mn10300_dummy_id): Delete.
144 (mn10300_unwind_pc): Delete.
145 (mn10300_unwind_sp): Delete.
146 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
147 mn10300_unwind_sp.
148 (mn10300_frame_unwind_init): Don't register deleted functions with
149 gdbarch.
150
8e2b5aea
AB
1512019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
152
153 * mep-tdep.c (mep_unwind_pc): Delete.
154 (mep_unwind_sp): Delete.
155 (mep_dummy_id): Delete.
156 (mep_gdbarch_init): Don't register deleted functions with
157 gdbarch.
158
43cf3ede
AB
1592019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
160
161 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
162 (m68hc11_unwind_sp): Delete.
163 (m68hc11_gdbarch_init): Don't register deleted functions with
164 gdbarch.
165
5e79b7bb
AB
1662019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
167
168 * m32r-tdep.c (m32r_unwind_sp): Delete.
169 (m32r_unwind_pc): Delete.
170 (m32r_dummy_id): Delete.
171 (m32r_gdbarch_init): Don't register deleted functions with
172 gdbarch.
173
89b268d8
AB
1742019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
175
176 * m32c-tdep.c (m32c_unwind_pc): Delete.
177 (m32c_unwind_sp): Delete.
178 (m32c_dummy_id): Delete.
179 (m32c_gdbarch_init): Don't register deleted functions with
180 gdbarch.
181
946c28d2
AB
1822019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
183
184 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
185 (lm32_unwind_pc): Delete.
186 (lm32_dummy_id): Delete.
187 (lm32_gdbarch_init): Don't register deleted functions with
188 gdbarch.
189
bf12844a
AB
1902019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
191
192 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
193 (iq2000_unwind_pc): Delete.
194 (iq2000_dummy_id): Delete.
195 (iq2000_gdbarch_init): Don't register deleted functions with
196 gdbarch.
197
ecbc06d2
AB
1982019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
199
200 * nds32-tdep.c (nds32_type_align): Delete.
201 (nds32_push_dummy_call): Use type_align instead.
202
030197b4
AB
2032019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
204
205 * arm-tdep.c (arm_type_align): Only handle vector override case.
206 (arm_push_dummy_call): Use type_align.
207 (arm_gdbarch_init): Register arm_type_align gdbarch function.
208
b907456c
AB
2092019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
210
211 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
212 case.
213 (pass_on_stack): Use type_align.
214 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
215 function.
216
9e97ba43
TT
2172019-04-23 Tom Tromey <tromey@adacore.com>
218
219 * dwarf2read.c (line_header::file_name_at): Remove unused
220 overload.
221
6892f601
TV
2222019-04-23 Tom de Vries <tdevries@suse.de>
223
224 PR gdb/24438
225 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
226 invocation.
227
336d760d
AT
228
2292019-03-27 Ali Tamur <tamur@google.com>
230
231 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
232 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
233 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
234 (dwarf_expr_context::get_addr_index): Likewise
235 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
236 (symbol_needs_eval_context::get_addr_index): Likewise
237 (disassemble_dwarf_expression): Add DW_OP_addrx
238 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
239 (read_cutu_die_from_dwo): Update comment
240 (skip_one_die): Add DW_FORM_addrx
241 (read_attribute_value): Likewise
242 (var_decode_location): Add DW_OP_addrx
243 (dwarf2_const_value_attr): Add DW_FORM_addrx
244 (dump_die_shallow): Likewise
245 (dwarf2_fetch_constant_bytes): Likewise
246 (decode_locdesc): Add DW_OP_addrx
247 (skip_form_bytes): Add DW_FORM_addrx
248
ad9d13f8
AT
2492019-04-22 Ali Tamur <tamur@google.com>
250
251 * MAINTAINERS (Write After Approval): Add self.
252
d70cc3ba
SM
2532019-04-22 Simon Marchi <simon.marchi@efficios.com>
254
255 * solib-svr4.c (get_svr4_info): Add pspace parameter.
256 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
257 (open_symbol_file_object): Likewise.
258 (svr4_default_sos): Add info parameter.
259 (svr4_read_so_list): Likewise.
260 (svr4_current_sos_direct): Adjust functions calls to pass down
261 info.
262 (svr4_current_sos_1): Add info parameter.
263 (svr4_current_sos): Call get_svr4_info, pass info down to
264 svr4_current_sos_1.
265 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
266 get_svr4_info.
267 (svr4_in_dynsym_resolve_code): Pass current_program_space to
268 get_svr4_info.
269 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
270 to get_svr4_info.
271 (probes_table_remove_objfile_probes): Likewise.
272 (register_solib_event_probe): Add info parameter.
273 (solist_update_incremental): Pass info parameter down to
274 svr4_read_so_list.
275 (disable_probes_interface): Add info parameter.
276 (svr4_handle_solib_event): Pass current_program_space to
277 get_svr4_info. Adjust disable_probes_interface cleanup.
278 (svr4_create_probe_breakpoints): Add info parameter, pass it
279 down to register_solib_event_probe.
280 (svr4_create_solib_event_breakpoints): Add info parameter,
281 pass it down to svr4_create_probe_breakpoints.
282 (enable_break): Pass info down to
283 svr4_create_solib_event_breakpoints.
284 (svr4_solib_create_inferior_hook): Pass current_program_space to
285 get_svr4_info.
286 (svr4_clear_solib): Likewise.
287
7905fc35
PA
2882019-04-22 Pedro Alves <palves@redhat.com>
289
290 * solib-svr4.c (svr4_free_objfile_observer): New.
291 (probe_and_action::objfile): New field.
292 (probes_table_htab_remove_objfile_probes)
293 (probes_table_remove_objfile_probes): New functions.
294 (register_solib_event_probe): Add 'objfile' parameter. Store it
295 in the new probe_and_action. Don't store the probe in 'lookup'.
296 (svr4_create_probe_breakpoints): Pass objfile to
297 register_solib_event_probe.
298 (_initialize_svr4_solib): Register a free_objfile observer.
299
fb881986
TT
3002019-04-19 Tom Tromey <tom@tromey.com>
301
302 * common/queue.h: Remove.
303
8732db6c
TT
3042019-04-19 Tom Tromey <tom@tromey.com>
305
306 * event-loop.c: Don't include "common/queue.h".
307
97dfbadd
TT
3082019-04-19 Tom Tromey <tom@tromey.com>
309
310 * remote.c (remote_target): Use delete.
311 * remote-notif.h: Include <list>, not "common/queue.h".
312 (notif_client_p): Remove typedef.
313 (remote_notif_state): Add constructor, destructor, initializer.
314 <notif_queue>: Now a std::list.
315 (remote_notif_state_xfree): Don't declare.
316 * remote-notif.c (remote_notif_process, handle_notification)
317 (remote_notif_state_allocate): Update.
318 (~remote_notif_state): Rename from remote_notif_state_xfree.
319
cf250e36
TT
3202019-04-19 Tom Tromey <tom@tromey.com>
321
322 * symfile.c (reread_symbols): Update.
323 * objfiles.c (objfile_register_static_link)
324 (objfile_lookup_static_link): Update
325 (~objfile) Don't delete static_links.
326 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
327
61f4b350
TT
3282019-04-19 Tom Tromey <tom@tromey.com>
329
330 * type-stack.h (struct type_stack) <insert>: Constify string.
331 * type-stack.c (type_stack::insert): Constify string.
332 * gdbtypes.h (lookup_template_type): Update.
333 (address_space_name_to_int): Update.
334 * gdbtypes.c (address_space_name_to_int): Make space_identifier
335 const.
336 (lookup_template_type): Make name const.
337 * c-exp.y: Update rules.
338 (lex_one_token, classify_name, classify_inner_name)
339 (c_print_token): Update.
340 * p-exp.y: Update rules.
341 (yylex): Update.
342 * f-exp.y: Update rules.
343 (yylex): Update.
344 * d-exp.y: Update rules.
345 (lex_one_token, classify_name, classify_inner_name): Update.
346 * parse.c (write_dollar_variable, copy_name): Return std::string.
347 * parser-defs.h (copy_name): Change return type.
348 * m2-exp.y: Update rules.
349 (yylex): Update.
350 * go-exp.y (lex_one_token): Update.
351 Update rules.
352 (classify_unsafe_function, classify_packaged_name)
353 (classify_name, yylex): Update.
354
189b8c2e
ST
3552019-04-19 Sergei Trofimovich <siarheit@google.com>
356
357 * configure.ac: add --enable-source-highlight switch.
358 * configure: Regenerate.
359 * top.c (print_gdb_version): plumb --enable-source-highlight
360 status to "show configuration".
361
8ecb59f8
TT
3622019-04-19 Tom Tromey <tromey@adacore.com>
363
364 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
365 Check ADA_TYPE_P.
366 (empty_record, ada_template_to_fixed_record_type_1)
367 (template_to_static_fixed_type)
368 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
369 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
370 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
371 macros.
372
62160ec9
TT
3732019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
374
375 PR symtab/24423:
376 * source.c (print_source_lines_base): Advance "iter" when a
377 control character is seen.
378
f2ae8bc8
PW
3792019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
380
381 * inferior.h (struct infcall_suspend_state_deleter):
382 Catch exception in destructor to avoid crash.
383
d563b953
PW
3842019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
385
386 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
387 close to the add_com "shell".
388
dc34c897
TT
3892019-04-18 Tom Tromey <tromey@adacore.com>
390
391 * process-stratum-target.h (class process_stratum_target)
392 <stratum>: Add "final".
393
a12e5744
TT
3942019-04-17 Tom Tromey <tromey@adacore.com>
395
396 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
397 against nullptr before use.
398
a7e559cc
AH
3992019-04-17 Alan Hayward <alan.hayward@arm.com>
400
401 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
402
c01660c6
AB
4032019-04-17 Jim Wilson <jimw@sifive.com>
404 Andrew Burgess <andrew.burgess@embecosm.com>
405
406 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
407 code read might fail, assume 4-byte breakpoint in that case.
408
4aa866af
LS
4092019-04-15 Leszek Swirski <leszeks@google.com>
410
411 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
412 rather than a hand-rolled POD check when checking for forced MEMORY
413 classification.
414
48574d91
AH
4152019-04-15 Alan Hayward <alan.hayward@arm.com>
416
417 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
418 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
419 function.
420 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
421 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
422 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
423 declaration.
424
4da037ef
AH
4252019-04-15 Alan Hayward <alan.hayward@arm.com>
426
427 * aarch64-linux-nat.c
428 (aarch64_linux_nat_target::thread_architecture): Add override.
429 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
430 each VQ.
431
ccb8d7e8
AH
4322019-04-15 Alan Hayward <alan.hayward@arm.com>
433
434 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
435
35add35e
AB
4362019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
437
438 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
439 target types of size 96-bits, add some additional comments, and
440 check that the builtin type we found was the correct size.
441
51196bbc
EZ
4422019-04-12 Eli Zaretskii <eliz@gnu.org>
443
444 * utils.c (prompt_for_continue): Don't restore the styling at the
445 end, as applied_style has the wrong value. This fixes styling in
446 long lists of file names that are interrupted by the "Continue?"
447 prompt.
448
62253a61
AB
4492019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
450
451 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
452 * c-lang.c (c_language_defn): Likewise.
453 (cplus_language_defn): Likewise.
454 (asm_language_defn): Likewise.
455 (minimal_language_defn): Likewise.
456 * d-lang.c (d_language_defn): Likewise.
457 * f-lang.c (f_language_defn): Likewise.
458 * go-lang.c (go_language_defn): Likewise.
459 * language.c (unknown_language_defn): Likewise.
460 (auto_language_defn): Likewise.
461 * language.h (struct language_defn): Remove la_magic field.
462 (LANG_MAGIC): Delete.
463 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
464 * objc-lang.c (objc_language_defn): Likewise.
465 * opencl-lang.c (opencl_language_defn): Likewise.
466 * p-lang.c (pascal_language_defn): Likewise.
467 * rust-lang.c (rust_language_defn): Likewise.
468
a9158a86
AB
4692019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
470
471 * riscv-tdep.c (riscv_type_align): New function.
472 (riscv_type_alignment): Delete.
473 (riscv_arg_location): Use 'type_align'.
474 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
475
41077b66
AB
4762019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
477
478 * gdbtypes.c (type_align): A struct with no non-static fields also
479 has alignment of 1.
480
9f0272f8
AB
4812019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
482
483 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
484 component to 0.
485 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
486 member.
487 (riscv_struct_info::analyse): New implementation using new
488 analyse_inner member function.
489 (riscv_struct_info::field_offset): New member function.
490 (riscv_struct_info::m_offsets): New member variable.
491 (riscv_struct_info::analyse_inner): New private member function,
492 takes the old implementation of riscv_struct_info::analyse but
493 extended to track field offsets.
494 (riscv_call_arg_struct): Update the struct folding special cases
495 to handle cases where empty C++ structs, which are non-zero
496 length, are found.
497 (riscv_arg_location): Initialise the length of each location, a
498 non-zero length now indicates the location is in use.
499 (riscv_push_dummy_call): Allow for the first location having a
500 non-zero offset when setting up arguments.
501 (riscv_return_value): Likewise, but for return values.
502
02cf60c7
TT
5032019-04-11 Tom Tromey <tromey@adacore.com>
504
505 * utils.c (internal_vproblem): Make "msg" const.
506
68811f8f
AH
5072019-04-11 Alan Hayward <alan.hayward@arm.com>
508
509 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
510 * trad-frame.c (trad_frame_reset_saved_regs): New function.
511 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
512 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
513
3f52fdbc
KB
5142019-04-10 Kevin Buettner <kevinb@redhat.com>
515
516 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
517 function.
518 (fill_gregset): Call amd64_linux_collect_native_gregset instead
519 of amd64_collect_native_gregset.
520 (amd64_linux_nat_target::store_registers): Likewise.
521
e9ad22ee
TT
5222019-04-10 Tom Tromey <tom@tromey.com>
523
524 * symtab.c (lookup_global_symbol_from_objfile)
525 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
526 * objfiles.h (class separate_debug_iterator): New.
527 (class separate_debug_range): New.
528 (struct objfile) <separate_debug_objfiles>: New method.
529 (objfile_separate_debug_iterate): Don't declare.
530 * objfiles.c (separate_debug_iterator::operator++): Rename from
531 objfile_separate_debug_iterate.
532 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
533 iterator.
534 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
535 iterator.
536
ee371134
TT
5372019-04-10 Tom Tromey <tom@tromey.com>
538
539 * symfile.c (reread_symbols): Remove old comment.
540 * objfiles.c (free_all_objfiles): Fix a typo.
541
bf227d61
TT
5422019-04-10 Tom Tromey <tom@tromey.com>
543
544 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
545 * minsyms.c (lookup_minimal_symbol): Use foreach.
546 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
547 (lookup_minimal_symbol_solib_trampoline): Likewise.
548 * symfile.c (reread_symbols): Use foreach.
549
8dc433a0
TT
5502019-04-09 Ivan Begert <ivanbegert@gmail.com>
551 Tom Tromey <tromey@adacore.com>
552
553 PR rust/24414:
554 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
555 (rust_lex_int_test): Change "value" to be LONGEST.
556 (rust_lex_tests): Add test for long integer literal.
557
9ab8741a
TT
5582019-04-09 Tom Tromey <tromey@adacore.com>
559
560 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
561 to bool.
562 (extended_remote_target::attach): Update.
563 (remote_target::remote_notice_new_inferior): Update.
564 (remote_target::add_current_inferior_and_thread): Update.
565 * inferior.c (exit_inferior_1): Use "false".
566 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
567
e242fd12
SM
5682019-04-09 Simon Marchi <simon.marchi@efficios.com>
569
9ca1957f 570 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
571 the "start" command.
572
2b0c8b01
KB
5732019-04-08 Kevin Buettner <kevinb@redhat.com>
574
575 * python/py-inferior.c (infpy_thread_from_thread_handle):
576 Adjust comments to reflect renaming of thread_from_thread_handle
577 to thread_from_handle. Adjust keywords. Fix type error message.
578 (inferior_object_methods): Add thread_from_handle. Retain
579 thread_from_thread_handle, but mark it as deprecated.
580
50a82723
KB
5812019-04-08 Kevin Buettner <kevinb@redhat.com>
582
583 * gdbthread.h (find_thread_by_handle): Revise declaration.
584 * thread.c (find_thread_by_handle): Likewise. Adjust
585 implementation too.
586 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
587 support for buffer objects as handles.
588
cf63b016
KB
5892019-04-08 Kevin Buettner <kevinb@redhat.com>
590
591 * python/py-infthread.c (thpy_thread_handle): New function.
592 (thread_object_methods): Register thpy_thread_handle.
593
3d6c6204
KB
5942019-04-08 Kevin Buettner <kevinb@redhat.com>
595
596 * gdbthread.h (thread_to_thread_handle): Declare.
597 * thread.c (gdbtypes.h): Include.
598 (thread_to_thread_handle): New function.
599
600 * target.h (struct target_ops): Add thread_info_to_thread_handle.
601 (target_thread_info_to_thread_handle): Declare.
602 * target.c (target_thread_info_to_thread_handle): New function.
603 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
604 * target-delegates.c: Regenerate.
605
606 * linux-thread-db.c (class thread_db_target): Add method
607 thread_info_to_thread_handle.
608 (thread_db_target::thread_info_to_thread_handle): Define.
609 * remote.c (class remote_target): Add new method
610 thread_info_to_thread_handle.
611 (remote_target::thread_info_to_thread_handle): Define.
612
56be6ea8
PA
6132019-04-08 Pedro Alves <palves@redhat.com>
614
615 * common/common-exceptions.c (throw_exception): Don't create
616 named object to throw; throw directly.
617 (throw_it): Likewise. Don't initialize gdb_exception::message
618 here, with new; pass FMT and AP to the ctor instead.
619 * common/common-exceptions.h: Include <string>.
620 (gdb_exception::gdb_exception(enum return_reason, enum errors,
621 const char *, va_list)): New ctor. Use std::make_shared.
622 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
623 errors)): Delete.
624 (gdb_exception_error::gdb_exception_error(enum errors, const char
625 *, va_list)): New.
626 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
627 Add assertion.
628 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
629 errors)): Delete.
630 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
631 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
632 Add assertion.
633
eedc3f4f
TT
6342019-04-08 Tom Tromey <tom@tromey.com>
635
636 * valops.c (value_rtti_indirect_type): Replace throw_exception
637 with throw.
638 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
639 with throw.
640 * thread.c (thr_try_catch_cmd): Replace throw_exception with
641 throw.
642 * target.c (target_translate_tls_address): Replace throw_exception
643 with throw.
644 * stack.c (frame_apply_command_count): Replace throw_exception
645 with throw.
646 * solib-spu.c (append_ocl_sos): Replace throw_exception with
647 throw.
648 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
649 with throw.
650 * rs6000-tdep.c (rs6000_frame_cache)
651 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
652 * remote.c: Replace throw_exception with throw.
653 * record-full.c (record_full_message, record_full_wait_1)
654 (record_full_restore): Replace throw_exception with throw.
655 * record-btrace.c:
656 (get_thread_current_frame_id, record_btrace_start_replaying)
657 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
658 (cmd_record_btrace_start): Replace throw_exception with throw.
659 * parse.c (parse_exp_in_context_1): Replace throw_exception with
660 throw.
661 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
662 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
663 * linespec.c:
664 (find_linespec_symbols): Replace throw_exception with throw.
665 * infrun.c (displaced_step_prepare, resume): Replace
666 throw_exception with throw.
667 * infcmd.c (post_create_inferior): Replace throw_exception with
668 throw.
669 * inf-loop.c (inferior_event_handler): Replace throw_exception
670 with throw.
671 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
672 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
673 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
674 (get_prev_frame_always, get_frame_pc_if_available)
675 (get_frame_address_in_block_if_available, get_frame_language):
676 Replace throw_exception with throw.
677 * frame-unwind.c (frame_unwind_try_unwinder): Replace
678 throw_exception with throw.
679 * eval.c (fetch_subexp_value, evaluate_var_value)
680 (evaluate_funcall, evaluate_subexp_standard): Replace
681 throw_exception with throw.
682 * dwarf2loc.c (call_site_find_chain)
683 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
684 Replace throw_exception with throw.
685 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
686 with throw.
687 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
688 throw.
689 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
690 * completer.c (complete_line_internal): Replace throw_exception
691 with throw.
692 * compile/compile-object-run.c (compile_object_run): Replace
693 throw_exception with throw.
694 * cli/cli-script.c (process_next_line): Replace throw_exception
695 with throw.
696 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
697 (btrace_enable, btrace_maint_update_pt_packets): Replace
698 throw_exception with throw.
699 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
700 throw_exception with throw.
701 * break-catch-throw.c (re_set_exception_catchpoint): Replace
702 throw_exception with throw.
703 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
704 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
705 * aarch64-tdep.c (aarch64_make_prologue_cache)
706 (aarch64_make_stub_cache): Replace throw_exception with throw.
707
26003a20
TT
7082019-04-08 Tom Tromey <tom@tromey.com>
709
710 * common/common-exceptions.c (throw_exception): Rename from
711 throw_exception_cxx. Remove old copy. Make argument const.
712 (throw_it): Create and throw exception objects directly.
713 * common/common-exceptions.h (throw_exception): Make argument
714 const.
715 (struct gdb_exception_error): Add constructor.
716 (struct gdb_exception_quit): Add constructor.
717
d272eb37
TT
7182019-04-08 Tom Tromey <tom@tromey.com>
719
720 * common/common-exceptions.h (exception_rethrow): Don't declare.
721 (TRY_SJLJ): Update comment.
722 (TRY, CATCH, END_CATCH): Remove.
723 * common/common-exceptions.c (exception_rethrow): Remove.
724
230d2906
TT
7252019-04-08 Tom Tromey <tom@tromey.com>
726
727 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
728 Remove.
729 (gdb_exception_error): Rename from
730 gdb_exception_RETURN_MASK_ERROR.
731 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
732 (gdb_quit_bad_alloc): Update.
733 * aarch64-tdep.c: Update.
734 * ada-lang.c: Update.
735 * ada-typeprint.c: Update.
736 * ada-valprint.c: Update.
737 * amd64-tdep.c: Update.
738 * arch-utils.c: Update.
739 * break-catch-throw.c: Update.
740 * breakpoint.c: Update.
741 * btrace.c: Update.
742 * c-varobj.c: Update.
743 * cli/cli-cmds.c: Update.
744 * cli/cli-interp.c: Update.
745 * cli/cli-script.c: Update.
746 * common/common-exceptions.c: Update.
747 * common/new-op.c: Update.
748 * common/selftest.c: Update.
749 * compile/compile-c-symbols.c: Update.
750 * compile/compile-cplus-symbols.c: Update.
751 * compile/compile-object-load.c: Update.
752 * compile/compile-object-run.c: Update.
753 * completer.c: Update.
754 * corelow.c: Update.
755 * cp-abi.c: Update.
756 * cp-support.c: Update.
757 * cp-valprint.c: Update.
758 * darwin-nat.c: Update.
759 * disasm-selftests.c: Update.
760 * dtrace-probe.c: Update.
761 * dwarf-index-cache.c: Update.
762 * dwarf-index-write.c: Update.
763 * dwarf2-frame-tailcall.c: Update.
764 * dwarf2-frame.c: Update.
765 * dwarf2loc.c: Update.
766 * dwarf2read.c: Update.
767 * eval.c: Update.
768 * event-loop.c: Update.
769 * event-top.c: Update.
770 * exec.c: Update.
771 * f-valprint.c: Update.
772 * fbsd-tdep.c: Update.
773 * frame-unwind.c: Update.
774 * frame.c: Update.
775 * gdbtypes.c: Update.
776 * gnu-v3-abi.c: Update.
777 * guile/guile-internal.h: Update.
778 * guile/scm-block.c: Update.
779 * guile/scm-breakpoint.c: Update.
780 * guile/scm-cmd.c: Update.
781 * guile/scm-disasm.c: Update.
782 * guile/scm-frame.c: Update.
783 * guile/scm-lazy-string.c: Update.
784 * guile/scm-math.c: Update.
785 * guile/scm-param.c: Update.
786 * guile/scm-ports.c: Update.
787 * guile/scm-pretty-print.c: Update.
788 * guile/scm-symbol.c: Update.
789 * guile/scm-symtab.c: Update.
790 * guile/scm-type.c: Update.
791 * guile/scm-value.c: Update.
792 * i386-linux-tdep.c: Update.
793 * i386-tdep.c: Update.
794 * inf-loop.c: Update.
795 * infcall.c: Update.
796 * infcmd.c: Update.
797 * infrun.c: Update.
798 * jit.c: Update.
799 * language.c: Update.
800 * linespec.c: Update.
801 * linux-fork.c: Update.
802 * linux-nat.c: Update.
803 * linux-tdep.c: Update.
804 * linux-thread-db.c: Update.
805 * main.c: Update.
806 * mi/mi-cmd-break.c: Update.
807 * mi/mi-cmd-stack.c: Update.
808 * mi/mi-interp.c: Update.
809 * mi/mi-main.c: Update.
810 * objc-lang.c: Update.
811 * p-valprint.c: Update.
812 * parse.c: Update.
813 * ppc-linux-tdep.c: Update.
814 * printcmd.c: Update.
815 * python/py-arch.c: Update.
816 * python/py-breakpoint.c: Update.
817 * python/py-cmd.c: Update.
818 * python/py-finishbreakpoint.c: Update.
819 * python/py-frame.c: Update.
820 * python/py-framefilter.c: Update.
821 * python/py-gdb-readline.c: Update.
822 * python/py-inferior.c: Update.
823 * python/py-infthread.c: Update.
824 * python/py-lazy-string.c: Update.
825 * python/py-linetable.c: Update.
826 * python/py-objfile.c: Update.
827 * python/py-param.c: Update.
828 * python/py-prettyprint.c: Update.
829 * python/py-progspace.c: Update.
830 * python/py-record-btrace.c: Update.
831 * python/py-record.c: Update.
832 * python/py-symbol.c: Update.
833 * python/py-type.c: Update.
834 * python/py-unwind.c: Update.
835 * python/py-utils.c: Update.
836 * python/py-value.c: Update.
837 * python/python.c: Update.
838 * record-btrace.c: Update.
839 * record-full.c: Update.
840 * remote-fileio.c: Update.
841 * remote.c: Update.
842 * riscv-tdep.c: Update.
843 * rs6000-aix-tdep.c: Update.
844 * rs6000-tdep.c: Update.
845 * rust-exp.y: Update.
846 * rust-lang.c: Update.
847 * s390-tdep.c: Update.
848 * selftest-arch.c: Update.
849 * solib-dsbt.c: Update.
850 * solib-frv.c: Update.
851 * solib-spu.c: Update.
852 * solib-svr4.c: Update.
853 * solib.c: Update.
854 * sparc64-linux-tdep.c: Update.
855 * stack.c: Update.
856 * symfile-mem.c: Update.
857 * symmisc.c: Update.
858 * target.c: Update.
859 * thread.c: Update.
860 * top.c: Update.
861 * tracefile-tfile.c: Update.
862 * tui/tui.c: Update.
863 * typeprint.c: Update.
864 * unittests/cli-utils-selftests.c: Update.
865 * unittests/parse-connection-spec-selftests.c: Update.
866 * valops.c: Update.
867 * valprint.c: Update.
868 * value.c: Update.
869 * varobj.c: Update.
870 * windows-nat.c: Update.
871 * x86-linux-nat.c: Update.
872 * xml-support.c: Update.
873
a70b8144
TT
8742019-04-08 Tom Tromey <tom@tromey.com>
875
876 * xml-support.c: Use C++ exception handling.
877 * x86-linux-nat.c: Use C++ exception handling.
878 * windows-nat.c: Use C++ exception handling.
879 * varobj.c: Use C++ exception handling.
880 * value.c: Use C++ exception handling.
881 * valprint.c: Use C++ exception handling.
882 * valops.c: Use C++ exception handling.
883 * unittests/parse-connection-spec-selftests.c: Use C++ exception
884 handling.
885 * unittests/cli-utils-selftests.c: Use C++ exception handling.
886 * typeprint.c: Use C++ exception handling.
887 * tui/tui.c: Use C++ exception handling.
888 * tracefile-tfile.c: Use C++ exception handling.
889 * top.c: Use C++ exception handling.
890 * thread.c: Use C++ exception handling.
891 * target.c: Use C++ exception handling.
892 * symmisc.c: Use C++ exception handling.
893 * symfile-mem.c: Use C++ exception handling.
894 * stack.c: Use C++ exception handling.
895 * sparc64-linux-tdep.c: Use C++ exception handling.
896 * solib.c: Use C++ exception handling.
897 * solib-svr4.c: Use C++ exception handling.
898 * solib-spu.c: Use C++ exception handling.
899 * solib-frv.c: Use C++ exception handling.
900 * solib-dsbt.c: Use C++ exception handling.
901 * selftest-arch.c: Use C++ exception handling.
902 * s390-tdep.c: Use C++ exception handling.
903 * rust-lang.c: Use C++ exception handling.
904 * rust-exp.y: Use C++ exception handling.
905 * rs6000-tdep.c: Use C++ exception handling.
906 * rs6000-aix-tdep.c: Use C++ exception handling.
907 * riscv-tdep.c: Use C++ exception handling.
908 * remote.c: Use C++ exception handling.
909 * remote-fileio.c: Use C++ exception handling.
910 * record-full.c: Use C++ exception handling.
911 * record-btrace.c: Use C++ exception handling.
912 * python/python.c: Use C++ exception handling.
913 * python/py-value.c: Use C++ exception handling.
914 * python/py-utils.c: Use C++ exception handling.
915 * python/py-unwind.c: Use C++ exception handling.
916 * python/py-type.c: Use C++ exception handling.
917 * python/py-symbol.c: Use C++ exception handling.
918 * python/py-record.c: Use C++ exception handling.
919 * python/py-record-btrace.c: Use C++ exception handling.
920 * python/py-progspace.c: Use C++ exception handling.
921 * python/py-prettyprint.c: Use C++ exception handling.
922 * python/py-param.c: Use C++ exception handling.
923 * python/py-objfile.c: Use C++ exception handling.
924 * python/py-linetable.c: Use C++ exception handling.
925 * python/py-lazy-string.c: Use C++ exception handling.
926 * python/py-infthread.c: Use C++ exception handling.
927 * python/py-inferior.c: Use C++ exception handling.
928 * python/py-gdb-readline.c: Use C++ exception handling.
929 * python/py-framefilter.c: Use C++ exception handling.
930 * python/py-frame.c: Use C++ exception handling.
931 * python/py-finishbreakpoint.c: Use C++ exception handling.
932 * python/py-cmd.c: Use C++ exception handling.
933 * python/py-breakpoint.c: Use C++ exception handling.
934 * python/py-arch.c: Use C++ exception handling.
935 * printcmd.c: Use C++ exception handling.
936 * ppc-linux-tdep.c: Use C++ exception handling.
937 * parse.c: Use C++ exception handling.
938 * p-valprint.c: Use C++ exception handling.
939 * objc-lang.c: Use C++ exception handling.
940 * mi/mi-main.c: Use C++ exception handling.
941 * mi/mi-interp.c: Use C++ exception handling.
942 * mi/mi-cmd-stack.c: Use C++ exception handling.
943 * mi/mi-cmd-break.c: Use C++ exception handling.
944 * main.c: Use C++ exception handling.
945 * linux-thread-db.c: Use C++ exception handling.
946 * linux-tdep.c: Use C++ exception handling.
947 * linux-nat.c: Use C++ exception handling.
948 * linux-fork.c: Use C++ exception handling.
949 * linespec.c: Use C++ exception handling.
950 * language.c: Use C++ exception handling.
951 * jit.c: Use C++ exception handling.
952 * infrun.c: Use C++ exception handling.
953 * infcmd.c: Use C++ exception handling.
954 * infcall.c: Use C++ exception handling.
955 * inf-loop.c: Use C++ exception handling.
956 * i386-tdep.c: Use C++ exception handling.
957 * i386-linux-tdep.c: Use C++ exception handling.
958 * guile/scm-value.c: Use C++ exception handling.
959 * guile/scm-type.c: Use C++ exception handling.
960 * guile/scm-symtab.c: Use C++ exception handling.
961 * guile/scm-symbol.c: Use C++ exception handling.
962 * guile/scm-pretty-print.c: Use C++ exception handling.
963 * guile/scm-ports.c: Use C++ exception handling.
964 * guile/scm-param.c: Use C++ exception handling.
965 * guile/scm-math.c: Use C++ exception handling.
966 * guile/scm-lazy-string.c: Use C++ exception handling.
967 * guile/scm-frame.c: Use C++ exception handling.
968 * guile/scm-disasm.c: Use C++ exception handling.
969 * guile/scm-cmd.c: Use C++ exception handling.
970 * guile/scm-breakpoint.c: Use C++ exception handling.
971 * guile/scm-block.c: Use C++ exception handling.
972 * guile/guile-internal.h: Use C++ exception handling.
973 * gnu-v3-abi.c: Use C++ exception handling.
974 * gdbtypes.c: Use C++ exception handling.
975 * frame.c: Use C++ exception handling.
976 * frame-unwind.c: Use C++ exception handling.
977 * fbsd-tdep.c: Use C++ exception handling.
978 * f-valprint.c: Use C++ exception handling.
979 * exec.c: Use C++ exception handling.
980 * event-top.c: Use C++ exception handling.
981 * event-loop.c: Use C++ exception handling.
982 * eval.c: Use C++ exception handling.
983 * dwarf2read.c: Use C++ exception handling.
984 * dwarf2loc.c: Use C++ exception handling.
985 * dwarf2-frame.c: Use C++ exception handling.
986 * dwarf2-frame-tailcall.c: Use C++ exception handling.
987 * dwarf-index-write.c: Use C++ exception handling.
988 * dwarf-index-cache.c: Use C++ exception handling.
989 * dtrace-probe.c: Use C++ exception handling.
990 * disasm-selftests.c: Use C++ exception handling.
991 * darwin-nat.c: Use C++ exception handling.
992 * cp-valprint.c: Use C++ exception handling.
993 * cp-support.c: Use C++ exception handling.
994 * cp-abi.c: Use C++ exception handling.
995 * corelow.c: Use C++ exception handling.
996 * completer.c: Use C++ exception handling.
997 * compile/compile-object-run.c: Use C++ exception handling.
998 * compile/compile-object-load.c: Use C++ exception handling.
999 * compile/compile-cplus-symbols.c: Use C++ exception handling.
1000 * compile/compile-c-symbols.c: Use C++ exception handling.
1001 * common/selftest.c: Use C++ exception handling.
1002 * common/new-op.c: Use C++ exception handling.
1003 * cli/cli-script.c: Use C++ exception handling.
1004 * cli/cli-interp.c: Use C++ exception handling.
1005 * cli/cli-cmds.c: Use C++ exception handling.
1006 * c-varobj.c: Use C++ exception handling.
1007 * btrace.c: Use C++ exception handling.
1008 * breakpoint.c: Use C++ exception handling.
1009 * break-catch-throw.c: Use C++ exception handling.
1010 * arch-utils.c: Use C++ exception handling.
1011 * amd64-tdep.c: Use C++ exception handling.
1012 * ada-valprint.c: Use C++ exception handling.
1013 * ada-typeprint.c: Use C++ exception handling.
1014 * ada-lang.c: Use C++ exception handling.
1015 * aarch64-tdep.c: Use C++ exception handling.
1016
3d6e9d23
TT
10172019-04-08 Tom Tromey <tom@tromey.com>
1018
1019 * xml-support.c (gdb_xml_parser::parse): Update.
1020 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
1021 * value.c (show_convenience): Update.
1022 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
1023 (test_parse_flags_qcs): Update.
1024 * thread.c (thr_try_catch_cmd): Update.
1025 * target.c (target_translate_tls_address): Update.
1026 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
1027 (info_frame_command_core, frame_apply_command_count): Update.
1028 * rust-exp.y (rust_lex_exception_test): Update.
1029 * riscv-tdep.c (riscv_print_one_register_info): Update.
1030 * remote.c (remote_target::enable_btrace): Update.
1031 * record-btrace.c (record_btrace_enable_warn): Update.
1032 * python/py-utils.c (gdbpy_convert_exception): Update.
1033 * printcmd.c (do_one_display, print_variable_and_value): Update.
1034 * mi/mi-main.c (mi_print_exception): Update.
1035 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
1036 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1037 * linux-nat.c (linux_nat_target::attach): Update.
1038 * linux-fork.c (class scoped_switch_fork_info): Update.
1039 * infrun.c (displaced_step_prepare): Update.
1040 * infcall.c (call_function_by_hand_dummy): Update.
1041 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
1042 * gnu-v3-abi.c (print_one_vtable): Update.
1043 * frame.c (get_prev_frame_always): Update.
1044 * f-valprint.c (info_common_command_for_block): Update.
1045 * exec.c (try_open_exec_file): Update.
1046 * exceptions.c (print_exception, exception_print)
1047 (exception_fprintf, exception_print_same): Update.
1048 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
1049 * dwarf-index-cache.c (index_cache::store)
1050 (index_cache::lookup_gdb_index): Update.
1051 * darwin-nat.c (maybe_cache_shell): Update.
1052 * cp-valprint.c (cp_print_value_fields): Update.
1053 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
1054 (gcc_cplus_symbol_address): Update.
1055 * compile/compile-c-symbols.c (gcc_convert_symbol)
1056 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
1057 * common/selftest.c: Update.
1058 * common/common-exceptions.h (struct gdb_exception) <message>: Now
1059 a std::string.
1060 (exception_try_scope_entry, exception_try_scope_exit): Don't
1061 declare.
1062 (struct exception_try_scope): Remove.
1063 (TRY): Don't use exception_try_scope.
1064 (struct gdb_exception): Add constructor, operator=.
1065 <what>: New method.
1066 (struct gdb_exception_RETURN_MASK_ALL)
1067 (struct gdb_exception_RETURN_MASK_ERROR)
1068 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
1069 (struct gdb_quit_bad_alloc): Update.
1070 * common/common-exceptions.c (exception_none): Change
1071 initializer.
1072 (struct catcher) <state, exception>: Initialize inline.
1073 <prev>: Remove member.
1074 (current_catcher): Remove.
1075 (catchers): New global.
1076 (exceptions_state_mc_init): Simplify.
1077 (catcher_pop): Remove.
1078 (exceptions_state_mc, exceptions_state_mc_catch): Update.
1079 (try_scope_depth, exception_try_scope_entry)
1080 (exception_try_scope_exit): Remove.
1081 (throw_exception_sjlj): Update.
1082 (exception_messages, exception_messages_size): Remove.
1083 (throw_it): Simplify.
1084 (gdb_exception_sliced_copy): Remove.
1085 (throw_exception_cxx): Update.
1086 * cli/cli-script.c (script_from_file): Update.
1087 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
1088 Update.
1089 * ada-valprint.c (ada_val_print): Update.
1090 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
1091 (create_excep_cond_exprs): Update.
1092
c5c10118
TT
10932019-04-08 Tom Tromey <tom@tromey.com>
1094
1095 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
1096 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
1097 (TRY, CATCH, END_CATCH): Remove some definitions.
1098 * common/common-exceptions.c: Don't use GDB_XCPT.
1099 (catcher_list_size): Remove.
1100 (throw_exception, throw_it): Simplify.
1101
4de283e4
TT
11022019-04-05 Tom Tromey <tom@tromey.com>
1103
1104 Revert the header-sorting patch.
1105 * ft32-tdep.c: Revert.
1106 * frv-tdep.c: Revert.
1107 * frv-linux-tdep.c: Revert.
1108 * frame.c: Revert.
1109 * frame-unwind.c: Revert.
1110 * frame-base.c: Revert.
1111 * fork-child.c: Revert.
1112 * findvar.c: Revert.
1113 * findcmd.c: Revert.
1114 * filesystem.c: Revert.
1115 * filename-seen-cache.h: Revert.
1116 * filename-seen-cache.c: Revert.
1117 * fbsd-tdep.c: Revert.
1118 * fbsd-nat.h: Revert.
1119 * fbsd-nat.c: Revert.
1120 * f-valprint.c: Revert.
1121 * f-typeprint.c: Revert.
1122 * f-lang.c: Revert.
1123 * extension.h: Revert.
1124 * extension.c: Revert.
1125 * extension-priv.h: Revert.
1126 * expprint.c: Revert.
1127 * exec.h: Revert.
1128 * exec.c: Revert.
1129 * exceptions.c: Revert.
1130 * event-top.c: Revert.
1131 * event-loop.c: Revert.
1132 * eval.c: Revert.
1133 * elfread.c: Revert.
1134 * dwarf2read.h: Revert.
1135 * dwarf2read.c: Revert.
1136 * dwarf2loc.c: Revert.
1137 * dwarf2expr.h: Revert.
1138 * dwarf2expr.c: Revert.
1139 * dwarf2-frame.c: Revert.
1140 * dwarf2-frame-tailcall.c: Revert.
1141 * dwarf-index-write.h: Revert.
1142 * dwarf-index-write.c: Revert.
1143 * dwarf-index-common.c: Revert.
1144 * dwarf-index-cache.h: Revert.
1145 * dwarf-index-cache.c: Revert.
1146 * dummy-frame.c: Revert.
1147 * dtrace-probe.c: Revert.
1148 * disasm.h: Revert.
1149 * disasm.c: Revert.
1150 * disasm-selftests.c: Revert.
1151 * dictionary.c: Revert.
1152 * dicos-tdep.c: Revert.
1153 * demangle.c: Revert.
1154 * dcache.h: Revert.
1155 * dcache.c: Revert.
1156 * darwin-nat.h: Revert.
1157 * darwin-nat.c: Revert.
1158 * darwin-nat-info.c: Revert.
1159 * d-valprint.c: Revert.
1160 * d-namespace.c: Revert.
1161 * d-lang.c: Revert.
1162 * ctf.c: Revert.
1163 * csky-tdep.c: Revert.
1164 * csky-linux-tdep.c: Revert.
1165 * cris-tdep.c: Revert.
1166 * cris-linux-tdep.c: Revert.
1167 * cp-valprint.c: Revert.
1168 * cp-support.c: Revert.
1169 * cp-namespace.c: Revert.
1170 * cp-abi.c: Revert.
1171 * corelow.c: Revert.
1172 * corefile.c: Revert.
1173 * continuations.c: Revert.
1174 * completer.h: Revert.
1175 * completer.c: Revert.
1176 * complaints.c: Revert.
1177 * coffread.c: Revert.
1178 * coff-pe-read.c: Revert.
1179 * cli-out.h: Revert.
1180 * cli-out.c: Revert.
1181 * charset.c: Revert.
1182 * c-varobj.c: Revert.
1183 * c-valprint.c: Revert.
1184 * c-typeprint.c: Revert.
1185 * c-lang.c: Revert.
1186 * buildsym.c: Revert.
1187 * buildsym-legacy.c: Revert.
1188 * build-id.h: Revert.
1189 * build-id.c: Revert.
1190 * btrace.c: Revert.
1191 * bsd-uthread.c: Revert.
1192 * breakpoint.h: Revert.
1193 * breakpoint.c: Revert.
1194 * break-catch-throw.c: Revert.
1195 * break-catch-syscall.c: Revert.
1196 * break-catch-sig.c: Revert.
1197 * blockframe.c: Revert.
1198 * block.c: Revert.
1199 * bfin-tdep.c: Revert.
1200 * bfin-linux-tdep.c: Revert.
1201 * bfd-target.c: Revert.
1202 * bcache.c: Revert.
1203 * ax-general.c: Revert.
1204 * ax-gdb.h: Revert.
1205 * ax-gdb.c: Revert.
1206 * avr-tdep.c: Revert.
1207 * auxv.c: Revert.
1208 * auto-load.c: Revert.
1209 * arm-wince-tdep.c: Revert.
1210 * arm-tdep.c: Revert.
1211 * arm-symbian-tdep.c: Revert.
1212 * arm-pikeos-tdep.c: Revert.
1213 * arm-obsd-tdep.c: Revert.
1214 * arm-nbsd-tdep.c: Revert.
1215 * arm-nbsd-nat.c: Revert.
1216 * arm-linux-tdep.c: Revert.
1217 * arm-linux-nat.c: Revert.
1218 * arm-fbsd-tdep.c: Revert.
1219 * arm-fbsd-nat.c: Revert.
1220 * arm-bsd-tdep.c: Revert.
1221 * arch-utils.c: Revert.
1222 * arc-tdep.c: Revert.
1223 * arc-newlib-tdep.c: Revert.
1224 * annotate.h: Revert.
1225 * annotate.c: Revert.
1226 * amd64-windows-tdep.c: Revert.
1227 * amd64-windows-nat.c: Revert.
1228 * amd64-tdep.c: Revert.
1229 * amd64-sol2-tdep.c: Revert.
1230 * amd64-obsd-tdep.c: Revert.
1231 * amd64-obsd-nat.c: Revert.
1232 * amd64-nbsd-tdep.c: Revert.
1233 * amd64-nbsd-nat.c: Revert.
1234 * amd64-nat.c: Revert.
1235 * amd64-linux-tdep.c: Revert.
1236 * amd64-linux-nat.c: Revert.
1237 * amd64-fbsd-tdep.c: Revert.
1238 * amd64-fbsd-nat.c: Revert.
1239 * amd64-dicos-tdep.c: Revert.
1240 * amd64-darwin-tdep.c: Revert.
1241 * amd64-bsd-nat.c: Revert.
1242 * alpha-tdep.c: Revert.
1243 * alpha-obsd-tdep.c: Revert.
1244 * alpha-nbsd-tdep.c: Revert.
1245 * alpha-mdebug-tdep.c: Revert.
1246 * alpha-linux-tdep.c: Revert.
1247 * alpha-linux-nat.c: Revert.
1248 * alpha-bsd-tdep.c: Revert.
1249 * alpha-bsd-nat.c: Revert.
1250 * aix-thread.c: Revert.
1251 * agent.c: Revert.
1252 * addrmap.c: Revert.
1253 * ada-varobj.c: Revert.
1254 * ada-valprint.c: Revert.
1255 * ada-typeprint.c: Revert.
1256 * ada-tasks.c: Revert.
1257 * ada-lang.c: Revert.
1258 * aarch64-tdep.c: Revert.
1259 * aarch64-ravenscar-thread.c: Revert.
1260 * aarch64-newlib-tdep.c: Revert.
1261 * aarch64-linux-tdep.c: Revert.
1262 * aarch64-linux-nat.c: Revert.
1263 * aarch64-fbsd-tdep.c: Revert.
1264 * aarch64-fbsd-nat.c: Revert.
1265 * aarch32-linux-nat.c: Revert.
1266
d55e5aa6
TT
12672019-04-05 Tom Tromey <tom@tromey.com>
1268
1269 * ft32-tdep.c: Sort headers.
1270 * frv-tdep.c: Sort headers.
1271 * frv-linux-tdep.c: Sort headers.
1272 * frame.c: Sort headers.
1273 * frame-unwind.c: Sort headers.
1274 * frame-base.c: Sort headers.
1275 * fork-child.c: Sort headers.
1276 * findvar.c: Sort headers.
1277 * findcmd.c: Sort headers.
1278 * filesystem.c: Sort headers.
1279 * filename-seen-cache.h: Sort headers.
1280 * filename-seen-cache.c: Sort headers.
1281 * fbsd-tdep.c: Sort headers.
1282 * fbsd-nat.h: Sort headers.
1283 * fbsd-nat.c: Sort headers.
1284 * f-valprint.c: Sort headers.
1285 * f-typeprint.c: Sort headers.
1286 * f-lang.c: Sort headers.
1287 * extension.h: Sort headers.
1288 * extension.c: Sort headers.
1289 * extension-priv.h: Sort headers.
1290 * expprint.c: Sort headers.
1291 * exec.h: Sort headers.
1292 * exec.c: Sort headers.
1293 * exceptions.c: Sort headers.
1294 * event-top.c: Sort headers.
1295 * event-loop.c: Sort headers.
1296 * eval.c: Sort headers.
1297 * elfread.c: Sort headers.
1298 * dwarf2read.h: Sort headers.
1299 * dwarf2read.c: Sort headers.
1300 * dwarf2loc.c: Sort headers.
1301 * dwarf2expr.h: Sort headers.
1302 * dwarf2expr.c: Sort headers.
1303 * dwarf2-frame.c: Sort headers.
1304 * dwarf2-frame-tailcall.c: Sort headers.
1305 * dwarf-index-write.h: Sort headers.
1306 * dwarf-index-write.c: Sort headers.
1307 * dwarf-index-common.c: Sort headers.
1308 * dwarf-index-cache.h: Sort headers.
1309 * dwarf-index-cache.c: Sort headers.
1310 * dummy-frame.c: Sort headers.
1311 * dtrace-probe.c: Sort headers.
1312 * disasm.h: Sort headers.
1313 * disasm.c: Sort headers.
1314 * disasm-selftests.c: Sort headers.
1315 * dictionary.c: Sort headers.
1316 * dicos-tdep.c: Sort headers.
1317 * demangle.c: Sort headers.
1318 * dcache.h: Sort headers.
1319 * dcache.c: Sort headers.
1320 * darwin-nat.h: Sort headers.
1321 * darwin-nat.c: Sort headers.
1322 * darwin-nat-info.c: Sort headers.
1323 * d-valprint.c: Sort headers.
1324 * d-namespace.c: Sort headers.
1325 * d-lang.c: Sort headers.
1326 * ctf.c: Sort headers.
1327 * csky-tdep.c: Sort headers.
1328 * csky-linux-tdep.c: Sort headers.
1329 * cris-tdep.c: Sort headers.
1330 * cris-linux-tdep.c: Sort headers.
1331 * cp-valprint.c: Sort headers.
1332 * cp-support.c: Sort headers.
1333 * cp-namespace.c: Sort headers.
1334 * cp-abi.c: Sort headers.
1335 * corelow.c: Sort headers.
1336 * corefile.c: Sort headers.
1337 * continuations.c: Sort headers.
1338 * completer.h: Sort headers.
1339 * completer.c: Sort headers.
1340 * complaints.c: Sort headers.
1341 * coffread.c: Sort headers.
1342 * coff-pe-read.c: Sort headers.
1343 * cli-out.h: Sort headers.
1344 * cli-out.c: Sort headers.
1345 * charset.c: Sort headers.
1346 * c-varobj.c: Sort headers.
1347 * c-valprint.c: Sort headers.
1348 * c-typeprint.c: Sort headers.
1349 * c-lang.c: Sort headers.
1350 * buildsym.c: Sort headers.
1351 * buildsym-legacy.c: Sort headers.
1352 * build-id.h: Sort headers.
1353 * build-id.c: Sort headers.
1354 * btrace.c: Sort headers.
1355 * bsd-uthread.c: Sort headers.
1356 * breakpoint.h: Sort headers.
1357 * breakpoint.c: Sort headers.
1358 * break-catch-throw.c: Sort headers.
1359 * break-catch-syscall.c: Sort headers.
1360 * break-catch-sig.c: Sort headers.
1361 * blockframe.c: Sort headers.
1362 * block.c: Sort headers.
1363 * bfin-tdep.c: Sort headers.
1364 * bfin-linux-tdep.c: Sort headers.
1365 * bfd-target.c: Sort headers.
1366 * bcache.c: Sort headers.
1367 * ax-general.c: Sort headers.
1368 * ax-gdb.h: Sort headers.
1369 * ax-gdb.c: Sort headers.
1370 * avr-tdep.c: Sort headers.
1371 * auxv.c: Sort headers.
1372 * auto-load.c: Sort headers.
1373 * arm-wince-tdep.c: Sort headers.
1374 * arm-tdep.c: Sort headers.
1375 * arm-symbian-tdep.c: Sort headers.
1376 * arm-pikeos-tdep.c: Sort headers.
1377 * arm-obsd-tdep.c: Sort headers.
1378 * arm-nbsd-tdep.c: Sort headers.
1379 * arm-nbsd-nat.c: Sort headers.
1380 * arm-linux-tdep.c: Sort headers.
1381 * arm-linux-nat.c: Sort headers.
1382 * arm-fbsd-tdep.c: Sort headers.
1383 * arm-fbsd-nat.c: Sort headers.
1384 * arm-bsd-tdep.c: Sort headers.
1385 * arch-utils.c: Sort headers.
1386 * arc-tdep.c: Sort headers.
1387 * arc-newlib-tdep.c: Sort headers.
1388 * annotate.h: Sort headers.
1389 * annotate.c: Sort headers.
1390 * amd64-windows-tdep.c: Sort headers.
1391 * amd64-windows-nat.c: Sort headers.
1392 * amd64-tdep.c: Sort headers.
1393 * amd64-sol2-tdep.c: Sort headers.
1394 * amd64-obsd-tdep.c: Sort headers.
1395 * amd64-obsd-nat.c: Sort headers.
1396 * amd64-nbsd-tdep.c: Sort headers.
1397 * amd64-nbsd-nat.c: Sort headers.
1398 * amd64-nat.c: Sort headers.
1399 * amd64-linux-tdep.c: Sort headers.
1400 * amd64-linux-nat.c: Sort headers.
1401 * amd64-fbsd-tdep.c: Sort headers.
1402 * amd64-fbsd-nat.c: Sort headers.
1403 * amd64-dicos-tdep.c: Sort headers.
1404 * amd64-darwin-tdep.c: Sort headers.
1405 * amd64-bsd-nat.c: Sort headers.
1406 * alpha-tdep.c: Sort headers.
1407 * alpha-obsd-tdep.c: Sort headers.
1408 * alpha-nbsd-tdep.c: Sort headers.
1409 * alpha-mdebug-tdep.c: Sort headers.
1410 * alpha-linux-tdep.c: Sort headers.
1411 * alpha-linux-nat.c: Sort headers.
1412 * alpha-bsd-tdep.c: Sort headers.
1413 * alpha-bsd-nat.c: Sort headers.
1414 * aix-thread.c: Sort headers.
1415 * agent.c: Sort headers.
1416 * addrmap.c: Sort headers.
1417 * ada-varobj.c: Sort headers.
1418 * ada-valprint.c: Sort headers.
1419 * ada-typeprint.c: Sort headers.
1420 * ada-tasks.c: Sort headers.
1421 * ada-lang.c: Sort headers.
1422 * aarch64-tdep.c: Sort headers.
1423 * aarch64-ravenscar-thread.c: Sort headers.
1424 * aarch64-newlib-tdep.c: Sort headers.
1425 * aarch64-linux-tdep.c: Sort headers.
1426 * aarch64-linux-nat.c: Sort headers.
1427 * aarch64-fbsd-tdep.c: Sort headers.
1428 * aarch64-fbsd-nat.c: Sort headers.
1429 * aarch32-linux-nat.c: Sort headers.
1430
699bd4cf
TT
14312019-04-04 Tom Tromey <tom@tromey.com>
1432
1433 * varobj.c (varobj_create): Update.
1434 * rust-exp.y (struct rust_parser) <update_innermost_block,
1435 lookup_symbol>: New methods.
1436 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
1437 Rename.
1438 (rust_parser::rust_lookup_type)
1439 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
1440 * printcmd.c (display_command, do_one_display): Update.
1441 * parser-defs.h (struct parser_state) <parser_state>: Add
1442 "tracker" parameter.
1443 (block_tracker): New member.
1444 (class innermost_block_tracker) <innermost_block_tracker>: Add
1445 "types" parameter.
1446 <reset>: Remove method.
1447 (innermost_block): Don't declare.
1448 (null_post_parser): Update.
1449 * parse.c (innermost_block): Remove global.
1450 (write_dollar_variable): Update.
1451 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
1452 Remove "tracker_types" parameter.
1453 (parse_expression): Add "tracker" parameter.
1454 (parse_expression_for_completion): Update.
1455 (null_post_parser): Add "tracker" parameter.
1456 * p-exp.y: Update rules.
1457 * m2-exp.y: Update rules.
1458 * language.h (struct language_defn) <la_post_parser>: Add
1459 "tracker" parameter.
1460 * go-exp.y: Update rules.
1461 * f-exp.y: Update rules.
1462 * expression.h (parse_expression, parse_exp_1): Add "tracker"
1463 parameter.
1464 * d-exp.y: Update rules.
1465 * c-exp.y: Update rules.
1466 * breakpoint.c (set_breakpoint_condition): Create an
1467 innermost_block_tracker.
1468 (watch_command_1): Likewise.
1469 * ada-lang.c (resolve): Add "tracker" parameter.
1470 (resolve_subexp): Likewise.
1471 * ada-exp.y (write_var_from_sym): Update.
1472
dac43e32
TT
14732019-04-04 Tom Tromey <tom@tromey.com>
1474
1475 * type-stack.h: New file.
1476 * type-stack.c: New file.
1477 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
1478 type-stack.h.
1479 (insert_into_type_stack, insert_type, push_type, push_type_int)
1480 (insert_type_address_space, pop_type, pop_type_int)
1481 (pop_typelist, pop_type_stack, append_type_stack)
1482 (push_type_stack, get_type_stack, push_typelist)
1483 (follow_type_instance_flags, follow_types): Don't declare.
1484 * parse.c (type_stack): Remove global.
1485 (parse_exp_in_context): Update.
1486 (insert_into_type_stack, insert_type, push_type, push_type_int)
1487 (insert_type_address_space, pop_type, pop_type_int)
1488 (pop_typelist, pop_type_stack, append_type_stack)
1489 (push_type_stack, get_type_stack, push_typelist)
1490 (follow_type_instance_flags, follow_types): Remove (moved to
1491 type-stack.c).
1492 * f-exp.y (type_stack): New global.
1493 Update rules.
1494 (push_kind_type, f_parse): Update.
1495 * d-exp.y (type_stack): New global.
1496 Update rules.
1497 (d_parse): Update.
1498 * c-exp.y (struct c_parse_state) <type_stack>: New member.
1499 Update rules.
1500 * Makefile.in (COMMON_SFILES): Add type-stack.c.
1501 (HFILES_NO_SRCDIR): Add type-stack.h.
1502
2a612529
TT
15032019-04-04 Tom Tromey <tom@tromey.com>
1504
1505 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
1506 (rust_parser::convert_ast_to_expression, rust_parse)
1507 (rust_lex_test_completion, rust_lex_tests): Update.
1508 * parser-defs.h (struct expr_completion_state): New.
1509 (struct parser_state) <parser_state>: Add completion parameter.
1510 <mark_struct_expression, mark_completion_tag>: New methods.
1511 <parse_completion, m_completion_state>: New members.
1512 (prefixify_expression, null_post_parser): Update.
1513 (mark_struct_expression, mark_completion_tag): Don't declare.
1514 * parse.c (parse_completion, expout_last_struct)
1515 (expout_tag_completion_type, expout_completion_name): Remove
1516 globals.
1517 (parser_state::mark_struct_expression)
1518 (parser_state::mark_completion_tag): Now methods.
1519 (prefixify_expression): Add last_struct parameter.
1520 (prefixify_subexp): Likewise.
1521 (parse_exp_1): Update.
1522 (parse_exp_in_context): Add cstate parameter. Update.
1523 (parse_expression_for_completion): Create an
1524 expr_completion_state.
1525 (null_post_parser): Add "completion" parameter.
1526 * p-exp.y: Update rules.
1527 (yylex): Update.
1528 * language.h (struct language_defn) <la_post_parser>: Add
1529 "completing" parameter.
1530 * go-exp.y: Update rules.
1531 (lex_one_token): Update.
1532 * expression.h (parse_completion): Don't declare.
1533 * d-exp.y: Update rules.
1534 (lex_one_token): Update rules.
1535 * c-exp.y: Update rules.
1536 (lex_one_token): Update.
1537 * ada-lang.c (resolve): Add "parse_completion" parameter.
1538 (resolve_subexp): Likewise.
1539 (ada_resolve_function): Likewise.
1540
43476f0b
TT
15412019-04-04 Tom Tromey <tom@tromey.com>
1542
1543 * parser-defs.h (struct parser_state) <start_arglist,
1544 end_arglist>: New methods.
1545 <arglist_len, m_funcall_chain>: New members.
1546 (arglist_len, start_arglist, end_arglist): Don't declare.
1547 * parse.c (arglist_len, funcall_chain): Remove global.
1548 (start_arglist, end_arglist): Remove functions.
1549 (parse_exp_in_context): Update.
1550 * p-exp.y: Update rules.
1551 * m2-exp.y: Update rules.
1552 * go-exp.y: Update rules.
1553 * f-exp.y: Update rules.
1554 * d-exp.y: Update rules.
1555 * c-exp.y: Update rules.
1556
5776fca3
TT
15572019-04-04 Tom Tromey <tom@tromey.com>
1558
1559 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
1560 lex_operator, push_back>: New methods.
1561 Update all rules.
1562 (rust_parser::lex_hex, lex_escape): Rename and update.
1563 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
1564 (rust_parser::lex_operator): Rename and update.
1565 (rust_parser::lex_number, rustyylex, rustyyerror)
1566 (rust_lex_test_init, rust_lex_test_sequence)
1567 (rust_lex_test_push_back, rust_lex_tests): Update.
1568 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
1569 parameter.
1570 <lexptr, prev_lexptr>: New members.
1571 (lexptr, prev_lexptr): Don't declare.
1572 * parse.c (lexptr, prev_lexptr): Remove globals.
1573 (parse_exp_in_context): Update.
1574 * p-exp.y (yylex, yyerror): Update.
1575 * m2-exp.y (parse_number, yylex, yyerror): Update.
1576 * go-exp.y (lex_one_token, yyerror): Update.
1577 * f-exp.y (match_string_literal, yylex, yyerror): Update.
1578 * d-exp.y (lex_one_token, yyerror): Update.
1579 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
1580 (lex_one_token, yyerror): Update.
1581 * ada-lex.l (YY_INPUT): Update.
1582 (rewind_to_char): Update.
1583 * ada-exp.y (yyerror): Update.
1584
8621b685
TT
15852019-04-04 Tom Tromey <tom@tromey.com>
1586
1587 * rust-exp.y (rustyylex, rust_lex_tests): Update.
1588 * parser-defs.h (struct parser_state) <parser_state>: Add new
1589 parameter.
1590 <comma_terminates>: New member.
1591 (comma_terminates): Don't declare global.
1592 * parse.c (comma_terminates): Remove global.
1593 (parse_exp_in_context): Update.
1594 * p-exp.y (yylex): Update.
1595 * m2-exp.y (yylex): Update.
1596 * go-exp.y (lex_one_token): Update.
1597 * f-exp.y (yylex): Update.
1598 * d-exp.y (lex_one_token): Update.
1599 * c-exp.y (lex_one_token): Update.
1600 * ada-lex.l: Update.
1601
28aaf3fd
TT
16022019-04-04 Tom Tromey <tom@tromey.com>
1603
1604 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
1605 (rustyylex, rust_lex_test_init, rust_lex_test_one)
1606 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
1607 * parser-defs.h (paren_depth): Don't declare.
1608 * parse.c (paren_depth): Remove global.
1609 (parse_exp_in_context): Update.
1610 * p-exp.y (paren_depth): New global.
1611 (pascal_parse): Initialize it.
1612 * m2-exp.y (paren_depth): New global.
1613 (m2_parse): Initialize it.
1614 * go-exp.y (paren_depth): New global.
1615 (go_parse): Initialize it.
1616 * f-exp.y (paren_depth): New global.
1617 (f_parse): Initialize it.
1618 * d-exp.y (paren_depth): New global.
1619 (d_parse): Initialize it.
1620 * c-exp.y (paren_depth): New global.
1621 (c_parse): Initialize it.
1622 * ada-lex.l (paren_depth): New global.
1623 (lexer_init): Initialize it.
1624
1e58a4a4
TT
16252019-04-04 Tom Tromey <tom@tromey.com>
1626
1627 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
1628 (rust_parser::convert_ast_to_type)
1629 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
1630 * parser-defs.h (struct parser_state) <parser_state>: Add
1631 parameters. Initialize new members.
1632 <expression_context_block, expression_context_pc>: New members.
1633 * parse.c (expression_context_block, expression_context_pc):
1634 Remove globals.
1635 (parse_exp_in_context): Update.
1636 * p-exp.y: Update all rules.
1637 (yylex): Update.
1638 * m2-exp.y: Update all rules.
1639 (yylex): Update.
1640 * go-exp.y (yylex): Update.
1641 * f-exp.y (yylex): Update.
1642 * d-exp.y: Update all rules.
1643 (yylex): Update.
1644 * c-exp.y: Update all rules.
1645 (lex_one_token, classify_name, yylex, c_parse): Update.
1646 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
1647
37eedb39
TT
16482019-04-04 Tom Tromey <tom@tromey.com>
1649
1650 * gdbarch.h, gdbarch.c: Rebuild.
1651 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
1652 * stap-probe.h:
1653 (struct stap_parse_info): Replace "parser_state" with
1654 "expr_builder".
1655 * parser-defs.h (struct expr_builder): Rename from "parser_state".
1656 (parser_state): New class.
1657 * parse.c (expr_builder): Rename.
1658 (expr_builder::release): Rename.
1659 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
1660 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
1661 (write_exp_elt_longcst, write_exp_elt_floatcst)
1662 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
1663 (write_exp_string_vector, write_exp_bitstring)
1664 (write_exp_msymbol, mark_struct_expression)
1665 (write_dollar_variable)
1666 (insert_type_address_space, increase_expout_size): Replace
1667 "parser_state" with "expr_builder".
1668 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
1669 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
1670 "parser_state" with "expr_builder".
1671
73923d7e
TT
16722019-04-04 Tom Tromey <tom@tromey.com>
1673
1674 * rust-exp.y: Replace "parse_language" with method call.
1675 * p-exp.y:
1676 (yylex): Replace "parse_language" with method call.
1677 * m2-exp.y:
1678 (yylex): Replace "parse_language" with method call.
1679 * go-exp.y (classify_name): Replace "parse_language" with method
1680 call.
1681 * f-exp.y (yylex): Replace "parse_language" with method call.
1682 * d-exp.y (lex_one_token): Replace "parse_language" with method
1683 call.
1684 * c-exp.y:
1685 (lex_one_token, classify_name, yylex): Replace "parse_language"
1686 with method call.
1687 * ada-exp.y (find_primitive_type, type_char)
1688 (type_system_address): Replace "parse_language" with method call.
1689
fa9f5be6
TT
16902019-04-04 Tom Tromey <tom@tromey.com>
1691
1692 * rust-exp.y: Replace "parse_gdbarch" with method call.
1693 * parse.c (write_dollar_variable, insert_type_address_space):
1694 Replace "parse_gdbarch" with method call.
1695 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
1696 call.
1697 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
1698 call.
1699 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
1700 "parse_gdbarch" with method call.
1701 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
1702 with method call.
1703 * f-exp.y (parse_type, parse_f_type, yylex): Replace
1704 "parse_gdbarch" with method call.
1705 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
1706 "parse_gdbarch" with method call.
1707 * c-exp.y (parse_type, parse_number, classify_name): Replace
1708 "parse_gdbarch" with method call.
1709 * ada-lex.l: Replace "parse_gdbarch" with method call.
1710 * ada-exp.y (parse_type, find_primitive_type, type_char)
1711 (type_system_address): Replace "parse_gdbarch" with method call.
1712
1201a264
TT
17132019-04-04 Tom Tromey <tom@tromey.com>
1714
1715 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
1716 * stap-probe.c (stap_parse_argument): Update.
1717 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
1718 initial_size parameter.
1719 * rust-exp.y (rust_lex_tests): Update.
1720 * parse.c (parser_state): Update.
1721 (parse_exp_in_context): Update.
1722 * parser-defs.h (struct parser_state) <parser_state>: Remove
1723 "initial_size" parameter.
1724
e3980ce2
TT
17252019-04-04 Tom Tromey <tom@tromey.com>
1726
1727 * parser-defs.h (increase_expout_size): Don't declare.
1728 * parse.c (increase_expout_size): Now static.
1729
e9f8e3f1
TS
17302019-04-04 Thomas Schwinge <thomas@codesourcery.com>
1731
1732 * gnu-nat.c (gnu_nat_target::wait): Fix
1733 target_waitstatus_to_string call.
1734
d7df6549
AB
17352019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
1736
1737 * eval.c (evaluate_subexp_standard): Handle internal functions
1738 during Fortran function call handling.
1739
8bdc1658
AB
17402019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
1741
1742 * NEWS: Mention new internal functions.
1743 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
1744 (read_base_type): Use dwarf2_init_complex_target_type.
1745 * value.c (creal_internal_fn): New function.
1746 (cimag_internal_fn): New function.
1747 (_initialize_values): Register new internal functions.
1748
c29705b7
PW
17492019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1750
1751 * infrun.c (stop_all_threads): If debug_infrun, always
1752 trace the wait status after wait_one, using
1753 target_waitstatus_to_string and target_pid_to_str.
1754 (handle_inferior_event): Replace various trace of
1755 wait status kind by a single trace.
1756 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
1757 wait status kind image by target_waitstatus_to_string.
1758 * target/waitstatus.c (target_waitstatus_to_string): Fix
1759 obsolete comment.
1760
05caa1d2
TT
17612019-04-01 Tom Tromey <tromey@adacore.com>
1762
1763 PR symtab/23331:
1764 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
1765
9d1447e0
SDJ
17662019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
1767 Pedro Alves <palves@redhat.com>
1768
1769 * top.c (quit_force): Call 'finalize_values'.
1770 * value.c (finalize_values): New function.
1771 * value.h (finalize_values): Declare.
1772
7734102d
EZ
17732019-03-30 Eli Zaretskii <eliz@gnu.org>
1774
1775 * NEWS: Announce $_gdb_major and $_gdb_minor.
1776
1777 * top.c (init_gdb_version_vars): New function.
1778 (gdb_init): Call init_gdb_version_vars.
1779
188e1fa9
TT
17802019-03-29 Tom Tromey <tromey@adacore.com>
1781
1782 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
1783 help text. Remove dead code.
1784
2880242d
KS
17852019-03-29 Keith Seitz <keiths@redhat.com>
1786
1787 From Siddhesh Poyarekar:
1788 * f-lang.h (f77_get_upperbound): Return LONGEST.
1789 (f77_get_lowerbound): Likewise.
1790 * f-typeprint.c (f_type_print_varspec_suffix): Expand
1791 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
1792 print them.
1793 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
1794 plongest to format print it.
1795 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
1796 (f77_get_upperbound): Likewise.
1797 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
1798 LOWER_BOUND to LONGEST.
1799 (f77_create_arrayprint_offset_tbl): Likewise.
1800
cc1defb1
KS
18012019-03-29 Keith Seitz <keiths@redhat.com>
1802
1803 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
1804 %s/pulongest for TYPE_LENGTH instead of %d in format
1805 strings.
1806 * ada-typerint.c (ada_print_type): Likewise.
1807 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
1808 * compile/compile-c-support.c (generate_register_struct): Likewise.
1809 * gdbtypes.c (recursive_dump_type): Likewise.
1810 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
1811 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
1812 instead of %d in format strings.
1813 * riscv-tdep.c (riscv_type_alignment): Cast second argument
1814 to std::min to ULONGEST.
1815 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
1816 instead of %d in format strings.
1817 * tracepoint.c (info_scope_command): Likewise.
1818 * typeprint.c (print_offset_data::update)
1819 (print_offset_data::finish): Likewise.
1820 * xtensa-tdep.c (xtensa_store_return_value)
1821 (xtensa_push_dummy_call): Likewise.
1822
e432ccf1
JT
18232019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
1824
1825 * windows-nat.c (display_selector): Fixed format specifications
1826 for 64-bit Cygwin.
1827
65d2b333
PW
18282019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1829
1830 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
1831
f489207e
SL
18322019-03-28 Sandra Loosemore <sandra@codesourcery.com>
1833
1834 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
1835 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
1836 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
1837 (nios2_linux_init_abi): Install it.
1838
bffa1015
AH
18392019-03-28 Alan Hayward <alan.hayward@arm.com>
1840
1841 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
1842
fc96163a
AH
18432019-03-28 Alan Hayward <alan.hayward@arm.com>
1844
1845 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
1846
20dc7e9b
PW
18472019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1848 Tom Tromey <tromey@adacore.com>
1849
1850 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
1851
7f5331a8
JB
18522019-03-26 Joel Brobecker <brobecker@adacore.com>
1853
1854 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
1855 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
1856 method to compute the bounds of range types. Also print "[evaluated]"
1857 if the bounds' values come from a dynamic evaluation.
1858
18c77628
AB
18592019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
1860
1861 * cp-valprint.c (cp_print_value_fields): Don't print trailing
1862 whitespace when pretty printing is on.
1863
53c973f2
AH
18642019-03-26 Alan Hayward <alan.hayward@arm.com>
1865
1866 * ppc-linux-nat.c: Add include.
1867
d851aa71
AH
18682019-03-26 Alan Hayward <alan.hayward@arm.com>
1869
1870 * NEWS: Mention AArch64 Pointer Authentication.
1871
2fe7bab7
AH
18722019-03-26 Alan Hayward <alan.hayward@arm.com>
1873
1874 * arm-linux-nat.c: Add include.
1875
068ef30e
SM
18762019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
1877
1878 * source-cache.c (source_cache::get_source_lines): Re-read
1879 fullname after calling open_source_file.
1880
81a24d04
JB
18812019-03-25 John Baldwin <jhb@FreeBSD.org>
1882
1883 * NEWS: Mention TLS support for FreeBSD.
1884
79e7ae11
TT
18852019-03-25 Tom Tromey <tromey@adacore.com>
1886
1887 * minsyms.c (BUNCH_SIZE): Update comment.
1888 (~minimal_symbol_reader): Remove old comment.
1889 (compact_minimal_symbols): Update comment.
1890 (minimal_symbol_reader::install): Remove old comment. Update
1891 other comments.
1892
d45963c2
AH
18932019-03-25 Alan Hayward <alan.hayward@arm.com>
1894
1895 * s390-linux-nat.c: Add include.
1896
0f83012e
AH
18972019-03-25 Alan Hayward <alan.hayward@arm.com>
1898
1899 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
1900 Call linux_get_hwcap.
1901 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
1902 Likewise.
1903 (aarch64_linux_get_hwcap): Remove function.
1904 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
1905 declaration.
1906 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
1907 linux_get_hwcap.
1908 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
1909 * linux-tdep.c (linux_get_hwcap): Add function.
1910 (linux_get_hwcap2): Likewise.
1911 * linux-tdep.h (linux_get_hwcap): Add declaration.
1912 (linux_get_hwcap2): Likewise.
1913 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
1914 (ppc_linux_get_hwcap2): Likewise.
1915 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
1916 linux_get_hwcap.
1917 (ppc_linux_nat_target::insert_watchpoint): Likewise.
1918 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
1919 (ppc_linux_nat_target::read_description): Likewise.
1920 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
1921 * s390-linux-nat.c: Likewise.
1922 * s390-linux-tdep.c (s390_core_read_description): Likewise.
1923
6640a367
TT
19242019-03-24 Tom Tromey <tom@tromey.com>
1925
1926 * ada-lang.c (standard_lookup): Simplify initialization.
1927 (ada_lookup_symbol_nonlocal): Simplify return.
1928 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
1929 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
1930 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
1931 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
1932 initialization.
1933 * solib.c (solib_global_lookup): Simplify.
1934 * symtab.c (null_block_symbol): Remove.
1935 (symbol_cache_lookup): Simplify returns.
1936 (lookup_language_this): Simplify returns.
1937 (lookup_symbol_aux): Simplify return.
1938 (lookup_local_symbol): Simplify returns.
1939 (lookup_global_symbol_from_objfile): Simplify return.
1940 (lookup_symbol_in_objfile_symtabs)
1941 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
1942 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
1943 (lookup_static_symbol, lookup_global_symbol): Simplify return.
1944 * cp-namespace.c (cp_lookup_bare_symbol)
1945 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
1946 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
1947 (cp_lookup_nested_symbol): Don't use null_block_symbol.
1948 (cp_lookup_symbol_via_imports): Simplify initialization.
1949 (find_symbol_in_baseclass): Likewise.
1950 * symtab.h (null_block_symbol): Remove.
1951 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
1952 (d_lookup_nested_symbol, d_lookup_symbol_imports)
1953 (d_lookup_symbol_module): Likewise.
1954 (find_symbol_in_baseclass): Simplify initialization.
1955
a930ebcd
TT
19562019-03-24 Tom Tromey <tom@tromey.com>
1957
1958 * expression.h: Don't include symtab.h.
1959 (struct block): Forward declare.
1960
582942f4
TT
19612019-03-24 Tom Tromey <tom@tromey.com>
1962
1963 * c-exp.y (typebase): Remove casts.
1964 * gdbtypes.c (lookup_unsigned_typename, )
1965 (lookup_signed_typename): Remove cast.
1966 * eval.c (parse_to_comma_and_eval): Remove cast.
1967 * parse.c (write_dollar_variable): Remove cast.
1968 * block.h (struct block) <superblock>: Now const.
1969 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
1970 * psymtab.c (psym_map_matching_symbols): Make "block" const.
1971 (map_block): Make "block" const.
1972 * symfile.h (struct quick_symbol_functions)
1973 <map_matching_symbols>: Constify block argument to "callback".
1974 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
1975 const.
1976 (find_pc_sect_compunit_symtab): Make "b" const.
1977 (find_symbol_at_address): Likewise.
1978 (search_symbols): Likewise.
1979 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
1980 (dw2_debug_names_lookup_symbol): Likewise.
1981 (dw2_map_matching_symbols): Update.
1982 * p-valprint.c (pascal_val_print): Remove "block".
1983 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
1984 (aux_add_nonlocal_symbols): Make "block" const.
1985 (resolve_subexp): Remove cast.
1986 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
1987 const.
1988 (iterate_over_file_blocks): Likewise.
1989 * f-exp.y (%union) <bval>: Remove.
1990 * coffread.c (patch_opaque_types): Make "b" const.
1991 * spu-tdep.c (spu_catch_start): Make "block" const.
1992 * c-valprint.c (print_unpacked_pointer): Remove "block".
1993 * symmisc.c (dump_symtab_1): Make "b" const.
1994 (block_depth): Make "block" const.
1995 * d-exp.y (%union) <bval>: Remove.
1996 * cp-support.h (cp_lookup_rtti_type): Update.
1997 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
1998 * psymtab.c (psym_lookup_symbol): Make "block" const.
1999 (maintenance_check_psymtabs): Make "b" const.
2000 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
2001 (enumerate_locals, enumerate_args): Update.
2002 * python/py-symtab.c (stpy_global_block): Make "block" const.
2003 (stpy_static_block): Likewise.
2004 * inline-frame.c (block_starting_point_at): Make "new_block"
2005 const.
2006 * block.c (find_block_in_blockvector): Make return type const.
2007 (blockvector_for_pc_sect): Make "b" const.
2008 (find_block_in_blockvector): Make "b" const.
2009
7ad417dd
TT
20102019-03-23 Tom Tromey <tom@tromey.com>
2011
2012 * varobj.c (varobj_create): Update.
2013 * symfile.c (clear_symtab_users): Don't reset innermost_block.
2014 * printcmd.c (display_command, do_one_display): Don't reset
2015 innermost_block.
2016 * parser-defs.h (enum innermost_block_tracker_type): Move to
2017 expression.h.
2018 (innermost_block): Update comment.
2019 * parse.c (parse_exp_1): Add tracker_types parameter.
2020 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
2021 tracker_types parameter. Reset innermost_block.
2022 (parse_exp_in_context): Remove.
2023 (parse_expression_for_completion): Update.
2024 * objfiles.c (~objfile): Don't reset expression_context_block or
2025 innermost_block.
2026 * expression.h (enum innermost_block_tracker_type): Move from
2027 parser-defs.h.
2028 (parse_exp_1): Add tracker_types parameter.
2029 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
2030 reset innermost_block.
2031
b366c208
TT
20322019-03-23 Tom Tromey <tom@tromey.com>
2033
2034 * objfiles.h: Include bcache.h.
2035
9bb9b2f9
TT
20362019-03-23 Tom Tromey <tom@tromey.com>
2037
2038 * linespec.c (get_current_search_block): Use
2039 scoped_restore_current_language.
2040 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
2041
59c28372
AH
20422019-03-22 Alan Hayward <alan.hayward@arm.com>
2043 Jiong Wang <jiong.wang@arm.com>
2044
2045 * aarch64-linux-tdep.c
2046 (aarch64_linux_iterate_over_regset_sections): Check for pauth
2047 section.
2048 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
2049
17e116a7
AH
20502019-03-22 Alan Hayward <alan.hayward@arm.com>
2051 Jiong Wang <jiong.wang@arm.com>
2052
2053 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
2054 instructions.
2055 (aarch64_analyze_prologue_test): Add PACIASP test.
2056 (aarch64_prologue_prev_register): Unmask PC value.
2057
11e1b75f
AH
20582019-03-22 Alan Hayward <alan.hayward@arm.com>
2059 Jiong Wang <jiong.wang@arm.com>
2060
2061 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
2062 (aarch64_dwarf2_prev_register): Unmask PC value.
2063 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
2064 (aarch64_execute_dwarf_cfa_vendor_op): Check for
2065 DW_CFA_AARCH64_negate_ra_state.
2066 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
2067
34dcc7cf
AH
20682019-03-22 Alan Hayward <alan.hayward@arm.com>
2069 Jiong Wang <jiong.wang@arm.com>
2070
2071 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
2072 registers.
2073 (aarch64_pseudo_register_name): Likewise.
2074 (aarch64_pseudo_register_type): Likewise.
2075 (aarch64_pseudo_register_reggroup_p): Likewise.
2076 (aarch64_gdbarch_init): Add pauth registers.
2077 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
2078 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
2079 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
2080 (struct gdbarch_tdep): Add regnum for ra_state.
2081
1ef53e6b
AH
20822019-03-22 Alan Hayward <alan.hayward@arm.com>
2083 Jiong Wang <jiong.wang@arm.com>
2084
2085 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
2086
76bed0fd
AH
20872019-03-22 Alan Hayward <alan.hayward@arm.com>
2088 Jiong Wang <jiong.wang@arm.com>
2089
2090 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
2091 function.
2092 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
2093 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
2094 (aarch64_gdbarch_init): Add puth registers.
2095 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
2096 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
2097 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
2098
ee4fbcfa
AH
20992019-03-22 Alan Hayward <alan.hayward@arm.com>
2100 Jiong Wang <jiong.wang@arm.com>
2101
2102 * aarch64-linux-nat.c
2103 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
2104 * aarch64-linux-tdep.c
2105 (aarch64_linux_core_read_description): Likewise.
2106 (aarch64_linux_get_hwcap): New function.
2107 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
2108 (aarch64_linux_get_hwcap): New declaration.
2109
6dc0ebde
AH
21102019-03-22 Alan Hayward <alan.hayward@arm.com>
2111 Jiong Wang <jiong.wang@arm.com>
2112
2113 * aarch64-linux-nat.c
2114 (aarch64_linux_nat_target::read_description): Add pauth param.
2115 * aarch64-linux-tdep.c
2116 (aarch64_linux_core_read_description): Likewise.
2117 * aarch64-tdep.c (struct target_desc): Add in pauth.
2118 (aarch64_read_description): Add pauth param.
2119 (aarch64_gdbarch_init): Likewise.
2120 * aarch64-tdep.h (aarch64_read_description): Likewise.
2121 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2122 * arch/aarch64.h (aarch64_create_target_description): Likewise.
2123 * features/Makefile: Add new files.
2124 * features/aarch64-pauth.c: New file.
2125 * features/aarch64-pauth.xml: New file.
2126
595915c1
TT
21272019-03-20 Tom Tromey <tromey@adacore.com>
2128
2129 * infrun.c (handle_inferior_event): Rename from
2130 handle_inferior_event_1. Create a scoped_value_mark.
2131 (handle_inferior_event): Remove.
2132
4c7d57e7
TT
21332019-03-19 Tom Tromey <tromey@adacore.com>
2134
2135 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
2136 * infrun.h (print_stop_event): Add "displays" parameter.
2137 * infrun.c (print_stop_event): Add "displays" parameter.
2138
cb246234
PA
21392019-03-19 Pedro Alves <palves@redhat.com>
2140
2141 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
2142 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
2143 to -1. Fix TABs vs spaces.
2144 (tui_ui_out::tui_ui_out): Don't initialize fields here.
2145 * tui/tui-out.h (tui_ui_out) Add intro comments.
2146 <m_line, m_start_of_line>: In-class initialize, and add describing
2147 comment.
2148
3a0e45b2
AH
21492019-03-18 Alan Hayward <alan.hayward@arm.com>
2150
2151 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
2152 variable names.
2153 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
2154
5371b850
PA
21552019-03-18 Pedro Alves <palves@redhat.com>
2156 Eli Zaretskii <eliz@gnu.org>
2157
2158 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
2159 m_line and m_start_of_line.
2160
b17c4cd0
EZ
21612019-03-18 Eli Zaretskii <eliz@gnu.org>
2162
2163 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
2164 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
2165 it returns a newline. This fixes a regression in TU mode, whereby
2166 the next line is output on the same screen line as the user input.
2167
4bd56d18
TT
21682019-03-18 Tom Tromey <tromey@adacore.com>
2169
2170 * minsyms.c (minimal_symbol_reader::install): Remove call to
2171 obstack_blank.
2172
55c10aca
PA
21732019-03-18 Pedro Alves <palves@redhat.com>
2174
2175 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
2176 New globals.
2177 (apply_style): New, factored out from ...
2178 (apply_ansi_escape): ... this. Handle reverse video mode.
2179 (tui_set_reverse_mode): New function.
2180 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
2181 * tui/tui-winsource.c (tui_show_source_line): Use
2182 tui_set_reverse_mode instead of setting A_STANDOUT.
2183 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
2184 New setter methods.
2185
647bb750
HD
21862019-03-18 Hannes Domani <ssbssa@yahoo.de>
2187
2188 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
2189 Handle tabs.
2190
bff8c71f
TT
21912019-03-18 Tom Tromey <tromey@adacore.com>
2192
2193 * ada-lang.c (empty_array): Add "high" parameter.
2194 (ada_evaluate_subexp): Update.
2195
58785d98
ST
21962019-03-17 Sergei Trofimovich <siarheit@google.com>
2197
2198 * unittests/string_view-selftests.c: Define
2199 _initialize_string_view_selftests unconditionally.
2200
d4cbef22
ВМ
22012019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
2202
2203 PR gdb/24350
2204 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
2205
fce4c071
ВМ
22062019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
2207
2208 PR gdb/24351
2209 * windows-nat.c (display_selector): Fix format specifiers.
2210
f7f0a123
EZ
22112019-03-17 Eli Zaretskii <eliz@gnu.org>
2212
2213 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
2214 tui_refill_source_window instead of tui_refresh_win, to update the
2215 current execution line. This fixes redisplay of the current line
2216 when stepping through the code with "next" or "step".
2217
ab42892f
EZ
22182019-03-16 Eli Zaretskii <eliz@gnu.org>
2219
2220 * source-cache.c (source_cache::get_source_lines): Call
2221 find_source_lines to initialize s->nlines. This fixes vertical
2222 scrolling of TUI source window when the DOWN arrow is pressed.
2223
8d8c087f
PW
22242019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2225
2226 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
2227 linux-thread-db.c (_initialize_thread_db): Likewise.
2228
798e1c30
EZ
22292019-03-16 Eli Zaretskii <eliz@gnu.org>
2230
2231 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
2232 wclrtoeol in tui_show_source_line". This reverts changes made in
2233 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
2234
eefba3da
TT
22352019-03-15 Tom Tromey <tom@tromey.com>
2236
2237 * symtab.h (struct minimal_symbol): Derive from
2238 general_symbol_info.
2239 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
2240 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
2241 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
2242 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
2243 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
2244 (MSYMBOL_SEARCH_NAME): Update.
2245 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
2246 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
2247 * minsyms.c (minimal_symbol_reader::record_full): Update.
2248
0de2420c
TT
22492019-03-15 Tom Tromey <tom@tromey.com>
2250
2251 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
2252
042d75e4
TT
22532019-03-15 Tom Tromey <tom@tromey.com>
2254
2255 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
2256 unique_xmalloc_ptr.
2257 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
2258 Update.
2259 * minsyms.c (lookup_minimal_symbol_by_pc_section)
2260 (build_minimal_symbol_hash_tables)
2261 (minimal_symbol_reader::install): Update.
2262
db92718b
TT
22632019-03-15 Tom Tromey <tom@tromey.com>
2264
2265 * symtab.c (create_demangled_names_hash): Update.
2266 (symbol_set_names): Update.
2267 * objfiles.h (struct objfile_per_bfd_storage)
2268 <demangled_names_hash>: Now an htab_up.
2269 * objfiles.c (objfile_per_bfd_storage): Simplify.
2270
d6797f46
TT
22712019-03-15 Tom Tromey <tom@tromey.com>
2272
2273 * objfiles.h (struct objfile_per_bfd_storage): Declare
2274 destructor.
2275 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
2276 New.
2277 (get_objfile_bfd_data): Use new. Don't initialize
2278 language_of_main.
2279 (free_objfile_per_bfd_storage): Remove.
2280 (objfile_bfd_data_free, objfile::~objfile): Use delete.
2281
741d7538
TT
22822019-03-15 Tom Tromey <tom@tromey.com>
2283
2284 * symfile.c (reread_symbols): Update.
2285 * objfiles.c (objfile::objfile): Update.
2286 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
2287 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
2288 comment.
2289 (minimal_symbol_reader::install): Update.
2290 (terminate_minimal_symbol_table): Remove.
2291 * jit.c (jit_object_close_impl): Update.
2292
788c80d1
TT
22932019-03-15 Tom Tromey <tom@tromey.com>
2294
2295 * minsyms.c (minimal_symbol_reader::record_full): Remove some
2296 initializations.
2297
1b7a07cb
TT
22982019-03-15 Tom Tromey <tom@tromey.com>
2299
2300 * objfiles.h (struct objfile_per_bfd_storage)
2301 <demangled_hash_languages>: Now a bitset.
2302 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
2303 (lookup_minimal_symbol): Update.
2304
3db066bc
TT
23052019-03-15 Tom Tromey <tom@tromey.com>
2306
2307 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
2308 Don't return the symbol.
2309 * coffread.c (record_minimal_symbol): Use record_full.
2310
3fff2c37
EZ
23112019-03-14 Eli Zaretskii <eliz@gnu.org>
2312
2313 The MS-Windows port of ncurses fails to switch to a color pair if
2314 one or both of the colors are the implicit default colors. This
2315 change records the default colors when TUI is initialized, and
2316 then specifies them explicitly when a color pair uses the default
2317 colors. This allows color styling in TUI mode on MS-Windows.
2318
2319 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
2320 ncurses_norm_attr.
2321 (tui_initialize_io) [__MINGW32__]: Record the default terminal
2322 colors in ncurses_norm_attr.
2323 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
2324 "none", replace it with the default color recorded in
2325 ncurses_norm_attr.
2326
3b336828
TT
23272019-03-14 Tom Tromey <tromey@adacore.com>
2328
2329 * source-cache.h (class source_cache) <get_source_lines>: Return
2330 std::string.
2331 * source-cache.c (source_cache::extract_lines): Handle case where
2332 first_pos==npos. Return std::string.
2333 (source_cache::get_source_lines): Update.
2334
d085f989
TT
23352019-03-14 Tom Tromey <tromey@adacore.com>
2336
2337 * NEWS: Add item for "style sources" commands.
2338 * source-cache.c (source_cache::get_source_lines): Check
2339 source_styling.
2340 * cli/cli-style.c (source_styling): New global.
2341 (_initialize_cli_style): Add "style sources" commands.
2342 (show_style_sources): New function.
2343 * cli/cli-style.h (source_styling): Declare.
2344
6f11e682
TT
23452019-03-14 Pedro Alves <palves@redhat.com>
2346 Tom Tromey <tromey@adacore.com>
2347
2348 * tui/tui-winsource.h (tui_refill_source_window): Declare.
2349 * tui/tui-winsource.c (tui_refill_source_window): New function,
2350 from...
2351 (tui_horizontal_source_scroll): ... here. Move some logic.
2352 * cli/cli-style.c (set_style_enabled): Notify new observable.
2353 * tui/tui-hooks.c (tui_redisplay_source): New function.
2354 (tui_attach_detach_observers): Attach or detach
2355 tui_redisplay_source.
2356 * observable.h (source_styling_changed): New observable.
2357 * observable.c: Define source_styling_changed observable.
2358
a068643d
TT
23592019-03-13 Tom Tromey <tromey@adacore.com>
2360
2361 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
2362 (i386_gnu_nat_target::store_registers): Update.
2363 * target-debug.h (target_debug_print_std_string): New macro.
2364 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
2365 * windows-tdep.c (display_one_tib): Update.
2366 * tui/tui-stack.c (tui_make_status_line): Update.
2367 * top.c (print_inferior_quit_action): Update.
2368 * thread.c (thr_try_catch_cmd): Update.
2369 (add_thread_with_info): Update.
2370 (thread_target_id_str): Update.
2371 (thr_try_catch_cmd): Update.
2372 (thread_command): Update.
2373 (thread_find_command): Update.
2374 * record-btrace.c (record_btrace_target::info_record)
2375 (record_btrace_resume_thread, record_btrace_target::resume)
2376 (record_btrace_cancel_resume, record_btrace_step_thread)
2377 (record_btrace_target::wait, record_btrace_target::wait)
2378 (record_btrace_target::wait, record_btrace_target::stop): Update.
2379 * progspace.c (print_program_space): Update.
2380 * process-stratum-target.c
2381 (process_stratum_target::thread_address_space): Update.
2382 * linux-fork.c (linux_fork_mourn_inferior)
2383 (detach_checkpoint_command, info_checkpoints_command)
2384 (linux_fork_context): Update.
2385 (linux_fork_detach): Update.
2386 (class scoped_switch_fork_info): Update.
2387 (delete_checkpoint_command): Update.
2388 * infrun.c (follow_fork_inferior): Update.
2389 (follow_fork_inferior): Update.
2390 (proceed_after_vfork_done): Update.
2391 (handle_vfork_child_exec_or_exit): Update.
2392 (follow_exec): Update.
2393 (displaced_step_prepare_throw): Update.
2394 (displaced_step_restore): Update.
2395 (start_step_over): Update.
2396 (resume_1): Update.
2397 (clear_proceed_status_thread): Update.
2398 (proceed): Update.
2399 (print_target_wait_results): Update.
2400 (do_target_wait): Update.
2401 (context_switch): Update.
2402 (stop_all_threads): Update.
2403 (restart_threads): Update.
2404 (finish_step_over): Update.
2405 (handle_signal_stop): Update.
2406 (switch_back_to_stepped_thread): Update.
2407 (keep_going_pass_signal): Update.
2408 (print_exited_reason): Update.
2409 (normal_stop): Update.
2410 * inferior.c (inferior_pid_to_str): Change return type.
2411 (print_selected_inferior): Update.
2412 (add_inferior): Update.
2413 (detach_inferior): Update.
2414 * dummy-frame.c (fprint_dummy_frames): Update.
2415 * dcache.c (dcache_info_1): Update.
2416 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
2417 (btrace_fetch, btrace_clear): Update.
2418 * linux-tdep.c (linux_core_pid_to_str): Change return type.
2419 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
2420 type.
2421 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
2422 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
2423 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
2424 * gdbarch.c, gdbarch.h: Rebuild.
2425 * gdbarch.sh (core_pid_to_str): Change return type.
2426 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
2427 return type.
2428 (windows_nat_target::pid_to_str): Change return type.
2429 (windows_delete_thread): Update.
2430 (windows_nat_target::attach): Update.
2431 (windows_nat_target::files_info): Update.
2432 * target-delegates.c: Rebuild.
2433 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
2434 return type.
2435 (sol_thread_target::pid_to_str): Change return type.
2436 * remote.c (class remote_target) <pid_to_str>: Change return
2437 type.
2438 (remote_target::pid_to_str): Change return type.
2439 (extended_remote_target::attach, remote_target::remote_stop_ns)
2440 (remote_target::remote_notif_remove_queued_reply)
2441 (remote_target::push_stop_reply, remote_target::disable_btrace):
2442 Update.
2443 (extended_remote_target::attach): Update.
2444 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
2445 type.
2446 (gdbsim_target::pid_to_str): Change return type.
2447 * ravenscar-thread.c (struct ravenscar_thread_target)
2448 <pid_to_str>: Change return type.
2449 (ravenscar_thread_target::pid_to_str): Change return type.
2450 * procfs.c (class procfs_target) <pid_to_str>: Change return
2451 type.
2452 (procfs_target::pid_to_str): Change return type.
2453 (procfs_target::attach): Update.
2454 (procfs_target::detach): Update.
2455 (procfs_target::fetch_registers): Update.
2456 (procfs_target::store_registers): Update.
2457 (procfs_target::wait): Update.
2458 (procfs_target::files_info): Update.
2459 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
2460 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
2461 return type.
2462 (nto_procfs_target::pid_to_str): Change return type.
2463 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
2464 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
2465 return type.
2466 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
2467 (exit_lwp): Update.
2468 (attach_proc_task_lwp_callback, get_detach_signal)
2469 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
2470 (linux_nat_target::resume, wait_lwp, stop_callback)
2471 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
2472 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
2473 (linux_nat_wait_1, resume_stopped_resumed_lwps)
2474 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
2475 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
2476 type.
2477 (inf_ptrace_target::attach): Update.
2478 (inf_ptrace_target::files_info): Update.
2479 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
2480 type.
2481 (go32_nat_target::pid_to_str): Change return type.
2482 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
2483 (gnu_nat_target::wait): Update.
2484 (gnu_nat_target::wait): Update.
2485 (gnu_nat_target::resume): Update.
2486 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
2487 (fbsd_nat_target::wait): Update.
2488 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
2489 type.
2490 (darwin_nat_target::attach): Update.
2491 * corelow.c (class core_target) <pid_to_str>: Change return type.
2492 (core_target::pid_to_str): Change return type.
2493 * target.c (normal_pid_to_str): Change return type.
2494 (default_pid_to_str): Likewise.
2495 (target_pid_to_str): Change return type.
2496 (target_translate_tls_address): Update.
2497 (target_announce_detach): Update.
2498 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
2499 return type.
2500 (bsd_uthread_target::pid_to_str): Change return type.
2501 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
2502 type.
2503 (bsd_kvm_target::pid_to_str): Change return type.
2504 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
2505 return type.
2506 (aix_thread_target::pid_to_str): Change return type.
2507 * target.h (struct target_ops) <pid_to_str>: Change return type.
2508 (target_pid_to_str, normal_pid_to_str): Likewise.
2509 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
2510 type.
2511 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
2512 type.
2513 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
2514 return type.
2515 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
2516 type.
2517 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
2518 type.
2519 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
2520 return type.
2521
b4be1b06
SM
25222019-03-13 Simon Marchi <simon.marchi@ericsson.com>
2523
2524 * NEWS: Mention that the new default MI version is 3. Mention
2525 changes to the output of commands and events that deal with
2526 multi-location breakpoints.
2527 * breakpoint.c: Include "mi/mi-out.h".
2528 (print_one_breakpoint): Change output syntax if using MI version
2529 >= 3.
2530 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
2531 New.
2532 (mi_multi_location_breakpoint_output_fixed): New.
2533 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
2534 (mi_cmd_fix_multi_location_breakpoint_output): New.
2535 (mi_multi_location_breakpoint_output_fixed): New.
2536 * mi/mi-cmds.c (mi_cmds): Register command
2537 -fix-multi-location-breakpoint-output.
2538 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
2539 interpreter "mi".
2540
8e5e5494
SM
25412019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2542
2543 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
2544 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
2545 instantiate mi_ui_out based on interpreter name.
2546 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
2547 * mi/mi-main.c (mi_load_progress): Likewise.
2548
197df35e
JB
25492019-03-12 John Baldwin <jhb@FreeBSD.org>
2550
2551 * NEWS: Combine separate "New targets" sections for 8.3.
2552
8399425f
JB
25532019-03-12 John Baldwin <jhb@FreeBSD.org>
2554
2555 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
2556 (ppcfbsd_init_abi): Install gdbarch
2557 "fetch_tls_load_module_address" and "get_thread_local_address"
2558 methods.
2559
b0f87ed0
JB
25602019-03-12 John Baldwin <jhb@FreeBSD.org>
2561
2562 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
2563 (riscv_fbsd_init_abi): Install gdbarch
2564 "fetch_tls_load_module_address" and "get_thread_local_address"
2565 methods.
2566
ce25aa57
JB
25672019-03-12 John Baldwin <jhb@FreeBSD.org>
2568
2569 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
2570 (i386fbsd_init_abi): Install gdbarch
2571 "fetch_tls_load_module_address" and "get_thread_local_address"
2572 methods.
2573
f5424cfa
JB
25742019-03-12 John Baldwin <jhb@FreeBSD.org>
2575
2576 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
2577 (amd64fbsd_init_abi): Install gdbarch
2578 "fetch_tls_load_module_address" and "get_thread_local_address"
2579 methods.
2580
945f3901
JB
25812019-03-12 John Baldwin <jhb@FreeBSD.org>
2582
2583 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
2584 (struct fbsd_pspace_data): New type.
2585 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
2586 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
2587 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
2588 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
2589 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
2590
ef0bd204
JB
25912019-03-12 John Baldwin <jhb@FreeBSD.org>
2592
2593 * gdbtypes.c (lookup_struct_elt): New function.
2594 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
2595 * gdbtypes.h (struct struct_elt): New type.
2596 (lookup_struct_elt): New prototype.
2597
36c53a02
JB
25982019-03-12 John Baldwin <jhb@FreeBSD.org>
2599
2600 * gdbtypes.c (lookup_struct_elt_type): Update comment and
2601 remove disabled code block.
2602
6e056c81
JB
26032019-03-12 John Baldwin <jhb@FreeBSD.org>
2604
2605 * gdbarch.sh (get_thread_local_address): New method.
2606 * gdbarch.h, gdbarch.c: Regenerate.
2607 * target.c (target_translate_tls_address): Use
2608 gdbarch_get_thread_local_address if present instead of
2609 target::get_thread_local_address.
2610
cd250a18
JB
26112019-03-12 John Baldwin <jhb@FreeBSD.org>
2612
2613 * target.h (target::get_thread_local_address): Update comment.
2614
df22c1e5
JB
26152019-03-12 John Baldwin <jhb@FreeBSD.org>
2616
2617 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
2618 objfile->separate_debug_objfile_backlink if not NULL.
2619
dd6876c9
JB
26202019-03-12 John Baldwin <jhb@FreeBSD.org>
2621
2622 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
2623 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
2624 (amd64bsd_store_inferior_registers): Likewise.
2625 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
2626 Enable segment base registers.
2627 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
2628 PT_GETFSBASE and PT_GETGSBASE.
2629 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
2630 PT_SETGSBASE.
2631 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
2632 segment base registers.
2633 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
2634
1163a4b7
JB
26352019-03-12 John Baldwin <jhb@FreeBSD.org>
2636
2637 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
2638 Update calls to i386_target_description to add 'segments'
2639 parameter.
2640 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
2641 add segment base registers.
2642 * arch/i386.c (i386_create_target_description): Add 'segments'
2643 parameter to enable segment base registers.
2644 * arch/i386.h (i386_create_target_description): Likewise.
2645 * features/i386/32bit-segments.xml: New file.
2646 * features/i386/32bit-segments.c: Generate.
2647 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
2648 call to i386_target_description to add 'segments' parameter.
2649 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
2650 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
2651 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
2652 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
2653 if feature is present.
2654 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
2655 Add 'segments' parameter to call to i386_target_description.
2656 (i386_target_description): Add 'segments' parameter to enable
2657 segment base registers.
2658 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
2659 to call to i386_target_description.
2660 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
2661 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
2662 Define I386_NUM_REGS.
2663 (i386_target_description): Add 'segments' parameter to enable
2664 segment base registers.
2665
3a350822
EZ
26662019-03-12 Eli Zaretskii <eliz@gnu.org>
2667
2668 PR/24325
2669 * source-cache.c: #undef open and close, to avoid unresolved
2670 externals during linking.
2671
ffdd69cf
TT
26722019-03-12 Tom Tromey <tromey@adacore.com>
2673
2674 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
2675 const. Add initializers.
2676 (_initialize_remote): Don't initialize ptid globals.
2677
ec148c57
PA
26782019-03-12 Pedro Alves <palves@redhat.com>
2679
2680 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
2681
32764270
PA
26822019-03-12 Pedro Alves <palves@redhat.com>
2683
2684 * cp-name-parser.y (main): Remove unused 'len' variable.
2685
17547186
TT
26862019-03-12 Tom Tromey <tromey@adacore.com>
2687
2688 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
2689 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
2690
d3a70e03
TT
26912019-03-12 Tom Tromey <tromey@adacore.com>
2692
2693 * linux-nat.c (iterate_over_lwps): Update.
2694 (stop_callback): Remove parameter.
2695 (stop_wait_callback, detach_callback, resume_set_callback)
2696 (select_singlestep_lwp_callback, set_ignore_sigint)
2697 (status_callback, resumed_callback, resume_clear_callback)
2698 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
2699 data parameter.
2700 (linux_nat_target::detach, linux_nat_target::resume)
2701 (linux_stop_and_wait_all_lwps, select_event_lwp)
2702 (linux_nat_filter_event, linux_nat_wait_1)
2703 (linux_nat_target::kill, linux_nat_target::stop)
2704 (linux_nat_target::stop): Update.
2705 (linux_nat_resume_callback): Change type.
2706 (resume_stopped_resumed_lwps, count_events_callback)
2707 (select_event_lwp_callback): Likewise.
2708 (linux_stop_lwp, linux_nat_stop_lwp): Update.
2709 * arm-linux-nat.c (struct update_registers_data): Remove.
2710 (update_registers_callback): Change type.
2711 (arm_linux_insert_hw_breakpoint1): Update.
2712 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
2713 parameter.
2714 (x86_linux_dr_set_addr): Update.
2715 (x86_linux_dr_set_control): Update.
2716 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
2717 (iterate_over_lwps): Use gdb::function_view.
2718 * nat/aarch64-linux-hw-point.c (struct
2719 aarch64_dr_update_callback_param): Remove.
2720 (debug_reg_change_callback): Change type.
2721 (aarch64_notify_debug_reg_change): Update.
2722 * s390-linux-nat.c (s390_refresh_per_info): Update.
2723
82cb27ff
TT
27242019-03-11 Tom Tromey <tromey@adacore.com>
2725
2726 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
2727 redundant assignment to "this_cu".
2728
568c0683
SM
27292019-03-08 Simon Marchi <simon.marchi@efficios.com>
2730
2731 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
2732
f09ce22d
SM
27332019-03-08 Simon Marchi <simon.marchi@efficios.com>
2734
2735 * gdbtypes.c (rank_one_type_parm_set): New function extracted
2736 from...
2737 (rank_one_type): ... this.
2738
595f96a9
SM
27392019-03-08 Simon Marchi <simon.marchi@efficios.com>
2740
2741 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
2742 from...
2743 (rank_one_type): ... this.
2744
2598a94b
SM
27452019-03-08 Simon Marchi <simon.marchi@efficios.com>
2746
2747 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
2748 from...
2749 (rank_one_type): ... this.
2750
7f17b20d
SM
27512019-03-08 Simon Marchi <simon.marchi@efficios.com>
2752
2753 * gdbtypes.c (rank_one_type_parm_float): New function extracted
2754 from...
2755 (rank_one_type): ... this.
2756
2c509035
SM
27572019-03-08 Simon Marchi <simon.marchi@efficios.com>
2758
2759 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
2760 from...
2761 (rank_one_type): ... this.
2762
0dd322dc
SM
27632019-03-08 Simon Marchi <simon.marchi@efficios.com>
2764
2765 * gdbtypes.c (rank_one_type_parm_range): New function extracted
2766 from...
2767 (rank_one_type): ... this.
2768
41ea4728
SM
27692019-03-08 Simon Marchi <simon.marchi@efficios.com>
2770
2771 * gdbtypes.c (rank_one_type_parm_char): New function extracted
2772 from...
2773 (rank_one_type): ... this.
2774
793cd1d2
SM
27752019-03-08 Simon Marchi <simon.marchi@efficios.com>
2776
2777 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
2778 from...
2779 (rank_one_type): ... this.
2780
34910087
SM
27812019-03-08 Simon Marchi <simon.marchi@efficios.com>
2782
2783 * gdbtypes.c (rank_one_type_parm_int): New function extracted
2784 from...
2785 (rank_one_type): ... this.
2786
f1f832d6
SM
27872019-03-08 Simon Marchi <simon.marchi@efficios.com>
2788
2789 * gdbtypes.c (rank_one_type_parm_func): New function extracted
2790 from...
2791 (rank_one_type): ... this.
2792
b9f4512f
SM
27932019-03-08 Simon Marchi <simon.marchi@efficios.com>
2794
2795 * gdbtypes.c (rank_one_type_parm_array): New function extracted
2796 from...
2797 (rank_one_type): ... this.
2798
9293fc63
SM
27992019-03-08 Simon Marchi <simon.marchi@efficios.com>
2800
2801 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
2802 from...
2803 (rank_one_type): ... this.
2804
e3abbe7e
PW
28052019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2806
2807 * inferior.c (initialize_inferiors): Ensure 'help set/show print
2808 inferior-events' shows the example events.
2809
e4adb939
EZ
28102019-03-08 Eli Zaretskii <eliz@gnu.org>
2811
2812 Support styling on native MS-Windows console
2813
2814 PR/24315
2815 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
2816 on MS-Windows if $TERM is not defined.
2817
2818 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
2819
2820 * posix-hdep.c (gdb_console_fputs):
2821 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
2822 functions.
2823 * ui-file.h (gdb_console_fputs): Add prototype.
2824
2825 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
2826 back to fputs only if the former returns zero.
2827
25629dfd
TT
28282019-03-07 Tom Tromey <tom@tromey.com>
2829
2830 * symmisc.c (print_symbol_bcache_statistics): Update.
2831 (print_objfile_statistics): Update.
2832 * symfile.c (allocate_symtab): Update.
2833 * stabsread.c: Don't include bcache.h.
2834 * psymtab.h (struct psymbol_bcache): Don't declare.
2835 (class psymtab_storage) <psymbol_cache>: Now a bcache.
2836 (psymbol_bcache_init, psymbol_bcache_free)
2837 (psymbol_bcache_get_bcache): Don't declare.
2838 * psymtab.c (struct psymbol_bcache): Remove.
2839 (psymtab_storage::psymtab_storage): Update.
2840 (psymtab_storage::~psymtab_storage): Update.
2841 (psymbol_bcache_init, psymbol_bcache_free)
2842 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
2843 (add_psymbol_to_bcache): Update.
2844 (allocate_psymtab): Update.
2845 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
2846 macro_cache>: No longer pointers.
2847 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
2848 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
2849 * macrotab.c (macro_bcache): Update.
2850 * macroexp.c: Don't include bcache.h.
2851 * gdbtypes.c (check_types_worklist): Update.
2852 (types_deeply_equal): Remove TRY/CATCH. Update.
2853 * elfread.c (elf_symtab_read): Update.
2854 * dwarf2read.c: Don't include bcache.h.
2855 * buildsym.c (buildsym_compunit::get_macro_table): Update.
2856 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
2857 (print_bcache_statistics, bcache_memory_used): Don't declare.
2858 (struct bcache): Move from bcache.c. Add constructor, destructor,
2859 methods. Rename all data members.
2860 * bcache.c (struct bcache): Move to bcache.h.
2861 (bcache::expand_hash_table): Rename from expand_hash_table.
2862 (bcache): Remove.
2863 (bcache::insert): Rename from bcache_full.
2864 (bcache::compare): Rename from bcache_compare.
2865 (bcache_xmalloc): Remove.
2866 (bcache::~bcache): Rename from bcache_xfree.
2867 (bcache::print_statistics): Rename from print_bcache_statistics.
2868 (bcache::memory_used): Rename from bcache_memory_used.
2869
fe726667
PA
28702019-03-07 Pedro Alves <palves@redhat.com>
2871
2872 * infrun.c (normal_stop): Also check for
2873 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
2874
7584bb30
AB
28752019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
2876
2877 * f-lang.c (value_from_host_double): Moved to...
2878 * value.c (value_from_host_double): ...here.
2879 * value.h (value_from_host_double): Declare.
2880 * guile/scm-math.c (vlscm_convert_typed_number): Use
2881 value_from_host_double.
2882 (vlscm_convert_number): Likewise.
2883 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
2884 * python/py-value.c (convert_value_from_python): Likewise.
2885
a7b1986e
TT
28862019-03-06 Tom Tromey <tom@tromey.com>
2887
2888 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
2889
0ccf4211
TT
28902019-03-06 Tom Tromey <tom@tromey.com>
2891
2892 * utils.h (free_current_contents): Don't declare.
2893 * utils.c (free_current_contents): Remove.
2894
fe7b42e5
TT
28952019-03-06 Tom Tromey <tom@tromey.com>
2896
2897 * top.c (quit_force): Update.
2898 * main.c (captured_command_loop): Update.
2899 * common/new-op.c (operator new): Update.
2900 * common/common-exceptions.c (struct catcher)
2901 <save_cleanup_chain>: Remove member.
2902 (exceptions_state_mc_init): Update.
2903 (exception_try_scope_entry): Return nullptr.
2904 (exception_try_scope_exit, exception_rethrow)
2905 (throw_exception_sjlj, throw_exception_cxx): Update.
2906 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
2907 (all_cleanups, do_cleanups, discard_cleanups)
2908 (discard_final_cleanups, save_cleanups, save_final_cleanups)
2909 (restore_cleanups, restore_final_cleanups): Don't declare.
2910 (do_final_cleanups): Remove parameter.
2911 * common/cleanups.c (cleanup_chain, make_cleanup)
2912 (make_cleanup_dtor, all_cleanups, do_cleanups)
2913 (discard_my_cleanups, discard_cleanups)
2914 (discard_final_cleanups, save_my_cleanups, save_cleanups)
2915 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
2916 (null_cleanup): Remove.
2917 (do_final_cleanups): Remove parameter.
2918
c6321f19
TT
29192019-03-06 Tom Tromey <tom@tromey.com>
2920
2921 * remote.c (remote_target::remote_parse_stop_reply): Use
2922 unique_xmalloc_ptr.
2923
61b30099
TT
29242019-03-06 Tom Tromey <tom@tromey.com>
2925
2926 * stabsread.c (struct stabs_field_info): Rename from field_info.
2927 <list, fnlist>: Add initializers.
2928 <obstack>: New member.
2929 (read_member_functions, read_struct_fields, read_baseclasses):
2930 Allocate on obstack. Don't use cleanups.
2931 (read_one_struct_field, read_member_functions, read_struct_fields)
2932 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
2933 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
2934 (read_struct_type): Update.
2935
6cceac94
TT
29362019-03-06 Tom Tromey <tom@tromey.com>
2937
2938 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
2939 * common/filestuff.h (make_cleanup_close): Don't declare.
2940 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
2941 Remove.
2942
72412762
TT
29432019-03-06 Tom Tromey <tom@tromey.com>
2944
2945 * solib-aix.c: Use make_scope_exit.
2946
2b6ff1c0
TT
29472019-03-06 Tom Tromey <tom@tromey.com>
2948
2949 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
2950 Use make_scope_exit.
2951
d01c5877
TT
29522019-03-06 Tom Tromey <tom@tromey.com>
2953
2954 * solib-svr4.c (disable_probes_interface): Remove parameter.
2955 (svr4_handle_solib_event): Use make_scope_exit.
2956
32603266
TT
29572019-03-06 Tom Tromey <tom@tromey.com>
2958
2959 * remote.c (struct stop_reply_deleter): Remove.
2960 (stop_reply_up): Update.
2961 (struct stop_reply): Derive from notif_event. Don't typedef.
2962 <regcache>: Now a std::vector.
2963 (stop_reply_xfree): Remove.
2964 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
2965 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
2966 (remote_target::discard_pending_stop_replies): Use delete.
2967 (remote_target::remote_parse_stop_reply): Update.
2968 (remote_target::process_stop_reply): Update.
2969 * remote-notif.h (struct notif_event): Add virtual destructor.
2970 Remove "dtr" member.
2971 (struct notif_client) <alloc_event>: Return a unique_ptr.
2972 (notif_event_xfree): Don't declare.
2973 (notif_event_up): New typedef.
2974 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
2975 (notif_event_xfree, do_notif_event_xfree): Remove.
2976 (remote_notif_state_xfree): Update.
2977
9799571e
TT
29782019-03-06 Tom Tromey <tom@tromey.com>
2979
2980 * infrun.c (displaced_step_clear_cleanup): Now a
2981 forward_scope_exit type.
2982 (displaced_step_prepare_throw): Update.
2983 (displaced_step_fixup): Update.
2984
09e3c4ca
TT
29852019-03-06 Tom Tromey <tom@tromey.com>
2986
2987 * inferior.h (class inferior): Update comment.
2988 * gdbthread.h (class thread_info): Update comment.
2989
e2a03548
TT
29902019-03-06 Joel Brobecker <brobecker@adacore.com>
2991 Tom Tromey <tom@tromey.com>
2992
2993 * stabsread.h (struct stab_section_list): Remove.
2994 (coffstab_build_psymtabs): Update.
2995 * dbxread.c (symbuf_sections): Now a std::vector.
2996 (sect_idx): New global.
2997 (fill_symbuf): Update.
2998 (coffstab_build_psymtabs): Change type of stabsects parameter.
2999 Update.
3000 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
3001 std::vector.
3002 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
3003 (coff_locate_sections): Update.
3004 (coff_symfile_read): Remove cleanups. Update.
3005 (init_stringtab): Add storage parameter.
3006 (free_stringtab, free_stringtab_cleanup): Remove.
3007 (init_lineno): Add storage parameter.
3008 (free_linetab, free_linetab_cleanup): Remove.
3009
b7e60d85
PA
30102019-03-06 Pedro Alves <palves@redhat.com>
3011
3012 * linux-fork.c (fork_info::clobber_regs): Delete.
3013 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
3014 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
3015 comment. Adjust.
3016 (scoped_switch_fork_info::scoped_switch_fork_info)
3017 (checkpoint_command, linux_fork_context): Adjust
3018 fork_save_infrun_state calls.
3019
e52c971f
PA
30202019-03-06 Pedro Alves <palves@redhat.com>
3021
3022 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
3023 (inf_has_multiple_threads): Return 'bool' and rewrite using
3024 inferior_info::threads().
3025
06974e6c
PA
30262019-03-06 Pedro Alves <palves@redhat.com>
3027
3028 * linux-fork.c: Include <list>.
3029 (fork_list): Now a std::list instance.
3030 (fork_info): Add ctor, dtor, and in-class initialize all fields.
3031 (forks_exist_p, find_last_fork): Adjust.
3032 (new_fork): Delete.
3033 (one_fork_p): New.
3034 (add_fork): Adjust.
3035 (free_fork): Delete, folded into fork_info::~fork_info().
3036 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
3037 Adjust.
3038 (init_fork_list): Delete.
3039 (linux_fork_killall, linux_fork_mourn_inferior)
3040 (linux_fork_detach, info_checkpoints_command): Adjust.
3041 (_initialize_linux_fork): No longer call init_fork_list.
3042
72f31aea
PA
30432019-03-06 Pedro Alves <palves@redhat.com>
3044
3045 * linux-fork.c (new_fork): New, split out of ...
3046 (add_fork): ... this. Return void. Move "first fork" special
3047 case from here, to ...
3048 (checkpoint_command): ... here.
3049 * linux-linux.h (add_fork): Return void.
3050
efbecbc1
AB
30512019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3052
3053 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
3054
0841c79a
AB
30552019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3056 Chris January <chris.january@arm.com>
3057 David Lecomber <david.lecomber@arm.com>
3058
3059 * f-exp.y: New token, UNOP_INTRINSIC.
3060 (exp): New pattern using UNOP_INTRINSIC token.
3061 (f77_keywords): Add 'abs' keyword.
3062 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
3063 (value_from_host_double): New function.
3064 (evaluate_subexp_f): Support UNOP_ABS.
3065
4a270568
AB
30662019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3067
3068 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
3069 types.
3070
067630bd
AB
30712019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3072
3073 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
3074 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
3075 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
3076
3be47f7a
AB
30772019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3078
3079 * f-exp.y (convert_to_kind_type): Handle more type kinds.
3080
4d00f5d8
AB
30812019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3082 Chris January <chris.january@arm.com>
3083
3084 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
3085 * f-exp.y: Define 'KIND' token.
3086 (exp): New pattern for KIND expressions.
3087 (ptype): Handle types with a kind extension.
3088 (direct_abs_decl): Extend to spot kind extensions.
3089 (f77_keywords): Add 'kind' to the list.
3090 (push_kind_type): New function.
3091 (convert_to_kind_type): New function.
3092 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
3093 * parse.c (operator_length_standard): Likewise.
3094 * parser-defs.h (enum type_pieces): Add tp_kind.
3095 * std-operator.def: Add UNOP_KIND.
3096
e454224f
AB
30972019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3098
3099 * f-exp.y (f_parse): Set yydebug.
3100
9dad4a58
AB
31012019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3102
3103 * f-lang.c (evaluate_subexp_f): New function.
3104 (exp_descriptor_f): New global.
3105 (f_language_defn): Use exp_descriptor_f instead of
3106 exp_descriptor_standard.
3107
c8f91604
AB
31082019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3109
3110 * f-exp.y (struct token): Add comments.
3111 (dot_ops): Remove uppercase versions and the end marker.
3112 (f77_keywords): Likewise.
3113 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
3114 entries in the dot_ops array are case insensitive, and use
3115 strncasecmp to compare strings. Also some whitespace cleanup in
3116 this area. Similar for the f77_keywords array, except entries in
3117 this list might be case sensitive.
3118
dd9f2c76
AB
31192019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3120
3121 * f-exp.y (struct f77_boolean_val): Add comments.
3122 (boolean_values): Remove uppercase versions, and end marker.
3123 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
3124 and use strncasecmp to achieve case insensitivity. Additionally,
3125 perform whitespace cleanup around this code.
3126
67a3048c
TT
31272019-03-06 Tom Tromey <tromey@adacore.com>
3128
3129 * remote-sim.c (gdbsim_target_open): Use result of
3130 gdb_argv::release.
3131
aa3cfbda
RB
31322019-03-06 Richard Bunt <richard.bunt@arm.com>
3133 Dirk Schubert <dirk.schubert@arm.com>
3134 Chris January <chris.january@arm.com>
3135
3136 * eval.c (evaluate_subexp_standard): Call Fortran argument
3137 wrapping logic.
3138 * f-lang.c (struct value): A value which can be passed into a
3139 Fortran function call.
3140 (fortran_argument_convert): Wrap Fortran arguments in a pointer
3141 where appropriate.
3142 (struct type): Value ready for a Fortran function call.
3143 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
3144 is needed.
3145 * f-lang.h (fortran_argument_convert): Declaration.
3146 (fortran_preserve_arg_pointer): Declaration.
3147 * infcall.c (value_arg_coerce): Call Fortran argument logic.
3148
ea38e5df
TT
31492019-03-05 Tom Tromey <tromey@adacore.com>
3150
3151 * python/py-prettyprint.c (print_string_repr): Remove #if.
3152 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
3153
06b5b831
TT
31542019-03-05 Tom Tromey <tromey@adacore.com>
3155
3156 * target.c (the_dummy_target): Move later. Change type to
3157 "dummy_target".
3158 (initialize_targets): Don't initialize the_dummy_target.
3159
edbd9e45
TT
31602019-03-05 Tom Tromey <tromey@adacore.com>
3161
3162 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
3163 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
3164
c119e040
TT
31652019-03-05 Tom Tromey <tromey@adacore.com>
3166
3167 * windows-nat.c (windows_nat_target::attach)
3168 (windows_nat_target::detach): Don't call gdb_flush.
3169 * valprint.c (generic_val_print, val_print, val_print_string):
3170 Don't call gdb_flush.
3171 * utils.c (defaulted_query): Don't call gdb_flush.
3172 * typeprint.c (print_type_scalar): Don't call gdb_flush.
3173 * target.c (target_announce_detach): Don't call gdb_flush.
3174 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
3175 * remote.c (extended_remote_target::attach): Don't call
3176 gdb_flush.
3177 * procfs.c (procfs_target::detach): Don't call gdb_flush.
3178 * printcmd.c (do_examine): Don't call gdb_flush.
3179 (info_display_command): Don't call gdb_flush.
3180 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
3181 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
3182 * memattr.c (info_mem_command): Don't call gdb_flush.
3183 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
3184 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
3185 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
3186 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
3187 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
3188 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
3189 (gnu_nat_target::detach): Don't call gdb_flush.
3190 * f-valprint.c (f_val_print): Don't call gdb_flush.
3191 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
3192 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
3193 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
3194 gdb_flush.
3195 * c-valprint.c (c_val_print): Don't call gdb_flush.
3196 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
3197
895dafa6
TT
31982019-03-05 Tom Tromey <tromey@adacore.com>
3199
3200 * varobj.c (update_dynamic_varobj_children): Update.
3201 (install_default_visualizer): Use reset, not release.
3202 * value.c (set_internalvar): Update.
3203 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
3204 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
3205 ATTRIBUTE_UNUSED_RESULT.
3206
88a774b9
TT
32072019-03-05 Tom Tromey <tromey@adacore.com>
3208
3209 * remote.c (class scoped_remote_fd) <release>: Add
3210 ATTRIBUTE_UNUSED_RESULT.
3211
4e4a8b93
TT
32122019-03-05 Tom Tromey <tromey@adacore.com>
3213
3214 * macroexp.c (struct macro_buffer) <release>: Add
3215 ATTRIBUTE_UNUSED_RESULT.
3216
083eef1f
TT
32172019-03-05 Tom Tromey <tromey@adacore.com>
3218
3219 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
3220 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
3221 ATTRIBUTE_UNUSED_RESULT.
3222
3cabd438
TT
32232019-03-05 Tom Tromey <tromey@adacore.com>
3224
3225 * common/scoped_fd.h (class scoped_fd) <release>: Add
3226 ATTRIBUTE_UNUSED_RESULT.
3227
41e3300a
TT
32282019-03-05 Tom Tromey <tromey@adacore.com>
3229
3230 * parser-defs.h (struct parser_state) <release>: Add
3231 ATTRIBUTE_UNUSED_RESULT.
3232
18cb7c9f
TT
32332019-03-05 Tom Tromey <tromey@adacore.com>
3234
3235 * utils.h (class gdb_argv) <release>: Add
3236 ATTRIBUTE_UNUSED_RESULT.
3237 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
3238
41fa577f
EZ
32392019-03-02 Eli Zaretskii <eliz@gnu.org>
3240
a6a4b2c6
EZ
3241 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
3242 for-loop range, to avoid compiler warnings.
3243
3244 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
3245 avoid compiler warnings about unused variables.
3246
742a7df5
EZ
3247 * NEWS: Mention end of support for native debugging on MS-Windows
3248 before XP.
3249
41fa577f
EZ
3250 PR gdb/24292
3251 * common/netstuff.c:
3252 * gdbserver/gdbreplay.c
3253 * gdbserver/remote-utils.c:
3254 * ser-tcp.c:
3255 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
3256 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
3257 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
3258 'getaddrinfo' and 'freeaddrinfo' were not available before
3259 Windows XP, and mingw.org's MinGW headers by default define
3260 _WIN32_WINNT to 0x500.
3261
827f438f
GB
32622019-03-01 Gary Benson <gbenson@redhat.com>
3263
3264 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
3265
92137da0
RO
32662019-02-28 Brian Vandenberg <phantall@gmail.com>
3267 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3268
3269 PR gdb/8527
3270 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
3271 set_sigint_trap, clear_sigint_trap.
3272
799efbe8
PW
32732019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3274
3275 * target.c (target_detach): Clear the regcache and the
3276 frame cache.
3277
8ed25214
PA
32782019-02-27 Pedro Alves <palves@redhat.com>
3279
3280 * utils.c (set_screen_size): When we cap the height/width sizes,
3281 tweak the corresponding command variable to show "unlimited":
3282
23031e31
SJ
32832019-02-27 Saagar Jha <saagar@saagarjha.com>
3284 Pedro Alves <palves@redhat.com>
3285
3286 * utils.c (set_screen_size): Reduce "infinite" rows and columns
3287 before calling rl_set_screen_size.
3288
6c28e44a
TT
32892019-02-27 Tom Tromey <tromey@adacore.com>
3290
3291 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
3292 define.
3293 * python/py-value.c: Remove Python 2.4 workaround.
3294 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
3295 workaround.
3296 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
3297 Python 2.4 workaround.
3298 * python/python-internal.h: Remove Python 2.4 comment.
3299 (Py_ssize_t): Don't define.
3300 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
3301 (gdb_Py_DECREF): Remove Python 2.4 workaround.
3302 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
3303 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
3304 * python/python.c (do_start_initialization): Remove Python 2.4
3305 workaround.
3306 * python/py-prettyprint.c (class dummy_python_frame): Remove.
3307 (print_children): Remove Python 2.4 workaround.
3308 * python/py-inferior.c (buffer_procs): Remove Python 2.4
3309 workaround.
3310 (CHARBUFFERPROC_NAME): Remove.
3311 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
3312 Python 2.4 workaround.
3313
2c3fc25d 33142019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 3315
2c3fc25d
KB
3316 * NEWS: Note minimum Python version.
3317
6ca62222
KB
33182019-02-27 Kevin Buettner <kevinb@redhat.com>
3319
3320 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
3321 code from these functions. Remove corresponding ifdefs. Use
3322 Py_buffer_up instead of explicit calls to PyBuffer_Release.
3323 Remove gotos and target of gotos.
3324 (infpy_search_memory): Likewise.
3325
f4bc7d2c
AB
33262019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3327
3328 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
3329 (hppa_gdbarch_init): Don't register deleted functions with
3330 gdbarch.
3331
9734a586
AB
33322019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3333
3334 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
3335 (h8300_unwind_sp): Delete.
3336 (h8300_dummy_id): Delete.
3337 (h8300_gdbarch_init): Don't register deleted functions with
3338 gdbarch.
3339
68b867f3
AB
33402019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3341
3342 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
3343 (ft32_unwind_pc): Delete.
3344 (ft32_unwind_sp): Delete.
3345 (ft32_gdbarch_init): Don't register deleted functions with
3346 gdbarch.
3347
2fbe7ad0
AB
33482019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3349
3350 * gdb/frv-tdep.c (frv_dummy_id): Delete.
3351 (frv_unwind_pc): Delete.
3352 (frv_unwind_sp): Delete.
3353 (frv_gdbarch_init): Don't register deleted functions with
3354 gdbarch.
3355
76055cbe
AB
33562019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3357
3358 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
3359 (riscv_unwind_pc): Delete.
3360 (riscv_unwind_sp): Delete.
3361 (riscv_gdbarch_init): Don't register deleted functions with
3362 gdbarch.
3363
4133e5a1
AB
33642019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3365
3366 * gdb/csky-tdep.c (csky_dummy_id): Delete.
3367 (csky_unwind_pc): Delete.
3368 (csky_unwind_sp): Delete.
3369 (csky_gdbarch_init): Don't register deleted functions with
3370 gdbarch.
3371
8010f576
AB
33722019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3373
3374 * gdb/cris-tdep.c (cris_dummy_id): Delete.
3375 (cris_unwind_pc): Delete.
3376 (cris_unwind_sp): Delete.
3377 (cris_gdbarch_init): Don't register deleted functions with
3378 gdbarch.
3379
b56bf084
AB
33802019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3381
3382 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
3383 (bfin_unwind_pc): Delete.
3384 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
3385
a19a650f
AB
33862019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3387
3388 * gdb/arm-tdep.c (arm_dummy_id): Delete.
3389 (arm_unwind_pc): Delete.
3390 (arm_unwind_sp): Delete.
3391 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
3392
f8278c3c
AB
33932019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3394
3395 * gdb/arc-tdep.c (arc_dummy_id): Delete.
3396 (arc_unwind_pc): Delete.
3397 (arc_unwind_sp): Delete.
3398 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
3399
480e46cf
AB
34002019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3401
3402 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
3403 (alpha_unwind_pc): Delete.
3404 (alpha_gdbarch_init): Don't register deleted functions with
3405 gdbarch.
3406
7a995095
AB
34072019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3408
3409 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
3410 (aarch64_unwind_pc): Delete.
3411 (aarch64_unwind_sp): Delete.
3412 (aarch64_gdbarch_init): Don't register deleted functions with
3413 gdbarch.
3414
bf9a735e
AB
34152019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3416
3417 * gdbtypes.c (type_align): Don't consider static members when
3418 computing structure alignment.
3419
5561fc30
AB
34202019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3421
3422 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
3423 return 0 for other types.
3424 * arch-utils.c (default_type_align): Always return 0.
3425 * gdbarch.h: Regenerate.
3426 * gdbarch.sh (type_align): Extend comment.
3427 * gdbtypes.c (type_align): Add additional comments, always call
3428 gdbarch_type_align before applying the default rules.
3429 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
3430 generic code will then apply a suitable default.
3431 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
3432 types, return 0 for other types.
3433
9335e75a
JB
34342019-02-27 Joel Brobecker <brobecker@adacore.com>
3435
3436 * NEWS: Create a new section for the next release branch.
3437 Rename the section of the current branch, now that it has
3438 been cut.
3439
3d34d8de
JB
34402019-02-27 Joel Brobecker <brobecker@adacore.com>
3441
3442 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
3443 * version.in: Bump version to 8.3.50.DATE-git.
3444
143420fb
SM
34452019-02-26 Simon Marchi <simon.marchi@efficios.com>
3446
3447 * aix-thread.c (ptid_cmp): Remove unused variable.
3448 (get_signaled_thread): Likewise.
3449 (store_regs_user_thread): Likewise.
3450 (store_regs_kernel_thread): Likewise.
3451 (fetch_regs_kernel_thread): Remove shadowed variable.
3452
172fb711
AB
34532019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
3454
3455 * features/riscv/32bit-cpu.xml: Add register numbers.
3456 * features/riscv/32bit-fpu.c: Regenerate.
3457 * features/riscv/32bit-fpu.xml: Add register numbers.
3458 * features/riscv/64bit-cpu.xml: Add register numbers.
3459 * features/riscv/64bit-fpu.c: Regenerate.
3460 * features/riscv/64bit-fpu.xml: Add register numbers.
3461
26c89782
KB
34622019-02-26 Kevin Buettner <kevinb@redhat.com>
3463
af54ade9 3464 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
3465 * python/py-value.c (convert_buffer_and_type_to_value): New
3466 function.
3467 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
3468 Add support for handling an optional second argument. Call
3469 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
3470 * python/python-internal.h (Py_buffer_deleter): New struct.
3471 (Py_buffer_up): New typedef.
3472
0f58c9e8
JB
34732019-02-25 John Baldwin <jhb@FreeBSD.org>
3474
3475 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
3476 instead of releasing ownership.
3477
0a0f4c01
JR
34782019-02-25 Jordan Rupprecht <rupprecht@google.com>
3479
3480 * dwarf2read.c (open_and_init_dwp_file): Call
3481 elf_numsections instead of bfd_count_sections to initialize
3482 dwp_file->num_sections.
3483
cd5a152c
TT
34842019-02-25 Tom Tromey <tromey@adacore.com>
3485
3486 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
3487
8a6a8513
SDJ
34882019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
3489
3490 * gcore.in: Add '--readnever' option when invoking GDB.
3491
04dcda9c
SM
34922019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
3493
3494 * MAINTAINERS: Update my email address.
3495
07bc701d
SM
34962019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
3497
3498 * build-id.c (build_id_to_debug_bfd_1): New function.
3499 (build_id_to_debug_bfd): Look for separate debug file in
3500 sysroot.
3501
c6f4a5d0
AB
35022019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
3503
3504 * gdbarch.sh: Update the copyright year range that is placed into
3505 generated files.
3506
9600246d
KS
35072019-02-22 Keith Seitz <keiths@redhat.com>
3508
3509 PR symtab/23853
3510 * linespec.c (create_sals_line_offset): Search for the default
3511 symtab's filename instead of its fullname.
3512
7557a514
AH
35132019-02-21 Alan Hayward <alan.hayward@arm.com>
3514
3515 * NEWS: Update style defaults.
3516
ee2bcb0c
AH
35172019-02-21 Alan Hayward <alan.hayward@arm.com>
3518
3519 * main.c (captured_main_1): Disable styling in batch mode.
3520
0c95f9ed
TT
35212019-02-20 Tom Tromey <tom@tromey.com>
3522
3523 * symtab.c (symtab_symbol_info): Fix typos.
3524
c763b894
TT
35252019-02-20 Tom Tromey <tromey@adacore.com>
3526
3527 * findcmd.c (_initialize_mem_search): Use upper case for
3528 metasyntactic variables.
3529
0ef8a082
AH
35302019-02-20 Alan Hayward <alan.hayward@arm.com>
3531
3532 * aarch64-tdep.c (aarch64_add_reggroups): New function.
3533 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
3534
6caa91b6
SM
35352019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
3536
3537 * top.h (source_file_name): Change to std::string.
3538 * top.c (source_file_name): Likewise.
3539 (command_line_input): Adjust.
3540 * cli/cli-script.c (script_from_file): Adjust.
3541
98814c6c
TT
35422019-02-19 Tom Tromey <tromey@adacore.com>
3543
3544 * ravenscar-thread.c
3545 (ravenscar_thread_target::update_thread_list): Don't call
3546 ada_build_task_list.
3547 * ada-lang.h (ada_build_task_list): Don't declare.
3548 * ada-tasks.c (struct ada_tasks_inferior_data)
3549 <task_list_valid_p>: Now bool.
3550 (read_known_tasks, ada_task_list_changed)
3551 (ada_tasks_invalidate_inferior_data): Update.
3552 (read_known_tasks_array): Return bool.
3553 (read_known_tasks_list): Likewise.
3554 (read_known_tasks): Return void.
3555 (ada_build_task_list): Now static.
3556
70cd633e
AB
35572019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
3558
3559 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
3560 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
3561
040b3e95
PW
35622019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3563
3564 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
3565 variant for ada_tasks_pspace_data_handle and
3566 ada_tasks_inferior_data_handle.
3567 (ada_tasks_pspace_data_cleanup): New function.
3568 (ada_tasks_inferior_data_cleanup): New function.
3569
9409233b
TT
35702019-02-17 Tom Tromey <tom@tromey.com>
3571
3572 * macrotab.h (macro_source_fullname): Return a std::string.
3573 * macrotab.c (macro_include, check_for_redefinition)
3574 (macro_undef, macro_lookup_definition, foreach_macro)
3575 (foreach_macro_in_scope): Update.
3576 (macro_source_fullname): Return a std::string.
3577 * macrocmd.c (show_pp_source_pos): Update.
3578
6506371f
TT
35792019-02-17 Tom Tromey <tom@tromey.com>
3580
3581 * macrocmd.c (show_pp_source_pos): Style the file names.
3582
0c820d67
TT
35832019-02-17 Tom Tromey <tom@tromey.com>
3584
3585 PR tui/24197:
3586 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
3587
a0087920
TT
35882019-02-17 Tom Tromey <tom@tromey.com>
3589
3590 * ada-lang.c (user_select_syms): Use filtered printing.
3591 * utils.c (wrap_style): New global.
3592 (desired_style): Remove.
3593 (emit_style_escape): Add stream parameter.
3594 (set_output_style, reset_terminal_style, prompt_for_continue):
3595 Update.
3596 (flush_wrap_buffer): Only flush gdb_stdout.
3597 (wrap_here): Set wrap_style.
3598 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
3599 treat escape sequences as a character. Change when wrap buffer is
3600 flushed.
3601 (fputs_styled): Do not set the output style when the default is
3602 requested.
3603 * ui-style.h (struct ui_file_style) <is_default>: New method.
3604 * source.c (print_source_lines_base): Emit escape sequences in one
3605 piece.
3606
75ba10dc
JB
36072019-02-17 Joel Brobecker <brobecker@adacore.com>
3608
3609 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
3610 integers and enumeration types.
3611
a2cd4f14
JB
36122019-02-17 Joel Brobecker <brobecker@adacore.com>
3613
3614 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
3615 instead of lookup_symbol_in_language
3616 (do_exact_match): New function.
3617 (ada_get_symbol_name_matcher): Return do_exact_match when
3618 doing a verbatim match.
3619
485b851b
TT
36202019-02-15 Tom Tromey <tromey@adacore.com>
3621
3622 * ravenscar-thread.c (ravenscar_thread_target::resume)
3623 (ravenscar_thread_target::wait): Special case wildcard requests.
3624
0b790b1e
TT
36252019-02-15 Tom Tromey <tromey@adacore.com>
3626
3627 * ravenscar-thread.c (base_ptid): Remove.
3628 (struct ravenscar_thread_target) <close>: New method.
3629 <m_base_ptid>: New member.
3630 <update_inferior_ptid, active_task, task_is_currently_active,
3631 runtime_initialized>: Declare methods.
3632 <ravenscar_thread_target>: Add constructor.
3633 (ravenscar_thread_target::task_is_currently_active)
3634 (ravenscar_thread_target::update_inferior_ptid)
3635 (ravenscar_runtime_initialized): Rename. Now methods.
3636 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
3637 (ravenscar_thread_target::update_thread_list): Update.
3638 (ravenscar_thread_target::active_task): Now method.
3639 (ravenscar_thread_target::store_registers)
3640 (ravenscar_thread_target::prepare_to_store)
3641 (ravenscar_thread_target::prepare_to_store)
3642 (ravenscar_thread_target::mourn_inferior): Update.
3643 (ravenscar_inferior_created): Use "new" to create target.
3644 (ravenscar_thread_target::get_ada_task_ptid): Update.
3645 (_initialize_ravenscar): Don't initialize base_ptid.
3646 (ravenscar_ops): Remove global.
3647
dea57a62
TT
36482019-02-15 Tom Tromey <tromey@adacore.com>
3649
3650 * target.h (push_target): Declare new overload.
3651 * target.c (push_target): New overload, taking an rvalue reference.
3652 * remote.c (remote_target::open_1): Use push_target overload.
3653 * corelow.c (core_target_open): Use push_target overload.
3654
989f3c58
TT
36552019-02-15 Tom Tromey <tromey@adacore.com>
3656
3657 * ravenscar-thread.c (is_ravenscar_task)
3658 (ravenscar_task_is_currently_active): Return bool.
3659 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
3660 (_initialize_ravenscar): Remove "(void)".
3661 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
3662 Return bool.
3663
6cbcc006
TT
36642019-02-15 Tom Tromey <tromey@adacore.com>
3665
3666 * ravenscar-thread.c (ravenscar_runtime_initializer)
3667 (has_ravenscar_runtime, get_running_thread_id)
3668 (ravenscar_thread_target::resume): Fix indentation.
3669
7657f14d
TT
36702019-02-15 Tom Tromey <tromey@adacore.com>
3671
3672 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
3673 from ravenscar_arch_ops.
3674 (sparc_ravenscar_ops::fetch_registers)
3675 (sparc_ravenscar_ops::store_registers): Now methods.
3676 (sparc_ravenscar_prepare_to_store): Remove.
3677 (sparc_ravenscar_ops): Redefine.
3678 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
3679 methods and destructor. Remove members.
3680 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
3681 (ravenscar_thread_target::store_registers)
3682 (ravenscar_thread_target::prepare_to_store): Update.
3683 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
3684 Remove.
3685 (struct ppc_ravenscar_powerpc_ops): Derive from
3686 ravenscar_arch_ops.
3687 (ppc_ravenscar_powerpc_ops::fetch_registers)
3688 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
3689 (ppc_ravenscar_powerpc_ops): Redefine.
3690 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
3691 (ppc_ravenscar_e500_ops::fetch_registers)
3692 (ppc_ravenscar_e500_ops::store_registers): Now methods.
3693 (ppc_ravenscar_e500_ops): Redefine.
3694 * aarch64-ravenscar-thread.c
3695 (aarch64_ravenscar_generic_prepare_to_store): Remove.
3696 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
3697 (aarch64_ravenscar_fetch_registers)
3698 (aarch64_ravenscar_store_registers): Now methods.
3699 (aarch64_ravenscar_ops): Redefine.
3700
5b6ea500
TT
37012019-02-15 Tom Tromey <tromey@adacore.com>
3702
3703 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
3704 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3705 (ravenscar_thread_target::stopped_by_watchpoint)
3706 (ravenscar_thread_target::stopped_data_address)
3707 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
3708
e397fd39
TT
37092019-02-15 Tom Tromey <tromey@adacore.com>
3710
3711 * ravenscar-thread.c: Fix some typos.
3712
cc12f4a8
TT
37132019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3714 Tom Tromey <tromey@adacore.com>
3715
3716 * ada-lang.c (ada_exception_sal): Change addr_string to a
3717 std::string.
3718 (create_ada_exception_catchpoint): Update.
3719
5f486660
TT
37202019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3721 Tom Tromey <tromey@adacore.com>
3722
3723 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
3724 (bp_location_ops): Remove.
3725 (base_breakpoint_allocate_location): Update.
3726 (free_bp_location): Update.
3727 * ada-lang.c (class ada_catchpoint_location)
3728 <ada_catchpoint_location>: Remove ops parameter.
3729 (ada_catchpoint_location_dtor): Remove.
3730 (ada_catchpoint_location_ops): Remove.
3731 (allocate_location_exception): Update.
3732 * breakpoint.h (struct bp_location_ops): Remove.
3733 (class bp_location) <bp_location>: Remove bp_location_ops
3734 parameter.
3735 <~bp_location>: Add destructor.
3736 <ops>: Remove.
3737
b671c7fb
TS
37382019-02-14 Thomas Schwinge <thomas@codesourcery.com>
3739 Pedro Alves <palves@redhat.com>
3740
3741 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
3742 'PATH_MAX'.
3743
8071c5ce
DM
37442019-02-14 David Michael <fedora.dm0@gmail.com>
3745 Samuel Thibault <samuel.thibault@gnu.org>
3746 Thomas Schwinge <thomas@codesourcery.com>
3747
3748 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
3749 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
3750
b1041ae0
TS
37512019-02-14 Thomas Schwinge <thomas@codesourcery.com>
3752
924514e1
TS
3753 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
3754 (check_empty): Use "const char *".
3755
c29ee8d4
TS
3756 * gnu-nat.c (gnu_nat_target::detach): Instead of
3757 'detach_inferior (pid)' call
3758 'detach_inferior (find_inferior_pid (pid))'.
3759
6c6ef69f
TS
3760 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
3761 'nat/fork-inferior.o'.
3762 * gnu-nat.c: #include "nat/fork-inferior.h".
3763
2d0a338c
TS
3764 * gnu-nat.c (gnu_nat_target::detach): Instead of
3765 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
3766 * gnu-nat.h: #include "inf-child.h".
3767 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
3768 'i386_gnu_nat_target::fetch_registers'.
3769 (gnu_store_registers): Rename/move to
3770 'i386_gnu_nat_target::store_registers'.
3771
cabb5f06
TS
3772 * config/i386/nm-i386gnu.h: Don't "#include" any files.
3773 * gnu-nat.h (mach_thread_info): New function.
3774 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
3775
b1041ae0
TS
3776 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
3777
2988d01e
KF
37782019-02-14 Frederic Konrad <konrad@adacore.com>
3779
3780 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
3781
c559d709
JB
37822019-02-14 Joel Brobecker <brobecker@adacore.com>
3783
3784 * windows-nat.c (windows_add_thread): Add new parameter
3785 "main_thread_p" with default value set to false. Update
3786 function documentation as well as all callers.
3787 (windows_delete_thread): Likewise.
3788 (fake_create_process): Update call to windows_add_thread.
3789 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
3790 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
3791 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
3792 call to windows_delete_thread.
3793
007024cc
SM
37942019-02-13 Simon Marchi <simon.marchi@ericsson.com>
3795
3796 * MAINTAINERS: Add Andrew Burgess as global maintainer.
3797
f62318e9
JB
37982019-02-12 John Baldwin <jhb@FreeBSD.org>
3799
3800 * symfile.c (find_separate_debug_file): Use canonical path of
3801 sysroot with child_path instead of gdb_sysroot if it is valid.
3802
cd4b7848
JB
38032019-02-12 John Baldwin <jhb@FreeBSD.org>
3804
3805 * symfile.c (find_separate_debug_file): Use child_path to
3806 determine if an object file is under a sysroot.
3807
efac4bfe
JB
38082019-02-12 John Baldwin <jhb@FreeBSD.org>
3809
3810 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3811 unittests/child-path-selftests.c.
3812 * common/pathstuff.c (child_path): New function.
3813 * common/pathstuff.h (child_path): New prototype.
3814 * unittests/child-path-selftests.c: New file.
3815
402d2bfe
JB
38162019-02-12 John Baldwin <jhb@FreeBSD.org>
3817
3818 * symfile.c (find_separate_debug_file): Look for separate debug
3819 files in debug directories under the sysroot.
3820
1ed9f74e
PW
38212019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3822
3823 * symtab.h (struct minimal_symbol data_p): New const method.
3824 (struct minimal_symbol text_p): Likewise.
3825 * symtab.c (output_source_filename): Use file name style
3826 to print file name.
3827 (print_symbol_info): Likewise.
3828 (print_msymbol_info): Use address style to print addresses.
3829 Use function name style to print executable text symbols.
3830 (expand_symtab_containing_pc): Use data_p.
3831 (find_pc_sect_compunit_symtab): Likewise.
3832
2636d81d
PW
38332019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3834
3835 * breakpoint.c (describe_other_breakpoints): Use address style
3836 to print addresses.
3837 (say_where): Likewise.
3838
ac8c53cc
PW
38392019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3840
3841 * ada-typeprint.c (print_func_type): Print function name
3842 style to print function name.
3843 * c-typeprint.c (c_print_type_1): Likewise.
3844
ea638c43
AH
38452019-02-11 Alan Hayward <alan.hayward@arm.com>
3846
3847 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
3848 for execve.
3849
ab759ca8
PW
38502019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3851
3852 * c-exp.y (direct_abs_decl): Use emplace_back to record the
3853 type_stack.
3854
aff29d1c
JB
38552019-02-10 Joel Brobecker <brobecker@adacore.com>
3856
3857 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
3858 TYPE_CODE_REF types.
3859
617126bc
JW
38602019-02-08 Jim Wilson <jimw@sifive.com>
3861
3862 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
3863 (riscv_linux_fregset): New.
3864 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
3865
46e3ed7f
TT
38662019-02-07 Tom Tromey <tom@tromey.com>
3867
3868 * thread.c (thread_cancel_execution_command): Update.
3869 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
3870 methods.
3871 (struct thread_fsm_ops): Remove.
3872 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
3873 (thread_fsm_should_stop, thread_fsm_return_value)
3874 (thread_fsm_set_finished, thread_fsm_finished_p)
3875 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
3876 Don't declare.
3877 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
3878 * infrun.c (clear_proceed_status_thread)
3879 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
3880 (print_stop_event): Update.
3881 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
3882 Add constructor.
3883 (step_command_fsm_ops): Remove.
3884 (new_step_command_fsm): Remove.
3885 (step_1): Update.
3886 (step_command_fsm::should_stop): Rename from
3887 step_command_fsm_should_stop.
3888 (step_command_fsm::clean_up): Rename from
3889 step_command_fsm_clean_up.
3890 (step_command_fsm::do_async_reply_reason): Rename from
3891 step_command_fsm_async_reply_reason.
3892 (struct until_next_fsm): Inherit from thread_fsm. Add
3893 constructor.
3894 (until_next_fsm_ops): Remove.
3895 (new_until_next_fsm): Remove.
3896 (until_next_fsm::should_stop): Rename from
3897 until_next_fsm_should_stop.
3898 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
3899 (until_next_fsm::do_async_reply_reason): Rename from
3900 until_next_fsm_async_reply_reason.
3901 (struct finish_command_fsm): Inherit from thread_fsm. Add
3902 constructor. Change type of breakpoint.
3903 (finish_command_fsm_ops): Remove.
3904 (new_finish_command_fsm): Remove.
3905 (finish_command_fsm::should_stop): Rename from
3906 finish_command_fsm_should_stop.
3907 (finish_command_fsm::clean_up): Rename from
3908 finish_command_fsm_clean_up.
3909 (finish_command_fsm::return_value): Rename from
3910 finish_command_fsm_return_value.
3911 (finish_command_fsm::do_async_reply_reason): Rename from
3912 finish_command_fsm_async_reply_reason.
3913 (finish_command): Update.
3914 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
3915 Add constructor.
3916 (call_thread_fsm_ops): Remove.
3917 (call_thread_fsm::call_thread_fsm): Rename from
3918 new_call_thread_fsm.
3919 (call_thread_fsm::should_stop): Rename from
3920 call_thread_fsm_should_stop.
3921 (call_thread_fsm::should_notify_stop): Rename from
3922 call_thread_fsm_should_notify_stop.
3923 (run_inferior_call, call_function_by_hand_dummy): Update.
3924 * cli/cli-interp.c (should_print_stop_to_console): Update.
3925 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
3926 Add constructor. Change type of location_breakpoint,
3927 caller_breakpoint.
3928 (until_break_fsm_ops): Remove.
3929 (new_until_break_fsm): Remove.
3930 (until_break_fsm::should_stop): Rename from
3931 until_break_fsm_should_stop.
3932 (until_break_fsm::clean_up): Rename from
3933 until_break_fsm_clean_up.
3934 (until_break_fsm::do_async_reply_reason): Rename from
3935 until_break_fsm_async_reply_reason.
3936 (until_break_command): Update.
3937 * thread-fsm.c: Remove.
3938 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
3939
1a5c2598
TT
39402019-02-07 Tom Tromey <tom@tromey.com>
3941
3942 * yy-remap.h: Add include guard.
3943 * xtensa-tdep.h: Add include guard.
3944 * xcoffread.h: Rename include guard.
3945 * varobj-iter.h: Add include guard.
3946 * tui/tui.h: Rename include guard.
3947 * tui/tui-winsource.h: Rename include guard.
3948 * tui/tui-wingeneral.h: Rename include guard.
3949 * tui/tui-windata.h: Rename include guard.
3950 * tui/tui-win.h: Rename include guard.
3951 * tui/tui-stack.h: Rename include guard.
3952 * tui/tui-source.h: Rename include guard.
3953 * tui/tui-regs.h: Rename include guard.
3954 * tui/tui-out.h: Rename include guard.
3955 * tui/tui-layout.h: Rename include guard.
3956 * tui/tui-io.h: Rename include guard.
3957 * tui/tui-hooks.h: Rename include guard.
3958 * tui/tui-file.h: Rename include guard.
3959 * tui/tui-disasm.h: Rename include guard.
3960 * tui/tui-data.h: Rename include guard.
3961 * tui/tui-command.h: Rename include guard.
3962 * tic6x-tdep.h: Add include guard.
3963 * target/waitstatus.h: Rename include guard.
3964 * target/wait.h: Rename include guard.
3965 * target/target.h: Rename include guard.
3966 * target/resume.h: Rename include guard.
3967 * target-float.h: Rename include guard.
3968 * stabsread.h: Add include guard.
3969 * rs6000-tdep.h: Add include guard.
3970 * riscv-fbsd-tdep.h: Add include guard.
3971 * regformats/regdef.h: Rename include guard.
3972 * record.h: Rename include guard.
3973 * python/python.h: Rename include guard.
3974 * python/python-internal.h: Rename include guard.
3975 * python/py-stopevent.h: Rename include guard.
3976 * python/py-ref.h: Rename include guard.
3977 * python/py-record.h: Rename include guard.
3978 * python/py-record-full.h: Rename include guard.
3979 * python/py-record-btrace.h: Rename include guard.
3980 * python/py-instruction.h: Rename include guard.
3981 * python/py-events.h: Rename include guard.
3982 * python/py-event.h: Rename include guard.
3983 * procfs.h: Add include guard.
3984 * proc-utils.h: Add include guard.
3985 * p-lang.h: Add include guard.
3986 * or1k-tdep.h: Rename include guard.
3987 * observable.h: Rename include guard.
3988 * nto-tdep.h: Rename include guard.
3989 * nat/x86-linux.h: Rename include guard.
3990 * nat/x86-linux-dregs.h: Rename include guard.
3991 * nat/x86-gcc-cpuid.h: Add include guard.
3992 * nat/x86-dregs.h: Rename include guard.
3993 * nat/x86-cpuid.h: Rename include guard.
3994 * nat/ppc-linux.h: Rename include guard.
3995 * nat/mips-linux-watch.h: Rename include guard.
3996 * nat/linux-waitpid.h: Rename include guard.
3997 * nat/linux-ptrace.h: Rename include guard.
3998 * nat/linux-procfs.h: Rename include guard.
3999 * nat/linux-osdata.h: Rename include guard.
4000 * nat/linux-nat.h: Rename include guard.
4001 * nat/linux-namespaces.h: Rename include guard.
4002 * nat/linux-btrace.h: Rename include guard.
4003 * nat/glibc_thread_db.h: Rename include guard.
4004 * nat/gdb_thread_db.h: Rename include guard.
4005 * nat/gdb_ptrace.h: Rename include guard.
4006 * nat/fork-inferior.h: Rename include guard.
4007 * nat/amd64-linux-siginfo.h: Rename include guard.
4008 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
4009 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
4010 * nat/aarch64-linux.h: Rename include guard.
4011 * nat/aarch64-linux-hw-point.h: Rename include guard.
4012 * mn10300-tdep.h: Add include guard.
4013 * mips-linux-tdep.h: Add include guard.
4014 * mi/mi-parse.h: Rename include guard.
4015 * mi/mi-out.h: Rename include guard.
4016 * mi/mi-main.h: Rename include guard.
4017 * mi/mi-interp.h: Rename include guard.
4018 * mi/mi-getopt.h: Rename include guard.
4019 * mi/mi-console.h: Rename include guard.
4020 * mi/mi-common.h: Rename include guard.
4021 * mi/mi-cmds.h: Rename include guard.
4022 * mi/mi-cmd-break.h: Rename include guard.
4023 * m2-lang.h: Add include guard.
4024 * location.h: Rename include guard.
4025 * linux-record.h: Rename include guard.
4026 * linux-nat.h: Add include guard.
4027 * linux-fork.h: Add include guard.
4028 * i386-darwin-tdep.h: Rename include guard.
4029 * hppa-linux-offsets.h: Add include guard.
4030 * guile/guile.h: Rename include guard.
4031 * guile/guile-internal.h: Rename include guard.
4032 * gnu-nat.h: Rename include guard.
4033 * gdb-stabs.h: Rename include guard.
4034 * frv-tdep.h: Add include guard.
4035 * f-lang.h: Add include guard.
4036 * event-loop.h: Add include guard.
4037 * darwin-nat.h: Rename include guard.
4038 * cp-abi.h: Rename include guard.
4039 * config/sparc/nm-sol2.h: Rename include guard.
4040 * config/nm-nto.h: Rename include guard.
4041 * config/nm-linux.h: Add include guard.
4042 * config/i386/nm-i386gnu.h: Rename include guard.
4043 * config/djgpp/nl_types.h: Rename include guard.
4044 * config/djgpp/langinfo.h: Rename include guard.
4045 * compile/gcc-cp-plugin.h: Add include guard.
4046 * compile/gcc-c-plugin.h: Add include guard.
4047 * compile/compile.h: Rename include guard.
4048 * compile/compile-object-run.h: Rename include guard.
4049 * compile/compile-object-load.h: Rename include guard.
4050 * compile/compile-internal.h: Rename include guard.
4051 * compile/compile-cplus.h: Rename include guard.
4052 * compile/compile-c.h: Rename include guard.
4053 * common/xml-utils.h: Rename include guard.
4054 * common/x86-xstate.h: Rename include guard.
4055 * common/version.h: Rename include guard.
4056 * common/vec.h: Rename include guard.
4057 * common/tdesc.h: Rename include guard.
4058 * common/selftest.h: Rename include guard.
4059 * common/scoped_restore.h: Rename include guard.
4060 * common/scoped_mmap.h: Rename include guard.
4061 * common/scoped_fd.h: Rename include guard.
4062 * common/safe-iterator.h: Rename include guard.
4063 * common/run-time-clock.h: Rename include guard.
4064 * common/refcounted-object.h: Rename include guard.
4065 * common/queue.h: Rename include guard.
4066 * common/ptid.h: Rename include guard.
4067 * common/print-utils.h: Rename include guard.
4068 * common/preprocessor.h: Rename include guard.
4069 * common/pathstuff.h: Rename include guard.
4070 * common/observable.h: Rename include guard.
4071 * common/netstuff.h: Rename include guard.
4072 * common/job-control.h: Rename include guard.
4073 * common/host-defs.h: Rename include guard.
4074 * common/gdb_wait.h: Rename include guard.
4075 * common/gdb_vecs.h: Rename include guard.
4076 * common/gdb_unlinker.h: Rename include guard.
4077 * common/gdb_unique_ptr.h: Rename include guard.
4078 * common/gdb_tilde_expand.h: Rename include guard.
4079 * common/gdb_sys_time.h: Rename include guard.
4080 * common/gdb_string_view.h: Rename include guard.
4081 * common/gdb_splay_tree.h: Rename include guard.
4082 * common/gdb_setjmp.h: Rename include guard.
4083 * common/gdb_ref_ptr.h: Rename include guard.
4084 * common/gdb_optional.h: Rename include guard.
4085 * common/gdb_locale.h: Rename include guard.
4086 * common/gdb_assert.h: Rename include guard.
4087 * common/filtered-iterator.h: Rename include guard.
4088 * common/filestuff.h: Rename include guard.
4089 * common/fileio.h: Rename include guard.
4090 * common/environ.h: Rename include guard.
4091 * common/common-utils.h: Rename include guard.
4092 * common/common-types.h: Rename include guard.
4093 * common/common-regcache.h: Rename include guard.
4094 * common/common-inferior.h: Rename include guard.
4095 * common/common-gdbthread.h: Rename include guard.
4096 * common/common-exceptions.h: Rename include guard.
4097 * common/common-defs.h: Rename include guard.
4098 * common/common-debug.h: Rename include guard.
4099 * common/cleanups.h: Rename include guard.
4100 * common/buffer.h: Rename include guard.
4101 * common/btrace-common.h: Rename include guard.
4102 * common/break-common.h: Rename include guard.
4103 * cli/cli-utils.h: Rename include guard.
4104 * cli/cli-style.h: Rename include guard.
4105 * cli/cli-setshow.h: Rename include guard.
4106 * cli/cli-script.h: Rename include guard.
4107 * cli/cli-interp.h: Rename include guard.
4108 * cli/cli-decode.h: Rename include guard.
4109 * cli/cli-cmds.h: Rename include guard.
4110 * charset-list.h: Add include guard.
4111 * buildsym-legacy.h: Rename include guard.
4112 * bfin-tdep.h: Add include guard.
4113 * ax.h: Rename include guard.
4114 * arm-linux-tdep.h: Add include guard.
4115 * arm-fbsd-tdep.h: Add include guard.
4116 * arch/xtensa.h: Rename include guard.
4117 * arch/tic6x.h: Add include guard.
4118 * arch/i386.h: Add include guard.
4119 * arch/arm.h: Rename include guard.
4120 * arch/arm-linux.h: Rename include guard.
4121 * arch/arm-get-next-pcs.h: Rename include guard.
4122 * arch/amd64.h: Add include guard.
4123 * arch/aarch64-insn.h: Rename include guard.
4124 * arch-utils.h: Rename include guard.
4125 * annotate.h: Add include guard.
4126 * amd64-darwin-tdep.h: Rename include guard.
4127 * aarch64-linux-tdep.h: Add include guard.
4128 * aarch64-fbsd-tdep.h: Add include guard.
4129 * aarch32-linux-nat.h: Add include guard.
4130
ab9268d2
PW
41312019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4132
4133 * macrotab.c (macro_define_internal): New function that
4134 factorizes macro_define_object_internal and macro_define_function
4135 code.
4136 (macro_define_object_internal): Use macro_define_internal.
4137 (macro_define_function): Likewise.
4138
bb0da2b4
PW
41392019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4140
4141 * macrocmd.c (extract_identifier): Return
4142 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
4143 callers.
4144
424eb552
JB
41452019-02-06 John Baldwin <jhb@FreeBSD.org>
4146
4147 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
4148
1688cb29
TT
41492019-02-05 Tom Tromey <tom@tromey.com>
4150
4151 * target.c (target_stack::unpush): Move assertion earlier.
4152
b5eba2d8
TT
41532019-01-30 Tom Tromey <tom@tromey.com>
4154
4155 PR python/23615:
4156 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
4157 (gdbpy_parse_and_eval): Likewise.
4158 * python/python-internal.h (gdbpy_allow_threads): New class.
4159
7054e2ff
JB
41602019-01-28 John Baldwin <jhb@FreeBSD.org>
4161
4162 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
4163 (aarch64_fbsd_fpregmap): Move earlier.
4164 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
4165 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
4166 instead of individual calls to trad_frame_set_reg_addr.
4167 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
4168 earlier.
4169 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
4170 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
4171 instead of individual calls to trad_frame_set_reg_addr.
4172
36c25ffa
AH
41732019-01-28 Alan Hayward <alan.hayward@arm.com>
4174
4175 * CONTRIBUTE: Replace contribution list with wiki link.
4176
a0707f3c
TT
41772019-01-25 Tom Tromey <tom@tromey.com>
4178
4179 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
4180
0747795c
TT
41812019-01-25 Tom Tromey <tom@tromey.com>
4182
4183 * xtensa-linux-nat.c: Fix common/ includes.
4184 * xml-support.h: Fix common/ includes.
4185 * xml-support.c: Fix common/ includes.
4186 * x86-linux-nat.c: Fix common/ includes.
4187 * windows-nat.c: Fix common/ includes.
4188 * varobj.h: Fix common/ includes.
4189 * varobj.c: Fix common/ includes.
4190 * value.c: Fix common/ includes.
4191 * valops.c: Fix common/ includes.
4192 * utils.c: Fix common/ includes.
4193 * unittests/xml-utils-selftests.c: Fix common/ includes.
4194 * unittests/utils-selftests.c: Fix common/ includes.
4195 * unittests/unpack-selftests.c: Fix common/ includes.
4196 * unittests/tracepoint-selftests.c: Fix common/ includes.
4197 * unittests/style-selftests.c: Fix common/ includes.
4198 * unittests/string_view-selftests.c: Fix common/ includes.
4199 * unittests/scoped_restore-selftests.c: Fix common/ includes.
4200 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
4201 * unittests/scoped_fd-selftests.c: Fix common/ includes.
4202 * unittests/rsp-low-selftests.c: Fix common/ includes.
4203 * unittests/parse-connection-spec-selftests.c: Fix common/
4204 includes.
4205 * unittests/optional-selftests.c: Fix common/ includes.
4206 * unittests/offset-type-selftests.c: Fix common/ includes.
4207 * unittests/observable-selftests.c: Fix common/ includes.
4208 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
4209 * unittests/memrange-selftests.c: Fix common/ includes.
4210 * unittests/memory-map-selftests.c: Fix common/ includes.
4211 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
4212 * unittests/function-view-selftests.c: Fix common/ includes.
4213 * unittests/environ-selftests.c: Fix common/ includes.
4214 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
4215 * unittests/common-utils-selftests.c: Fix common/ includes.
4216 * unittests/cli-utils-selftests.c: Fix common/ includes.
4217 * unittests/array-view-selftests.c: Fix common/ includes.
4218 * ui-file.c: Fix common/ includes.
4219 * tui/tui-io.c: Fix common/ includes.
4220 * tracepoint.h: Fix common/ includes.
4221 * tracepoint.c: Fix common/ includes.
4222 * tracefile-tfile.c: Fix common/ includes.
4223 * top.h: Fix common/ includes.
4224 * top.c: Fix common/ includes.
4225 * thread.c: Fix common/ includes.
4226 * target/waitstatus.h: Fix common/ includes.
4227 * target/waitstatus.c: Fix common/ includes.
4228 * target.h: Fix common/ includes.
4229 * target.c: Fix common/ includes.
4230 * target-memory.c: Fix common/ includes.
4231 * target-descriptions.c: Fix common/ includes.
4232 * symtab.h: Fix common/ includes.
4233 * symfile.c: Fix common/ includes.
4234 * stap-probe.c: Fix common/ includes.
4235 * spu-linux-nat.c: Fix common/ includes.
4236 * sparc-nat.c: Fix common/ includes.
4237 * source.c: Fix common/ includes.
4238 * solib.c: Fix common/ includes.
4239 * solib-target.c: Fix common/ includes.
4240 * ser-unix.c: Fix common/ includes.
4241 * ser-tcp.c: Fix common/ includes.
4242 * ser-pipe.c: Fix common/ includes.
4243 * ser-base.c: Fix common/ includes.
4244 * selftest-arch.c: Fix common/ includes.
4245 * s12z-tdep.c: Fix common/ includes.
4246 * rust-exp.y: Fix common/ includes.
4247 * rs6000-aix-tdep.c: Fix common/ includes.
4248 * riscv-tdep.c: Fix common/ includes.
4249 * remote.c: Fix common/ includes.
4250 * remote-notif.h: Fix common/ includes.
4251 * remote-fileio.h: Fix common/ includes.
4252 * remote-fileio.c: Fix common/ includes.
4253 * regcache.h: Fix common/ includes.
4254 * regcache.c: Fix common/ includes.
4255 * record-btrace.c: Fix common/ includes.
4256 * python/python.c: Fix common/ includes.
4257 * python/py-type.c: Fix common/ includes.
4258 * python/py-inferior.c: Fix common/ includes.
4259 * progspace.h: Fix common/ includes.
4260 * producer.c: Fix common/ includes.
4261 * procfs.c: Fix common/ includes.
4262 * proc-api.c: Fix common/ includes.
4263 * printcmd.c: Fix common/ includes.
4264 * ppc-linux-nat.c: Fix common/ includes.
4265 * parser-defs.h: Fix common/ includes.
4266 * osdata.c: Fix common/ includes.
4267 * obsd-nat.c: Fix common/ includes.
4268 * nat/x86-linux.c: Fix common/ includes.
4269 * nat/x86-linux-dregs.c: Fix common/ includes.
4270 * nat/x86-dregs.h: Fix common/ includes.
4271 * nat/x86-dregs.c: Fix common/ includes.
4272 * nat/ppc-linux.c: Fix common/ includes.
4273 * nat/mips-linux-watch.h: Fix common/ includes.
4274 * nat/mips-linux-watch.c: Fix common/ includes.
4275 * nat/linux-waitpid.c: Fix common/ includes.
4276 * nat/linux-ptrace.h: Fix common/ includes.
4277 * nat/linux-ptrace.c: Fix common/ includes.
4278 * nat/linux-procfs.c: Fix common/ includes.
4279 * nat/linux-personality.c: Fix common/ includes.
4280 * nat/linux-osdata.c: Fix common/ includes.
4281 * nat/linux-namespaces.c: Fix common/ includes.
4282 * nat/linux-btrace.h: Fix common/ includes.
4283 * nat/linux-btrace.c: Fix common/ includes.
4284 * nat/fork-inferior.c: Fix common/ includes.
4285 * nat/amd64-linux-siginfo.c: Fix common/ includes.
4286 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
4287 * nat/aarch64-linux.c: Fix common/ includes.
4288 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
4289 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
4290 * namespace.h: Fix common/ includes.
4291 * mips-linux-tdep.c: Fix common/ includes.
4292 * minsyms.c: Fix common/ includes.
4293 * mi/mi-parse.h: Fix common/ includes.
4294 * mi/mi-main.c: Fix common/ includes.
4295 * mi/mi-cmd-env.c: Fix common/ includes.
4296 * memrange.h: Fix common/ includes.
4297 * memattr.c: Fix common/ includes.
4298 * maint.h: Fix common/ includes.
4299 * maint.c: Fix common/ includes.
4300 * main.c: Fix common/ includes.
4301 * machoread.c: Fix common/ includes.
4302 * location.c: Fix common/ includes.
4303 * linux-thread-db.c: Fix common/ includes.
4304 * linux-nat.c: Fix common/ includes.
4305 * linux-fork.c: Fix common/ includes.
4306 * inline-frame.c: Fix common/ includes.
4307 * infrun.c: Fix common/ includes.
4308 * inflow.c: Fix common/ includes.
4309 * inferior.h: Fix common/ includes.
4310 * inferior.c: Fix common/ includes.
4311 * infcmd.c: Fix common/ includes.
4312 * inf-ptrace.c: Fix common/ includes.
4313 * inf-child.c: Fix common/ includes.
4314 * ia64-linux-nat.c: Fix common/ includes.
4315 * i387-tdep.c: Fix common/ includes.
4316 * i386-tdep.c: Fix common/ includes.
4317 * i386-linux-tdep.c: Fix common/ includes.
4318 * i386-linux-nat.c: Fix common/ includes.
4319 * i386-go32-tdep.c: Fix common/ includes.
4320 * i386-fbsd-tdep.c: Fix common/ includes.
4321 * i386-fbsd-nat.c: Fix common/ includes.
4322 * guile/scm-type.c: Fix common/ includes.
4323 * guile/guile.c: Fix common/ includes.
4324 * go32-nat.c: Fix common/ includes.
4325 * gnu-nat.c: Fix common/ includes.
4326 * gdbthread.h: Fix common/ includes.
4327 * gdbarch-selftests.c: Fix common/ includes.
4328 * gdb_usleep.c: Fix common/ includes.
4329 * gdb_select.h: Fix common/ includes.
4330 * gdb_bfd.c: Fix common/ includes.
4331 * gcore.c: Fix common/ includes.
4332 * fork-child.c: Fix common/ includes.
4333 * findvar.c: Fix common/ includes.
4334 * fbsd-nat.c: Fix common/ includes.
4335 * event-top.c: Fix common/ includes.
4336 * event-loop.c: Fix common/ includes.
4337 * dwarf2read.c: Fix common/ includes.
4338 * dwarf2loc.c: Fix common/ includes.
4339 * dwarf2-frame.c: Fix common/ includes.
4340 * dwarf-index-cache.c: Fix common/ includes.
4341 * dtrace-probe.c: Fix common/ includes.
4342 * disasm-selftests.c: Fix common/ includes.
4343 * defs.h: Fix common/ includes.
4344 * csky-tdep.c: Fix common/ includes.
4345 * cp-valprint.c: Fix common/ includes.
4346 * cp-support.h: Fix common/ includes.
4347 * cp-support.c: Fix common/ includes.
4348 * corelow.c: Fix common/ includes.
4349 * completer.h: Fix common/ includes.
4350 * completer.c: Fix common/ includes.
4351 * compile/compile.c: Fix common/ includes.
4352 * compile/compile-loc2c.c: Fix common/ includes.
4353 * compile/compile-cplus-types.c: Fix common/ includes.
4354 * compile/compile-cplus-symbols.c: Fix common/ includes.
4355 * command.h: Fix common/ includes.
4356 * cli/cli-dump.c: Fix common/ includes.
4357 * cli/cli-cmds.c: Fix common/ includes.
4358 * charset.c: Fix common/ includes.
4359 * build-id.c: Fix common/ includes.
4360 * btrace.h: Fix common/ includes.
4361 * btrace.c: Fix common/ includes.
4362 * breakpoint.h: Fix common/ includes.
4363 * breakpoint.c: Fix common/ includes.
4364 * ax.h:
4365 (enum agent_op): Fix common/ includes.
4366 * ax-general.c (struct aop_map): Fix common/ includes.
4367 * ax-gdb.c: Fix common/ includes.
4368 * auxv.c: Fix common/ includes.
4369 * auto-load.c: Fix common/ includes.
4370 * arm-tdep.c: Fix common/ includes.
4371 * arch/riscv.c: Fix common/ includes.
4372 * arch/ppc-linux-common.c: Fix common/ includes.
4373 * arch/i386.c: Fix common/ includes.
4374 * arch/arm.c: Fix common/ includes.
4375 * arch/arm-linux.c: Fix common/ includes.
4376 * arch/arm-get-next-pcs.c: Fix common/ includes.
4377 * arch/amd64.c: Fix common/ includes.
4378 * arch/aarch64.c: Fix common/ includes.
4379 * arch/aarch64-insn.c: Fix common/ includes.
4380 * arch-utils.c: Fix common/ includes.
4381 * amd64-windows-tdep.c: Fix common/ includes.
4382 * amd64-tdep.c: Fix common/ includes.
4383 * amd64-sol2-tdep.c: Fix common/ includes.
4384 * amd64-obsd-tdep.c: Fix common/ includes.
4385 * amd64-nbsd-tdep.c: Fix common/ includes.
4386 * amd64-linux-tdep.c: Fix common/ includes.
4387 * amd64-linux-nat.c: Fix common/ includes.
4388 * amd64-fbsd-tdep.c: Fix common/ includes.
4389 * amd64-fbsd-nat.c: Fix common/ includes.
4390 * amd64-dicos-tdep.c: Fix common/ includes.
4391 * amd64-darwin-tdep.c: Fix common/ includes.
4392 * agent.c: Fix common/ includes.
4393 * ada-lang.h: Fix common/ includes.
4394 * ada-lang.c: Fix common/ includes.
4395 * aarch64-tdep.c: Fix common/ includes.
4396
2f5c153e
TT
43972019-01-25 Tom Tromey <tom@tromey.com>
4398
4399 * common/create-version.sh: Use common/version.h.
4400
adc6a863
PA
44012019-01-24 Pedro Alves <palves@redhat.com>
4402
4403 * infrun.c (signal_stop, signal_print, signal_program)
4404 (signal_catch, signal_pass): Now arrays instead of pointers.
4405 (update_signals_program_target, do_target_resume)
4406 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
4407 * linux-nat.c (linux_nat_target::pass_signals)
4408 (linux_nat_target::create_inferior, linux_nat_target::attach):
4409 Adjust.
4410 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
4411 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
4412 * procfs.c (procfs_target::pass_signals): Adjust.
4413 * record-full.c (record_full_target::resume): Adjust.
4414 * remote.c (remote_target::pass_signals)
4415 (remote_target::program_signals): Adjust.
4416 * target-debug.h (target_debug_print_signals): Now takes a
4417 gdb::array_view as parameter. Adjust.
4418 * target.h (target_ops) <pass_signals, program_signals>: Replace
4419 pointer and length parameters with gdb::array_view.
4420 (target_pass_signals, target_program_signals): Likewise.
4421 * target-delegates.c: Regenerate.
4422
3046d67a
PA
44232019-01-24 Pedro Alves <palves@redhat.com>
4424
4425 * common/forward-scope-exit.h
4426 (forward_scope_exit::forward_scope_exit): Pass arguments to
4427 m_bind_function directly, instead of creating a std::bind and
4428 copying that.
4429
353229bf
AH
44302019-01-24 Alan Hayward <alan.hayward@arm.com>
4431
4432 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
4433 for static members.
4434 (pass_in_v_vfp_candidate): Likewise.
4435
311dc83a
TT
44362019-01-23 Tom Tromey <tom@tromey.com>
4437 Pedro Alves <palves@redhat.com>
4438
4439 * regcache.c (class regcache_invalidator): Remove.
4440 (regcache::raw_write): Use make_scope_exit.
4441
296bd123
TT
44422019-01-23 Tom Tromey <tom@tromey.com>
4443
4444 * ui-out.h (class ui_out_emit_type): Update comment.
4445
979a0d13
TT
44462019-01-23 Tom Tromey <tom@tromey.com>
4447
4448 * infrun.c (fetch_inferior_event): Update comment.
4449
d238133d
TT
44502019-01-23 Tom Tromey <tom@tromey.com>
4451 Pedro Alves <palves@redhat.com>
4452
4453 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
4454 parameter.
4455 (fetch_inferior_event): Use SCOPE_EXIT.
4456
4457
9885e6bb
TT
44582019-01-23 Tom Tromey <tom@tromey.com>
4459 Pedro Alves <palves@redhat.com>
4460
4461 * infrun.c (disable_thread_events): Delete.
4462 (stop_all_threads): Use SCOPE_EXIT.
4463
286526c1
TT
44642019-01-23 Tom Tromey <tom@tromey.com>
4465 Pedro Alves <palves@redhat.com>
4466
4467 * symfile.c: Include forward-scope-exit.h.
4468 (clear_symtab_users_cleanup): Replace forward declaration with
4469 a FORWARD_SCOPE_EXIT.
4470 (syms_from_objfile_1): Use the forward_scope_exit and
4471 gdb::optional instead of cleanup_function.
4472 (reread_symbols): Use the forward_scope_exit instead of
4473 cleanup_function.
4474 (clear_symtab_users_cleanup): Remove function.
4475
1db93f14
TT
44762019-01-23 Tom Tromey <tom@tromey.com>
4477 Pedro Alves <palves@redhat.com>
4478
4479 * linux-nat.c: Include scope-exit.h.
4480 (cleanup_target_stop): Remove.
4481 (linux_nat_target::static_tracepoint_markers_by_strid): Use
4482 SCOPE_EXIT.
4483
2cc83d1e
TT
44842019-01-23 Tom Tromey <tom@tromey.com>
4485 Pedro Alves <palves@redhat.com>
4486
4487 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
4488 (call_function_by_hand_dummy): Use SCOPE_EXIT.
4489
694c6bf5
TT
44902019-01-23 Tom Tromey <tom@tromey.com>
4491 Andrew Burgess <andrew.burgess@embecosm.com>
4492 Pedro Alves <palves@redhat.com>
4493
4494 * infrun.c (fetch_inferior_event): Use scope_exit.
4495 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
4496 * top.c (execute_command): Use scope_exit.
4497 * breakpoint.c (bpstat_do_actions): Use scope_exit.
4498 * utils.c (do_bpstat_clear_actions_cleanup)
4499 (make_bpstat_clear_actions_cleanup): Remove.
4500
4c41382a
TT
45012019-01-23 Tom Tromey <tom@tromey.com>
4502 Pedro Alves <palves@redhat.com>
4503
4504 * infrun.c: Include "common/scope-exit.h"
4505 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
4506 (wait_for_inferior): Use SCOPE_EXIT.
4507 (fetch_inferior_event): Use scope_exit.
4508
89f8fb50
TT
45092019-01-23 Tom Tromey <tom@tromey.com>
4510 Pedro Alves <palves@redhat.com>
4511
4512 * breakpoint.c (create_breakpoint): Remove cleanup.
4513
5419bdae
TT
45142019-01-23 Tom Tromey <tom@tromey.com>
4515 Andrew Burgess <andrew.burgess@embecosm.com>
4516 Pedro Alves <palves@redhat.com>
4517
e587ef42
PA
45182019-01-23 Pedro Alves <palves@redhat.com>
4519
4520 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
4521
77f0e74c
PA
45222019-01-23 Pedro Alves <palves@redhat.com>
4523 Andrew Burgess <andrew.burgess@embecosm.com>
4524
4525 * gdbthread.h: Include "common/forward-scope-exit.h".
4526 (scoped_finish_thread_state): Redefine custom class in terms of
4527 forward_scope_exit.
4528
5b9b3e53
PA
45292019-01-23 Pedro Alves <palves@redhat.com>
4530 Andrew Burgess <andrew.burgess@embecosm.com>
4531
4532 * common/forward-scope-exit.h: New file.
4533
54b65c9b
PA
45342019-01-23 Pedro Alves <palves@redhat.com>
4535 Andrew Burgess <andrew.burgess@embecosm.com>
4536 Tom Tromey <tom@tromey.com>
4537
4538 * common/scope-exit.h: New file.
4539
cf08fb29
PA
45402019-01-23 Pedro Alves <palves@redhat.com>
4541
4542 * common/preprocessor.h (ESC): Rename to ...
4543 (ESC_PARENS): ... this.
4544 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
4545 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
4546
ae73e2e2
TT
45472019-01-23 Tom Tromey <tom@tromey.com>
4548
4549 * language.h (class scoped_switch_to_sym_language_if_auto):
4550 Initialize m_lang in both cases.
4551
6594e122
AH
45522019-01-23 Alan Hayward <alan.hayward@arm.com>
4553
4554 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
4555 with XCNEW.
4556
a7c9855d
TT
45572019-01-22 Tom Tromey <tom@tromey.com>
4558
4559 * corelow.c: Do not include sys/file.h.
4560
93cc1d53
TT
45612019-01-22 Tom Tromey <tom@tromey.com>
4562
4563 * tui/tui-wingeneral.h: Include gdb_curses.h.
4564
38561778
TT
45652019-01-22 Tom Tromey <tom@tromey.com>
4566
4567 * source-cache.h (class source_cache) <get_source_lines,
4568 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
4569
37b3ab5b
TT
45702019-01-22 Tom Tromey <tom@tromey.com>
4571
4572 * remote-fileio.h (struct remote_target): Declare.
4573
3fabc016
TT
45742019-01-22 Tom Tromey <tom@tromey.com>
4575
4576 * python/py-arch.c: Do not include py-ref.h.
4577 * python/py-bpevent.c: Do not include py-ref.h.
4578 * python/py-cmd.c: Do not include py-ref.h.
4579 * python/py-continueevent.c: Do not include py-ref.h.
4580 * python/py-event.h: Do not include py-ref.h.
4581 * python/py-evtregistry.c: Do not include py-ref.h.
4582 * python/py-finishbreakpoint.c: Do not include py-ref.h.
4583 * python/py-frame.c: Do not include py-ref.h.
4584 * python/py-framefilter.c: Do not include py-ref.h.
4585 * python/py-function.c: Do not include py-ref.h.
4586 * python/py-infevents.c: Do not include py-ref.h.
4587 * python/py-linetable.c: Do not include py-ref.h.
4588 * python/py-objfile.c: Do not include py-ref.h.
4589 * python/py-param.c: Do not include py-ref.h.
4590 * python/py-prettyprint.c: Do not include py-ref.h.
4591 * python/py-progspace.c: Do not include py-ref.h.
4592 * python/py-symbol.c: Do not include py-ref.h.
4593 * python/py-symtab.c: Do not include py-ref.h.
4594 * python/py-type.c: Do not include py-ref.h.
4595 * python/py-unwind.c: Do not include py-ref.h.
4596 * python/py-utils.c: Do not include py-ref.h.
4597 * python/py-value.c: Do not include py-ref.h.
4598 * python/py-varobj.c: Do not include py-ref.h.
4599 * python/py-xmethods.c: Do not include py-ref.h.
4600 * python/python.c: Do not include py-ref.h.
4601 * varobj.c: Do not include py-ref.h.
4602
6b4d7774
TT
46032019-01-22 Tom Tromey <tom@tromey.com>
4604
4605 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
4606 keyword for bcache.
4607
7af7e9b5
TT
46082019-01-22 Tom Tromey <tom@tromey.com>
4609
4610 * compile/compile-cplus-types.c: Remove a comment by #include.
4611
951d1049
TT
46122019-01-22 Tom Tromey <tom@tromey.com>
4613
4614 * compile/gcc-c-plugin.h: Include compile-internal.h.
4615
d65d5705
TT
46162019-01-22 Tom Tromey <tom@tromey.com>
4617
4618 * stabsread.c (EXTERN): Do not define.
4619 (symnum, next_symbol_text_func, processing_gcc_compilation)
4620 (within_function, global_sym_chain, global_stabs)
4621 (previous_stab_code, this_object_header_files)
4622 (n_this_object_header_files)
4623 (n_allocated_this_object_header_files): Define.
4624 * stabsread.h (EXTERN): Never define. Use "extern".
4625
b6fb1ee5
PW
46262019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4627
4628 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
4629 history_value.
4630
be6d4f74
TT
46312019-01-21 Tom Tromey <tom@tromey.com>
4632
4633 * ui-out.c: Fix includes.
4634 * tui/tui-source.c: Fix includes.
4635 * target.c: Fix includes.
4636 * remote.c: Fix includes.
4637 * regcache.c: Fix includes.
4638 * python/py-block.c: Fix includes.
4639 * printcmd.c: Fix includes.
4640 * or1k-tdep.c: Fix includes.
4641 * mi/mi-main.c: Fix includes.
4642 * m32r-tdep.c: Fix includes.
4643 * csky-tdep.c: Fix includes.
4644 * compile/compile-cplus-types.c: Fix includes.
4645 * cli/cli-interp.c: Fix includes.
4646
73021deb
AH
46472019-01-21 Alan Hayward <alan.hayward@arm.com>
4648
4649 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
4650 for padding.
4651
7932255d
TT
46522019-01-16 Tom Tromey <tom@tromey.com>
4653
4654 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
4655 earlier.
4656 (struct objfile) <msymbols_range>: Move from top level.
4657 <msymbols>: New method.
4658 (class objfile_msymbols): Remove.
4659 * symtab.c (default_collect_symbol_completion_matches_break_on):
4660 Update.
4661 * symmisc.c (dump_msymbols): Update.
4662 * stabsread.c (scan_file_globals): Update.
4663 * objc-lang.c (info_selectors_command, info_classes_command)
4664 (find_methods): Update.
4665 * minsyms.c (find_solib_trampoline_target): Update.
4666 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
4667 * coffread.c (coff_symfile_read): Update.
4668 * ada-lang.c (ada_lookup_simple_minsym)
4669 (ada_collect_symbol_completion_matches): Update.
4670
604b1bfb
TT
46712019-01-16 Tom Tromey <tom@tromey.com>
4672
4673 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
4674 type. Remove no-argument constructor.
4675 <iterator::operator++>: Simplify.
4676 <begin>: Update.
4677 <end>: Use minimal_symbol_count.
4678
f252c6d5
TT
46792019-01-16 Tom Tromey <tom@tromey.com>
4680
4681 * objfiles.h (struct objfile) <psymtabs>: New method.
4682 (class objfile_psymtabs): Remove.
4683 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
4684 typedef.
4685 <range>: New method.
4686 (require_partial_symbols): Change return type.
4687 * psymtab.c (require_partial_symbols)
4688 (psym_expand_symtabs_matching): Update.
4689 * mdebugread.c (parse_partial_symbols): Update.
4690 * dbxread.c (dbx_end_psymtab): Update.
4691
b669c953
TT
46922019-01-15 Tom Tromey <tom@tromey.com>
4693
4694 * symtab.c (lookup_objfile_from_block)
4695 (lookup_symbol_in_objfile_symtabs)
4696 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
4697 (find_line_symtab, info_sources_command)
4698 (default_collect_symbol_completion_matches_break_on)
4699 (make_source_files_completion_list): Update.
4700 * symmisc.c (print_objfile_statistics, dump_objfile)
4701 (maintenance_print_symbols, maintenance_info_symtabs)
4702 (maintenance_check_symtabs, maintenance_info_line_tables):
4703 Update.
4704 * source.c (select_source_symtab)
4705 (forget_cached_source_info_for_objfile): Update.
4706 * objfiles.h (class objfile_compunits): Remove.
4707 (struct objfile) <compunits_range>: New typedef.
4708 (compunits): New method.
4709 * objfiles.c (objfile_relocate1): Update.
4710 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
4711 * maint.c (count_symtabs_and_blocks): Update.
4712 * linespec.c (iterate_over_all_matching_symtabs): Update.
4713 * cp-support.c (add_symbol_overload_list_qualified): Update.
4714 * coffread.c (coff_symtab_read): Update.
4715 * ada-lang.c (add_nonlocal_symbols)
4716 (ada_collect_symbol_completion_matches)
4717 (ada_add_global_exceptions): Update.
4718
7e955d83
TT
47192019-01-15 Tom Tromey <tom@tromey.com>
4720
4721 * progspace.h (program_space) <objfiles_safe_range>: New
4722 typedef.
4723 <objfiles_safe>: New method.
4724 * objfiles.h (class all_objfiles_safe): Remove.
4725 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
4726 * jit.c (jit_inferior_exit_hook): Update.
4727
2030c079
TT
47282019-01-17 Tom Tromey <tom@tromey.com>
4729
4730 * progspace.h (program_space) <objfiles_range>: New typedef.
4731 <objfiles>: New method.
4732 <objfiles_head>: Rename from objfiles.
4733 (object_files): Update.
4734 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
4735 * guile/scm-pretty-print.c
4736 (ppscm_find_pretty_printer_from_objfiles): Update.
4737 * guile/scm-objfile.c (gdbscm_objfiles): Update.
4738 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
4739 Update.
4740 * python/py-progspace.c (pspy_get_objfiles): Update.
4741 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
4742 Update.
4743 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
4744 (objfpy_lookup_objfile_by_build_id): Update.
4745 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
4746 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
4747 Update.
4748 * symtab.c (iterate_over_symtabs, matching_obj_sections)
4749 (expand_symtab_containing_pc, lookup_objfile_from_block)
4750 (lookup_static_symbol, basic_lookup_transparent_type)
4751 (find_pc_sect_compunit_symtab, find_symbol_at_address)
4752 (find_line_symtab, info_sources_command)
4753 (default_collect_symbol_completion_matches_break_on)
4754 (make_source_files_completion_list, find_main_name): Update.
4755 * symmisc.c (print_symbol_bcache_statistics)
4756 (print_objfile_statistics, maintenance_print_symbols)
4757 (maintenance_print_msymbols, maintenance_print_objfiles)
4758 (maintenance_info_symtabs, maintenance_check_symtabs)
4759 (maintenance_expand_symtabs, maintenance_info_line_tables):
4760 Update.
4761 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
4762 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
4763 (map_overlay_command, unmap_overlay_command)
4764 (simple_overlay_update, expand_symtabs_matching)
4765 (map_symbol_filenames): Update.
4766 * symfile-debug.c (set_debug_symfile): Update.
4767 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
4768 Update.
4769 * source.c (select_source_symtab, forget_cached_source_info):
4770 Update.
4771 * solib.c (solib_read_symbols): Update.
4772 * solib-spu.c (append_ocl_sos): Update.
4773 * psymtab.c (maintenance_print_psymbols)
4774 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
4775 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
4776 * printcmd.c (info_symbol_command): Update.
4777 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
4778 Update.
4779 * objfiles.h (class all_objfiles): Remove.
4780 * objfiles.c (have_partial_symbols, have_full_symbols)
4781 (have_minimal_symbols, qsort_cmp, update_section_map)
4782 (shared_objfile_contains_address_p)
4783 (default_iterate_over_objfiles_in_search_order): Update.
4784 * objc-lang.c (info_selectors_command, info_classes_command)
4785 (find_methods): Update.
4786 * minsyms.c (find_solib_trampoline_target): Update.
4787 * maint.c (maintenance_info_sections)
4788 (maintenance_translate_address, count_symtabs_and_blocks):
4789 Update.
4790 * main.c (captured_main_1): Update.
4791 * linux-thread-db.c (try_thread_db_load_from_pdir)
4792 (has_libpthread): Update.
4793 * linespec.c (iterate_over_all_matching_symtabs)
4794 (search_minsyms_for_name): Update.
4795 * jit.c (jit_find_objf_with_entry_addr): Update.
4796 * hppa-tdep.c (find_unwind_entry)
4797 (hppa_lookup_stub_minimal_symbol): Update.
4798 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
4799 Update.
4800 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
4801 (elf_gnu_ifunc_resolve_by_got): Update.
4802 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
4803 * dwarf-index-write.c (save_gdb_index_command): Update.
4804 * cp-support.c (add_symbol_overload_list_qualified): Update.
4805 * breakpoint.c (create_overlay_event_breakpoint)
4806 (create_longjmp_master_breakpoint)
4807 (create_std_terminate_master_breakpoint)
4808 (create_exception_master_breakpoint): Update.
4809 * blockframe.c (find_pc_partial_function): Update.
4810 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
4811 (ada_collect_symbol_completion_matches)
4812 (ada_add_global_exceptions): Update.
4813
776489e0
TT
48142019-01-17 Tom Tromey <tom@tromey.com>
4815
4816 * solib-target.c (lm_info_target_p): Remove typedef. Don't
4817 declare VEC.
4818 (solib_target_parse_libraries): Change return type.
4819 (library_list_start_segment, library_list_start_section)
4820 (library_list_end_library, library_list_start_library); Update.
4821 (solib_target_free_library_list): Remove.
4822 (solib_target_parse_libraries): Remove cleanup. Change return
4823 type.
4824 (solib_target_current_sos): Update.
4825
6471e7d2
TT
48262019-01-17 Tom Tromey <tromey@bapiya>
4827
4828 * valprint.c: Replace "the the" with "the".
4829 * symtab.c: Replace "the the" with "the".
4830 * solib.c: Replace "the the" with "the".
4831 * solib-dsbt.c: Replace "the the" with "the".
4832 * linespec.c: Replace "the the" with "the".
4833 * dwarf2loc.h: Replace "the the" with "the".
4834 * amd64-windows-tdep.c: Replace "the the" with "the".
4835 * aarch64-tdep.c: Replace "the the" with "the".
4836
c24bdb02
KS
48372019-01-16 Keith Seitz <keiths@redhat.com>
4838
4839 PR gdb/23773
4840 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
4841 <builder>: Rename to ..
4842 <m_builder>: ... this and make private.
4843 (dwarf2_cu::get_builder): New method. Change all users of
4844 `builder' to use this method.
4845 (dwarf2_start_symtab): Move to ...
4846 (dwarf2_cu::start_symtab): ... here. Update all callers
4847 (setup_type_unit_groups): Move to ...
4848 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
4849 callers.
4850 (dwarf2_cu::reset_builder): New method.
4851 (process_full_compunit, process_full_type_unit): Use
4852 dwarf2_cu::reset_builder.
4853 (follow_die_offset): Record the ancestor CU if it is different
4854 from the followed DIE's CU.
4855 (follow_die_sig_1): Likewise.
4856
8d64371b
TT
48572019-01-15 Tom Tromey <tom@tromey.com>
4858
4859 * remote.c (class remote_state) <buf>: Now a char_vector.
4860 <buf_size>: Remove.
4861 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
4862 parameter.
4863 (remote_target::getpkt_or_notif_sane_1)
4864 (remote_target::getpkt_sane)
4865 (remote_target::getpkt_or_notif_sane): Likewise.
4866 (class remote_target) <putpkt>: New overload.
4867 (remote_target::read_frame): Change type of "buf_p". Remove
4868 sizeof_p parameter.
4869 (packet_ok): New overload.
4870 (packet_check_result): New overload.
4871 Update all uses.
4872
bb277751
TT
48732019-01-14 Tom Tromey <tom@tromey.com>
4874
4875 * remote-notif.c (handle_notification, remote_notif_ack)
4876 (remote_notif_parse): Make "buf" const.
4877 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
4878 const.
4879 (remote_notif_parse, remote_notif_ack, handle_notification):
4880 Likewise.
4881 * remote.c (remote_notif_stop_parse): Make "buf" const.
4882 (remote_target::remote_parse_stop_reply): Make "buf" const.
4883 (remote_notif_stop_ack): Make "buf" const.
4884
05be00a8
TT
48852019-01-14 Tom Tromey <tom@tromey.com>
4886
4887 * remote.c (remote_console_output): Make parameter const.
4888
491adeca
TT
48892019-01-14 Tom Tromey <tom@tromey.com>
4890
4891 * target-debug.h (target_debug_print_signals): Constify.
4892 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
4893 * procfs.c (procfs_target::pass_signals): Update.
4894 * linux-nat.c (linux_nat_target::pass_signals): Update.
4895 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
4896 * target-delegates.c: Rebuild.
4897 * remote.c (remote_target::program_signals): Update.
4898 (remote_target::pass_signals): Update.
4899 * target.c (target_pass_signals): Constify argument.
4900 (target_program_signals): Likewise.
4901 * target.h (struct target_ops) <pass_signals, program_signals>:
4902 Constify argument.
4903 (target_pass_signals, target_program_signals): Constify argument.
4904
bbd94648
TT
49052019-01-14 Tom Tromey <tom@tromey.com>
4906
4907 PR tui/28819:
4908 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
4909
6f072a10
PFC
49102019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4911
4912 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
4913 field.
4914 * rs6000-tdep.c: Include reggroups.h.
4915 (IS_V_ALIAS_PSEUDOREG): Define.
4916 (rs6000_register_name): Return names for the "vX" aliases.
4917 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
4918 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
4919 aliases. Call default_register_reggroup_p for all other
4920 pseudo-registers.
4921 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
4922 New functions.
4923 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
4924 Handle "vX" aliases.
4925 (v_alias_pseudo_register_collect): New function.
4926 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
4927 (rs6000_gdbarch_init): Initialize "vX" aliases as
4928 pseudo-registers. Restore registration of
4929 rs6000_pseudo_register_reggroup_p with
4930 set_tdesc_pseudo_register_reggroup_p.
4931
1a782351
MF
49322019-01-13 Max Filippov <jcmvbkbc@gmail.com>
4933
4934 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
4935 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
4936 set_gdbarch_num_pseudo_regs.
4937
d73cff18
PW
49382019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4939
4940 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
4941 Remove arg prefixname, add do_set and do_show.
4942 Add member functions set_list and show_list.
4943 * cli/cli-style.c (class cli_style_option): Update accordingly.
4944 (style_set_list): Move to file scope.
4945 (style_show_list): Likewise.
4946 (set_style): Call help_list.
4947 (show_style): Call cmd_show_list.
4948 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
4949 Update to use the new macro.
4950
60a90376
JB
49512019-10-12 Joel Brobecker <brobecker@adacore.com>
4952
4953 * ada-lang.c (_initialize_ada_language): Expand the help text
4954 for the "catch exception" command.
4955
9d7c67bf
PW
49562019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4957
4958 * symtab.c (matching_obj_sections): Initialize obj,
4959 declare it closer to its usage.
4960
7cf47dc4
TT
49612019-01-10 Tom Tromey <tom@tromey.com>
4962
4963 * thread-iter.h (inf_threads_iterator): Use next_iterator.
4964 (basic_inf_threads_range): Remove.
4965 (inf_threads_range, inf_non_exited_threads_range)
4966 (safe_inf_threads_range): Use next_adapter.
4967
d3cb6808
KS
49682019-01-10 Keith Seitz <keiths@redhat.com>
4969
4970 PR gdb/23712
4971 PR symtab/23010
4972 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
4973 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
4974
63a20375
KS
49752019-01-10 Keith Seitz <keiths@redhat.com>
4976
4977 PR gdb/23712
4978 PR symtab/23010
4979 * dictionary.c (pending_to_vector): Remove.
4980 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
4981 Remove _1 suffix, replacing functions of the same name. Update
4982 all callers.
4983 (dict_create_hashed, dict_create_hashed_expandable)
4984 (dict_create_linear, dict_create_linear_expandable, dict_free)
4985 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
4986 Make functions static.
4987
b026f593
KS
49882019-01-10 Keith Seitz <keiths@redhat.com>
4989
4990 PR gdb/23712
4991 PR symtab/23010
4992 * dictionary.h (struct dictionary): Replace declaration with
4993 multidictionary.
4994 (dict_create_hashed, dict_create_hashed_expandable)
4995 (dict_create_linear, dict_create_linear_expandable)
4996 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
4997 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
4998 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
4999 taking multidictionary argument.
5000 [ALL_DICT_SYMBOLS]: Update for multidictionary.
5001 * block.h (struct block) <dict>: Change to multidictionary
5002 and rename `multidict'.
5003 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
5004 symmisc.c: Update all dictionary references to multidictionary.
5005
c7748ee9
KS
50062019-01-10 Keith Seitz <keiths@redhat.com>
5007
5008 PR gdb/23712
5009 PR symtab/23010
5010 * dictionary.c: Include unordered_map.
5011 (pending_to_vector): New function.
5012 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
5013 Rewrite the non-"_1" functions to take vector instead
5014 of linked list.
5015 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
5016 "new" _1 versions of the same name.
5017 (multidictionary): Define.
5018 (std::hash<enum language): New definition.
5019 (collate_pending_symbols_by_language, mdict_create_hashed)
5020 (mdict_create_hashed_expandable, mdict_create_linear)
5021 (mdict_create_linear_expandable, mdict_free)
5022 (find_language_dictionary, create_new_language_dictionary)
5023 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
5024 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
5025 (mdict_size, mdict_empty): New functions.
5026 * dictionary.h (mdict_iterator): Define.
5027
67aa1f3c
PA
50282019-01-10 Pedro Alves <palves@redhat.com>
5029
5030 * breakpoint.c (read_uploaded_action)
5031 (create_tracepoint_from_upload): Adjust to use
5032 gdb::unique_xmalloc_ptr.
5033 * ctf.c (ctf_write_uploaded_tp):
5034 (SET_ARRAY_FIELD): Use emplace_back.
5035 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
5036 * tracefile-tfile.c (tfile_write_uploaded_tp):
5037 * tracepoint.c (parse_tracepoint_definition): Adjust to use
5038 gdb::unique_xmalloc_ptr.
5039 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
5040 at_string, cond_string, cmd_strings>: Replace char pointers
5041 with gdb::unique_xmalloc_ptr.
5042
2f667667
PA
50432019-01-10 Pedro Alves <palves@redhat.com>
5044
5045 * solib-target.c (library_list_start_library): Don't xstrdup name.
5046
36cb7237
PA
50472019-01-10 Pedro Alves <palves@redhat.com>
5048
5049 * mdebugread.c (parse_partial_symbols): Use
5050 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
5051
da584958
AB
50522019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
5053
5054 * linux-fork.c (scoped_switch_fork_info)
5055 <~scoped_switch_fork_info>: Fix incorrect variable name.
5056
1ef8573c
AB
50572019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
5058
5059 * linux-fork.c (scoped_switch_fork_info)
5060 <scoped_switch_fork_info>: Make explicit.
5061 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
5062
8d7bcccb
TT
50632019-01-10 Tom Tromey <tom@tromey.com>
5064
5065 * objfiles.h (objfile::reset_psymtabs): Update.
5066 * objfiles.c (objfile::objfile): Update.
5067 * psymtab.h (psymtab_storage::obstack): Update.
5068 (psymtab_storage::m_obstack): Use gdb::optional.
5069 (class psymtab_storage): Update comment. Remove objfile
5070 parameter.
5071 * psymtab.c (psymtab_storage::psymtab_storage): Update.
5072
b596a3c7
TT
50732019-01-10 Tom Tromey <tom@tromey.com>
5074
5075 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
5076 <free_psymtabs>: Now private.
5077 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
5078 (allocate_psymtab): Use new method.
5079
a9342b62
TT
50802019-01-10 Tom Tromey <tom@tromey.com>
5081
5082 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
5083 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
5084 * mdebugread.c (parse_partial_symbols): Use
5085 allocate_dependencies.
5086 * dwarf2read.c (dwarf2_create_include_psymtab): Use
5087 allocate_dependencies.
5088 (process_psymtab_comp_unit_reader)
5089 (build_type_psymtab_dependencies): Likewise.
5090 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
5091
5af70966
TT
50922019-01-10 Tom Tromey <tom@tromey.com>
5093
5094 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
5095 PSYMBOL_SET_LANGUAGE.
5096 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
5097
5923a04c
TT
50982019-01-10 Tom Tromey <tom@tromey.com>
5099
5100 * psymtab.h (psymtab_storage::obstack): New method.
5101 <m_obstack>: Rename from obstack; now private.
5102 * psymtab.c (psymtab_storage): Update.
5103 * dwarf2read.c (create_addrmap_from_index)
5104 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
5105 Update.
5106
6d6a12bf
TT
51072019-01-10 Tom Tromey <tom@tromey.com>
5108
5109 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
5110 * objfiles.h (objfile::reset_psymtabs): New method.
5111
d320c2b5
TT
51122019-01-10 Tom Tromey <tom@tromey.com>
5113
5114 * symmisc.c (print_symbol_bcache_statistics): Update.
5115 (print_objfile_statistics): Update.
5116 * symfile.c (reread_symbols): Update.
5117 * psymtab.h (class psymtab_storage): New.
5118 * psymtab.c (psymtab_storage): New constructor.
5119 (~psymtab_storage): New destructor.
5120 (require_partial_symbols): Update.
5121 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
5122 (find_pc_sect_psymtab, find_pc_sect_psymbol)
5123 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
5124 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
5125 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
5126 (start_psymtab_common, end_psymtab_common)
5127 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
5128 (allocate_psymtab): Update.
5129 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
5130 Update.
5131 (dump_psymtab_addrmap, maintenance_print_psymbols)
5132 (maintenance_check_psymtabs): Update.
5133 (class objfile_psymtabs): Move to objfiles.h.
5134 * psympriv.h (discard_psymtab): Now inline.
5135 (psymtab_discarder::psymtab_discarder): Update.
5136 (psymtab_discarder::~psymtab_discarder): Update.
5137 (ALL_OBJFILE_PSYMTABS): Rewrite.
5138 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
5139 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
5140 Remove fields.
5141 <partial_symtabs>: New field.
5142 (class objfile_psymtabs): Move from psymtab.h. Update.
5143 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
5144 psymbol_cache.
5145 (objfile::~objfile): Don't destroy psymbol_cache.
5146 * mdebugread.c (parse_partial_symbols): Update.
5147 * dwarf2read.c (create_addrmap_from_index)
5148 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5149 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
5150 (add_partial_subprogram, dwarf2_ranges_read): Update.
5151 * dwarf-index-write.c (write_address_map)
5152 (write_one_signatured_type, recursively_write_psymbols)
5153 (class debug_names, class debug_names, write_psymtabs_to_index):
5154 Update.
5155
1d94a5a3
TT
51562019-01-10 Tom Tromey <tom@tromey.com>
5157
5158 * symtab.h (SYMBOL_SET_NAMES): Update.
5159 (symbol_set_names): Update.
5160 (MSYMBOL_SET_NAMES): Update.
5161 * symtab.c (symbol_set_names): Change argument to be an
5162 objfile_per_bfd_storage.
5163 * psymtab.c (add_psymbol_to_bcache): Update.
5164 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
5165
0f14768a
TT
51662019-01-10 Tom Tromey <tom@tromey.com>
5167
5168 * symtab.c (create_demangled_names_hash): Change argument to be an
5169 objfile_per_bfd_storage.
5170 (symbol_set_names): Update.
5171
6eee24ce
TT
51722019-01-10 Tom Tromey <tom@tromey.com>
5173
5174 * xcoffread.c (xcoff_initial_scan): Unconditionally call
5175 init_psymbol_list.
5176 * psymtab.c (init_psymbol_list): Do nothing if already called.
5177 * psympriv.h (init_psymbol_list): Add comment.
5178 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
5179 init_psymbol_list.
5180 * dbxread.c (dbx_symfile_read): Unconditionally call
5181 init_psymbol_list.
5182
75aedd27
TT
51832019-01-10 Tom Tromey <tom@tromey.com>
5184
5185 * xcoffread.c (scan_xcoff_symtab): Update.
5186 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
5187 "where".
5188 * mdebugread.c (parse_partial_symbols)
5189 (handle_psymbol_enumerators): Update.
5190 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
5191 * dbxread.c (read_dbx_symtab): Update.
5192 * psympriv.h (psymbol_placement): New enum.
5193 (add_psymbol_to_list): Update.
5194
939652a5
TT
51952019-01-10 Tom Tromey <tom@tromey.com>
5196
5197 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
5198 static_psymbols parameters.
5199 (scan_xcoff_symtab): Update.
5200 * psymtab.c (start_psymtab_common): Remove global_psymbols and
5201 static_psymbols parameters.
5202 * psympriv.h (start_psymtab_common): Update.
5203 * mdebugread.c (parse_partial_symbols): Update.
5204 * dwarf2read.c (create_partial_symtab): Update.
5205 * dbxread.c (read_dbx_symtab): Update.
5206 (start_psymtab): Remove global_psymbols and static_psymbols
5207 parameters.
5208
baa62830
TT
52092019-01-10 Tom Tromey <tom@tromey.com>
5210
5211 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
5212 * psymtab.c (allocate_psymtab): Add comment.
5213 * psympriv.h (allocate_psymtab): Add comment.
5214 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
5215 initializations.
5216 * dbxread.c (dbx_end_psymtab): Remove some initializations.
5217
0e8f53ba
TT
52182019-01-10 Tom Tromey <tom@tromey.com>
5219
5220 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
5221 Don't declare.
5222 * mipsread.c: Include mdebugread.h.
5223 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
5224 Declare.
5225 * elfread.c: Include mdebugread.h.
5226
b22a7c6a
TT
52272019-01-09 Tom Tromey <tom@tromey.com>
5228
5229 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
5230 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
5231 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
5232 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
5233 (psym_lookup_symbol, psym_find_last_source_symtab)
5234 (psym_forget_cached_source_info, psym_print_stats)
5235 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
5236 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
5237 (psym_map_matching_symbols, psym_expand_symtabs_matching)
5238 (psym_find_compunit_symtab_by_address)
5239 (maintenance_print_psymbols, maintenance_info_psymtabs)
5240 (maintenance_check_psymtabs): Use ranged for.
5241 * psymtab.h (class objfile_psymtabs): New.
5242 (require_partial_symbols): Return objfile_psymtabs.
5243 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
5244
3b9d3ac2
TT
52452019-01-09 Tom Tromey <tom@tromey.com>
5246
5247 * symfile.c (overlay_invalidate_all, find_pc_overlay)
5248 (find_pc_mapped_section, list_overlays_command)
5249 (map_overlay_command, unmap_overlay_command)
5250 (simple_overlay_update): Use all_objfiles.
5251 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
5252 * printcmd.c (info_symbol_command): Use all_objfiles.
5253 * objfiles.h (ALL_OBJSECTIONS): Remove.
5254 * maint.c (maintenance_translate_address): Use all_objfiles.
5255 * gcore.c (gcore_create_callback): Use all_objfiles.
5256 (objfile_find_memory_regions): Likewise.
5257
8b31193a
TT
52582019-01-09 Tom Tromey <tom@tromey.com>
5259
5260 * symtab.c (find_line_symtab, info_sources_command)
5261 (make_source_files_completion_list): Use objfile_compunits.
5262 * source.c (select_source_symtab): Use objfile_compunits.
5263 * objfiles.h (struct objfile): Update comment.
5264 (ALL_OBJFILES): Remove.
5265 (ALL_FILETABS): Remove.
5266 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
5267 objfile_compunits.
5268
d5da8b3c
TT
52692019-01-09 Tom Tromey <tom@tromey.com>
5270
5271 * symmisc.c (print_objfile_statistics, dump_objfile)
5272 (maintenance_print_symbols): Use compunit_filetabs.
5273 * source.c (forget_cached_source_info_for_objfile): Use
5274 compunit_filetabs.
5275 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
5276 (ALL_FILETABS): Use compunit_filetabs.
5277 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
5278 * coffread.c (coff_symtab_read): Use compunit_filetabs.
5279
5accd1a0
TT
52802019-01-09 Tom Tromey <tom@tromey.com>
5281
5282 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
5283 (compunit_filetabs): New.
5284 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
5285 compunit_filetabs.
5286 (info_sources_command, make_source_files_completion_list): Remove
5287 declaration.
5288 * symmisc.c (print_objfile_statistics, dump_objfile)
5289 (maintenance_print_symbols): Remove declaration.
5290 (maintenance_info_symtabs): Use compunit_filetabs.
5291 (maintenance_info_line_tables): Likewise.
5292 * source.c (select_source_symtab): Change local variable name.
5293 (forget_cached_source_info_for_objfile): Remove declaration.
5294 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
5295 * objfiles.c (objfile_relocate1): Remove declaration.
5296 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
5297 declaration.
5298 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
5299 * coffread.c (coff_symtab_read): Remove declaration.
5300 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5301 compunit_filetabs.
5302
d8aeb77f
TT
53032019-01-09 Tom Tromey <tom@tromey.com>
5304
5305 * symtab.c (lookup_objfile_from_block)
5306 (find_pc_sect_compunit_symtab, search_symbols)
5307 (default_collect_symbol_completion_matches_break_on): Use
5308 objfile_compunits.
5309 * objfiles.h (ALL_COMPUNITS): Remove.
5310 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
5311 * cp-support.c (add_symbol_overload_list_qualified): Use
5312 objfile_compunits.
5313 * ada-lang.c (ada_collect_symbol_completion_matches)
5314 (ada_add_global_exceptions): Use objfile_compunits.
5315
592553c4
TT
53162019-01-09 Tom Tromey <tom@tromey.com>
5317
5318 * source.c (select_source_symtab)
5319 (forget_cached_source_info_for_objfile): Remove declaration.
5320 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
5321 declaration.
5322 * maint.c (count_symtabs_and_blocks): Remove declaration.
5323 * cp-support.c (add_symbol_overload_list_qualified): Remove
5324 declaration.
5325 * coffread.c (coff_symtab_read): Remove declaration.
5326 * symtab.c (lookup_symbol_in_objfile_symtabs)
5327 (basic_lookup_transparent_type_1): Use objfile_compunits.
5328 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
5329 (info_sources_command, search_symbols)
5330 (default_collect_symbol_completion_matches_break_on)
5331 (make_source_files_completion_list): Remove declaration.
5332 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
5333 (ada_collect_symbol_completion_matches)
5334 (ada_add_global_exceptions): Remove declaration.
5335 * linespec.c (iterate_over_all_matching_symtabs): Use
5336 objfile_compunits.
5337 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
5338 (class objfile_compunits): New.
5339 (ALL_COMPUNITS): Use objfile_compunits.
5340 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
5341 (maintenance_check_symtabs, maintenance_info_line_tables): Use
5342 objfile_compunits.
5343 * objfiles.c (objfile_relocate1): Use objfile_compunits.
5344
5325b9bf
TT
53452019-01-09 Tom Tromey <tom@tromey.com>
5346
5347 * symtab.c (search_symbols)
5348 (default_collect_symbol_completion_matches_break_on): Use
5349 objfile_msymbols.
5350 * ada-lang.c (ada_lookup_simple_minsym)
5351 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
5352 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
5353 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
5354 objfile_msymbols.
5355 * coffread.c (coff_symfile_read): Use objfile_msymbols.
5356 * symmisc.c (dump_msymbols): Use objfile_msymbols.
5357 * objc-lang.c (find_methods): Use objfile_msymbols.
5358 (info_selectors_command, info_classes_command): Likewise.
5359 * stabsread.c (scan_file_globals): Use objfile_msymbols.
5360 * objfiles.h (class objfile_msymbols): New.
5361 (ALL_OBJFILE_MSYMBOLS): Remove.
5362 (ALL_MSYMBOLS): Remove.
5363
cac85af2
TT
53642019-01-09 Tom Tromey <tom@tromey.com>
5365
5366 * common/next-iterator.h (next_adapter): Add Iterator template
5367 parameter.
5368 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
5369 (class all_objfiles_safe): New.
5370 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
5371 * objfiles.c (put_objfile_before): Update comment.
5372 (add_separate_debug_objfile): Likewise.
5373 (free_all_objfiles): Use all_objfiles_safe.
5374 (objfile_purge_solibs): Likewise.
5375
aed57c53
TT
53762019-01-09 Tom Tromey <tom@tromey.com>
5377
5378 * symtab.c (iterate_over_symtabs, matching_obj_sections)
5379 (expand_symtab_containing_pc, lookup_static_symbol)
5380 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
5381 (find_symbol_at_address, find_line_symtab, find_main_name): Use
5382 all_objfiles.
5383 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
5384 * breakpoint.c (create_overlay_event_breakpoint)
5385 (create_longjmp_master_breakpoint)
5386 (create_std_terminate_master_breakpoint)
5387 (create_exception_master_breakpoint): Use all_objfiles.
5388 * linux-thread-db.c (try_thread_db_load_from_pdir)
5389 (has_libpthread): Use all_objfiles.
5390 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
5391 * linespec.c (iterate_over_all_matching_symtabs)
5392 (search_minsyms_for_name): Use all_objfiles.
5393 * maint.c (maintenance_info_sections): Use all_objfiles.
5394 * main.c (captured_main_1): Use all_objfiles.
5395 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
5396 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
5397 * guile/scm-pretty-print.c
5398 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
5399 * solib-spu.c (append_ocl_sos): Use all_objfiles.
5400 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
5401 (maintenance_print_msymbols): Use all_objfiles.
5402 * source.c (select_source_symtab): Use all_objfiles.
5403 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
5404 * symfile.c (remove_symbol_file_command)
5405 (expand_symtabs_matching, map_symbol_filenames): Use
5406 all_objfiles.
5407 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
5408 all_objfiles.
5409 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
5410 * objc-lang.c (find_methods): Use all_objfiles.
5411 * objfiles.c (have_partial_symbols, have_full_symbols)
5412 (have_minimal_symbols, qsort_cmp)
5413 (default_iterate_over_objfiles_in_search_order): Use
5414 all_objfiles.
5415 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
5416 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
5417 (maintenance_check_psymtabs): Use all_objfiles.
5418 (ALL_PSYMTABS): Remove.
5419 * compile/compile-object-run.c (do_module_cleanup): Use
5420 all_objfiles.
5421 * blockframe.c (find_pc_partial_function): Use all_objfiles.
5422 * cp-support.c (add_symbol_overload_list_qualified): Use
5423 all_objfiles.
5424 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
5425 Use all_objfiles.
5426 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
5427 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
5428 all_objfiles.
5429 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
5430 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
5431 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
5432 Uses all_objfiles.
5433 * solib.c (solib_read_symbols): Use all_objfiles
5434
99d89cde
TT
54352019-01-09 Tom Tromey <tom@tromey.com>
5436
5437 * probe.c (parse_probes_in_pspace): Use all_objfiles.
5438 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
5439 all_objfiles.
5440 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
5441 * symmisc.c (print_symbol_bcache_statistics)
5442 (print_objfile_statistics, maintenance_print_objfiles)
5443 (maintenance_info_symtabs, maintenance_check_symtabs)
5444 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
5445 all_objfiles.
5446 * source.c (forget_cached_source_info): Use all_objfiles.
5447 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
5448 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
5449 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
5450 * objfiles.c (update_section_map): Use all_objfiles.
5451 (shared_objfile_contains_address_p): Likewise.
5452 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
5453 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
5454
21708325
TT
54552019-01-09 Tom Tromey <tom@tromey.com>
5456
5457 * common/next-iterator.h: New file.
5458 * objfiles.h (class all_objfiles): New.
5459 (struct objfile_iterator): New.
5460
669e09f6
PW
54612019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5462
5463 * NEWS: Move the description of the changed "frame", "select-frame",
5464 and "info frame" commands to the Changed commands section.
5465
041be526
SM
54662019-01-09 Simon Marchi <simon.marchi@ericsson.com>
5467
5468 * gdbtypes.c (check_stub_method_group): Remove handling of old
5469 mangling schemes.
5470 * linespec.c (find_methods): Likewise.
5471 * stabsread.c (read_member_functions): Likewise.
5472 * valops.c (search_struct_method): Likewise.
5473 (value_struct_elt_for_reference): Likewise.
5474 * NEWS: Mention this change.
5475
0e2a2133
AB
54762019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
5477
5478 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
5479 print_source_lines.
5480 * source.c (print_source_lines_base): Update line number check.
5481 (print_source_lines): New function.
5482 (source_lines_range::source_lines_range): New function.
5483 * source.h (class source_lines_range): New class.
5484 (print_source_lines): New declaration.
5485
1055a3b4
PW
54862019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5487
5488 * linespec.c (linespec_state_destructor): Free self->canonical_names.
5489
cfeadda5
TT
54902019-01-08 Tom Tromey <tom@tromey.com>
5491 Simon Marchi <simon.marchi@ericsson.com>
5492
5493 PR gdb/24060
5494 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
5495 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
5496 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
5497 * f-exp.y (DOLLAR_VARIABLE): Likewise.
5498 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
5499 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
5500
583068ca
AB
55012019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5502
5503 * source.c (select_source_symtab): Move header comment to
5504 declaration in source.h.
5505 (forget_cached_source_info_for_objfile): Likewise.
5506 (forget_cached_source_info): Likewise.
5507 (identify_source_line): Likewise.
5508 * source.h (identify_source_line): Move declaration from symtab.h
5509 and add comment from source.c
5510 (print_source_lines): Likewise.
5511 (forget_cached_source_info_for_objfile): Likewise.
5512 (forget_cached_source_info): Likewise.
5513 (select_source_symtab): Likewise.
5514 (enum print_source_lines_flag): Move definition from symtab.h.
5515 * symtab.h (identify_source_line): Move declaration to source.h.
5516 (print_source_lines): Likewise.
5517 (forget_cached_source_info_for_objfile): Likewise.
5518 (forget_cached_source_info): Likewise.
5519 (select_source_symtab): Likewise.
5520 (enum print_source_lines_flag): Move definition to source.h.
5521 * tui/tui-hooks.c: Add 'source.h' include.
5522
ec98a4ad
AB
55232019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5524
5525 * source.c (print_source_lines_base): Handle requests to print
5526 reverse line number sequences, and guard against empty lines
5527 string.
5528
62ea19c1
AB
55292019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5530
5531 * source.c (print_source_lines_base): Fix skip of '\r' if next
5532 character is '\n'.
5533
9d30e1fd
TT
55342019-01-06 Tom Tromey <tom@tromey.com>
5535
5536 * c-exp.y (struct c_parse_state) <macro_original_text,
5537 expansion_obstack>: New member.
5538 (macro_original_text, expansion_obstack): Remove globals.
5539 (scan_macro_expansion, scanning_macro_expansion)
5540 (finished_macro_expansion): Update.
5541 (scan_macro_cleanup): Remove.
5542 (yylex, c_parse): Update.
5543
c65bac38
TT
55442019-01-06 Tom Tromey <tom@tromey.com>
5545
5546 * c-exp.y (struct c_parse_state) <strings>: New member.
5547 (operator_stoken): Update.
5548
02e12e38
TT
55492019-01-06 Tom Tromey <tom@tromey.com>
5550
5551 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
5552 (union type_stack_elt) <typelist_val>: Now a pointer to
5553 std::vector.
5554 (type_stack_cleanup): Don't declare.
5555 (push_typelist): Update.
5556 * parse.c (pop_typelist): Return a std::vector.
5557 (push_typelist): Take a std::vector.
5558 (follow_types): Update. Do not free args.
5559 (type_stack_cleanup): Remove.
5560 * c-exp.y (struct c_parse_state): New.
5561 (cpstate): New global.
5562 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
5563 (nonempty_typelist): Update.
5564 (func_mod): Create a new vector.
5565 (c_parse): Create a c_parse_state.
5566 (check_parameter_typelist): Do not delete params.
5567 (function_method): Update. Do not delete type_list.
5568
f097f5ad
TT
55692019-01-06 Tom Tromey <tom@tromey.com>
5570
5571 PR gdb/28155:
5572 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
5573 check_typedef.
5574 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
5575 (print_return_value): Likewise.
5576
d2adf9f1
TT
55772019-01-05 Tom Tromey <tom@tromey.com>
5578
5579 * contrib/cleanup_check.py: Remove.
5580 * contrib/gcc-with-excheck: Remove.
5581 * contrib/exsummary.py: Remove.
5582 * contrib/excheck.py: Remove.
5583
2eab46b1
JB
55842019-01-05 Joel Brobecker <brobecker@adacore.com>
5585
5586 * thread.c (delete_thread_1): Add gdb_assert that THR is not
5587 NULL. Initialize tpprev to NULL instead of assigning it
5588 to NULL on the next statement.
5589 * windows-nat.c (windows_delete_thread): Remove check for
5590 main_thread_id before printing thread exit notifications.
5591 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
5592 Remove thread ID check against main_thread_id.
5593 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
5594 windows_delete_thread.
5595 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
5596
48c5e7e2
TT
55972019-01-04 Tom Tromey <tom@tromey.com>
5598
5599 * compile/compile.c (_initialize_compile): Use upper case for
5600 metasyntactic variables.
5601 * symmisc.c (_initialize_symmisc): Use upper case for
5602 metasyntactic variables.
5603 * psymtab.c (_initialize_psymtab): Use upper case for
5604 metasyntactic variables.
5605 * demangle.c (demangle_command): Use upper case for metasyntactic
5606 variables.
5607 (_initialize_demangler): Likewise.
5608 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
5609 variables.
5610
986041cd
TT
56112019-01-03 Tom Tromey <tom@tromey.com>
5612
5613 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
5614
7c711119
TT
56152019-01-03 Tom Tromey <tom@tromey.com>
5616
5617 * python/py-symtab.c (salpy_str): Update.
5618 (struct salpy_sal_object) <symtab>: Now a PyObject.
5619 (salpy_dealloc): Update.
5620 (del_objfile_sal): Use gdbpy_ref.
5621
1b20edf0
TT
56222019-01-03 Tom Tromey <tom@tromey.com>
5623
5624 * python/py-type.c (convert_field): Use new_reference. Return
5625 gdbpy_ref.
5626 (make_fielditem): Return gdbpy_ref.
5627 (typy_fields): Update.
5628 (typy_getitem): Update.
5629 (field_name): Return gdbpy_ref. Use new_reference.
5630 (typy_iterator_iternext): Update.
5631
ea41325b
TT
56322019-01-03 Tom Tromey <tom@tromey.com>
5633
5634 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
5635
2a3c71d6
TT
56362019-01-03 Tom Tromey <tom@tromey.com>
5637
5638 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
5639 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
5640 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
5641 (pspy_set_frame_filters, pspy_set_frame_unwinders)
5642 (pspy_set_type_printers): Likewise.
5643 * python/py-function.c (fnpy_init): Use gdbpy_ref.
5644 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
5645 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
5646 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
5647 (objfpy_set_type_printers): Likewise.
5648
5c329e6a
TT
56492019-01-03 Tom Tromey <tom@tromey.com>
5650
5651 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
5652 (gdbpy_print_stack): Use gdbpy_err_fetch.
5653 * python/python-internal.h (class gdbpy_err_fetch): New class.
5654 (class gdbpy_enter) <m_error_type, m_error_value,
5655 m_error_traceback>: Remove.
5656 <m_error>: New member.
5657 (gdbpy_exception_to_string): Don't declare.
5658 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
5659 * python/py-value.c (convert_value_from_python): Use
5660 gdbpy_err_fetch.
5661 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
5662 gdbpy_exception_to_string.
5663 (gdbpy_handle_exception): Use gdbpy_err_fetch.
5664 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
5665 gdbpy_err_fetch.
5666
169bb27b
AB
56672019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5668
5669 * linux-nat.c (delete_lwp_cleanup): Delete.
5670 (struct lwp_deleter): New struct.
5671 (lwp_info_up): New typedef.
5672 (linux_nat_target::follow_fork): Delete cleanup, and make use of
5673 lwp_info_up.
5674
a07c8880
AB
56752019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5676
5677 * linux-fork.c (class scoped_switch_fork_info): New class.
5678 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
5679
26089c49
AB
56802019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5681
5682 * valops.c (find_overload_match): Remove use of null_cleanup, and
5683 calls to do_cleanups.
5684
06d3e5b0
AB
56852019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5686
5687 * compile/compile-cplus-types.c
5688 (compile_cplus_instance::decl_name): Handle changes to
5689 cp_func_name.
5690 * cp-support.c (cp_func_name): Update header comment, update
5691 return type.
5692 * cp-support.h (cp_func_name): Update return type in declaration.
5693 * valops.c (find_overload_match): Move temp_func local to top
5694 level of function and change its type. Use temp_func to hold and
5695 delete temporary string obtained from cp_func_name.
5696
66644cd3
AB
56972019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5698
5699 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
5700 gdb::char_vector, remove cleanup, and update uses of `msg`.
5701
592d8c0a
JW
57022019-01-03 Jim Wilson <jimw@sifive.com>
5703
5704 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
5705
c55d06ec
TT
57062019-01-02 Tom Tromey <tom@tromey.com>
5707
5708 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
5709 (tdesc_parse_xml): Remove cleanups.
5710 * target-descriptions.h (make_cleanup_free_target_description):
5711 Don't declare.
5712 (target_desc_deleter): New struct.
5713 (target_desc_up): New typedef.
5714 * target-descriptions.c (target_desc_deleter::operator()): Rename
5715 from free_target_description.
5716 (make_cleanup_free_target_description): Remove.
5717
3a6ae42d
TT
57182019-01-02 Tom Tromey <tom@tromey.com>
5719
5720 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
5721 constructor, destructor.
5722 (linespec_parser): Remove typedef.
5723 (~linespec_parser): Rename from linespec_parser_delete.
5724 (linespec_lex_to_end, linespec_complete_label)
5725 (linespec_complete): Update.
5726 (decode_line_full): Remove cleanups.
5727 (decode_line_1): Update.
5728
61fd3e73
TT
57292019-01-02 Tom Tromey <tom@tromey.com>
5730
5731 * python/python-internal.h (inferior_to_inferior_object): Change
5732 return type.
5733 * python/py-exitedevent.c (create_exited_event_object): Update.
5734 * python/py-inferior.c (inferior_to_inferior_object): Return
5735 gdbpy_ref.
5736 (python_new_inferior, python_inferior_deleted)
5737 (thread_to_thread_object, delete_thread_object)
5738 (build_inferior_list, gdbpy_selected_inferior): Update.
5739 * python/py-infthread.c (create_thread_object): Update. Also fail
5740 if inferior_to_inferior_object fails.
5741
d20172fc
SM
57422019-01-02 Simon Marchi <simon.marchi@ericsson.com>
5743
5744 * inferior.h (class inferior) <displaced_step_state>: New field.
5745 * infrun.h (struct displaced_step_state): Move here from
5746 infrun.c. Initialize fields, add constructor.
5747 <inf>: Remove field.
5748 <reset>: New method.
5749 * infrun.c (struct displaced_step_inferior_state): Move to
5750 infrun.h.
5751 (displaced_step_inferior_states): Remove.
5752 (get_displaced_stepping_state): Adust.
5753 (displaced_step_in_progress_any_inferior): Adjust.
5754 (displaced_step_in_progress_thread): Adjust.
5755 (displaced_step_in_progress): Adjust.
5756 (add_displaced_stepping_state): Remove.
5757 (get_displaced_step_closure_by_addr): Adjust.
5758 (remove_displaced_stepping_state): Remove.
5759 (infrun_inferior_exit): Call displaced_step_state.reset.
5760 (use_displaced_stepping): Don't check for NULL.
5761 (displaced_step_prepare_throw): Call
5762 get_displaced_stepping_state.
5763 (displaced_step_fixup): Don't check for NULL.
5764 (prepare_for_detach): Don't check for NULL.
5765
e3319240
PW
57662019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5767
5768 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
5769 in case of call that did not complete.
5770
5d36dfb9
AU
57712019-01-02 Andrey Utkin <autkin@undo.io>
5772
5773 * symfile.c (find_separate_debug_file): Fix search of debug files for
5774 remote debuggee.
5775
8833fbf0
TT
57762019-01-02 Tom Tromey <tom@tromey.com>
5777
5778 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
5779 indentation.
5780 * python/py-frame.c (frapy_older): Remove cast.
5781 (frapy_newer): Likewise.
5782 * python/py-breakpoint.c (local_setattro): Remove cast.
5783 * python/py-arch.c (archpy_name): Remove local variable.
5784 * python/py-type.c (gdbpy_lookup_type): Remove cast.
5785
4ada3dfd
JB
57862019-01-02 Joel Brobecker <brobecker@adacore.com>
5787
5788 * unittests/basic_string_view/element_access/char/empty.cc:
5789 Fix year range in copyright header.
5790
113b7b81
AB
57912019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
5792
5793 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
5794 Delete.
5795 <operator==>: Update with for removed field.
5796 <hash>: Likewise.
5797 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
5798 <isa_features>: ...this.
5799 <abi_features>: New field.
5800 (riscv_isa_flen): Update comment.
5801 (riscv_abi_xlen): New declaration.
5802 (riscv_abi_flen): New declaration.
5803 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
5804 isa_features.
5805 (riscv_abi_xlen): New function.
5806 (riscv_isa_flen): Update to get answer from isa_features.
5807 (riscv_abi_flen): New function.
5808 (riscv_has_fp_abi): Update to get answer from abi_features.
5809 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
5810 xlen and flen.
5811 (riscv_call_info) <xlen, flen>: Update comment.
5812 (riscv_call_arg_struct): Remove invalid assertions
5813 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
5814 is removed.
5815 (riscv_gdbarch_init): Gather isa features and abi features
5816 separately, ensure both match on the gdbarch when reusing an old
5817 gdbarch. Relax an error check to allow 32-bit abi float to run on
5818 a target with 64-bit float hardware.
5819
b18ca514
PW
58202019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5821
5822 * source.c (search_command_helper): Stop reverse search
5823 when line 1 has been searched.
5824
ec70d8db
PW
58252019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5826
5827 * record-full.c (record_full_base_target::close): Rewrite
5828 record_full_core_buf_list free logic.
5829
5b38f9c1
PW
58302019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5831
5832 * break-catch-syscall.c (print_one_catch_syscall): xfree
5833 the last text.
5834
66d91b39
JB
58352019-01-01 Joel Brobecker <brobecker@adacore.com>
5836
5837 * top.c (print_gdb_version): Update Copyright year in version
5838 message.
5839
42a4f53d
JB
58402019-01-01 Joel Brobecker <brobecker@adacore.com>
5841
5842 Update copyright year range in all GDB files.
5843
7e955d83 58442019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 5845
5bbd631d 5846 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 5847
5bbd631d 5848For older changes see ChangeLog-2018.
c906108c
SS
5849\f
5850Local Variables:
5851mode: change-log
5852left-margin: 8
5853fill-column: 74
5854version-control: never
57da7796 5855coding: utf-8
c906108c 5856End:
5bbd631d 5857
This page took 2.412867 seconds and 4 git commands to generate.