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