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