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