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