Fix GDB build fail on Aarch64 when -fno-common is enabled
[binutils-gdb.git] / gdb / ChangeLog
1 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
2
3 PR gdb/17984
4 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
5 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
6 call.
7 * aarch64-tdep.h (tdesc_aarch64): Declare.
8
9 2015-02-12 Mark Wielaard <mjw@redhat.com>
10
11 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
12
13 2015-02-13 Doug Evans <dje@google.com>
14
15 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
16 anonymous_namespace to is_in_anonymous for consistency with the rest
17 of the file.
18 (cp_lookup_bare_symbol): Fix typo in comment.
19 (cp_search_static_and_baseclasses): Ditto.
20 (search_symbol_list): Use vertical space in comment better.
21 (reset_directive_searched): Ditto. Fix typo.
22 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
23
24 2015-02-13 Yao Qi <yao.qi@arm.com>
25
26 * MAINTAINERS: Update my email address.
27
28 2015-02-12 Doug Evans <dje@google.com>
29
30 * completer.c (completion_list_add_name): Fix memory leak.
31
32 2015-02-12 Doug Evans <dje@google.com>
33
34 * completer.c (complete_line): Remove incorrect comment.
35
36 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
37
38 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
39 (py_print_frame): Use RETURN_MASK_ERROR.
40
41 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
42
43 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
44 function comment. Wrap all function that can throw in cleanups.
45 (gdbpy_apply_frame_filter): Wrap all function that can throw in
46 cleanups.
47
48 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
49
50 * python/py-framefilter.c (py_print_frame): Substitute goto error.
51 Remove the error label.
52
53 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
54
55 * python/py-framefilter.c (py_print_frame): Put conditional code paths
56 with goto first, indent the former else codepath left. Put variable
57 'elided' to a new inner block.
58
59 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
60
61 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
62
63 2015-02-11 Pedro Alves <palves@redhat.com>
64
65 * xcoffread.c (within_function): Delete.
66
67 2015-02-11 Tom Tromey <tromey@redhat.com>
68 Pedro Alves <palves@redhat.com>
69
70 * breakpoint.c (base_breakpoint_ops): Delete.
71 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
72 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
73 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
74 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
75 * python/py-arch.c (arch_object_type): Make extern.
76 * python/py-block.c (block_syms_iterator_object_type): Make extern.
77 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
78 * python/py-cmd.c (cmdpy_object_type): Make extern.
79 * python/py-continueevent.c (continue_event_object_type)
80 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
81 parameter. Update all callers.
82 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
83 * python/py-exitedevent.c (exited_event_object_type): Make extern.
84 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
85 * python/py-function.c (fnpy_object_type): Make extern.
86 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
87 * python/py-infevents.c (call_pre_event_object_type)
88 (inferior_call_post_event_object_type).
89 (memory_changed_event_object_type): Make extern.
90 * python/py-infthread.c (thread_object_type): Make extern.
91 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
92 * python/py-linetable.c (linetable_entry_object_type)
93 (linetable_object_type, ltpy_iterator_object_type): Make extern.
94 * python/py-newobjfileevent.c (new_objfile_event_object_type)
95 (clear_objfiles_event_object_type): Make extern.
96 * python/py-objfile.c (objfile_object_type): Make extern.
97 * python/py-param.c (parmpy_object_type): Make extern.
98 * python/py-progspace.c (pspace_object_type): Make extern.
99 * python/py-signalevent.c (signal_event_object_type): Make extern.
100 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
101 * python/py-type.c (type_object_type, field_object_type)
102 (type_iterator_object_type): Make extern.
103 * python/python.c (python_extension_script_ops)
104 (python_extension_ops): Make extern.
105 * stap-probe.c (stap_probe_ops): Make extern.
106
107 2015-02-11 Pedro Alves <pedro@codesourcery.com>
108
109 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
110 because the event thread is not the current thread.
111
112 2015-02-11 Doug Evans <xdje42@gmail.com>
113
114 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
115 been initialized yet, return NULL.
116
117 2015-02-11 Doug Evans <dje@google.com>
118
119 * symfile.h (new_symfile_objfile): Delete.
120 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
121 All callers updated.
122
123 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
124
125 * tui/tui-io.c (tui_handle_resize_during_io): Call
126 tui_update_gdb_sizes() after resizing the screen.
127 * tui/tui.c (tui_enable): Resize the terminal before
128 calling tui_update_gdb_sizes().
129
130 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
131
132 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
133 line before printing a newline.
134
135 2015-02-11 Mark Wielaard <mjw@redhat.com>
136
137 * utils.c (producer_is_gcc): Return true or false.
138
139 2015-02-10 Mark Wielaard <mjw@redhat.com>
140
141 * utils.h (producer_is_gcc): Change return type to bool. Add major
142 argument.
143 * utils.c (producer_is_gcc): Likewise.
144 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
145 * dwarf2read.c (check_producer): Likewise.
146
147 2015-02-10 Pedro Alves <palves@redhat.com>
148
149 * infrun.c (displaced_step_fixup): Switch to the event thread
150 before calling gdbarch_displaced_step_fixup.
151
152 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
153
154 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
155
156 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
157
158 * ada-varobj.c (ada_name_of_child): Constify parent.
159 (ada_path_expr_of_child): Same.
160 (ada_value_of_child): Same.
161 (ada_type_of_child): Same.
162 * c-varobj.c (c_is_path_expr_parent): Same.
163 (c_describe_child): Same.
164 (c_name_of_child): Same.
165 (c_value_of_child): Same.
166 (c_type_of_child): Same.
167 (cplus_number_of_children): Same.
168 (cplus_describe_child): Constify var.
169 (cplus_name_of_child): Constify parent.
170 (cplus_value_of_child): Same.
171 (cplus_type_of_child): Same.
172 * jv-varobj.c (java_name_of_child): Same.
173 (java_value_of_child): Same.
174 (java_type_of_child): Same.
175 * varobj.c (value_of_child): Same.
176 (varobj_default_is_path_expr_parent): Constify var, parent and return
177 value.
178 (varobj_get_path_expr): Constify var, modify path_expr through
179 mutable_var.
180 (install_new_value): Constify parent.
181 (value_of_child): Constify parent.
182 * varobj.h (struct varobj): Constify parent.
183 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
184 type_of_child.
185 (varobj_get_path_expr): Constify var.
186 (varobj_get_path_expr_parent): Constify var and return value.
187
188 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
189
190 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
191 (arm_prologue_this_id): Move PC and SP limit checks to
192 arm_prologue_unwind_stop_reason.
193 (arm_prologue_unwind) <stop_reason> : Set to
194 arm_prologue_unwind_stop_reason.
195
196 2015-02-09 Mark Wielaard <mjw@redhat.com>
197
198 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
199 DW_LANG_Fortran08 as language_fortran.
200
201 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
202
203 PR remote/17946
204 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
205 of pointer against char.
206
207 2015-02-09 Mark Wielaard <mjw@redhat.com>
208
209 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
210 (c_type_print_modifier): Likewise.
211 * dwarf2read.c (read_tag_atomic_type): New function.
212 (read_type_die_1): Handle DW_TAG_atomic_type.
213 * gdbtypes.c (make_atomic_type): New function.
214 (recursive_dump_type): Handle TYPE_ATOMIC.
215 * gdbtypes.h (enum type_flag_values): Renumber.
216 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
217 (TYPE_ATOMIC): New macro.
218 (make_atomic_type): Declare.
219
220 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
221
222 * btrace.c (ftrace_find_call): Skip gaps.
223 (ftrace_new_function): Initialize level.
224 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
225 (ftrace_new_switch): Update
226 level computation.
227 (ftrace_new_gap): New.
228 (ftrace_update_function): Create new function after gap.
229 (btrace_compute_ftrace_bts): Create gap on error.
230 (btrace_stitch_bts): Update parameters. Clear trace if it
231 becomes empty.
232 (btrace_stitch_trace): Update parameters. Update callers.
233 (btrace_clear): Reset the number of gaps.
234 (btrace_insn_get): Return NULL if the iterator points to a gap.
235 (btrace_insn_number): Return zero if the iterator points to a gap.
236 (btrace_insn_end): Allow gaps at the end.
237 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
238 (btrace_find_insn_by_number): Assert that the found iterator does
239 not point to a gap.
240 (btrace_call_next, btrace_call_prev): Assert that the last function
241 is not a gap.
242 * btrace.h (btrace_bts_error): New.
243 (btrace_function): Update comment.
244 (btrace_function) <insn, insn_offset, number>: Update comment.
245 (btrace_function) <errcode>: New.
246 (btrace_thread_info) <ngaps>: New.
247 (btrace_thread_info) <replay>: Update comment.
248 (btrace_insn_get): Update comment.
249 * record-btrace.c (btrace_ui_out_decode_error): New.
250 (record_btrace_info): Print number of gaps.
251 (btrace_insn_history, btrace_call_history): Call
252 btrace_ui_out_decode_error for gaps.
253 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
254
255 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
256
257 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
258 * nat/linux-btrace.c: (btrace_this_cpu): New.
259 (cpu_supports_bts): Call btrace_this_cpu.
260 (intel_supports_bts): Add cpu parameter.
261
262 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
263
264 * btrace.h (btrace_insn_class): New.
265 (btrace_insn) <size, iclass>: New.
266 * btrace.c (ftrace_find_call): Update parameters. Update users.
267 Use instruction classification.
268 (ftrace_new_return): Update parameters. Update users.
269 (ftrace_update_function): Update parameters. Update users. Use
270 instruction classification.
271 (ftrace_update_insns): Update parameters. Update users.
272 (ftrace_classify_insn): New.
273 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
274 TRY_CATCH around call to gdb_insn_length.
275
276 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
277
278 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
279 Update parameters. Update users.
280
281 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
282
283 * btrace.c (parse_xml_btrace_conf_bts): Add size.
284 (btrace_conf_bts_attributes): New.
285 (btrace_conf_children): Add attributes.
286 * common/btrace-common.h (btrace_config_bts): New.
287 (btrace_config)<bts>: New.
288 (btrace_config): Update comment.
289 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
290 Use config.
291 * features/btrace-conf.dtd: Increment version. Add size
292 attribute to bts element.
293 * record-btrace.c (set_record_btrace_bts_cmdlist,
294 show_record_btrace_bts_cmdlist): New.
295 (record_btrace_adjust_size, record_btrace_print_bts_conf,
296 record_btrace_print_conf, cmd_set_record_btrace_bts,
297 cmd_show_record_btrace_bts): New.
298 (record_btrace_info): Call record_btrace_print_conf.
299 (_initialize_record_btrace): Add commands.
300 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
301 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
302 (btrace_sync_conf): Synchronize bts size.
303 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
304 * NEWS: Announce new commands and new packets.
305
306 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
307
308 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
309 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
310 (x86_linux_btrace_conf): New.
311 (x86_linux_create_target): Initialize to_btrace_conf.
312 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
313 Check format. Split into this and ...
314 (linux_enable_bts): ... this.
315 (linux_btrace_conf): New.
316 (perf_event_skip_record): Renamed into ...
317 (perf_event_skip_bts_record): ... this. Updated users.
318 (linux_disable_btrace): Split into this and ...
319 (linux_disable_bts): ... this.
320 (linux_read_btrace): Check format.
321 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
322 (linux_btrace_conf): New.
323 (btrace_target_info)<ptid>: Moved.
324 (btrace_target_info)<conf>: New.
325 (btrace_target_info): Split into this and ...
326 (btrace_tinfo_bts): ... this. Updated users.
327 * btrace.c (btrace_enable): Update parameters.
328 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
329 (btrace_conf_children, btrace_conf_attributes)
330 (btrace_conf_elements): New.
331 * btrace.h (btrace_enable): Update parameters.
332 (btrace_conf, parse_xml_btrace_conf): New.
333 * common/btrace-common.h (btrace_config): New.
334 * feature/btrace-conf.dtd: New.
335 * record-btrace.c (record_btrace_conf): New.
336 (record_btrace_cmdlist): New.
337 (record_btrace_enable_warn, record_btrace_open): Pass
338 &record_btrace_conf.
339 (record_btrace_info): Print recording format.
340 (cmd_record_btrace_bts_start): New.
341 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
342 (_initialize_record_btrace): Add "record btrace bts" subcommand.
343 Add "record bts" alias command.
344 * remote.c (remote_state)<btrace_config>: New.
345 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
346 (remote_protocol_features): Add qXfer:btrace-conf:read.
347 (remote_open_1): Call remote_btrace_reset.
348 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
349 (btrace_target_info)<conf>: New.
350 (btrace_sync_conf, btrace_read_config): New.
351 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
352 btrace_read_conf.
353 (remote_btrace_conf): New.
354 (init_remote_ops): Initialize to_btrace_conf.
355 (_initialize_remote): Add qXfer:btrace-conf packet.
356 * target.c (target_enable_btrace): Update parameters.
357 (target_btrace_conf): New.
358 * target.h (target_enable_btrace): Update parameters.
359 (target_btrace_conf): New.
360 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
361 (target_ops)<to_enable_btrace>: Update parameters and comment.
362 (target_ops)<to_btrace_conf>: New.
363 * target-delegates: Regenerate.
364 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
365 (target_debug_print_const_struct_btrace_target_info_p): New.
366 * NEWS: Announce new command and new packet.
367
368 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
369
370 * nat/linux-btrace.h (perf_event_buffer): New.
371 (btrace_target_info) <buffer, size, data_head>: Replace with ...
372 <bts>: ... this.
373 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
374 (perf_event_buffer_size, perf_event_buffer_begin)
375 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
376 Updated users.
377 (perf_event_new_data): New.
378
379 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
380
381 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
382 * record-btrace.c (record_btrace_open): Remove call to
383 target_supports_btrace.
384 * remote.c (remote_supports_btrace): Update parameters.
385 * target.c (target_supports_btrace): Update parameters.
386 * target.h (to_supports_btrace, target_supports_btrace): Update
387 parameters.
388 * target-delegates.c: Regenerate.
389 * target-debug.h (target_debug_print_enum_btrace_format): New.
390 * nat/linux-btrace.c
391 (kernel_supports_btrace): Rename into ...
392 (kernel_supports_bts): ... this. Update users. Update warning text.
393 (intel_supports_btrace): Rename into ...
394 (intel_supports_bts): ... this. Update users.
395 (cpu_supports_btrace): Rename into ...
396 (cpu_supports_bts): ... this. Update users.
397 (linux_supports_btrace): Update parameters. Split into this and ...
398 (linux_supports_bts): ... this.
399 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
400
401 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
402
403 * Makefile.in (SFILES): Add common/btrace-common.c.
404 (COMMON_OBS): Add common/btrace-common.o.
405 (btrace-common.o): Add build rules.
406 * btrace.c (parse_xml_btrace): Update parameters.
407 (parse_xml_btrace_block): Set format field.
408 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
409 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
410 (btrace_compute_ftrace): Split into this and...
411 (btrace_compute_ftrace_bts): ...this.
412 (btrace_stitch_trace): Split into this and...
413 (btrace_stitch_bts): ...this.
414 * btrace.h (parse_xml_btrace): Update parameters.
415 (make_cleanup_btrace_data): New.
416 * common/btrace-common.c: New.
417 * common/btrace-common.h: Include common-defs.h.
418 (btrace_block_s): Update comment.
419 (btrace_format): New.
420 (btrace_format_string): New.
421 (btrace_data_bts): New.
422 (btrace_data): New.
423 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
424 * remote.c (remote_read_btrace): Update parameters.
425 * target.c (target_read_btrace): Update parameters.
426 * target.h (target_read_btrace): Update parameters.
427 (target_ops)<to_read_btrace>: Update parameters.
428 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
429 * target-delegates.c: Regenerate.
430 * target-debug (target_debug_print_struct_btrace_data_p): New.
431 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
432 (linux_read_bts): ...this.
433 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
434
435 2015-02-06 Doug Evans <dje@google.com>
436
437 * remote-m32r-sdi.c: Include symfile.h.
438
439 2015-02-06 Doug Evans <dje@google.com>
440
441 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
442 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
443 to here.
444
445 2015-02-06 Pedro Alves <palves@redhat.com>
446
447 * linux-thread-db.c (find_new_threads_callback): Add debug output.
448
449 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
450
451 PR gdb/15678
452 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
453 (enable_count_command): Check args for NULL value.
454
455 2015-02-05 Doug Evans <xdje42@gmail.com>
456
457 * guile/scm-frame.c: Fix spelling errors in a comment.
458
459 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
460
461 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
462 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
463 return type.
464
465 2015-02-04 Pedro Alves <palves@redhat.com>
466
467 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
468 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
469 returns true.
470 (resume_stopped_resumed_lwps): Don't check whether the thread is
471 marked as executing.
472 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
473
474 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
475
476 * regset.h (struct regset): Add flags field.
477 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
478 * corelow.c (get_core_register_section): Add warning if the size
479 exceeds the requested size and the regset does not have the
480 REGSET_VARIABLE_SIZE flag set.
481 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
482 flag.
483 * armbsd-tdep.c (armbsd_gregset): Likewise.
484 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
485 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
486 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
487 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
488
489 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
490
491 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
492 For ".reg-xstate", explicitly specify the requested section size
493 via X86_XSTATE_SIZE instead of just 0 on input and
494 X86_XSTATE_MAX_SIZE on output.
495 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
496 Likewise.
497
498 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
499
500 PR corefiles/17808:
501 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
502 function type, particularly its SIZE parameter.
503 * gdbarch.h: Regenerate.
504 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
505 actual against required size using ">=" instead of "==".
506 (amd64_collect_fpregset): Likewise.
507 * i386-tdep.c (i386_supply_gregset): Likewise.
508 (i386_collect_gregset): Likewise.
509 (i386_supply_fpregset): Likewise.
510 (i386_collect_fpregset): Likewise.
511 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
512 (mips_fill_gregset_wrapper): Likewise.
513 (mips_supply_fpregset_wrapper): Likewise.
514 (mips_fill_fpregset_wrapper): Likewise.
515 (mips64_supply_gregset_wrapper): Likewise.
516 (mips64_fill_gregset_wrapper): Likewise.
517 (mips64_supply_fpregset_wrapper): Likewise.
518 (mips64_fill_fpregset_wrapper): Likewise.
519 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
520 (am33_supply_fpregset_method): Likewise.
521 (am33_collect_gregset_method): Likewise.
522 (am33_collect_fpregset_method): Likewise.
523
524 2015-02-04 Doug Evans <dje@google.com>
525 Pedro Alves <palves@redhat.com>
526 Eli Zaretskii <eliz@gnu.org>
527
528 PR tui/17810
529 * tui/tui-command.c (tui_refresh_cmd_win): New function.
530 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
531 * tui/tui-file.c: #include tui/tui-command.h.
532 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
533 (tui_file_flush): Refresh command window if stream is gdb_stdout.
534 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
535
536 2015-02-04 Pedro Alves <palves@redhat.com>
537
538 Fix build breakage.
539 * event-loop.c (gdb_do_one_event): Add default switch case.
540
541 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
542
543 Filter out inferior gcc option -fpreprocessed.
544 * compile/compile.c (filter_args): New function.
545 (get_args): Use it.
546
547 2015-02-03 Pedro Alves <palves@redhat.com>
548
549 * event-loop.c: Don't declare nor define a queue type for
550 gdb_event_p.
551 (event_queue): Delete.
552 (create_event, create_file_event, gdb_event_xfree)
553 (initialize_event_loop, process_event): Delete.
554 (gdb_do_one_event): Return as soon as one event is handled.
555 (handle_file_event): Change prototype. Used the passed in
556 file_handler pointer and ready_mask instead of looping over all
557 file handlers.
558 (gdb_wait_for_event): Update the poll/select timeouts before
559 blocking. Run event handlers directly instead of queueing events.
560 Return as soon as one event is handled.
561 (struct async_event_handler_data): Delete.
562 (invoke_async_event_handler): Delete.
563 (check_async_event_handlers): Change return type to int. Run
564 event handlers directly instead of queueing events. Return as
565 soon as one event is handled.
566 (handle_timer_event): Delete.
567 (update_wait_timeout): New function, factored out from
568 poll_timers.
569 (poll_timers): Reimplement.
570 * event-loop.h (initialize_event_loop): Delete declaration.
571 * top.c (gdb_init): Don't call initialize_event_loop.
572
573 2015-02-03 Pedro Alves <palves@redhat.com>
574
575 * event-loop.c (clear_async_event_handler): New function.
576 * event-loop.h (clear_async_event_handler): New declaration.
577 * record-btrace.c (record_btrace_async): New function.
578 (init_record_btrace_ops): Install record_btrace_async.
579 * record-full.c (record_full_async): New function.
580 (record_full_resume): Don't mark the async event source here.
581 (init_record_full_ops): Install record_full_async.
582 (record_full_core_resume): Don't mark the async event source here.
583 (init_record_full_core_ops): Install record_full_async.
584 * remote.c (remote_async): Mark and clear the async stop reply
585 queue event-loop token as appropriate.
586
587 2015-02-03 Pedro Alves <palves@redhat.com>
588
589 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
590 target_is_async_p instead of target_can_async.
591 (linux_nat_wait): Use target_is_async_p instead of
592 target_can_async. Don't enable async here.
593 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
594 target_is_async_p instead of target_can_async.
595
596 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
597
598 * varobj.h (lang_varobj_ops): Mention which return values need
599 to be freed.
600
601 2015-02-02 Joel Brobecker <brobecker@adacore.com>
602
603 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
604
605 2015-02-02 Joel Brobecker <brobecker@adacore.com>
606
607 PR gdb/17856:
608 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
609 results found in the cache.
610
611 2015-02-02 Joel Brobecker <brobecker@adacore.com>
612
613 PR gdb/17854:
614 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
615 when allocating a new one.
616
617 2015-02-01 Tom Tromey <tom@tromey.com>
618
619 * MAINTAINERS: Remove myself.
620
621 2015-01-31 Doug Evans <xdje42@gmail.com>
622
623 * dwarf2read.c (process_structure_scope): Update setting of
624 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
625 * gdbtypes.c (internal_type_vptr_fieldno): New function.
626 (set_type_vptr_fieldno): New function.
627 (internal_type_vptr_basetype): New function.
628 (set_type_vptr_basetype): New function.
629 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
630 TYPE_VPTR_BASETYPE.
631 (allocate_cplus_struct_type): Initialize vptr_fieldno.
632 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
633 (print_cplus_stuff): ... moved here.
634 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
635 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
636 moved to ...
637 (struct cplus_struct_type): ... here. All uses updated.
638 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
639 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
640 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
641 * stabsread.c (read_tilde_fields): Update setting of
642 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
643
644 2015-01-31 Doug Evans <xdje42@gmail.com>
645
646 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
647 to self_p.
648 (cp_print_class_member): Rename local domain to self_type.
649 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
650 domain_type to self_type.
651 (set_die_type) <need_gnat_info>: Handle
652 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
653 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
654 TYPE_SPECIFIC_SELF_TYPE.
655 * gdbtypes.c (internal_type_self_type): New function.
656 (set_type_self_type): New function.
657 (smash_to_memberptr_type): Rename parameter domain to self_type.
658 Update setting of TYPE_SELF_TYPE.
659 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
660 (smash_to_method_type): Rename parameter domain to self_type.
661 Update setting of TYPE_SELF_TYPE.
662 (check_stub_method): Call smash_to_method_type.
663 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
664 (copy_type_recursive): Ditto.
665 * gdbtypes.h (enum type_specific_kind): New value
666 TYPE_SPECIFIC_SELF_TYPE.
667 (struct main_type) <type_specific>: New member self_type.
668 (struct cplus_struct_type) <fn_field.type>: Update comment.
669 (TYPE_SELF_TYPE): Rewrite.
670 (internal_type_self_type, set_type_self_type): Declare.
671 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
672 self_type.
673 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
674 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
675 TYPE_TARGET_TYPE.
676 * stabsread.c (read_member_functions): Mark methods with
677 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
678 TYPE_SELF_TYPE.
679
680 2015-01-31 Doug Evans <xdje42@gmail.com>
681
682 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
683 All uses updated.
684
685 2015-01-31 Doug Evans <xdje42@gmail.com>
686
687 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
688 or unions. Return zero if union.
689 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
690 (gnuv3_rtti_type): Pass already-check_typedef'd value to
691 gnuv3_get_vtable.
692 (compute_vtable_size): Assert only passed structs.
693 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
694
695 2015-01-31 Doug Evans <xdje42@gmail.com>
696
697 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
698 kinds.
699
700 2015-01-31 Gary Benson <gbenson@redhat.com>
701 Doug Evans <dje@google.com>
702
703 PR cli/9007
704 PR cli/11920
705 PR cli/15548
706 * cli/cli-cmds.c (complete_command): Notify user if max-completions
707 reached.
708 * common/common-exceptions.h (enum errors)
709 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
710 * completer.h (get_max_completions_reached_message): New declaration.
711 (max_completions): Likewise.
712 (completion_tracker_t): New typedef.
713 (new_completion_tracker): New declaration.
714 (make_cleanup_free_completion_tracker): Likewise.
715 (maybe_add_completion_enum): New enum.
716 (maybe_add_completion): New declaration.
717 (throw_max_completions_reached_error): Likewise.
718 * completer.c (max_completions): New global variable.
719 (new_completion_tracker): New function.
720 (free_completion_tracker): Likewise.
721 (make_cleanup_free_completion_tracker): Likewise.
722 (maybe_add_completions): Likewise.
723 (throw_max_completions_reached_error): Likewise.
724 (complete_line): Remove duplicates and limit result to max_completions
725 entries.
726 (get_max_completions_reached_message): New function.
727 (gdb_display_match_list): Handle max_completions.
728 (_initialize_completer): New declaration and function.
729 * symtab.c: Include completer.h.
730 (completion_tracker): New static variable.
731 (completion_list_add_name): Call maybe_add_completion.
732 (default_make_symbol_completion_list_break_on_1): Renamed from
733 default_make_symbol_completion_list_break_on. Maintain
734 completion_tracker across calls to completion_list_add_name.
735 (default_make_symbol_completion_list_break_on): New function.
736 * top.c (init_main): Set rl_completion_display_matches_hook.
737 * tui/tui-io.c: Include completer.h.
738 (tui_old_rl_display_matches_hook): New static global.
739 (tui_rl_display_match_list): Notify user if max-completions reached.
740 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
741 * NEWS (New Options): Mention set/show max-completions.
742
743 2015-01-31 Gary Benson <gbenson@redhat.com>
744
745 * symtab.c (struct add_name_data) <code>: New field.
746 Updated comments.
747 (add_symtab_completions): New function.
748 (symtab_expansion_callback): Likewise.
749 (default_make_symbol_completion_list_break_on): Set datum.code.
750 Move minimal symbol scan before calling expand_symtabs_matching.
751 Scan known primary symtabs for externs and statics before calling
752 expand_symtabs_matching. Pass symtab_expansion_callback as
753 expansion_notify argument to expand_symtabs_matching. Do not scan
754 primary symtabs for externs and statics after calling
755 expand_symtabs_matching.
756
757 2015-01-31 Gary Benson <gbenson@redhat.com>
758
759 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
760 (struct quick_symbol_functions) <expand_symtabs_matching>:
761 New argument expansion_notify. All uses updated.
762 (expand_symtabs_matching): New argument expansion_notify.
763 All uses updated.
764 * symfile-debug.c (debug_qf_expand_symtabs_matching):
765 Also print expansion notify.
766 * symtab.c (expand_symtabs_matching_via_partial): Call
767 expansion_notify whenever a partial symbol table is expanded.
768 * dwarf2read.c (dw2_expand_symtabs_matching): Call
769 expansion_notify whenever a symbol table is instantiated.
770
771 2015-01-31 Doug Evans <xdje42@gmail.com>
772
773 * cli-out.c: #include completer.h, readline/readline.h.
774 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
775 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
776 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
777 * cli-out.h (cli_display_match_list): Declare.
778 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
779 (ELLIPSIS_LEN): Ditto.
780 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
781 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
782 (gdb_fnprint, gdb_print_filename): Ditto.
783 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
784 (gdb_display_match_list): Ditto.
785 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
786 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
787 (mld_beep_ftype, mld_read_key_ftype): Ditto.
788 (match_list_displayer): New struct.
789 (gdb_display_match_list): Declare.
790 * top.c (init_main): Set rl_completion_display_matches_hook.
791 * tui/tui-io.c: #include completer.h.
792 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
793 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
794 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
795 (tui_mld_getc, tui_mld_read_key): Ditto.
796 (tui_rl_display_match_list): Rewrite.
797 (tui_handle_resize_during_io): New arg for_completion. All callers
798 updated.
799
800 2015-01-31 Doug Evans <xdje42@gmail.com>
801
802 Add symbol lookup cache.
803 * NEWS: Document new options and commands.
804 * symtab.c (symbol_cache_key): New static global.
805 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
806 (SYMBOL_LOOKUP_FAILED): New macro.
807 (symbol_cache_slot_state): New enum.
808 (block_symbol_cache): New struct.
809 (symbol_cache): New struct.
810 (new_symbol_cache_size, symbol_cache_size): New static globals.
811 (hash_symbol_entry, eq_symbol_entry): New functions.
812 (symbol_cache_byte_size, resize_symbol_cache): New functions.
813 (make_symbol_cache, free_symbol_cache): New functions.
814 (get_symbol_cache, symbol_cache_cleanup): New function.
815 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
816 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
817 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
818 (symbol_cache_flush, symbol_cache_dump): New functions.
819 (maintenance_print_symbol_cache): New function.
820 (maintenance_flush_symbol_cache): New function.
821 (symbol_cache_stats): New function.
822 (maintenance_print_symbol_cache_statistics): New function.
823 (symtab_new_objfile_observer): New function.
824 (symtab_free_objfile_observer): New function.
825 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
826 (_initialize_symtab): Init symbol_cache_key. New parameter
827 maint symbol-cache-size. New maint commands print symbol-cache,
828 print symbol-cache-statistics, flush-symbol-cache.
829 Install new_objfile, free_objfile observers.
830
831 2015-01-31 Joel Brobecker <brobecker@adacore.com>
832
833 PR symtab/17855
834 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
835 to end.
836
837 2015-01-31 Doug Evans <xdje42@gmail.com>
838
839 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
840 * auto-load.c: #include ctype.h.
841 (struct auto_load_pspace_info): Replace member loaded_scripts with
842 new members loaded_script_files, loaded_script_texts.
843 (auto_load_pspace_data_cleanup): Update.
844 (init_loaded_scripts_info): Update.
845 (get_auto_load_pspace_data_for_loading): Update.
846 (maybe_add_script_file): Renamed from maybe_add_script. All callers
847 updated.
848 (maybe_add_script_text): New function.
849 (clear_section_scripts): Update.
850 (source_script_file, execute_script_contents): New functions.
851 (source_section_scripts): Add support for
852 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
853 (print_scripts): New function.
854 (auto_load_info_scripts): Also print inlined scripts.
855 (maybe_print_unsupported_script_warning): Renamed from
856 unsupported_script_warning_print. All callers updated.
857 (maybe_print_script_not_found_warning): Renamed from
858 script_not_found_warning_print. All callers updated.
859 * extension-priv.h (struct extension_language_script_ops): New member
860 objfile_script_executor.
861 * extension.c (ext_lang_objfile_script_executor): New function.
862 * extension.h (objfile_script_executor_func): New typedef.
863 (ext_lang_objfile_script_executor): Declare.
864 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
865 * guile/guile.c (guile_extension_script_ops): Update.
866 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
867 * python/python.c (python_extension_script_ops): Update.
868 (gdbpy_execute_objfile_script): New function.
869
870 2015-01-31 Eli Zaretskii <eliz@gnu.org>
871
872 * tui/tui-io.c (tui_expand_tabs): New function.
873 (tui_puts, tui_redisplay_readline): Expand TABs into the
874 appropriate number of spaces.
875 * tui/tui-regs.c: Include tui-io.h.
876 (tui_register_format): Call tui_expand_tabs to expand TABs into
877 the appropriate number of spaces.
878 * tui/tui-io.h: Add prototype for tui_expand_tabs.
879
880 2015-01-30 Doug Evans <dje@google.com>
881
882 * NEWS: "info source" command now display producer string if present.
883 * source.c (source_info): Print producer string if present.
884
885 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
886
887 * varobj.c (varobj_delete): Fix comment.
888
889 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
890
891 * varobj.c (create_child): Modify comment.
892
893 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
894
895 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
896 parameter.
897 (ada_name_of_variable): Same.
898 (ada_path_expr_of_child): Same.
899 (ada_value_of_variable): Same.
900 (ada_value_is_changeable_p): Same.
901 (ada_value_has_mutated): Same.
902 * c-varobj.c (varobj_is_anonymous_child): Same.
903 (c_is_path_expr_parent): Same.
904 (c_number_of_children): Same.
905 (c_name_of_variable): Same.
906 (c_path_expr_of_child): Same.
907 (get_type): Same.
908 (c_value_of_variable): Same.
909 (cplus_number_of_children): Same.
910 (cplus_name_of_variable): Same.
911 (cplus_path_expr_of_child): Same.
912 (cplus_value_of_variable): Same.
913 * jv-varobj.c (java_number_of_children): Same.
914 (java_name_of_variable): Same.
915 (java_path_expr_of_child): Same.
916 (java_value_of_variable): Same.
917 * varobj.c (number_of_children): Same.
918 (name_of_variable): Same.
919 (is_root_p): Same.
920 (varobj_ensure_python_env): Same.
921 (varobj_get_objname): Same.
922 (varobj_get_expression): Same.
923 (varobj_get_display_format): Same.
924 (varobj_get_display_hint): Same.
925 (varobj_has_more): Same.
926 (varobj_get_thread_id): Same.
927 (varobj_get_frozen): Same.
928 (dynamic_varobj_has_child_method): Same.
929 (varobj_get_gdb_type): Same.
930 (is_path_expr_parent): Same.
931 (varobj_default_is_path_expr_parent): Same.
932 (varobj_get_language): Same.
933 (varobj_get_attributes): Same.
934 (varobj_is_dynamic_p): Same.
935 (varobj_get_child_range): Same.
936 (varobj_value_has_mutated): Same.
937 (varobj_get_value_type): Same.
938 (number_of_children): Same.
939 (name_of_variable): Same.
940 (check_scope): Same.
941 (varobj_editable_p): Same.
942 (varobj_value_is_changeable_p): Same.
943 (varobj_floating_p): Same.
944 (varobj_default_value_is_changeable_p): Same.
945
946 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
947
948 * varobj.c (varobj_get_path_expr): Set var->path_expr.
949 * c-varobj.c (c_path_expr_of_child): Set local var instead of
950 child->path_expr.
951 (cplus_path_expr_of_child): Same.
952
953 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
954
955 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
956 result.
957 (mi_cmd_var_info_expression): Same.
958 * varobj.c (varobj_get_expression): Mention in the comment that
959 the result must by freed by the caller.
960
961 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
962
963 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
964 varobj_get_type.
965 (varobj_update_one): Same.
966 * varobj.c (update_type_if_necessary): Free curr_type_str and
967 new_type_str.
968 (varobj_get_type): Specify in comment that the result needs to be
969 freed by the caller.
970
971 2015-01-29 Doug Evans <dje@google.com>
972
973 PR symtab/17890
974 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
975
976 2015-01-25 Mark Wielaard <mjw@redhat.com>
977
978 * dwarf2read.c (checkproducer): Call producer_is_gcc.
979 * utils.c (producer_is_gcc_ge_4): Likewise.
980 (producer_is_gcc): New function.
981 * utils.h (producer_is_gcc): New declaration.
982
983 2015-01-29 Joel Brobecker <brobecker@adacore.com>
984
985 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
986 kind.
987 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
988 parameter by "addr_stack" parameter.
989 (resolve_dynamic_range): Replace "addr" parameter by
990 "stack_addr" parameter. Update function documentation.
991 Update code accordingly.
992 (resolve_dynamic_array, resolve_dynamic_union)
993 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
994 (resolve_dynamic_type): Update code, following the changes made
995 to resolve_dynamic_type_internal's interface.
996 * dwarf2loc.h (struct property_addr_info): New.
997 (dwarf2_evaluate_property): Replace "address" parameter
998 by "addr_stack" parameter. Adjust function documentation.
999 (struct dwarf2_offset_baton): New.
1000 (struct dwarf2_property_baton): Update documentation of
1001 field "referenced_type" to be more general. New field
1002 "offset_info" in union data field.
1003 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
1004 parameter by "addr_stack" parameter. Adjust code accordingly.
1005 Add support for PROP_ADDR_OFFSET properties.
1006 * dwarf2read.c (attr_to_dynamic_prop): Add support for
1007 DW_AT_data_member_location attributes as well. Use case
1008 statements instead of if/else condition.
1009
1010 2015-01-29 Joel Brobecker <brobecker@adacore.com>
1011
1012 * ada-varobj.c (ada_varobj_get_array_number_of_children):
1013 Return zero if PARENT_VALUE is NULL and parent_type's
1014 range type is dynamic.
1015
1016 2015-01-29 Joel Brobecker <brobecker@adacore.com>
1017
1018 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
1019 nonzero if the type's subtype is dynamic.
1020 (resolve_dynamic_range): Also resolve the range's subtype.
1021
1022 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
1023
1024 Pushed by Joel Brobecker <brobecker@adacore.com>.
1025 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
1026
1027 2015-01-27 Doug Evans <dje@google.com>
1028
1029 * NEWS: Mention gdb.Objfile.username.
1030 * python/py-objfile.c (objfpy_get_username): New function.
1031 (objfile_getset): Add "username".
1032
1033 2015-01-24 Mark Wielaard <mjw@redhat.com>
1034
1035 * stack.c (return_command): Markup warning message with _.
1036
1037 2015-01-24 Doug Evans <xdje42@gmail.com>
1038
1039 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
1040
1041 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1042
1043 Fix 100x slowdown regression on DWZ files.
1044 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
1045 (struct line_header): Add offset and offset_in_dwz.
1046 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
1047 (free_line_header_voidp): New declaration.
1048 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
1049 functions.
1050 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
1051 (handle_DW_AT_stmt_list): Use line_header_hash.
1052 (free_line_header_voidp): New function.
1053 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
1054 (dwarf_decode_lines): New parameter decode_mapping, use it.
1055 (dwarf2_free_objfile): Free line_header_hash.
1056
1057 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
1058
1059 PR gdb/17416
1060 * valops.c (value_rtti_indirect_type): Catch exception thrown by
1061 value_ind.
1062
1063 2015-01-15 Mark Wielaard <mjw@redhat.com>
1064
1065 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
1066 DW_AT_noreturn.
1067 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
1068 calling_convention an 8 bit bit field.
1069 (TYPE_NO_RETURN): New macro.
1070 * infcmd.c (finish_command): Query if function does not return
1071 normally.
1072 * stack.c (return_command): Likewise.
1073
1074 2015-01-23 Pedro Alves <palves@redhat.com>
1075
1076 * linux-nat.c (linux_is_async_p): New macro.
1077 (linux_nat_is_async_p):
1078 (linux_nat_terminal_inferior): Check whether the target can async
1079 instead of whether it is already async.
1080 (linux_nat_terminal_ours): Don't check whether the target is
1081 async.
1082 (linux_async_pipe): Use linux_is_async_p.
1083
1084 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1085
1086 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
1087 '-ascending'.
1088 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
1089 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
1090 Sort tp_array using tp_array_compar.
1091 (_initialize_thread): Extend thread_apply_all_command help.
1092
1093 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1094
1095 * corelow.c (core_open): Call also thread_command.
1096 * gdbthread.h (thread_command): New prototype moved from ...
1097 * thread.c (thread_command): ... here.
1098 (thread_command): Make it global.
1099
1100 2015-01-22 Pedro Alves <palves@redhat.com>
1101
1102 * configure.ac [*mingw32*]: Check $curses_found instead of
1103 $prefer_curses.
1104 * configure: Regenerate.
1105 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
1106 HAVE_NCURSES_NCURSES_H checks.
1107
1108 2015-01-22 Eli Zaretskii <eliz@gnu.org>
1109
1110 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
1111 fails with the 1st arg NULL, try again with "unknown". Don't test
1112 the "cup" capability: it isn't supported by the Windows port of
1113 ncurses, but the Windows console driver is still capable of
1114 supporting TUI.
1115
1116 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1117
1118 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
1119
1120 2015-01-22 Eli Zaretskii <eliz@gnu.org>
1121
1122 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1123 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
1124 reason that "make TAGS" is broken.
1125
1126 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
1127
1128 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
1129 and check additional store instructions.
1130
1131 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
1132
1133 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
1134
1135 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
1136
1137 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
1138 ppc_canonicalize_syscall, ppc_linux_syscall_record,
1139 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
1140 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
1141 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
1142 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
1143 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
1144 ppc_process_record_op19, ppc_process_record_op31,
1145 ppc_process_record_op59, ppc_process_record_op60,
1146 ppc_process_record_op63): Likewise.
1147
1148 2015-01-20 Joel Brobecker <brobecker@adacore.com>
1149
1150 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
1151 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
1152 strerror.
1153
1154 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
1155
1156 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
1157 ppc_process_record_op31, ppc_process_record_op59,
1158 ppc_process_record_op60, ppc_process_record_op63,
1159 ppc_process_record): Fix -Wformat warning.
1160 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
1161 Remove unused variables.
1162
1163 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
1164
1165 * MAINTAINERS (Write After Approval): Add "Chen Gang".
1166
1167 2015-01-19 Eli Zaretskii <eliz@gnu.org>
1168
1169 * configure.ac [*mingw32*]: Only add windows-termcap.o to
1170 CONFIG_OBS if not building with a curses library.
1171 * configure: Regenerate.
1172
1173 * windows-termcap.c: Include defs.h. Make the whole body empty if
1174 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
1175 HAVE_NCURSES_NCURSES_H is defined.
1176
1177 2015-01-19 Joel Brobecker <brobecker@adacore.com>
1178
1179 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
1180 from end of line to start of next line.
1181
1182 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
1183
1184 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
1185 Scan PLT stub backward for reverse debugging.
1186 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
1187
1188 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
1189 Ulrich Weigand <uweigand@de.ibm.com>
1190
1191 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
1192 gdb_target_obs.
1193 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
1194 record.
1195 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
1196 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
1197 (ppc_linux_init_abi): Set process_record, process_record_signal.
1198 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
1199 ppc_linux_record_tdep to gdbarch_tdep.
1200 (ppc_process_record): New declaration.
1201 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
1202 ppc_process_record_op19, ppc_process_record_op31,
1203 ppc_process_record_op59, ppc_process_record_op60,
1204 ppc_process_record_op63, ppc_process_record): New functions.
1205
1206 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
1207
1208 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
1209 rs6000_in_function_epilogue_frame_p and add an argument
1210 for frame_info.
1211 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
1212 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
1213 New functions.
1214 (rs6000_epilogue_frame_unwind): New.
1215 (rs6000_gdbarch_init): Append epilogue unwinder.
1216
1217 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
1218
1219 * nat/linux-personality.c: Replace "#ifndef
1220 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
1221 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
1222 systems.
1223
1224 2015-01-16 Eli Zaretskii <eliz@gnu.org>
1225
1226 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
1227 functions.
1228 (_initialize_tui_win) <border-kind, border-mode>:
1229 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
1230 (tui_set_tab_width_command): Fix the commentary.
1231
1232 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
1233
1234 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
1235 Doc fix.
1236 (tui_set_tab_width_command): Delete and recreate the source and
1237 the disassembly windows, to show the effect of the changed tab
1238 size immediately.
1239
1240 * tui/tui-data.h (LINE_PREFIX): Make shorter
1241 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
1242 "Thread NNNNN.XXXX" thread ID notation on Windows.
1243
1244 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1245
1246 Fix gcc-5 compilation.
1247 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
1248
1249 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
1250
1251 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
1252 (linux-personality.o): New rule.
1253 * common/common-defs.h: Include <stdint.h>.
1254 * config/aarch64/linux.mh (NATDEPFILES): Include
1255 linux-personality.o.
1256 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
1257 * config/arm/linux.mh (NATDEPFILES): Likewise.
1258 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1259 * config/i386/linux.mh (NATDEPFILES): Likewise.
1260 * config/ia64/linux.mh (NATDEPFILES): Likewise.
1261 * config/m32r/linux.mh (NATDEPFILES): Likewise.
1262 * config/m68k/linux.mh (NATDEPFILES): Likewise.
1263 * config/mips/linux.mh (NATDEPFILES): Likewise.
1264 * config/pa/linux.mh (NATDEPFILES): Likewise.
1265 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
1266 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
1267 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
1268 * config/s390/linux.mh (NATDEPFILES): Likewise.
1269 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
1270 * config/sparc/linux.mh (NATDEPFILES): Likewise.
1271 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
1272 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
1273 * defs.h: Remove #include <stdint.h> (moved to
1274 common/common-defs.h).
1275 * linux-nat.c: Include nat/linux-personality.h. Remove #include
1276 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
1277 nat/linux-personality.c).
1278 (linux_nat_create_inferior): Remove code to disable address space
1279 randomization (moved to nat/linux-personality.c). Create cleanup
1280 to disable address space randomization.
1281 * nat/linux-personality.c: New file.
1282 * nat/linux-personality.h: Likewise.
1283
1284 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
1285
1286 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
1287 common/posix-strerror.c.
1288 (posix-strerror.o): New rule.
1289 (mingw-strerror.o): Likewise.
1290 * common/common-utils.h (safe_strerror): Move prototype to here,
1291 from utils.h.
1292 * common/common.host: New file.
1293 * common/mingw-strerror.c: Likewise.
1294 * common/posix-strerror.c: Likewise.
1295 * configure: Regenerated.
1296 * configure.ac: Source common/common.host. Add variable
1297 common_host_obs to gdb_host_obs.
1298 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
1299 gdb/common/posix-strerror.c when warning about the use of
1300 strerror.
1301 * mingw-hdep.c (safe_strerror): Remove definition; move it to
1302 common/mingw-strerror.c.
1303 * posix-hdep.c (safe_strerror): Remove definition; move it to
1304 common/posix-hdep.c.
1305 * utils.h (safe_strerror): Remove prototype; move to
1306 common/common-utils.h.
1307
1308 2015-01-15 Joel Brobecker <brobecker@adacore.com>
1309
1310 GDB 7.8.2 released.
1311
1312 2015-01-15 Joel Brobecker <brobecker@adacore.com>
1313
1314 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
1315 ___XA type if the array has already been fixed.
1316
1317 2015-01-14 Yao Qi <yao@codesourcery.com>
1318
1319 * Makefile.in (ppc-linux.o): New rule.
1320 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
1321 * configure.ac: AC_CHECK_FUNCS(getauxval).
1322 * config.in: Re-generated.
1323 * configure: Re-generated.
1324 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
1325 Declare.
1326 * nat/ppc-linux.c: New file.
1327 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
1328 Call ppc64_64bit_inferior_p.
1329
1330 2015-01-14 Yao Qi <yao@codesourcery.com>
1331
1332 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
1333 nat/ppc-linux.h.
1334 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
1335 (PPC_FEATURE_HAS_DFP): Likewise.
1336 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
1337 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
1338 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
1339 Include "nat/ppc-linux.h".
1340 * nat/ppc-linux.h: New file.
1341 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
1342
1343 2015-01-14 Pedro Alves <palves@redhat.com>
1344
1345 PR gdb/17525
1346 * breakpoint.c: Include "interps.h".
1347 (bpstat_do_actions_1): Also check whether the interpreter is
1348 async.
1349
1350 2015-01-14 Pedro Alves <palves@redhat.com>
1351
1352 PR cli/17828
1353 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
1354 reinstall if the interpreter is sync.
1355
1356 2015-01-13 Doug Evans <dje@google.com>
1357
1358 * objfiles.c (objfile_filename): New function.
1359 * objfiles.h (objfile_filename): Declare it.
1360 (objfile_name): Add function comment.
1361 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
1362 bfd file name (which may be realpath'd), and the original name.
1363
1364 2015-01-13 Joel Brobecker <brobecker@adacore.com>
1365
1366 * NEWS: Create a new section for the next release branch.
1367 Rename the section of the current branch, now that it has
1368 been cut.
1369
1370 2015-01-13 Joel Brobecker <brobecker@adacore.com>
1371
1372 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
1373 * version.in: Bump version to 7.9.50.DATE-cvs.
1374
1375 2015-01-13 Joel Brobecker <brobecker@adacore.com>
1376
1377 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
1378 Remove trailing new-line in argument of call to warning.
1379
1380 2015-01-13 Joel Brobecker <brobecker@adacore.com>
1381
1382 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
1383 new-line in argument of call to "warning".
1384
1385 2015-01-13 Joel Brobecker <brobecker@adacore.com>
1386
1387 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
1388 in static block, then try searching for primitive types.
1389
1390 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
1391
1392 * top.h (gdb_add_history): Declare.
1393 * top.c (command_count): New variable.
1394 (gdb_add_history): New function.
1395 (gdb_safe_append_history): New static function.
1396 (quit_force): Call it.
1397 (command_line_input): Use gdb_add_history instead of
1398 add_history.
1399 * event-top.c (command_line_handler): Likewise.
1400
1401 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
1402
1403 PR gdb/17046
1404 * darwin-nat.c: Replace <machine/setjmp.h> #include by
1405 <setjmp.h> #include.
1406
1407 2015-01-11 Doug Evans <xdje42@gmail.com>
1408
1409 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
1410
1411 2015-01-11 Doug Evans <xdje42@gmail.com>
1412
1413 PR gdb/15830
1414 * NEWS: The "maint demangle" command is renamed as "demangle".
1415 * demangle.c: #include cli/cli-utils.h, language.h.
1416 (demangle_command): New function.
1417 (_initialize_demangle): Add new command "demangle".
1418 * maint.c (maintenance_demangle): Stub out.
1419 (_initialize_maint_cmds): Update help text for "maint demangle",
1420 and mark as deprecated.
1421
1422 2015-01-11 Mark Kettenis <kettenis@gnu.org>
1423
1424 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
1425 inferior_thread is a function.
1426
1427 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
1428
1429 * Makefile.in (.y.c): Don't munge yacc's #line
1430 directives.
1431
1432 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
1433
1434 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
1435 to prompt for input.
1436 * tui/tui-hooks.c (tui_query_hook): Remove.
1437 (tui_install_hooks): Don't set deprecated_query_hook.
1438 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
1439 height calculation. Always update the command window's cur_line.
1440
1441 2015-01-09 Pedro Alves <palves@redhat.com>
1442
1443 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
1444 function.
1445 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
1446 declaration.
1447 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
1448 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
1449 stop_reason.
1450 (check_stopped_by_watchpoint): New function.
1451 (save_sigtrap): Reimplement.
1452 (linux_nat_stopped_by_watchpoint): Adjust.
1453 (linux_nat_lp_status_is_event): Delete.
1454 (stop_wait_callback): Only call save_sigtrap after storing the
1455 pending status.
1456 (status_callback): If the thread had been stopped for a breakpoint
1457 that has since been removed, discard the event and resume the LWP.
1458 (count_events_callback, select_event_lwp_callback): Use
1459 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
1460 (cancel_breakpoint): Rename to ...
1461 (check_stopped_by_breakpoint): ... this. Record whether the LWP
1462 stopped for a software breakpoint or hardware breakpoint.
1463 (select_event_lwp): Only give preference to the stepping LWP in
1464 all-stop mode. Adjust comments.
1465 (stop_and_resume_callback): Remove references to new_pending_p.
1466 (linux_nat_filter_event): Likewise. Leave exit events of the
1467 leader thread pending here. Handle signal short circuiting here.
1468 Only call save_sigtrap after storing the pending waitstatus.
1469 (linux_nat_wait_1): Remove 'retry' label. Remove references to
1470 new_pending. Don't handle leaving events the caller is not
1471 interested in pending here, nor handle signal short-circuiting
1472 here. Also give equal priority to all LWPs that have had events
1473 in non-stop mode. If reporting a software breakpoint event,
1474 unadjust the LWP's PC.
1475 * linux-nat.h (enum lwp_stop_reason): New.
1476 (struct lwp_info) <stop_pc>: New field.
1477 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
1478 (struct lwp_info) <stop_reason>: New field.
1479 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
1480
1481 2015-01-09 Pedro Alves <palves@redhat.com>
1482
1483 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
1484 Set the LWP's 'resumed' flag.
1485
1486 2015-01-09 Pedro Alves <palves@redhat.com>
1487
1488 * linux-nat.c (linux_resume_one_lwp): New function.
1489 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
1490 (linux_nat_resume): Use lwp_status_pending_p and
1491 linux_resume_one_lwp.
1492 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
1493 (linux_handle_extended_wait): Use linux_resume_one_lwp.
1494 (status_callback, running_callback): Use lwp_status_pending_p.
1495 (lwp_status_pending_p): New function.
1496 (stop_and_resume_callback): Use lwp_status_pending_p.
1497 (linux_nat_filter_event): Use linux_resume_one_lwp.
1498 (linux_nat_wait_1): Always use status_callback to look for an LWP
1499 with a pending status. Use linux_resume_one_lwp.
1500 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
1501 linux_resume_one_lwp.
1502
1503 2015-01-09 Pedro Alves <palves@redhat.com>
1504
1505 * breakpoint.c (bp_location_inserted_here_p): New function,
1506 factored out from ...
1507 (breakpoint_inserted_here_p): ... here. Use
1508 ALL_BP_LOCATIONS_AT_ADDR.
1509 (software_breakpoint_inserted_here_p): Use
1510 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
1511
1512 2014-01-09 Pedro Alves <palves@redhat.com>
1513
1514 Skip enabling event reporting if the kernel supports
1515 PTRACE_EVENT_CLONE.
1516 * linux-thread-db.c: Include "nat/linux-ptrace.h".
1517 (thread_db_use_events): New function.
1518 (try_thread_db_load_1): Check thread_db_use_events before enabling
1519 event reporting.
1520 (update_thread_state): New function.
1521 (attach_thread): Use it. Check thread_db_use_events before
1522 enabling event reporting.
1523 (thread_db_detach): Check thread_db_use_events before disabling
1524 event reporting.
1525 (find_new_threads_callback): Check thread_db_use_events before
1526 enabling event reporting. Update the thread's state if not using
1527 libthread_db events.
1528
1529 2015-01-09 Pedro Alves <palves@redhat.com>
1530
1531 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
1532 about to wait for is > 0.
1533 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
1534 the kernel thread ID is -1.
1535
1536 2015-01-09 Pedro Alves <palves@redhat.com>
1537
1538 * linux-nat.c (attach_proc_task_lwp_callback): New function.
1539 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
1540 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
1541 ptrace option flags.
1542 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
1543 field.
1544 * nat/linux-procfs.c: Include <dirent.h>.
1545 (linux_proc_get_int): New parameter "warn". Handle it.
1546 (linux_proc_get_tgid): Adjust.
1547 (linux_proc_get_tracerpid): Rename to ...
1548 (linux_proc_get_tracerpid_nowarn): ... this.
1549 (linux_proc_pid_get_state): New function, factored out from
1550 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
1551 and handle it.
1552 (linux_proc_pid_is_gone): New function.
1553 (linux_proc_pid_is_stopped): Adjust.
1554 (linux_proc_pid_is_zombie_maybe_warn)
1555 (linux_proc_pid_is_zombie_nowarn): New functions.
1556 (linux_proc_pid_is_zombie): Use
1557 linux_proc_pid_is_zombie_maybe_warn.
1558 (linux_proc_attach_tgid_threads): New function.
1559 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
1560 (linux_proc_get_tracerpid): Rename to ...
1561 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
1562 (linux_proc_pid_is_gone): New declaration.
1563 (linux_proc_pid_is_zombie): Update comment.
1564 (linux_proc_pid_is_zombie_nowarn): New declaration.
1565 (linux_proc_attach_lwp_func): New typedef.
1566 (linux_proc_attach_tgid_threads): New declaration.
1567 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
1568 use nowarn functions.
1569 (linux_ptrace_attach_fail_reason_string): Move here from
1570 gdbserver/linux-low.c and rename.
1571 (ptrace_supports_feature): If the current ptrace options are not
1572 known yet, check them now, instead of asserting.
1573 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
1574 Declare.
1575
1576 2015-01-09 Pedro Alves <palves@redhat.com>
1577
1578 * linux-thread-db.c (thread_db_find_new_threads_silently)
1579 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
1580 (find_new_threads_once): Print debug output on gdb_stdlog.
1581
1582 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
1583 Pedro Alves <palves@redhat.com>
1584
1585 * compile/compile.c: Include "gdb_wait.h".
1586 (do_rmdir): Check return value, and free 'zap'.
1587
1588 2015-01-08 Pedro Alves <palves@redhat.com>
1589 Yao Qi <yao@codesourcery.com>
1590
1591 * dwarf2loc.c (indirect_pieced_value): Don't call
1592 gdb_sign_extend. Call extract_signed_integer instead.
1593 * utils.c (gdb_sign_extend): Remove.
1594 * utils.h (gdb_sign_extend): Remove declaration.
1595
1596 2015-01-07 Pierre Muller <muller@sourceware.org>
1597
1598 PR symtab/17811
1599 * stabsread.c (define_symbol): Set language for C++ special symbols.
1600
1601 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
1602
1603 * inflow.c (initial_gdb_ttystate): Tweak comment.
1604
1605 2015-01-07 Joel Brobecker <brobecker@adacore.com>
1606
1607 * inflow.c (set_initial_gdb_ttystate): Add empty line after
1608 comment documenting function.
1609
1610 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
1611
1612 * terminal.h (set_initial_gdb_ttystate): Declare.
1613 * inflow.c (initial_gdb_ttystate): New static variable.
1614 (set_initial_gdb_ttystate): New setter.
1615 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
1616 instead of our current terminal state.
1617 * top.c (gdb_init): Call set_initial_gdb_ttystate.
1618
1619 2015-01-07 Joel Brobecker <brobecker@adacore.com>
1620
1621 * guile/scm-type.c (tyscm_array_1): Add comment.
1622 * python/py-type.c (typy_array_1): Add comment.
1623
1624 2015-01-06 Joel Brobecker <brobecker@adacore.com>
1625
1626 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
1627 error if N2 is equal to N1 - 1.
1628
1629 2015-01-06 Joel Brobecker <brobecker@adacore.com>
1630
1631 * python/py-type.c (typy_array_1): Do not raise negative-length
1632 exception if N2 is equal to N1 - 1.
1633
1634 2015-01-03 Doug Evans <xdje42@gmail.com>
1635
1636 * c-exp.y: Whitespace cleanup.
1637 (classify_inner_name): Remove extra ;.
1638
1639 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
1640
1641 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
1642 offset signed.
1643
1644 2015-01-02 Doug Evans <dje@google.com>
1645
1646 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
1647
1648 2015-01-02 Doug Evans <dje@google.com>
1649
1650 * symtab.h (struct symbol): Fix typo in comment.
1651
1652 2015-01-01 Joel Brobecker <brobecker@adacore.com>
1653
1654 Update year range in copyright notice of all files.
1655
1656 2015-01-01 Joel Brobecker <brobecker@adacore.com>
1657
1658 * top.c (print_gdb_version): Update copyright year to 2015.
1659
1660 2015-01-01 Joel Brobecker <brobecker@adacore.com>
1661
1662 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
1663
1664 For older changes see ChangeLog-2014.
1665 \f
1666 Local Variables:
1667 mode: change-log
1668 left-margin: 8
1669 fill-column: 74
1670 version-control: never
1671 coding: utf-8
1672 End: