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