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