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