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