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