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