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