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