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