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