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