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