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