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