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