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