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