1 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3 Make addrs->SECTINDEX always defined.
4 * symfile.c (relative_addr_info_to_section_offsets): Check for
5 SECTINDEX -1, not for zero ADDR.
6 (addrs_section_compar): Remove checking for invalid SECTINDEX.
7 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
8 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
11 2011-05-10 Doug Evans <dje@google.com>
13 * linux-thread-db.c: Whitespace cleanup.
14 (try_thread_db_load_1): Fix comment.
16 * linux-thread-db.c (set_libthread_db_search_path): New function.
17 (_initialize_thread_db): Add setter for libthread-db-search-path.
19 2011-05-09 Doug Evans <dje@google.com>
21 * NEWS: Mention --with-iconv-bin.
22 * configure.ac: New option --with-iconv-bin.
23 * configure: Regenerate.
24 * config.in: Regenerate.
25 * defs.h (relocate_gdb_directory): Declare.
26 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
27 removed progname parameter, and exported. All callers updated.
28 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
30 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
31 adding missing call to restore_child_signals_mask.
33 2011-05-09 Pedro Alves <pedro@codesourcery.com>
35 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
37 * infrun.c (proceed, start_remote): Adjust.
38 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
39 and adjust to not handle it.
40 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
41 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
42 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
43 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
44 * windows-nat.c (do_initial_windows_stuff): Adjust.
45 * infcmd.c (attach_command): Adjust.
46 (notice_new_inferior): Adjust.
48 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
50 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
51 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
52 * spu-tdep.c (op_selb): Use correct value.
54 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
56 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
57 "parent" parameter to symbol_file_add_from_bfd call.
59 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
60 Thiago Jung Bauermann <bauerman@br.ibm.com>
62 Implement support for PowerPC BookE masked watchpoints.
63 * NEWS: Mention masked watchpoint support. Create "Changed commands"
65 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
66 method. Initialize to NULL in all existing breakpoint_ops instances.
67 (struct breakpoint) <hw_wp_mask>: New field.
68 * breakpoint.c (is_masked_watchpoint): Add prototype.
69 (update_watchpoint): Don't set b->val for masked watchpoints. Call
70 breakpoint's breakpoint_ops.works_in_software_mode if available.
71 (watchpoints_triggered): Handle the case of a hardware masked
73 (watchpoint_check): Likewise.
74 (works_in_software_mode_watchpoint): New function.
75 (insert_masked_watchpoint, remove_masked_watchpoint)
76 (resources_needed_masked_watchpoint)
77 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
78 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
79 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
81 (masked_watchpoint_breakpoint_ops): New structure.
82 (watch_command_1): Check for the existence of the `mask' parameter.
83 Set b->ops according to the type of hardware watchpoint being created.
84 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
85 (ppc_linux_remove_mask_watchpoint)
86 (ppc_linux_masked_watch_num_registers): New functions.
87 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
88 to_remove_mask_watchpoint and to_masked_watch_num_registers.
89 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
90 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
91 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
92 (target_masked_watch_num_registers): New functions.
93 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
94 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
96 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
97 (target_masked_watch_num_registers): Add prototypes.
99 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
102 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
103 (producer_is_gcc_ge_4_0): New function.
104 (process_full_comp_unit): Set also symtab->locations_valid. Move the
105 symtab->language code.
106 (var_decode_location): Set cu->has_loclist.
107 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
108 skip. Intialize force_skip from locations_valid. Move the prologue
109 skipping code into two passes.
110 * symtab.h (struct symtab): Make the primary field a bitfield. New
111 field locations_valid.
113 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
115 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
116 (classify_inner_name): Call cp_lookup_nested_type with
118 * cp-namespace.c (cp_lookup_nested_type): New variable
119 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
120 type_name_no_tag_or_error with saved_parent_type.
121 * dwarf2read.c (load_partial_dies): Read in any children of
122 DW_TAG_typedef with complaint in such case.
123 * gdbtypes.c (type_name_no_tag_or_error): New function.
124 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
125 * valops.c (destructor_name_p): New comment for parameter type. Remove
126 type const. Make dname and cp const. Call type_name_no_tag_or_error.
127 * value.h (destructor_name_p): Remove type const.
129 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
131 * symtab.c (compare_symbol_name): New function.
132 (completion_list_add_name, expand_partial_symbol_name): Call it,
133 remove the variable ncmp.
134 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
137 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
139 Demote to sw watchpoint only in update_watchpoint.
140 * breakpoint.c (update_watchpoint): Change between software and
141 hardware watchpoint for all kinds of watchpoints, not just
142 read/write ones. Determine b->exact value here instead of
143 in watch_command_1. Error out if there are not enough resources
144 for a read or access hardware watchpoint.
145 (watch_command_1): Remove logic of checking whether there are
146 enough resources available, since update_watchpoint will do that
147 work now. Don't set b->exact here. Catch exceptions thrown by
148 update_watchpoint and delete the watchpoint.
149 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
150 Use target_exact_watchpoints instead.
151 (delete_breakpoint): Notify observers only if deleted watchpoint
152 has a breakpoint number assigned to it.
154 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
156 * MAINTAINERS: Add myself as a write-after-approval maintainer.
158 2011-05-05 Jerome Guitton <guitton@adacore.com>
160 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
162 (i386_stack_tramp_frame_unwind): New static global.
163 (i386_match_pattern): New function, extracted from i386_match_insn.
164 (i386_match_insn): Use i386_match_pattern.
165 (i386_match_insn_block): New function.
166 (i386_tramp_chain_in_reg_insns)
167 (i386_tramp_chain_on_stack_insns): New static variables.
168 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
171 2011-05-04 Joseph Myers <joseph@codesourcery.com>
173 * configure.host (xscale*): Don't handle target.
174 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
177 2011-05-04 Yao Qi <yao@codesourcery.com>
179 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
181 2011-05-03 Joel Brobecker <brobecker@adacore.com>
184 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
185 | * elfread.c (elf_symtab_read): Stop memory leak.
187 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
189 * nto-tdep.c (nto_target): Replace deprecated call to
190 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
192 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
194 Fix false GCC warning.
195 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
197 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
199 * breakpoint.c (update_watchpoint): Move code to change
200 the enable state of breakpoint from here ...
201 (do_enable_breakpoint): ... to here.
203 2011-04-26 Andrew Gontarek <andrewg@cray.com>
205 * valprint.c (val_print_array_elements): Fixed poor performance
206 of printing very large arrays with repeat_count_threshold set
207 to unlimited. New comment.
209 2011-04-29 Tom Tromey <tromey@redhat.com>
211 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
212 (mi_parse): Likewise.
213 * breakpoint.c (break_range_command): Use sizeof char*, not
215 (create_breakpoint): Likewise.
216 (parse_breakpoint_sals): Likewise.
218 2011-04-29 Pedro Alves <pedro@codesourcery.com>
220 * linux-nat.c (linux_child_remove_fork_catchpoint)
221 (linux_child_remove_vfork_catchpoint)
222 (linux_child_remove_exec_catchpoint): New functions.
223 (linux_target_install_ops): Install them.
225 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
229 * varobj.c (install_default_visualizer): Do not install a
230 visualizer if the varobj is CPLUS_FAKE_CHILD.
231 (construct_visualizer): Likewise.
233 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
235 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
236 case insensitive comparison.
238 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
240 * infrun.c (proceed): Revert previous change.
241 (resume): Instead, handle the case of signal delivery while stepping
242 off a breakpoint location here, and only if software single-stepping
243 is used. Handle nested signals.
245 2011-04-28 Yao Qi <yao@codesourcery.com>
247 * arm-tdep.c (copy_unmodified): Rename to ...
248 (arm_copy_unmodified): .. this. New.
249 (copy_preload): Move common part to ...
250 (install_preload): .. this. New.
251 (arm_copy_preload): New.
252 (copy_preload_reg): Move common part to ...
253 (install_preload_reg): ... this. New.
254 (arm_copy_preload_reg): New.
255 (copy_b_bl_blx): Move common part to ...
256 (install_b_bl_blx): .. this. New.
257 (arm_copy_b_bl_blx): New.
258 (copy_bx_blx_reg): Move common part to ...
259 (install_bx_blx_reg): ... this. New.
260 (arm_copy_bx_blx_reg): New.
261 (copy_alu_reg): Move common part to ...
262 (install_alu_reg): ... this. New.
263 (arm_copy_alu_reg): New.
264 (copy_alu_shifted_reg): Move common part to ...
265 (install_alu_shifted_reg): ... this. New.
266 (copy_ldr_str_ldrb_strb): Move common part to ...
267 (install_ldr_str_ldrb_strb): ... this. New.
268 (arm_copy_ldr_str_ldrb_strb): New.
269 (copy_copro_load_store): Move some common part to ...
270 (install_copy_copro_load_store): ... this. New.
271 (arm_copy_copro_load_store): New.
273 (arm_copy_svc): Renamed from copy_svc.
274 (copy_undef): Delete.
275 (arm_copy_undef): Renamed from copy_undef.
276 (decode_ext_reg_ld_st): Delete.
277 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
278 (decode_svc_copro): Delete.
279 (arm_decode_svc_copro): Renamed from decode_svc_copro.
280 (copy_copro_load_store, copy_alu_imm): update callers.
281 (copy_extra_ld_st, copy_block_xfer): Likewise.
282 (decode_misc_memhint_neon, decode_unconditional): Likewise.
283 (decode_miscellaneous, decode_dp_misc): Likewise.
284 (decode_ld_st_word_ubyte, decode_media): Likewise.
285 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
286 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
287 (decode_unconditional, decode_miscellaneous): Likewise.
288 (decode_media, decode_b_bl_ldmstm): Likewise.
289 (arm_process_displaced_insn): Likewise..
290 (decode_misc_memhint_neon): Delete.
291 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
292 (decode_miscellaneous): Delete.
293 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
294 (decode_dp_misc): Delete.
295 (arm_decode_dp_misc): Renamed from decode_dp_misc.
296 (decode_ld_st_word_ubyte): Delete.
297 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
298 (decode_media): Delete.
299 (arm_decode_media): Renamed from decode_media.
300 (decode_b_bl_ldmstm): Delete.
301 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
302 (decode_ext_reg_ld_st): Delete.
303 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
304 (decode_unconditional): Delete.
305 (arm_decode_unconditional): Renamed from decode_unconditional.
307 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
309 Case insensitive lookups implementation.
310 * dwarf2read.c: Include ctype.h.
311 (struct mapped_index): New field version.
312 (mapped_index_string_hash): New parameter index_version. New comment
313 for it. Call tolower appropriately.
314 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
315 Choose the right index version for mapped_index_string_hash.
316 (dwarf2_read_index): Support also the index version 5. Initialize the
317 new struct mapped_index field version.
318 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
319 (find_slot): Explain the version needs. Pass INT_MAX for the new
321 (write_psymtabs_to_index): Produce version 5.
322 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
323 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
324 * psymtab.c (lookup_partial_symbol): Find the
325 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
327 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
329 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
330 (completion_list_add_name): New variable ncmp, initialize it, use it.
331 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
332 * utils.c (strcmp_iw): Support case_sensitive_off.
333 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
334 New function comment part. New variables saved_string1,
335 saved_string2 and case_pass. Add a proper second pass.
337 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
339 Replace re_comp/re_exec by regcomp/regexec.
340 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
341 (search_symbols_name_matches): Use them, use regexec.
342 (search_symbols): New variable retval_chain, adjust the use of
343 old_chain against it. Replace re_comp by regcomp. Use the new struct
344 search_symbols_data fields, use regexec instead of re_exec.
346 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
348 Format the code for the next patch.
349 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
350 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
351 New variables c1 and c2.
353 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
355 * infrun.c (proceed): Do not single-step into signal delivery
356 when stepping off a breakpoint location.
357 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
358 (insert_step_resume_breakpoint_at_caller): Likewise.
359 (insert_step_resume_breakpoint_at_sal): Likewise.
360 (insert_longjmp_resume_breakpoint): Likewise.
362 2011-04-27 Yao Qi <yao@codesourcery.com>
364 * common/linux-ptrace.h: Remove include <sys/wait.h>.
366 2011-04-27 Joel Brobecker <brobecker@adacore.com>
368 * procfs.c (procfs_pass_signals): Fix advance declaration.
370 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
372 * target.h (struct target_ops): Remove to_notice_signals;
374 (target_notice_signals): Remove.
375 (target_pass_signals): Add prototype.
376 * target.c (update_current_target): Remove to_notice_signals;
377 mention to_pass_signals.
378 (target_pass_signals): New function.
379 (debug_to_notice_signals): Remove.
380 (setup_target_debug): Do not install debug_to_notice_signals.
382 * infrun.c (signal_pass): New global.
383 (resume): Call target_pass_signals.
384 (handle_inferior_event): Report all signals while stepping over
385 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
386 are re-inserted when stepping over a signal handler.
387 (signal_cache_update): New function.
388 (signal_stop_update): Call it.
389 (signal_print_update): Likewise.
390 (signal_pass_update): Likewise.
391 (handle_command): Call signal_cache_update and target_pass_signals
392 instead of target_notice_signals.
393 (_initialize_infrun): Initialize signal_pass.
395 * linux-nat.c (pass_mask): New global.
396 (linux_nat_pass_signals): New function.
397 (linux_nat_create_inferior): Report all signals initially.
398 (linux_nat_attach): Likewise.
399 (linux_nat_resume): Use pass_mask to decide whether to directly
400 handle an inferior signal.
401 (linux_nat_wait_1): Likewise.
402 (linux_nat_add_target): Install to_pass_signals callback.
404 * nto-procfs.c (notice_signals): Remove.
405 (procfs_resume): Do not call notice_signals.
406 (procfs_notice_signals): Remove.
407 (procfs_pass_signals): New function.
408 (init_procfs_ops): Install to_pass_signals callback instead of
409 to_notice_signals callback.
410 (_initialize_procfs): Report all signals initially.
412 * procfs.c (procfs_notice_signals): Remove.
413 (procfs_pass_signals): New function.
414 (procfs_target): Install to_pass_signals callback instead of
415 to_notice_signals callback.
416 (register_gdb_signals): Remove.
417 (procfs_debug_inferior): Report all signals initially.
418 (procfs_init_inferior): Remove redundant register_gdb_signals call.
420 * remote.c (remote_pass_signals): Add numsigs and pass_signals
421 parameters; use them instead of calling signal_..._state routines.
422 (remote_notice_signals): Remove.
423 (remote_start_remote): Report all signals initially.
424 (remote_resume): Do not call remote_pass_signals.
425 (_initialize_remote): Install to_pass_signals callback instead of
426 to_notice_signals callback.
428 2011-04-27 Pedro Alves <pedro@codesourcery.com>
430 * breakpoint.c (user_settable_breakpoint): Delete.
431 (user_breakpoint_p): Remove check on user_settable_breakpoint.
432 (delete_command): Check user_breakpoint_p instead of looking at
433 the breakpoint's type.
434 (disable_command): Ditto.
435 (enable_command): Ditto.
436 (delete_trace_command): Use user_breakpoint_p instead of looking
437 at the breakpoint number directly. When checking if there are
438 user visible tracepoints, in order to know whether to ask the user
439 for confirmation, check whether the breakpoint is actually a
442 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
444 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
447 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
449 MI breakpoint notifications.
451 * annotate.c (breakpoint_changed): Adjust parameter type.
452 * breakpoint.c (set_breakpoint_condition): Adjust to change
453 in breakpoint_modified type.
454 (breakpoint_set_commands): Likewise.
455 (do_map_commands_command): Likewise.
456 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
457 changed after bumping hit count.
458 (bpstat_stop_status): Likewise.
459 (print_one_breakpoint_location): Don't wrap in tuple here.
460 (print_one_breakpoint): Always print individual locations.
461 For locations, use unnamed tuple.
462 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
464 (create_catchpoint, create_syscall_event_catchpoint): Call
465 breakpoint_created obsever.
466 (mention): Don't call breakpoint_created observer.
467 (create_breakpoint_sal): Call breakpoint_created observer.
468 (create_breakpoint, watch_command_1): Likewise.
469 (create_ada_exception_breakpoint): Likewise.
470 (delete_breakpoint): Call breakpoint_deleted breakpoint.
471 (locations_are_equal): New.
472 (update_breakpoint_locations): If locations were changed, notify.
473 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
474 Call breakpoint_modified observer.
476 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
477 (mi_cmd_break_insert): Don't set observers for modify and delete.
478 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
479 (mi_breakpoint_created, mi_breakpoint_deleted)
480 (mi_breakpoint_modified): New.
481 (mi_interpreter_init): Hook the above.
482 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
483 while -break-* commands are executing.
484 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
485 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
487 (mi_ui_out_impl): Hook in mi_redirect.
488 (mi_field_skip): True to the name, skip the field, don't output
489 a field with an empty value.
491 * python/py-breakpoint.c (gdbpy_breakpoint_created)
492 (gdbpy_breakpoint_deleted): Adjust.
493 * tui/tui-hooks.c (tui_event_create_breakpoint)
494 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
496 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
498 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
499 (procfs_remove_hw_watchpoint): Likewise.
501 2011-04-26 Michael Walle <michael@walle.cc>
503 * remote.c (remote_start_remote): Ack packet after sending the
506 2011-04-26 Yao Qi <yao@codesourcery.com>
508 * linux-nat.c: Move common macros to ...
509 Include linux-ptrace.h.
510 * common/linux-ptrace.h: ... here. New.
512 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
514 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
515 !objfile_has_partial_symbols. New comment.
516 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
517 SYM_READ_PSYMBOLS is not present. Extend the comment.
518 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
520 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
522 * defs.h (ENUM_BITFIELD): Remove.
524 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
525 Eli Zaretskii <eliz@gnu.org>
527 * NEWS: Document the new gdbserver --once option.
529 2011-04-21 Jie Zhang <jzhang918@gmail.com>
531 * MAINTAINERS: Update my email address.
533 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
535 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
536 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
537 function call if __STDC_ISO_10646__ macro is defined.
538 (intermediate_encoding): New prototype.
539 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
540 to generate compile time error for unsupported gdb_wchar_t size.
541 (ENDIAN_SUFFIX): New macro.
542 (intermediate_encoding): New function.
544 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
546 * ada-lang.c (struct add_partial_datum): Update the comment for
547 expand_partial_symbol_name.
548 (ada_add_partial_symbol_completions): Rename to ...
549 (ada_expand_partial_symbol_name): ... here, change return type, update
550 function comment, call symbol_completion_match instead of
551 symbol_completion_add.
552 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
553 and ada_expand_partial_symbol_name.
554 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
556 (dw2_map_symbol_names): Remove.
557 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
558 * psymtab.c (map_symbol_names_psymtab): Remove.
559 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
560 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
562 (psym_functions): Unlist map_symbol_names_psymtab.
563 (map_partial_symbol_names): Rename to ...
564 (expand_partial_symbol_names): ... here, change the FUN type, call
565 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
566 * psymtab.h (map_partial_symbol_names): Rename to ...
567 (expand_partial_symbol_names): ... here, change the FUN type.
568 * symfile.h (struct quick_symbol_functions): Update the description of
569 expand_symtabs_matching. Remove map_symbol_names.
570 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
571 (struct add_name_data): Update the comment for
572 expand_partial_symbol_name.
573 (add_partial_symbol_name): Rename to ...
574 (expand_partial_symbol_name): ... here. Replace
575 completion_list_add_name call by strncmp.
576 (default_make_symbol_completion_list_break_on): Use now
577 expand_partial_symbol_names and expand_partial_symbol_name.
578 * symtab.h (enum search_domain): New element ALL_DOMAIN.
580 2011-04-20 Tom Tromey <tromey@redhat.com>
582 * dwarf2read.c (save_gdb_index_command): Replace format
583 documentation with a pointer to the manual.
585 2011-04-20 Pedro Alves <pedro@codesourcery.com>
587 * regcache.c: Include remote.h.
588 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
589 (regcache_dump): Handle regcache_dump_remote.
590 (maintenance_print_remote_registers): New function.
591 (_initialize_regcache): Install "maint print remote-registers"
593 * remote.c (map_regcache_remote_table): New function, factored out
595 (init_remote_state): ... here.
596 (remote_register_number_and_offset): New.
597 * remote.h (remote_register_number_and_offset): Declare.
599 2011-04-20 Pedro Alves <pedro@codesourcery.com>
601 * regcache.c (get_thread_arch_regcache): If creating a regcache for
602 null_ptid, assume and allow a NULL address space, instead of
603 asking the target for the ptid's address space.
604 * infrun.c (ptid_is_pid): Remove assertion.
606 2011-04-19 Tom Tromey <tromey@redhat.com>
608 * windows-tdep.c (windows_xfer_shared_library):
609 * windows-nat.c (get_module_name, windows_make_so):
610 * v850-tdep.c (v850_handle_pushm):
611 * utils.c (null_cleanup, gdb_realpath):
612 * ui-out.c (get_next_header):
613 * tracepoint.c (clear_traceframe_info):
614 * symtab.c (lookup_symtab):
615 * serial.h (struct serial_ops):
616 * mipsread.c (read_alphacoff_dynamic_symtab):
617 * infcmd.c (print_return_value):
618 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
619 * f-exp.y (parse_number):
620 * exceptions.c (catch_exceptions):
621 * dummy-frame.c (dummy_frame_this_id):
622 * defs.h (struct cleanup):
623 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
624 * arm-tdep.c (arm_push_dummy_call):
625 * amd64-tdep.h (amd64_collect_xsave):
626 * amd64-tdep.c (amd64_collect_xsave):
627 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
628 * README (typing): Remove duplicate words.
629 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
630 * infrun.c (siginfo_value_read): Fix typo.
631 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
632 * top.c (source_line_number): Add comma.
634 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
636 * thread.c (any_live_thread_of_process): Prioritize threads
637 that are not executing.
638 * gdbthread.h (any_live_thread_of_process): Update comment
641 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
643 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
644 (scan_xcoff_symtab): Likewise.
646 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
648 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
651 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
652 Pedro Alves <pedro@codesourcery.com>
654 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
655 variables to simplify code and avoid == operator at end of
656 line as this is against GNU coding standards.
658 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
660 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
661 lm_name to name_lm to avoid conflict with lm_name function.
663 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
665 ARI fixes: Use only lowercase function name for static functions.
666 * nto-tdep.c (LM_ADDR): Rename to...
667 (lm_addr): New function name.
668 (nto_relocate_section_addresses): Adapt to change above.
669 * solib-sunos.c (LM_ADDR): Rename to...
670 (lm_addr): New function name.
671 (LM_NEXT): Rename to...
672 (lm_next): New function name.
673 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
674 function name changes above.
675 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
676 (lm_addr_from_link_map): New function name.
677 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
678 (has_lm_dynamic_from_link_map): New function name.
679 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
680 (lm_dynamic_from_link_map): New function name.
681 (LM_ADDR_CHECK): Rename to...
682 (lm_addr_check): New function name.
683 (LM_NEXT): Rename to...
684 (lm_next): New function name.
685 (LM_PREV): Rename to...
686 (lm_prev): New function name.
687 (LM_NAME): Rename to...
688 (lm_name): New function name.
689 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
690 (ignore_first_link_map_entry): New function name.
691 (svr4_keep_data_in_core): Adapt to function name changes above.
692 (svr4_current_sos): Likewise.
693 (enable_break): Likewise.
694 (svr4_relocate_section_addresses): Likewise.
696 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
699 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
700 sprintf. Simplify code and avoid loosing memory.
701 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
702 (call0_frame_cache): Remove && operator from end of line.
704 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
706 Fix libraries displacement if they change whether they were prelinked.
707 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
708 does not match. Comment why.
710 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
712 * corelow.c: Include wrapper.h.
713 (core_open): Call now gdb_target_find_new_threads.
714 * wrapper.c: Include target.h.
715 (gdb_target_find_new_threads): New.
716 * wrapper.h (gdb_target_find_new_threads): New declaration.
718 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
720 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
721 even if !TARGET_HAS_EXECUTION.
723 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
725 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
726 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
727 bfd_get_synthetic_symtab.
728 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
729 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
730 parameter parent, remove the call to add_separate_debug_objfile.
731 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
732 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
733 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
734 parent, new comment for it, call add_separate_debug_objfile for it.
735 (symbol_file_add_separate): Pass objfile as the parameter parent,
736 remove the call to add_separate_debug_objfile.
737 (symbol_file_add_from_bfd): New parameter parent, pass it.
738 (symbol_file_add): Pass NULL to the new parameter parent.
739 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
741 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
743 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
746 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
748 Fix Python access to inlined frames.
749 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
750 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
752 2011-04-15 Tom Tromey <tromey@redhat.com>
754 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
756 2011-04-15 Gary Benson <gbenson@redhat.com>
758 * MAINTAINERS: Add myself to write-after-approval section.
760 2011-04-14 Mike Frysinger <vapier@gentoo.org>
762 * remote-sim.c (sim_command_completer): New function.
763 (_initialize_remote_sim): Set completer to sim_command_completer.
765 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
767 * breakpoint.c (print_exception_catchpoint): Rename to ...
768 (print_it_exception_catchpoint): ... this.
769 (gnu_v3_exception_catchpoint_ops): Update with new name
770 for print_it_exception_catchpoint.
772 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
774 * MAINTAINERS: Add myself for write after approval privileges.
776 2011-04-13 Marek Polacek <mpolacek@redhat.com>
778 * MAINTAINERS: Add myself as a write-after-approval maintainer.
780 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
782 * breakpoint.c (watch_command_1): Remove colon from exp_string.
784 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
786 * breakpoint.c (save_breakpoints): Verify whether
787 breakpoint_ops.print_recreate is defined before calling it.
789 2011-04-11 Gary Benson <gbenson@redhat.com>
791 Fix failure with --enable-maintainer-mode.
792 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
794 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
797 * symtab.c (search_symbols): Reorder the KIND description in the
798 function comment. Remove the unused 4th element of types, types2,
799 types3 and types4. New gdb_assert on KIND.
800 (symtab_symbol_info): Remove the unused 4th element of classnames.
801 New gdb_assert on KIND.
802 * symtab.h (enum search_domain): New warning in the enum comment.
803 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
806 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
808 Fix crash of gdb save-index on a STABS file.
809 * dwarf2read.c (write_psymtabs_to_index): Return also on no
812 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
814 Fix DW_AT_accessibility compatibility with gcc-4.6+.
815 * dwarf2read.c: Include ctype.h.
816 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
818 (dwarf2_add_field): Fix new_field->accessibility by calling
819 dwarf2_default_access_attribute. Restructure setting accessibility
821 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
822 is_private and is_protected by calling
823 dwarf2_default_access_attribute.
825 2011-04-08 Kevin Buettner <kevinb@redhat.com>
827 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
828 to the initialization.
830 2011-04-08 Steve Ellcey <sje@cup.hp.com>
832 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
835 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
837 Remove support for old Cygwin 1.5 versions.
838 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
839 function on old Cygwin version.
840 * windows-nat.c: Remove cygwin version check and always define
841 __USEWIDE for Cygwin compilation.
843 2011-04-07 Yao Qi <yao@codesourcery.com>
845 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
847 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
848 (arm_copy_svc): Remove parameters INSN and TO.
849 (decode_svc_copro): Update caller.
850 * arm-tdep.h (struct displaced_step_closure): Remove parameters
851 from function pointer `copy_svc_os'.
853 2011-04-07 Yao Qi <yao@codesourcery.com>
855 * arm-tdep.c (cleanup_branch): Set a correct return address in
856 LR for ARM and Thumb.
858 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
861 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
862 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
863 in the function comment, a new note on values compatibility.
864 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
865 * symtab.h (SYMBOL_HASH_NEXT): New.
867 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
869 * ppc-linux-nat.c (check_condition): Add len output parameter.
870 Set it based on the memory region referenced in the condition
871 expression. Update all callers.
873 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
875 Fix crash regression on systems featuring .gdb_index.
876 * objfiles.c (free_objfile): Move the
877 forget_cached_source_info_for_objfile call earlier. Comment it.
878 Extend the comment for objfile_free_data.
880 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
882 Fix regression of displaying the debug format.
883 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
886 2011-04-04 Tom Tromey <tromey@redhat.com>
888 * cli/cli-interp.c (struct captured_execute_command_args):
890 (do_captured_execute_command): Remove.
891 (safe_execute_command): Use TRY_CATCH.
892 * cli/cli-script.c (struct wrapped_read_command_file_args):
894 (wrapped_read_command_file): Remove.
895 (script_from_file): Use TRY_CATCH.
896 * exceptions.c (catch_exception): Remove.
897 * exceptions.h (catch_exception): Remove.
898 (deprecated_throw_reason): Update comment.
899 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
900 argument to 'context'.
901 (mi_execute_command): Use TRY_CATCH.
902 * remote.c (struct start_remote_args): Remove.
903 (remote_start_remote): Update; change arguments.
904 (remote_open_1): Use TRY_CATCH.
906 2011-04-04 Tom Tromey <tromey@redhat.com>
908 * tracepoint.c (scope_info): Update.
909 * symtab.c (decode_line_spec): Update.
910 * python/python.c (gdbpy_decode_line): Update.
911 * linespec.h (decode_line_1): Update.
912 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
913 (decode_compound, find_method, symtab_from_filename)
914 (decode_variable): Likewise.
915 * cli/cli-cmds.c (edit_command): Update.
916 (list_command): Update.
917 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
919 (create_breakpoint): Update.
920 (until_break_command): Update.
921 (addr_string_to_sals): Update.
922 (decode_line_spec_1): Update.
924 2011-04-04 Tom Tromey <tromey@redhat.com>
926 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
927 (do_captured_parse_breakpoint): Remove.
928 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
929 Use TRY_CATCH directly.
931 2011-04-04 Tom Tromey <tromey@redhat.com>
933 * symtab.h (free_symtab): Remove.
934 (forget_cached_source_info_for_objfile): Declare.
935 * symmisc.c (free_symtab): Remove.
936 * source.c (forget_cached_source_info_for_objfile): New function.
937 (forget_cached_source_info): Use it.
938 * objfiles.c (free_objfile): Simplify check before calling
939 clear_current_source_symtab_and_line. Call
940 forget_cached_source_info_for_objfile.
942 2011-04-04 Tom Tromey <tromey@redhat.com>
944 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
945 (new_symtab): Don't set `free_code' on symtab.
946 (new_linetable): Properly handle size==0.
947 * symtab.h (struct symtab) <free_code, free_func>: Remove.
948 * symmisc.c (free_symtab): Don't free the linetable. Don't call
950 * jv-lang.c (struct jv_per_objfile_data): New.
951 (jv_per_objfile_free): Free the data.
952 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
953 (get_java_class_symtab): Set the `dict' field on the
955 (free_class_block): Remove.
956 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
959 2011-04-04 Tom Tromey <tromey@redhat.com>
961 * symfile.c (reread_symbols): Update.
962 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
964 * objfiles.c (allocate_objfile): Update.
965 * cp-support.h (cp_check_possible_namespace_symbols): Don't
967 * cp-namespace.c (lookup_symbol_file): Don't call
968 lookup_possible_namespace_symbol.
969 (initialize_namespace_symtab, get_possible_namespace_block)
970 (free_namespace_block, cp_check_possible_namespace_symbols)
971 (check_possible_namespace_symbols_loop)
972 (check_one_possible_namespace_symbol)
973 (lookup_possible_namespace_symbol): Remove.
974 (maintenance_cplus_namespace): Replace with notice.
975 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
977 2011-04-04 Tom Tromey <tromey@redhat.com>
979 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
980 * symtab.h (struct symtab) <producer, debugformat>: Now const.
981 * symmisc.c (free_symtab): Don't free debugformat.
982 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
983 (record_debugformat, record_producer): Document.
984 * buildsym.c (end_symtab): Don't save debugformat and producer
986 (end_symtab): Don't free debugformat and producer fields.
987 (record_debugformat): Don't call xstrdup.
988 (record_producer): Likewise.
990 2011-04-04 Tom Tromey <tromey@redhat.com>
992 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
993 (source_line_charpos, source_charpos_line): Remove.
995 2011-04-04 Tom Tromey <tromey@redhat.com>
997 * symtab.h (domain_enum): Split in two...
998 (enum search_domain): New.
999 (search_symbols): Update.
1000 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
1001 redundant declarations.
1002 (search_symbols): Change 'kind' argument to search_domain.
1004 (print_symbol_info): Likewise.
1005 (symtab_symbol_info): Likewise.
1006 * symfile.h (struct quick_symbol_functions)
1007 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
1008 <expand_symtabs_matching>: Likewise.
1009 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
1010 (expand_symtabs_matching_via_partial): Update.
1011 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
1012 (dw2_expand_symtabs_for_function): Update.
1013 * block.h: Moved anonymous enum...
1014 * defs.h (enum block_enum): ... here. Now named.
1016 2011-04-03 Joel Brobecker <brobecker@adacore.com>
1018 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
1019 * version.in: Bump version to 7.3.50.20110403-cvs.
1021 2011-04-03 Joel Brobecker <brobecker@adacore.com>
1023 * NEWS: Create a new section for the next release branch.
1024 Rename the section of the current branch, now that it has
1027 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1029 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
1030 for "fpscr" in target description.
1032 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1034 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
1035 initialize it. Delay HASH initialization. Strip the part after open
1036 parenthesis for languages with qualifiers. Call do_cleanups.
1038 2011-04-01 Tom Tromey <tromey@redhat.com>
1040 * utils.c (report_command_stats): Don't print `-' for negative
1043 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
1045 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
1046 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
1049 2011-04-01 Joel Brobecker <brobecker@adacore.com>
1051 * breakpoint.h (bpdisp_text): Add declaration.
1052 * breakpoint.c (bpdisp_text): Make non-static.
1053 * ada-lang.c: #include "mi/mi-common.h".
1054 (print_it_exception): Rewrite to improve GDB/MI output.
1056 2011-04-01 Pedro Alves <pedro@codesourcery.com>
1058 * arm-tdep.h (struct address_space): Add forward declaration.
1060 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1062 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
1063 * arm-tdep.c (arm_override_mode): New global.
1064 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
1065 execution mode heuristics.
1066 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
1067 second single-step breakpoint if needed, using
1068 arm_insert_single_step_breakpoint.
1069 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
1070 ARM execution mode, do not call thumb_get_next_pc_raw.
1071 (arm_get_next_pc): Encode execution mode in return value. Call
1072 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
1073 (arm_insert_single_step_breakpoint): New function.
1074 (arm_software_single_step): Call it.
1075 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
1076 argument to return execution mode of sigreturn target.
1077 (arm_linux_syscall_next_pc): Use it.
1078 (arm_linux_copy_svc): Update call.
1079 (arm_linux_software_single_step): Call
1080 arm_insert_single_step_breakpoint.
1082 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1084 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
1087 2011-03-31 Tom Tromey <tromey@redhat.com>
1089 * varobj.c (update_dynamic_varobj_children): Properly handle
1090 errors from iterator.
1092 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1094 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
1095 struct linkage name twice.
1097 2011-03-31 Tom Tromey <tromey@redhat.com>
1099 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
1100 missing ">" to message.
1102 2011-03-31 Tom Tromey <tromey@redhat.com>
1104 * varobj.c (instantiate_pretty_printer): Remove duplicate
1107 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
1109 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
1110 if neither saved value nor register available (e.g. signal frame).
1112 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1114 * macroexp.c (expand): Avoid uninitialized variable
1117 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1119 * breakpoint.c (break_range_command): Fix typo in comment.
1121 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1122 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1124 Implement support for PowerPC BookE ranged breakpoints.
1125 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
1126 * breakpoint.h (struct bp_target_info) <length>: New member
1128 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
1129 instead of struct breakpoint as argument, and also add ASPACE
1130 and BP_ADDR arguments. Update all callers.
1131 (struct breakpoint_ops) <print_one_detail>: New method.
1132 (struct breakpoint) <addr_string_range_end>: New member variable.
1133 * breakpoint.c (breakpoint_location_address_match): Add function
1135 (insert_bp_location): Set bl->target_info.length.
1136 (breakpoint_here_p): Call breakpoint_location_address_match.
1137 (moribund_breakpoint_here_p): Likewise.
1138 (regular_breakpoint_inserted_here_p): Likewise.
1139 (breakpoint_thread_match): Likewise.
1140 (bpstat_stop_status): Likewise.
1141 (bpstat_check_location): Move call to
1142 breakpoint_ops.breakpoint_hit to the top.
1143 (print_one_breakpoint_location): Call
1144 breakpoint_ops.print_one_detail if available.
1145 (breakpoint_address_match_range): New function.
1146 (breakpoint_location_address_match): Likewise.
1147 (breakpoint_locations_match): Compare the length field of the
1149 (hw_breakpoint_used_count): Count resources used by all locations
1150 in a breakpoint, and use breakpoint_ops.resources_needed if
1152 (breakpoint_hit_ranged_breakpoint): New function.
1153 (resources_needed_ranged_breakpoint): Likewise.
1154 (print_it_ranged_breakpoint): Likewise.
1155 (print_one_ranged_breakpoint): Likewise.
1156 (print_one_detail_ranged_breakpoint): Likewise.
1157 (print_mention_ranged_breakpoint): Likewise.
1158 (print_recreate_ranged_breakpoint): Likewise.
1159 (ranged_breakpoint_ops): New structure.
1160 (find_breakpoint_range_end): New function.
1161 (break_range_command): Likewise.
1162 (delete_breakpoint): Free addr_string_range_end.
1163 (update_breakpoint_locations): Add SALS_END argument. Update
1164 all callers. Calculate breakpoint length if a non-zero SALS_END
1165 is given. Call breakpoint_locations_match instead of
1166 breakpoint_address_match.
1167 (reset_breakpoint): Find SaL of the end of the range if B is a
1169 (_initialize_breakpoint): Register break-range command.
1170 * defs.h (print_core_address): Add function prototype.
1171 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
1173 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
1174 (ppc_linux_remove_hw_breakpoint): Likewise.
1175 (_initialize_ppc_linux_nat): Initialize
1176 to_ranged_break_num_registers.
1177 * target.c (update_current_target): Add comment about
1178 to_ranged_break_num_registers.
1179 (target_ranged_break_num_registers): New function.
1180 * target.h (struct target_ops) <to_ranged_break_num_registers>:
1182 (target_ranged_break_num_registers): Add function prototype.
1183 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
1184 * utils.c (print_core_address): ... here.
1186 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
1188 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
1189 variable compiler warning.
1191 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
1193 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
1195 (re_set_breakpoint): ... to here ...
1196 (addr_string_to_sals): ... and here.
1198 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
1200 * Makefile.in (SFILES): Add missing C sources.
1201 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
1202 Add missing headers.
1204 2011-03-29 Mike Frysinger <vapier@gentoo.org>
1206 * .gitignore: New file.
1208 2011-03-29 Mike Frysinger <vapier@gentoo.org>
1210 * NEWS: Mention new cfi device simulation.
1212 2011-03-29 Tom Tromey <tromey@redhat.com>
1214 * dwarf2read.c (fixup_partial_die): Handle linkage name on
1215 otherwise anonymous types.
1216 (dwarf2_name): Likewise.
1217 * valops.c (value_struct_elt_for_reference): Refine artificial
1218 type logic. Call error if j==-1.
1220 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
1222 Fix false GCC warning.
1223 * infcall.c (find_function_addr): Initialize funaddr.
1225 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
1227 Fix mingw compilation with --enable-targets=all.
1228 * remote-mips.c (gdb_usleep.h): Include header.
1229 (mips_enter_debug): Use gdb_usleep instead of sleep.
1231 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1233 Support resolution of STT_GNU_IFUNC via breakpoints.
1234 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
1235 bp_gnu_ifunc_resolver_return.
1236 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
1237 the loop. Support bp_gnu_ifunc_resolver and
1238 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
1239 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
1241 (bptype_string, print_one_breakpoint_location): Support
1242 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
1243 (user_settable_breakpoint): Return true also for
1244 bp_gnu_ifunc_resolver.
1245 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
1246 bp_gnu_ifunc_resolver_return.
1247 (set_breakpoint_location_function): New parameter explicit_loc,
1248 describe it. Call find_pc_partial_function_gnu_ifunc with new
1249 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
1250 EXPLICIT_LOC is not set.
1251 (set_raw_breakpoint): Set EXPLICIT_LOC for
1252 set_breakpoint_location_function.
1253 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
1254 set_breakpoint_location_function.
1255 (mention): Support bp_gnu_ifunc_resolver and
1256 bp_gnu_ifunc_resolver_return.
1257 (add_location_to_breakpoint): Set EXPLICIT_LOC for
1258 set_breakpoint_location_function.
1259 (update_breakpoint_locations): Remove static.
1260 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
1261 bp_gnu_ifunc_resolver_return.
1262 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
1263 bp_gnu_ifunc_resolver_return.
1264 (update_breakpoint_locations): New declaration.
1265 * elfread.c: Include gdbthread.h and regcache.h.
1266 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
1268 (elf_gnu_ifunc_fns): Install them.
1269 * minsyms.c (stub_gnu_ifunc_resolver_stop)
1270 (stub_gnu_ifunc_resolver_return_stop): New functions.
1271 (stub_gnu_ifunc_fns): Install them.
1272 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
1273 and gnu_ifunc_resolver_return_stop.
1274 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
1276 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1278 STT_GNU_IFUNC reader implementation.
1279 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
1280 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
1281 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
1282 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
1283 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
1284 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
1285 (elf_gnu_ifunc_resolve_addr): New.
1286 (elf_symfile_read): Call elf_rel_plt_read.
1287 (elf_gnu_ifunc_fns): New.
1288 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
1289 Install elf_gnu_ifunc_fns.
1290 * infcall.c (find_function_return_type): New function.
1291 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
1292 * minsyms.c (stub_gnu_ifunc_resolve_addr)
1293 (stub_gnu_ifunc_resolve_name): New functions.
1294 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
1295 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
1296 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
1298 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1300 Code cleanup for later STT_GNU_IFUNC support.
1301 * infcall.c (find_function_addr): Remove variable code, use explicit
1302 dereferences for it. Move VALUE_TYPE initialization later.
1304 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1306 GDB find_pc_partial_function support for STT_GNU_IFUNC.
1307 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
1308 (clear_pc_function_cache): Clear it.
1309 (find_pc_partial_function): Rename to ...
1310 (find_pc_partial_function_gnu_ifunc): ... this function. New
1311 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
1312 (find_pc_partial_function): New wrapper for this function.
1313 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
1315 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1317 GDB internal type support for STT_GNU_IFUNC.
1318 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
1319 (elf_symtab_read): Set mst_text_gnu_ifunc for
1320 BSF_GNU_INDIRECT_FUNCTION.
1321 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
1322 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
1323 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
1324 nodebug_got_plt_symbol.
1325 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
1326 (TYPE_GNU_IFUNC): New.
1327 (struct main_type): New field flag_gnu_ifunc.
1328 (struct builtin_type): New field builtin_func_func.
1329 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
1330 nodebug_got_plt_symbol.
1331 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
1332 (in_gnu_ifunc_stub): New.
1333 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
1335 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
1336 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
1337 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
1339 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
1340 * symtab.c (search_symbols): Likewise.
1341 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
1342 and mst_slot_got_plt.
1343 (in_gnu_ifunc_stub): New declaration.
1345 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1347 Support a ring of related breakpoints.
1348 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
1349 other functions, add gdb_assert.
1350 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
1351 watchpoint_del_at_next_stop.
1352 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
1353 (bpstat_stop_status): Handle ring in related_breakpoint.
1354 (set_raw_breakpoint_without_location): Initialize ring in
1356 (delete_breakpoint): Handle ring in related_breakpoint, use
1357 watchpoint_del_at_next_stop.
1358 (map_breakpoint_numbers): Handle ring in related_breakpoint.
1360 2011-03-28 Tom Tromey <tromey@redhat.com>
1363 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
1364 with `language_minimal'.
1366 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
1368 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
1369 instead of checking for STT_ARM_TFUNC symbol type.
1371 2011-03-25 Tom Tromey <tromey@redhat.com>
1373 * linespec.c (symbol_found): Restore line-based result for
1374 non-LOC_LABEL symbols.
1376 2011-03-25 Kai Tietz <ktietz@redhat.com>
1378 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
1379 instead of strcmp for comparison.
1380 (tui_source_is_displayed): Likewise.
1381 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
1383 2011-03-24 Mark Wielaard <mjw@redhat.com>
1385 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
1387 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
1388 (find_partial_die_in_comp_unit): Likewise in comment.
1389 (read_attribute_value): Likewise.
1390 (lookup_die_type): Likewise.
1391 (dwarf_form_name): Likewise.
1392 (dump_die_shallow): Likewise.
1393 (follow_die_ref_or_sig): Likewise.
1395 2011-03-24 Tom Tromey <tromey@redhat.com>
1397 PR breakpoints/11816:
1398 * linespec.c (decode_line_1): Parse `function:label' linespecs.
1399 (decode_compound): Update.
1400 (find_function_symbol): New function.
1401 (decode_dollar): Update.
1402 (decode_label): Add 'function_symbol' parameter. Handle
1403 function-relative labels.
1404 (decode_variable): Update.
1405 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
1406 not its line. Set `special_display' and canonical name for
1409 2011-03-24 Tom Tromey <tromey@redhat.com>
1411 * linespec.h (struct linespec_result) <special_display>: New
1413 * breakpoint.h (struct breakpoint) <display_canonical>: New
1415 * breakpoint.c (print_breakpoint_location): Respect
1417 (create_breakpoint_sal): Add 'display_canonical' parameter.
1418 (create_breakpoints_sal): Update.
1419 (create_breakpoint): Update.
1421 2011-03-24 Tom Tromey <tromey@redhat.com>
1423 * symtab.c (decode_line_spec): Update.
1424 * linespec.c (build_canonical_line_spec): Change type of
1426 (decode_line_2, decode_line_1, decode_objc, decode_compound)
1427 (find_method, decode_all_digits, decode_dollar, decode_label)
1428 (symbol_found): Likewise.
1429 (init_linespec_result): New function.
1430 * breakpoint.c (struct captured_parse_breakpoint_args)
1431 <canonical_p>: New field, replaces addr_string_p.
1432 (create_breakpoints_sal): Add 'canonical' parameter, replacing
1434 (parse_breakpoint_sals): Likewise.
1435 (do_captured_parse_breakpoint): Update.
1436 (create_breakpoint): Use struct linespec_result.
1437 (until_break_command): Update.
1438 (breakpoint_re_set_one): Update.
1439 (decode_line_spec_1): Update.
1440 * linespec.h (struct linespec_result): New.
1441 (init_linespec_result): Declare.
1443 2011-03-23 Pedro Alves <pedro@codesourcery.com>
1445 * regcache.c (regcache_raw_read): If the target didn't supply a
1446 given raw register, mark it as unavailable.
1448 2011-03-23 Kai Tietz <ktietz@redhat.com>
1450 * breakpoint.c (clear_command): Use filename_cmp
1451 instead of strcmp for comparison.
1452 * buildsym.c (watch_main_source_file_lossage): Likewise.
1453 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
1454 checking just for slash.
1455 * dbxread.c (read_dbx_symtab): Use lbasename instead of
1456 strrchr and filename_cmp instead of strcmp for filenames.
1457 (add_old_header_file): Use filename_cmp
1458 instead of strcmp for comparison.
1459 * exec.c (exec_set_section_address): Likewise.
1460 * macrotab.c (macro_lookup_inclusion): Likewise.
1461 (macro_lookup_inclusion): Likewise.
1462 * elfread.c (_initialize_elfread): Likewise.
1463 (elfstab_offset_sections): Likewise.
1464 (elfstab_offset_sections): Use lbasename instead of
1466 * mdebugread.c (parse_partial_symbols): Likewise.
1467 (arse_partial_symbols): Use filename_(n)cmp instead of
1468 str(n)cmp for comparison.
1469 * minsyms.c (lookup_minimal_symbol): Likewise.
1470 * psymtab.c (read_psymtabs_with_filename): Likewise.
1471 * solib.c (solib_read_symbols): Likewise.
1472 (reload_shared_libraries_1): Likewise.
1473 * symmisc.c (maintenance_print_symbols): Likewise.
1474 * symfile.c (separate_debug_file_exists): Likewise.
1475 (reread_symbols): Likewise.
1476 (find_separate_debug_file_by_debuglink): Likewise.
1477 * remote-fileio.c (remote_fileio_func_rename): Likewise.
1478 * source.c (add_path): Likewise.
1479 * symtab.c (filename_seen): Likewise.
1480 (file_matches): Likewise.
1481 (print_symbol_info): Likewise.
1482 (maybe_add_partial_symtab_filename): Likewise.
1483 (make_source_files_completion_list): Likewise.
1484 * xml-syscall.c (init_sysinfo): Likewise.
1485 * windows-nat.c (_initialize_check_for_gdb_ini): Use
1486 IS_DIR_SEPARATOR for checking for trailing path separator.
1488 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1490 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
1491 label abort_expression.
1492 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
1493 DWARF_VALUE_OPTIMIZED_OUT.
1495 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1498 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
1499 to linkage_name. Invert its value. Update the function comment.
1500 (c_type_print_varspec_suffix): Invert it at the caller.
1501 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
1503 2011-03-22 Pedro Alves <pedro@codesourcery.com>
1505 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
1506 errors when reading the `stop_pc'.
1507 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
1510 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
1512 * NEWS: Document gdb.Write stream keyword.
1514 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1517 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1518 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
1519 (dwarf2_add_field): Fix new_field->accessibility for
1520 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
1522 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
1526 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
1527 other error classes. Do not print stack trace.
1529 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1531 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
1532 (dwarf2_add_field): Fix new_field->accessibility for
1533 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
1535 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
1537 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
1538 encountering a load via a non-SP register.
1540 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
1542 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
1543 field in returned unwinder.
1545 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1547 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
1549 2012-03-21 Joel Brobecker <brobecker@adacore.com>
1551 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
1554 2012-03-18 Pedro Alves <pedro@codesourcery.com>
1556 * frame.c (frame_unwind_register): Throw an error if unwinding the
1558 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
1559 an unwind stop reason.
1560 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
1561 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
1562 UNWIND_UNAVAILABLE>: New.
1563 * inline-frame.c (inline_frame_unwind): Install
1564 default_frame_unwind_stop_reason.
1565 * frame-unwind.c: Include "exceptions.h".
1566 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
1567 (default_frame_unwind_stop_reason): New.
1568 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
1569 (default_frame_unwind_stop_reason): Declare.
1570 (struct frame_unwind) <stop_reason>: New function pointer.
1572 * dummy-frame.c: Install default_frame_unwind_stop_reason.
1573 * dwarf2-frame.c: Include exceptions.h.
1574 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
1575 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
1576 computing the CFA. If such an error was thrown, set
1577 unavailable_retaddr.
1578 (dwarf2_frame_unwind_stop_reason): New.
1579 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
1581 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
1582 (dwarf2_signal_frame_unwind): Ditto.
1584 * amd64-tdep.c: Include "exceptions.h".
1585 (struct amd64_frame_cache): New field "base_p".
1586 (amd64_init_frame_cache): Clear it.
1587 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
1588 Avoid reading registers with functions that throw if the register
1589 is not necessary to compute the frame base.
1590 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
1591 swallowing NOT_AVAILABLE_ERROR.
1592 (amd64_frame_unwind_stop_reason): New.
1593 (amd64_frame_this_id): Don't build a frame id if the frame base
1595 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
1596 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1597 base_p if the frame base was computable.
1598 (amd64_sigtramp_frame_unwind_stop_reason): New.
1599 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
1600 frame base was unavailable.
1601 (amd64_sigtramp_frame_unwind): Install
1602 amd64_sigtramp_frame_unwind_stop_reason.
1603 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1604 base_p if the frame base was computable.
1605 (amd64_epilogue_frame_unwind_stop_reason): New.
1606 (amd64_epilogue_frame_this_id): Don't build a frame id if the
1607 frame base was unavailable.
1608 (amd64_epilogue_frame_unwind): Install
1609 amd64_epilogue_frame_unwind_stop_reason.
1610 * i386-tdep.c: Include "exceptions.h".
1611 (struct i386_frame_cache): New field "base_p".
1612 (i386_init_frame_cache): Clear it.
1613 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
1614 Avoid reading registers with functions that throw if the register
1615 is not necessary to compute the frame base.
1616 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
1617 swallowing NOT_AVAILABLE_ERROR.
1618 (i386_frame_unwind_stop_reason): New.
1619 (i386_frame_this_id): Don't build a frame id if the frame base was
1621 (i386_frame_prev_register): Handle unavailable SP.
1622 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
1623 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1624 base_p if the frame base was computable.
1625 (i386_epilogue_frame_unwind_stop_reason): New.
1626 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
1627 base was unavailable.
1628 (i386_epilogue_frame_unwind): Install
1629 i386_epilogue_frame_unwind_stop_reason.
1630 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1631 base_p if the frame base was computable.
1632 (i386_sigtramp_frame_unwind_stop_reason): New.
1633 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
1634 base was unavailable.
1635 (i386_sigtramp_frame_unwind): Install
1636 i386_sigtramp_frame_unwind_stop_reason.
1637 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
1638 type's size, not the register's.
1639 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
1641 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
1642 default_frame_unwind_stop_reason.
1643 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
1644 (alpha_heuristic_frame_unwind): Ditto.
1645 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
1646 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
1647 * avr-tdep.c (avr_frame_unwind): Ditto.
1648 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
1650 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
1651 * frv-tdep.c (frv_frame_unwind): Ditto.
1652 * h8300-tdep.c (h8300_frame_unwind): Ditto.
1653 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
1654 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
1655 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
1656 (hppa_stub_frame_unwind): Ditto.
1657 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
1658 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
1659 (ia64_libunwind_frame_unwind)
1660 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
1661 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
1662 * lm32-tdep.c (lm32_frame_unwind): Ditto.
1663 * m32c-tdep.c (m32c_unwind): Ditto.
1664 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
1665 * m32r-tdep.c (m32r_frame_unwind): Ditto.
1666 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
1667 * m68k-tdep.c (m68k_frame_unwind): Ditto.
1668 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
1669 * m88k-tdep.c (m88k_frame_unwind): Ditto.
1670 * mep-tdep.c (mep_frame_unwind): Ditto.
1671 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
1672 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
1673 (mips_stub_frame_unwind): Ditto.
1674 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
1675 * moxie-tdep.c (moxie_frame_unwind): Ditto.
1676 * mt-tdep.c (mt_frame_unwind): Ditto.
1677 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
1678 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
1679 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
1680 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
1681 (s390_sigtramp_frame_unwind): Ditto.
1682 * score-tdep.c (score_prologue_unwind): Ditto.
1683 * sh-tdep.c (sh_frame_unwind): Ditto.
1684 * sh64-tdep.c (sh64_frame_unwind): Ditto.
1685 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
1686 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
1687 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
1688 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
1689 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
1690 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
1691 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
1692 (sparc64obsd_trapframe_unwind): Ditto.
1693 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
1694 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
1695 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
1696 * v850-tdep.c (v850_frame_unwind): Ditto.
1697 * vax-tdep.c (vax_frame_unwind): Ditto.
1698 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
1699 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
1700 * xtensa-tdep.c (xtensa_unwind): Ditto.
1702 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1704 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
1705 there's always a frame. Use get_frame_pc_if_available instead of
1706 get_frame_pc, and if there's no PC available, don't look up a
1709 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1711 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
1714 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1716 * tracepoint.c (set_traceframe_context): Handle unavailable PC
1719 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1721 * frame.h (frame_unwind_caller_pc_if_available): Declare.
1722 * frame.c (frame_unwind_caller_pc_if_available): New.
1723 * stack.c (frame_info): Handle unavailable PC.
1725 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1727 * frame.c (frame_unwind_pc): Rename to ...
1728 (frame_unwind_pc_if_available): ... this. New `pc' output
1729 parameter. Change return type to int. Gracefully handle
1730 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
1731 happened, or 1 otherwise.
1732 (frame_unwind_pc): Reimplement on top of
1733 frame_unwind_pc_if_available.
1734 (get_frame_func): Rename to ...
1735 (get_frame_func_if_available): New `pc' output parameter. Change
1736 return type to int. Gracefully handle the PC not being available.
1737 (get_frame_func): Reimplement on top of
1738 get_frame_func_if_available.
1739 (select_frame): Handle the PC being unavailable.
1740 (get_prev_frame): Handle the PC being unavailable.
1741 (get_frame_pc_if_available): New.
1742 (get_frame_address_in_block_if_available): New.
1743 (find_frame_sal): Handle the frame PC not being available.
1744 * frame.h (get_frame_pc_if_available): Declare.
1745 (get_frame_address_in_block_if_available): Declare.
1746 (get_frame_func_if_available): Declare.
1747 * stack.c (print_frame_info): Handle the PC being unavailable.
1748 (find_frame_funname): Ditto.
1749 (print_frame): Handle the PC being unavailable.
1750 (get_frame_language): Ditto.
1751 * blockframe.c (get_frame_block): Ditto.
1752 * macroscope.c (default_macro_scope): Ditto.
1753 * tui/tui-stack.c (tui_show_frame_info): Ditto.
1755 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1757 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
1758 NOT_AVAILABLE_ERROR when evaluating the location expression.
1760 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1762 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
1763 returning that the register piece is unavailable/optimized out.
1764 (write_pieced_value): Handle get_frame_register_bytes returning
1765 that the register piece is unavailable/optimized out when doing a
1766 read-modify write of a bitfield.
1767 * findvar.c (value_from_register): Handle get_frame_register_bytes
1768 returning that the register piece is unavailable/optimized out.
1769 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
1770 and `unavailablep'. Throw error on bad debug info. Use
1771 frame_register instead of frame_register_read, to fill in the new
1773 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
1775 * valops.c: (value_assign): Adjust, and handle
1776 get_frame_register_bytes failing.
1777 * spu-tdep.c: Include exceptions.h.
1778 (spu_software_single_step): Adjust, and handle
1779 get_frame_register_bytes failing.
1780 (spu_get_longjmp_target): Ditto.
1781 * gdbarch.sh (register_to_value): Change to return int. New
1782 parameters `optimizedp' and `unavailablep'.
1783 * gdbarch.h, gdbarch.c: Regenerate.
1784 * i386-tdep.c (i386_register_to_value): Adjust to new
1785 gdbarch_register_to_value interface.
1786 * i387-tdep.c (i387_register_to_value): Ditto.
1787 * i387-tdep.h (i387_register_to_value): Ditto.
1788 * alpha-tdep.c (alpha_register_to_value): Ditto.
1789 * ia64-tdep.c (ia64_register_to_value): Ditto.
1790 * m68k-tdep.c (m68k_register_to_value): Ditto.
1791 * mips-tdep.c (mips_register_to_value): Ditto.
1792 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
1794 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1796 * findvar.c (value_of_register): Mark the value as unavailable, if
1797 the register is unavailable.
1798 * frame.h (frame_register_unwind): New `unavailablep' parameter.
1799 (frame_register): New `unavailablep' parameter.
1800 (frame_register_read): Update comment.
1801 * frame.c (frame_register_unwind): New `unavailablep' parameter.
1802 Set it if the register is unavailable. If the register is
1803 unavailable, clear the output buffer.
1804 (frame_register): New `unavailablep' parameter. Pass it down.
1805 (frame_unwind_register): Adjust.
1806 (put_frame_register): Adjust.
1807 (frame_register_read): Adjust. Also return false if the register
1809 (frame_register_unwind_location): Adjust.
1810 * sentinel-frame.c (sentinel_frame_prev_register): If the register
1811 is unavailable, mark the value accordingly.
1812 * stack.c (frame_info): Handle unavailable registers.
1814 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1816 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
1817 simplify, using regcache_cooked_read.
1819 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1821 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
1822 (regcache_raw_read_unsigned, regcache_raw_read_signed)
1823 (regcache_raw_read_unsigned, regcache_raw_read_part)
1824 (regcache_cooked_read, regcache_cooked_read_signed)
1825 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
1826 (regcache_cooked_read_ftype): Change return to enum
1828 * regcache.c: Include exceptions.h
1829 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
1830 (do_cooked_read): Change return to enum register_status. Always
1831 forward to regcache_cooked_read.
1832 (regcache_raw_read): Change return to enum register_status. If
1833 the register is not REG_VALID, memset the buffer. Return the
1835 (regcache_raw_read_signed): Handle non-REG_VALID registers and
1836 return the register's status.
1837 (regcache_raw_read_unsigned): Ditto.
1838 (regcache_cooked_read): Change return to enum register_status.
1839 Assert that with read-only regcaches, the register's status must
1840 be known. If the regcache is read-only, and the register is not
1841 REG_VALID, memset the buffer. Return the register's status.
1842 (regcache_cooked_read_signed): Change return to enum
1843 register_status. Handle non-REG_VALID registers and return the
1845 (regcache_cooked_read_unsigned): Change return to enum
1846 register_status. Handle non-REG_VALID registers and return the
1848 (regcache_xfer_part, regcache_raw_read_part)
1849 (regcache_cooked_read_part): Change return to enum
1850 register_status. Return the register's status.
1851 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
1853 (regcache_dump): Handle unavailable cooked registers.
1854 * frame.c (do_frame_register_read): Adjust interface to match
1855 regcache_cooked_read_ftype.
1856 * gdbarch.sh (pseudo_register_read): Change return to enum
1858 * gdbarch.h, gdbarch.c: Regenerate.
1860 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
1862 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
1863 register_status. If reading a raw register indicates the raw
1864 register is not valid, return the raw register's status,
1865 otherwise, return REG_VALID.
1866 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
1867 register_status. Handle non-REG_VALID raw registers and return
1868 the register's status.
1869 * arm-tdep.c (arm_neon_quad_read)
1870 (arm_pseudo_read): Change return to enum register_status. Handle
1871 non-REG_VALID raw registers and return the register's status.
1872 * avr-tdep.c (avr_pseudo_register_read): Ditto.
1873 * frv-tdep.c (frv_pseudo_register_read): Ditto.
1874 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
1875 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
1876 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
1878 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
1879 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
1880 (m32c_part_write, m32c_cat_read, m32c_cat_write)
1881 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
1882 (m32c_pseudo_register_read): Change return to enum
1883 register_status. Adjust.
1884 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
1885 enum register_status. Return the register's status.
1886 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
1887 register_status. Return the register's status.
1888 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
1889 * mips-tdep.c (mips_pseudo_register_read): Ditto.
1890 * mt-tdep.c (mt_pseudo_register_read): Ditto.
1891 * rs6000-tdep.c (move_ev_register_func): New typedef.
1892 (e500_move_ev_register): Use it. Change return to enum
1893 register_status. Return the register's status.
1894 (do_regcache_raw_read): New function.
1895 (do_regcache_raw_write): New function.
1896 (e500_pseudo_register_read): Change return to enum
1897 register_status. Return the register's status. Use
1898 do_regcache_raw_read.
1899 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
1900 (dfp_pseudo_register_read): Change return to enum register_status.
1901 Return the register's status.
1902 (vsx_pseudo_register_read): Ditto.
1903 (efpr_pseudo_register_read): Ditto.
1904 (rs6000_pseudo_register_read): Ditto.
1905 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
1906 register_status. Return the register's status.
1907 * sh64-tdep.c (pseudo_register_read_portions): New function.
1908 (sh64_pseudo_register_read): Change return to enum
1909 register_status. Use pseudo_register_read_portions. Return the
1911 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
1912 register_status. Return the register's status.
1913 * sh-tdep.c (pseudo_register_read_portions): New function.
1914 (sh_pseudo_register_read): Change return to enum register_status.
1915 Use pseudo_register_read_portions. Return the register's status.
1916 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
1917 enum register_status. Return the register's status.
1918 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
1919 * spu-tdep.c (spu_pseudo_register_read_spu)
1920 (spu_pseudo_register_read): Ditto.
1921 * xtensa-tdep.c (xtensa_register_read_masked)
1922 (xtensa_pseudo_register_read): Ditto.
1923 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
1925 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1927 * python/py-value.c (valpy_getitem): Fix formatting of error function
1930 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1932 ARI fixes: Add missing internationalization markups throughout
1934 * darwin-nat-info.c: Ditto.
1937 * mi/mi-main.c: Ditto.
1939 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1941 ARI fixes: Add missing internationalization markups throughout
1944 * cp-name-parser.y: Ditto.
1947 * objc-exp.y: Ditto.
1950 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1952 ARI fixes: Messages should have no trailing new lines.
1953 * darwin-nat.c (mach_check_error): Remove trailing new line from
1954 warning function call message.
1955 * record.c (bfdcore_read): Idem for error call.
1957 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1959 * common/signals.c (target_signal_from_host): Add _ markup to error
1960 function call message.
1961 (target_signal_to_host): Add _ markup and remove trailing new line
1962 from warning call message.
1963 (target_signal_from_command): Add _ markup to error function call
1966 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
1970 * python/python.c (gdbpy_write): Accept a stream argument and
1971 operate to the appropriate stream.
1972 (gdbpy_flush): Likewise.
1973 (_initialize_python): Add stream constants.
1974 (finish_python_initialization): Add GdbOutputErrorFile class.
1976 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
1978 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1980 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
1982 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
1983 to store_signed_integer. Add debug message when relocating CALL
1984 instructions. Fix formatting of debug message.
1985 * i386-tdep.c (i386_relocate_instruction): Ditto.
1987 2011-03-17 Joel Brobecker <brobecker@gnat.com>
1989 * target.h (struct target_ops): Remove to_lookup_symbol field.
1990 (target_lookup_symbol): Delete macro.
1991 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
1992 (update_current_target, setup_target_debug): Remove handling
1993 of to_lookup_symbol target_ops field.
1994 * ada-tasks.c (get_known_tasks_addr): Remove use of
1995 target_lookup_symbol.
1996 * coffread.c (coff_symtab_read): Likewise.
1997 * dbxread.c (read_dbx_symtab): Ditto.
1999 2011-03-17 Joel Brobecker <brobecker@gnat.com>
2002 * configure.ac: Add getthrds declaration check.
2003 * configure, config.in: Regenerate.
2004 * aix-thread.c (getthrds): Declare only if not already declared
2005 in procinfo.h. More declaration out of get_signaled_thread to
2008 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
2010 * python/py-symtab.c: Populate symtab_object_methods,
2012 (stpy_is_valid): New function.
2013 (salpy_is_valid): Ditto.
2014 * python/py-symbol.c: Declare symbol_object_methods. Populate.
2015 (sympy_is_valid): New function.
2016 * python/py-objfile.c: Declare objfile_object_methods. Populate.
2017 (objfpy_is_valid): New function.
2018 * python/py-inferior.c: Populate inferior_object_methods.
2019 (infpy_is_valid): New function.
2020 * python/py-infthread.c: Populate thread_object_methods.
2021 (thpy_is_valid): New function.
2022 * python/py-block.c: Declare block_object_methods. Populate. Declare
2023 block_iterator_object_methods. Populate.
2024 (blpy_is_valid): New function.
2025 (blpy_iter_is_valid): Ditto.
2027 2011-03-16 Keith Seitz <keiths@redhat.com>
2029 * linespec.c (find_methods): Canonicalize NAME before looking
2031 (name_end): New function.
2032 (keep_name_info): New function.
2033 (decode_line_1): Use keep_name_info.
2034 (decode_compound): Likewise.
2035 * cli/cli-utils.h (remove_trailing_whitespace): New function.
2036 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
2039 * linespec.c (locate_first_half): Keep overload information, too.
2040 (decode_compound): Use a string to represent break characters
2042 If P points to a break character, do not increment it.
2043 For C++ and Java, keep overload information and relevant keywords.
2044 If we cannot find a symbol, search the minimal symbols.
2047 * linespec.c (decode_compound): Rename SAVED_ARG to
2049 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
2051 Pass a valid block to lookup_symbol.
2052 (lookup_prefix_sym): Likewise.
2053 (find_method): Construct search name based on SYM_CLASS instead
2055 * psymtab.c (lookup_partial_symbol): Add language parameter.
2056 (lookup_symbol_aux_psymtabs): Likewise.
2057 Don't assume that the psymtab we found was the right one. Search
2058 for the desired symbol in the symtab to be certain.
2059 (psymtab_search_name): New function.
2060 (lookup_partial_symbol): Use psymtab_search_name.
2061 Add language parameter.
2062 (read_symtabs_for_function): Add language parameter and pass to
2063 lookup_partial_symbol.
2064 (find_symbol_file_from_partial): Likewise.
2066 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
2069 * dwarf2read.c (noop_record_line): New function.
2070 (dwarf_decode_lines): Ignore line tables for GCd functions.
2072 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
2074 Fix ARI warnings about new lines at the end of messages, which
2075 are unneeded as there is a new line added at the end of the message
2077 * darwin-nat.c (darwin_stop_inferior): Ditto.
2078 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
2079 * dfp.c (decimal_to_number): Ditto.
2080 * exec.c (print_section_info): Ditto.
2081 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
2082 * osdata.c (get_osdata): Ditto.
2083 * record.c (bfdcore_write): Ditto.
2084 * remote-mips.c (mips_readchar): Ditto.
2085 * remote.c (read_ptid): Ditto.
2086 * ser-mingw.c (ser_windows_raw): Ditto.
2087 * tracepoint.c (add_local_symbols): Ditto.
2088 * windows-nat.c (fake_create_process): Ditto.
2090 2011-03-16 Tom Tromey <tromey@redhat.com>
2092 * tracepoint.c (stop_tracing): Don't declare.
2093 * event-top.c (after_char_processing_hook): Add `(void)'.
2095 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
2097 * NEWS: Add Parameter sub-classing description.
2099 2011-03-16 Kai Tietz <ktietz@redhat.com>
2101 * MAINTAINERS: Update my e-mail address.
2103 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
2105 * MAINTAINERS: Add myself for write after approval privileges.
2107 2011-03-15 Michael Snyder <msnyder@vmware.com>
2109 * frame.c (find_frame_sal): Assert sym is not null.
2111 * dbxread.c (process_one_symbol): Assert 'name' is not null.
2113 * objc-lang.c (selectors_info): Check strchr for null result.
2115 * stabsread.c (define_symbol): Guard against bad stabstring input.
2117 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2119 Remove trailing spaces and tabulations from pascal language
2124 p-valprint.c: Ditto.
2126 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2128 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
2129 than LOW. Comment it.
2130 (read_partial_die): Call complaint for inappropriate zero LOWPC or
2131 HIGHPC not strictly higher than LOWPC.
2133 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2135 Fix formatting of function declarations returning a pointer in
2137 * varobj.c (varobj_add_child): Ditto.
2138 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
2139 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
2141 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
2143 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
2144 for the "generic" vector ABI used with GCC 4.3 and later.
2145 (ppc64_sysv_abi_return_value): Likewise.
2147 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
2149 * infcall.c (call_function_by_hand): Function return value is
2150 always a non_lval, even when using struct_return.
2152 2011-03-15 Pedro Alves <pedro@codesourcery.com>
2154 * printcmd.c (ALL_DISPLAYS_SAFE): New.
2155 (map_display_numbers): New.
2156 (do_delete_display): New.
2157 (undisplay_command): Use map_display_numbers.
2158 (do_enable_disable_display): New.
2159 (enable_disable_display_command): New function.
2160 (enable_display): Delete.
2161 (enable_display_command): New.
2162 (disable_display_command): Reimplement.
2163 (_initialize_printcmd): Adjust "enable display" command to use
2164 `enable_display_command' as callback.
2166 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2168 * NEWS: Add Python breakpoint 'stop' operation.
2170 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2172 * NEWS: Delete duplicate entry. Fix typo.
2174 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
2176 Fix ARI warning about function names in first column.
2177 Put prototype declaration on same line as return type.
2178 * objc-exp.y: Ditto.
2180 * python/py-stopevent.h: Ditto.
2181 For long function names, split parameters to
2182 allow function name on same line as return type.
2183 * solib-pa64.c: Ditto.
2186 For long function declaration, use single line.
2187 * hppa-tdep.h: Ditto.
2188 * inferior.h: Ditto.
2190 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2192 * python/python.h: Declare gdbpy_should_stop and
2193 gdbpy_breakpoint_has_py_cond.
2194 * python/python.c: Add python.h to includes. Remove python.h from
2195 HAVE_PYTHON definition
2196 (gdbpy_should_stop): New dummy function.
2197 (gdbpy_breakpoint_has_py_cond): New dummy function.
2198 * python/py-breakpoint.c (bppy_init): Rewrite to allow
2199 sub-classing capabilities.
2200 (gdbpy_should_stop): New function.
2201 (gdbpy_breakpoint_has_py_cond): New function.
2202 (local_setattro): New function.
2203 * breakpoint.c (condition_command): Add check for Python 'stop'
2205 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
2206 operation function as part of stop/continue tests.
2208 2011-03-14 Tom Tromey <tromey@redhat.com>
2211 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
2212 (needs_frame_dwarf_call): Likewise.
2214 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
2216 Fix ARI warning about functions without parameters that do not
2218 * breakpoint.c (all_tracepoints): Replace () by (void).
2219 * f-exp.y (match_string_literal): Ditto.
2221 * m2-exp.y (yylex): Ditto.
2222 * mep-tdep.c (current_me_module): Ditto.
2223 (current_options): Ditto.
2224 (current_cop_data_bus_width): Ditto.
2225 (current_cr_names): Ditto.
2226 (current_cr_is_float): Ditto.
2227 (current_ccr_names): Ditto.
2228 * objc-exp.y (yylex): Ditto.
2229 * p-exp.y (yylex): Ditto.
2230 * remote.c (send_interrupt_sequence): Ditto.
2231 * tracepoint.c (current_trace_status): Ditto.
2232 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
2233 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
2235 2011-03-11 Michael Snyder <msnyder@vmware.com>
2237 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
2238 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
2239 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
2240 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
2241 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
2243 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
2244 (delete_async_event_handler): Ditto.
2246 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
2248 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
2250 * top.c (set_verbose): Assert showcmd was found.
2252 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
2254 * xtensa-tdep.c (warning_once): Correct style issues.
2256 2011-03-11 Yao Qi <yao@codesourcery.com>
2258 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
2260 2011-03-11 Andreas Schwab <schwab@redhat.com>
2262 * common/aclocal.m4: Remove.
2264 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
2266 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
2267 (xtensa_write_register, xtensa_read_register): Likewise.
2268 (xtensa_hextochar): Removed.
2269 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
2271 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
2273 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
2274 (xtensa_call0_frame_cache_t): Update comments. New fields added.
2275 (xtensa_alloc_frame_cache): Add initialization for new fields.
2276 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
2277 (warning_once): New function.
2278 (xtensa_insn_kind): New item c0opc_and.
2279 (call0_classify_opcode): Add the case for AND instruction.
2280 (call0_track_op): Change arguments. New local variable litbase.
2281 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
2282 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
2284 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
2285 (call0_analyze_prologue): Update the comments. Change arguments.
2286 Add the variety of updates to handle extended prologues, which now can
2287 conduct dynamic stack adjustments.
2288 (call0_frame_cache): Likewise.
2289 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
2290 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
2292 2011-03-10 Michael Snyder <msnyder@vmware.com>
2294 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
2295 (cmd_qtframe): Ditto.
2296 (cmd_qtbuffer): Ditto.
2297 (cmd_bigqtbuffer): Ditto.
2299 2011-03-10 Tom Tromey <tromey@redhat.com>
2301 * tracepoint.c (trace_actions_command): Update.
2302 * thread.c (thread_apply_command): Update.
2303 * reverse.c (delete_bookmark_command): Update.
2304 (bookmarks_info): Update.
2305 * printcmd.c (undisplay_command): Update.
2306 * memattr.c (mem_enable_command): Update.
2307 (mem_disable_command): Update.
2308 (mem_delete_command): Update.
2309 * inferior.c (detach_inferior_command): Update.
2310 (kill_inferior_command): Update.
2311 (remove_inferior_command): Update.
2312 * cli/cli-utils.h (struct get_number_or_range_state): New.
2313 (init_number_or_range): Declare.
2314 (get_number_or_range): Update.
2315 * cli/cli-utils.c (init_number_or_range): New function.
2316 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
2318 (number_is_in_list): Update.
2319 * breakpoint.h (get_tracepoint_by_number): Update.
2320 * breakpoint.c (map_breakpoint_numbers): Update for change to
2321 get_number_or_range.
2322 (find_location_by_number): Use get_number, not
2323 get_number_or_range.
2324 (trace_pass_set_count): New function.
2325 (trace_pass_command): Update for change to get_number_or_range.
2327 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
2330 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
2332 * python/py-param.c (add_setshow_generic): Add set/show callback
2333 parameters. Register Python object context.
2334 (get_show_value): New function.
2335 (get_set_value): New function.
2336 (call_doc_function): New function.
2337 (get_doc_string): Move behind get_show_value/get_set_value.
2339 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
2341 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
2343 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
2345 * xtensa-tdep.c (xtensa_read_register): Add comment.
2346 (xtensa_write_register): Likewise.
2347 (xtensa_hextochar): Add comment and update to match coding conventions.
2348 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
2349 (execute_l32e, execute_s32e, execute_code): Update comments.
2350 (xtensa_exception_handler_t): Update to match coding conventions.
2351 (xtensa_insn_kind): Likewise.
2353 2011-03-09 Michael Snyder <msnyder@vmware.com>
2355 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
2357 2011-03-09 Pedro Alves <pedro@codesourcery.com>
2359 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
2361 2011-03-09 Tom Tromey <tromey@redhat.com>
2363 * thread.c (restore_selected_frame): Handle frame_level == -1.
2364 (make_cleanup_restore_current_thread): Use
2365 get_selected_frame_if_set.
2366 * frame.h (get_selected_frame_if_set): Declare.
2367 * frame.c (get_selected_frame_if_set): New function.
2369 2011-03-09 Pedro Alves <pedro@codesourcery.com>
2371 * cli/cli-cmds.c (shell_escape): Use lbasename.
2372 * coffread.c (coff_start_symtab): Constify parameter.
2373 (complete_symtab): Constify `name' parameter.
2374 (coff_symtab_read): Constify `filestring' local.
2375 (coff_getfilename): Constify return and `result' local.
2377 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
2378 * linux-fork.c (info_checkpoints_command): Use lbasename.
2379 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
2380 * minsyms.c (lookup_minimal_symbol): Use lbasename.
2381 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
2382 * procfs.c (procfs_make_note_section): Use lbasename.
2383 * tui/tui-io.c (printable_part): Constity return and parameter.
2385 (print_filename): Constify parameters, and local `s'.
2386 (tui_rl_display_match_list): Constify local `temp'.
2388 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2391 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2392 Fix DWARF-3+ DW_AT_accessibility default assumption.
2393 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
2394 cu->header.version >= 3.
2396 2011-03-09 Yao Qi <yao@codesourcery.com>
2398 * common/Makefile.in: Remove.
2399 * common/configure: Remove.
2400 * common/configure.ac: Remove.
2402 2011-03-09 Yao Qi <yao@codesourcery.com>
2405 2011-02-11 Yao Qi <yao@codesourcery.com>
2407 * common/Makefile.in: Add copyright header.
2409 2011-02-11 Yao Qi <yao@codesourcery.com>
2411 * Makefile.in: Remove signals.o from COMMON_OBS. Link
2413 * configure.ac: Add common to sub dir.
2414 * configure: Regenerate.
2416 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2418 * xtensa-tdep.c (call0_ret): New function.
2419 (xtensa_skip_prologue): Speed up analysis.
2421 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2423 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
2424 while executing MI command -data-list-changed-registers.
2426 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2428 * xtensa-tdep.c (xtensa_read_register): New function.
2429 (xtensa_write_register): New function.
2430 (xtensa_find_register_by_name): New function.
2431 (xtensa_windowed_frame_cache): Update comments in type description.
2432 (xtensa_frame_cache): Likewise.
2433 (xtensa_window_interrupt_insn): New function.
2434 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
2435 (xtensa_insn_kind): Add new instructions.
2436 (rwx_special_register): New function.
2437 (call0_classify_opcode): Add new instructions to the analysis.
2438 (a0_saved, a7_saved, a11_saved): New variables.
2439 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
2440 (execute_l32e): New function.
2441 (execute_s32e): New function.
2442 (xtensa_exception_handler_t): New type.
2443 (execute_code): New function.
2444 (xtensa_window_interrupt_frame_cache): New function to conduct frame
2445 analysis for Xtensa Window Exception handlers.
2447 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2449 * xtensa-tdep.c (TX_PS): New.
2450 (windowing_enabled): Update to count for Call0 ABI.
2451 (xtensa_hextochar): New.
2452 (xtensa_init_reggroups): Make algorithm generic.
2453 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
2455 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2457 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
2459 2011-03-08 Michael Snyder <msnyder@vmware.com>
2461 * i386-tdep.c (i386_follow_jump): Check return value of
2463 (i386_analyze_struct_return): Ditto.
2464 (i386_skip_probe): Ditto.
2465 (i386_match_insn): Ditto.
2466 (i386_skip_noop): Ditto.
2467 (i386_analyze_frame_setup): Ditto.
2468 (i386_analyze_register_saves): Ditto.
2469 (i386_skip_prologue): Ditto.
2470 (i386_skip_main_prologue): Ditto.
2472 * target.c (read_whatever_is_readable): Fix memory leak.
2474 * i386-tdep.c (i386_process_record): Document fall through.
2476 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2478 Fix DWARF-3+ DW_AT_accessibility default assumption.
2479 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
2480 cu->header.version >= 3.
2482 2011-03-08 Pedro Alves <pedro@codesourcery.com>
2484 * remote.c (remote_check_symbols): Skip if the target has no
2487 2011-03-08 Joel Brobecker <brobecker@adacore.com>
2489 * target.c (read_whatever_is_readable): Reformat comment,
2490 with a minor typo fix. Minor reformatting of the code.
2492 2011-03-08 Yao Qi <yao@codesourcery.com>
2494 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
2495 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
2496 Use cached result instead of calling displaced_in_arm_mode again.
2497 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
2498 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
2499 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
2500 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
2501 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
2502 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
2503 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
2504 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
2505 (cleanup_block_load_pc, copy_block_xfer): Likewise.
2506 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
2507 (arm_catch_kernel_helper_return): Likewise.
2508 * gdb/arm-tdep.h : Update function declarations.
2510 2011-03-07 Michael Snyder <msnyder@vmware.com>
2512 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
2514 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
2516 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
2518 * elfread.c (elf_symtab_read): Stop memory leak.
2520 * main.c (captured_main): Fix memory leak.
2522 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
2524 * ada-lang.c (compare_names): Call is_name_suffix with string1
2527 2011-03-07 Tom Tromey <tromey@redhat.com>
2529 * xcoffread.c (xcoff_sym_fns): Update.
2530 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
2531 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
2532 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
2533 (symbol_file_add_with_addrs_or_offsets): Likewise.
2534 (reread_symbols): Handle OBJF_PSYMTABS_READ.
2535 * somread.c (som_sym_fns): Update.
2536 * psymtab.h (require_partial_symbols): Declare.
2537 * psymtab.c (require_partial_symbols): New function.
2538 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
2539 (ALL_OBJFILE_PSYMTABS): Undef.
2540 (ALL_PSYMTABS): Move from psympriv.h.
2541 (lookup_partial_symtab, find_pc_sect_psymtab)
2542 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
2543 (find_last_source_symtab_from_partial)
2544 (forget_cached_source_info_partial)
2545 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
2546 (expand_partial_symbol_tables, read_psymtabs_with_filename)
2547 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
2548 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
2549 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
2550 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
2551 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
2552 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
2553 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
2555 * mipsread.c (ecoff_sym_fns): Update.
2556 * machoread.c (macho_sym_fns): Update.
2557 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
2558 (read_psyms): New function.
2559 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
2560 (elf_sym_fns_lazy_psyms): New global.
2561 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
2562 dwarf2_build_psymtabs.
2563 * dbxread.c (aout_sym_fns): Update.
2564 * coffread.c (coff_sym_fns): Update.
2566 2011-03-07 Tom Tromey <tromey@redhat.com>
2568 * infrun.c (print_exited_reason): Include inferior id and pid in
2571 2011-03-07 Tom Tromey <tromey@redhat.com>
2573 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
2575 (target_has_execution_1): Update.
2576 (target_has_execution_current): Declare.
2577 (target_has_execution): Call target_has_execution_current.
2578 (default_child_has_execution): Update.
2579 * target.c (default_child_has_execution): Add 'the_ptid'
2581 (target_has_execution_1): Likewise.
2582 (target_has_execution_current): New function.
2583 (add_target): Update.
2584 (init_dummy_target): Update.
2585 * remote-m32r-sdi.c (m32r_has_execution): New function.
2586 (init_m32r_ops): Use it.
2587 * record.c (record_core_has_execution): Now static. Add
2588 'the_ptid' parameter.
2589 * inferior.c (have_live_inferiors): Don't save current thread.
2590 Use target_has_execution_1.
2592 2011-03-07 Yao Qi <yao@codesourcery.com>
2594 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
2596 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2598 * elfread.c (elf_symtab_read): Minor reformatting.
2600 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2602 * objc-lang.c (selectors_info): Minor reformatting.
2604 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2606 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
2608 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2609 Michael Snyder <msnyder@vmware.com>
2611 * ada-valprint.c (ada_val_print_array): Move the declaration of
2612 "byte_order" and "elttype" inside the block where these variables
2613 are actually used. Remove some special handling for the case
2614 where "elttype" and "eltlen" are null. Replace by a comment
2615 and a couple of assertion checks.
2617 2011-03-05 Michael Snyder <msnyder@vmware.com>
2619 * source.c (add_path): Replace semicolon at end of block.
2620 * dwarf2expr.c (execute_stack_op): Ditto.
2622 2011-03-05 Mike Frysinger <vapier@gentoo.org>
2624 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
2625 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
2626 (bfin-*-*): Likewise.
2628 2011-03-05 Michael Snyder <msnyder@vmware.com>
2630 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
2631 * mdebugread.c (parse_symbol): Ditto.
2632 * parse.c (parse_exp_in_context): Ditto.
2633 * source.c (add_path): Ditto.
2634 * utils.c (gnu_debuglink_crc32): Ditto.
2635 * varobj.c (variable_language): Ditto.
2637 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
2639 2011-03-04 Michael Snyder <msnyder@vmware.com>
2641 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
2643 * symfile.c (simple_overlay_update): Check for null return value
2644 from lookup_minimal_symbol.
2646 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
2648 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2650 * eval.c (parse_and_eval_address_1): Remove function.
2651 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
2652 instead of parse_and_eval_address_1.
2653 * value.h (parse_and_eval_address_1): Remove prototype.
2655 2011-03-04 Michael Snyder <msnyder@vmware.com>
2657 * remote.c (putpkt_binary): Document that case stmt falls through.
2659 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2661 * breakpointc (print_it_typical): Move NULL check from here...
2662 (print_bp_stop_message): ... to here.
2664 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
2666 * breakpoint.c (enable_command): Use break instead of continue,
2667 and fill in a missing break.
2668 (disable_command): Ditto.
2670 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
2672 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
2673 (terminal_save_ours): Remove misleading comment.
2674 (inflow_inferior_data_cleanup): Free ttystate.
2675 (inflow_inferior_exit): Likewise.
2676 (copy_terminal_info): Copy ttystate.
2678 * serial.c (serial_copy_tty_state): New function.
2679 * serial.h (serial_copy_tty_state): Add prototype.
2680 (struct serial_ops): Add copy_tty_state callback.
2681 * ser-base.c (ser_base_copy_tty_state): New function.
2682 * ser-base.h (ser_base_copy_tty_state): Add prototype.
2683 * ser-go32.c (dos_copy_tty_state): New function.
2684 (dos_ops): Install copy_tty_state callback.
2685 * ser-mingw.c (_initialize_ser_windows): Likewise.
2686 * ser-pipe.c (_initialize_ser_pipe): Likewise.
2687 * ser-unix.c (hardwire_copy_tty_state): New function.
2688 (_initialize_ser_hardwire): Install it.
2690 2011-03-04 Michael Snyder <msnyder@vmware.com>
2692 * breakpoint.c (create_breakpoint): Add missing break statement.
2694 Reverting this patch:
2695 * infcall.c (call_function_by_hand): Add break statements for lint.
2697 Reverting this patch:
2698 * cli/cli-script.c (script_from_file): Add break for lint.
2700 2011-03-04 Michael Snyder <msnyder@vmware.com>
2702 * solib.c (reload_shared_libraries_1): Close memory leak.
2704 2011-03-03 Tom Tromey <tromey@redhat.com>
2707 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
2710 2011-03-03 Michael Snyder <msnyder@vmware.com>
2712 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
2713 fields of struct 'st' to zero.
2715 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
2716 sal.pspace before calling set_current_source_symtab_and_line.
2718 2011-03-03 Yao Qi <yao@codesourcery.com>
2720 * Makefile.in (configure-common): Remove. Let Makefile
2721 in dir common to rebuild itself.
2722 (common/Makefile): Likewise.
2724 2011-03-03 Joel Brobecker <brobecker@adacore.com>
2726 * utils.c (parse_escape): Add i18n markup in error message.
2728 2011-03-03 Yao Qi <yao@codesourcery.com>
2730 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
2732 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
2733 (displaced_write_reg, displaced_read_reg): Likewise.
2734 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
2735 (cleanup_block_load_pc, copy_block_xfer): Likewise.
2736 (cleanup_branch): Replace magic number 14 and 15 with
2737 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
2739 2011-03-02 Michael Snyder <msnyder@vmware.com>
2741 * maint.c (maintenance_do_deprecate): No need to check for NULL.
2743 * cli/cli-script.c (script_from_file): Add break for lint.
2745 * mdebugread.c (parse_partial_symbols): Fix indent.
2747 * target-descriptions.c (tdesc_gdb_type): No need to call
2748 xstrdup, callee saves a copy.
2750 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
2752 * infcall.c (call_function_by_hand): Add break statements for lint.
2754 * utils.c (parse_escape): Escape the escape char.
2756 * python/py-inferior.c (build_inferior_list): Error out if
2757 PyList_Append fails.
2758 (gdbpy_inferiors): Error out if build_inferior_list fails.
2760 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
2763 * record.c (record_restore): Move printf to before error return.
2765 2011-03-02 Yao Qi <yao@codesourcery.com>
2767 * arm-tdep.h (struct displaced_step_closure): Add two new fields
2768 is_thumb and insn_size.
2769 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
2770 on both ARM and Thumb mode.
2771 (arm_process_displaced_insn): Set is_thumb and insn_size.
2772 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
2773 (arm_displaced_step_fixup): Likewise.
2775 2011-03-01 Michael Snyder <msnyder@vmware.com>
2777 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
2779 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
2781 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
2783 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
2785 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
2788 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
2789 which shadows function parameter.
2791 * tracepoint.c (create_tsv_from_upload): Superfluous call
2792 to xstrdup. Callee already calls xstrdup.
2794 * linespec.c (decode_line_1): Remove unnecessary null check.
2796 * tracepoint.c (scope_info): Fix mem leak, remove underused
2799 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
2800 superfluous null check.
2802 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
2803 (value_of_builtin_frame_fp_reg): Ditto.
2805 * event-top.c (display_gdb_prompt): Remove superfluous null check.
2807 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
2810 * linespec.c (decode_line_1): Check for null before dereference.
2812 * reverse.c (record_restore): Move null-check to before pointer
2815 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
2817 * objc-lang.c (selectors_info): Add explanitory comment.
2818 (classes_info): Ditto.
2820 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2822 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
2823 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
2824 versions of the trampoline. Handle Thumb vs. ARM addresses.
2825 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
2826 (arm_linux_init_abi): Install it.
2827 * arm-tdep.c (arm_psr_thumb_bit): Make global.
2828 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
2830 2011-02-28 Michael Snyder <msnyder@vmware.com>
2832 * ui-out.c (ui_out_field_core_addr): Make local char buffer
2833 a little bigger, to avoid possibility of an overflow.
2835 * breakpoint.c (breakpoint_adjustment_warning): Make local char
2836 buffers a little bigger, to avoid possibility of an overflow.
2838 * coffread.c (coff_getfilename): Add check to avoid overflow.
2840 * objc-lang.c (selectors_info): Add a small safety margin to
2842 (classes_info): Error out on too long REGEXP.
2844 * infrun.c (handle_inferior_event): Remove unused function call.
2846 * fork-child.c (fork_inferior): Remove ifdef'd code and
2849 * linux-thread-db.c (attach_thread): Discard unused value.
2851 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
2853 * remote.c (remote_get_noisy_reply): Discard unused value.
2854 (remote_vcont_resume): Ditto.
2855 (remote_stop_ns): Ditto.
2857 * linespec.c (decode_objc): Delete unused variable.
2859 * tui/tui-regs.c (tui_register_format): Delete unused variable.
2861 * dwarf2read.c (add_partial_symbol): Discard unused values.
2862 (read_base_type): Delete unused variable.
2864 * dbxread.c (read_dbx_symtab): Discard unused value.
2866 * eval.c (evaluate_subexp_standard): Delete unused variable,
2867 and discard unused values.
2869 * infcmd.c (_initialize_infcmd): Discard unused values.
2871 * stabsread.c (rs6000_builtin_type): Missing break statement.
2873 * dbxread.c (process_one_symbol): Discard unused value.
2875 * coffread.c (coff_end_symtab): Delete unused variable.
2877 * dwarf2read.c (dw2_get_file_names): Discard unused value.
2878 (dwarf2_add_typedef): Delete unused variable.
2879 (read_namespace): Ditto.
2880 (dwarf_decode_macros): Ditto.
2882 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
2884 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
2886 * p-valprint.c (pascal_val_print): Discard unused value.
2888 * utils.c (nquery): Call va_end before return;
2892 * proc-service.c (ps_plog): Call va_end before return.
2894 2011-02-28 Tom Tromey <tromey@redhat.com>
2896 * python/python.c (gdbpy_value_cst): New global.
2897 (_initialize_python): Initialize it.
2898 * python/python-internal.h (gdbpy_value_cst): Declare.
2899 * python/py-value.c (convert_value_from_python): Use
2902 2011-02-28 Michael Snyder <msnyder@vmware.com>
2904 * python/py-cmd.c (cmdpy_init): Fix memory leak.
2906 * breakpoint.c (catch_syscall_completer): Free malloced list.
2908 * jv-lang.c (java_primitive_type_from_name): Add missing break.
2910 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
2911 (lval_func_check_synthetic_pointer): Ditto.
2912 (lval_func_free_closure): Fix use-after-free.
2914 2011-02-28 Tom Tromey <tromey@redhat.com>
2916 * psymtab.c (expand_partial_symbol_tables): Use
2917 ALL_OBJFILE_PSYMTABS.
2919 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2921 * objc-lang.c (selectors_info): Error on too long REGEXP.
2923 2011-02-28 Michael Snyder <msnyder@vmware.com>
2925 * python/py-param.c (set_parameter_value): Add missing
2928 * linux-record.c (record_linux_system_call): Add missing
2931 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
2933 * breakpoint.c (print_one_breakpoint_location): Remove unused
2934 argument PRINT_ADDRESS_BITS. Update callers.
2935 (print_one_breakpoint): Likewise.
2937 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
2939 * breakpoint.c (wrap_indent_at_field): New function.
2940 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
2941 Allocate ui_stream locally instead of using STB argument.
2942 (print_one_breakpoint_location): Update call.
2943 * ui-out.c (ui_out_query_field): New function.
2944 * ui-out.h (ui_out_query_field): Add prototype.
2946 2011-02-28 Joel Brobecker <brobecker@adacore.com>
2948 From Michael Snyder <msnyder@vmware.com>
2949 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
2951 2011-02-27 Michael Snyder <msnyder@vmware.com>
2953 * objc-lang.c (selectors_info): Prevent string overrun.
2955 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
2958 * symtab.c (rbreak_command): Move variable 'file_name' to
2961 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
2962 param with a local variable of the same name.
2964 2011-02-27 Michael Snyder <msnyder@vmware.com>
2966 * value.c (value_from_history_ref): New function.
2967 * value.h (value_from_history_ref): Export.
2968 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
2969 to parse value history references.
2970 * cli/cli-utils.h (get_number_trailer): Update comment.
2972 2011-02-27 Michael Snyder <msnyder@vmware.com>
2974 * inferior.c (detach_inferior_command): Use get_number_or_range.
2975 (kill_inferior_command): Ditto.
2976 (remove_inferior_command): Ditto.
2977 (initialize_inferiors): Make command names plural.
2978 Update help strings.
2980 2011-02-27 Michael Snyder <msnyder@vmware.com>
2982 * darwin-nat-info.c: Fix comment typo.
2983 * dwarf2expr.h: Ditto.
2984 * fbsd-nat.c: Ditto.
2985 * fbsd-nat.h: Ditto.
2986 * frame-unwind.h: Ditto.
2988 * hppa-hpux-tdep.c: Ditto.
2989 * i386-linux-nat.c: Ditto.
2990 * linux-nat.c: Ditto.
2991 * nbsd-nat.c: Ditto.
2992 * nbsd-nat.h: Ditto.
2993 * ppc-linux-tdep.c: Ditto.
2996 * tui/tui-winsource.c: Ditto.
2998 2011-02-26 Michael Snyder <msnyder@vmware.com>
3000 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
3002 * maint.c (maintenance_do_deprecate): Plug a memory leak.
3004 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
3005 with a local variable of the same name.
3007 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
3008 param with a local variable of the same name.
3009 (i387_supply_xsave): Ditto.
3011 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
3012 that it does not shadow a function parameter.
3014 * i386-nat.c (i386_length_and_rw_bits): Document that case
3015 statement is meant to fall through.
3017 * expprint.c (dump_subexp_body_standard): Document that case
3018 statement is meant to fall through.
3020 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
3021 dead if statement. Condition can't be false.
3023 2011-02-25 Michael Snyder <msnyder@vmware.com>
3025 * arm-tdep.c: Fix typos in comments.
3026 * bsd-uthread.c: Ditto.
3027 * completer.c: Ditto.
3029 * cp-namespace.c: Ditto.
3030 * cp-support.c: Ditto.
3031 * cris-tdep.c: Ditto.
3033 * dwarf2read.c: Ditto.
3035 * gdbtypes.h: Ditto.
3036 * inferior.h: Ditto.
3037 * mdebugread.c: Ditto.
3038 * mips-tdep.c: Ditto.
3039 * ppc-linux-nat.c: Ditto.
3040 * ppc-linux-tdep.c: Ditto.
3041 * printcmd.c: Ditto.
3042 * sol-thread.c: Ditto.
3043 * solib-frv.c: Ditto.
3045 * sparc64-tdep.c: Ditto.
3046 * spu-tdep.c: Ditto.
3047 * stabsread.c: Ditto.
3052 * python/py-block.c: Ditto.
3053 * python/py-symbol.c: Ditto.
3054 * python/py-symtab.c: Ditto.
3055 * python/py-value.c: Ditto.
3056 * tui/tui-win.c: Ditto.
3058 2011-02-25 Michael Snyder <msnyder@vmware.com>
3060 * inferior.c (print_inferior): Accept a string instead of an int
3061 for requested_inferiors, and use get_number_or_range to parse it.
3062 (info_inferiors_command): Pass args string to print_inferior.
3063 (initialize_inferiors): Change help string for info inferiors.
3064 * inferior.h (print_inferior): Export prototype change.
3066 2011-02-25 Tom Tromey <tromey@redhat.com>
3068 * common/ax.def (invalid2): Set to 0x31.
3070 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3072 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
3074 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
3076 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
3078 2011-02-24 Michael Snyder <msnyder@vmware.com>
3080 * Makefile.in (clean): Make clean should remove generated files
3081 observer.h and observer.inc.
3083 2011-02-24 Joel Brobecker <brobecker@adacore.com>
3085 Revert the following patch (not approved yet):
3086 2011-02-21 Hui Zhu <teawater@gmail.com>
3087 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3088 * ax-gdb.c (gen_printf_expr_callback): New function.
3089 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3090 * ax-general.c (ax_memcpy): New function.
3091 (ax_print): Handle "printf".
3093 * ax.h (ax_memcpy): Forward declare.
3094 * common/ax.def (invalid2): Removed.
3095 (printf): New entry.
3096 * printcmd.c (printcmd.h): New include.
3097 (string_printf): New function.
3098 (ui_printf): Removed.
3099 (printf_command): Remove static. Call string_printf.
3100 (eval_command): Call string_printf.
3101 * printcmd.h: New file.
3102 * tracepoint.c (validate_actionline,
3103 encode_actions_1): handle printf_command.
3105 2011-02-23 Tom Tromey <tromey@redhat.com>
3107 * ax-general.c (ax_pick): Add missing newline.
3109 2011-02-23 Michael Snyder <msnyder@vmware.com>
3111 * breakpoint.c (breakpoint_1): Change first argument from an int
3112 to a char pointer, so that the function now accepts a list of
3113 breakpoints rather than just one. Use new function
3114 'number_is_in_list' to implement.
3115 (breakpoints_info): Pass char * instead of int to breakpoint_1.
3116 (watchpoints_info): Ditto.
3117 (tracepoints_info): Ditto.
3118 (maintenance_info_breakpoints): Ditto.
3119 (_initialize_breakpoint): Update help strings to reflect the fact
3120 that these functions can now take more than one argument.
3121 * cli/cli-utils.c (number_is_in_list): New function.
3122 * cli/cli-utils.h (number_is_in_list): Export.
3124 2011-02-23 Michael Snyder <msnyder@vmware.com>
3126 * memattr.c (mem_enable_command): Use get_number_or_range.
3127 (mem_disable_command): Ditto.
3128 (mem_delete_command): Ditto.
3129 (_initialize_mem): Tweak usage message to reflect multiple
3132 2011-02-22 Doug Evans <dje@google.com>
3134 Add gdb.lookup_global_symbol python function.
3136 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
3137 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
3138 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
3140 2011-02-22 Tom Tromey <tromey@redhat.com>
3142 * language.c (language_class_name_from_physname): Rename
3143 'curr_language' argument to 'lang'; use in body.
3145 2011-02-22 Michael Snyder <msnyder@vmware.com>
3147 * cli/cli-utils.c (number_is_in_list): Check for zero return.
3149 2011-02-22 Pedro Alves <pedro@codesourcery.com>
3151 * frame-unwind.h: Fix comment to mention the this frame, not the
3154 2011-02-22 Tom Tromey <tromey@redhat.com>
3156 * symfile.c (auto_solib_limit): Remove.
3157 * symfile.h (auto_solib_limit): Remove.
3159 2011-02-22 Joel Brobecker <brobecker@adacore.com>
3161 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
3163 2011-02-21 Michael Snyder <msnyder@vmware.com>
3165 * gdbthread.h (print_thread_info): Change prototype.
3166 * thread.c (print_thread_info): Accept char* instead of int for
3167 requested_threads argument. Use new function number_is_in_list
3168 to determine which threads to list.
3169 (info_threads_command): Pass char* to print_thread_info.
3170 * cli/cli-utils.c (number_is_in_list): New function.
3171 * cli/cli-utils.h (number_is_in_list): Export.
3172 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
3174 (print_one_inferior): Ditto.
3175 (mi_cmd_list_thread_groups): Ditto.
3177 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3179 * common/Makefile.in (CFLAGS): New.
3180 (COMPILE): Add $(CFLAGS).
3182 2011-02-21 Tom Tromey <tromey@redhat.com>
3184 * breakpoint.c (catch_syscall_command_1): Fix typo.
3186 2011-02-21 Tom Tromey <tromey@redhat.com>
3188 * reverse.c: Include cli-utils.h.
3189 * printcmd.c: Include cli-utils.h.
3190 (string_printf): Use skip_spaces.
3191 * cli/cli-utils.h: New file.
3192 * cli/cli-utils.c: New file.
3193 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
3194 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
3195 * breakpoint.h (get_number, get_number_or_range): Move to
3197 * breakpoint.c: Include cli-utils.h.
3198 (get_number_trailer, get_number, get_number_or_range)
3199 (ep_skip_leading_whitespace): Move to cli-utils.c.
3200 (create_breakpoint_sal, find_condition_and_thread)
3201 (decode_static_tracepoint_spec, watch_command_1)
3202 (watch_maybe_just_location, ep_parse_optional_if_clause)
3203 (catch_fork_command_1, catch_exec_command_1)
3204 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
3205 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
3206 (SUBDIR_CLI_SRCS): Add cli-utils.c.
3207 (HFILES_NO_SRCDIR): Add cli-utils.h.
3208 (cli-utils.o): New target.
3210 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3212 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
3213 before calling discard_all_inferiors.
3215 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
3217 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
3218 (struct builtin_opencl_type): Remove.
3219 (builtin_opencl_type): Change return type to "struct type **".
3220 (lookup_opencl_vector_type): Update caller.
3221 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
3222 (build_opencl_types): Install plain array of "struct type *"
3223 instead of "struct builtin_opencl_type".
3225 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3226 Ulrich Weigand <uweigand@de.ibm.com>
3228 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
3229 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
3230 (struct arm_linux_hwbp_cap): New type.
3231 (arm_linux_get_hwbp_cap): New function.
3232 (arm_linux_get_hw_breakpoint_count): Likewise.
3233 (arm_linux_get_hw_watchpoint_count): Likewise.
3234 (arm_linux_can_use_hw_breakpoint): Likewise.
3235 (arm_hwbp_type): New type.
3236 (arm_hwbp_control_t): Likewise.
3237 (struct arm_linux_hw_breakpoint): Likewise.
3238 (struct arm_linux_thread_points): Likewise.
3239 (arm_threads): New global variable.
3240 (arm_linux_find_breakpoints_by_tid): New function.
3241 (arm_hwbp_control_initialize): Likewise.
3242 (arm_hwbp_control_is_enabled): Likewise.
3243 (arm_hwbp_control_disable): Likewise.
3244 (arm_linux_hw_breakpoint_initialize): Likewise.
3245 (arm_linux_get_hwbp_type): Likewise.
3246 (arm_linux_hw_watchpoint_initialize): Likewise.
3247 (arm_linux_hw_breakpoint_equal): Likewise.
3248 (arm_linux_insert_hw_breakpoint1): Likewise.
3249 (arm_linux_remove_hw_breakpoint1): Likewise.
3250 (arm_linux_insert_hw_breakpoint): Likewise.
3251 (arm_linux_remove_hw_breakpoint): Likewise.
3252 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
3253 (arm_linux_insert_watchpoint): Likewise.
3254 (arm_linux_remove_watchpoint): Likewise.
3255 (arm_linux_stopped_data_address): Likewise.
3256 (arm_linux_stopped_by_watchpoint): Likewise.
3257 (arm_linux_watchpoint_addr_within_range): Likewise.
3258 (arm_linux_new_thread): Likewise.
3259 (arm_linux_thread_exit): Likewise.
3260 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
3261 related target callbacks. Register arm_linux_new_thread and
3262 arm_linux_thread_exit.
3263 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
3264 * arm-tdep.c (arm_pc_is_thumb): Make global.
3265 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
3267 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
3269 * breakpoint.c (update_watchpoint): Do not attempt to recreate
3270 per-frame locations while within a function epilogue.
3272 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
3274 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
3275 to GNU coding standards.
3277 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
3279 Allow use of mingw native on Windows 95 OS.
3280 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
3281 (ser_windows_close): Only call CancelIo if function exists.
3282 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
3283 to check for existence of CancelIo function in kernel32 DLL.
3285 2011-02-21 Hui Zhu <teawater@gmail.com>
3287 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3288 * ax-gdb.c (gen_printf_expr_callback): New function.
3289 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3290 * ax-general.c (ax_memcpy): New function.
3291 (ax_print): Handle "printf".
3293 * ax.h (ax_memcpy): Forward declare.
3294 * common/ax.def (invalid2): Removed.
3295 (printf): New entry.
3296 * printcmd.c (printcmd.h): New include.
3297 (string_printf): New function.
3298 (ui_printf): Removed.
3299 (printf_command): Remove static. Call string_printf.
3300 (eval_command): Call string_printf.
3301 * printcmd.h: New file.
3302 * tracepoint.c (validate_actionline,
3303 encode_actions_1): handle printf_command.
3305 2011-02-19 Michael Snyder <msnyder@vmware.com>
3307 * reverse.c (delete_one_bookmark): Argument is now bookmark
3308 id rather than pointer to bookmark struct.
3309 (delete_bookmark_command): Use get_number_or_range.
3310 (goto_bookmark_command): Parse with get_number instead of strtoul.
3311 (bookmark_1): New function. Print info for one bookmark.
3312 (bookmarks_info): Use get_number_or_range and bookmark_1.
3314 2011-02-18 Michael Snyder <msnyder@vmware.com>
3316 * thread.c (info_threads_command): Re-implement using
3317 get_number_or_range.
3318 (thread_apply_command): Ditto.
3320 2011-02-18 Tom Tromey <tromey@redhat.com>
3322 * common/ax.def: New file.
3323 * ax.h (enum agent_op): Use ax.def.
3324 * ax-general.c (aop_map): Use ax.def.
3326 2011-02-18 Tom Tromey <tromey@redhat.com>
3328 * ax-general.c (aop_map): Add pick and rot.
3329 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
3330 <DW_OP_rot>: Implement.
3331 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
3333 * ax-general.c (ax_pick): New function.
3335 2011-02-18 Tom Tromey <tromey@redhat.com>
3337 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
3339 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3340 Tom Tromey <tromey@redhat.com>
3342 * cp-support.c (make_symbol_overload_list_namespace): Do not call
3343 make_symbol_overload_list_block with NULL BLOCK.
3344 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
3346 2011-02-18 Pedro Alves <pedro@codesourcery.com>
3348 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
3349 * breakpoint.h (get_number_or_range): Declare.
3350 * printcmd.c (ALL_DISPLAYS): Declare.
3351 (delete_display): Reimplement taking a display pointer.
3352 (undisplay_command): Accept a range of displays to delete, using
3353 get_number_or_range.
3355 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3357 * c-valprint.c (c_val_print): Add embedded_offset to address
3358 for arrays of unspecified length.
3359 * p-valprint.c (pascal_val_print): Likewise.
3361 2011-02-18 Yao Qi <yao@codesourcery.com>
3363 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
3364 (arm_process_displaced_insn): .. here. Remove parameter INSN.
3365 (thumb_process_displaced_insn): New.
3366 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
3367 call to arm_process_displaced_insn.
3368 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
3370 2011-02-17 Tom Tromey <tromey@redhat.com>
3372 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
3373 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
3374 compile_dwarf_to_ax. No longer static. Call
3375 dwarf2_compile_cfa_to_ax.
3376 (locexpr_tracepoint_var_ref): Update.
3377 (loclist_tracepoint_var_ref): Update.
3378 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
3379 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
3380 argument; add 'gdbarch' and 'pc'.
3381 (dwarf2_compile_cfa_to_ax): New function.
3382 (dwarf2_frame_cache): Update.
3384 2011-02-17 Joel Brobecker <brobecker@adacore.com>
3386 * ada-lang.c (ada_type_of_array): Fix the size of the array
3387 in the case of an unconstrained packed array.
3389 2011-02-17 Yao Qi <yao@codesourcery.com>
3391 * common/Makefile.in: Add more targets for make.
3393 2011-02-16 Tom Tromey <tromey@redhat.com>
3395 * dwarf2loc.c (unimplemented): Fix typo.
3397 2011-02-16 Tom Tromey <tromey@redhat.com>
3399 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
3400 (compile_dwarf_to_ax) <default>: Use unimplemented.
3401 <DW_OP_deref>: Update.
3402 (disassemble_dwarf_expression): Update.
3403 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
3404 (decode_locdesc): Update.
3405 * dwarf2expr.h (dwarf_stack_op_name): Update.
3407 2011-02-16 Tom Tromey <tromey@redhat.com>
3409 * ax.h (struct aop_map) <name>: Now const.
3411 2011-02-16 Tom Tromey <tromey@redhat.com>
3413 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
3416 2011-02-16 Yao Qi <yao@codesourcery.com>
3418 * infrun.c (get_displaced_step_closure_by_addr): New.
3419 * inferior.h: Declare it.
3420 * arm-tdep.c: (arm_pc_is_thumb): Call
3421 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
3424 2011-02-16 Pedro Alves <pedro@codesourcery.com>
3425 Jan Kratochvil <jan.kratochvil@redhat.com>
3428 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
3430 2011-02-16 Pedro Alves <pedro@codesourcery.com>
3431 Jan Kratochvil <jan.kratochvil@redhat.com>
3433 * value.c (value_contents_copy_raw): Extend describing comment.
3434 Assert that the destination contents we're overwriting are wholly
3436 (value_contents_copy): Extend describing comment.
3438 2011-02-16 Pedro Alves <pedro@codesourcery.com>
3439 Jan Kratochvil <jan.kratochvil@redhat.com>
3441 * value.c (value_available_contents_eq): Remove redundant local
3442 variables. Fix available contents comparision.
3443 * value.h (value_available_contents_eq): Extend describing
3446 2011-02-16 Yao Qi <yao@codesourcery.com>
3448 * thread.c (info_threads_command): Add missing i18n markup and remove
3451 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
3453 * breakpoint.c (longjmp_names): New variable.
3454 (struct breakpoint_objfile_data): New type.
3455 (breakpoint_objfile_key): New variable.
3456 (msym_not_found): New variable.
3457 (msym_not_found_p): New predicate.
3458 (get_breakpoint_objfile_data): New function.
3459 (create_overlay_event_breakpoint): Check per-objfile cache for
3461 (create_longjmp_master_breakpoint): Likewise.
3462 (create_std_terminate_master_breakpoint): Likewise.
3463 (create_exception_master_breakpoint): Likewise.
3464 (_initialize_breakpoint): Register per-objfile data key.
3466 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
3468 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
3470 (create_longjmp_master_breakpoint): Loop over longjmp names.
3471 (create_std_terminate_master_breakpoint): Const-propagate parameter
3473 (update_breakpoints_after_exec): Adjust.
3474 (breakpoint_re_set): Adjust.
3476 2011-02-15 Michael Snyder <msnyder@vmware.com>
3478 * thread.c (info_threads_command): Process arg as thread id,
3479 or list of thread ids.
3480 (thread_find_command): New command.
3481 (_initialize_thread): Document argument for info threads.
3482 Document 'thread find' command.
3483 * NEWS: Document new command "thread find".
3485 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3487 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
3488 * aclocal.m4: Regenerated with aclocal-1.11.1.
3489 * common/configure: Regenerate with autoconf-2.64.
3491 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
3493 * opencl-lang.c (build_opencl_types): Set the size of the built-in
3494 bool data type to a size of one byte.
3496 2011-02-15 Pedro Alves <pedro@codesourcery.com>
3497 Jan Kratochvil <jan.kratochvil@redhat.com>
3499 * target.c (memory_xfer_live_readonly_partial): Document where to
3500 look for interface description.
3502 2011-02-15 Yao Qi <yao@codesourcery.com>
3505 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
3506 order to store PC value on stack instead of text section.
3508 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
3510 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
3511 the EFP register set size.
3512 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
3513 data from the VMX register.
3514 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
3515 and write data from/to the VMX register.
3517 2011-02-14 Michael Snyder <msnyder@vmware.com>
3519 * command.h (enum command_class): New class 'no_set_class', for
3520 "show" commands without a corresponding "set" command.
3521 * value.c (_initialize_values): Use 'no_set_class' for "show values".
3522 * copying.c (_initialize_copying): Ditto for "show copying" and
3524 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
3526 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
3527 which there is no corresponding "set" command (eg. "show copying").
3529 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3530 Jan Kratochvil <jan.kratochvil@redhat.com>
3532 * exec.c (section_table_available_memory): Change `len' parameter
3534 * exec.h (section_table_available_memory): Ditto.
3535 * value.h (read_value_memory): Rename the `offset' parameter to
3538 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3539 Jan Kratochvil <jan.kratochvil@redhat.com>
3541 * memrange.c (compare_mem_ranges): Mention sort order in
3543 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
3544 * tracepoint.c (traceframe_available_memory): Extend comment to
3545 mention what happens to RESULT when the target does not support
3548 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3549 Jan Kratochvil <jan.kratochvil@redhat.com>
3551 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
3554 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3556 * value.c (value_bits_valid, value_bits_synthetic_pointer):
3557 No longer handle NULL values.
3559 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3561 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
3562 * value.c: Include "exceptions.h".
3563 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
3565 * cp-abi.c: Include gdb_assert.h.
3566 (baseclass_offset): Add `embedded_offset' and `val' parameters.
3567 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
3569 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
3570 parameters. No longer returns -1 on error.
3571 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
3573 * cp-valprint.c: Include exceptions.h.
3574 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
3575 the baseclass_offset. Handle unavailable base classes. Use
3576 val_print_invalid_address.
3577 * p-valprint.c: Include exceptions.h.
3578 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
3579 when fetching the baseclass_offset. No longer expect
3580 baseclass_offset returning -1. Handle unavailable base classes.
3581 Use val_print_invalid_address.
3582 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
3583 `valaddr' parameter, and change its type to gdb_byte pointer. Add
3584 `embedded_offset' and `val' parameters. Adjust.
3585 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
3586 parameter, and change its type to gdb_byte pointer. Add
3587 `embedded_offset' and `val' parameters. Adjust. No longer expect
3588 baseclass_offset returning -1.
3589 (value_dynamic_cast): Use value_contents_for_printing rather than
3590 value_contents. Adjust.
3591 (search_struct_field): No longer expect baseclass_offset returning
3593 (search_struct_method): If reading memory from the target is
3594 necessary, wrap it in a new value to pass to baseclass_offset. No
3595 longer expect baseclass_offset returning -1.
3596 (find_method_list): No longer expect baseclass_offset returning
3597 -1. Use value_contents_for_printing rather than value_contents.
3598 * valprint.c (val_print_invalid_address): New function.
3599 * valprint.h (val_print_invalid_address): Declare.
3600 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
3601 and `val' parameters. No longer expect baseclass_offset returning
3603 * gnu-v2-abi.c: Include "exceptions.h".
3604 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
3605 parameters. Handle unavailable memory. Recurse through
3606 gnuv2_baseclass_offset directly, rather than through
3607 baseclass_offset. No longer returns -1 on not found, instead
3609 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
3610 `val' parameters. Adjust.
3612 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3614 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
3615 almost but not quite adjacent.
3617 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3619 * value.h (value_entirely_available): Declare.
3620 * value.c (value_entirely_available): New function.
3621 * c-valprint.c (c_value_print): Don't try fetching the pointer's
3622 real type if the pointer is unavailable.
3624 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3626 * valops.c (value_repeat): Use read_value_memory instead of
3629 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3631 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
3632 * value.c (value_contents_copy_raw, value_contents_copy): New
3634 (value_primitive_field): Use value_contents_copy_raw instead of
3636 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
3638 (value_array, value_slice): Ditto.
3639 * valarith.c (value_subscripted_rvalue): Use
3640 value_contents_copy_raw instead of memcpy.
3642 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3644 <unavailable> references.
3646 * valops.c (get_value_at): Use value_from_contents_and_address,
3647 avoiding read_memory.
3649 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3651 * c-valprint.c (c_val_print): Print a string with unavailable
3652 contents as an array.
3654 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3656 * value.h (unpack_bits_as_long): Delete declaration.
3657 (unpack_value_bits_as_long): Declare.
3658 (unpack_value_field_as_long): Declare.
3659 (value_field_bitfield): Declare.
3660 * value.c (unpack_bits_as_long): Rename to...
3661 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
3662 value parameters. Return the extracted result in a new output
3663 parameter. If the value contents are unavailable, return false,
3664 otherwise return true.
3665 (unpack_value_bits_as_long): New.
3666 (unpack_field_as_long): Rename to...
3667 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
3668 Add embedded_offset and value parameters. Return the extracted
3669 result in a new output parameter. If the value contents are
3670 unavailable, return false, otherwise return true.
3671 (unpack_value_field_as_long): New.
3672 (unpack_field_as_long_1): New.
3673 (unpack_field_as_long): Reimplement as wrapper around
3674 unpack_value_field_as_long_1.
3675 (value_field_bitfield): New function.
3676 * valops.c (value_fetch_lazy): When fetching a bitfield, use
3677 unpack_value_bits_as_long. Mark the value as unavailable, if it
3679 * jv-valprint.c (java_print_value_fields): Use
3680 value_field_bitfield.
3681 * p-valprint.c (pascal_object_print_value_fields): Use
3682 value_field_bitfield.
3683 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
3685 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3687 * value.c (get_internalvar_integer): Also return the int value of
3688 TYPE_CODE_INT INTERNALVAR_VALUE values.
3689 (set_internalvar): Don't special case TYPE_CODE_INT.
3691 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3693 * value.c (struct internalvar) <enum internalvar_kind>: Remove
3694 INTERNALVAR_POINTER.
3696 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
3697 (set_internalvar): Remove special TYPE_CODE_PTR handling.
3698 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
3700 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3702 * value.h (value_available_contents_eq): Declare.
3703 * value.c (find_first_range_overlap): New function.
3704 (value_available_contents_eq): New function.
3705 * valprint.c (val_print_array_elements): Use
3706 value_available_contents_eq.
3707 * ada-valprint.c (val_print_packed_array_elements): Use
3708 value_available_contents_eq.
3709 * jv-valprint.c (java_value_print): Use
3710 value_available_contents_eq.
3712 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3714 * target.c (target_read_live_memory): New function.
3715 (memory_xfer_live_readonly_partial): New.
3716 (memory_xfer_partial): If reading from a traceframe, fallback to
3717 reading unavailable read-only memory from read-only regions of
3719 * tracepoint.c (disconnect_tracing): Adjust.
3720 (set_current_traceframe): New, factored out from
3721 set_traceframe_number.
3722 (set_traceframe_number): Reimplement to only change the traceframe
3723 number on the GDB side.
3724 (do_restore_current_traceframe_cleanup): Adjust.
3725 (make_cleanup_restore_traceframe_number): New.
3726 (cur_traceframe_number): New global.
3727 (tfile_open): Set cur_traceframe_number to no traceframe.
3728 (set_tfile_traceframe): New function.
3729 (tfile_trace_find): If looking up a traceframe using any method
3730 other than by number, make sure the current tfile traceframe
3731 matches gdb's current traceframe. Update the current tfile
3732 traceframe if the lookup succeeded.
3733 (tfile_fetch_registers, tfile_xfer_partial)
3734 (tfile_get_trace_state_variable_value): Make sure the remote
3735 traceframe matches gdb's current traceframe.
3736 * remote.c (remote_traceframe_number): New global.
3737 (remote_open_1): Set it to -1.
3738 (set_remote_traceframe): New function.
3739 (remote_fetch_registers, remote_store_registers)
3740 (remote_xfer_memory, remote_xfer_partial)
3741 (remote_get_trace_state_variable_value): Make sure the remote
3742 traceframe matches gdb's current traceframe.
3743 (remote_trace_find): If looking up a traceframe using any method
3744 other than by number, make sure the current remote traceframe
3745 matches gdb's current traceframe. Update the current remote
3746 traceframe if the lookup succeeded.
3747 * infrun.c (fetch_inferior_event): Adjust.
3748 * tracepoint.h (set_current_traceframe): Declare.
3749 (get_traceframe_number, set_traceframe_number): Add describing
3752 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3754 Mark pieces of values as unavailable if the corresponding memory
3757 * valops.c: Include tracepoint.h.
3758 (value_fetch_lazy): Use read_value_memory.
3759 (read_value_memory): New.
3760 * value.h (read_value_memory): Declare.
3761 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
3762 * exec.c (section_table_available_memory): New function.
3763 * exec.h (section_table_available_memory): Declare.
3765 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3767 * Makefile.in (SFILES): Add memrange.c.
3768 (HFILES_NO_SRCDIR): Add memrange.h.
3769 (COMMON_OBS): Add memrange.o.
3770 * memrange.c: New file.
3771 * memrange.h: New file.
3772 * tracepoint.c: Include memrange.h.
3773 (struct mem_range): Delete.
3774 (mem_range_s): Delete.
3775 (traceframe_available_memory): New function.
3776 * tracepoint.h (traceframe_available_memory): Declare.
3778 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3780 * target.h (struct traceframe_info): Forward declare.
3781 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
3782 (struct target_ops) <to_traceframe_info>: New field.
3783 (target_traceframe_info): New.
3784 * target.c (update_current_target): Inherit and default
3786 * remote.c (PACKET_qXfer_traceframe_info): New.
3787 (remote_protocol_features): Register qXfer:traceframe-info:read.
3788 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
3789 (remote_traceframe_info): New.
3790 (init_remote_ops): Install it.
3791 (_initialize_remote): Install "set/show remote traceframe-info"
3793 * tracepoint.h (parse_traceframe_info): Declare.
3794 * tracepoint.c (struct mem_range): New.
3795 (mem_range_s): New typedef.
3796 (struct traceframe_info): New.
3797 (traceframe_info): New global.
3798 (free_traceframe_info): New function.
3799 (clear_traceframe_info): New function.
3800 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
3802 (build_traceframe_info): New function.
3803 (tfile_traceframe_info): New function.
3804 (init_tfile_ops): Install tfile_traceframe_info.
3805 (traceframe_info_start_memory, free_result): New functions.
3806 (memory_attributes, traceframe_info_elements): New globals.
3807 (parse_traceframe_info, get_traceframe_info): New functions.
3808 * features/traceframe-info.dtd: New file.
3809 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
3811 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3813 Base support for <unavailable> value contents.
3815 * value.h (value_bytes_available): Declare.
3816 (mark_value_bytes_unavailable): Declare.
3817 * value.c (struct range): New struct.
3818 (range_s): New typedef.
3819 (ranges_overlap): New function.
3820 (range_lessthan): New function.
3821 (ranges_contain_p): New function.
3822 (struct value) <unavailable>: New field.
3823 (value_bytes_available): New function.
3824 (mark_value_bytes_unavailable): New function.
3825 (require_not_optimized_out): Constify parameter.
3826 (require_available): New function.
3827 (value_contents_all, value_contents): Require all bytes be
3829 (value_free): Free `unavailable'.
3830 (value_copy): Copy `unavailable'.
3831 * valprint.h (val_print_unavailable): Declare.
3832 * valprint.c (valprint_check_validity): Rename `offset' parameter
3833 to `embedded_offset'. If printing a scalar, check whether the
3834 value chunk is available.
3835 (val_print_unavailable): New.
3836 (val_print_scalar_formatted): Check whether the value is
3838 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
3839 pretty-printing unavailable values.
3841 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3843 Fix const/volatile qualifiers of C++ types, PR c++/12328.
3844 * c-typeprint.c (c_type_print_args): Update the function comment. New
3845 variable param_type, initialize it. Remove const/volatile qualifiers
3846 for language_cplus and !show_artificial. Use param_type.
3848 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3850 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
3851 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
3852 * symtab.h (struct symtab) <next>: Comment extension.
3854 2011-02-12 Yao Qi <yao@codesourcery.com>
3856 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
3858 2011-02-11 Yao Qi <yao@codesourcery.com>
3860 * common/Makefile.in: Add copyright header.
3862 2011-02-11 Pedro Alves <pedro@codesourcery.com>
3864 * infrun.c (proceed): Move switching out and in of tfind mode from
3866 (fetch_inferior_event): ... to here.
3868 2011-02-11 Yao Qi <yao@codesourcery.com>
3870 * Makefile.in: Remove signals.o from COMMON_OBS. Link
3872 * configure.ac: Add common to sub dir.
3873 * configure: Regenerate.
3875 2011-02-11 Yao Qi <yao@codesourcery.com>
3879 * common/Makefile.in: New.
3880 * common/configure.ac: New.
3881 * common/aclocal.m4: New.
3882 * common/configure: Generate.
3884 2011-02-10 Pedro Alves <pedro@codesourcery.com>
3886 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
3887 side of the parenthesis.
3890 2010-07-13 Jakub Jelinek <jakub@redhat.com>
3891 * vec.h (VEC_block_remove): Fix comment.
3893 2011-02-08 Michael Snyder <msnyder@vmware.com>
3895 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
3897 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3899 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
3900 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
3903 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3906 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
3908 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
3909 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
3911 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
3913 * dwarf2read.c (read_subroutine_type): Set special calling
3914 convention flag for functions compiled by IBM XL C for OpenCL.
3915 * ppc-sysv-tdep.c: Include "dwarf2.h"
3916 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
3918 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
3919 IBM OpenCL vector types calling convention.
3920 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
3921 (ppc_sysv_abi_broken_return_value): Likewise.
3922 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
3923 types calling convention.
3924 (ppc64_sysv_abi_return_value): Likewise.
3925 * spu-tdep.c: Include "dwarf2.h"
3926 (spu_return_value): Implement IBM OpenCL vector types calling
3929 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
3931 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
3932 correct ABI for AltiVec vector arguments.
3934 2011-02-07 Pedro Alves <pedro@codesourcery.com>
3936 * valprint.c (val_print): Extend comment.
3937 * ada-valprint.c (ada_valprint): Rewrite comment deferring
3938 interface explanation to val_print.
3939 (ada_val_print_array): Adjust comment to current interface.
3940 (print_field_values): Adjust comment to current interface.
3941 * c-valprint.c (c_val_print): Rewrite comment deferring interface
3942 explanation to val_print.
3943 * f-valprint.c (f_val_print): Ditto.
3944 * jv-valprint.c (java_val_print): Ditto.
3945 * m2-valprint.c (m2_val_print): Ditto.
3946 * p-valprint.c (pascal_val_print): Ditto.
3948 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
3950 * breakpoint.c (parse_breakpoint_sals): Fix description.
3952 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
3953 Oguz Kayral <oguzkayral@gmail.com>
3955 * python/py-inferior.c (python_on_normal_stop): New function.
3956 (python_on_resume): New function.
3957 (python_inferior_exit): New function.
3958 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
3959 inferior_exit observers.
3960 * python/py-evtregistry.c: New file.
3961 * python/py-threadevent.c : New file.
3962 * python/py-event.c: New file.
3963 * python/py-evts.c: New file.
3964 * python/py-continueevent.c: New file.
3965 * python/py-bpevent.c: New file.
3966 * python/py-signalevent.c: New file.
3967 * python/py-exetiedevent.c: New file.
3968 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
3969 Move struct breakpoint_object from here...
3970 * python/python-internal.h: ... to here.
3971 * python/py-event.h: New file.
3972 * python/py-events.h: New file.
3973 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
3974 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
3975 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
3976 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
3977 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
3978 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
3979 Add build rules for all the above.
3981 2011-02-04 Tom Tromey <tromey@redhat.com>
3983 * dwarf2read.c (dwarf2_section_empty_p): New function.
3984 (dwarf2_read_section): Use dwarf2_section_empty_p.
3985 (dwarf2_section_size): New function.
3986 (dwarf2_get_section_info): Unconditionally read section.
3987 (dwarf2_read_index): Use dwarf2_section_empty_p.
3988 (partial_read_comp_unit_head): Use dwarf2_section_size.
3989 (dwarf2_symbol_mark_computed): Likewise.
3991 2011-02-04 David Daney <ddaney@caviumnetworks.com>
3993 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
3995 2011-02-04 David Daney <ddaney@caviumnetworks.com>
3997 * mips-linux-tdep.c: Include xml-syscall.h.
3998 (mips_linux_get_syscall_number): New function.
3999 (mips_linux_init_abi): Add calls to
4000 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
4001 * data-directory/Makefile.in (SYSCALLS_FILES): Add
4002 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
4003 * syscalls/mips-n32-linux.xml: New file.
4004 * syscalls/mips-n64-linux.xml: New file.
4005 * syscalls/mips-o32-linux.xml: New file.
4007 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4009 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
4010 Complain about inverted range entries.
4011 (dwarf2_record_block_ranges): Likewise.
4013 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4016 * breakpoint.c (update_watchpoint): Fix name of the
4017 update_global_location_list function.
4018 (print_one_breakpoint): Fix typo.
4019 (_initialize_breakpoint): Remove extra space in hbreak help
4021 * breakpoint.h (struct bp_location) <length>: Fix field
4024 2011-02-04 Pedro Alves <pedro@codesourcery.com>
4026 * regcache.c (registers_changed_ptid): Don't explictly always
4027 clear `current_regcache'. Only clear current_thread_ptid and
4028 current_thread_arch when PTID matches. Only reinit the frame
4029 cache if PTID matches the current inferior_ptid. Move alloca(0)
4031 (registers_changed): ... here.
4033 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
4035 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
4036 starts with __stack_chk_guard as stack guard symbol.
4038 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
4040 * disasm.c (compare_lines): Handle the end of sequence markers
4041 within the line table to better support disassembling over
4042 compilation unit boundaries.
4044 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4046 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
4047 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
4048 implementation even if no symbols are available.
4049 (thumb_analyze_prologue): Update call to skip_prologue_function.
4050 (arm_analyze_prologue): Likewise.
4052 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4054 * arm-tdep.c: Include "observer.h".
4055 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
4056 (arm_exidx_data_key): New static variable.
4057 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
4058 (struct arm_exidx_data): Likewise.
4059 (arm_exidx_data_free): New function.
4060 (arm_compare_exidx_entries): Likewise.
4061 (arm_obj_section_from_vma): Likewise.
4062 (arm_exidx_new_objfile): Likewise.
4063 (arm_find_exidx_entry): Likewise.
4064 (arm_exidx_fill_cache): Likewise.
4065 (arm_exidx_unwind_sniffer): Likewise.
4066 (arm_exidx_unwind): New global variable.
4067 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
4068 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
4069 observer. Register arm_exidx_data_key as objfile data.
4071 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4073 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
4074 due to accessing uninitialized variable. Fix indentation.
4076 2011-02-02 Pedro Alves <pedro@codesourcery.com>
4078 * c-valprint.c (c_value_print): When doing virtual base pointer
4079 adjustment, create a new value with adjusted contents rather than
4080 changing the contents of the value being printed (and getting it
4083 2011-02-02 Pedro Alves <pedro@codesourcery.com>
4085 * xml-support.c (xml_find_attribute): New.
4086 (xinclude_start_include): Use it.
4087 * xml-support.h (xml_find_attribute): Declare.
4088 * memory-map.c (memory_map_start_memory)
4089 (memory_map_start_property): Use xml_find_attribute.
4090 * osdata.c (osdata_start_osdata, osdata_start_column): Use
4092 * remote.c (start_thread): Use xml_find_attribute.
4093 * solib-target.c (library_list_start_segment)
4094 (library_list_start_section, library_list_start_library)
4095 (library_list_start_list): Use xml_find_attribute.
4096 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
4097 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
4098 (tdesc_start_field): Use xml_find_attribute.
4100 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
4102 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
4103 (BUILD_OCL_VTYPES): Update.
4105 2011-02-02 Joel Brobecker <brobecker@adacore.com>
4107 * configure.ac: Work around non-GNU sed limitation when computing
4108 python version number.
4109 * configure: Regenerate.
4111 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4113 Fix debug printing of TYPE_INSTANCE.
4114 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
4115 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
4117 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4119 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
4120 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
4121 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
4122 * ada-operator.inc: Rename the file to ...
4123 * ada-operator.def: ... here, wrap all the entries by macro OP.
4124 * expprint.c (op_name_standard): Remove all the entries. Include
4125 "std-operator.def" instead.
4126 * expression.h (enum exp_opcode): Include "std-operator.def" and
4127 "ada-operator.def". Move all the entries ...
4128 * std-operator.def: ... here, wrap all the entries by macro OP.
4130 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
4132 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
4133 * breakpoint.c (remove_jit_event_breakpoints): New function.
4134 * jit.c (jit_descriptor_addr): Delete.
4135 (registering_code): Delete.
4136 (clear_int): Delete.
4137 (jit_inferior_data): New variable.
4138 (struct jit_inferior_data): New type.
4139 (get_jit_inferior_data): New function.
4140 (jit_inferior_data_cleanup): New function.
4141 (jit_read_descriptor): Adjust.
4142 (jit_register_code): Adjust.
4143 (jit_breakpoint_re_set_internal): New function; move code here ...
4144 (jit_inferior_init): ... from here.
4145 (jit_breakpoint_re_set): Adjust.
4146 (jit_reset_inferior_data_and_breakpoints): New function.
4147 (jit_inferior_created_observer): Adjust.
4148 (jit_inferior_exit_hook): Adjust.
4149 (jit_executable_changed_observer): New function.
4150 (jit_event_handler): Adjust.
4151 (_initialize_jit): Adjust.
4153 2011-01-31 Michael Snyder <msnyder@vmware.com>
4155 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
4158 2011-01-31 Tom Tromey <tromey@redhat.com>
4161 * python/python.c (execute_gdb_command): Call
4162 prevent_dont_repeat.
4163 * top.c (suppress_dont_repeat): New global.
4164 (dont_repeat): Use it.
4165 (prevent_dont_repeat): New function.
4166 * command.h (prevent_dont_repeat): Declare.
4168 2011-01-31 Tom Tromey <tromey@redhat.com>
4170 * infcmd.c (finish_backward): Use breakpoint_set_silent.
4171 * python/py-breakpoint.c (bppy_set_silent): Use
4172 breakpoint_set_silent.
4173 (bppy_set_thread): Use breakpoint_set_thread.
4174 (bppy_set_task): Use breakpoint_set_task.
4175 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
4176 (breakpoint_set_task): Declare.
4177 (make_breakpoint_silent): Remove.
4178 * breakpoint.c (breakpoint_set_silent): New function.
4179 (breakpoint_set_thread): Likewise.
4180 (breakpoint_set_task): Likewise.
4181 (make_breakpoint_silent): Remove.
4183 2011-01-31 Tom Tromey <tromey@redhat.com>
4185 * breakpoint.h (user_breakpoint_p): Declare.
4186 * breakpoint.c (user_breakpoint_p): New function.
4187 (breakpoint_1): Use it.
4188 (save_breakpoints): Likewise.
4190 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4192 * configure.ac: Add handling of Python distribution on Windows.
4193 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
4194 sysconfig variables are not defined, then do not use them.
4195 On Windows, if LIBPL is not defined, then use prefix + '/libs'
4196 instead. On Windows, return all paths using forward-slashes
4197 rather than backslashes.
4199 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4201 * configure.ac: Remove fallback behavior for building
4202 against Python. Remove tweaking of Python include path.
4203 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
4204 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
4205 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
4206 Always restore CPPFLAGS and LIBS after linking test.
4207 * configure: Regenerated.
4208 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
4209 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
4210 * python/python-internal.h: Adjust includes of Python .h files.
4212 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4214 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
4217 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4219 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
4222 2011-01-31 Yao Qi <yao@codesourcery.com>
4224 * arm-linux-nat.c: Update calls to regcache_register_status
4225 instead of regcache_valid_p.
4226 * aix-thread.c: Likewise.
4227 * i386gnu-nat.c: Likewise.
4229 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4232 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
4233 touching TYPE_FIELD_ARTIFICIAL.
4235 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
4237 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
4240 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4242 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
4243 selected, don't try iterating over the traceframe's blocks.
4244 (tfile_has_stack): If there's no traceframe selected, then there's
4246 (tfile_has_registers): If there's no traceframe selected, then
4247 there's no registers.
4249 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4251 * target.c (memory_xfer_partial): No need to restore shadows if we
4252 haven't read anything.
4254 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4256 * mips-tdep.c (mips_print_register): Use get_frame_register_value
4257 and val_print_scalar_formatted.
4259 2011-01-27 Pedro Alves <pedro@codesourcery.com>
4261 * tracepoint.c (tfile_read): New.
4262 (tfile_open): Use it.
4263 (tfile_get_traceframe_address): Use it.
4264 (tfile_trace_find): Use it.
4265 (walk_blocks_callback_func): New typedef.
4266 (match_blocktype): New function.
4267 (traceframe_walk_blocks): New function.
4268 (traceframe_find_block_type): New function.
4269 (tfile_fetch_registers, tfile_xfer_partial)
4270 (tfile_get_trace_state_variable_value): Use
4271 traceframe_find_block_type and tfile_read.
4273 2011-01-26 Kevin Buettner <kevinb@redhat.com>
4275 * remote-mips.c: Add internationalization mark ups. Remove
4276 trailing \n from already marked up strings.
4278 2011-01-26 Tom Tromey <tromey@redhat.com>
4280 * python/py-prettyprint.c (print_string_repr): Clear
4281 'addressprint' option when calling val_print_string.
4282 (print_children): Handle Val_pretty_default. Clear 'addressprint'
4283 option when calling val_print_string.
4285 2011-01-26 Tom Tromey <tromey@redhat.com>
4287 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
4289 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
4291 (gdb_py_longest, gdb_py_ulongest): New typedefs.
4292 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
4293 (gdb_py_long_as_ulongest): New defines.
4294 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
4295 (gdb_py_int_as_long): Declare.
4296 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
4297 GDB_PY_LL_ARG, gdb_py_object_from_longest.
4298 (valpy_long): Add comment.
4299 * python/py-utils.c (get_addr_from_python): Use
4300 gdb_py_long_as_ulongest. Handle overflow properly.
4301 (gdb_py_object_from_longest): New function.
4302 (gdb_py_object_from_ulongest): Likewise.
4303 (gdb_py_int_as_long): Likewise.
4304 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
4305 * python/py-symtab.c (salpy_get_pc): Use
4306 gdb_py_long_from_ulongest.
4307 (salpy_get_line): Use PyInt_FromLong.
4308 * python/py-param.c (set_parameter_value): Use
4310 * python/py-lazy-string.c (stpy_get_address): Use
4311 gdb_py_long_from_ulongest.
4312 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
4313 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
4314 * python/py-breakpoint.c (bppy_set_thread): Use
4316 (bppy_set_task): Likewise.
4317 (bppy_set_ignore_count): Likewise.
4318 (bppy_set_hit_count): Likewise.
4319 * python/py-block.c (blpy_get_start): Use
4320 gdb_py_object_from_ulongest.
4321 (blpy_get_end): Likewise.
4322 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
4324 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
4327 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
4328 * gdb/solib.c (solib_read_symbols): Check for addr_low in
4329 equality test for objfile, initialize addr_low if needed.
4331 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4333 * tui/tui-regs.c (tui_register_format): Remove dead code.
4335 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4337 * printcmd.c (print_formatted): Use val_print_scalar_formatted
4338 instead of print_scalar_formatted.
4339 (print_scalar_formatted): Don't handle 's' format strings here,
4340 and add an assertion that we never see such format here.
4341 * valprint.h (val_print_scalar_formatted): Declare.
4342 * valprint.c (val_print_scalar_formatted): New.
4343 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
4344 instead of print_scalar_formatted.
4345 * jv-valprint.c (java_val_print): Ditto.
4346 * p-valprint.c (pascal_val_print): Ditto.
4347 * ada-valprint.c (ada_val_print_1): Ditto.
4348 * f-valprint.c (f_val_print): Ditto.
4349 * infcmd.c (registers_info): Ditto.
4350 * m2-valprint.c (m2_val_print): Ditto.
4352 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4354 * m2-valprint.c (print_unbounded_array): Pass
4355 value_contents_for_printing rather than value_contents, to
4356 m2_print_array_contents. Also pass in the value.
4358 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4360 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
4361 (save_gdb_index_command): Switch to .gdb_index version 4.
4363 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4365 * mi/mi-main.c (get_register): Use get_frame_register_value rather
4366 than frame_register, and always pass a valid value to val_print.
4368 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4370 Centralize printing "<optimized out>".
4372 * valprint.h (val_print_optimized_out): Declare.
4373 * cp-valprint.c (cp_print_value_fields): Use
4374 val_print_optimized_out.
4375 * jv-valprint.c (java_print_value_fields): Ditto.
4376 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4377 * printcmd.c (print_formatted): Ditto.
4378 * valprint.c (valprint_check_validity): Ditto.
4379 (value_check_printable): Ditto.
4380 (val_print_optimized_out): New.
4382 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4384 * infcmd.c (default_print_registers_info): Allocate values so to
4385 never pass a NULL value to val_print.
4387 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4389 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
4390 boolean. Make sure to always pass a value that matches the
4391 contents buffer to callees. Preserve `address' for following
4393 * value.c (value_contents_for_printing_const): New.
4394 (value_address): Constify value argument.
4395 * value.h (value_contents_for_printing_const): Declare.
4396 (value_address): Constify value argument.
4398 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4400 * regcache.c (struct regcache_descr): Rename
4401 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
4402 and sizeof_cooked_register_valid_p to
4403 sizeof_cooked_register_status.
4404 (init_regcache_descr): Adjust.
4405 (struct regcache): Rename register_valid_p field to
4407 (regcache_xmalloc_1, regcache_xfree, regcache_save)
4408 (do_cooked_read): Adjust.
4409 (regcache_valid_p): Rename to ...
4410 (regcache_register_status): ... this. Adjust.
4411 (regcache_invalidate): Adjust.
4412 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
4414 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
4415 as unavailable, not valid.
4416 (regcache_dump): Adjust.
4417 * regcache.h (enum register_status): New.
4418 (regcache_register_status): Declare.
4419 (regcache_invalidate): Delete declaration.
4420 * corelow.c (get_core_registers): Adjust.
4421 * tracepoint.c (tfile_fetch_registers): Adjust.
4422 * trad-frame.c (REG_VALUE): Rename to ...
4423 (TF_REG_VALUE): ... this.
4424 (REG_UNKNOWN): Rename to ...
4425 (TF_REG_UNKNOWN): ... this.
4426 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
4427 * mi/mi-main.c (register_changed_p): Adjust.
4429 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4431 * regcache.c (struct regcache_descr): Remove outdated comment.
4432 (init_regcache_descr): Remove sizeof_raw_register_valid_p
4434 (regcache_xmalloc): Rename to ...
4435 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
4436 Allocate the regcache type accordingly.
4437 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
4438 (regcache_xfree): Asser the source is also readonly. Copy sizeof
4439 cooked registers, not raw.
4440 (regcache_dup_no_passthrough): Delete.
4441 (get_thread_arch_regcache): Use regcache_xmalloc_1.
4442 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
4443 mention obsolete write_register_bytes.
4444 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
4446 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4448 Stop remote_read_bytes from handling partial reads itself.
4450 * remote-fileio.c: Include target.h.
4451 (remote_fileio_write_bytes): Delete.
4452 (remote_fileio_func_open, remote_fileio_func_write)
4453 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
4455 (remote_fileio_func_stat): Use target_read_memory and
4456 target_write_memory.
4457 (remote_fileio_func_gettimeofday): Use target_write_memory.
4458 (remote_fileio_func_system): Use target_read_memory.
4459 * remote.c (remote_write_bytes): Make it static.
4460 (remote_read_bytes): Don't handle partial reads here.
4461 * remote.h (remote_read_bytes): Delete declaration.
4463 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4465 Simplify XML parsing a bit.
4467 * xml-support.h (gdb_xml_parse_quick): Declare.
4468 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
4469 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
4471 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
4472 gdb_xml_create_parser_and_cleanup_1.
4473 (gdb_xml_parse_quick): New.
4474 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
4475 * osdata.c (osdata_parse): Ditto.
4476 * remote.c (remote_threads_info): Ditto.
4477 * solib-target.c (solib_target_parse_libraries): Ditto.
4478 * xml-syscall.c (syscall_parse_xml): Ditto.
4479 * xml-tdesc.c (tdesc_parse_xml): Ditto.
4481 2011-01-24 Kevin Buettner <kevinb@redhat.com>
4483 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
4484 with remote-mips.o added to gdb_target_obs.
4485 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
4487 2011-01-24 Pedro Alves <pedro@codesourcery.com>
4489 * ada-valprint.c (val_print_packed_array_elements): Pass the
4490 correct struct value to val_print.
4491 (ada_val_print_1): Ditto.
4493 2011-01-24 Pedro Alves <pedro@codesourcery.com>
4495 Don't lose embedded_offset in printing routines throughout.
4497 * valprint.h (val_print_array_elements): Change prototype.
4498 * valprint.c (val_print_array_elements): Add `embedded_offset'
4499 parameter, and adjust to pass it down to val_print, while passing
4500 `valaddr' or `address' unmodified. Take embedded_offset into
4501 account when checking repetitions.
4502 * c-valprint.c (c_val_print): Pass embedded_offset to
4503 val_print_array_elements instead of adjusting `valaddr' and
4505 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
4506 embedded_offset to val_print_array_elements instead of adjusting
4508 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
4509 * p-valprint.c (pascal_val_print): Pass embedded_offset to
4510 val_print_array_elements and pascal_object_print_value_fields
4511 instead of adjusting `valaddr'.
4512 (pascal_object_print_value_fields): Add `offset' parameter, and
4514 (pascal_object_print_value): Add `offset' parameter, and adjust to
4516 (pascal_object_print_static_field): Use
4517 value_contents_for_printing/value_embedded_offset, rather than
4519 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
4520 parameter, and adjust to use it. Use
4521 value_contents_for_printing/value_embedded_offset, rather than
4523 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
4524 (ada_val_print_array): Add `offset' parameter, and adjust to use
4526 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
4527 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
4528 Instead work with offsets. Use
4529 value_contents_for_printing/value_embedded_offset, rather than
4530 value_contents. Change `defer_val_int' local type to CORE_ADDR,
4531 and use value_from_pointer to extract a target pointer, rather
4532 than value_from_longest.
4533 (print_variant_part): Add `offset' parameter. Replace
4534 `outer_valaddr' parameter by a new `outer_offset' parameter.
4535 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4536 (ada_value_print): Use
4537 value_contents_for_printing/value_embedded_offset, rather than
4539 (print_record): Add `offset' parameter, and adjust to pass it
4541 (print_field_values): Add `offset' parameter. Replace
4542 `outer_valaddr' parameter by a new `outer_offset' parameter.
4543 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4544 Use value_contents_for_printing/value_embedded_offset, rather than
4546 * d-valprint.c (dynamic_array_type): Use
4547 value_contents_for_printing/value_embedded_offset, rather than
4549 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
4550 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4551 (java_print_value_fields): Take `offset' into account. Don't
4552 re-adjust `valaddr'. Instead pass down adjusted offsets.
4553 (java_val_print): Take `embedded_offset' into account. Pass it to
4554 java_print_value_fields.
4555 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
4556 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
4557 down adjusted offsets.
4558 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
4559 (f_val_print): Take `embedded_offset' into account.
4561 2011-01-21 Joel Brobecker <brobecker@adacore.com>
4563 * inflow.c: Include "gdbcmd.h".
4564 (interactive_mode): New static global, moved here from top.c.
4565 (show_interactive_mode): New function, moved here from top.c.
4566 use gdb_has_a_terminal instead of input_from_terminal_p to
4567 determine the current mode.
4568 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
4570 (_initialize_inflow): Add the "set/show interactive-mode"
4571 commands. Moved here from top.c, after having adjusted slightly
4573 * top.c (interactive_mode, show_interactive_mode): Delete, moved
4575 (input_from_terminal_p): Remove handling of "interactive-mode"
4576 setting, moved to infow.c.
4577 (init_main): Remove creation of the "set/show interactive-mode"
4578 commands, moved to inflow.c.
4580 2011-01-19 Joel Brobecker <brobecker@adacore.com>
4582 * NEWS: Add entry for native ia64-hpux support.
4584 2011-01-19 Tom Tromey <tromey@redhat.com>
4587 * thread.c (free_thread): Free 'name'.
4588 (print_thread_info): Emit thread name. Change CLI output.
4589 (thread_name_command): New function.
4590 (do_captured_thread_select): Emit newline.
4591 (_initialize_thread): Register 'thread name' command.
4592 * target.h (struct target_ops) <to_thread_name>: New field.
4593 (target_thread_name): New macro.
4594 * target.c (update_current_target): Handle to_thread_name.
4595 * python/py-infthread.c (thpy_get_name): New function.
4596 (thpy_set_name): Likewise.
4597 (thread_object_getset): Add "name".
4598 * linux-nat.c (linux_nat_thread_name): New function.
4599 (linux_nat_add_target): Set to_thread_name.
4600 * gdbthread.h (struct thread_info) <name>: New field.
4602 2011-01-18 Joel Brobecker <brobecker@adacore.com>
4604 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
4605 (ada_val_print_1): Likewise.
4607 2011-01-18 Joel Brobecker <brobecker@adacore.com>
4609 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
4610 upper limit address is not greater than the function end address
4611 when the upper limit could not be computed using the debugging
4614 2011-01-17 Tom Tromey <tromey@redhat.com>
4616 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
4618 * utils.c: Include gdb_regex.h.
4619 (do_regfree_cleanup): New function.
4620 (make_regfree_cleanup): Likewise.
4621 (get_regcomp_error): Likewise.
4622 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
4624 2011-01-17 Tom Tromey <tromey@redhat.com>
4626 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
4629 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
4631 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
4632 for internal variables.
4633 (last_was_structop): New static variable.
4634 (COMPLETE): New token.
4635 (field_exp): New rule to group all '.' suffix handling.
4636 Add mark_struct_expression calls when approriate to be able
4637 to correctly find fields for completion.
4638 (yylex): Adapt to handle field completion and set INTVAR when
4641 2011-01-14 Yao Qi <yao@codesourcery.com>
4643 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
4644 save_reggroup, restore_reggroup and all_reggroup.
4646 2011-01-14 Joel Brobecker <brobecker@adacore.com>
4648 * ada-valprint. (ada_printchar): Use the correct type length
4649 in call to ada_emit_char.
4650 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
4652 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
4654 * solib-som.h (hpux_major_release): Declare variable here.
4655 * solib-som.c: Remove <sys/utsname.h> header.
4656 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
4657 (hpux_major_release): Make global, change default value to
4658 DEFAULT_HPUX_MAJOR_RELEASE.
4659 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
4660 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
4661 Add "solib-som.h" header.
4662 (set_hpux_major_release): New function.
4663 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
4665 2011-01-14 Mike Frysinger <vapier@gentoo.org>
4667 * configure.tgt (*-*-uclinux*): Match more Linux os targets
4669 2011-01-14 Joel Brobecker <brobecker@adacore.com>
4671 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
4672 new-line at end of warning message.
4673 (ia64_hpux_store_register): Remove trailing new-line at end of
4675 * ia64-hpux-tdep.c: Rephrase comment.
4676 * solib-ia64-hpux.c (struct dld_info): Change type of field
4677 dld_flags from "long long" to ULONGEST.
4679 2011-01-14 Pedro Alves <pedro@codesourcery.com>
4681 * target.h (deprecated_child_ops): Delete declaration.
4682 * target.c (deprecated_child_ops): Delete definition.
4684 2011-01-14 Pedro Alves <pedro@codesourcery.com>
4686 * Makefile.in (hpux-thread.o): Delete rule.
4687 * configure.ac: Don't check for HPUX DCE threads support.
4688 * configure, config.in: Regenerate.
4689 * hppa-hpux-nat.c (child_suppress_run): Delete.
4690 (hppa_hpux_child_can_run): Delete.
4691 (_initialize_hppa_hpux_nat): Don't override to_can_run.
4692 * hpux-thread.c: Delete.
4694 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4696 * hpux-thread.c (hpux_pid_to_str): Delete.
4698 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4700 * ada-valprint.c (ada_emit_char): Remove strange code.
4701 Check that c is <= UCHAR_MAX before passing it to isascii.
4702 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
4704 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4706 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
4707 to the case where instream is stdin.
4709 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4711 * ia64-tdep.h (struct regcache): Forward declare.
4712 (struct ia64_infcall_ops): New struct type.
4713 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
4715 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
4716 Renames ia64_find_global_pointer.
4717 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
4718 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
4719 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
4721 (ia64_infcall_ops): New static global constant.
4722 (ia64_gdbarch_init): Set tdep->infcall_ops.
4723 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
4724 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
4725 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
4726 (ia64_hpux_dummy_code): New static global constant.
4727 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
4728 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
4729 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
4731 (ia64_hpux_infcall_ops): New static global constant.
4732 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
4733 for inferior function calls to work properly on ia64-hpux.
4735 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4737 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
4738 * ia64-tdep.h (struct frame_info): forward declaration.
4739 (struct gdbarch_tdep): Add field size_of_register_frame.
4740 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
4741 to determine the size of the register frame.
4742 (ia64_size_of_register_frame): New function.
4743 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
4744 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
4745 (IA64_HPUX_UREG_REASON): New macro.
4746 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
4748 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
4749 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
4750 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
4753 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4755 Add support for ia64-hpux.
4756 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
4757 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
4759 * configure.host: Add handling for ia64-hpux hosts. Add associated
4761 * configure.tgt: Add handling for ia64-hpux targets.
4762 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
4763 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
4764 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
4766 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4768 [ttrace] Compute thread list immediately after attach.
4769 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
4771 (inf_ttrace_attach): Use it.
4773 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4775 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
4776 if we could not determine the frame's function address. Instead,
4777 use the frame's PC, and then continue.
4779 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4781 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
4782 not already defined.
4784 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4786 * ia64-tdep.c (ia64_struct_type_p): New function.
4787 (ia64_extract_return_value): Handle integral values that are
4788 less than 8 bytes long.
4789 (ia64_push_dummy_call): Likewise.
4791 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4793 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
4794 floatformat_ia64_ext.
4795 (floatformat_ia64_ext_big): New static const.
4796 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
4798 2011-01-12 Tom Tromey <tromey@redhat.com>
4800 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
4802 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
4803 (mi_cmd_thread_list_ids): Likewise.
4804 (mi_cmd_data_list_changed_registers): Likewise.
4805 (mi_cmd_data_list_register_values): Likewise.
4806 (mi_cmd_data_write_register_values): Likewise.
4807 (mi_cmd_data_evaluate_expression): Likewise.
4808 (mi_cmd_data_read_memory): Likewise.
4809 (mi_cmd_data_read_memory_bytes): Likewise.
4810 (mi_cmd_data_write_memory): Likewise.
4811 (mi_cmd_enable_timings): Likewise.
4812 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
4813 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
4814 (mi_cmd_var_delete): Likewise.
4815 (mi_cmd_var_set_format): Likewise.
4816 (mi_cmd_var_show_format): Likewise.
4817 (mi_cmd_var_info_num_children): Likewise.
4818 (mi_cmd_var_list_children): Likewise.
4819 (mi_cmd_var_info_type): Likewise.
4820 (mi_cmd_var_info_expression): Likewise.
4821 (mi_cmd_var_show_attributes): Likewise.
4822 (mi_cmd_var_assign): Likewise.
4823 (mi_cmd_var_update): Likewise.
4824 (mi_cmd_enable_pretty_printing): Likewise.
4825 (mi_cmd_var_set_update_range): Likewise.
4826 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
4828 (mi_cmd_target_file_put): Likewise.
4829 (mi_cmd_target_file_delete): Likewise.
4830 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
4832 (mi_cmd_stack_info_depth): Likewise.
4833 (mi_cmd_stack_list_locals): Likewise.
4834 (mi_cmd_stack_list_args): Likewise.
4835 (mi_cmd_stack_select_frame): Likewise.
4836 (mi_cmd_stack_select_frame): Likewise.
4837 (mi_cmd_stack_info_frame): Likewise.
4838 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
4840 (mi_cmd_file_list_exec_source_files): Likewise.
4841 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
4842 (mi_cmd_env_cd): Likewise.
4843 (mi_cmd_env_path): Likewise.
4844 (mi_cmd_env_dir): Likewise.
4845 (mi_cmd_inferior_tty_show): Likewise.
4846 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
4847 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
4848 (mi_cmd_break_watch): Likewise.
4850 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
4852 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
4853 (ppc_linux_insert_hw_breakpoint): Likewise.
4854 (ppc_linux_remove_hw_breakpoint): Likewise.
4855 (ppc_linux_insert_watchpoint): Likewise.
4857 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
4858 Jan Kratochvil <jan.kratochvil@redhat.com>
4860 PR fortran/11104 and DWARF unbound arrays detection.
4861 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
4862 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
4863 unspecified upper bound.
4864 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
4865 variables array_size_array, tmp_type and offset_item. New variable
4866 array. Remove call to f77_get_upperbound. New variables array_type
4867 and index. Call value_subscripted_rvalue for each dimenasion. Remove
4868 the final call to deprecated_set_value_type.
4870 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4872 Make value allocations more lazy.
4873 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
4874 instead of allocate_value and set_value_lazy when possible.
4875 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
4876 instead of allocate_value and set_value_lazy.
4877 * findvar.c (value_of_register_lazy): Likewise.
4878 (read_var_value): Remove V preallocation, call just check_typedef in
4879 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
4880 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
4881 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
4882 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
4883 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
4884 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
4885 the end, remove set_value_lazy there.
4886 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
4887 instead of allocate_value and set_value_lazy when possible.
4888 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
4889 * value.c (allocate_computed_value): Use allocate_value_lazy instead
4890 of allocate_value and set_value_lazy.
4891 (value_from_contents_and_address): Use allocate_value_lazy instead of
4892 allocate_value and set_value_lazy when possible.
4894 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
4896 * disasm.c (dump_insns): Support dumping opcodes for MI.
4897 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
4898 dumping of instruction opcodes.
4900 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
4902 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
4905 2011-01-11 Tom Tromey <tromey@redhat.com>
4907 * thread.c (do_captured_thread_select): Emit newline before
4910 2011-01-11 Michael Snyder <msnyder@vmware.com>
4912 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
4913 * score-tdep.c: Ditto.
4914 * score-tdep.h: Ditto.
4915 * ser-base.c: Ditto.
4916 * ser-go32.c: Ditto.
4919 * ser-mingw.c: Ditto.
4920 * ser-pipe.c: Ditto.
4922 * ser-unix.c: Ditto.
4923 * sh64-tdep.c: Ditto.
4924 * shnbsd-nat.c: Ditto.
4928 * solib-darwin.c: Ditto.
4929 * solib-frv.c: Ditto.
4931 * solib-irix.c: Ditto.
4932 * solib-osf.c: Ditto.
4933 * solib-pa64.c: Ditto.
4934 * solib-som.c: Ditto.
4935 * solib-spu.c: Ditto.
4936 * solib-sunos.c: Ditto.
4937 * solib-svr4.c: Ditto.
4939 * sol-thread.c: Ditto.
4943 * sparc64-linux-tdep.c: Ditto.
4944 * sparc64-tdep.c: Ditto.
4945 * sparc-linux-nat.c: Ditto.
4946 * sparc-linux-tdep.c: Ditto.
4947 * sparc-sol2-nat.c: Ditto.
4948 * sparc-sol2-tdep.c: Ditto.
4949 * sparc-tdep.c: Ditto.
4950 * sparc-tdep.h: Ditto.
4951 * spu-tdep.c: Ditto.
4952 * stabsread.c: Ditto.
4953 * stabsread.h: Ditto.
4961 * target-descriptions.c: Ditto.
4962 * target-descriptions.h: Ditto.
4964 * target-memory.c: Ditto.
4965 * terminal.h: Ditto.
4968 * tracepoint.c: Ditto.
4969 * tracepoint.h: Ditto.
4970 * trad-frame.h: Ditto.
4971 * typeprint.c: Ditto.
4973 2011-01-11 Michael Snyder <msnyder@vmware.com>
4975 * ui-file.c: Comment cleanup, mostly periods and spaces.
4980 * v850-tdep.c: Ditto.
4981 * valarith.c: Ditto.
4983 * valprint.c: Ditto.
4984 * valprint.h: Ditto.
4989 * vax-tdep.c: Ditto.
4993 * windows-nat.c: Ditto.
4994 * windows-tdep.c: Ditto.
4995 * xcoffread.c: Ditto.
4996 * xcoffsolib.c: Ditto.
4997 * xml-support.c: Ditto.
4998 * xstormy16-tdep.c: Ditto.
4999 * xtensa-tdep.c: Ditto.
5000 * xtensa-tdep.h: Ditto.
5002 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5004 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
5005 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
5007 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5008 Thiago Jung Bauermann <bauerman@br.ibm.com>
5010 Implement support for PowerPC BookE ranged watchpoints.
5012 (struct breakpoint_ops) <resources_needed>: New method.
5013 Initialize to NULL in all existing breakpoint_ops instances.
5014 (struct breakpoint) <exact>: New field.
5015 (target_exact_watchpoints): Declare external global.
5016 * breakpoint.c (target_exact_watchpoints): New global flag.
5017 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
5018 b->enable_state to bp_enabled before calling
5019 hw_watchpoint_used_count.
5020 (hw_watchpoint_used_count): Iterate over all bp_locations in a
5021 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
5023 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
5024 if the watchpoint is exact.
5025 (resources_needed_watchpoint): New function.
5026 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
5027 (watch_command_1): Set b->exact if the user asked for an exact
5028 watchpoint and one can be set.
5029 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
5030 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
5031 the user asks for an exact watchpoint and one can be set. Return
5032 number of needed debug registers to watch the expression.
5033 * gdbtypes.c (is_scalar_type): New function, based on
5034 valprint.c:scalar_type_p.
5035 (is_scalar_type_recursive): New function.
5036 * gdbtypes.h (is_scalar_type_recursive): Declare.
5037 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
5038 handle regions when ranged watchpoints are available.
5039 (create_watchpoint_request): New function.
5040 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
5041 create_watchpoint_request.
5042 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
5043 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
5044 `set powerpc' and `show powerpc' commands.
5045 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5046 Mention documentation comment in the target macro.
5047 (target_region_ok_for_hw_watchpoint): Document return value.
5049 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5051 * breakpoint.c (update_watchpoint): Decide on using a software or
5052 hardware watchpoint after the bp_locations are created.
5054 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5056 Convert hardware watchpoints to use breakpoint_ops.
5057 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
5058 <insert_location>: ... this. Return int instead of void.
5059 Accept pointer to struct bp_location instead of pointer to
5060 struct breakpoint. Adapt all implementations.
5061 (breakpoint_ops) <remove>: Rename to...
5062 <remove_location>: ... this. Accept pointer to struct bp_location
5063 instead of pointer to struct breakpoint. Adapt all implementations.
5064 * breakpoint.c (insert_catchpoint): Delete function.
5065 (insert_bp_location): Call the watchpoint or catchpoint's
5066 breakpoint_ops.insert method.
5067 (remove_breakpoint_1): Call the watchpoint or catchpoint's
5068 breakpoint_ops.remove method.
5069 (insert_watchpoint, remove_watchpoint): New functions.
5070 (watchpoint_breakpoint_ops): New structure.
5071 (watch_command_1): Initialize the OPS field.
5072 * inf-child.c (inf_child_insert_fork_catchpoint)
5073 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
5074 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
5075 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
5077 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
5078 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
5079 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
5080 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
5081 * target.c (update_current_target): Change default implementation of
5082 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
5083 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
5084 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
5085 to_set_syscall_catchpoint to return_one.
5086 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
5087 (debug_to_insert_exec_catchpoint): Report return value.
5088 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
5089 (to_insert_exec_catchpoint): Change declaration to return int instead
5092 2011-01-11 Michael Snyder <msnyder@vmware.com>
5094 * arm-tdep.c: Internationalization.
5097 * fork-child.c: Ditto.
5098 * nto-procfs.c: Ditto.
5099 * ppc-sysv-tdep.c: Ditto.
5101 * remote-mips.c: Ditto.
5103 * rs6000-nat.c: Ditto.
5104 * rs6000-tdep.c: Ditto.
5108 * xml-support.c: Ditto.
5109 * mi/mi-cmd-break.c: Ditto.
5110 * mi/mi-cmd-var.c: Ditto.
5111 * mi/mi-interp.c: Ditto.
5112 * mi/mi-main.c: Ditto.
5114 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
5116 * remote-sim.c (gdbsim_store_register): Update API to
5117 sim_store_register to check more error conditions.
5119 2011-01-10 Michael Snyder <msnyder@vmware.com>
5121 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
5122 * nto-tdep.c: Ditto.
5123 * nto-tdep.h: Ditto.
5124 * objc-exp.y: Ditto.
5125 * objc-lang.c: Ditto.
5126 * objfiles.c: Ditto.
5127 * objfiles.h: Ditto.
5128 * observer.c: Ditto.
5129 * opencl-lang.c: Ditto.
5132 * parser-defs.h: Ditto.
5135 * posix-hdep.c: Ditto.
5136 * ppcbug-rom.c: Ditto.
5137 * ppc-linux-nat.c: Ditto.
5138 * ppc-linux-tdep.c: Ditto.
5139 * ppc-linux-tdep.h: Ditto.
5140 * ppcnbsd-tdep.c: Ditto.
5141 * ppcobsd-tdep.c: Ditto.
5142 * ppcobsd-tdep.h: Ditto.
5143 * ppc-sysv-tdep.c: Ditto.
5144 * ppc-tdep.h: Ditto.
5145 * printcmd.c: Ditto.
5146 * proc-abi.c: Ditto.
5147 * proc-flags.c: Ditto.
5149 * proc-utils.h: Ditto.
5150 * progspace.h: Ditto.
5151 * prologue-value.c: Ditto.
5152 * prologue-value.h: Ditto.
5153 * psympriv.h: Ditto.
5155 * p-typeprint.c: Ditto.
5156 * p-valprint.c: Ditto.
5157 * ravenscar-sparc-thread.c: Ditto.
5158 * ravenscar-thread.c: Ditto.
5159 * ravenscar-thread.h: Ditto.
5161 * regcache.c: Ditto.
5162 * regcache.h: Ditto.
5164 * remote-fileio.c: Ditto.
5165 * remote-fileio.h: Ditto.
5167 * remote-m32r-sdi.c: Ditto.
5168 * remote-mips.c: Ditto.
5169 * remote-sim.c: Ditto.
5170 * rs6000-aix-tdep.c: Ditto.
5171 * rs6000-nat.c: Ditto.
5172 * rs6000-tdep.c: Ditto.
5174 2011-01-10 Michael Snyder <msnyder@vmware.com>
5176 * charset.c (validate): Internationalization.
5177 * coffread.c (read_one_sym): Ditto.
5178 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
5179 * h8300-tdep.c (H8300_extract_return_value): Ditto.
5180 * inflow.c (new_tty): Ditto.
5181 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
5182 * m32c-tdep.c (m32c_return_value): Ditto.
5183 * mep-tdep.c (mep_store_return_value): Ditto.
5184 * score-tdep.c (score7_fetch_insn): Ditto.
5185 * ser-mingw.c (pipe_windows_open): Ditto.
5186 * sh64-tdep.c (sh64_extract_return_value): Ditto.
5187 * spu-tdep.c (spu_register_type): Ditto.
5188 * tracepoint.c (trace_find_command): Ditto.
5189 * valarith.c (value_pos): Ditto.
5191 2011-01-10 Joel Brobecker <brobecker@adacore.com>
5193 * ada-valprint.c (printstr): Minor comment reformatting.
5195 2011-01-08 Michael Snyder <msnyder@vmware.com>
5197 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
5200 2011-01-08 Michael Snyder <msnyder@vmware.com>
5202 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
5203 * hppa-hpux-tdep.c: Ditto.
5204 * hppa-linux-nat.c: Ditto.
5205 * hppa-linux-tdep.c: Ditto.
5206 * hppanbsd-tdep.c: Ditto.
5207 * hppa-tdep.c: Ditto.
5208 * hppa-tdep.h: Ditto.
5209 * hpux-thread.c: Ditto.
5210 * i386-cygwin-tdep.c: Ditto.
5211 * i386-darwin-nat.c: Ditto.
5212 * i386gnu-nat.c: Ditto.
5213 * i386-linux-nat.c: Ditto.
5214 * i386-linux-tdep.c: Ditto.
5215 * i386-nat.c: Ditto.
5216 * i386-nat.h: Ditto.
5217 * i386nbsd-tdep.c: Ditto.
5218 * i386-sol2-nat.c: Ditto.
5219 * i386-stub.c: Ditto.
5220 * i386-tdep.c: Ditto.
5221 * i386-tdep.h: Ditto.
5222 * i387-tdep.c: Ditto.
5223 * ia64-linux-nat.c: Ditto.
5224 * ia64-linux-tdep.c: Ditto.
5225 * ia64-tdep.c: Ditto.
5229 * inferior.c: Ditto.
5230 * inferior.h: Ditto.
5236 * iq2000-tdep.c: Ditto.
5237 * irix5-nat.c: Ditto.
5243 * jv-typeprint.c: Ditto.
5244 * jv-valprint.c: Ditto.
5245 * language.c: Ditto.
5246 * language.h: Ditto.
5247 * linespec.c: Ditto.
5248 * linux-fork.c: Ditto.
5249 * linux-nat.c: Ditto.
5250 * linux-thread-db.c: Ditto.
5251 * lm32-tdep.c: Ditto.
5253 2011-01-08 Michael Snyder <msnyder@vmware.com>
5255 * m2-exp.y: Comment cleanup, mostly periods and spaces.
5257 * m2-typeprint.c: Ditto.
5258 * m2-valprint.c: Ditto.
5259 * m32c-tdep.c: Ditto.
5260 * m32r-linux-nat.c: Ditto.
5261 * m32r-rom.c: Ditto.
5262 * m32r-tdep.c: Ditto.
5263 * m32r-tdep.h: Ditto.
5264 * m68hc11-tdep.c: Ditto.
5265 * m58klinux-nat.c: Ditto.
5266 * m68k-tdep.c: Ditto.
5267 * m88k-tdep.c: Ditto.
5268 * m88k-tdep.h: Ditto.
5269 * machoread.c: Ditto.
5270 * macrocmd.c: Ditto.
5271 * macroexp.c: Ditto.
5272 * macrotab.c: Ditto.
5275 * mdebugread.c: Ditto.
5276 * mdebugread.h: Ditto.
5279 * memory-map.h: Ditto.
5280 * mep-tdep.c: Ditto.
5281 * microblaze-rom.c: Ditto.
5282 * microblaze-tdep.c: Ditto.
5284 * mips-irix-tdep.c: Ditto.
5285 * mips-linux-nat.c: Ditto.
5286 * mips-linux-tdep.c: Ditto.
5287 * mips-linux-tdep.h: Ditto.
5288 * mipsnbsd-nat.c: Ditto.
5289 * mipsnbsd-tdep.c: Ditto.
5290 * mipsread.c: Ditto.
5291 * mips-tdep.c: Ditto.
5292 * mips-tdep.h: Ditto.
5293 * mn10300-linux-tdep.c: Ditto.
5294 * mn10300-tdep.c: Ditto.
5295 * mn10300-tdep.h: Ditto.
5298 * moxie-tdep.c: Ditto.
5299 * moxie-tdep.h: Ditto.
5302 2011-01-08 Mike Frysinger <vapier@gentoo.org>
5304 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
5306 2011-01-08 Robert Millan <rmh@gnu.org>
5308 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
5310 2011-01-07 Michael Snyder <msnyder@vmware.com>
5312 * charset.c (_initialize_charset): Fix typo in string.
5314 2011-01-07 Michael Snyder <msnyder@vmware.com>
5316 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
5318 * tui/tui-layout.c (tui_set_layout_for_display_command):
5319 Split line so that operator goes to beginning of line.
5320 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
5321 assignment out of if statement.
5323 2011-01-07 Michael Snyder <msnyder@vmware.com>
5325 * ada-lang.c: Comment cleanup, mostly periods and spaces.
5326 * ada-lang.h: Ditto.
5327 * ada-tasks.c: Ditto.
5328 * ada-valprint.c: Ditto.
5329 * aix-threads.c: Ditto.
5330 * alpha-linux-nat.c: Ditto.
5331 * alpha-linux-tdep.c: Ditto.
5332 * alpha-mdebug-tdep.c: Ditto.
5333 * alpha-nat.c: Ditto.
5334 * alpha-osf1-tdep.c: Ditto.
5335 * alpha-tdep.c: Ditto.
5336 * alphabsd-nat.c: Ditto.
5337 * alphabsd-tdep.c: Ditto.
5338 * amd64-darwin-tdep.c: Ditto.
5339 * amd64-linux-nat.c: Ditto.
5340 * amd64-linux-tdep.c: Ditto.
5341 * amd64-sol2-tdep.c: Ditto.
5342 * amd64-tdep.c: Ditto.
5343 * amd64-fbsd-tdep.c: Ditto.
5344 * amd64-nbsd-tdep.c: Ditto.
5345 * amd64-obsd-tdep.c: Ditto.
5346 * amd64-linux-nat.c: Ditto.
5347 * amd64-linux-tdep.c: Ditto.
5348 * arm-tdep.c: Ditto.
5349 * arm-tdep.h: Ditto.
5350 * armnbsd-nat.c: Ditto.
5351 * avr-tdep.c: Ditto.
5352 * bfin-tdep.c: Ditto.
5354 * c-typeprintc: Ditto.
5355 * c-valprint.c: Ditto.
5356 * coff-pe-read.h: Ditto.
5357 * coffreead.c: Ditto.
5358 * cris-tdep.c: Ditto.
5360 * darwin-nat-info.c: Ditto.
5361 * darwin-nat.c: Ditto.
5362 * dbug-rom.c: Ditto.
5366 * dec-thread.c: Ditto.
5368 * demangle.c: Ditto.
5369 * dicos-tdep.c: Ditto.
5370 * dictionary.c: Ditto.
5371 * dictionary.h: Ditto.
5372 * dink32-rom.c: Ditto.
5374 * doublest.c: Ditto.
5376 * dummy-frame.c: Ditto.
5377 * dwarf2-frame.c: Ditto.
5378 * dwarf2expr.c: Ditto.
5379 * dwarf2loc.c: Ditto.
5380 * dwarf2read.c: Ditto.
5384 * event-top.h: Ditto.
5385 * exceptions.c: Ditto.
5386 * exceptions.h: Ditto.
5388 * expprint.c: Ditto.
5389 * expression.h: Ditto.
5393 * f-typeprint.c: Ditto.
5394 * f-valprint.c: Ditto.
5395 * fbsd-nat.c: Ditto.
5397 * fork-child.c: Ditto.
5400 * frv-linux-tdep.c: Ditto.
5401 * frv-tdep.c: Ditto.
5403 * gdb-stabs.h: Ditto.
5404 * gdb_assert.h: Ditto.
5405 * gdb_string.h: Ditto.
5406 * gdb_thread_db.h: Ditto.
5407 * gdb_wait.h: Ditto.
5408 * gdbarch.sh: Ditto.
5410 * gdbthread.h: Ditto.
5411 * gdbtypes.c: Ditto.
5412 * gdbtypes.h: Ditto.
5415 * gnu-v2-abi.c: Ditto.
5416 * gnu-v3-abi.c: Ditto.
5417 * go32-nat.c: Ditto.
5418 * gdbarch.c: Regenerate.
5419 * gdbarch.h: Regenerate.
5421 2011-01-07 Michael Snyder <msnyder@vmware.com>
5423 * ax-gdb.c: Adjust some long output strings.
5424 * breakpoint.c: Ditto.
5429 * linux-nat.c: Ditto.
5430 * solib-pa64.c: Ditto.
5431 * solib-som.c: Ditto.
5433 2011-01-06 Tom Tromey <tromey@redhat.com>
5437 * python/python.c (GdbMethods): Add "newest_frame" method.
5438 * python/python-internal.h (gdbpy_newest_frame): Declare.
5439 * python/py-frame.c (gdbpy_newest_frame): New function.
5441 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
5443 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
5444 * jit.c (jit_debug): New variable.
5445 (show_jit_debug): New function.
5446 (struct target_buffer): Use ULONGEST.
5447 (bfd_open_from_target_memory): Likewise.
5448 (jit_register_code, jit_inferior_init): Add debug output.
5449 (_initialize_jit): Register "debug jit" command.
5451 2011-01-06 Tom Tromey <tromey@redhat.com>
5453 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
5454 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
5457 2011-01-06 Tom Tromey <tromey@redhat.com>
5459 * python/py-frame.c (frapy_block): Use get_frame_block.
5461 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5463 Do not stop on SIGPRIO signals by default
5464 * infrun.c (_initialize_infrun): Unset signal_stop and
5465 signal_print for TARGET_SIGNAL_PRIO.
5467 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5469 * ada-tasks.c: Fix style violation in comment.
5471 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5473 * linespec.c (decode_compound, find_method): Remove trailing \n
5474 at end of error string.
5475 * solib-irix.c (irix_current_sos): Likewise.
5476 * varobj.c (uninstall_variable): Likewise.
5478 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5480 * copyright.py: New script.
5481 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
5482 Launch emacs without exec'ing. Call copyright.py afterwards.
5484 2011-01-05 Michael Snyder <msnyder@vmware.com>
5486 * addrmap.c: Shorten lines of >= 80 columns.
5487 * arch-utils.c: Ditto.
5488 * arch-utils.h: Ditto.
5490 * ax-general.c: Ditto.
5492 * blockframe.c: Ditto.
5493 * breakpoint.c: Ditto.
5494 * buildsym.c: Ditto.
5496 * c-typeprint.c: Ditto.
5498 * coffread.c: Ditto.
5502 * cp-namespace.c: Ditto.
5503 * cp-support.c: Ditto.
5504 * dbug-rom.c: Ditto.
5509 * dictionary.c: Ditto.
5511 * doublest.c: Ditto.
5512 * dwarf2-frame.c: Ditto.
5513 * dwarf2expr.c: Ditto.
5514 * dwarf2loc.c: Ditto.
5515 * dwarf2read.c: Ditto.
5518 * event-loop.c: Ditto.
5519 * event-loop.h: Ditto.
5520 * exceptions.h: Ditto.
5522 * expprint.c: Ditto.
5523 * expression.h: Ditto.
5525 * f-valprint.c: Ditto.
5527 * frame-base.c: Ditto.
5528 * frame-unwind.c: Ditto.
5529 * frame-unwind.h: Ditto.
5533 * gdb-stabs.h: Ditto.
5534 * gdb_assert.h: Ditto.
5535 * gdb_dirent.h: Ditto.
5536 * gdb_obstack.h: Ditto.
5538 * gdbtypes.c: Ditto.
5539 * gdbtypes.h: Ditto.
5540 * inf-ttrace.c: Ditto.
5545 * inline-frame.h: Ditto.
5546 * language.c: Ditto.
5547 * language.h: Ditto.
5548 * libunwind-frame.c: Ditto.
5549 * libunwind-frame.h: Ditto.
5550 * linespec.c: Ditto.
5551 * linux-nat.c: Ditto.
5552 * linux-nat.h: Ditto.
5553 * linux-thread-db.c: Ditto.
5554 * machoread.c: Ditto.
5555 * macroexp.c: Ditto.
5556 * macrotab.c: Ditto.
5559 * mdebugread.c: Ditto.
5564 * objfiles.c: Ditto.
5565 * objfiles.h: Ditto.
5567 * p-typeprint.c: Ditto.
5568 * p-valprint.c: Ditto.
5570 * printcmd.c: Ditto.
5571 * proc-events.c: Ditto.
5573 * progspace.c: Ditto.
5574 * progspace.h: Ditto.
5575 * psympriv.h: Ditto.
5578 * regcache.c: Ditto.
5579 * regcache.h: Ditto.
5580 * remote-fileio.c: Ditto.
5582 * ser-mingw.c: Ditto.
5584 * ser-unix.c: Ditto.
5587 * solib-frv.c: Ditto.
5588 * solib-irix.c: Ditto.
5589 * solib-osf.c: Ditto.
5590 * solib-pa64.c: Ditto.
5591 * solib-som.c: Ditto.
5592 * solib-sunos.c: Ditto.
5593 * solib-svr4.c: Ditto.
5594 * solib-target.c: Ditto.
5598 * stabsread.c: Ditto.
5599 * stabsread.c: Ditto.
5602 * symfile-mem.c: Ditto.
5608 * target-descriptions.c: Ditto.
5609 * target-memory.c: Ditto.
5612 * terminal.h: Ditto.
5615 * tracepoint.c: Ditto.
5616 * tracepoint.h: Ditto.
5620 * user-regs.c: Ditto.
5621 * user-regs.h: Ditto.
5623 * valarith.c: Ditto.
5625 * valprint.c: Ditto.
5626 * valprint.h: Ditto.
5631 * xcoffread.c: Ditto.
5632 * xcoffsolib.c: Ditto.
5633 * xcoffsolib.h: Ditto.
5634 * xml-syscall.c: Ditto.
5635 * xml-tdesc.c: Ditto.
5637 2011-01-05 Michael Snyder <msnyder@vmware.com>
5639 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
5640 * cli/cli-decode.c: Ditto.
5641 * cli/cli-dump.c: Ditto.
5642 * cli/cli-logging.c: Ditto.
5643 * cli/cli-script.c: Ditto.
5644 * cli/cli-setshow.c: Ditto.
5645 * common/signals.c: Ditto.
5646 * mi/mi-cmd-break.c: Ditto.
5647 * mi/mi-cmd-disas.c: Ditto.
5648 * mi/mi-cmd-stack.c: Ditto.
5649 * mi/mi-cmd-var.c: Ditto.
5650 * mi/mi-cmds.c: Ditto.
5651 * mi/mi-common.h: Ditto.
5652 * mi/mi-console.c: Ditto.
5653 * mi/mi-interp.c: Ditto.
5654 * mi/mi-main.c: Ditto.
5655 * osf-share/cma_attr.c: Ditto.
5656 * osf-share/cma_deb_core.h: Ditto.
5657 * osf-share/cma_debug_client.h: Ditto.
5658 * osf-share/cma_handle.h: Ditto.
5659 * osf-share/cma_mutex.h: Ditto.
5660 * osf-share/cma_stack_int.h: Ditto.
5661 * osf-share/cma_tcb_defs.h: Ditto.
5662 * python/py-auto-load.c: Ditto.
5663 * python/py-breakpoint.c: Ditto.
5664 * python/py-cmd.c: Ditto.
5665 * python/py-frame.c: Ditto.
5666 * python/py-objfile.c: Ditto.
5667 * python/py-param.c: Ditto.
5668 * python/py-progspace.c: Ditto.
5669 * python/py-symbol.c: Ditto.
5670 * python/py-value.c: Ditto.
5671 * python/python-internal.h: Ditto.
5672 * python/python.c: Ditto.
5673 * tui/tui-data.c: Ditto.
5674 * tui/tui-disasm.c: Ditto.
5675 * tui/tui-hooks.c: Ditto.
5676 * tui/tui-io.c: Ditto.
5677 * tui/tui-layout.c: Ditto.
5678 * tui/tui-regs.c: Ditto.
5679 * tui/tui-source.c: Ditto.
5680 * tui/tui-stack.c: Ditto.
5681 * tui/tui-win.c: Ditto.
5682 * tui/tui-windata.c: Ditto.
5683 * tui/tui-winsource.c: Ditto.
5685 2011-01-05 Joel Brobecker <brobecker@adacore.com>
5687 * configure.ac, gdb.1: Copyright year update.
5689 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5691 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
5692 this_pc_in_block, morestack_msym and morestack_name. Check for
5693 "__morestack" minimal symbol there.
5695 2011-01-03 Joel Brobecker <brobecker@adacore.com>
5697 * symfile.c (find_sym_fns): Add call to dont_repeat.
5699 2011-01-01 Joel Brobecker <brobecker@adacore.com>
5701 Copyright year update in most files (performed by copyright.sh).
5703 2011-01-01 Joel Brobecker <brobecker@adacore.com>
5705 * top.c (print_gdb_version): Update copyright year in version output.
5707 For older changes see ChangeLog-2010.
5713 version-control: never