1 2011-05-12 Tom Tromey <tromey@redhat.com>
3 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
4 cast left-hand-side to unsigned.
6 2011-05-12 Tom Tromey <tromey@redhat.com>
9 * value.h (value_from_contents): Declare.
10 * value.c (value_from_contents): New function.
11 * dwarf2read.c (dwarf_stack_op_name): Add new values.
12 (dwarf2_get_die_type): New function.
13 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
14 (allocate_piece_closure): Acquire reference to values.
15 (read_pieced_value): Update for value-based expressions.
16 (write_pieced_value): Likewise.
17 (free_pieced_value_closure): Call value_free as needed.
18 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
19 Update for value-based expressions.
20 * dwarf2loc.h (dwarf2_get_die_type): Declare.
21 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
22 <get_base_type>: New field.
23 (struct dwarf_expr_piece) <v.value>: Change type.
25 (struct dwarf_expr_context) <mark>: New field.
26 (dwarf_expr_piece, dwarf_expr_fetch): Update.
27 (dwarf_expr_pop, dwarf_expr_push): Remove.
28 (dwarf_expr_push_address): Declare.
29 * dwarf2expr.c (dwarf_arch_cookie): New global.
30 (struct dwarf_gdbarch_types): New.
31 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
33 (dwarf_expr_push): Change type of 'value' argument. Update. Now
35 (dwarf_expr_push_address): New function.
36 (dwarf_expr_pop): Now static.
37 (dwarf_expr_fetch): Change return type.
38 (dwarf_require_integral): New function.
39 (dwarf_expr_fetch): Simplify.
41 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
43 (execute_stack_op) <sign_ext>: Remove.
44 Use values for DWARF stack.
45 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
46 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
48 (_initialize_dwarf2expr): New function.
50 (new_dwarf_expr_context): Set new field.
51 (free_dwarf_expr_context): Call value_free_to_mark.
52 * dwarf2-frame.c (no_base_type): New function.
53 (execute_stack_op): Set get_base_type field. Update.
55 2011-05-12 Tom Tromey <tromey@redhat.com>
57 * dwarf2read.c (read_common_block): Fix formatting.
59 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
61 * breakpoint.c (disable_breakpoint): Disable all locations
62 associated with a tracepoint on target if a trace experiment is
64 (disable_command): Disable a specific tracepoint location on target if
65 a trace experiment is running.
66 (do_enable_breakpoint): Enable all locations associated with a
67 tracepoint on target if a trace experiment is running.
68 (enable_command) Enable a specific tracepoint location on target if a
69 trace experiment is running.
70 * target.c (update_current_target): Add INHERIT and de_fault clauses for
71 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
72 to_disable_tracepoint.
73 * target.h: Add declaration of struct bp_location.
74 (struct target_ops): Add new functions
75 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
76 to_disable_tracepoint to target operations.
77 (target_supports_enable_disable_tracepoint): New macro.
78 (target_enable_tracepoint): New macro.
79 (target_disable_tracepoint): New macro.
80 * remote.c (struct remote_state): Add new field.
81 (remote_enable_disable_tracepoint_feature): New.
82 (remote_protocol_features): Add new entry.
83 (remote_supports_enable_disable_tracepoint): New.
84 (remote_enable_tracepoint): New.
85 (remote_disable_tracepoint): New.
86 (init_remote_ops): Add remote_enable_tracepoint,
87 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
89 * tracepoint.c (start_tracing): Allow tracing to start without any
90 tracepoints enabled with just a warning if they can be re-enabled
92 * NEWS: Add news item for the new behaviour of the enable and disable
93 GDB commands when applied to tracepoints.
94 Add news items for the new remote packets QTEnable and QTDisable.
96 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
98 * config.in: Regenerate.
99 * configure: Regenerate.
100 * configure.ac <--with-system-readline> (for readline_echoing_p):
102 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
103 (tui_old_rl_echoing_p): ... here.
104 (tui_setup_io): Rename extern declaration readline_echoing_p to
105 _rl_echoing_p. Adjust assignments for the both renames.
107 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
109 * symtab.c (lookup_symtab): Run cleanup before returning.
111 2011-05-11 Tom Tromey <tromey@redhat.com>
113 * dwarf2read.c (handle_data_member_location): New function.
114 (dwarf2_add_field): Use it.
115 (read_common_block): Likewise.
117 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
119 Make addrs->SECTINDEX always defined.
120 * symfile.c (relative_addr_info_to_section_offsets): Check for
121 SECTINDEX -1, not for zero ADDR.
122 (addrs_section_compar): Remove checking for invalid SECTINDEX.
123 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
124 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
127 2011-05-10 Doug Evans <dje@google.com>
129 * linux-thread-db.c: Whitespace cleanup.
130 (try_thread_db_load_1): Fix comment.
132 * linux-thread-db.c (set_libthread_db_search_path): New function.
133 (_initialize_thread_db): Add setter for libthread-db-search-path.
135 2011-05-09 Doug Evans <dje@google.com>
137 * NEWS: Mention --with-iconv-bin.
138 * configure.ac: New option --with-iconv-bin.
139 * configure: Regenerate.
140 * config.in: Regenerate.
141 * defs.h (relocate_gdb_directory): Declare.
142 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
143 removed progname parameter, and exported. All callers updated.
144 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
146 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
147 adding missing call to restore_child_signals_mask.
149 2011-05-09 Pedro Alves <pedro@codesourcery.com>
151 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
153 * infrun.c (proceed, start_remote): Adjust.
154 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
155 and adjust to not handle it.
156 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
157 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
158 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
159 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
160 * windows-nat.c (do_initial_windows_stuff): Adjust.
161 * infcmd.c (attach_command): Adjust.
162 (notice_new_inferior): Adjust.
164 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
166 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
167 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
168 * spu-tdep.c (op_selb): Use correct value.
170 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
172 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
173 "parent" parameter to symbol_file_add_from_bfd call.
175 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
176 Thiago Jung Bauermann <bauerman@br.ibm.com>
178 Implement support for PowerPC BookE masked watchpoints.
179 * NEWS: Mention masked watchpoint support. Create "Changed commands"
181 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
182 method. Initialize to NULL in all existing breakpoint_ops instances.
183 (struct breakpoint) <hw_wp_mask>: New field.
184 * breakpoint.c (is_masked_watchpoint): Add prototype.
185 (update_watchpoint): Don't set b->val for masked watchpoints. Call
186 breakpoint's breakpoint_ops.works_in_software_mode if available.
187 (watchpoints_triggered): Handle the case of a hardware masked
189 (watchpoint_check): Likewise.
190 (works_in_software_mode_watchpoint): New function.
191 (insert_masked_watchpoint, remove_masked_watchpoint)
192 (resources_needed_masked_watchpoint)
193 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
194 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
195 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
197 (masked_watchpoint_breakpoint_ops): New structure.
198 (watch_command_1): Check for the existence of the `mask' parameter.
199 Set b->ops according to the type of hardware watchpoint being created.
200 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
201 (ppc_linux_remove_mask_watchpoint)
202 (ppc_linux_masked_watch_num_registers): New functions.
203 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
204 to_remove_mask_watchpoint and to_masked_watch_num_registers.
205 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
206 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
207 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
208 (target_masked_watch_num_registers): New functions.
209 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
210 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
212 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
213 (target_masked_watch_num_registers): Add prototypes.
215 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
218 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
219 (producer_is_gcc_ge_4_0): New function.
220 (process_full_comp_unit): Set also symtab->locations_valid. Move the
221 symtab->language code.
222 (var_decode_location): Set cu->has_loclist.
223 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
224 skip. Intialize force_skip from locations_valid. Move the prologue
225 skipping code into two passes.
226 * symtab.h (struct symtab): Make the primary field a bitfield. New
227 field locations_valid.
229 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
231 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
232 (classify_inner_name): Call cp_lookup_nested_type with
234 * cp-namespace.c (cp_lookup_nested_type): New variable
235 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
236 type_name_no_tag_or_error with saved_parent_type.
237 * dwarf2read.c (load_partial_dies): Read in any children of
238 DW_TAG_typedef with complaint in such case.
239 * gdbtypes.c (type_name_no_tag_or_error): New function.
240 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
241 * valops.c (destructor_name_p): New comment for parameter type. Remove
242 type const. Make dname and cp const. Call type_name_no_tag_or_error.
243 * value.h (destructor_name_p): Remove type const.
245 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
247 * symtab.c (compare_symbol_name): New function.
248 (completion_list_add_name, expand_partial_symbol_name): Call it,
249 remove the variable ncmp.
250 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
253 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
255 Demote to sw watchpoint only in update_watchpoint.
256 * breakpoint.c (update_watchpoint): Change between software and
257 hardware watchpoint for all kinds of watchpoints, not just
258 read/write ones. Determine b->exact value here instead of
259 in watch_command_1. Error out if there are not enough resources
260 for a read or access hardware watchpoint.
261 (watch_command_1): Remove logic of checking whether there are
262 enough resources available, since update_watchpoint will do that
263 work now. Don't set b->exact here. Catch exceptions thrown by
264 update_watchpoint and delete the watchpoint.
265 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
266 Use target_exact_watchpoints instead.
267 (delete_breakpoint): Notify observers only if deleted watchpoint
268 has a breakpoint number assigned to it.
270 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
272 * MAINTAINERS: Add myself as a write-after-approval maintainer.
274 2011-05-05 Jerome Guitton <guitton@adacore.com>
276 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
278 (i386_stack_tramp_frame_unwind): New static global.
279 (i386_match_pattern): New function, extracted from i386_match_insn.
280 (i386_match_insn): Use i386_match_pattern.
281 (i386_match_insn_block): New function.
282 (i386_tramp_chain_in_reg_insns)
283 (i386_tramp_chain_on_stack_insns): New static variables.
284 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
287 2011-05-04 Joseph Myers <joseph@codesourcery.com>
289 * configure.host (xscale*): Don't handle target.
290 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
293 2011-05-04 Yao Qi <yao@codesourcery.com>
295 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
297 2011-05-03 Joel Brobecker <brobecker@adacore.com>
300 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
301 | * elfread.c (elf_symtab_read): Stop memory leak.
303 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
305 * nto-tdep.c (nto_target): Replace deprecated call to
306 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
308 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
310 Fix false GCC warning.
311 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
313 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
315 * breakpoint.c (update_watchpoint): Move code to change
316 the enable state of breakpoint from here ...
317 (do_enable_breakpoint): ... to here.
319 2011-04-26 Andrew Gontarek <andrewg@cray.com>
321 * valprint.c (val_print_array_elements): Fixed poor performance
322 of printing very large arrays with repeat_count_threshold set
323 to unlimited. New comment.
325 2011-04-29 Tom Tromey <tromey@redhat.com>
327 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
328 (mi_parse): Likewise.
329 * breakpoint.c (break_range_command): Use sizeof char*, not
331 (create_breakpoint): Likewise.
332 (parse_breakpoint_sals): Likewise.
334 2011-04-29 Pedro Alves <pedro@codesourcery.com>
336 * linux-nat.c (linux_child_remove_fork_catchpoint)
337 (linux_child_remove_vfork_catchpoint)
338 (linux_child_remove_exec_catchpoint): New functions.
339 (linux_target_install_ops): Install them.
341 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
345 * varobj.c (install_default_visualizer): Do not install a
346 visualizer if the varobj is CPLUS_FAKE_CHILD.
347 (construct_visualizer): Likewise.
349 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
351 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
352 case insensitive comparison.
354 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
356 * infrun.c (proceed): Revert previous change.
357 (resume): Instead, handle the case of signal delivery while stepping
358 off a breakpoint location here, and only if software single-stepping
359 is used. Handle nested signals.
361 2011-04-28 Yao Qi <yao@codesourcery.com>
363 * arm-tdep.c (copy_unmodified): Rename to ...
364 (arm_copy_unmodified): .. this. New.
365 (copy_preload): Move common part to ...
366 (install_preload): .. this. New.
367 (arm_copy_preload): New.
368 (copy_preload_reg): Move common part to ...
369 (install_preload_reg): ... this. New.
370 (arm_copy_preload_reg): New.
371 (copy_b_bl_blx): Move common part to ...
372 (install_b_bl_blx): .. this. New.
373 (arm_copy_b_bl_blx): New.
374 (copy_bx_blx_reg): Move common part to ...
375 (install_bx_blx_reg): ... this. New.
376 (arm_copy_bx_blx_reg): New.
377 (copy_alu_reg): Move common part to ...
378 (install_alu_reg): ... this. New.
379 (arm_copy_alu_reg): New.
380 (copy_alu_shifted_reg): Move common part to ...
381 (install_alu_shifted_reg): ... this. New.
382 (copy_ldr_str_ldrb_strb): Move common part to ...
383 (install_ldr_str_ldrb_strb): ... this. New.
384 (arm_copy_ldr_str_ldrb_strb): New.
385 (copy_copro_load_store): Move some common part to ...
386 (install_copy_copro_load_store): ... this. New.
387 (arm_copy_copro_load_store): New.
389 (arm_copy_svc): Renamed from copy_svc.
390 (copy_undef): Delete.
391 (arm_copy_undef): Renamed from copy_undef.
392 (decode_ext_reg_ld_st): Delete.
393 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
394 (decode_svc_copro): Delete.
395 (arm_decode_svc_copro): Renamed from decode_svc_copro.
396 (copy_copro_load_store, copy_alu_imm): update callers.
397 (copy_extra_ld_st, copy_block_xfer): Likewise.
398 (decode_misc_memhint_neon, decode_unconditional): Likewise.
399 (decode_miscellaneous, decode_dp_misc): Likewise.
400 (decode_ld_st_word_ubyte, decode_media): Likewise.
401 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
402 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
403 (decode_unconditional, decode_miscellaneous): Likewise.
404 (decode_media, decode_b_bl_ldmstm): Likewise.
405 (arm_process_displaced_insn): Likewise..
406 (decode_misc_memhint_neon): Delete.
407 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
408 (decode_miscellaneous): Delete.
409 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
410 (decode_dp_misc): Delete.
411 (arm_decode_dp_misc): Renamed from decode_dp_misc.
412 (decode_ld_st_word_ubyte): Delete.
413 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
414 (decode_media): Delete.
415 (arm_decode_media): Renamed from decode_media.
416 (decode_b_bl_ldmstm): Delete.
417 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
418 (decode_ext_reg_ld_st): Delete.
419 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
420 (decode_unconditional): Delete.
421 (arm_decode_unconditional): Renamed from decode_unconditional.
423 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
425 Case insensitive lookups implementation.
426 * dwarf2read.c: Include ctype.h.
427 (struct mapped_index): New field version.
428 (mapped_index_string_hash): New parameter index_version. New comment
429 for it. Call tolower appropriately.
430 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
431 Choose the right index version for mapped_index_string_hash.
432 (dwarf2_read_index): Support also the index version 5. Initialize the
433 new struct mapped_index field version.
434 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
435 (find_slot): Explain the version needs. Pass INT_MAX for the new
437 (write_psymtabs_to_index): Produce version 5.
438 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
439 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
440 * psymtab.c (lookup_partial_symbol): Find the
441 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
443 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
445 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
446 (completion_list_add_name): New variable ncmp, initialize it, use it.
447 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
448 * utils.c (strcmp_iw): Support case_sensitive_off.
449 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
450 New function comment part. New variables saved_string1,
451 saved_string2 and case_pass. Add a proper second pass.
453 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
455 Replace re_comp/re_exec by regcomp/regexec.
456 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
457 (search_symbols_name_matches): Use them, use regexec.
458 (search_symbols): New variable retval_chain, adjust the use of
459 old_chain against it. Replace re_comp by regcomp. Use the new struct
460 search_symbols_data fields, use regexec instead of re_exec.
462 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
464 Format the code for the next patch.
465 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
466 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
467 New variables c1 and c2.
469 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
471 * infrun.c (proceed): Do not single-step into signal delivery
472 when stepping off a breakpoint location.
473 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
474 (insert_step_resume_breakpoint_at_caller): Likewise.
475 (insert_step_resume_breakpoint_at_sal): Likewise.
476 (insert_longjmp_resume_breakpoint): Likewise.
478 2011-04-27 Yao Qi <yao@codesourcery.com>
480 * common/linux-ptrace.h: Remove include <sys/wait.h>.
482 2011-04-27 Joel Brobecker <brobecker@adacore.com>
484 * procfs.c (procfs_pass_signals): Fix advance declaration.
486 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
488 * target.h (struct target_ops): Remove to_notice_signals;
490 (target_notice_signals): Remove.
491 (target_pass_signals): Add prototype.
492 * target.c (update_current_target): Remove to_notice_signals;
493 mention to_pass_signals.
494 (target_pass_signals): New function.
495 (debug_to_notice_signals): Remove.
496 (setup_target_debug): Do not install debug_to_notice_signals.
498 * infrun.c (signal_pass): New global.
499 (resume): Call target_pass_signals.
500 (handle_inferior_event): Report all signals while stepping over
501 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
502 are re-inserted when stepping over a signal handler.
503 (signal_cache_update): New function.
504 (signal_stop_update): Call it.
505 (signal_print_update): Likewise.
506 (signal_pass_update): Likewise.
507 (handle_command): Call signal_cache_update and target_pass_signals
508 instead of target_notice_signals.
509 (_initialize_infrun): Initialize signal_pass.
511 * linux-nat.c (pass_mask): New global.
512 (linux_nat_pass_signals): New function.
513 (linux_nat_create_inferior): Report all signals initially.
514 (linux_nat_attach): Likewise.
515 (linux_nat_resume): Use pass_mask to decide whether to directly
516 handle an inferior signal.
517 (linux_nat_wait_1): Likewise.
518 (linux_nat_add_target): Install to_pass_signals callback.
520 * nto-procfs.c (notice_signals): Remove.
521 (procfs_resume): Do not call notice_signals.
522 (procfs_notice_signals): Remove.
523 (procfs_pass_signals): New function.
524 (init_procfs_ops): Install to_pass_signals callback instead of
525 to_notice_signals callback.
526 (_initialize_procfs): Report all signals initially.
528 * procfs.c (procfs_notice_signals): Remove.
529 (procfs_pass_signals): New function.
530 (procfs_target): Install to_pass_signals callback instead of
531 to_notice_signals callback.
532 (register_gdb_signals): Remove.
533 (procfs_debug_inferior): Report all signals initially.
534 (procfs_init_inferior): Remove redundant register_gdb_signals call.
536 * remote.c (remote_pass_signals): Add numsigs and pass_signals
537 parameters; use them instead of calling signal_..._state routines.
538 (remote_notice_signals): Remove.
539 (remote_start_remote): Report all signals initially.
540 (remote_resume): Do not call remote_pass_signals.
541 (_initialize_remote): Install to_pass_signals callback instead of
542 to_notice_signals callback.
544 2011-04-27 Pedro Alves <pedro@codesourcery.com>
546 * breakpoint.c (user_settable_breakpoint): Delete.
547 (user_breakpoint_p): Remove check on user_settable_breakpoint.
548 (delete_command): Check user_breakpoint_p instead of looking at
549 the breakpoint's type.
550 (disable_command): Ditto.
551 (enable_command): Ditto.
552 (delete_trace_command): Use user_breakpoint_p instead of looking
553 at the breakpoint number directly. When checking if there are
554 user visible tracepoints, in order to know whether to ask the user
555 for confirmation, check whether the breakpoint is actually a
558 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
560 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
563 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
565 MI breakpoint notifications.
567 * annotate.c (breakpoint_changed): Adjust parameter type.
568 * breakpoint.c (set_breakpoint_condition): Adjust to change
569 in breakpoint_modified type.
570 (breakpoint_set_commands): Likewise.
571 (do_map_commands_command): Likewise.
572 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
573 changed after bumping hit count.
574 (bpstat_stop_status): Likewise.
575 (print_one_breakpoint_location): Don't wrap in tuple here.
576 (print_one_breakpoint): Always print individual locations.
577 For locations, use unnamed tuple.
578 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
580 (create_catchpoint, create_syscall_event_catchpoint): Call
581 breakpoint_created obsever.
582 (mention): Don't call breakpoint_created observer.
583 (create_breakpoint_sal): Call breakpoint_created observer.
584 (create_breakpoint, watch_command_1): Likewise.
585 (create_ada_exception_breakpoint): Likewise.
586 (delete_breakpoint): Call breakpoint_deleted breakpoint.
587 (locations_are_equal): New.
588 (update_breakpoint_locations): If locations were changed, notify.
589 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
590 Call breakpoint_modified observer.
592 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
593 (mi_cmd_break_insert): Don't set observers for modify and delete.
594 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
595 (mi_breakpoint_created, mi_breakpoint_deleted)
596 (mi_breakpoint_modified): New.
597 (mi_interpreter_init): Hook the above.
598 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
599 while -break-* commands are executing.
600 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
601 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
603 (mi_ui_out_impl): Hook in mi_redirect.
604 (mi_field_skip): True to the name, skip the field, don't output
605 a field with an empty value.
607 * python/py-breakpoint.c (gdbpy_breakpoint_created)
608 (gdbpy_breakpoint_deleted): Adjust.
609 * tui/tui-hooks.c (tui_event_create_breakpoint)
610 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
612 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
614 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
615 (procfs_remove_hw_watchpoint): Likewise.
617 2011-04-26 Michael Walle <michael@walle.cc>
619 * remote.c (remote_start_remote): Ack packet after sending the
622 2011-04-26 Yao Qi <yao@codesourcery.com>
624 * linux-nat.c: Move common macros to ...
625 Include linux-ptrace.h.
626 * common/linux-ptrace.h: ... here. New.
628 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
630 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
631 !objfile_has_partial_symbols. New comment.
632 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
633 SYM_READ_PSYMBOLS is not present. Extend the comment.
634 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
636 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
638 * defs.h (ENUM_BITFIELD): Remove.
640 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
641 Eli Zaretskii <eliz@gnu.org>
643 * NEWS: Document the new gdbserver --once option.
645 2011-04-21 Jie Zhang <jzhang918@gmail.com>
647 * MAINTAINERS: Update my email address.
649 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
651 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
652 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
653 function call if __STDC_ISO_10646__ macro is defined.
654 (intermediate_encoding): New prototype.
655 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
656 to generate compile time error for unsupported gdb_wchar_t size.
657 (ENDIAN_SUFFIX): New macro.
658 (intermediate_encoding): New function.
660 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
662 * ada-lang.c (struct add_partial_datum): Update the comment for
663 expand_partial_symbol_name.
664 (ada_add_partial_symbol_completions): Rename to ...
665 (ada_expand_partial_symbol_name): ... here, change return type, update
666 function comment, call symbol_completion_match instead of
667 symbol_completion_add.
668 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
669 and ada_expand_partial_symbol_name.
670 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
672 (dw2_map_symbol_names): Remove.
673 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
674 * psymtab.c (map_symbol_names_psymtab): Remove.
675 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
676 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
678 (psym_functions): Unlist map_symbol_names_psymtab.
679 (map_partial_symbol_names): Rename to ...
680 (expand_partial_symbol_names): ... here, change the FUN type, call
681 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
682 * psymtab.h (map_partial_symbol_names): Rename to ...
683 (expand_partial_symbol_names): ... here, change the FUN type.
684 * symfile.h (struct quick_symbol_functions): Update the description of
685 expand_symtabs_matching. Remove map_symbol_names.
686 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
687 (struct add_name_data): Update the comment for
688 expand_partial_symbol_name.
689 (add_partial_symbol_name): Rename to ...
690 (expand_partial_symbol_name): ... here. Replace
691 completion_list_add_name call by strncmp.
692 (default_make_symbol_completion_list_break_on): Use now
693 expand_partial_symbol_names and expand_partial_symbol_name.
694 * symtab.h (enum search_domain): New element ALL_DOMAIN.
696 2011-04-20 Tom Tromey <tromey@redhat.com>
698 * dwarf2read.c (save_gdb_index_command): Replace format
699 documentation with a pointer to the manual.
701 2011-04-20 Pedro Alves <pedro@codesourcery.com>
703 * regcache.c: Include remote.h.
704 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
705 (regcache_dump): Handle regcache_dump_remote.
706 (maintenance_print_remote_registers): New function.
707 (_initialize_regcache): Install "maint print remote-registers"
709 * remote.c (map_regcache_remote_table): New function, factored out
711 (init_remote_state): ... here.
712 (remote_register_number_and_offset): New.
713 * remote.h (remote_register_number_and_offset): Declare.
715 2011-04-20 Pedro Alves <pedro@codesourcery.com>
717 * regcache.c (get_thread_arch_regcache): If creating a regcache for
718 null_ptid, assume and allow a NULL address space, instead of
719 asking the target for the ptid's address space.
720 * infrun.c (ptid_is_pid): Remove assertion.
722 2011-04-19 Tom Tromey <tromey@redhat.com>
724 * windows-tdep.c (windows_xfer_shared_library):
725 * windows-nat.c (get_module_name, windows_make_so):
726 * v850-tdep.c (v850_handle_pushm):
727 * utils.c (null_cleanup, gdb_realpath):
728 * ui-out.c (get_next_header):
729 * tracepoint.c (clear_traceframe_info):
730 * symtab.c (lookup_symtab):
731 * serial.h (struct serial_ops):
732 * mipsread.c (read_alphacoff_dynamic_symtab):
733 * infcmd.c (print_return_value):
734 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
735 * f-exp.y (parse_number):
736 * exceptions.c (catch_exceptions):
737 * dummy-frame.c (dummy_frame_this_id):
738 * defs.h (struct cleanup):
739 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
740 * arm-tdep.c (arm_push_dummy_call):
741 * amd64-tdep.h (amd64_collect_xsave):
742 * amd64-tdep.c (amd64_collect_xsave):
743 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
744 * README (typing): Remove duplicate words.
745 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
746 * infrun.c (siginfo_value_read): Fix typo.
747 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
748 * top.c (source_line_number): Add comma.
750 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
752 * thread.c (any_live_thread_of_process): Prioritize threads
753 that are not executing.
754 * gdbthread.h (any_live_thread_of_process): Update comment
757 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
759 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
760 (scan_xcoff_symtab): Likewise.
762 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
764 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
767 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
768 Pedro Alves <pedro@codesourcery.com>
770 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
771 variables to simplify code and avoid == operator at end of
772 line as this is against GNU coding standards.
774 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
776 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
777 lm_name to name_lm to avoid conflict with lm_name function.
779 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
781 ARI fixes: Use only lowercase function name for static functions.
782 * nto-tdep.c (LM_ADDR): Rename to...
783 (lm_addr): New function name.
784 (nto_relocate_section_addresses): Adapt to change above.
785 * solib-sunos.c (LM_ADDR): Rename to...
786 (lm_addr): New function name.
787 (LM_NEXT): Rename to...
788 (lm_next): New function name.
789 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
790 function name changes above.
791 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
792 (lm_addr_from_link_map): New function name.
793 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
794 (has_lm_dynamic_from_link_map): New function name.
795 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
796 (lm_dynamic_from_link_map): New function name.
797 (LM_ADDR_CHECK): Rename to...
798 (lm_addr_check): New function name.
799 (LM_NEXT): Rename to...
800 (lm_next): New function name.
801 (LM_PREV): Rename to...
802 (lm_prev): New function name.
803 (LM_NAME): Rename to...
804 (lm_name): New function name.
805 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
806 (ignore_first_link_map_entry): New function name.
807 (svr4_keep_data_in_core): Adapt to function name changes above.
808 (svr4_current_sos): Likewise.
809 (enable_break): Likewise.
810 (svr4_relocate_section_addresses): Likewise.
812 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
815 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
816 sprintf. Simplify code and avoid loosing memory.
817 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
818 (call0_frame_cache): Remove && operator from end of line.
820 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
822 Fix libraries displacement if they change whether they were prelinked.
823 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
824 does not match. Comment why.
826 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
828 * corelow.c: Include wrapper.h.
829 (core_open): Call now gdb_target_find_new_threads.
830 * wrapper.c: Include target.h.
831 (gdb_target_find_new_threads): New.
832 * wrapper.h (gdb_target_find_new_threads): New declaration.
834 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
836 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
837 even if !TARGET_HAS_EXECUTION.
839 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
841 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
842 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
843 bfd_get_synthetic_symtab.
844 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
845 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
846 parameter parent, remove the call to add_separate_debug_objfile.
847 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
848 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
849 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
850 parent, new comment for it, call add_separate_debug_objfile for it.
851 (symbol_file_add_separate): Pass objfile as the parameter parent,
852 remove the call to add_separate_debug_objfile.
853 (symbol_file_add_from_bfd): New parameter parent, pass it.
854 (symbol_file_add): Pass NULL to the new parameter parent.
855 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
857 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
859 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
862 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
864 Fix Python access to inlined frames.
865 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
866 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
868 2011-04-15 Tom Tromey <tromey@redhat.com>
870 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
872 2011-04-15 Gary Benson <gbenson@redhat.com>
874 * MAINTAINERS: Add myself to write-after-approval section.
876 2011-04-14 Mike Frysinger <vapier@gentoo.org>
878 * remote-sim.c (sim_command_completer): New function.
879 (_initialize_remote_sim): Set completer to sim_command_completer.
881 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
883 * breakpoint.c (print_exception_catchpoint): Rename to ...
884 (print_it_exception_catchpoint): ... this.
885 (gnu_v3_exception_catchpoint_ops): Update with new name
886 for print_it_exception_catchpoint.
888 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
890 * MAINTAINERS: Add myself for write after approval privileges.
892 2011-04-13 Marek Polacek <mpolacek@redhat.com>
894 * MAINTAINERS: Add myself as a write-after-approval maintainer.
896 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
898 * breakpoint.c (watch_command_1): Remove colon from exp_string.
900 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
902 * breakpoint.c (save_breakpoints): Verify whether
903 breakpoint_ops.print_recreate is defined before calling it.
905 2011-04-11 Gary Benson <gbenson@redhat.com>
907 Fix failure with --enable-maintainer-mode.
908 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
910 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
913 * symtab.c (search_symbols): Reorder the KIND description in the
914 function comment. Remove the unused 4th element of types, types2,
915 types3 and types4. New gdb_assert on KIND.
916 (symtab_symbol_info): Remove the unused 4th element of classnames.
917 New gdb_assert on KIND.
918 * symtab.h (enum search_domain): New warning in the enum comment.
919 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
922 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
924 Fix crash of gdb save-index on a STABS file.
925 * dwarf2read.c (write_psymtabs_to_index): Return also on no
928 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
930 Fix DW_AT_accessibility compatibility with gcc-4.6+.
931 * dwarf2read.c: Include ctype.h.
932 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
934 (dwarf2_add_field): Fix new_field->accessibility by calling
935 dwarf2_default_access_attribute. Restructure setting accessibility
937 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
938 is_private and is_protected by calling
939 dwarf2_default_access_attribute.
941 2011-04-08 Kevin Buettner <kevinb@redhat.com>
943 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
944 to the initialization.
946 2011-04-08 Steve Ellcey <sje@cup.hp.com>
948 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
951 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
953 Remove support for old Cygwin 1.5 versions.
954 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
955 function on old Cygwin version.
956 * windows-nat.c: Remove cygwin version check and always define
957 __USEWIDE for Cygwin compilation.
959 2011-04-07 Yao Qi <yao@codesourcery.com>
961 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
963 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
964 (arm_copy_svc): Remove parameters INSN and TO.
965 (decode_svc_copro): Update caller.
966 * arm-tdep.h (struct displaced_step_closure): Remove parameters
967 from function pointer `copy_svc_os'.
969 2011-04-07 Yao Qi <yao@codesourcery.com>
971 * arm-tdep.c (cleanup_branch): Set a correct return address in
972 LR for ARM and Thumb.
974 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
977 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
978 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
979 in the function comment, a new note on values compatibility.
980 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
981 * symtab.h (SYMBOL_HASH_NEXT): New.
983 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
985 * ppc-linux-nat.c (check_condition): Add len output parameter.
986 Set it based on the memory region referenced in the condition
987 expression. Update all callers.
989 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
991 Fix crash regression on systems featuring .gdb_index.
992 * objfiles.c (free_objfile): Move the
993 forget_cached_source_info_for_objfile call earlier. Comment it.
994 Extend the comment for objfile_free_data.
996 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
998 Fix regression of displaying the debug format.
999 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
1002 2011-04-04 Tom Tromey <tromey@redhat.com>
1004 * cli/cli-interp.c (struct captured_execute_command_args):
1006 (do_captured_execute_command): Remove.
1007 (safe_execute_command): Use TRY_CATCH.
1008 * cli/cli-script.c (struct wrapped_read_command_file_args):
1010 (wrapped_read_command_file): Remove.
1011 (script_from_file): Use TRY_CATCH.
1012 * exceptions.c (catch_exception): Remove.
1013 * exceptions.h (catch_exception): Remove.
1014 (deprecated_throw_reason): Update comment.
1015 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
1016 argument to 'context'.
1017 (mi_execute_command): Use TRY_CATCH.
1018 * remote.c (struct start_remote_args): Remove.
1019 (remote_start_remote): Update; change arguments.
1020 (remote_open_1): Use TRY_CATCH.
1022 2011-04-04 Tom Tromey <tromey@redhat.com>
1024 * tracepoint.c (scope_info): Update.
1025 * symtab.c (decode_line_spec): Update.
1026 * python/python.c (gdbpy_decode_line): Update.
1027 * linespec.h (decode_line_1): Update.
1028 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
1029 (decode_compound, find_method, symtab_from_filename)
1030 (decode_variable): Likewise.
1031 * cli/cli-cmds.c (edit_command): Update.
1032 (list_command): Update.
1033 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
1035 (create_breakpoint): Update.
1036 (until_break_command): Update.
1037 (addr_string_to_sals): Update.
1038 (decode_line_spec_1): Update.
1040 2011-04-04 Tom Tromey <tromey@redhat.com>
1042 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
1043 (do_captured_parse_breakpoint): Remove.
1044 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
1045 Use TRY_CATCH directly.
1047 2011-04-04 Tom Tromey <tromey@redhat.com>
1049 * symtab.h (free_symtab): Remove.
1050 (forget_cached_source_info_for_objfile): Declare.
1051 * symmisc.c (free_symtab): Remove.
1052 * source.c (forget_cached_source_info_for_objfile): New function.
1053 (forget_cached_source_info): Use it.
1054 * objfiles.c (free_objfile): Simplify check before calling
1055 clear_current_source_symtab_and_line. Call
1056 forget_cached_source_info_for_objfile.
1058 2011-04-04 Tom Tromey <tromey@redhat.com>
1060 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
1061 (new_symtab): Don't set `free_code' on symtab.
1062 (new_linetable): Properly handle size==0.
1063 * symtab.h (struct symtab) <free_code, free_func>: Remove.
1064 * symmisc.c (free_symtab): Don't free the linetable. Don't call
1066 * jv-lang.c (struct jv_per_objfile_data): New.
1067 (jv_per_objfile_free): Free the data.
1068 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
1069 (get_java_class_symtab): Set the `dict' field on the
1070 jv_per_objfile_data.
1071 (free_class_block): Remove.
1072 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
1075 2011-04-04 Tom Tromey <tromey@redhat.com>
1077 * symfile.c (reread_symbols): Update.
1078 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
1080 * objfiles.c (allocate_objfile): Update.
1081 * cp-support.h (cp_check_possible_namespace_symbols): Don't
1083 * cp-namespace.c (lookup_symbol_file): Don't call
1084 lookup_possible_namespace_symbol.
1085 (initialize_namespace_symtab, get_possible_namespace_block)
1086 (free_namespace_block, cp_check_possible_namespace_symbols)
1087 (check_possible_namespace_symbols_loop)
1088 (check_one_possible_namespace_symbol)
1089 (lookup_possible_namespace_symbol): Remove.
1090 (maintenance_cplus_namespace): Replace with notice.
1091 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
1093 2011-04-04 Tom Tromey <tromey@redhat.com>
1095 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
1096 * symtab.h (struct symtab) <producer, debugformat>: Now const.
1097 * symmisc.c (free_symtab): Don't free debugformat.
1098 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
1099 (record_debugformat, record_producer): Document.
1100 * buildsym.c (end_symtab): Don't save debugformat and producer
1102 (end_symtab): Don't free debugformat and producer fields.
1103 (record_debugformat): Don't call xstrdup.
1104 (record_producer): Likewise.
1106 2011-04-04 Tom Tromey <tromey@redhat.com>
1108 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
1109 (source_line_charpos, source_charpos_line): Remove.
1111 2011-04-04 Tom Tromey <tromey@redhat.com>
1113 * symtab.h (domain_enum): Split in two...
1114 (enum search_domain): New.
1115 (search_symbols): Update.
1116 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
1117 redundant declarations.
1118 (search_symbols): Change 'kind' argument to search_domain.
1120 (print_symbol_info): Likewise.
1121 (symtab_symbol_info): Likewise.
1122 * symfile.h (struct quick_symbol_functions)
1123 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
1124 <expand_symtabs_matching>: Likewise.
1125 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
1126 (expand_symtabs_matching_via_partial): Update.
1127 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
1128 (dw2_expand_symtabs_for_function): Update.
1129 * block.h: Moved anonymous enum...
1130 * defs.h (enum block_enum): ... here. Now named.
1132 2011-04-03 Joel Brobecker <brobecker@adacore.com>
1134 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
1135 * version.in: Bump version to 7.3.50.20110403-cvs.
1137 2011-04-03 Joel Brobecker <brobecker@adacore.com>
1139 * NEWS: Create a new section for the next release branch.
1140 Rename the section of the current branch, now that it has
1143 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1145 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
1146 for "fpscr" in target description.
1148 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1150 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
1151 initialize it. Delay HASH initialization. Strip the part after open
1152 parenthesis for languages with qualifiers. Call do_cleanups.
1154 2011-04-01 Tom Tromey <tromey@redhat.com>
1156 * utils.c (report_command_stats): Don't print `-' for negative
1159 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
1161 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
1162 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
1165 2011-04-01 Joel Brobecker <brobecker@adacore.com>
1167 * breakpoint.h (bpdisp_text): Add declaration.
1168 * breakpoint.c (bpdisp_text): Make non-static.
1169 * ada-lang.c: #include "mi/mi-common.h".
1170 (print_it_exception): Rewrite to improve GDB/MI output.
1172 2011-04-01 Pedro Alves <pedro@codesourcery.com>
1174 * arm-tdep.h (struct address_space): Add forward declaration.
1176 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1178 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
1179 * arm-tdep.c (arm_override_mode): New global.
1180 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
1181 execution mode heuristics.
1182 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
1183 second single-step breakpoint if needed, using
1184 arm_insert_single_step_breakpoint.
1185 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
1186 ARM execution mode, do not call thumb_get_next_pc_raw.
1187 (arm_get_next_pc): Encode execution mode in return value. Call
1188 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
1189 (arm_insert_single_step_breakpoint): New function.
1190 (arm_software_single_step): Call it.
1191 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
1192 argument to return execution mode of sigreturn target.
1193 (arm_linux_syscall_next_pc): Use it.
1194 (arm_linux_copy_svc): Update call.
1195 (arm_linux_software_single_step): Call
1196 arm_insert_single_step_breakpoint.
1198 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1200 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
1203 2011-03-31 Tom Tromey <tromey@redhat.com>
1205 * varobj.c (update_dynamic_varobj_children): Properly handle
1206 errors from iterator.
1208 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1210 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
1211 struct linkage name twice.
1213 2011-03-31 Tom Tromey <tromey@redhat.com>
1215 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
1216 missing ">" to message.
1218 2011-03-31 Tom Tromey <tromey@redhat.com>
1220 * varobj.c (instantiate_pretty_printer): Remove duplicate
1223 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
1225 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
1226 if neither saved value nor register available (e.g. signal frame).
1228 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1230 * macroexp.c (expand): Avoid uninitialized variable
1233 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1235 * breakpoint.c (break_range_command): Fix typo in comment.
1237 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1238 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1240 Implement support for PowerPC BookE ranged breakpoints.
1241 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
1242 * breakpoint.h (struct bp_target_info) <length>: New member
1244 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
1245 instead of struct breakpoint as argument, and also add ASPACE
1246 and BP_ADDR arguments. Update all callers.
1247 (struct breakpoint_ops) <print_one_detail>: New method.
1248 (struct breakpoint) <addr_string_range_end>: New member variable.
1249 * breakpoint.c (breakpoint_location_address_match): Add function
1251 (insert_bp_location): Set bl->target_info.length.
1252 (breakpoint_here_p): Call breakpoint_location_address_match.
1253 (moribund_breakpoint_here_p): Likewise.
1254 (regular_breakpoint_inserted_here_p): Likewise.
1255 (breakpoint_thread_match): Likewise.
1256 (bpstat_stop_status): Likewise.
1257 (bpstat_check_location): Move call to
1258 breakpoint_ops.breakpoint_hit to the top.
1259 (print_one_breakpoint_location): Call
1260 breakpoint_ops.print_one_detail if available.
1261 (breakpoint_address_match_range): New function.
1262 (breakpoint_location_address_match): Likewise.
1263 (breakpoint_locations_match): Compare the length field of the
1265 (hw_breakpoint_used_count): Count resources used by all locations
1266 in a breakpoint, and use breakpoint_ops.resources_needed if
1268 (breakpoint_hit_ranged_breakpoint): New function.
1269 (resources_needed_ranged_breakpoint): Likewise.
1270 (print_it_ranged_breakpoint): Likewise.
1271 (print_one_ranged_breakpoint): Likewise.
1272 (print_one_detail_ranged_breakpoint): Likewise.
1273 (print_mention_ranged_breakpoint): Likewise.
1274 (print_recreate_ranged_breakpoint): Likewise.
1275 (ranged_breakpoint_ops): New structure.
1276 (find_breakpoint_range_end): New function.
1277 (break_range_command): Likewise.
1278 (delete_breakpoint): Free addr_string_range_end.
1279 (update_breakpoint_locations): Add SALS_END argument. Update
1280 all callers. Calculate breakpoint length if a non-zero SALS_END
1281 is given. Call breakpoint_locations_match instead of
1282 breakpoint_address_match.
1283 (reset_breakpoint): Find SaL of the end of the range if B is a
1285 (_initialize_breakpoint): Register break-range command.
1286 * defs.h (print_core_address): Add function prototype.
1287 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
1289 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
1290 (ppc_linux_remove_hw_breakpoint): Likewise.
1291 (_initialize_ppc_linux_nat): Initialize
1292 to_ranged_break_num_registers.
1293 * target.c (update_current_target): Add comment about
1294 to_ranged_break_num_registers.
1295 (target_ranged_break_num_registers): New function.
1296 * target.h (struct target_ops) <to_ranged_break_num_registers>:
1298 (target_ranged_break_num_registers): Add function prototype.
1299 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
1300 * utils.c (print_core_address): ... here.
1302 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
1304 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
1305 variable compiler warning.
1307 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
1309 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
1311 (re_set_breakpoint): ... to here ...
1312 (addr_string_to_sals): ... and here.
1314 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
1316 * Makefile.in (SFILES): Add missing C sources.
1317 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
1318 Add missing headers.
1320 2011-03-29 Mike Frysinger <vapier@gentoo.org>
1322 * .gitignore: New file.
1324 2011-03-29 Mike Frysinger <vapier@gentoo.org>
1326 * NEWS: Mention new cfi device simulation.
1328 2011-03-29 Tom Tromey <tromey@redhat.com>
1330 * dwarf2read.c (fixup_partial_die): Handle linkage name on
1331 otherwise anonymous types.
1332 (dwarf2_name): Likewise.
1333 * valops.c (value_struct_elt_for_reference): Refine artificial
1334 type logic. Call error if j==-1.
1336 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
1338 Fix false GCC warning.
1339 * infcall.c (find_function_addr): Initialize funaddr.
1341 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
1343 Fix mingw compilation with --enable-targets=all.
1344 * remote-mips.c (gdb_usleep.h): Include header.
1345 (mips_enter_debug): Use gdb_usleep instead of sleep.
1347 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1349 Support resolution of STT_GNU_IFUNC via breakpoints.
1350 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
1351 bp_gnu_ifunc_resolver_return.
1352 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
1353 the loop. Support bp_gnu_ifunc_resolver and
1354 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
1355 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
1357 (bptype_string, print_one_breakpoint_location): Support
1358 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
1359 (user_settable_breakpoint): Return true also for
1360 bp_gnu_ifunc_resolver.
1361 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
1362 bp_gnu_ifunc_resolver_return.
1363 (set_breakpoint_location_function): New parameter explicit_loc,
1364 describe it. Call find_pc_partial_function_gnu_ifunc with new
1365 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
1366 EXPLICIT_LOC is not set.
1367 (set_raw_breakpoint): Set EXPLICIT_LOC for
1368 set_breakpoint_location_function.
1369 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
1370 set_breakpoint_location_function.
1371 (mention): Support bp_gnu_ifunc_resolver and
1372 bp_gnu_ifunc_resolver_return.
1373 (add_location_to_breakpoint): Set EXPLICIT_LOC for
1374 set_breakpoint_location_function.
1375 (update_breakpoint_locations): Remove static.
1376 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
1377 bp_gnu_ifunc_resolver_return.
1378 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
1379 bp_gnu_ifunc_resolver_return.
1380 (update_breakpoint_locations): New declaration.
1381 * elfread.c: Include gdbthread.h and regcache.h.
1382 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
1384 (elf_gnu_ifunc_fns): Install them.
1385 * minsyms.c (stub_gnu_ifunc_resolver_stop)
1386 (stub_gnu_ifunc_resolver_return_stop): New functions.
1387 (stub_gnu_ifunc_fns): Install them.
1388 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
1389 and gnu_ifunc_resolver_return_stop.
1390 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
1392 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1394 STT_GNU_IFUNC reader implementation.
1395 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
1396 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
1397 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
1398 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
1399 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
1400 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
1401 (elf_gnu_ifunc_resolve_addr): New.
1402 (elf_symfile_read): Call elf_rel_plt_read.
1403 (elf_gnu_ifunc_fns): New.
1404 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
1405 Install elf_gnu_ifunc_fns.
1406 * infcall.c (find_function_return_type): New function.
1407 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
1408 * minsyms.c (stub_gnu_ifunc_resolve_addr)
1409 (stub_gnu_ifunc_resolve_name): New functions.
1410 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
1411 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
1412 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
1414 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1416 Code cleanup for later STT_GNU_IFUNC support.
1417 * infcall.c (find_function_addr): Remove variable code, use explicit
1418 dereferences for it. Move VALUE_TYPE initialization later.
1420 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1422 GDB find_pc_partial_function support for STT_GNU_IFUNC.
1423 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
1424 (clear_pc_function_cache): Clear it.
1425 (find_pc_partial_function): Rename to ...
1426 (find_pc_partial_function_gnu_ifunc): ... this function. New
1427 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
1428 (find_pc_partial_function): New wrapper for this function.
1429 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
1431 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1433 GDB internal type support for STT_GNU_IFUNC.
1434 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
1435 (elf_symtab_read): Set mst_text_gnu_ifunc for
1436 BSF_GNU_INDIRECT_FUNCTION.
1437 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
1438 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
1439 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
1440 nodebug_got_plt_symbol.
1441 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
1442 (TYPE_GNU_IFUNC): New.
1443 (struct main_type): New field flag_gnu_ifunc.
1444 (struct builtin_type): New field builtin_func_func.
1445 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
1446 nodebug_got_plt_symbol.
1447 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
1448 (in_gnu_ifunc_stub): New.
1449 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
1451 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
1452 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
1453 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
1455 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
1456 * symtab.c (search_symbols): Likewise.
1457 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
1458 and mst_slot_got_plt.
1459 (in_gnu_ifunc_stub): New declaration.
1461 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1463 Support a ring of related breakpoints.
1464 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
1465 other functions, add gdb_assert.
1466 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
1467 watchpoint_del_at_next_stop.
1468 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
1469 (bpstat_stop_status): Handle ring in related_breakpoint.
1470 (set_raw_breakpoint_without_location): Initialize ring in
1472 (delete_breakpoint): Handle ring in related_breakpoint, use
1473 watchpoint_del_at_next_stop.
1474 (map_breakpoint_numbers): Handle ring in related_breakpoint.
1476 2011-03-28 Tom Tromey <tromey@redhat.com>
1479 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
1480 with `language_minimal'.
1482 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
1484 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
1485 instead of checking for STT_ARM_TFUNC symbol type.
1487 2011-03-25 Tom Tromey <tromey@redhat.com>
1489 * linespec.c (symbol_found): Restore line-based result for
1490 non-LOC_LABEL symbols.
1492 2011-03-25 Kai Tietz <ktietz@redhat.com>
1494 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
1495 instead of strcmp for comparison.
1496 (tui_source_is_displayed): Likewise.
1497 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
1499 2011-03-24 Mark Wielaard <mjw@redhat.com>
1501 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
1503 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
1504 (find_partial_die_in_comp_unit): Likewise in comment.
1505 (read_attribute_value): Likewise.
1506 (lookup_die_type): Likewise.
1507 (dwarf_form_name): Likewise.
1508 (dump_die_shallow): Likewise.
1509 (follow_die_ref_or_sig): Likewise.
1511 2011-03-24 Tom Tromey <tromey@redhat.com>
1513 PR breakpoints/11816:
1514 * linespec.c (decode_line_1): Parse `function:label' linespecs.
1515 (decode_compound): Update.
1516 (find_function_symbol): New function.
1517 (decode_dollar): Update.
1518 (decode_label): Add 'function_symbol' parameter. Handle
1519 function-relative labels.
1520 (decode_variable): Update.
1521 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
1522 not its line. Set `special_display' and canonical name for
1525 2011-03-24 Tom Tromey <tromey@redhat.com>
1527 * linespec.h (struct linespec_result) <special_display>: New
1529 * breakpoint.h (struct breakpoint) <display_canonical>: New
1531 * breakpoint.c (print_breakpoint_location): Respect
1533 (create_breakpoint_sal): Add 'display_canonical' parameter.
1534 (create_breakpoints_sal): Update.
1535 (create_breakpoint): Update.
1537 2011-03-24 Tom Tromey <tromey@redhat.com>
1539 * symtab.c (decode_line_spec): Update.
1540 * linespec.c (build_canonical_line_spec): Change type of
1542 (decode_line_2, decode_line_1, decode_objc, decode_compound)
1543 (find_method, decode_all_digits, decode_dollar, decode_label)
1544 (symbol_found): Likewise.
1545 (init_linespec_result): New function.
1546 * breakpoint.c (struct captured_parse_breakpoint_args)
1547 <canonical_p>: New field, replaces addr_string_p.
1548 (create_breakpoints_sal): Add 'canonical' parameter, replacing
1550 (parse_breakpoint_sals): Likewise.
1551 (do_captured_parse_breakpoint): Update.
1552 (create_breakpoint): Use struct linespec_result.
1553 (until_break_command): Update.
1554 (breakpoint_re_set_one): Update.
1555 (decode_line_spec_1): Update.
1556 * linespec.h (struct linespec_result): New.
1557 (init_linespec_result): Declare.
1559 2011-03-23 Pedro Alves <pedro@codesourcery.com>
1561 * regcache.c (regcache_raw_read): If the target didn't supply a
1562 given raw register, mark it as unavailable.
1564 2011-03-23 Kai Tietz <ktietz@redhat.com>
1566 * breakpoint.c (clear_command): Use filename_cmp
1567 instead of strcmp for comparison.
1568 * buildsym.c (watch_main_source_file_lossage): Likewise.
1569 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
1570 checking just for slash.
1571 * dbxread.c (read_dbx_symtab): Use lbasename instead of
1572 strrchr and filename_cmp instead of strcmp for filenames.
1573 (add_old_header_file): Use filename_cmp
1574 instead of strcmp for comparison.
1575 * exec.c (exec_set_section_address): Likewise.
1576 * macrotab.c (macro_lookup_inclusion): Likewise.
1577 (macro_lookup_inclusion): Likewise.
1578 * elfread.c (_initialize_elfread): Likewise.
1579 (elfstab_offset_sections): Likewise.
1580 (elfstab_offset_sections): Use lbasename instead of
1582 * mdebugread.c (parse_partial_symbols): Likewise.
1583 (arse_partial_symbols): Use filename_(n)cmp instead of
1584 str(n)cmp for comparison.
1585 * minsyms.c (lookup_minimal_symbol): Likewise.
1586 * psymtab.c (read_psymtabs_with_filename): Likewise.
1587 * solib.c (solib_read_symbols): Likewise.
1588 (reload_shared_libraries_1): Likewise.
1589 * symmisc.c (maintenance_print_symbols): Likewise.
1590 * symfile.c (separate_debug_file_exists): Likewise.
1591 (reread_symbols): Likewise.
1592 (find_separate_debug_file_by_debuglink): Likewise.
1593 * remote-fileio.c (remote_fileio_func_rename): Likewise.
1594 * source.c (add_path): Likewise.
1595 * symtab.c (filename_seen): Likewise.
1596 (file_matches): Likewise.
1597 (print_symbol_info): Likewise.
1598 (maybe_add_partial_symtab_filename): Likewise.
1599 (make_source_files_completion_list): Likewise.
1600 * xml-syscall.c (init_sysinfo): Likewise.
1601 * windows-nat.c (_initialize_check_for_gdb_ini): Use
1602 IS_DIR_SEPARATOR for checking for trailing path separator.
1604 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1606 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
1607 label abort_expression.
1608 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
1609 DWARF_VALUE_OPTIMIZED_OUT.
1611 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1614 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
1615 to linkage_name. Invert its value. Update the function comment.
1616 (c_type_print_varspec_suffix): Invert it at the caller.
1617 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
1619 2011-03-22 Pedro Alves <pedro@codesourcery.com>
1621 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
1622 errors when reading the `stop_pc'.
1623 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
1626 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
1628 * NEWS: Document gdb.Write stream keyword.
1630 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1633 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1634 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
1635 (dwarf2_add_field): Fix new_field->accessibility for
1636 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
1638 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
1642 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
1643 other error classes. Do not print stack trace.
1645 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1647 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
1648 (dwarf2_add_field): Fix new_field->accessibility for
1649 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
1651 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
1653 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
1654 encountering a load via a non-SP register.
1656 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
1658 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
1659 field in returned unwinder.
1661 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1663 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
1665 2012-03-21 Joel Brobecker <brobecker@adacore.com>
1667 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
1670 2012-03-18 Pedro Alves <pedro@codesourcery.com>
1672 * frame.c (frame_unwind_register): Throw an error if unwinding the
1674 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
1675 an unwind stop reason.
1676 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
1677 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
1678 UNWIND_UNAVAILABLE>: New.
1679 * inline-frame.c (inline_frame_unwind): Install
1680 default_frame_unwind_stop_reason.
1681 * frame-unwind.c: Include "exceptions.h".
1682 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
1683 (default_frame_unwind_stop_reason): New.
1684 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
1685 (default_frame_unwind_stop_reason): Declare.
1686 (struct frame_unwind) <stop_reason>: New function pointer.
1688 * dummy-frame.c: Install default_frame_unwind_stop_reason.
1689 * dwarf2-frame.c: Include exceptions.h.
1690 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
1691 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
1692 computing the CFA. If such an error was thrown, set
1693 unavailable_retaddr.
1694 (dwarf2_frame_unwind_stop_reason): New.
1695 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
1697 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
1698 (dwarf2_signal_frame_unwind): Ditto.
1700 * amd64-tdep.c: Include "exceptions.h".
1701 (struct amd64_frame_cache): New field "base_p".
1702 (amd64_init_frame_cache): Clear it.
1703 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
1704 Avoid reading registers with functions that throw if the register
1705 is not necessary to compute the frame base.
1706 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
1707 swallowing NOT_AVAILABLE_ERROR.
1708 (amd64_frame_unwind_stop_reason): New.
1709 (amd64_frame_this_id): Don't build a frame id if the frame base
1711 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
1712 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1713 base_p if the frame base was computable.
1714 (amd64_sigtramp_frame_unwind_stop_reason): New.
1715 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
1716 frame base was unavailable.
1717 (amd64_sigtramp_frame_unwind): Install
1718 amd64_sigtramp_frame_unwind_stop_reason.
1719 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1720 base_p if the frame base was computable.
1721 (amd64_epilogue_frame_unwind_stop_reason): New.
1722 (amd64_epilogue_frame_this_id): Don't build a frame id if the
1723 frame base was unavailable.
1724 (amd64_epilogue_frame_unwind): Install
1725 amd64_epilogue_frame_unwind_stop_reason.
1726 * i386-tdep.c: Include "exceptions.h".
1727 (struct i386_frame_cache): New field "base_p".
1728 (i386_init_frame_cache): Clear it.
1729 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
1730 Avoid reading registers with functions that throw if the register
1731 is not necessary to compute the frame base.
1732 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
1733 swallowing NOT_AVAILABLE_ERROR.
1734 (i386_frame_unwind_stop_reason): New.
1735 (i386_frame_this_id): Don't build a frame id if the frame base was
1737 (i386_frame_prev_register): Handle unavailable SP.
1738 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
1739 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1740 base_p if the frame base was computable.
1741 (i386_epilogue_frame_unwind_stop_reason): New.
1742 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
1743 base was unavailable.
1744 (i386_epilogue_frame_unwind): Install
1745 i386_epilogue_frame_unwind_stop_reason.
1746 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1747 base_p if the frame base was computable.
1748 (i386_sigtramp_frame_unwind_stop_reason): New.
1749 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
1750 base was unavailable.
1751 (i386_sigtramp_frame_unwind): Install
1752 i386_sigtramp_frame_unwind_stop_reason.
1753 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
1754 type's size, not the register's.
1755 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
1757 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
1758 default_frame_unwind_stop_reason.
1759 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
1760 (alpha_heuristic_frame_unwind): Ditto.
1761 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
1762 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
1763 * avr-tdep.c (avr_frame_unwind): Ditto.
1764 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
1766 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
1767 * frv-tdep.c (frv_frame_unwind): Ditto.
1768 * h8300-tdep.c (h8300_frame_unwind): Ditto.
1769 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
1770 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
1771 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
1772 (hppa_stub_frame_unwind): Ditto.
1773 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
1774 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
1775 (ia64_libunwind_frame_unwind)
1776 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
1777 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
1778 * lm32-tdep.c (lm32_frame_unwind): Ditto.
1779 * m32c-tdep.c (m32c_unwind): Ditto.
1780 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
1781 * m32r-tdep.c (m32r_frame_unwind): Ditto.
1782 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
1783 * m68k-tdep.c (m68k_frame_unwind): Ditto.
1784 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
1785 * m88k-tdep.c (m88k_frame_unwind): Ditto.
1786 * mep-tdep.c (mep_frame_unwind): Ditto.
1787 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
1788 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
1789 (mips_stub_frame_unwind): Ditto.
1790 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
1791 * moxie-tdep.c (moxie_frame_unwind): Ditto.
1792 * mt-tdep.c (mt_frame_unwind): Ditto.
1793 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
1794 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
1795 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
1796 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
1797 (s390_sigtramp_frame_unwind): Ditto.
1798 * score-tdep.c (score_prologue_unwind): Ditto.
1799 * sh-tdep.c (sh_frame_unwind): Ditto.
1800 * sh64-tdep.c (sh64_frame_unwind): Ditto.
1801 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
1802 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
1803 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
1804 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
1805 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
1806 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
1807 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
1808 (sparc64obsd_trapframe_unwind): Ditto.
1809 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
1810 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
1811 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
1812 * v850-tdep.c (v850_frame_unwind): Ditto.
1813 * vax-tdep.c (vax_frame_unwind): Ditto.
1814 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
1815 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
1816 * xtensa-tdep.c (xtensa_unwind): Ditto.
1818 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1820 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
1821 there's always a frame. Use get_frame_pc_if_available instead of
1822 get_frame_pc, and if there's no PC available, don't look up a
1825 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1827 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
1830 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1832 * tracepoint.c (set_traceframe_context): Handle unavailable PC
1835 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1837 * frame.h (frame_unwind_caller_pc_if_available): Declare.
1838 * frame.c (frame_unwind_caller_pc_if_available): New.
1839 * stack.c (frame_info): Handle unavailable PC.
1841 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1843 * frame.c (frame_unwind_pc): Rename to ...
1844 (frame_unwind_pc_if_available): ... this. New `pc' output
1845 parameter. Change return type to int. Gracefully handle
1846 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
1847 happened, or 1 otherwise.
1848 (frame_unwind_pc): Reimplement on top of
1849 frame_unwind_pc_if_available.
1850 (get_frame_func): Rename to ...
1851 (get_frame_func_if_available): New `pc' output parameter. Change
1852 return type to int. Gracefully handle the PC not being available.
1853 (get_frame_func): Reimplement on top of
1854 get_frame_func_if_available.
1855 (select_frame): Handle the PC being unavailable.
1856 (get_prev_frame): Handle the PC being unavailable.
1857 (get_frame_pc_if_available): New.
1858 (get_frame_address_in_block_if_available): New.
1859 (find_frame_sal): Handle the frame PC not being available.
1860 * frame.h (get_frame_pc_if_available): Declare.
1861 (get_frame_address_in_block_if_available): Declare.
1862 (get_frame_func_if_available): Declare.
1863 * stack.c (print_frame_info): Handle the PC being unavailable.
1864 (find_frame_funname): Ditto.
1865 (print_frame): Handle the PC being unavailable.
1866 (get_frame_language): Ditto.
1867 * blockframe.c (get_frame_block): Ditto.
1868 * macroscope.c (default_macro_scope): Ditto.
1869 * tui/tui-stack.c (tui_show_frame_info): Ditto.
1871 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1873 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
1874 NOT_AVAILABLE_ERROR when evaluating the location expression.
1876 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1878 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
1879 returning that the register piece is unavailable/optimized out.
1880 (write_pieced_value): Handle get_frame_register_bytes returning
1881 that the register piece is unavailable/optimized out when doing a
1882 read-modify write of a bitfield.
1883 * findvar.c (value_from_register): Handle get_frame_register_bytes
1884 returning that the register piece is unavailable/optimized out.
1885 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
1886 and `unavailablep'. Throw error on bad debug info. Use
1887 frame_register instead of frame_register_read, to fill in the new
1889 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
1891 * valops.c: (value_assign): Adjust, and handle
1892 get_frame_register_bytes failing.
1893 * spu-tdep.c: Include exceptions.h.
1894 (spu_software_single_step): Adjust, and handle
1895 get_frame_register_bytes failing.
1896 (spu_get_longjmp_target): Ditto.
1897 * gdbarch.sh (register_to_value): Change to return int. New
1898 parameters `optimizedp' and `unavailablep'.
1899 * gdbarch.h, gdbarch.c: Regenerate.
1900 * i386-tdep.c (i386_register_to_value): Adjust to new
1901 gdbarch_register_to_value interface.
1902 * i387-tdep.c (i387_register_to_value): Ditto.
1903 * i387-tdep.h (i387_register_to_value): Ditto.
1904 * alpha-tdep.c (alpha_register_to_value): Ditto.
1905 * ia64-tdep.c (ia64_register_to_value): Ditto.
1906 * m68k-tdep.c (m68k_register_to_value): Ditto.
1907 * mips-tdep.c (mips_register_to_value): Ditto.
1908 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
1910 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1912 * findvar.c (value_of_register): Mark the value as unavailable, if
1913 the register is unavailable.
1914 * frame.h (frame_register_unwind): New `unavailablep' parameter.
1915 (frame_register): New `unavailablep' parameter.
1916 (frame_register_read): Update comment.
1917 * frame.c (frame_register_unwind): New `unavailablep' parameter.
1918 Set it if the register is unavailable. If the register is
1919 unavailable, clear the output buffer.
1920 (frame_register): New `unavailablep' parameter. Pass it down.
1921 (frame_unwind_register): Adjust.
1922 (put_frame_register): Adjust.
1923 (frame_register_read): Adjust. Also return false if the register
1925 (frame_register_unwind_location): Adjust.
1926 * sentinel-frame.c (sentinel_frame_prev_register): If the register
1927 is unavailable, mark the value accordingly.
1928 * stack.c (frame_info): Handle unavailable registers.
1930 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1932 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
1933 simplify, using regcache_cooked_read.
1935 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1937 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
1938 (regcache_raw_read_unsigned, regcache_raw_read_signed)
1939 (regcache_raw_read_unsigned, regcache_raw_read_part)
1940 (regcache_cooked_read, regcache_cooked_read_signed)
1941 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
1942 (regcache_cooked_read_ftype): Change return to enum
1944 * regcache.c: Include exceptions.h
1945 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
1946 (do_cooked_read): Change return to enum register_status. Always
1947 forward to regcache_cooked_read.
1948 (regcache_raw_read): Change return to enum register_status. If
1949 the register is not REG_VALID, memset the buffer. Return the
1951 (regcache_raw_read_signed): Handle non-REG_VALID registers and
1952 return the register's status.
1953 (regcache_raw_read_unsigned): Ditto.
1954 (regcache_cooked_read): Change return to enum register_status.
1955 Assert that with read-only regcaches, the register's status must
1956 be known. If the regcache is read-only, and the register is not
1957 REG_VALID, memset the buffer. Return the register's status.
1958 (regcache_cooked_read_signed): Change return to enum
1959 register_status. Handle non-REG_VALID registers and return the
1961 (regcache_cooked_read_unsigned): Change return to enum
1962 register_status. Handle non-REG_VALID registers and return the
1964 (regcache_xfer_part, regcache_raw_read_part)
1965 (regcache_cooked_read_part): Change return to enum
1966 register_status. Return the register's status.
1967 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
1969 (regcache_dump): Handle unavailable cooked registers.
1970 * frame.c (do_frame_register_read): Adjust interface to match
1971 regcache_cooked_read_ftype.
1972 * gdbarch.sh (pseudo_register_read): Change return to enum
1974 * gdbarch.h, gdbarch.c: Regenerate.
1976 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
1978 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
1979 register_status. If reading a raw register indicates the raw
1980 register is not valid, return the raw register's status,
1981 otherwise, return REG_VALID.
1982 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
1983 register_status. Handle non-REG_VALID raw registers and return
1984 the register's status.
1985 * arm-tdep.c (arm_neon_quad_read)
1986 (arm_pseudo_read): Change return to enum register_status. Handle
1987 non-REG_VALID raw registers and return the register's status.
1988 * avr-tdep.c (avr_pseudo_register_read): Ditto.
1989 * frv-tdep.c (frv_pseudo_register_read): Ditto.
1990 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
1991 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
1992 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
1994 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
1995 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
1996 (m32c_part_write, m32c_cat_read, m32c_cat_write)
1997 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
1998 (m32c_pseudo_register_read): Change return to enum
1999 register_status. Adjust.
2000 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
2001 enum register_status. Return the register's status.
2002 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
2003 register_status. Return the register's status.
2004 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
2005 * mips-tdep.c (mips_pseudo_register_read): Ditto.
2006 * mt-tdep.c (mt_pseudo_register_read): Ditto.
2007 * rs6000-tdep.c (move_ev_register_func): New typedef.
2008 (e500_move_ev_register): Use it. Change return to enum
2009 register_status. Return the register's status.
2010 (do_regcache_raw_read): New function.
2011 (do_regcache_raw_write): New function.
2012 (e500_pseudo_register_read): Change return to enum
2013 register_status. Return the register's status. Use
2014 do_regcache_raw_read.
2015 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
2016 (dfp_pseudo_register_read): Change return to enum register_status.
2017 Return the register's status.
2018 (vsx_pseudo_register_read): Ditto.
2019 (efpr_pseudo_register_read): Ditto.
2020 (rs6000_pseudo_register_read): Ditto.
2021 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
2022 register_status. Return the register's status.
2023 * sh64-tdep.c (pseudo_register_read_portions): New function.
2024 (sh64_pseudo_register_read): Change return to enum
2025 register_status. Use pseudo_register_read_portions. Return the
2027 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
2028 register_status. Return the register's status.
2029 * sh-tdep.c (pseudo_register_read_portions): New function.
2030 (sh_pseudo_register_read): Change return to enum register_status.
2031 Use pseudo_register_read_portions. Return the register's status.
2032 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
2033 enum register_status. Return the register's status.
2034 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
2035 * spu-tdep.c (spu_pseudo_register_read_spu)
2036 (spu_pseudo_register_read): Ditto.
2037 * xtensa-tdep.c (xtensa_register_read_masked)
2038 (xtensa_pseudo_register_read): Ditto.
2039 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
2041 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2043 * python/py-value.c (valpy_getitem): Fix formatting of error function
2046 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2048 ARI fixes: Add missing internationalization markups throughout
2050 * darwin-nat-info.c: Ditto.
2053 * mi/mi-main.c: Ditto.
2055 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2057 ARI fixes: Add missing internationalization markups throughout
2060 * cp-name-parser.y: Ditto.
2063 * objc-exp.y: Ditto.
2066 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2068 ARI fixes: Messages should have no trailing new lines.
2069 * darwin-nat.c (mach_check_error): Remove trailing new line from
2070 warning function call message.
2071 * record.c (bfdcore_read): Idem for error call.
2073 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2075 * common/signals.c (target_signal_from_host): Add _ markup to error
2076 function call message.
2077 (target_signal_to_host): Add _ markup and remove trailing new line
2078 from warning call message.
2079 (target_signal_from_command): Add _ markup to error function call
2082 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
2086 * python/python.c (gdbpy_write): Accept a stream argument and
2087 operate to the appropriate stream.
2088 (gdbpy_flush): Likewise.
2089 (_initialize_python): Add stream constants.
2090 (finish_python_initialization): Add GdbOutputErrorFile class.
2092 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
2094 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2096 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
2098 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
2099 to store_signed_integer. Add debug message when relocating CALL
2100 instructions. Fix formatting of debug message.
2101 * i386-tdep.c (i386_relocate_instruction): Ditto.
2103 2011-03-17 Joel Brobecker <brobecker@gnat.com>
2105 * target.h (struct target_ops): Remove to_lookup_symbol field.
2106 (target_lookup_symbol): Delete macro.
2107 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
2108 (update_current_target, setup_target_debug): Remove handling
2109 of to_lookup_symbol target_ops field.
2110 * ada-tasks.c (get_known_tasks_addr): Remove use of
2111 target_lookup_symbol.
2112 * coffread.c (coff_symtab_read): Likewise.
2113 * dbxread.c (read_dbx_symtab): Ditto.
2115 2011-03-17 Joel Brobecker <brobecker@gnat.com>
2118 * configure.ac: Add getthrds declaration check.
2119 * configure, config.in: Regenerate.
2120 * aix-thread.c (getthrds): Declare only if not already declared
2121 in procinfo.h. More declaration out of get_signaled_thread to
2124 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
2126 * python/py-symtab.c: Populate symtab_object_methods,
2128 (stpy_is_valid): New function.
2129 (salpy_is_valid): Ditto.
2130 * python/py-symbol.c: Declare symbol_object_methods. Populate.
2131 (sympy_is_valid): New function.
2132 * python/py-objfile.c: Declare objfile_object_methods. Populate.
2133 (objfpy_is_valid): New function.
2134 * python/py-inferior.c: Populate inferior_object_methods.
2135 (infpy_is_valid): New function.
2136 * python/py-infthread.c: Populate thread_object_methods.
2137 (thpy_is_valid): New function.
2138 * python/py-block.c: Declare block_object_methods. Populate. Declare
2139 block_iterator_object_methods. Populate.
2140 (blpy_is_valid): New function.
2141 (blpy_iter_is_valid): Ditto.
2143 2011-03-16 Keith Seitz <keiths@redhat.com>
2145 * linespec.c (find_methods): Canonicalize NAME before looking
2147 (name_end): New function.
2148 (keep_name_info): New function.
2149 (decode_line_1): Use keep_name_info.
2150 (decode_compound): Likewise.
2151 * cli/cli-utils.h (remove_trailing_whitespace): New function.
2152 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
2155 * linespec.c (locate_first_half): Keep overload information, too.
2156 (decode_compound): Use a string to represent break characters
2158 If P points to a break character, do not increment it.
2159 For C++ and Java, keep overload information and relevant keywords.
2160 If we cannot find a symbol, search the minimal symbols.
2163 * linespec.c (decode_compound): Rename SAVED_ARG to
2165 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
2167 Pass a valid block to lookup_symbol.
2168 (lookup_prefix_sym): Likewise.
2169 (find_method): Construct search name based on SYM_CLASS instead
2171 * psymtab.c (lookup_partial_symbol): Add language parameter.
2172 (lookup_symbol_aux_psymtabs): Likewise.
2173 Don't assume that the psymtab we found was the right one. Search
2174 for the desired symbol in the symtab to be certain.
2175 (psymtab_search_name): New function.
2176 (lookup_partial_symbol): Use psymtab_search_name.
2177 Add language parameter.
2178 (read_symtabs_for_function): Add language parameter and pass to
2179 lookup_partial_symbol.
2180 (find_symbol_file_from_partial): Likewise.
2182 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
2185 * dwarf2read.c (noop_record_line): New function.
2186 (dwarf_decode_lines): Ignore line tables for GCd functions.
2188 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
2190 Fix ARI warnings about new lines at the end of messages, which
2191 are unneeded as there is a new line added at the end of the message
2193 * darwin-nat.c (darwin_stop_inferior): Ditto.
2194 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
2195 * dfp.c (decimal_to_number): Ditto.
2196 * exec.c (print_section_info): Ditto.
2197 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
2198 * osdata.c (get_osdata): Ditto.
2199 * record.c (bfdcore_write): Ditto.
2200 * remote-mips.c (mips_readchar): Ditto.
2201 * remote.c (read_ptid): Ditto.
2202 * ser-mingw.c (ser_windows_raw): Ditto.
2203 * tracepoint.c (add_local_symbols): Ditto.
2204 * windows-nat.c (fake_create_process): Ditto.
2206 2011-03-16 Tom Tromey <tromey@redhat.com>
2208 * tracepoint.c (stop_tracing): Don't declare.
2209 * event-top.c (after_char_processing_hook): Add `(void)'.
2211 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
2213 * NEWS: Add Parameter sub-classing description.
2215 2011-03-16 Kai Tietz <ktietz@redhat.com>
2217 * MAINTAINERS: Update my e-mail address.
2219 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
2221 * MAINTAINERS: Add myself for write after approval privileges.
2223 2011-03-15 Michael Snyder <msnyder@vmware.com>
2225 * frame.c (find_frame_sal): Assert sym is not null.
2227 * dbxread.c (process_one_symbol): Assert 'name' is not null.
2229 * objc-lang.c (selectors_info): Check strchr for null result.
2231 * stabsread.c (define_symbol): Guard against bad stabstring input.
2233 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2235 Remove trailing spaces and tabulations from pascal language
2240 p-valprint.c: Ditto.
2242 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2244 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
2245 than LOW. Comment it.
2246 (read_partial_die): Call complaint for inappropriate zero LOWPC or
2247 HIGHPC not strictly higher than LOWPC.
2249 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2251 Fix formatting of function declarations returning a pointer in
2253 * varobj.c (varobj_add_child): Ditto.
2254 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
2255 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
2257 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
2259 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
2260 for the "generic" vector ABI used with GCC 4.3 and later.
2261 (ppc64_sysv_abi_return_value): Likewise.
2263 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
2265 * infcall.c (call_function_by_hand): Function return value is
2266 always a non_lval, even when using struct_return.
2268 2011-03-15 Pedro Alves <pedro@codesourcery.com>
2270 * printcmd.c (ALL_DISPLAYS_SAFE): New.
2271 (map_display_numbers): New.
2272 (do_delete_display): New.
2273 (undisplay_command): Use map_display_numbers.
2274 (do_enable_disable_display): New.
2275 (enable_disable_display_command): New function.
2276 (enable_display): Delete.
2277 (enable_display_command): New.
2278 (disable_display_command): Reimplement.
2279 (_initialize_printcmd): Adjust "enable display" command to use
2280 `enable_display_command' as callback.
2282 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2284 * NEWS: Add Python breakpoint 'stop' operation.
2286 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2288 * NEWS: Delete duplicate entry. Fix typo.
2290 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
2292 Fix ARI warning about function names in first column.
2293 Put prototype declaration on same line as return type.
2294 * objc-exp.y: Ditto.
2296 * python/py-stopevent.h: Ditto.
2297 For long function names, split parameters to
2298 allow function name on same line as return type.
2299 * solib-pa64.c: Ditto.
2302 For long function declaration, use single line.
2303 * hppa-tdep.h: Ditto.
2304 * inferior.h: Ditto.
2306 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2308 * python/python.h: Declare gdbpy_should_stop and
2309 gdbpy_breakpoint_has_py_cond.
2310 * python/python.c: Add python.h to includes. Remove python.h from
2311 HAVE_PYTHON definition
2312 (gdbpy_should_stop): New dummy function.
2313 (gdbpy_breakpoint_has_py_cond): New dummy function.
2314 * python/py-breakpoint.c (bppy_init): Rewrite to allow
2315 sub-classing capabilities.
2316 (gdbpy_should_stop): New function.
2317 (gdbpy_breakpoint_has_py_cond): New function.
2318 (local_setattro): New function.
2319 * breakpoint.c (condition_command): Add check for Python 'stop'
2321 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
2322 operation function as part of stop/continue tests.
2324 2011-03-14 Tom Tromey <tromey@redhat.com>
2327 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
2328 (needs_frame_dwarf_call): Likewise.
2330 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
2332 Fix ARI warning about functions without parameters that do not
2334 * breakpoint.c (all_tracepoints): Replace () by (void).
2335 * f-exp.y (match_string_literal): Ditto.
2337 * m2-exp.y (yylex): Ditto.
2338 * mep-tdep.c (current_me_module): Ditto.
2339 (current_options): Ditto.
2340 (current_cop_data_bus_width): Ditto.
2341 (current_cr_names): Ditto.
2342 (current_cr_is_float): Ditto.
2343 (current_ccr_names): Ditto.
2344 * objc-exp.y (yylex): Ditto.
2345 * p-exp.y (yylex): Ditto.
2346 * remote.c (send_interrupt_sequence): Ditto.
2347 * tracepoint.c (current_trace_status): Ditto.
2348 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
2349 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
2351 2011-03-11 Michael Snyder <msnyder@vmware.com>
2353 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
2354 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
2355 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
2356 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
2357 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
2359 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
2360 (delete_async_event_handler): Ditto.
2362 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
2364 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
2366 * top.c (set_verbose): Assert showcmd was found.
2368 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
2370 * xtensa-tdep.c (warning_once): Correct style issues.
2372 2011-03-11 Yao Qi <yao@codesourcery.com>
2374 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
2376 2011-03-11 Andreas Schwab <schwab@redhat.com>
2378 * common/aclocal.m4: Remove.
2380 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
2382 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
2383 (xtensa_write_register, xtensa_read_register): Likewise.
2384 (xtensa_hextochar): Removed.
2385 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
2387 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
2389 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
2390 (xtensa_call0_frame_cache_t): Update comments. New fields added.
2391 (xtensa_alloc_frame_cache): Add initialization for new fields.
2392 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
2393 (warning_once): New function.
2394 (xtensa_insn_kind): New item c0opc_and.
2395 (call0_classify_opcode): Add the case for AND instruction.
2396 (call0_track_op): Change arguments. New local variable litbase.
2397 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
2398 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
2400 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
2401 (call0_analyze_prologue): Update the comments. Change arguments.
2402 Add the variety of updates to handle extended prologues, which now can
2403 conduct dynamic stack adjustments.
2404 (call0_frame_cache): Likewise.
2405 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
2406 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
2408 2011-03-10 Michael Snyder <msnyder@vmware.com>
2410 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
2411 (cmd_qtframe): Ditto.
2412 (cmd_qtbuffer): Ditto.
2413 (cmd_bigqtbuffer): Ditto.
2415 2011-03-10 Tom Tromey <tromey@redhat.com>
2417 * tracepoint.c (trace_actions_command): Update.
2418 * thread.c (thread_apply_command): Update.
2419 * reverse.c (delete_bookmark_command): Update.
2420 (bookmarks_info): Update.
2421 * printcmd.c (undisplay_command): Update.
2422 * memattr.c (mem_enable_command): Update.
2423 (mem_disable_command): Update.
2424 (mem_delete_command): Update.
2425 * inferior.c (detach_inferior_command): Update.
2426 (kill_inferior_command): Update.
2427 (remove_inferior_command): Update.
2428 * cli/cli-utils.h (struct get_number_or_range_state): New.
2429 (init_number_or_range): Declare.
2430 (get_number_or_range): Update.
2431 * cli/cli-utils.c (init_number_or_range): New function.
2432 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
2434 (number_is_in_list): Update.
2435 * breakpoint.h (get_tracepoint_by_number): Update.
2436 * breakpoint.c (map_breakpoint_numbers): Update for change to
2437 get_number_or_range.
2438 (find_location_by_number): Use get_number, not
2439 get_number_or_range.
2440 (trace_pass_set_count): New function.
2441 (trace_pass_command): Update for change to get_number_or_range.
2443 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
2446 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
2448 * python/py-param.c (add_setshow_generic): Add set/show callback
2449 parameters. Register Python object context.
2450 (get_show_value): New function.
2451 (get_set_value): New function.
2452 (call_doc_function): New function.
2453 (get_doc_string): Move behind get_show_value/get_set_value.
2455 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
2457 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
2459 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
2461 * xtensa-tdep.c (xtensa_read_register): Add comment.
2462 (xtensa_write_register): Likewise.
2463 (xtensa_hextochar): Add comment and update to match coding conventions.
2464 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
2465 (execute_l32e, execute_s32e, execute_code): Update comments.
2466 (xtensa_exception_handler_t): Update to match coding conventions.
2467 (xtensa_insn_kind): Likewise.
2469 2011-03-09 Michael Snyder <msnyder@vmware.com>
2471 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
2473 2011-03-09 Pedro Alves <pedro@codesourcery.com>
2475 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
2477 2011-03-09 Tom Tromey <tromey@redhat.com>
2479 * thread.c (restore_selected_frame): Handle frame_level == -1.
2480 (make_cleanup_restore_current_thread): Use
2481 get_selected_frame_if_set.
2482 * frame.h (get_selected_frame_if_set): Declare.
2483 * frame.c (get_selected_frame_if_set): New function.
2485 2011-03-09 Pedro Alves <pedro@codesourcery.com>
2487 * cli/cli-cmds.c (shell_escape): Use lbasename.
2488 * coffread.c (coff_start_symtab): Constify parameter.
2489 (complete_symtab): Constify `name' parameter.
2490 (coff_symtab_read): Constify `filestring' local.
2491 (coff_getfilename): Constify return and `result' local.
2493 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
2494 * linux-fork.c (info_checkpoints_command): Use lbasename.
2495 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
2496 * minsyms.c (lookup_minimal_symbol): Use lbasename.
2497 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
2498 * procfs.c (procfs_make_note_section): Use lbasename.
2499 * tui/tui-io.c (printable_part): Constity return and parameter.
2501 (print_filename): Constify parameters, and local `s'.
2502 (tui_rl_display_match_list): Constify local `temp'.
2504 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2507 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2508 Fix DWARF-3+ DW_AT_accessibility default assumption.
2509 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
2510 cu->header.version >= 3.
2512 2011-03-09 Yao Qi <yao@codesourcery.com>
2514 * common/Makefile.in: Remove.
2515 * common/configure: Remove.
2516 * common/configure.ac: Remove.
2518 2011-03-09 Yao Qi <yao@codesourcery.com>
2521 2011-02-11 Yao Qi <yao@codesourcery.com>
2523 * common/Makefile.in: Add copyright header.
2525 2011-02-11 Yao Qi <yao@codesourcery.com>
2527 * Makefile.in: Remove signals.o from COMMON_OBS. Link
2529 * configure.ac: Add common to sub dir.
2530 * configure: Regenerate.
2532 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2534 * xtensa-tdep.c (call0_ret): New function.
2535 (xtensa_skip_prologue): Speed up analysis.
2537 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2539 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
2540 while executing MI command -data-list-changed-registers.
2542 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2544 * xtensa-tdep.c (xtensa_read_register): New function.
2545 (xtensa_write_register): New function.
2546 (xtensa_find_register_by_name): New function.
2547 (xtensa_windowed_frame_cache): Update comments in type description.
2548 (xtensa_frame_cache): Likewise.
2549 (xtensa_window_interrupt_insn): New function.
2550 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
2551 (xtensa_insn_kind): Add new instructions.
2552 (rwx_special_register): New function.
2553 (call0_classify_opcode): Add new instructions to the analysis.
2554 (a0_saved, a7_saved, a11_saved): New variables.
2555 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
2556 (execute_l32e): New function.
2557 (execute_s32e): New function.
2558 (xtensa_exception_handler_t): New type.
2559 (execute_code): New function.
2560 (xtensa_window_interrupt_frame_cache): New function to conduct frame
2561 analysis for Xtensa Window Exception handlers.
2563 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2565 * xtensa-tdep.c (TX_PS): New.
2566 (windowing_enabled): Update to count for Call0 ABI.
2567 (xtensa_hextochar): New.
2568 (xtensa_init_reggroups): Make algorithm generic.
2569 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
2571 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2573 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
2575 2011-03-08 Michael Snyder <msnyder@vmware.com>
2577 * i386-tdep.c (i386_follow_jump): Check return value of
2579 (i386_analyze_struct_return): Ditto.
2580 (i386_skip_probe): Ditto.
2581 (i386_match_insn): Ditto.
2582 (i386_skip_noop): Ditto.
2583 (i386_analyze_frame_setup): Ditto.
2584 (i386_analyze_register_saves): Ditto.
2585 (i386_skip_prologue): Ditto.
2586 (i386_skip_main_prologue): Ditto.
2588 * target.c (read_whatever_is_readable): Fix memory leak.
2590 * i386-tdep.c (i386_process_record): Document fall through.
2592 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2594 Fix DWARF-3+ DW_AT_accessibility default assumption.
2595 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
2596 cu->header.version >= 3.
2598 2011-03-08 Pedro Alves <pedro@codesourcery.com>
2600 * remote.c (remote_check_symbols): Skip if the target has no
2603 2011-03-08 Joel Brobecker <brobecker@adacore.com>
2605 * target.c (read_whatever_is_readable): Reformat comment,
2606 with a minor typo fix. Minor reformatting of the code.
2608 2011-03-08 Yao Qi <yao@codesourcery.com>
2610 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
2611 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
2612 Use cached result instead of calling displaced_in_arm_mode again.
2613 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
2614 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
2615 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
2616 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
2617 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
2618 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
2619 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
2620 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
2621 (cleanup_block_load_pc, copy_block_xfer): Likewise.
2622 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
2623 (arm_catch_kernel_helper_return): Likewise.
2624 * gdb/arm-tdep.h : Update function declarations.
2626 2011-03-07 Michael Snyder <msnyder@vmware.com>
2628 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
2630 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
2632 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
2634 * elfread.c (elf_symtab_read): Stop memory leak.
2636 * main.c (captured_main): Fix memory leak.
2638 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
2640 * ada-lang.c (compare_names): Call is_name_suffix with string1
2643 2011-03-07 Tom Tromey <tromey@redhat.com>
2645 * xcoffread.c (xcoff_sym_fns): Update.
2646 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
2647 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
2648 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
2649 (symbol_file_add_with_addrs_or_offsets): Likewise.
2650 (reread_symbols): Handle OBJF_PSYMTABS_READ.
2651 * somread.c (som_sym_fns): Update.
2652 * psymtab.h (require_partial_symbols): Declare.
2653 * psymtab.c (require_partial_symbols): New function.
2654 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
2655 (ALL_OBJFILE_PSYMTABS): Undef.
2656 (ALL_PSYMTABS): Move from psympriv.h.
2657 (lookup_partial_symtab, find_pc_sect_psymtab)
2658 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
2659 (find_last_source_symtab_from_partial)
2660 (forget_cached_source_info_partial)
2661 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
2662 (expand_partial_symbol_tables, read_psymtabs_with_filename)
2663 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
2664 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
2665 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
2666 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
2667 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
2668 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
2669 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
2671 * mipsread.c (ecoff_sym_fns): Update.
2672 * machoread.c (macho_sym_fns): Update.
2673 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
2674 (read_psyms): New function.
2675 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
2676 (elf_sym_fns_lazy_psyms): New global.
2677 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
2678 dwarf2_build_psymtabs.
2679 * dbxread.c (aout_sym_fns): Update.
2680 * coffread.c (coff_sym_fns): Update.
2682 2011-03-07 Tom Tromey <tromey@redhat.com>
2684 * infrun.c (print_exited_reason): Include inferior id and pid in
2687 2011-03-07 Tom Tromey <tromey@redhat.com>
2689 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
2691 (target_has_execution_1): Update.
2692 (target_has_execution_current): Declare.
2693 (target_has_execution): Call target_has_execution_current.
2694 (default_child_has_execution): Update.
2695 * target.c (default_child_has_execution): Add 'the_ptid'
2697 (target_has_execution_1): Likewise.
2698 (target_has_execution_current): New function.
2699 (add_target): Update.
2700 (init_dummy_target): Update.
2701 * remote-m32r-sdi.c (m32r_has_execution): New function.
2702 (init_m32r_ops): Use it.
2703 * record.c (record_core_has_execution): Now static. Add
2704 'the_ptid' parameter.
2705 * inferior.c (have_live_inferiors): Don't save current thread.
2706 Use target_has_execution_1.
2708 2011-03-07 Yao Qi <yao@codesourcery.com>
2710 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
2712 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2714 * elfread.c (elf_symtab_read): Minor reformatting.
2716 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2718 * objc-lang.c (selectors_info): Minor reformatting.
2720 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2722 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
2724 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2725 Michael Snyder <msnyder@vmware.com>
2727 * ada-valprint.c (ada_val_print_array): Move the declaration of
2728 "byte_order" and "elttype" inside the block where these variables
2729 are actually used. Remove some special handling for the case
2730 where "elttype" and "eltlen" are null. Replace by a comment
2731 and a couple of assertion checks.
2733 2011-03-05 Michael Snyder <msnyder@vmware.com>
2735 * source.c (add_path): Replace semicolon at end of block.
2736 * dwarf2expr.c (execute_stack_op): Ditto.
2738 2011-03-05 Mike Frysinger <vapier@gentoo.org>
2740 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
2741 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
2742 (bfin-*-*): Likewise.
2744 2011-03-05 Michael Snyder <msnyder@vmware.com>
2746 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
2747 * mdebugread.c (parse_symbol): Ditto.
2748 * parse.c (parse_exp_in_context): Ditto.
2749 * source.c (add_path): Ditto.
2750 * utils.c (gnu_debuglink_crc32): Ditto.
2751 * varobj.c (variable_language): Ditto.
2753 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
2755 2011-03-04 Michael Snyder <msnyder@vmware.com>
2757 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
2759 * symfile.c (simple_overlay_update): Check for null return value
2760 from lookup_minimal_symbol.
2762 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
2764 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2766 * eval.c (parse_and_eval_address_1): Remove function.
2767 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
2768 instead of parse_and_eval_address_1.
2769 * value.h (parse_and_eval_address_1): Remove prototype.
2771 2011-03-04 Michael Snyder <msnyder@vmware.com>
2773 * remote.c (putpkt_binary): Document that case stmt falls through.
2775 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2777 * breakpointc (print_it_typical): Move NULL check from here...
2778 (print_bp_stop_message): ... to here.
2780 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
2782 * breakpoint.c (enable_command): Use break instead of continue,
2783 and fill in a missing break.
2784 (disable_command): Ditto.
2786 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
2788 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
2789 (terminal_save_ours): Remove misleading comment.
2790 (inflow_inferior_data_cleanup): Free ttystate.
2791 (inflow_inferior_exit): Likewise.
2792 (copy_terminal_info): Copy ttystate.
2794 * serial.c (serial_copy_tty_state): New function.
2795 * serial.h (serial_copy_tty_state): Add prototype.
2796 (struct serial_ops): Add copy_tty_state callback.
2797 * ser-base.c (ser_base_copy_tty_state): New function.
2798 * ser-base.h (ser_base_copy_tty_state): Add prototype.
2799 * ser-go32.c (dos_copy_tty_state): New function.
2800 (dos_ops): Install copy_tty_state callback.
2801 * ser-mingw.c (_initialize_ser_windows): Likewise.
2802 * ser-pipe.c (_initialize_ser_pipe): Likewise.
2803 * ser-unix.c (hardwire_copy_tty_state): New function.
2804 (_initialize_ser_hardwire): Install it.
2806 2011-03-04 Michael Snyder <msnyder@vmware.com>
2808 * breakpoint.c (create_breakpoint): Add missing break statement.
2810 Reverting this patch:
2811 * infcall.c (call_function_by_hand): Add break statements for lint.
2813 Reverting this patch:
2814 * cli/cli-script.c (script_from_file): Add break for lint.
2816 2011-03-04 Michael Snyder <msnyder@vmware.com>
2818 * solib.c (reload_shared_libraries_1): Close memory leak.
2820 2011-03-03 Tom Tromey <tromey@redhat.com>
2823 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
2826 2011-03-03 Michael Snyder <msnyder@vmware.com>
2828 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
2829 fields of struct 'st' to zero.
2831 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
2832 sal.pspace before calling set_current_source_symtab_and_line.
2834 2011-03-03 Yao Qi <yao@codesourcery.com>
2836 * Makefile.in (configure-common): Remove. Let Makefile
2837 in dir common to rebuild itself.
2838 (common/Makefile): Likewise.
2840 2011-03-03 Joel Brobecker <brobecker@adacore.com>
2842 * utils.c (parse_escape): Add i18n markup in error message.
2844 2011-03-03 Yao Qi <yao@codesourcery.com>
2846 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
2848 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
2849 (displaced_write_reg, displaced_read_reg): Likewise.
2850 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
2851 (cleanup_block_load_pc, copy_block_xfer): Likewise.
2852 (cleanup_branch): Replace magic number 14 and 15 with
2853 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
2855 2011-03-02 Michael Snyder <msnyder@vmware.com>
2857 * maint.c (maintenance_do_deprecate): No need to check for NULL.
2859 * cli/cli-script.c (script_from_file): Add break for lint.
2861 * mdebugread.c (parse_partial_symbols): Fix indent.
2863 * target-descriptions.c (tdesc_gdb_type): No need to call
2864 xstrdup, callee saves a copy.
2866 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
2868 * infcall.c (call_function_by_hand): Add break statements for lint.
2870 * utils.c (parse_escape): Escape the escape char.
2872 * python/py-inferior.c (build_inferior_list): Error out if
2873 PyList_Append fails.
2874 (gdbpy_inferiors): Error out if build_inferior_list fails.
2876 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
2879 * record.c (record_restore): Move printf to before error return.
2881 2011-03-02 Yao Qi <yao@codesourcery.com>
2883 * arm-tdep.h (struct displaced_step_closure): Add two new fields
2884 is_thumb and insn_size.
2885 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
2886 on both ARM and Thumb mode.
2887 (arm_process_displaced_insn): Set is_thumb and insn_size.
2888 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
2889 (arm_displaced_step_fixup): Likewise.
2891 2011-03-01 Michael Snyder <msnyder@vmware.com>
2893 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
2895 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
2897 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
2899 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
2901 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
2904 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
2905 which shadows function parameter.
2907 * tracepoint.c (create_tsv_from_upload): Superfluous call
2908 to xstrdup. Callee already calls xstrdup.
2910 * linespec.c (decode_line_1): Remove unnecessary null check.
2912 * tracepoint.c (scope_info): Fix mem leak, remove underused
2915 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
2916 superfluous null check.
2918 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
2919 (value_of_builtin_frame_fp_reg): Ditto.
2921 * event-top.c (display_gdb_prompt): Remove superfluous null check.
2923 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
2926 * linespec.c (decode_line_1): Check for null before dereference.
2928 * reverse.c (record_restore): Move null-check to before pointer
2931 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
2933 * objc-lang.c (selectors_info): Add explanitory comment.
2934 (classes_info): Ditto.
2936 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2938 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
2939 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
2940 versions of the trampoline. Handle Thumb vs. ARM addresses.
2941 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
2942 (arm_linux_init_abi): Install it.
2943 * arm-tdep.c (arm_psr_thumb_bit): Make global.
2944 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
2946 2011-02-28 Michael Snyder <msnyder@vmware.com>
2948 * ui-out.c (ui_out_field_core_addr): Make local char buffer
2949 a little bigger, to avoid possibility of an overflow.
2951 * breakpoint.c (breakpoint_adjustment_warning): Make local char
2952 buffers a little bigger, to avoid possibility of an overflow.
2954 * coffread.c (coff_getfilename): Add check to avoid overflow.
2956 * objc-lang.c (selectors_info): Add a small safety margin to
2958 (classes_info): Error out on too long REGEXP.
2960 * infrun.c (handle_inferior_event): Remove unused function call.
2962 * fork-child.c (fork_inferior): Remove ifdef'd code and
2965 * linux-thread-db.c (attach_thread): Discard unused value.
2967 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
2969 * remote.c (remote_get_noisy_reply): Discard unused value.
2970 (remote_vcont_resume): Ditto.
2971 (remote_stop_ns): Ditto.
2973 * linespec.c (decode_objc): Delete unused variable.
2975 * tui/tui-regs.c (tui_register_format): Delete unused variable.
2977 * dwarf2read.c (add_partial_symbol): Discard unused values.
2978 (read_base_type): Delete unused variable.
2980 * dbxread.c (read_dbx_symtab): Discard unused value.
2982 * eval.c (evaluate_subexp_standard): Delete unused variable,
2983 and discard unused values.
2985 * infcmd.c (_initialize_infcmd): Discard unused values.
2987 * stabsread.c (rs6000_builtin_type): Missing break statement.
2989 * dbxread.c (process_one_symbol): Discard unused value.
2991 * coffread.c (coff_end_symtab): Delete unused variable.
2993 * dwarf2read.c (dw2_get_file_names): Discard unused value.
2994 (dwarf2_add_typedef): Delete unused variable.
2995 (read_namespace): Ditto.
2996 (dwarf_decode_macros): Ditto.
2998 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
3000 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
3002 * p-valprint.c (pascal_val_print): Discard unused value.
3004 * utils.c (nquery): Call va_end before return;
3008 * proc-service.c (ps_plog): Call va_end before return.
3010 2011-02-28 Tom Tromey <tromey@redhat.com>
3012 * python/python.c (gdbpy_value_cst): New global.
3013 (_initialize_python): Initialize it.
3014 * python/python-internal.h (gdbpy_value_cst): Declare.
3015 * python/py-value.c (convert_value_from_python): Use
3018 2011-02-28 Michael Snyder <msnyder@vmware.com>
3020 * python/py-cmd.c (cmdpy_init): Fix memory leak.
3022 * breakpoint.c (catch_syscall_completer): Free malloced list.
3024 * jv-lang.c (java_primitive_type_from_name): Add missing break.
3026 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
3027 (lval_func_check_synthetic_pointer): Ditto.
3028 (lval_func_free_closure): Fix use-after-free.
3030 2011-02-28 Tom Tromey <tromey@redhat.com>
3032 * psymtab.c (expand_partial_symbol_tables): Use
3033 ALL_OBJFILE_PSYMTABS.
3035 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3037 * objc-lang.c (selectors_info): Error on too long REGEXP.
3039 2011-02-28 Michael Snyder <msnyder@vmware.com>
3041 * python/py-param.c (set_parameter_value): Add missing
3044 * linux-record.c (record_linux_system_call): Add missing
3047 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3049 * breakpoint.c (print_one_breakpoint_location): Remove unused
3050 argument PRINT_ADDRESS_BITS. Update callers.
3051 (print_one_breakpoint): Likewise.
3053 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3055 * breakpoint.c (wrap_indent_at_field): New function.
3056 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
3057 Allocate ui_stream locally instead of using STB argument.
3058 (print_one_breakpoint_location): Update call.
3059 * ui-out.c (ui_out_query_field): New function.
3060 * ui-out.h (ui_out_query_field): Add prototype.
3062 2011-02-28 Joel Brobecker <brobecker@adacore.com>
3064 From Michael Snyder <msnyder@vmware.com>
3065 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
3067 2011-02-27 Michael Snyder <msnyder@vmware.com>
3069 * objc-lang.c (selectors_info): Prevent string overrun.
3071 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
3074 * symtab.c (rbreak_command): Move variable 'file_name' to
3077 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
3078 param with a local variable of the same name.
3080 2011-02-27 Michael Snyder <msnyder@vmware.com>
3082 * value.c (value_from_history_ref): New function.
3083 * value.h (value_from_history_ref): Export.
3084 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
3085 to parse value history references.
3086 * cli/cli-utils.h (get_number_trailer): Update comment.
3088 2011-02-27 Michael Snyder <msnyder@vmware.com>
3090 * inferior.c (detach_inferior_command): Use get_number_or_range.
3091 (kill_inferior_command): Ditto.
3092 (remove_inferior_command): Ditto.
3093 (initialize_inferiors): Make command names plural.
3094 Update help strings.
3096 2011-02-27 Michael Snyder <msnyder@vmware.com>
3098 * darwin-nat-info.c: Fix comment typo.
3099 * dwarf2expr.h: Ditto.
3100 * fbsd-nat.c: Ditto.
3101 * fbsd-nat.h: Ditto.
3102 * frame-unwind.h: Ditto.
3104 * hppa-hpux-tdep.c: Ditto.
3105 * i386-linux-nat.c: Ditto.
3106 * linux-nat.c: Ditto.
3107 * nbsd-nat.c: Ditto.
3108 * nbsd-nat.h: Ditto.
3109 * ppc-linux-tdep.c: Ditto.
3112 * tui/tui-winsource.c: Ditto.
3114 2011-02-26 Michael Snyder <msnyder@vmware.com>
3116 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
3118 * maint.c (maintenance_do_deprecate): Plug a memory leak.
3120 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
3121 with a local variable of the same name.
3123 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
3124 param with a local variable of the same name.
3125 (i387_supply_xsave): Ditto.
3127 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
3128 that it does not shadow a function parameter.
3130 * i386-nat.c (i386_length_and_rw_bits): Document that case
3131 statement is meant to fall through.
3133 * expprint.c (dump_subexp_body_standard): Document that case
3134 statement is meant to fall through.
3136 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
3137 dead if statement. Condition can't be false.
3139 2011-02-25 Michael Snyder <msnyder@vmware.com>
3141 * arm-tdep.c: Fix typos in comments.
3142 * bsd-uthread.c: Ditto.
3143 * completer.c: Ditto.
3145 * cp-namespace.c: Ditto.
3146 * cp-support.c: Ditto.
3147 * cris-tdep.c: Ditto.
3149 * dwarf2read.c: Ditto.
3151 * gdbtypes.h: Ditto.
3152 * inferior.h: Ditto.
3153 * mdebugread.c: Ditto.
3154 * mips-tdep.c: Ditto.
3155 * ppc-linux-nat.c: Ditto.
3156 * ppc-linux-tdep.c: Ditto.
3157 * printcmd.c: Ditto.
3158 * sol-thread.c: Ditto.
3159 * solib-frv.c: Ditto.
3161 * sparc64-tdep.c: Ditto.
3162 * spu-tdep.c: Ditto.
3163 * stabsread.c: Ditto.
3168 * python/py-block.c: Ditto.
3169 * python/py-symbol.c: Ditto.
3170 * python/py-symtab.c: Ditto.
3171 * python/py-value.c: Ditto.
3172 * tui/tui-win.c: Ditto.
3174 2011-02-25 Michael Snyder <msnyder@vmware.com>
3176 * inferior.c (print_inferior): Accept a string instead of an int
3177 for requested_inferiors, and use get_number_or_range to parse it.
3178 (info_inferiors_command): Pass args string to print_inferior.
3179 (initialize_inferiors): Change help string for info inferiors.
3180 * inferior.h (print_inferior): Export prototype change.
3182 2011-02-25 Tom Tromey <tromey@redhat.com>
3184 * common/ax.def (invalid2): Set to 0x31.
3186 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3188 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
3190 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
3192 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
3194 2011-02-24 Michael Snyder <msnyder@vmware.com>
3196 * Makefile.in (clean): Make clean should remove generated files
3197 observer.h and observer.inc.
3199 2011-02-24 Joel Brobecker <brobecker@adacore.com>
3201 Revert the following patch (not approved yet):
3202 2011-02-21 Hui Zhu <teawater@gmail.com>
3203 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3204 * ax-gdb.c (gen_printf_expr_callback): New function.
3205 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3206 * ax-general.c (ax_memcpy): New function.
3207 (ax_print): Handle "printf".
3209 * ax.h (ax_memcpy): Forward declare.
3210 * common/ax.def (invalid2): Removed.
3211 (printf): New entry.
3212 * printcmd.c (printcmd.h): New include.
3213 (string_printf): New function.
3214 (ui_printf): Removed.
3215 (printf_command): Remove static. Call string_printf.
3216 (eval_command): Call string_printf.
3217 * printcmd.h: New file.
3218 * tracepoint.c (validate_actionline,
3219 encode_actions_1): handle printf_command.
3221 2011-02-23 Tom Tromey <tromey@redhat.com>
3223 * ax-general.c (ax_pick): Add missing newline.
3225 2011-02-23 Michael Snyder <msnyder@vmware.com>
3227 * breakpoint.c (breakpoint_1): Change first argument from an int
3228 to a char pointer, so that the function now accepts a list of
3229 breakpoints rather than just one. Use new function
3230 'number_is_in_list' to implement.
3231 (breakpoints_info): Pass char * instead of int to breakpoint_1.
3232 (watchpoints_info): Ditto.
3233 (tracepoints_info): Ditto.
3234 (maintenance_info_breakpoints): Ditto.
3235 (_initialize_breakpoint): Update help strings to reflect the fact
3236 that these functions can now take more than one argument.
3237 * cli/cli-utils.c (number_is_in_list): New function.
3238 * cli/cli-utils.h (number_is_in_list): Export.
3240 2011-02-23 Michael Snyder <msnyder@vmware.com>
3242 * memattr.c (mem_enable_command): Use get_number_or_range.
3243 (mem_disable_command): Ditto.
3244 (mem_delete_command): Ditto.
3245 (_initialize_mem): Tweak usage message to reflect multiple
3248 2011-02-22 Doug Evans <dje@google.com>
3250 Add gdb.lookup_global_symbol python function.
3252 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
3253 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
3254 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
3256 2011-02-22 Tom Tromey <tromey@redhat.com>
3258 * language.c (language_class_name_from_physname): Rename
3259 'curr_language' argument to 'lang'; use in body.
3261 2011-02-22 Michael Snyder <msnyder@vmware.com>
3263 * cli/cli-utils.c (number_is_in_list): Check for zero return.
3265 2011-02-22 Pedro Alves <pedro@codesourcery.com>
3267 * frame-unwind.h: Fix comment to mention the this frame, not the
3270 2011-02-22 Tom Tromey <tromey@redhat.com>
3272 * symfile.c (auto_solib_limit): Remove.
3273 * symfile.h (auto_solib_limit): Remove.
3275 2011-02-22 Joel Brobecker <brobecker@adacore.com>
3277 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
3279 2011-02-21 Michael Snyder <msnyder@vmware.com>
3281 * gdbthread.h (print_thread_info): Change prototype.
3282 * thread.c (print_thread_info): Accept char* instead of int for
3283 requested_threads argument. Use new function number_is_in_list
3284 to determine which threads to list.
3285 (info_threads_command): Pass char* to print_thread_info.
3286 * cli/cli-utils.c (number_is_in_list): New function.
3287 * cli/cli-utils.h (number_is_in_list): Export.
3288 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
3290 (print_one_inferior): Ditto.
3291 (mi_cmd_list_thread_groups): Ditto.
3293 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3295 * common/Makefile.in (CFLAGS): New.
3296 (COMPILE): Add $(CFLAGS).
3298 2011-02-21 Tom Tromey <tromey@redhat.com>
3300 * breakpoint.c (catch_syscall_command_1): Fix typo.
3302 2011-02-21 Tom Tromey <tromey@redhat.com>
3304 * reverse.c: Include cli-utils.h.
3305 * printcmd.c: Include cli-utils.h.
3306 (string_printf): Use skip_spaces.
3307 * cli/cli-utils.h: New file.
3308 * cli/cli-utils.c: New file.
3309 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
3310 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
3311 * breakpoint.h (get_number, get_number_or_range): Move to
3313 * breakpoint.c: Include cli-utils.h.
3314 (get_number_trailer, get_number, get_number_or_range)
3315 (ep_skip_leading_whitespace): Move to cli-utils.c.
3316 (create_breakpoint_sal, find_condition_and_thread)
3317 (decode_static_tracepoint_spec, watch_command_1)
3318 (watch_maybe_just_location, ep_parse_optional_if_clause)
3319 (catch_fork_command_1, catch_exec_command_1)
3320 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
3321 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
3322 (SUBDIR_CLI_SRCS): Add cli-utils.c.
3323 (HFILES_NO_SRCDIR): Add cli-utils.h.
3324 (cli-utils.o): New target.
3326 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3328 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
3329 before calling discard_all_inferiors.
3331 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
3333 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
3334 (struct builtin_opencl_type): Remove.
3335 (builtin_opencl_type): Change return type to "struct type **".
3336 (lookup_opencl_vector_type): Update caller.
3337 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
3338 (build_opencl_types): Install plain array of "struct type *"
3339 instead of "struct builtin_opencl_type".
3341 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3342 Ulrich Weigand <uweigand@de.ibm.com>
3344 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
3345 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
3346 (struct arm_linux_hwbp_cap): New type.
3347 (arm_linux_get_hwbp_cap): New function.
3348 (arm_linux_get_hw_breakpoint_count): Likewise.
3349 (arm_linux_get_hw_watchpoint_count): Likewise.
3350 (arm_linux_can_use_hw_breakpoint): Likewise.
3351 (arm_hwbp_type): New type.
3352 (arm_hwbp_control_t): Likewise.
3353 (struct arm_linux_hw_breakpoint): Likewise.
3354 (struct arm_linux_thread_points): Likewise.
3355 (arm_threads): New global variable.
3356 (arm_linux_find_breakpoints_by_tid): New function.
3357 (arm_hwbp_control_initialize): Likewise.
3358 (arm_hwbp_control_is_enabled): Likewise.
3359 (arm_hwbp_control_disable): Likewise.
3360 (arm_linux_hw_breakpoint_initialize): Likewise.
3361 (arm_linux_get_hwbp_type): Likewise.
3362 (arm_linux_hw_watchpoint_initialize): Likewise.
3363 (arm_linux_hw_breakpoint_equal): Likewise.
3364 (arm_linux_insert_hw_breakpoint1): Likewise.
3365 (arm_linux_remove_hw_breakpoint1): Likewise.
3366 (arm_linux_insert_hw_breakpoint): Likewise.
3367 (arm_linux_remove_hw_breakpoint): Likewise.
3368 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
3369 (arm_linux_insert_watchpoint): Likewise.
3370 (arm_linux_remove_watchpoint): Likewise.
3371 (arm_linux_stopped_data_address): Likewise.
3372 (arm_linux_stopped_by_watchpoint): Likewise.
3373 (arm_linux_watchpoint_addr_within_range): Likewise.
3374 (arm_linux_new_thread): Likewise.
3375 (arm_linux_thread_exit): Likewise.
3376 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
3377 related target callbacks. Register arm_linux_new_thread and
3378 arm_linux_thread_exit.
3379 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
3380 * arm-tdep.c (arm_pc_is_thumb): Make global.
3381 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
3383 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
3385 * breakpoint.c (update_watchpoint): Do not attempt to recreate
3386 per-frame locations while within a function epilogue.
3388 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
3390 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
3391 to GNU coding standards.
3393 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
3395 Allow use of mingw native on Windows 95 OS.
3396 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
3397 (ser_windows_close): Only call CancelIo if function exists.
3398 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
3399 to check for existence of CancelIo function in kernel32 DLL.
3401 2011-02-21 Hui Zhu <teawater@gmail.com>
3403 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3404 * ax-gdb.c (gen_printf_expr_callback): New function.
3405 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3406 * ax-general.c (ax_memcpy): New function.
3407 (ax_print): Handle "printf".
3409 * ax.h (ax_memcpy): Forward declare.
3410 * common/ax.def (invalid2): Removed.
3411 (printf): New entry.
3412 * printcmd.c (printcmd.h): New include.
3413 (string_printf): New function.
3414 (ui_printf): Removed.
3415 (printf_command): Remove static. Call string_printf.
3416 (eval_command): Call string_printf.
3417 * printcmd.h: New file.
3418 * tracepoint.c (validate_actionline,
3419 encode_actions_1): handle printf_command.
3421 2011-02-19 Michael Snyder <msnyder@vmware.com>
3423 * reverse.c (delete_one_bookmark): Argument is now bookmark
3424 id rather than pointer to bookmark struct.
3425 (delete_bookmark_command): Use get_number_or_range.
3426 (goto_bookmark_command): Parse with get_number instead of strtoul.
3427 (bookmark_1): New function. Print info for one bookmark.
3428 (bookmarks_info): Use get_number_or_range and bookmark_1.
3430 2011-02-18 Michael Snyder <msnyder@vmware.com>
3432 * thread.c (info_threads_command): Re-implement using
3433 get_number_or_range.
3434 (thread_apply_command): Ditto.
3436 2011-02-18 Tom Tromey <tromey@redhat.com>
3438 * common/ax.def: New file.
3439 * ax.h (enum agent_op): Use ax.def.
3440 * ax-general.c (aop_map): Use ax.def.
3442 2011-02-18 Tom Tromey <tromey@redhat.com>
3444 * ax-general.c (aop_map): Add pick and rot.
3445 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
3446 <DW_OP_rot>: Implement.
3447 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
3449 * ax-general.c (ax_pick): New function.
3451 2011-02-18 Tom Tromey <tromey@redhat.com>
3453 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
3455 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3456 Tom Tromey <tromey@redhat.com>
3458 * cp-support.c (make_symbol_overload_list_namespace): Do not call
3459 make_symbol_overload_list_block with NULL BLOCK.
3460 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
3462 2011-02-18 Pedro Alves <pedro@codesourcery.com>
3464 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
3465 * breakpoint.h (get_number_or_range): Declare.
3466 * printcmd.c (ALL_DISPLAYS): Declare.
3467 (delete_display): Reimplement taking a display pointer.
3468 (undisplay_command): Accept a range of displays to delete, using
3469 get_number_or_range.
3471 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3473 * c-valprint.c (c_val_print): Add embedded_offset to address
3474 for arrays of unspecified length.
3475 * p-valprint.c (pascal_val_print): Likewise.
3477 2011-02-18 Yao Qi <yao@codesourcery.com>
3479 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
3480 (arm_process_displaced_insn): .. here. Remove parameter INSN.
3481 (thumb_process_displaced_insn): New.
3482 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
3483 call to arm_process_displaced_insn.
3484 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
3486 2011-02-17 Tom Tromey <tromey@redhat.com>
3488 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
3489 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
3490 compile_dwarf_to_ax. No longer static. Call
3491 dwarf2_compile_cfa_to_ax.
3492 (locexpr_tracepoint_var_ref): Update.
3493 (loclist_tracepoint_var_ref): Update.
3494 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
3495 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
3496 argument; add 'gdbarch' and 'pc'.
3497 (dwarf2_compile_cfa_to_ax): New function.
3498 (dwarf2_frame_cache): Update.
3500 2011-02-17 Joel Brobecker <brobecker@adacore.com>
3502 * ada-lang.c (ada_type_of_array): Fix the size of the array
3503 in the case of an unconstrained packed array.
3505 2011-02-17 Yao Qi <yao@codesourcery.com>
3507 * common/Makefile.in: Add more targets for make.
3509 2011-02-16 Tom Tromey <tromey@redhat.com>
3511 * dwarf2loc.c (unimplemented): Fix typo.
3513 2011-02-16 Tom Tromey <tromey@redhat.com>
3515 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
3516 (compile_dwarf_to_ax) <default>: Use unimplemented.
3517 <DW_OP_deref>: Update.
3518 (disassemble_dwarf_expression): Update.
3519 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
3520 (decode_locdesc): Update.
3521 * dwarf2expr.h (dwarf_stack_op_name): Update.
3523 2011-02-16 Tom Tromey <tromey@redhat.com>
3525 * ax.h (struct aop_map) <name>: Now const.
3527 2011-02-16 Tom Tromey <tromey@redhat.com>
3529 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
3532 2011-02-16 Yao Qi <yao@codesourcery.com>
3534 * infrun.c (get_displaced_step_closure_by_addr): New.
3535 * inferior.h: Declare it.
3536 * arm-tdep.c: (arm_pc_is_thumb): Call
3537 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
3540 2011-02-16 Pedro Alves <pedro@codesourcery.com>
3541 Jan Kratochvil <jan.kratochvil@redhat.com>
3544 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
3546 2011-02-16 Pedro Alves <pedro@codesourcery.com>
3547 Jan Kratochvil <jan.kratochvil@redhat.com>
3549 * value.c (value_contents_copy_raw): Extend describing comment.
3550 Assert that the destination contents we're overwriting are wholly
3552 (value_contents_copy): Extend describing comment.
3554 2011-02-16 Pedro Alves <pedro@codesourcery.com>
3555 Jan Kratochvil <jan.kratochvil@redhat.com>
3557 * value.c (value_available_contents_eq): Remove redundant local
3558 variables. Fix available contents comparision.
3559 * value.h (value_available_contents_eq): Extend describing
3562 2011-02-16 Yao Qi <yao@codesourcery.com>
3564 * thread.c (info_threads_command): Add missing i18n markup and remove
3567 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
3569 * breakpoint.c (longjmp_names): New variable.
3570 (struct breakpoint_objfile_data): New type.
3571 (breakpoint_objfile_key): New variable.
3572 (msym_not_found): New variable.
3573 (msym_not_found_p): New predicate.
3574 (get_breakpoint_objfile_data): New function.
3575 (create_overlay_event_breakpoint): Check per-objfile cache for
3577 (create_longjmp_master_breakpoint): Likewise.
3578 (create_std_terminate_master_breakpoint): Likewise.
3579 (create_exception_master_breakpoint): Likewise.
3580 (_initialize_breakpoint): Register per-objfile data key.
3582 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
3584 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
3586 (create_longjmp_master_breakpoint): Loop over longjmp names.
3587 (create_std_terminate_master_breakpoint): Const-propagate parameter
3589 (update_breakpoints_after_exec): Adjust.
3590 (breakpoint_re_set): Adjust.
3592 2011-02-15 Michael Snyder <msnyder@vmware.com>
3594 * thread.c (info_threads_command): Process arg as thread id,
3595 or list of thread ids.
3596 (thread_find_command): New command.
3597 (_initialize_thread): Document argument for info threads.
3598 Document 'thread find' command.
3599 * NEWS: Document new command "thread find".
3601 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3603 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
3604 * aclocal.m4: Regenerated with aclocal-1.11.1.
3605 * common/configure: Regenerate with autoconf-2.64.
3607 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
3609 * opencl-lang.c (build_opencl_types): Set the size of the built-in
3610 bool data type to a size of one byte.
3612 2011-02-15 Pedro Alves <pedro@codesourcery.com>
3613 Jan Kratochvil <jan.kratochvil@redhat.com>
3615 * target.c (memory_xfer_live_readonly_partial): Document where to
3616 look for interface description.
3618 2011-02-15 Yao Qi <yao@codesourcery.com>
3621 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
3622 order to store PC value on stack instead of text section.
3624 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
3626 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
3627 the EFP register set size.
3628 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
3629 data from the VMX register.
3630 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
3631 and write data from/to the VMX register.
3633 2011-02-14 Michael Snyder <msnyder@vmware.com>
3635 * command.h (enum command_class): New class 'no_set_class', for
3636 "show" commands without a corresponding "set" command.
3637 * value.c (_initialize_values): Use 'no_set_class' for "show values".
3638 * copying.c (_initialize_copying): Ditto for "show copying" and
3640 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
3642 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
3643 which there is no corresponding "set" command (eg. "show copying").
3645 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3646 Jan Kratochvil <jan.kratochvil@redhat.com>
3648 * exec.c (section_table_available_memory): Change `len' parameter
3650 * exec.h (section_table_available_memory): Ditto.
3651 * value.h (read_value_memory): Rename the `offset' parameter to
3654 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3655 Jan Kratochvil <jan.kratochvil@redhat.com>
3657 * memrange.c (compare_mem_ranges): Mention sort order in
3659 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
3660 * tracepoint.c (traceframe_available_memory): Extend comment to
3661 mention what happens to RESULT when the target does not support
3664 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3665 Jan Kratochvil <jan.kratochvil@redhat.com>
3667 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
3670 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3672 * value.c (value_bits_valid, value_bits_synthetic_pointer):
3673 No longer handle NULL values.
3675 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3677 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
3678 * value.c: Include "exceptions.h".
3679 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
3681 * cp-abi.c: Include gdb_assert.h.
3682 (baseclass_offset): Add `embedded_offset' and `val' parameters.
3683 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
3685 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
3686 parameters. No longer returns -1 on error.
3687 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
3689 * cp-valprint.c: Include exceptions.h.
3690 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
3691 the baseclass_offset. Handle unavailable base classes. Use
3692 val_print_invalid_address.
3693 * p-valprint.c: Include exceptions.h.
3694 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
3695 when fetching the baseclass_offset. No longer expect
3696 baseclass_offset returning -1. Handle unavailable base classes.
3697 Use val_print_invalid_address.
3698 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
3699 `valaddr' parameter, and change its type to gdb_byte pointer. Add
3700 `embedded_offset' and `val' parameters. Adjust.
3701 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
3702 parameter, and change its type to gdb_byte pointer. Add
3703 `embedded_offset' and `val' parameters. Adjust. No longer expect
3704 baseclass_offset returning -1.
3705 (value_dynamic_cast): Use value_contents_for_printing rather than
3706 value_contents. Adjust.
3707 (search_struct_field): No longer expect baseclass_offset returning
3709 (search_struct_method): If reading memory from the target is
3710 necessary, wrap it in a new value to pass to baseclass_offset. No
3711 longer expect baseclass_offset returning -1.
3712 (find_method_list): No longer expect baseclass_offset returning
3713 -1. Use value_contents_for_printing rather than value_contents.
3714 * valprint.c (val_print_invalid_address): New function.
3715 * valprint.h (val_print_invalid_address): Declare.
3716 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
3717 and `val' parameters. No longer expect baseclass_offset returning
3719 * gnu-v2-abi.c: Include "exceptions.h".
3720 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
3721 parameters. Handle unavailable memory. Recurse through
3722 gnuv2_baseclass_offset directly, rather than through
3723 baseclass_offset. No longer returns -1 on not found, instead
3725 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
3726 `val' parameters. Adjust.
3728 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3730 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
3731 almost but not quite adjacent.
3733 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3735 * value.h (value_entirely_available): Declare.
3736 * value.c (value_entirely_available): New function.
3737 * c-valprint.c (c_value_print): Don't try fetching the pointer's
3738 real type if the pointer is unavailable.
3740 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3742 * valops.c (value_repeat): Use read_value_memory instead of
3745 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3747 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
3748 * value.c (value_contents_copy_raw, value_contents_copy): New
3750 (value_primitive_field): Use value_contents_copy_raw instead of
3752 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
3754 (value_array, value_slice): Ditto.
3755 * valarith.c (value_subscripted_rvalue): Use
3756 value_contents_copy_raw instead of memcpy.
3758 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3760 <unavailable> references.
3762 * valops.c (get_value_at): Use value_from_contents_and_address,
3763 avoiding read_memory.
3765 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3767 * c-valprint.c (c_val_print): Print a string with unavailable
3768 contents as an array.
3770 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3772 * value.h (unpack_bits_as_long): Delete declaration.
3773 (unpack_value_bits_as_long): Declare.
3774 (unpack_value_field_as_long): Declare.
3775 (value_field_bitfield): Declare.
3776 * value.c (unpack_bits_as_long): Rename to...
3777 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
3778 value parameters. Return the extracted result in a new output
3779 parameter. If the value contents are unavailable, return false,
3780 otherwise return true.
3781 (unpack_value_bits_as_long): New.
3782 (unpack_field_as_long): Rename to...
3783 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
3784 Add embedded_offset and value parameters. Return the extracted
3785 result in a new output parameter. If the value contents are
3786 unavailable, return false, otherwise return true.
3787 (unpack_value_field_as_long): New.
3788 (unpack_field_as_long_1): New.
3789 (unpack_field_as_long): Reimplement as wrapper around
3790 unpack_value_field_as_long_1.
3791 (value_field_bitfield): New function.
3792 * valops.c (value_fetch_lazy): When fetching a bitfield, use
3793 unpack_value_bits_as_long. Mark the value as unavailable, if it
3795 * jv-valprint.c (java_print_value_fields): Use
3796 value_field_bitfield.
3797 * p-valprint.c (pascal_object_print_value_fields): Use
3798 value_field_bitfield.
3799 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
3801 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3803 * value.c (get_internalvar_integer): Also return the int value of
3804 TYPE_CODE_INT INTERNALVAR_VALUE values.
3805 (set_internalvar): Don't special case TYPE_CODE_INT.
3807 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3809 * value.c (struct internalvar) <enum internalvar_kind>: Remove
3810 INTERNALVAR_POINTER.
3812 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
3813 (set_internalvar): Remove special TYPE_CODE_PTR handling.
3814 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
3816 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3818 * value.h (value_available_contents_eq): Declare.
3819 * value.c (find_first_range_overlap): New function.
3820 (value_available_contents_eq): New function.
3821 * valprint.c (val_print_array_elements): Use
3822 value_available_contents_eq.
3823 * ada-valprint.c (val_print_packed_array_elements): Use
3824 value_available_contents_eq.
3825 * jv-valprint.c (java_value_print): Use
3826 value_available_contents_eq.
3828 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3830 * target.c (target_read_live_memory): New function.
3831 (memory_xfer_live_readonly_partial): New.
3832 (memory_xfer_partial): If reading from a traceframe, fallback to
3833 reading unavailable read-only memory from read-only regions of
3835 * tracepoint.c (disconnect_tracing): Adjust.
3836 (set_current_traceframe): New, factored out from
3837 set_traceframe_number.
3838 (set_traceframe_number): Reimplement to only change the traceframe
3839 number on the GDB side.
3840 (do_restore_current_traceframe_cleanup): Adjust.
3841 (make_cleanup_restore_traceframe_number): New.
3842 (cur_traceframe_number): New global.
3843 (tfile_open): Set cur_traceframe_number to no traceframe.
3844 (set_tfile_traceframe): New function.
3845 (tfile_trace_find): If looking up a traceframe using any method
3846 other than by number, make sure the current tfile traceframe
3847 matches gdb's current traceframe. Update the current tfile
3848 traceframe if the lookup succeeded.
3849 (tfile_fetch_registers, tfile_xfer_partial)
3850 (tfile_get_trace_state_variable_value): Make sure the remote
3851 traceframe matches gdb's current traceframe.
3852 * remote.c (remote_traceframe_number): New global.
3853 (remote_open_1): Set it to -1.
3854 (set_remote_traceframe): New function.
3855 (remote_fetch_registers, remote_store_registers)
3856 (remote_xfer_memory, remote_xfer_partial)
3857 (remote_get_trace_state_variable_value): Make sure the remote
3858 traceframe matches gdb's current traceframe.
3859 (remote_trace_find): If looking up a traceframe using any method
3860 other than by number, make sure the current remote traceframe
3861 matches gdb's current traceframe. Update the current remote
3862 traceframe if the lookup succeeded.
3863 * infrun.c (fetch_inferior_event): Adjust.
3864 * tracepoint.h (set_current_traceframe): Declare.
3865 (get_traceframe_number, set_traceframe_number): Add describing
3868 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3870 Mark pieces of values as unavailable if the corresponding memory
3873 * valops.c: Include tracepoint.h.
3874 (value_fetch_lazy): Use read_value_memory.
3875 (read_value_memory): New.
3876 * value.h (read_value_memory): Declare.
3877 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
3878 * exec.c (section_table_available_memory): New function.
3879 * exec.h (section_table_available_memory): Declare.
3881 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3883 * Makefile.in (SFILES): Add memrange.c.
3884 (HFILES_NO_SRCDIR): Add memrange.h.
3885 (COMMON_OBS): Add memrange.o.
3886 * memrange.c: New file.
3887 * memrange.h: New file.
3888 * tracepoint.c: Include memrange.h.
3889 (struct mem_range): Delete.
3890 (mem_range_s): Delete.
3891 (traceframe_available_memory): New function.
3892 * tracepoint.h (traceframe_available_memory): Declare.
3894 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3896 * target.h (struct traceframe_info): Forward declare.
3897 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
3898 (struct target_ops) <to_traceframe_info>: New field.
3899 (target_traceframe_info): New.
3900 * target.c (update_current_target): Inherit and default
3902 * remote.c (PACKET_qXfer_traceframe_info): New.
3903 (remote_protocol_features): Register qXfer:traceframe-info:read.
3904 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
3905 (remote_traceframe_info): New.
3906 (init_remote_ops): Install it.
3907 (_initialize_remote): Install "set/show remote traceframe-info"
3909 * tracepoint.h (parse_traceframe_info): Declare.
3910 * tracepoint.c (struct mem_range): New.
3911 (mem_range_s): New typedef.
3912 (struct traceframe_info): New.
3913 (traceframe_info): New global.
3914 (free_traceframe_info): New function.
3915 (clear_traceframe_info): New function.
3916 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
3918 (build_traceframe_info): New function.
3919 (tfile_traceframe_info): New function.
3920 (init_tfile_ops): Install tfile_traceframe_info.
3921 (traceframe_info_start_memory, free_result): New functions.
3922 (memory_attributes, traceframe_info_elements): New globals.
3923 (parse_traceframe_info, get_traceframe_info): New functions.
3924 * features/traceframe-info.dtd: New file.
3925 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
3927 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3929 Base support for <unavailable> value contents.
3931 * value.h (value_bytes_available): Declare.
3932 (mark_value_bytes_unavailable): Declare.
3933 * value.c (struct range): New struct.
3934 (range_s): New typedef.
3935 (ranges_overlap): New function.
3936 (range_lessthan): New function.
3937 (ranges_contain_p): New function.
3938 (struct value) <unavailable>: New field.
3939 (value_bytes_available): New function.
3940 (mark_value_bytes_unavailable): New function.
3941 (require_not_optimized_out): Constify parameter.
3942 (require_available): New function.
3943 (value_contents_all, value_contents): Require all bytes be
3945 (value_free): Free `unavailable'.
3946 (value_copy): Copy `unavailable'.
3947 * valprint.h (val_print_unavailable): Declare.
3948 * valprint.c (valprint_check_validity): Rename `offset' parameter
3949 to `embedded_offset'. If printing a scalar, check whether the
3950 value chunk is available.
3951 (val_print_unavailable): New.
3952 (val_print_scalar_formatted): Check whether the value is
3954 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
3955 pretty-printing unavailable values.
3957 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3959 Fix const/volatile qualifiers of C++ types, PR c++/12328.
3960 * c-typeprint.c (c_type_print_args): Update the function comment. New
3961 variable param_type, initialize it. Remove const/volatile qualifiers
3962 for language_cplus and !show_artificial. Use param_type.
3964 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3966 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
3967 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
3968 * symtab.h (struct symtab) <next>: Comment extension.
3970 2011-02-12 Yao Qi <yao@codesourcery.com>
3972 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
3974 2011-02-11 Yao Qi <yao@codesourcery.com>
3976 * common/Makefile.in: Add copyright header.
3978 2011-02-11 Pedro Alves <pedro@codesourcery.com>
3980 * infrun.c (proceed): Move switching out and in of tfind mode from
3982 (fetch_inferior_event): ... to here.
3984 2011-02-11 Yao Qi <yao@codesourcery.com>
3986 * Makefile.in: Remove signals.o from COMMON_OBS. Link
3988 * configure.ac: Add common to sub dir.
3989 * configure: Regenerate.
3991 2011-02-11 Yao Qi <yao@codesourcery.com>
3995 * common/Makefile.in: New.
3996 * common/configure.ac: New.
3997 * common/aclocal.m4: New.
3998 * common/configure: Generate.
4000 2011-02-10 Pedro Alves <pedro@codesourcery.com>
4002 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
4003 side of the parenthesis.
4006 2010-07-13 Jakub Jelinek <jakub@redhat.com>
4007 * vec.h (VEC_block_remove): Fix comment.
4009 2011-02-08 Michael Snyder <msnyder@vmware.com>
4011 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
4013 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4015 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
4016 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
4019 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4022 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
4024 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
4025 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
4027 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4029 * dwarf2read.c (read_subroutine_type): Set special calling
4030 convention flag for functions compiled by IBM XL C for OpenCL.
4031 * ppc-sysv-tdep.c: Include "dwarf2.h"
4032 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
4034 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
4035 IBM OpenCL vector types calling convention.
4036 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
4037 (ppc_sysv_abi_broken_return_value): Likewise.
4038 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
4039 types calling convention.
4040 (ppc64_sysv_abi_return_value): Likewise.
4041 * spu-tdep.c: Include "dwarf2.h"
4042 (spu_return_value): Implement IBM OpenCL vector types calling
4045 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4047 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
4048 correct ABI for AltiVec vector arguments.
4050 2011-02-07 Pedro Alves <pedro@codesourcery.com>
4052 * valprint.c (val_print): Extend comment.
4053 * ada-valprint.c (ada_valprint): Rewrite comment deferring
4054 interface explanation to val_print.
4055 (ada_val_print_array): Adjust comment to current interface.
4056 (print_field_values): Adjust comment to current interface.
4057 * c-valprint.c (c_val_print): Rewrite comment deferring interface
4058 explanation to val_print.
4059 * f-valprint.c (f_val_print): Ditto.
4060 * jv-valprint.c (java_val_print): Ditto.
4061 * m2-valprint.c (m2_val_print): Ditto.
4062 * p-valprint.c (pascal_val_print): Ditto.
4064 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
4066 * breakpoint.c (parse_breakpoint_sals): Fix description.
4068 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
4069 Oguz Kayral <oguzkayral@gmail.com>
4071 * python/py-inferior.c (python_on_normal_stop): New function.
4072 (python_on_resume): New function.
4073 (python_inferior_exit): New function.
4074 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
4075 inferior_exit observers.
4076 * python/py-evtregistry.c: New file.
4077 * python/py-threadevent.c : New file.
4078 * python/py-event.c: New file.
4079 * python/py-evts.c: New file.
4080 * python/py-continueevent.c: New file.
4081 * python/py-bpevent.c: New file.
4082 * python/py-signalevent.c: New file.
4083 * python/py-exetiedevent.c: New file.
4084 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
4085 Move struct breakpoint_object from here...
4086 * python/python-internal.h: ... to here.
4087 * python/py-event.h: New file.
4088 * python/py-events.h: New file.
4089 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
4090 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
4091 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
4092 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
4093 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
4094 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
4095 Add build rules for all the above.
4097 2011-02-04 Tom Tromey <tromey@redhat.com>
4099 * dwarf2read.c (dwarf2_section_empty_p): New function.
4100 (dwarf2_read_section): Use dwarf2_section_empty_p.
4101 (dwarf2_section_size): New function.
4102 (dwarf2_get_section_info): Unconditionally read section.
4103 (dwarf2_read_index): Use dwarf2_section_empty_p.
4104 (partial_read_comp_unit_head): Use dwarf2_section_size.
4105 (dwarf2_symbol_mark_computed): Likewise.
4107 2011-02-04 David Daney <ddaney@caviumnetworks.com>
4109 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
4111 2011-02-04 David Daney <ddaney@caviumnetworks.com>
4113 * mips-linux-tdep.c: Include xml-syscall.h.
4114 (mips_linux_get_syscall_number): New function.
4115 (mips_linux_init_abi): Add calls to
4116 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
4117 * data-directory/Makefile.in (SYSCALLS_FILES): Add
4118 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
4119 * syscalls/mips-n32-linux.xml: New file.
4120 * syscalls/mips-n64-linux.xml: New file.
4121 * syscalls/mips-o32-linux.xml: New file.
4123 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4125 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
4126 Complain about inverted range entries.
4127 (dwarf2_record_block_ranges): Likewise.
4129 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4132 * breakpoint.c (update_watchpoint): Fix name of the
4133 update_global_location_list function.
4134 (print_one_breakpoint): Fix typo.
4135 (_initialize_breakpoint): Remove extra space in hbreak help
4137 * breakpoint.h (struct bp_location) <length>: Fix field
4140 2011-02-04 Pedro Alves <pedro@codesourcery.com>
4142 * regcache.c (registers_changed_ptid): Don't explictly always
4143 clear `current_regcache'. Only clear current_thread_ptid and
4144 current_thread_arch when PTID matches. Only reinit the frame
4145 cache if PTID matches the current inferior_ptid. Move alloca(0)
4147 (registers_changed): ... here.
4149 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
4151 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
4152 starts with __stack_chk_guard as stack guard symbol.
4154 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
4156 * disasm.c (compare_lines): Handle the end of sequence markers
4157 within the line table to better support disassembling over
4158 compilation unit boundaries.
4160 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4162 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
4163 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
4164 implementation even if no symbols are available.
4165 (thumb_analyze_prologue): Update call to skip_prologue_function.
4166 (arm_analyze_prologue): Likewise.
4168 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4170 * arm-tdep.c: Include "observer.h".
4171 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
4172 (arm_exidx_data_key): New static variable.
4173 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
4174 (struct arm_exidx_data): Likewise.
4175 (arm_exidx_data_free): New function.
4176 (arm_compare_exidx_entries): Likewise.
4177 (arm_obj_section_from_vma): Likewise.
4178 (arm_exidx_new_objfile): Likewise.
4179 (arm_find_exidx_entry): Likewise.
4180 (arm_exidx_fill_cache): Likewise.
4181 (arm_exidx_unwind_sniffer): Likewise.
4182 (arm_exidx_unwind): New global variable.
4183 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
4184 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
4185 observer. Register arm_exidx_data_key as objfile data.
4187 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4189 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
4190 due to accessing uninitialized variable. Fix indentation.
4192 2011-02-02 Pedro Alves <pedro@codesourcery.com>
4194 * c-valprint.c (c_value_print): When doing virtual base pointer
4195 adjustment, create a new value with adjusted contents rather than
4196 changing the contents of the value being printed (and getting it
4199 2011-02-02 Pedro Alves <pedro@codesourcery.com>
4201 * xml-support.c (xml_find_attribute): New.
4202 (xinclude_start_include): Use it.
4203 * xml-support.h (xml_find_attribute): Declare.
4204 * memory-map.c (memory_map_start_memory)
4205 (memory_map_start_property): Use xml_find_attribute.
4206 * osdata.c (osdata_start_osdata, osdata_start_column): Use
4208 * remote.c (start_thread): Use xml_find_attribute.
4209 * solib-target.c (library_list_start_segment)
4210 (library_list_start_section, library_list_start_library)
4211 (library_list_start_list): Use xml_find_attribute.
4212 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
4213 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
4214 (tdesc_start_field): Use xml_find_attribute.
4216 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
4218 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
4219 (BUILD_OCL_VTYPES): Update.
4221 2011-02-02 Joel Brobecker <brobecker@adacore.com>
4223 * configure.ac: Work around non-GNU sed limitation when computing
4224 python version number.
4225 * configure: Regenerate.
4227 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4229 Fix debug printing of TYPE_INSTANCE.
4230 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
4231 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
4233 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4235 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
4236 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
4237 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
4238 * ada-operator.inc: Rename the file to ...
4239 * ada-operator.def: ... here, wrap all the entries by macro OP.
4240 * expprint.c (op_name_standard): Remove all the entries. Include
4241 "std-operator.def" instead.
4242 * expression.h (enum exp_opcode): Include "std-operator.def" and
4243 "ada-operator.def". Move all the entries ...
4244 * std-operator.def: ... here, wrap all the entries by macro OP.
4246 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
4248 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
4249 * breakpoint.c (remove_jit_event_breakpoints): New function.
4250 * jit.c (jit_descriptor_addr): Delete.
4251 (registering_code): Delete.
4252 (clear_int): Delete.
4253 (jit_inferior_data): New variable.
4254 (struct jit_inferior_data): New type.
4255 (get_jit_inferior_data): New function.
4256 (jit_inferior_data_cleanup): New function.
4257 (jit_read_descriptor): Adjust.
4258 (jit_register_code): Adjust.
4259 (jit_breakpoint_re_set_internal): New function; move code here ...
4260 (jit_inferior_init): ... from here.
4261 (jit_breakpoint_re_set): Adjust.
4262 (jit_reset_inferior_data_and_breakpoints): New function.
4263 (jit_inferior_created_observer): Adjust.
4264 (jit_inferior_exit_hook): Adjust.
4265 (jit_executable_changed_observer): New function.
4266 (jit_event_handler): Adjust.
4267 (_initialize_jit): Adjust.
4269 2011-01-31 Michael Snyder <msnyder@vmware.com>
4271 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
4274 2011-01-31 Tom Tromey <tromey@redhat.com>
4277 * python/python.c (execute_gdb_command): Call
4278 prevent_dont_repeat.
4279 * top.c (suppress_dont_repeat): New global.
4280 (dont_repeat): Use it.
4281 (prevent_dont_repeat): New function.
4282 * command.h (prevent_dont_repeat): Declare.
4284 2011-01-31 Tom Tromey <tromey@redhat.com>
4286 * infcmd.c (finish_backward): Use breakpoint_set_silent.
4287 * python/py-breakpoint.c (bppy_set_silent): Use
4288 breakpoint_set_silent.
4289 (bppy_set_thread): Use breakpoint_set_thread.
4290 (bppy_set_task): Use breakpoint_set_task.
4291 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
4292 (breakpoint_set_task): Declare.
4293 (make_breakpoint_silent): Remove.
4294 * breakpoint.c (breakpoint_set_silent): New function.
4295 (breakpoint_set_thread): Likewise.
4296 (breakpoint_set_task): Likewise.
4297 (make_breakpoint_silent): Remove.
4299 2011-01-31 Tom Tromey <tromey@redhat.com>
4301 * breakpoint.h (user_breakpoint_p): Declare.
4302 * breakpoint.c (user_breakpoint_p): New function.
4303 (breakpoint_1): Use it.
4304 (save_breakpoints): Likewise.
4306 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4308 * configure.ac: Add handling of Python distribution on Windows.
4309 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
4310 sysconfig variables are not defined, then do not use them.
4311 On Windows, if LIBPL is not defined, then use prefix + '/libs'
4312 instead. On Windows, return all paths using forward-slashes
4313 rather than backslashes.
4315 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4317 * configure.ac: Remove fallback behavior for building
4318 against Python. Remove tweaking of Python include path.
4319 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
4320 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
4321 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
4322 Always restore CPPFLAGS and LIBS after linking test.
4323 * configure: Regenerated.
4324 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
4325 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
4326 * python/python-internal.h: Adjust includes of Python .h files.
4328 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4330 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
4333 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4335 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
4338 2011-01-31 Yao Qi <yao@codesourcery.com>
4340 * arm-linux-nat.c: Update calls to regcache_register_status
4341 instead of regcache_valid_p.
4342 * aix-thread.c: Likewise.
4343 * i386gnu-nat.c: Likewise.
4345 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4348 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
4349 touching TYPE_FIELD_ARTIFICIAL.
4351 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
4353 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
4356 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4358 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
4359 selected, don't try iterating over the traceframe's blocks.
4360 (tfile_has_stack): If there's no traceframe selected, then there's
4362 (tfile_has_registers): If there's no traceframe selected, then
4363 there's no registers.
4365 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4367 * target.c (memory_xfer_partial): No need to restore shadows if we
4368 haven't read anything.
4370 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4372 * mips-tdep.c (mips_print_register): Use get_frame_register_value
4373 and val_print_scalar_formatted.
4375 2011-01-27 Pedro Alves <pedro@codesourcery.com>
4377 * tracepoint.c (tfile_read): New.
4378 (tfile_open): Use it.
4379 (tfile_get_traceframe_address): Use it.
4380 (tfile_trace_find): Use it.
4381 (walk_blocks_callback_func): New typedef.
4382 (match_blocktype): New function.
4383 (traceframe_walk_blocks): New function.
4384 (traceframe_find_block_type): New function.
4385 (tfile_fetch_registers, tfile_xfer_partial)
4386 (tfile_get_trace_state_variable_value): Use
4387 traceframe_find_block_type and tfile_read.
4389 2011-01-26 Kevin Buettner <kevinb@redhat.com>
4391 * remote-mips.c: Add internationalization mark ups. Remove
4392 trailing \n from already marked up strings.
4394 2011-01-26 Tom Tromey <tromey@redhat.com>
4396 * python/py-prettyprint.c (print_string_repr): Clear
4397 'addressprint' option when calling val_print_string.
4398 (print_children): Handle Val_pretty_default. Clear 'addressprint'
4399 option when calling val_print_string.
4401 2011-01-26 Tom Tromey <tromey@redhat.com>
4403 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
4405 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
4407 (gdb_py_longest, gdb_py_ulongest): New typedefs.
4408 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
4409 (gdb_py_long_as_ulongest): New defines.
4410 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
4411 (gdb_py_int_as_long): Declare.
4412 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
4413 GDB_PY_LL_ARG, gdb_py_object_from_longest.
4414 (valpy_long): Add comment.
4415 * python/py-utils.c (get_addr_from_python): Use
4416 gdb_py_long_as_ulongest. Handle overflow properly.
4417 (gdb_py_object_from_longest): New function.
4418 (gdb_py_object_from_ulongest): Likewise.
4419 (gdb_py_int_as_long): Likewise.
4420 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
4421 * python/py-symtab.c (salpy_get_pc): Use
4422 gdb_py_long_from_ulongest.
4423 (salpy_get_line): Use PyInt_FromLong.
4424 * python/py-param.c (set_parameter_value): Use
4426 * python/py-lazy-string.c (stpy_get_address): Use
4427 gdb_py_long_from_ulongest.
4428 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
4429 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
4430 * python/py-breakpoint.c (bppy_set_thread): Use
4432 (bppy_set_task): Likewise.
4433 (bppy_set_ignore_count): Likewise.
4434 (bppy_set_hit_count): Likewise.
4435 * python/py-block.c (blpy_get_start): Use
4436 gdb_py_object_from_ulongest.
4437 (blpy_get_end): Likewise.
4438 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
4440 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
4443 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
4444 * gdb/solib.c (solib_read_symbols): Check for addr_low in
4445 equality test for objfile, initialize addr_low if needed.
4447 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4449 * tui/tui-regs.c (tui_register_format): Remove dead code.
4451 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4453 * printcmd.c (print_formatted): Use val_print_scalar_formatted
4454 instead of print_scalar_formatted.
4455 (print_scalar_formatted): Don't handle 's' format strings here,
4456 and add an assertion that we never see such format here.
4457 * valprint.h (val_print_scalar_formatted): Declare.
4458 * valprint.c (val_print_scalar_formatted): New.
4459 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
4460 instead of print_scalar_formatted.
4461 * jv-valprint.c (java_val_print): Ditto.
4462 * p-valprint.c (pascal_val_print): Ditto.
4463 * ada-valprint.c (ada_val_print_1): Ditto.
4464 * f-valprint.c (f_val_print): Ditto.
4465 * infcmd.c (registers_info): Ditto.
4466 * m2-valprint.c (m2_val_print): Ditto.
4468 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4470 * m2-valprint.c (print_unbounded_array): Pass
4471 value_contents_for_printing rather than value_contents, to
4472 m2_print_array_contents. Also pass in the value.
4474 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4476 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
4477 (save_gdb_index_command): Switch to .gdb_index version 4.
4479 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4481 * mi/mi-main.c (get_register): Use get_frame_register_value rather
4482 than frame_register, and always pass a valid value to val_print.
4484 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4486 Centralize printing "<optimized out>".
4488 * valprint.h (val_print_optimized_out): Declare.
4489 * cp-valprint.c (cp_print_value_fields): Use
4490 val_print_optimized_out.
4491 * jv-valprint.c (java_print_value_fields): Ditto.
4492 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4493 * printcmd.c (print_formatted): Ditto.
4494 * valprint.c (valprint_check_validity): Ditto.
4495 (value_check_printable): Ditto.
4496 (val_print_optimized_out): New.
4498 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4500 * infcmd.c (default_print_registers_info): Allocate values so to
4501 never pass a NULL value to val_print.
4503 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4505 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
4506 boolean. Make sure to always pass a value that matches the
4507 contents buffer to callees. Preserve `address' for following
4509 * value.c (value_contents_for_printing_const): New.
4510 (value_address): Constify value argument.
4511 * value.h (value_contents_for_printing_const): Declare.
4512 (value_address): Constify value argument.
4514 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4516 * regcache.c (struct regcache_descr): Rename
4517 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
4518 and sizeof_cooked_register_valid_p to
4519 sizeof_cooked_register_status.
4520 (init_regcache_descr): Adjust.
4521 (struct regcache): Rename register_valid_p field to
4523 (regcache_xmalloc_1, regcache_xfree, regcache_save)
4524 (do_cooked_read): Adjust.
4525 (regcache_valid_p): Rename to ...
4526 (regcache_register_status): ... this. Adjust.
4527 (regcache_invalidate): Adjust.
4528 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
4530 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
4531 as unavailable, not valid.
4532 (regcache_dump): Adjust.
4533 * regcache.h (enum register_status): New.
4534 (regcache_register_status): Declare.
4535 (regcache_invalidate): Delete declaration.
4536 * corelow.c (get_core_registers): Adjust.
4537 * tracepoint.c (tfile_fetch_registers): Adjust.
4538 * trad-frame.c (REG_VALUE): Rename to ...
4539 (TF_REG_VALUE): ... this.
4540 (REG_UNKNOWN): Rename to ...
4541 (TF_REG_UNKNOWN): ... this.
4542 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
4543 * mi/mi-main.c (register_changed_p): Adjust.
4545 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4547 * regcache.c (struct regcache_descr): Remove outdated comment.
4548 (init_regcache_descr): Remove sizeof_raw_register_valid_p
4550 (regcache_xmalloc): Rename to ...
4551 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
4552 Allocate the regcache type accordingly.
4553 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
4554 (regcache_xfree): Asser the source is also readonly. Copy sizeof
4555 cooked registers, not raw.
4556 (regcache_dup_no_passthrough): Delete.
4557 (get_thread_arch_regcache): Use regcache_xmalloc_1.
4558 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
4559 mention obsolete write_register_bytes.
4560 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
4562 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4564 Stop remote_read_bytes from handling partial reads itself.
4566 * remote-fileio.c: Include target.h.
4567 (remote_fileio_write_bytes): Delete.
4568 (remote_fileio_func_open, remote_fileio_func_write)
4569 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
4571 (remote_fileio_func_stat): Use target_read_memory and
4572 target_write_memory.
4573 (remote_fileio_func_gettimeofday): Use target_write_memory.
4574 (remote_fileio_func_system): Use target_read_memory.
4575 * remote.c (remote_write_bytes): Make it static.
4576 (remote_read_bytes): Don't handle partial reads here.
4577 * remote.h (remote_read_bytes): Delete declaration.
4579 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4581 Simplify XML parsing a bit.
4583 * xml-support.h (gdb_xml_parse_quick): Declare.
4584 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
4585 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
4587 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
4588 gdb_xml_create_parser_and_cleanup_1.
4589 (gdb_xml_parse_quick): New.
4590 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
4591 * osdata.c (osdata_parse): Ditto.
4592 * remote.c (remote_threads_info): Ditto.
4593 * solib-target.c (solib_target_parse_libraries): Ditto.
4594 * xml-syscall.c (syscall_parse_xml): Ditto.
4595 * xml-tdesc.c (tdesc_parse_xml): Ditto.
4597 2011-01-24 Kevin Buettner <kevinb@redhat.com>
4599 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
4600 with remote-mips.o added to gdb_target_obs.
4601 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
4603 2011-01-24 Pedro Alves <pedro@codesourcery.com>
4605 * ada-valprint.c (val_print_packed_array_elements): Pass the
4606 correct struct value to val_print.
4607 (ada_val_print_1): Ditto.
4609 2011-01-24 Pedro Alves <pedro@codesourcery.com>
4611 Don't lose embedded_offset in printing routines throughout.
4613 * valprint.h (val_print_array_elements): Change prototype.
4614 * valprint.c (val_print_array_elements): Add `embedded_offset'
4615 parameter, and adjust to pass it down to val_print, while passing
4616 `valaddr' or `address' unmodified. Take embedded_offset into
4617 account when checking repetitions.
4618 * c-valprint.c (c_val_print): Pass embedded_offset to
4619 val_print_array_elements instead of adjusting `valaddr' and
4621 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
4622 embedded_offset to val_print_array_elements instead of adjusting
4624 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
4625 * p-valprint.c (pascal_val_print): Pass embedded_offset to
4626 val_print_array_elements and pascal_object_print_value_fields
4627 instead of adjusting `valaddr'.
4628 (pascal_object_print_value_fields): Add `offset' parameter, and
4630 (pascal_object_print_value): Add `offset' parameter, and adjust to
4632 (pascal_object_print_static_field): Use
4633 value_contents_for_printing/value_embedded_offset, rather than
4635 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
4636 parameter, and adjust to use it. Use
4637 value_contents_for_printing/value_embedded_offset, rather than
4639 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
4640 (ada_val_print_array): Add `offset' parameter, and adjust to use
4642 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
4643 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
4644 Instead work with offsets. Use
4645 value_contents_for_printing/value_embedded_offset, rather than
4646 value_contents. Change `defer_val_int' local type to CORE_ADDR,
4647 and use value_from_pointer to extract a target pointer, rather
4648 than value_from_longest.
4649 (print_variant_part): Add `offset' parameter. Replace
4650 `outer_valaddr' parameter by a new `outer_offset' parameter.
4651 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4652 (ada_value_print): Use
4653 value_contents_for_printing/value_embedded_offset, rather than
4655 (print_record): Add `offset' parameter, and adjust to pass it
4657 (print_field_values): Add `offset' parameter. Replace
4658 `outer_valaddr' parameter by a new `outer_offset' parameter.
4659 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4660 Use value_contents_for_printing/value_embedded_offset, rather than
4662 * d-valprint.c (dynamic_array_type): Use
4663 value_contents_for_printing/value_embedded_offset, rather than
4665 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
4666 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4667 (java_print_value_fields): Take `offset' into account. Don't
4668 re-adjust `valaddr'. Instead pass down adjusted offsets.
4669 (java_val_print): Take `embedded_offset' into account. Pass it to
4670 java_print_value_fields.
4671 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
4672 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
4673 down adjusted offsets.
4674 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
4675 (f_val_print): Take `embedded_offset' into account.
4677 2011-01-21 Joel Brobecker <brobecker@adacore.com>
4679 * inflow.c: Include "gdbcmd.h".
4680 (interactive_mode): New static global, moved here from top.c.
4681 (show_interactive_mode): New function, moved here from top.c.
4682 use gdb_has_a_terminal instead of input_from_terminal_p to
4683 determine the current mode.
4684 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
4686 (_initialize_inflow): Add the "set/show interactive-mode"
4687 commands. Moved here from top.c, after having adjusted slightly
4689 * top.c (interactive_mode, show_interactive_mode): Delete, moved
4691 (input_from_terminal_p): Remove handling of "interactive-mode"
4692 setting, moved to infow.c.
4693 (init_main): Remove creation of the "set/show interactive-mode"
4694 commands, moved to inflow.c.
4696 2011-01-19 Joel Brobecker <brobecker@adacore.com>
4698 * NEWS: Add entry for native ia64-hpux support.
4700 2011-01-19 Tom Tromey <tromey@redhat.com>
4703 * thread.c (free_thread): Free 'name'.
4704 (print_thread_info): Emit thread name. Change CLI output.
4705 (thread_name_command): New function.
4706 (do_captured_thread_select): Emit newline.
4707 (_initialize_thread): Register 'thread name' command.
4708 * target.h (struct target_ops) <to_thread_name>: New field.
4709 (target_thread_name): New macro.
4710 * target.c (update_current_target): Handle to_thread_name.
4711 * python/py-infthread.c (thpy_get_name): New function.
4712 (thpy_set_name): Likewise.
4713 (thread_object_getset): Add "name".
4714 * linux-nat.c (linux_nat_thread_name): New function.
4715 (linux_nat_add_target): Set to_thread_name.
4716 * gdbthread.h (struct thread_info) <name>: New field.
4718 2011-01-18 Joel Brobecker <brobecker@adacore.com>
4720 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
4721 (ada_val_print_1): Likewise.
4723 2011-01-18 Joel Brobecker <brobecker@adacore.com>
4725 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
4726 upper limit address is not greater than the function end address
4727 when the upper limit could not be computed using the debugging
4730 2011-01-17 Tom Tromey <tromey@redhat.com>
4732 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
4734 * utils.c: Include gdb_regex.h.
4735 (do_regfree_cleanup): New function.
4736 (make_regfree_cleanup): Likewise.
4737 (get_regcomp_error): Likewise.
4738 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
4740 2011-01-17 Tom Tromey <tromey@redhat.com>
4742 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
4745 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
4747 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
4748 for internal variables.
4749 (last_was_structop): New static variable.
4750 (COMPLETE): New token.
4751 (field_exp): New rule to group all '.' suffix handling.
4752 Add mark_struct_expression calls when approriate to be able
4753 to correctly find fields for completion.
4754 (yylex): Adapt to handle field completion and set INTVAR when
4757 2011-01-14 Yao Qi <yao@codesourcery.com>
4759 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
4760 save_reggroup, restore_reggroup and all_reggroup.
4762 2011-01-14 Joel Brobecker <brobecker@adacore.com>
4764 * ada-valprint. (ada_printchar): Use the correct type length
4765 in call to ada_emit_char.
4766 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
4768 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
4770 * solib-som.h (hpux_major_release): Declare variable here.
4771 * solib-som.c: Remove <sys/utsname.h> header.
4772 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
4773 (hpux_major_release): Make global, change default value to
4774 DEFAULT_HPUX_MAJOR_RELEASE.
4775 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
4776 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
4777 Add "solib-som.h" header.
4778 (set_hpux_major_release): New function.
4779 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
4781 2011-01-14 Mike Frysinger <vapier@gentoo.org>
4783 * configure.tgt (*-*-uclinux*): Match more Linux os targets
4785 2011-01-14 Joel Brobecker <brobecker@adacore.com>
4787 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
4788 new-line at end of warning message.
4789 (ia64_hpux_store_register): Remove trailing new-line at end of
4791 * ia64-hpux-tdep.c: Rephrase comment.
4792 * solib-ia64-hpux.c (struct dld_info): Change type of field
4793 dld_flags from "long long" to ULONGEST.
4795 2011-01-14 Pedro Alves <pedro@codesourcery.com>
4797 * target.h (deprecated_child_ops): Delete declaration.
4798 * target.c (deprecated_child_ops): Delete definition.
4800 2011-01-14 Pedro Alves <pedro@codesourcery.com>
4802 * Makefile.in (hpux-thread.o): Delete rule.
4803 * configure.ac: Don't check for HPUX DCE threads support.
4804 * configure, config.in: Regenerate.
4805 * hppa-hpux-nat.c (child_suppress_run): Delete.
4806 (hppa_hpux_child_can_run): Delete.
4807 (_initialize_hppa_hpux_nat): Don't override to_can_run.
4808 * hpux-thread.c: Delete.
4810 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4812 * hpux-thread.c (hpux_pid_to_str): Delete.
4814 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4816 * ada-valprint.c (ada_emit_char): Remove strange code.
4817 Check that c is <= UCHAR_MAX before passing it to isascii.
4818 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
4820 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4822 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
4823 to the case where instream is stdin.
4825 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4827 * ia64-tdep.h (struct regcache): Forward declare.
4828 (struct ia64_infcall_ops): New struct type.
4829 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
4831 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
4832 Renames ia64_find_global_pointer.
4833 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
4834 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
4835 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
4837 (ia64_infcall_ops): New static global constant.
4838 (ia64_gdbarch_init): Set tdep->infcall_ops.
4839 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
4840 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
4841 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
4842 (ia64_hpux_dummy_code): New static global constant.
4843 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
4844 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
4845 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
4847 (ia64_hpux_infcall_ops): New static global constant.
4848 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
4849 for inferior function calls to work properly on ia64-hpux.
4851 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4853 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
4854 * ia64-tdep.h (struct frame_info): forward declaration.
4855 (struct gdbarch_tdep): Add field size_of_register_frame.
4856 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
4857 to determine the size of the register frame.
4858 (ia64_size_of_register_frame): New function.
4859 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
4860 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
4861 (IA64_HPUX_UREG_REASON): New macro.
4862 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
4864 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
4865 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
4866 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
4869 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4871 Add support for ia64-hpux.
4872 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
4873 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
4875 * configure.host: Add handling for ia64-hpux hosts. Add associated
4877 * configure.tgt: Add handling for ia64-hpux targets.
4878 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
4879 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
4880 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
4882 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4884 [ttrace] Compute thread list immediately after attach.
4885 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
4887 (inf_ttrace_attach): Use it.
4889 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4891 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
4892 if we could not determine the frame's function address. Instead,
4893 use the frame's PC, and then continue.
4895 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4897 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
4898 not already defined.
4900 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4902 * ia64-tdep.c (ia64_struct_type_p): New function.
4903 (ia64_extract_return_value): Handle integral values that are
4904 less than 8 bytes long.
4905 (ia64_push_dummy_call): Likewise.
4907 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4909 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
4910 floatformat_ia64_ext.
4911 (floatformat_ia64_ext_big): New static const.
4912 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
4914 2011-01-12 Tom Tromey <tromey@redhat.com>
4916 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
4918 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
4919 (mi_cmd_thread_list_ids): Likewise.
4920 (mi_cmd_data_list_changed_registers): Likewise.
4921 (mi_cmd_data_list_register_values): Likewise.
4922 (mi_cmd_data_write_register_values): Likewise.
4923 (mi_cmd_data_evaluate_expression): Likewise.
4924 (mi_cmd_data_read_memory): Likewise.
4925 (mi_cmd_data_read_memory_bytes): Likewise.
4926 (mi_cmd_data_write_memory): Likewise.
4927 (mi_cmd_enable_timings): Likewise.
4928 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
4929 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
4930 (mi_cmd_var_delete): Likewise.
4931 (mi_cmd_var_set_format): Likewise.
4932 (mi_cmd_var_show_format): Likewise.
4933 (mi_cmd_var_info_num_children): Likewise.
4934 (mi_cmd_var_list_children): Likewise.
4935 (mi_cmd_var_info_type): Likewise.
4936 (mi_cmd_var_info_expression): Likewise.
4937 (mi_cmd_var_show_attributes): Likewise.
4938 (mi_cmd_var_assign): Likewise.
4939 (mi_cmd_var_update): Likewise.
4940 (mi_cmd_enable_pretty_printing): Likewise.
4941 (mi_cmd_var_set_update_range): Likewise.
4942 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
4944 (mi_cmd_target_file_put): Likewise.
4945 (mi_cmd_target_file_delete): Likewise.
4946 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
4948 (mi_cmd_stack_info_depth): Likewise.
4949 (mi_cmd_stack_list_locals): Likewise.
4950 (mi_cmd_stack_list_args): Likewise.
4951 (mi_cmd_stack_select_frame): Likewise.
4952 (mi_cmd_stack_select_frame): Likewise.
4953 (mi_cmd_stack_info_frame): Likewise.
4954 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
4956 (mi_cmd_file_list_exec_source_files): Likewise.
4957 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
4958 (mi_cmd_env_cd): Likewise.
4959 (mi_cmd_env_path): Likewise.
4960 (mi_cmd_env_dir): Likewise.
4961 (mi_cmd_inferior_tty_show): Likewise.
4962 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
4963 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
4964 (mi_cmd_break_watch): Likewise.
4966 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
4968 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
4969 (ppc_linux_insert_hw_breakpoint): Likewise.
4970 (ppc_linux_remove_hw_breakpoint): Likewise.
4971 (ppc_linux_insert_watchpoint): Likewise.
4973 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
4974 Jan Kratochvil <jan.kratochvil@redhat.com>
4976 PR fortran/11104 and DWARF unbound arrays detection.
4977 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
4978 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
4979 unspecified upper bound.
4980 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
4981 variables array_size_array, tmp_type and offset_item. New variable
4982 array. Remove call to f77_get_upperbound. New variables array_type
4983 and index. Call value_subscripted_rvalue for each dimenasion. Remove
4984 the final call to deprecated_set_value_type.
4986 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4988 Make value allocations more lazy.
4989 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
4990 instead of allocate_value and set_value_lazy when possible.
4991 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
4992 instead of allocate_value and set_value_lazy.
4993 * findvar.c (value_of_register_lazy): Likewise.
4994 (read_var_value): Remove V preallocation, call just check_typedef in
4995 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
4996 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
4997 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
4998 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
4999 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
5000 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
5001 the end, remove set_value_lazy there.
5002 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
5003 instead of allocate_value and set_value_lazy when possible.
5004 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
5005 * value.c (allocate_computed_value): Use allocate_value_lazy instead
5006 of allocate_value and set_value_lazy.
5007 (value_from_contents_and_address): Use allocate_value_lazy instead of
5008 allocate_value and set_value_lazy when possible.
5010 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
5012 * disasm.c (dump_insns): Support dumping opcodes for MI.
5013 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
5014 dumping of instruction opcodes.
5016 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
5018 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
5021 2011-01-11 Tom Tromey <tromey@redhat.com>
5023 * thread.c (do_captured_thread_select): Emit newline before
5026 2011-01-11 Michael Snyder <msnyder@vmware.com>
5028 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
5029 * score-tdep.c: Ditto.
5030 * score-tdep.h: Ditto.
5031 * ser-base.c: Ditto.
5032 * ser-go32.c: Ditto.
5035 * ser-mingw.c: Ditto.
5036 * ser-pipe.c: Ditto.
5038 * ser-unix.c: Ditto.
5039 * sh64-tdep.c: Ditto.
5040 * shnbsd-nat.c: Ditto.
5044 * solib-darwin.c: Ditto.
5045 * solib-frv.c: Ditto.
5047 * solib-irix.c: Ditto.
5048 * solib-osf.c: Ditto.
5049 * solib-pa64.c: Ditto.
5050 * solib-som.c: Ditto.
5051 * solib-spu.c: Ditto.
5052 * solib-sunos.c: Ditto.
5053 * solib-svr4.c: Ditto.
5055 * sol-thread.c: Ditto.
5059 * sparc64-linux-tdep.c: Ditto.
5060 * sparc64-tdep.c: Ditto.
5061 * sparc-linux-nat.c: Ditto.
5062 * sparc-linux-tdep.c: Ditto.
5063 * sparc-sol2-nat.c: Ditto.
5064 * sparc-sol2-tdep.c: Ditto.
5065 * sparc-tdep.c: Ditto.
5066 * sparc-tdep.h: Ditto.
5067 * spu-tdep.c: Ditto.
5068 * stabsread.c: Ditto.
5069 * stabsread.h: Ditto.
5077 * target-descriptions.c: Ditto.
5078 * target-descriptions.h: Ditto.
5080 * target-memory.c: Ditto.
5081 * terminal.h: Ditto.
5084 * tracepoint.c: Ditto.
5085 * tracepoint.h: Ditto.
5086 * trad-frame.h: Ditto.
5087 * typeprint.c: Ditto.
5089 2011-01-11 Michael Snyder <msnyder@vmware.com>
5091 * ui-file.c: Comment cleanup, mostly periods and spaces.
5096 * v850-tdep.c: Ditto.
5097 * valarith.c: Ditto.
5099 * valprint.c: Ditto.
5100 * valprint.h: Ditto.
5105 * vax-tdep.c: Ditto.
5109 * windows-nat.c: Ditto.
5110 * windows-tdep.c: Ditto.
5111 * xcoffread.c: Ditto.
5112 * xcoffsolib.c: Ditto.
5113 * xml-support.c: Ditto.
5114 * xstormy16-tdep.c: Ditto.
5115 * xtensa-tdep.c: Ditto.
5116 * xtensa-tdep.h: Ditto.
5118 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5120 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
5121 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
5123 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5124 Thiago Jung Bauermann <bauerman@br.ibm.com>
5126 Implement support for PowerPC BookE ranged watchpoints.
5128 (struct breakpoint_ops) <resources_needed>: New method.
5129 Initialize to NULL in all existing breakpoint_ops instances.
5130 (struct breakpoint) <exact>: New field.
5131 (target_exact_watchpoints): Declare external global.
5132 * breakpoint.c (target_exact_watchpoints): New global flag.
5133 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
5134 b->enable_state to bp_enabled before calling
5135 hw_watchpoint_used_count.
5136 (hw_watchpoint_used_count): Iterate over all bp_locations in a
5137 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
5139 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
5140 if the watchpoint is exact.
5141 (resources_needed_watchpoint): New function.
5142 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
5143 (watch_command_1): Set b->exact if the user asked for an exact
5144 watchpoint and one can be set.
5145 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
5146 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
5147 the user asks for an exact watchpoint and one can be set. Return
5148 number of needed debug registers to watch the expression.
5149 * gdbtypes.c (is_scalar_type): New function, based on
5150 valprint.c:scalar_type_p.
5151 (is_scalar_type_recursive): New function.
5152 * gdbtypes.h (is_scalar_type_recursive): Declare.
5153 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
5154 handle regions when ranged watchpoints are available.
5155 (create_watchpoint_request): New function.
5156 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
5157 create_watchpoint_request.
5158 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
5159 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
5160 `set powerpc' and `show powerpc' commands.
5161 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5162 Mention documentation comment in the target macro.
5163 (target_region_ok_for_hw_watchpoint): Document return value.
5165 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5167 * breakpoint.c (update_watchpoint): Decide on using a software or
5168 hardware watchpoint after the bp_locations are created.
5170 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5172 Convert hardware watchpoints to use breakpoint_ops.
5173 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
5174 <insert_location>: ... this. Return int instead of void.
5175 Accept pointer to struct bp_location instead of pointer to
5176 struct breakpoint. Adapt all implementations.
5177 (breakpoint_ops) <remove>: Rename to...
5178 <remove_location>: ... this. Accept pointer to struct bp_location
5179 instead of pointer to struct breakpoint. Adapt all implementations.
5180 * breakpoint.c (insert_catchpoint): Delete function.
5181 (insert_bp_location): Call the watchpoint or catchpoint's
5182 breakpoint_ops.insert method.
5183 (remove_breakpoint_1): Call the watchpoint or catchpoint's
5184 breakpoint_ops.remove method.
5185 (insert_watchpoint, remove_watchpoint): New functions.
5186 (watchpoint_breakpoint_ops): New structure.
5187 (watch_command_1): Initialize the OPS field.
5188 * inf-child.c (inf_child_insert_fork_catchpoint)
5189 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
5190 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
5191 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
5193 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
5194 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
5195 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
5196 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
5197 * target.c (update_current_target): Change default implementation of
5198 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
5199 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
5200 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
5201 to_set_syscall_catchpoint to return_one.
5202 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
5203 (debug_to_insert_exec_catchpoint): Report return value.
5204 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
5205 (to_insert_exec_catchpoint): Change declaration to return int instead
5208 2011-01-11 Michael Snyder <msnyder@vmware.com>
5210 * arm-tdep.c: Internationalization.
5213 * fork-child.c: Ditto.
5214 * nto-procfs.c: Ditto.
5215 * ppc-sysv-tdep.c: Ditto.
5217 * remote-mips.c: Ditto.
5219 * rs6000-nat.c: Ditto.
5220 * rs6000-tdep.c: Ditto.
5224 * xml-support.c: Ditto.
5225 * mi/mi-cmd-break.c: Ditto.
5226 * mi/mi-cmd-var.c: Ditto.
5227 * mi/mi-interp.c: Ditto.
5228 * mi/mi-main.c: Ditto.
5230 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
5232 * remote-sim.c (gdbsim_store_register): Update API to
5233 sim_store_register to check more error conditions.
5235 2011-01-10 Michael Snyder <msnyder@vmware.com>
5237 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
5238 * nto-tdep.c: Ditto.
5239 * nto-tdep.h: Ditto.
5240 * objc-exp.y: Ditto.
5241 * objc-lang.c: Ditto.
5242 * objfiles.c: Ditto.
5243 * objfiles.h: Ditto.
5244 * observer.c: Ditto.
5245 * opencl-lang.c: Ditto.
5248 * parser-defs.h: Ditto.
5251 * posix-hdep.c: Ditto.
5252 * ppcbug-rom.c: Ditto.
5253 * ppc-linux-nat.c: Ditto.
5254 * ppc-linux-tdep.c: Ditto.
5255 * ppc-linux-tdep.h: Ditto.
5256 * ppcnbsd-tdep.c: Ditto.
5257 * ppcobsd-tdep.c: Ditto.
5258 * ppcobsd-tdep.h: Ditto.
5259 * ppc-sysv-tdep.c: Ditto.
5260 * ppc-tdep.h: Ditto.
5261 * printcmd.c: Ditto.
5262 * proc-abi.c: Ditto.
5263 * proc-flags.c: Ditto.
5265 * proc-utils.h: Ditto.
5266 * progspace.h: Ditto.
5267 * prologue-value.c: Ditto.
5268 * prologue-value.h: Ditto.
5269 * psympriv.h: Ditto.
5271 * p-typeprint.c: Ditto.
5272 * p-valprint.c: Ditto.
5273 * ravenscar-sparc-thread.c: Ditto.
5274 * ravenscar-thread.c: Ditto.
5275 * ravenscar-thread.h: Ditto.
5277 * regcache.c: Ditto.
5278 * regcache.h: Ditto.
5280 * remote-fileio.c: Ditto.
5281 * remote-fileio.h: Ditto.
5283 * remote-m32r-sdi.c: Ditto.
5284 * remote-mips.c: Ditto.
5285 * remote-sim.c: Ditto.
5286 * rs6000-aix-tdep.c: Ditto.
5287 * rs6000-nat.c: Ditto.
5288 * rs6000-tdep.c: Ditto.
5290 2011-01-10 Michael Snyder <msnyder@vmware.com>
5292 * charset.c (validate): Internationalization.
5293 * coffread.c (read_one_sym): Ditto.
5294 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
5295 * h8300-tdep.c (H8300_extract_return_value): Ditto.
5296 * inflow.c (new_tty): Ditto.
5297 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
5298 * m32c-tdep.c (m32c_return_value): Ditto.
5299 * mep-tdep.c (mep_store_return_value): Ditto.
5300 * score-tdep.c (score7_fetch_insn): Ditto.
5301 * ser-mingw.c (pipe_windows_open): Ditto.
5302 * sh64-tdep.c (sh64_extract_return_value): Ditto.
5303 * spu-tdep.c (spu_register_type): Ditto.
5304 * tracepoint.c (trace_find_command): Ditto.
5305 * valarith.c (value_pos): Ditto.
5307 2011-01-10 Joel Brobecker <brobecker@adacore.com>
5309 * ada-valprint.c (printstr): Minor comment reformatting.
5311 2011-01-08 Michael Snyder <msnyder@vmware.com>
5313 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
5316 2011-01-08 Michael Snyder <msnyder@vmware.com>
5318 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
5319 * hppa-hpux-tdep.c: Ditto.
5320 * hppa-linux-nat.c: Ditto.
5321 * hppa-linux-tdep.c: Ditto.
5322 * hppanbsd-tdep.c: Ditto.
5323 * hppa-tdep.c: Ditto.
5324 * hppa-tdep.h: Ditto.
5325 * hpux-thread.c: Ditto.
5326 * i386-cygwin-tdep.c: Ditto.
5327 * i386-darwin-nat.c: Ditto.
5328 * i386gnu-nat.c: Ditto.
5329 * i386-linux-nat.c: Ditto.
5330 * i386-linux-tdep.c: Ditto.
5331 * i386-nat.c: Ditto.
5332 * i386-nat.h: Ditto.
5333 * i386nbsd-tdep.c: Ditto.
5334 * i386-sol2-nat.c: Ditto.
5335 * i386-stub.c: Ditto.
5336 * i386-tdep.c: Ditto.
5337 * i386-tdep.h: Ditto.
5338 * i387-tdep.c: Ditto.
5339 * ia64-linux-nat.c: Ditto.
5340 * ia64-linux-tdep.c: Ditto.
5341 * ia64-tdep.c: Ditto.
5345 * inferior.c: Ditto.
5346 * inferior.h: Ditto.
5352 * iq2000-tdep.c: Ditto.
5353 * irix5-nat.c: Ditto.
5359 * jv-typeprint.c: Ditto.
5360 * jv-valprint.c: Ditto.
5361 * language.c: Ditto.
5362 * language.h: Ditto.
5363 * linespec.c: Ditto.
5364 * linux-fork.c: Ditto.
5365 * linux-nat.c: Ditto.
5366 * linux-thread-db.c: Ditto.
5367 * lm32-tdep.c: Ditto.
5369 2011-01-08 Michael Snyder <msnyder@vmware.com>
5371 * m2-exp.y: Comment cleanup, mostly periods and spaces.
5373 * m2-typeprint.c: Ditto.
5374 * m2-valprint.c: Ditto.
5375 * m32c-tdep.c: Ditto.
5376 * m32r-linux-nat.c: Ditto.
5377 * m32r-rom.c: Ditto.
5378 * m32r-tdep.c: Ditto.
5379 * m32r-tdep.h: Ditto.
5380 * m68hc11-tdep.c: Ditto.
5381 * m58klinux-nat.c: Ditto.
5382 * m68k-tdep.c: Ditto.
5383 * m88k-tdep.c: Ditto.
5384 * m88k-tdep.h: Ditto.
5385 * machoread.c: Ditto.
5386 * macrocmd.c: Ditto.
5387 * macroexp.c: Ditto.
5388 * macrotab.c: Ditto.
5391 * mdebugread.c: Ditto.
5392 * mdebugread.h: Ditto.
5395 * memory-map.h: Ditto.
5396 * mep-tdep.c: Ditto.
5397 * microblaze-rom.c: Ditto.
5398 * microblaze-tdep.c: Ditto.
5400 * mips-irix-tdep.c: Ditto.
5401 * mips-linux-nat.c: Ditto.
5402 * mips-linux-tdep.c: Ditto.
5403 * mips-linux-tdep.h: Ditto.
5404 * mipsnbsd-nat.c: Ditto.
5405 * mipsnbsd-tdep.c: Ditto.
5406 * mipsread.c: Ditto.
5407 * mips-tdep.c: Ditto.
5408 * mips-tdep.h: Ditto.
5409 * mn10300-linux-tdep.c: Ditto.
5410 * mn10300-tdep.c: Ditto.
5411 * mn10300-tdep.h: Ditto.
5414 * moxie-tdep.c: Ditto.
5415 * moxie-tdep.h: Ditto.
5418 2011-01-08 Mike Frysinger <vapier@gentoo.org>
5420 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
5422 2011-01-08 Robert Millan <rmh@gnu.org>
5424 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
5426 2011-01-07 Michael Snyder <msnyder@vmware.com>
5428 * charset.c (_initialize_charset): Fix typo in string.
5430 2011-01-07 Michael Snyder <msnyder@vmware.com>
5432 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
5434 * tui/tui-layout.c (tui_set_layout_for_display_command):
5435 Split line so that operator goes to beginning of line.
5436 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
5437 assignment out of if statement.
5439 2011-01-07 Michael Snyder <msnyder@vmware.com>
5441 * ada-lang.c: Comment cleanup, mostly periods and spaces.
5442 * ada-lang.h: Ditto.
5443 * ada-tasks.c: Ditto.
5444 * ada-valprint.c: Ditto.
5445 * aix-threads.c: Ditto.
5446 * alpha-linux-nat.c: Ditto.
5447 * alpha-linux-tdep.c: Ditto.
5448 * alpha-mdebug-tdep.c: Ditto.
5449 * alpha-nat.c: Ditto.
5450 * alpha-osf1-tdep.c: Ditto.
5451 * alpha-tdep.c: Ditto.
5452 * alphabsd-nat.c: Ditto.
5453 * alphabsd-tdep.c: Ditto.
5454 * amd64-darwin-tdep.c: Ditto.
5455 * amd64-linux-nat.c: Ditto.
5456 * amd64-linux-tdep.c: Ditto.
5457 * amd64-sol2-tdep.c: Ditto.
5458 * amd64-tdep.c: Ditto.
5459 * amd64-fbsd-tdep.c: Ditto.
5460 * amd64-nbsd-tdep.c: Ditto.
5461 * amd64-obsd-tdep.c: Ditto.
5462 * amd64-linux-nat.c: Ditto.
5463 * amd64-linux-tdep.c: Ditto.
5464 * arm-tdep.c: Ditto.
5465 * arm-tdep.h: Ditto.
5466 * armnbsd-nat.c: Ditto.
5467 * avr-tdep.c: Ditto.
5468 * bfin-tdep.c: Ditto.
5470 * c-typeprintc: Ditto.
5471 * c-valprint.c: Ditto.
5472 * coff-pe-read.h: Ditto.
5473 * coffreead.c: Ditto.
5474 * cris-tdep.c: Ditto.
5476 * darwin-nat-info.c: Ditto.
5477 * darwin-nat.c: Ditto.
5478 * dbug-rom.c: Ditto.
5482 * dec-thread.c: Ditto.
5484 * demangle.c: Ditto.
5485 * dicos-tdep.c: Ditto.
5486 * dictionary.c: Ditto.
5487 * dictionary.h: Ditto.
5488 * dink32-rom.c: Ditto.
5490 * doublest.c: Ditto.
5492 * dummy-frame.c: Ditto.
5493 * dwarf2-frame.c: Ditto.
5494 * dwarf2expr.c: Ditto.
5495 * dwarf2loc.c: Ditto.
5496 * dwarf2read.c: Ditto.
5500 * event-top.h: Ditto.
5501 * exceptions.c: Ditto.
5502 * exceptions.h: Ditto.
5504 * expprint.c: Ditto.
5505 * expression.h: Ditto.
5509 * f-typeprint.c: Ditto.
5510 * f-valprint.c: Ditto.
5511 * fbsd-nat.c: Ditto.
5513 * fork-child.c: Ditto.
5516 * frv-linux-tdep.c: Ditto.
5517 * frv-tdep.c: Ditto.
5519 * gdb-stabs.h: Ditto.
5520 * gdb_assert.h: Ditto.
5521 * gdb_string.h: Ditto.
5522 * gdb_thread_db.h: Ditto.
5523 * gdb_wait.h: Ditto.
5524 * gdbarch.sh: Ditto.
5526 * gdbthread.h: Ditto.
5527 * gdbtypes.c: Ditto.
5528 * gdbtypes.h: Ditto.
5531 * gnu-v2-abi.c: Ditto.
5532 * gnu-v3-abi.c: Ditto.
5533 * go32-nat.c: Ditto.
5534 * gdbarch.c: Regenerate.
5535 * gdbarch.h: Regenerate.
5537 2011-01-07 Michael Snyder <msnyder@vmware.com>
5539 * ax-gdb.c: Adjust some long output strings.
5540 * breakpoint.c: Ditto.
5545 * linux-nat.c: Ditto.
5546 * solib-pa64.c: Ditto.
5547 * solib-som.c: Ditto.
5549 2011-01-06 Tom Tromey <tromey@redhat.com>
5553 * python/python.c (GdbMethods): Add "newest_frame" method.
5554 * python/python-internal.h (gdbpy_newest_frame): Declare.
5555 * python/py-frame.c (gdbpy_newest_frame): New function.
5557 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
5559 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
5560 * jit.c (jit_debug): New variable.
5561 (show_jit_debug): New function.
5562 (struct target_buffer): Use ULONGEST.
5563 (bfd_open_from_target_memory): Likewise.
5564 (jit_register_code, jit_inferior_init): Add debug output.
5565 (_initialize_jit): Register "debug jit" command.
5567 2011-01-06 Tom Tromey <tromey@redhat.com>
5569 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
5570 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
5573 2011-01-06 Tom Tromey <tromey@redhat.com>
5575 * python/py-frame.c (frapy_block): Use get_frame_block.
5577 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5579 Do not stop on SIGPRIO signals by default
5580 * infrun.c (_initialize_infrun): Unset signal_stop and
5581 signal_print for TARGET_SIGNAL_PRIO.
5583 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5585 * ada-tasks.c: Fix style violation in comment.
5587 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5589 * linespec.c (decode_compound, find_method): Remove trailing \n
5590 at end of error string.
5591 * solib-irix.c (irix_current_sos): Likewise.
5592 * varobj.c (uninstall_variable): Likewise.
5594 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5596 * copyright.py: New script.
5597 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
5598 Launch emacs without exec'ing. Call copyright.py afterwards.
5600 2011-01-05 Michael Snyder <msnyder@vmware.com>
5602 * addrmap.c: Shorten lines of >= 80 columns.
5603 * arch-utils.c: Ditto.
5604 * arch-utils.h: Ditto.
5606 * ax-general.c: Ditto.
5608 * blockframe.c: Ditto.
5609 * breakpoint.c: Ditto.
5610 * buildsym.c: Ditto.
5612 * c-typeprint.c: Ditto.
5614 * coffread.c: Ditto.
5618 * cp-namespace.c: Ditto.
5619 * cp-support.c: Ditto.
5620 * dbug-rom.c: Ditto.
5625 * dictionary.c: Ditto.
5627 * doublest.c: Ditto.
5628 * dwarf2-frame.c: Ditto.
5629 * dwarf2expr.c: Ditto.
5630 * dwarf2loc.c: Ditto.
5631 * dwarf2read.c: Ditto.
5634 * event-loop.c: Ditto.
5635 * event-loop.h: Ditto.
5636 * exceptions.h: Ditto.
5638 * expprint.c: Ditto.
5639 * expression.h: Ditto.
5641 * f-valprint.c: Ditto.
5643 * frame-base.c: Ditto.
5644 * frame-unwind.c: Ditto.
5645 * frame-unwind.h: Ditto.
5649 * gdb-stabs.h: Ditto.
5650 * gdb_assert.h: Ditto.
5651 * gdb_dirent.h: Ditto.
5652 * gdb_obstack.h: Ditto.
5654 * gdbtypes.c: Ditto.
5655 * gdbtypes.h: Ditto.
5656 * inf-ttrace.c: Ditto.
5661 * inline-frame.h: Ditto.
5662 * language.c: Ditto.
5663 * language.h: Ditto.
5664 * libunwind-frame.c: Ditto.
5665 * libunwind-frame.h: Ditto.
5666 * linespec.c: Ditto.
5667 * linux-nat.c: Ditto.
5668 * linux-nat.h: Ditto.
5669 * linux-thread-db.c: Ditto.
5670 * machoread.c: Ditto.
5671 * macroexp.c: Ditto.
5672 * macrotab.c: Ditto.
5675 * mdebugread.c: Ditto.
5680 * objfiles.c: Ditto.
5681 * objfiles.h: Ditto.
5683 * p-typeprint.c: Ditto.
5684 * p-valprint.c: Ditto.
5686 * printcmd.c: Ditto.
5687 * proc-events.c: Ditto.
5689 * progspace.c: Ditto.
5690 * progspace.h: Ditto.
5691 * psympriv.h: Ditto.
5694 * regcache.c: Ditto.
5695 * regcache.h: Ditto.
5696 * remote-fileio.c: Ditto.
5698 * ser-mingw.c: Ditto.
5700 * ser-unix.c: Ditto.
5703 * solib-frv.c: Ditto.
5704 * solib-irix.c: Ditto.
5705 * solib-osf.c: Ditto.
5706 * solib-pa64.c: Ditto.
5707 * solib-som.c: Ditto.
5708 * solib-sunos.c: Ditto.
5709 * solib-svr4.c: Ditto.
5710 * solib-target.c: Ditto.
5714 * stabsread.c: Ditto.
5715 * stabsread.c: Ditto.
5718 * symfile-mem.c: Ditto.
5724 * target-descriptions.c: Ditto.
5725 * target-memory.c: Ditto.
5728 * terminal.h: Ditto.
5731 * tracepoint.c: Ditto.
5732 * tracepoint.h: Ditto.
5736 * user-regs.c: Ditto.
5737 * user-regs.h: Ditto.
5739 * valarith.c: Ditto.
5741 * valprint.c: Ditto.
5742 * valprint.h: Ditto.
5747 * xcoffread.c: Ditto.
5748 * xcoffsolib.c: Ditto.
5749 * xcoffsolib.h: Ditto.
5750 * xml-syscall.c: Ditto.
5751 * xml-tdesc.c: Ditto.
5753 2011-01-05 Michael Snyder <msnyder@vmware.com>
5755 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
5756 * cli/cli-decode.c: Ditto.
5757 * cli/cli-dump.c: Ditto.
5758 * cli/cli-logging.c: Ditto.
5759 * cli/cli-script.c: Ditto.
5760 * cli/cli-setshow.c: Ditto.
5761 * common/signals.c: Ditto.
5762 * mi/mi-cmd-break.c: Ditto.
5763 * mi/mi-cmd-disas.c: Ditto.
5764 * mi/mi-cmd-stack.c: Ditto.
5765 * mi/mi-cmd-var.c: Ditto.
5766 * mi/mi-cmds.c: Ditto.
5767 * mi/mi-common.h: Ditto.
5768 * mi/mi-console.c: Ditto.
5769 * mi/mi-interp.c: Ditto.
5770 * mi/mi-main.c: Ditto.
5771 * osf-share/cma_attr.c: Ditto.
5772 * osf-share/cma_deb_core.h: Ditto.
5773 * osf-share/cma_debug_client.h: Ditto.
5774 * osf-share/cma_handle.h: Ditto.
5775 * osf-share/cma_mutex.h: Ditto.
5776 * osf-share/cma_stack_int.h: Ditto.
5777 * osf-share/cma_tcb_defs.h: Ditto.
5778 * python/py-auto-load.c: Ditto.
5779 * python/py-breakpoint.c: Ditto.
5780 * python/py-cmd.c: Ditto.
5781 * python/py-frame.c: Ditto.
5782 * python/py-objfile.c: Ditto.
5783 * python/py-param.c: Ditto.
5784 * python/py-progspace.c: Ditto.
5785 * python/py-symbol.c: Ditto.
5786 * python/py-value.c: Ditto.
5787 * python/python-internal.h: Ditto.
5788 * python/python.c: Ditto.
5789 * tui/tui-data.c: Ditto.
5790 * tui/tui-disasm.c: Ditto.
5791 * tui/tui-hooks.c: Ditto.
5792 * tui/tui-io.c: Ditto.
5793 * tui/tui-layout.c: Ditto.
5794 * tui/tui-regs.c: Ditto.
5795 * tui/tui-source.c: Ditto.
5796 * tui/tui-stack.c: Ditto.
5797 * tui/tui-win.c: Ditto.
5798 * tui/tui-windata.c: Ditto.
5799 * tui/tui-winsource.c: Ditto.
5801 2011-01-05 Joel Brobecker <brobecker@adacore.com>
5803 * configure.ac, gdb.1: Copyright year update.
5805 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5807 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
5808 this_pc_in_block, morestack_msym and morestack_name. Check for
5809 "__morestack" minimal symbol there.
5811 2011-01-03 Joel Brobecker <brobecker@adacore.com>
5813 * symfile.c (find_sym_fns): Add call to dont_repeat.
5815 2011-01-01 Joel Brobecker <brobecker@adacore.com>
5817 Copyright year update in most files (performed by copyright.sh).
5819 2011-01-01 Joel Brobecker <brobecker@adacore.com>
5821 * top.c (print_gdb_version): Update copyright year in version output.
5823 For older changes see ChangeLog-2010.
5829 version-control: never