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