1 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
4 (classify_inner_name): Call cp_lookup_nested_type with
6 * cp-namespace.c (cp_lookup_nested_type): New variable
7 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
8 type_name_no_tag_or_error with saved_parent_type.
9 * dwarf2read.c (load_partial_dies): Read in any children of
10 DW_TAG_typedef with complaint in such case.
11 * gdbtypes.c (type_name_no_tag_or_error): New function.
12 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
13 * valops.c (destructor_name_p): New comment for parameter type. Remove
14 type const. Make dname and cp const. Call type_name_no_tag_or_error.
15 * value.h (destructor_name_p): Remove type const.
17 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
19 * symtab.c (compare_symbol_name): New function.
20 (completion_list_add_name, expand_partial_symbol_name): Call it,
21 remove the variable ncmp.
22 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
25 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
27 Demote to sw watchpoint only in update_watchpoint.
28 * breakpoint.c (update_watchpoint): Change between software and
29 hardware watchpoint for all kinds of watchpoints, not just
30 read/write ones. Determine b->exact value here instead of
31 in watch_command_1. Error out if there are not enough resources
32 for a read or access hardware watchpoint.
33 (watch_command_1): Remove logic of checking whether there are
34 enough resources available, since update_watchpoint will do that
35 work now. Don't set b->exact here. Catch exceptions thrown by
36 update_watchpoint and delete the watchpoint.
37 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
38 Use target_exact_watchpoints instead.
39 (delete_breakpoint): Notify observers only if deleted watchpoint
40 has a breakpoint number assigned to it.
42 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
44 * MAINTAINERS: Add myself as a write-after-approval maintainer.
46 2011-05-05 Jerome Guitton <guitton@adacore.com>
48 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
50 (i386_stack_tramp_frame_unwind): New static global.
51 (i386_match_pattern): New function, extracted from i386_match_insn.
52 (i386_match_insn): Use i386_match_pattern.
53 (i386_match_insn_block): New function.
54 (i386_tramp_chain_in_reg_insns)
55 (i386_tramp_chain_on_stack_insns): New static variables.
56 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
59 2011-05-04 Joseph Myers <joseph@codesourcery.com>
61 * configure.host (xscale*): Don't handle target.
62 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
65 2011-05-04 Yao Qi <yao@codesourcery.com>
67 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
69 2011-05-03 Joel Brobecker <brobecker@adacore.com>
72 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
73 | * elfread.c (elf_symtab_read): Stop memory leak.
75 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
77 * nto-tdep.c (nto_target): Replace deprecated call to
78 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
80 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
82 Fix false GCC warning.
83 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
85 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
87 * breakpoint.c (update_watchpoint): Move code to change
88 the enable state of breakpoint from here ...
89 (do_enable_breakpoint): ... to here.
91 2011-04-26 Andrew Gontarek <andrewg@cray.com>
93 * valprint.c (val_print_array_elements): Fixed poor performance
94 of printing very large arrays with repeat_count_threshold set
95 to unlimited. New comment.
97 2011-04-29 Tom Tromey <tromey@redhat.com>
99 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
100 (mi_parse): Likewise.
101 * breakpoint.c (break_range_command): Use sizeof char*, not
103 (create_breakpoint): Likewise.
104 (parse_breakpoint_sals): Likewise.
106 2011-04-29 Pedro Alves <pedro@codesourcery.com>
108 * linux-nat.c (linux_child_remove_fork_catchpoint)
109 (linux_child_remove_vfork_catchpoint)
110 (linux_child_remove_exec_catchpoint): New functions.
111 (linux_target_install_ops): Install them.
113 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
117 * varobj.c (install_default_visualizer): Do not install a
118 visualizer if the varobj is CPLUS_FAKE_CHILD.
119 (construct_visualizer): Likewise.
121 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
123 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
124 case insensitive comparison.
126 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
128 * infrun.c (proceed): Revert previous change.
129 (resume): Instead, handle the case of signal delivery while stepping
130 off a breakpoint location here, and only if software single-stepping
131 is used. Handle nested signals.
133 2011-04-28 Yao Qi <yao@codesourcery.com>
135 * arm-tdep.c (copy_unmodified): Rename to ...
136 (arm_copy_unmodified): .. this. New.
137 (copy_preload): Move common part to ...
138 (install_preload): .. this. New.
139 (arm_copy_preload): New.
140 (copy_preload_reg): Move common part to ...
141 (install_preload_reg): ... this. New.
142 (arm_copy_preload_reg): New.
143 (copy_b_bl_blx): Move common part to ...
144 (install_b_bl_blx): .. this. New.
145 (arm_copy_b_bl_blx): New.
146 (copy_bx_blx_reg): Move common part to ...
147 (install_bx_blx_reg): ... this. New.
148 (arm_copy_bx_blx_reg): New.
149 (copy_alu_reg): Move common part to ...
150 (install_alu_reg): ... this. New.
151 (arm_copy_alu_reg): New.
152 (copy_alu_shifted_reg): Move common part to ...
153 (install_alu_shifted_reg): ... this. New.
154 (copy_ldr_str_ldrb_strb): Move common part to ...
155 (install_ldr_str_ldrb_strb): ... this. New.
156 (arm_copy_ldr_str_ldrb_strb): New.
157 (copy_copro_load_store): Move some common part to ...
158 (install_copy_copro_load_store): ... this. New.
159 (arm_copy_copro_load_store): New.
161 (arm_copy_svc): Renamed from copy_svc.
162 (copy_undef): Delete.
163 (arm_copy_undef): Renamed from copy_undef.
164 (decode_ext_reg_ld_st): Delete.
165 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
166 (decode_svc_copro): Delete.
167 (arm_decode_svc_copro): Renamed from decode_svc_copro.
168 (copy_copro_load_store, copy_alu_imm): update callers.
169 (copy_extra_ld_st, copy_block_xfer): Likewise.
170 (decode_misc_memhint_neon, decode_unconditional): Likewise.
171 (decode_miscellaneous, decode_dp_misc): Likewise.
172 (decode_ld_st_word_ubyte, decode_media): Likewise.
173 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
174 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
175 (decode_unconditional, decode_miscellaneous): Likewise.
176 (decode_media, decode_b_bl_ldmstm): Likewise.
177 (arm_process_displaced_insn): Likewise..
178 (decode_misc_memhint_neon): Delete.
179 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
180 (decode_miscellaneous): Delete.
181 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
182 (decode_dp_misc): Delete.
183 (arm_decode_dp_misc): Renamed from decode_dp_misc.
184 (decode_ld_st_word_ubyte): Delete.
185 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
186 (decode_media): Delete.
187 (arm_decode_media): Renamed from decode_media.
188 (decode_b_bl_ldmstm): Delete.
189 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
190 (decode_ext_reg_ld_st): Delete.
191 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
192 (decode_unconditional): Delete.
193 (arm_decode_unconditional): Renamed from decode_unconditional.
195 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
197 Case insensitive lookups implementation.
198 * dwarf2read.c: Include ctype.h.
199 (struct mapped_index): New field version.
200 (mapped_index_string_hash): New parameter index_version. New comment
201 for it. Call tolower appropriately.
202 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
203 Choose the right index version for mapped_index_string_hash.
204 (dwarf2_read_index): Support also the index version 5. Initialize the
205 new struct mapped_index field version.
206 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
207 (find_slot): Explain the version needs. Pass INT_MAX for the new
209 (write_psymtabs_to_index): Produce version 5.
210 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
211 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
212 * psymtab.c (lookup_partial_symbol): Find the
213 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
215 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
217 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
218 (completion_list_add_name): New variable ncmp, initialize it, use it.
219 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
220 * utils.c (strcmp_iw): Support case_sensitive_off.
221 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
222 New function comment part. New variables saved_string1,
223 saved_string2 and case_pass. Add a proper second pass.
225 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
227 Replace re_comp/re_exec by regcomp/regexec.
228 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
229 (search_symbols_name_matches): Use them, use regexec.
230 (search_symbols): New variable retval_chain, adjust the use of
231 old_chain against it. Replace re_comp by regcomp. Use the new struct
232 search_symbols_data fields, use regexec instead of re_exec.
234 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
236 Format the code for the next patch.
237 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
238 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
239 New variables c1 and c2.
241 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
243 * infrun.c (proceed): Do not single-step into signal delivery
244 when stepping off a breakpoint location.
245 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
246 (insert_step_resume_breakpoint_at_caller): Likewise.
247 (insert_step_resume_breakpoint_at_sal): Likewise.
248 (insert_longjmp_resume_breakpoint): Likewise.
250 2011-04-27 Yao Qi <yao@codesourcery.com>
252 * common/linux-ptrace.h: Remove include <sys/wait.h>.
254 2011-04-27 Joel Brobecker <brobecker@adacore.com>
256 * procfs.c (procfs_pass_signals): Fix advance declaration.
258 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
260 * target.h (struct target_ops): Remove to_notice_signals;
262 (target_notice_signals): Remove.
263 (target_pass_signals): Add prototype.
264 * target.c (update_current_target): Remove to_notice_signals;
265 mention to_pass_signals.
266 (target_pass_signals): New function.
267 (debug_to_notice_signals): Remove.
268 (setup_target_debug): Do not install debug_to_notice_signals.
270 * infrun.c (signal_pass): New global.
271 (resume): Call target_pass_signals.
272 (handle_inferior_event): Report all signals while stepping over
273 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
274 are re-inserted when stepping over a signal handler.
275 (signal_cache_update): New function.
276 (signal_stop_update): Call it.
277 (signal_print_update): Likewise.
278 (signal_pass_update): Likewise.
279 (handle_command): Call signal_cache_update and target_pass_signals
280 instead of target_notice_signals.
281 (_initialize_infrun): Initialize signal_pass.
283 * linux-nat.c (pass_mask): New global.
284 (linux_nat_pass_signals): New function.
285 (linux_nat_create_inferior): Report all signals initially.
286 (linux_nat_attach): Likewise.
287 (linux_nat_resume): Use pass_mask to decide whether to directly
288 handle an inferior signal.
289 (linux_nat_wait_1): Likewise.
290 (linux_nat_add_target): Install to_pass_signals callback.
292 * nto-procfs.c (notice_signals): Remove.
293 (procfs_resume): Do not call notice_signals.
294 (procfs_notice_signals): Remove.
295 (procfs_pass_signals): New function.
296 (init_procfs_ops): Install to_pass_signals callback instead of
297 to_notice_signals callback.
298 (_initialize_procfs): Report all signals initially.
300 * procfs.c (procfs_notice_signals): Remove.
301 (procfs_pass_signals): New function.
302 (procfs_target): Install to_pass_signals callback instead of
303 to_notice_signals callback.
304 (register_gdb_signals): Remove.
305 (procfs_debug_inferior): Report all signals initially.
306 (procfs_init_inferior): Remove redundant register_gdb_signals call.
308 * remote.c (remote_pass_signals): Add numsigs and pass_signals
309 parameters; use them instead of calling signal_..._state routines.
310 (remote_notice_signals): Remove.
311 (remote_start_remote): Report all signals initially.
312 (remote_resume): Do not call remote_pass_signals.
313 (_initialize_remote): Install to_pass_signals callback instead of
314 to_notice_signals callback.
316 2011-04-27 Pedro Alves <pedro@codesourcery.com>
318 * breakpoint.c (user_settable_breakpoint): Delete.
319 (user_breakpoint_p): Remove check on user_settable_breakpoint.
320 (delete_command): Check user_breakpoint_p instead of looking at
321 the breakpoint's type.
322 (disable_command): Ditto.
323 (enable_command): Ditto.
324 (delete_trace_command): Use user_breakpoint_p instead of looking
325 at the breakpoint number directly. When checking if there are
326 user visible tracepoints, in order to know whether to ask the user
327 for confirmation, check whether the breakpoint is actually a
330 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
332 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
335 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
337 MI breakpoint notifications.
339 * annotate.c (breakpoint_changed): Adjust parameter type.
340 * breakpoint.c (set_breakpoint_condition): Adjust to change
341 in breakpoint_modified type.
342 (breakpoint_set_commands): Likewise.
343 (do_map_commands_command): Likewise.
344 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
345 changed after bumping hit count.
346 (bpstat_stop_status): Likewise.
347 (print_one_breakpoint_location): Don't wrap in tuple here.
348 (print_one_breakpoint): Always print individual locations.
349 For locations, use unnamed tuple.
350 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
352 (create_catchpoint, create_syscall_event_catchpoint): Call
353 breakpoint_created obsever.
354 (mention): Don't call breakpoint_created observer.
355 (create_breakpoint_sal): Call breakpoint_created observer.
356 (create_breakpoint, watch_command_1): Likewise.
357 (create_ada_exception_breakpoint): Likewise.
358 (delete_breakpoint): Call breakpoint_deleted breakpoint.
359 (locations_are_equal): New.
360 (update_breakpoint_locations): If locations were changed, notify.
361 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
362 Call breakpoint_modified observer.
364 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
365 (mi_cmd_break_insert): Don't set observers for modify and delete.
366 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
367 (mi_breakpoint_created, mi_breakpoint_deleted)
368 (mi_breakpoint_modified): New.
369 (mi_interpreter_init): Hook the above.
370 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
371 while -break-* commands are executing.
372 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
373 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
375 (mi_ui_out_impl): Hook in mi_redirect.
376 (mi_field_skip): True to the name, skip the field, don't output
377 a field with an empty value.
379 * python/py-breakpoint.c (gdbpy_breakpoint_created)
380 (gdbpy_breakpoint_deleted): Adjust.
381 * tui/tui-hooks.c (tui_event_create_breakpoint)
382 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
384 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
386 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
387 (procfs_remove_hw_watchpoint): Likewise.
389 2011-04-26 Michael Walle <michael@walle.cc>
391 * remote.c (remote_start_remote): Ack packet after sending the
394 2011-04-26 Yao Qi <yao@codesourcery.com>
396 * linux-nat.c: Move common macros to ...
397 Include linux-ptrace.h.
398 * common/linux-ptrace.h: ... here. New.
400 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
402 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
403 !objfile_has_partial_symbols. New comment.
404 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
405 SYM_READ_PSYMBOLS is not present. Extend the comment.
406 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
408 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
410 * defs.h (ENUM_BITFIELD): Remove.
412 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
413 Eli Zaretskii <eliz@gnu.org>
415 * NEWS: Document the new gdbserver --once option.
417 2011-04-21 Jie Zhang <jzhang918@gmail.com>
419 * MAINTAINERS: Update my email address.
421 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
423 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
424 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
425 function call if __STDC_ISO_10646__ macro is defined.
426 (intermediate_encoding): New prototype.
427 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
428 to generate compile time error for unsupported gdb_wchar_t size.
429 (ENDIAN_SUFFIX): New macro.
430 (intermediate_encoding): New function.
432 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
434 * ada-lang.c (struct add_partial_datum): Update the comment for
435 expand_partial_symbol_name.
436 (ada_add_partial_symbol_completions): Rename to ...
437 (ada_expand_partial_symbol_name): ... here, change return type, update
438 function comment, call symbol_completion_match instead of
439 symbol_completion_add.
440 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
441 and ada_expand_partial_symbol_name.
442 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
444 (dw2_map_symbol_names): Remove.
445 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
446 * psymtab.c (map_symbol_names_psymtab): Remove.
447 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
448 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
450 (psym_functions): Unlist map_symbol_names_psymtab.
451 (map_partial_symbol_names): Rename to ...
452 (expand_partial_symbol_names): ... here, change the FUN type, call
453 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
454 * psymtab.h (map_partial_symbol_names): Rename to ...
455 (expand_partial_symbol_names): ... here, change the FUN type.
456 * symfile.h (struct quick_symbol_functions): Update the description of
457 expand_symtabs_matching. Remove map_symbol_names.
458 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
459 (struct add_name_data): Update the comment for
460 expand_partial_symbol_name.
461 (add_partial_symbol_name): Rename to ...
462 (expand_partial_symbol_name): ... here. Replace
463 completion_list_add_name call by strncmp.
464 (default_make_symbol_completion_list_break_on): Use now
465 expand_partial_symbol_names and expand_partial_symbol_name.
466 * symtab.h (enum search_domain): New element ALL_DOMAIN.
468 2011-04-20 Tom Tromey <tromey@redhat.com>
470 * dwarf2read.c (save_gdb_index_command): Replace format
471 documentation with a pointer to the manual.
473 2011-04-20 Pedro Alves <pedro@codesourcery.com>
475 * regcache.c: Include remote.h.
476 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
477 (regcache_dump): Handle regcache_dump_remote.
478 (maintenance_print_remote_registers): New function.
479 (_initialize_regcache): Install "maint print remote-registers"
481 * remote.c (map_regcache_remote_table): New function, factored out
483 (init_remote_state): ... here.
484 (remote_register_number_and_offset): New.
485 * remote.h (remote_register_number_and_offset): Declare.
487 2011-04-20 Pedro Alves <pedro@codesourcery.com>
489 * regcache.c (get_thread_arch_regcache): If creating a regcache for
490 null_ptid, assume and allow a NULL address space, instead of
491 asking the target for the ptid's address space.
492 * infrun.c (ptid_is_pid): Remove assertion.
494 2011-04-19 Tom Tromey <tromey@redhat.com>
496 * windows-tdep.c (windows_xfer_shared_library):
497 * windows-nat.c (get_module_name, windows_make_so):
498 * v850-tdep.c (v850_handle_pushm):
499 * utils.c (null_cleanup, gdb_realpath):
500 * ui-out.c (get_next_header):
501 * tracepoint.c (clear_traceframe_info):
502 * symtab.c (lookup_symtab):
503 * serial.h (struct serial_ops):
504 * mipsread.c (read_alphacoff_dynamic_symtab):
505 * infcmd.c (print_return_value):
506 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
507 * f-exp.y (parse_number):
508 * exceptions.c (catch_exceptions):
509 * dummy-frame.c (dummy_frame_this_id):
510 * defs.h (struct cleanup):
511 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
512 * arm-tdep.c (arm_push_dummy_call):
513 * amd64-tdep.h (amd64_collect_xsave):
514 * amd64-tdep.c (amd64_collect_xsave):
515 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
516 * README (typing): Remove duplicate words.
517 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
518 * infrun.c (siginfo_value_read): Fix typo.
519 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
520 * top.c (source_line_number): Add comma.
522 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
524 * thread.c (any_live_thread_of_process): Prioritize threads
525 that are not executing.
526 * gdbthread.h (any_live_thread_of_process): Update comment
529 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
531 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
532 (scan_xcoff_symtab): Likewise.
534 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
536 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
539 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
540 Pedro Alves <pedro@codesourcery.com>
542 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
543 variables to simplify code and avoid == operator at end of
544 line as this is against GNU coding standards.
546 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
548 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
549 lm_name to name_lm to avoid conflict with lm_name function.
551 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
553 ARI fixes: Use only lowercase function name for static functions.
554 * nto-tdep.c (LM_ADDR): Rename to...
555 (lm_addr): New function name.
556 (nto_relocate_section_addresses): Adapt to change above.
557 * solib-sunos.c (LM_ADDR): Rename to...
558 (lm_addr): New function name.
559 (LM_NEXT): Rename to...
560 (lm_next): New function name.
561 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
562 function name changes above.
563 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
564 (lm_addr_from_link_map): New function name.
565 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
566 (has_lm_dynamic_from_link_map): New function name.
567 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
568 (lm_dynamic_from_link_map): New function name.
569 (LM_ADDR_CHECK): Rename to...
570 (lm_addr_check): New function name.
571 (LM_NEXT): Rename to...
572 (lm_next): New function name.
573 (LM_PREV): Rename to...
574 (lm_prev): New function name.
575 (LM_NAME): Rename to...
576 (lm_name): New function name.
577 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
578 (ignore_first_link_map_entry): New function name.
579 (svr4_keep_data_in_core): Adapt to function name changes above.
580 (svr4_current_sos): Likewise.
581 (enable_break): Likewise.
582 (svr4_relocate_section_addresses): Likewise.
584 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
587 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
588 sprintf. Simplify code and avoid loosing memory.
589 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
590 (call0_frame_cache): Remove && operator from end of line.
592 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
594 Fix libraries displacement if they change whether they were prelinked.
595 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
596 does not match. Comment why.
598 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
600 * corelow.c: Include wrapper.h.
601 (core_open): Call now gdb_target_find_new_threads.
602 * wrapper.c: Include target.h.
603 (gdb_target_find_new_threads): New.
604 * wrapper.h (gdb_target_find_new_threads): New declaration.
606 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
608 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
609 even if !TARGET_HAS_EXECUTION.
611 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
613 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
614 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
615 bfd_get_synthetic_symtab.
616 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
617 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
618 parameter parent, remove the call to add_separate_debug_objfile.
619 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
620 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
621 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
622 parent, new comment for it, call add_separate_debug_objfile for it.
623 (symbol_file_add_separate): Pass objfile as the parameter parent,
624 remove the call to add_separate_debug_objfile.
625 (symbol_file_add_from_bfd): New parameter parent, pass it.
626 (symbol_file_add): Pass NULL to the new parameter parent.
627 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
629 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
631 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
634 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
636 Fix Python access to inlined frames.
637 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
638 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
640 2011-04-15 Tom Tromey <tromey@redhat.com>
642 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
644 2011-04-15 Gary Benson <gbenson@redhat.com>
646 * MAINTAINERS: Add myself to write-after-approval section.
648 2011-04-14 Mike Frysinger <vapier@gentoo.org>
650 * remote-sim.c (sim_command_completer): New function.
651 (_initialize_remote_sim): Set completer to sim_command_completer.
653 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
655 * breakpoint.c (print_exception_catchpoint): Rename to ...
656 (print_it_exception_catchpoint): ... this.
657 (gnu_v3_exception_catchpoint_ops): Update with new name
658 for print_it_exception_catchpoint.
660 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
662 * MAINTAINERS: Add myself for write after approval privileges.
664 2011-04-13 Marek Polacek <mpolacek@redhat.com>
666 * MAINTAINERS: Add myself as a write-after-approval maintainer.
668 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
670 * breakpoint.c (watch_command_1): Remove colon from exp_string.
672 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
674 * breakpoint.c (save_breakpoints): Verify whether
675 breakpoint_ops.print_recreate is defined before calling it.
677 2011-04-11 Gary Benson <gbenson@redhat.com>
679 Fix failure with --enable-maintainer-mode.
680 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
682 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
685 * symtab.c (search_symbols): Reorder the KIND description in the
686 function comment. Remove the unused 4th element of types, types2,
687 types3 and types4. New gdb_assert on KIND.
688 (symtab_symbol_info): Remove the unused 4th element of classnames.
689 New gdb_assert on KIND.
690 * symtab.h (enum search_domain): New warning in the enum comment.
691 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
694 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
696 Fix crash of gdb save-index on a STABS file.
697 * dwarf2read.c (write_psymtabs_to_index): Return also on no
700 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
702 Fix DW_AT_accessibility compatibility with gcc-4.6+.
703 * dwarf2read.c: Include ctype.h.
704 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
706 (dwarf2_add_field): Fix new_field->accessibility by calling
707 dwarf2_default_access_attribute. Restructure setting accessibility
709 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
710 is_private and is_protected by calling
711 dwarf2_default_access_attribute.
713 2011-04-08 Kevin Buettner <kevinb@redhat.com>
715 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
716 to the initialization.
718 2011-04-08 Steve Ellcey <sje@cup.hp.com>
720 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
723 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
725 Remove support for old Cygwin 1.5 versions.
726 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
727 function on old Cygwin version.
728 * windows-nat.c: Remove cygwin version check and always define
729 __USEWIDE for Cygwin compilation.
731 2011-04-07 Yao Qi <yao@codesourcery.com>
733 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
735 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
736 (arm_copy_svc): Remove parameters INSN and TO.
737 (decode_svc_copro): Update caller.
738 * arm-tdep.h (struct displaced_step_closure): Remove parameters
739 from function pointer `copy_svc_os'.
741 2011-04-07 Yao Qi <yao@codesourcery.com>
743 * arm-tdep.c (cleanup_branch): Set a correct return address in
744 LR for ARM and Thumb.
746 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
749 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
750 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
751 in the function comment, a new note on values compatibility.
752 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
753 * symtab.h (SYMBOL_HASH_NEXT): New.
755 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
757 * ppc-linux-nat.c (check_condition): Add len output parameter.
758 Set it based on the memory region referenced in the condition
759 expression. Update all callers.
761 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
763 Fix crash regression on systems featuring .gdb_index.
764 * objfiles.c (free_objfile): Move the
765 forget_cached_source_info_for_objfile call earlier. Comment it.
766 Extend the comment for objfile_free_data.
768 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
770 Fix regression of displaying the debug format.
771 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
774 2011-04-04 Tom Tromey <tromey@redhat.com>
776 * cli/cli-interp.c (struct captured_execute_command_args):
778 (do_captured_execute_command): Remove.
779 (safe_execute_command): Use TRY_CATCH.
780 * cli/cli-script.c (struct wrapped_read_command_file_args):
782 (wrapped_read_command_file): Remove.
783 (script_from_file): Use TRY_CATCH.
784 * exceptions.c (catch_exception): Remove.
785 * exceptions.h (catch_exception): Remove.
786 (deprecated_throw_reason): Update comment.
787 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
788 argument to 'context'.
789 (mi_execute_command): Use TRY_CATCH.
790 * remote.c (struct start_remote_args): Remove.
791 (remote_start_remote): Update; change arguments.
792 (remote_open_1): Use TRY_CATCH.
794 2011-04-04 Tom Tromey <tromey@redhat.com>
796 * tracepoint.c (scope_info): Update.
797 * symtab.c (decode_line_spec): Update.
798 * python/python.c (gdbpy_decode_line): Update.
799 * linespec.h (decode_line_1): Update.
800 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
801 (decode_compound, find_method, symtab_from_filename)
802 (decode_variable): Likewise.
803 * cli/cli-cmds.c (edit_command): Update.
804 (list_command): Update.
805 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
807 (create_breakpoint): Update.
808 (until_break_command): Update.
809 (addr_string_to_sals): Update.
810 (decode_line_spec_1): Update.
812 2011-04-04 Tom Tromey <tromey@redhat.com>
814 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
815 (do_captured_parse_breakpoint): Remove.
816 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
817 Use TRY_CATCH directly.
819 2011-04-04 Tom Tromey <tromey@redhat.com>
821 * symtab.h (free_symtab): Remove.
822 (forget_cached_source_info_for_objfile): Declare.
823 * symmisc.c (free_symtab): Remove.
824 * source.c (forget_cached_source_info_for_objfile): New function.
825 (forget_cached_source_info): Use it.
826 * objfiles.c (free_objfile): Simplify check before calling
827 clear_current_source_symtab_and_line. Call
828 forget_cached_source_info_for_objfile.
830 2011-04-04 Tom Tromey <tromey@redhat.com>
832 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
833 (new_symtab): Don't set `free_code' on symtab.
834 (new_linetable): Properly handle size==0.
835 * symtab.h (struct symtab) <free_code, free_func>: Remove.
836 * symmisc.c (free_symtab): Don't free the linetable. Don't call
838 * jv-lang.c (struct jv_per_objfile_data): New.
839 (jv_per_objfile_free): Free the data.
840 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
841 (get_java_class_symtab): Set the `dict' field on the
843 (free_class_block): Remove.
844 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
847 2011-04-04 Tom Tromey <tromey@redhat.com>
849 * symfile.c (reread_symbols): Update.
850 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
852 * objfiles.c (allocate_objfile): Update.
853 * cp-support.h (cp_check_possible_namespace_symbols): Don't
855 * cp-namespace.c (lookup_symbol_file): Don't call
856 lookup_possible_namespace_symbol.
857 (initialize_namespace_symtab, get_possible_namespace_block)
858 (free_namespace_block, cp_check_possible_namespace_symbols)
859 (check_possible_namespace_symbols_loop)
860 (check_one_possible_namespace_symbol)
861 (lookup_possible_namespace_symbol): Remove.
862 (maintenance_cplus_namespace): Replace with notice.
863 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
865 2011-04-04 Tom Tromey <tromey@redhat.com>
867 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
868 * symtab.h (struct symtab) <producer, debugformat>: Now const.
869 * symmisc.c (free_symtab): Don't free debugformat.
870 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
871 (record_debugformat, record_producer): Document.
872 * buildsym.c (end_symtab): Don't save debugformat and producer
874 (end_symtab): Don't free debugformat and producer fields.
875 (record_debugformat): Don't call xstrdup.
876 (record_producer): Likewise.
878 2011-04-04 Tom Tromey <tromey@redhat.com>
880 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
881 (source_line_charpos, source_charpos_line): Remove.
883 2011-04-04 Tom Tromey <tromey@redhat.com>
885 * symtab.h (domain_enum): Split in two...
886 (enum search_domain): New.
887 (search_symbols): Update.
888 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
889 redundant declarations.
890 (search_symbols): Change 'kind' argument to search_domain.
892 (print_symbol_info): Likewise.
893 (symtab_symbol_info): Likewise.
894 * symfile.h (struct quick_symbol_functions)
895 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
896 <expand_symtabs_matching>: Likewise.
897 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
898 (expand_symtabs_matching_via_partial): Update.
899 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
900 (dw2_expand_symtabs_for_function): Update.
901 * block.h: Moved anonymous enum...
902 * defs.h (enum block_enum): ... here. Now named.
904 2011-04-03 Joel Brobecker <brobecker@adacore.com>
906 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
907 * version.in: Bump version to 7.3.50.20110403-cvs.
909 2011-04-03 Joel Brobecker <brobecker@adacore.com>
911 * NEWS: Create a new section for the next release branch.
912 Rename the section of the current branch, now that it has
915 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
917 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
918 for "fpscr" in target description.
920 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
922 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
923 initialize it. Delay HASH initialization. Strip the part after open
924 parenthesis for languages with qualifiers. Call do_cleanups.
926 2011-04-01 Tom Tromey <tromey@redhat.com>
928 * utils.c (report_command_stats): Don't print `-' for negative
931 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
933 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
934 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
937 2011-04-01 Joel Brobecker <brobecker@adacore.com>
939 * breakpoint.h (bpdisp_text): Add declaration.
940 * breakpoint.c (bpdisp_text): Make non-static.
941 * ada-lang.c: #include "mi/mi-common.h".
942 (print_it_exception): Rewrite to improve GDB/MI output.
944 2011-04-01 Pedro Alves <pedro@codesourcery.com>
946 * arm-tdep.h (struct address_space): Add forward declaration.
948 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
950 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
951 * arm-tdep.c (arm_override_mode): New global.
952 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
953 execution mode heuristics.
954 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
955 second single-step breakpoint if needed, using
956 arm_insert_single_step_breakpoint.
957 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
958 ARM execution mode, do not call thumb_get_next_pc_raw.
959 (arm_get_next_pc): Encode execution mode in return value. Call
960 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
961 (arm_insert_single_step_breakpoint): New function.
962 (arm_software_single_step): Call it.
963 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
964 argument to return execution mode of sigreturn target.
965 (arm_linux_syscall_next_pc): Use it.
966 (arm_linux_copy_svc): Update call.
967 (arm_linux_software_single_step): Call
968 arm_insert_single_step_breakpoint.
970 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
972 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
975 2011-03-31 Tom Tromey <tromey@redhat.com>
977 * varobj.c (update_dynamic_varobj_children): Properly handle
978 errors from iterator.
980 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
982 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
983 struct linkage name twice.
985 2011-03-31 Tom Tromey <tromey@redhat.com>
987 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
988 missing ">" to message.
990 2011-03-31 Tom Tromey <tromey@redhat.com>
992 * varobj.c (instantiate_pretty_printer): Remove duplicate
995 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
997 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
998 if neither saved value nor register available (e.g. signal frame).
1000 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1002 * macroexp.c (expand): Avoid uninitialized variable
1005 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1007 * breakpoint.c (break_range_command): Fix typo in comment.
1009 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1010 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1012 Implement support for PowerPC BookE ranged breakpoints.
1013 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
1014 * breakpoint.h (struct bp_target_info) <length>: New member
1016 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
1017 instead of struct breakpoint as argument, and also add ASPACE
1018 and BP_ADDR arguments. Update all callers.
1019 (struct breakpoint_ops) <print_one_detail>: New method.
1020 (struct breakpoint) <addr_string_range_end>: New member variable.
1021 * breakpoint.c (breakpoint_location_address_match): Add function
1023 (insert_bp_location): Set bl->target_info.length.
1024 (breakpoint_here_p): Call breakpoint_location_address_match.
1025 (moribund_breakpoint_here_p): Likewise.
1026 (regular_breakpoint_inserted_here_p): Likewise.
1027 (breakpoint_thread_match): Likewise.
1028 (bpstat_stop_status): Likewise.
1029 (bpstat_check_location): Move call to
1030 breakpoint_ops.breakpoint_hit to the top.
1031 (print_one_breakpoint_location): Call
1032 breakpoint_ops.print_one_detail if available.
1033 (breakpoint_address_match_range): New function.
1034 (breakpoint_location_address_match): Likewise.
1035 (breakpoint_locations_match): Compare the length field of the
1037 (hw_breakpoint_used_count): Count resources used by all locations
1038 in a breakpoint, and use breakpoint_ops.resources_needed if
1040 (breakpoint_hit_ranged_breakpoint): New function.
1041 (resources_needed_ranged_breakpoint): Likewise.
1042 (print_it_ranged_breakpoint): Likewise.
1043 (print_one_ranged_breakpoint): Likewise.
1044 (print_one_detail_ranged_breakpoint): Likewise.
1045 (print_mention_ranged_breakpoint): Likewise.
1046 (print_recreate_ranged_breakpoint): Likewise.
1047 (ranged_breakpoint_ops): New structure.
1048 (find_breakpoint_range_end): New function.
1049 (break_range_command): Likewise.
1050 (delete_breakpoint): Free addr_string_range_end.
1051 (update_breakpoint_locations): Add SALS_END argument. Update
1052 all callers. Calculate breakpoint length if a non-zero SALS_END
1053 is given. Call breakpoint_locations_match instead of
1054 breakpoint_address_match.
1055 (reset_breakpoint): Find SaL of the end of the range if B is a
1057 (_initialize_breakpoint): Register break-range command.
1058 * defs.h (print_core_address): Add function prototype.
1059 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
1061 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
1062 (ppc_linux_remove_hw_breakpoint): Likewise.
1063 (_initialize_ppc_linux_nat): Initialize
1064 to_ranged_break_num_registers.
1065 * target.c (update_current_target): Add comment about
1066 to_ranged_break_num_registers.
1067 (target_ranged_break_num_registers): New function.
1068 * target.h (struct target_ops) <to_ranged_break_num_registers>:
1070 (target_ranged_break_num_registers): Add function prototype.
1071 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
1072 * utils.c (print_core_address): ... here.
1074 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
1076 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
1077 variable compiler warning.
1079 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
1081 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
1083 (re_set_breakpoint): ... to here ...
1084 (addr_string_to_sals): ... and here.
1086 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
1088 * Makefile.in (SFILES): Add missing C sources.
1089 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
1090 Add missing headers.
1092 2011-03-29 Mike Frysinger <vapier@gentoo.org>
1094 * .gitignore: New file.
1096 2011-03-29 Mike Frysinger <vapier@gentoo.org>
1098 * NEWS: Mention new cfi device simulation.
1100 2011-03-29 Tom Tromey <tromey@redhat.com>
1102 * dwarf2read.c (fixup_partial_die): Handle linkage name on
1103 otherwise anonymous types.
1104 (dwarf2_name): Likewise.
1105 * valops.c (value_struct_elt_for_reference): Refine artificial
1106 type logic. Call error if j==-1.
1108 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
1110 Fix false GCC warning.
1111 * infcall.c (find_function_addr): Initialize funaddr.
1113 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
1115 Fix mingw compilation with --enable-targets=all.
1116 * remote-mips.c (gdb_usleep.h): Include header.
1117 (mips_enter_debug): Use gdb_usleep instead of sleep.
1119 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1121 Support resolution of STT_GNU_IFUNC via breakpoints.
1122 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
1123 bp_gnu_ifunc_resolver_return.
1124 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
1125 the loop. Support bp_gnu_ifunc_resolver and
1126 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
1127 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
1129 (bptype_string, print_one_breakpoint_location): Support
1130 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
1131 (user_settable_breakpoint): Return true also for
1132 bp_gnu_ifunc_resolver.
1133 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
1134 bp_gnu_ifunc_resolver_return.
1135 (set_breakpoint_location_function): New parameter explicit_loc,
1136 describe it. Call find_pc_partial_function_gnu_ifunc with new
1137 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
1138 EXPLICIT_LOC is not set.
1139 (set_raw_breakpoint): Set EXPLICIT_LOC for
1140 set_breakpoint_location_function.
1141 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
1142 set_breakpoint_location_function.
1143 (mention): Support bp_gnu_ifunc_resolver and
1144 bp_gnu_ifunc_resolver_return.
1145 (add_location_to_breakpoint): Set EXPLICIT_LOC for
1146 set_breakpoint_location_function.
1147 (update_breakpoint_locations): Remove static.
1148 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
1149 bp_gnu_ifunc_resolver_return.
1150 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
1151 bp_gnu_ifunc_resolver_return.
1152 (update_breakpoint_locations): New declaration.
1153 * elfread.c: Include gdbthread.h and regcache.h.
1154 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
1156 (elf_gnu_ifunc_fns): Install them.
1157 * minsyms.c (stub_gnu_ifunc_resolver_stop)
1158 (stub_gnu_ifunc_resolver_return_stop): New functions.
1159 (stub_gnu_ifunc_fns): Install them.
1160 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
1161 and gnu_ifunc_resolver_return_stop.
1162 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
1164 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1166 STT_GNU_IFUNC reader implementation.
1167 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
1168 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
1169 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
1170 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
1171 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
1172 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
1173 (elf_gnu_ifunc_resolve_addr): New.
1174 (elf_symfile_read): Call elf_rel_plt_read.
1175 (elf_gnu_ifunc_fns): New.
1176 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
1177 Install elf_gnu_ifunc_fns.
1178 * infcall.c (find_function_return_type): New function.
1179 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
1180 * minsyms.c (stub_gnu_ifunc_resolve_addr)
1181 (stub_gnu_ifunc_resolve_name): New functions.
1182 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
1183 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
1184 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
1186 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1188 Code cleanup for later STT_GNU_IFUNC support.
1189 * infcall.c (find_function_addr): Remove variable code, use explicit
1190 dereferences for it. Move VALUE_TYPE initialization later.
1192 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1194 GDB find_pc_partial_function support for STT_GNU_IFUNC.
1195 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
1196 (clear_pc_function_cache): Clear it.
1197 (find_pc_partial_function): Rename to ...
1198 (find_pc_partial_function_gnu_ifunc): ... this function. New
1199 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
1200 (find_pc_partial_function): New wrapper for this function.
1201 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
1203 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1205 GDB internal type support for STT_GNU_IFUNC.
1206 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
1207 (elf_symtab_read): Set mst_text_gnu_ifunc for
1208 BSF_GNU_INDIRECT_FUNCTION.
1209 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
1210 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
1211 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
1212 nodebug_got_plt_symbol.
1213 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
1214 (TYPE_GNU_IFUNC): New.
1215 (struct main_type): New field flag_gnu_ifunc.
1216 (struct builtin_type): New field builtin_func_func.
1217 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
1218 nodebug_got_plt_symbol.
1219 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
1220 (in_gnu_ifunc_stub): New.
1221 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
1223 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
1224 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
1225 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
1227 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
1228 * symtab.c (search_symbols): Likewise.
1229 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
1230 and mst_slot_got_plt.
1231 (in_gnu_ifunc_stub): New declaration.
1233 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1235 Support a ring of related breakpoints.
1236 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
1237 other functions, add gdb_assert.
1238 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
1239 watchpoint_del_at_next_stop.
1240 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
1241 (bpstat_stop_status): Handle ring in related_breakpoint.
1242 (set_raw_breakpoint_without_location): Initialize ring in
1244 (delete_breakpoint): Handle ring in related_breakpoint, use
1245 watchpoint_del_at_next_stop.
1246 (map_breakpoint_numbers): Handle ring in related_breakpoint.
1248 2011-03-28 Tom Tromey <tromey@redhat.com>
1251 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
1252 with `language_minimal'.
1254 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
1256 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
1257 instead of checking for STT_ARM_TFUNC symbol type.
1259 2011-03-25 Tom Tromey <tromey@redhat.com>
1261 * linespec.c (symbol_found): Restore line-based result for
1262 non-LOC_LABEL symbols.
1264 2011-03-25 Kai Tietz <ktietz@redhat.com>
1266 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
1267 instead of strcmp for comparison.
1268 (tui_source_is_displayed): Likewise.
1269 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
1271 2011-03-24 Mark Wielaard <mjw@redhat.com>
1273 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
1275 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
1276 (find_partial_die_in_comp_unit): Likewise in comment.
1277 (read_attribute_value): Likewise.
1278 (lookup_die_type): Likewise.
1279 (dwarf_form_name): Likewise.
1280 (dump_die_shallow): Likewise.
1281 (follow_die_ref_or_sig): Likewise.
1283 2011-03-24 Tom Tromey <tromey@redhat.com>
1285 PR breakpoints/11816:
1286 * linespec.c (decode_line_1): Parse `function:label' linespecs.
1287 (decode_compound): Update.
1288 (find_function_symbol): New function.
1289 (decode_dollar): Update.
1290 (decode_label): Add 'function_symbol' parameter. Handle
1291 function-relative labels.
1292 (decode_variable): Update.
1293 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
1294 not its line. Set `special_display' and canonical name for
1297 2011-03-24 Tom Tromey <tromey@redhat.com>
1299 * linespec.h (struct linespec_result) <special_display>: New
1301 * breakpoint.h (struct breakpoint) <display_canonical>: New
1303 * breakpoint.c (print_breakpoint_location): Respect
1305 (create_breakpoint_sal): Add 'display_canonical' parameter.
1306 (create_breakpoints_sal): Update.
1307 (create_breakpoint): Update.
1309 2011-03-24 Tom Tromey <tromey@redhat.com>
1311 * symtab.c (decode_line_spec): Update.
1312 * linespec.c (build_canonical_line_spec): Change type of
1314 (decode_line_2, decode_line_1, decode_objc, decode_compound)
1315 (find_method, decode_all_digits, decode_dollar, decode_label)
1316 (symbol_found): Likewise.
1317 (init_linespec_result): New function.
1318 * breakpoint.c (struct captured_parse_breakpoint_args)
1319 <canonical_p>: New field, replaces addr_string_p.
1320 (create_breakpoints_sal): Add 'canonical' parameter, replacing
1322 (parse_breakpoint_sals): Likewise.
1323 (do_captured_parse_breakpoint): Update.
1324 (create_breakpoint): Use struct linespec_result.
1325 (until_break_command): Update.
1326 (breakpoint_re_set_one): Update.
1327 (decode_line_spec_1): Update.
1328 * linespec.h (struct linespec_result): New.
1329 (init_linespec_result): Declare.
1331 2011-03-23 Pedro Alves <pedro@codesourcery.com>
1333 * regcache.c (regcache_raw_read): If the target didn't supply a
1334 given raw register, mark it as unavailable.
1336 2011-03-23 Kai Tietz <ktietz@redhat.com>
1338 * breakpoint.c (clear_command): Use filename_cmp
1339 instead of strcmp for comparison.
1340 * buildsym.c (watch_main_source_file_lossage): Likewise.
1341 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
1342 checking just for slash.
1343 * dbxread.c (read_dbx_symtab): Use lbasename instead of
1344 strrchr and filename_cmp instead of strcmp for filenames.
1345 (add_old_header_file): Use filename_cmp
1346 instead of strcmp for comparison.
1347 * exec.c (exec_set_section_address): Likewise.
1348 * macrotab.c (macro_lookup_inclusion): Likewise.
1349 (macro_lookup_inclusion): Likewise.
1350 * elfread.c (_initialize_elfread): Likewise.
1351 (elfstab_offset_sections): Likewise.
1352 (elfstab_offset_sections): Use lbasename instead of
1354 * mdebugread.c (parse_partial_symbols): Likewise.
1355 (arse_partial_symbols): Use filename_(n)cmp instead of
1356 str(n)cmp for comparison.
1357 * minsyms.c (lookup_minimal_symbol): Likewise.
1358 * psymtab.c (read_psymtabs_with_filename): Likewise.
1359 * solib.c (solib_read_symbols): Likewise.
1360 (reload_shared_libraries_1): Likewise.
1361 * symmisc.c (maintenance_print_symbols): Likewise.
1362 * symfile.c (separate_debug_file_exists): Likewise.
1363 (reread_symbols): Likewise.
1364 (find_separate_debug_file_by_debuglink): Likewise.
1365 * remote-fileio.c (remote_fileio_func_rename): Likewise.
1366 * source.c (add_path): Likewise.
1367 * symtab.c (filename_seen): Likewise.
1368 (file_matches): Likewise.
1369 (print_symbol_info): Likewise.
1370 (maybe_add_partial_symtab_filename): Likewise.
1371 (make_source_files_completion_list): Likewise.
1372 * xml-syscall.c (init_sysinfo): Likewise.
1373 * windows-nat.c (_initialize_check_for_gdb_ini): Use
1374 IS_DIR_SEPARATOR for checking for trailing path separator.
1376 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1378 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
1379 label abort_expression.
1380 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
1381 DWARF_VALUE_OPTIMIZED_OUT.
1383 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1386 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
1387 to linkage_name. Invert its value. Update the function comment.
1388 (c_type_print_varspec_suffix): Invert it at the caller.
1389 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
1391 2011-03-22 Pedro Alves <pedro@codesourcery.com>
1393 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
1394 errors when reading the `stop_pc'.
1395 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
1398 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
1400 * NEWS: Document gdb.Write stream keyword.
1402 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1405 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1406 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
1407 (dwarf2_add_field): Fix new_field->accessibility for
1408 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
1410 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
1414 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
1415 other error classes. Do not print stack trace.
1417 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1419 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
1420 (dwarf2_add_field): Fix new_field->accessibility for
1421 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
1423 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
1425 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
1426 encountering a load via a non-SP register.
1428 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
1430 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
1431 field in returned unwinder.
1433 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1435 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
1437 2012-03-21 Joel Brobecker <brobecker@adacore.com>
1439 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
1442 2012-03-18 Pedro Alves <pedro@codesourcery.com>
1444 * frame.c (frame_unwind_register): Throw an error if unwinding the
1446 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
1447 an unwind stop reason.
1448 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
1449 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
1450 UNWIND_UNAVAILABLE>: New.
1451 * inline-frame.c (inline_frame_unwind): Install
1452 default_frame_unwind_stop_reason.
1453 * frame-unwind.c: Include "exceptions.h".
1454 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
1455 (default_frame_unwind_stop_reason): New.
1456 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
1457 (default_frame_unwind_stop_reason): Declare.
1458 (struct frame_unwind) <stop_reason>: New function pointer.
1460 * dummy-frame.c: Install default_frame_unwind_stop_reason.
1461 * dwarf2-frame.c: Include exceptions.h.
1462 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
1463 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
1464 computing the CFA. If such an error was thrown, set
1465 unavailable_retaddr.
1466 (dwarf2_frame_unwind_stop_reason): New.
1467 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
1469 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
1470 (dwarf2_signal_frame_unwind): Ditto.
1472 * amd64-tdep.c: Include "exceptions.h".
1473 (struct amd64_frame_cache): New field "base_p".
1474 (amd64_init_frame_cache): Clear it.
1475 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
1476 Avoid reading registers with functions that throw if the register
1477 is not necessary to compute the frame base.
1478 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
1479 swallowing NOT_AVAILABLE_ERROR.
1480 (amd64_frame_unwind_stop_reason): New.
1481 (amd64_frame_this_id): Don't build a frame id if the frame base
1483 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
1484 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1485 base_p if the frame base was computable.
1486 (amd64_sigtramp_frame_unwind_stop_reason): New.
1487 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
1488 frame base was unavailable.
1489 (amd64_sigtramp_frame_unwind): Install
1490 amd64_sigtramp_frame_unwind_stop_reason.
1491 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1492 base_p if the frame base was computable.
1493 (amd64_epilogue_frame_unwind_stop_reason): New.
1494 (amd64_epilogue_frame_this_id): Don't build a frame id if the
1495 frame base was unavailable.
1496 (amd64_epilogue_frame_unwind): Install
1497 amd64_epilogue_frame_unwind_stop_reason.
1498 * i386-tdep.c: Include "exceptions.h".
1499 (struct i386_frame_cache): New field "base_p".
1500 (i386_init_frame_cache): Clear it.
1501 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
1502 Avoid reading registers with functions that throw if the register
1503 is not necessary to compute the frame base.
1504 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
1505 swallowing NOT_AVAILABLE_ERROR.
1506 (i386_frame_unwind_stop_reason): New.
1507 (i386_frame_this_id): Don't build a frame id if the frame base was
1509 (i386_frame_prev_register): Handle unavailable SP.
1510 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
1511 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1512 base_p if the frame base was computable.
1513 (i386_epilogue_frame_unwind_stop_reason): New.
1514 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
1515 base was unavailable.
1516 (i386_epilogue_frame_unwind): Install
1517 i386_epilogue_frame_unwind_stop_reason.
1518 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1519 base_p if the frame base was computable.
1520 (i386_sigtramp_frame_unwind_stop_reason): New.
1521 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
1522 base was unavailable.
1523 (i386_sigtramp_frame_unwind): Install
1524 i386_sigtramp_frame_unwind_stop_reason.
1525 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
1526 type's size, not the register's.
1527 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
1529 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
1530 default_frame_unwind_stop_reason.
1531 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
1532 (alpha_heuristic_frame_unwind): Ditto.
1533 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
1534 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
1535 * avr-tdep.c (avr_frame_unwind): Ditto.
1536 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
1538 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
1539 * frv-tdep.c (frv_frame_unwind): Ditto.
1540 * h8300-tdep.c (h8300_frame_unwind): Ditto.
1541 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
1542 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
1543 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
1544 (hppa_stub_frame_unwind): Ditto.
1545 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
1546 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
1547 (ia64_libunwind_frame_unwind)
1548 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
1549 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
1550 * lm32-tdep.c (lm32_frame_unwind): Ditto.
1551 * m32c-tdep.c (m32c_unwind): Ditto.
1552 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
1553 * m32r-tdep.c (m32r_frame_unwind): Ditto.
1554 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
1555 * m68k-tdep.c (m68k_frame_unwind): Ditto.
1556 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
1557 * m88k-tdep.c (m88k_frame_unwind): Ditto.
1558 * mep-tdep.c (mep_frame_unwind): Ditto.
1559 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
1560 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
1561 (mips_stub_frame_unwind): Ditto.
1562 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
1563 * moxie-tdep.c (moxie_frame_unwind): Ditto.
1564 * mt-tdep.c (mt_frame_unwind): Ditto.
1565 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
1566 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
1567 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
1568 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
1569 (s390_sigtramp_frame_unwind): Ditto.
1570 * score-tdep.c (score_prologue_unwind): Ditto.
1571 * sh-tdep.c (sh_frame_unwind): Ditto.
1572 * sh64-tdep.c (sh64_frame_unwind): Ditto.
1573 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
1574 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
1575 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
1576 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
1577 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
1578 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
1579 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
1580 (sparc64obsd_trapframe_unwind): Ditto.
1581 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
1582 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
1583 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
1584 * v850-tdep.c (v850_frame_unwind): Ditto.
1585 * vax-tdep.c (vax_frame_unwind): Ditto.
1586 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
1587 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
1588 * xtensa-tdep.c (xtensa_unwind): Ditto.
1590 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1592 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
1593 there's always a frame. Use get_frame_pc_if_available instead of
1594 get_frame_pc, and if there's no PC available, don't look up a
1597 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1599 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
1602 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1604 * tracepoint.c (set_traceframe_context): Handle unavailable PC
1607 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1609 * frame.h (frame_unwind_caller_pc_if_available): Declare.
1610 * frame.c (frame_unwind_caller_pc_if_available): New.
1611 * stack.c (frame_info): Handle unavailable PC.
1613 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1615 * frame.c (frame_unwind_pc): Rename to ...
1616 (frame_unwind_pc_if_available): ... this. New `pc' output
1617 parameter. Change return type to int. Gracefully handle
1618 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
1619 happened, or 1 otherwise.
1620 (frame_unwind_pc): Reimplement on top of
1621 frame_unwind_pc_if_available.
1622 (get_frame_func): Rename to ...
1623 (get_frame_func_if_available): New `pc' output parameter. Change
1624 return type to int. Gracefully handle the PC not being available.
1625 (get_frame_func): Reimplement on top of
1626 get_frame_func_if_available.
1627 (select_frame): Handle the PC being unavailable.
1628 (get_prev_frame): Handle the PC being unavailable.
1629 (get_frame_pc_if_available): New.
1630 (get_frame_address_in_block_if_available): New.
1631 (find_frame_sal): Handle the frame PC not being available.
1632 * frame.h (get_frame_pc_if_available): Declare.
1633 (get_frame_address_in_block_if_available): Declare.
1634 (get_frame_func_if_available): Declare.
1635 * stack.c (print_frame_info): Handle the PC being unavailable.
1636 (find_frame_funname): Ditto.
1637 (print_frame): Handle the PC being unavailable.
1638 (get_frame_language): Ditto.
1639 * blockframe.c (get_frame_block): Ditto.
1640 * macroscope.c (default_macro_scope): Ditto.
1641 * tui/tui-stack.c (tui_show_frame_info): Ditto.
1643 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1645 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
1646 NOT_AVAILABLE_ERROR when evaluating the location expression.
1648 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1650 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
1651 returning that the register piece is unavailable/optimized out.
1652 (write_pieced_value): Handle get_frame_register_bytes returning
1653 that the register piece is unavailable/optimized out when doing a
1654 read-modify write of a bitfield.
1655 * findvar.c (value_from_register): Handle get_frame_register_bytes
1656 returning that the register piece is unavailable/optimized out.
1657 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
1658 and `unavailablep'. Throw error on bad debug info. Use
1659 frame_register instead of frame_register_read, to fill in the new
1661 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
1663 * valops.c: (value_assign): Adjust, and handle
1664 get_frame_register_bytes failing.
1665 * spu-tdep.c: Include exceptions.h.
1666 (spu_software_single_step): Adjust, and handle
1667 get_frame_register_bytes failing.
1668 (spu_get_longjmp_target): Ditto.
1669 * gdbarch.sh (register_to_value): Change to return int. New
1670 parameters `optimizedp' and `unavailablep'.
1671 * gdbarch.h, gdbarch.c: Regenerate.
1672 * i386-tdep.c (i386_register_to_value): Adjust to new
1673 gdbarch_register_to_value interface.
1674 * i387-tdep.c (i387_register_to_value): Ditto.
1675 * i387-tdep.h (i387_register_to_value): Ditto.
1676 * alpha-tdep.c (alpha_register_to_value): Ditto.
1677 * ia64-tdep.c (ia64_register_to_value): Ditto.
1678 * m68k-tdep.c (m68k_register_to_value): Ditto.
1679 * mips-tdep.c (mips_register_to_value): Ditto.
1680 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
1682 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1684 * findvar.c (value_of_register): Mark the value as unavailable, if
1685 the register is unavailable.
1686 * frame.h (frame_register_unwind): New `unavailablep' parameter.
1687 (frame_register): New `unavailablep' parameter.
1688 (frame_register_read): Update comment.
1689 * frame.c (frame_register_unwind): New `unavailablep' parameter.
1690 Set it if the register is unavailable. If the register is
1691 unavailable, clear the output buffer.
1692 (frame_register): New `unavailablep' parameter. Pass it down.
1693 (frame_unwind_register): Adjust.
1694 (put_frame_register): Adjust.
1695 (frame_register_read): Adjust. Also return false if the register
1697 (frame_register_unwind_location): Adjust.
1698 * sentinel-frame.c (sentinel_frame_prev_register): If the register
1699 is unavailable, mark the value accordingly.
1700 * stack.c (frame_info): Handle unavailable registers.
1702 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1704 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
1705 simplify, using regcache_cooked_read.
1707 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1709 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
1710 (regcache_raw_read_unsigned, regcache_raw_read_signed)
1711 (regcache_raw_read_unsigned, regcache_raw_read_part)
1712 (regcache_cooked_read, regcache_cooked_read_signed)
1713 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
1714 (regcache_cooked_read_ftype): Change return to enum
1716 * regcache.c: Include exceptions.h
1717 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
1718 (do_cooked_read): Change return to enum register_status. Always
1719 forward to regcache_cooked_read.
1720 (regcache_raw_read): Change return to enum register_status. If
1721 the register is not REG_VALID, memset the buffer. Return the
1723 (regcache_raw_read_signed): Handle non-REG_VALID registers and
1724 return the register's status.
1725 (regcache_raw_read_unsigned): Ditto.
1726 (regcache_cooked_read): Change return to enum register_status.
1727 Assert that with read-only regcaches, the register's status must
1728 be known. If the regcache is read-only, and the register is not
1729 REG_VALID, memset the buffer. Return the register's status.
1730 (regcache_cooked_read_signed): Change return to enum
1731 register_status. Handle non-REG_VALID registers and return the
1733 (regcache_cooked_read_unsigned): Change return to enum
1734 register_status. Handle non-REG_VALID registers and return the
1736 (regcache_xfer_part, regcache_raw_read_part)
1737 (regcache_cooked_read_part): Change return to enum
1738 register_status. Return the register's status.
1739 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
1741 (regcache_dump): Handle unavailable cooked registers.
1742 * frame.c (do_frame_register_read): Adjust interface to match
1743 regcache_cooked_read_ftype.
1744 * gdbarch.sh (pseudo_register_read): Change return to enum
1746 * gdbarch.h, gdbarch.c: Regenerate.
1748 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
1750 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
1751 register_status. If reading a raw register indicates the raw
1752 register is not valid, return the raw register's status,
1753 otherwise, return REG_VALID.
1754 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
1755 register_status. Handle non-REG_VALID raw registers and return
1756 the register's status.
1757 * arm-tdep.c (arm_neon_quad_read)
1758 (arm_pseudo_read): Change return to enum register_status. Handle
1759 non-REG_VALID raw registers and return the register's status.
1760 * avr-tdep.c (avr_pseudo_register_read): Ditto.
1761 * frv-tdep.c (frv_pseudo_register_read): Ditto.
1762 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
1763 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
1764 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
1766 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
1767 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
1768 (m32c_part_write, m32c_cat_read, m32c_cat_write)
1769 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
1770 (m32c_pseudo_register_read): Change return to enum
1771 register_status. Adjust.
1772 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
1773 enum register_status. Return the register's status.
1774 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
1775 register_status. Return the register's status.
1776 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
1777 * mips-tdep.c (mips_pseudo_register_read): Ditto.
1778 * mt-tdep.c (mt_pseudo_register_read): Ditto.
1779 * rs6000-tdep.c (move_ev_register_func): New typedef.
1780 (e500_move_ev_register): Use it. Change return to enum
1781 register_status. Return the register's status.
1782 (do_regcache_raw_read): New function.
1783 (do_regcache_raw_write): New function.
1784 (e500_pseudo_register_read): Change return to enum
1785 register_status. Return the register's status. Use
1786 do_regcache_raw_read.
1787 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
1788 (dfp_pseudo_register_read): Change return to enum register_status.
1789 Return the register's status.
1790 (vsx_pseudo_register_read): Ditto.
1791 (efpr_pseudo_register_read): Ditto.
1792 (rs6000_pseudo_register_read): Ditto.
1793 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
1794 register_status. Return the register's status.
1795 * sh64-tdep.c (pseudo_register_read_portions): New function.
1796 (sh64_pseudo_register_read): Change return to enum
1797 register_status. Use pseudo_register_read_portions. Return the
1799 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
1800 register_status. Return the register's status.
1801 * sh-tdep.c (pseudo_register_read_portions): New function.
1802 (sh_pseudo_register_read): Change return to enum register_status.
1803 Use pseudo_register_read_portions. Return the register's status.
1804 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
1805 enum register_status. Return the register's status.
1806 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
1807 * spu-tdep.c (spu_pseudo_register_read_spu)
1808 (spu_pseudo_register_read): Ditto.
1809 * xtensa-tdep.c (xtensa_register_read_masked)
1810 (xtensa_pseudo_register_read): Ditto.
1811 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
1813 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1815 * python/py-value.c (valpy_getitem): Fix formatting of error function
1818 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1820 ARI fixes: Add missing internationalization markups throughout
1822 * darwin-nat-info.c: Ditto.
1825 * mi/mi-main.c: Ditto.
1827 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1829 ARI fixes: Add missing internationalization markups throughout
1832 * cp-name-parser.y: Ditto.
1835 * objc-exp.y: Ditto.
1838 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1840 ARI fixes: Messages should have no trailing new lines.
1841 * darwin-nat.c (mach_check_error): Remove trailing new line from
1842 warning function call message.
1843 * record.c (bfdcore_read): Idem for error call.
1845 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1847 * common/signals.c (target_signal_from_host): Add _ markup to error
1848 function call message.
1849 (target_signal_to_host): Add _ markup and remove trailing new line
1850 from warning call message.
1851 (target_signal_from_command): Add _ markup to error function call
1854 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
1858 * python/python.c (gdbpy_write): Accept a stream argument and
1859 operate to the appropriate stream.
1860 (gdbpy_flush): Likewise.
1861 (_initialize_python): Add stream constants.
1862 (finish_python_initialization): Add GdbOutputErrorFile class.
1864 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
1866 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1868 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
1870 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
1871 to store_signed_integer. Add debug message when relocating CALL
1872 instructions. Fix formatting of debug message.
1873 * i386-tdep.c (i386_relocate_instruction): Ditto.
1875 2011-03-17 Joel Brobecker <brobecker@gnat.com>
1877 * target.h (struct target_ops): Remove to_lookup_symbol field.
1878 (target_lookup_symbol): Delete macro.
1879 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
1880 (update_current_target, setup_target_debug): Remove handling
1881 of to_lookup_symbol target_ops field.
1882 * ada-tasks.c (get_known_tasks_addr): Remove use of
1883 target_lookup_symbol.
1884 * coffread.c (coff_symtab_read): Likewise.
1885 * dbxread.c (read_dbx_symtab): Ditto.
1887 2011-03-17 Joel Brobecker <brobecker@gnat.com>
1890 * configure.ac: Add getthrds declaration check.
1891 * configure, config.in: Regenerate.
1892 * aix-thread.c (getthrds): Declare only if not already declared
1893 in procinfo.h. More declaration out of get_signaled_thread to
1896 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
1898 * python/py-symtab.c: Populate symtab_object_methods,
1900 (stpy_is_valid): New function.
1901 (salpy_is_valid): Ditto.
1902 * python/py-symbol.c: Declare symbol_object_methods. Populate.
1903 (sympy_is_valid): New function.
1904 * python/py-objfile.c: Declare objfile_object_methods. Populate.
1905 (objfpy_is_valid): New function.
1906 * python/py-inferior.c: Populate inferior_object_methods.
1907 (infpy_is_valid): New function.
1908 * python/py-infthread.c: Populate thread_object_methods.
1909 (thpy_is_valid): New function.
1910 * python/py-block.c: Declare block_object_methods. Populate. Declare
1911 block_iterator_object_methods. Populate.
1912 (blpy_is_valid): New function.
1913 (blpy_iter_is_valid): Ditto.
1915 2011-03-16 Keith Seitz <keiths@redhat.com>
1917 * linespec.c (find_methods): Canonicalize NAME before looking
1919 (name_end): New function.
1920 (keep_name_info): New function.
1921 (decode_line_1): Use keep_name_info.
1922 (decode_compound): Likewise.
1923 * cli/cli-utils.h (remove_trailing_whitespace): New function.
1924 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
1927 * linespec.c (locate_first_half): Keep overload information, too.
1928 (decode_compound): Use a string to represent break characters
1930 If P points to a break character, do not increment it.
1931 For C++ and Java, keep overload information and relevant keywords.
1932 If we cannot find a symbol, search the minimal symbols.
1935 * linespec.c (decode_compound): Rename SAVED_ARG to
1937 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
1939 Pass a valid block to lookup_symbol.
1940 (lookup_prefix_sym): Likewise.
1941 (find_method): Construct search name based on SYM_CLASS instead
1943 * psymtab.c (lookup_partial_symbol): Add language parameter.
1944 (lookup_symbol_aux_psymtabs): Likewise.
1945 Don't assume that the psymtab we found was the right one. Search
1946 for the desired symbol in the symtab to be certain.
1947 (psymtab_search_name): New function.
1948 (lookup_partial_symbol): Use psymtab_search_name.
1949 Add language parameter.
1950 (read_symtabs_for_function): Add language parameter and pass to
1951 lookup_partial_symbol.
1952 (find_symbol_file_from_partial): Likewise.
1954 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
1957 * dwarf2read.c (noop_record_line): New function.
1958 (dwarf_decode_lines): Ignore line tables for GCd functions.
1960 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
1962 Fix ARI warnings about new lines at the end of messages, which
1963 are unneeded as there is a new line added at the end of the message
1965 * darwin-nat.c (darwin_stop_inferior): Ditto.
1966 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
1967 * dfp.c (decimal_to_number): Ditto.
1968 * exec.c (print_section_info): Ditto.
1969 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
1970 * osdata.c (get_osdata): Ditto.
1971 * record.c (bfdcore_write): Ditto.
1972 * remote-mips.c (mips_readchar): Ditto.
1973 * remote.c (read_ptid): Ditto.
1974 * ser-mingw.c (ser_windows_raw): Ditto.
1975 * tracepoint.c (add_local_symbols): Ditto.
1976 * windows-nat.c (fake_create_process): Ditto.
1978 2011-03-16 Tom Tromey <tromey@redhat.com>
1980 * tracepoint.c (stop_tracing): Don't declare.
1981 * event-top.c (after_char_processing_hook): Add `(void)'.
1983 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
1985 * NEWS: Add Parameter sub-classing description.
1987 2011-03-16 Kai Tietz <ktietz@redhat.com>
1989 * MAINTAINERS: Update my e-mail address.
1991 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
1993 * MAINTAINERS: Add myself for write after approval privileges.
1995 2011-03-15 Michael Snyder <msnyder@vmware.com>
1997 * frame.c (find_frame_sal): Assert sym is not null.
1999 * dbxread.c (process_one_symbol): Assert 'name' is not null.
2001 * objc-lang.c (selectors_info): Check strchr for null result.
2003 * stabsread.c (define_symbol): Guard against bad stabstring input.
2005 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2007 Remove trailing spaces and tabulations from pascal language
2012 p-valprint.c: Ditto.
2014 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2016 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
2017 than LOW. Comment it.
2018 (read_partial_die): Call complaint for inappropriate zero LOWPC or
2019 HIGHPC not strictly higher than LOWPC.
2021 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2023 Fix formatting of function declarations returning a pointer in
2025 * varobj.c (varobj_add_child): Ditto.
2026 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
2027 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
2029 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
2031 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
2032 for the "generic" vector ABI used with GCC 4.3 and later.
2033 (ppc64_sysv_abi_return_value): Likewise.
2035 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
2037 * infcall.c (call_function_by_hand): Function return value is
2038 always a non_lval, even when using struct_return.
2040 2011-03-15 Pedro Alves <pedro@codesourcery.com>
2042 * printcmd.c (ALL_DISPLAYS_SAFE): New.
2043 (map_display_numbers): New.
2044 (do_delete_display): New.
2045 (undisplay_command): Use map_display_numbers.
2046 (do_enable_disable_display): New.
2047 (enable_disable_display_command): New function.
2048 (enable_display): Delete.
2049 (enable_display_command): New.
2050 (disable_display_command): Reimplement.
2051 (_initialize_printcmd): Adjust "enable display" command to use
2052 `enable_display_command' as callback.
2054 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2056 * NEWS: Add Python breakpoint 'stop' operation.
2058 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2060 * NEWS: Delete duplicate entry. Fix typo.
2062 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
2064 Fix ARI warning about function names in first column.
2065 Put prototype declaration on same line as return type.
2066 * objc-exp.y: Ditto.
2068 * python/py-stopevent.h: Ditto.
2069 For long function names, split parameters to
2070 allow function name on same line as return type.
2071 * solib-pa64.c: Ditto.
2074 For long function declaration, use single line.
2075 * hppa-tdep.h: Ditto.
2076 * inferior.h: Ditto.
2078 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2080 * python/python.h: Declare gdbpy_should_stop and
2081 gdbpy_breakpoint_has_py_cond.
2082 * python/python.c: Add python.h to includes. Remove python.h from
2083 HAVE_PYTHON definition
2084 (gdbpy_should_stop): New dummy function.
2085 (gdbpy_breakpoint_has_py_cond): New dummy function.
2086 * python/py-breakpoint.c (bppy_init): Rewrite to allow
2087 sub-classing capabilities.
2088 (gdbpy_should_stop): New function.
2089 (gdbpy_breakpoint_has_py_cond): New function.
2090 (local_setattro): New function.
2091 * breakpoint.c (condition_command): Add check for Python 'stop'
2093 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
2094 operation function as part of stop/continue tests.
2096 2011-03-14 Tom Tromey <tromey@redhat.com>
2099 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
2100 (needs_frame_dwarf_call): Likewise.
2102 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
2104 Fix ARI warning about functions without parameters that do not
2106 * breakpoint.c (all_tracepoints): Replace () by (void).
2107 * f-exp.y (match_string_literal): Ditto.
2109 * m2-exp.y (yylex): Ditto.
2110 * mep-tdep.c (current_me_module): Ditto.
2111 (current_options): Ditto.
2112 (current_cop_data_bus_width): Ditto.
2113 (current_cr_names): Ditto.
2114 (current_cr_is_float): Ditto.
2115 (current_ccr_names): Ditto.
2116 * objc-exp.y (yylex): Ditto.
2117 * p-exp.y (yylex): Ditto.
2118 * remote.c (send_interrupt_sequence): Ditto.
2119 * tracepoint.c (current_trace_status): Ditto.
2120 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
2121 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
2123 2011-03-11 Michael Snyder <msnyder@vmware.com>
2125 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
2126 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
2127 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
2128 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
2129 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
2131 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
2132 (delete_async_event_handler): Ditto.
2134 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
2136 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
2138 * top.c (set_verbose): Assert showcmd was found.
2140 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
2142 * xtensa-tdep.c (warning_once): Correct style issues.
2144 2011-03-11 Yao Qi <yao@codesourcery.com>
2146 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
2148 2011-03-11 Andreas Schwab <schwab@redhat.com>
2150 * common/aclocal.m4: Remove.
2152 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
2154 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
2155 (xtensa_write_register, xtensa_read_register): Likewise.
2156 (xtensa_hextochar): Removed.
2157 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
2159 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
2161 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
2162 (xtensa_call0_frame_cache_t): Update comments. New fields added.
2163 (xtensa_alloc_frame_cache): Add initialization for new fields.
2164 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
2165 (warning_once): New function.
2166 (xtensa_insn_kind): New item c0opc_and.
2167 (call0_classify_opcode): Add the case for AND instruction.
2168 (call0_track_op): Change arguments. New local variable litbase.
2169 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
2170 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
2172 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
2173 (call0_analyze_prologue): Update the comments. Change arguments.
2174 Add the variety of updates to handle extended prologues, which now can
2175 conduct dynamic stack adjustments.
2176 (call0_frame_cache): Likewise.
2177 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
2178 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
2180 2011-03-10 Michael Snyder <msnyder@vmware.com>
2182 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
2183 (cmd_qtframe): Ditto.
2184 (cmd_qtbuffer): Ditto.
2185 (cmd_bigqtbuffer): Ditto.
2187 2011-03-10 Tom Tromey <tromey@redhat.com>
2189 * tracepoint.c (trace_actions_command): Update.
2190 * thread.c (thread_apply_command): Update.
2191 * reverse.c (delete_bookmark_command): Update.
2192 (bookmarks_info): Update.
2193 * printcmd.c (undisplay_command): Update.
2194 * memattr.c (mem_enable_command): Update.
2195 (mem_disable_command): Update.
2196 (mem_delete_command): Update.
2197 * inferior.c (detach_inferior_command): Update.
2198 (kill_inferior_command): Update.
2199 (remove_inferior_command): Update.
2200 * cli/cli-utils.h (struct get_number_or_range_state): New.
2201 (init_number_or_range): Declare.
2202 (get_number_or_range): Update.
2203 * cli/cli-utils.c (init_number_or_range): New function.
2204 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
2206 (number_is_in_list): Update.
2207 * breakpoint.h (get_tracepoint_by_number): Update.
2208 * breakpoint.c (map_breakpoint_numbers): Update for change to
2209 get_number_or_range.
2210 (find_location_by_number): Use get_number, not
2211 get_number_or_range.
2212 (trace_pass_set_count): New function.
2213 (trace_pass_command): Update for change to get_number_or_range.
2215 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
2218 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
2220 * python/py-param.c (add_setshow_generic): Add set/show callback
2221 parameters. Register Python object context.
2222 (get_show_value): New function.
2223 (get_set_value): New function.
2224 (call_doc_function): New function.
2225 (get_doc_string): Move behind get_show_value/get_set_value.
2227 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
2229 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
2231 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
2233 * xtensa-tdep.c (xtensa_read_register): Add comment.
2234 (xtensa_write_register): Likewise.
2235 (xtensa_hextochar): Add comment and update to match coding conventions.
2236 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
2237 (execute_l32e, execute_s32e, execute_code): Update comments.
2238 (xtensa_exception_handler_t): Update to match coding conventions.
2239 (xtensa_insn_kind): Likewise.
2241 2011-03-09 Michael Snyder <msnyder@vmware.com>
2243 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
2245 2011-03-09 Pedro Alves <pedro@codesourcery.com>
2247 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
2249 2011-03-09 Tom Tromey <tromey@redhat.com>
2251 * thread.c (restore_selected_frame): Handle frame_level == -1.
2252 (make_cleanup_restore_current_thread): Use
2253 get_selected_frame_if_set.
2254 * frame.h (get_selected_frame_if_set): Declare.
2255 * frame.c (get_selected_frame_if_set): New function.
2257 2011-03-09 Pedro Alves <pedro@codesourcery.com>
2259 * cli/cli-cmds.c (shell_escape): Use lbasename.
2260 * coffread.c (coff_start_symtab): Constify parameter.
2261 (complete_symtab): Constify `name' parameter.
2262 (coff_symtab_read): Constify `filestring' local.
2263 (coff_getfilename): Constify return and `result' local.
2265 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
2266 * linux-fork.c (info_checkpoints_command): Use lbasename.
2267 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
2268 * minsyms.c (lookup_minimal_symbol): Use lbasename.
2269 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
2270 * procfs.c (procfs_make_note_section): Use lbasename.
2271 * tui/tui-io.c (printable_part): Constity return and parameter.
2273 (print_filename): Constify parameters, and local `s'.
2274 (tui_rl_display_match_list): Constify local `temp'.
2276 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2279 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2280 Fix DWARF-3+ DW_AT_accessibility default assumption.
2281 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
2282 cu->header.version >= 3.
2284 2011-03-09 Yao Qi <yao@codesourcery.com>
2286 * common/Makefile.in: Remove.
2287 * common/configure: Remove.
2288 * common/configure.ac: Remove.
2290 2011-03-09 Yao Qi <yao@codesourcery.com>
2293 2011-02-11 Yao Qi <yao@codesourcery.com>
2295 * common/Makefile.in: Add copyright header.
2297 2011-02-11 Yao Qi <yao@codesourcery.com>
2299 * Makefile.in: Remove signals.o from COMMON_OBS. Link
2301 * configure.ac: Add common to sub dir.
2302 * configure: Regenerate.
2304 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2306 * xtensa-tdep.c (call0_ret): New function.
2307 (xtensa_skip_prologue): Speed up analysis.
2309 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2311 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
2312 while executing MI command -data-list-changed-registers.
2314 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2316 * xtensa-tdep.c (xtensa_read_register): New function.
2317 (xtensa_write_register): New function.
2318 (xtensa_find_register_by_name): New function.
2319 (xtensa_windowed_frame_cache): Update comments in type description.
2320 (xtensa_frame_cache): Likewise.
2321 (xtensa_window_interrupt_insn): New function.
2322 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
2323 (xtensa_insn_kind): Add new instructions.
2324 (rwx_special_register): New function.
2325 (call0_classify_opcode): Add new instructions to the analysis.
2326 (a0_saved, a7_saved, a11_saved): New variables.
2327 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
2328 (execute_l32e): New function.
2329 (execute_s32e): New function.
2330 (xtensa_exception_handler_t): New type.
2331 (execute_code): New function.
2332 (xtensa_window_interrupt_frame_cache): New function to conduct frame
2333 analysis for Xtensa Window Exception handlers.
2335 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2337 * xtensa-tdep.c (TX_PS): New.
2338 (windowing_enabled): Update to count for Call0 ABI.
2339 (xtensa_hextochar): New.
2340 (xtensa_init_reggroups): Make algorithm generic.
2341 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
2343 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2345 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
2347 2011-03-08 Michael Snyder <msnyder@vmware.com>
2349 * i386-tdep.c (i386_follow_jump): Check return value of
2351 (i386_analyze_struct_return): Ditto.
2352 (i386_skip_probe): Ditto.
2353 (i386_match_insn): Ditto.
2354 (i386_skip_noop): Ditto.
2355 (i386_analyze_frame_setup): Ditto.
2356 (i386_analyze_register_saves): Ditto.
2357 (i386_skip_prologue): Ditto.
2358 (i386_skip_main_prologue): Ditto.
2360 * target.c (read_whatever_is_readable): Fix memory leak.
2362 * i386-tdep.c (i386_process_record): Document fall through.
2364 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2366 Fix DWARF-3+ DW_AT_accessibility default assumption.
2367 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
2368 cu->header.version >= 3.
2370 2011-03-08 Pedro Alves <pedro@codesourcery.com>
2372 * remote.c (remote_check_symbols): Skip if the target has no
2375 2011-03-08 Joel Brobecker <brobecker@adacore.com>
2377 * target.c (read_whatever_is_readable): Reformat comment,
2378 with a minor typo fix. Minor reformatting of the code.
2380 2011-03-08 Yao Qi <yao@codesourcery.com>
2382 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
2383 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
2384 Use cached result instead of calling displaced_in_arm_mode again.
2385 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
2386 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
2387 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
2388 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
2389 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
2390 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
2391 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
2392 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
2393 (cleanup_block_load_pc, copy_block_xfer): Likewise.
2394 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
2395 (arm_catch_kernel_helper_return): Likewise.
2396 * gdb/arm-tdep.h : Update function declarations.
2398 2011-03-07 Michael Snyder <msnyder@vmware.com>
2400 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
2402 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
2404 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
2406 * elfread.c (elf_symtab_read): Stop memory leak.
2408 * main.c (captured_main): Fix memory leak.
2410 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
2412 * ada-lang.c (compare_names): Call is_name_suffix with string1
2415 2011-03-07 Tom Tromey <tromey@redhat.com>
2417 * xcoffread.c (xcoff_sym_fns): Update.
2418 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
2419 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
2420 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
2421 (symbol_file_add_with_addrs_or_offsets): Likewise.
2422 (reread_symbols): Handle OBJF_PSYMTABS_READ.
2423 * somread.c (som_sym_fns): Update.
2424 * psymtab.h (require_partial_symbols): Declare.
2425 * psymtab.c (require_partial_symbols): New function.
2426 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
2427 (ALL_OBJFILE_PSYMTABS): Undef.
2428 (ALL_PSYMTABS): Move from psympriv.h.
2429 (lookup_partial_symtab, find_pc_sect_psymtab)
2430 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
2431 (find_last_source_symtab_from_partial)
2432 (forget_cached_source_info_partial)
2433 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
2434 (expand_partial_symbol_tables, read_psymtabs_with_filename)
2435 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
2436 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
2437 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
2438 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
2439 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
2440 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
2441 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
2443 * mipsread.c (ecoff_sym_fns): Update.
2444 * machoread.c (macho_sym_fns): Update.
2445 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
2446 (read_psyms): New function.
2447 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
2448 (elf_sym_fns_lazy_psyms): New global.
2449 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
2450 dwarf2_build_psymtabs.
2451 * dbxread.c (aout_sym_fns): Update.
2452 * coffread.c (coff_sym_fns): Update.
2454 2011-03-07 Tom Tromey <tromey@redhat.com>
2456 * infrun.c (print_exited_reason): Include inferior id and pid in
2459 2011-03-07 Tom Tromey <tromey@redhat.com>
2461 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
2463 (target_has_execution_1): Update.
2464 (target_has_execution_current): Declare.
2465 (target_has_execution): Call target_has_execution_current.
2466 (default_child_has_execution): Update.
2467 * target.c (default_child_has_execution): Add 'the_ptid'
2469 (target_has_execution_1): Likewise.
2470 (target_has_execution_current): New function.
2471 (add_target): Update.
2472 (init_dummy_target): Update.
2473 * remote-m32r-sdi.c (m32r_has_execution): New function.
2474 (init_m32r_ops): Use it.
2475 * record.c (record_core_has_execution): Now static. Add
2476 'the_ptid' parameter.
2477 * inferior.c (have_live_inferiors): Don't save current thread.
2478 Use target_has_execution_1.
2480 2011-03-07 Yao Qi <yao@codesourcery.com>
2482 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
2484 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2486 * elfread.c (elf_symtab_read): Minor reformatting.
2488 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2490 * objc-lang.c (selectors_info): Minor reformatting.
2492 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2494 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
2496 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2497 Michael Snyder <msnyder@vmware.com>
2499 * ada-valprint.c (ada_val_print_array): Move the declaration of
2500 "byte_order" and "elttype" inside the block where these variables
2501 are actually used. Remove some special handling for the case
2502 where "elttype" and "eltlen" are null. Replace by a comment
2503 and a couple of assertion checks.
2505 2011-03-05 Michael Snyder <msnyder@vmware.com>
2507 * source.c (add_path): Replace semicolon at end of block.
2508 * dwarf2expr.c (execute_stack_op): Ditto.
2510 2011-03-05 Mike Frysinger <vapier@gentoo.org>
2512 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
2513 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
2514 (bfin-*-*): Likewise.
2516 2011-03-05 Michael Snyder <msnyder@vmware.com>
2518 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
2519 * mdebugread.c (parse_symbol): Ditto.
2520 * parse.c (parse_exp_in_context): Ditto.
2521 * source.c (add_path): Ditto.
2522 * utils.c (gnu_debuglink_crc32): Ditto.
2523 * varobj.c (variable_language): Ditto.
2525 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
2527 2011-03-04 Michael Snyder <msnyder@vmware.com>
2529 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
2531 * symfile.c (simple_overlay_update): Check for null return value
2532 from lookup_minimal_symbol.
2534 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
2536 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2538 * eval.c (parse_and_eval_address_1): Remove function.
2539 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
2540 instead of parse_and_eval_address_1.
2541 * value.h (parse_and_eval_address_1): Remove prototype.
2543 2011-03-04 Michael Snyder <msnyder@vmware.com>
2545 * remote.c (putpkt_binary): Document that case stmt falls through.
2547 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2549 * breakpointc (print_it_typical): Move NULL check from here...
2550 (print_bp_stop_message): ... to here.
2552 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
2554 * breakpoint.c (enable_command): Use break instead of continue,
2555 and fill in a missing break.
2556 (disable_command): Ditto.
2558 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
2560 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
2561 (terminal_save_ours): Remove misleading comment.
2562 (inflow_inferior_data_cleanup): Free ttystate.
2563 (inflow_inferior_exit): Likewise.
2564 (copy_terminal_info): Copy ttystate.
2566 * serial.c (serial_copy_tty_state): New function.
2567 * serial.h (serial_copy_tty_state): Add prototype.
2568 (struct serial_ops): Add copy_tty_state callback.
2569 * ser-base.c (ser_base_copy_tty_state): New function.
2570 * ser-base.h (ser_base_copy_tty_state): Add prototype.
2571 * ser-go32.c (dos_copy_tty_state): New function.
2572 (dos_ops): Install copy_tty_state callback.
2573 * ser-mingw.c (_initialize_ser_windows): Likewise.
2574 * ser-pipe.c (_initialize_ser_pipe): Likewise.
2575 * ser-unix.c (hardwire_copy_tty_state): New function.
2576 (_initialize_ser_hardwire): Install it.
2578 2011-03-04 Michael Snyder <msnyder@vmware.com>
2580 * breakpoint.c (create_breakpoint): Add missing break statement.
2582 Reverting this patch:
2583 * infcall.c (call_function_by_hand): Add break statements for lint.
2585 Reverting this patch:
2586 * cli/cli-script.c (script_from_file): Add break for lint.
2588 2011-03-04 Michael Snyder <msnyder@vmware.com>
2590 * solib.c (reload_shared_libraries_1): Close memory leak.
2592 2011-03-03 Tom Tromey <tromey@redhat.com>
2595 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
2598 2011-03-03 Michael Snyder <msnyder@vmware.com>
2600 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
2601 fields of struct 'st' to zero.
2603 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
2604 sal.pspace before calling set_current_source_symtab_and_line.
2606 2011-03-03 Yao Qi <yao@codesourcery.com>
2608 * Makefile.in (configure-common): Remove. Let Makefile
2609 in dir common to rebuild itself.
2610 (common/Makefile): Likewise.
2612 2011-03-03 Joel Brobecker <brobecker@adacore.com>
2614 * utils.c (parse_escape): Add i18n markup in error message.
2616 2011-03-03 Yao Qi <yao@codesourcery.com>
2618 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
2620 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
2621 (displaced_write_reg, displaced_read_reg): Likewise.
2622 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
2623 (cleanup_block_load_pc, copy_block_xfer): Likewise.
2624 (cleanup_branch): Replace magic number 14 and 15 with
2625 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
2627 2011-03-02 Michael Snyder <msnyder@vmware.com>
2629 * maint.c (maintenance_do_deprecate): No need to check for NULL.
2631 * cli/cli-script.c (script_from_file): Add break for lint.
2633 * mdebugread.c (parse_partial_symbols): Fix indent.
2635 * target-descriptions.c (tdesc_gdb_type): No need to call
2636 xstrdup, callee saves a copy.
2638 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
2640 * infcall.c (call_function_by_hand): Add break statements for lint.
2642 * utils.c (parse_escape): Escape the escape char.
2644 * python/py-inferior.c (build_inferior_list): Error out if
2645 PyList_Append fails.
2646 (gdbpy_inferiors): Error out if build_inferior_list fails.
2648 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
2651 * record.c (record_restore): Move printf to before error return.
2653 2011-03-02 Yao Qi <yao@codesourcery.com>
2655 * arm-tdep.h (struct displaced_step_closure): Add two new fields
2656 is_thumb and insn_size.
2657 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
2658 on both ARM and Thumb mode.
2659 (arm_process_displaced_insn): Set is_thumb and insn_size.
2660 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
2661 (arm_displaced_step_fixup): Likewise.
2663 2011-03-01 Michael Snyder <msnyder@vmware.com>
2665 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
2667 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
2669 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
2671 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
2673 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
2676 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
2677 which shadows function parameter.
2679 * tracepoint.c (create_tsv_from_upload): Superfluous call
2680 to xstrdup. Callee already calls xstrdup.
2682 * linespec.c (decode_line_1): Remove unnecessary null check.
2684 * tracepoint.c (scope_info): Fix mem leak, remove underused
2687 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
2688 superfluous null check.
2690 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
2691 (value_of_builtin_frame_fp_reg): Ditto.
2693 * event-top.c (display_gdb_prompt): Remove superfluous null check.
2695 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
2698 * linespec.c (decode_line_1): Check for null before dereference.
2700 * reverse.c (record_restore): Move null-check to before pointer
2703 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
2705 * objc-lang.c (selectors_info): Add explanitory comment.
2706 (classes_info): Ditto.
2708 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2710 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
2711 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
2712 versions of the trampoline. Handle Thumb vs. ARM addresses.
2713 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
2714 (arm_linux_init_abi): Install it.
2715 * arm-tdep.c (arm_psr_thumb_bit): Make global.
2716 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
2718 2011-02-28 Michael Snyder <msnyder@vmware.com>
2720 * ui-out.c (ui_out_field_core_addr): Make local char buffer
2721 a little bigger, to avoid possibility of an overflow.
2723 * breakpoint.c (breakpoint_adjustment_warning): Make local char
2724 buffers a little bigger, to avoid possibility of an overflow.
2726 * coffread.c (coff_getfilename): Add check to avoid overflow.
2728 * objc-lang.c (selectors_info): Add a small safety margin to
2730 (classes_info): Error out on too long REGEXP.
2732 * infrun.c (handle_inferior_event): Remove unused function call.
2734 * fork-child.c (fork_inferior): Remove ifdef'd code and
2737 * linux-thread-db.c (attach_thread): Discard unused value.
2739 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
2741 * remote.c (remote_get_noisy_reply): Discard unused value.
2742 (remote_vcont_resume): Ditto.
2743 (remote_stop_ns): Ditto.
2745 * linespec.c (decode_objc): Delete unused variable.
2747 * tui/tui-regs.c (tui_register_format): Delete unused variable.
2749 * dwarf2read.c (add_partial_symbol): Discard unused values.
2750 (read_base_type): Delete unused variable.
2752 * dbxread.c (read_dbx_symtab): Discard unused value.
2754 * eval.c (evaluate_subexp_standard): Delete unused variable,
2755 and discard unused values.
2757 * infcmd.c (_initialize_infcmd): Discard unused values.
2759 * stabsread.c (rs6000_builtin_type): Missing break statement.
2761 * dbxread.c (process_one_symbol): Discard unused value.
2763 * coffread.c (coff_end_symtab): Delete unused variable.
2765 * dwarf2read.c (dw2_get_file_names): Discard unused value.
2766 (dwarf2_add_typedef): Delete unused variable.
2767 (read_namespace): Ditto.
2768 (dwarf_decode_macros): Ditto.
2770 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
2772 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
2774 * p-valprint.c (pascal_val_print): Discard unused value.
2776 * utils.c (nquery): Call va_end before return;
2780 * proc-service.c (ps_plog): Call va_end before return.
2782 2011-02-28 Tom Tromey <tromey@redhat.com>
2784 * python/python.c (gdbpy_value_cst): New global.
2785 (_initialize_python): Initialize it.
2786 * python/python-internal.h (gdbpy_value_cst): Declare.
2787 * python/py-value.c (convert_value_from_python): Use
2790 2011-02-28 Michael Snyder <msnyder@vmware.com>
2792 * python/py-cmd.c (cmdpy_init): Fix memory leak.
2794 * breakpoint.c (catch_syscall_completer): Free malloced list.
2796 * jv-lang.c (java_primitive_type_from_name): Add missing break.
2798 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
2799 (lval_func_check_synthetic_pointer): Ditto.
2800 (lval_func_free_closure): Fix use-after-free.
2802 2011-02-28 Tom Tromey <tromey@redhat.com>
2804 * psymtab.c (expand_partial_symbol_tables): Use
2805 ALL_OBJFILE_PSYMTABS.
2807 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2809 * objc-lang.c (selectors_info): Error on too long REGEXP.
2811 2011-02-28 Michael Snyder <msnyder@vmware.com>
2813 * python/py-param.c (set_parameter_value): Add missing
2816 * linux-record.c (record_linux_system_call): Add missing
2819 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
2821 * breakpoint.c (print_one_breakpoint_location): Remove unused
2822 argument PRINT_ADDRESS_BITS. Update callers.
2823 (print_one_breakpoint): Likewise.
2825 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
2827 * breakpoint.c (wrap_indent_at_field): New function.
2828 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
2829 Allocate ui_stream locally instead of using STB argument.
2830 (print_one_breakpoint_location): Update call.
2831 * ui-out.c (ui_out_query_field): New function.
2832 * ui-out.h (ui_out_query_field): Add prototype.
2834 2011-02-28 Joel Brobecker <brobecker@adacore.com>
2836 From Michael Snyder <msnyder@vmware.com>
2837 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
2839 2011-02-27 Michael Snyder <msnyder@vmware.com>
2841 * objc-lang.c (selectors_info): Prevent string overrun.
2843 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
2846 * symtab.c (rbreak_command): Move variable 'file_name' to
2849 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
2850 param with a local variable of the same name.
2852 2011-02-27 Michael Snyder <msnyder@vmware.com>
2854 * value.c (value_from_history_ref): New function.
2855 * value.h (value_from_history_ref): Export.
2856 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
2857 to parse value history references.
2858 * cli/cli-utils.h (get_number_trailer): Update comment.
2860 2011-02-27 Michael Snyder <msnyder@vmware.com>
2862 * inferior.c (detach_inferior_command): Use get_number_or_range.
2863 (kill_inferior_command): Ditto.
2864 (remove_inferior_command): Ditto.
2865 (initialize_inferiors): Make command names plural.
2866 Update help strings.
2868 2011-02-27 Michael Snyder <msnyder@vmware.com>
2870 * darwin-nat-info.c: Fix comment typo.
2871 * dwarf2expr.h: Ditto.
2872 * fbsd-nat.c: Ditto.
2873 * fbsd-nat.h: Ditto.
2874 * frame-unwind.h: Ditto.
2876 * hppa-hpux-tdep.c: Ditto.
2877 * i386-linux-nat.c: Ditto.
2878 * linux-nat.c: Ditto.
2879 * nbsd-nat.c: Ditto.
2880 * nbsd-nat.h: Ditto.
2881 * ppc-linux-tdep.c: Ditto.
2884 * tui/tui-winsource.c: Ditto.
2886 2011-02-26 Michael Snyder <msnyder@vmware.com>
2888 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
2890 * maint.c (maintenance_do_deprecate): Plug a memory leak.
2892 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
2893 with a local variable of the same name.
2895 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
2896 param with a local variable of the same name.
2897 (i387_supply_xsave): Ditto.
2899 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
2900 that it does not shadow a function parameter.
2902 * i386-nat.c (i386_length_and_rw_bits): Document that case
2903 statement is meant to fall through.
2905 * expprint.c (dump_subexp_body_standard): Document that case
2906 statement is meant to fall through.
2908 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
2909 dead if statement. Condition can't be false.
2911 2011-02-25 Michael Snyder <msnyder@vmware.com>
2913 * arm-tdep.c: Fix typos in comments.
2914 * bsd-uthread.c: Ditto.
2915 * completer.c: Ditto.
2917 * cp-namespace.c: Ditto.
2918 * cp-support.c: Ditto.
2919 * cris-tdep.c: Ditto.
2921 * dwarf2read.c: Ditto.
2923 * gdbtypes.h: Ditto.
2924 * inferior.h: Ditto.
2925 * mdebugread.c: Ditto.
2926 * mips-tdep.c: Ditto.
2927 * ppc-linux-nat.c: Ditto.
2928 * ppc-linux-tdep.c: Ditto.
2929 * printcmd.c: Ditto.
2930 * sol-thread.c: Ditto.
2931 * solib-frv.c: Ditto.
2933 * sparc64-tdep.c: Ditto.
2934 * spu-tdep.c: Ditto.
2935 * stabsread.c: Ditto.
2940 * python/py-block.c: Ditto.
2941 * python/py-symbol.c: Ditto.
2942 * python/py-symtab.c: Ditto.
2943 * python/py-value.c: Ditto.
2944 * tui/tui-win.c: Ditto.
2946 2011-02-25 Michael Snyder <msnyder@vmware.com>
2948 * inferior.c (print_inferior): Accept a string instead of an int
2949 for requested_inferiors, and use get_number_or_range to parse it.
2950 (info_inferiors_command): Pass args string to print_inferior.
2951 (initialize_inferiors): Change help string for info inferiors.
2952 * inferior.h (print_inferior): Export prototype change.
2954 2011-02-25 Tom Tromey <tromey@redhat.com>
2956 * common/ax.def (invalid2): Set to 0x31.
2958 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2960 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
2962 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
2964 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
2966 2011-02-24 Michael Snyder <msnyder@vmware.com>
2968 * Makefile.in (clean): Make clean should remove generated files
2969 observer.h and observer.inc.
2971 2011-02-24 Joel Brobecker <brobecker@adacore.com>
2973 Revert the following patch (not approved yet):
2974 2011-02-21 Hui Zhu <teawater@gmail.com>
2975 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
2976 * ax-gdb.c (gen_printf_expr_callback): New function.
2977 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
2978 * ax-general.c (ax_memcpy): New function.
2979 (ax_print): Handle "printf".
2981 * ax.h (ax_memcpy): Forward declare.
2982 * common/ax.def (invalid2): Removed.
2983 (printf): New entry.
2984 * printcmd.c (printcmd.h): New include.
2985 (string_printf): New function.
2986 (ui_printf): Removed.
2987 (printf_command): Remove static. Call string_printf.
2988 (eval_command): Call string_printf.
2989 * printcmd.h: New file.
2990 * tracepoint.c (validate_actionline,
2991 encode_actions_1): handle printf_command.
2993 2011-02-23 Tom Tromey <tromey@redhat.com>
2995 * ax-general.c (ax_pick): Add missing newline.
2997 2011-02-23 Michael Snyder <msnyder@vmware.com>
2999 * breakpoint.c (breakpoint_1): Change first argument from an int
3000 to a char pointer, so that the function now accepts a list of
3001 breakpoints rather than just one. Use new function
3002 'number_is_in_list' to implement.
3003 (breakpoints_info): Pass char * instead of int to breakpoint_1.
3004 (watchpoints_info): Ditto.
3005 (tracepoints_info): Ditto.
3006 (maintenance_info_breakpoints): Ditto.
3007 (_initialize_breakpoint): Update help strings to reflect the fact
3008 that these functions can now take more than one argument.
3009 * cli/cli-utils.c (number_is_in_list): New function.
3010 * cli/cli-utils.h (number_is_in_list): Export.
3012 2011-02-23 Michael Snyder <msnyder@vmware.com>
3014 * memattr.c (mem_enable_command): Use get_number_or_range.
3015 (mem_disable_command): Ditto.
3016 (mem_delete_command): Ditto.
3017 (_initialize_mem): Tweak usage message to reflect multiple
3020 2011-02-22 Doug Evans <dje@google.com>
3022 Add gdb.lookup_global_symbol python function.
3024 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
3025 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
3026 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
3028 2011-02-22 Tom Tromey <tromey@redhat.com>
3030 * language.c (language_class_name_from_physname): Rename
3031 'curr_language' argument to 'lang'; use in body.
3033 2011-02-22 Michael Snyder <msnyder@vmware.com>
3035 * cli/cli-utils.c (number_is_in_list): Check for zero return.
3037 2011-02-22 Pedro Alves <pedro@codesourcery.com>
3039 * frame-unwind.h: Fix comment to mention the this frame, not the
3042 2011-02-22 Tom Tromey <tromey@redhat.com>
3044 * symfile.c (auto_solib_limit): Remove.
3045 * symfile.h (auto_solib_limit): Remove.
3047 2011-02-22 Joel Brobecker <brobecker@adacore.com>
3049 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
3051 2011-02-21 Michael Snyder <msnyder@vmware.com>
3053 * gdbthread.h (print_thread_info): Change prototype.
3054 * thread.c (print_thread_info): Accept char* instead of int for
3055 requested_threads argument. Use new function number_is_in_list
3056 to determine which threads to list.
3057 (info_threads_command): Pass char* to print_thread_info.
3058 * cli/cli-utils.c (number_is_in_list): New function.
3059 * cli/cli-utils.h (number_is_in_list): Export.
3060 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
3062 (print_one_inferior): Ditto.
3063 (mi_cmd_list_thread_groups): Ditto.
3065 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3067 * common/Makefile.in (CFLAGS): New.
3068 (COMPILE): Add $(CFLAGS).
3070 2011-02-21 Tom Tromey <tromey@redhat.com>
3072 * breakpoint.c (catch_syscall_command_1): Fix typo.
3074 2011-02-21 Tom Tromey <tromey@redhat.com>
3076 * reverse.c: Include cli-utils.h.
3077 * printcmd.c: Include cli-utils.h.
3078 (string_printf): Use skip_spaces.
3079 * cli/cli-utils.h: New file.
3080 * cli/cli-utils.c: New file.
3081 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
3082 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
3083 * breakpoint.h (get_number, get_number_or_range): Move to
3085 * breakpoint.c: Include cli-utils.h.
3086 (get_number_trailer, get_number, get_number_or_range)
3087 (ep_skip_leading_whitespace): Move to cli-utils.c.
3088 (create_breakpoint_sal, find_condition_and_thread)
3089 (decode_static_tracepoint_spec, watch_command_1)
3090 (watch_maybe_just_location, ep_parse_optional_if_clause)
3091 (catch_fork_command_1, catch_exec_command_1)
3092 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
3093 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
3094 (SUBDIR_CLI_SRCS): Add cli-utils.c.
3095 (HFILES_NO_SRCDIR): Add cli-utils.h.
3096 (cli-utils.o): New target.
3098 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3100 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
3101 before calling discard_all_inferiors.
3103 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
3105 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
3106 (struct builtin_opencl_type): Remove.
3107 (builtin_opencl_type): Change return type to "struct type **".
3108 (lookup_opencl_vector_type): Update caller.
3109 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
3110 (build_opencl_types): Install plain array of "struct type *"
3111 instead of "struct builtin_opencl_type".
3113 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3114 Ulrich Weigand <uweigand@de.ibm.com>
3116 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
3117 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
3118 (struct arm_linux_hwbp_cap): New type.
3119 (arm_linux_get_hwbp_cap): New function.
3120 (arm_linux_get_hw_breakpoint_count): Likewise.
3121 (arm_linux_get_hw_watchpoint_count): Likewise.
3122 (arm_linux_can_use_hw_breakpoint): Likewise.
3123 (arm_hwbp_type): New type.
3124 (arm_hwbp_control_t): Likewise.
3125 (struct arm_linux_hw_breakpoint): Likewise.
3126 (struct arm_linux_thread_points): Likewise.
3127 (arm_threads): New global variable.
3128 (arm_linux_find_breakpoints_by_tid): New function.
3129 (arm_hwbp_control_initialize): Likewise.
3130 (arm_hwbp_control_is_enabled): Likewise.
3131 (arm_hwbp_control_disable): Likewise.
3132 (arm_linux_hw_breakpoint_initialize): Likewise.
3133 (arm_linux_get_hwbp_type): Likewise.
3134 (arm_linux_hw_watchpoint_initialize): Likewise.
3135 (arm_linux_hw_breakpoint_equal): Likewise.
3136 (arm_linux_insert_hw_breakpoint1): Likewise.
3137 (arm_linux_remove_hw_breakpoint1): Likewise.
3138 (arm_linux_insert_hw_breakpoint): Likewise.
3139 (arm_linux_remove_hw_breakpoint): Likewise.
3140 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
3141 (arm_linux_insert_watchpoint): Likewise.
3142 (arm_linux_remove_watchpoint): Likewise.
3143 (arm_linux_stopped_data_address): Likewise.
3144 (arm_linux_stopped_by_watchpoint): Likewise.
3145 (arm_linux_watchpoint_addr_within_range): Likewise.
3146 (arm_linux_new_thread): Likewise.
3147 (arm_linux_thread_exit): Likewise.
3148 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
3149 related target callbacks. Register arm_linux_new_thread and
3150 arm_linux_thread_exit.
3151 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
3152 * arm-tdep.c (arm_pc_is_thumb): Make global.
3153 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
3155 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
3157 * breakpoint.c (update_watchpoint): Do not attempt to recreate
3158 per-frame locations while within a function epilogue.
3160 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
3162 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
3163 to GNU coding standards.
3165 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
3167 Allow use of mingw native on Windows 95 OS.
3168 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
3169 (ser_windows_close): Only call CancelIo if function exists.
3170 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
3171 to check for existence of CancelIo function in kernel32 DLL.
3173 2011-02-21 Hui Zhu <teawater@gmail.com>
3175 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3176 * ax-gdb.c (gen_printf_expr_callback): New function.
3177 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3178 * ax-general.c (ax_memcpy): New function.
3179 (ax_print): Handle "printf".
3181 * ax.h (ax_memcpy): Forward declare.
3182 * common/ax.def (invalid2): Removed.
3183 (printf): New entry.
3184 * printcmd.c (printcmd.h): New include.
3185 (string_printf): New function.
3186 (ui_printf): Removed.
3187 (printf_command): Remove static. Call string_printf.
3188 (eval_command): Call string_printf.
3189 * printcmd.h: New file.
3190 * tracepoint.c (validate_actionline,
3191 encode_actions_1): handle printf_command.
3193 2011-02-19 Michael Snyder <msnyder@vmware.com>
3195 * reverse.c (delete_one_bookmark): Argument is now bookmark
3196 id rather than pointer to bookmark struct.
3197 (delete_bookmark_command): Use get_number_or_range.
3198 (goto_bookmark_command): Parse with get_number instead of strtoul.
3199 (bookmark_1): New function. Print info for one bookmark.
3200 (bookmarks_info): Use get_number_or_range and bookmark_1.
3202 2011-02-18 Michael Snyder <msnyder@vmware.com>
3204 * thread.c (info_threads_command): Re-implement using
3205 get_number_or_range.
3206 (thread_apply_command): Ditto.
3208 2011-02-18 Tom Tromey <tromey@redhat.com>
3210 * common/ax.def: New file.
3211 * ax.h (enum agent_op): Use ax.def.
3212 * ax-general.c (aop_map): Use ax.def.
3214 2011-02-18 Tom Tromey <tromey@redhat.com>
3216 * ax-general.c (aop_map): Add pick and rot.
3217 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
3218 <DW_OP_rot>: Implement.
3219 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
3221 * ax-general.c (ax_pick): New function.
3223 2011-02-18 Tom Tromey <tromey@redhat.com>
3225 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
3227 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3228 Tom Tromey <tromey@redhat.com>
3230 * cp-support.c (make_symbol_overload_list_namespace): Do not call
3231 make_symbol_overload_list_block with NULL BLOCK.
3232 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
3234 2011-02-18 Pedro Alves <pedro@codesourcery.com>
3236 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
3237 * breakpoint.h (get_number_or_range): Declare.
3238 * printcmd.c (ALL_DISPLAYS): Declare.
3239 (delete_display): Reimplement taking a display pointer.
3240 (undisplay_command): Accept a range of displays to delete, using
3241 get_number_or_range.
3243 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3245 * c-valprint.c (c_val_print): Add embedded_offset to address
3246 for arrays of unspecified length.
3247 * p-valprint.c (pascal_val_print): Likewise.
3249 2011-02-18 Yao Qi <yao@codesourcery.com>
3251 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
3252 (arm_process_displaced_insn): .. here. Remove parameter INSN.
3253 (thumb_process_displaced_insn): New.
3254 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
3255 call to arm_process_displaced_insn.
3256 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
3258 2011-02-17 Tom Tromey <tromey@redhat.com>
3260 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
3261 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
3262 compile_dwarf_to_ax. No longer static. Call
3263 dwarf2_compile_cfa_to_ax.
3264 (locexpr_tracepoint_var_ref): Update.
3265 (loclist_tracepoint_var_ref): Update.
3266 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
3267 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
3268 argument; add 'gdbarch' and 'pc'.
3269 (dwarf2_compile_cfa_to_ax): New function.
3270 (dwarf2_frame_cache): Update.
3272 2011-02-17 Joel Brobecker <brobecker@adacore.com>
3274 * ada-lang.c (ada_type_of_array): Fix the size of the array
3275 in the case of an unconstrained packed array.
3277 2011-02-17 Yao Qi <yao@codesourcery.com>
3279 * common/Makefile.in: Add more targets for make.
3281 2011-02-16 Tom Tromey <tromey@redhat.com>
3283 * dwarf2loc.c (unimplemented): Fix typo.
3285 2011-02-16 Tom Tromey <tromey@redhat.com>
3287 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
3288 (compile_dwarf_to_ax) <default>: Use unimplemented.
3289 <DW_OP_deref>: Update.
3290 (disassemble_dwarf_expression): Update.
3291 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
3292 (decode_locdesc): Update.
3293 * dwarf2expr.h (dwarf_stack_op_name): Update.
3295 2011-02-16 Tom Tromey <tromey@redhat.com>
3297 * ax.h (struct aop_map) <name>: Now const.
3299 2011-02-16 Tom Tromey <tromey@redhat.com>
3301 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
3304 2011-02-16 Yao Qi <yao@codesourcery.com>
3306 * infrun.c (get_displaced_step_closure_by_addr): New.
3307 * inferior.h: Declare it.
3308 * arm-tdep.c: (arm_pc_is_thumb): Call
3309 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
3312 2011-02-16 Pedro Alves <pedro@codesourcery.com>
3313 Jan Kratochvil <jan.kratochvil@redhat.com>
3316 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
3318 2011-02-16 Pedro Alves <pedro@codesourcery.com>
3319 Jan Kratochvil <jan.kratochvil@redhat.com>
3321 * value.c (value_contents_copy_raw): Extend describing comment.
3322 Assert that the destination contents we're overwriting are wholly
3324 (value_contents_copy): Extend describing comment.
3326 2011-02-16 Pedro Alves <pedro@codesourcery.com>
3327 Jan Kratochvil <jan.kratochvil@redhat.com>
3329 * value.c (value_available_contents_eq): Remove redundant local
3330 variables. Fix available contents comparision.
3331 * value.h (value_available_contents_eq): Extend describing
3334 2011-02-16 Yao Qi <yao@codesourcery.com>
3336 * thread.c (info_threads_command): Add missing i18n markup and remove
3339 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
3341 * breakpoint.c (longjmp_names): New variable.
3342 (struct breakpoint_objfile_data): New type.
3343 (breakpoint_objfile_key): New variable.
3344 (msym_not_found): New variable.
3345 (msym_not_found_p): New predicate.
3346 (get_breakpoint_objfile_data): New function.
3347 (create_overlay_event_breakpoint): Check per-objfile cache for
3349 (create_longjmp_master_breakpoint): Likewise.
3350 (create_std_terminate_master_breakpoint): Likewise.
3351 (create_exception_master_breakpoint): Likewise.
3352 (_initialize_breakpoint): Register per-objfile data key.
3354 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
3356 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
3358 (create_longjmp_master_breakpoint): Loop over longjmp names.
3359 (create_std_terminate_master_breakpoint): Const-propagate parameter
3361 (update_breakpoints_after_exec): Adjust.
3362 (breakpoint_re_set): Adjust.
3364 2011-02-15 Michael Snyder <msnyder@vmware.com>
3366 * thread.c (info_threads_command): Process arg as thread id,
3367 or list of thread ids.
3368 (thread_find_command): New command.
3369 (_initialize_thread): Document argument for info threads.
3370 Document 'thread find' command.
3371 * NEWS: Document new command "thread find".
3373 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3375 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
3376 * aclocal.m4: Regenerated with aclocal-1.11.1.
3377 * common/configure: Regenerate with autoconf-2.64.
3379 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
3381 * opencl-lang.c (build_opencl_types): Set the size of the built-in
3382 bool data type to a size of one byte.
3384 2011-02-15 Pedro Alves <pedro@codesourcery.com>
3385 Jan Kratochvil <jan.kratochvil@redhat.com>
3387 * target.c (memory_xfer_live_readonly_partial): Document where to
3388 look for interface description.
3390 2011-02-15 Yao Qi <yao@codesourcery.com>
3393 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
3394 order to store PC value on stack instead of text section.
3396 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
3398 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
3399 the EFP register set size.
3400 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
3401 data from the VMX register.
3402 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
3403 and write data from/to the VMX register.
3405 2011-02-14 Michael Snyder <msnyder@vmware.com>
3407 * command.h (enum command_class): New class 'no_set_class', for
3408 "show" commands without a corresponding "set" command.
3409 * value.c (_initialize_values): Use 'no_set_class' for "show values".
3410 * copying.c (_initialize_copying): Ditto for "show copying" and
3412 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
3414 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
3415 which there is no corresponding "set" command (eg. "show copying").
3417 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3418 Jan Kratochvil <jan.kratochvil@redhat.com>
3420 * exec.c (section_table_available_memory): Change `len' parameter
3422 * exec.h (section_table_available_memory): Ditto.
3423 * value.h (read_value_memory): Rename the `offset' parameter to
3426 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3427 Jan Kratochvil <jan.kratochvil@redhat.com>
3429 * memrange.c (compare_mem_ranges): Mention sort order in
3431 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
3432 * tracepoint.c (traceframe_available_memory): Extend comment to
3433 mention what happens to RESULT when the target does not support
3436 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3437 Jan Kratochvil <jan.kratochvil@redhat.com>
3439 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
3442 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3444 * value.c (value_bits_valid, value_bits_synthetic_pointer):
3445 No longer handle NULL values.
3447 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3449 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
3450 * value.c: Include "exceptions.h".
3451 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
3453 * cp-abi.c: Include gdb_assert.h.
3454 (baseclass_offset): Add `embedded_offset' and `val' parameters.
3455 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
3457 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
3458 parameters. No longer returns -1 on error.
3459 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
3461 * cp-valprint.c: Include exceptions.h.
3462 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
3463 the baseclass_offset. Handle unavailable base classes. Use
3464 val_print_invalid_address.
3465 * p-valprint.c: Include exceptions.h.
3466 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
3467 when fetching the baseclass_offset. No longer expect
3468 baseclass_offset returning -1. Handle unavailable base classes.
3469 Use val_print_invalid_address.
3470 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
3471 `valaddr' parameter, and change its type to gdb_byte pointer. Add
3472 `embedded_offset' and `val' parameters. Adjust.
3473 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
3474 parameter, and change its type to gdb_byte pointer. Add
3475 `embedded_offset' and `val' parameters. Adjust. No longer expect
3476 baseclass_offset returning -1.
3477 (value_dynamic_cast): Use value_contents_for_printing rather than
3478 value_contents. Adjust.
3479 (search_struct_field): No longer expect baseclass_offset returning
3481 (search_struct_method): If reading memory from the target is
3482 necessary, wrap it in a new value to pass to baseclass_offset. No
3483 longer expect baseclass_offset returning -1.
3484 (find_method_list): No longer expect baseclass_offset returning
3485 -1. Use value_contents_for_printing rather than value_contents.
3486 * valprint.c (val_print_invalid_address): New function.
3487 * valprint.h (val_print_invalid_address): Declare.
3488 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
3489 and `val' parameters. No longer expect baseclass_offset returning
3491 * gnu-v2-abi.c: Include "exceptions.h".
3492 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
3493 parameters. Handle unavailable memory. Recurse through
3494 gnuv2_baseclass_offset directly, rather than through
3495 baseclass_offset. No longer returns -1 on not found, instead
3497 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
3498 `val' parameters. Adjust.
3500 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3502 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
3503 almost but not quite adjacent.
3505 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3507 * value.h (value_entirely_available): Declare.
3508 * value.c (value_entirely_available): New function.
3509 * c-valprint.c (c_value_print): Don't try fetching the pointer's
3510 real type if the pointer is unavailable.
3512 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3514 * valops.c (value_repeat): Use read_value_memory instead of
3517 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3519 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
3520 * value.c (value_contents_copy_raw, value_contents_copy): New
3522 (value_primitive_field): Use value_contents_copy_raw instead of
3524 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
3526 (value_array, value_slice): Ditto.
3527 * valarith.c (value_subscripted_rvalue): Use
3528 value_contents_copy_raw instead of memcpy.
3530 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3532 <unavailable> references.
3534 * valops.c (get_value_at): Use value_from_contents_and_address,
3535 avoiding read_memory.
3537 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3539 * c-valprint.c (c_val_print): Print a string with unavailable
3540 contents as an array.
3542 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3544 * value.h (unpack_bits_as_long): Delete declaration.
3545 (unpack_value_bits_as_long): Declare.
3546 (unpack_value_field_as_long): Declare.
3547 (value_field_bitfield): Declare.
3548 * value.c (unpack_bits_as_long): Rename to...
3549 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
3550 value parameters. Return the extracted result in a new output
3551 parameter. If the value contents are unavailable, return false,
3552 otherwise return true.
3553 (unpack_value_bits_as_long): New.
3554 (unpack_field_as_long): Rename to...
3555 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
3556 Add embedded_offset and value parameters. Return the extracted
3557 result in a new output parameter. If the value contents are
3558 unavailable, return false, otherwise return true.
3559 (unpack_value_field_as_long): New.
3560 (unpack_field_as_long_1): New.
3561 (unpack_field_as_long): Reimplement as wrapper around
3562 unpack_value_field_as_long_1.
3563 (value_field_bitfield): New function.
3564 * valops.c (value_fetch_lazy): When fetching a bitfield, use
3565 unpack_value_bits_as_long. Mark the value as unavailable, if it
3567 * jv-valprint.c (java_print_value_fields): Use
3568 value_field_bitfield.
3569 * p-valprint.c (pascal_object_print_value_fields): Use
3570 value_field_bitfield.
3571 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
3573 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3575 * value.c (get_internalvar_integer): Also return the int value of
3576 TYPE_CODE_INT INTERNALVAR_VALUE values.
3577 (set_internalvar): Don't special case TYPE_CODE_INT.
3579 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3581 * value.c (struct internalvar) <enum internalvar_kind>: Remove
3582 INTERNALVAR_POINTER.
3584 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
3585 (set_internalvar): Remove special TYPE_CODE_PTR handling.
3586 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
3588 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3590 * value.h (value_available_contents_eq): Declare.
3591 * value.c (find_first_range_overlap): New function.
3592 (value_available_contents_eq): New function.
3593 * valprint.c (val_print_array_elements): Use
3594 value_available_contents_eq.
3595 * ada-valprint.c (val_print_packed_array_elements): Use
3596 value_available_contents_eq.
3597 * jv-valprint.c (java_value_print): Use
3598 value_available_contents_eq.
3600 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3602 * target.c (target_read_live_memory): New function.
3603 (memory_xfer_live_readonly_partial): New.
3604 (memory_xfer_partial): If reading from a traceframe, fallback to
3605 reading unavailable read-only memory from read-only regions of
3607 * tracepoint.c (disconnect_tracing): Adjust.
3608 (set_current_traceframe): New, factored out from
3609 set_traceframe_number.
3610 (set_traceframe_number): Reimplement to only change the traceframe
3611 number on the GDB side.
3612 (do_restore_current_traceframe_cleanup): Adjust.
3613 (make_cleanup_restore_traceframe_number): New.
3614 (cur_traceframe_number): New global.
3615 (tfile_open): Set cur_traceframe_number to no traceframe.
3616 (set_tfile_traceframe): New function.
3617 (tfile_trace_find): If looking up a traceframe using any method
3618 other than by number, make sure the current tfile traceframe
3619 matches gdb's current traceframe. Update the current tfile
3620 traceframe if the lookup succeeded.
3621 (tfile_fetch_registers, tfile_xfer_partial)
3622 (tfile_get_trace_state_variable_value): Make sure the remote
3623 traceframe matches gdb's current traceframe.
3624 * remote.c (remote_traceframe_number): New global.
3625 (remote_open_1): Set it to -1.
3626 (set_remote_traceframe): New function.
3627 (remote_fetch_registers, remote_store_registers)
3628 (remote_xfer_memory, remote_xfer_partial)
3629 (remote_get_trace_state_variable_value): Make sure the remote
3630 traceframe matches gdb's current traceframe.
3631 (remote_trace_find): If looking up a traceframe using any method
3632 other than by number, make sure the current remote traceframe
3633 matches gdb's current traceframe. Update the current remote
3634 traceframe if the lookup succeeded.
3635 * infrun.c (fetch_inferior_event): Adjust.
3636 * tracepoint.h (set_current_traceframe): Declare.
3637 (get_traceframe_number, set_traceframe_number): Add describing
3640 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3642 Mark pieces of values as unavailable if the corresponding memory
3645 * valops.c: Include tracepoint.h.
3646 (value_fetch_lazy): Use read_value_memory.
3647 (read_value_memory): New.
3648 * value.h (read_value_memory): Declare.
3649 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
3650 * exec.c (section_table_available_memory): New function.
3651 * exec.h (section_table_available_memory): Declare.
3653 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3655 * Makefile.in (SFILES): Add memrange.c.
3656 (HFILES_NO_SRCDIR): Add memrange.h.
3657 (COMMON_OBS): Add memrange.o.
3658 * memrange.c: New file.
3659 * memrange.h: New file.
3660 * tracepoint.c: Include memrange.h.
3661 (struct mem_range): Delete.
3662 (mem_range_s): Delete.
3663 (traceframe_available_memory): New function.
3664 * tracepoint.h (traceframe_available_memory): Declare.
3666 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3668 * target.h (struct traceframe_info): Forward declare.
3669 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
3670 (struct target_ops) <to_traceframe_info>: New field.
3671 (target_traceframe_info): New.
3672 * target.c (update_current_target): Inherit and default
3674 * remote.c (PACKET_qXfer_traceframe_info): New.
3675 (remote_protocol_features): Register qXfer:traceframe-info:read.
3676 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
3677 (remote_traceframe_info): New.
3678 (init_remote_ops): Install it.
3679 (_initialize_remote): Install "set/show remote traceframe-info"
3681 * tracepoint.h (parse_traceframe_info): Declare.
3682 * tracepoint.c (struct mem_range): New.
3683 (mem_range_s): New typedef.
3684 (struct traceframe_info): New.
3685 (traceframe_info): New global.
3686 (free_traceframe_info): New function.
3687 (clear_traceframe_info): New function.
3688 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
3690 (build_traceframe_info): New function.
3691 (tfile_traceframe_info): New function.
3692 (init_tfile_ops): Install tfile_traceframe_info.
3693 (traceframe_info_start_memory, free_result): New functions.
3694 (memory_attributes, traceframe_info_elements): New globals.
3695 (parse_traceframe_info, get_traceframe_info): New functions.
3696 * features/traceframe-info.dtd: New file.
3697 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
3699 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3701 Base support for <unavailable> value contents.
3703 * value.h (value_bytes_available): Declare.
3704 (mark_value_bytes_unavailable): Declare.
3705 * value.c (struct range): New struct.
3706 (range_s): New typedef.
3707 (ranges_overlap): New function.
3708 (range_lessthan): New function.
3709 (ranges_contain_p): New function.
3710 (struct value) <unavailable>: New field.
3711 (value_bytes_available): New function.
3712 (mark_value_bytes_unavailable): New function.
3713 (require_not_optimized_out): Constify parameter.
3714 (require_available): New function.
3715 (value_contents_all, value_contents): Require all bytes be
3717 (value_free): Free `unavailable'.
3718 (value_copy): Copy `unavailable'.
3719 * valprint.h (val_print_unavailable): Declare.
3720 * valprint.c (valprint_check_validity): Rename `offset' parameter
3721 to `embedded_offset'. If printing a scalar, check whether the
3722 value chunk is available.
3723 (val_print_unavailable): New.
3724 (val_print_scalar_formatted): Check whether the value is
3726 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
3727 pretty-printing unavailable values.
3729 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3731 Fix const/volatile qualifiers of C++ types, PR c++/12328.
3732 * c-typeprint.c (c_type_print_args): Update the function comment. New
3733 variable param_type, initialize it. Remove const/volatile qualifiers
3734 for language_cplus and !show_artificial. Use param_type.
3736 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3738 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
3739 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
3740 * symtab.h (struct symtab) <next>: Comment extension.
3742 2011-02-12 Yao Qi <yao@codesourcery.com>
3744 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
3746 2011-02-11 Yao Qi <yao@codesourcery.com>
3748 * common/Makefile.in: Add copyright header.
3750 2011-02-11 Pedro Alves <pedro@codesourcery.com>
3752 * infrun.c (proceed): Move switching out and in of tfind mode from
3754 (fetch_inferior_event): ... to here.
3756 2011-02-11 Yao Qi <yao@codesourcery.com>
3758 * Makefile.in: Remove signals.o from COMMON_OBS. Link
3760 * configure.ac: Add common to sub dir.
3761 * configure: Regenerate.
3763 2011-02-11 Yao Qi <yao@codesourcery.com>
3767 * common/Makefile.in: New.
3768 * common/configure.ac: New.
3769 * common/aclocal.m4: New.
3770 * common/configure: Generate.
3772 2011-02-10 Pedro Alves <pedro@codesourcery.com>
3774 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
3775 side of the parenthesis.
3778 2010-07-13 Jakub Jelinek <jakub@redhat.com>
3779 * vec.h (VEC_block_remove): Fix comment.
3781 2011-02-08 Michael Snyder <msnyder@vmware.com>
3783 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
3785 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3787 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
3788 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
3791 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3794 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
3796 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
3797 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
3799 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
3801 * dwarf2read.c (read_subroutine_type): Set special calling
3802 convention flag for functions compiled by IBM XL C for OpenCL.
3803 * ppc-sysv-tdep.c: Include "dwarf2.h"
3804 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
3806 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
3807 IBM OpenCL vector types calling convention.
3808 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
3809 (ppc_sysv_abi_broken_return_value): Likewise.
3810 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
3811 types calling convention.
3812 (ppc64_sysv_abi_return_value): Likewise.
3813 * spu-tdep.c: Include "dwarf2.h"
3814 (spu_return_value): Implement IBM OpenCL vector types calling
3817 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
3819 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
3820 correct ABI for AltiVec vector arguments.
3822 2011-02-07 Pedro Alves <pedro@codesourcery.com>
3824 * valprint.c (val_print): Extend comment.
3825 * ada-valprint.c (ada_valprint): Rewrite comment deferring
3826 interface explanation to val_print.
3827 (ada_val_print_array): Adjust comment to current interface.
3828 (print_field_values): Adjust comment to current interface.
3829 * c-valprint.c (c_val_print): Rewrite comment deferring interface
3830 explanation to val_print.
3831 * f-valprint.c (f_val_print): Ditto.
3832 * jv-valprint.c (java_val_print): Ditto.
3833 * m2-valprint.c (m2_val_print): Ditto.
3834 * p-valprint.c (pascal_val_print): Ditto.
3836 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
3838 * breakpoint.c (parse_breakpoint_sals): Fix description.
3840 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
3841 Oguz Kayral <oguzkayral@gmail.com>
3843 * python/py-inferior.c (python_on_normal_stop): New function.
3844 (python_on_resume): New function.
3845 (python_inferior_exit): New function.
3846 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
3847 inferior_exit observers.
3848 * python/py-evtregistry.c: New file.
3849 * python/py-threadevent.c : New file.
3850 * python/py-event.c: New file.
3851 * python/py-evts.c: New file.
3852 * python/py-continueevent.c: New file.
3853 * python/py-bpevent.c: New file.
3854 * python/py-signalevent.c: New file.
3855 * python/py-exetiedevent.c: New file.
3856 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
3857 Move struct breakpoint_object from here...
3858 * python/python-internal.h: ... to here.
3859 * python/py-event.h: New file.
3860 * python/py-events.h: New file.
3861 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
3862 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
3863 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
3864 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
3865 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
3866 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
3867 Add build rules for all the above.
3869 2011-02-04 Tom Tromey <tromey@redhat.com>
3871 * dwarf2read.c (dwarf2_section_empty_p): New function.
3872 (dwarf2_read_section): Use dwarf2_section_empty_p.
3873 (dwarf2_section_size): New function.
3874 (dwarf2_get_section_info): Unconditionally read section.
3875 (dwarf2_read_index): Use dwarf2_section_empty_p.
3876 (partial_read_comp_unit_head): Use dwarf2_section_size.
3877 (dwarf2_symbol_mark_computed): Likewise.
3879 2011-02-04 David Daney <ddaney@caviumnetworks.com>
3881 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
3883 2011-02-04 David Daney <ddaney@caviumnetworks.com>
3885 * mips-linux-tdep.c: Include xml-syscall.h.
3886 (mips_linux_get_syscall_number): New function.
3887 (mips_linux_init_abi): Add calls to
3888 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
3889 * data-directory/Makefile.in (SYSCALLS_FILES): Add
3890 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
3891 * syscalls/mips-n32-linux.xml: New file.
3892 * syscalls/mips-n64-linux.xml: New file.
3893 * syscalls/mips-o32-linux.xml: New file.
3895 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
3897 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
3898 Complain about inverted range entries.
3899 (dwarf2_record_block_ranges): Likewise.
3901 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3904 * breakpoint.c (update_watchpoint): Fix name of the
3905 update_global_location_list function.
3906 (print_one_breakpoint): Fix typo.
3907 (_initialize_breakpoint): Remove extra space in hbreak help
3909 * breakpoint.h (struct bp_location) <length>: Fix field
3912 2011-02-04 Pedro Alves <pedro@codesourcery.com>
3914 * regcache.c (registers_changed_ptid): Don't explictly always
3915 clear `current_regcache'. Only clear current_thread_ptid and
3916 current_thread_arch when PTID matches. Only reinit the frame
3917 cache if PTID matches the current inferior_ptid. Move alloca(0)
3919 (registers_changed): ... here.
3921 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
3923 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
3924 starts with __stack_chk_guard as stack guard symbol.
3926 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
3928 * disasm.c (compare_lines): Handle the end of sequence markers
3929 within the line table to better support disassembling over
3930 compilation unit boundaries.
3932 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3934 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
3935 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
3936 implementation even if no symbols are available.
3937 (thumb_analyze_prologue): Update call to skip_prologue_function.
3938 (arm_analyze_prologue): Likewise.
3940 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3942 * arm-tdep.c: Include "observer.h".
3943 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
3944 (arm_exidx_data_key): New static variable.
3945 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
3946 (struct arm_exidx_data): Likewise.
3947 (arm_exidx_data_free): New function.
3948 (arm_compare_exidx_entries): Likewise.
3949 (arm_obj_section_from_vma): Likewise.
3950 (arm_exidx_new_objfile): Likewise.
3951 (arm_find_exidx_entry): Likewise.
3952 (arm_exidx_fill_cache): Likewise.
3953 (arm_exidx_unwind_sniffer): Likewise.
3954 (arm_exidx_unwind): New global variable.
3955 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
3956 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
3957 observer. Register arm_exidx_data_key as objfile data.
3959 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3961 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
3962 due to accessing uninitialized variable. Fix indentation.
3964 2011-02-02 Pedro Alves <pedro@codesourcery.com>
3966 * c-valprint.c (c_value_print): When doing virtual base pointer
3967 adjustment, create a new value with adjusted contents rather than
3968 changing the contents of the value being printed (and getting it
3971 2011-02-02 Pedro Alves <pedro@codesourcery.com>
3973 * xml-support.c (xml_find_attribute): New.
3974 (xinclude_start_include): Use it.
3975 * xml-support.h (xml_find_attribute): Declare.
3976 * memory-map.c (memory_map_start_memory)
3977 (memory_map_start_property): Use xml_find_attribute.
3978 * osdata.c (osdata_start_osdata, osdata_start_column): Use
3980 * remote.c (start_thread): Use xml_find_attribute.
3981 * solib-target.c (library_list_start_segment)
3982 (library_list_start_section, library_list_start_library)
3983 (library_list_start_list): Use xml_find_attribute.
3984 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
3985 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
3986 (tdesc_start_field): Use xml_find_attribute.
3988 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
3990 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
3991 (BUILD_OCL_VTYPES): Update.
3993 2011-02-02 Joel Brobecker <brobecker@adacore.com>
3995 * configure.ac: Work around non-GNU sed limitation when computing
3996 python version number.
3997 * configure: Regenerate.
3999 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4001 Fix debug printing of TYPE_INSTANCE.
4002 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
4003 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
4005 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4007 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
4008 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
4009 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
4010 * ada-operator.inc: Rename the file to ...
4011 * ada-operator.def: ... here, wrap all the entries by macro OP.
4012 * expprint.c (op_name_standard): Remove all the entries. Include
4013 "std-operator.def" instead.
4014 * expression.h (enum exp_opcode): Include "std-operator.def" and
4015 "ada-operator.def". Move all the entries ...
4016 * std-operator.def: ... here, wrap all the entries by macro OP.
4018 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
4020 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
4021 * breakpoint.c (remove_jit_event_breakpoints): New function.
4022 * jit.c (jit_descriptor_addr): Delete.
4023 (registering_code): Delete.
4024 (clear_int): Delete.
4025 (jit_inferior_data): New variable.
4026 (struct jit_inferior_data): New type.
4027 (get_jit_inferior_data): New function.
4028 (jit_inferior_data_cleanup): New function.
4029 (jit_read_descriptor): Adjust.
4030 (jit_register_code): Adjust.
4031 (jit_breakpoint_re_set_internal): New function; move code here ...
4032 (jit_inferior_init): ... from here.
4033 (jit_breakpoint_re_set): Adjust.
4034 (jit_reset_inferior_data_and_breakpoints): New function.
4035 (jit_inferior_created_observer): Adjust.
4036 (jit_inferior_exit_hook): Adjust.
4037 (jit_executable_changed_observer): New function.
4038 (jit_event_handler): Adjust.
4039 (_initialize_jit): Adjust.
4041 2011-01-31 Michael Snyder <msnyder@vmware.com>
4043 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
4046 2011-01-31 Tom Tromey <tromey@redhat.com>
4049 * python/python.c (execute_gdb_command): Call
4050 prevent_dont_repeat.
4051 * top.c (suppress_dont_repeat): New global.
4052 (dont_repeat): Use it.
4053 (prevent_dont_repeat): New function.
4054 * command.h (prevent_dont_repeat): Declare.
4056 2011-01-31 Tom Tromey <tromey@redhat.com>
4058 * infcmd.c (finish_backward): Use breakpoint_set_silent.
4059 * python/py-breakpoint.c (bppy_set_silent): Use
4060 breakpoint_set_silent.
4061 (bppy_set_thread): Use breakpoint_set_thread.
4062 (bppy_set_task): Use breakpoint_set_task.
4063 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
4064 (breakpoint_set_task): Declare.
4065 (make_breakpoint_silent): Remove.
4066 * breakpoint.c (breakpoint_set_silent): New function.
4067 (breakpoint_set_thread): Likewise.
4068 (breakpoint_set_task): Likewise.
4069 (make_breakpoint_silent): Remove.
4071 2011-01-31 Tom Tromey <tromey@redhat.com>
4073 * breakpoint.h (user_breakpoint_p): Declare.
4074 * breakpoint.c (user_breakpoint_p): New function.
4075 (breakpoint_1): Use it.
4076 (save_breakpoints): Likewise.
4078 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4080 * configure.ac: Add handling of Python distribution on Windows.
4081 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
4082 sysconfig variables are not defined, then do not use them.
4083 On Windows, if LIBPL is not defined, then use prefix + '/libs'
4084 instead. On Windows, return all paths using forward-slashes
4085 rather than backslashes.
4087 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4089 * configure.ac: Remove fallback behavior for building
4090 against Python. Remove tweaking of Python include path.
4091 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
4092 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
4093 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
4094 Always restore CPPFLAGS and LIBS after linking test.
4095 * configure: Regenerated.
4096 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
4097 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
4098 * python/python-internal.h: Adjust includes of Python .h files.
4100 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4102 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
4105 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4107 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
4110 2011-01-31 Yao Qi <yao@codesourcery.com>
4112 * arm-linux-nat.c: Update calls to regcache_register_status
4113 instead of regcache_valid_p.
4114 * aix-thread.c: Likewise.
4115 * i386gnu-nat.c: Likewise.
4117 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4120 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
4121 touching TYPE_FIELD_ARTIFICIAL.
4123 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
4125 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
4128 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4130 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
4131 selected, don't try iterating over the traceframe's blocks.
4132 (tfile_has_stack): If there's no traceframe selected, then there's
4134 (tfile_has_registers): If there's no traceframe selected, then
4135 there's no registers.
4137 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4139 * target.c (memory_xfer_partial): No need to restore shadows if we
4140 haven't read anything.
4142 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4144 * mips-tdep.c (mips_print_register): Use get_frame_register_value
4145 and val_print_scalar_formatted.
4147 2011-01-27 Pedro Alves <pedro@codesourcery.com>
4149 * tracepoint.c (tfile_read): New.
4150 (tfile_open): Use it.
4151 (tfile_get_traceframe_address): Use it.
4152 (tfile_trace_find): Use it.
4153 (walk_blocks_callback_func): New typedef.
4154 (match_blocktype): New function.
4155 (traceframe_walk_blocks): New function.
4156 (traceframe_find_block_type): New function.
4157 (tfile_fetch_registers, tfile_xfer_partial)
4158 (tfile_get_trace_state_variable_value): Use
4159 traceframe_find_block_type and tfile_read.
4161 2011-01-26 Kevin Buettner <kevinb@redhat.com>
4163 * remote-mips.c: Add internationalization mark ups. Remove
4164 trailing \n from already marked up strings.
4166 2011-01-26 Tom Tromey <tromey@redhat.com>
4168 * python/py-prettyprint.c (print_string_repr): Clear
4169 'addressprint' option when calling val_print_string.
4170 (print_children): Handle Val_pretty_default. Clear 'addressprint'
4171 option when calling val_print_string.
4173 2011-01-26 Tom Tromey <tromey@redhat.com>
4175 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
4177 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
4179 (gdb_py_longest, gdb_py_ulongest): New typedefs.
4180 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
4181 (gdb_py_long_as_ulongest): New defines.
4182 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
4183 (gdb_py_int_as_long): Declare.
4184 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
4185 GDB_PY_LL_ARG, gdb_py_object_from_longest.
4186 (valpy_long): Add comment.
4187 * python/py-utils.c (get_addr_from_python): Use
4188 gdb_py_long_as_ulongest. Handle overflow properly.
4189 (gdb_py_object_from_longest): New function.
4190 (gdb_py_object_from_ulongest): Likewise.
4191 (gdb_py_int_as_long): Likewise.
4192 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
4193 * python/py-symtab.c (salpy_get_pc): Use
4194 gdb_py_long_from_ulongest.
4195 (salpy_get_line): Use PyInt_FromLong.
4196 * python/py-param.c (set_parameter_value): Use
4198 * python/py-lazy-string.c (stpy_get_address): Use
4199 gdb_py_long_from_ulongest.
4200 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
4201 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
4202 * python/py-breakpoint.c (bppy_set_thread): Use
4204 (bppy_set_task): Likewise.
4205 (bppy_set_ignore_count): Likewise.
4206 (bppy_set_hit_count): Likewise.
4207 * python/py-block.c (blpy_get_start): Use
4208 gdb_py_object_from_ulongest.
4209 (blpy_get_end): Likewise.
4210 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
4212 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
4215 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
4216 * gdb/solib.c (solib_read_symbols): Check for addr_low in
4217 equality test for objfile, initialize addr_low if needed.
4219 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4221 * tui/tui-regs.c (tui_register_format): Remove dead code.
4223 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4225 * printcmd.c (print_formatted): Use val_print_scalar_formatted
4226 instead of print_scalar_formatted.
4227 (print_scalar_formatted): Don't handle 's' format strings here,
4228 and add an assertion that we never see such format here.
4229 * valprint.h (val_print_scalar_formatted): Declare.
4230 * valprint.c (val_print_scalar_formatted): New.
4231 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
4232 instead of print_scalar_formatted.
4233 * jv-valprint.c (java_val_print): Ditto.
4234 * p-valprint.c (pascal_val_print): Ditto.
4235 * ada-valprint.c (ada_val_print_1): Ditto.
4236 * f-valprint.c (f_val_print): Ditto.
4237 * infcmd.c (registers_info): Ditto.
4238 * m2-valprint.c (m2_val_print): Ditto.
4240 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4242 * m2-valprint.c (print_unbounded_array): Pass
4243 value_contents_for_printing rather than value_contents, to
4244 m2_print_array_contents. Also pass in the value.
4246 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4248 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
4249 (save_gdb_index_command): Switch to .gdb_index version 4.
4251 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4253 * mi/mi-main.c (get_register): Use get_frame_register_value rather
4254 than frame_register, and always pass a valid value to val_print.
4256 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4258 Centralize printing "<optimized out>".
4260 * valprint.h (val_print_optimized_out): Declare.
4261 * cp-valprint.c (cp_print_value_fields): Use
4262 val_print_optimized_out.
4263 * jv-valprint.c (java_print_value_fields): Ditto.
4264 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4265 * printcmd.c (print_formatted): Ditto.
4266 * valprint.c (valprint_check_validity): Ditto.
4267 (value_check_printable): Ditto.
4268 (val_print_optimized_out): New.
4270 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4272 * infcmd.c (default_print_registers_info): Allocate values so to
4273 never pass a NULL value to val_print.
4275 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4277 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
4278 boolean. Make sure to always pass a value that matches the
4279 contents buffer to callees. Preserve `address' for following
4281 * value.c (value_contents_for_printing_const): New.
4282 (value_address): Constify value argument.
4283 * value.h (value_contents_for_printing_const): Declare.
4284 (value_address): Constify value argument.
4286 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4288 * regcache.c (struct regcache_descr): Rename
4289 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
4290 and sizeof_cooked_register_valid_p to
4291 sizeof_cooked_register_status.
4292 (init_regcache_descr): Adjust.
4293 (struct regcache): Rename register_valid_p field to
4295 (regcache_xmalloc_1, regcache_xfree, regcache_save)
4296 (do_cooked_read): Adjust.
4297 (regcache_valid_p): Rename to ...
4298 (regcache_register_status): ... this. Adjust.
4299 (regcache_invalidate): Adjust.
4300 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
4302 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
4303 as unavailable, not valid.
4304 (regcache_dump): Adjust.
4305 * regcache.h (enum register_status): New.
4306 (regcache_register_status): Declare.
4307 (regcache_invalidate): Delete declaration.
4308 * corelow.c (get_core_registers): Adjust.
4309 * tracepoint.c (tfile_fetch_registers): Adjust.
4310 * trad-frame.c (REG_VALUE): Rename to ...
4311 (TF_REG_VALUE): ... this.
4312 (REG_UNKNOWN): Rename to ...
4313 (TF_REG_UNKNOWN): ... this.
4314 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
4315 * mi/mi-main.c (register_changed_p): Adjust.
4317 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4319 * regcache.c (struct regcache_descr): Remove outdated comment.
4320 (init_regcache_descr): Remove sizeof_raw_register_valid_p
4322 (regcache_xmalloc): Rename to ...
4323 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
4324 Allocate the regcache type accordingly.
4325 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
4326 (regcache_xfree): Asser the source is also readonly. Copy sizeof
4327 cooked registers, not raw.
4328 (regcache_dup_no_passthrough): Delete.
4329 (get_thread_arch_regcache): Use regcache_xmalloc_1.
4330 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
4331 mention obsolete write_register_bytes.
4332 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
4334 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4336 Stop remote_read_bytes from handling partial reads itself.
4338 * remote-fileio.c: Include target.h.
4339 (remote_fileio_write_bytes): Delete.
4340 (remote_fileio_func_open, remote_fileio_func_write)
4341 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
4343 (remote_fileio_func_stat): Use target_read_memory and
4344 target_write_memory.
4345 (remote_fileio_func_gettimeofday): Use target_write_memory.
4346 (remote_fileio_func_system): Use target_read_memory.
4347 * remote.c (remote_write_bytes): Make it static.
4348 (remote_read_bytes): Don't handle partial reads here.
4349 * remote.h (remote_read_bytes): Delete declaration.
4351 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4353 Simplify XML parsing a bit.
4355 * xml-support.h (gdb_xml_parse_quick): Declare.
4356 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
4357 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
4359 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
4360 gdb_xml_create_parser_and_cleanup_1.
4361 (gdb_xml_parse_quick): New.
4362 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
4363 * osdata.c (osdata_parse): Ditto.
4364 * remote.c (remote_threads_info): Ditto.
4365 * solib-target.c (solib_target_parse_libraries): Ditto.
4366 * xml-syscall.c (syscall_parse_xml): Ditto.
4367 * xml-tdesc.c (tdesc_parse_xml): Ditto.
4369 2011-01-24 Kevin Buettner <kevinb@redhat.com>
4371 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
4372 with remote-mips.o added to gdb_target_obs.
4373 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
4375 2011-01-24 Pedro Alves <pedro@codesourcery.com>
4377 * ada-valprint.c (val_print_packed_array_elements): Pass the
4378 correct struct value to val_print.
4379 (ada_val_print_1): Ditto.
4381 2011-01-24 Pedro Alves <pedro@codesourcery.com>
4383 Don't lose embedded_offset in printing routines throughout.
4385 * valprint.h (val_print_array_elements): Change prototype.
4386 * valprint.c (val_print_array_elements): Add `embedded_offset'
4387 parameter, and adjust to pass it down to val_print, while passing
4388 `valaddr' or `address' unmodified. Take embedded_offset into
4389 account when checking repetitions.
4390 * c-valprint.c (c_val_print): Pass embedded_offset to
4391 val_print_array_elements instead of adjusting `valaddr' and
4393 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
4394 embedded_offset to val_print_array_elements instead of adjusting
4396 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
4397 * p-valprint.c (pascal_val_print): Pass embedded_offset to
4398 val_print_array_elements and pascal_object_print_value_fields
4399 instead of adjusting `valaddr'.
4400 (pascal_object_print_value_fields): Add `offset' parameter, and
4402 (pascal_object_print_value): Add `offset' parameter, and adjust to
4404 (pascal_object_print_static_field): Use
4405 value_contents_for_printing/value_embedded_offset, rather than
4407 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
4408 parameter, and adjust to use it. Use
4409 value_contents_for_printing/value_embedded_offset, rather than
4411 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
4412 (ada_val_print_array): Add `offset' parameter, and adjust to use
4414 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
4415 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
4416 Instead work with offsets. Use
4417 value_contents_for_printing/value_embedded_offset, rather than
4418 value_contents. Change `defer_val_int' local type to CORE_ADDR,
4419 and use value_from_pointer to extract a target pointer, rather
4420 than value_from_longest.
4421 (print_variant_part): Add `offset' parameter. Replace
4422 `outer_valaddr' parameter by a new `outer_offset' parameter.
4423 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4424 (ada_value_print): Use
4425 value_contents_for_printing/value_embedded_offset, rather than
4427 (print_record): Add `offset' parameter, and adjust to pass it
4429 (print_field_values): Add `offset' parameter. Replace
4430 `outer_valaddr' parameter by a new `outer_offset' parameter.
4431 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4432 Use value_contents_for_printing/value_embedded_offset, rather than
4434 * d-valprint.c (dynamic_array_type): Use
4435 value_contents_for_printing/value_embedded_offset, rather than
4437 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
4438 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4439 (java_print_value_fields): Take `offset' into account. Don't
4440 re-adjust `valaddr'. Instead pass down adjusted offsets.
4441 (java_val_print): Take `embedded_offset' into account. Pass it to
4442 java_print_value_fields.
4443 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
4444 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
4445 down adjusted offsets.
4446 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
4447 (f_val_print): Take `embedded_offset' into account.
4449 2011-01-21 Joel Brobecker <brobecker@adacore.com>
4451 * inflow.c: Include "gdbcmd.h".
4452 (interactive_mode): New static global, moved here from top.c.
4453 (show_interactive_mode): New function, moved here from top.c.
4454 use gdb_has_a_terminal instead of input_from_terminal_p to
4455 determine the current mode.
4456 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
4458 (_initialize_inflow): Add the "set/show interactive-mode"
4459 commands. Moved here from top.c, after having adjusted slightly
4461 * top.c (interactive_mode, show_interactive_mode): Delete, moved
4463 (input_from_terminal_p): Remove handling of "interactive-mode"
4464 setting, moved to infow.c.
4465 (init_main): Remove creation of the "set/show interactive-mode"
4466 commands, moved to inflow.c.
4468 2011-01-19 Joel Brobecker <brobecker@adacore.com>
4470 * NEWS: Add entry for native ia64-hpux support.
4472 2011-01-19 Tom Tromey <tromey@redhat.com>
4475 * thread.c (free_thread): Free 'name'.
4476 (print_thread_info): Emit thread name. Change CLI output.
4477 (thread_name_command): New function.
4478 (do_captured_thread_select): Emit newline.
4479 (_initialize_thread): Register 'thread name' command.
4480 * target.h (struct target_ops) <to_thread_name>: New field.
4481 (target_thread_name): New macro.
4482 * target.c (update_current_target): Handle to_thread_name.
4483 * python/py-infthread.c (thpy_get_name): New function.
4484 (thpy_set_name): Likewise.
4485 (thread_object_getset): Add "name".
4486 * linux-nat.c (linux_nat_thread_name): New function.
4487 (linux_nat_add_target): Set to_thread_name.
4488 * gdbthread.h (struct thread_info) <name>: New field.
4490 2011-01-18 Joel Brobecker <brobecker@adacore.com>
4492 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
4493 (ada_val_print_1): Likewise.
4495 2011-01-18 Joel Brobecker <brobecker@adacore.com>
4497 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
4498 upper limit address is not greater than the function end address
4499 when the upper limit could not be computed using the debugging
4502 2011-01-17 Tom Tromey <tromey@redhat.com>
4504 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
4506 * utils.c: Include gdb_regex.h.
4507 (do_regfree_cleanup): New function.
4508 (make_regfree_cleanup): Likewise.
4509 (get_regcomp_error): Likewise.
4510 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
4512 2011-01-17 Tom Tromey <tromey@redhat.com>
4514 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
4517 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
4519 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
4520 for internal variables.
4521 (last_was_structop): New static variable.
4522 (COMPLETE): New token.
4523 (field_exp): New rule to group all '.' suffix handling.
4524 Add mark_struct_expression calls when approriate to be able
4525 to correctly find fields for completion.
4526 (yylex): Adapt to handle field completion and set INTVAR when
4529 2011-01-14 Yao Qi <yao@codesourcery.com>
4531 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
4532 save_reggroup, restore_reggroup and all_reggroup.
4534 2011-01-14 Joel Brobecker <brobecker@adacore.com>
4536 * ada-valprint. (ada_printchar): Use the correct type length
4537 in call to ada_emit_char.
4538 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
4540 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
4542 * solib-som.h (hpux_major_release): Declare variable here.
4543 * solib-som.c: Remove <sys/utsname.h> header.
4544 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
4545 (hpux_major_release): Make global, change default value to
4546 DEFAULT_HPUX_MAJOR_RELEASE.
4547 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
4548 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
4549 Add "solib-som.h" header.
4550 (set_hpux_major_release): New function.
4551 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
4553 2011-01-14 Mike Frysinger <vapier@gentoo.org>
4555 * configure.tgt (*-*-uclinux*): Match more Linux os targets
4557 2011-01-14 Joel Brobecker <brobecker@adacore.com>
4559 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
4560 new-line at end of warning message.
4561 (ia64_hpux_store_register): Remove trailing new-line at end of
4563 * ia64-hpux-tdep.c: Rephrase comment.
4564 * solib-ia64-hpux.c (struct dld_info): Change type of field
4565 dld_flags from "long long" to ULONGEST.
4567 2011-01-14 Pedro Alves <pedro@codesourcery.com>
4569 * target.h (deprecated_child_ops): Delete declaration.
4570 * target.c (deprecated_child_ops): Delete definition.
4572 2011-01-14 Pedro Alves <pedro@codesourcery.com>
4574 * Makefile.in (hpux-thread.o): Delete rule.
4575 * configure.ac: Don't check for HPUX DCE threads support.
4576 * configure, config.in: Regenerate.
4577 * hppa-hpux-nat.c (child_suppress_run): Delete.
4578 (hppa_hpux_child_can_run): Delete.
4579 (_initialize_hppa_hpux_nat): Don't override to_can_run.
4580 * hpux-thread.c: Delete.
4582 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4584 * hpux-thread.c (hpux_pid_to_str): Delete.
4586 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4588 * ada-valprint.c (ada_emit_char): Remove strange code.
4589 Check that c is <= UCHAR_MAX before passing it to isascii.
4590 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
4592 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4594 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
4595 to the case where instream is stdin.
4597 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4599 * ia64-tdep.h (struct regcache): Forward declare.
4600 (struct ia64_infcall_ops): New struct type.
4601 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
4603 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
4604 Renames ia64_find_global_pointer.
4605 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
4606 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
4607 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
4609 (ia64_infcall_ops): New static global constant.
4610 (ia64_gdbarch_init): Set tdep->infcall_ops.
4611 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
4612 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
4613 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
4614 (ia64_hpux_dummy_code): New static global constant.
4615 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
4616 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
4617 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
4619 (ia64_hpux_infcall_ops): New static global constant.
4620 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
4621 for inferior function calls to work properly on ia64-hpux.
4623 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4625 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
4626 * ia64-tdep.h (struct frame_info): forward declaration.
4627 (struct gdbarch_tdep): Add field size_of_register_frame.
4628 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
4629 to determine the size of the register frame.
4630 (ia64_size_of_register_frame): New function.
4631 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
4632 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
4633 (IA64_HPUX_UREG_REASON): New macro.
4634 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
4636 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
4637 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
4638 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
4641 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4643 Add support for ia64-hpux.
4644 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
4645 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
4647 * configure.host: Add handling for ia64-hpux hosts. Add associated
4649 * configure.tgt: Add handling for ia64-hpux targets.
4650 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
4651 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
4652 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
4654 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4656 [ttrace] Compute thread list immediately after attach.
4657 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
4659 (inf_ttrace_attach): Use it.
4661 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4663 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
4664 if we could not determine the frame's function address. Instead,
4665 use the frame's PC, and then continue.
4667 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4669 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
4670 not already defined.
4672 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4674 * ia64-tdep.c (ia64_struct_type_p): New function.
4675 (ia64_extract_return_value): Handle integral values that are
4676 less than 8 bytes long.
4677 (ia64_push_dummy_call): Likewise.
4679 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4681 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
4682 floatformat_ia64_ext.
4683 (floatformat_ia64_ext_big): New static const.
4684 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
4686 2011-01-12 Tom Tromey <tromey@redhat.com>
4688 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
4690 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
4691 (mi_cmd_thread_list_ids): Likewise.
4692 (mi_cmd_data_list_changed_registers): Likewise.
4693 (mi_cmd_data_list_register_values): Likewise.
4694 (mi_cmd_data_write_register_values): Likewise.
4695 (mi_cmd_data_evaluate_expression): Likewise.
4696 (mi_cmd_data_read_memory): Likewise.
4697 (mi_cmd_data_read_memory_bytes): Likewise.
4698 (mi_cmd_data_write_memory): Likewise.
4699 (mi_cmd_enable_timings): Likewise.
4700 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
4701 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
4702 (mi_cmd_var_delete): Likewise.
4703 (mi_cmd_var_set_format): Likewise.
4704 (mi_cmd_var_show_format): Likewise.
4705 (mi_cmd_var_info_num_children): Likewise.
4706 (mi_cmd_var_list_children): Likewise.
4707 (mi_cmd_var_info_type): Likewise.
4708 (mi_cmd_var_info_expression): Likewise.
4709 (mi_cmd_var_show_attributes): Likewise.
4710 (mi_cmd_var_assign): Likewise.
4711 (mi_cmd_var_update): Likewise.
4712 (mi_cmd_enable_pretty_printing): Likewise.
4713 (mi_cmd_var_set_update_range): Likewise.
4714 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
4716 (mi_cmd_target_file_put): Likewise.
4717 (mi_cmd_target_file_delete): Likewise.
4718 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
4720 (mi_cmd_stack_info_depth): Likewise.
4721 (mi_cmd_stack_list_locals): Likewise.
4722 (mi_cmd_stack_list_args): Likewise.
4723 (mi_cmd_stack_select_frame): Likewise.
4724 (mi_cmd_stack_select_frame): Likewise.
4725 (mi_cmd_stack_info_frame): Likewise.
4726 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
4728 (mi_cmd_file_list_exec_source_files): Likewise.
4729 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
4730 (mi_cmd_env_cd): Likewise.
4731 (mi_cmd_env_path): Likewise.
4732 (mi_cmd_env_dir): Likewise.
4733 (mi_cmd_inferior_tty_show): Likewise.
4734 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
4735 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
4736 (mi_cmd_break_watch): Likewise.
4738 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
4740 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
4741 (ppc_linux_insert_hw_breakpoint): Likewise.
4742 (ppc_linux_remove_hw_breakpoint): Likewise.
4743 (ppc_linux_insert_watchpoint): Likewise.
4745 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
4746 Jan Kratochvil <jan.kratochvil@redhat.com>
4748 PR fortran/11104 and DWARF unbound arrays detection.
4749 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
4750 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
4751 unspecified upper bound.
4752 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
4753 variables array_size_array, tmp_type and offset_item. New variable
4754 array. Remove call to f77_get_upperbound. New variables array_type
4755 and index. Call value_subscripted_rvalue for each dimenasion. Remove
4756 the final call to deprecated_set_value_type.
4758 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4760 Make value allocations more lazy.
4761 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
4762 instead of allocate_value and set_value_lazy when possible.
4763 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
4764 instead of allocate_value and set_value_lazy.
4765 * findvar.c (value_of_register_lazy): Likewise.
4766 (read_var_value): Remove V preallocation, call just check_typedef in
4767 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
4768 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
4769 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
4770 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
4771 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
4772 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
4773 the end, remove set_value_lazy there.
4774 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
4775 instead of allocate_value and set_value_lazy when possible.
4776 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
4777 * value.c (allocate_computed_value): Use allocate_value_lazy instead
4778 of allocate_value and set_value_lazy.
4779 (value_from_contents_and_address): Use allocate_value_lazy instead of
4780 allocate_value and set_value_lazy when possible.
4782 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
4784 * disasm.c (dump_insns): Support dumping opcodes for MI.
4785 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
4786 dumping of instruction opcodes.
4788 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
4790 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
4793 2011-01-11 Tom Tromey <tromey@redhat.com>
4795 * thread.c (do_captured_thread_select): Emit newline before
4798 2011-01-11 Michael Snyder <msnyder@vmware.com>
4800 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
4801 * score-tdep.c: Ditto.
4802 * score-tdep.h: Ditto.
4803 * ser-base.c: Ditto.
4804 * ser-go32.c: Ditto.
4807 * ser-mingw.c: Ditto.
4808 * ser-pipe.c: Ditto.
4810 * ser-unix.c: Ditto.
4811 * sh64-tdep.c: Ditto.
4812 * shnbsd-nat.c: Ditto.
4816 * solib-darwin.c: Ditto.
4817 * solib-frv.c: Ditto.
4819 * solib-irix.c: Ditto.
4820 * solib-osf.c: Ditto.
4821 * solib-pa64.c: Ditto.
4822 * solib-som.c: Ditto.
4823 * solib-spu.c: Ditto.
4824 * solib-sunos.c: Ditto.
4825 * solib-svr4.c: Ditto.
4827 * sol-thread.c: Ditto.
4831 * sparc64-linux-tdep.c: Ditto.
4832 * sparc64-tdep.c: Ditto.
4833 * sparc-linux-nat.c: Ditto.
4834 * sparc-linux-tdep.c: Ditto.
4835 * sparc-sol2-nat.c: Ditto.
4836 * sparc-sol2-tdep.c: Ditto.
4837 * sparc-tdep.c: Ditto.
4838 * sparc-tdep.h: Ditto.
4839 * spu-tdep.c: Ditto.
4840 * stabsread.c: Ditto.
4841 * stabsread.h: Ditto.
4849 * target-descriptions.c: Ditto.
4850 * target-descriptions.h: Ditto.
4852 * target-memory.c: Ditto.
4853 * terminal.h: Ditto.
4856 * tracepoint.c: Ditto.
4857 * tracepoint.h: Ditto.
4858 * trad-frame.h: Ditto.
4859 * typeprint.c: Ditto.
4861 2011-01-11 Michael Snyder <msnyder@vmware.com>
4863 * ui-file.c: Comment cleanup, mostly periods and spaces.
4868 * v850-tdep.c: Ditto.
4869 * valarith.c: Ditto.
4871 * valprint.c: Ditto.
4872 * valprint.h: Ditto.
4877 * vax-tdep.c: Ditto.
4881 * windows-nat.c: Ditto.
4882 * windows-tdep.c: Ditto.
4883 * xcoffread.c: Ditto.
4884 * xcoffsolib.c: Ditto.
4885 * xml-support.c: Ditto.
4886 * xstormy16-tdep.c: Ditto.
4887 * xtensa-tdep.c: Ditto.
4888 * xtensa-tdep.h: Ditto.
4890 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4892 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
4893 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
4895 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4896 Thiago Jung Bauermann <bauerman@br.ibm.com>
4898 Implement support for PowerPC BookE ranged watchpoints.
4900 (struct breakpoint_ops) <resources_needed>: New method.
4901 Initialize to NULL in all existing breakpoint_ops instances.
4902 (struct breakpoint) <exact>: New field.
4903 (target_exact_watchpoints): Declare external global.
4904 * breakpoint.c (target_exact_watchpoints): New global flag.
4905 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
4906 b->enable_state to bp_enabled before calling
4907 hw_watchpoint_used_count.
4908 (hw_watchpoint_used_count): Iterate over all bp_locations in a
4909 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
4911 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
4912 if the watchpoint is exact.
4913 (resources_needed_watchpoint): New function.
4914 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
4915 (watch_command_1): Set b->exact if the user asked for an exact
4916 watchpoint and one can be set.
4917 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
4918 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
4919 the user asks for an exact watchpoint and one can be set. Return
4920 number of needed debug registers to watch the expression.
4921 * gdbtypes.c (is_scalar_type): New function, based on
4922 valprint.c:scalar_type_p.
4923 (is_scalar_type_recursive): New function.
4924 * gdbtypes.h (is_scalar_type_recursive): Declare.
4925 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
4926 handle regions when ranged watchpoints are available.
4927 (create_watchpoint_request): New function.
4928 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
4929 create_watchpoint_request.
4930 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
4931 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
4932 `set powerpc' and `show powerpc' commands.
4933 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
4934 Mention documentation comment in the target macro.
4935 (target_region_ok_for_hw_watchpoint): Document return value.
4937 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4939 * breakpoint.c (update_watchpoint): Decide on using a software or
4940 hardware watchpoint after the bp_locations are created.
4942 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4944 Convert hardware watchpoints to use breakpoint_ops.
4945 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
4946 <insert_location>: ... this. Return int instead of void.
4947 Accept pointer to struct bp_location instead of pointer to
4948 struct breakpoint. Adapt all implementations.
4949 (breakpoint_ops) <remove>: Rename to...
4950 <remove_location>: ... this. Accept pointer to struct bp_location
4951 instead of pointer to struct breakpoint. Adapt all implementations.
4952 * breakpoint.c (insert_catchpoint): Delete function.
4953 (insert_bp_location): Call the watchpoint or catchpoint's
4954 breakpoint_ops.insert method.
4955 (remove_breakpoint_1): Call the watchpoint or catchpoint's
4956 breakpoint_ops.remove method.
4957 (insert_watchpoint, remove_watchpoint): New functions.
4958 (watchpoint_breakpoint_ops): New structure.
4959 (watch_command_1): Initialize the OPS field.
4960 * inf-child.c (inf_child_insert_fork_catchpoint)
4961 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
4962 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
4963 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
4965 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
4966 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
4967 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
4968 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
4969 * target.c (update_current_target): Change default implementation of
4970 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
4971 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
4972 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
4973 to_set_syscall_catchpoint to return_one.
4974 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
4975 (debug_to_insert_exec_catchpoint): Report return value.
4976 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
4977 (to_insert_exec_catchpoint): Change declaration to return int instead
4980 2011-01-11 Michael Snyder <msnyder@vmware.com>
4982 * arm-tdep.c: Internationalization.
4985 * fork-child.c: Ditto.
4986 * nto-procfs.c: Ditto.
4987 * ppc-sysv-tdep.c: Ditto.
4989 * remote-mips.c: Ditto.
4991 * rs6000-nat.c: Ditto.
4992 * rs6000-tdep.c: Ditto.
4996 * xml-support.c: Ditto.
4997 * mi/mi-cmd-break.c: Ditto.
4998 * mi/mi-cmd-var.c: Ditto.
4999 * mi/mi-interp.c: Ditto.
5000 * mi/mi-main.c: Ditto.
5002 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
5004 * remote-sim.c (gdbsim_store_register): Update API to
5005 sim_store_register to check more error conditions.
5007 2011-01-10 Michael Snyder <msnyder@vmware.com>
5009 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
5010 * nto-tdep.c: Ditto.
5011 * nto-tdep.h: Ditto.
5012 * objc-exp.y: Ditto.
5013 * objc-lang.c: Ditto.
5014 * objfiles.c: Ditto.
5015 * objfiles.h: Ditto.
5016 * observer.c: Ditto.
5017 * opencl-lang.c: Ditto.
5020 * parser-defs.h: Ditto.
5023 * posix-hdep.c: Ditto.
5024 * ppcbug-rom.c: Ditto.
5025 * ppc-linux-nat.c: Ditto.
5026 * ppc-linux-tdep.c: Ditto.
5027 * ppc-linux-tdep.h: Ditto.
5028 * ppcnbsd-tdep.c: Ditto.
5029 * ppcobsd-tdep.c: Ditto.
5030 * ppcobsd-tdep.h: Ditto.
5031 * ppc-sysv-tdep.c: Ditto.
5032 * ppc-tdep.h: Ditto.
5033 * printcmd.c: Ditto.
5034 * proc-abi.c: Ditto.
5035 * proc-flags.c: Ditto.
5037 * proc-utils.h: Ditto.
5038 * progspace.h: Ditto.
5039 * prologue-value.c: Ditto.
5040 * prologue-value.h: Ditto.
5041 * psympriv.h: Ditto.
5043 * p-typeprint.c: Ditto.
5044 * p-valprint.c: Ditto.
5045 * ravenscar-sparc-thread.c: Ditto.
5046 * ravenscar-thread.c: Ditto.
5047 * ravenscar-thread.h: Ditto.
5049 * regcache.c: Ditto.
5050 * regcache.h: Ditto.
5052 * remote-fileio.c: Ditto.
5053 * remote-fileio.h: Ditto.
5055 * remote-m32r-sdi.c: Ditto.
5056 * remote-mips.c: Ditto.
5057 * remote-sim.c: Ditto.
5058 * rs6000-aix-tdep.c: Ditto.
5059 * rs6000-nat.c: Ditto.
5060 * rs6000-tdep.c: Ditto.
5062 2011-01-10 Michael Snyder <msnyder@vmware.com>
5064 * charset.c (validate): Internationalization.
5065 * coffread.c (read_one_sym): Ditto.
5066 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
5067 * h8300-tdep.c (H8300_extract_return_value): Ditto.
5068 * inflow.c (new_tty): Ditto.
5069 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
5070 * m32c-tdep.c (m32c_return_value): Ditto.
5071 * mep-tdep.c (mep_store_return_value): Ditto.
5072 * score-tdep.c (score7_fetch_insn): Ditto.
5073 * ser-mingw.c (pipe_windows_open): Ditto.
5074 * sh64-tdep.c (sh64_extract_return_value): Ditto.
5075 * spu-tdep.c (spu_register_type): Ditto.
5076 * tracepoint.c (trace_find_command): Ditto.
5077 * valarith.c (value_pos): Ditto.
5079 2011-01-10 Joel Brobecker <brobecker@adacore.com>
5081 * ada-valprint.c (printstr): Minor comment reformatting.
5083 2011-01-08 Michael Snyder <msnyder@vmware.com>
5085 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
5088 2011-01-08 Michael Snyder <msnyder@vmware.com>
5090 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
5091 * hppa-hpux-tdep.c: Ditto.
5092 * hppa-linux-nat.c: Ditto.
5093 * hppa-linux-tdep.c: Ditto.
5094 * hppanbsd-tdep.c: Ditto.
5095 * hppa-tdep.c: Ditto.
5096 * hppa-tdep.h: Ditto.
5097 * hpux-thread.c: Ditto.
5098 * i386-cygwin-tdep.c: Ditto.
5099 * i386-darwin-nat.c: Ditto.
5100 * i386gnu-nat.c: Ditto.
5101 * i386-linux-nat.c: Ditto.
5102 * i386-linux-tdep.c: Ditto.
5103 * i386-nat.c: Ditto.
5104 * i386-nat.h: Ditto.
5105 * i386nbsd-tdep.c: Ditto.
5106 * i386-sol2-nat.c: Ditto.
5107 * i386-stub.c: Ditto.
5108 * i386-tdep.c: Ditto.
5109 * i386-tdep.h: Ditto.
5110 * i387-tdep.c: Ditto.
5111 * ia64-linux-nat.c: Ditto.
5112 * ia64-linux-tdep.c: Ditto.
5113 * ia64-tdep.c: Ditto.
5117 * inferior.c: Ditto.
5118 * inferior.h: Ditto.
5124 * iq2000-tdep.c: Ditto.
5125 * irix5-nat.c: Ditto.
5131 * jv-typeprint.c: Ditto.
5132 * jv-valprint.c: Ditto.
5133 * language.c: Ditto.
5134 * language.h: Ditto.
5135 * linespec.c: Ditto.
5136 * linux-fork.c: Ditto.
5137 * linux-nat.c: Ditto.
5138 * linux-thread-db.c: Ditto.
5139 * lm32-tdep.c: Ditto.
5141 2011-01-08 Michael Snyder <msnyder@vmware.com>
5143 * m2-exp.y: Comment cleanup, mostly periods and spaces.
5145 * m2-typeprint.c: Ditto.
5146 * m2-valprint.c: Ditto.
5147 * m32c-tdep.c: Ditto.
5148 * m32r-linux-nat.c: Ditto.
5149 * m32r-rom.c: Ditto.
5150 * m32r-tdep.c: Ditto.
5151 * m32r-tdep.h: Ditto.
5152 * m68hc11-tdep.c: Ditto.
5153 * m58klinux-nat.c: Ditto.
5154 * m68k-tdep.c: Ditto.
5155 * m88k-tdep.c: Ditto.
5156 * m88k-tdep.h: Ditto.
5157 * machoread.c: Ditto.
5158 * macrocmd.c: Ditto.
5159 * macroexp.c: Ditto.
5160 * macrotab.c: Ditto.
5163 * mdebugread.c: Ditto.
5164 * mdebugread.h: Ditto.
5167 * memory-map.h: Ditto.
5168 * mep-tdep.c: Ditto.
5169 * microblaze-rom.c: Ditto.
5170 * microblaze-tdep.c: Ditto.
5172 * mips-irix-tdep.c: Ditto.
5173 * mips-linux-nat.c: Ditto.
5174 * mips-linux-tdep.c: Ditto.
5175 * mips-linux-tdep.h: Ditto.
5176 * mipsnbsd-nat.c: Ditto.
5177 * mipsnbsd-tdep.c: Ditto.
5178 * mipsread.c: Ditto.
5179 * mips-tdep.c: Ditto.
5180 * mips-tdep.h: Ditto.
5181 * mn10300-linux-tdep.c: Ditto.
5182 * mn10300-tdep.c: Ditto.
5183 * mn10300-tdep.h: Ditto.
5186 * moxie-tdep.c: Ditto.
5187 * moxie-tdep.h: Ditto.
5190 2011-01-08 Mike Frysinger <vapier@gentoo.org>
5192 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
5194 2011-01-08 Robert Millan <rmh@gnu.org>
5196 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
5198 2011-01-07 Michael Snyder <msnyder@vmware.com>
5200 * charset.c (_initialize_charset): Fix typo in string.
5202 2011-01-07 Michael Snyder <msnyder@vmware.com>
5204 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
5206 * tui/tui-layout.c (tui_set_layout_for_display_command):
5207 Split line so that operator goes to beginning of line.
5208 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
5209 assignment out of if statement.
5211 2011-01-07 Michael Snyder <msnyder@vmware.com>
5213 * ada-lang.c: Comment cleanup, mostly periods and spaces.
5214 * ada-lang.h: Ditto.
5215 * ada-tasks.c: Ditto.
5216 * ada-valprint.c: Ditto.
5217 * aix-threads.c: Ditto.
5218 * alpha-linux-nat.c: Ditto.
5219 * alpha-linux-tdep.c: Ditto.
5220 * alpha-mdebug-tdep.c: Ditto.
5221 * alpha-nat.c: Ditto.
5222 * alpha-osf1-tdep.c: Ditto.
5223 * alpha-tdep.c: Ditto.
5224 * alphabsd-nat.c: Ditto.
5225 * alphabsd-tdep.c: Ditto.
5226 * amd64-darwin-tdep.c: Ditto.
5227 * amd64-linux-nat.c: Ditto.
5228 * amd64-linux-tdep.c: Ditto.
5229 * amd64-sol2-tdep.c: Ditto.
5230 * amd64-tdep.c: Ditto.
5231 * amd64-fbsd-tdep.c: Ditto.
5232 * amd64-nbsd-tdep.c: Ditto.
5233 * amd64-obsd-tdep.c: Ditto.
5234 * amd64-linux-nat.c: Ditto.
5235 * amd64-linux-tdep.c: Ditto.
5236 * arm-tdep.c: Ditto.
5237 * arm-tdep.h: Ditto.
5238 * armnbsd-nat.c: Ditto.
5239 * avr-tdep.c: Ditto.
5240 * bfin-tdep.c: Ditto.
5242 * c-typeprintc: Ditto.
5243 * c-valprint.c: Ditto.
5244 * coff-pe-read.h: Ditto.
5245 * coffreead.c: Ditto.
5246 * cris-tdep.c: Ditto.
5248 * darwin-nat-info.c: Ditto.
5249 * darwin-nat.c: Ditto.
5250 * dbug-rom.c: Ditto.
5254 * dec-thread.c: Ditto.
5256 * demangle.c: Ditto.
5257 * dicos-tdep.c: Ditto.
5258 * dictionary.c: Ditto.
5259 * dictionary.h: Ditto.
5260 * dink32-rom.c: Ditto.
5262 * doublest.c: Ditto.
5264 * dummy-frame.c: Ditto.
5265 * dwarf2-frame.c: Ditto.
5266 * dwarf2expr.c: Ditto.
5267 * dwarf2loc.c: Ditto.
5268 * dwarf2read.c: Ditto.
5272 * event-top.h: Ditto.
5273 * exceptions.c: Ditto.
5274 * exceptions.h: Ditto.
5276 * expprint.c: Ditto.
5277 * expression.h: Ditto.
5281 * f-typeprint.c: Ditto.
5282 * f-valprint.c: Ditto.
5283 * fbsd-nat.c: Ditto.
5285 * fork-child.c: Ditto.
5288 * frv-linux-tdep.c: Ditto.
5289 * frv-tdep.c: Ditto.
5291 * gdb-stabs.h: Ditto.
5292 * gdb_assert.h: Ditto.
5293 * gdb_string.h: Ditto.
5294 * gdb_thread_db.h: Ditto.
5295 * gdb_wait.h: Ditto.
5296 * gdbarch.sh: Ditto.
5298 * gdbthread.h: Ditto.
5299 * gdbtypes.c: Ditto.
5300 * gdbtypes.h: Ditto.
5303 * gnu-v2-abi.c: Ditto.
5304 * gnu-v3-abi.c: Ditto.
5305 * go32-nat.c: Ditto.
5306 * gdbarch.c: Regenerate.
5307 * gdbarch.h: Regenerate.
5309 2011-01-07 Michael Snyder <msnyder@vmware.com>
5311 * ax-gdb.c: Adjust some long output strings.
5312 * breakpoint.c: Ditto.
5317 * linux-nat.c: Ditto.
5318 * solib-pa64.c: Ditto.
5319 * solib-som.c: Ditto.
5321 2011-01-06 Tom Tromey <tromey@redhat.com>
5325 * python/python.c (GdbMethods): Add "newest_frame" method.
5326 * python/python-internal.h (gdbpy_newest_frame): Declare.
5327 * python/py-frame.c (gdbpy_newest_frame): New function.
5329 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
5331 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
5332 * jit.c (jit_debug): New variable.
5333 (show_jit_debug): New function.
5334 (struct target_buffer): Use ULONGEST.
5335 (bfd_open_from_target_memory): Likewise.
5336 (jit_register_code, jit_inferior_init): Add debug output.
5337 (_initialize_jit): Register "debug jit" command.
5339 2011-01-06 Tom Tromey <tromey@redhat.com>
5341 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
5342 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
5345 2011-01-06 Tom Tromey <tromey@redhat.com>
5347 * python/py-frame.c (frapy_block): Use get_frame_block.
5349 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5351 Do not stop on SIGPRIO signals by default
5352 * infrun.c (_initialize_infrun): Unset signal_stop and
5353 signal_print for TARGET_SIGNAL_PRIO.
5355 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5357 * ada-tasks.c: Fix style violation in comment.
5359 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5361 * linespec.c (decode_compound, find_method): Remove trailing \n
5362 at end of error string.
5363 * solib-irix.c (irix_current_sos): Likewise.
5364 * varobj.c (uninstall_variable): Likewise.
5366 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5368 * copyright.py: New script.
5369 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
5370 Launch emacs without exec'ing. Call copyright.py afterwards.
5372 2011-01-05 Michael Snyder <msnyder@vmware.com>
5374 * addrmap.c: Shorten lines of >= 80 columns.
5375 * arch-utils.c: Ditto.
5376 * arch-utils.h: Ditto.
5378 * ax-general.c: Ditto.
5380 * blockframe.c: Ditto.
5381 * breakpoint.c: Ditto.
5382 * buildsym.c: Ditto.
5384 * c-typeprint.c: Ditto.
5386 * coffread.c: Ditto.
5390 * cp-namespace.c: Ditto.
5391 * cp-support.c: Ditto.
5392 * dbug-rom.c: Ditto.
5397 * dictionary.c: Ditto.
5399 * doublest.c: Ditto.
5400 * dwarf2-frame.c: Ditto.
5401 * dwarf2expr.c: Ditto.
5402 * dwarf2loc.c: Ditto.
5403 * dwarf2read.c: Ditto.
5406 * event-loop.c: Ditto.
5407 * event-loop.h: Ditto.
5408 * exceptions.h: Ditto.
5410 * expprint.c: Ditto.
5411 * expression.h: Ditto.
5413 * f-valprint.c: Ditto.
5415 * frame-base.c: Ditto.
5416 * frame-unwind.c: Ditto.
5417 * frame-unwind.h: Ditto.
5421 * gdb-stabs.h: Ditto.
5422 * gdb_assert.h: Ditto.
5423 * gdb_dirent.h: Ditto.
5424 * gdb_obstack.h: Ditto.
5426 * gdbtypes.c: Ditto.
5427 * gdbtypes.h: Ditto.
5428 * inf-ttrace.c: Ditto.
5433 * inline-frame.h: Ditto.
5434 * language.c: Ditto.
5435 * language.h: Ditto.
5436 * libunwind-frame.c: Ditto.
5437 * libunwind-frame.h: Ditto.
5438 * linespec.c: Ditto.
5439 * linux-nat.c: Ditto.
5440 * linux-nat.h: Ditto.
5441 * linux-thread-db.c: Ditto.
5442 * machoread.c: Ditto.
5443 * macroexp.c: Ditto.
5444 * macrotab.c: Ditto.
5447 * mdebugread.c: Ditto.
5452 * objfiles.c: Ditto.
5453 * objfiles.h: Ditto.
5455 * p-typeprint.c: Ditto.
5456 * p-valprint.c: Ditto.
5458 * printcmd.c: Ditto.
5459 * proc-events.c: Ditto.
5461 * progspace.c: Ditto.
5462 * progspace.h: Ditto.
5463 * psympriv.h: Ditto.
5466 * regcache.c: Ditto.
5467 * regcache.h: Ditto.
5468 * remote-fileio.c: Ditto.
5470 * ser-mingw.c: Ditto.
5472 * ser-unix.c: Ditto.
5475 * solib-frv.c: Ditto.
5476 * solib-irix.c: Ditto.
5477 * solib-osf.c: Ditto.
5478 * solib-pa64.c: Ditto.
5479 * solib-som.c: Ditto.
5480 * solib-sunos.c: Ditto.
5481 * solib-svr4.c: Ditto.
5482 * solib-target.c: Ditto.
5486 * stabsread.c: Ditto.
5487 * stabsread.c: Ditto.
5490 * symfile-mem.c: Ditto.
5496 * target-descriptions.c: Ditto.
5497 * target-memory.c: Ditto.
5500 * terminal.h: Ditto.
5503 * tracepoint.c: Ditto.
5504 * tracepoint.h: Ditto.
5508 * user-regs.c: Ditto.
5509 * user-regs.h: Ditto.
5511 * valarith.c: Ditto.
5513 * valprint.c: Ditto.
5514 * valprint.h: Ditto.
5519 * xcoffread.c: Ditto.
5520 * xcoffsolib.c: Ditto.
5521 * xcoffsolib.h: Ditto.
5522 * xml-syscall.c: Ditto.
5523 * xml-tdesc.c: Ditto.
5525 2011-01-05 Michael Snyder <msnyder@vmware.com>
5527 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
5528 * cli/cli-decode.c: Ditto.
5529 * cli/cli-dump.c: Ditto.
5530 * cli/cli-logging.c: Ditto.
5531 * cli/cli-script.c: Ditto.
5532 * cli/cli-setshow.c: Ditto.
5533 * common/signals.c: Ditto.
5534 * mi/mi-cmd-break.c: Ditto.
5535 * mi/mi-cmd-disas.c: Ditto.
5536 * mi/mi-cmd-stack.c: Ditto.
5537 * mi/mi-cmd-var.c: Ditto.
5538 * mi/mi-cmds.c: Ditto.
5539 * mi/mi-common.h: Ditto.
5540 * mi/mi-console.c: Ditto.
5541 * mi/mi-interp.c: Ditto.
5542 * mi/mi-main.c: Ditto.
5543 * osf-share/cma_attr.c: Ditto.
5544 * osf-share/cma_deb_core.h: Ditto.
5545 * osf-share/cma_debug_client.h: Ditto.
5546 * osf-share/cma_handle.h: Ditto.
5547 * osf-share/cma_mutex.h: Ditto.
5548 * osf-share/cma_stack_int.h: Ditto.
5549 * osf-share/cma_tcb_defs.h: Ditto.
5550 * python/py-auto-load.c: Ditto.
5551 * python/py-breakpoint.c: Ditto.
5552 * python/py-cmd.c: Ditto.
5553 * python/py-frame.c: Ditto.
5554 * python/py-objfile.c: Ditto.
5555 * python/py-param.c: Ditto.
5556 * python/py-progspace.c: Ditto.
5557 * python/py-symbol.c: Ditto.
5558 * python/py-value.c: Ditto.
5559 * python/python-internal.h: Ditto.
5560 * python/python.c: Ditto.
5561 * tui/tui-data.c: Ditto.
5562 * tui/tui-disasm.c: Ditto.
5563 * tui/tui-hooks.c: Ditto.
5564 * tui/tui-io.c: Ditto.
5565 * tui/tui-layout.c: Ditto.
5566 * tui/tui-regs.c: Ditto.
5567 * tui/tui-source.c: Ditto.
5568 * tui/tui-stack.c: Ditto.
5569 * tui/tui-win.c: Ditto.
5570 * tui/tui-windata.c: Ditto.
5571 * tui/tui-winsource.c: Ditto.
5573 2011-01-05 Joel Brobecker <brobecker@adacore.com>
5575 * configure.ac, gdb.1: Copyright year update.
5577 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5579 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
5580 this_pc_in_block, morestack_msym and morestack_name. Check for
5581 "__morestack" minimal symbol there.
5583 2011-01-03 Joel Brobecker <brobecker@adacore.com>
5585 * symfile.c (find_sym_fns): Add call to dont_repeat.
5587 2011-01-01 Joel Brobecker <brobecker@adacore.com>
5589 Copyright year update in most files (performed by copyright.sh).
5591 2011-01-01 Joel Brobecker <brobecker@adacore.com>
5593 * top.c (print_gdb_version): Update copyright year in version output.
5595 For older changes see ChangeLog-2010.
5601 version-control: never