[ARM] Add support for Cortex-A72
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
0703599a
PA
12015-02-11 Pedro Alves <pedro@codesourcery.com>
2
3 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
4 because the event thread is not the current thread.
5
eaaf76ab
DE
62015-02-11 Doug Evans <xdje42@gmail.com>
7
8 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
9 been initialized yet, return NULL.
10
e7d52ed3
DE
112015-02-11 Doug Evans <dje@google.com>
12
13 * symfile.h (new_symfile_objfile): Delete.
14 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
15 All callers updated.
16
fc6b1256
PP
172015-02-11 Patrick Palka <patrick@parcs.ath.cx>
18
19 * tui/tui-io.c (tui_handle_resize_during_io): Call
20 tui_update_gdb_sizes() after resizing the screen.
21 * tui/tui.c (tui_enable): Resize the terminal before
22 calling tui_update_gdb_sizes().
23
d9080678
PP
242015-02-11 Patrick Palka <patrick@parcs.ath.cx>
25
26 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
27 line before printing a newline.
28
9f615e3a
MW
292015-02-11 Mark Wielaard <mjw@redhat.com>
30
31 * utils.c (producer_is_gcc): Return true or false.
32
d9080678 332015-02-10 Mark Wielaard <mjw@redhat.com>
b1ffba5a
MW
34
35 * utils.h (producer_is_gcc): Change return type to bool. Add major
36 argument.
37 * utils.c (producer_is_gcc): Likewise.
38 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
39 * dwarf2read.c (check_producer): Likewise.
40
b052c4fb
PA
412015-02-10 Pedro Alves <palves@redhat.com>
42
43 * infrun.c (displaced_step_fixup): Switch to the event thread
44 before calling gdbarch_displaced_step_fixup.
45
3ac240d4
AT
462015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
47
48 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
49
c1cc6152
SM
502015-02-10 Simon Marchi <simon.marchi@ericsson.com>
51
52 * ada-varobj.c (ada_name_of_child): Constify parent.
53 (ada_path_expr_of_child): Same.
54 (ada_value_of_child): Same.
55 (ada_type_of_child): Same.
56 * c-varobj.c (c_is_path_expr_parent): Same.
57 (c_describe_child): Same.
58 (c_name_of_child): Same.
59 (c_value_of_child): Same.
60 (c_type_of_child): Same.
61 (cplus_number_of_children): Same.
62 (cplus_describe_child): Constify var.
63 (cplus_name_of_child): Constify parent.
64 (cplus_value_of_child): Same.
65 (cplus_type_of_child): Same.
66 * jv-varobj.c (java_name_of_child): Same.
67 (java_value_of_child): Same.
68 (java_type_of_child): Same.
69 * varobj.c (value_of_child): Same.
70 (varobj_default_is_path_expr_parent): Constify var, parent and return
71 value.
72 (varobj_get_path_expr): Constify var, modify path_expr through
73 mutable_var.
74 (install_new_value): Constify parent.
75 (value_of_child): Constify parent.
76 * varobj.h (struct varobj): Constify parent.
77 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
78 type_of_child.
79 (varobj_get_path_expr): Constify var.
80 (varobj_get_path_expr_parent): Constify var and return value.
81
c1ee9414
LM
822015-02-10 Luis Machado <lgustavo@codesourcery.com>
83
84 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
85 (arm_prologue_this_id): Move PC and SP limit checks to
86 arm_prologue_unwind_stop_reason.
87 (arm_prologue_unwind) <stop_reason> : Set to
88 arm_prologue_unwind_stop_reason.
89
f7de9aab
MW
902015-02-09 Mark Wielaard <mjw@redhat.com>
91
92 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
93 DW_LANG_Fortran08 as language_fortran.
94
0b24eb2d
SDJ
952015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
96
97 PR remote/17946
98 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
99 of pointer against char.
100
a2c2acaf
MW
1012015-02-09 Mark Wielaard <mjw@redhat.com>
102
103 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
104 (c_type_print_modifier): Likewise.
105 * dwarf2read.c (read_tag_atomic_type): New function.
106 (read_type_die_1): Handle DW_TAG_atomic_type.
107 * gdbtypes.c (make_atomic_type): New function.
108 (recursive_dump_type): Handle TYPE_ATOMIC.
109 * gdbtypes.h (enum type_flag_values): Renumber.
110 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
111 (TYPE_ATOMIC): New macro.
112 (make_atomic_type): Declare.
113
31fd9caa
MM
1142015-02-09 Markus Metzger <markus.t.metzger@intel.com>
115
116 * btrace.c (ftrace_find_call): Skip gaps.
117 (ftrace_new_function): Initialize level.
118 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
119 (ftrace_new_switch): Update
120 level computation.
121 (ftrace_new_gap): New.
122 (ftrace_update_function): Create new function after gap.
123 (btrace_compute_ftrace_bts): Create gap on error.
124 (btrace_stitch_bts): Update parameters. Clear trace if it
125 becomes empty.
126 (btrace_stitch_trace): Update parameters. Update callers.
127 (btrace_clear): Reset the number of gaps.
128 (btrace_insn_get): Return NULL if the iterator points to a gap.
129 (btrace_insn_number): Return zero if the iterator points to a gap.
130 (btrace_insn_end): Allow gaps at the end.
131 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
132 (btrace_find_insn_by_number): Assert that the found iterator does
133 not point to a gap.
134 (btrace_call_next, btrace_call_prev): Assert that the last function
135 is not a gap.
136 * btrace.h (btrace_bts_error): New.
137 (btrace_function): Update comment.
138 (btrace_function) <insn, insn_offset, number>: Update comment.
139 (btrace_function) <errcode>: New.
140 (btrace_thread_info) <ngaps>: New.
141 (btrace_thread_info) <replay>: Update comment.
142 (btrace_insn_get): Update comment.
143 * record-btrace.c (btrace_ui_out_decode_error): New.
144 (record_btrace_info): Print number of gaps.
145 (btrace_insn_history, btrace_call_history): Call
146 btrace_ui_out_decode_error for gaps.
147 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
148
afb778a2
MM
1492015-02-09 Markus Metzger <markus.t.metzger@intel.com>
150
151 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
152 * nat/linux-btrace.c: (btrace_this_cpu): New.
153 (cpu_supports_bts): Call btrace_this_cpu.
154 (intel_supports_bts): Add cpu parameter.
155
7d5c24b3
MM
1562015-02-09 Markus Metzger <markus.t.metzger@intel.com>
157
158 * btrace.h (btrace_insn_class): New.
159 (btrace_insn) <size, iclass>: New.
160 * btrace.c (ftrace_find_call): Update parameters. Update users.
161 Use instruction classification.
162 (ftrace_new_return): Update parameters. Update users.
163 (ftrace_update_function): Update parameters. Update users. Use
164 instruction classification.
165 (ftrace_update_insns): Update parameters. Update users.
166 (ftrace_classify_insn): New.
167 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
168 TRY_CATCH around call to gdb_insn_length.
169
76235df1
MM
1702015-02-09 Markus Metzger <markus.t.metzger@intel.com>
171
172 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
173 Update parameters. Update users.
174
d33501a5
MM
1752015-02-09 Markus Metzger <markus.t.metzger@intel.com>
176
177 * btrace.c (parse_xml_btrace_conf_bts): Add size.
178 (btrace_conf_bts_attributes): New.
179 (btrace_conf_children): Add attributes.
180 * common/btrace-common.h (btrace_config_bts): New.
181 (btrace_config)<bts>: New.
182 (btrace_config): Update comment.
183 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
184 Use config.
185 * features/btrace-conf.dtd: Increment version. Add size
186 attribute to bts element.
187 * record-btrace.c (set_record_btrace_bts_cmdlist,
188 show_record_btrace_bts_cmdlist): New.
189 (record_btrace_adjust_size, record_btrace_print_bts_conf,
190 record_btrace_print_conf, cmd_set_record_btrace_bts,
191 cmd_show_record_btrace_bts): New.
192 (record_btrace_info): Call record_btrace_print_conf.
193 (_initialize_record_btrace): Add commands.
194 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
195 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
196 (btrace_sync_conf): Synchronize bts size.
197 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
198 * NEWS: Announce new commands and new packets.
199
f4abbc16
MM
2002015-02-09 Markus Metzger <markus.t.metzger@intel.com>
201
202 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
203 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
204 (x86_linux_btrace_conf): New.
205 (x86_linux_create_target): Initialize to_btrace_conf.
206 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
207 Check format. Split into this and ...
208 (linux_enable_bts): ... this.
209 (linux_btrace_conf): New.
210 (perf_event_skip_record): Renamed into ...
211 (perf_event_skip_bts_record): ... this. Updated users.
212 (linux_disable_btrace): Split into this and ...
213 (linux_disable_bts): ... this.
214 (linux_read_btrace): Check format.
215 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
216 (linux_btrace_conf): New.
217 (btrace_target_info)<ptid>: Moved.
218 (btrace_target_info)<conf>: New.
219 (btrace_target_info): Split into this and ...
220 (btrace_tinfo_bts): ... this. Updated users.
221 * btrace.c (btrace_enable): Update parameters.
222 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
223 (btrace_conf_children, btrace_conf_attributes)
224 (btrace_conf_elements): New.
225 * btrace.h (btrace_enable): Update parameters.
226 (btrace_conf, parse_xml_btrace_conf): New.
227 * common/btrace-common.h (btrace_config): New.
228 * feature/btrace-conf.dtd: New.
229 * record-btrace.c (record_btrace_conf): New.
230 (record_btrace_cmdlist): New.
231 (record_btrace_enable_warn, record_btrace_open): Pass
232 &record_btrace_conf.
233 (record_btrace_info): Print recording format.
234 (cmd_record_btrace_bts_start): New.
235 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
236 (_initialize_record_btrace): Add "record btrace bts" subcommand.
237 Add "record bts" alias command.
238 * remote.c (remote_state)<btrace_config>: New.
239 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
240 (remote_protocol_features): Add qXfer:btrace-conf:read.
241 (remote_open_1): Call remote_btrace_reset.
242 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
243 (btrace_target_info)<conf>: New.
244 (btrace_sync_conf, btrace_read_config): New.
245 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
246 btrace_read_conf.
247 (remote_btrace_conf): New.
248 (init_remote_ops): Initialize to_btrace_conf.
249 (_initialize_remote): Add qXfer:btrace-conf packet.
250 * target.c (target_enable_btrace): Update parameters.
251 (target_btrace_conf): New.
252 * target.h (target_enable_btrace): Update parameters.
253 (target_btrace_conf): New.
254 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
255 (target_ops)<to_enable_btrace>: Update parameters and comment.
256 (target_ops)<to_btrace_conf>: New.
257 * target-delegates: Regenerate.
258 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
259 (target_debug_print_const_struct_btrace_target_info_p): New.
260 * NEWS: Announce new command and new packet.
261
aadf7753
MM
2622015-02-09 Markus Metzger <markus.t.metzger@intel.com>
263
264 * nat/linux-btrace.h (perf_event_buffer): New.
265 (btrace_target_info) <buffer, size, data_head>: Replace with ...
266 <bts>: ... this.
267 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
268 (perf_event_buffer_size, perf_event_buffer_begin)
269 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
270 Updated users.
271 (perf_event_new_data): New.
272
043c3577
MM
2732015-02-09 Markus Metzger <markus.t.metzger@intel.com>
274
275 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
276 * record-btrace.c (record_btrace_open): Remove call to
277 target_supports_btrace.
278 * remote.c (remote_supports_btrace): Update parameters.
279 * target.c (target_supports_btrace): Update parameters.
280 * target.h (to_supports_btrace, target_supports_btrace): Update
281 parameters.
282 * target-delegates.c: Regenerate.
283 * target-debug.h (target_debug_print_enum_btrace_format): New.
284 * nat/linux-btrace.c
285 (kernel_supports_btrace): Rename into ...
286 (kernel_supports_bts): ... this. Update users. Update warning text.
287 (intel_supports_btrace): Rename into ...
288 (intel_supports_bts): ... this. Update users.
289 (cpu_supports_btrace): Rename into ...
290 (cpu_supports_bts): ... this. Update users.
291 (linux_supports_btrace): Update parameters. Split into this and ...
292 (linux_supports_bts): ... this.
293 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
294
734b0e4b
MM
2952015-02-09 Markus Metzger <markus.t.metzger@intel.com>
296
297 * Makefile.in (SFILES): Add common/btrace-common.c.
298 (COMMON_OBS): Add common/btrace-common.o.
299 (btrace-common.o): Add build rules.
300 * btrace.c (parse_xml_btrace): Update parameters.
301 (parse_xml_btrace_block): Set format field.
302 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
303 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
304 (btrace_compute_ftrace): Split into this and...
305 (btrace_compute_ftrace_bts): ...this.
306 (btrace_stitch_trace): Split into this and...
307 (btrace_stitch_bts): ...this.
308 * btrace.h (parse_xml_btrace): Update parameters.
309 (make_cleanup_btrace_data): New.
310 * common/btrace-common.c: New.
311 * common/btrace-common.h: Include common-defs.h.
312 (btrace_block_s): Update comment.
313 (btrace_format): New.
314 (btrace_format_string): New.
315 (btrace_data_bts): New.
316 (btrace_data): New.
317 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
318 * remote.c (remote_read_btrace): Update parameters.
319 * target.c (target_read_btrace): Update parameters.
320 * target.h (target_read_btrace): Update parameters.
321 (target_ops)<to_read_btrace>: Update parameters.
322 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
323 * target-delegates.c: Regenerate.
324 * target-debug (target_debug_print_struct_btrace_data_p): New.
325 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
326 (linux_read_bts): ...this.
327 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
328
bd2e0e9e
DE
3292015-02-06 Doug Evans <dje@google.com>
330
331 * remote-m32r-sdi.c: Include symfile.h.
332
f176c4b5
DE
3332015-02-06 Doug Evans <dje@google.com>
334
335 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
336 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
337 to here.
338
d6c146e9
PA
3392015-02-06 Pedro Alves <palves@redhat.com>
340
341 * linux-thread-db.c (find_new_threads_callback): Add debug output.
342
b9d61307
SM
3432015-02-06 Simon Marchi <simon.marchi@ericsson.com>
344
345 PR gdb/15678
346 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
347 (enable_count_command): Check args for NULL value.
348
e9fbd043
DE
3492015-02-05 Doug Evans <xdje42@gmail.com>
350
351 * guile/scm-frame.c: Fix spelling errors in a comment.
352
881d5d5d
JK
3532015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
354
355 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
356 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
357 return type.
358
20ba1ce6
PA
3592015-02-04 Pedro Alves <palves@redhat.com>
360
361 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
362 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
363 returns true.
364 (resume_stopped_resumed_lwps): Don't check whether the thread is
365 marked as executing.
366 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
367
f962539a
AA
3682015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
369
370 * regset.h (struct regset): Add flags field.
371 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
372 * corelow.c (get_core_register_section): Add warning if the size
373 exceeds the requested size and the regset does not have the
374 REGSET_VARIABLE_SIZE flag set.
375 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
376 flag.
377 * armbsd-tdep.c (armbsd_gregset): Likewise.
378 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
379 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
380 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
381 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
382
dde9acd6
AA
3832015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
384
385 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
386 For ".reg-xstate", explicitly specify the requested section size
387 via X86_XSTATE_SIZE instead of just 0 on input and
388 X86_XSTATE_MAX_SIZE on output.
389 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
390 Likewise.
391
1528345d
AA
3922015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
393
394 PR corefiles/17808:
395 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
396 function type, particularly its SIZE parameter.
397 * gdbarch.h: Regenerate.
398 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
399 actual against required size using ">=" instead of "==".
400 (amd64_collect_fpregset): Likewise.
401 * i386-tdep.c (i386_supply_gregset): Likewise.
402 (i386_collect_gregset): Likewise.
403 (i386_supply_fpregset): Likewise.
404 (i386_collect_fpregset): Likewise.
405 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
406 (mips_fill_gregset_wrapper): Likewise.
407 (mips_supply_fpregset_wrapper): Likewise.
408 (mips_fill_fpregset_wrapper): Likewise.
409 (mips64_supply_gregset_wrapper): Likewise.
410 (mips64_fill_gregset_wrapper): Likewise.
411 (mips64_supply_fpregset_wrapper): Likewise.
412 (mips64_fill_fpregset_wrapper): Likewise.
413 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
414 (am33_supply_fpregset_method): Likewise.
415 (am33_collect_gregset_method): Likewise.
416 (am33_collect_fpregset_method): Likewise.
417
518be979
DE
4182015-02-04 Doug Evans <dje@google.com>
419 Pedro Alves <palves@redhat.com>
420 Eli Zaretskii <eliz@gnu.org>
421
422 PR tui/17810
423 * tui/tui-command.c (tui_refresh_cmd_win): New function.
424 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
425 * tui/tui-file.c: #include tui/tui-command.h.
426 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
427 (tui_file_flush): Refresh command window if stream is gdb_stdout.
428 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
429
80bd5fab
PA
4302015-02-04 Pedro Alves <palves@redhat.com>
431
432 Fix build breakage.
433 * event-loop.c (gdb_do_one_event): Add default switch case.
434
a7606d80
JK
4352015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
436
437 Filter out inferior gcc option -fpreprocessed.
438 * compile/compile.c (filter_args): New function.
439 (get_args): Use it.
440
70b66289
PA
4412015-02-03 Pedro Alves <palves@redhat.com>
442
443 * event-loop.c: Don't declare nor define a queue type for
444 gdb_event_p.
445 (event_queue): Delete.
446 (create_event, create_file_event, gdb_event_xfree)
447 (initialize_event_loop, process_event): Delete.
448 (gdb_do_one_event): Return as soon as one event is handled.
449 (handle_file_event): Change prototype. Used the passed in
450 file_handler pointer and ready_mask instead of looping over all
451 file handlers.
452 (gdb_wait_for_event): Update the poll/select timeouts before
453 blocking. Run event handlers directly instead of queueing events.
454 Return as soon as one event is handled.
455 (struct async_event_handler_data): Delete.
456 (invoke_async_event_handler): Delete.
457 (check_async_event_handlers): Change return type to int. Run
458 event handlers directly instead of queueing events. Return as
459 soon as one event is handled.
460 (handle_timer_event): Delete.
461 (update_wait_timeout): New function, factored out from
462 poll_timers.
463 (poll_timers): Reimplement.
464 * event-loop.h (initialize_event_loop): Delete declaration.
465 * top.c (gdb_init): Don't call initialize_event_loop.
466
b7d2e916
PA
4672015-02-03 Pedro Alves <palves@redhat.com>
468
469 * event-loop.c (clear_async_event_handler): New function.
470 * event-loop.h (clear_async_event_handler): New declaration.
471 * record-btrace.c (record_btrace_async): New function.
472 (init_record_btrace_ops): Install record_btrace_async.
473 * record-full.c (record_full_async): New function.
474 (record_full_resume): Don't mark the async event source here.
475 (init_record_full_ops): Install record_full_async.
476 (record_full_core_resume): Don't mark the async event source here.
477 (init_record_full_core_ops): Install record_full_async.
478 * remote.c (remote_async): Mark and clear the async stop reply
479 queue event-loop token as appropriate.
480
d9d41e78
PA
4812015-02-03 Pedro Alves <palves@redhat.com>
482
483 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
484 target_is_async_p instead of target_can_async.
485 (linux_nat_wait): Use target_is_async_p instead of
486 target_can_async. Don't enable async here.
487 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
488 target_is_async_p instead of target_can_async.
489
aa3de267
SM
4902015-02-02 Simon Marchi <simon.marchi@ericsson.com>
491
492 * varobj.h (lang_varobj_ops): Mention which return values need
493 to be freed.
494
2c811c0f
JB
4952015-02-02 Joel Brobecker <brobecker@adacore.com>
496
497 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
498
b1eedac9
JB
4992015-02-02 Joel Brobecker <brobecker@adacore.com>
500
501 PR gdb/17856:
502 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
503 results found in the cache.
504
66c168ae
JB
5052015-02-02 Joel Brobecker <brobecker@adacore.com>
506
507 PR gdb/17854:
508 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
509 when allocating a new one.
510
4bdc02b2
TT
5112015-02-01 Tom Tromey <tom@tromey.com>
512
513 * MAINTAINERS: Remove myself.
514
ae6ae975
DE
5152015-01-31 Doug Evans <xdje42@gmail.com>
516
517 * dwarf2read.c (process_structure_scope): Update setting of
518 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
519 * gdbtypes.c (internal_type_vptr_fieldno): New function.
520 (set_type_vptr_fieldno): New function.
521 (internal_type_vptr_basetype): New function.
522 (set_type_vptr_basetype): New function.
523 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
524 TYPE_VPTR_BASETYPE.
525 (allocate_cplus_struct_type): Initialize vptr_fieldno.
526 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
527 (print_cplus_stuff): ... moved here.
528 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
529 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
530 moved to ...
531 (struct cplus_struct_type): ... here. All uses updated.
532 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
533 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
534 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
535 * stabsread.c (read_tilde_fields): Update setting of
536 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
537
09e2d7c7
DE
5382015-01-31 Doug Evans <xdje42@gmail.com>
539
540 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
541 to self_p.
542 (cp_print_class_member): Rename local domain to self_type.
543 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
544 domain_type to self_type.
545 (set_die_type) <need_gnat_info>: Handle
546 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
547 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
548 TYPE_SPECIFIC_SELF_TYPE.
549 * gdbtypes.c (internal_type_self_type): New function.
550 (set_type_self_type): New function.
551 (smash_to_memberptr_type): Rename parameter domain to self_type.
552 Update setting of TYPE_SELF_TYPE.
553 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
554 (smash_to_method_type): Rename parameter domain to self_type.
555 Update setting of TYPE_SELF_TYPE.
556 (check_stub_method): Call smash_to_method_type.
557 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
558 (copy_type_recursive): Ditto.
559 * gdbtypes.h (enum type_specific_kind): New value
560 TYPE_SPECIFIC_SELF_TYPE.
561 (struct main_type) <type_specific>: New member self_type.
562 (struct cplus_struct_type) <fn_field.type>: Update comment.
563 (TYPE_SELF_TYPE): Rewrite.
564 (internal_type_self_type, set_type_self_type): Declare.
565 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
566 self_type.
567 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
568 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
569 TYPE_TARGET_TYPE.
570 * stabsread.c (read_member_functions): Mark methods with
571 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
572 TYPE_SELF_TYPE.
573
4bfb94b8
DE
5742015-01-31 Doug Evans <xdje42@gmail.com>
575
576 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
577 All uses updated.
578
5f4ce105
DE
5792015-01-31 Doug Evans <xdje42@gmail.com>
580
581 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
582 or unions. Return zero if union.
583 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
584 (gnuv3_rtti_type): Pass already-check_typedef'd value to
585 gnuv3_get_vtable.
586 (compute_vtable_size): Assert only passed structs.
587 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
588
f6b3afbf
DE
5892015-01-31 Doug Evans <xdje42@gmail.com>
590
591 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
592 kinds.
593
cfb069a8
GB
5942015-01-31 Gary Benson <gbenson@redhat.com>
595 Doug Evans <dje@google.com>
596
597 PR cli/9007
598 PR cli/11920
599 PR cli/15548
600 * cli/cli-cmds.c (complete_command): Notify user if max-completions
601 reached.
602 * common/common-exceptions.h (enum errors)
603 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
604 * completer.h (get_max_completions_reached_message): New declaration.
605 (max_completions): Likewise.
606 (completion_tracker_t): New typedef.
607 (new_completion_tracker): New declaration.
608 (make_cleanup_free_completion_tracker): Likewise.
609 (maybe_add_completion_enum): New enum.
610 (maybe_add_completion): New declaration.
611 (throw_max_completions_reached_error): Likewise.
612 * completer.c (max_completions): New global variable.
613 (new_completion_tracker): New function.
614 (free_completion_tracker): Likewise.
615 (make_cleanup_free_completion_tracker): Likewise.
616 (maybe_add_completions): Likewise.
617 (throw_max_completions_reached_error): Likewise.
618 (complete_line): Remove duplicates and limit result to max_completions
619 entries.
620 (get_max_completions_reached_message): New function.
621 (gdb_display_match_list): Handle max_completions.
622 (_initialize_completer): New declaration and function.
623 * symtab.c: Include completer.h.
624 (completion_tracker): New static variable.
625 (completion_list_add_name): Call maybe_add_completion.
626 (default_make_symbol_completion_list_break_on_1): Renamed from
627 default_make_symbol_completion_list_break_on. Maintain
628 completion_tracker across calls to completion_list_add_name.
629 (default_make_symbol_completion_list_break_on): New function.
630 * top.c (init_main): Set rl_completion_display_matches_hook.
631 * tui/tui-io.c: Include completer.h.
632 (tui_old_rl_display_matches_hook): New static global.
633 (tui_rl_display_match_list): Notify user if max-completions reached.
634 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
635 * NEWS (New Options): Mention set/show max-completions.
636
e11c72c7
GB
6372015-01-31 Gary Benson <gbenson@redhat.com>
638
639 * symtab.c (struct add_name_data) <code>: New field.
640 Updated comments.
641 (add_symtab_completions): New function.
642 (symtab_expansion_callback): Likewise.
643 (default_make_symbol_completion_list_break_on): Set datum.code.
644 Move minimal symbol scan before calling expand_symtabs_matching.
645 Scan known primary symtabs for externs and statics before calling
646 expand_symtabs_matching. Pass symtab_expansion_callback as
647 expansion_notify argument to expand_symtabs_matching. Do not scan
648 primary symtabs for externs and statics after calling
649 expand_symtabs_matching.
650
276d885b
GB
6512015-01-31 Gary Benson <gbenson@redhat.com>
652
653 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
654 (struct quick_symbol_functions) <expand_symtabs_matching>:
655 New argument expansion_notify. All uses updated.
656 (expand_symtabs_matching): New argument expansion_notify.
657 All uses updated.
658 * symfile-debug.c (debug_qf_expand_symtabs_matching):
659 Also print expansion notify.
660 * symtab.c (expand_symtabs_matching_via_partial): Call
661 expansion_notify whenever a partial symbol table is expanded.
662 * dwarf2read.c (dw2_expand_symtabs_matching): Call
663 expansion_notify whenever a symbol table is instantiated.
664
82083d6d
DE
6652015-01-31 Doug Evans <xdje42@gmail.com>
666
667 * cli-out.c: #include completer.h, readline/readline.h.
668 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
669 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
670 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
671 * cli-out.h (cli_display_match_list): Declare.
672 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
673 (ELLIPSIS_LEN): Ditto.
674 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
675 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
676 (gdb_fnprint, gdb_print_filename): Ditto.
677 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
678 (gdb_display_match_list): Ditto.
679 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
680 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
681 (mld_beep_ftype, mld_read_key_ftype): Ditto.
682 (match_list_displayer): New struct.
683 (gdb_display_match_list): Declare.
684 * top.c (init_main): Set rl_completion_display_matches_hook.
685 * tui/tui-io.c: #include completer.h.
686 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
687 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
688 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
689 (tui_mld_getc, tui_mld_read_key): Ditto.
690 (tui_rl_display_match_list): Rewrite.
691 (tui_handle_resize_during_io): New arg for_completion. All callers
692 updated.
693
f57d2163
DE
6942015-01-31 Doug Evans <xdje42@gmail.com>
695
696 Add symbol lookup cache.
697 * NEWS: Document new options and commands.
698 * symtab.c (symbol_cache_key): New static global.
699 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
700 (SYMBOL_LOOKUP_FAILED): New macro.
701 (symbol_cache_slot_state): New enum.
702 (block_symbol_cache): New struct.
703 (symbol_cache): New struct.
704 (new_symbol_cache_size, symbol_cache_size): New static globals.
705 (hash_symbol_entry, eq_symbol_entry): New functions.
706 (symbol_cache_byte_size, resize_symbol_cache): New functions.
707 (make_symbol_cache, free_symbol_cache): New functions.
708 (get_symbol_cache, symbol_cache_cleanup): New function.
709 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
710 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
711 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
712 (symbol_cache_flush, symbol_cache_dump): New functions.
713 (maintenance_print_symbol_cache): New function.
714 (maintenance_flush_symbol_cache): New function.
715 (symbol_cache_stats): New function.
716 (maintenance_print_symbol_cache_statistics): New function.
717 (symtab_new_objfile_observer): New function.
718 (symtab_free_objfile_observer): New function.
719 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
720 (_initialize_symtab): Init symbol_cache_key. New parameter
721 maint symbol-cache-size. New maint commands print symbol-cache,
722 print symbol-cache-statistics, flush-symbol-cache.
723 Install new_objfile, free_objfile observers.
724
e700d1b2
JB
7252015-01-31 Joel Brobecker <brobecker@adacore.com>
726
727 PR symtab/17855
728 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
729 to end.
730
9f050062
DE
7312015-01-31 Doug Evans <xdje42@gmail.com>
732
733 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
734 * auto-load.c: #include ctype.h.
735 (struct auto_load_pspace_info): Replace member loaded_scripts with
736 new members loaded_script_files, loaded_script_texts.
737 (auto_load_pspace_data_cleanup): Update.
738 (init_loaded_scripts_info): Update.
739 (get_auto_load_pspace_data_for_loading): Update.
740 (maybe_add_script_file): Renamed from maybe_add_script. All callers
741 updated.
742 (maybe_add_script_text): New function.
743 (clear_section_scripts): Update.
744 (source_script_file, execute_script_contents): New functions.
745 (source_section_scripts): Add support for
746 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
747 (print_scripts): New function.
748 (auto_load_info_scripts): Also print inlined scripts.
749 (maybe_print_unsupported_script_warning): Renamed from
750 unsupported_script_warning_print. All callers updated.
751 (maybe_print_script_not_found_warning): Renamed from
752 script_not_found_warning_print. All callers updated.
753 * extension-priv.h (struct extension_language_script_ops): New member
754 objfile_script_executor.
755 * extension.c (ext_lang_objfile_script_executor): New function.
756 * extension.h (objfile_script_executor_func): New typedef.
757 (ext_lang_objfile_script_executor): Declare.
758 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
759 * guile/guile.c (guile_extension_script_ops): Update.
760 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
761 * python/python.c (python_extension_script_ops): Update.
762 (gdbpy_execute_objfile_script): New function.
763
312809f8
EZ
7642015-01-31 Eli Zaretskii <eliz@gnu.org>
765
766 * tui/tui-io.c (tui_expand_tabs): New function.
767 (tui_puts, tui_redisplay_readline): Expand TABs into the
768 appropriate number of spaces.
769 * tui/tui-regs.c: Include tui-io.h.
770 (tui_register_format): Call tui_expand_tabs to expand TABs into
771 the appropriate number of spaces.
772 * tui/tui-io.h: Add prototype for tui_expand_tabs.
773
b6577aab
DE
7742015-01-30 Doug Evans <dje@google.com>
775
776 * NEWS: "info source" command now display producer string if present.
777 * source.c (source_info): Print producer string if present.
778
6da58d3e
SM
7792015-01-30 Simon Marchi <simon.marchi@ericsson.com>
780
781 * varobj.c (varobj_delete): Fix comment.
782
837ce252
SM
7832015-01-30 Simon Marchi <simon.marchi@ericsson.com>
784
785 * varobj.c (create_child): Modify comment.
786
b09e2c59
SM
7872015-01-30 Simon Marchi <simon.marchi@ericsson.com>
788
789 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
790 parameter.
791 (ada_name_of_variable): Same.
792 (ada_path_expr_of_child): Same.
793 (ada_value_of_variable): Same.
794 (ada_value_is_changeable_p): Same.
795 (ada_value_has_mutated): Same.
796 * c-varobj.c (varobj_is_anonymous_child): Same.
797 (c_is_path_expr_parent): Same.
798 (c_number_of_children): Same.
799 (c_name_of_variable): Same.
800 (c_path_expr_of_child): Same.
801 (get_type): Same.
802 (c_value_of_variable): Same.
803 (cplus_number_of_children): Same.
804 (cplus_name_of_variable): Same.
805 (cplus_path_expr_of_child): Same.
806 (cplus_value_of_variable): Same.
807 * jv-varobj.c (java_number_of_children): Same.
808 (java_name_of_variable): Same.
809 (java_path_expr_of_child): Same.
810 (java_value_of_variable): Same.
811 * varobj.c (number_of_children): Same.
812 (name_of_variable): Same.
813 (is_root_p): Same.
814 (varobj_ensure_python_env): Same.
815 (varobj_get_objname): Same.
816 (varobj_get_expression): Same.
817 (varobj_get_display_format): Same.
818 (varobj_get_display_hint): Same.
819 (varobj_has_more): Same.
820 (varobj_get_thread_id): Same.
821 (varobj_get_frozen): Same.
822 (dynamic_varobj_has_child_method): Same.
823 (varobj_get_gdb_type): Same.
824 (is_path_expr_parent): Same.
825 (varobj_default_is_path_expr_parent): Same.
826 (varobj_get_language): Same.
827 (varobj_get_attributes): Same.
828 (varobj_is_dynamic_p): Same.
829 (varobj_get_child_range): Same.
830 (varobj_value_has_mutated): Same.
831 (varobj_get_value_type): Same.
832 (number_of_children): Same.
833 (name_of_variable): Same.
834 (check_scope): Same.
835 (varobj_editable_p): Same.
836 (varobj_value_is_changeable_p): Same.
837 (varobj_floating_p): Same.
838 (varobj_default_value_is_changeable_p): Same.
839
2568868e
SM
8402015-01-30 Simon Marchi <simon.marchi@ericsson.com>
841
842 * varobj.c (varobj_get_path_expr): Set var->path_expr.
843 * c-varobj.c (c_path_expr_of_child): Set local var instead of
844 child->path_expr.
845 (cplus_path_expr_of_child): Same.
846
ca83fa81
SM
8472015-01-30 Simon Marchi <simon.marchi@ericsson.com>
848
849 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
850 result.
851 (mi_cmd_var_info_expression): Same.
852 * varobj.c (varobj_get_expression): Mention in the comment that
853 the result must by freed by the caller.
854
afa269ae
SM
8552015-01-30 Simon Marchi <simon.marchi@ericsson.com>
856
857 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
858 varobj_get_type.
859 (varobj_update_one): Same.
860 * varobj.c (update_type_if_necessary): Free curr_type_str and
861 new_type_str.
862 (varobj_get_type): Specify in comment that the result needs to be
863 freed by the caller.
864
cd366ee8
DE
8652015-01-29 Doug Evans <dje@google.com>
866
867 PR symtab/17890
868 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
869
38360086
MW
8702015-01-25 Mark Wielaard <mjw@redhat.com>
871
872 * dwarf2read.c (checkproducer): Call producer_is_gcc.
873 * utils.c (producer_is_gcc_ge_4): Likewise.
874 (producer_is_gcc): New function.
875 * utils.h (producer_is_gcc): New declaration.
876
df25ebbd
JB
8772015-01-29 Joel Brobecker <brobecker@adacore.com>
878
879 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
880 kind.
881 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
882 parameter by "addr_stack" parameter.
883 (resolve_dynamic_range): Replace "addr" parameter by
884 "stack_addr" parameter. Update function documentation.
885 Update code accordingly.
886 (resolve_dynamic_array, resolve_dynamic_union)
887 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
888 (resolve_dynamic_type): Update code, following the changes made
889 to resolve_dynamic_type_internal's interface.
890 * dwarf2loc.h (struct property_addr_info): New.
891 (dwarf2_evaluate_property): Replace "address" parameter
892 by "addr_stack" parameter. Adjust function documentation.
893 (struct dwarf2_offset_baton): New.
894 (struct dwarf2_property_baton): Update documentation of
895 field "referenced_type" to be more general. New field
896 "offset_info" in union data field.
897 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
898 parameter by "addr_stack" parameter. Adjust code accordingly.
899 Add support for PROP_ADDR_OFFSET properties.
900 * dwarf2read.c (attr_to_dynamic_prop): Add support for
901 DW_AT_data_member_location attributes as well. Use case
902 statements instead of if/else condition.
903
4a0ca9ec
JB
9042015-01-29 Joel Brobecker <brobecker@adacore.com>
905
906 * ada-varobj.c (ada_varobj_get_array_number_of_children):
907 Return zero if PARENT_VALUE is NULL and parent_type's
908 range type is dynamic.
909
ddb87a81
JB
9102015-01-29 Joel Brobecker <brobecker@adacore.com>
911
912 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
913 nonzero if the type's subtype is dynamic.
914 (resolve_dynamic_range): Also resolve the range's subtype.
915
3d7ad9b4 9162015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
7a270e0c 917
3d7ad9b4 918 Pushed by Joel Brobecker <brobecker@adacore.com>.
7a270e0c
AK
919 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
920
3a8b707a
DE
9212015-01-27 Doug Evans <dje@google.com>
922
923 * NEWS: Mention gdb.Objfile.username.
924 * python/py-objfile.c (objfpy_get_username): New function.
925 (objfile_getset): Add "username".
926
d35b90fb
MW
9272015-01-24 Mark Wielaard <mjw@redhat.com>
928
929 * stack.c (return_command): Markup warning message with _.
930
734ae125
DE
9312015-01-24 Doug Evans <xdje42@gmail.com>
932
933 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
934
527f3840
JK
9352015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
936
937 Fix 100x slowdown regression on DWZ files.
938 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
939 (struct line_header): Add offset and offset_in_dwz.
940 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
941 (free_line_header_voidp): New declaration.
942 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
943 functions.
944 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
945 (handle_DW_AT_stmt_list): Use line_header_hash.
946 (free_line_header_voidp): New function.
947 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
948 (dwarf_decode_lines): New parameter decode_mapping, use it.
949 (dwarf2_free_objfile): Free line_header_hash.
950
f7e5394d
SM
9512015-01-23 Simon Marchi <simon.marchi@ericsson.com>
952
953 PR gdb/17416
954 * valops.c (value_rtti_indirect_type): Catch exception thrown by
955 value_ind.
956
743649fd
MW
9572015-01-15 Mark Wielaard <mjw@redhat.com>
958
959 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
960 DW_AT_noreturn.
961 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
962 calling_convention an 8 bit bit field.
963 (TYPE_NO_RETURN): New macro.
964 * infcmd.c (finish_command): Query if function does not return
965 normally.
966 * stack.c (return_command): Likewise.
967
198297aa
PA
9682015-01-23 Pedro Alves <palves@redhat.com>
969
970 * linux-nat.c (linux_is_async_p): New macro.
971 (linux_nat_is_async_p):
972 (linux_nat_terminal_inferior): Check whether the target can async
973 instead of whether it is already async.
974 (linux_nat_terminal_ours): Don't check whether the target is
975 async.
976 (linux_async_pipe): Use linux_is_async_p.
977
253828f1
JK
9782015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
979
980 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
981 '-ascending'.
982 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
983 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
984 Sort tp_array using tp_array_compar.
985 (_initialize_thread): Extend thread_apply_all_command help.
986
f0e8c4c5
JK
9872015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
988
989 * corelow.c (core_open): Call also thread_command.
990 * gdbthread.h (thread_command): New prototype moved from ...
991 * thread.c (thread_command): ... here.
992 (thread_command): Make it global.
993
03b79603
PA
9942015-01-22 Pedro Alves <palves@redhat.com>
995
996 * configure.ac [*mingw32*]: Check $curses_found instead of
997 $prefer_curses.
998 * configure: Regenerate.
999 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
1000 HAVE_NCURSES_NCURSES_H checks.
1001
6b8a872f
EZ
10022015-01-22 Eli Zaretskii <eliz@gnu.org>
1003
bbbbffbb 1004 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
6b8a872f
EZ
1005 fails with the 1st arg NULL, try again with "unknown". Don't test
1006 the "cup" capability: it isn't supported by the Windows port of
1007 ncurses, but the Windows console driver is still capable of
1008 supporting TUI.
1009
4b62a76e
JK
10102015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1011
1012 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
1013
82a864f9
EZ
10142015-01-22 Eli Zaretskii <eliz@gnu.org>
1015
1016 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1017 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
1018 reason that "make TAGS" is broken.
1019
b35018fd
CG
10202015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
1021
1022 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
1023 and check additional store instructions.
1024
ffbc4646
WW
10252015-01-21 Wei-cheng Wang <cole945@gmail.com>
1026
1027 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
1028
ddeca1df
WW
10292015-01-21 Wei-cheng Wang <cole945@gmail.com>
1030
1031 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
1032 ppc_canonicalize_syscall, ppc_linux_syscall_record,
1033 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
1034 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
1035 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
1036 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
1037 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
1038 ppc_process_record_op19, ppc_process_record_op31,
1039 ppc_process_record_op59, ppc_process_record_op60,
1040 ppc_process_record_op63): Likewise.
1041
049bb5de
JB
10422015-01-20 Joel Brobecker <brobecker@adacore.com>
1043
1044 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
1045 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
1046 strerror.
1047
42b87c63 10482015-01-20 Wei-cheng Wang <cole945@gmail.com>
810c1026
WW
1049
1050 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
1051 ppc_process_record_op31, ppc_process_record_op59,
1052 ppc_process_record_op60, ppc_process_record_op63,
1053 ppc_process_record): Fix -Wformat warning.
1054 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
1055 Remove unused variables.
1056
569340fc
CG
10572015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
1058
1059 * MAINTAINERS (Write After Approval): Add "Chen Gang".
1060
63413d85
EZ
10612015-01-19 Eli Zaretskii <eliz@gnu.org>
1062
1063 * configure.ac [*mingw32*]: Only add windows-termcap.o to
1064 CONFIG_OBS if not building with a curses library.
1065 * configure: Regenerate.
1066
1067 * windows-termcap.c: Include defs.h. Make the whole body empty if
1068 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
1069 HAVE_NCURSES_NCURSES_H is defined.
1070
16d8013c
JB
10712015-01-19 Joel Brobecker <brobecker@adacore.com>
1072
1073 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
1074 from end of line to start of next line.
1075
cf90fd9a
WW
10762015-01-17 Wei-cheng Wang <cole945@gmail.com>
1077
1078 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
1079 Scan PLT stub backward for reverse debugging.
1080 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
1081
b4cdae6f
WW
10822015-01-17 Wei-cheng Wang <cole945@gmail.com>
1083 Ulrich Weigand <uweigand@de.ibm.com>
1084
1085 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
1086 gdb_target_obs.
1087 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
1088 record.
1089 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
1090 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
1091 (ppc_linux_init_abi): Set process_record, process_record_signal.
1092 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
1093 ppc_linux_record_tdep to gdbarch_tdep.
1094 (ppc_process_record): New declaration.
1095 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
1096 ppc_process_record_op19, ppc_process_record_op31,
1097 ppc_process_record_op59, ppc_process_record_op60,
1098 ppc_process_record_op63, ppc_process_record): New functions.
1099
2608dbf8
WW
11002015-01-17 Wei-cheng Wang <cole945@gmail.com>
1101
1102 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
1103 rs6000_in_function_epilogue_frame_p and add an argument
1104 for frame_info.
1105 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
1106 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
1107 New functions.
1108 (rs6000_epilogue_frame_unwind): New.
1109 (rs6000_gdbarch_init): Append epilogue unwinder.
1110
4c347be6
SDJ
11112015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
1112
1113 * nat/linux-personality.c: Replace "#ifndef
1114 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
1115 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
1116 systems.
1117
9f2850ba
EZ
11182015-01-16 Eli Zaretskii <eliz@gnu.org>
1119
6cdb25f4
EZ
1120 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
1121 functions.
1122 (_initialize_tui_win) <border-kind, border-mode>:
1123 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
c54da50d
EZ
1124 (tui_set_tab_width_command): Fix the commentary.
1125
6cdb25f4
EZ
1126 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
1127
bf555842
EZ
1128 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
1129 Doc fix.
cb86fcc1
EZ
1130 (tui_set_tab_width_command): Delete and recreate the source and
1131 the disassembly windows, to show the effect of the changed tab
1132 size immediately.
bf555842 1133
9f2850ba
EZ
1134 * tui/tui-data.h (LINE_PREFIX): Make shorter
1135 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
1136 "Thread NNNNN.XXXX" thread ID notation on Windows.
1137
95761b2d
JK
11382015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1139
1140 Fix gcc-5 compilation.
1141 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
1142
8cc73a39
SDJ
11432015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
1144
1145 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
1146 (linux-personality.o): New rule.
1147 * common/common-defs.h: Include <stdint.h>.
1148 * config/aarch64/linux.mh (NATDEPFILES): Include
1149 linux-personality.o.
1150 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
1151 * config/arm/linux.mh (NATDEPFILES): Likewise.
1152 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1153 * config/i386/linux.mh (NATDEPFILES): Likewise.
1154 * config/ia64/linux.mh (NATDEPFILES): Likewise.
1155 * config/m32r/linux.mh (NATDEPFILES): Likewise.
1156 * config/m68k/linux.mh (NATDEPFILES): Likewise.
1157 * config/mips/linux.mh (NATDEPFILES): Likewise.
1158 * config/pa/linux.mh (NATDEPFILES): Likewise.
1159 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
1160 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
1161 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
1162 * config/s390/linux.mh (NATDEPFILES): Likewise.
1163 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
1164 * config/sparc/linux.mh (NATDEPFILES): Likewise.
1165 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
1166 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
1167 * defs.h: Remove #include <stdint.h> (moved to
1168 common/common-defs.h).
1169 * linux-nat.c: Include nat/linux-personality.h. Remove #include
1170 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
1171 nat/linux-personality.c).
1172 (linux_nat_create_inferior): Remove code to disable address space
1173 randomization (moved to nat/linux-personality.c). Create cleanup
1174 to disable address space randomization.
1175 * nat/linux-personality.c: New file.
1176 * nat/linux-personality.h: Likewise.
1177
fb23d554
SDJ
11782015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
1179
1180 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
1181 common/posix-strerror.c.
1182 (posix-strerror.o): New rule.
1183 (mingw-strerror.o): Likewise.
1184 * common/common-utils.h (safe_strerror): Move prototype to here,
1185 from utils.h.
1186 * common/common.host: New file.
1187 * common/mingw-strerror.c: Likewise.
1188 * common/posix-strerror.c: Likewise.
1189 * configure: Regenerated.
1190 * configure.ac: Source common/common.host. Add variable
1191 common_host_obs to gdb_host_obs.
1192 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
1193 gdb/common/posix-strerror.c when warning about the use of
1194 strerror.
1195 * mingw-hdep.c (safe_strerror): Remove definition; move it to
1196 common/mingw-strerror.c.
1197 * posix-hdep.c (safe_strerror): Remove definition; move it to
1198 common/posix-hdep.c.
1199 * utils.h (safe_strerror): Remove prototype; move to
1200 common/common-utils.h.
1201
3af8af43
JB
12022015-01-15 Joel Brobecker <brobecker@adacore.com>
1203
1204 GDB 7.8.2 released.
1205
bafffb51
JB
12062015-01-15 Joel Brobecker <brobecker@adacore.com>
1207
1208 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
1209 ___XA type if the array has already been fixed.
1210
cdf43629
YQ
12112015-01-14 Yao Qi <yao@codesourcery.com>
1212
1213 * Makefile.in (ppc-linux.o): New rule.
1214 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
1215 * configure.ac: AC_CHECK_FUNCS(getauxval).
1216 * config.in: Re-generated.
1217 * configure: Re-generated.
1218 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
1219 Declare.
1220 * nat/ppc-linux.c: New file.
1221 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
1222 Call ppc64_64bit_inferior_p.
1223
514c5338
YQ
12242015-01-14 Yao Qi <yao@codesourcery.com>
1225
1226 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
1227 nat/ppc-linux.h.
1228 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
1229 (PPC_FEATURE_HAS_DFP): Likewise.
1230 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
1231 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
1232 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
1233 Include "nat/ppc-linux.h".
1234 * nat/ppc-linux.h: New file.
1235 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
1236
5589af0e
PA
12372015-01-14 Pedro Alves <palves@redhat.com>
1238
1239 PR gdb/17525
1240 * breakpoint.c: Include "interps.h".
1241 (bpstat_do_actions_1): Also check whether the interpreter is
1242 async.
1243
6c400b59
PA
12442015-01-14 Pedro Alves <palves@redhat.com>
1245
1246 PR cli/17828
1247 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
1248 reinstall if the interpreter is sync.
1249
e02c96a7
DE
12502015-01-13 Doug Evans <dje@google.com>
1251
1252 * objfiles.c (objfile_filename): New function.
1253 * objfiles.h (objfile_filename): Declare it.
1254 (objfile_name): Add function comment.
1255 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
1256 bfd file name (which may be realpath'd), and the original name.
1257
3b2f13ff
JB
12582015-01-13 Joel Brobecker <brobecker@adacore.com>
1259
1260 * NEWS: Create a new section for the next release branch.
1261 Rename the section of the current branch, now that it has
1262 been cut.
1263
b4cfe7f8
JB
12642015-01-13 Joel Brobecker <brobecker@adacore.com>
1265
1266 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
1267 * version.in: Bump version to 7.9.50.DATE-cvs.
1268
92fc2e69
JB
12692015-01-13 Joel Brobecker <brobecker@adacore.com>
1270
1271 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
1272 Remove trailing new-line in argument of call to warning.
1273
f71f0b0d
JB
12742015-01-13 Joel Brobecker <brobecker@adacore.com>
1275
1276 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
1277 new-line in argument of call to "warning".
1278
04dccad0
JB
12792015-01-13 Joel Brobecker <brobecker@adacore.com>
1280
1281 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
1282 in static block, then try searching for primitive types.
1283
08b13bdd
PP
12842015-01-12 Patrick Palka <patrick@parcs.ath.cx>
1285
1286 * top.h (gdb_add_history): Declare.
1287 * top.c (command_count): New variable.
1288 (gdb_add_history): New function.
1289 (gdb_safe_append_history): New static function.
1290 (quit_force): Call it.
1291 (command_line_input): Use gdb_add_history instead of
1292 add_history.
1293 * event-top.c (command_line_handler): Likewise.
1294
4ac15b59
JC
12952015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
1296
1297 PR gdb/17046
1298 * darwin-nat.c: Replace <machine/setjmp.h> #include by
1299 <setjmp.h> #include.
1300
005e54bb
DE
13012015-01-11 Doug Evans <xdje42@gmail.com>
1302
1303 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
1304
439250fb
DE
13052015-01-11 Doug Evans <xdje42@gmail.com>
1306
1307 PR gdb/15830
1308 * NEWS: The "maint demangle" command is renamed as "demangle".
1309 * demangle.c: #include cli/cli-utils.h, language.h.
1310 (demangle_command): New function.
1311 (_initialize_demangle): Add new command "demangle".
1312 * maint.c (maintenance_demangle): Stub out.
1313 (_initialize_maint_cmds): Update help text for "maint demangle",
1314 and mark as deprecated.
1315
ebf3aa72
MK
13162015-01-11 Mark Kettenis <kettenis@gnu.org>
1317
1318 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
1319 inferior_thread is a function.
1320
6bf045cd
PP
13212015-01-09 Patrick Palka <patrick@parcs.ath.cx>
1322
1323 * Makefile.in (.y.c): Don't munge yacc's #line
1324 directives.
1325
588dcc3e
PP
13262015-01-09 Patrick Palka <patrick@parcs.ath.cx>
1327
1328 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
1329 to prompt for input.
1330 * tui/tui-hooks.c (tui_query_hook): Remove.
1331 (tui_install_hooks): Don't set deprecated_query_hook.
1332 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
1333 height calculation. Always update the command window's cur_line.
1334
9c02b525
PA
13352015-01-09 Pedro Alves <palves@redhat.com>
1336
1337 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
1338 function.
1339 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
1340 declaration.
1341 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
1342 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
1343 stop_reason.
1344 (check_stopped_by_watchpoint): New function.
1345 (save_sigtrap): Reimplement.
1346 (linux_nat_stopped_by_watchpoint): Adjust.
1347 (linux_nat_lp_status_is_event): Delete.
1348 (stop_wait_callback): Only call save_sigtrap after storing the
1349 pending status.
1350 (status_callback): If the thread had been stopped for a breakpoint
1351 that has since been removed, discard the event and resume the LWP.
1352 (count_events_callback, select_event_lwp_callback): Use
1353 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
1354 (cancel_breakpoint): Rename to ...
1355 (check_stopped_by_breakpoint): ... this. Record whether the LWP
1356 stopped for a software breakpoint or hardware breakpoint.
1357 (select_event_lwp): Only give preference to the stepping LWP in
1358 all-stop mode. Adjust comments.
1359 (stop_and_resume_callback): Remove references to new_pending_p.
1360 (linux_nat_filter_event): Likewise. Leave exit events of the
1361 leader thread pending here. Handle signal short circuiting here.
1362 Only call save_sigtrap after storing the pending waitstatus.
1363 (linux_nat_wait_1): Remove 'retry' label. Remove references to
1364 new_pending. Don't handle leaving events the caller is not
1365 interested in pending here, nor handle signal short-circuiting
1366 here. Also give equal priority to all LWPs that have had events
1367 in non-stop mode. If reporting a software breakpoint event,
1368 unadjust the LWP's PC.
1369 * linux-nat.h (enum lwp_stop_reason): New.
1370 (struct lwp_info) <stop_pc>: New field.
1371 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
1372 (struct lwp_info) <stop_reason>: New field.
1373 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
1374
8af756ef
PA
13752015-01-09 Pedro Alves <palves@redhat.com>
1376
1377 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
1378 Set the LWP's 'resumed' flag.
1379
8a99810d
PA
13802015-01-09 Pedro Alves <palves@redhat.com>
1381
1382 * linux-nat.c (linux_resume_one_lwp): New function.
1383 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
1384 (linux_nat_resume): Use lwp_status_pending_p and
1385 linux_resume_one_lwp.
1386 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
1387 (linux_handle_extended_wait): Use linux_resume_one_lwp.
1388 (status_callback, running_callback): Use lwp_status_pending_p.
1389 (lwp_status_pending_p): New function.
1390 (stop_and_resume_callback): Use lwp_status_pending_p.
1391 (linux_nat_filter_event): Use linux_resume_one_lwp.
1392 (linux_nat_wait_1): Always use status_callback to look for an LWP
1393 with a pending status. Use linux_resume_one_lwp.
1394 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
1395 linux_resume_one_lwp.
1396
f7ce857f
PA
13972015-01-09 Pedro Alves <palves@redhat.com>
1398
1399 * breakpoint.c (bp_location_inserted_here_p): New function,
1400 factored out from ...
1401 (breakpoint_inserted_here_p): ... here. Use
1402 ALL_BP_LOCATIONS_AT_ADDR.
1403 (software_breakpoint_inserted_here_p): Use
1404 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
1405
c1a747c1
PA
14062014-01-09 Pedro Alves <palves@redhat.com>
1407
1408 Skip enabling event reporting if the kernel supports
1409 PTRACE_EVENT_CLONE.
1410 * linux-thread-db.c: Include "nat/linux-ptrace.h".
1411 (thread_db_use_events): New function.
1412 (try_thread_db_load_1): Check thread_db_use_events before enabling
1413 event reporting.
1414 (update_thread_state): New function.
1415 (attach_thread): Use it. Check thread_db_use_events before
1416 enabling event reporting.
1417 (thread_db_detach): Check thread_db_use_events before disabling
1418 event reporting.
1419 (find_new_threads_callback): Check thread_db_use_events before
1420 enabling event reporting. Update the thread's state if not using
1421 libthread_db events.
1422
a33e3959
PA
14232015-01-09 Pedro Alves <palves@redhat.com>
1424
1425 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
1426 about to wait for is > 0.
1427 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
1428 the kernel thread ID is -1.
1429
8784d563
PA
14302015-01-09 Pedro Alves <palves@redhat.com>
1431
1432 * linux-nat.c (attach_proc_task_lwp_callback): New function.
1433 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
1434 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
1435 ptrace option flags.
1436 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
1437 field.
1438 * nat/linux-procfs.c: Include <dirent.h>.
1439 (linux_proc_get_int): New parameter "warn". Handle it.
1440 (linux_proc_get_tgid): Adjust.
1441 (linux_proc_get_tracerpid): Rename to ...
1442 (linux_proc_get_tracerpid_nowarn): ... this.
1443 (linux_proc_pid_get_state): New function, factored out from
1444 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
1445 and handle it.
1446 (linux_proc_pid_is_gone): New function.
1447 (linux_proc_pid_is_stopped): Adjust.
1448 (linux_proc_pid_is_zombie_maybe_warn)
1449 (linux_proc_pid_is_zombie_nowarn): New functions.
1450 (linux_proc_pid_is_zombie): Use
1451 linux_proc_pid_is_zombie_maybe_warn.
1452 (linux_proc_attach_tgid_threads): New function.
1453 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
1454 (linux_proc_get_tracerpid): Rename to ...
1455 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
1456 (linux_proc_pid_is_gone): New declaration.
1457 (linux_proc_pid_is_zombie): Update comment.
1458 (linux_proc_pid_is_zombie_nowarn): New declaration.
1459 (linux_proc_attach_lwp_func): New typedef.
1460 (linux_proc_attach_tgid_threads): New declaration.
1461 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
1462 use nowarn functions.
1463 (linux_ptrace_attach_fail_reason_string): Move here from
1464 gdbserver/linux-low.c and rename.
1465 (ptrace_supports_feature): If the current ptrace options are not
1466 known yet, check them now, instead of asserting.
1467 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
1468 Declare.
1469
883ed13e
PA
14702015-01-09 Pedro Alves <palves@redhat.com>
1471
1472 * linux-thread-db.c (thread_db_find_new_threads_silently)
1473 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
1474 (find_new_threads_once): Print debug output on gdb_stdlog.
1475
1710aab8
CG
14762015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
1477 Pedro Alves <palves@redhat.com>
1478
1479 * compile/compile.c: Include "gdb_wait.h".
1480 (do_rmdir): Check return value, and free 'zap'.
1481
b597c318
YQ
14822015-01-08 Pedro Alves <palves@redhat.com>
1483 Yao Qi <yao@codesourcery.com>
1484
1485 * dwarf2loc.c (indirect_pieced_value): Don't call
1486 gdb_sign_extend. Call extract_signed_integer instead.
1487 * utils.c (gdb_sign_extend): Remove.
1488 * utils.h (gdb_sign_extend): Remove declaration.
1489
025ac414
PM
14902015-01-07 Pierre Muller <muller@sourceware.org>
1491
1492 PR symtab/17811
1493 * stabsread.c (define_symbol): Set language for C++ special symbols.
1494
fa5af12a
PP
14952015-01-07 Patrick Palka <patrick@parcs.ath.cx>
1496
1497 * inflow.c (initial_gdb_ttystate): Tweak comment.
1498
ea42d6f8
JB
14992015-01-07 Joel Brobecker <brobecker@adacore.com>
1500
1501 * inflow.c (set_initial_gdb_ttystate): Add empty line after
1502 comment documenting function.
1503
6a06d660
PP
15042015-01-07 Patrick Palka <patrick@parcs.ath.cx>
1505
1506 * terminal.h (set_initial_gdb_ttystate): Declare.
1507 * inflow.c (initial_gdb_ttystate): New static variable.
1508 (set_initial_gdb_ttystate): New setter.
1509 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
1510 instead of our current terminal state.
1511 * top.c (gdb_init): Call set_initial_gdb_ttystate.
1512
e810d75b
JB
15132015-01-07 Joel Brobecker <brobecker@adacore.com>
1514
1515 * guile/scm-type.c (tyscm_array_1): Add comment.
1516 * python/py-type.c (typy_array_1): Add comment.
1517
fce10a84
JB
15182015-01-06 Joel Brobecker <brobecker@adacore.com>
1519
1520 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
1521 error if N2 is equal to N1 - 1.
1522
8503d6e1
JB
15232015-01-06 Joel Brobecker <brobecker@adacore.com>
1524
1525 * python/py-type.c (typy_array_1): Do not raise negative-length
1526 exception if N2 is equal to N1 - 1.
1527
4d29c0a8
DE
15282015-01-03 Doug Evans <xdje42@gmail.com>
1529
1530 * c-exp.y: Whitespace cleanup.
1531 (classify_inner_name): Remove extra ;.
1532
eaa6a9a4
MR
15332015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
1534
1535 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
1536 offset signed.
1537
02fe9972
DE
15382015-01-02 Doug Evans <dje@google.com>
1539
1540 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
1541
e2ada9cb
DE
15422015-01-02 Doug Evans <dje@google.com>
1543
1544 * symtab.h (struct symbol): Fix typo in comment.
1545
32d0add0
JB
15462015-01-01 Joel Brobecker <brobecker@adacore.com>
1547
1548 Update year range in copyright notice of all files.
1549
76f2b779
JB
15502015-01-01 Joel Brobecker <brobecker@adacore.com>
1551
1552 * top.c (print_gdb_version): Update copyright year to 2015.
1553
077309e2 15542015-01-01 Joel Brobecker <brobecker@adacore.com>
6bf6fd09 1555
077309e2 1556 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
6bf6fd09 1557
077309e2 1558For older changes see ChangeLog-2014.
c906108c
SS
1559\f
1560Local Variables:
1561mode: change-log
1562left-margin: 8
1563fill-column: 74
1564version-control: never
57da7796 1565coding: utf-8
c906108c 1566End:
This page took 1.856294 seconds and 4 git commands to generate.