frame.h: Forward-declare struct ui_out
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d73f9c4b
SM
12016-10-06 Simon Marchi <simon.marchi@ericsson.com>
2
3 * frame.h: Forward-declare struct ui_out.
4
9c37b5ae
TT
52016-10-06 Tom Tromey <tom@tromey.com>
6
7 * MAINTAINERS: Remove Java test maintainer.
8 * varobj.h (java_varobj_ops): Don't declare.
9 * valprint.h (struct value_print_options)
10 <pascal_static_field_print>: Update comment.
11 * utils.c (producer_is_gcc): Remove java reference.
12 * symtab.h (struct general_symbol_info): Remove java references.
13 (SYMBOL_SEARCH_NAME): Likewise.
14 * objfiles.c (allocate_objfile): Update comment.
15 * linespec.c (find_linespec_symbols): Remove java references.
16 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_baseclass_offset): Remove
17 java references.
18 * gdbtypes.h (struct cplus_struct_type) <is_java>: Remove.
19 (TYPE_CPLUS_REALLY_JAVA): Remove.
20 * c-varobj.c (enum vsections): Update comment.
21 * symtab.c (symbol_set_language, symbol_set_names)
22 (symbol_natural_name, symbol_demangled_name)
23 (demangle_for_lookup, symbol_matches_domain)
24 (default_make_symbol_completion_list_break_on_1): Remove java
25 references.
26 (JAVA_PREFIX, JAVA_PREFIX_LEN): Remove.
27 * psymtab.c (match_partial_symbol, psymtab_search_name)
28 (lookup_partial_symbol): Remove java references.
29 * dwarf2read.c (find_slot_in_mapped_hash): Remove java references.
30 (add_partial_symbol, dwarf2_compute_name, dwarf2_physname)
31 (dwarf2_add_member_fn, is_vtable_name, read_structure_type)
32 (process_structure_scope, read_subroutine_type)
33 (read_subrange_type, load_partial_dies)
34 (new_symbol_full, determine_prefix, typename_concat)
35 (dwarf2_name): Remove java references.
36 (set_cu_language): Treat Java as C++.
37 * c-typeprint.c (c_type_print_args): Remove java reference.
38 * defs.h (enum language) <language_java>: Remove.
39 * Makefile.in (SFILES, HFILES_NO_SRCDIR, COMMON_OBS, YYFILES)
40 (YYOBJ, local-maintainer-clean): Don't mention java files.
41 * jv-exp.y, jv-lang.c, jv-lang.h, jv-typeprint.c, jv-valprint.c,
42 jv-varobj.c: Remove.
43
78b86327
MR
442016-10-06 Maciej W. Rozycki <macro@imgtec.com>
45
46 * mips-tdep.c (mips_pseudo_register_type): Make FCRs always
47 32-bit.
48
a6912260
MR
492016-10-06 Maciej W. Rozycki <macro@imgtec.com>
50
51 * mips-tdep.c (mips_pseudo_register_type): Rearrange comments
52 throughout.
53
c620c3e4
MM
542016-10-06 Markus Metzger <markus.t.metzger@intel.com>
55
56 * stack.c (frame_info): Call val_print_not_saved instead of
57 val_print_unavailable if frame_id check fails.
58
4a556533
PA
592016-10-06 Pedro Alves <palves@redhat.com>
60
61 * jit.c (free_objfile_data): Delete the JIT breakpoint and clear
62 the cached code address.
63
ee8da4b8
DE
642016-10-06 Doug Evans <dje@google.com>
65
66 * features/aarch64-core.xml (cpsr_flags): Elide "type" and specify
67 "end" in all fields.
68 * features/aarch64.c: Regenerate.
69 * features/i386/32bit-mpx.xml (_bndcfgu): Specify type of "preserved"
70 and "enabled" fields. Correct size of "enabled" field.
71 * features/i386/64bit-mpx.xml (_bndcfgu): Specify type of "preserved"
72 and "enabled" fields.
73 * features/i386/i386-avx-mpx-linux.c: Regenerate.
74 * features/i386/i386-avx-mpx.c: Regenerate.
75 * features/i386/i386-avx512-linux.c: Regenerate.
76 * features/i386/i386-avx512.c: Regenerate.
77 * features/i386/i386-mpx-linux.c: Regenerate.
78 * features/i386/i386-mpx.c: Regenerate.
79 * features/arc-arcompact.c: Regenerate.
80 * features/arc-v2.c: Regenerate.
81 * xml-tdesc.c (tdesc_start_field): Require "end" spec. Single bit
82 fields default to "bool" type.
83
84 Revert 2016-03-15 Doug Evans <dje@google.com>
85 * features/i386/32bit-core.xml (i386_eflags): Remove "end" spec.
86 * features/i386/32bit-sse.xml (i386_eflags): Ditto.
87 * features/i386/64bit-core.xml (i386_eflags): Ditto.
88 * features/i386/64bit-sse.xml (i386_eflags): Ditto.
89 * features/i386/x32-core.xml (i386_eflags): Ditto.
90
e742d386
TT
912016-10-05 Tom Tromey <tom@tromey.com>
92
93 PR breakpoints/20653:
94 * location.c (string_to_explicit_location): Use NULL, not '\0'.
95
3e611445
TT
962016-10-05 Tom Tromey <tom@tromey.com>
97
98 PR symtab/20652:
99 * psymtab.c (psymbol_compare): Correctly compare "ginfo.value"
100 fields.
101
f206f69c
AA
1022016-10-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
103
104 * dwarf2expr.c (dwarf_expr_require_composition): Allow
105 DW_OP_GNU_uninit.
106 (execute_stack_op): Use dwarf_expr_require_composition instead of
107 copying its logic.
108
ed2f09e1
AK
1092016-10-05 Anton Kolesov <anton.kolesov@synopsys.com>
110
dba48492 111 * arc-tdep.c (arc_frame_prev_register): Remove annoying log message.
ed2f09e1 112
5878efd4
YQ
1132016-10-05 Yao Qi <yao.qi@linaro.org>
114
115 * features/Makefile (WHICH): Add
116 rs6000/powerpc-isa205-32l, rs6000/powerpc-isa205-64l,
117 rs6000/powerpc-isa205-altivec32l, rs6000/powerpc-isa205-altivec64l,
118 rs6000/powerpc-isa205-vsx32l and rs6000/powerpc-isa205-vsx64l.
119 * regformats/rs6000/powerpc-isa205-32l.dat: Regenerated.
120 * regformats/rs6000/powerpc-isa205-64l.dat: Likewise.
121 * regformats/rs6000/powerpc-isa205-altivec32l.dat: Likewise.
122 * regformats/rs6000/powerpc-isa205-altivec64l.dat: Likewise.
123 * regformats/rs6000/powerpc-isa205-vsx32l.dat: Likewise.
124 * regformats/rs6000/powerpc-isa205-vsx64l.dat: Likewise.
125
defaaad5
YQ
1262016-10-05 Yao Qi <yao.qi@linaro.org>
127
128 * features/Makefile (XMLTOC): Add s390-tevx-linux64.xml,
129 s390-vx-linux64.xml, s390x-tevx-linux64.xml and
130 s390x-vx-linux64.xml.
131
414c838a
YQ
1322016-10-05 Yao Qi <yao.qi@linaro.org>
133
134 * features/Makefile: Remove i386/*-expedite. Add i386-expedite,
135 amd64-expedite, and x32-expedite.
136
0a69eedb
YQ
1372016-10-05 Terry Guo <terry.guo@arm.com>
138 Yao Qi <yao.qi@linaro.org>
139
140 * arm-tdep.c: Adjust includes.
141 * features/Makefile (WHICH): Add "arm/" directory to arm
142 target descriptions.
143 (XMLTOC): Likewise.
144 (arm/arm-with-iwmmxt.dat): Adjust the path for
145 dependencies.
146 * features/arm-core.xml: Moved to ...
147 * features/arm/arm-core.xml: ... it.
148 * features/arm-fpa.xml: Moved to ...
149 * features/arm/arm-fpa.xml: ... it.
150 * features/arm-m-profile.xml: Moved to ...
151 * features/arm/arm-m-profile.xm: ... it.
152 * features/arm-vfpv2.xml: Moved to ...
153 * features/arm/arm-vfpv2.xm: ... it.
154 * features/arm-vfpv3.xml: Moved to ...
155 * features/arm/arm-vfpv3.xml: ... it.
156 * features/arm-with-iwmmxt.c: Moved to ...
157 * features/arm/arm-with-iwmmxt.c: ... it.
158 * features/arm-with-iwmmxt.xml: Moved to ...
159 * features/arm/arm-with-iwmmxt.xml: ... it.
160 * features/arm-with-m-fpa-layout.c: Moved to ...
161 * features/arm/arm-with-m-fpa-layout.c: ... it.
162 * features/arm-with-m-fpa-layout.xml: Moved to ...
163 * features/arm/arm-with-m-fpa-layout.xml: ... it.
164 * features/arm-with-m-vfp-d16.c: Moved to ...
165 * features/arm/arm-with-m-vfp-d16.c: ... it.
166 * features/arm-with-m-vfp-d16.xml: Moved to ...
167 * features/arm/arm-with-m-vfp-d16.xml: ... it.
168 * features/arm-with-m.c: Moved to ...
169 * features/arm/arm-with-m.c: ... it.
170 * features/arm-with-m.xml: Moved to ...
171 * features/arm/arm-with-m.xm: ... it.
172 * features/arm-with-neon.c: Moved to ...
173 * features/arm/arm-with-neon.c: ... it.
174 * features/arm-with-neon.xml: Moved to ...
175 * features/arm/arm-with-neon.xml: ... it.
176 * features/arm-with-vfpv2.c: Moved to ...
177 * features/arm/arm-with-vfpv2.c: ... it.
178 * features/arm-with-vfpv2.xml: Moved to ...
179 * features/arm/arm-with-vfpv2.xml: ... it.
180 * features/arm-with-vfpv3.c: Moved to ...
181 * features/arm/arm-with-vfpv3.c: ... it.
182 * features/arm-with-vfpv3.xml: Moved to ...
183 * features/arm/arm-with-vfpv3.xml: ... it.
184 * features/xscale-iwmmxt.xml: Moved to ...
185 * features/arm/xscale-iwmmxt.xml: ... it.
186
4034d0ff
AT
1872016-10-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
1882016-10-03 Simon Marchi <simon.marchi@ericsson.com>
189
190 PR gdb/20487
191 * NEWS: Mention new frame field of =thread-selected event.
192 * cli/cli-decode.c (add_cmd): Initialize c->suppress_notification.
193 (add_com_suppress_notification): New function definition.
194 (cmd_func): Set and restore the suppress_notification flag.
195 * cli/cli-deicode.h (struct cmd_list_element)
196 <suppress_notification>: New field.
197 * cli/cli-interp.c (cli_suppress_notification): New global variable.
198 (cli_on_user_selected_context_changed): New function.
199 (_initialize_cli_interp): Attach to user_selected_context_changed
200 observer.
201 * command.h (struct cli_suppress_notification): New structure.
202 (cli_suppress_notification): New global variable declaration.
203 (add_com_suppress_notification): New function declaration.
204 * defs.h (enum user_selected_what_flag): New enum.
205 (user_selected_what): New enum flag type.
206 * frame.h (print_stack_frame_to_uiout): New function declaration.
207 * gdbthread.h (print_selected_thread_frame): New function declaration.
208 * inferior.c (print_selected_inferior): New function definition.
209 (inferior_command): Remove printing of inferior/thread/frame switch
210 notifications, notify user_selected_context_changed observer.
211 * inferior.h (print_selected_inferior): New function declaration.
212 * mi/mi-cmds.c (struct mi_cmd): Add user_selected_context
213 suppression to stack-select-frame and thread-select commands.
214 * mi/mi-interp.c (struct mi_suppress_notification)
215 <user_selected_context>: Initialize.
216 (mi_user_selected_context_changed): New function definition.
217 (_initialize_mi_interp): Attach to user_selected_context_changed.
218 * mi/mi-main.c (mi_cmd_thread_select): Print thread selection reply.
219 (mi_execute_command): Handle notification suppression. Notify
220 user_selected_context_changed observer on thread change instead of printing
221 event directly. Don't send it if command already sends the notification.
222 (command_notifies_uscc_observer): New function.
223 (mi_cmd_execute): Don't handle notification suppression.
224 * mi/mi-main.h (struct mi_suppress_notification)
225 <user_selected_context>: New field.
226 * stack.c (print_stack_frame_to_uiout): New function definition.
227 (select_frame_command): Notify user_selected_context_changed
228 observer.
229 (frame_command): Call print_selected_thread_frame if there's no frame
230 change or notify user_selected_context_changed observer if there is.
231 (up_command): Notify user_selected_context_changed observer.
232 (down_command): Likewise.
233 (_initialize_stack): Suppress user_selected_context notification for
234 command select-frame.
235 * thread.c (thread_command): Notify
236 user_selected_context_changed if the thread has changed, print
237 thread info directly if it hasn't.
238 (do_captured_thread_select): Do not print thread switch event.
239 (print_selected_thread_frame): New function definition.
240 * tui/tui-interp.c (tui_on_user_selected_context_changed):
241 New function definition.
242 (_initialize_tui_interp): Attach to user_selected_context_changed
243 observer.
244
bb805577
JK
2452016-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
246
247 PR gdb/20609 - attach of JIT-debug-enabled inf 7.11.1 regression
248 * exec.c (exec_file_locate_attach): Add parameter defer_bp_reset.
249 Use it.
250 * gdbcore.h (exec_file_locate_attach): Add parameter defer_bp_reset.
251 * infcmd.c (setup_inferior): Update caller.
252 * remote.c (remote_add_inferior): Likewise.
253
6d61dee5
PA
2542016-09-28 Pedro Alves <palves@redhat.com>
255
256 * infcall.c (run_inferior_call): Remove input from the event
257 loop while running the infcall.
258
ca90e760
FH
2592016-09-27 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
260
261 * arm-tdep.c (arm_m_addr_is_magic): New function.
262 (arm_addr_bits_remove): Call arm_m_addr_is_magic.
263 (arm_m_exception_unwind_sniffer): Likewise.
264
9eee20eb
JT
2652016-09-23 Jon Turney <jon.turney@dronecode.org.uk>
266
267 * windows-nat.c (windows_delete_thread): Adjusting call to
268 target_mourn_inferior to include ptid_t argument.
269
a97e29d2
TT
2702016-09-23 Tom Tromey <tom@tromey.com>
271
272 * utils.h (make_cleanup_dyn_string_delete): Remove declaration.
273 * utils.c: Don't include dyn-string.h.
274 (do_dyn_string_delete, make_cleanup_dyn_string_delete): Remove.
275 * cli/cli-cmds.c: Include <string>. Don't include dyn-string.h.
276 (argv_to_string): Rename. Change return type to std::string.
277 (alias_command): Use std::string.
278
cfe826d4
TT
2792016-09-23 Tom Tromey <tom@tromey.com>
280
281 * objfiles.c: Include <vector>.
282 (objfile_relocate): Use std::vector.
283
ab8b80a8
TT
2842016-09-23 Tom Tromey <tom@tromey.com>
285
286 * rust-lang.c: Include <string> and <vector>.
287 (rust_evaluate_funcall): Use std::vector, std::string.
288 (rust_evaluate_subexp): Use std::string.
289 (rust_lookup_symbol_nonlocal): Use std::string.
290
05d49c37
TT
2912016-09-23 Tom Tromey <tom@tromey.com>
292
293 * cp-namespace.c: Include <string>.
294 (cp_search_static_and_baseclasses)
295 (cp_lookup_symbol_imports_or_template, find_symbol_in_baseclass):
296 Use std::string.
297
5809899d
TT
2982016-09-23 Tom Tromey <tom@tromey.com>
299
300 * break-catch-sig.c: Include <string>.
301 (signal_catchpoint_print_one): Use std::string.
302
3e25a500
TT
3032016-09-23 Tom Tromey <tom@tromey.com>
304
305 * utils.c (struct restore_ui_out_closure): Remove.
306 * objfiles.h (terminate_minimal_symbol_table): Don't declare.
307
97e64e5a
YQ
3082016-09-23 Yao Qi <yao.qi@linaro.org>
309
310 * nat/linux-osdata.c (linux_xfer_osdata_threads): Replace
311 sprintf with xsnprintf.
312 (linux_xfer_osdata_fds): Likewise.
313
503b1c39
PA
3142016-09-23 Pedro Alves <palves@redhat.com>
315
316 * Makefile.in (SFILES): Add common/new-op.c.
317 (COMMON_OBS): Add common/new-op.o.
318 (new-op.o): New rule.
319 * common/common-exceptions.h: Include <new>.
320 (struct gdb_quit_bad_alloc): New type.
321 * common/new-op.c: New file.
322
de678454
EBM
3232016-09-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
324
325 * rs6000-tdep.c (ppc_process_record_op31): Fix
326 regcache_raw_read_unsigned call using the correct parameter type.
327
fa42dd2e
AK
3282016-09-22 Anton Kolesov <anton.kolesov@synopsys.com>
329
330 * arc-tdep.c: Fix ARI warning for printf(%p).
331
31da3f27
AK
3322016-09-21 Anton Kolesov <anton.kolesov@synopsys.com>
333
334 * MAINTAINERS (Write After Approval): Add Anton Kolesov.
335
ad0a504f
AK
3362016-09-21 Anton Kolesov <anton.kolesov@synopsys.com>
337
338 * Makefile.in (ALL_TARGET_OBS): Add arc-tdep.o.
339 (HFILES_NO_SRCDIR): Add arc-tdep.h.
340 (ALLDEPFILES): Add arc-tdep.c.
341 * NEWS: Mention new ARC port.
342 * configure.tgt: Add ARC.
343 * arc-tdep.c: New file.
344 * arc-tdep.h: New file.
345 * features/Makefile (XMLTOC): Add arc-v2.xml and arc-arcompact.xml.
346 * features/arc-v2.xml: New file.
347 * features/arc-v2.c: New file (generated).
348 * features/arc-arcompact.xml: New file.
349 * features/arc-arcompact.c: New file (generated).
350
8aabe2e2
EBM
3512016-09-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
352
353 * rs6000-tdep.c (ppc_process_record_op63): Fix return of instruction
354 handlers.
355
36cf1806
TT
3562016-09-21 Tom Tromey <tom@tromey.com>
357
358 PR gdb/20604:
359 * top.h (quit_force): Update.
360 * top.c (quit_force): Changed type of first argument. Don't
361 evaluate expression. Pass NULL to kill_or_detach.
362 * cli/cli-cmds.c (quit_command): Evaluate "args".
363
74172ecf
SM
3642016-09-21 Simon Marchi <simon.marchi@ericsson.com>
365
366 * .gitignore: Ignore more files.
367 * data-directory/.gitignore: Likewise.
368
6ec2b213
EBM
3692016-09-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
370
371 * rs6000-tdep.c (PPC_DQ): New macro.
372 (ppc_process_record_op4): Add Power ISA 3.0 instructions.
373 (ppc_process_record_op19): Likewise.
374 (ppc_process_record_op31): Likewise.
375 (ppc_process_record_op59): Likewise.
376 (ppc_process_record_op60): Likewise.
377 (ppc_process_record_op63): Likewise.
378 (ppc_process_record): Likewise.
379 (ppc_process_record_op61): New function.
380
fc6cda2e
YQ
3812016-09-21 Yao Qi <yao.qi@linaro.org>
382
383 * aarch32-linux-nat.c (aarch32_gp_regcache_collect): Keep
384 bits 20 to 23.
385
12c58cd4
TT
3862016-09-20 Tom Tromey <tom@tromey.com>
387
388 * python/py-value.c (convert_value_from_python): Make PyInt_Check
389 conditional on Python 2.
390 * python/py-arch.c (archpy_disassemble): Make PyInt_Check
391 conditional on Python 2.
392
9f7efd5b
EBM
3932016-09-20 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
394
395 * rs6000-tdep.c (ppc_process_record_op31): Fix record of Store String
396 Word instructions.
397
7d5adfe3
SDJ
3982016-09-20 Sergio Durigan Junior <sergiodj@redhat.com>
399
400 * fork-inferior.c (startup_inferior): Pass 'event_ptid' instead of
401 'resume_ptid' to 'target_mourn_inferior'. Fix regression
402 introduced by my last commit.
403
66797541
PA
4042016-09-19 Pedro Alves <palves@redhat.com>
405
406 * common/gdb_locale.h [!ENABLE_NLS] (gettext, dgettext, dcgettext,
407 textdomain, bindtextdomain): Delete macros.
408 * main.c (captured_main) [!ENABLE_NLS]: Skip bintextdomain and
409 textdomain calls.
410
bc1e6c81
SDJ
4112016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
412
413 * darwin-nat.c (darwin_kill_inferior): Adjusting call to
414 target_mourn_inferior to include ptid_t argument.
415 * fork-child.c (startup_inferior): Likewise.
416 * gnu-nat.c (gnu_kill_inferior): Likewise.
417 * inf-ptrace.c (inf_ptrace_kill): Likewise.
418 * infrun.c (handle_inferior_event_1): Likewise.
419 * linux-nat.c (linux_nat_attach): Likewise.
420 (linux_nat_kill): Likewise.
421 * nto-procfs.c (interrupt_query): Likewise.
422 (procfs_interrupt): Likewise.
423 (procfs_kill_inferior): Likewise.
424 * procfs.c (procfs_kill_inferior): Likewise.
425 * record.c (record_mourn_inferior): Likewise.
426 * remote-sim.c (gdbsim_kill): Likewise.
427 * remote.c (remote_detach_1): Likewise.
428 (remote_kill): Likewise.
429 * target.c (target_mourn_inferior): Change declaration to accept
430 new ptid_t argument; use gdb_assert on it.
431 * target.h (target_mourn_inferior): Move function prototype from
432 here...
433 * target/target.h (target_mourn_inferior): ... to here. Adjust it
434 to accept new ptid_t argument.
435 * windows-nat.c (get_windows_debug_event): Adjusting call to
436 target_mourn_inferior to include ptid_t argument.
437
93689493
PA
4382016-09-18 Pedro Alves <palves@redhat.com>
439
440 * s390-linux-nat.c: Include <algorithm>.
441
768adc05
PA
4422016-09-18 Pedro Alves <palves@redhat.com>
443
444 * breakpoint.c (hardware_watchpoint_inserted_in_range): Explicitly
445 specify the std:min/std::max specialization.
446 * exec.c (section_table_read_available_memory): Likewise.
447 * remote.c (remote_read_qxfer): Likewise.
448 * target.c (simple_verify_memory): Likewise.
449
cd94f6d5
SM
4502016-09-16 Simon Marchi <simark@simark.ca>
451
452 * infrun.c (restore_current_uiout_cleanup): Move to ui-out.c.
453 (print_stop_event): Use make_cleanup_restore_current_uiout.
454 * python/python.c (execute_gdb_command): Likewise.
455 * ui-out.c (restore_current_uiout_cleanup): Move from infrun.c.
456 (make_cleanup_restore_current_uiout): New function definition.
457 * ui-out.h (make_cleanup_restore_current_uiout): New function
458 declaration.
459 * utils.c (do_restore_ui_out): Remove.
460 (make_cleanup_restore_ui_out): Remove.
461 * utils.h (make_cleanup_restore_ui_out): Remove.
462
325fac50
PA
4632016-09-16 Pedro Alves <palves@redhat.com>
464
465 * defs.h (min, max): Delete.
466 * aarch64-tdep.c: Include <algorithm> and use std::min and
467 std::max throughout.
468 * aarch64-tdep.c: Likewise.
469 * alpha-tdep.c: Likewise.
470 * amd64-tdep.c: Likewise.
471 * amd64-windows-tdep.c: Likewise.
472 * arm-tdep.c: Likewise.
473 * avr-tdep.c: Likewise.
474 * breakpoint.c: Likewise.
475 * btrace.c: Likewise.
476 * ctf.c: Likewise.
477 * disasm.c: Likewise.
478 * doublest.c: Likewise.
479 * dwarf2loc.c: Likewise.
480 * dwarf2read.c: Likewise.
481 * environ.c: Likewise.
482 * exec.c: Likewise.
483 * f-exp.y: Likewise.
484 * findcmd.c: Likewise.
485 * ft32-tdep.c: Likewise.
486 * gcore.c: Likewise.
487 * hppa-tdep.c: Likewise.
488 * i386-darwin-tdep.c: Likewise.
489 * i386-tdep.c: Likewise.
490 * linux-thread-db.c: Likewise.
491 * lm32-tdep.c: Likewise.
492 * m32r-tdep.c: Likewise.
493 * m88k-tdep.c: Likewise.
494 * memrange.c: Likewise.
495 * minidebug.c: Likewise.
496 * mips-tdep.c: Likewise.
497 * moxie-tdep.c: Likewise.
498 * nds32-tdep.c: Likewise.
499 * nios2-tdep.c: Likewise.
500 * nto-procfs.c: Likewise.
501 * parse.c: Likewise.
502 * ppc-sysv-tdep.c: Likewise.
503 * probe.c: Likewise.
504 * record-btrace.c: Likewise.
505 * remote.c: Likewise.
506 * rs6000-tdep.c: Likewise.
507 * rx-tdep.c: Likewise.
508 * s390-linux-nat.c: Likewise.
509 * s390-linux-tdep.c: Likewise.
510 * ser-tcp.c: Likewise.
511 * sh-tdep.c: Likewise.
512 * sh64-tdep.c: Likewise.
513 * source.c: Likewise.
514 * sparc-tdep.c: Likewise.
515 * symfile.c: Likewise.
516 * target-memory.c: Likewise.
517 * target.c: Likewise.
518 * tic6x-tdep.c: Likewise.
519 * tilegx-tdep.c: Likewise.
520 * tracefile-tfile.c: Likewise.
521 * tracepoint.c: Likewise.
522 * valprint.c: Likewise.
523 * value.c: Likewise.
524 * xtensa-tdep.c: Likewise.
525 * cli/cli-cmds.c: Likewise.
526 * compile/compile-object-load.c: Likewise.
527
8193adea
AA
5282016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
529
530 * s390-linux-nat.c (PER_BIT, PER_EVENT_BRANCH, PER_EVENT_IFETCH)
531 (PER_EVENT_STORE, PER_EVENT_NULLIFICATION)
532 (PER_CONTROL_BRANCH_ADDRESS, PER_CONTROL_SUSPENSION)
533 (PER_CONTROL_ALTERATION): New macros.
534 (struct s390_debug_reg_state) <break_areas>: New member.
535 (s390_forget_process): Free break_areas as well.
536 (s390_linux_new_fork): Copy break_areas as well.
537 (s390_prepare_to_resume): Install hardware breakpoints.
538 (s390_can_use_hw_breakpoint): Indicate support for hardware
539 breakpoints.
540 (s390_insert_hw_breakpoint, s390_remove_hw_breakpoint): New
541 linux_nat target methods.
542 (_initialize_s390_nat): Register them.
543
0e00e962
AA
5442016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
545
546 * nat/linux-nat.h (lwp_is_stepping): New declaration.
547 * linux-nat.c (lwp_is_stepping): New function.
548
169fe0df
AA
5492016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
550
551 * s390-linux-nat.c (gdbcmd.h): New include.
552 (s390_show_debug_regs): New function.
553 (s390_stopped_by_watchpoint): Call it, if show_debug_regs is set.
554 (s390_prepare_to_resume): Likewise.
555 (_initialize_s390_nat): Register the command "maint set
556 show-debug-regs".
557
373c3dad
AA
5582016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
559
560 * s390-linux-nat.c (watch_areas): Remove variable. Replace by a
561 member of...
562 (struct s390_debug_reg_state): ...this. New struct.
563 (struct s390_process_info): New struct.
564 (s390_process_list): New variable.
565 (s390_find_process_pid, s390_add_process, s390_process_info_get)
566 (s390_get_debug_reg_state): New functions.
567 (s390_stopped_by_watchpoint): Now access the watch_areas VEC via
568 s390_get_debug_reg_state.
569 (s390_prepare_to_resume): Likewise.
570 (s390_insert_watchpoint): Likewise.
571 (s390_remove_watchpoint): Likewise.
572 (s390_forget_process, s390_linux_new_fork): New linux_nat target
573 methods.
574 (_initialize_s390_nat): Register them.
575
17c84cca
AA
5762016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
577
578 * s390-linux-nat.c (s390_watch_area): New typedef. Define a VEC.
579 (watch_base): Remove variable.
580 (watch_areas): New variable.
581 (s390_stopped_by_watchpoint): Transform operations on the
582 watch_base list to equivalent operations on the watch_areas VEC.
583 (s390_prepare_to_resume): Likewise.
584 (s390_insert_watchpoint): Likewise.
585 (s390_remove_watchpoint): Likewise.
586
9c2996c9
AA
5872016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
588
589 * s390-linux-nat.c (s390_prepare_to_resume): Use advertised lwp
590 functions instead of accessing lwp_info structure members.
591 (s390_mark_per_info_changed): New function.
592 (s390_new_thread): Use it.
593 (s390_refresh_per_info_cb): New function.
594 (s390_refresh_per_info): Remove parameter. Refresh all lwps of
595 the current process.
596 (s390_insert_watchpoint): Adjust call to s390_refresh_per_info.
597 (s390_remove_watchpoint): Likewise.
598
e1b2624a
AA
5992016-09-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
600
601 * elfread.c (auxv.h): New include.
602 (elf_gnu_ifunc_resolve_addr): Pass HWCAP to ifunc resolver.
603
f5c4fcd9
TT
6042016-09-08 Tom Tromey <tom@tromey.com>
605
606 * remote.c (remote_notif_stop_ack, remote_wait_as)
607 (show_remote_cmd): Remove unneeded casts.
608
4295e285
PA
6092016-09-06 Pedro Alves <palves@redhat.com>
610
611 * top.c (wait_sync_command_done): Don't assume current_ui doesn't
612 change across events. Restore the current UI before returning.
613 (gdb_readline_wrapper): Restore the current UI before returning.
614
a025b477
PA
6152016-09-06 Pedro Alves <palves@redhat.com>
616
617 * event-top.c (restore_ui_cleanup): Now static.
618 (make_cleanup_restore_current_ui): New function.
619 (switch_thru_all_uis_init): Use it.
620 * infcall.c (call_thread_fsm_should_stop): Use it.
621 * infrun.c (fetch_inferior_event): Use it.
622 * top.c (new_ui_command): Use it.
623 * top.h (restore_ui_cleanup): Delete declaration.
624 (make_cleanup_restore_current_ui): New declaration.
625
00d5215e
UW
6262016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
627
628 * i386-tdep.c (i386_floatformat_for_type): New function.
629 (i386_gdbarch_init): Install it.
630 * ppc-linux-tdep.c (ppc_floatformat_for_type): New function.
631 (ppc_linux_init_abi): Install it.
632
9b790ce7
UW
6332016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
634
635 * gdbarch.sh (floatformat_for_type): New gdbarch callback.
636 * gdbarch.h, gdbarch.c: Re-generate.
637 * arch-utils.h (default_floatformat_for_type): New prototype.
638 * arch-utils.c (default_floatformat_for_type): New function.
639
640 * doublest.c (floatformat_from_length): Remove.
641 (floatformat_from_type): Assume TYPE_FLOATFORMAT is non-NULL.
642 * gdbtypes.c (verify_floatformat): Require non-NULL format.
643
644 * dwarf2read.c (dwarf2_init_float_type): New function.
645 (read_base_type): Use it.
646 * stabsread.c (dbx_init_float_type): New function.
647 (read_sun_floating_type): Use it.
648 (read_range_type): Likewise.
649
49f190bc
UW
6502016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
651
652 * ada-lang.c (ada_language_arch_info): Use gdbarch-provided
653 platform ABI floating-point formats for built-in types.
654 * d-lang.c (build_d_types): Likewise.
655 * f-lang.c (build_fortran_types): Likewise.
656 * m2-lang.c (build_m2_types): Likewise.
657 * mdebugread.c (basic_type): Likewise.
658
659 * go-lang.c (build_go_types): Use IEEE floating-point formats
660 for language built-in types as mandanted by the language.
661 * jv-lang.c (build_java_types): Likewise.
662 * rust-lang.c (rust_language_arch_info): Likewise.
663 * stabsread.c (rs6000_builtin_type): Likewise.
664
c413c448
UW
6652016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
666
667 * gdbtypes.c (init_type): Remove "char" special case.
668 (arch_integer_type): Likewise.
669 (gdbtypes_post_init): Set TYPE_NOSIGN for "char" type.
670 (objfile_type): Likewise.
671 * mdebugread.c (basic_type): Likewise.
672 * stabsread.c (rs6000_builtin_type): Likewise.
673
a9ff5f12
UW
6742016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
675
676 * gdbtypes.h (enum type_flag_value): Remove.
677 Remove references to TYPE_FLAG_... in comments throughout.
678 * gdbtypes.c (recursive_dump_type): Do not print TYPE_FLAG_...
679 flags, print the corresponding TYPE_... access macro names.
680 Remove references to TYPE_FLAG_... in comments throughout.
681 * infcall.c: Remove references to TYPE_FLAG_... in comments.
682 * valprint.c: Likewise.
683 * gdb-gdb.py (class TypeFlag): No longer consider TYPE_FLAG_...
684 values, only TYPE_INSTANCE_FLAG_... values.
685 (class TypeFlagsPrinter): Likewise.
686
19f392bc
UW
6872016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
688
689 * gdbtypes.h (init_type): Remove FLAGS argument. Move OBJFILE
690 argument to first position.
691 (init_integer_type): New prototype.
692 (init_character_type): Likewise.
693 (init_boolean_type): Likewise.
694 (init_float_type): Likewise.
695 (init_decfloat_type): Likewise.
696 (init_complex_type): Likewise.
697 (init_pointer_type): Likewise.
698 * gdbtypes.c (verify_floatflormat): New function.
699 (init_type): Remove FLAGS argument and processing. Move OBJFILE
700 argument to first position.
701 (init_integer_type): New function.
702 (init_character_type): Likewise.
703 (init_boolean_type): Likewise.
704 (init_float_type): Likewise.
705 (init_decfloat_type): Likewise.
706 (init_complex_type): Likewise.
707 (init_pointer_type): Likewise.
708 (arch_float_type): Use verify_floatflormat.
709 (objfile_type): Use init_..._type helpers instead of calling
710 init_type directly.
711 * dwarf2read.c (fixup_go_packaging): Update to changed init_type
712 prototype.
713 (read_namespace_type): Likewise.
714 (read_module_type): Likewise.
715 (read_typedef): Likewise.
716 (read_unspecified_type): Likewise.
717 (build_error_marker_type): Likewise.
718 (read_base_type): Use init_..._type helpers.
719 * mdebugread.c (basic_type): Use init_..._type helpers.
720 (parse_type): Update to changed init_type prototype.
721 (cross_ref): Likewise.
722 * stabsread.c (rs6000_builtin_type): Use init_..._type helpers.
723 (read_sun_builtin_type): Likewise.
724 (read_sun_floating_type): Likewise.
725 (read_range_type): Likewise. Also update to changed init_type
726 prototype.
727
88dfca6c
UW
7282016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
729
730 * gdbtypes.h (arch_decfloat_type): New prototype.
731 (arch_pointer_type): Likewise.
732 * gdbtypes.c (arch_decfloat_type): New function.
733 (arch_pointer_type): Likewise.
734 (gdbtypes_post_init): Use arch_decfloat_type.
735 * avr-tdep.c (avr_gdbarch_init): Use arch_pointer_type.
736 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
737 * m32c-tdep.c (make_types): Likewise.
738 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
739
ae438bc5
UW
7402016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
741
742 * gdbtypes.c (set_type_code): New function.
743 (init_type, arch_type): Use it.
744
5f3bceb6
UW
7452016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
746
747 * ada-lang.c (ada_language_arch_info): Use gdbarch_long_double_bit
748 instead of gdbarch_double_bit for "long_long_float".
749
cf6de44d
PA
7502016-09-05 Pedro Alves <palves@redhat.com>
751
752 * NEWS: Mention that a C++ compiler is now required.
753 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
754 (COMPILE.pre, CC_LD): Use CXX directly.
755 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
756 * acinclude.m4: Don't include build-with-cxx.m4.
757 * build-with-cxx.m4: Delete file.
758 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
759 * warning.m4: Assume $enable_build_with_cxx is yes.
760 * configure: Regenerate.
761
f245535c
PA
7622016-09-05 Pedro Alves <palves@redhat.com>
763
764 PR backtrace/19927
765 * frame.c (get_frame_id): Compute the frame id if not computed
766 yet.
767 (unwind_to_current_frame): Delete.
768 (get_current_frame): Use get_prev_frame_always_1 to get the
769 current frame and assert that that always succeeds.
770 (get_prev_frame_if_no_cycle): Skip cycle detection if returning
771 the current frame.
772
4aa4e28b
TT
7732016-09-02 Tom Tromey <tom@tromey.com>
774
775 PR gdb/11616:
776 * dwarf2read.c (decode_locdesc): Handle DW_OP_form_tls_address.
777 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Handle
778 DW_OP_form_tls_address.
779 (locexpr_describe_location_piece): Likewise.
780 * dwarf2expr.h (struct dwarf_expr_context_funcs): Update comment.
781 * dwarf2expr.c (execute_stack_op): Handle DW_OP_form_tls_address.
782 (ctx_no_get_tls_address): Mention DW_OP_form_tls_address.
783 * compile/compile-loc2c.c (struct insn_info): Update comment.
784 (compute_stack_depth_worker): Handle DW_OP_form_tls_address.
785
f2b9e3df
SDJ
7862016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
787
788 * target.c (target_wait): Mention that the function's prototype
789 can be found at target/target.h.
790 * target.h (target_wait): Move prototype from here...
791 * target/target.h (target_wait): ... to here.
792
049a8570
SDJ
7932016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
794
795 * fork-child.c (startup_inferior): Replace calls to target_resume
796 by target_continue{,_no_signal}, depending on the case.
797 * linux-nat.c (cleanup_target_stop): Call
798 target_continue_no_signal instead of target_resume.
799 * procfs.c (procfs_wait): Likewise.
800 * target.c (target_continue): New function.
801 * target/target.h (target_continue): New prototype.
802
f99bd5f2
YQ
8032016-08-31 Yao Qi <yao.qi@linaro.org>
804
805 * record-full.c (record_full_insert_breakpoint): Fix typo.
806
5af962df
AA
8072016-08-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
808
809 * thread.c (tp_array_compar): Insert missing parentheses.
810
ae68ff9f
AA
8112016-08-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
812
813 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Replace
814 designated initializer list by plain initializer list, for C++
815 compliance.
816
754653a7
AZ
8172016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
818
819 * aarch64-linux-nat.c (ps_get_thread_area): Remove const from
820 struct ps_prochandle.
821 * amd64-linux-nat.c (ps_get_thread_area): Likewise.
822 * arm-linux-nat.c (ps_get_thread_area): Likewise.
823 * gdb_proc_service.h (ps_get_thread_area): Likewise.
824 * i386-linux-nat.c (ps_get_thread_area): Likewise.
825 * m68klinux-nat.c (ps_get_thread_area): Likewise.
826 * mips-linux-nat.c (ps_get_thread_area): Likewise.
827 * nat/aarch64-linux.c (aarch64_ps_get_thread_area): Likewise.
828 * nat/aarch64-linux.h (aarch64_ps_get_thread_area): Likewise.
829 * xtensa-linux-nat.c (ps_get_thread_area): Likewise.
830
0a1ddfa6
SM
8312016-08-24 Simon Marchi <simon.marchi@ericsson.com>
832
833 * infcmd.c (set_inferior_io_terminal): Set inferior terminal to
834 NULL if terminal_name is an empty string.
835 (_initialize_infcmd): Make the argument of "set inferior-tty"
836 optional, mention it in the help doc.
837
bdd78711
CL
8382016-08-24 Carl Love <cel@us.ibm.com>
839
840 * rs6000-tdep.c (rs6000_gdbarch_init): Remove call
841 set_gdbarch_deprecated_fp_regnum() architecture
842 initialization function.
843
34f81801
SM
8442016-08-23 Simon Marchi <simon.marchi@ericsson.com>
845
846 * stack.c (parse_frame_specification): Fix typo in comment.
847
d9de1fe3
PA
8482016-08-23 Pedro Alves <palves@redhat.com>
849
850 PR gdb/20494
851 * inflow.c (our_terminal_info, initial_gdb_ttystate): Update
852 comments.
853 (enum gdb_has_a_terminal_flag_enum, gdb_has_a_terminal_flag):
854 Delete.
855 (set_initial_gdb_ttystate): Record our_terminal_info here too,
856 instead of ...
857 (gdb_has_a_terminal): ... here. Reimplement in terms of
858 initial_gdb_ttystate. Make static.
859 * terminal.h (gdb_has_a_terminal): Delete declaration.
860 (set_initial_gdb_ttystate): Add comment.
861 * top.c (show_interactive_mode): Use input_interactive_p instead
862 of gdb_has_a_terminal.
863
6bb90213
PA
8642016-08-22 Pedro Alves <palves@redhat.com>
865
866 PR gdb/20505
867 * linux-tdep.c (linux_vsyscall_range_raw): For core inferiors,
868 find the vDSO's start address with AT_SYSINFO_EHDR too, and
869 determine the vDSO's size by finding the PT_LOAD segment that
870 matches AT_SYSINFO_EHDR.
871
03bcd739
YQ
8722016-08-19 Yao Qi <yao.qi@linaro.org>
873
874 * aarch64-tdep.c (aarch64_analyze_prologue): Handle register
875 based STP instruction.
876
bbfa2517
YQ
8772016-08-19 Yao Qi <yao.qi@linaro.org>
878
879 * completer.c (linespec_location_completer): Make file_to_match
880 null-terminated.
881
f077e978
PA
8822016-08-19 Pedro Alves <palves@redhat.com>
883
884 * amd64-tdep.c (amd64_relocate_instruction) <callq>: Handle return
885 addresses over 0x7fffffff.
886
46da9242
CL
8872016-08-18 Carl Love <cel@us.ibm.com>
888
889 * MAINTANERS Write After Approval): Add "Carl Love".
890
d44c67f3
EBM
8912016-08-18 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
892
893 * rs6000-tdep.c (ppc_process_record_op31): Handle HTM instructions.
894
eb2332d7
SM
8952016-08-17 Simon Marchi <simon.marchi@ericsson.com>
896
897 * inferior.c (remove_inferior_command): Fix error message.
898
9b19e390
SM
8992016-08-17 Simon Marchi <simon.marchi@ericsson.com>
900
901 * inferior.c (exit_inferior_1): Remove comment.
902
31925464
MW
9032016-08-15 Matthew Wahab <matthew.wahab@arm.com>
904
905 PR gdb/20457
906 * gdb_proc_service.h: Add an include of gregset.h
907 [!HAVE_PROC_SERVICE_H]: Remove the include of gregset.h.
908
b31f9478
YQ
9092016-08-15 Yao Qi <yao.qi@linaro.org>
910
911 * location.c (explicit_location_lex_one): Compare the return
912 value of strncmp with zero. Don't check (*inp)[9]. Increment
913 *inp by 8.
914
39b22471
PA
9152016-08-11 Pedro Alves <palves@redhat.com>
916
917 PR gdb/20413
918 * nat/linux-ptrace.c: Include <sys/procfs.h> instead of
919 "gregset.h".
920
01d3dedf
PA
9212016-08-10 Pedro Alves <palves@redhat.com>
922
923 PR gdb/19187
924 * record-full.c (record_full_remove_breakpoint): Don't remove the
925 breakpoint from the record_full_breakpoints VEC if we're detaching
926 the breakpoint from a fork child.
927
73971819
PA
9282016-08-10 Pedro Alves <palves@redhat.com>
929
930 PR gdb/19187
931 * break-catch-sig.c (signal_catchpoint_remove_location): Adjust
932 interface.
933 * break-catch-syscall.c (remove_catch_syscall):
934 * breakpoint.c (enum remove_bp_reason): Moved to breakpoint.h.
935 (remove_breakpoint_1): Pass 'reason' down.
936 (remove_catch_fork, remove_catch_vfork, remove_catch_solib)
937 (remove_catch_exec, remove_watchpoint, remove_masked_watchpoint)
938 (base_breakpoint_remove_location, bkpt_remove_location)
939 (bkpt_probe_remove_location, bkpt_probe_remove_location): Adjust
940 interface.
941 * breakpoint.h (enum remove_bp_reason): Moved here from
942 breakpoint.c.
943 (struct breakpoint_ops) <remove_location>: Add 'reason' parameter.
944 * corelow.c (core_remove_breakpoint): New function.
945 (init_core_ops): Install it as to_remove_breakpoint method.
946 * exec.c (exec_remove_breakpoint): New function.
947 (init_exec_ops): Install it as to_remove_breakpoint method.
948 * mem-break.c (memory_remove_breakpoint): Adjust interface.
949 * record-btrace.c (record_btrace_remove_breakpoint): Adjust
950 interface.
951 * record-full.c (record_full_remove_breakpoint)
952 (record_full_core_remove_breakpoint): Adjust interface.
953 * remote.c (remote_remove_breakpoint): Adjust interface.
954 * target-debug.h (target_debug_print_enum_remove_bp_reason): New
955 macro.
956 * target-delegates.c: Regenerate.
957 * target.c (target_remove_breakpoint): Add 'reason' parameter.
958 * target.h (struct target_ops) <to_remove_breakpoint>: Add
959 'reason' parameter.
960 (target_remove_breakpoint, memory_remove_breakpoint): Add 'reason'
961 parameter.
962
b2b6a7da
PA
9632016-08-10 Pedro Alves <palves@redhat.com>
964
965 PR gdb/19187
966 * breakpoint.c (insertion_state_t): Delete.
967 (enum remove_bp_reason): New.
968 (detach_breakpoints, remove_breakpoint_1, remove_breakpoint):
969 Adjust to use enum remove_bp_reason instead of insertion_state_t.
970
834c0d03
PA
9712016-08-10 Pedro Alves <palves@redhat.com>
972
973 PR gdb/19187
974 * breakpoint.c (remove_breakpoint): Remove 'is' parameter and
975 always pass mark_uninserted to remove_breakpoint_1.
976 (insert_breakpoint_locations, remove_breakpoints)
977 (remove_breakpoints_pid, update_global_location_list): Update
978 callers.
979
24cdb46e
РИ
9802016-08-10 Руслан Ижбулатов <lrn1986@gmail.com>
981 Pedro Alves <palves@redhat.com>
982
983 * windows-nat.c (MS_VC_EXCEPTION): New define.
984 (handle_exception_result): New enum.
985 (windows_delete_thread): Free the thread's name.
986 (handle_exception): Handle MS_VC_EXCEPTION.
987 (get_windows_debug_event): Handle HANDLE_EXCEPTION_IGNORED.
988 (windows_thread_name): New function.
989 (windows_target): Install it as to_thread_name method.
990 * NEWS: Mention the thread naming support on MS-Windows.
991
669f9429
PA
9922016-08-10 Pedro Alves <palves@redhat.com>
993
994 * common/signals-state-save-restore.c
995 (save_original_signals_state, restore_original_signals_state):
996 Wrap perror_with_name arguments with '()'.
997
3eb7562a
PA
9982016-08-09 Pedro Alves <palves@redhat.com>
999
1000 PR gdb/20418
1001 * event-top.c (ui_register_input_event_handler)
1002 (ui_unregister_input_event_handler): New functions.
1003 (async_enable_stdin): Register input in the event loop.
1004 (async_disable_stdin): Unregister input from the event loop.
1005 (gdb_setup_readline): Register input in the event loop.
1006 * infrun.c (check_curr_ui_sync_execution_done): Register input in
1007 the event loop.
1008 * target.c (target_terminal_inferior): Don't unregister input from
1009 the event loop.
1010 (target_terminal_ours): Don't register input in the event loop.
1011 * target.h (target_terminal_inferior)
1012 (target_terminal_ours_for_output, target_terminal_ours): Update
1013 comments.
1014 * top.h (ui_register_input_event_handler)
1015 (ui_unregister_input_event_handler): New declarations.
1016 * utils.c (ui_unregister_input_event_handler_cleanup)
1017 (prepare_to_handle_input): New functions.
1018 (defaulted_query, prompt_for_continue): Use
1019 prepare_to_handle_input.
1020
80614914
PA
10212016-08-09 Pedro Alves <palves@redhat.com>
1022
1023 PR mi/20431
1024 * mi/mi-main.c (mi_execute_command): Enable input and set prompt
1025 state to PROMPT_NEEDED.
1026
f348d89a
PA
10272016-08-09 Pedro Alves <palves@redhat.com>
1028
1029 PR gdb/18653
1030 * Makefile.in (SFILES): Add
1031 common/signals-state-save-restore.c.
1032 (HFILES_NO_SRCDIR): Add common/signals-state-save-restore.h.
1033 (COMMON_OBS): Add signals-state-save-restore.o.
1034 (signals-state-save-restore.o): New rule.
1035 * configure: Regenerate.
1036 * fork-child.c: Include "signals-state-save-restore.h".
1037 (fork_inferior): Call restore_original_signals_state.
1038 * main.c: Include "signals-state-save-restore.h".
1039 (captured_main): Call save_original_signals_state.
1040 * common/common.m4: Add sigaction to AC_CHECK_FUNCS checks.
1041 * common/signals-state-save-restore.c: New file.
1042 * common/signals-state-save-restore.h: New file.
1043
e5ca03b4
PA
10442016-08-09 Pedro Alves <palves@redhat.com>
1045
1046 * value.c (unpack_value_bitfield): Skip unpacking if the parent
1047 has no contents buffer to begin with.
1048
6a17ca31
PA
10492016-08-08 Pedro Alves <palves@redhat.com>
1050
1051 * features/i386/amd64-avx-mpx-linux.c: Regenerate.
1052 * features/i386/amd64-avx-mpx.c: Regenerate.
1053 * features/i386/i386-avx-mpx-linux.c: Regenerate.
1054 * features/i386/i386-avx-mpx.c: Regenerate.
1055
c632e428
SM
10562016-08-05 Simon Marchi <simon.marchi@ericsson.com>
1057
1058 * event-top.h (cli_command_loop): Remove.
1059
3906a8fc
PA
10602016-08-05 Pedro Alves <palves@redhat.com>
1061
1062 PR remote/20398
1063 * remote-fileio.c (remote_fileio_quit_handler): Check the quit
1064 flag before calling quit.
1065
69ffd7f2
PA
10662016-08-05 Pedro Alves <palves@redhat.com>
1067
1068 * NEWS: Mention that GDB and GDBserver build with a C++ compiler
1069 by default.
1070
1baf5149
PA
10712016-08-05 Pedro Alves <palves@redhat.com>
1072
1073 * build-with-cxx.m4: Change help string to be in terms of
1074 --disable-build-with-cxx.
1075 * configure: Regenerate.
1076
6f67973b
YQ
10772016-08-04 Yao Qi <yao.qi@linaro.org>
1078
1079 * aarch64-linux-nat.c (tdesc_arm_with_vfpv3): Remove the
1080 declaration.
1081 (aarch64_linux_read_description): Remove code on getting
1082 auxv and select target description on it. Select target
1083 description by the result of NT_ARM_VFP ptrace request.
1084
282a0691
TT
10852016-08-03 Tom Tromey <tom@tromey.com>
1086
1087 PR python/18565:
1088 * python/py-frame.c (frapy_function): Use find_frame_funname.
1089
d10153cf
TT
10902016-08-03 Tom Tromey <tom@tromey.com>
1091
1092 * stack.c (find_frame_funname): Avoid any possible leak in case
1093 cp_remove_params can throw.
1094
8d2a0a14
TT
10952016-08-03 Tom Tromey <tom@tromey.com>
1096
1097 * NEWS: Mention new Python breakpoint events.
1098
33541b2e
TT
10992016-08-02 Tom Tromey <tom@tromey.com>
1100
1101 * MAINTAINERS (Core): Add self as Rust maintainer.
1102
751b375e
JB
11032016-08-01 Joel Brobecker <brobecker@adacore.com>
1104
1105 * NEWS: Create a new section for the next release branch.
1106 Rename the section of the current branch, now that it has
1107 been cut.
1108
b2bd7787
JB
11092016-08-01 Joel Brobecker <brobecker@adacore.com>
1110
1111 GDB 7.12 branch created (41bfcd638a4e0e48b96ce4de2845372dea481322):
1112 * version.in: Bump version to 7.12.50.DATE-git.
1113
293acfae
AM
11142016-07-27 Alan Modra <amodra@gmail.com>
1115
1116 * amd64-darwin-tdep.c: Don't include libbfd.h.
1117 * i386-darwin-tdep.c: Likewise.
1118 * rs6000-nat.c: Likewise.
1119 * rs6000-tdep.c: Likewise.
1120
0b31a4bc
TT
11212016-07-26 Tom Tromey <tom@tromey.com>
1122
1123 * symtab.c (register_symbol_computed_impl): Update.
1124 PR python/20190:
1125 * value.h (symbol_read_needs): Declare.
1126 (symbol_read_needs_frame): Add comment.
1127 * symtab.h (struct symbol_computed_ops) <read_variable>: Update
1128 comment.
1129 <get_symbol_read_needs>: Rename. Change return type.
1130 * findvar.c (symbol_read_needs): New function.
1131 (symbol_read_needs_frame): Rewrite.
1132 (default_read_var_value): Use symbol_read_needs.
1133 * dwarf2loc.c (struct symbol_needs_baton): Rename.
1134 <needs>: Renamed from needs_frame. Changed type.
1135 (needs_frame_read_addr_from_reg, symbol_needs_get_reg_value)
1136 (symbol_needs_read_mem, symbol_needs_frame_base)
1137 (symbol_needs_frame_cfa, symbol_needs_tls_address)
1138 (symbol_needs_dwarf_call): Rename.
1139 (needs_dwarf_reg_entry_value): Update.
1140 (symbol_needs_ctx_funcs, dwarf2_loc_desc_get_symbol_read_needs):
1141 Rename and update.
1142 (locexpr_get_symbol_read_needs, loclist_symbol_needs): Likewise.
1143 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
1144 * defs.h (enum symbol_needs_kind): New.
1145
40c31709
PA
11462016-07-26 Pedro Alves <palves@redhat.com>
1147
1148 * nat/linux-ptrace.c: Include "gregset.h".
1149 (linux_ptrace_test_ret_to_nx): Use PTRACE_GETREGS instead of
1150 PTRACE_PEEKUSER.
1151
9cf12d57
PA
11522016-07-26 Pedro Alves <palves@redhat.com>
1153
1154 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Rename 'native'
1155 parameter to 'ptrace'.
1156 * nat/amd64-linux-siginfo.c (GDB_SI_SIZE): New define.
1157 (nat_uptr_t): New an unsigned long.
1158 (nat_clock_t): Remove attribute __aligned__.
1159 (struct nat_timeval): Delete.
1160 (nat_siginfo_t): Remove attribute __aligned__.
1161 (ptrace_siginfo_t): Define.
1162 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
1163 (compat_x32_siginfo_from_siginfo)
1164 (siginfo_from_compat_x32_siginfo): Make 'from' parameter const.
1165 Convert through a ptrace_siginfo_t instead of a nat_siginfo_t.
1166 Remove casts.
1167 (amd64_linux_siginfo_fixup_common): Rename 'native' parameter to
1168 'ptrace'. Remove static assertions.
1169 (top level): New static assertions.
1170
8194e927
SM
11712016-07-25 Simon Marchi <simon.marchi@ericsson.com>
1172
1173 * top.h (make_delete_ui_cleanup): New declaration.
1174 * top.c (delete_ui_cleanup): New function.
1175 (make_delete_ui_cleanup): New function.
1176 (new_ui_command): Create restore_ui cleanup earlier, create a
1177 delete_ui cleanup and discard it on success.
1178
0e1a6a51
PA
11792016-07-25 Pedro Alves <palves@redhat.com>
1180 Jan Kratochvil <jan.kratochvil@redhat.com>
1181
1182 * nat/linux-procfs.c (parse_proc_status_state): Handle lowercase
1183 't'.
1184
d617208b
PA
11852016-07-25 Pedro Alves <palves@redhat.com>
1186
1187 * nat/linux-procfs.c (enum proc_state): New enum.
1188 (parse_proc_status_state): New function.
1189 (linux_proc_pid_get_state): Replace output string buffer parameter
1190 with an output proc_state parameter. Use parse_proc_status_state.
1191 (linux_proc_pid_is_gone): Adjust to use proc_state values.
1192 (linux_proc_pid_has_state): Change type of 'state' parameter; now
1193 an enum proc_state. Adjust to linux_proc_pid_get_state interface
1194 change.
1195 (linux_proc_pid_is_stopped)
1196 (linux_proc_pid_is_trace_stopped_nowarn)
1197 (linux_proc_pid_is_zombie_maybe_warn): Adjust to
1198 linux_proc_pid_get_state interface change.
1199
3a1518e4
TW
12002016-07-25 Tim Wiederhake <tim.wiederhake@intel.com>
1201
1202 * MAINTAINERS (Write After Approval): Add Tim Wiederhake
1203
c0272db5
TW
12042016-07-25 Tim Wiederhake <tim.wiederhake@intel.com>
1205
1206 * NEWS: Resume btrace on reconnect.
1207 * record-btrace.c: Added record-btrace.h include.
1208 (record_btrace_open): Split into this and ...
1209 (record_btrace_push_target): ... this.
1210 (record_btrace_disconnect): New function.
1211 (init_record_btrace_ops): Use record_btrace_disconnect.
1212 * record-btrace.h: New file.
1213 * remote.c: Added record-btrace.h include.
1214 (remote_start_remote): Check recording status.
1215 (remote_btrace_maybe_reopen): New function.
1216
e3487908
GKB
12172016-07-23 Gabriel Krisman Bertazi <gabriel@krisman.be>
1218
1219 * xml-syscall.c (get_syscalls_by_group): New.
1220 (get_syscall_group_names): New.
1221 (struct syscall_group_desc): New structure to store group data.
1222 (struct syscalls_info): Include field to store the group list.
1223 (sysinfo_free_syscall_group_desc): New.
1224 (free_syscalls_info): Free group list.
1225 (syscall_group_create_syscall_group_desc): New.
1226 (syscall_group_add_syscall): New.
1227 (syscall_create_syscall_desc): Add syscall to its groups.
1228 (syscall_start_syscall): Load group attribute.
1229 (syscall_group_get_group_by_name): New.
1230 (xml_list_syscalls_by_group): New.
1231 (xml_list_of_groups): New.
1232 * xml-syscall.h (get_syscalls_by_group): Export function
1233 to retrieve a list of syscalls filtered by the group name.
1234 (get_syscall_group_names): Export function to retrieve the list
1235 of syscall groups.
1236 * break-catch-syscall.c (catch_syscall_split_args): Verify if
1237 argument is a syscall group and expand it to a list of syscalls
1238 when creating catchpoints.
1239 (catch_syscall_completer): Add word completion for system call
1240 groups.
1241 * configure.ac: Include dependency for xsltproc when building
1242 in maintainer-mode.
1243 * break-catch-syscall.c (_initialize_breakpoint): Update catch
1244 syscall command documentation.
1245 * NEWS: Include section about catching groups of syscalls.
1246 * configure: Regenerate.
1247 * data-directory/Makefile.in: Generate syscall xml when building
1248 in maintainer mode.
1249 * syscalls/gdb-syscalls.dtd: Include group attribute to the
1250 syscall element.
1251 * syscalls/apply-defaults.xsl: New.
1252 * syscalls/linux-defaults.xml.in: New.
1253 * syscalls/aarch64-linux.xml: Rename to aarch64-linux.xml.in.
1254 * syscalls/amd64-linux.xml: Rename to amd64-linux.xml.in.
1255 * syscalls/arm-linux.xml: Rename to arm-linux.xml.in.
1256 * syscalls/bfin-linux.xml: Rename to bfin-linux.xml.in.
1257 * syscalls/i386-linux.xml: Rename to i386-linux.xml.in.
1258 * syscalls/mips-n32-linux.xml: Rename to mips-n32-linux.xml.in.
1259 * syscalls/mips-n64-linux.xml: Rename to mips-n64-linux.xml.in.
1260 * syscalls/mips-o32-linux.xml: Rename to mips-o32-linux.xml.in.
1261 * syscalls/ppc-linux.xml: Rename to ppc-linux.xml.in.
1262 * syscalls/ppc64-linux.xml: Rename to ppc64-linux.xml.in.
1263 * syscalls/s390-linux.xml: Rename to s390-linux.xml.in.
1264 * syscalls/s390x-linux.xml: Rename to s390x-linux.xml.in.
1265 * syscalls/sparc-linux.xml: Rename to sparc-linux.xml.in.
1266 * syscalls/sparc64-linux.xml: Rename to sparc64-linux.xml.in.
1267 * syscalls/aarch64-linux.xml: Regenerate.
1268 * syscalls/amd64-linux.xml: Regenerate.
1269 * syscalls/arm-linux.xml: Regenerate.
1270 * syscalls/i386-linux.xml: Regenerate.
1271 * syscalls/mips-n32-linux.xml: Regenerate.
1272 * syscalls/mips-n64-linux.xml: Regenerate.
1273 * syscalls/mips-o32-linux.xml: Regenerate.
1274 * syscalls/ppc-linux.xml: Regenerate.
1275 * syscalls/ppc64-linux.xml: Regenerate.
1276 * syscalls/s390-linux.xml: Regenerate.
1277 * syscalls/s390x-linux.xml: Regenerate.
1278 * syscalls/sparc-linux.xml: Regenerate.
1279 * syscalls/sparc64-linux.xml: Regenerate.
1280
49ecef2a
AP
12812016-07-23 Andrew Pinski <apinski@cavium.com>
1282
1283 * nat/aarch64-linux-hw-point.c
1284 (aarch64_linux_get_debug_reg_capacity): Handle
1285 ARMv8.1 and ARMv8.2 debug versions.
1286 * nat/aarch64-linux-hw-point.h
1287 (AARCH64_DEBUG_ARCH_V8_1): New define.
1288 (AARCH64_DEBUG_ARCH_V8_2): New define.
1289
463888ab
РИ
12902016-06-30 Руслан Ижбулатов <lrn1986@gmail.com>
1291
1292 PR gdb/14529
1293 * windows-nat.c (signal_event_command): New command 'signal-event'
1294 for W32 JIT debug support.
1295 * NEWS: Add an entry about the new 'signal-event' command.
1296
e98c9e7c
TT
12972016-07-22 Tom Tromey <tom@tromey.com>
1298
1299 PR rust/20162:
1300 * dwarf2read.c (scan_partial_symbols) <DW_TAG_structure_type>:
1301 Call scan_partial_symbols for children when reading a Rust CU.
1302 (dwarf2_physname): Ignore invalid DW_AT_linkage_name generated by
1303 rustc.
1304 (process_structure_scope) <DW_TAG_subprogram>: Call
1305 read_func_scope for Rust.
1306
eed2386e
YQ
13072016-07-22 Yao Qi <yao.qi@linaro.org>
1308
1309 * ctf.c (ctf_traceframe_info): Call bt_ctf_get_uint64 rather than
1310 bt_ctf_get_int64.
1311
12df5c00
TT
13122016-07-21 Tom Tromey <tom@tromey.com>
1313
1314 * rust-lang.c (rust_tuple_struct_type_p): Return false for empty
1315 structs.
1316 * rust-exp.y (struct_expr_list): Allow empty elements.
1317
305450ed
TT
13182016-07-21 Tom Tromey <tom@tromey.com>
1319
1320 * configure: Rebuild.
1321 * warning.m4 (AM_GDB_WARNINGS) <build_warnings>: Add
1322 -Wunused-but-set-parameter, -Wunused-but-set-variable.
1323
f515a1d6
PA
13242016-07-21 Pedro Alves <palves@redhat.com>
1325
1326 * go32-nat.c (go32_create_inferior): Add cast.
1327 * ser-go32.c (dos_noop): Delete.
1328 (dos_flush_output, dos_setparity, dos_drain_output): New
1329 functions.
1330 (dos_write): Add cast.
1331 (dos_ops): Use dos_flush_output, dos_setparity and
1332 dos_drain_output.
1333 * top.c (do_chdir_cleanup): Add cast.
1334
c25b7cce
PA
13352016-07-21 Pedro Alves <palves@redhat.com>
1336
1337 * windows-nat.c (handle_exception): Remove "th".
1338
e3821cca
PA
13392016-07-21 Pedro Alves <palves@redhat.com>
1340
1341 * varobj.c (varobj_value_get_print_value): Move "gdbarch" to block
1342 scope that uses it.
1343
dbaed385
JB
13442016-07-20 John Baldwin <jhb@FreeBSD.org>
1345
1346 * fbsd-nat.c (fbsd_enable_proc_events): Enable "PTRACE_VFORK"
1347 events.
1348 (fbsd_pending_vfork_done): Only define if "PTRACE_VFORK" is not
1349 defined.
1350 (fbsd_add_vfork_done): Likewise.
1351 (fbsd_is_vfork_done_pending): Likewise.
1352 (fbsd_next_vfork_done): Likewise.
1353 (fbsd_resume): Only ignore pending vfork done events if
1354 "PTRACE_VFORK" is not defined.
1355 (fbsd_wait): Only look for pending vfork done events if
1356 "PTRACE_VFORK" is not defined.
1357 [PTRACE_VFORK]: Handle "PL_FLAG_VFORKED" and "PL_FLAG_VFORK_DONE"
1358 events.
1359 (fbsd_follow_fork): Only fake a vfork done event if "PTRACE_VFORK"
1360 is not defined.
1361
5fa14c6b
JB
13622016-07-20 John Baldwin <jhb@FreeBSD.org>
1363
1364 * fbsd-nat.c (fbsd_wait): Use "fbsd_enable_proc_events" on
1365 new child processes.
1366
da95a26c
JB
13672016-07-20 John Baldwin <jhb@FreeBSD.org>
1368
1369 * fbsd-nat.c (fbsd_enable_lwp_events): Remove function.
1370 (fbsd_enable_proc_events): New function.
1371 (fbsd_enable_follow_fork): Remove function.
1372 (fbsd_post_startup_inferior): Use "fbsd_enable_proc_events".
1373 (fbsd_post_attach): Likewise.
1374
bc7b765a
JB
13752016-07-15 John Baldwin <jhb@FreeBSD.org>
1376
1377 * common/signals.c (gdb_signal_from_host): Handle SIGLIBRT.
1378 (do_gdb_signal_to_host): Likewise.
1379 * infrun.c (_initialize_infrun): Pass GDB_SIGNAL_LIBRT through to
1380 programs.
1381 * proc-events.c (signal_table): Add entry for SIGLIBRT.
1382
7f131b39
TT
13832016-07-14 Tom Tromey <tom@tromey.com>
1384
1385 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Add missing
1386 newline.
1387
78cc6c2d
TT
13882016-07-14 Tom Tromey <tom@tromey.com>
1389
1390 * mips-tdep.c (micromips_scan_prologue): Remove "frame_addr".
1391 (mips_o32_push_dummy_call): Remove "stack_used_p".
1392 * aarch64-tdep.c (aarch64_record_data_proc_imm): Remove
1393 "insn_bit28".
1394 * rust-lang.c (rust_print_type): Remove "len".
1395 * rust-exp.y (super_name): Remove "current_len".
1396 * python/py-framefilter.c (py_print_type): Remove "type".
1397 * mdebugread.c (parse_partial_symbols): Remove
1398 "past_first_source_file".
1399 <N_SO>: Remove "valu", "first_so_symnum", "prev_textlow_not_set".
1400 * m2-valprint.c (m2_print_unbounded_array): Remove
1401 "content_type".
1402 (m2_val_print): Remove "i".
1403 * linespec.c (unexpected_linespec_error): Remove "cleanup".
1404 * f-valprint.c (f_val_print): Remove "i".
1405 * elfread.c (elf_symtab_read): Remove "offset".
1406 * dwarf2-frame.c (dwarf2_fetch_cfa_info): Remove "addr_size".
1407 * jit.c (jit_dealloc_cache): Remove "i" and "frame_arch".
1408
ac298888
TT
14092016-07-14 Tom Tromey <tom@tromey.com>
1410
1411 * arch-utils.c (default_skip_permanent_breakpoint): Remove
1412 "bp_insn".
1413 * disasm.c (do_assembly_only): Remove "num_displayed".
1414 * dwarf2read.c (read_abbrev_offset): Remove "length".
1415 (dwarf_decode_macro_bytes) <DW_MACINFO_vendor_ext>: Remove
1416 "constant".
1417 * m32c-tdep.c (make_regs): Remove "r2hl", "r3hl", and "intbhl".
1418 * microblaze-tdep.c (microblaze_frame_cache): Remove "func".
1419 * tracefile.c (trace_save): Remove "status".
1420
764c99c1
TT
14212016-07-14 Tom Tromey <tom@tromey.com>
1422
1423 * symfile.c (simple_overlay_update_1): Remove initialization
1424 of "size", and commented-out code.
1425 (simple_overlay_update): Likewise.
1426
cecc8b99
TT
14272016-07-14 Tom Tromey <tom@tromey.com>
1428
1429 * tui/tui-winsource.c (tui_show_source_line): Use getcurx.
1430 * tui/tui-io.c (tui_puts): Use getcurx.
1431 (tui_redisplay_readline): Likewise.
1432
821fc4ae
TT
14332016-07-14 Tom Tromey <tom@tromey.com>
1434
1435 * inflow.c (child_terminal_ours_1): Use ATTRIBUTE_UNUSED.
1436
537d9b85
TT
14372016-07-14 Tom Tromey <tom@tromey.com>
1438
1439 * corefile.c (reopen_exec_file): Only examine st.st_mtime if stat
1440 succeeded.
1441
dac790e1
TT
14422016-07-13 Tom Tromey <tom@tromey.com>
1443
1444 PR python/15620, PR python/18620:
1445 * python/py-evts.c (gdbpy_initialize_py_events): Call
1446 add_new_registry for new events.
1447 * python/py-events.h (events_object) <breakpoint_created,
1448 breakpoint_deleted, breakpoint_modified>: New fields.
1449 * python/py-breakpoint.c (gdbpy_breakpoint_created): Emit the
1450 breakpoint changed event.
1451 (gdbpy_breakpoint_deleted): Emit the breakpoint deleted event.
1452 (gdbpy_breakpoint_modified): New function.
1453 (gdbpy_initialize_breakpoints): Attach to the breakpoint modified
1454 observer.
1455
93daf339
TT
14562016-07-13 Tom Tromey <tom@tromey.com>
1457
1458 PR python/17698:
1459 * NEWS: Update.
1460 * python/py-breakpoint.c (bppy_get_pending): New function.
1461 (breakpoint_object_getset): Add entry for "pending".
1462 * breakpoint.h (pending_breakpoint_p): Declare.
1463 * breakpoint.c (pending_breakpoint_p): New function.
1464
43684a7b
TT
14652016-07-13 Tom Tromey <tom@tromey.com>
1466
1467 * python/py-breakpoint.c (bppy_get_visibility)
1468 (gdbpy_breakpoint_created): Use user_breakpoint_p.
1469
6571a381
TT
14702016-07-13 Tom Tromey <tom@tromey.com>
1471
1472 PR cli/18053:
1473 * jit.c (jit_reader_load_command): Use tilde_expand.
1474 (_initialize_jit): Fix help for jit-reader-unload. Set completer
1475 for new commands.
1476
e0f3fd7c
TT
14772016-07-12 Tom Tromey <tom@tromey.com>
1478
1479 PR python/19293:
1480 * python/lib/gdb/command/unwinders.py (do_enable_unwinder): Call
1481 gdb.invalidate_cached_frames.
1482 * python/lib/gdb/unwinder.py (register_unwinder): Call
1483 gdb.invalidate_cached_frames.
1484 * python/python.c (gdbpy_invalidate_cached_frames): New function.
1485 (python_GdbMethods): Add entry for invalidate_cached_frames.
1486
41c977aa
WT
14872016-07-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
1488
1489 * cp-namespace.c (cp_lookup_bare_symbol): Initialize
1490 lang_this.symbol.
1491
4f19a0e6
WT
14922016-07-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
1493
1494 * cp-namespace.c (cp_lookup_bare_symbol): Use language passed as
1495 parameter to look for the symbol "this".
1496
1497
fb36c6bf
JB
14982016-07-06 John Baldwin <jhb@FreeBSD.org>
1499
1500 * h8300-tdep.c (h8300_print_register): Remove extraneous parentheses.
1501
db297a65
JB
15022016-07-06 John Baldwin <jhb@FreeBSD.org>
1503
1504 * ada-lang.c (ada_unpack_from_contents): Use unsigned constants with
1505 left shifts.
1506
9ca10714
JB
15072016-07-06 John Baldwin <jhb@FreeBSD.org>
1508
1509 * sh64-tdep.c (sh64_analyze_prologue): Set "uses_fp" when setting
1510 the MEDIA_FP_REGNUM register.
1511
d66ff635
JB
15122016-07-06 John Baldwin <jhb@FreeBSD.org>
1513
1514 * score-tdep.c (score7_malloc_and_get_memblock): Remove check for
1515 negative size.
1516
ee950322
JB
15172016-07-06 John Baldwin <jhb@FreeBSD.org>
1518
1519 * fbsd-nat.c (fbsd_is_vfork_done_pending): Fix return type.
1520
1040b979
YQ
15212016-07-06 Yao Qi <yao.qi@linaro.org>
1522
1523 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Don't call
1524 arm_vfp_cprc_sub_candidate for static field.
1525
42d94011
MG
15262016-07-06 Manish Goregaokar <manish@mozilla.com>
1527
1528 * rust-lang.c (rust_subscript): Allow subscripting pointers
1529
13cdc2af
JK
15302016-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1531
1532 * configure: Regenerate.
1533 * configure.ac (HAVE_LIBBABELTRACE): Fix pos variable dereference.
1534
09c98b44
DB
15352016-07-01 Don Breazeal <donb@codesourcery.com>
1536
1537 * remote.c (remote_get_memory_xfer_limit): New function.
1538 * target-delegates.c: Regenerate.
1539 * target.c (memory_xfer_partial): Call
1540 target_ops.to_get_memory_xfer_limit.
1541 * target.h (struct target_ops) <to_get_memory_xfer_limit>: New
1542 member.
1543
2c5c2a33
JB
15442016-07-01 John Baldwin <jhb@FreeBSD.org>
1545
1546 * fbsd-nat.c (struct fbsd_fork_child_info): Rename to ...
1547 (struct fbsd_fork_info): ... this.
1548 (struct fbsd_fork_info) <child>: Rename to ...
1549 (struct fbsd_fork_info) <ptid>: ... this.
1550 (fbsd_pending_children): Update type.
1551 (fbsd_remember_child): Update type and field name.
1552 (fbsd_is_child_pending): Likewise.
1553 (fbsd_pending_vfork_done): New variable.
1554 (fbsd_is_vfork_done_pending): New function.
1555 (fbsd_next_vfork_done): New function.
1556 (fbsd_resume): Don't resume processes with a pending vfork done
1557 event.
1558 (fbsd_wait): Report pending vfork done events.
1559 (fbsd_follow_fork): Delay and record a pending vfork done event
1560 for a vfork parent when detaching the child.
1561
8607ea63
JB
15622016-07-01 John Baldwin <jhb@FreeBSD.org>
1563
1564 * fbsd-nat.c (super_resume): Move earlier next to "super_wait".
1565 (resume_one_thread_cb): Move below fork following helper code.
1566 (resume_all_threads_cb): Likewise.
1567 (fbsd_resume): Likewise.
1568
bb2a62e6
JB
15692016-07-01 John Baldwin <jhb@FreeBSD.org>
1570
1571 * fbsd-nat.c (fbsd_follow_fork): Only detach child if
1572 "detach_fork" is true.
1573
5077bfff
JB
15742016-07-01 John Baldwin <jhb@FreeBSD.org>
1575
1576 * x86bsd-nat.c: Include 'gdbthread.h'.
1577 (x86bsd_dr_set): Set debug registers on all threads belonging to
1578 the current inferior.
1579
a3405d12
JB
15802016-07-01 John Baldwin <jhb@FreeBSD.org>
1581
1582 * Makefile.in [HFILES_NO_SRCDIR]: Replace 'amd64bsd-nat.h' with
1583 'x86bsd-nat.h'.
1584 * amd64bsd-nat.c: Include 'x86bsd-nat.h' instead of
1585 'amd64bsd-nat.h'.
1586 (amd64bsd_xsave_len): Rename and move to x86bsd-nat.c.
1587 (amd64bsd_fetch_inferior_registers): Replace 'amd64bsd_xsave_len'
1588 with 'x86bsd_xsave_len'.
1589 (amd64bsd_store_inferior_registers): Likewise.
1590 (amd64bsd_target): Inherit from x86bsd_target.
1591 (amd64bsd_dr_get): Rename and move to x86bsd-nat.c.
1592 (amd64bsd_dr_set): Likewise.
1593 (amd64bsd_dr_set_control): Likewise.
1594 (amd64bsd_dr_set_addr): Likewise.
1595 (amd64bsd_dr_get_addr): Likewise.
1596 (amd64bsd_dr_get_status): Likewise.
1597 (amd64bsd_dr_get_control): Likewise.
1598 * amd64fbsd-nat.c: Include 'x86bsd-nat.h' instead of
1599 'amd64bsd-nat.h'.
1600 (super_mourn_inferior): Move to x86bsd-nat.c.
1601 (amd64fbsd_mourn_inferior): Rename and move to x86bsd-nat.c.
1602 (amd64fbsd_read_description): Replace 'amd64bsd_xsave_len' with
1603 'x86bsd_xsave_len'.
1604 (_initialize_amd64fbsd_nat): Remove x86 watchpoint setup and
1605 mourn_inferior' target op.
1606 * config/i386/fbsd.mh (NATDEPFILES): Add x86bsd-nat.o.
1607 * config/i386/fbsd64.mh: Likewise.
1608 * config/i386/nbsd64.mh: Likewise.
1609 * config/i386/nbsdelf.mh: Likewise.
1610 * config/i386/obsd.mh: Likewise.
1611 * config/i386/obsd64.mh: Likewise.
1612 * i386bsd-nat.c: Include 'x86bsd-nat.h'.
1613 (i386bsd_xsave_len): Rename and move to x86bsd-nat.c.
1614 (i386bsd_fetch_inferior_registers): Replace 'i386bsd_xsave_len'
1615 with 'x86bsd_xsave_len'.
1616 (i386bsd_store_inferior_registers): Likewise.
1617 (i386bsd_target): Inherit from x86bsd_target.
1618 (i386bsd_dr_get): Rename and move to x86bsd-nat.c.
1619 (i386bsd_dr_set): Likewise.
1620 (i386bsd_dr_set_control): Likewise.
1621 (i386bsd_dr_set_addr): Likewise.
1622 (i386bsd_dr_get_addr): Likewise.
1623 (i386bsd_dr_get_status): Likewise.
1624 (i386bsd_dr_get_control): Likewise.
1625 * i386bsd-nat.h (i386bsd_xsave_len): Remove.
1626 (i386bsd_dr_set_control): Remove.
1627 (i386bsd_dr_set_addr): Remove.
1628 (i386bsd_dr_get_addr): Remove.
1629 (i386bsd_dr_get_status): Remove.
1630 (i386bsd_dr_get_control): Remove.
1631 * i386fbsd-nat.c: Include 'x86bsd-nat.h'.
1632 (i386fbsd_read_description): Replace 'i386bsd_xsave_len' with
1633 'x86bsd_xsave_len'.
1634 (_initialize_i386fbsd_nat): Remove x86 watchpoint setup and
1635 mourn_inferior' target op.
1636 * x86bsd-nat.c: New file.
1637 * x86bsd-nat.h: New file.
1638
20aa2c60
PA
16392016-07-01 Pedro Alves <palves@redhat.com>
1640 Tom Tromey <tom@tromey.com>
1641
1642 * jit.c (jit_reader_load_command): Call reinit_frame_cache and
1643 jit_inferior_created_hook.
1644 (jit_reader_unload_command): Call reinit_frame_cache and
1645 jit_inferior_exit_hook.
1646 * jit.c (struct jit_unwind_private) <registers>: Delete field.
1647 <regcache>: New field.
1648 (jit_unwind_reg_set_impl): Set the register's value in the
1649 regcache. Free the passed-in gdb_reg_value.
1650 (jit_dealloc_cache): Adjust to free the regcache.
1651 (jit_frame_sniffer): Allocate a regcache instead of an array of
1652 gdb_reg_value pointers.
1653 (jit_frame_this_id): Adjust.
1654 (jit_frame_prev_register): Read raw registers off of the regcache
1655 instead of from the gdb_reg_value pointer array. Use
1656 gdbarch_pseudo_register_read_value to read pseudo registers.
1657 * regcache.c (regcache_raw_set_cached_value): New function,
1658 factored out from ...
1659 (regcache_raw_write): ... here.
1660 * regcache.h (regcache_raw_set_cached_value): Declare.
1661
ced2dffb
PA
16622016-07-01 Pedro Alves <palves@redhat.com>
1663 Antoine Tremblay <antoine.tremblay@ericsson.com>
1664
1665 * inf-ptrace.c (inf_ptrace_detach_success): New function, factored
1666 out from ...
1667 (inf_ptrace_detach): ... here.
1668 * inf-ptrace.h (inf_ptrace_detach_success): New declaration.
1669 * linux-nat.c (get_pending_status): Rename to ...
1670 (get_detach_signal): ... this, and return a host signal instead of
1671 filling in a wait status.
1672 (detach_one_lwp): New function, factored out from detach_callback
1673 and adjusted to handle detaching from a zombie thread.
1674 (detach_callback): Skip the leader thread.
1675 (linux_nat_detach): No longer defer to inf_ptrace_detach to detach
1676 the leader thread, nor build a signal string to pass down.
1677 Instead, use target_announce_detach, detach_one_lwp and
1678 inf_ptrace_detach_success.
1679
63000888
PA
16802016-07-01 Pedro Alves <palves@redhat.com>
1681
1682 * breakpoint.c (breakpoint_init_inferior): Discard watchpoint
1683 locations.
1684 * infcmd.c (detach_command): Call breakpoint_init_inferior.
1685
0f48b757
PA
16862016-07-01 Pedro Alves <palves@redhat.com>
1687
1688 * darwin-nat.c (darwin_detach): Use target_announce_detach.
1689 * inf-ptrace.c (inf_ptrace_detach): Likewise.
1690 * nto-procfs.c (procfs_detach): Likewise.
1691 * remote.c (remote_detach_1): Likewise.
1692 * target.c (target_announce_detach): New function.
1693 * target.h (target_announce_detach): New declaration.
1694
803b47e5
TT
16952016-06-29 Tom Tromey <tom@tromey.com>
1696
1697 PR python/20129:
1698 * python/lib/gdb/command/frame_filters.py (_do_enable_frame_filter)
1699 (SetFrameFilterPriority._set_filter_priority): Use "frame_filter",
1700 not "name".
1701
9d78f827
TT
17022016-06-29 Tom Tromey <tom@tromey.com>
1703
1704 PR gdb/17210:
1705 * target.c (free_memory_read_result_vector): Take a pointer to the
1706 VEC as an argument.
1707 (read_memory_robust): Install a cleanup for "result".
1708 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update.
1709
a405c228
MG
17102016-06-29 Manish Goregaokar <manish@mozilla.com>
1711
9bf74fb2
MG
1712 * rust-lang.c (rust_get_disr_info): Initialize saveptr to NULL.
1713
17142016-06-29 Manish Goregaokar <manish@mozilla.com>
1715
a405c228
MG
1716 * rust-lang.c (rust_get_disr_info): Use strtok_r instead of strsep.
1717
2ac09a5b
YQ
17182016-06-28 Yao Qi <yao.qi@linaro.org>
1719
1720 * aarch64-tdep.c (aarch64_displaced_step_b): Use int64_t for
1721 variable new_offset.
1722
921d8f54
MG
17232016-06-27 Manish Goregaokar <manish@mozilla.com>
1724
6763d566 1725 * rust-lang.c (rust_print_type, rust_decorations): Print unit
0b08e1f3
PA
1726 types as "()".
1727 (rust_print_type): Omit return type for functions returning unit.
921d8f54 1728
f4952523
PMR
17292016-06-25 Pierre-Marie de Rodat <derodat@adacore.com>
1730
1731 * python/py-breakpoint.c (bppy_init): Clear bppy_pending_object
1732 when there is an error during the breakpoint creation.
1733
9e8a8ea8
TT
17342016-06-25 Tom Tromey <tom@tromey.com>
1735
1736 * rust-lang.c (rust_get_disr_info, rust_print_type): Fix
1737 formatting.
1738
b5a4b3c5
MG
17392016-06-25 Manish Goregaokar <manish@mozilla.com>
1740
1741 PR gdb/20239
1742 * rust-lang.c (rust_get_disr_info): Correctly interpret
1743 NonZero-optimized enums of arbitrary depth.
1744 (rust_print_type): Correctly print NonZero-optimized
1745 enums.
1746
6b850546
DT
17472016-06-24 David Taylor <dtaylor@emc.com>
1748
1749 PR gdb/17520 Structure offset wrong when 1/4 GB or greater.
1750 * c-lang.h: Change all parameters, variables, and struct or union
1751 members used as struct or union fie3ld offsets from int to
1752 LONGEST.
1753 * c-valprint.c: Likewise.
1754 * cp-abi.c: Likewise.
1755 * cp-abi.h: Likewise.
1756 * cp-valprint.c: Likewise.
1757 * d-valprint.c: Likewise.
1758 * dwarf2loc.c: Likewise.
1759 * eval.c: Likewise.
1760 * extension-priv.h: Likewise.
1761 * extension.c: Likewise.
1762 * extension.h: Likewise.
1763 * findvar.c: Likewise.
1764 * gdbtypes.h: Likewise.
1765 * gnu-v2-abi.c: Likewise.
1766 * gnu-v3-abi.c: Likewise.
1767 * go-valprint.c: Likewise.
1768 * guile/guile-internal.h: Likewise.
1769 * guile/scm-pretty-print.c: Likewise.
1770 * jv-valprint.c Likewise.
1771 * opencl-lang.c: Likewise.
1772 * p-lang.h: Likewise.
1773 * python/py-prettyprint.c: Likewise.
1774 * python/python-internal.h: Likewise.
1775 * spu-tdep.c: Likewise.
1776 * typeprint.c: Likewise.
1777 * valarith.c: Likewise.
1778 * valops.c: Likewise.
1779 * valprint.c: Likewise.
1780 * valprint.h: Likewise.
1781 * value.c: Likewise.
1782 * value.h: Likewise.
1783 * p-valprint.c: Likewise.
1784 * c-typeprint.c (c_type_print_base): When printing offset, use
1785 plongest, not %d.
1786 * gdbtypes.c (recursive_dump_type): Ditto.
1787
2907f414
DT
17882016-06-24 David Taylor <david.taylor@emc.com>
1789
1790 * MAINTAINERS (Write After Approval): Add David Taylor.
1791
e6cdd38e
JB
17922016-06-24 John Baldwin <jhb@FreeBSD.org>
1793
1794 * configure.ac: Check for support for system call LWP fields on
1795 FreeBSD.
1796 * config.in, configure: Rebuild.
1797 * data-directory/Makefile.in (SYSCALLS_FILES): Add freebsd.xml.
1798 * fbsd-nat.c (fbsd_wait) [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]:
1799 Report system call events.
1800 [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]
1801 (fbsd_set_syscall_catchpoint): New function.
1802 (fbsd_nat_add_target) [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]:
1803 Set "to_set_syscall_catchpoint" to "fbsd_set_syscall_catchpoint".
1804 * fbsd-tdep.c: Include xml-syscall.h
1805 (fbsd_get_syscall_number): New function.
1806 (fbsd_init_abi): Set XML system call file name.
1807 Add "get_syscall_number" gdbarch method.
1808 * syscalls/freebsd.xml: New file.
1809
82372b2f
JB
18102016-06-24 John Baldwin <jhb@FreeBSD.org>
1811
1812 * fbsd-tdep.c: Include "auxv.h".
1813 (fbsd_print_auxv_entry): New function.
1814 (fbsd_init_abi): Install gdbarch "print_auxv_entry" method.
1815
2faa3447
JB
18162016-06-24 John Baldwin <jhb@FreeBSD.org>
1817
1818 * auxv.c (fprint_auxv_entry): New function.
1819 (default_print_auxv_entry): New function.
1820 (fprint_target_auxv): Use gdbarch_print_auxv_entry.
1821 * auxv.h (enum auxv_format): New enum.
1822 (fprint_auxv_entry): Declare.
1823 (default_print_auxv_entry): Declare.
1824 * gdbarch.sh (print_auxv_entry): New.
1825 * gdbarch.c, gdbarch.h: Re-generated.
1826
7697fc9e
JB
18272016-06-24 John Baldwin <jhb@FreeBSD.org>
1828
1829 * fbsd-nat.c [KERN_PROC_AUXV] New variable super_xfer_partial.
1830 (fbsd_xfer_partial): New function.
1831 (fbsd_nat_add_target) [KERN_PROC_AUXV] Set "to_xfer_partial" to
1832 "fbsd_xfer_partial".
1833
8b302db8
TT
18342016-06-23 Tom Tromey <tom@tromey.com>
1835
1836 * symtab.c (symbol_find_demangled_name): Loop over languages and
1837 use language_sniff_from_mangled_name.
1838 * rust-lang.c (rust_sniff_from_mangled_name): New function.
1839 (rust_language_defn): Update.
1840 * p-lang.c (pascal_language_defn): Update.
1841 * opencl-lang.c (opencl_language_defn): Update.
1842 * objc-lang.c (objc_sniff_from_mangled_name): New function.
1843 (objc_language_defn): Update.
1844 * m2-lang.c (m2_language_defn): Update.
1845 * language.h (struct language_defn) <la_sniff_from_mangled_name>: New
1846 field.
1847 (language_sniff_from_mangled_name): Declare.
1848 * language.c (language_sniff_from_mangled_name): New function.
1849 (unknown_language_defn, auto_language_defn, local_language_defn):
1850 Update.
1851 * jv-lang.c (java_sniff_from_mangled_name): New function.
1852 (java_language_defn): Use it.
1853 * go-lang.c (go_sniff_from_mangled_name): New function.
1854 (go_language_defn): Use it.
1855 * f-lang.c (f_language_defn): Update.
1856 * defs.h (enum language): Reorder.
1857 * d-lang.c (d_sniff_from_mangled_name): New function.
1858 (d_language_defn): Use it.
1859 * cp-support.h (gdb_sniff_from_mangled_name): Declare.
1860 * cp-support.c (gdb_sniff_from_mangled_name): New function.
1861 * c-lang.c (c_language_defn, cplus_language_defn)
1862 (asm_language_defn, minimal_language_defn): Update.
1863 * ada-lang.c (ada_sniff_from_mangled_name): New function.
1864 (ada_language_defn): Use it.
1865
56618e20
TT
18662016-06-23 Tom Tromey <tom@tromey.com>
1867
1868 * ada-lang.c (ada_extensions): New array.
1869 (ada_language_defn): Use it.
1870 * c-lang.c (c_extensions): New array.
1871 (c_language_defn): Use it.
1872 (cplus_extensions): New array.
1873 (cplus_language_defn): Use it.
1874 (asm_extensions): New array.
1875 (asm_language_defn): Use it.
1876 (minimal_language_defn): Update.
1877 * d-lang.c (d_extensions): New array.
1878 (d_language_defn): Use it.
1879 * f-lang.c (f_extensions): New array.
1880 (f_language_defn): Use it.
1881 * go-lang.c (go_language_defn): Update.
1882 * jv-lang.c (java_extensions): New array.
1883 (java_language_defn): Use it.
1884 * language.c (add_language): Call add_filename_language.
1885 (unknown_language_defn, auto_language_defn, local_language_defn):
1886 Update.
1887 * language.h (struct language_defn) <la_filename_extensions>: New
1888 field.
1889 * m2-lang.c (m2_language_defn): Update.
1890 * objc-lang.c (objc_extensions): New array.
1891 (objc_language_defn): Use it.
1892 * opencl-lang.c (opencl_language_defn): Update.
1893 * p-lang.c (p_extensions): New array.
1894 (pascal_language_defn): Use it.
1895 * rust-lang.c (rust_extensions): New array.
1896 (rust_language_defn): Use it.
1897 * symfile.c (add_filename_language): No longer static. Make "ext"
1898 const.
1899 (init_filename_language_table): Remove.
1900 (_initialize_symfile): Update.
1901 * symfile.h (add_filename_language): Declare.
1902
3fcf0b0d
TT
19032016-06-23 Tom Tromey <tom@tromey.com>
1904
1905 * symfile.c (filename_language_table): Now a VEC.
1906 (fl_table_size, fl_table_next): Remove.
1907 (add_filename_language): Use VEC_safe_push.
1908 (set_ext_lang_command, info_ext_lang_command)
1909 (deduce_language_from_filename): Use VEC_iterate.
1910 (init_filename_language_table): Use VEC_empty.
1911
0c72ed4c
TT
19122016-06-23 Tom Tromey <tom@tromey.com>
1913
1914 * python/python.c (gdbpy_parameter): Now static.
1915 * python/python-internal.h (gdbpy_parameter): Don't declare.
1916
17621150
TT
19172016-06-23 Tom Tromey <tom@tromey.com>
1918
1919 PR gdb/16483:
1920 * python/lib/gdb/command/frame_filters.py
1921 (InfoFrameFilter.list_frame_filters): Rename to print_list. Print
1922 nothing if no filters found. Return value indicating whether
1923 filters were printed.
1924 (InfoFrameFilter.print_list): Remove.
1925 (InfoFrameFilter.invoke): Print message if no frame filters
1926 found.
1927
04d59df6
WT
19282016-06-21 Walfred Tedeschi <walfred.tedeschi@intel.com>
1929
1930 * f-valprint.c (f_val_print): Add field names for printing
1931 derived types fields.
1932
34a60ddb
AA
19332016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1934
1935 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Fix typo
1936 in name of last-break regset.
1937
49940788
PA
19382016-06-21 Pedro Alves <palves@redhat.com>
1939
1940 * fork-child.c (fork_inferior): Switch the child to the main UI
1941 right after vfork. Save/restore the current UI in the parent.
1942 Flush outputs of the main UI instead of the current UI.
1943
468afe6c
PA
19442016-06-21 Pedro Alves <palves@redhat.com>
1945
1946 * breakpoint.c (watchpoint_check): Send watchpoint-deleted output
1947 to all UIs.
1948
86f78169
PA
19492016-06-21 Pedro Alves <palves@redhat.com>
1950
1951 * NEWS: Mention support for running interpreters on separate
1952 UIs and the new new-ui command.
1953
60eb5395
PA
19542016-06-21 Pedro Alves <palves@redhat.com>
1955
1956 * interps.c (set_top_level_interpreter): New function, factored
1957 out from captured_main.
1958 (interpreter_completer): Make extern.
1959 * interps.h (set_top_level_interpreter, interpreter_completer):
1960 New declarations.
1961 (captured_main): Use set_top_level_interpreter.
1962 * top.c [!O_NOCTTY] (O_NOCTTY): Define as 0.
1963 (open_terminal_stream, new_ui_command): New functions.
1964 (init_main): Install the "new-ui" command.
1965
268a799a
PA
19662016-06-21 Pedro Alves <palves@redhat.com>
1967
1968 * cli/cli-script.c (read_next_line): Adjust to per-UI stdin.
1969 (read_command_lines): Use input_interactive_p instead of
1970 input_from_terminal_p.
1971 * defs.h (struct ui): Forward declare.
1972 (input_from_terminal_p): Rename to ...
1973 (input_interactive_p): ... this.
1974 * event-top.c (stdin_event_handler): Pass 0 as from_tty argument
1975 to quit_command.
1976 (command_handler): Adjust to per-UI stdin.
1977 (handle_line_of_input): Adjust to per-UI stdin and use
1978 input_interactive_p instead of ISATTY and input_from_terminal_p.
1979 (gdb_readline_no_editing_callback): Adjust to per-UI stdin.
1980 (command_line_handler): Always pass true as "from_tty" parameter
1981 of handle_line_of_input and execute_command.
1982 (async_sigterm_handler): Pass 0 as from_tty argument to
1983 quit_command.
1984 * inflow.c (interactive_mode, show_interactive_mode): Moved to ...
1985 (gdb_has_a_terminal): Don't check interactive_mode here.
1986 (_initialize_inflow): Don't install "set interactive-mode" here.
1987 * main.c (captured_command_loop): Adjust to per-UI stdin.
1988 * mi/mi-interp.c (mi_execute_command_wrapper): Adjust to per-UI
1989 stdin.
1990 * top.c (new_ui): Save the stdin stream and whether it's a tty.
1991 (dont_repeat): Adjust to per-UI stdin.
1992 (command_line_input): Adjust to per-UI stdin and to use
1993 input_interactive_p.
1994 (quit_force): Write history if any UI supports interactive input.
1995 (interactive_mode, show_interactive_mode): Move here, from
1996 inflow.c.
1997 (input_from_terminal_p): Rename to ...
1998 (input_interactive_p): ... this, and check the "interactive_mode"
1999 global instead of calling gdb_has_a_terminal.
2000 (_initialize_top): Install "set interactive-mode" here.
2001 * top.h (struct ui) <stdin_stream, input_interactive_p>: New
2002 fields.
2003 * utils.c (quit): Pass 0 as from_tty argument to quit_force.
2004 (defaulted_query): Adjust to per-UI stdin and to use
2005 input_interactive_p.
2006
07169ff7
PA
20072016-06-21 Pedro Alves <palves@redhat.com>
2008
2009 * event-top.c (stdin_event_handler): Don't quit gdb if it was a
2010 secondary UI's input stream that closed. Instead, just delete the
2011 UI.
2012
98d9f24e
PA
20132016-06-21 Pedro Alves <palves@redhat.com>
2014
2015 * event-top.c (main_ui_): Delete.
2016 (main_ui, current_ui, ui_list): No longer initialize here.
2017 * main.c (captured_main): UI initialization code factored out to
2018 new new_ui function.
2019 (gdb_main): Wrap captured_main with TRY/CATCH instead of
2020 catch_errors.
2021 * top.c (highest_ui_num): New global.
2022 (new_ui): New function.
2023 * top.h (struct ui) <num>: New field.
2024 (new_ui): New declaration.
2025
eaae60fd
PA
20262016-06-21 Pedro Alves <palves@redhat.com>
2027
2028 * cli/cli-interp.c (cli_on_normal_stop): Bail out early if there's
2029 nothing to print. Use should_print_stop_to_console.
2030 * tui/tui-interp.c (tui_on_normal_stop): Likewise.
2031
8980e177
PA
20322016-06-21 Pedro Alves <palves@redhat.com>
2033
2034 * breakpoint.c (new_until_break_fsm): Add 'cmd_interp' parameter.
2035 (until_break_fsm_should_stop, until_break_fsm_clean_up): Add
2036 thread parameter.
2037 (until_break_command): Pass command interpreter to thread fsm
2038 ctor.
2039 * cli/cli-interp.c (should_print_stop_to_console): Adjust.
2040 * gdbthread.h (struct thread_control_state) <command_interp>:
2041 Delete field.
2042 * infcall.c (new_call_thread_fsm): Add 'cmd_interp' parameter.
2043 Pass it down.
2044 (call_thread_fsm_should_stop): Add thread parameter.
2045 (call_function_by_hand_dummy): Pass command interpreter to thread
2046 fsm ctor. Pass thread pointer to fsm clean up method.
2047 * infcmd.c: Include interps.h.
2048 (struct step_command_fsm) <thread>: Delete field.
2049 (new_step_command_fsm): Add 'cmd_interp' parameter. Pass it down.
2050 (step_command_fsm_prepare): Remove references to fsm's thread
2051 field.
2052 (step_1): Pass command interpreter to thread
2053 fsm ctor. Pass thread pointer to fsm clean up method.
2054 (step_command_fsm_should_stop, step_command_fsm_clean_up): Add
2055 thread parameter and use it.
2056 (new_until_next_fsm): Add 'cmd_interp' parameter. Pass it down.
2057 (until_next_fsm_should_stop, until_next_fsm_clean_up): Add thread
2058 parameter and use it.
2059 (until_next_command): Pass command interpreter to thread fsm ctor.
2060 (struct finish_command_fsm) <thread>: Delete field.
2061 (finish_command_fsm_ops): Add NULL slot for should_notify_stop.
2062 (new_finish_command_fsm): Add 'cmd_interp' parameter and pass it
2063 down. Remove thread parameter and adjust.
2064 (finish_command_fsm_should_stop, finish_command_fsm_clean_up): Add
2065 thread parameter and use it.
2066 (finish_command): Pass command interpreter to thread fsm ctor.
2067 Don't pass thread.
2068 * infrun.c (follow_fork): Move thread fsm to child fork instead of
2069 command interpreter, only.
2070 (clear_proceed_status_thread): Remove reference to command_interp.
2071 (proceed): Don't record the thread's command interpreter.
2072 (clean_up_just_stopped_threads_fsms): Pass thread to fsm clean_up
2073 method.
2074 (fetch_inferior_event): Pass thread to fsm should_stop method.
2075 * thread-fsm.c (thread_fsm_ctor): Add 'cmd_interp' parameter.
2076 Store it.
2077 (thread_fsm_clean_up, thread_fsm_should_stop): Add thread
2078 parameter and pass it down.
2079 * thread-fsm.h (struct thread_fsm) <command_interp>: New field.
2080 (struct thread_fsm_ops) <clean_up, should_stop>: Add thread
2081 parameter.
2082 (thread_fsm_ctor): Add 'cmd_interp' parameter.
2083 (thread_fsm_clean_up, thread_fsm_should_stop): Add thread
2084 parameter.
2085 * thread.c (thread_cancel_execution_command): Pass thread to
2086 thread fsm clean_up method.
2087
26cde2cc
PA
20882016-06-21 Pedro Alves <palves@redhat.com>
2089
2090 * cli/cli-interp.c: Include gdbthread.h and thread-fsm.h.
2091 (should_print_stop_to_console): New function, factored out from
2092 mi_on_normal_stop_1.
2093 * cli/cli-interp.h (should_print_stop_to_console): Declare.
2094 * mi/mi-interp.c (mi_on_normal_stop_1): Use
2095 should_print_stop_to_console. Pass it the current UI's console
2096 interpreter.
2097 * mi/mi-main.c (captured_mi_execute_command): Use the
2098 INTERP_CONSOLE symbol rather than explicit "console".
2099
a8836c93
PA
21002016-06-21 Pedro Alves <palves@redhat.com>
2101
2102 * infcmd.c (prepare_execution_command): Use
2103 all_uis_on_sync_execution_starting.
2104 * infrun.c (all_uis_on_sync_execution_starting): New function.
2105 * infrun.h (all_uis_on_sync_execution_starting): Declare.
2106
3b12939d
PA
21072016-06-21 Pedro Alves <palves@redhat.com>
2108
2109 * annotate.c: Include top.h.
2110 (async_background_execution_p): Delete.
2111 (print_value_flags): Check the UI's prompt state rather then
2112 async_background_execution_p.
2113 * event-loop.c (start_event_loop): Set the prompt state to
2114 PROMPT_NEEDED.
2115 * event-top.c (display_gdb_prompt, async_enable_stdin)
2116 (async_disable_stdin): Check the current UI's prompt state instead
2117 of the sync_execution global.
2118 (command_line_handler): Set the prompt state to PROMPT_NEEDED
2119 before running a command, and display the prompt if still needed
2120 afterwards.
2121 * infcall.c (struct call_thread_fsm) <waiting_ui>: New field.
2122 (new_call_thread_fsm): New parameter 'waiting_ui'. Store it.
2123 (call_thread_fsm_should_stop): Set the prompt state to
2124 PROMPT_NEEDED.
2125 (run_inferior_call): Adjust to temporarily set the prompt state to
2126 PROMPT_BLOCKED instead of using the sync_execution global.
2127 (call_function_by_hand_dummy): Pass the current UI to
2128 new_call_thread_fsm.
2129 * infcmd.c: Include top.h.
2130 (continue_1): Check the current UI's prompt state instead of the
2131 sync_execution global.
2132 (continue_command): Validate global execution state before calling
2133 prepare_execution_command.
2134 (step_1): Call all_uis_check_sync_execution_done.
2135 (attach_post_wait): Don't call async_enable_stdin here. Remove
2136 reference to sync_execution.
2137 * infrun.c (sync_execution): Delete global.
2138 (follow_fork_inferior)
2139 (reinstall_readline_callback_handler_cleanup): Check the current
2140 UI's prompt state instead of the sync_execution global.
2141 (check_curr_ui_sync_execution_done)
2142 (all_uis_check_sync_execution_done): New functions.
2143 (fetch_inferior_event): Call all_uis_check_sync_execution_done
2144 instead of trying to determine whether the global sync execution
2145 changed.
2146 (handle_no_resumed): Check the prompt state of all UIs.
2147 (normal_stop): Emit the no unwait-for even to all PROMPT_BLOCKED
2148 UIs. Emit the "Switching to" notification to all UIs. Enable
2149 stdin in all UIs.
2150 * infrun.h (sync_execution): Delete.
2151 (all_uis_check_sync_execution_done): Declare.
2152 * main.c (captured_command_loop): Don't call
2153 interp_pre_command_loop if the prompt is blocked.
2154 (catch_command_errors, catch_command_errors_const): Adjust.
2155 (captured_main): Set the initial prompt state to PROMPT_NEEDED.
2156 * mi/mi-interp.c (display_mi_prompt): Set the prompt state to
2157 PROMPTED.
2158 (mi_interpreter_resume): Don't clear sync_execution. Remove hack
2159 comment.
2160 (mi_execute_command_input_handler): Set the prompt state to
2161 PROMPT_NEEDED before executing the command, and only display the
2162 prompt if the prompt state is PROMPT_NEEDED afterwards.
2163 (mi_on_resume_1): Adjust to check the prompt state.
2164 * target.c (target_terminal_inferior): Adjust to check the prompt
2165 state.
2166 * top.c (wait_sync_command_done, maybe_wait_sync_command_done)
2167 (execute_command): Check the current UI's prompt state instead of
2168 sync_execution.
2169 * top.h (enum prompt_state): New.
2170 (struct ui) <prompt_state>: New field.
2171 (ALL_UIS): New macro.
2172
dbf30ca3
PA
21732016-06-21 Pedro Alves <palves@redhat.com>
2174
2175 * top.c (gdb_secondary_prompt_depth): Delete.
2176 (gdb_in_secondary_prompt_p): Add ui parameter. Use it.
2177 (gdb_readline_wrapper_cleanup, gdb_readline_wrapper): Adjust to
2178 per-UI gdb_secondary_prompt_depth.
2179 * top.h (struct ui) <secondary_prompt_depth>: New field.
2180
b2d86570
PA
21812016-06-21 Pedro Alves <palves@redhat.com>
2182
2183 * cli/cli-interp.c (cli_interpreter_pre_command_loop): New
2184 function.
2185 (cli_interp_procs): Install it instead of cli_command_loop.
2186 * cli/cli-interp.h (cli_interpreter_pre_command_loop): Declare.
2187 * event-top.c (cli_command_loop): Delete.
2188 * interps.c (interp_new): Remove reference to command_loop_proc.
2189 (current_interp_command_loop): Delete.
2190 (interp_pre_command_loop): New function.
2191 (interp_command_loop_ftype): Delete.
2192 * interps.h (interp_pre_command_loop_ftype): New typedef.
2193 (struct interp_procs) <command_loop_proc>: Delele field.
2194 <pre_command_loop_proc>: New field.
2195 (current_interp_command_loop): Delete declaration.
2196 (interp_pre_command_loop): New declaration.
2197 * main.c (captured_command_loop): Call interp_pre_command_loop
2198 instead of current_interp_command_loop and start an event loop.
2199 * mi/mi-interp.c (mi_command_loop): Delete.
2200 (mi_interpreter_pre_command_loop): New.
2201 (mi_interp_procs): Update.
2202 * tui/tui-interp.c (tui_interp_procs): Install
2203 cli_interpreter_pre_command_loop instead of cli_command_loop.
2204
9204d692
PA
22052016-06-21 Pedro Alves <palves@redhat.com>
2206
2207 * interps.c (current_interpreter): New function.
2208 * interps.h (current_interpreter): New declaration.
2209 * mi/mi-cmds.h (raw_stdout): Delete declaration.
2210 * mi/mi-common.h (struct mi_interp) <raw_stdout,
2211 saved_raw_stdout>: New field.
2212 * mi/mi-interp.c (display_mi_prompt): New parameter 'mi'. Adjust
2213 to per-UI raw_stdout.
2214 (mi_interpreter_init): Adjust to per-UI raw_stdout.
2215 (mi_on_sync_execution_done, mi_execute_command_input_handler)
2216 (mi_command_loop): Pass MI instance to display_mi_prompt.
2217 (mi_on_normal_stop_1, mi_output_running_pid, mi_on_resume_1)
2218 (mi_on_resume): Adjust to per-UI raw_stdout.
2219 (saved_raw_stdout): Delete.
2220 (mi_set_logging): Adjust to per-UI raw_stdout and
2221 saved_raw_stdout.
2222 * mi/mi-main.c (raw_stdout): Delete.
2223 (mi_cmd_gdb_exit, captured_mi_execute_command)
2224 (mi_print_exception, mi_load_progress): Adjust to per-UI
2225 raw_stdout.
2226 (print_diff_now, mi_print_timing_maybe): New ui_file parameter.
2227 Pass it along.
2228 (print_diff): New ui_file parameter. Send output there instead of
2229 raw_stdout.
2230 * mi/mi-main.h (struct ui_file): Forward declare.
2231 (mi_print_timing_maybe): Add ui_file parameter.
2232
05beb275
PA
22332016-06-21 Pedro Alves <palves@redhat.com>
2234
2235 * mi/mi-interp.c (display_mi_prompt): New function.
2236
215d3118
PA
22372016-06-21 Pedro Alves <palves@redhat.com>
2238
2239 * target.c (target_terminal_inferior): Bail out after
2240 unregistering input_fd if not on the main UI.
2241 (target_terminal_ours): Bail out after registering input_fd if not
2242 on the main UI.
2243 (target_terminal_ours_for_output): Bail out if not on the main UI.
2244
c61db772
PA
22452016-06-21 Pedro Alves <palves@redhat.com>
2246
2247 * event-top.c (restore_ui_cleanup): Make extern.
2248 * infrun.c (fetch_inferior_event): Always switch to the main UI.
2249 * top.h (restore_ui_cleanup): Declare.
2250
3c216924
PA
22512016-06-21 Pedro Alves <palves@redhat.com>
2252
2253 PR mi/20034
2254 * cli/cli-interp.c: Include cli-interp.h and event-top.h.
2255 (cli_interpreter_resume): Pass 1 to gdb_setup_readline. Set the
2256 UI's input_handler here.
2257 (cli_interpreter_supports_command_editing): New function.
2258 (cli_interp_procs): Install it.
2259 * cli/cli-interp.h: New file.
2260 * event-top.c (async_command_editing_p): Rename to ...
2261 (set_editing_cmd_var): ... this.
2262 (change_line_handler): Add parameter 'editing', and use it. Bail
2263 early if the interpreter doesn't support editing. Don't touch
2264 readline state if editing is off.
2265 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
2266 (gdb_rl_callback_handler_reinstall): Assert the current UI is the
2267 main UI.
2268 (display_gdb_prompt): Don't call gdb_rl_callback_handler_remove if
2269 not using readline. Check whether the current UI is using command
2270 editing instead of checking the async_command_editing_p global.
2271 (set_async_editing_command): Delete.
2272 (gdb_setup_readline): Add 'editing' parameter. Only allow editing
2273 on the main UI. Don't touch readline state if editing is off.
2274 (gdb_disable_readline): Don't touch readline state if editing is
2275 off.
2276 * event-top.h (gdb_setup_readline): Add 'int' parameter.
2277 (set_async_editing_command): Delete declaration.
2278 (change_line_handler, command_line_handler): Declare.
2279 (async_command_editing_p): Rename to ...
2280 (set_editing_cmd_var): ... this.
2281 * infrun.c (reinstall_readline_callback_handler_cleanup): Check
2282 whether the current UI has editing enabled rather than checking
2283 the async_command_editing_p global.
2284 * interps.c (interp_supports_command_editing): New function.
2285 * interps.h (interp_supports_command_editing_ftype): New typedef.
2286 (struct interp_procs) <supports_command_editing_proc>: New field.
2287 (interp_supports_command_editing): Declare.
2288 * mi/mi-interp.c (mi_interpreter_resume): Pass 0 to
2289 gdb_setup_readline. Don't clear the async_command_editing_p
2290 global. Update comments.
2291 * top.c (gdb_readline_wrapper_line, gdb_readline_wrapper): Check
2292 whether the current UI has editing enabled rather than checking
2293 the async_command_editing_p global. Don't touch readline state if
2294 editing is off.
2295 (undo_terminal_modifications_before_exit): Switch to the main UI.
2296 Unconditionally call gdb_disable_readline.
2297 (set_editing): New function.
2298 (show_async_command_editing_p): Rename to ...
2299 (show_editing): ... this. Show the state of the current UI.
2300 (_initialize_top): Adjust.
2301 * top.h (struct ui) <command_editing>: New field.
2302 * tui/tui-interp.c: Include cli/cli-interp.h.
2303 (tui_resume): Pass 1 to gdb_setup_readline. Set the UI's
2304 input_handler.
2305 (tui_interp_procs): Install
2306 cli_interpreter_supports_command_editing.
2307 * tui/tui-io.c (tui_getc): Check whether the current UI has
2308 editing enabled rather than checking the async_command_editing_p
2309 global.
2310
b6dcde57
PA
23112016-06-21 Pedro Alves <palves@redhat.com>
2312
2313 * top.c: Call gen_ret_current_ui_field_ptr for current_uiout.
2314 * top.h (struct ui) <m_current_uiout>: New field.
2315 * ui-out.c (current_uiout): Delete.
2316 * ui-out.h (current_uiout): Delete.
2317 (current_ui_current_uiout_ptr): New declaration.
2318 (current_uiout): Reimplement as wrapper around
2319 current_ui_current_uiout_ptr.
2320
23ff98d2
PA
23212016-06-21 Pedro Alves <palves@redhat.com>
2322
2323 * ui-out.c (default_ui_out_impl): Delete.
2324 (def_uiout): Delete.
2325 (current_uiout): Set to NULL.
2326 (default_table_begin, default_table_body, default_table_end)
2327 (default_table_header, default_begin, default_end)
2328 (default_field_int, default_field_skip, default_field_string)
2329 (default_field_fmt, default_spaces, default_text, default_message)
2330 (default_wrap_hint, default_flush, default_data_destroy): Delete.
2331
694ec099
PA
23322016-06-21 Pedro Alves <palves@redhat.com>
2333
2334 * event-top.c (gdb_setup_readline): Pass the UI's outstream and
2335 errstream to stdout_fileopen and stderr_fileopen.
2336 * exceptions.c: Include top.h.
2337 (print_flush): Open the current UI's outstream file descriptor,
2338 instead of hardcoding file descriptor 1.
2339 * main.c (captured_main): Save the main UI's out and error
2340 streams. Adjust stderr_fileopen call.
2341 * top.h (struct ui) <outstream, errstream>: New fields.
2342 * ui-file.c (stderr_fileopen): Add stream parameter. Use it
2343 instead of stderr.
2344 * ui-file.h (stderr_fileopen): Add stream parameter and update
2345 comment.
2346
41fd2b0f
PA
23472016-06-21 Pedro Alves <palves@redhat.com>
2348
2349 * event-top.c (input_fd): Delete.
2350 (stdin_event_handler): Switch to the UI whose input descriptor got
2351 the event. Adjust to per-UI input_fd.
2352 (gdb_setup_readline): Don't set the input_fd global. Adjust to
2353 per-UI input_fd.
2354 (gdb_disable_readline): Adjust to per-UI input_fd.
2355 * event-top.h (input_fd): Delete declaration.
2356 * linux-nat.c (linux_nat_terminal_inferior): Don't remove input_fd
2357 from the event-loop here.
2358 (linux_nat_terminal_ours): Don't register input_fd in the
2359 event-loop here.
2360 * main.c (captured_main): Adjust to per-UI input_fd.
2361 * remote.c (remote_terminal_inferior): Don't remove input_fd from
2362 the event-loop here.
2363 (remote_terminal_ours): Don't register input_fd in the event-loop
2364 here.
2365 * target.c: Include top.h and event-top.h.
2366 (target_terminal_inferior): Remove input_fd from the event-loop
2367 here.
2368 (target_terminal_ours): Register input_fd in the event-loop.
2369 * top.h (struct ui) <input_fd>: New field.
2370
f38d3ad1
PA
23712016-06-21 Pedro Alves <palves@redhat.com>
2372
2373 * cli/cli-script.c (execute_user_command, read_next_line)
2374 (read_next_line): Adjust to per-UI instream.
2375 * event-top.c (stdin_event_handler, command_handler)
2376 (handle_line_of_input, command_line_handler)
2377 (gdb_readline_no_editing_callback, async_sigterm_handler)
2378 (gdb_setup_readline): Likewise.
2379 * inflow.c: Include top.h.
2380 (gdb_has_a_terminal, child_terminal_init_with_pgrp)
2381 (gdb_save_tty_state, child_terminal_inferior)
2382 (child_terminal_ours_1, copy_terminal_info): Use the main UI.
2383 (initialize_stdin_serial): Adjust to per-UI instream.
2384 * main.c (captured_command_loop, captured_main): Adjust to per-UI
2385 instream.
2386 * mi/mi-interp.c (mi_execute_command_wrapper): Likewise.
2387 * python/python.c (python_interactive_command): Likewise.
2388 * terminal.h (struct ui): Forward declare.
2389 (initialize_stdin_serial): Add struct ui parameter.
2390 * top.c (instream): Delete.
2391 (do_restore_instream_cleanup, read_command_file, dont_repeat)
2392 (gdb_readline_no_editing, command_line_input)
2393 (input_from_terminal_p, gdb_init): Adjust to per-UI instream.
2394 * top.h (struct ui) <instream>: New field.
2395 (instream): Delete declaration.
2396 (quit): Adjust to per-UI instream.
2397
23982016-06-21 Pedro Alves <palves@redhat.com>
2399
2400 * event-loop.c: Include top.h.
2401 (invoke_async_signal_handlers): Switch to the main UI.
2402 * event-top.c (main_ui_): Update comment.
2403 (main_ui): New global.
2404 * top.h (main_ui): Declare.
2405
73ab01a0
PA
24062016-06-21 Pedro Alves <palves@redhat.com>
2407
2408 * cli/cli-interp.c (cli_interp): Delete.
2409 (as_cli_interp): New function.
2410 (cli_on_normal_stop, cli_on_signal_received)
2411 (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
2412 (cli_on_no_history): Send output to all CLI UIs.
2413 (cli_on_sync_execution_done, cli_on_command_error): Skip output if
2414 the top level interpreter is not a CLI.
2415 (cli_interpreter_init): Don't set cli_interp or install observers
2416 here.
2417 (_initialize_cli_interp): Install observers here.
2418 * event-top.c (main_ui_, ui_list): New globals.
2419 (current_ui): Point to main_ui_.
2420 (restore_ui_cleanup, switch_thru_all_uis_init)
2421 (switch_thru_all_uis_cond, switch_thru_all_uis_next): New
2422 functions.
2423 * mi/mi-interp.c (as_mi_interp): New function.
2424 (mi_interpreter_init): Don't install observers here.
2425 (mi_on_sync_execution_done): Skip output if the top level
2426 interpreter is not a MI.
2427 (mi_new_thread, mi_thread_exit, mi_record_changed)
2428 (mi_inferior_added, mi_inferior_appeared, mi_inferior_exit)
2429 (mi_inferior_removed): Send output to all MI UIs.
2430 (find_mi_interpreter, mi_interp_data): Delete.
2431 (find_mi_interp): New function.
2432 (mi_on_signal_received, mi_on_end_stepping_range)
2433 (mi_on_signal_exited, mi_on_exited, mi_on_no_history): Send output
2434 to all MI UIs.
2435 (mi_on_normal_stop): Rename to ...
2436 (mi_on_normal_stop_1): ... this.
2437 (mi_on_normal_stop): Reimplement, sending output to all MI UIs.
2438 (mi_traceframe_changed, mi_tsv_created, mi_tsv_deleted)
2439 (mi_tsv_modified, mi_breakpoint_created, mi_breakpoint_deleted)
2440 (mi_breakpoint_modified, mi_output_running_pid): Send output to
2441 all MI UIs.
2442 (mi_on_resume): Rename to ...
2443 (mi_on_resume_1): ... this. Don't handle infcalls here.
2444 (mi_on_resume): Reimplement, sending output to all MI UIs.
2445 (mi_solib_loaded, mi_solib_unloaded, mi_command_param_changed)
2446 (mi_memory_changed): Send output to all MI UIs.
2447 (report_initial_inferior): Install observers here.
2448 * top.h (struct ui) <next>: New field.
2449 (ui_list): Declare.
2450 (struct switch_thru_all_uis): New.
2451 (switch_thru_all_uis_init, switch_thru_all_uis_cond)
2452 (switch_thru_all_uis_next): Declare.
2453 (SWITCH_THRU_ALL_UIS): New macro.
2454 * tui/tui-interp.c (tui_interp): Delete global.
2455 (as_tui_interp): New function.
2456 (tui_on_normal_stop, tui_on_signal_received)
2457 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
2458 (tui_on_no_history): Send output to all TUI UIs.
2459 (tui_on_sync_execution_done, tui_on_command_error): Skip output if
2460 the top level interpreter is not a TUI.
2461 (tui_init): Don't set tui_interp or install observers here.
2462 (_initialize_tui_interp): Install observers here.
2463
8322445e
PA
24642016-06-21 Pedro Alves <palves@redhat.com>
2465
2466 * cli/cli-interp.c (cli_uiout): Delete, moved into ...
2467 (struct cli_interp): ... this new structure.
2468 (cli_on_normal_stop, cli_on_signal_received)
2469 (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
2470 (cli_on_no_history): Use interp_ui_out.
2471 (cli_interpreter_init): If top level, set the cli_interp global.
2472 (cli_interpreter_init): Return the interp's data instead of NULL.
2473 (cli_interpreter_resume, cli_interpreter_exec, cli_ui_out): Adjust
2474 to cli_uiout being in the interpreter's data.
2475 (cli_interp_procs): New, factored out from _initialize_cli_interp.
2476 (cli_interp_factory): New function.
2477 (_initialize_cli_interp): Call interp_factory_register.
2478 * interps.c (get_interp_info): New, factored out from ...
2479 (get_current_interp_info): ... this.
2480 (interp_new): Add parameter 'data'. Store it.
2481 (struct interp_factory): New function.
2482 (interp_factory_p): New typedef. Define a VEC_P.
2483 (interpreter_factories): New global.
2484 (interp_factory_register): New function.
2485 (interp_add): Add 'ui' parameter. Use get_interp_info and
2486 interp_lookup_existing.
2487 (interp_lookup): Rename to ...
2488 (interp_lookup_existing): ... this. Add 'ui' parameter. Don't
2489 check for NULL or empty name here.
2490 (interp_lookup): Add 'ui' parameter and reimplement.
2491 (interp_set_temp, interpreter_exec_cmd): Adjust.
2492 (interpreter_completer): Complete on registered interpreter
2493 factories instead of interpreters.
2494 * interps.h (interp_factory_func): New typedef.
2495 (interp_factory_register): Declare.
2496 (interp_new, interp_add): Adjust.
2497 (interp_lookup): Declare.
2498 * main.c (captured_main): Adjust.
2499 * mi/mi-interp.c (mi_cmd_interpreter_exec): Adjust.
2500 (mi_interp_procs): New, factored out from
2501 _initialize_mi_interp.
2502 (mi_interp_factory): New function.
2503 * python/python.c (execute_gdb_command): Adjust.
2504 * tui/tui-interp.c (tui_init): If top level, set the tui_interp
2505 global.
2506 (tui_interp_procs): New.
2507 (tui_interp_factory): New function.
2508 (_initialize_tui_interp): Call interp_factory_register.
2509
cb814510
PA
25102016-06-21 Pedro Alves <palves@redhat.com>
2511
2512 * breakpoint.c (bpstat_do_actions_1): Access the current UI's
2513 async field instead of the interpreter_async global.
2514 * cli/cli-script.c (execute_user_command, while_command)
2515 (if_command, script_from_file): Likewise.
2516 * compile/compile.c: Include top.h instead of interps.h.
2517 (compile_file_command, compile_code_command)
2518 (compile_print_command): Access the current UI's async field
2519 instead of the interpreter_async global.
2520 * guile/guile.c: Include top.h instead of interps.h.
2521 (guile_repl_command, guile_command, gdbscm_execute_gdb_command):
2522 Access the current UI's async field instead of the
2523 interpreter_async global.
2524 * guile/scm-ports.c: Include top.h instead of interps.h.
2525 (ioscm_with_output_to_port_worker): Access the current UI's async
2526 field instead of the interpreter_async global.
2527 * inf-loop.c (inferior_event_handler): Likewise.
2528 * infcall.c (run_inferior_call): Likewise.
2529 * infrun.c (reinstall_readline_callback_handler_cleanup)
2530 (fetch_inferior_event): Likewise.
2531 * interps.c (interpreter_async): Delete.
2532 (struct ui_interp_info): New.
2533 (get_current_interp_info): New function.
2534 (interp_list, current_interpreter, top_level_interpreter_ptr):
2535 Delete.
2536 (interp_add, interp_set, interp_lookup, interp_ui_out)
2537 (current_interp_set_logging, interp_set_temp)
2538 (current_interp_named_p): Adjust to per-UI interpreters.
2539 (command_interpreter): Delete.
2540 (command_interp, current_interp_command_loop, interp_quiet_p)
2541 (interp_exec, interpreter_exec_cmd, interpreter_completer)
2542 (top_level_interpreter, top_level_interpreter_data): Adjust to
2543 per-UI interpreters.
2544 * interps.h (interpreter_async): Delete.
2545 * main.c (captured_command_loop): Access the current UI's async
2546 field instead of the interpreter_async global.
2547 * python/python.c (python_interactive_command, python_command)
2548 (execute_gdb_command): Likewise.
2549 * top.c (maybe_wait_sync_command_done, execute_command_to_string):
2550 Access the current UI's async field instead of the
2551 interpreter_async global.
2552 * top.h (struct tl_interp_info): Forward declare.
2553 (struct ui) <interp_info, async>: New fields.
2554
79aa2fe8
PA
25552016-06-21 Pedro Alves <palves@redhat.com>
2556
2557 * main.c (gdb_stdout, gdb_stderr, gdb_stdlog, gdb_stdin): Delete
2558 globals.
2559 (gen_ret_current_ui_field_ptr): New macro. Use it to generate
2560 wrappers for gdb_stdout, gdb_stderr, gdb_stdlog and gdb_stdin.
2561 * top.h (struct ui) <m_gdb_stdout, m_gdb_stdin, m_gdb_stderr,
2562 m_gdb_stdlog>: New fields.
2563 (current_ui_gdb_stdout_ptr, current_ui_gdb_stdin_ptr)
2564 (current_ui_gdb_stderr_ptr, current_ui_gdb_stdlog_ptr): Declare.
2565 (gdb_stdout, gdb_stdin, gdb_stderr, gdb_stdlog): Reimplement as
2566 macros.
2567
a74e1786
PA
25682016-06-21 Pedro Alves <palves@redhat.com>
2569
2570 * event-top.c: Update readline-related comments.
2571 (input_handler, call_readline): Delete globals.
2572 (gdb_rl_callback_handler): Call the current UI's input_handler
2573 method.
2574 (change_line_handler): Adjust to set current UI's properties
2575 instead of globals.
2576 (current_ui_, current_ui): New globals.
2577 (get_command_line_buffer): Rewrite to refer to the current UI.
2578 (stdin_event_handler): Adjust to call the call_readline method of
2579 the current UI.
2580 (gdb_readline_no_editing_callback): Adjust to call the current UI's
2581 input_handler method.
2582 (gdb_setup_readline): Adjust to set current UI's properties
2583 instead of globals.
2584 * event-top.h (call_readline, input_handler): Delete declarations.
2585 * mi/mi-interp.c (mi_interpreter_resume): Adjust to set current
2586 UI's properties instead of globals.
2587 * top.c (gdb_readline_wrapper_cleanup): Adjust to set current UI's
2588 properties instead of globals.
2589 (gdb_readline_wrapper): Adjust to call and set current UI's
2590 methods instead of globals.
2591 * top.h: Include buffer.h and event-loop.h.
2592 (struct ui): New struct.
2593 (current_ui): New declaration.
2594
45db7c09
PA
25952016-06-21 Pedro Alves <palves@redhat.com>
2596
2597 * ada-lang.c (ada_exception_name_addr_1): Add comment.
2598 (print_it_exception): Select the current frame.
2599
a28d8e50
YTL
26002016-06-17 Yan-Ting Lin <currygt52@gmail.com>
2601
2602 * Makefile.in (ALL_TARGET_OBS): Add nds32-tdep.o.
2603 (HFILES_NO_SRCDIR): Add nds32-tdep.h.
2604 (ALLDEPFILES): Add nds32-tdep.c.
2605 * NEWS: Mention new NDS32 port.
2606 * configure.tgt: Add NDS32.
2607 * nds32-tdep.c: New file.
2608 * nds32-tdep.h: New file.
2609 * features/Makefile (XMLTOC): Add nds32.xml.
2610 * features/nds32-core.xml: New file.
2611 * features/nds32-fpu.xml: New file.
2612 * features/nds32-system.xml: New file.
2613 * features/nds32.c: New file (generated).
2614 * features/nds32.xml: New file.
2615
4bf5402d
JB
26162016-06-14 John Baldwin <jhb@FreeBSD.org>
2617
2618 * v850-tdep.c (v850_use_struct_convention): Trim type length checks.
2619
683cd65e
JB
26202016-06-14 John Baldwin <jhb@FreeBSD.org>
2621
2622 * tui/tui-stack.c (tui_show_frame_info): Fix type mismatch.
2623
bec734b2
JB
26242016-06-14 John Baldwin <jhb@FreeBSD.org>
2625
2626 * rs6000-tdep.c (ppc_process_record_op31): Initialize ra.
2627
e46dd0f4
NC
26282016-06-13 Nick Clifton <nickc@redhat.com>
2629
2630 * gdbtypes.c (replace_type): Fix assertion.
2631
695bfa52
TT
26322016-06-10 Tom Tromey <tom@tromey.com>
2633
2634 * gdbtypes.c (arch_type, arch_integer_type, arch_character_type)
2635 (arch_boolean_type, arch_float_type, arch_complex_type)
2636 (arch_flags_type, append_flags_type_field)
2637 (append_flags_type_flag, arch_composite_type)
2638 (append_composite_type_field_raw)
2639 (append_composite_type_field_aligned)
2640 (append_composite_type_field): Make "name" parameter const.
2641 * gdbtypes.h (arch_type, arch_integer_type, arch_character_type)
2642 (arch_boolean_type, arch_float_type, arch_complex_type)
2643 (append_composite_type_field, append_composite_type_field_aligned)
2644 (append_composite_type_field_raw, arch_flags_type)
2645 (append_flags_type_field, append_flags_type_flag): Constify.
2646
347dc102
TT
26472016-06-10 Tom Tromey <tom@tromey.com>
2648
2649 PR rust/20110:
2650 * rust-exp.y (lex_number): Don't truncate large numbers to i32.
2651
edef7b8c
TT
26522016-06-10 Tom Tromey <tom@tromey.com>
2653
2654 * Makefile.in (COMMON_OBS): Remove rust-exp.o.
2655 (YYFILES): Add rust-exp.c.
2656 (YYOBJ): Add rust-exp.o.
2657 (local-maintainer-clean): Remove rust-exp.c.
2658
bb556f1f
TK
26592016-06-09 Toshihito Kikuchi <k.toshihito@yahoo.de>
2660
2661 * NEWS: Mention that GDB now supports a negative repeat count in
2662 the 'x' command.
2663 * printcmd.c (decode_format): Allow '-' in the parameter
2664 "string_ptr" to accept a negative repeat count.
2665 (find_instruction_backward): New function.
2666 (read_memory_backward): New function.
2667 (integer_is_zero): New function.
2668 (find_string_backward): New function.
2669 (do_examine): Use new functions to examine memory backward.
2670 (_initialize_printcmd): Mention that 'x' command supports a negative
2671 repeat count.
2672
c040f3fb
TK
26732016-06-09 Toshihito Kikuchi <k.toshihito@yahoo.de>
2674
2675 * MAINTAINERS (Write After Approval): Add Toshihito Kikuchi.
2676
4dee3531
TT
26772016-06-09 Tom Tromey <tom@tromey.com>
2678
2679 PR python/19819:
2680 * python/py-xmethods.c (invoke_method_name)
2681 (py_get_result_type_method_name, py_invoke_method_name): Remove.
2682 (gdbpy_initialize_xmethods): Don't initialize
2683 py_invoke_method_name, py_get_result_type_method_name.
2684
1aec0b6a
SM
26852016-06-07 Simon Marchi <simon.marchi@ericsson.com>
2686
2687 * mi/mi-interp.c (mi_record_changed): Add missing braces.
2688
2091da29
BH
26892016-06-07 Bernhard Heckel <bernhard.heckel@intel.com>
2690
2691 * findvar.c (follow_static_link): Check for valid pointer.
2692
38b022b4
SM
26932016-06-06 Simon Marchi <simon.marchi@ericsson.com>
2694
2695 * NEWS: Mention the new fields in =record-started.
2696 * common/btrace-common.h (btrace_format_short_string): New function
2697 declaration.
2698 * common/btrace-common.c (btrace_format_short_string): New
2699 function.
2700 * mi/mi-interp.c (mi_record_changed): Output method and format
2701 fields in the =record-started record.
2702 * record-btrace.c (record_btrace_open): Adapt record_changed
2703 notification.
2704 * record-full.c (record_full_open): Likewise.
2705 * record.c (cmd_record_stop): Likewise.
2706
0ae534d2
JT
27072016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
2708
2709 * windows-nat.c (handle_output_debug_string): Return type of
2710 gdb_signal_from_host() is gdb_signal, not an int.
2711 (windows_get_exec_module_filename): Add pointer casts for C++.
2712
1b40ec05
TT
27132016-06-02 Tom Tromey <tom@tromey.com>
2714
2715 PR python/18984:
2716 * python/python.c (gdbpy_solib_name): Use GDB_PY_LLU_ARG.
2717
bb7c96de
PA
27182016-06-01 Pedro Alves <palves@redhat.com>
2719
2720 * remote-fileio.c (remote_fio_ctrl_c_flag, remote_fio_sa)
2721 (remote_fio_osa)
2722 (remote_fio_ofunc, remote_fileio_sig_init, remote_fileio_sig_set)
2723 (remote_fileio_sig_exit, remote_fileio_ctrl_c_signal_handler):
2724 Delete.
2725 (remote_fileio_o_quit_handler): New global.
2726 (remote_fileio_quit_handler): New function.
2727 (remote_fileio_reply): Check the quit flag instead of the custom
2728 'remote_fio_ctrl_c_flag' flag. Restore the quit handler instead
2729 of changing the SIGINT handler.
2730 (do_remote_fileio_request): Override the quit handler instead of
2731 changing the SIGINT handler.
2732
51403f74
NC
27332016-06-01 Nick Clifton <nickc@redhat.com>
2734
2735 * common/common-utils.c (xmalloc_failed): New function. Provided
2736 so that the version in libiberty is not linked in.
2737
e3b5daf9
MM
27382016-06-01 Markus Metzger <markus.t.metzger@intel.com>
2739
2740 * infcmd.c (skip_finish_frames): New.
2741 (finish_command): Call skip_finish_frames.
2742
03d73f1f
YQ
27432016-06-01 Yao Qi <yao.qi@linaro.org>
2744
2745 PR remote/19998
2746 * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Call
2747 quit_serial_event_set.
2748
c799dec7
JB
27492016-06-01 Joel Brobecker <brobecker@adacore.com>
2750
2751 GDB 7.11.1 released.
2752
3326303b
MG
27532016-05-31 Martin Galvan <martin.galvan@tallertechnologies.com>
2754
2755 PR c++/19893
2756 * dwarf2loc.c (coerce_pieced_ref, indirect_synthetic_pointer,
2757 fetch_const_value_from_synthetic_pointer): New functions.
2758 (indirect_pieced_value): Move lower half to indirect_synthetic_pointer.
2759 (pieced_value_funcs): Implement coerce_ref.
2760 * valops.c (value_addr): Call coerce_ref for synthetic references.
2761 * valprint.c (valprint_check_validity): Return true for synthetic
2762 references. Also, don't show "<synthetic pointer>" if they reference
2763 addressable values.
2764 (generic_val_print_ref): Handle synthetic references. Also move some
2765 code to print_ref_address.
2766 (print_ref_address, get_value_addr_contents): New functions.
2767
e385593e
JK
27682016-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2769
2770 PR c++/15231
2771 * dwarf2read.c (enum pc_bounds_kind): Add PC_BOUNDS_INVALID.
2772 (process_psymtab_comp_unit_reader, read_func_scope): Adjust callers.
2773 (read_lexical_block_scope): Import DIEs from bare DW_TAG_lexical_block.
2774 (read_call_site_scope): Adjust callers.
2775 (dwarf2_get_pc_bounds): Implement pc_bounds_invalid.
2776 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
2777
3a2b436a
JK
27782016-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2779
2780 Code cleanup: dwarf2_get_pc_bounds: -1/0/+1 -> enum
2781 * dwarf2read.c (enum pc_bounds_kind) New.
2782 (dwarf2_get_pc_bounds): Use it in the declaration.
2783 (process_psymtab_comp_unit_reader): Adjust caller. Rename has_pc_info
2784 to cu_bounds_kind.
2785 (read_func_scope, read_lexical_block_scope, read_call_site_scope):
2786 Adjust callers.
2787 (dwarf2_get_pc_bounds): Use enum pc_bounds_kind in the definition.
2788 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
2789
aab3c527
JK
27902016-05-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2791
2792 * NEWS (QCatchSyscalls): Remove the parameter. Include ...
2793 (QCatchSyscalls:1 in qSupported) ... this separate entry which got
2794 deleted.
2795
c64e0f61
JK
27962016-05-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2797
2798 * NEWS (N stop reply): Remove empty line.
2799
1a72702b
AM
28002016-05-28 Alan Modra <amodra@gmail.com>
2801
2802 * compile/compile-object-load.c (link_callbacks_multiple_definition,
2803 link_callbacks_warning, link_callbacks_undefined_symbol,
2804 link_callbacks_undefined_symbol, link_callbacks_reloc_overflow,
2805 link_callbacks_reloc_dangerous,
2806 link_callbacks_unattached_reloc): Return void.
2807
51415b9f
AB
28082016-05-27 Andrew Burgess <andrew.burgess@embecosm.com>
2809
2810 * opencl-lang.c (evaluate_subexp_opencl): If
2811 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute to
2812 the returned value in the STRUCTOP_STRUCT case.
2813
ac775bf4
AB
28142016-05-27 Andrew Burgess <andrew.burgess@embecosm.com>
2815
2816 * eval.c (evaluate_subexp_standard): If EVAL_AVOID_SIDE_EFFECTS
2817 mode, forward the VALUE_LVAL attribute to the returned value in
2818 the STRUCTOP_PTR case.
2819
7bd787e8
TT
28202016-05-25 Tom Tromey <tom@tromey.com>
2821
2822 * python/py-value.c (value_object_as_number): Use correct spelling
2823 of HAVE_LIBPYTHON2_4.
2824
2bbad2ea
BH
28252016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
2826
2827 * f-typeprint.c (f_type_print_base): Replace 0 by show.
2828
e188eb36
BH
28292016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
2830
2831 * f-typeprint.c (f_type_print_base): Decrease show by one.
2832
9b2db1fd
BH
28332016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
2834
2835 * f-typeprint.c (f_type_print_base): Don't print fields when show < 0.
2836
72b17055
BH
28372016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
2838
2839 * f-typeprint.c (f_type_print_base): Take print level into account.
2840
ddae9462
TT
28412016-05-24 Tom Tromey <tom@tromey.com>
2842
2843 PR python/17386:
2844 * python/py-value.c (value_object_as_number): Add
2845 nb_inplace_floor_divide, nb_inplace_true_divide, nb_index.
2846
e2b7f516
TT
28472016-05-24 Tom Tromey <tom@tromey.com>
2848
2849 * python/py-value.c (value_object_as_number): Add
2850 nb_inplace_divide for Python 2.
2851
1957f6b8
TT
28522016-05-23 Tom Tromey <tom@tromey.com>
2853
2854 PR python/17981:
2855 * python/py-breakpoint.c (gdbpy_breakpoints): Return a new tuple
2856 when there are no breakpoints.
2857
026a9174
PA
28582016-05-24 Pedro Alves <palves@redhat.com>
2859
2860 PR gdb/19828
2861 * linux-nat.c (attach_proc_task_lwp_callback): Mark the lwp
2862 resumed, and add the thread to GDB's thread list.
2863
72b049d3
PA
28642016-05-24 Pedro Alves <palves@redhat.com>
2865
2866 PR gdb/19828
2867 * linux-nat.c (get_pending_status): If the thread reported the
2868 event to the core and it's pending, use the pending status signal
2869 number.
2870
774113b0
PA
28712016-05-24 Pedro Alves <palves@redhat.com>
2872
2873 PR gdb/19828
2874 * linux-nat.c (lwp_lwpid_htab): New htab.
2875 (lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create)
2876 (lwp_lwpid_htab_add_lwp): New functions.
2877 (lwp_list): Tweak comment.
2878 (lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New
2879 functions.
2880 (purge_lwp_list): Rewrite, using htab_traverse_noresize.
2881 (add_initial_lwp): Add lwp to htab too. Use lwp_list_add.
2882 (delete_lwp): Use lwp_list_remove. Remove htab too.
2883 (find_lwp_pid): Search in htab.
2884 (_initialize_linux_nat): Call lwp_lwpid_htab_create.
2885 * linux-nat.h (struct lwp_info) <prev>: New field.
2886
28872016-05-24 Pedro Alves <palves@redhat.com>
2888
2889 PR gdb/19828
2890 * linux-nat.c (lwp_lwpid_htab): New htab.
2891 (lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create)
2892 (lwp_lwpid_htab_add_lwp): New functions.
2893 (lwp_list): Tweak comment.
2894 (lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New
2895 functions.
2896 (purge_lwp_list): Rewrite, using htab_traverse_noresize.
2897 (add_initial_lwp): Add lwp to htab too. Use lwp_list_add.
2898 (delete_lwp): Use lwp_list_remove. Remove htab too.
2899 (find_lwp_pid): Search in htab.
2900 (_initialize_linux_nat): Call lwp_lwpid_htab_create.
2901 * linux-nat.h (struct lwp_info) <prev>: New field.
2902
1ad3de98
PA
29032016-05-24 Pedro Alves <palves@redhat.com>
2904
2905 PR gdb/19828
2906 * linux-nat.c (linux_resume_one_lwp_throw): Clear the LWP's core
2907 field.
2908 (linux_nat_update_thread_list): Don't fetch the core if already
2909 known.
2910
95e94c3f
PA
29112016-05-24 Pedro Alves <palves@redhat.com>
2912
2913 PR gdb/19828
2914 * linux-tdep.c (find_mapping_size): Delete.
2915 (linux_vsyscall_range_raw): Rewrite reading from
2916 /proc/PID/task/PID/maps directly instead of using
2917 gdbarch_find_memory_regions.
2918
aa01bd36
PA
29192016-05-24 Pedro Alves <palves@redhat.com>
2920
2921 PR gdb/19828
2922 * linux-nat.c (report_thread_events): New global.
2923 (linux_handle_extended_wait): Report
2924 TARGET_WAITKIND_THREAD_CREATED if thread event reporting is
2925 enabled.
2926 (wait_lwp, linux_nat_filter_event): Report all thread exits if
2927 thread event reporting is enabled. Remove comment.
2928 (filter_exit_event): New function.
2929 (linux_nat_wait_1): Use it.
2930 (linux_nat_thread_events): New function.
2931 (linux_nat_add_target): Install it as target_thread_events method.
2932
00a3cb9c
YTL
29332016-05-24 Yan-Ting Lin <currygt52@gmail.com>
2934
2935 * MAINTAINERS (Write After Approval): Add "Yan-Ting Lin".
2936
7eb89530
YQ
29372016-05-23 Yao Qi <yao.qi@arm.com>
2938
2939 * arch-utils.c (default_code_of_frame_writable): New function.
2940 * arch-utils.h (default_code_of_frame_writable): Declare.
2941 * arm-tdep.c (arm_code_of_frame_writable): New function.
2942 (arm_gdbarch_init): Install gdbarch method
2943 code_of_frame_writable if the target is M-profile.
2944 * frame.c (skip_unwritable_frames): New function.
2945 * frame.h (skip_unwritable_frames): Declare.
2946 * gdbarch.sh (code_of_frame_writable): New.
2947 * gdbarch.c, gdbarch.h: Re-generated.
2948 * infcmd.c (finish_command): Call skip_unwritable_frames.
2949
0f6ed0e0
TT
29502016-05-23 Tom Tromey <tom@tromey.com>
2951
2952 PR python/19438, PR python/18393:
2953 * python/py-objfile.c (objfpy_initialize): Initialize self->dict.
2954 * python/py-progspace.c (pspy_initialize): Initialize self->dict.
2955
d0571b99
GB
29562016-05-23 Gary Benson <gbenson@redhat.com>
2957
2958 * nat/gdb_thread_db.h (td_thr_validate_ftype): Remove typedef.
2959 * linux-thread-db.c (struct thread_db_info) <td_thr_validate_p>:
2960 Remove field.
2961 (try_thread_db_load_1): Remove td_thr_validate initialization.
2962
37773e78
JB
29632016-05-23 Jon Boden <jon@ubuntubsd.org> (tiny change)
2964
2965 * configure.ac: Search for libutil-freebsd as alternative to libutil.
2966 * configure: Re-generated.
2967
bfb0d950
AS
29682016-05-19 Andreas Schwab <schwab@suse.de>
2969
2970 * ia64-libunwind-tdep.c (libunwind_descr): Add cast from void *.
2971 (libunwind_frame_set_descr): Likewise.
2972 (libunwind_frame_cache): Likewise.
2973 (libunwind_frame_dealloc_cache): Likewise.
2974 (libunwind_frame_sniffer): Likewise.
2975 (libunwind_search_unwind_table): Likewise.
2976 (libunwind_sigtramp_frame_sniffer): Likewise.
2977 (libunwind_get_reg_special): Likewise.
2978 (libunwind_load): Likewise.
2979 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
2980 (ia64_linux_store_register): Likewise.
2981 (ia64_linux_xfer_partial): Likewise.
2982 * ia64-tdep.c (ia64_access_reg): Likewise.
2983 (ia64_access_fpreg): Likewise.
2984 (ia64_access_rse_reg): Likewise.
2985 (ia64_access_rse_fpreg): Likewise.
2986
45f4ed92
TT
29872016-05-18 Tom Tromey <tom@tromey.com>
2988
2989 * rust-lang.c (rust_subscript): Initialize "high".
2990
28addb40
SM
29912016-05-17 Simon Marchi <simon.marchi@ericsson.com>
2992
2993 PR gdb/20045
2994 * mi/mi-main.c (mi_on_resume): Call target_can_async_p instead
2995 of target_is_async_p.
2996
61c6156d
SM
29972016-05-17 Simon Marchi <simon.marchi@ericsson.com>
2998
2999 PR gdb/18077
3000 * mi/mi-main.c (run_one_inferior): Use run target to determine
3001 whether to run async or not.
3002 (mi_cmd_exec_run): Likewise.
3003
01739a3b
TT
30042016-05-17 Tom Tromey <tom@tromey.com>
3005
3006 * std-operator.def (OP_RANGE): Rename from OP_F90_RANGE.
3007 * rust-lang.c: Don't include f-lang.h.
3008 (rust_range, rust_compute_range, rust_subscript)
3009 (rust_evaluate_subexp): Update.
3010 * rust-exp.y: Don't include f-lang.h.
3011 (ast_range, convert_ast_to_expression): Update.
3012 * parse.c (operator_length_standard): Update.
3013 * f-lang.h (enum f90_range_type): Move to expression.h.
3014 * f-exp.y: Use OP_RANGE.
3015 * expression.h (enum range_type): New enum; renamed from
3016 f90_range_type.
3017 * expprint.c: Don't include f-lang.h.
3018 (print_subexp_standard, dump_subexp_body_standard): Use OP_RANGE.
3019 * eval.c (value_f90_subarray, evaluate_subexp_standard): Update.
3020
0bdfa368
TT
30212016-05-17 Tom Tromey <tom@tromey.com>
3022
3023 * NEWS: Add Rust item.
3024
c44af4eb
TT
30252016-05-17 Tom Tromey <tom@tromey.com>
3026 Manish Goregaokar <manishsmail@gmail.com>
3027
3028 * symtab.c (symbol_find_demangled_name): Handle Rust.
3029 * symfile.c (init_filename_language_table): Treat ".rs" as Rust.
3030 * std-operator.def (STRUCTOP_ANONYMOUS, OP_RUST_ARRAY): New
3031 constants.
3032 * rust-lang.h: New file.
3033 * rust-lang.c: New file.
3034 * rust-exp.y: New file.
3035 * dwarf2read.c (read_file_scope): Add Rust producer sniffing.
3036 (dwarf2_compute_name, read_func_scope, read_structure_type)
3037 (read_base_type, read_subrange_type, set_cu_language)
3038 (new_symbol_full, determine_prefix): Handle Rust.
3039 * defs.h (enum language) <language_rust>: New constant.
3040 * Makefile.in (SFILES): Add rust-exp.y, rust-lang.c.
3041 (COMMON_OBS): Add rust-exp.o, rust-lang.o.
3042
00272ec4
TT
30432016-05-17 Tom Tromey <tom@tromey.com>
3044
3045 * valprint.h (struct generic_val_print_array) <array_start,
3046 array_end>: New fields.
3047 * valprint.c (generic_val_print_array): Add "decorations"
3048 parameter. Use "array_start", "array_end".
3049 (generic_val_print) <TYPE_CODE_ARRAY>: Update.
3050 * p-valprint.c (p_decorations): Update.
3051 * m2-valprint.c (m2_decorations): Update.
3052 * f-valprint.c (f_decorations): Update.
3053 * c-valprint.c (c_decorations): Update.
3054
dcd1f979
TT
30552016-05-17 Tom Tromey <tom@tromey.com>
3056
3057 * NEWS: Add "maint selftest" entry.
3058 * selftest.h: New file.
3059 * selftest.c: New file.
3060 * maint.c: Include selftest.h.
3061 (maintenance_selftest): New function.
3062 (_initialize_maint_cmds): Add "maint selftest" command.
3063 * configure.ac (GDB_SELF_TEST): Maybe define.
3064 * config.in, configure: Rebuild.
3065 * Makefile.in (SFILES): Add selftest.c.
3066 (COMMON_OBS): Add selftest.o.
3067
e4b8a1c8
TT
30682016-05-17 Tom Tromey <tom@tromey.com>
3069
3070 * expprint.c: Include f-lang.h.
3071 (print_subexp_standard, dump_subexp_body_standard): Handle
3072 OP_F90_RANGE.
3073
9ab0bb2a
TT
30742016-05-17 Tom Tromey <tom@tromey.com>
3075
3076 * Makefile.in (init.c): Search .y files for initialization
3077 functions.
3078
8ddd5a6c
DE
30792016-05-12 Doug Evans <dje@google.com>
3080
3081 PR symtab/19999
3082 * dwarf2loc.c (dwarf2_find_location_expression): For DWO files still
3083 add base_offset.
3084
df140a0b
TS
30852016-05-10 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3086
3087 * iq2000-tdep.c (iq2000_scan_prologue): Remove if that shouldn't guard
3088 anything.
3089 * linespec.c (add_sal_to_sals): Restore call to symtab_to_fullname.
3090
39d911fc
TP
30912016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
3092
3093 * arm-tdep.c (arm_elf_make_msymbol_special): Use
3094 ARM_GET_SYM_BRANCH_TYPE to get branch type of a symbol.
3095
870f88f7
TS
30962016-05-07 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3097
3098 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Remove unused
3099 variables.
3100 * aarch64-tdep.c (aarch64_skip_prologue): Likewise.
3101 (aarch64_scan_prologue): Likewise.
3102 (aarch64_prologue_prev_register): Likewise.
3103 (aarch64_dwarf2_prev_register): Likewise.
3104 (pass_in_v): Likewise.
3105 (aarch64_push_dummy_call): Likewise.
3106 (aarch64_breakpoint_from_pc): Likewise.
3107 (aarch64_return_in_memory): Likewise.
3108 (aarch64_return_value): Likewise.
3109 (aarch64_displaced_step_b_cond): Likewise.
3110 (aarch64_displaced_step_cb): Likewise.
3111 (aarch64_displaced_step_tb): Likewise.
3112 (aarch64_gdbarch_init): Likewise.
3113 (aarch64_process_record): Likewise.
3114 * alpha-mdebug-tdep.c (alpha_mdebug_init_abi): Likewise.
3115 * alpha-tdep.c (_initialize_alpha_tdep): Likewise.
3116 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
3117 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Likewise.
3118 * amd64-tdep.c (fixup_riprel): Likewise.
3119 * amd64-windows-tdep.c (amd64_windows_frame_decode_epilogue): Likewise.
3120 (amd64_windows_frame_decode_insns): Likewise.
3121 (amd64_windows_frame_cache): Likewise.
3122 (amd64_windows_frame_prev_register): Likewise.
3123 (amd64_windows_frame_this_id): Likewise.
3124 (amd64_windows_init_abi): Likewise.
3125 * arm-linux-tdep.c (arm_linux_get_syscall_number): Likewise.
3126 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
3127 * arm-symbian-tdep.c (arm_symbian_init_abi): Likewise.
3128 * arm-tdep.c (arm_make_epilogue_frame_cache): Likewise.
3129 (arm_epilogue_frame_prev_register): Likewise.
3130 (arm_record_vdata_transfer_insn): Likewise.
3131 (arm_record_exreg_ld_st_insn): Likewise.
3132 * auto-load.c (execute_script_contents): Likewise.
3133 (print_scripts): Likewise.
3134 * avr-tdep.c (avr_frame_prev_register): Likewise.
3135 (avr_push_dummy_call): Likewise.
3136 * bfin-linux-tdep.c (bfin_linux_sigframe_init): Likewise.
3137 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
3138 * blockframe.c (find_pc_partial_function_gnu_ifunc): Likewise.
3139 * break-catch-throw.c (fetch_probe_arguments): Likewise.
3140 * breakpoint.c (breakpoint_xfer_memory): Likewise.
3141 (breakpoint_init_inferior): Likewise.
3142 (breakpoint_inserted_here_p): Likewise.
3143 (software_breakpoint_inserted_here_p): Likewise.
3144 (hardware_breakpoint_inserted_here_p): Likewise.
3145 (bpstat_what): Likewise.
3146 (break_range_command): Likewise.
3147 (save_breakpoints): Likewise.
3148 * coffread.c (coff_symfile_read): Likewise.
3149 * cris-tdep.c (cris_push_dummy_call): Likewise.
3150 (cris_scan_prologue): Likewise.
3151 (cris_register_size): Likewise.
3152 (_initialize_cris_tdep): Likewise.
3153 * d-exp.y: Likewise.
3154 * dbxread.c (dbx_read_symtab): Likewise.
3155 (process_one_symbol): Likewise.
3156 (coffstab_build_psymtabs): Likewise.
3157 (elfstab_build_psymtabs): Likewise.
3158 * dicos-tdep.c (dicos_init_abi): Likewise.
3159 * disasm.c (do_mixed_source_and_assembly): Likewise.
3160 (gdb_disassembly): Likewise.
3161 * dtrace-probe.c (dtrace_process_dof): Likewise.
3162 * dwarf2read.c (error_check_comp_unit_head): Likewise.
3163 (build_type_psymtabs_1): Likewise.
3164 (skip_one_die): Likewise.
3165 (process_imported_unit_die): Likewise.
3166 (dwarf2_physname): Likewise.
3167 (read_file_scope): Likewise.
3168 (setup_type_unit_groups): Likewise.
3169 (create_dwo_cu_reader): Likewise.
3170 (create_dwo_cu): Likewise.
3171 (create_dwo_unit_in_dwp_v1): Likewise.
3172 (create_dwo_unit_in_dwp_v2): Likewise.
3173 (lookup_dwo_unit_in_dwp): Likewise.
3174 (free_dwo_file): Likewise.
3175 (check_producer): Likewise.
3176 (dwarf2_add_typedef): Likewise.
3177 (dwarf2_add_member_fn): Likewise.
3178 (read_unsigned_leb128): Likewise.
3179 (read_signed_leb128): Likewise.
3180 (dwarf2_const_value): Likewise.
3181 (follow_die_sig_1): Likewise.
3182 (dwarf_decode_macro_bytes): Likewise.
3183 * extension.c (restore_active_ext_lang): Likewise.
3184 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
3185 * ft32-tdep.c (ft32_analyze_prologue): Likewise.
3186 * gdbtypes.c (lookup_typename): Likewise.
3187 (resolve_dynamic_range): Likewise.
3188 (check_typedef): Likewise.
3189 * h8300-tdep.c (h8300_is_argument_spill): Likewise.
3190 (h8300_gdbarch_init): Likewise.
3191 * hppa-tdep.c (hppa32_push_dummy_call): Likewise.
3192 (hppa_frame_this_id): Likewise.
3193 (_initialize_hppa_tdep): Likewise.
3194 * hppanbsd-tdep.c (hppanbsd_sigtramp_cache_init): Likewise.
3195 * hppaobsd-tdep.c (hppaobsd_supply_fpregset): Likewise.
3196 * i386-dicos-tdep.c (i386_dicos_init_abi): Likewise.
3197 * i386-tdep.c (i386_bnd_type): Likewise.
3198 (i386_gdbarch_init): Likewise.
3199 (i386_mpx_bd_base): Likewise.
3200 * i386nbsd-tdep.c (i386nbsd_sigtramp_cache_init): Likewise.
3201 * i386obsd-tdep.c (i386obsd_elf_init_abi): Likewise.
3202 * ia64-tdep.c (examine_prologue): Likewise.
3203 (ia64_frame_cache): Likewise.
3204 (ia64_push_dummy_call): Likewise.
3205 * infcmd.c (finish_command_fsm_async_reply_reason): Likewise.
3206 (default_print_one_register_info): Likewise.
3207 * infrun.c (infrun_thread_ptid_changed): Likewise.
3208 (thread_still_needs_step_over): Likewise.
3209 (stop_all_threads): Likewise.
3210 (restart_threads): Likewise.
3211 (keep_going_stepped_thread): Likewise.
3212 * iq2000-tdep.c (iq2000_scan_prologue): Likewise.
3213 * language.c (language_init_primitive_type_symbols): Likewise.
3214 * linespec.c (add_sal_to_sals): Likewise.
3215 * linux-nat.c (status_callback): Likewise.
3216 (kill_unfollowed_fork_children): Likewise.
3217 (linux_nat_kill): Likewise.
3218 * linux-tdep.c (linux_fill_prpsinfo): Likewise.
3219 * linux-thread-db.c (thread_db_notice_clone): Likewise.
3220 (record_thread): Likewise.
3221 * location.c (string_to_event_location_basic): Likewise.
3222 * m32c-tdep.c (m32c_prev_register): Likewise.
3223 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
3224 * m32r-tdep.c (decode_prologue): Likewise.
3225 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
3226 * machoread.c (macho_symtab_read): Likewise.
3227 (macho_symfile_read): Likewise.
3228 (macho_symfile_offsets): Likewise.
3229 * maint.c (set_per_command_cmd): Likewise.
3230 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
3231 (mi_cmd_stack_list_variables): Likewise.
3232 * mi/mi-main.c (mi_cmd_exec_run): Likewise.
3233 (output_register): Likewise.
3234 (mi_cmd_execute): Likewise.
3235 (mi_cmd_trace_define_variable): Likewise.
3236 (print_variable_or_computed): Likewise.
3237 * minsyms.c (prim_record_minimal_symbol_full): Likewise.
3238 * mn10300-tdep.c (mn10300_frame_prev_register): Likewise.
3239 * msp430-tdep.c (msp430_pseudo_register_write): Likewise.
3240 * mt-tdep.c (mt_registers_info): Likewise.
3241 * nios2-tdep.c (nios2_analyze_prologue): Likewise.
3242 (nios2_push_dummy_call): Likewise.
3243 (nios2_frame_unwind_cache): Likewise.
3244 (nios2_stub_frame_cache): Likewise.
3245 (nios2_stub_frame_sniffer): Likewise.
3246 (nios2_gdbarch_init): Likewise.
3247 * ppc-ravenscar-thread.c: Likewise.
3248 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
3249 * python/py-evts.c (add_new_registry): Likewise.
3250 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3251 (bpfinishpy_detect_out_scope_cb): Likewise.
3252 * python/py-framefilter.c (py_print_value): Likewise.
3253 * python/py-inferior.c (infpy_write_memory): Likewise.
3254 * python/py-infevents.c (create_inferior_call_event_object): Likewise.
3255 * python/py-infthread.c (thpy_get_ptid): Likewise.
3256 * python/py-linetable.c (ltpy_get_pcs_for_line): Likewise.
3257 (ltpy_get_all_source_lines): Likewise.
3258 (ltpy_is_valid): Likewise.
3259 (ltpy_iternext): Likewise.
3260 * python/py-symtab.c (symtab_and_line_to_sal_object): Likewise.
3261 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Likewise.
3262 (unwind_infopy_str): Likewise.
3263 * python/py-varobj.c (py_varobj_get_iterator): Likewise.
3264 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
3265 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
3266 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
3267 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Likewise.
3268 * s390-linux-tdep.c (s390_supply_tdb_regset): Likewise.
3269 (s390_frame_prev_register): Likewise.
3270 (s390_dwarf2_frame_init_reg): Likewise.
3271 (s390_record_vr): Likewise.
3272 (s390_process_record): Likewise.
3273 * score-tdep.c (score_push_dummy_call): Likewise.
3274 (score3_analyze_prologue): Likewise.
3275 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
3276 * sh64-tdep.c (sh64_analyze_prologue): Likewise.
3277 (sh64_push_dummy_call): Likewise.
3278 (sh64_extract_return_value): Likewise.
3279 (sh64_do_fp_register): Likewise.
3280 * solib-aix.c (solib_aix_get_section_offsets): Likewise.
3281 * solib-darwin.c (darwin_read_exec_load_addr_from_dyld): Likewise.
3282 (darwin_solib_read_all_image_info_addr): Likewise.
3283 * solib-dsbt.c (enable_break): Likewise.
3284 * solib-frv.c (enable_break2): Likewise.
3285 (frv_fdpic_find_canonical_descriptor): Likewise.
3286 * solib-svr4.c (svr4_handle_solib_event): Likewise.
3287 * sparc-tdep.c (sparc_skip_stack_check): Likewise.
3288 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): Likewise.
3289 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
3290 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3291 * stack.c (read_frame_local): Likewise.
3292 * symfile.c (symbol_file_add_separate): Likewise.
3293 (remove_symbol_file_command): Likewise.
3294 * symmisc.c (maintenance_print_one_line_table): Likewise.
3295 * symtab.c (symbol_cache_flush): Likewise.
3296 (basic_lookup_transparent_type): Likewise.
3297 (sort_search_symbols_remove_dups): Likewise.
3298 * target.c (target_memory_map): Likewise.
3299 (target_detach): Likewise.
3300 (target_resume): Likewise.
3301 (acquire_fileio_fd): Likewise.
3302 (target_store_registers): Likewise.
3303 * thread.c (print_thread_info_1): Likewise.
3304 * tic6x-tdep.c (tic6x_analyze_prologue): Likewise.
3305 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Likewise.
3306 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
3307 (tilegx_analyze_prologue): Likewise.
3308 (tilegx_stack_frame_destroyed_p): Likewise.
3309 (tilegx_frame_cache): Likewise.
3310 * tracefile.c (trace_save): Likewise.
3311 * tracepoint.c (encode_actions_and_make_cleanup): Likewise.
3312 (start_tracing): Likewise.
3313 (print_one_static_tracepoint_marker): Likewise.
3314 * tui/tui.c (tui_enable): Likewise.
3315 * valops.c (value_struct_elt_bitpos): Likewise.
3316 (find_overload_match): Likewise.
3317 (find_oload_champ): Likewise.
3318 * value.c (value_contents_copy_raw): Likewise.
3319 * windows-tdep.c (windows_get_tlb_type): Likewise.
3320 * x86-linux-nat.c (x86_linux_enable_btrace): Likewise.
3321 * xcoffread.c (record_minimal_symbol): Likewise.
3322 (scan_xcoff_symtab): Likewise.
3323 * xtensa-tdep.c (execute_code): Likewise.
3324 (xtensa_gdbarch_init): Likewise.
3325 (_initialize_xtensa_tdep): Likewise.
3326
c1aebf87
UW
33272016-05-04 Ulrich Weigand <uweigand@de.ibm.com>
3328
3329 * spu-linux-nat.c (spu_bfd_iovec_pread): Add pointer cast for C++.
3330 (spu_bfd_open): Likewise.
3331
edf689f0
YQ
33322016-05-04 Yao Qi <yao.qi@linaro.org>
3333
3334 PR gdb/19947
3335 * corefile.c (read_memory): Rename it to ...
3336 (read_memory_object): ... it. Add parameter object.
3337 (read_memory): Call read_memory_object.
3338 (read_stack): Likewise.
3339 (read_code): Likewise.
3340
6c447423
DE
33412016-05-03 Yunlian Jiang <yunlian@google.com>
3342 Doug Evans <dje@google.com>
3343
3344 PR symtab/19914
3345 * dwarf2read.c (open_and_init_dwp_file): Look at backlink if objfile
3346 is separate debug file.
3347
a1ec3d24
DB
33482016-05-03 Don Breazeal <donb@codesourcery.com>
3349
3350 * serial.h (gdb_pipe): Fix argument names in comment.
3351
86f1abec
PA
33522016-05-03 Pedro Alves <palves@redhat.com>
3353
3354 PR python/20037
3355 * python/python.c (_initialize_python) [IS_PY3K]: xstrdup/xfree
3356 oldloc.
3357
1aa96702
PA
33582016-05-03 Pedro Alves <palves@redhat.com>
3359
3360 * python/python.c (_initialize_python) [IS_PY3K]: Remove dead
3361 code.
3362
a4a1c157
PA
33632016-05-03 Pedro Alves <palves@redhat.com>
3364
3365 * configure.ac (PYTHON_LIBS): Sed away "-Xlinker -export-dynamic".
3366 * configure: Regenerate.
3367
1b4f615e
PA
33682016-05-03 Pedro Alves <palves@redhat.com>
3369
3370 * configure.ac (checking for the dynamic export flag): Add
3371 $PYTHON_CPPFLAGS to CPPFLAGS.
3372 * configure: Regenerate.
3373
b631e59b
KT
33742016-05-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3375
3376 * symfile.c (find_pc_overlay): Add braces to avoid -Wparentheses
3377 warning.
3378 (find_pc_mapped_section): Likewise.
3379 (list_overlays_command): Likewise.
3380
1270fac6
EZ
33812016-05-02 Eli Zaretskii <eliz@gnu.org>
3382
3383 * windows-nat.c (_initialize_check_for_gdb_ini): Fix off-by-one
3384 error in allocation of space for "$HOME/.gdbinit" string. This
3385 caused GDB to abort on startup whenever a '~/gdb.ini' file was
3386 actually found, because xsnprintf would hit an assertion
3387 violation.
3388
0400cf2f
SM
33892016-04-28 Simon Marchi <simon.marchi@ericsson.com>
3390
3391 * cli/cli-decode.c (help_cmd_list): Do not list commands that
3392 are deprecated.
3393
57809e5e
JK
33942016-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3395
3396 * remote.c (remote_start_remote): Detect PACKET_vFile_setfs.support.
3397
476350ba
MG
33982016-04-27 Martin Galvan <martin.galvan@tallertechnologies.com>
3399
3400 * c-valprint.c (c_value_print): Always convert val back to reference
3401 type if we converted it to a pointer type.
3402
2d681be4
AA
34032016-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
3404
3405 * configure.ac: Enhance configure check for babeltrace to reject
3406 non-C++-enabled versions.
3407 * configure: Regenerate.
3408
3e2e34f8
KB
34092016-04-26 Sanimir Agovic <sanimir.agovic@intel.com>
3410 Keven Boell <keven.boell@intel.com>
3411 Bernhard Heckel <bernhard.heckel@intel.com>
3412
3413 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
3414 function.
3415 (F77_DIM_SIZE, F77_DIM_OFFSET): Remove macro.
3416 (f77_print_array_1): Use value_subscript to subscript a
3417 value array.
3418 (f77_print_array): Remove call to f77_create_arrayprint_offset_tbl.
3419 (f_val_print): Use value_field to construct a field value.
3420
8f07e298
BH
34212016-04-26 Bernhard Heckel <bernhard.heckel@intel.com>
3422
3423 * valarith.c (value_address): Resolve dynamic types.
3424
9920b434
BH
34252016-04-26 Bernhard Heckel <bernhard.heckel@intel.com>
3426 Keven Boell <kevel.boell@intel.com>
3427
3428 * NEWS: Add new supported features for fortran.
3429 * gdbtypes.c (remove_dyn_prop): New.
3430 (resolve_dynamic_struct): Keep type length for fortran structs.
3431 * gdbtypes.h: Forward declaration of new function.
3432 * value.c (value_address): Return dynamic resolved location of a value.
3433 (set_value_component_location): Adjust the value address
3434 for single value prints.
3435 (value_primitive_field): Support value types with a dynamic location.
3436 (set_internalvar): Remove dynamic location property of
3437 internal variables.
3438
20249ae4
YQ
34392016-04-25 Pedro Alves <palves@redhat.com>
3440 Yao Qi <yao.qi@linaro.org>
3441
3442 * mem-break.c (set_raw_breakpoint_at): Create a raw breakpoint
3443 object. Insert it if it is not inserted yet. Increase the
3444 refcount and link it into the proc's raw breakpoint list.
3445
21edc42f
YQ
34462016-04-25 Yao Qi <yao.qi@linaro.org>
3447
3448 * breakpoint.c (should_be_inserted): Return 0 if the location's
3449 owner is not single step breakpoint or single step breakpoint's
3450 thread isn't the thread which is stepping past a breakpoint.
3451 * gdbarch.sh (software_single_step): Update comments.
3452 * gdbarch.h: Regenerated.
3453 * infrun.c (struct step_over_info) <thread>: New field.
3454 (set_step_over_info): New argument 'thread'. Callers updated.
3455 (clear_step_over_info): Set field thread to -1.
3456 (thread_is_stepping_over_breakpoint): New function.
3457 * infrun.h (thread_is_stepping_over_breakpoint): Declaration.
3458
0154d990
EBM
34592016-04-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3460
3461 * ppc-linux-nat.c (ppc_linux_read_description): Use PPC_FEATURE_HAS_VSX
3462 and PPC_FEATURE_HAS_ALTIVEC to check if such features are available.
3463
6d7e9d3b
YQ
34642016-04-22 Yao Qi <yao.qi@linaro.org>
3465
3466 * valops.c (read_value_memory): New local variable 'stack'.
3467 Set it to either TARGET_OBJECT_STACK_MEMORY or
3468 TARGET_OBJECT_MEMORY.
3469
b3f11165
PA
34702016-04-22 Pedro Alves <palves@redhat.com>
3471
3472 * ada-exp.y: Remove all yy symbol remappings.
3473 (GDB_YY_REMAP_PREFIX): Define.
3474 Include "yy-remap.h".
3475 * ada-lang.c (ada_language_defn): Adjust.
3476 * ada-lang.h (ada_error): Rename to ...
3477 (ada_yyerror): ... this.
3478 * c-exp.y: Remove all yy symbol remappings.
3479 (GDB_YY_REMAP_PREFIX): Define.
3480 Include "yy-remap.h".
3481 * c-lang.c (c_language_defn, cplus_language_defn)
3482 (asm_language_defn, minimal_language_defn): Adjust.
3483 * c-lang.h (c_error): Rename to ...
3484 (c_yyerror): ... this.
3485 * d-exp.y: Remove all yy symbol remappings.
3486 (GDB_YY_REMAP_PREFIX): Define.
3487 Include "yy-remap.h".
3488 * d-lang.c (d_language_defn): Adjust.
3489 * d-lang.h (d_error): Rename to ...
3490 (d_yyerror): ... this.
3491 * f-exp.y: Remove all yy symbol remappings.
3492 (GDB_YY_REMAP_PREFIX): Define.
3493 Include "yy-remap.h".
3494 * f-lang.c (f_language_defn): Adjust.
3495 * f-lang.h (f_error): Rename to ...
3496 (f_yyerror): ... this.
3497 * go-exp.y: Remove all yy symbol remappings.
3498 (GDB_YY_REMAP_PREFIX): Define.
3499 Include "yy-remap.h".
3500 * go-lang.c (go_language_defn): Adjust.
3501 * go-lang.h (go_error): Rename to ...
3502 (go_yyerror): ... this.
3503 * jv-exp.y: Remove all yy symbol remappings.
3504 (GDB_YY_REMAP_PREFIX): Define.
3505 Include "yy-remap.h".
3506 * jv-lang.c (java_language_defn): Adjust.
3507 * jv-lang.h (java_error): Rename to ...
3508 (java_yyerror): ... this.
3509 * m2-exp.y: Remove all yy symbol remappings.
3510 (GDB_YY_REMAP_PREFIX): Define.
3511 Include "yy-remap.h".
3512 * m2-lang.c (m2_language_defn): Adjust.
3513 * m2-lang.h (m2_error): Rename to ...
3514 (m2_yyerror): ... this.
3515 * objc-exp.y: Remove all yy symbol remappings.
3516 (GDB_YY_REMAP_PREFIX): Define.
3517 Include "yy-remap.h".
3518 * objc-lang.c (objc_language_defn): Adjust.
3519 * opencl-lang.c (opencl_language_defn): Adjust.
3520 * p-exp.y: Remove all yy symbol remappings.
3521 (GDB_YY_REMAP_PREFIX): Define.
3522 Include "yy-remap.h".
3523 * p-lang.c (pascal_language_defn): Adjust.
3524 * p-lang.h (pascal_error): Rename to ...
3525 (pascal_yyerror): ... this.
3526 * yy-remap.h: New file.
3527
6290672f
PA
35282016-04-22 Pedro Alves <palves@redhat.com>
3529
3530 * common/common-exceptions.h (GDB_XCPT_TRY): Remove mention of
3531 the foreign frames issue.
3532 [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
3533
89525768
PA
35342016-04-22 Pedro Alves <palves@redhat.com>
3535
3536 * common/common-exceptions.c (enum catcher_state, struct catcher)
3537 (current_catcher): Define in C++ mode too.
3538 (exceptions_state_mc_catch): Call throw_exception_sjlj instead of
3539 throw_exception.
3540 (throw_exception_sjlj, throw_exception_cxx): New functions,
3541 factored out from throw_exception.
3542 (throw_exception): Reimplement.
3543 * common/common-exceptions.h (exceptions_state_mc_init)
3544 (exceptions_state_mc_action_iter)
3545 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
3546 Declare in C++ mode too.
3547 (TRY): Rename to ...
3548 (TRY_SJLJ): ... this.
3549 (CATCH): Rename to ...
3550 (CATCH_SJLJ): ... this.
3551 (END_CATCH): Rename to ...
3552 (END_CATCH_SJLJ): ... this.
3553 [GDB_XCPT == GDB_XCPT_SJMP] (TRY, CATCH, END_CATCH): Map to SJLJ
3554 equivalents.
3555 (throw_exception): Update comments.
3556 (throw_exception_sjlj): Declare.
3557 * event-top.c (gdb_rl_callback_read_char_wrapper): Extend intro
3558 comment. Wrap body in TRY_SJLJ/CATCH_SJLJ and rethrow any
3559 intercepted exception.
3560 (gdb_rl_callback_handler): New function.
3561 (gdb_rl_callback_handler_install): Always install
3562 gdb_rl_callback_handler as readline callback.
3563
3c610247
PA
35642016-04-22 Pedro Alves <palves@redhat.com>
3565
3566 * event-top.c (rl_callback_read_char_wrapper): Rename to ...
3567 (gdb_rl_callback_read_char_wrapper): ... this.
3568 (change_line_handler, gdb_setup_readline): Adjust.
3569
3539aa13
YQ
35702016-04-22 Yao Qi <yao.qi@linaro.org>
3571
3572 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Clear CPSR
3573 bits 20 to 23.
3574
0f60e29b
JB
35752016-04-22 Joel Brobecker <brobecker@adacore.com>
3576
3577 * MAINTAINER: Remove myself as AIX Maintainer.
3578
3877922e
MR
35792016-04-22 Maciej W. Rozycki <macro@imgtec.com>
3580
3581 * mips-tdep.c (mips_gdbarch_init): For GDB_OSABI_LINUX set
3582 `num_regs' to 90 rather than 79. Where a target description is
3583 present adjust the setting appropriately.
3584
88c3cd8d
PA
35852016-04-21 Pedro Alves <palves@redhat.com>
3586
3587 * common/common-exceptions.h (GDB_XCPT_TRY): Add comment.
3588 (GDB_XCPT): Always define as GDB_XCPT_SJMP.
3589
71829b1a
PA
35902016-04-21 Pedro Alves <palves@redhat.com>
3591
3592 * aix-thread.c (pdc_read_data, pdc_write_data): Add cast.
3593 (aix_thread_resume): Use PTRACE_TYPE_ARG5.
3594 * rs6000-nat.c (rs6000_ptrace64): Use PTRACE_TYPE_ARG5.
3595 (rs6000_ptrace_ldinfo): Change type of 'ldi' local to void
3596 pointer, and cast return to gdb_byte pointer.
3597
3451269c
PA
35982016-04-21 Pedro Alves <palves@redhat.com>
3599
3600 * s390-linux-nat.c (fetch_regset, store_regset, check_regset): Use
3601 void * instead of gdb_byte *.
3602
b36cec19
PA
36032016-04-21 Pedro Alves <palves@redhat.com>
3604
3605 * dwarf2read.c (try_open_dwop_file, open_dwo_file)
3606 (file_file_name, file_full_name): Add char * cast to sentinel in
3607 concat/reconcat calls.
3608 * event-top.c (top_level_prompt): Likewise.
3609 * guile/guile.c (initialize_scheme_side): Likewise.
3610 * linux-tdep.c (linux_fill_prpsinfo): Likewise.
3611 * macrotab.c (macro_source_fullname): Likewise.
3612 * main.c (get_init_files, captured_main): Likewise.
3613 * psymtab.c (psymtab_to_fullname): Likewise.
3614 * python/python.c (_initialize_python)
3615 (gdbpy_finish_initialization): Likewise.
3616 * source.c (symtab_to_fullname): Likewise.
3617
a2358508
PA
36182016-04-20 Pedro Alves <palves@redhat.com>
3619
3620 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Default to yes.
3621 * configure: Renegerate.
3622
5ae00552
PA
36232016-04-20 Pedro Alves <palves@redhat.com>
3624
3625 * darwin-nat.c (darwin_decode_message): Use gdb_signal_from_host.
3626
d9436c7c
PA
36272016-04-20 Pedro Alves <palves@redhat.com>
3628
3629 * aarch64-tdep.c (aarch64_record_load_store): Change type of
3630 'reg_rm_val' local to ULONGEST.
3631
597e448c
PA
36322016-04-20 Pedro Alves <palves@redhat.com>
3633
3634 * darwin-nat.c (darwin_resume_thread): Add uintptr_t cast.
3635
6c739336
DE
36362016-04-20 Doug Evans <xdje42@gmail.com>
3637
3638 * symmisc.c (dump_symtab_1): Print owning compunit for identical
3639 blockvectors.
3640
8cef59a2
YQ
36412016-04-20 Yao Qi <yao.qi@linaro.org>
3642
3643 * aarch32-linux-nat.c: Include "arch/arm-linux.h".
3644
6885166d
YQ
36452016-04-20 Yao Qi <yao.qi@linaro.org>
3646
3647 * arm-linux-tdep.h (ARM_CPSR_GREGNUM): Move it to ...
3648 * arch/arm-linux.h: ... here.
3649
21002a63
JB
36502016-04-19 John Baldwin <jhb@FreeBSD.org>
3651
3652 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Change xstateregs
3653 to void *.
3654 (amd64bsd_store_inferior_registers): Likewise.
3655 * fbsd-nat.c (resume_one_thread_cb): Explicitly cast data to ptid_t *.
3656 (resume_all_threads_cb): Likewise.
3657 * i386bsd-nat.c (i386bsd_supply_gregset): Cast gregs to char *.
3658 (i386bsd_collect_gregset): Likewise.
3659 (i386bsd_fetch_inferior_registers): Change xstateregs to void *.
3660 (i386bsd_store_inferior_registers): Likewise.
3661
f39c07ac
JB
36622016-04-19 John Baldwin <jhb@FreeBSD.org>
3663
3664 * main.c (setup_alternate_signal_stack): Cast to char *.
3665
d04c1a59
DE
36662016-04-19 Doug Evans <xdje42@gmail.com>
3667
3668 * symmisc.c (dump_symtab_1, dump_symtab): Delete arg objfile.
3669 All callers updated.
3670
a55411b9
DE
36712016-04-19 Doug Evans <xdje42@gmail.com>
3672
ee2915c9 3673 PR gdb/17911
a55411b9
DE
3674 * source.c (is_regular_file): New arg errno_ptr.
3675 All callers updated.
3676
73e6209f
AA
36772016-04-19 Andreas Arnez <arnez@linux.vnet.ibm.com>
3678
3679 * linux-record.c (record_linux_system_call): Merge handling for
3680 readlink/recv/read and pipe/pipe2.
3681
f42bf748
WT
36822016-04-14 Walfred Tedeschi <walfred.tedeschi@intel.com>
3683
3684 * features/i386/amd64-mpx-linux.xml: Remove AVX feature.
3685 * features/i386/amd64-mpx.xml: Remove AVX feature.
3686 * features/i386/i386-mpx-linux.xml: Remove AVX feature.
3687 * features/i386/i386-mpx.xml: Remove AVX feature.
3688 * features/i386/amd64-mpx-linux.c: Regenerate.
3689 * features/i386/amd64-mpx.c: Regenerate.
3690 * features/i386/i386-mpx-linux.c: Regenerate.
3691 * features/i386/i386-mpx.c: Regenerate.
3692 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
3693 * regformats/i386/amd64-mpx.dat: Regenerate.
3694 * regformats/i386/i386-mpx-linux.dat: Regenerate.
3695 * regformats/i386/i386-mpx.dat: Regenerate.
3696
2b863f51
WT
36972016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
3698
3699 * amd64-linux-tdep.c (features/i386/amd64-avx-mpx-linux.c):
3700 New include.
3701 (amd64_linux_core_read_description): Add case for
3702 X86_XSTATE_AVX_MPX_MASK.
3703 (_initialize_amd64_linux_tdep): Call initialize_tdesc_amd64_avx_mpx_linux.
3704 * amd64-linux-tdep.h (tdesc_amd64_avx_mpx_linux): New definition.
3705 * amd64-tdep.c (features/i386/amd64-avx-mpx.c): New include.
3706 (amd64_target_description): Add case for X86_XSTATE_AVX_MPX_MASK.
3707 (_initialize_amd64_tdep): Call initialize_tdesc_amd64_avx_mpx.
3708 * common/x86-xstate.h (X86_XSTATE_MPX_MASK): Remove AVX bits.
3709 (X86_XSTATE_AVX_MPX_MASK): New case.
3710 * features/Makefile (i386/i386-avx-mpx, i386/i386-avx-mpx-linux)
3711 (i386/amd64-avx-mpx, i386/amd64-avx-mpx-linux): New rules.
3712 (i386/i386-avx-mpx-expedite, i386/i386-avx-mpx-linux-expedite)
3713 (i386/amd64-avx-mpx-expedite, i386/amd64-avx-mpx-linux-expedite):
3714 New expedites.
3715 * i386-linux-tdep.c (features/i386/i386-avx-mpx-linux.c): New
3716 include.
3717 (i386_linux_core_read_description): Add case
3718 X86_XSTATE_AVX_MPX_MASK.
3719 (_initialize_i386_linux_tdep): Call
3720 initialize_tdesc_i386_avx_mpx_linux.
3721 * i386-linux-tdep.h (tdesc_i386_avx_mpx_linux): New include.
3722 * i386-tdep.c (features/i386/i386-avx-mpx.c): New include.
3723 (i386_target_description): Add case for X86_XSTATE_AVX_MPX_MASK.
3724 * x86-linux-nat.c (x86_linux_read_description): Add case for
3725 X86_XSTATE_AVX_MPX_MASK.
3726 * features/i386/amd64-avx-mpx-linux.xml: New file.
3727 * features/i386/i386-avx-mpx-linux.xml: New file.
3728 * features/i386/i386-avx-mpx.xml: New file.
3729 * features/i386/amd64-avx-mpx.xml: New file.
3730 * features/i386/amd64-avx-mpx-linux.c: Generated.
3731 * features/i386/amd64-avx-mpx.c: Generated.
3732 * features/i386/i386-avx-mpx-linux.c: Generated.
3733 * features/i386/i386-avx-mpx.c: Generated.
3734 * regformats/i386/amd64-avx-mpx-linux.dat: Generated.
3735 * regformats/i386/amd64-avx-mpx.dat: Generated.
3736 * regformats/i386/i386-avx-mpx-linux.dat: Generated.
3737 * regformats/i386/i386-avx-mpx.dat: Generated.
3738
9b30624b
PA
37392016-04-18 Pedro Alves <palves@redhat.com>
3740
3741 * ptrace.m4 (GDB_AC_PTRACE): Don't run tests in C++ mode.
3742 * configure: Regenerate.
3743
a22df60a
MG
37442016-04-18 Martin Galvan <martin.galvan@tallertechnologies.com>
3745
3746 * valops.c (value_addr): For C++ references, set the copied value's
3747 enclosing_type as well.
3748
5947319e
YQ
37492016-04-18 Yao Qi <yao.qi@linaro.org>
3750
3751 Revert:
3752 2016-04-15 Yao Qi <yao.qi@linaro.org>
3753
3754 * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
3755 PC is far from the end of function.
3756
58484447
PA
37572016-04-16 Pedro Alves <palves@redhat.com>
3758
3759 * ada-exp.y (yydefred): Define as ada_yydefred.
3760
2b2798cc
PA
37612016-04-15 Pedro Alves <palves@redhat.com>
3762
3763 * ada-lang.c (ada_lookup_struct_elt_type): Constify 'type_str' and
3764 'name_str' locals.
3765
d7abe101
PA
37662016-04-15 Pedro Alves <palves@redhat.com>
3767
3768 * btrace.c (pt_btrace_insn_flags): Change return type to
3769 btrace_insn_flags. Use btrace_insn_flags for local.
3770
77770d83
PA
37712016-04-15 Pedro Alves <palves@redhat.com>
3772
3773 * nat/linux-ptrace.h [__mips__] (GDB_ARCH_IS_TRAP_BRKPT): Also
3774 accept TRAP_BRKPT.
3775 [__mips__] (GDB_ARCH_IS_TRAP_HWBKPT): Also accept TRAP_HWBKPT.
3776
415fa612
YQ
37772016-04-15 Yao Qi <yao.qi@linaro.org>
3778
3779 * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
3780 PC is far from the end of function.
3781
7f31862a
PA
37822016-04-14 Pedro Alves <palves@redhat.com>
3783
3784 * cli/cli-cmds.c (alias_usage_error): New function.
3785 (alias_command): Use it.
3786 * ctf.c (ctf_save_metadata_header): Inline metadata_fmt local in
3787 ctf_save_write_metadata call.
3788
aebf07fc
PA
37892016-04-14 Pedro Alves <palves@redhat.com>
3790
3791 * ada-typeprint.c (print_fixed_point_type): Don't pass float as
3792 argument to function expecting LONGEST.
3793 * value.c (unpack_long): Add casts to LONGEST.
3794
57d1de9c
LM
37952016-04-13 Luis Machado <lgustavo@codesourcery.com>
3796
3797 * exec.c (exec_file_locate_attach): Guard a couple functions
3798 that can throw errors.
3799 (exception_print_same): New helper function.
3800
3a00c802
PA
38012016-04-13 Pedro Alves <palves@redhat.com>
3802
3803 PR remote/19840
3804 * remote.c (struct remote_state) <last_resume_exec_dir>: New
3805 field.
3806 (new_remote_state): Default last_resume_exec_dir to EXEC_FORWARD.
3807 (remote_open_1): Reset last_resume_exec_dir to EXEC_FORWARD.
3808 (remote_resume): Store the last execution direction.
3809 (remote_execution_direction): New function.
3810 (init_remote_ops): Install it as to_execution_direction target_ops
3811 method.
3812
0f41b320
PA
38132016-04-12 Pedro Alves <palves@redhat.com>
3814
3815 * common/common-exceptions.h (GDB_XCPT_TRY): Update comment.
3816 [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
3817
173981bc
PA
38182016-04-12 Pedro Alves <palves@redhat.com>
3819
3820 * common/common-exceptions.c (struct catcher) <buf>: Now a
3821 'jmp_buf' instead of SIGJMP_BUF.
3822 (exceptions_state_mc_init): Change return type to 'jmp_buf'.
3823 (throw_exception): Use longjmp instead of SIGLONGJMP.
3824 * common/common-exceptions.h: Include <setjmp.h> instead of
3825 "gdb_setjmp.h".
3826 (exceptions_state_mc_init): Change return type to 'jmp_buf'.
3827 [GDB_XCPT == GDB_XCPT_SJMP] (TRY): Use setjmp instead of
3828 SIGSETJMP.
3829 * cp-support.c: Include "gdb_setjmp.h".
3830
2afc13ff
PA
38312016-04-12 Pedro Alves <palves@redhat.com>
3832
3833 * common/common-exceptions.c (exception_rethrow): Remove
3834 prepare_to_throw_exception call.
3835 * common/common-exceptions.h (prepare_to_throw_exception): Delete
3836 declaration.
3837 * exceptions.c (prepare_to_throw_exception): Delete.
3838
cfd0fbdd
PA
38392016-04-12 Pedro Alves <palves@redhat.com>
3840
3841 * target.c (target_check_pending_interrupt): Delete.
3842 * target.h (struct target_ops) <to_check_pending_interrupt>:
3843 Remove method.
3844 (target_check_pending_interrupt): Remove declaration.
3845 * target-delegates.c: Regenerate.
3846
585a46a2
PA
38472016-04-12 Pedro Alves <palves@redhat.com>
3848
3849 * defs.h: Update comments on SIGINT handling.
3850 (immediate_quit): Delete declaration.
3851 * event-loop.c (call_async_signal_handler): Delete.
3852 * event-loop.h (call_async_signal_handler): Delete declaration.
3853 (mark_async_signal_handler): Update comments.
3854 (gdb_call_async_signal_handler): Delete declaration.
3855 * event-top.c (handle_sigint): Call mark_async_signal_handler
3856 instead of gdb_call_async_signal_handler.
3857 * exceptions.c (prepare_to_throw_exception): Remove reference to
3858 immediate_quit.
3859 (exception_fprintf): Remove comments about immediate_quit.
3860 * mingw-hdep.c (sigint_event, sigint_handler): Delete.
3861 (gdb_select): Don't wait on sigint_event.
3862 (gdb_call_async_signal_handler): Delete.
3863 (_initialize_mingw_hdep): Delete.
3864 * posix-hdep.c (gdb_call_async_signal_handler): Delete.
3865 * utils.c (immediate_quit): Delete.
3866
048094ac
PA
38672016-04-12 Pedro Alves <palves@redhat.com>
3868
3869 * defs.h (quit_handler_ftype, quit_handler)
3870 (make_cleanup_override_quit_handler, default_quit_handler): New.
3871 (QUIT): Adjust comments.
3872 * event-top.c (default_quit_handler): New function.
3873 (quit_handler): New global.
3874 (struct quit_handler_cleanup_data): New.
3875 (restore_quit_handler, restore_quit_handler_dtor)
3876 (make_cleanup_override_quit_handler): New.
3877 (async_request_quit): Call QUIT.
3878 * remote.c (struct remote_state) <got_ctrlc_during_io>: New field.
3879 (async_sigint_remote_twice_token, async_sigint_remote_token):
3880 Delete.
3881 (remote_close): Update comments.
3882 (remote_start_remote): Don't set immediate_quit. Set starting_up
3883 earlier.
3884 (remote_serial_quit_handler, remote_unpush_and_throw): New
3885 functions.
3886 (remote_open_1): Clear got_ctrlc_during_io. Set
3887 remote_async_terminal_ours_p unconditionally.
3888 (async_initialize_sigint_signal_handler)
3889 (async_handle_remote_sigint, async_handle_remote_sigint_twice)
3890 (remote_check_pending_interrupt, async_remote_interrupt)
3891 (async_remote_interrupt_twice)
3892 (async_cleanup_sigint_signal_handler, ofunc)
3893 (sync_remote_interrupt, sync_remote_interrupt_twice): Delete.
3894 (remote_terminal_inferior, remote_terminal_ours): Remove async
3895 checks.
3896 (remote_wait_as): Don't install a SIGINT handler in sync mode.
3897 (readchar, remote_serial_write): Override the quit handler with
3898 remote_serial_quit_handler.
3899 (getpkt_or_notif_sane_1): Don't call QUIT.
3900 (initialize_remote_ops): Don't install
3901 remote_check_pending_interrupt.
3902 (_initialize_remote): Don't create async_sigint_remote_token and
3903 async_sigint_remote_twice_token.
3904 * ser-base.c (ser_base_wait_for): Call QUIT and use
3905 interruptible_select.
3906 (ser_base_write): Call QUIT.
3907 * ser-go32.c (dos_readchar, dos_write): Call QUIT.
3908 * ser-unix.c (wait_for): Don't use VTIME. Always take the
3909 gdb_select path, but call QUIT and interruptible_select.
3910 * utils.c (maybe_quit): Call the current quit handler. Don't call
3911 target_check_pending_interrupt.
3912 (defaulted_query, prompt_for_continue): Override the quit handler
3913 with the default quit handler.
3914
a12ac513
PA
39152016-04-12 Pedro Alves <palves@redhat.com>
3916
3917 * tui/tui-hooks.c (tui_target_has_run): Delete.
3918 (tui_about_to_proceed): Delete.
3919 (tui_about_to_proceed_observer): Delete.
3920 (tui_install_hooks, tui_remove_hooks): Don't install/remove an
3921 about_to_proceed observer.
3922
5fe96654
PA
39232016-04-12 Pedro Alves <palves@redhat.com>
3924
3925 * mi/mi-interp.c (mi_new_thread): Put
3926 target_terminal_ours_for_output in effect while outputting.
3927 (mi_thread_exit): Use target_terminal_ours_for_output instead of
3928 target_terminal_ours.
3929 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
3930 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
3931 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
3932 (mi_breakpoint_created, mi_breakpoint_deleted)
3933 (mi_breakpoint_modified, mi_solib_loaded, mi_solib_unloaded)
3934 (mi_command_param_changed, mi_memory_changed)
3935 (report_initial_inferior): Use target_terminal_ours_for_output
3936 instead of target_terminal_ours. Restore terminal settings.
3937 * mi/mi-main.c (mi_execute_command): Use
3938 target_terminal_ours_for_output instead of target_terminal_ours.
3939 Restore terminal settings.
3940
651ce16a
PA
39412016-04-12 Pedro Alves <palves@redhat.com>
3942
3943 PR gdb/19828
3944 * gnu-nat.c (inf_validate_task_sc): Don't call
3945 target_terminal_ours / target_terminal_inferior around query.
3946 * i386-tdep.c (i386_record_lea_modrm, i386_process_record): Don't
3947 call target_terminal_ours / target_terminal_inferior around
3948 yquery.
3949 * linux-record.c (record_linux_system_call): Don't call
3950 target_terminal_ours / target_terminal_inferior around yquery.
3951 * nto-procfs.c (interrupt_query): Don't call target_terminal_ours
3952 / target_terminal_inferior around query.
3953 * record-full.c (record_full_check_insn_num): Remove
3954 'set_terminal' parameter. Don't call target_terminal_ours /
3955 target_terminal_inferior around query.
3956 (record_full_message, record_full_registers_change)
3957 (record_full_xfer_partial): Adjust.
3958 * remote.c (interrupt_query): Don't call target_terminal_ours /
3959 target_terminal_inferior around query.
3960 * utils.c (defaulted_query): Install cleanup to restore target
3961 terminal. Put target_terminal_ours_for_output in effect while
3962 defaulted producing, and target_terminal_ours in in effect while
3963 handling input.
3964 (prompt_for_continue): Install cleanup to restore target terminal.
3965 Put target_terminal_ours in in effect while handling input.
3966
80dbc9fd
PA
39672016-04-12 Pedro Alves <palves@redhat.com>
3968
3969 * utils.c (defaulted_query, prompt_for_continue): Free temporary
3970 strings with cleanups, instead of xfree.
3971
c5ac1540
PA
39722016-04-12 Pedro Alves <palves@redhat.com>
3973
3974 * utils.c (vwarning, internal_vproblem): Use
3975 make_cleanup_restore_target_terminal and
3976 target_terminal_ours_for_output.
3977
f8e3ef9d
PA
39782016-04-12 Pedro Alves <palves@redhat.com>
3979
3980 * infcmd.c (post_create_inferior, prepare_one_step): Use
3981 target_terminal_ours_for_output instead of target_terminal_ours.
3982
481ac8c9
PA
39832016-04-12 Pedro Alves <palves@redhat.com>
3984
3985 * exceptions.c (print_flush): Use target_terminal_ours_for_output
3986 instead of target_terminal_ours, and restore target terminal with
3987 a cleanup.
3988
c509f1e1
PA
39892016-04-12 Pedro Alves <palves@redhat.com>
3990
3991 * cp-support.c (gdb_demangle): Use target_terminal_ours_for_output
3992 instead of target_terminal_ours, and restore target terminal with
3993 a cleanup.
3994
99bbb428
PA
39952016-04-12 Pedro Alves <palves@redhat.com>
3996
3997 * ada-lang.c (type_as_string, type_as_string_and_cleanup): New
3998 functions.
3999 (ada_lookup_struct_elt_type): Use type_as_string_and_cleanup.
4000
75ee5925
PA
40012016-04-12 Pedro Alves <palves@redhat.com>
4002
4003 * ser-base.c (fd_event): Retry read_prim on EINTR.
4004 (do_ser_base_readchar): Retry read_prim on EINTR.
4005 (ser_base_write): Retry write_prim on EINTR.
4006 * ser-unix.c (ser_unix_read_prim): Don't retry on EINTR here.
4007 (ser_unix_write_prim): Remove comment.
4008
93692b58
PA
40092016-04-12 Pedro Alves <palves@redhat.com>
4010
4011 * remote.c (remote_pass_ctrlc): New function.
4012 (init_remote_ops): Install it.
4013 * target.c (target_terminal_inferior): Pass pending Ctrl-C to the
4014 target.
4015 (target_pass_ctrlc, default_target_pass_ctrlc): New functions.
4016 * target.h (struct target_ops) <to_pass_ctrlc>: New method.
4017 (target_pass_ctrlc, default_target_pass_ctrlc): New declarations.
4018 * target-delegates.c: Regenerate.
4019
e42de8c7
PA
40202016-04-12 Pedro Alves <palves@redhat.com>
4021
4022 * infcmd.c (interrupt_target_1): Call target_stop is in non-stop
4023 mode.
4024 * linux-nat.c (linux_nat_interrupt): Delete.
4025 (linux_nat_add_target): Don't install linux_nat_interrupt.
4026 * remote.c (remote_interrupt_ns): Change return type to void.
4027 Throw error if interrupting the target is not supported.
4028 (remote_interrupt): Don't call the remote_stop_ns/remote_stop_as.
4029
a149683b
PA
40302016-04-12 Pedro Alves <palves@redhat.com>
4031
4032 * defs.h (clear_quit_flag): Remove declaration.
4033 * extension-priv.h (struct extension_language_ops)
4034 <clear_quit_flag>: Remove field and update comments.
4035 * extension.c (clear_quit_flag): Delete.
4036 * guile/guile.c (guile_extension_ops): Adjust.
4037 * python/python.c (python_extension_ops): Adjust.
4038 (gdbpy_clear_quit_flag): Delete.
4039
da1e5f54
PA
40402016-04-12 Pedro Alves <palves@redhat.com>
4041
4042 * main.c (captured_main): Don't clear the quit flag.
4043
0af679c6
PA
40442016-04-12 Pedro Alves <palves@redhat.com>
4045
4046 * exceptions.c (prepare_to_throw_exception): Don't clear the quit
4047 flag.
4048
4a81fd47
PA
40492016-04-12 Pedro Alves <palves@redhat.com>
4050
4051 * event-top.c (command_handler): Don't call clear_quit_flag.
4052
abf009ef
PA
40532016-04-12 Pedro Alves <palves@redhat.com>
4054
4055 * remote-sim.c (gdb_os_poll_quit): Don't call clear_quit_flag.
4056 * remote.c (remote_wait_as): Don't call clear_quit_flag.
4057
6eddd09a
PA
40582016-04-12 Pedro Alves <palves@redhat.com>
4059
4060 * python/python.c: Include "ser-event.h".
4061 (gdbpy_event_fds): Delete.
4062 (gdbpy_serial_event): New.
4063 (gdbpy_run_events): Change prototype. Use serial_event_clear
4064 instead of serial_readchar.
4065 (gdbpy_post_event): Use serial_event_set instead of serial_write.
4066 (gdbpy_initialize_events): Use make_serial_event instead of
4067 serial_pipe.
4068
f0881b37
PA
40692016-04-12 Pedro Alves <palves@redhat.com>
4070
4071 * defs.h: Extend QUIT-related comments to mention
4072 interruptible_select.
4073 (quit_serial_event_set, quit_serial_event_clear): Declare.
4074 * event-top.c: Include "ser-event.h" and "gdb_select.h".
4075 (quit_serial_event): New global.
4076 (async_init_signals): Make quit_serial_event.
4077 (quit_serial_event_set, quit_serial_event_clear)
4078 (quit_serial_event_fd, interruptible_select): New functions.
4079 * extension.c (set_quit_flag): Set the quit serial event.
4080 (check_quit_flag): Clear the quit serial event.
4081 * gdb_select.h (interruptible_select): New declaration.
4082 * guile/scm-ports.c (ioscm_input_waiting): Use
4083 interruptible_select instead of gdb_select.
4084 * top.c (gdb_readline_no_editing): Likewise.
4085 * ui-file.c (stdio_file_read): Likewise.
4086
5cc3ce8b
PA
40872016-04-12 Pedro Alves <palves@redhat.com>
4088
4089 * event-loop.c: Include "ser-event.h".
4090 (async_signal_handlers_serial_event): New global.
4091 (async_signals_handler, initialize_async_signal_handlers): New
4092 functions.
4093 (mark_async_signal_handler): Set
4094 async_signal_handlers_serial_event.
4095 (invoke_async_signal_handlers): Clear
4096 async_signal_handlers_serial_event.
4097 * event-top.c (async_init_signals): Call
4098 initialize_async_signal_handlers.
4099
00340e1b
PA
41002016-04-12 Pedro Alves <palves@redhat.com>
4101
4102 * Makefile.in (SFILES): Add ser-event.c.
4103 (HFILES_NO_SRCDIR): Add ser-event.h.
4104 (COMMON_OBS): Add ser-event.o.
4105 * ser-event.c, ser-event.h: New files.
4106 * serial.c (new_serial): New function, factored out from
4107 (serial_fdopen_ops): ... this.
4108 (serial_open_ops_1): New function, factored out from
4109 (serial_open): ... this.
4110 (serial_open_ops): New function.
4111 * serial.h (struct serial): Forware declare.
4112 (serial_open_ops): New declaration.
4113
5f5219fc
PA
41142016-04-12 Pedro Alves <palves@redhat.com>
4115
4116 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
4117 Remove references to name.
4118 * serial.h (struct serial) <name>: Delete.
4119
acd5494d
PA
41202016-04-12 Pedro Alves <palves@redhat.com>
4121
4122 * remote-fileio.c (sigint_fileio_token, remote_fio_no_longjmp):
4123 Delete.
4124 (async_remote_fileio_interrupt): Delete.
4125 (remote_fileio_ctrl_c_signal_handler): Don't call the async signal
4126 handler. Instead just always set the ctrl_c flag.
4127 (remote_fileio_reply): Clear remote_fio_ctrl_c_flag before
4128 re-enabling the SIGINT handler.
4129 (remote_fileio_func_open, remote_fileio_func_close)
4130 (remote_fileio_func_read, remote_fileio_func_write)
4131 (remote_fileio_func_lseek, remote_fileio_func_rename)
4132 (remote_fileio_func_unlink, remote_fileio_func_stat)
4133 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
4134 (remote_fileio_func_isatty, remote_fileio_func_system)
4135 (remote_fileio_request): Remove references to
4136 remote_fio_no_longjmp.
4137 (initialize_remote_fileio): Don't create an async signal handler.
4138
d2acc30b
PA
41392016-04-12 Pedro Alves <palves@redhat.com>
4140
4141 * event-top.c (stdin_event_handler): Call QUIT;
4142 (prompt_for_continue): Don't run with immediate_quit set.
4143
ab33ab13
PA
41442016-04-12 Pedro Alves <palves@redhat.com>
4145
4146 * tui/tui-io.c (tui_redisplay_readline): Check
4147 gdb_in_secondary_prompt_p instead of immediate_quit.
4148 * tui/tui.c: Include top.h.
4149 (tui_rl_startup_hook): Check gdb_in_secondary_prompt_p instead of
4150 immediate_quit.
4151
faa4ebe1
PA
41522016-04-12 Pedro Alves <palves@redhat.com>
4153
4154 * top.c (read_command_file): Inline command_loop here.
4155 (command_loop): Delete.
4156
3212b858
PA
41572016-04-12 Pedro Alves <palves@redhat.com>
4158
4159 * top.c: Include "gdb_select.h".
4160 (gdb_readline_no_editing): Wait for input with gdb_select instead
4161 of blocking in fgetc.
4162 (command_line_input): Don't set immediate_quit.
4163
4bf7b526
MG
41642016-04-08 Martin Galvan <martin.galvan@tallertechnologies.com>
4165
4166 * value.c (value_next): Make pass-by-reference parameters const-correct.
4167 (value_parent): Likewise.
4168 (value_enclosing_type): Likewise.
4169 (value_lazy): Likewise.
4170 (value_stack): Likewise.
4171 (value_embedded_offset): Likewise.
4172 (value_pointed_to_offset): Likewise.
4173 (value_raw_address): Likewise.
4174 (deprecated_value_modifiable): Likewise.
4175 (value_free_to_mark): Likewise.
4176 (value_release_to_mark): Likewise.
4177 (internalvar_name): Likewise.
4178 (readjust_indirect_value_type): Likewise.
4179 (value_initialized): Likewise.
4180 * value.h (value_next): Likewise.
4181 (value_parent): Likewise.
4182 (value_enclosing_type): Likewise.
4183 (value_lazy): Likewise.
4184 (value_stack): Likewise.
4185 (value_embedded_offset): Likewise.
4186 (value_pointed_to_offset): Likewise.
4187 (value_raw_address): Likewise.
4188 (deprecated_value_modifiable): Likewise.
4189 (value_free_to_mark): Likewise.
4190 (value_release_to_mark): Likewise.
4191 (internalvar_name): Likewise.
4192 (readjust_indirect_value_type): Likewise.
4193 (value_initialized): Likewise.
4194
e390720b
YQ
41952016-04-07 Yao Qi <yao.qi@linaro.org>
4196
4197 * record-full.c (record_full_insert_breakpoint): Return
4198 early if entry on the address is found in
4199 record_full_breakpoints.
4200
1ccd06e4
YQ
42012016-04-07 Yao Qi <yao.qi@linaro.org>
4202
4203 * record-full.c (record_full_insert_breakpoint): Set
4204 bp_tgt->reqstd_address and bp_tgt->placed_size.
4205
ecf2e90c
DB
42062016-04-06 Don Breazeal <donb@codesourcery.com>
4207
4208 * value.c (value_actual_type): Don't try to get rtti type
4209 of the value if it has been optimized out.
4210 (value_optimized_out): If a memory access error occurs,
4211 just check vaue->optimized_out.
4212
14731617
JK
42132016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4214
4215 Revert the previous commit adding unknown_v_replies_ok.
4216
319cb5d0
JK
42172016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4218
4219 * remote.c (struct remote_state): New field unknown_v_replies_ok.
4220 (packet_config_support): Read it.
4221 (remote_start_remote): Set it.
4222
052d2eb2
JK
42232016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4224
4225 * remote.c: Revert check-in by a mistake in the previous commit.
4226
fef3cb9f
JK
42272016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4228 Pedro Alves <palves@redhat.com>
4229
4230 * exec.c (exec_file_locate_attach): Print warning for unsupported
4231 target_pid_to_exec_file.
4232 * symfile-mem.c (add_vsyscall_page): Remove the "file" command
4233 message part.
4234
2aa08bd1
SM
42352016-04-04 Simon Marchi <simon.marchi@ericsson.com>
4236
4237 * cli/cli-decode.c (help_cmd_list): Fix function doc and remove
4238 trailing spaces.
4239
cc63428a
AV
42402016-04-01 Artemiy Volkov <artemiyv@acm.org>
4241
4242 PR gdb/19820
4243 * eval.c (evaluate_subexp_standard): Allow TYPE_CODE_ENUM to be
4244 the type of BINOP_REPEAT's second operand.
4245
9bb84c9f
YY
42462016-03-31 Yichao Yu <yyc1992@gmail.com>
4247
4248 PR gdb/19858
4249 * jit.c (jit_breakpoint_re_set_internal): Return 0 if we already
4250 got the breakpoint at the right address.
4251 (jit_inferior_created): New function.
4252 (_initialize_jit): Install jit_inferior_created as
4253 inferior_created observer.
4254
22084c42
MK
42552016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
4256
4257 * NEWS: Mention support for tracepoints on powerpc*-linux.
4258
e7ea3ec7
CU
42592016-03-31 Catalin Udma <catalin.udma@freescale.com>
4260
4261 PR python/19743
4262 * python/python.c (execute_gdb_command): Use console uiout
4263 when executing gdb command.
4264 * utils.c (restore_ui_out_closure): New structure.
4265 (do_restore_ui_out): New function.
4266 (make_cleanup_restore_ui_out): Likewise.
4267 * utils.h (make_cleanup_restore_ui_out): Declare.
4268
f7c38292
PA
42692016-03-31 Pedro Alves <palves@redhat.com>
4270
4271 * NEWS: Mention that support for "target m32rsdi", "target mips",
4272 "target pmon", "target ddb", "target rockhopper", and "target lsi"
4273 was removed.
4274 * Makefile.in (ALL_TARGET_OBS): Remove remote-m32r-sdi.o and
4275 remote-mips.o.
4276 (ALLDEPFILES): Remove remote-m32r-sdi.c and remote-mips.c.
4277 * configure.tgt: Remove all references to remote-m32r-sdi.o and
4278 remote-mips.o.
4279 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Delete
4280 function.
4281 * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Delete
4282 declaration.
4283 * remote-m32r-sdi.c, remote-mips.c: Delete files.
4284 * symfile.c (generic_load, generic_load): Remove comments.
4285
fb3f3d25
YQ
42862016-03-30 Yao Qi <yao.qi@linaro.org>
4287
4288 * arm-tdep.c (arm_epilogue_frame_this_id): Check 'func' against
4289 0 rather than NULL.
4290
779aa56f
YQ
42912016-03-30 Yao Qi <yao.qi@linaro.org>
4292
4293 * arm-tdep.c: (arm_make_epilogue_frame_cache): New function.
4294 (arm_epilogue_frame_this_id): New function.
4295 (arm_epilogue_frame_prev_register): New function.
4296 (arm_epilogue_frame_sniffer): New function.
4297 (arm_epilogue_frame_unwind): New.
4298 (arm_gdbarch_init): Append unwinder arm_epilogue_frame_unwind.
4299
c58b006a
YQ
43002016-03-30 Yao Qi <yao.qi@linaro.org>
4301
4302 * arm-tdep.c (arm_stack_frame_destroyed_p): Rename it ...
4303 (arm_stack_frame_destroyed_p_1): ... here. Don't call
4304 arm_pc_is_thumb.
4305 (arm_stack_frame_destroyed_p): Call
4306 thumb_stack_frame_destroyed_p and
4307 arm_stack_frame_destroyed_p_1.
4308
4ae6cc19
DE
43092016-03-30 Doug Evans <dje@google.com>
4310
4311 * python/py-utils.c (host_string_to_python_string): New function.
4312 * python/python-internal.h (host_string_to_python_string): Declare it.
4313 * python/py-*.c (*): Update all calls to
4314 PyString_Decode (str, strlen (str), host_charset (), NULL);
4315 to use host_string_to_python_string instead.
4316
28170b88
MK
43172016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
4318
4319 * remote.c (remote_check_symbols): Allocate own buffer for reply.
4320
a08b52b5
MF
43212016-03-29 Max Filippov <jcmvbkbc@gmail.com>
4322
4323 * xtensa-tdep.c (xtensa_frame_cache): Change op1 type to LONGEST.
4324 Use safe_read_memory_integer instead of read_memory_integer.
4325
c37c0ba6
MK
43262016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
4327
4328 * NEWS: Mention support for tracepoints on s390*-linux.
4329
444bca65
DB
43302016-03-29 Don Breazeal <donb@codesourcery.com>
4331
4332 * gdb/value.c (value_actual_type): Fix formatting issue.
4333
cc651c1c
YQ
43342016-03-23 Yao Qi <yao.qi@linaro.org>
4335
4336 * gdbarch.sh (software_single_step): Remove comments.
4337 * gdbarch.h: Regenerated.
4338
c55978a6
YQ
43392016-03-21 Yao Qi <yao.qi@linaro.org>
4340
4341 * arm-tdep.c (arm_record_media): New.
4342 (arm_record_ld_st_reg_offset): Call arm_record_media.
4343
479fe002
YQ
43442016-03-21 Yao Qi <yao.qi@linaro.org>
4345
4346 * arm-linux-tdep.c (arm_canonicalize_syscall): Canonicalize
4347 more syscalls.
4348
9c3f2234
YQ
43492016-03-18 Yao Qi <yao.qi@linaro.org>
4350
4351 * sparc-tdep.c (sparc_software_single_step): Make it static.
4352 * sparc-tdep.h (sparc_software_single_step): Remove declaration.
4353
941319d1
YQ
43542016-03-18 Yao Qi <yao.qi@linaro.org>
4355
4356 * spu-tdep.c (spu_software_single_step): Throw error when
4357 target_read_memory fails.
4358
708bf0a1
JK
43592016-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4360
4361 * linux-thread-db.c (check_pid_namespace_match): Extend the message.
4362
0d5b594f
PA
43632016-03-17 Pedro Alves <palves@redhat.com>
4364 Don Breazeal <donb@codesourcery.com>
4365
4366 PR remote/19496
4367 * infcmd.c (notice_new_inferior): Use the 'leave_running' argument
4368 instead of checking the 'non_stop' global.
4369 * remote.c (remote_add_thread): New parameter 'executing'. Use it
4370 to set the new thread's executing state.
4371 (remote_notice_new_inferior): Rename parameter 'running' to
4372 'executing'. Always set the thread state to THREAD_RUNNING in
4373 non-stop mode, and to THREAD_STOPPED in all-stop mode. Pass
4374 EXECUTING to remote_add_thread and notice_new_inferior.
4375 (remote_update_thread_list): Update to pass executing state, not
4376 running state.
4377
bba960fc
AA
43782016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
4379
4380 * syscalls/s390-linux.xml: Add NUMA syscalls and new syscalls up
4381 to 374.
4382 * syscalls/s390x-linux.xml: Likewise.
4383
5fd0888a
AA
43842016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
4385
4386 * linux-record.c (record_mem_at_reg): New helper function.
4387 (record_linux_system_call): Exploit new helper function where
4388 applicable.
4389
0fc8f115
AA
43902016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
4391
4392 * linux-record.c: Fix whitespace issues; tabify, remove trailing
4393 spaces.
4394
afdab916
AA
43952016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
4396
4397 * linux-record.c (record_linux_system_call): Add missing return
4398 statements to handling of pipe and pipe2 syscalls.
4399
bfeeb14b
DE
44002016-03-16 Doug Evans <dje@google.com>
4401
4402 * xml-tdesc.c (tdesc_start_enum): Fix c++ build.
4403
6b94a855
YQ
44042016-03-16 Yao Qi <yao.qi@linaro.org>
4405
4406 * arm-linux-tdep.c (arm_linux_init_abi): Fix
4407 arm_linux_record_tdep.arg1, arm_linux_record_tdep.arg2 and
4408 arm_linux_record_tdep.arg3. Set arm_linux_record_tdep.arg4,
4409 arm_linux_record_tdep.arg5, arm_linux_record_tdep.arg6, and
4410 arm_linux_record_tdep.arg7.
4411
1cafadb4
DB
44122016-03-15 Keith Seitz <keiths@redhat.com>
4413
4414 PR breakpoints/18303
4415 * cp-namespace.c (cp_lookup_bare_symbol): Change assertion to
4416 look for "::" instead of simply ":".
4417 (cp_search_static_and_baseclasses): Return null_block_symbol for
4418 malformed input.
4419 Remove assertions.
4420 * cp-support.c (cp_find_first_component_aux): Do not return
4421 a prefix length for ':' unless the next character is also ':'.
4422
89c200ed
DE
44232016-03-15 Doug Evans <dje@google.com>
4424
4425 * features/aarch64-core.xml (cpsr_flags): New flags type.
4426 (cpsr): Use it.
4427 * features/aarch64.c: Regenerate.
4428
49b7ae7b
DE
44292016-03-15 Doug Evans <dje@google.com>
4430
4431 * features/i386/32bit-core.xml (i386_eflags): Remove "end" spec.
4432 * features/i386/32bit-sse.xml (i386_eflags): Ditto.
4433 * features/i386/64bit-core.xml (i386_eflags): Ditto.
4434 * features/i386/64bit-sse.xml (i386_eflags): Ditto.
4435 * features/i386/x32-core.xml (i386_eflags): Ditto.
4436
81516450 44372016-03-15 Doug Evans <dje@google.com>
79427bd2 4438 Wei-cheng Wang <cole945@gmail.com>
81516450
DE
4439
4440 Extend flags to support multibit and enum bitfields.
79427bd2 4441 * NEWS: Document new features.
81516450
DE
4442 * c-typeprint.c (c_type_print_varspec_prefix): Handle TYPE_CODE_FLAGS.
4443 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
4444 * gdbtypes.c (arch_flags_type): Don't assume all fields are one bit.
4445 (append_flags_type_field): New function.
4446 (append_flags_type_flag): Call it.
4447 * gdbtypes.h (append_flags_type_field): Declare.
4448 * target-descriptions.c (struct tdesc_type_flag): Delete.
4449 (enum tdesc_type_kind) <TDESC_TYPE_BOOL>: New enum value.
4450 (enum tdesc_type_kind) <TDESC_TYPE_ENUM>: Ditto.
4451 (struct tdesc_type) <u.f>: Delete.
4452 (tdesc_predefined_types): Add "bool".
4453 (tdesc_predefined_type): New function.
4454 (tdesc_gdb_type): Handle TDESC_TYPE_BOOL, TDESC_TYPE_ENUM.
4455 Update TDESC_TYPE_FLAGS support.
4456 (tdesc_free_type): Handle TDESC_TYPE_ENUM. Update TDESC_TYPE_FLAGS.
4457 (tdesc_create_flags): Update.
4458 (tdesc_create_enum): New function.
4459 (tdesc_add_field): Initialize start,end to -1.
4460 (tdesc_add_typed_bitfield): New function.
4461 (tdesc_add_bitfield): Call it.
4462 (tdesc_add_flag): Allow TDESC_TYPE_STRUCT. Update.
4463 (tdesc_add_enum_value): New function.
4464 (maint_print_c_tdesc_cmd): Fold TDESC_TYPE_FLAGS support into
4465 TDESC_TYPE_STRUCT. Handle TDESC_TYPE_ENUM.
4466 * target-descriptions.h (tdesc_create_enum): Declare.
4467 (tdesc_add_typed_bitfield, tdesc_add_enum_value): Declare.
4468 * valprint.c (generic_val_print_enum_1): New function.
4469 (generic_val_print_enum): Call it.
4470 (val_print_type_code_flags): Make static. Handle multibit bitfields
4471 and enum bitfields.
4472 * valprint.h (val_print_type_code_flags): Delete.
4473 * xml-tdesc.c (struct tdesc_parsing_data) <current_type_is_flags>:
4474 Delete. All uses removed.
4475 (tdesc_start_enum): New function.
4476 (tdesc_start_field): Handle multibit and enum bitfields.
4477 (tdesc_start_enum_value): New function.
4478 (enum_value_attributes, enum_children, enum_attributes): New static
4479 globals.
4480 (feature_children): Add "enum".
4481 * features/gdb-target.dtd (enum, evalue): New elements.
4482
54157a25
DE
44832016-03-15 Doug Evans <dje@google.com>
4484
4485 * target-descriptions.c (struct tdesc_type) <u.u.size>: Change type
4486 from LONGEST to int.
4487 (struct tdesc_type) <u.f.size>: Ditto.
4488 (tdesc_set_struct_size): Change type of "size" arg from LONGEST
4489 to int. Add assertion size > 0.
4490 (tdesc_create_flags): Ditto.
4491 * target-descriptions.h (tdesc_set_struct_size): Update.
4492 (tdesc_create_flags): Update.
4493 * xml-tdesc.c (MAX_FIELD_SIZE, MAX_FIELD_BITSIZE): New macros.
4494 (MAX_VECTOR_SIZE): New macro.
4495 (tdesc_start_struct): Catch conversion errors from LONGEST to int.
4496 (tdesc_start_flags, tdesc_start_field, tdesc_start_vector): Ditto.
4497
73b4f516
DE
44982016-03-15 Doug Evans <dje@google.com>
4499
4500 * target-descriptions.c (maint_print_c_tdesc_cmd): Use "type" for
4501 TYPE_CODE_FLAGS instead of "field_type", for consistency.
4502 * features/i386/amd64-avx-linux.c: Regenerate.
4503 * features/i386/amd64-avx.c: Regenerate.
4504 * features/i386/amd64-avx512-linux.c: Regenerate.
4505 * features/i386/amd64-avx512.c: Regenerate.
4506 * features/i386/amd64-linux.c: Regenerate.
4507 * features/i386/amd64-mpx-linux.c: Regenerate.
4508 * features/i386/amd64-mpx.c: Regenerate.
4509 * features/i386/amd64.c: Regenerate.
4510 * features/i386/i386-avx-linux.c: Regenerate.
4511 * features/i386/i386-avx.c: Regenerate.
4512 * features/i386/i386-avx512-linux.c: Regenerate.
4513 * features/i386/i386-avx512.c: Regenerate.
4514 * features/i386/i386-linux.c: Regenerate.
4515 * features/i386/i386-mmx-linux.c: Regenerate.
4516 * features/i386/i386-mmx.c: Regenerate.
4517 * features/i386/i386-mpx-linux.c: Regenerate.
4518 * features/i386/i386-mpx.c: Regenerate.
4519 * features/i386/i386.c: Regenerate.
4520 * features/i386/x32-avx-linux.c: Regenerate.
4521 * features/i386/x32-avx.c: Regenerate.
4522 * features/i386/x32-avx512-linux.c: Regenerate.
4523 * features/i386/x32-avx512.c: Regenerate.
4524 * features/i386/x32-linux.c: Regenerate.
4525 * features/i386/x32.c: Regenerate.
4526
1eb2dbb8
PA
45272016-03-15 Pedro Alves <palves@redhat.com>
4528
4529 PR gdb/19676
4530 * linux-thread-db.c (try_thread_db_load_1): Leave
4531 info->td_ta_thr_iter_p NULL iff debugging a live process and we
4532 have /proc access.
4533 (find_new_threads_once): Assert that we have a non-NULL
4534 info->td_ta_thr_iter_p instead of checking whether the target has
4535 execution.
4536
16b41842
PA
45372016-03-15 Pedro Alves <palves@redhat.com>
4538
4539 PR gdb/19676
4540 * infrun.c (displaced_step_prepare): Also disable displaced
4541 stepping on NOT_SUPPORTED_ERROR.
4542 * linux-tdep.c (linux_displaced_step_location): If reading auxv
4543 fails, throw NOT_SUPPORTED_ERROR instead of generic error.
4544
70104a90
MK
45452016-03-13 Marcin Kościelnicki <koriakin@0x04.net>
4546
4547 * s390-linux-tdep.c (s390_gen_return_address): New function.
4548 (s390_gdbarch_init): Fill gen_return_address hook.
4549
f2403c39
AB
45502016-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
4551
4552 * symmisc.c (maintenance_info_line_tables): New function.
4553 (maintenance_print_one_line_table): New function.
4554 (_initialize_symmisc): Register 'maint info line-table' command.
4555 * NEWS: Mention new command.
4556
c4b3e547
MK
45572016-03-11 Marcin Kościelnicki <koriakin@0x04.net>
4558
4559 * s390-linux-tdep.c (s390_ax_pseudo_register_collect): New function.
4560 (s390_ax_pseudo_register_push_stack): New function.
4561 (s390_gdbarch_init): Fill ax_pseudo_register_collect and
4562 ax_pseudo_register_push_stack hooks.
4563
f2f3ccb9
SM
45642016-03-10 Simon Marchi <simon.marchi@polymtl.ca>
4565
4566 * data-directory/Makefile.in (PYTHON_FILE_LIST): Install
4567 gdb/function/as_string.py.
4568 * python/lib/gdb/function/as_string.py: New file.
4569 * NEWS: Mention the new $_as_string function.
4570
2343b78a
JM
45712016-03-09 Jose E. Marchesi <jose.marchesi@oracle.com>
4572
4573 * target.h: Fix doc string of target_can_use_hardware_watchpoint.
4574
b69d38af
PA
45752016-03-09 Pedro Alves <palves@redhat.com>
4576
4577 * event-top.c (more_to_come): Delete.
4578 (struct readline_input_state): Delete.
4579 (readline_input_state): Delete.
4580 (get_command_line_buffer): New function.
4581 (command_handler): Update comments. Don't handle NULL commands
4582 here. Do not execute commented lines.
4583 (command_line_append_input_line): New function.
4584 (handle_line_of_input): New function, partly based on
4585 command_line_handler and command_line_input.
4586 (command_line_handler): Rewrite.
4587 * event-top.h (command_handler): New declaration.
4588 (command_loop): Defer command execution to command_handler.
4589 (command_line_input): Update comments. Simplify, using struct
4590 buffer and handle_line_of_input.
4591 * top.h (struct buffer): New forward declaration.
4592 (handle_line_of_input): New declaration.
4593
2669cade
PA
45942016-03-09 Pedro Alves <palves@redhat.com>
4595
4596 * event-top.c (command_line_handler): Use xfree + xstrdup instead
4597 of xrealloc + strcpy.
4598 * main.c (captured_main): Use xstrdup instead of xmalloc plus
4599 manual clear.
4600 * top.c (saved_command_line): Rewrite comment.
4601 (saved_command_line_size): Delete.
4602 (command_line_input): Use xfree + xstrdup instead of xrealloc +
4603 strcpy.
4604 * top.h (saved_command_line_size): Delete declaration.
4605
187212b3
PA
46062016-03-09 Pedro Alves <palves@redhat.com>
4607
4608 * event-top.c: Include buffer.h.
4609 (gdb_readline_no_editing_callback): Use struct buffer instead
4610 of xrealloc.
4611
7a3bde34
PA
46122016-03-09 Pedro Alves <palves@redhat.com>
4613
4614 * common/buffer.h (buffer_grow_char): New function.
4615 * top.c: Include buffer.h.
4616 (gdb_readline_no_editing): Rename 'prompt_arg' parameter to
4617 'prompt'. Use struct buffer instead of xrealloc.
4618
c5c136ea
PA
46192016-03-09 Pedro Alves <palves@redhat.com>
4620
4621 * defs.h (gdb_readline): Delete declaration.
4622 * top.c (gdb_readline): Rename to ...
4623 (gdb_readline_no_editing): ... this, and make static.
4624
720d2e96
PA
46252016-03-09 Pedro Alves <palves@redhat.com>
4626
4627 * utils.c (prompt_for_continue): Update comments.
4628
608ff013
PA
46292016-03-09 Pedro Alves <palves@redhat.com>
4630
4631 * event-top.c (async_annotation_suffix): Delete.
4632 (top_level_prompt, command_line_handler): Don't use
4633 'async_annotation_suffix' and simplify.
4634 * event-top.h (async_annotation_suffix): Delete declaration.
4635 (init_main): Remove reference to 'async_annotation_suffix'.
4636
c70061cf
PA
46372016-03-09 Pedro Alves <palves@redhat.com>
4638
4639 * event-top.c (gdb_readline2): Rename to ...
4640 (gdb_readline_no_editing_callback): ... this.
4641 (change_line_handler, stdin_event_handler)
4642 (gdb_setup_readline): Adjust.
4643 * event-top.h (gdb_readline2): Rename to ...
4644 (gdb_readline_no_editing_callback): ... this, and move closer to
4645 other readline-related declarations.
4646 * mi/mi-interp.c (mi_interpreter_resume): Adjust.
4647
8a243832
PA
46482016-03-09 Pedro Alves <palves@redhat.com>
4649
4650 * top.c (window_hook): Delete.
4651 (command_loop): Remove references to window_hook.
4652
cc2c4da8
MK
46532016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
4654
4655 * corefile.c (safe_read_memory_unsigned_integer): New function.
4656 * gdbcore.h (safe_read_memory_unsigned_integer): New prototype.
4657 * rs6000-tdep.c (rs6000_frame_cache): Read backchain as unsigned.
4658
a67914de
MK
46592016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
4660
4661 * rs6000-tdep.c: Add "ax.h" and "ax-gdb.h" includes.
4662 (rs6000_gen_return_address): New function.
4663 (rs6000_gdbarch_init): Wire in the above.
4664
2a2fa07b
MK
46652016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
4666
4667 * rs6000-tdep.c (rs6000_ax_pseudo_register_collect): New function.
4668 (rs6000_gdbarch_init): Wire in the above.
4669
bc0e3f49
AA
46702016-03-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
4671
4672 * s390-linux-tdep.c (s390_analyze_prologue): Ignore BRC and BRCL
4673 instructions that do nothing or are conditional traps.
4674
6d53bec8
AA
46752016-03-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
4676
4677 * s390-linux-tdep.c (s390_prologue_frame_unwind_cache): Store
4678 frame func's PC in info->func before any other failure can occur.
4679 (s390_frame_this_id): Use frame_id_build_unavailable_stack if
4680 info->func has been filled out.
4681
f7990f16
PA
46822016-03-09 Pedro Alves <palves@redhat.com>
4683
4684 * osabi.c (gdb_osabi_names): Avoid spaces in osabi names.
4685
087ccc6a
PA
46862016-03-09 Pedro Alves <palves@redhat.com>
4687
4688 * frv-tdep.c (frv_gdbarch_init): Handle bfd_mach_fr300.
4689
114d7832
PA
46902016-03-09 Pedro Alves <palves@redhat.com>
4691
4692 * cris-tdep.c (cris_gdbarch_init): Return 0 if the info's byte
4693 order is BFD_ENDIAN_BIG or if the cris version is unsupported.
4694
d7a87b5e
PA
46952016-03-09 Pedro Alves <palves@redhat.com>
4696
4697 * doublest.c: Extend comments.
4698 (floatformat_to_doublest, floatformat_from_doublest): Copy the
4699 floatformat's total size, not the host type's size.
4700
b79497cb
PA
47012016-03-09 Pedro Alves <palves@redhat.com>
4702
4703 * doublest.c (floatformat_totalsize_bytes): New function.
4704 (floatformat_from_type): Assert that the type's length is at least
4705 as long as the floatformat's totalsize.
4706 * doublest.h (floatformat_totalsize_bytes): New declaration.
4707 * gdbtypes.c (arch_float_type): Assert that the type's length is
4708 at least as long as the floatformat's totalsize.
4709
aacca8a7
PA
47102016-03-09 Pedro Alves <palves@redhat.com>
4711
4712 * hppa-linux-tdep.c (hppa_linux_init_abi): Set the long double
4713 format to floatformats_ieee_double.
4714
e6c2f47b
PA
47152016-03-07 Pedro Alves <palves@redhat.com>
4716
4717 * mips-tdep.c (mips_gdbarch_init): Check whether info.abfd is NULL
4718 before calling bfd_get_flavour.
4719
cb86f388
DC
47202016-03-05 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4721
4722 * avr-tdep.c (AVR_LAST_ARG_REGNUM): Define.
4723 (avr_push_dummy_call): Correct last needed argument register.
4724 Write MSB of argument into register and subsequent bytes into
4725 other registers in decreasing order.
4726
f1771dce
YQ
47272016-03-04 Yao Qi <yao.qi@linaro.org>
4728
4729 * arm-tdep.c (arm_record_vdata_transfer_insn): Simplify the
4730 condition check. Record the right D register number.
4731
ca92db2d
YQ
47322016-03-04 Yao Qi <yao.qi@linaro.org>
4733
4734 * arm-tdep.c (arm_record_extension_space): Remove code
4735 printing "Process record does not support".
4736 (arm_record_data_proc_misc_ld_str): Likewise.
4737 (decode_insn): Call arm_record_extension_space if condition
4738 is 0xf. Call arm_record_unsupported_insn if ret isn't
4739 ARM_RECORD_SUCCESS. Use 'ret' instead of 'insn_id' to hold
4740 the value of thumb2_record_decode_insn_handler.
4741
73519cce
SM
47422016-03-04 Simon Marchi <simon.marchi@ericsson.com>
4743
4744 * features/feature_to_c.sh: Print the help when passing no
4745 argument.
4746
650beae3
BH
47472016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
4748
4749 * MAINTAINERS (Write After Approval): Add Bernhard Heckel.
4750
28586665
BH
47512016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
4752
4753 * dwarf2read.c (new_symbol_full): Fix detection of gfortran compilers.
4754
f2489477
AA
47552016-03-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
4756
4757 * s390-linux-tdep.c (s390_backchain_frame_unwind_cache): Avoid
4758 exception when attempting to access the inferior's backchain.
4759
d5219069
YQ
47602016-02-29 Yao Qi <yao.qi@linaro.org>
4761
4762 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Support
4763 eventfd2, eventfd2, dup3, inotify_init1, fallocate and pipe2.
4764 Return gdb_sys_epoll_create1 instead of gdb_sys_epoll_create
4765 for aarch64_sys_epoll_create1.
4766
253b4d3a
YQ
47672016-02-29 Yao Qi <yao.qi@linaro.org>
4768
4769 * linux-record.h (enum gdb_syscall) <gdb_sys_fallocate>: New.
4770 <gdb_sys_eventfd2, gdb_sys_epoll_create1, gdb_sys_dup3>: New.
4771 <gdb_sys_pipe2, gdb_sys_inotify_init1>: New.
4772 * linux-record.c (record_linux_system_call): Handle them.
4773
38899f16
IB
47742016-02-28 Iain Buclaw <ibuclaw@gdcproject.org>
4775
4776 * d-namespace.c (d_lookup_symbol_imports): Avoid recursive lookups from
4777 cyclic imports.
4778
1ed0c2a4
KS
47792016-02-26 Keith Seitz <keiths@redhat.com>
4780
4781 * rs6000-tdep.c (rs6000_frame_cache): Explicitly cast return result
4782 to avoid invalid conversion from void *.
4783
9fde51ed
YQ
47842016-02-26 Yao Qi <yao.qi@linaro.org>
4785
4786 * arm-tdep.c (arm_record_exreg_ld_st_insn): Set 'single_reg'
4787 per bit 8. Check bit 20 instead of bit 4 for VMOV
4788 instruction. Record D registers for instructions changing
4789 S registers. Change of the order of length and address
4790 in record_buf_mem array.
4791
1f33efec
YQ
47922016-02-26 Yao Qi <yao.qi@linaro.org>
4793
4794 * arm-tdep.c (thumb_record_ld_st_reg_offset): Fix the register
4795 number of Rd.
4796
1547ef64
DE
47972016-02-25 Doug Evans <dje@google.com>
4798
4799 * remote-m32r-sdi.c (recv_char_data): Initialize val to avoid
4800 compiler warning.
4801 (recv_long_data): Ditto.
4802
166616ce
SM
48032016-02-25 Simon Marchi <simon.marchi@ericsson.com>
4804
4805 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault):
4806 Initialize variables.
4807
1eb7c2d8
AT
48082016-02-25 Antoine Tremblay <antoine.tremblay@ericsson.com>
4809
4810 * ax-general.c (ax_reg): Call gdbarch_remote_register_number.
4811 (ax_reg_mask): Likewise.
4812
e7ad2f14
PA
48132016-02-24 Pedro Alves <palves@redhat.com>
4814
4815 * linux-nat.c (save_sigtrap) Delete.
4816 (stop_wait_callback): Call save_stop_reason instead of
4817 save_sigtrap.
4818 (check_stopped_by_breakpoint): Rename to ...
4819 (save_stop_reason): ... this. Bits of save_sigtrap folded here.
4820 Use GDB_ARCH_IS_TRAP_HWBKPT and handle ambiguous
4821 GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT. Factor out
4822 common code between the USE_SIGTRAP_SIGINFO and
4823 !USE_SIGTRAP_SIGINFO blocks.
4824 (linux_nat_filter_event): Call save_stop_reason instead of
4825 save_sigtrap.
4826 * nat/linux-ptrace.h: Check for both SI_KERNEL and TRAP_BRKPT
4827 si_code for MIPS.
4828 * nat/linux-ptrace.h: Fix "TRAP_HWBPT" typo in x86 table. Add
4829 comments on MIPS behavior.
4830 (GDB_ARCH_IS_TRAP_HWBKPT): Define for all archs.
4831
338435ef
MK
48322016-02-24 Marcin Kościelnicki <koriakin@0x04.net>
4833
4834 * rs6000-tdep.c (rs6000_frame_cache): Initialize frame and pc to 0
4835 to avoid spurious warnings.
4836
bf74e428
GB
48372016-02-24 Gary Benson <gbenson@redhat.com>
4838
4839 * exec.c (exec_file_locate_attach): Do not attempt to
4840 locate main executable locally if not found in sysroot.
4841
62fb310b
JB
48422016-02-24 Joel Brobecker <brobecker@adacore.com>
4843
4844 GDB 7.11 released.
4845
50ae56ec
WW
48462016-02-24 Wei-cheng Wang <cole945@gmail.com>
4847
4848 * rs6000-tdep.c (rs6000_frame_cache, rs6000_frame_this_id): Handle
4849 unavailable PC/SP to build unavailable frame.
4850
cce0e923
DE
48512016-02-23 Doug Evans <dje@google.com>
4852
4853 Extend "skip" command to support -file, -gfile, -function, -rfunction.
4854 * NEWS: Document new features.
4855 * skip.c: #include "fnmatch.h", "gdb_regex.h".
4856 (skiplist_entry) <file>: Renamed from filename.
4857 <function>: Renamed from function_name.
4858 <file_is_glob, function_is_regexp>: New members.
4859 <compiled_function_regexp, compiled_function_regexp_is_valid>:
4860 New members.
4861 (make_skip_entry): New function.
4862 (free_skiplist_entry, free_skiplist_entry_cleanup): New functions.
4863 (make_free_skiplist_entry_cleanup): New function.
4864 (skip_file_command): Update.
4865 (skip_function, skip_function_command): Update.
4866 (compile_skip_regexp): New functions.
4867 (skip_command): Add support for new options.
4868 (skip_info): Update.
4869 (skip_file_p, skip_gfile_p): New functions.
4870 (skip_function_p, skip_rfunction_p): New functions.
4871 (function_name_is_marked_for_skip): Update and simplify.
4872 (_initialize_step_skip): Update.
4873 * symtab.c: #include "fnmatch.h".
4874 (compare_glob_filenames_for_search): New function.
4875 * symtab.h (compare_glob_filenames_for_search): Declare.
4876 * utils.c (count_path_elements): New function.
4877 (strip_leading_path_elements): New function.
4878 * utils.h (count_path_elements): Declare.
4879 (strip_leading_path_elements): Declare.
4880
12545665
SM
48812016-02-23 Simon Marchi <simon.marchi@ericsson.com>
4882
4883 * arm-tdep.c (arm_decode_svc_copro): Remove "to" parameter.
4884 (thumb_process_displaced_insn): Likewise.
4885 (arm_process_displaced_insn): Adjust calls.
4886
c955ae73
YQ
48872016-02-23 Yao Qi <yao.qi@linaro.org>
4888
4889 * aarch64-linux-tdep.c (enum aarch64_syscall) <aarch64_sys_mknod>:
4890 Remove.
4891 <aarch64_sys_mkdir, aarch64_sys_unlink, aarch64_sys_symlink>: Remove.
4892 <aarch64_sys_link, aarch64_sys_rename, aarch64_sys_faccess>: Remove.
4893 <aarch64_sys_mknodat, aarch64_sys_mkdirat>: New.
4894 <aarch64_sys_unlinkat, aarch64_sys_symlinkat>: New.
4895 <aarch64_sys_linkat, aarch64_sys_renameat>: New.
4896 <aarch64_sys_faccessat>: New.
4897 <aarch64_sys_open, aarch64_sys_readlink, aarch64_sys_fstatat>: Remove.
4898 <aarch64_sys_openat, aarch64_sys_readlinkat>: New.
4899 <aarch64_sys_newfstatat>: New.
4900 (UNSUPPORTED_SYSCALL_MAP): New macro.
4901 (aarch64_canonicalize_syscall): Add missing syscalls.
4902
ac46107c
JK
49032016-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4904
4905 * gdb-gdb.py (class TypeFlagsPrinter): Use parentheses for print.
4906
01e57735
YQ
49072016-02-22 Yao Qi <yao.qi@linaro.org>
4908
4909 * arm-tdep.c: Fix code format issues.
4910
30a6a7f0
IB
49112016-02-21 Iain Buclaw <ibuclaw@gdcproject.org>
4912
4913 * d-namespace.c (d_lookup_symbol_imports): Remove argument
4914 'search_parents'. All callers updated.
4915
f79a3bae
MK
49162016-02-18 Marcin Kościelnicki <koriakin@0x04.net>
4917
4918 * s390-linux-tdep.c (s390_guess_tracepoint_registers): New function.
4919 (s390_gdbarch_init): Fill guess_tracepoint_registers hook.
4920
012b3a21
WT
49212016-02-18 Walfred Tedeschi <walfred.tedeschi@intel.com>
4922
4923 * NEWS: Add entry for bound violation.
4924 * amd64-linux-tdep.c (amd64_linux_init_abi_common):
4925 Add handler for segmentation fault.
4926 * gdbarch.sh (handle_segmentation_fault): New.
4927 * gdbarch.c: Regenerate.
4928 * gdbarch.h: Regenerate.
4929 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): New.
4930 (SIG_CODE_BONDARY_FAULT): New define.
4931 (i386_linux_init_abi): Use i386_mpx_bound_violation_handler.
4932 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault) New.
4933 * i386-tdep.c (i386_mpx_enabled): Add as external.
4934 * i386-tdep.c (i386_mpx_enabled): Add as external.
4935 * infrun.c (handle_segmentation_fault): New function.
4936 (print_signal_received_reason): Use handle_segmentation_fault.
4937
5f034a78
MK
49382016-02-18 Marcin Kościelnicki <koriakin@0x04.net>
4939
4940 * arch-utils.c (default_guess_tracepoint_registers): New function.
4941 * arch-utils.h (default_guess_tracepoint_registers): New prototype.
4942 * gdbarch.c: Regenerate.
4943 * gdbarch.h: Regenerate.
4944 * gdbarch.sh: Add guess_tracepoint_registers hook.
4945 * tracefile.c (tracefile_fetch_registers): Use the new gdbarch hook.
4946
88178e82
GB
49472016-02-17 Gary Benson <gbenson@redhat.com>
4948
4949 * exec.c (exec_file_locate_attach): Add missing cleanup.
4950
4041ed77
DB
49512016-02-16 Don Breazeal <donb@codesourcery.com>
4952
4953 PR remote/19496
4954 * remote.c (remove_new_fork_children): Check for pending
4955 fork status in thread_info.suspend.
4956
b442c911
YQ
49572016-02-16 Yao Qi <yao.qi@linaro.org>
4958
4959 * arm-linux-tdep.c (arm_linux_software_single_step): Assign
4960 'old_chain' later.
4961
553cb527
YQ
49622016-02-16 Yao Qi <yao.qi@linaro.org>
4963
4964 * arch/arm-get-next-pcs.h (struct arm_get_next_pcs_ops)
4965 <syscall_next_pc>: Remove argument PC. Callers updated.
4966 * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
4967 Remove argument PC. Get pc from regcache_read_pc.
4968 * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Remove
4969 argument PC.
4970
0a0da556
YQ
49712016-02-15 Yao Qi <yao.qi@linaro.org>
4972
4973 * aarch64-tdep.c (aarch64_analyze_prologue): Remove "0x".
4974
01113bc1
YQ
49752016-02-12 Yao Qi <yao.qi@linaro.org>
4976
4977 * arch/arm-linux.c (arm_linux_get_next_pcs_fixup): Calculate
4978 nextpc according to instruction.
4979
ed443b61
YQ
49802016-02-12 Yao Qi <yao.qi@linaro.org>
4981
4982 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Call
4983 self->ops->fixup if it isn't NULL.
4984 * arch/arm-get-next-pcs.h: Include gdb_vecs.h.
4985 (struct arm_get_next_pcs_ops) <fixup>: New field.
4986 * arch/arm-linux.c: Include common-regcache.h and
4987 arch/arm-get-next-pcs.h.
4988 (arm_linux_get_next_pcs_fixup): New function.
4989 * arch/arm-linux.h (arm_linux_get_next_pcs_fixup): Declare.
4990 * arm-linux-tdep.c (arm_linux_get_next_pcs_ops): Initialize
4991 it with arm_linux_get_next_pcs_fixup.
4992 (arm_linux_software_single_step): Move code to
4993 arm_linux_get_next_pcs_fixup.
4994 * arm-tdep.c (arm_get_next_pcs_ops): Initialize it.
4995
d21b5f15
MK
49962016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
4997
4998 * xml-tdesc.c (target_fetch_description_xml) [!HAVE_LIBEXPAT]: Warn
4999 and return NULL.
5000
33b4777c
MM
50012016-02-12 Markus Metzger <markus.t.metzger@intel.com>
5002
5003 * frame.h (skip_tailcall_frames): Update comment.
5004 * frame.c (skip_artificial_frames, skip_tailcall_frames): Return NULL
5005 if only artificial frames are found. Update comment.
5006 (frame_unwind_caller_id): Handle NULL return.
5007 (frame_unwind_caller_pc, frame_unwind_caller_arch): Assert that
5008 skip_artificial_frames does not return NULL.
5009 (frame_pop): Add an error if only tailcall frames are found.
5010 * infcmd.c (finish_command): Move skip_tailcall_frames call into
5011 forward-execution case. Add an error if only tailcall frames are
5012 found.
5013
a038fa3e
MM
50142016-02-12 Markus Metzger <markus.t.metzger@intel.com>
5015
5016 * stack.c (frame_info): Check frame_unwind_caller_id.
5017
2f3ef606
MM
50182016-02-12 Markus Metzger <markus.t.metzger@intel.com>
5019
5020 * frame.h (skip_tailcall_frames): New.
5021 * frame.c (skip_tailcall_frames): New.
5022 (frame_pop): Call skip_tailcall_frames.
5023 * infcmd.c (finish_command): Call skip_tailcall_frames.
5024
e352bf0a
PA
50252016-02-11 Pedro Alves <palves@redhat.com>
5026
5027 * Makefile.in (check-parallel): New rule.
5028
bec2ab5a
SM
50292016-02-11 Simon Marchi <simon.marchi@ericsson.com>
5030
5031 * arm-tdep.c (arm_skip_prologue): Remove unused variables.
5032 (arm_analyze_prologue): Likewise.
5033 (arm_scan_prologue): Likewise.
5034 (arm_m_exception_prev_register): Likewise.
5035 (arm_copy_block_xfer): Likewise.
5036 (thumb2_copy_block_xfer): Likewise.
5037 (arm_decode_miscellaneous): Likewise.
5038 (arm_decode_ld_st_word_ubyte): Likewise.
5039 (arm_decode_svc_copro): Likewise.
5040 (thumb2_decode_svc_copro): Likewise.
5041 (thumb_copy_16bit_ldr_literal): Likewise.
5042 (thumb_copy_pop_pc_16bit): Likewise.
5043 (decode_thumb_32bit_ld_mem_hints): Likewise.
5044 (arm_show_force_mode): Likewise.
5045 (_initialize_arm_tdep): Likewise.
5046 (arm_record_strx): Likewise.
5047 (arm_record_extension_space): Likewise.
5048 (arm_record_data_proc_misc_ld_str): Likewise.
5049 (arm_record_exreg_ld_st_insn): Likewise.
5050 (arm_record_vfp_data_proc_insn): Likewise.
5051 (arm_record_coproc_data_proc): Likewise.
5052 (thumb_record_misc): Likewise.
5053 (thumb_record_ldm_stm_swi): Likewise.
5054 (thumb2_record_ld_st_dual_ex_tbb): Likewise.
5055 (thumb2_record_ld_mem_hints): Likewise.
5056 (thumb2_record_lmul_lmla_div): Likewise.
5057 (thumb2_record_asimd_struct_ld_st): Likewise.
5058 (arm_process_record): Likewise.
5059
2ba163c8
SM
50602016-02-11 Simon Marchi <simon.marchi@ericsson.com>
5061
5062 * arm-tdep.c (arm_displaced_step_copy_insn): Remove.
5063 (ARM displaced stepping support): Remove reference to
5064 arm_displaced_step_copy_insn in comment.
5065 * arm-tdep.h (arm_displaced_step_copy_insn): Remove.
5066 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Remove
5067 reference to arm_displaced_step_copy_insn in comment.
5068
615234c1
SM
50692016-02-11 Simon Marchi <simon.marchi@ericsson.com>
5070
5071 * arm-tdep.c (thumb_copy_unmodified_16bit): Change type of insn.
5072 (thumb_copy_b): Likewise.
5073 (arm_decode_b_bl_ldmstm): Likewise.
5074 (thumb_copy_16bit_ldr_literal): Likewise.
5075 (thumb_copy_pop_pc_16bit): Likewise.
5076
82e9becd
AT
50772016-02-11 Antoine Tremblay <antoine.tremblay@ericsson.com>
5078
5079 * tracepoint.c (encode_actions_1): Use target_gdbarch () rather
5080 than loc->gdbarch.
5081
5ac87a99
MK
50822016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
5083
5084 * tracefile-tfile.c (trace_tdesc): New static variable.
5085 (tfile_open): Clear trace_tdesc, call target_find_description.
5086 (tfile_interp_line): Recognize tdesc lines.
5087 (tfile_close): Clear trace_tdesc.
5088 (tfile_xfer_partial_features): New function.
5089 (tfile_xfer_partial): Call tfile_xfer_partial_features.
5090 (tfile_append_tdesc_line): New function.
5091
18d3cec5
MK
50922016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
5093
5094 * ctf.c (ctf_write_tdesc): New function.
5095 (ctf_write_ops): Wire in ctf_write_tdesc.
5096 * tracefile-tfile.c (tfile_write_tdesc): New function.
5097 (tfile_write_ops): Wire in tfile_write_tdesc.
5098 * tracefile.c (trace_save): Call write_tdesc method.
5099 * tracefile.h (struct trace_file_write_ops): Add write_tdesc method.
5100 * xml-tdesc.c (target_fetch_description_xml): New function.
5101 * xml-tdesc.h: Add target_fetch_description_xml prototype.
5102
550dc4e2
SM
51032016-02-10 Simon Marchi <simon.marchi@ericsson.com>
5104
5105 * arm-tdep.c (arm_copy_extra_ld_st): Fix "unpriveleged" typo.
5106 (arm_decode_dp_misc): Likewise.
5107
62e5fd57
MK
51082016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
5109
5110 * amd64-tdep.c (amd64_ax_pseudo_register_collect): New function.
5111 (amd64_init_abi): Fill ax_pseudo_register_collect hook.
5112 * gdb/i386-tdep.c (i386_pseudo_register_read_into_value): Remove
5113 misleading comment.
5114 (i386_pseudo_register_write): Ditto.
5115 (i386_ax_pseudo_register_collect): New function.
5116 (i386_gdbarch_init): Fill ax_pseudo_register_collect hook.
5117 * i386-tdep.h: Add i386_ax_pseudo_register_collect prototype.
5118
e909d859
MK
51192016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
5120
5121 * tracefile-tfile.c (tfile_fetch_registers): Use g packet order
5122 instead of gdb order.
5123
473b99e5
MK
51242016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
5125
5126 * tracefile-tfile.c (tfile_fetch_registers): Fix off-by-one in bounds
5127 check.
5128
1233c0ba
JB
51292016-02-10 Joel Brobecker <brobecker@adacore.com>
5130
5131 * NEWS: Create a new section for the next release branch.
5132 Rename the section of the current branch, now that it has
5133 been cut.
5134
d1dc0942
JB
51352016-02-10 Joel Brobecker <brobecker@adacore.com>
5136
5137 GDB 7.11 branch created (9ef9e6a6a0dd8f948708cb67c9afcfd0be40cb0a):
5138 * version.in: Bump version to 7.11.50.DATE-git.
5139
9ef9e6a6
KS
51402016-02-09 Keith Seitz <keiths@redhat.com>
5141
5142 PR breakpoints/19546
5143 * breakpoint.c (breakpoint_event_location_empty_p): New function.
5144 (update_breakpoints_after_exec, bkpt_re_set): Use this new function
5145 instead of event_location_empty_p.
5146
39a67dc4
KS
51472016-02-09 Keith Seitz <keiths@redhat.com>
5148
5149 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Use
5150 string_to_event_location_basic instead of string_to_event_location.
5151
a96e36da
KS
51522016-02-09 Keith Seitz <keiths@redhat.com>
5153
5154 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Skip
5155 leading whitespace and use string_to_event_location_basic instead
5156 of new_linespec_location.
5157
9f61929f
KS
51582016-02-09 Keith Seitz <keiths@redhat.com>
5159
5160 PR python/19506
5161 * python/py-breakpoint.c (bppy_init): Use
5162 string_to_event_location_basic instead of new_linespec_location.
5163
eeb1af43
KS
51642016-02-09 Keith Seitz <keiths@redhat.com>
5165
5166 * location.c (string_to_explicit_location): Note that "-p" is
5167 reserved for probe locations and return NULL for any input
5168 that starts with that.
5169 (string_to_event_location): Move "legacy" linespec code to ...
5170 (string_to_event_location_basic): ... here.
5171 * location.h (string_to_event_location): Update comment.
5172 (string_to_event_location_basic): New function.
5173
1e94266c
SM
51742016-02-09 Simon Marchi <simon.marchi@ericsson.com>
5175
5176 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
5177 to AC_OUTPUT. Remove "exit 0" at the end.
5178 * configure: Regenerate.
5179
2a7f3dff
PA
51802016-02-09 Pedro Alves <palves@redhat.com>
5181
5182 PR breakpoints/19548
5183 * breakpoint.c (create_overlay_event_breakpoint): Don't update
5184 global location list here.
5185 (create_longjmp_master_breakpoint)
5186 (create_std_terminate_master_breakpoint)
5187 (create_exception_master_breakpoint, create_jit_event_breakpoint)
5188 (update_breakpoint_locations):
5189 (breakpoint_re_set): Update global location list after all
5190 breakpoints are re-set.
5191
54887903
SM
51922016-02-08 Simon Marchi <simon.marchi@ericsson.com>
5193
5194 * remote.c (remote_register_number_and_offset): Remove unused
5195 variable(s).
5196 (remote_thread_always_alive): Likewise.
5197 (remote_update_thread_list): Likewise.
5198 (process_initial_stop_replies): Likewise.
5199 (remote_start_remote): Likewise.
5200 (remote_check_symbols): Likewise.
5201 (discard_pending_stop_replies): Likewise.
5202 (process_stop_reply): Likewise.
5203 (putpkt_binary): Likewise.
5204 (getpkt): Likewise.
5205 (remote_add_target_side_condition): Likewise.
5206 (remote_insert_breakpoint): Likewise.
5207 (remote_supports_stopped_by_sw_breakpoint): Likewise.
5208 (remote_supports_stopped_by_hw_breakpoint): Likewise.
5209 (remote_xfer_partial): Likewise.
5210 (remote_read_btrace): Likewise.
5211 (remote_async_serial_handler): Likewise.
5212 (remote_thread_events): Likewise.
5213 (_initialize_remote): Likewise.
5214
30914ca8
SM
52152016-02-07 Simon Marchi <simon.marchi@polymtl.ca>
5216
5217 * varobj.h (varobj_delete): Remove dellist parameter, update and
5218 move documentation here.
5219 * varobj.c (struct cpstack, cppush, cppop): Remove.
5220 (delete_variable): Remove resultp (first) parameter.
5221 (delete_variable_1): Likewise.
5222 (varobj_delete): Remove dellist parameter and unused code.
5223 (update_dynamic_varobj_children): Adjust varobj_delete call.
5224 (update_type_if_necessary): Likewise.
5225 (varobj_set_visualizer): Likewise.
5226 (varobj_update): Likewise.
5227 (value_of_root): Likewise.
5228 (varobj_invalidate_iter): Likewise.
5229 * mi/mi-cmd-var.c (mi_cmd_var_delete): Likewise.
5230
e42e5352
YQ
52312016-02-04 Yao Qi <yao.qi@linaro.org>
5232
5233 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to
5234 0 before handling 'F' and set it back afterwards.
5235
6456a18b
SM
52362016-02-02 Simon Marchi <simon.marchi@ericsson.com>
5237
5238 * ui-out.c (MAX_UI_OUT_LEVELS): Remove.
5239
3f2f6cb5
WT
52402016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
5241
5242 * amd64-linux-siginfo.c (nat_siginfo_t, nat_sigval_t, nat_timeval):
5243 New types.
5244 (compat_siginfo): New bound fields added.
5245 (compat_x32_siginfo): New field added.
5246 (cpt_si_addr_lsb): New define.
5247 (compat_siginfo_from_siginfo): Use nat_siginfo.
5248 (siginfo_from_compat_siginfo): Use nat_siginfo.
5249 (compat_x32_siginfo_from_siginfo): Likewise.
5250 (siginfo_from_compat_x32_siginfo): Likewise.
5251
96b5c49f
WT
52522016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
5253
5254 * linux-tdep.c (linux_get_siginfo_type): Add the _addr_bnd
5255 structure to the siginfo if extra_fields contains
5256 LINUX_SIGINFO_FIELD_ADDR_BND.
5257
190b495d
WT
52582016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
5259
5260 * linux-tdep.h (linux_get_siginfo_type_with_fields): Make extern.
5261 * linux-tdep.c (linux_get_siginfo_type_with_fields): Make extern.
5262 * i386-linux-tdep.h (x86_linux_get_siginfo_type): New
5263 function.
5264 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
5265 x86_linux_get_siginfo_type for the amd64 abi.
5266 * i386-linux-tdep.c (x86_linux_get_siginfo_type): New
5267 function.
5268 (i386_linux_init_abi): Add new function at the i386 ABI
5269 initialization.
5270
43564574
WT
52712016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
5272
5273 * linux-tdep.h (linux_siginfo_extra_field_values): New enum values.
5274 (linux_siginfo_extra_fields): New enum type.
5275 * linux-tdep.c (linux_get_siginfo_type_with_fields): New function.
5276 (linux_get_siginfo_type): Use new function.
5277
93813b37
WT
52782016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
5279
5280 * nat/amd64-linux-siginfo.c: New file.
5281 * nat/amd64-linux-siginfo.h: New file.
5282 * Makefile.in (HFILES_NO_SRCDIR): Add nat/amd64-linux-siginfo.h.
5283 (amd64-linux-siginfo.o): New rule.
5284 * config/i386/linux64.mh (NATDEPFILES): Add amd64-linux-siginfo.o.
5285 * amd64-linux-nat.c (nat/amd64-linux-siginfo.h): New include.
5286 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
5287 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
5288 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
5289 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
5290 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
5291 (cpt_si_fd, si_timerid, si_overrun): Move to nat/amd64-linux-siginfo.c.
5292
5fdf6324
AB
52932016-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
5294
5295 * value.c (max_value_size): New variable.
5296 (MIN_VALUE_FOR_MAX_VALUE_SIZE): New define.
5297 (set_max_value_size): New function.
5298 (show_max_value_size): New function.
5299 (check_type_length_before_alloc): New function.
5300 (allocate_value_contents): Call check_type_length_before_alloc.
5301 (set_value_enclosing_type): Likewise.
5302 (_initialize_values): Add set/show handler for max-value-size.
5303 * NEWS: Mention new set/show command.
5304
5fa13070
SM
53052016-01-31 Simon Marchi <simon.marchi@polymtl.ca>
5306
5307 * varobj.h (struct varobj): Fix typos in comments.
5308 (struct lang_varobj_ops): Likewise.
5309 * varobj.c (VAROBJ_TABLE_SIZE): Likewise.
5310 (varobj_create): Move misplaced comment.
5311
a2e3e93f
SM
53122016-01-29 Simon Marchi <simon.marchi@ericsson.com>
5313
5314 * aarch64-tdep.c (aarch64_record_asimd_load_store): Add braces
5315 to for include additional lines.
5316 * xcoffread.c (scan_xcoff_symtab): Remove unnecessary braces.
5317
56e374a6
SM
53182016-01-28 Simon Marchi <simon.marchi@ericsson.com>
5319
5320 * gnulib/import/Makefile.am: Regenerate.
5321 * gnulib/import/Makefile.in: Regenerate.
5322 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5323 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add rawmemchr.
5324
8424cc97
SM
53252016-01-28 Simon Marchi <simon.marchi@ericsson.com>
5326
5327 * remote.c (skip_to_semicolon): Remove.
5328 (remote_parse_stop_reply): Use strchrnul instead of
5329 skip_to_semicolon.
5330 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
5331 strchrnul.
5332 * gnulib/aclocal.m4: Regenerate.
5333 * gnulib/config.in: Regenerate.
5334 * gnulib/configure: Regenerate.
5335 * gnulib/import/Makefile.am: Regenerate.
5336 * gnulib/import/Makefile.in: Regenerate.
5337 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5338 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5339 * gnulib/import/m4/rawmemchr.m4: New file.
5340 * gnulib/import/m4/strchrnul.m4: New file.
5341 * gnulib/import/rawmemchr.c: New file.
5342 * gnulib/import/rawmemchr.valgrind: New file.
5343 * gnulib/import/strchrnul.c: New file.
5344 * gnulib/import/strchrnul.valgrind: New file.
5345
4a6a1ed4
YQ
53462016-01-28 Yao Qi <yao.qi@linaro.org>
5347
5348 * breakpoint.c (build_target_command_list): Don't call continue
5349 if aexpr is NULL.
5350 (build_target_condition_list): Likewise.
5351
94715c17
KB
53522016-01-27 Kevin Buettner <kevinb@redhat.com>
5353
5354 * rx-tdep.c (rx_push_dummy_call): Treat scalars larger than 8
5355 bytes as aggregates.
5356
c07af0ab
JB
53572016-01-27 Joel Brobecker <brobecker@adacore.com>
5358
5359 * MAINTAINERS (Responsible Maintainers): Add Keith Seitz as
5360 Linespec Maintainers.
5361
41548caa
SM
53622016-01-26 Simon Marchi <simon.marchi@ericsson.com>
5363
5364 * common/common-utils.c (skip_spaces): Fix comment.
5365 (skip_to_space_const): Likewise.
5366
4d18591b
YQ
53672016-01-25 Yao Qi <yao.qi@linaro.org>
5368
5369 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
5370 Remove argument pc. Get pc by regcache_read_pc. Callers updated.
5371 (arm_deal_with_atomic_sequence_raw): Likewise.
5372 (thumb_get_next_pcs_raw): Likewise.
5373 (arm_get_next_pcs_raw): Likewise.
5374 (arm_get_next_pcs): Remove argument pc. Callers updated.
5375 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Update declaration.
5376
a579cd9a
MW
53772016-01-25 Mark Wielaard <mjw@redhat.com>
5378
5379 * ada-lang.c (ada_evaluate_subexp): Add proper else block.
5380 * c-typeprint.c (c_type_print_base): Fix misleading indentation of
5381 if statement.
5382 * inflow.c (child_terminal_ours_1): Fix misleading indentation of
5383 statement block by introducing an else.
5384 * linux-record.c (record_linux_sockaddr): Fix misleading indentation
5385 of return statements.
5386 (record_linux_msghdr): Likewise.
5387
a2077e25
PA
53882016-01-25 Pedro Alves <palves@redhat.com>
5389
5390 PR threads/19461
5391 * infrun.c (handle_inferior_event_1) <fork/vfork>: Update
5392 parent/child running states.
5393
1d2736d4
PA
53942016-01-25 Pedro Alves <palves@redhat.com>
5395
5396 PR gdb/19494
5397 * linux-nat.c (kill_one_lwp): New, factored out from ...
5398 (kill_callback): ... this.
5399 (kill_wait_callback): New, factored out from ...
5400 (kill_wait_one_lwp): ... this.
5401 (kill_unfollowed_fork_children): New function.
5402 (linux_nat_kill): Use it.
5403
b2bae2f7
JB
54042016-01-22 John Baldwin <jhb@FreeBSD.org>
5405
5406 * fbsd-nat.c (fbsd_pid_to_str): Adjust string format.
5407
d86feca3
YQ
54082016-01-22 Yao Qi <yao.qi@linaro.org>
5409
5410 * arm-linux-nat.c (fetch_fpregs): Call perror_with_name
5411 instead of warning.
5412 (store_fpregs, fetch_regs, store_regs): Likewise.
5413 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
5414 (fetch_vfp_regs, store_vfp_regs): Likewise.
5415
b35a8b2f
DE
54162016-01-21 Doug Evans <dje@google.com>
5417
5418 * breakpoint.c (init_breakpoint_sal): Add comment.
5419
f906b857
MK
54202016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
5421
5422 * ax-gdb.c (gen_traced_pop): Use gen_fetch for string collection.
5423
4a099de2
AB
54242016-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
5425
5426 * disasm.c (maybe_add_dis_line_entry): Rename to...
5427 (add_dis_line_entry): ...this, and update header comment.
5428 (do_mixed_source_and_assembly): Now use add_dis_line_entry.
5429
a994041d
PA
54302016-01-21 Pedro Alves <palves@redhat.com>
5431
5432 * Makefile.in (COMPILER_CFLAGS): New.
5433 (CXXFLAGS): Get it from configure.
5434 (INTERNAL_CFLAGS_BASE, INTERNAL_LDFLAGS): Use COMPILER_CFLAGS
5435 instead of CFLAGS.
5436 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Set and AC_SUBST
5437 COMPILER_CFLAGS.
5438 * configure: Regenerate.
5439
305e13e6
JB
54402016-01-21 Joel Brobecker <brobecker@adacore.com>
5441
5442 * location.h (new_address_location): Add new parameters
5443 "addr_string" and "addr_string_len".
5444 (get_address_string_location): Add declaration.
5445 * location.c (new_address_location): Add new parameters
5446 "addr_string" and "addr_string_len". If not NULL, store
5447 a copy of the addr_string in the new location as well.
5448 (get_address_string_location): New function.
5449 (string_to_event_location): Update call to new_address_location.
5450 * linespec.c (event_location_to_sals) <ADDRESS_LOCATION>:
5451 Save the event location in the parser's state before
5452 passing it to convert_address_location_to_sals.
5453 * breakpoint.c (create_thread_event_breakpoint): Update call
5454 to new_address_location.
5455 (init_breakpoint_sal): Get the event location's string, if any,
5456 and use it to update call to new_address_location.
5457 * python/py-finishbreakpoint.c (bpfinishpy_init):
5458 Update call to new_address_location.
5459 * spu-tdep.c (spu_catch_start): Likewise.
5460
5461 * config/djgpp/fnchange.lst: Add entries for
5462 gdb/testsuite/gdb.base/break-fun-addr1.c and
5463 gdb/testsuite/gdb.base/break-fun-addr2.c.
5464
f7a6a40d
YQ
54652016-01-21 Yao Qi <yao.qi@linaro.org>
5466
5467 * arm-linux-tdep.c (arm_linux_sigreturn_next_pc): Add parameter
5468 is_thumb and set it according to CPSR saved on the stack.
5469 (arm_linux_get_next_pcs_syscall_next_pc): Pass is_thumb to
5470 arm_linux_sigreturn_next_pc.
5471
5f5dfff6
SM
54722016-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5473
5474 * python/lib/gdb/printing.py (FlagEnumerationPrinter.__call__):
5475 Fix enumerators sort key function.
5476
be56871e
JB
54772016-01-20 Joel Brobecker <brobecker@adacore.com>
5478
b12e5614 5479 * printcmd.c (print_scalar_formatted): Move binary operator from
be56871e
JB
5480 end of line to beginning of next line. Adjust formatting
5481 accordingly.
5482
f2feec98
JB
54832016-01-19 John Baldwin <jhb@FreeBSD.org>
5484
5485 * fbsd-nat.c (fbsd_pid_to_exec_file): Use new "buflen" instead of
5486 "len" with sysctl.
5487
20a0aab3
JB
54882016-01-19 John Baldwin <jhb@FreeBSD.org>
5489
5490 * fbsd-tdep.c (find_stop_signal): Remove.
5491 (struct fbsd_collect_regset_section_cb) <lwp>: New field.
5492 <stop_signal>: New field.
5493 <abort_iteration>: New field.
5494 (fbsd_collect_regset_section_cb): Use new fields.
5495 (fbsd_collect_thread_registers): New function.
5496 (struct fbsd_corefile_thread_data): New structure.
5497 (fbsd_corefile_thread): New function.
5498 (fbsd_make_corefile_notes): Use new function to dump notes for each
5499 non-exited thread in a process.
5500
6e9567fe
JB
55012016-01-19 John Baldwin <jhb@FreeBSD.org>
5502
5503 * configure.ac: Check for support for LWP names on FreeBSD.
5504 * fbsd-nat.c [PT_LWPINFO] New variable debug_fbsd_lwp.
5505 [TDP_RFPPWAIT || HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]
5506 (fbsd_fetch_kinfo_proc): Move function earlier.
5507 [PT_LWPINFO] (fbsd_thread_alive): New function.
5508 [PT_LWPINFO] (fbsd_pid_to_str): New function.
5509 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME] (fbsd_thread_name): New function.
5510 [PT_LWP_EVENTS] (fbsd_enable_lwp_events): New function.
5511 [PT_LWPINFO] (fbsd_add_threads): New function.
5512 [PT_LWPINFO] (fbsd_update_thread_list): New function.
5513 [PT_LWPINFO] New variable super_resume.
5514 [PT_LWPINFO] (resume_one_thread_cb): New function.
5515 [PT_LWPINFO] (resume_all_threads_cb): New function.
5516 [PT_LWPINFO] (fbsd_resume): New function.
5517 (fbsd_remember_child): Save full ptid instead of plain pid.
5518 (fbsd_is_child_pending): Return ptid of saved child process.
5519 (fbsd_wait): Include lwp in returned ptid and switch to LWP ptid on
5520 first stop.
5521 [PT_LWP_EVENTS] Handle LWP events.
5522 [TDP_RFPPWAIT] Include LWP in child ptid.
5523 (fbsd_post_startup_inferior) [PT_LWP_EVENTS]: Enable LWP events.
5524 (fbsd_post_attach) [PT_LWP_EVENTS]: Enable LWP events.
5525 Add threads for existing processes.
5526 (fbsd_nat_add_target) [PT_LWPINFO]: Set "to_thread_alive" to
5527 "fbsd_thread_alive".
5528 Set "to_pid_to_str" to "fbsd_pid_to_str".
5529 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]: Set "to_thread_name" to
5530 "fbsd_thread_name".
5531 [PT_LWPINFO]: Set "to_update_thread_list" to "fbsd_update_thread_list".
5532 Set "to_has_thread_control" to "tc_schedlock".
5533 Set "to_resume" to "fbsd_resume".
5534 (_initialize_fbsd_nat): New function.
5535 * configure: Regenerate.
5536 * config.in: Regenerate.
5537
94309df7
JB
55382016-01-19 John Baldwin <jhb@FreeBSD.org>
5539
5540 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
5541 get_ptrace_pid.
5542 (amd64bsd_store_inferior_registers): Use get_ptrace_pid.
5543 (amd64bsd_dr_get): Use get_ptrace_pid.
5544 (amd64bsd_dr_set): Use get_ptrace_pid.
5545 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Use get_ptrace_pid.
5546 (i386bsd_store_inferior_registers): Use get_ptrace_pid.
5547 (i386bsd_dr_get): Use get_ptrace_pid.
5548 (i386bsd_dr_set): Use get_ptrace_pid.
5549 * inf-ptrace.c (get_ptrace_pid): Export.
5550 * inf-ptrace.h (get_ptrace_pid): Declare.
5551 * ppcfbsd-nat.c (ppcfbsd_fetch_inferior_registers): Use lwp id.
5552 (ppcfbsd_store_inferior_registers): Use lwp id.
5553
79117428
JB
55542016-01-19 John Baldwin <jhb@FreeBSD.org>
5555
5556 * fbsd_tdep.c (fbsd_core_pid_to_str): New function.
5557 (fbsd_core_thread_name): New function.
5558 (fbsd_init_abi): Add "core_pid_to_str" gdbarch method.
5559 Add "core_thread_name" gdbarch method.
5560
4dfc5dbc
JB
55612016-01-19 John Baldwin <jhb@FreeBSD.org>
5562
5563 * corelow.c (core_thread_name): New function.
5564 (init_core_ops): Use "core_thread_name" for the "to_thread_name"
5565 target op.
5566 * gdbarch.sh (core_thread_name): New gdbarch callback.
5567 * gdbarch.h: Re-generate.
5568 * gdbarch.c: Re-generate.
5569
10e3ed90
SM
55702016-01-19 Simon Marchi <simon.marchi@polymtl.ca>
5571
5572 * python/lib/gdb/printing.py (_EnumInstance.to_string): Explicitly
5573 convert gdb.Value to integer type using int().
5574
a6e69c1f
JB
55752016-01-19 John Baldwin <jhb@FreeBSD.org>
5576
5577 * configure.ac: Include <sys/types.h when checking for "r_fs" in
5578 "struct reg".
5579 * configure: Regenerate.
5580
37e42b4f
PA
55812016-01-19 Pedro Alves <palves@redhat.com>
5582
5583 * ax-gdb.c (agent_command_1): Adjust call to decode_line_full.
5584 * break-catch-throw.c (re_set_exception_catchpoint): Pass the
5585 current program space down to linespec decoding and breakpoint
5586 location updating.
5587 * breakpoint.c (parse_breakpoint_sals): Adjust calls to
5588 decode_line_full.
5589 (until_break_command): Adjust calls to decode_line_1.
5590 (base_breakpoint_decode_location, bkpt_decode_location): Add
5591 'search_pspace' parameter. Pass it along.
5592 (bkpt_probe_create_sals_from_location): Adjust calls to
5593 parse_probes.
5594 (tracepoint_decode_location, tracepoint_probe_decode_location)
5595 (strace_marker_decode_location): Add 'search_pspace' parameter.
5596 Pass it along.
5597 (all_locations_are_pending): Rewrite to take a breakpoint and
5598 program space as arguments instead.
5599 (hoist_existing_locations): New function.
5600 (update_breakpoint_locations): Add 'filter_pspace' parameter. Use
5601 hoist_existing_locations instead of always removing all locations,
5602 and adjust to all_locations_are_pending change.
5603 (location_to_sals): Add 'search_pspace' parameter. Pass it along.
5604 Don't disable the breakpoint if there are other locations in
5605 another program space.
5606 (breakpoint_re_set_default): Adjust to pass down the current
5607 program space as filter program space.
5608 (decode_location_default): Add 'search_pspace' parameter and pass
5609 it along.
5610 (prepare_re_set_context): Don't switch program space here.
5611 (breakpoint_re_set): Use save_current_space_and_thread instead of
5612 save_current_program_space.
5613 * breakpoint.h (struct breakpoint_ops) <decode_location>: Add
5614 'search_pspace' parameter.
5615 (update_breakpoint_locations): Add 'filter_pspace' parameter.
5616 * cli/cli-cmds.c (edit_command, list_command): Adjust calls to
5617 decode_line_1.
5618 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the current
5619 program space as filter program space.
5620 * linespec.c (struct linespec_state) <search_pspace>: New field.
5621 (create_sals_line_offset, convert_explicit_location_to_sals)
5622 (parse_linespec): Pass the search program space down.
5623 (linespec_state_constructor): Add 'search_pspace' parameter.
5624 Store it.
5625 (linespec_parser_new): Add 'search_pspace' parameter and pass it
5626 along.
5627 (linespec_lex_to_end): Adjust.
5628 (decode_line_full, decode_line_1): Add 'search_pspace' parameter
5629 and pass it along.
5630 (decode_line_with_last_displayed): Adjust.
5631 (collect_symtabs_from_filename, symtabs_from_filename): New
5632 'search_pspace' parameter. Use it.
5633 (find_function_symbols): Pass the search program space down.
5634 * linespec.h (decode_line_1, decode_line_full): Add
5635 'search_pspace' parameter.
5636 * probe.c (parse_probes_in_pspace): New function, factored out
5637 from ...
5638 (parse_probes): ... this. Add 'search_pspace' parameter and use
5639 it.
5640 * probe.h (parse_probes): Add pspace' parameter.
5641 * python/python.c (gdbpy_decode_line): Adjust.
5642 * tracepoint.c (scope_info): Adjust.
5643
100b4f2e
MR
56442016-01-18 Maciej W. Rozycki <macro@imgtec.com>
5645
5646 * mips-tdep.c (mips_insn_size): Remove 48-bit microMIPS
5647 instruction support.
5648 (micromips_next_pc): Likewise.
5649 (micromips_scan_prologue): Likewise.
5650 (micromips_deal_with_atomic_sequence): Likewise.
5651 (micromips_stack_frame_destroyed_p): Likewise.
5652 (mips_breakpoint_from_pc): Likewise.
5653
3f7f3650
MR
56542016-01-18 Maciej W. Rozycki <macro@imgtec.com>
5655
5656 * mips-tdep.c (micromips_insn_at_pc_has_delay_slot): Pass
5657 unshifted 16-bit microMIPS instruction word to `mips_insn_size'.
5658
f303dbd6
PA
56592016-01-18 Pedro Alves <palves@redhat.com>
5660
5661 * NEWS: Mention that GDB now displays the ID and name of the
5662 thread that hit a breakpoint or received a signal.
5663 * break-catch-sig.c (signal_catchpoint_print_it): Use
5664 maybe_print_thread_hit_breakpoint.
5665 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
5666 * break-catch-throw.c (print_it_exception_catchpoint): Likewise.
5667 * breakpoint.c (maybe_print_thread_hit_breakpoint): New function.
5668 (print_it_catch_fork, print_it_catch_vfork, print_it_catch_solib)
5669 (print_it_catch_exec, print_it_ranged_breakpoint)
5670 (print_it_watchpoint, print_it_masked_watchpoint, bkpt_print_it):
5671 Use maybe_print_thread_hit_breakpoint.
5672 * breakpoint.h (maybe_print_thread_hit_breakpoint): Declare.
5673 * gdbthread.h (show_thread_that_caused_stop): Declare.
5674 * infrun.c (print_signal_received_reason): Print which thread
5675 received signal.
5676 * thread.c (show_thread_that_caused_stop): New function.
5677
eb0edac8
GB
56782016-01-18 Gary Benson <gbenson@redhat.com>
5679
5680 * nat/linux-namespaces.c (do_fork): New function.
5681 (linux_mntns_get_helper): Use the above.
5682
dc365182
JH
56832016-01-17 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de> (tiny change)
5684
5685 Pushed by Joel Brobecker <brobecker@adacore.com>.
5686 PR gdb/19208
5687 * dwarf2read.c (read_partial_die): Do not call set_objfile_main_name
5688 if the function has no name.
5689
f74f61cb
SL
56902016-01-15 Sandra Loosemore <sandra@codesourcery.com>
5691
5692 * charset.c [PHONY_ICONV] (GDB_DEFAULT_HOST_CHARSET):
5693 Conditionalize for Windows host.
5694 (GDB_DEFAULT_TARGET_CHARSET): Match GDB_DEFAULT_HOST_CHARSET.
5695 (GDB_DEFAULT_TARGET_WIDE_CHARSET): Use UTF-32.
5696 (phony_iconv_open): Handle both UTF-32 endiannesses.
5697 (phony_iconv): Likewise. Check for output overflow and clean up
5698 out-of-input cases. Correct adjustment to input buffer pointer.
5699 (set_be_le_names) [PHONY_ICONV]: Use hard-wired names to match
5700 phony_iconv_open.
5701
71ef29a8
PA
57022016-01-15 Pedro Alves <palves@redhat.com>
5703
5704 * NEWS: Mention star wildcard ranges.
5705 * cli/cli-utils.c (get_number_or_range): Check state->in_range first.
5706 (number_range_setup_range): New function.
5707 * cli/cli-utils.h (number_range_setup_range): New declaration.
5708 * thread.c (thread_apply_command): Support star TID ranges.
5709 * tid-parse.c (tid_range_parser_finished)
5710 (tid_range_parser_string, tid_range_parser_skip)
5711 (get_tid_or_range, get_tid_or_range): Handle
5712 TID_RANGE_STATE_STAR_RANGE.
5713 (tid_range_parser_star_range): New function.
5714 * tid-parse.h (enum tid_range_state) <TID_RANGE_STATE_STAR_RANGE>:
5715 New value.
5716 (tid_range_parser_star_range): New declaration.
5717
3f5b7598
PA
57182016-01-15 Pedro Alves <palves@redhat.com>
5719
5720 * thread.c (thread_apply_command): Use the tid range parser to
5721 advance past the thread ID list.
5722 * tid-parse.c (get_positive_number_trailer): New function.
5723 (parse_thread_id): Use it.
5724 (get_tid_or_range): Use it. Return 0 instead of throwing invalid
5725 thread ID error.
5726 (get_tid_or_range): Detect negative values. Return 0 instead of
5727 throwing invalid thread ID error.
5728
e7cf25a8
YQ
57292016-01-14 Yao Qi <yao.qi@linaro.org>
5730
5731 * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
5732 Declare.
5733 (arm_linux_get_next_pcs_ops): Install
5734 arm_linux_get_next_pcs_syscall_next_pc.
5735 (arm_linux_syscall_next_pc): Change to ...
5736 (arm_linux_get_next_pcs_syscall_next_pc): ... it.
5737 (arm_linux_init_abi): Don't set tdep->syscall_next_pc.
5738 * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Declare.
5739 (arm_get_next_pcs_syscall_next_pc): Make it static. Don't
5740 call tdep->syscall_next_pc.
5741 * arm-tdep.h (struct gdbarch_tdep) <syscall_next_pc>: Remove.
5742 (arm_get_next_pcs_syscall_next_pc): Remove.
5743
c0518081
YQ
57442016-01-14 Yao Qi <yao.qi@linaro.org>
5745
5746 * remote.c (remote_set_syscall_catchpoint): Cast to char *.
5747 * thread.c (do_captured_thread_select): Cast to const char *.
5748
1b451dda
YQ
57492016-01-14 Yao Qi <yao.qi@linaro.org>
5750
5751 * arch/arm-get-next-pcs.c (arm_get_next_pcs_ctor): Change
5752 argument arm_thumb2_breakpoint to has_thumb2_breakpoint.
5753 (thumb_get_next_pcs_raw): Check has_thumb2_breakpoint
5754 instead.
5755 * arch/arm-get-next-pcs.h (struct arm_get_next_pcs)
5756 <arm_thumb2_breakpoint>: Remove.
5757 <has_thumb2_breakpoint>: New field.
5758 (arm_get_next_pcs_ctor): Update declaration.
5759 * arm-linux-tdep.c (arm_linux_software_single_step): Pass
5760 1 to arm_get_next_pcs_ctor.
5761 * arm-tdep.c (arm_software_single_step): Pass 0 to
5762 arm_get_next_pcs_ctor.
5763
bc06e0b1
UW
57642016-01-13 Ulrich Weigand <uweigand@de.ibm.com>
5765
5766 * MAINTAINERS: Add Andreas Arnez as s390 target maintainer.
5767
4e7b8bea
YQ
57682016-01-13 Yao Qi <yao.qi@linaro.org>
5769
5770 * arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Use
5771 byte_order_for_code to read instruction.
5772
663f6d42
PA
57732016-01-13 Pedro Alves <palves@redhat.com>
5774
5775 * NEWS: Mention $_gthread.
5776 * gdbthread.h (struct thread_info) <global_num>: Mention
5777 $_gthread.
5778 * thread.c (thread_num_make_value_helper): New function.
5779 (thread_id_make_value): Delete.
5780 (thread_id_per_inf_num_make_value, global_thread_id_make_value):
5781 New.
5782 (thread_funcs): Adjust.
5783 (gthread_funcs): New.
5784 (_initialize_thread): Register $_gthread variable.
5785
c84f6bbf
PA
57862016-01-13 Pedro Alves <palves@redhat.com>
5787
5788 * NEWS: Mention "info threads -gid".
5789 * gdbthread.h (struct thread_info) <global_num>: Mention "info
5790 threads -gid".
5791 * thread.c (info_threads_command): Handle "-gid".
5792 (_initialize_thread): Adjust "info threads" help string to mention
5793 -gid.
5794
22a02324
PA
57952016-01-13 Pedro Alves <palves@redhat.com>
5796
5797 * NEWS: Mention InferiorThread.global_num.
5798 * python/py-infthread.c (thpy_get_global_num): New function.
5799 (thread_object_getset): Register "global_num".
5800
5d5658a1
PA
58012016-01-13 Pedro Alves <palves@redhat.com>
5802
5803 * NEWS: Mention that thread IDs are now per inferior and global
5804 thread IDs.
5805 * Makefile.in (SFILES): Add tid-parse.c.
5806 (COMMON_OBS): Add tid-parse.o.
5807 (HFILES_NO_SRCDIR): Add tid-parse.h.
5808 * ada-tasks.c: Adjust to use ptid_to_global_thread_id.
5809 * breakpoint.c (insert_breakpoint_locations)
5810 (remove_threaded_breakpoints, bpstat_check_breakpoint_conditions)
5811 (print_one_breakpoint_location, set_longjmp_breakpoint)
5812 (check_longjmp_breakpoint_for_call_dummy)
5813 (set_momentary_breakpoint): Adjust to use global IDs.
5814 (find_condition_and_thread, watch_command_1): Use parse_thread_id.
5815 (until_break_command, longjmp_bkpt_dtor)
5816 (breakpoint_re_set_thread, insert_single_step_breakpoint): Adjust
5817 to use global IDs.
5818 * dummy-frame.c (pop_dummy_frame_bpt): Adjust to use
5819 ptid_to_global_thread_id.
5820 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
5821 * gdbthread.h (struct thread_info): Rename field 'num' to
5822 'global_num. Add new fields 'per_inf_num' and 'inf'.
5823 (thread_id_to_pid): Rename thread_id_to_pid to
5824 global_thread_id_to_ptid.
5825 (pid_to_thread_id): Rename to ...
5826 (ptid_to_global_thread_id): ... this.
5827 (valid_thread_id): Rename to ...
5828 (valid_global_thread_id): ... this.
5829 (find_thread_id): Rename to ...
5830 (find_thread_global_id): ... this.
5831 (ALL_THREADS, ALL_THREADS_BY_INFERIOR): Declare.
5832 (print_thread_info): Add comment.
5833 * tid-parse.h: New file.
5834 * tid-parse.c: New file.
5835 * infcmd.c (step_command_fsm_prepare)
5836 (step_command_fsm_should_stop): Adjust to use the global thread
5837 ID.
5838 (until_next_command, until_next_command)
5839 (finish_command_fsm_should_stop): Adjust to use the global thread
5840 ID.
5841 (attach_post_wait): Adjust to check the inferior number too.
5842 * inferior.h (struct inferior) <highest_thread_num>: New field.
5843 * infrun.c (handle_signal_stop)
5844 (insert_exception_resume_breakpoint)
5845 (insert_exception_resume_from_probe): Adjust to use the global
5846 thread ID.
5847 * record-btrace.c (record_btrace_open): Use global thread IDs.
5848 * remote.c (process_initial_stop_replies): Also consider the
5849 inferior number.
5850 * target.c (target_pre_inferior): Clear the inferior's highest
5851 thread num.
5852 * thread.c (clear_thread_inferior_resources): Adjust to use the
5853 global thread ID.
5854 (new_thread): New inferior parameter. Adjust to use it. Set both
5855 the thread's global ID and the thread's per-inferior ID.
5856 (add_thread_silent): Adjust.
5857 (find_thread_global_id): New.
5858 (find_thread_id): Make static. Adjust to rename.
5859 (valid_thread_id): Rename to ...
5860 (valid_global_thread_id): ... this.
5861 (pid_to_thread_id): Rename to ...
5862 (ptid_to_global_thread_id): ... this.
5863 (thread_id_to_pid): Rename to ...
5864 (global_thread_id_to_ptid): ... this. Adjust.
5865 (first_thread_of_process): Adjust.
5866 (do_captured_list_thread_ids): Adjust to use global thread IDs.
5867 (should_print_thread): New function.
5868 (print_thread_info): Rename to ...
5869 (print_thread_info_1): ... this, and add new show_global_ids
5870 parameter. Handle it. Iterate over inferiors.
5871 (print_thread_info): Reimplement as wrapper around
5872 print_thread_info_1.
5873 (show_inferior_qualified_tids): New function.
5874 (print_thread_id): Use it.
5875 (tp_array_compar): Compare inferior numbers too.
5876 (thread_apply_command): Use tid_range_parser.
5877 (do_captured_thread_select): Use parse_thread_id.
5878 (thread_id_make_value): Adjust.
5879 (_initialize_thread): Adjust "info threads" help string.
5880 * varobj.c (struct varobj_root): Update comment.
5881 (varobj_create): Adjust to use global thread IDs.
5882 (value_of_root_1): Adjust to use global_thread_id_to_ptid.
5883 * windows-tdep.c (display_tib): No longer accept an argument.
5884 * cli/cli-utils.c (get_number_trailer): Make extern.
5885 * cli/cli-utils.h (get_number_trailer): Declare.
5886 (get_number_const): Adjust documentation.
5887 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Adjust to use global
5888 thread IDs.
5889 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
5890 (mi_on_normal_stop, mi_output_running_pid, mi_on_resume):
5891 * mi/mi-main.c (mi_execute_command, mi_cmd_execute): Likewise.
5892 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_thread_x):
5893 Likewise.
5894 * python/py-breakpoint.c (bppy_set_thread): Likewise.
5895 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
5896 * python/py-infthread.c (thpy_get_num): Add comment and return the
5897 per-inferior thread ID.
5898 (thread_object_getset): Update comment of "num".
5899
43792cf0
PA
59002016-01-13 Pedro Alves <palves@redhat.com>
5901
5902 * breakpoint.c (remove_threaded_breakpoints)
5903 (print_one_breakpoint_location): Use print_thread_id.
5904 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
5905 (btrace_fetch, btrace_clear): Use print_thread_id.
5906 * common/print-utils.c (CELLSIZE): Delete.
5907 (get_cell): Rename to ...
5908 (get_print_cell): ... this and made extern. Adjust call callers.
5909 Adjust to use PRINT_CELL_SIZE.
5910 * common/print-utils.h (get_print_cell): Declare.
5911 (PRINT_CELL_SIZE): New.
5912 * gdbthread.h (print_thread_id): Declare.
5913 * infcmd.c (signal_command): Use print_thread_id.
5914 * inferior.c (print_inferior): Use print_thread_id.
5915 * infrun.c (handle_signal_stop)
5916 (insert_exception_resume_breakpoint)
5917 (insert_exception_resume_from_probe)
5918 (print_signal_received_reason): Use print_thread_id.
5919 * record-btrace.c (record_btrace_info)
5920 (record_btrace_resume_thread, record_btrace_cancel_resume)
5921 (record_btrace_step_thread, record_btrace_wait): Use
5922 print_thread_id.
5923 * thread.c (thread_apply_all_command): Use print_thread_id.
5924 (print_thread_id): New function.
5925 (thread_apply_command): Use print_thread_id.
5926 (thread_command, thread_find_command, do_captured_thread_select):
5927 Use print_thread_id.
5928
84654457
PA
59292016-01-13 Pedro Alves <palves@redhat.com>
5930
5931 * NEWS: Mention InferiorThread.inferior.
5932 * python/py-infthread.c (thpy_get_inferior): New.
5933 (thread_object_getset): Register "inferior".
5934
e3940304
PA
59352016-01-13 Pedro Alves <palves@redhat.com>
5936
5937 * NEWS: Mention $_inferior.
5938 * inferior.c (inferior_id_make_value): New.
5939 (inferior_funcs): New.
5940 (_initialize_inferior): Create $_inferior variable.
5941
a911d87a
PA
59422016-01-13 Pedro Alves <palves@redhat.com>
5943
5944 PR breakpoints/19388
5945 * frame.c (get_current_frame): Use validate_registers_access.
5946 * gdbthread.h (validate_registers_access): Declare.
5947 * infrun.c (validate_siginfo_access): Delete.
5948 (siginfo_value_read, siginfo_value_write): Use
5949 validate_registers_access.
5950 * thread.c (validate_registers_access): New function.
5951
82075af2
JS
59522016-01-12 Josh Stone <jistone@redhat.com>
5953 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5954
5955 * NEWS (Changes since GDB 7.10): Mention QCatchSyscalls and the
5956 syscall_entry and syscall_return stop reasons. Mention GDB
5957 support for remote catch syscall.
5958 * remote.c (PACKET_QCatchSyscalls): New enum.
5959 (remote_set_syscall_catchpoint): New function.
5960 (remote_protocol_features): New element for QCatchSyscalls.
5961 (remote_parse_stop_reply): Parse syscall_entry/return stops.
5962 (init_remote_ops): Install remote_set_syscall_catchpoint.
5963 (_initialize_remote): Config QCatchSyscalls.
5964 * linux-nat.h (struct lwp_info) <syscall_state>: Comment typo.
5965
d18547d8
YQ
59662016-01-12 Yao Qi <yao.qi@linaro.org>
5967
5968 * nat/linux-ptrace.c (linux_child_function): Cast child_stack
5969 to gdb_byte * and pass to linux_fork_to_function.
5970
ba4dd7c4
YQ
59712016-01-12 Yao Qi <yao.qi@linaro.org>
5972
5973 * nat/linux-ptrace.c (linux_fork_to_function): Change type
5974 of argument 'function'.
5975 (linux_grandchild_function): Change return type to 'int'.
5976 Change child_stack's type to 'void *'.
5977 (linux_child_function): Likewise.
5978
bc504a31
PA
59792016-01-12 Pedro Alves <palves@redhat.com>
5980
5981 Remove use of the registered trademark symbol throughout.
5982
5eddd578
TS
59832016-01-12 Thomas Schwinge <thomas@codesourcery.com>
5984
5985 * reply_mig_hack.awk: Rewrite one regular expression.
5986
b835bb52
MF
59872016-01-11 Mike Frysinger <vapier@gentoo.org>
5988
5989 * acinclude.m4: Include new warning.m4 file.
5990 * configure: Regenerated.
5991 * configure.ac: Move all warning logic ...
5992 * warning.m4: ... here.
5993
2f99e8fc
YQ
59942016-01-08 Yao Qi <yao.qi@linaro.org>
5995
5996 * extension.c: Include target.h.
5997 (set_active_ext_lang): Only call install_gdb_sigint_handler,
5998 check_quit_flag, and set_quit_flag if target_terminal_is_ours
5999 returns false.
6000 (restore_active_ext_lang): Likewise.
6001 * target.c (target_terminal_is_ours): New function.
6002 * target.h (target_terminal_is_ours): Declare.
6003
5dd05630
MR
60042016-01-07 Maciej W. Rozycki <macro@imgtec.com>
6005
6006 * mips-tdep.c (mips_breakpoint_from_pc): Rename local `status'
6007 to `err' in the little-endian leg.
6008
f5aa3069
YQ
60092016-01-06 Yao Qi <yao.qi@linaro.org>
6010
6011 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Move it to some
6012 lines below.
6013 (thumb_get_next_pcs_raw): Make it static.
6014 (arm_get_next_pcs_raw): Likewise.
6015 * arch/arm-get-next-pcs.h (thumb_get_next_pcs_raw): Remove the
6016 declaration.
6017 (arm_get_next_pcs_raw): Likewise.
6018
bf69ad5a
MF
60192016-01-05 Mike Frysinger <vapier@gentoo.org>
6020
6021 * version.in: Change cvs to git.
6022
66750332
MF
60232016-01-05 Mike Frysinger <vapier@gentoo.org>
6024
6025 * configure.tgt (score-*-*): Delete gdb_sim assignment.
6026
976102cd
PA
60272016-01-05 Pedro Alves <palves@redhat.com>
6028
6029 PR sim/13418
6030 * configure.ac: Define WITH_PPC_SIM when linking in the sim and
6031 the target is powerpc*.
fa89c126
PA
6032 * rs6000-tdep.c (init_sim_regno_table): Check WITH_PPC_SIM instead
6033 of WITH_SIM.
976102cd
PA
6034 * configure: Regenerate.
6035 * config.in: Regenerate.
6036
43368e1d
MM
60372016-01-04 Markus Metzger <markus.t.metzger@intel.com>
6038
6039 * btrace.c (btrace_pt_readmem_callback): Do not return in TRY/CATCH.
6040
32273fe6
MF
60412016-01-02 Mike Frysinger <vapier@gentoo.org>
6042
6043 * configure.tgt (powerpc*-*-*): Delete test call and
6044 always assign gdb_sim.
6045
618f726f
JB
60462016-01-01 Joel Brobecker <brobecker@adacore.com>
6047
6048 Update year range in copyright notice of all files.
6049
edd88788
JB
60502016-01-01 Joel Brobecker <brobecker@adacore.com>
6051
6052 * top.c (print_gdb_version): Change copyright year in version
6053 message.
6054
0f7b3ef4 60552016-01-01 Joel Brobecker <brobecker@adacore.com>
aec47d1d 6056
0f7b3ef4 6057 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2015.
aec47d1d 6058
0f7b3ef4 6059For older changes see ChangeLog-2015.
c906108c
SS
6060\f
6061Local Variables:
6062mode: change-log
6063left-margin: 8
6064fill-column: 74
6065version-control: never
57da7796 6066coding: utf-8
c906108c 6067End:
This page took 2.205214 seconds and 4 git commands to generate.