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