1 2011-05-13 Doug Evans <dje@google.com>
3 * NEWS: Mention "info auto-load-scripts".
4 * python/py-auto-load.c (struct auto_load_pspace_info): New member
5 script_not_found_warning_printed.
6 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
7 all callers updated. Initialize script_not_found_warning_printed.
8 (get_auto_load_pspace_data_for_loading): New function.
9 (maybe_add_script): New function.
10 (source_section_scripts): Simplify. Only print one warning regardless
11 of the number of auto-load scripts not found.
12 (clear_section_scripts): Clear script_not_found_warning_printed.
13 (auto_load_objfile_script): Record script in hash table.
14 (count_matching_scripts): New function.
15 (maybe_print_script): Renamed from maybe_print_section_script, all
16 callers updated. Rewrite to use ui_out_*.
17 (info_auto_load_scripts): Renamed from
18 maintenance_print_section_scripts, all callers updated.
19 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
20 renamed as "info auto-load-scripts".
22 2011-05-13 Tom Tromey <tromey@redhat.com>
24 * dwarf2expr.c (read_uleb128): Cast intermediate result.
25 (read_sleb128): Likewise.
27 2011-05-13 Tom Tromey <tromey@redhat.com>
29 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
32 2011-05-13 Doug Evans <dje@google.com>
34 * linux-nat.c (debug_linux_nat_async): Delete.
35 Replace all references to use debug_linux_nat instead.
36 (show_debug_linux_nat_async): Delete.
37 (sigchld_handler): Call ui_file_write_async_safe instead of
39 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
40 * ui-file.c (struct ui_file): New member to_write_async_safe.
41 (null_file_write_async_safe): New function.
42 (ui_file_write_async_safe): New function.
43 (set_ui_file_write_async_safe): New function.
44 (ui_file_new): Initialize to_write_async_safe.
45 (stdio_file_write_async_safe): New function.
46 (struct stdio_file): New member fd.
47 (stdio_file_new): Initialize to_write_async_safe, fd.
48 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
50 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
51 (set_ui_file_write_async_safe): Declare.
52 (ui_file_write_async_safe): Declare.
54 2011-05-13 Tom Tromey <tromey@redhat.com>
56 * utils.c (do_value_free): New function.
57 (make_cleanup_value_free): Likewise.
58 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
60 (dwarf2_loc_desc_needs_frame): Call
61 make_cleanup_value_free_to_mark.
62 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
63 * dwarf2expr.c (free_dwarf_expr_context): Don't call
65 (new_dwarf_expr_context): Don't call value_mark.
66 * dwarf2-frame.c (execute_stack_op): Call
67 make_cleanup_value_free_to_mark.
68 * defs.h (make_cleanup_value_free): Declare.
70 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
72 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
73 prepare_execute_command.
74 * top.c (prepare_execute_command): Return cleanup.
75 (execute_command): Use cleanup from prepare_execute_command.
76 * top.h (prepare_execute_command): Change prototype to return
78 * defs.h (struct value): Add opaque declaration.
79 (make_cleanup_value_free_to_mark): Add prototype.
80 * utils.c (do_value_free_to_mark): New function.
81 (make_cleanup_value_free_to_mark): Likewise.
83 2011-05-12 Tom Tromey <tromey@redhat.com>
85 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
86 cast left-hand-side to unsigned.
88 2011-05-12 Tom Tromey <tromey@redhat.com>
91 * value.h (value_from_contents): Declare.
92 * value.c (value_from_contents): New function.
93 * dwarf2read.c (dwarf_stack_op_name): Add new values.
94 (dwarf2_get_die_type): New function.
95 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
96 (allocate_piece_closure): Acquire reference to values.
97 (read_pieced_value): Update for value-based expressions.
98 (write_pieced_value): Likewise.
99 (free_pieced_value_closure): Call value_free as needed.
100 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
101 Update for value-based expressions.
102 * dwarf2loc.h (dwarf2_get_die_type): Declare.
103 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
104 <get_base_type>: New field.
105 (struct dwarf_expr_piece) <v.value>: Change type.
106 <v.regno>: New field.
107 (struct dwarf_expr_context) <mark>: New field.
108 (dwarf_expr_piece, dwarf_expr_fetch): Update.
109 (dwarf_expr_pop, dwarf_expr_push): Remove.
110 (dwarf_expr_push_address): Declare.
111 * dwarf2expr.c (dwarf_arch_cookie): New global.
112 (struct dwarf_gdbarch_types): New.
113 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
115 (dwarf_expr_push): Change type of 'value' argument. Update. Now
117 (dwarf_expr_push_address): New function.
118 (dwarf_expr_pop): Now static.
119 (dwarf_expr_fetch): Change return type.
120 (dwarf_require_integral): New function.
121 (dwarf_expr_fetch): Simplify.
123 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
125 (execute_stack_op) <sign_ext>: Remove.
126 Use values for DWARF stack.
127 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
128 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
130 (_initialize_dwarf2expr): New function.
132 (new_dwarf_expr_context): Set new field.
133 (free_dwarf_expr_context): Call value_free_to_mark.
134 * dwarf2-frame.c (no_base_type): New function.
135 (execute_stack_op): Set get_base_type field. Update.
137 2011-05-12 Tom Tromey <tromey@redhat.com>
139 * dwarf2read.c (read_common_block): Fix formatting.
141 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
143 * breakpoint.c (disable_breakpoint): Disable all locations
144 associated with a tracepoint on target if a trace experiment is
146 (disable_command): Disable a specific tracepoint location on target if
147 a trace experiment is running.
148 (do_enable_breakpoint): Enable all locations associated with a
149 tracepoint on target if a trace experiment is running.
150 (enable_command) Enable a specific tracepoint location on target if a
151 trace experiment is running.
152 * target.c (update_current_target): Add INHERIT and de_fault clauses for
153 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
154 to_disable_tracepoint.
155 * target.h: Add declaration of struct bp_location.
156 (struct target_ops): Add new functions
157 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
158 to_disable_tracepoint to target operations.
159 (target_supports_enable_disable_tracepoint): New macro.
160 (target_enable_tracepoint): New macro.
161 (target_disable_tracepoint): New macro.
162 * remote.c (struct remote_state): Add new field.
163 (remote_enable_disable_tracepoint_feature): New.
164 (remote_protocol_features): Add new entry.
165 (remote_supports_enable_disable_tracepoint): New.
166 (remote_enable_tracepoint): New.
167 (remote_disable_tracepoint): New.
168 (init_remote_ops): Add remote_enable_tracepoint,
169 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
170 to remote operations.
171 * tracepoint.c (start_tracing): Allow tracing to start without any
172 tracepoints enabled with just a warning if they can be re-enabled
174 * NEWS: Add news item for the new behaviour of the enable and disable
175 GDB commands when applied to tracepoints.
176 Add news items for the new remote packets QTEnable and QTDisable.
178 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
180 * config.in: Regenerate.
181 * configure: Regenerate.
182 * configure.ac <--with-system-readline> (for readline_echoing_p):
184 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
185 (tui_old_rl_echoing_p): ... here.
186 (tui_setup_io): Rename extern declaration readline_echoing_p to
187 _rl_echoing_p. Adjust assignments for the both renames.
189 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
191 * symtab.c (lookup_symtab): Run cleanup before returning.
193 2011-05-11 Tom Tromey <tromey@redhat.com>
195 * dwarf2read.c (handle_data_member_location): New function.
196 (dwarf2_add_field): Use it.
197 (read_common_block): Likewise.
199 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
201 Make addrs->SECTINDEX always defined.
202 * symfile.c (relative_addr_info_to_section_offsets): Check for
203 SECTINDEX -1, not for zero ADDR.
204 (addrs_section_compar): Remove checking for invalid SECTINDEX.
205 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
206 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
209 2011-05-10 Doug Evans <dje@google.com>
211 * linux-thread-db.c: Whitespace cleanup.
212 (try_thread_db_load_1): Fix comment.
214 * linux-thread-db.c (set_libthread_db_search_path): New function.
215 (_initialize_thread_db): Add setter for libthread-db-search-path.
217 2011-05-09 Doug Evans <dje@google.com>
219 * NEWS: Mention --with-iconv-bin.
220 * configure.ac: New option --with-iconv-bin.
221 * configure: Regenerate.
222 * config.in: Regenerate.
223 * defs.h (relocate_gdb_directory): Declare.
224 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
225 removed progname parameter, and exported. All callers updated.
226 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
228 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
229 adding missing call to restore_child_signals_mask.
231 2011-05-09 Pedro Alves <pedro@codesourcery.com>
233 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
235 * infrun.c (proceed, start_remote): Adjust.
236 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
237 and adjust to not handle it.
238 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
239 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
240 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
241 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
242 * windows-nat.c (do_initial_windows_stuff): Adjust.
243 * infcmd.c (attach_command): Adjust.
244 (notice_new_inferior): Adjust.
246 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
248 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
249 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
250 * spu-tdep.c (op_selb): Use correct value.
252 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
254 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
255 "parent" parameter to symbol_file_add_from_bfd call.
257 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
258 Thiago Jung Bauermann <bauerman@br.ibm.com>
260 Implement support for PowerPC BookE masked watchpoints.
261 * NEWS: Mention masked watchpoint support. Create "Changed commands"
263 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
264 method. Initialize to NULL in all existing breakpoint_ops instances.
265 (struct breakpoint) <hw_wp_mask>: New field.
266 * breakpoint.c (is_masked_watchpoint): Add prototype.
267 (update_watchpoint): Don't set b->val for masked watchpoints. Call
268 breakpoint's breakpoint_ops.works_in_software_mode if available.
269 (watchpoints_triggered): Handle the case of a hardware masked
271 (watchpoint_check): Likewise.
272 (works_in_software_mode_watchpoint): New function.
273 (insert_masked_watchpoint, remove_masked_watchpoint)
274 (resources_needed_masked_watchpoint)
275 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
276 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
277 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
279 (masked_watchpoint_breakpoint_ops): New structure.
280 (watch_command_1): Check for the existence of the `mask' parameter.
281 Set b->ops according to the type of hardware watchpoint being created.
282 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
283 (ppc_linux_remove_mask_watchpoint)
284 (ppc_linux_masked_watch_num_registers): New functions.
285 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
286 to_remove_mask_watchpoint and to_masked_watch_num_registers.
287 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
288 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
289 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
290 (target_masked_watch_num_registers): New functions.
291 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
292 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
294 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
295 (target_masked_watch_num_registers): Add prototypes.
297 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
300 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
301 (producer_is_gcc_ge_4_0): New function.
302 (process_full_comp_unit): Set also symtab->locations_valid. Move the
303 symtab->language code.
304 (var_decode_location): Set cu->has_loclist.
305 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
306 skip. Intialize force_skip from locations_valid. Move the prologue
307 skipping code into two passes.
308 * symtab.h (struct symtab): Make the primary field a bitfield. New
309 field locations_valid.
311 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
313 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
314 (classify_inner_name): Call cp_lookup_nested_type with
316 * cp-namespace.c (cp_lookup_nested_type): New variable
317 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
318 type_name_no_tag_or_error with saved_parent_type.
319 * dwarf2read.c (load_partial_dies): Read in any children of
320 DW_TAG_typedef with complaint in such case.
321 * gdbtypes.c (type_name_no_tag_or_error): New function.
322 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
323 * valops.c (destructor_name_p): New comment for parameter type. Remove
324 type const. Make dname and cp const. Call type_name_no_tag_or_error.
325 * value.h (destructor_name_p): Remove type const.
327 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
329 * symtab.c (compare_symbol_name): New function.
330 (completion_list_add_name, expand_partial_symbol_name): Call it,
331 remove the variable ncmp.
332 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
335 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
337 Demote to sw watchpoint only in update_watchpoint.
338 * breakpoint.c (update_watchpoint): Change between software and
339 hardware watchpoint for all kinds of watchpoints, not just
340 read/write ones. Determine b->exact value here instead of
341 in watch_command_1. Error out if there are not enough resources
342 for a read or access hardware watchpoint.
343 (watch_command_1): Remove logic of checking whether there are
344 enough resources available, since update_watchpoint will do that
345 work now. Don't set b->exact here. Catch exceptions thrown by
346 update_watchpoint and delete the watchpoint.
347 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
348 Use target_exact_watchpoints instead.
349 (delete_breakpoint): Notify observers only if deleted watchpoint
350 has a breakpoint number assigned to it.
352 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
354 * MAINTAINERS: Add myself as a write-after-approval maintainer.
356 2011-05-05 Jerome Guitton <guitton@adacore.com>
358 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
360 (i386_stack_tramp_frame_unwind): New static global.
361 (i386_match_pattern): New function, extracted from i386_match_insn.
362 (i386_match_insn): Use i386_match_pattern.
363 (i386_match_insn_block): New function.
364 (i386_tramp_chain_in_reg_insns)
365 (i386_tramp_chain_on_stack_insns): New static variables.
366 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
369 2011-05-04 Joseph Myers <joseph@codesourcery.com>
371 * configure.host (xscale*): Don't handle target.
372 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
375 2011-05-04 Yao Qi <yao@codesourcery.com>
377 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
379 2011-05-03 Joel Brobecker <brobecker@adacore.com>
382 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
383 | * elfread.c (elf_symtab_read): Stop memory leak.
385 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
387 * nto-tdep.c (nto_target): Replace deprecated call to
388 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
390 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
392 Fix false GCC warning.
393 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
395 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
397 * breakpoint.c (update_watchpoint): Move code to change
398 the enable state of breakpoint from here ...
399 (do_enable_breakpoint): ... to here.
401 2011-04-26 Andrew Gontarek <andrewg@cray.com>
403 * valprint.c (val_print_array_elements): Fixed poor performance
404 of printing very large arrays with repeat_count_threshold set
405 to unlimited. New comment.
407 2011-04-29 Tom Tromey <tromey@redhat.com>
409 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
410 (mi_parse): Likewise.
411 * breakpoint.c (break_range_command): Use sizeof char*, not
413 (create_breakpoint): Likewise.
414 (parse_breakpoint_sals): Likewise.
416 2011-04-29 Pedro Alves <pedro@codesourcery.com>
418 * linux-nat.c (linux_child_remove_fork_catchpoint)
419 (linux_child_remove_vfork_catchpoint)
420 (linux_child_remove_exec_catchpoint): New functions.
421 (linux_target_install_ops): Install them.
423 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
427 * varobj.c (install_default_visualizer): Do not install a
428 visualizer if the varobj is CPLUS_FAKE_CHILD.
429 (construct_visualizer): Likewise.
431 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
433 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
434 case insensitive comparison.
436 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
438 * infrun.c (proceed): Revert previous change.
439 (resume): Instead, handle the case of signal delivery while stepping
440 off a breakpoint location here, and only if software single-stepping
441 is used. Handle nested signals.
443 2011-04-28 Yao Qi <yao@codesourcery.com>
445 * arm-tdep.c (copy_unmodified): Rename to ...
446 (arm_copy_unmodified): .. this. New.
447 (copy_preload): Move common part to ...
448 (install_preload): .. this. New.
449 (arm_copy_preload): New.
450 (copy_preload_reg): Move common part to ...
451 (install_preload_reg): ... this. New.
452 (arm_copy_preload_reg): New.
453 (copy_b_bl_blx): Move common part to ...
454 (install_b_bl_blx): .. this. New.
455 (arm_copy_b_bl_blx): New.
456 (copy_bx_blx_reg): Move common part to ...
457 (install_bx_blx_reg): ... this. New.
458 (arm_copy_bx_blx_reg): New.
459 (copy_alu_reg): Move common part to ...
460 (install_alu_reg): ... this. New.
461 (arm_copy_alu_reg): New.
462 (copy_alu_shifted_reg): Move common part to ...
463 (install_alu_shifted_reg): ... this. New.
464 (copy_ldr_str_ldrb_strb): Move common part to ...
465 (install_ldr_str_ldrb_strb): ... this. New.
466 (arm_copy_ldr_str_ldrb_strb): New.
467 (copy_copro_load_store): Move some common part to ...
468 (install_copy_copro_load_store): ... this. New.
469 (arm_copy_copro_load_store): New.
471 (arm_copy_svc): Renamed from copy_svc.
472 (copy_undef): Delete.
473 (arm_copy_undef): Renamed from copy_undef.
474 (decode_ext_reg_ld_st): Delete.
475 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
476 (decode_svc_copro): Delete.
477 (arm_decode_svc_copro): Renamed from decode_svc_copro.
478 (copy_copro_load_store, copy_alu_imm): update callers.
479 (copy_extra_ld_st, copy_block_xfer): Likewise.
480 (decode_misc_memhint_neon, decode_unconditional): Likewise.
481 (decode_miscellaneous, decode_dp_misc): Likewise.
482 (decode_ld_st_word_ubyte, decode_media): Likewise.
483 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
484 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
485 (decode_unconditional, decode_miscellaneous): Likewise.
486 (decode_media, decode_b_bl_ldmstm): Likewise.
487 (arm_process_displaced_insn): Likewise..
488 (decode_misc_memhint_neon): Delete.
489 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
490 (decode_miscellaneous): Delete.
491 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
492 (decode_dp_misc): Delete.
493 (arm_decode_dp_misc): Renamed from decode_dp_misc.
494 (decode_ld_st_word_ubyte): Delete.
495 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
496 (decode_media): Delete.
497 (arm_decode_media): Renamed from decode_media.
498 (decode_b_bl_ldmstm): Delete.
499 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
500 (decode_ext_reg_ld_st): Delete.
501 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
502 (decode_unconditional): Delete.
503 (arm_decode_unconditional): Renamed from decode_unconditional.
505 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
507 Case insensitive lookups implementation.
508 * dwarf2read.c: Include ctype.h.
509 (struct mapped_index): New field version.
510 (mapped_index_string_hash): New parameter index_version. New comment
511 for it. Call tolower appropriately.
512 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
513 Choose the right index version for mapped_index_string_hash.
514 (dwarf2_read_index): Support also the index version 5. Initialize the
515 new struct mapped_index field version.
516 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
517 (find_slot): Explain the version needs. Pass INT_MAX for the new
519 (write_psymtabs_to_index): Produce version 5.
520 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
521 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
522 * psymtab.c (lookup_partial_symbol): Find the
523 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
525 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
527 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
528 (completion_list_add_name): New variable ncmp, initialize it, use it.
529 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
530 * utils.c (strcmp_iw): Support case_sensitive_off.
531 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
532 New function comment part. New variables saved_string1,
533 saved_string2 and case_pass. Add a proper second pass.
535 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
537 Replace re_comp/re_exec by regcomp/regexec.
538 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
539 (search_symbols_name_matches): Use them, use regexec.
540 (search_symbols): New variable retval_chain, adjust the use of
541 old_chain against it. Replace re_comp by regcomp. Use the new struct
542 search_symbols_data fields, use regexec instead of re_exec.
544 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
546 Format the code for the next patch.
547 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
548 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
549 New variables c1 and c2.
551 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
553 * infrun.c (proceed): Do not single-step into signal delivery
554 when stepping off a breakpoint location.
555 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
556 (insert_step_resume_breakpoint_at_caller): Likewise.
557 (insert_step_resume_breakpoint_at_sal): Likewise.
558 (insert_longjmp_resume_breakpoint): Likewise.
560 2011-04-27 Yao Qi <yao@codesourcery.com>
562 * common/linux-ptrace.h: Remove include <sys/wait.h>.
564 2011-04-27 Joel Brobecker <brobecker@adacore.com>
566 * procfs.c (procfs_pass_signals): Fix advance declaration.
568 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
570 * target.h (struct target_ops): Remove to_notice_signals;
572 (target_notice_signals): Remove.
573 (target_pass_signals): Add prototype.
574 * target.c (update_current_target): Remove to_notice_signals;
575 mention to_pass_signals.
576 (target_pass_signals): New function.
577 (debug_to_notice_signals): Remove.
578 (setup_target_debug): Do not install debug_to_notice_signals.
580 * infrun.c (signal_pass): New global.
581 (resume): Call target_pass_signals.
582 (handle_inferior_event): Report all signals while stepping over
583 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
584 are re-inserted when stepping over a signal handler.
585 (signal_cache_update): New function.
586 (signal_stop_update): Call it.
587 (signal_print_update): Likewise.
588 (signal_pass_update): Likewise.
589 (handle_command): Call signal_cache_update and target_pass_signals
590 instead of target_notice_signals.
591 (_initialize_infrun): Initialize signal_pass.
593 * linux-nat.c (pass_mask): New global.
594 (linux_nat_pass_signals): New function.
595 (linux_nat_create_inferior): Report all signals initially.
596 (linux_nat_attach): Likewise.
597 (linux_nat_resume): Use pass_mask to decide whether to directly
598 handle an inferior signal.
599 (linux_nat_wait_1): Likewise.
600 (linux_nat_add_target): Install to_pass_signals callback.
602 * nto-procfs.c (notice_signals): Remove.
603 (procfs_resume): Do not call notice_signals.
604 (procfs_notice_signals): Remove.
605 (procfs_pass_signals): New function.
606 (init_procfs_ops): Install to_pass_signals callback instead of
607 to_notice_signals callback.
608 (_initialize_procfs): Report all signals initially.
610 * procfs.c (procfs_notice_signals): Remove.
611 (procfs_pass_signals): New function.
612 (procfs_target): Install to_pass_signals callback instead of
613 to_notice_signals callback.
614 (register_gdb_signals): Remove.
615 (procfs_debug_inferior): Report all signals initially.
616 (procfs_init_inferior): Remove redundant register_gdb_signals call.
618 * remote.c (remote_pass_signals): Add numsigs and pass_signals
619 parameters; use them instead of calling signal_..._state routines.
620 (remote_notice_signals): Remove.
621 (remote_start_remote): Report all signals initially.
622 (remote_resume): Do not call remote_pass_signals.
623 (_initialize_remote): Install to_pass_signals callback instead of
624 to_notice_signals callback.
626 2011-04-27 Pedro Alves <pedro@codesourcery.com>
628 * breakpoint.c (user_settable_breakpoint): Delete.
629 (user_breakpoint_p): Remove check on user_settable_breakpoint.
630 (delete_command): Check user_breakpoint_p instead of looking at
631 the breakpoint's type.
632 (disable_command): Ditto.
633 (enable_command): Ditto.
634 (delete_trace_command): Use user_breakpoint_p instead of looking
635 at the breakpoint number directly. When checking if there are
636 user visible tracepoints, in order to know whether to ask the user
637 for confirmation, check whether the breakpoint is actually a
640 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
642 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
645 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
647 MI breakpoint notifications.
649 * annotate.c (breakpoint_changed): Adjust parameter type.
650 * breakpoint.c (set_breakpoint_condition): Adjust to change
651 in breakpoint_modified type.
652 (breakpoint_set_commands): Likewise.
653 (do_map_commands_command): Likewise.
654 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
655 changed after bumping hit count.
656 (bpstat_stop_status): Likewise.
657 (print_one_breakpoint_location): Don't wrap in tuple here.
658 (print_one_breakpoint): Always print individual locations.
659 For locations, use unnamed tuple.
660 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
662 (create_catchpoint, create_syscall_event_catchpoint): Call
663 breakpoint_created obsever.
664 (mention): Don't call breakpoint_created observer.
665 (create_breakpoint_sal): Call breakpoint_created observer.
666 (create_breakpoint, watch_command_1): Likewise.
667 (create_ada_exception_breakpoint): Likewise.
668 (delete_breakpoint): Call breakpoint_deleted breakpoint.
669 (locations_are_equal): New.
670 (update_breakpoint_locations): If locations were changed, notify.
671 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
672 Call breakpoint_modified observer.
674 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
675 (mi_cmd_break_insert): Don't set observers for modify and delete.
676 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
677 (mi_breakpoint_created, mi_breakpoint_deleted)
678 (mi_breakpoint_modified): New.
679 (mi_interpreter_init): Hook the above.
680 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
681 while -break-* commands are executing.
682 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
683 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
685 (mi_ui_out_impl): Hook in mi_redirect.
686 (mi_field_skip): True to the name, skip the field, don't output
687 a field with an empty value.
689 * python/py-breakpoint.c (gdbpy_breakpoint_created)
690 (gdbpy_breakpoint_deleted): Adjust.
691 * tui/tui-hooks.c (tui_event_create_breakpoint)
692 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
694 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
696 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
697 (procfs_remove_hw_watchpoint): Likewise.
699 2011-04-26 Michael Walle <michael@walle.cc>
701 * remote.c (remote_start_remote): Ack packet after sending the
704 2011-04-26 Yao Qi <yao@codesourcery.com>
706 * linux-nat.c: Move common macros to ...
707 Include linux-ptrace.h.
708 * common/linux-ptrace.h: ... here. New.
710 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
712 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
713 !objfile_has_partial_symbols. New comment.
714 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
715 SYM_READ_PSYMBOLS is not present. Extend the comment.
716 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
718 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
720 * defs.h (ENUM_BITFIELD): Remove.
722 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
723 Eli Zaretskii <eliz@gnu.org>
725 * NEWS: Document the new gdbserver --once option.
727 2011-04-21 Jie Zhang <jzhang918@gmail.com>
729 * MAINTAINERS: Update my email address.
731 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
733 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
734 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
735 function call if __STDC_ISO_10646__ macro is defined.
736 (intermediate_encoding): New prototype.
737 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
738 to generate compile time error for unsupported gdb_wchar_t size.
739 (ENDIAN_SUFFIX): New macro.
740 (intermediate_encoding): New function.
742 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
744 * ada-lang.c (struct add_partial_datum): Update the comment for
745 expand_partial_symbol_name.
746 (ada_add_partial_symbol_completions): Rename to ...
747 (ada_expand_partial_symbol_name): ... here, change return type, update
748 function comment, call symbol_completion_match instead of
749 symbol_completion_add.
750 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
751 and ada_expand_partial_symbol_name.
752 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
754 (dw2_map_symbol_names): Remove.
755 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
756 * psymtab.c (map_symbol_names_psymtab): Remove.
757 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
758 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
760 (psym_functions): Unlist map_symbol_names_psymtab.
761 (map_partial_symbol_names): Rename to ...
762 (expand_partial_symbol_names): ... here, change the FUN type, call
763 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
764 * psymtab.h (map_partial_symbol_names): Rename to ...
765 (expand_partial_symbol_names): ... here, change the FUN type.
766 * symfile.h (struct quick_symbol_functions): Update the description of
767 expand_symtabs_matching. Remove map_symbol_names.
768 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
769 (struct add_name_data): Update the comment for
770 expand_partial_symbol_name.
771 (add_partial_symbol_name): Rename to ...
772 (expand_partial_symbol_name): ... here. Replace
773 completion_list_add_name call by strncmp.
774 (default_make_symbol_completion_list_break_on): Use now
775 expand_partial_symbol_names and expand_partial_symbol_name.
776 * symtab.h (enum search_domain): New element ALL_DOMAIN.
778 2011-04-20 Tom Tromey <tromey@redhat.com>
780 * dwarf2read.c (save_gdb_index_command): Replace format
781 documentation with a pointer to the manual.
783 2011-04-20 Pedro Alves <pedro@codesourcery.com>
785 * regcache.c: Include remote.h.
786 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
787 (regcache_dump): Handle regcache_dump_remote.
788 (maintenance_print_remote_registers): New function.
789 (_initialize_regcache): Install "maint print remote-registers"
791 * remote.c (map_regcache_remote_table): New function, factored out
793 (init_remote_state): ... here.
794 (remote_register_number_and_offset): New.
795 * remote.h (remote_register_number_and_offset): Declare.
797 2011-04-20 Pedro Alves <pedro@codesourcery.com>
799 * regcache.c (get_thread_arch_regcache): If creating a regcache for
800 null_ptid, assume and allow a NULL address space, instead of
801 asking the target for the ptid's address space.
802 * infrun.c (ptid_is_pid): Remove assertion.
804 2011-04-19 Tom Tromey <tromey@redhat.com>
806 * windows-tdep.c (windows_xfer_shared_library):
807 * windows-nat.c (get_module_name, windows_make_so):
808 * v850-tdep.c (v850_handle_pushm):
809 * utils.c (null_cleanup, gdb_realpath):
810 * ui-out.c (get_next_header):
811 * tracepoint.c (clear_traceframe_info):
812 * symtab.c (lookup_symtab):
813 * serial.h (struct serial_ops):
814 * mipsread.c (read_alphacoff_dynamic_symtab):
815 * infcmd.c (print_return_value):
816 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
817 * f-exp.y (parse_number):
818 * exceptions.c (catch_exceptions):
819 * dummy-frame.c (dummy_frame_this_id):
820 * defs.h (struct cleanup):
821 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
822 * arm-tdep.c (arm_push_dummy_call):
823 * amd64-tdep.h (amd64_collect_xsave):
824 * amd64-tdep.c (amd64_collect_xsave):
825 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
826 * README (typing): Remove duplicate words.
827 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
828 * infrun.c (siginfo_value_read): Fix typo.
829 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
830 * top.c (source_line_number): Add comma.
832 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
834 * thread.c (any_live_thread_of_process): Prioritize threads
835 that are not executing.
836 * gdbthread.h (any_live_thread_of_process): Update comment
839 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
841 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
842 (scan_xcoff_symtab): Likewise.
844 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
846 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
849 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
850 Pedro Alves <pedro@codesourcery.com>
852 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
853 variables to simplify code and avoid == operator at end of
854 line as this is against GNU coding standards.
856 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
858 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
859 lm_name to name_lm to avoid conflict with lm_name function.
861 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
863 ARI fixes: Use only lowercase function name for static functions.
864 * nto-tdep.c (LM_ADDR): Rename to...
865 (lm_addr): New function name.
866 (nto_relocate_section_addresses): Adapt to change above.
867 * solib-sunos.c (LM_ADDR): Rename to...
868 (lm_addr): New function name.
869 (LM_NEXT): Rename to...
870 (lm_next): New function name.
871 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
872 function name changes above.
873 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
874 (lm_addr_from_link_map): New function name.
875 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
876 (has_lm_dynamic_from_link_map): New function name.
877 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
878 (lm_dynamic_from_link_map): New function name.
879 (LM_ADDR_CHECK): Rename to...
880 (lm_addr_check): New function name.
881 (LM_NEXT): Rename to...
882 (lm_next): New function name.
883 (LM_PREV): Rename to...
884 (lm_prev): New function name.
885 (LM_NAME): Rename to...
886 (lm_name): New function name.
887 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
888 (ignore_first_link_map_entry): New function name.
889 (svr4_keep_data_in_core): Adapt to function name changes above.
890 (svr4_current_sos): Likewise.
891 (enable_break): Likewise.
892 (svr4_relocate_section_addresses): Likewise.
894 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
897 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
898 sprintf. Simplify code and avoid loosing memory.
899 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
900 (call0_frame_cache): Remove && operator from end of line.
902 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
904 Fix libraries displacement if they change whether they were prelinked.
905 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
906 does not match. Comment why.
908 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
910 * corelow.c: Include wrapper.h.
911 (core_open): Call now gdb_target_find_new_threads.
912 * wrapper.c: Include target.h.
913 (gdb_target_find_new_threads): New.
914 * wrapper.h (gdb_target_find_new_threads): New declaration.
916 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
918 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
919 even if !TARGET_HAS_EXECUTION.
921 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
923 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
924 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
925 bfd_get_synthetic_symtab.
926 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
927 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
928 parameter parent, remove the call to add_separate_debug_objfile.
929 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
930 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
931 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
932 parent, new comment for it, call add_separate_debug_objfile for it.
933 (symbol_file_add_separate): Pass objfile as the parameter parent,
934 remove the call to add_separate_debug_objfile.
935 (symbol_file_add_from_bfd): New parameter parent, pass it.
936 (symbol_file_add): Pass NULL to the new parameter parent.
937 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
939 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
941 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
944 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
946 Fix Python access to inlined frames.
947 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
948 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
950 2011-04-15 Tom Tromey <tromey@redhat.com>
952 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
954 2011-04-15 Gary Benson <gbenson@redhat.com>
956 * MAINTAINERS: Add myself to write-after-approval section.
958 2011-04-14 Mike Frysinger <vapier@gentoo.org>
960 * remote-sim.c (sim_command_completer): New function.
961 (_initialize_remote_sim): Set completer to sim_command_completer.
963 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
965 * breakpoint.c (print_exception_catchpoint): Rename to ...
966 (print_it_exception_catchpoint): ... this.
967 (gnu_v3_exception_catchpoint_ops): Update with new name
968 for print_it_exception_catchpoint.
970 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
972 * MAINTAINERS: Add myself for write after approval privileges.
974 2011-04-13 Marek Polacek <mpolacek@redhat.com>
976 * MAINTAINERS: Add myself as a write-after-approval maintainer.
978 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
980 * breakpoint.c (watch_command_1): Remove colon from exp_string.
982 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
984 * breakpoint.c (save_breakpoints): Verify whether
985 breakpoint_ops.print_recreate is defined before calling it.
987 2011-04-11 Gary Benson <gbenson@redhat.com>
989 Fix failure with --enable-maintainer-mode.
990 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
992 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
995 * symtab.c (search_symbols): Reorder the KIND description in the
996 function comment. Remove the unused 4th element of types, types2,
997 types3 and types4. New gdb_assert on KIND.
998 (symtab_symbol_info): Remove the unused 4th element of classnames.
999 New gdb_assert on KIND.
1000 * symtab.h (enum search_domain): New warning in the enum comment.
1001 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
1004 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1006 Fix crash of gdb save-index on a STABS file.
1007 * dwarf2read.c (write_psymtabs_to_index): Return also on no
1010 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1012 Fix DW_AT_accessibility compatibility with gcc-4.6+.
1013 * dwarf2read.c: Include ctype.h.
1014 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
1016 (dwarf2_add_field): Fix new_field->accessibility by calling
1017 dwarf2_default_access_attribute. Restructure setting accessibility
1019 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
1020 is_private and is_protected by calling
1021 dwarf2_default_access_attribute.
1023 2011-04-08 Kevin Buettner <kevinb@redhat.com>
1025 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
1026 to the initialization.
1028 2011-04-08 Steve Ellcey <sje@cup.hp.com>
1030 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
1033 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
1035 Remove support for old Cygwin 1.5 versions.
1036 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
1037 function on old Cygwin version.
1038 * windows-nat.c: Remove cygwin version check and always define
1039 __USEWIDE for Cygwin compilation.
1041 2011-04-07 Yao Qi <yao@codesourcery.com>
1043 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
1045 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
1046 (arm_copy_svc): Remove parameters INSN and TO.
1047 (decode_svc_copro): Update caller.
1048 * arm-tdep.h (struct displaced_step_closure): Remove parameters
1049 from function pointer `copy_svc_os'.
1051 2011-04-07 Yao Qi <yao@codesourcery.com>
1053 * arm-tdep.c (cleanup_branch): Set a correct return address in
1054 LR for ARM and Thumb.
1056 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1059 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
1060 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
1061 in the function comment, a new note on values compatibility.
1062 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
1063 * symtab.h (SYMBOL_HASH_NEXT): New.
1065 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
1067 * ppc-linux-nat.c (check_condition): Add len output parameter.
1068 Set it based on the memory region referenced in the condition
1069 expression. Update all callers.
1071 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1073 Fix crash regression on systems featuring .gdb_index.
1074 * objfiles.c (free_objfile): Move the
1075 forget_cached_source_info_for_objfile call earlier. Comment it.
1076 Extend the comment for objfile_free_data.
1078 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1080 Fix regression of displaying the debug format.
1081 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
1084 2011-04-04 Tom Tromey <tromey@redhat.com>
1086 * cli/cli-interp.c (struct captured_execute_command_args):
1088 (do_captured_execute_command): Remove.
1089 (safe_execute_command): Use TRY_CATCH.
1090 * cli/cli-script.c (struct wrapped_read_command_file_args):
1092 (wrapped_read_command_file): Remove.
1093 (script_from_file): Use TRY_CATCH.
1094 * exceptions.c (catch_exception): Remove.
1095 * exceptions.h (catch_exception): Remove.
1096 (deprecated_throw_reason): Update comment.
1097 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
1098 argument to 'context'.
1099 (mi_execute_command): Use TRY_CATCH.
1100 * remote.c (struct start_remote_args): Remove.
1101 (remote_start_remote): Update; change arguments.
1102 (remote_open_1): Use TRY_CATCH.
1104 2011-04-04 Tom Tromey <tromey@redhat.com>
1106 * tracepoint.c (scope_info): Update.
1107 * symtab.c (decode_line_spec): Update.
1108 * python/python.c (gdbpy_decode_line): Update.
1109 * linespec.h (decode_line_1): Update.
1110 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
1111 (decode_compound, find_method, symtab_from_filename)
1112 (decode_variable): Likewise.
1113 * cli/cli-cmds.c (edit_command): Update.
1114 (list_command): Update.
1115 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
1117 (create_breakpoint): Update.
1118 (until_break_command): Update.
1119 (addr_string_to_sals): Update.
1120 (decode_line_spec_1): Update.
1122 2011-04-04 Tom Tromey <tromey@redhat.com>
1124 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
1125 (do_captured_parse_breakpoint): Remove.
1126 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
1127 Use TRY_CATCH directly.
1129 2011-04-04 Tom Tromey <tromey@redhat.com>
1131 * symtab.h (free_symtab): Remove.
1132 (forget_cached_source_info_for_objfile): Declare.
1133 * symmisc.c (free_symtab): Remove.
1134 * source.c (forget_cached_source_info_for_objfile): New function.
1135 (forget_cached_source_info): Use it.
1136 * objfiles.c (free_objfile): Simplify check before calling
1137 clear_current_source_symtab_and_line. Call
1138 forget_cached_source_info_for_objfile.
1140 2011-04-04 Tom Tromey <tromey@redhat.com>
1142 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
1143 (new_symtab): Don't set `free_code' on symtab.
1144 (new_linetable): Properly handle size==0.
1145 * symtab.h (struct symtab) <free_code, free_func>: Remove.
1146 * symmisc.c (free_symtab): Don't free the linetable. Don't call
1148 * jv-lang.c (struct jv_per_objfile_data): New.
1149 (jv_per_objfile_free): Free the data.
1150 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
1151 (get_java_class_symtab): Set the `dict' field on the
1152 jv_per_objfile_data.
1153 (free_class_block): Remove.
1154 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
1157 2011-04-04 Tom Tromey <tromey@redhat.com>
1159 * symfile.c (reread_symbols): Update.
1160 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
1162 * objfiles.c (allocate_objfile): Update.
1163 * cp-support.h (cp_check_possible_namespace_symbols): Don't
1165 * cp-namespace.c (lookup_symbol_file): Don't call
1166 lookup_possible_namespace_symbol.
1167 (initialize_namespace_symtab, get_possible_namespace_block)
1168 (free_namespace_block, cp_check_possible_namespace_symbols)
1169 (check_possible_namespace_symbols_loop)
1170 (check_one_possible_namespace_symbol)
1171 (lookup_possible_namespace_symbol): Remove.
1172 (maintenance_cplus_namespace): Replace with notice.
1173 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
1175 2011-04-04 Tom Tromey <tromey@redhat.com>
1177 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
1178 * symtab.h (struct symtab) <producer, debugformat>: Now const.
1179 * symmisc.c (free_symtab): Don't free debugformat.
1180 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
1181 (record_debugformat, record_producer): Document.
1182 * buildsym.c (end_symtab): Don't save debugformat and producer
1184 (end_symtab): Don't free debugformat and producer fields.
1185 (record_debugformat): Don't call xstrdup.
1186 (record_producer): Likewise.
1188 2011-04-04 Tom Tromey <tromey@redhat.com>
1190 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
1191 (source_line_charpos, source_charpos_line): Remove.
1193 2011-04-04 Tom Tromey <tromey@redhat.com>
1195 * symtab.h (domain_enum): Split in two...
1196 (enum search_domain): New.
1197 (search_symbols): Update.
1198 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
1199 redundant declarations.
1200 (search_symbols): Change 'kind' argument to search_domain.
1202 (print_symbol_info): Likewise.
1203 (symtab_symbol_info): Likewise.
1204 * symfile.h (struct quick_symbol_functions)
1205 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
1206 <expand_symtabs_matching>: Likewise.
1207 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
1208 (expand_symtabs_matching_via_partial): Update.
1209 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
1210 (dw2_expand_symtabs_for_function): Update.
1211 * block.h: Moved anonymous enum...
1212 * defs.h (enum block_enum): ... here. Now named.
1214 2011-04-03 Joel Brobecker <brobecker@adacore.com>
1216 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
1217 * version.in: Bump version to 7.3.50.20110403-cvs.
1219 2011-04-03 Joel Brobecker <brobecker@adacore.com>
1221 * NEWS: Create a new section for the next release branch.
1222 Rename the section of the current branch, now that it has
1225 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1227 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
1228 for "fpscr" in target description.
1230 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1232 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
1233 initialize it. Delay HASH initialization. Strip the part after open
1234 parenthesis for languages with qualifiers. Call do_cleanups.
1236 2011-04-01 Tom Tromey <tromey@redhat.com>
1238 * utils.c (report_command_stats): Don't print `-' for negative
1241 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
1243 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
1244 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
1247 2011-04-01 Joel Brobecker <brobecker@adacore.com>
1249 * breakpoint.h (bpdisp_text): Add declaration.
1250 * breakpoint.c (bpdisp_text): Make non-static.
1251 * ada-lang.c: #include "mi/mi-common.h".
1252 (print_it_exception): Rewrite to improve GDB/MI output.
1254 2011-04-01 Pedro Alves <pedro@codesourcery.com>
1256 * arm-tdep.h (struct address_space): Add forward declaration.
1258 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1260 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
1261 * arm-tdep.c (arm_override_mode): New global.
1262 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
1263 execution mode heuristics.
1264 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
1265 second single-step breakpoint if needed, using
1266 arm_insert_single_step_breakpoint.
1267 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
1268 ARM execution mode, do not call thumb_get_next_pc_raw.
1269 (arm_get_next_pc): Encode execution mode in return value. Call
1270 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
1271 (arm_insert_single_step_breakpoint): New function.
1272 (arm_software_single_step): Call it.
1273 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
1274 argument to return execution mode of sigreturn target.
1275 (arm_linux_syscall_next_pc): Use it.
1276 (arm_linux_copy_svc): Update call.
1277 (arm_linux_software_single_step): Call
1278 arm_insert_single_step_breakpoint.
1280 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1282 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
1285 2011-03-31 Tom Tromey <tromey@redhat.com>
1287 * varobj.c (update_dynamic_varobj_children): Properly handle
1288 errors from iterator.
1290 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1292 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
1293 struct linkage name twice.
1295 2011-03-31 Tom Tromey <tromey@redhat.com>
1297 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
1298 missing ">" to message.
1300 2011-03-31 Tom Tromey <tromey@redhat.com>
1302 * varobj.c (instantiate_pretty_printer): Remove duplicate
1305 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
1307 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
1308 if neither saved value nor register available (e.g. signal frame).
1310 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1312 * macroexp.c (expand): Avoid uninitialized variable
1315 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1317 * breakpoint.c (break_range_command): Fix typo in comment.
1319 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1320 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1322 Implement support for PowerPC BookE ranged breakpoints.
1323 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
1324 * breakpoint.h (struct bp_target_info) <length>: New member
1326 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
1327 instead of struct breakpoint as argument, and also add ASPACE
1328 and BP_ADDR arguments. Update all callers.
1329 (struct breakpoint_ops) <print_one_detail>: New method.
1330 (struct breakpoint) <addr_string_range_end>: New member variable.
1331 * breakpoint.c (breakpoint_location_address_match): Add function
1333 (insert_bp_location): Set bl->target_info.length.
1334 (breakpoint_here_p): Call breakpoint_location_address_match.
1335 (moribund_breakpoint_here_p): Likewise.
1336 (regular_breakpoint_inserted_here_p): Likewise.
1337 (breakpoint_thread_match): Likewise.
1338 (bpstat_stop_status): Likewise.
1339 (bpstat_check_location): Move call to
1340 breakpoint_ops.breakpoint_hit to the top.
1341 (print_one_breakpoint_location): Call
1342 breakpoint_ops.print_one_detail if available.
1343 (breakpoint_address_match_range): New function.
1344 (breakpoint_location_address_match): Likewise.
1345 (breakpoint_locations_match): Compare the length field of the
1347 (hw_breakpoint_used_count): Count resources used by all locations
1348 in a breakpoint, and use breakpoint_ops.resources_needed if
1350 (breakpoint_hit_ranged_breakpoint): New function.
1351 (resources_needed_ranged_breakpoint): Likewise.
1352 (print_it_ranged_breakpoint): Likewise.
1353 (print_one_ranged_breakpoint): Likewise.
1354 (print_one_detail_ranged_breakpoint): Likewise.
1355 (print_mention_ranged_breakpoint): Likewise.
1356 (print_recreate_ranged_breakpoint): Likewise.
1357 (ranged_breakpoint_ops): New structure.
1358 (find_breakpoint_range_end): New function.
1359 (break_range_command): Likewise.
1360 (delete_breakpoint): Free addr_string_range_end.
1361 (update_breakpoint_locations): Add SALS_END argument. Update
1362 all callers. Calculate breakpoint length if a non-zero SALS_END
1363 is given. Call breakpoint_locations_match instead of
1364 breakpoint_address_match.
1365 (reset_breakpoint): Find SaL of the end of the range if B is a
1367 (_initialize_breakpoint): Register break-range command.
1368 * defs.h (print_core_address): Add function prototype.
1369 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
1371 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
1372 (ppc_linux_remove_hw_breakpoint): Likewise.
1373 (_initialize_ppc_linux_nat): Initialize
1374 to_ranged_break_num_registers.
1375 * target.c (update_current_target): Add comment about
1376 to_ranged_break_num_registers.
1377 (target_ranged_break_num_registers): New function.
1378 * target.h (struct target_ops) <to_ranged_break_num_registers>:
1380 (target_ranged_break_num_registers): Add function prototype.
1381 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
1382 * utils.c (print_core_address): ... here.
1384 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
1386 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
1387 variable compiler warning.
1389 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
1391 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
1393 (re_set_breakpoint): ... to here ...
1394 (addr_string_to_sals): ... and here.
1396 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
1398 * Makefile.in (SFILES): Add missing C sources.
1399 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
1400 Add missing headers.
1402 2011-03-29 Mike Frysinger <vapier@gentoo.org>
1404 * .gitignore: New file.
1406 2011-03-29 Mike Frysinger <vapier@gentoo.org>
1408 * NEWS: Mention new cfi device simulation.
1410 2011-03-29 Tom Tromey <tromey@redhat.com>
1412 * dwarf2read.c (fixup_partial_die): Handle linkage name on
1413 otherwise anonymous types.
1414 (dwarf2_name): Likewise.
1415 * valops.c (value_struct_elt_for_reference): Refine artificial
1416 type logic. Call error if j==-1.
1418 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
1420 Fix false GCC warning.
1421 * infcall.c (find_function_addr): Initialize funaddr.
1423 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
1425 Fix mingw compilation with --enable-targets=all.
1426 * remote-mips.c (gdb_usleep.h): Include header.
1427 (mips_enter_debug): Use gdb_usleep instead of sleep.
1429 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1431 Support resolution of STT_GNU_IFUNC via breakpoints.
1432 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
1433 bp_gnu_ifunc_resolver_return.
1434 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
1435 the loop. Support bp_gnu_ifunc_resolver and
1436 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
1437 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
1439 (bptype_string, print_one_breakpoint_location): Support
1440 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
1441 (user_settable_breakpoint): Return true also for
1442 bp_gnu_ifunc_resolver.
1443 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
1444 bp_gnu_ifunc_resolver_return.
1445 (set_breakpoint_location_function): New parameter explicit_loc,
1446 describe it. Call find_pc_partial_function_gnu_ifunc with new
1447 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
1448 EXPLICIT_LOC is not set.
1449 (set_raw_breakpoint): Set EXPLICIT_LOC for
1450 set_breakpoint_location_function.
1451 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
1452 set_breakpoint_location_function.
1453 (mention): Support bp_gnu_ifunc_resolver and
1454 bp_gnu_ifunc_resolver_return.
1455 (add_location_to_breakpoint): Set EXPLICIT_LOC for
1456 set_breakpoint_location_function.
1457 (update_breakpoint_locations): Remove static.
1458 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
1459 bp_gnu_ifunc_resolver_return.
1460 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
1461 bp_gnu_ifunc_resolver_return.
1462 (update_breakpoint_locations): New declaration.
1463 * elfread.c: Include gdbthread.h and regcache.h.
1464 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
1466 (elf_gnu_ifunc_fns): Install them.
1467 * minsyms.c (stub_gnu_ifunc_resolver_stop)
1468 (stub_gnu_ifunc_resolver_return_stop): New functions.
1469 (stub_gnu_ifunc_fns): Install them.
1470 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
1471 and gnu_ifunc_resolver_return_stop.
1472 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
1474 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1476 STT_GNU_IFUNC reader implementation.
1477 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
1478 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
1479 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
1480 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
1481 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
1482 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
1483 (elf_gnu_ifunc_resolve_addr): New.
1484 (elf_symfile_read): Call elf_rel_plt_read.
1485 (elf_gnu_ifunc_fns): New.
1486 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
1487 Install elf_gnu_ifunc_fns.
1488 * infcall.c (find_function_return_type): New function.
1489 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
1490 * minsyms.c (stub_gnu_ifunc_resolve_addr)
1491 (stub_gnu_ifunc_resolve_name): New functions.
1492 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
1493 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
1494 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
1496 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1498 Code cleanup for later STT_GNU_IFUNC support.
1499 * infcall.c (find_function_addr): Remove variable code, use explicit
1500 dereferences for it. Move VALUE_TYPE initialization later.
1502 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1504 GDB find_pc_partial_function support for STT_GNU_IFUNC.
1505 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
1506 (clear_pc_function_cache): Clear it.
1507 (find_pc_partial_function): Rename to ...
1508 (find_pc_partial_function_gnu_ifunc): ... this function. New
1509 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
1510 (find_pc_partial_function): New wrapper for this function.
1511 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
1513 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1515 GDB internal type support for STT_GNU_IFUNC.
1516 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
1517 (elf_symtab_read): Set mst_text_gnu_ifunc for
1518 BSF_GNU_INDIRECT_FUNCTION.
1519 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
1520 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
1521 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
1522 nodebug_got_plt_symbol.
1523 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
1524 (TYPE_GNU_IFUNC): New.
1525 (struct main_type): New field flag_gnu_ifunc.
1526 (struct builtin_type): New field builtin_func_func.
1527 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
1528 nodebug_got_plt_symbol.
1529 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
1530 (in_gnu_ifunc_stub): New.
1531 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
1533 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
1534 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
1535 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
1537 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
1538 * symtab.c (search_symbols): Likewise.
1539 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
1540 and mst_slot_got_plt.
1541 (in_gnu_ifunc_stub): New declaration.
1543 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1545 Support a ring of related breakpoints.
1546 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
1547 other functions, add gdb_assert.
1548 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
1549 watchpoint_del_at_next_stop.
1550 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
1551 (bpstat_stop_status): Handle ring in related_breakpoint.
1552 (set_raw_breakpoint_without_location): Initialize ring in
1554 (delete_breakpoint): Handle ring in related_breakpoint, use
1555 watchpoint_del_at_next_stop.
1556 (map_breakpoint_numbers): Handle ring in related_breakpoint.
1558 2011-03-28 Tom Tromey <tromey@redhat.com>
1561 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
1562 with `language_minimal'.
1564 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
1566 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
1567 instead of checking for STT_ARM_TFUNC symbol type.
1569 2011-03-25 Tom Tromey <tromey@redhat.com>
1571 * linespec.c (symbol_found): Restore line-based result for
1572 non-LOC_LABEL symbols.
1574 2011-03-25 Kai Tietz <ktietz@redhat.com>
1576 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
1577 instead of strcmp for comparison.
1578 (tui_source_is_displayed): Likewise.
1579 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
1581 2011-03-24 Mark Wielaard <mjw@redhat.com>
1583 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
1585 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
1586 (find_partial_die_in_comp_unit): Likewise in comment.
1587 (read_attribute_value): Likewise.
1588 (lookup_die_type): Likewise.
1589 (dwarf_form_name): Likewise.
1590 (dump_die_shallow): Likewise.
1591 (follow_die_ref_or_sig): Likewise.
1593 2011-03-24 Tom Tromey <tromey@redhat.com>
1595 PR breakpoints/11816:
1596 * linespec.c (decode_line_1): Parse `function:label' linespecs.
1597 (decode_compound): Update.
1598 (find_function_symbol): New function.
1599 (decode_dollar): Update.
1600 (decode_label): Add 'function_symbol' parameter. Handle
1601 function-relative labels.
1602 (decode_variable): Update.
1603 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
1604 not its line. Set `special_display' and canonical name for
1607 2011-03-24 Tom Tromey <tromey@redhat.com>
1609 * linespec.h (struct linespec_result) <special_display>: New
1611 * breakpoint.h (struct breakpoint) <display_canonical>: New
1613 * breakpoint.c (print_breakpoint_location): Respect
1615 (create_breakpoint_sal): Add 'display_canonical' parameter.
1616 (create_breakpoints_sal): Update.
1617 (create_breakpoint): Update.
1619 2011-03-24 Tom Tromey <tromey@redhat.com>
1621 * symtab.c (decode_line_spec): Update.
1622 * linespec.c (build_canonical_line_spec): Change type of
1624 (decode_line_2, decode_line_1, decode_objc, decode_compound)
1625 (find_method, decode_all_digits, decode_dollar, decode_label)
1626 (symbol_found): Likewise.
1627 (init_linespec_result): New function.
1628 * breakpoint.c (struct captured_parse_breakpoint_args)
1629 <canonical_p>: New field, replaces addr_string_p.
1630 (create_breakpoints_sal): Add 'canonical' parameter, replacing
1632 (parse_breakpoint_sals): Likewise.
1633 (do_captured_parse_breakpoint): Update.
1634 (create_breakpoint): Use struct linespec_result.
1635 (until_break_command): Update.
1636 (breakpoint_re_set_one): Update.
1637 (decode_line_spec_1): Update.
1638 * linespec.h (struct linespec_result): New.
1639 (init_linespec_result): Declare.
1641 2011-03-23 Pedro Alves <pedro@codesourcery.com>
1643 * regcache.c (regcache_raw_read): If the target didn't supply a
1644 given raw register, mark it as unavailable.
1646 2011-03-23 Kai Tietz <ktietz@redhat.com>
1648 * breakpoint.c (clear_command): Use filename_cmp
1649 instead of strcmp for comparison.
1650 * buildsym.c (watch_main_source_file_lossage): Likewise.
1651 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
1652 checking just for slash.
1653 * dbxread.c (read_dbx_symtab): Use lbasename instead of
1654 strrchr and filename_cmp instead of strcmp for filenames.
1655 (add_old_header_file): Use filename_cmp
1656 instead of strcmp for comparison.
1657 * exec.c (exec_set_section_address): Likewise.
1658 * macrotab.c (macro_lookup_inclusion): Likewise.
1659 (macro_lookup_inclusion): Likewise.
1660 * elfread.c (_initialize_elfread): Likewise.
1661 (elfstab_offset_sections): Likewise.
1662 (elfstab_offset_sections): Use lbasename instead of
1664 * mdebugread.c (parse_partial_symbols): Likewise.
1665 (arse_partial_symbols): Use filename_(n)cmp instead of
1666 str(n)cmp for comparison.
1667 * minsyms.c (lookup_minimal_symbol): Likewise.
1668 * psymtab.c (read_psymtabs_with_filename): Likewise.
1669 * solib.c (solib_read_symbols): Likewise.
1670 (reload_shared_libraries_1): Likewise.
1671 * symmisc.c (maintenance_print_symbols): Likewise.
1672 * symfile.c (separate_debug_file_exists): Likewise.
1673 (reread_symbols): Likewise.
1674 (find_separate_debug_file_by_debuglink): Likewise.
1675 * remote-fileio.c (remote_fileio_func_rename): Likewise.
1676 * source.c (add_path): Likewise.
1677 * symtab.c (filename_seen): Likewise.
1678 (file_matches): Likewise.
1679 (print_symbol_info): Likewise.
1680 (maybe_add_partial_symtab_filename): Likewise.
1681 (make_source_files_completion_list): Likewise.
1682 * xml-syscall.c (init_sysinfo): Likewise.
1683 * windows-nat.c (_initialize_check_for_gdb_ini): Use
1684 IS_DIR_SEPARATOR for checking for trailing path separator.
1686 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1688 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
1689 label abort_expression.
1690 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
1691 DWARF_VALUE_OPTIMIZED_OUT.
1693 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1696 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
1697 to linkage_name. Invert its value. Update the function comment.
1698 (c_type_print_varspec_suffix): Invert it at the caller.
1699 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
1701 2011-03-22 Pedro Alves <pedro@codesourcery.com>
1703 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
1704 errors when reading the `stop_pc'.
1705 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
1708 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
1710 * NEWS: Document gdb.Write stream keyword.
1712 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1715 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1716 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
1717 (dwarf2_add_field): Fix new_field->accessibility for
1718 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
1720 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
1724 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
1725 other error classes. Do not print stack trace.
1727 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1729 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
1730 (dwarf2_add_field): Fix new_field->accessibility for
1731 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
1733 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
1735 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
1736 encountering a load via a non-SP register.
1738 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
1740 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
1741 field in returned unwinder.
1743 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1745 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
1747 2012-03-21 Joel Brobecker <brobecker@adacore.com>
1749 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
1752 2012-03-18 Pedro Alves <pedro@codesourcery.com>
1754 * frame.c (frame_unwind_register): Throw an error if unwinding the
1756 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
1757 an unwind stop reason.
1758 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
1759 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
1760 UNWIND_UNAVAILABLE>: New.
1761 * inline-frame.c (inline_frame_unwind): Install
1762 default_frame_unwind_stop_reason.
1763 * frame-unwind.c: Include "exceptions.h".
1764 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
1765 (default_frame_unwind_stop_reason): New.
1766 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
1767 (default_frame_unwind_stop_reason): Declare.
1768 (struct frame_unwind) <stop_reason>: New function pointer.
1770 * dummy-frame.c: Install default_frame_unwind_stop_reason.
1771 * dwarf2-frame.c: Include exceptions.h.
1772 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
1773 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
1774 computing the CFA. If such an error was thrown, set
1775 unavailable_retaddr.
1776 (dwarf2_frame_unwind_stop_reason): New.
1777 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
1779 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
1780 (dwarf2_signal_frame_unwind): Ditto.
1782 * amd64-tdep.c: Include "exceptions.h".
1783 (struct amd64_frame_cache): New field "base_p".
1784 (amd64_init_frame_cache): Clear it.
1785 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
1786 Avoid reading registers with functions that throw if the register
1787 is not necessary to compute the frame base.
1788 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
1789 swallowing NOT_AVAILABLE_ERROR.
1790 (amd64_frame_unwind_stop_reason): New.
1791 (amd64_frame_this_id): Don't build a frame id if the frame base
1793 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
1794 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1795 base_p if the frame base was computable.
1796 (amd64_sigtramp_frame_unwind_stop_reason): New.
1797 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
1798 frame base was unavailable.
1799 (amd64_sigtramp_frame_unwind): Install
1800 amd64_sigtramp_frame_unwind_stop_reason.
1801 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1802 base_p if the frame base was computable.
1803 (amd64_epilogue_frame_unwind_stop_reason): New.
1804 (amd64_epilogue_frame_this_id): Don't build a frame id if the
1805 frame base was unavailable.
1806 (amd64_epilogue_frame_unwind): Install
1807 amd64_epilogue_frame_unwind_stop_reason.
1808 * i386-tdep.c: Include "exceptions.h".
1809 (struct i386_frame_cache): New field "base_p".
1810 (i386_init_frame_cache): Clear it.
1811 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
1812 Avoid reading registers with functions that throw if the register
1813 is not necessary to compute the frame base.
1814 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
1815 swallowing NOT_AVAILABLE_ERROR.
1816 (i386_frame_unwind_stop_reason): New.
1817 (i386_frame_this_id): Don't build a frame id if the frame base was
1819 (i386_frame_prev_register): Handle unavailable SP.
1820 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
1821 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1822 base_p if the frame base was computable.
1823 (i386_epilogue_frame_unwind_stop_reason): New.
1824 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
1825 base was unavailable.
1826 (i386_epilogue_frame_unwind): Install
1827 i386_epilogue_frame_unwind_stop_reason.
1828 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1829 base_p if the frame base was computable.
1830 (i386_sigtramp_frame_unwind_stop_reason): New.
1831 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
1832 base was unavailable.
1833 (i386_sigtramp_frame_unwind): Install
1834 i386_sigtramp_frame_unwind_stop_reason.
1835 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
1836 type's size, not the register's.
1837 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
1839 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
1840 default_frame_unwind_stop_reason.
1841 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
1842 (alpha_heuristic_frame_unwind): Ditto.
1843 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
1844 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
1845 * avr-tdep.c (avr_frame_unwind): Ditto.
1846 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
1848 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
1849 * frv-tdep.c (frv_frame_unwind): Ditto.
1850 * h8300-tdep.c (h8300_frame_unwind): Ditto.
1851 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
1852 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
1853 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
1854 (hppa_stub_frame_unwind): Ditto.
1855 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
1856 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
1857 (ia64_libunwind_frame_unwind)
1858 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
1859 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
1860 * lm32-tdep.c (lm32_frame_unwind): Ditto.
1861 * m32c-tdep.c (m32c_unwind): Ditto.
1862 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
1863 * m32r-tdep.c (m32r_frame_unwind): Ditto.
1864 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
1865 * m68k-tdep.c (m68k_frame_unwind): Ditto.
1866 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
1867 * m88k-tdep.c (m88k_frame_unwind): Ditto.
1868 * mep-tdep.c (mep_frame_unwind): Ditto.
1869 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
1870 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
1871 (mips_stub_frame_unwind): Ditto.
1872 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
1873 * moxie-tdep.c (moxie_frame_unwind): Ditto.
1874 * mt-tdep.c (mt_frame_unwind): Ditto.
1875 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
1876 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
1877 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
1878 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
1879 (s390_sigtramp_frame_unwind): Ditto.
1880 * score-tdep.c (score_prologue_unwind): Ditto.
1881 * sh-tdep.c (sh_frame_unwind): Ditto.
1882 * sh64-tdep.c (sh64_frame_unwind): Ditto.
1883 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
1884 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
1885 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
1886 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
1887 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
1888 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
1889 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
1890 (sparc64obsd_trapframe_unwind): Ditto.
1891 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
1892 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
1893 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
1894 * v850-tdep.c (v850_frame_unwind): Ditto.
1895 * vax-tdep.c (vax_frame_unwind): Ditto.
1896 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
1897 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
1898 * xtensa-tdep.c (xtensa_unwind): Ditto.
1900 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1902 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
1903 there's always a frame. Use get_frame_pc_if_available instead of
1904 get_frame_pc, and if there's no PC available, don't look up a
1907 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1909 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
1912 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1914 * tracepoint.c (set_traceframe_context): Handle unavailable PC
1917 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1919 * frame.h (frame_unwind_caller_pc_if_available): Declare.
1920 * frame.c (frame_unwind_caller_pc_if_available): New.
1921 * stack.c (frame_info): Handle unavailable PC.
1923 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1925 * frame.c (frame_unwind_pc): Rename to ...
1926 (frame_unwind_pc_if_available): ... this. New `pc' output
1927 parameter. Change return type to int. Gracefully handle
1928 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
1929 happened, or 1 otherwise.
1930 (frame_unwind_pc): Reimplement on top of
1931 frame_unwind_pc_if_available.
1932 (get_frame_func): Rename to ...
1933 (get_frame_func_if_available): New `pc' output parameter. Change
1934 return type to int. Gracefully handle the PC not being available.
1935 (get_frame_func): Reimplement on top of
1936 get_frame_func_if_available.
1937 (select_frame): Handle the PC being unavailable.
1938 (get_prev_frame): Handle the PC being unavailable.
1939 (get_frame_pc_if_available): New.
1940 (get_frame_address_in_block_if_available): New.
1941 (find_frame_sal): Handle the frame PC not being available.
1942 * frame.h (get_frame_pc_if_available): Declare.
1943 (get_frame_address_in_block_if_available): Declare.
1944 (get_frame_func_if_available): Declare.
1945 * stack.c (print_frame_info): Handle the PC being unavailable.
1946 (find_frame_funname): Ditto.
1947 (print_frame): Handle the PC being unavailable.
1948 (get_frame_language): Ditto.
1949 * blockframe.c (get_frame_block): Ditto.
1950 * macroscope.c (default_macro_scope): Ditto.
1951 * tui/tui-stack.c (tui_show_frame_info): Ditto.
1953 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1955 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
1956 NOT_AVAILABLE_ERROR when evaluating the location expression.
1958 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1960 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
1961 returning that the register piece is unavailable/optimized out.
1962 (write_pieced_value): Handle get_frame_register_bytes returning
1963 that the register piece is unavailable/optimized out when doing a
1964 read-modify write of a bitfield.
1965 * findvar.c (value_from_register): Handle get_frame_register_bytes
1966 returning that the register piece is unavailable/optimized out.
1967 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
1968 and `unavailablep'. Throw error on bad debug info. Use
1969 frame_register instead of frame_register_read, to fill in the new
1971 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
1973 * valops.c: (value_assign): Adjust, and handle
1974 get_frame_register_bytes failing.
1975 * spu-tdep.c: Include exceptions.h.
1976 (spu_software_single_step): Adjust, and handle
1977 get_frame_register_bytes failing.
1978 (spu_get_longjmp_target): Ditto.
1979 * gdbarch.sh (register_to_value): Change to return int. New
1980 parameters `optimizedp' and `unavailablep'.
1981 * gdbarch.h, gdbarch.c: Regenerate.
1982 * i386-tdep.c (i386_register_to_value): Adjust to new
1983 gdbarch_register_to_value interface.
1984 * i387-tdep.c (i387_register_to_value): Ditto.
1985 * i387-tdep.h (i387_register_to_value): Ditto.
1986 * alpha-tdep.c (alpha_register_to_value): Ditto.
1987 * ia64-tdep.c (ia64_register_to_value): Ditto.
1988 * m68k-tdep.c (m68k_register_to_value): Ditto.
1989 * mips-tdep.c (mips_register_to_value): Ditto.
1990 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
1992 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1994 * findvar.c (value_of_register): Mark the value as unavailable, if
1995 the register is unavailable.
1996 * frame.h (frame_register_unwind): New `unavailablep' parameter.
1997 (frame_register): New `unavailablep' parameter.
1998 (frame_register_read): Update comment.
1999 * frame.c (frame_register_unwind): New `unavailablep' parameter.
2000 Set it if the register is unavailable. If the register is
2001 unavailable, clear the output buffer.
2002 (frame_register): New `unavailablep' parameter. Pass it down.
2003 (frame_unwind_register): Adjust.
2004 (put_frame_register): Adjust.
2005 (frame_register_read): Adjust. Also return false if the register
2007 (frame_register_unwind_location): Adjust.
2008 * sentinel-frame.c (sentinel_frame_prev_register): If the register
2009 is unavailable, mark the value accordingly.
2010 * stack.c (frame_info): Handle unavailable registers.
2012 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2014 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
2015 simplify, using regcache_cooked_read.
2017 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2019 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
2020 (regcache_raw_read_unsigned, regcache_raw_read_signed)
2021 (regcache_raw_read_unsigned, regcache_raw_read_part)
2022 (regcache_cooked_read, regcache_cooked_read_signed)
2023 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
2024 (regcache_cooked_read_ftype): Change return to enum
2026 * regcache.c: Include exceptions.h
2027 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
2028 (do_cooked_read): Change return to enum register_status. Always
2029 forward to regcache_cooked_read.
2030 (regcache_raw_read): Change return to enum register_status. If
2031 the register is not REG_VALID, memset the buffer. Return the
2033 (regcache_raw_read_signed): Handle non-REG_VALID registers and
2034 return the register's status.
2035 (regcache_raw_read_unsigned): Ditto.
2036 (regcache_cooked_read): Change return to enum register_status.
2037 Assert that with read-only regcaches, the register's status must
2038 be known. If the regcache is read-only, and the register is not
2039 REG_VALID, memset the buffer. Return the register's status.
2040 (regcache_cooked_read_signed): Change return to enum
2041 register_status. Handle non-REG_VALID registers and return the
2043 (regcache_cooked_read_unsigned): Change return to enum
2044 register_status. Handle non-REG_VALID registers and return the
2046 (regcache_xfer_part, regcache_raw_read_part)
2047 (regcache_cooked_read_part): Change return to enum
2048 register_status. Return the register's status.
2049 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
2051 (regcache_dump): Handle unavailable cooked registers.
2052 * frame.c (do_frame_register_read): Adjust interface to match
2053 regcache_cooked_read_ftype.
2054 * gdbarch.sh (pseudo_register_read): Change return to enum
2056 * gdbarch.h, gdbarch.c: Regenerate.
2058 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
2060 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
2061 register_status. If reading a raw register indicates the raw
2062 register is not valid, return the raw register's status,
2063 otherwise, return REG_VALID.
2064 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
2065 register_status. Handle non-REG_VALID raw registers and return
2066 the register's status.
2067 * arm-tdep.c (arm_neon_quad_read)
2068 (arm_pseudo_read): Change return to enum register_status. Handle
2069 non-REG_VALID raw registers and return the register's status.
2070 * avr-tdep.c (avr_pseudo_register_read): Ditto.
2071 * frv-tdep.c (frv_pseudo_register_read): Ditto.
2072 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
2073 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
2074 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
2076 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
2077 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
2078 (m32c_part_write, m32c_cat_read, m32c_cat_write)
2079 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
2080 (m32c_pseudo_register_read): Change return to enum
2081 register_status. Adjust.
2082 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
2083 enum register_status. Return the register's status.
2084 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
2085 register_status. Return the register's status.
2086 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
2087 * mips-tdep.c (mips_pseudo_register_read): Ditto.
2088 * mt-tdep.c (mt_pseudo_register_read): Ditto.
2089 * rs6000-tdep.c (move_ev_register_func): New typedef.
2090 (e500_move_ev_register): Use it. Change return to enum
2091 register_status. Return the register's status.
2092 (do_regcache_raw_read): New function.
2093 (do_regcache_raw_write): New function.
2094 (e500_pseudo_register_read): Change return to enum
2095 register_status. Return the register's status. Use
2096 do_regcache_raw_read.
2097 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
2098 (dfp_pseudo_register_read): Change return to enum register_status.
2099 Return the register's status.
2100 (vsx_pseudo_register_read): Ditto.
2101 (efpr_pseudo_register_read): Ditto.
2102 (rs6000_pseudo_register_read): Ditto.
2103 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
2104 register_status. Return the register's status.
2105 * sh64-tdep.c (pseudo_register_read_portions): New function.
2106 (sh64_pseudo_register_read): Change return to enum
2107 register_status. Use pseudo_register_read_portions. Return the
2109 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
2110 register_status. Return the register's status.
2111 * sh-tdep.c (pseudo_register_read_portions): New function.
2112 (sh_pseudo_register_read): Change return to enum register_status.
2113 Use pseudo_register_read_portions. Return the register's status.
2114 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
2115 enum register_status. Return the register's status.
2116 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
2117 * spu-tdep.c (spu_pseudo_register_read_spu)
2118 (spu_pseudo_register_read): Ditto.
2119 * xtensa-tdep.c (xtensa_register_read_masked)
2120 (xtensa_pseudo_register_read): Ditto.
2121 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
2123 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2125 * python/py-value.c (valpy_getitem): Fix formatting of error function
2128 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2130 ARI fixes: Add missing internationalization markups throughout
2132 * darwin-nat-info.c: Ditto.
2135 * mi/mi-main.c: Ditto.
2137 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2139 ARI fixes: Add missing internationalization markups throughout
2142 * cp-name-parser.y: Ditto.
2145 * objc-exp.y: Ditto.
2148 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2150 ARI fixes: Messages should have no trailing new lines.
2151 * darwin-nat.c (mach_check_error): Remove trailing new line from
2152 warning function call message.
2153 * record.c (bfdcore_read): Idem for error call.
2155 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2157 * common/signals.c (target_signal_from_host): Add _ markup to error
2158 function call message.
2159 (target_signal_to_host): Add _ markup and remove trailing new line
2160 from warning call message.
2161 (target_signal_from_command): Add _ markup to error function call
2164 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
2168 * python/python.c (gdbpy_write): Accept a stream argument and
2169 operate to the appropriate stream.
2170 (gdbpy_flush): Likewise.
2171 (_initialize_python): Add stream constants.
2172 (finish_python_initialization): Add GdbOutputErrorFile class.
2174 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
2176 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2178 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
2180 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
2181 to store_signed_integer. Add debug message when relocating CALL
2182 instructions. Fix formatting of debug message.
2183 * i386-tdep.c (i386_relocate_instruction): Ditto.
2185 2011-03-17 Joel Brobecker <brobecker@gnat.com>
2187 * target.h (struct target_ops): Remove to_lookup_symbol field.
2188 (target_lookup_symbol): Delete macro.
2189 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
2190 (update_current_target, setup_target_debug): Remove handling
2191 of to_lookup_symbol target_ops field.
2192 * ada-tasks.c (get_known_tasks_addr): Remove use of
2193 target_lookup_symbol.
2194 * coffread.c (coff_symtab_read): Likewise.
2195 * dbxread.c (read_dbx_symtab): Ditto.
2197 2011-03-17 Joel Brobecker <brobecker@gnat.com>
2200 * configure.ac: Add getthrds declaration check.
2201 * configure, config.in: Regenerate.
2202 * aix-thread.c (getthrds): Declare only if not already declared
2203 in procinfo.h. More declaration out of get_signaled_thread to
2206 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
2208 * python/py-symtab.c: Populate symtab_object_methods,
2210 (stpy_is_valid): New function.
2211 (salpy_is_valid): Ditto.
2212 * python/py-symbol.c: Declare symbol_object_methods. Populate.
2213 (sympy_is_valid): New function.
2214 * python/py-objfile.c: Declare objfile_object_methods. Populate.
2215 (objfpy_is_valid): New function.
2216 * python/py-inferior.c: Populate inferior_object_methods.
2217 (infpy_is_valid): New function.
2218 * python/py-infthread.c: Populate thread_object_methods.
2219 (thpy_is_valid): New function.
2220 * python/py-block.c: Declare block_object_methods. Populate. Declare
2221 block_iterator_object_methods. Populate.
2222 (blpy_is_valid): New function.
2223 (blpy_iter_is_valid): Ditto.
2225 2011-03-16 Keith Seitz <keiths@redhat.com>
2227 * linespec.c (find_methods): Canonicalize NAME before looking
2229 (name_end): New function.
2230 (keep_name_info): New function.
2231 (decode_line_1): Use keep_name_info.
2232 (decode_compound): Likewise.
2233 * cli/cli-utils.h (remove_trailing_whitespace): New function.
2234 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
2237 * linespec.c (locate_first_half): Keep overload information, too.
2238 (decode_compound): Use a string to represent break characters
2240 If P points to a break character, do not increment it.
2241 For C++ and Java, keep overload information and relevant keywords.
2242 If we cannot find a symbol, search the minimal symbols.
2245 * linespec.c (decode_compound): Rename SAVED_ARG to
2247 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
2249 Pass a valid block to lookup_symbol.
2250 (lookup_prefix_sym): Likewise.
2251 (find_method): Construct search name based on SYM_CLASS instead
2253 * psymtab.c (lookup_partial_symbol): Add language parameter.
2254 (lookup_symbol_aux_psymtabs): Likewise.
2255 Don't assume that the psymtab we found was the right one. Search
2256 for the desired symbol in the symtab to be certain.
2257 (psymtab_search_name): New function.
2258 (lookup_partial_symbol): Use psymtab_search_name.
2259 Add language parameter.
2260 (read_symtabs_for_function): Add language parameter and pass to
2261 lookup_partial_symbol.
2262 (find_symbol_file_from_partial): Likewise.
2264 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
2267 * dwarf2read.c (noop_record_line): New function.
2268 (dwarf_decode_lines): Ignore line tables for GCd functions.
2270 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
2272 Fix ARI warnings about new lines at the end of messages, which
2273 are unneeded as there is a new line added at the end of the message
2275 * darwin-nat.c (darwin_stop_inferior): Ditto.
2276 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
2277 * dfp.c (decimal_to_number): Ditto.
2278 * exec.c (print_section_info): Ditto.
2279 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
2280 * osdata.c (get_osdata): Ditto.
2281 * record.c (bfdcore_write): Ditto.
2282 * remote-mips.c (mips_readchar): Ditto.
2283 * remote.c (read_ptid): Ditto.
2284 * ser-mingw.c (ser_windows_raw): Ditto.
2285 * tracepoint.c (add_local_symbols): Ditto.
2286 * windows-nat.c (fake_create_process): Ditto.
2288 2011-03-16 Tom Tromey <tromey@redhat.com>
2290 * tracepoint.c (stop_tracing): Don't declare.
2291 * event-top.c (after_char_processing_hook): Add `(void)'.
2293 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
2295 * NEWS: Add Parameter sub-classing description.
2297 2011-03-16 Kai Tietz <ktietz@redhat.com>
2299 * MAINTAINERS: Update my e-mail address.
2301 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
2303 * MAINTAINERS: Add myself for write after approval privileges.
2305 2011-03-15 Michael Snyder <msnyder@vmware.com>
2307 * frame.c (find_frame_sal): Assert sym is not null.
2309 * dbxread.c (process_one_symbol): Assert 'name' is not null.
2311 * objc-lang.c (selectors_info): Check strchr for null result.
2313 * stabsread.c (define_symbol): Guard against bad stabstring input.
2315 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2317 Remove trailing spaces and tabulations from pascal language
2322 p-valprint.c: Ditto.
2324 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2326 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
2327 than LOW. Comment it.
2328 (read_partial_die): Call complaint for inappropriate zero LOWPC or
2329 HIGHPC not strictly higher than LOWPC.
2331 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2333 Fix formatting of function declarations returning a pointer in
2335 * varobj.c (varobj_add_child): Ditto.
2336 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
2337 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
2339 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
2341 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
2342 for the "generic" vector ABI used with GCC 4.3 and later.
2343 (ppc64_sysv_abi_return_value): Likewise.
2345 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
2347 * infcall.c (call_function_by_hand): Function return value is
2348 always a non_lval, even when using struct_return.
2350 2011-03-15 Pedro Alves <pedro@codesourcery.com>
2352 * printcmd.c (ALL_DISPLAYS_SAFE): New.
2353 (map_display_numbers): New.
2354 (do_delete_display): New.
2355 (undisplay_command): Use map_display_numbers.
2356 (do_enable_disable_display): New.
2357 (enable_disable_display_command): New function.
2358 (enable_display): Delete.
2359 (enable_display_command): New.
2360 (disable_display_command): Reimplement.
2361 (_initialize_printcmd): Adjust "enable display" command to use
2362 `enable_display_command' as callback.
2364 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2366 * NEWS: Add Python breakpoint 'stop' operation.
2368 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2370 * NEWS: Delete duplicate entry. Fix typo.
2372 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
2374 Fix ARI warning about function names in first column.
2375 Put prototype declaration on same line as return type.
2376 * objc-exp.y: Ditto.
2378 * python/py-stopevent.h: Ditto.
2379 For long function names, split parameters to
2380 allow function name on same line as return type.
2381 * solib-pa64.c: Ditto.
2384 For long function declaration, use single line.
2385 * hppa-tdep.h: Ditto.
2386 * inferior.h: Ditto.
2388 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2390 * python/python.h: Declare gdbpy_should_stop and
2391 gdbpy_breakpoint_has_py_cond.
2392 * python/python.c: Add python.h to includes. Remove python.h from
2393 HAVE_PYTHON definition
2394 (gdbpy_should_stop): New dummy function.
2395 (gdbpy_breakpoint_has_py_cond): New dummy function.
2396 * python/py-breakpoint.c (bppy_init): Rewrite to allow
2397 sub-classing capabilities.
2398 (gdbpy_should_stop): New function.
2399 (gdbpy_breakpoint_has_py_cond): New function.
2400 (local_setattro): New function.
2401 * breakpoint.c (condition_command): Add check for Python 'stop'
2403 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
2404 operation function as part of stop/continue tests.
2406 2011-03-14 Tom Tromey <tromey@redhat.com>
2409 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
2410 (needs_frame_dwarf_call): Likewise.
2412 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
2414 Fix ARI warning about functions without parameters that do not
2416 * breakpoint.c (all_tracepoints): Replace () by (void).
2417 * f-exp.y (match_string_literal): Ditto.
2419 * m2-exp.y (yylex): Ditto.
2420 * mep-tdep.c (current_me_module): Ditto.
2421 (current_options): Ditto.
2422 (current_cop_data_bus_width): Ditto.
2423 (current_cr_names): Ditto.
2424 (current_cr_is_float): Ditto.
2425 (current_ccr_names): Ditto.
2426 * objc-exp.y (yylex): Ditto.
2427 * p-exp.y (yylex): Ditto.
2428 * remote.c (send_interrupt_sequence): Ditto.
2429 * tracepoint.c (current_trace_status): Ditto.
2430 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
2431 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
2433 2011-03-11 Michael Snyder <msnyder@vmware.com>
2435 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
2436 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
2437 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
2438 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
2439 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
2441 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
2442 (delete_async_event_handler): Ditto.
2444 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
2446 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
2448 * top.c (set_verbose): Assert showcmd was found.
2450 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
2452 * xtensa-tdep.c (warning_once): Correct style issues.
2454 2011-03-11 Yao Qi <yao@codesourcery.com>
2456 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
2458 2011-03-11 Andreas Schwab <schwab@redhat.com>
2460 * common/aclocal.m4: Remove.
2462 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
2464 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
2465 (xtensa_write_register, xtensa_read_register): Likewise.
2466 (xtensa_hextochar): Removed.
2467 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
2469 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
2471 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
2472 (xtensa_call0_frame_cache_t): Update comments. New fields added.
2473 (xtensa_alloc_frame_cache): Add initialization for new fields.
2474 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
2475 (warning_once): New function.
2476 (xtensa_insn_kind): New item c0opc_and.
2477 (call0_classify_opcode): Add the case for AND instruction.
2478 (call0_track_op): Change arguments. New local variable litbase.
2479 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
2480 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
2482 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
2483 (call0_analyze_prologue): Update the comments. Change arguments.
2484 Add the variety of updates to handle extended prologues, which now can
2485 conduct dynamic stack adjustments.
2486 (call0_frame_cache): Likewise.
2487 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
2488 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
2490 2011-03-10 Michael Snyder <msnyder@vmware.com>
2492 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
2493 (cmd_qtframe): Ditto.
2494 (cmd_qtbuffer): Ditto.
2495 (cmd_bigqtbuffer): Ditto.
2497 2011-03-10 Tom Tromey <tromey@redhat.com>
2499 * tracepoint.c (trace_actions_command): Update.
2500 * thread.c (thread_apply_command): Update.
2501 * reverse.c (delete_bookmark_command): Update.
2502 (bookmarks_info): Update.
2503 * printcmd.c (undisplay_command): Update.
2504 * memattr.c (mem_enable_command): Update.
2505 (mem_disable_command): Update.
2506 (mem_delete_command): Update.
2507 * inferior.c (detach_inferior_command): Update.
2508 (kill_inferior_command): Update.
2509 (remove_inferior_command): Update.
2510 * cli/cli-utils.h (struct get_number_or_range_state): New.
2511 (init_number_or_range): Declare.
2512 (get_number_or_range): Update.
2513 * cli/cli-utils.c (init_number_or_range): New function.
2514 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
2516 (number_is_in_list): Update.
2517 * breakpoint.h (get_tracepoint_by_number): Update.
2518 * breakpoint.c (map_breakpoint_numbers): Update for change to
2519 get_number_or_range.
2520 (find_location_by_number): Use get_number, not
2521 get_number_or_range.
2522 (trace_pass_set_count): New function.
2523 (trace_pass_command): Update for change to get_number_or_range.
2525 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
2528 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
2530 * python/py-param.c (add_setshow_generic): Add set/show callback
2531 parameters. Register Python object context.
2532 (get_show_value): New function.
2533 (get_set_value): New function.
2534 (call_doc_function): New function.
2535 (get_doc_string): Move behind get_show_value/get_set_value.
2537 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
2539 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
2541 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
2543 * xtensa-tdep.c (xtensa_read_register): Add comment.
2544 (xtensa_write_register): Likewise.
2545 (xtensa_hextochar): Add comment and update to match coding conventions.
2546 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
2547 (execute_l32e, execute_s32e, execute_code): Update comments.
2548 (xtensa_exception_handler_t): Update to match coding conventions.
2549 (xtensa_insn_kind): Likewise.
2551 2011-03-09 Michael Snyder <msnyder@vmware.com>
2553 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
2555 2011-03-09 Pedro Alves <pedro@codesourcery.com>
2557 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
2559 2011-03-09 Tom Tromey <tromey@redhat.com>
2561 * thread.c (restore_selected_frame): Handle frame_level == -1.
2562 (make_cleanup_restore_current_thread): Use
2563 get_selected_frame_if_set.
2564 * frame.h (get_selected_frame_if_set): Declare.
2565 * frame.c (get_selected_frame_if_set): New function.
2567 2011-03-09 Pedro Alves <pedro@codesourcery.com>
2569 * cli/cli-cmds.c (shell_escape): Use lbasename.
2570 * coffread.c (coff_start_symtab): Constify parameter.
2571 (complete_symtab): Constify `name' parameter.
2572 (coff_symtab_read): Constify `filestring' local.
2573 (coff_getfilename): Constify return and `result' local.
2575 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
2576 * linux-fork.c (info_checkpoints_command): Use lbasename.
2577 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
2578 * minsyms.c (lookup_minimal_symbol): Use lbasename.
2579 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
2580 * procfs.c (procfs_make_note_section): Use lbasename.
2581 * tui/tui-io.c (printable_part): Constity return and parameter.
2583 (print_filename): Constify parameters, and local `s'.
2584 (tui_rl_display_match_list): Constify local `temp'.
2586 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2589 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2590 Fix DWARF-3+ DW_AT_accessibility default assumption.
2591 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
2592 cu->header.version >= 3.
2594 2011-03-09 Yao Qi <yao@codesourcery.com>
2596 * common/Makefile.in: Remove.
2597 * common/configure: Remove.
2598 * common/configure.ac: Remove.
2600 2011-03-09 Yao Qi <yao@codesourcery.com>
2603 2011-02-11 Yao Qi <yao@codesourcery.com>
2605 * common/Makefile.in: Add copyright header.
2607 2011-02-11 Yao Qi <yao@codesourcery.com>
2609 * Makefile.in: Remove signals.o from COMMON_OBS. Link
2611 * configure.ac: Add common to sub dir.
2612 * configure: Regenerate.
2614 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2616 * xtensa-tdep.c (call0_ret): New function.
2617 (xtensa_skip_prologue): Speed up analysis.
2619 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2621 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
2622 while executing MI command -data-list-changed-registers.
2624 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2626 * xtensa-tdep.c (xtensa_read_register): New function.
2627 (xtensa_write_register): New function.
2628 (xtensa_find_register_by_name): New function.
2629 (xtensa_windowed_frame_cache): Update comments in type description.
2630 (xtensa_frame_cache): Likewise.
2631 (xtensa_window_interrupt_insn): New function.
2632 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
2633 (xtensa_insn_kind): Add new instructions.
2634 (rwx_special_register): New function.
2635 (call0_classify_opcode): Add new instructions to the analysis.
2636 (a0_saved, a7_saved, a11_saved): New variables.
2637 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
2638 (execute_l32e): New function.
2639 (execute_s32e): New function.
2640 (xtensa_exception_handler_t): New type.
2641 (execute_code): New function.
2642 (xtensa_window_interrupt_frame_cache): New function to conduct frame
2643 analysis for Xtensa Window Exception handlers.
2645 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2647 * xtensa-tdep.c (TX_PS): New.
2648 (windowing_enabled): Update to count for Call0 ABI.
2649 (xtensa_hextochar): New.
2650 (xtensa_init_reggroups): Make algorithm generic.
2651 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
2653 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2655 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
2657 2011-03-08 Michael Snyder <msnyder@vmware.com>
2659 * i386-tdep.c (i386_follow_jump): Check return value of
2661 (i386_analyze_struct_return): Ditto.
2662 (i386_skip_probe): Ditto.
2663 (i386_match_insn): Ditto.
2664 (i386_skip_noop): Ditto.
2665 (i386_analyze_frame_setup): Ditto.
2666 (i386_analyze_register_saves): Ditto.
2667 (i386_skip_prologue): Ditto.
2668 (i386_skip_main_prologue): Ditto.
2670 * target.c (read_whatever_is_readable): Fix memory leak.
2672 * i386-tdep.c (i386_process_record): Document fall through.
2674 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2676 Fix DWARF-3+ DW_AT_accessibility default assumption.
2677 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
2678 cu->header.version >= 3.
2680 2011-03-08 Pedro Alves <pedro@codesourcery.com>
2682 * remote.c (remote_check_symbols): Skip if the target has no
2685 2011-03-08 Joel Brobecker <brobecker@adacore.com>
2687 * target.c (read_whatever_is_readable): Reformat comment,
2688 with a minor typo fix. Minor reformatting of the code.
2690 2011-03-08 Yao Qi <yao@codesourcery.com>
2692 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
2693 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
2694 Use cached result instead of calling displaced_in_arm_mode again.
2695 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
2696 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
2697 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
2698 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
2699 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
2700 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
2701 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
2702 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
2703 (cleanup_block_load_pc, copy_block_xfer): Likewise.
2704 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
2705 (arm_catch_kernel_helper_return): Likewise.
2706 * gdb/arm-tdep.h : Update function declarations.
2708 2011-03-07 Michael Snyder <msnyder@vmware.com>
2710 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
2712 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
2714 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
2716 * elfread.c (elf_symtab_read): Stop memory leak.
2718 * main.c (captured_main): Fix memory leak.
2720 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
2722 * ada-lang.c (compare_names): Call is_name_suffix with string1
2725 2011-03-07 Tom Tromey <tromey@redhat.com>
2727 * xcoffread.c (xcoff_sym_fns): Update.
2728 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
2729 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
2730 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
2731 (symbol_file_add_with_addrs_or_offsets): Likewise.
2732 (reread_symbols): Handle OBJF_PSYMTABS_READ.
2733 * somread.c (som_sym_fns): Update.
2734 * psymtab.h (require_partial_symbols): Declare.
2735 * psymtab.c (require_partial_symbols): New function.
2736 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
2737 (ALL_OBJFILE_PSYMTABS): Undef.
2738 (ALL_PSYMTABS): Move from psympriv.h.
2739 (lookup_partial_symtab, find_pc_sect_psymtab)
2740 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
2741 (find_last_source_symtab_from_partial)
2742 (forget_cached_source_info_partial)
2743 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
2744 (expand_partial_symbol_tables, read_psymtabs_with_filename)
2745 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
2746 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
2747 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
2748 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
2749 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
2750 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
2751 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
2753 * mipsread.c (ecoff_sym_fns): Update.
2754 * machoread.c (macho_sym_fns): Update.
2755 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
2756 (read_psyms): New function.
2757 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
2758 (elf_sym_fns_lazy_psyms): New global.
2759 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
2760 dwarf2_build_psymtabs.
2761 * dbxread.c (aout_sym_fns): Update.
2762 * coffread.c (coff_sym_fns): Update.
2764 2011-03-07 Tom Tromey <tromey@redhat.com>
2766 * infrun.c (print_exited_reason): Include inferior id and pid in
2769 2011-03-07 Tom Tromey <tromey@redhat.com>
2771 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
2773 (target_has_execution_1): Update.
2774 (target_has_execution_current): Declare.
2775 (target_has_execution): Call target_has_execution_current.
2776 (default_child_has_execution): Update.
2777 * target.c (default_child_has_execution): Add 'the_ptid'
2779 (target_has_execution_1): Likewise.
2780 (target_has_execution_current): New function.
2781 (add_target): Update.
2782 (init_dummy_target): Update.
2783 * remote-m32r-sdi.c (m32r_has_execution): New function.
2784 (init_m32r_ops): Use it.
2785 * record.c (record_core_has_execution): Now static. Add
2786 'the_ptid' parameter.
2787 * inferior.c (have_live_inferiors): Don't save current thread.
2788 Use target_has_execution_1.
2790 2011-03-07 Yao Qi <yao@codesourcery.com>
2792 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
2794 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2796 * elfread.c (elf_symtab_read): Minor reformatting.
2798 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2800 * objc-lang.c (selectors_info): Minor reformatting.
2802 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2804 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
2806 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2807 Michael Snyder <msnyder@vmware.com>
2809 * ada-valprint.c (ada_val_print_array): Move the declaration of
2810 "byte_order" and "elttype" inside the block where these variables
2811 are actually used. Remove some special handling for the case
2812 where "elttype" and "eltlen" are null. Replace by a comment
2813 and a couple of assertion checks.
2815 2011-03-05 Michael Snyder <msnyder@vmware.com>
2817 * source.c (add_path): Replace semicolon at end of block.
2818 * dwarf2expr.c (execute_stack_op): Ditto.
2820 2011-03-05 Mike Frysinger <vapier@gentoo.org>
2822 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
2823 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
2824 (bfin-*-*): Likewise.
2826 2011-03-05 Michael Snyder <msnyder@vmware.com>
2828 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
2829 * mdebugread.c (parse_symbol): Ditto.
2830 * parse.c (parse_exp_in_context): Ditto.
2831 * source.c (add_path): Ditto.
2832 * utils.c (gnu_debuglink_crc32): Ditto.
2833 * varobj.c (variable_language): Ditto.
2835 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
2837 2011-03-04 Michael Snyder <msnyder@vmware.com>
2839 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
2841 * symfile.c (simple_overlay_update): Check for null return value
2842 from lookup_minimal_symbol.
2844 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
2846 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2848 * eval.c (parse_and_eval_address_1): Remove function.
2849 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
2850 instead of parse_and_eval_address_1.
2851 * value.h (parse_and_eval_address_1): Remove prototype.
2853 2011-03-04 Michael Snyder <msnyder@vmware.com>
2855 * remote.c (putpkt_binary): Document that case stmt falls through.
2857 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2859 * breakpointc (print_it_typical): Move NULL check from here...
2860 (print_bp_stop_message): ... to here.
2862 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
2864 * breakpoint.c (enable_command): Use break instead of continue,
2865 and fill in a missing break.
2866 (disable_command): Ditto.
2868 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
2870 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
2871 (terminal_save_ours): Remove misleading comment.
2872 (inflow_inferior_data_cleanup): Free ttystate.
2873 (inflow_inferior_exit): Likewise.
2874 (copy_terminal_info): Copy ttystate.
2876 * serial.c (serial_copy_tty_state): New function.
2877 * serial.h (serial_copy_tty_state): Add prototype.
2878 (struct serial_ops): Add copy_tty_state callback.
2879 * ser-base.c (ser_base_copy_tty_state): New function.
2880 * ser-base.h (ser_base_copy_tty_state): Add prototype.
2881 * ser-go32.c (dos_copy_tty_state): New function.
2882 (dos_ops): Install copy_tty_state callback.
2883 * ser-mingw.c (_initialize_ser_windows): Likewise.
2884 * ser-pipe.c (_initialize_ser_pipe): Likewise.
2885 * ser-unix.c (hardwire_copy_tty_state): New function.
2886 (_initialize_ser_hardwire): Install it.
2888 2011-03-04 Michael Snyder <msnyder@vmware.com>
2890 * breakpoint.c (create_breakpoint): Add missing break statement.
2892 Reverting this patch:
2893 * infcall.c (call_function_by_hand): Add break statements for lint.
2895 Reverting this patch:
2896 * cli/cli-script.c (script_from_file): Add break for lint.
2898 2011-03-04 Michael Snyder <msnyder@vmware.com>
2900 * solib.c (reload_shared_libraries_1): Close memory leak.
2902 2011-03-03 Tom Tromey <tromey@redhat.com>
2905 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
2908 2011-03-03 Michael Snyder <msnyder@vmware.com>
2910 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
2911 fields of struct 'st' to zero.
2913 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
2914 sal.pspace before calling set_current_source_symtab_and_line.
2916 2011-03-03 Yao Qi <yao@codesourcery.com>
2918 * Makefile.in (configure-common): Remove. Let Makefile
2919 in dir common to rebuild itself.
2920 (common/Makefile): Likewise.
2922 2011-03-03 Joel Brobecker <brobecker@adacore.com>
2924 * utils.c (parse_escape): Add i18n markup in error message.
2926 2011-03-03 Yao Qi <yao@codesourcery.com>
2928 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
2930 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
2931 (displaced_write_reg, displaced_read_reg): Likewise.
2932 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
2933 (cleanup_block_load_pc, copy_block_xfer): Likewise.
2934 (cleanup_branch): Replace magic number 14 and 15 with
2935 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
2937 2011-03-02 Michael Snyder <msnyder@vmware.com>
2939 * maint.c (maintenance_do_deprecate): No need to check for NULL.
2941 * cli/cli-script.c (script_from_file): Add break for lint.
2943 * mdebugread.c (parse_partial_symbols): Fix indent.
2945 * target-descriptions.c (tdesc_gdb_type): No need to call
2946 xstrdup, callee saves a copy.
2948 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
2950 * infcall.c (call_function_by_hand): Add break statements for lint.
2952 * utils.c (parse_escape): Escape the escape char.
2954 * python/py-inferior.c (build_inferior_list): Error out if
2955 PyList_Append fails.
2956 (gdbpy_inferiors): Error out if build_inferior_list fails.
2958 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
2961 * record.c (record_restore): Move printf to before error return.
2963 2011-03-02 Yao Qi <yao@codesourcery.com>
2965 * arm-tdep.h (struct displaced_step_closure): Add two new fields
2966 is_thumb and insn_size.
2967 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
2968 on both ARM and Thumb mode.
2969 (arm_process_displaced_insn): Set is_thumb and insn_size.
2970 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
2971 (arm_displaced_step_fixup): Likewise.
2973 2011-03-01 Michael Snyder <msnyder@vmware.com>
2975 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
2977 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
2979 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
2981 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
2983 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
2986 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
2987 which shadows function parameter.
2989 * tracepoint.c (create_tsv_from_upload): Superfluous call
2990 to xstrdup. Callee already calls xstrdup.
2992 * linespec.c (decode_line_1): Remove unnecessary null check.
2994 * tracepoint.c (scope_info): Fix mem leak, remove underused
2997 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
2998 superfluous null check.
3000 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
3001 (value_of_builtin_frame_fp_reg): Ditto.
3003 * event-top.c (display_gdb_prompt): Remove superfluous null check.
3005 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
3008 * linespec.c (decode_line_1): Check for null before dereference.
3010 * reverse.c (record_restore): Move null-check to before pointer
3013 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
3015 * objc-lang.c (selectors_info): Add explanitory comment.
3016 (classes_info): Ditto.
3018 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
3020 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
3021 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
3022 versions of the trampoline. Handle Thumb vs. ARM addresses.
3023 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
3024 (arm_linux_init_abi): Install it.
3025 * arm-tdep.c (arm_psr_thumb_bit): Make global.
3026 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
3028 2011-02-28 Michael Snyder <msnyder@vmware.com>
3030 * ui-out.c (ui_out_field_core_addr): Make local char buffer
3031 a little bigger, to avoid possibility of an overflow.
3033 * breakpoint.c (breakpoint_adjustment_warning): Make local char
3034 buffers a little bigger, to avoid possibility of an overflow.
3036 * coffread.c (coff_getfilename): Add check to avoid overflow.
3038 * objc-lang.c (selectors_info): Add a small safety margin to
3040 (classes_info): Error out on too long REGEXP.
3042 * infrun.c (handle_inferior_event): Remove unused function call.
3044 * fork-child.c (fork_inferior): Remove ifdef'd code and
3047 * linux-thread-db.c (attach_thread): Discard unused value.
3049 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
3051 * remote.c (remote_get_noisy_reply): Discard unused value.
3052 (remote_vcont_resume): Ditto.
3053 (remote_stop_ns): Ditto.
3055 * linespec.c (decode_objc): Delete unused variable.
3057 * tui/tui-regs.c (tui_register_format): Delete unused variable.
3059 * dwarf2read.c (add_partial_symbol): Discard unused values.
3060 (read_base_type): Delete unused variable.
3062 * dbxread.c (read_dbx_symtab): Discard unused value.
3064 * eval.c (evaluate_subexp_standard): Delete unused variable,
3065 and discard unused values.
3067 * infcmd.c (_initialize_infcmd): Discard unused values.
3069 * stabsread.c (rs6000_builtin_type): Missing break statement.
3071 * dbxread.c (process_one_symbol): Discard unused value.
3073 * coffread.c (coff_end_symtab): Delete unused variable.
3075 * dwarf2read.c (dw2_get_file_names): Discard unused value.
3076 (dwarf2_add_typedef): Delete unused variable.
3077 (read_namespace): Ditto.
3078 (dwarf_decode_macros): Ditto.
3080 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
3082 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
3084 * p-valprint.c (pascal_val_print): Discard unused value.
3086 * utils.c (nquery): Call va_end before return;
3090 * proc-service.c (ps_plog): Call va_end before return.
3092 2011-02-28 Tom Tromey <tromey@redhat.com>
3094 * python/python.c (gdbpy_value_cst): New global.
3095 (_initialize_python): Initialize it.
3096 * python/python-internal.h (gdbpy_value_cst): Declare.
3097 * python/py-value.c (convert_value_from_python): Use
3100 2011-02-28 Michael Snyder <msnyder@vmware.com>
3102 * python/py-cmd.c (cmdpy_init): Fix memory leak.
3104 * breakpoint.c (catch_syscall_completer): Free malloced list.
3106 * jv-lang.c (java_primitive_type_from_name): Add missing break.
3108 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
3109 (lval_func_check_synthetic_pointer): Ditto.
3110 (lval_func_free_closure): Fix use-after-free.
3112 2011-02-28 Tom Tromey <tromey@redhat.com>
3114 * psymtab.c (expand_partial_symbol_tables): Use
3115 ALL_OBJFILE_PSYMTABS.
3117 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3119 * objc-lang.c (selectors_info): Error on too long REGEXP.
3121 2011-02-28 Michael Snyder <msnyder@vmware.com>
3123 * python/py-param.c (set_parameter_value): Add missing
3126 * linux-record.c (record_linux_system_call): Add missing
3129 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3131 * breakpoint.c (print_one_breakpoint_location): Remove unused
3132 argument PRINT_ADDRESS_BITS. Update callers.
3133 (print_one_breakpoint): Likewise.
3135 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3137 * breakpoint.c (wrap_indent_at_field): New function.
3138 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
3139 Allocate ui_stream locally instead of using STB argument.
3140 (print_one_breakpoint_location): Update call.
3141 * ui-out.c (ui_out_query_field): New function.
3142 * ui-out.h (ui_out_query_field): Add prototype.
3144 2011-02-28 Joel Brobecker <brobecker@adacore.com>
3146 From Michael Snyder <msnyder@vmware.com>
3147 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
3149 2011-02-27 Michael Snyder <msnyder@vmware.com>
3151 * objc-lang.c (selectors_info): Prevent string overrun.
3153 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
3156 * symtab.c (rbreak_command): Move variable 'file_name' to
3159 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
3160 param with a local variable of the same name.
3162 2011-02-27 Michael Snyder <msnyder@vmware.com>
3164 * value.c (value_from_history_ref): New function.
3165 * value.h (value_from_history_ref): Export.
3166 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
3167 to parse value history references.
3168 * cli/cli-utils.h (get_number_trailer): Update comment.
3170 2011-02-27 Michael Snyder <msnyder@vmware.com>
3172 * inferior.c (detach_inferior_command): Use get_number_or_range.
3173 (kill_inferior_command): Ditto.
3174 (remove_inferior_command): Ditto.
3175 (initialize_inferiors): Make command names plural.
3176 Update help strings.
3178 2011-02-27 Michael Snyder <msnyder@vmware.com>
3180 * darwin-nat-info.c: Fix comment typo.
3181 * dwarf2expr.h: Ditto.
3182 * fbsd-nat.c: Ditto.
3183 * fbsd-nat.h: Ditto.
3184 * frame-unwind.h: Ditto.
3186 * hppa-hpux-tdep.c: Ditto.
3187 * i386-linux-nat.c: Ditto.
3188 * linux-nat.c: Ditto.
3189 * nbsd-nat.c: Ditto.
3190 * nbsd-nat.h: Ditto.
3191 * ppc-linux-tdep.c: Ditto.
3194 * tui/tui-winsource.c: Ditto.
3196 2011-02-26 Michael Snyder <msnyder@vmware.com>
3198 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
3200 * maint.c (maintenance_do_deprecate): Plug a memory leak.
3202 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
3203 with a local variable of the same name.
3205 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
3206 param with a local variable of the same name.
3207 (i387_supply_xsave): Ditto.
3209 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
3210 that it does not shadow a function parameter.
3212 * i386-nat.c (i386_length_and_rw_bits): Document that case
3213 statement is meant to fall through.
3215 * expprint.c (dump_subexp_body_standard): Document that case
3216 statement is meant to fall through.
3218 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
3219 dead if statement. Condition can't be false.
3221 2011-02-25 Michael Snyder <msnyder@vmware.com>
3223 * arm-tdep.c: Fix typos in comments.
3224 * bsd-uthread.c: Ditto.
3225 * completer.c: Ditto.
3227 * cp-namespace.c: Ditto.
3228 * cp-support.c: Ditto.
3229 * cris-tdep.c: Ditto.
3231 * dwarf2read.c: Ditto.
3233 * gdbtypes.h: Ditto.
3234 * inferior.h: Ditto.
3235 * mdebugread.c: Ditto.
3236 * mips-tdep.c: Ditto.
3237 * ppc-linux-nat.c: Ditto.
3238 * ppc-linux-tdep.c: Ditto.
3239 * printcmd.c: Ditto.
3240 * sol-thread.c: Ditto.
3241 * solib-frv.c: Ditto.
3243 * sparc64-tdep.c: Ditto.
3244 * spu-tdep.c: Ditto.
3245 * stabsread.c: Ditto.
3250 * python/py-block.c: Ditto.
3251 * python/py-symbol.c: Ditto.
3252 * python/py-symtab.c: Ditto.
3253 * python/py-value.c: Ditto.
3254 * tui/tui-win.c: Ditto.
3256 2011-02-25 Michael Snyder <msnyder@vmware.com>
3258 * inferior.c (print_inferior): Accept a string instead of an int
3259 for requested_inferiors, and use get_number_or_range to parse it.
3260 (info_inferiors_command): Pass args string to print_inferior.
3261 (initialize_inferiors): Change help string for info inferiors.
3262 * inferior.h (print_inferior): Export prototype change.
3264 2011-02-25 Tom Tromey <tromey@redhat.com>
3266 * common/ax.def (invalid2): Set to 0x31.
3268 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3270 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
3272 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
3274 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
3276 2011-02-24 Michael Snyder <msnyder@vmware.com>
3278 * Makefile.in (clean): Make clean should remove generated files
3279 observer.h and observer.inc.
3281 2011-02-24 Joel Brobecker <brobecker@adacore.com>
3283 Revert the following patch (not approved yet):
3284 2011-02-21 Hui Zhu <teawater@gmail.com>
3285 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3286 * ax-gdb.c (gen_printf_expr_callback): New function.
3287 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3288 * ax-general.c (ax_memcpy): New function.
3289 (ax_print): Handle "printf".
3291 * ax.h (ax_memcpy): Forward declare.
3292 * common/ax.def (invalid2): Removed.
3293 (printf): New entry.
3294 * printcmd.c (printcmd.h): New include.
3295 (string_printf): New function.
3296 (ui_printf): Removed.
3297 (printf_command): Remove static. Call string_printf.
3298 (eval_command): Call string_printf.
3299 * printcmd.h: New file.
3300 * tracepoint.c (validate_actionline,
3301 encode_actions_1): handle printf_command.
3303 2011-02-23 Tom Tromey <tromey@redhat.com>
3305 * ax-general.c (ax_pick): Add missing newline.
3307 2011-02-23 Michael Snyder <msnyder@vmware.com>
3309 * breakpoint.c (breakpoint_1): Change first argument from an int
3310 to a char pointer, so that the function now accepts a list of
3311 breakpoints rather than just one. Use new function
3312 'number_is_in_list' to implement.
3313 (breakpoints_info): Pass char * instead of int to breakpoint_1.
3314 (watchpoints_info): Ditto.
3315 (tracepoints_info): Ditto.
3316 (maintenance_info_breakpoints): Ditto.
3317 (_initialize_breakpoint): Update help strings to reflect the fact
3318 that these functions can now take more than one argument.
3319 * cli/cli-utils.c (number_is_in_list): New function.
3320 * cli/cli-utils.h (number_is_in_list): Export.
3322 2011-02-23 Michael Snyder <msnyder@vmware.com>
3324 * memattr.c (mem_enable_command): Use get_number_or_range.
3325 (mem_disable_command): Ditto.
3326 (mem_delete_command): Ditto.
3327 (_initialize_mem): Tweak usage message to reflect multiple
3330 2011-02-22 Doug Evans <dje@google.com>
3332 Add gdb.lookup_global_symbol python function.
3334 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
3335 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
3336 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
3338 2011-02-22 Tom Tromey <tromey@redhat.com>
3340 * language.c (language_class_name_from_physname): Rename
3341 'curr_language' argument to 'lang'; use in body.
3343 2011-02-22 Michael Snyder <msnyder@vmware.com>
3345 * cli/cli-utils.c (number_is_in_list): Check for zero return.
3347 2011-02-22 Pedro Alves <pedro@codesourcery.com>
3349 * frame-unwind.h: Fix comment to mention the this frame, not the
3352 2011-02-22 Tom Tromey <tromey@redhat.com>
3354 * symfile.c (auto_solib_limit): Remove.
3355 * symfile.h (auto_solib_limit): Remove.
3357 2011-02-22 Joel Brobecker <brobecker@adacore.com>
3359 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
3361 2011-02-21 Michael Snyder <msnyder@vmware.com>
3363 * gdbthread.h (print_thread_info): Change prototype.
3364 * thread.c (print_thread_info): Accept char* instead of int for
3365 requested_threads argument. Use new function number_is_in_list
3366 to determine which threads to list.
3367 (info_threads_command): Pass char* to print_thread_info.
3368 * cli/cli-utils.c (number_is_in_list): New function.
3369 * cli/cli-utils.h (number_is_in_list): Export.
3370 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
3372 (print_one_inferior): Ditto.
3373 (mi_cmd_list_thread_groups): Ditto.
3375 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3377 * common/Makefile.in (CFLAGS): New.
3378 (COMPILE): Add $(CFLAGS).
3380 2011-02-21 Tom Tromey <tromey@redhat.com>
3382 * breakpoint.c (catch_syscall_command_1): Fix typo.
3384 2011-02-21 Tom Tromey <tromey@redhat.com>
3386 * reverse.c: Include cli-utils.h.
3387 * printcmd.c: Include cli-utils.h.
3388 (string_printf): Use skip_spaces.
3389 * cli/cli-utils.h: New file.
3390 * cli/cli-utils.c: New file.
3391 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
3392 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
3393 * breakpoint.h (get_number, get_number_or_range): Move to
3395 * breakpoint.c: Include cli-utils.h.
3396 (get_number_trailer, get_number, get_number_or_range)
3397 (ep_skip_leading_whitespace): Move to cli-utils.c.
3398 (create_breakpoint_sal, find_condition_and_thread)
3399 (decode_static_tracepoint_spec, watch_command_1)
3400 (watch_maybe_just_location, ep_parse_optional_if_clause)
3401 (catch_fork_command_1, catch_exec_command_1)
3402 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
3403 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
3404 (SUBDIR_CLI_SRCS): Add cli-utils.c.
3405 (HFILES_NO_SRCDIR): Add cli-utils.h.
3406 (cli-utils.o): New target.
3408 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3410 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
3411 before calling discard_all_inferiors.
3413 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
3415 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
3416 (struct builtin_opencl_type): Remove.
3417 (builtin_opencl_type): Change return type to "struct type **".
3418 (lookup_opencl_vector_type): Update caller.
3419 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
3420 (build_opencl_types): Install plain array of "struct type *"
3421 instead of "struct builtin_opencl_type".
3423 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3424 Ulrich Weigand <uweigand@de.ibm.com>
3426 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
3427 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
3428 (struct arm_linux_hwbp_cap): New type.
3429 (arm_linux_get_hwbp_cap): New function.
3430 (arm_linux_get_hw_breakpoint_count): Likewise.
3431 (arm_linux_get_hw_watchpoint_count): Likewise.
3432 (arm_linux_can_use_hw_breakpoint): Likewise.
3433 (arm_hwbp_type): New type.
3434 (arm_hwbp_control_t): Likewise.
3435 (struct arm_linux_hw_breakpoint): Likewise.
3436 (struct arm_linux_thread_points): Likewise.
3437 (arm_threads): New global variable.
3438 (arm_linux_find_breakpoints_by_tid): New function.
3439 (arm_hwbp_control_initialize): Likewise.
3440 (arm_hwbp_control_is_enabled): Likewise.
3441 (arm_hwbp_control_disable): Likewise.
3442 (arm_linux_hw_breakpoint_initialize): Likewise.
3443 (arm_linux_get_hwbp_type): Likewise.
3444 (arm_linux_hw_watchpoint_initialize): Likewise.
3445 (arm_linux_hw_breakpoint_equal): Likewise.
3446 (arm_linux_insert_hw_breakpoint1): Likewise.
3447 (arm_linux_remove_hw_breakpoint1): Likewise.
3448 (arm_linux_insert_hw_breakpoint): Likewise.
3449 (arm_linux_remove_hw_breakpoint): Likewise.
3450 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
3451 (arm_linux_insert_watchpoint): Likewise.
3452 (arm_linux_remove_watchpoint): Likewise.
3453 (arm_linux_stopped_data_address): Likewise.
3454 (arm_linux_stopped_by_watchpoint): Likewise.
3455 (arm_linux_watchpoint_addr_within_range): Likewise.
3456 (arm_linux_new_thread): Likewise.
3457 (arm_linux_thread_exit): Likewise.
3458 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
3459 related target callbacks. Register arm_linux_new_thread and
3460 arm_linux_thread_exit.
3461 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
3462 * arm-tdep.c (arm_pc_is_thumb): Make global.
3463 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
3465 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
3467 * breakpoint.c (update_watchpoint): Do not attempt to recreate
3468 per-frame locations while within a function epilogue.
3470 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
3472 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
3473 to GNU coding standards.
3475 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
3477 Allow use of mingw native on Windows 95 OS.
3478 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
3479 (ser_windows_close): Only call CancelIo if function exists.
3480 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
3481 to check for existence of CancelIo function in kernel32 DLL.
3483 2011-02-21 Hui Zhu <teawater@gmail.com>
3485 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3486 * ax-gdb.c (gen_printf_expr_callback): New function.
3487 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3488 * ax-general.c (ax_memcpy): New function.
3489 (ax_print): Handle "printf".
3491 * ax.h (ax_memcpy): Forward declare.
3492 * common/ax.def (invalid2): Removed.
3493 (printf): New entry.
3494 * printcmd.c (printcmd.h): New include.
3495 (string_printf): New function.
3496 (ui_printf): Removed.
3497 (printf_command): Remove static. Call string_printf.
3498 (eval_command): Call string_printf.
3499 * printcmd.h: New file.
3500 * tracepoint.c (validate_actionline,
3501 encode_actions_1): handle printf_command.
3503 2011-02-19 Michael Snyder <msnyder@vmware.com>
3505 * reverse.c (delete_one_bookmark): Argument is now bookmark
3506 id rather than pointer to bookmark struct.
3507 (delete_bookmark_command): Use get_number_or_range.
3508 (goto_bookmark_command): Parse with get_number instead of strtoul.
3509 (bookmark_1): New function. Print info for one bookmark.
3510 (bookmarks_info): Use get_number_or_range and bookmark_1.
3512 2011-02-18 Michael Snyder <msnyder@vmware.com>
3514 * thread.c (info_threads_command): Re-implement using
3515 get_number_or_range.
3516 (thread_apply_command): Ditto.
3518 2011-02-18 Tom Tromey <tromey@redhat.com>
3520 * common/ax.def: New file.
3521 * ax.h (enum agent_op): Use ax.def.
3522 * ax-general.c (aop_map): Use ax.def.
3524 2011-02-18 Tom Tromey <tromey@redhat.com>
3526 * ax-general.c (aop_map): Add pick and rot.
3527 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
3528 <DW_OP_rot>: Implement.
3529 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
3531 * ax-general.c (ax_pick): New function.
3533 2011-02-18 Tom Tromey <tromey@redhat.com>
3535 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
3537 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3538 Tom Tromey <tromey@redhat.com>
3540 * cp-support.c (make_symbol_overload_list_namespace): Do not call
3541 make_symbol_overload_list_block with NULL BLOCK.
3542 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
3544 2011-02-18 Pedro Alves <pedro@codesourcery.com>
3546 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
3547 * breakpoint.h (get_number_or_range): Declare.
3548 * printcmd.c (ALL_DISPLAYS): Declare.
3549 (delete_display): Reimplement taking a display pointer.
3550 (undisplay_command): Accept a range of displays to delete, using
3551 get_number_or_range.
3553 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3555 * c-valprint.c (c_val_print): Add embedded_offset to address
3556 for arrays of unspecified length.
3557 * p-valprint.c (pascal_val_print): Likewise.
3559 2011-02-18 Yao Qi <yao@codesourcery.com>
3561 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
3562 (arm_process_displaced_insn): .. here. Remove parameter INSN.
3563 (thumb_process_displaced_insn): New.
3564 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
3565 call to arm_process_displaced_insn.
3566 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
3568 2011-02-17 Tom Tromey <tromey@redhat.com>
3570 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
3571 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
3572 compile_dwarf_to_ax. No longer static. Call
3573 dwarf2_compile_cfa_to_ax.
3574 (locexpr_tracepoint_var_ref): Update.
3575 (loclist_tracepoint_var_ref): Update.
3576 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
3577 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
3578 argument; add 'gdbarch' and 'pc'.
3579 (dwarf2_compile_cfa_to_ax): New function.
3580 (dwarf2_frame_cache): Update.
3582 2011-02-17 Joel Brobecker <brobecker@adacore.com>
3584 * ada-lang.c (ada_type_of_array): Fix the size of the array
3585 in the case of an unconstrained packed array.
3587 2011-02-17 Yao Qi <yao@codesourcery.com>
3589 * common/Makefile.in: Add more targets for make.
3591 2011-02-16 Tom Tromey <tromey@redhat.com>
3593 * dwarf2loc.c (unimplemented): Fix typo.
3595 2011-02-16 Tom Tromey <tromey@redhat.com>
3597 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
3598 (compile_dwarf_to_ax) <default>: Use unimplemented.
3599 <DW_OP_deref>: Update.
3600 (disassemble_dwarf_expression): Update.
3601 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
3602 (decode_locdesc): Update.
3603 * dwarf2expr.h (dwarf_stack_op_name): Update.
3605 2011-02-16 Tom Tromey <tromey@redhat.com>
3607 * ax.h (struct aop_map) <name>: Now const.
3609 2011-02-16 Tom Tromey <tromey@redhat.com>
3611 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
3614 2011-02-16 Yao Qi <yao@codesourcery.com>
3616 * infrun.c (get_displaced_step_closure_by_addr): New.
3617 * inferior.h: Declare it.
3618 * arm-tdep.c: (arm_pc_is_thumb): Call
3619 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
3622 2011-02-16 Pedro Alves <pedro@codesourcery.com>
3623 Jan Kratochvil <jan.kratochvil@redhat.com>
3626 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
3628 2011-02-16 Pedro Alves <pedro@codesourcery.com>
3629 Jan Kratochvil <jan.kratochvil@redhat.com>
3631 * value.c (value_contents_copy_raw): Extend describing comment.
3632 Assert that the destination contents we're overwriting are wholly
3634 (value_contents_copy): Extend describing comment.
3636 2011-02-16 Pedro Alves <pedro@codesourcery.com>
3637 Jan Kratochvil <jan.kratochvil@redhat.com>
3639 * value.c (value_available_contents_eq): Remove redundant local
3640 variables. Fix available contents comparision.
3641 * value.h (value_available_contents_eq): Extend describing
3644 2011-02-16 Yao Qi <yao@codesourcery.com>
3646 * thread.c (info_threads_command): Add missing i18n markup and remove
3649 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
3651 * breakpoint.c (longjmp_names): New variable.
3652 (struct breakpoint_objfile_data): New type.
3653 (breakpoint_objfile_key): New variable.
3654 (msym_not_found): New variable.
3655 (msym_not_found_p): New predicate.
3656 (get_breakpoint_objfile_data): New function.
3657 (create_overlay_event_breakpoint): Check per-objfile cache for
3659 (create_longjmp_master_breakpoint): Likewise.
3660 (create_std_terminate_master_breakpoint): Likewise.
3661 (create_exception_master_breakpoint): Likewise.
3662 (_initialize_breakpoint): Register per-objfile data key.
3664 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
3666 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
3668 (create_longjmp_master_breakpoint): Loop over longjmp names.
3669 (create_std_terminate_master_breakpoint): Const-propagate parameter
3671 (update_breakpoints_after_exec): Adjust.
3672 (breakpoint_re_set): Adjust.
3674 2011-02-15 Michael Snyder <msnyder@vmware.com>
3676 * thread.c (info_threads_command): Process arg as thread id,
3677 or list of thread ids.
3678 (thread_find_command): New command.
3679 (_initialize_thread): Document argument for info threads.
3680 Document 'thread find' command.
3681 * NEWS: Document new command "thread find".
3683 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3685 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
3686 * aclocal.m4: Regenerated with aclocal-1.11.1.
3687 * common/configure: Regenerate with autoconf-2.64.
3689 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
3691 * opencl-lang.c (build_opencl_types): Set the size of the built-in
3692 bool data type to a size of one byte.
3694 2011-02-15 Pedro Alves <pedro@codesourcery.com>
3695 Jan Kratochvil <jan.kratochvil@redhat.com>
3697 * target.c (memory_xfer_live_readonly_partial): Document where to
3698 look for interface description.
3700 2011-02-15 Yao Qi <yao@codesourcery.com>
3703 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
3704 order to store PC value on stack instead of text section.
3706 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
3708 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
3709 the EFP register set size.
3710 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
3711 data from the VMX register.
3712 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
3713 and write data from/to the VMX register.
3715 2011-02-14 Michael Snyder <msnyder@vmware.com>
3717 * command.h (enum command_class): New class 'no_set_class', for
3718 "show" commands without a corresponding "set" command.
3719 * value.c (_initialize_values): Use 'no_set_class' for "show values".
3720 * copying.c (_initialize_copying): Ditto for "show copying" and
3722 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
3724 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
3725 which there is no corresponding "set" command (eg. "show copying").
3727 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3728 Jan Kratochvil <jan.kratochvil@redhat.com>
3730 * exec.c (section_table_available_memory): Change `len' parameter
3732 * exec.h (section_table_available_memory): Ditto.
3733 * value.h (read_value_memory): Rename the `offset' parameter to
3736 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3737 Jan Kratochvil <jan.kratochvil@redhat.com>
3739 * memrange.c (compare_mem_ranges): Mention sort order in
3741 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
3742 * tracepoint.c (traceframe_available_memory): Extend comment to
3743 mention what happens to RESULT when the target does not support
3746 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3747 Jan Kratochvil <jan.kratochvil@redhat.com>
3749 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
3752 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3754 * value.c (value_bits_valid, value_bits_synthetic_pointer):
3755 No longer handle NULL values.
3757 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3759 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
3760 * value.c: Include "exceptions.h".
3761 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
3763 * cp-abi.c: Include gdb_assert.h.
3764 (baseclass_offset): Add `embedded_offset' and `val' parameters.
3765 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
3767 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
3768 parameters. No longer returns -1 on error.
3769 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
3771 * cp-valprint.c: Include exceptions.h.
3772 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
3773 the baseclass_offset. Handle unavailable base classes. Use
3774 val_print_invalid_address.
3775 * p-valprint.c: Include exceptions.h.
3776 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
3777 when fetching the baseclass_offset. No longer expect
3778 baseclass_offset returning -1. Handle unavailable base classes.
3779 Use val_print_invalid_address.
3780 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
3781 `valaddr' parameter, and change its type to gdb_byte pointer. Add
3782 `embedded_offset' and `val' parameters. Adjust.
3783 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
3784 parameter, and change its type to gdb_byte pointer. Add
3785 `embedded_offset' and `val' parameters. Adjust. No longer expect
3786 baseclass_offset returning -1.
3787 (value_dynamic_cast): Use value_contents_for_printing rather than
3788 value_contents. Adjust.
3789 (search_struct_field): No longer expect baseclass_offset returning
3791 (search_struct_method): If reading memory from the target is
3792 necessary, wrap it in a new value to pass to baseclass_offset. No
3793 longer expect baseclass_offset returning -1.
3794 (find_method_list): No longer expect baseclass_offset returning
3795 -1. Use value_contents_for_printing rather than value_contents.
3796 * valprint.c (val_print_invalid_address): New function.
3797 * valprint.h (val_print_invalid_address): Declare.
3798 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
3799 and `val' parameters. No longer expect baseclass_offset returning
3801 * gnu-v2-abi.c: Include "exceptions.h".
3802 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
3803 parameters. Handle unavailable memory. Recurse through
3804 gnuv2_baseclass_offset directly, rather than through
3805 baseclass_offset. No longer returns -1 on not found, instead
3807 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
3808 `val' parameters. Adjust.
3810 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3812 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
3813 almost but not quite adjacent.
3815 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3817 * value.h (value_entirely_available): Declare.
3818 * value.c (value_entirely_available): New function.
3819 * c-valprint.c (c_value_print): Don't try fetching the pointer's
3820 real type if the pointer is unavailable.
3822 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3824 * valops.c (value_repeat): Use read_value_memory instead of
3827 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3829 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
3830 * value.c (value_contents_copy_raw, value_contents_copy): New
3832 (value_primitive_field): Use value_contents_copy_raw instead of
3834 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
3836 (value_array, value_slice): Ditto.
3837 * valarith.c (value_subscripted_rvalue): Use
3838 value_contents_copy_raw instead of memcpy.
3840 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3842 <unavailable> references.
3844 * valops.c (get_value_at): Use value_from_contents_and_address,
3845 avoiding read_memory.
3847 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3849 * c-valprint.c (c_val_print): Print a string with unavailable
3850 contents as an array.
3852 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3854 * value.h (unpack_bits_as_long): Delete declaration.
3855 (unpack_value_bits_as_long): Declare.
3856 (unpack_value_field_as_long): Declare.
3857 (value_field_bitfield): Declare.
3858 * value.c (unpack_bits_as_long): Rename to...
3859 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
3860 value parameters. Return the extracted result in a new output
3861 parameter. If the value contents are unavailable, return false,
3862 otherwise return true.
3863 (unpack_value_bits_as_long): New.
3864 (unpack_field_as_long): Rename to...
3865 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
3866 Add embedded_offset and value parameters. Return the extracted
3867 result in a new output parameter. If the value contents are
3868 unavailable, return false, otherwise return true.
3869 (unpack_value_field_as_long): New.
3870 (unpack_field_as_long_1): New.
3871 (unpack_field_as_long): Reimplement as wrapper around
3872 unpack_value_field_as_long_1.
3873 (value_field_bitfield): New function.
3874 * valops.c (value_fetch_lazy): When fetching a bitfield, use
3875 unpack_value_bits_as_long. Mark the value as unavailable, if it
3877 * jv-valprint.c (java_print_value_fields): Use
3878 value_field_bitfield.
3879 * p-valprint.c (pascal_object_print_value_fields): Use
3880 value_field_bitfield.
3881 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
3883 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3885 * value.c (get_internalvar_integer): Also return the int value of
3886 TYPE_CODE_INT INTERNALVAR_VALUE values.
3887 (set_internalvar): Don't special case TYPE_CODE_INT.
3889 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3891 * value.c (struct internalvar) <enum internalvar_kind>: Remove
3892 INTERNALVAR_POINTER.
3894 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
3895 (set_internalvar): Remove special TYPE_CODE_PTR handling.
3896 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
3898 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3900 * value.h (value_available_contents_eq): Declare.
3901 * value.c (find_first_range_overlap): New function.
3902 (value_available_contents_eq): New function.
3903 * valprint.c (val_print_array_elements): Use
3904 value_available_contents_eq.
3905 * ada-valprint.c (val_print_packed_array_elements): Use
3906 value_available_contents_eq.
3907 * jv-valprint.c (java_value_print): Use
3908 value_available_contents_eq.
3910 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3912 * target.c (target_read_live_memory): New function.
3913 (memory_xfer_live_readonly_partial): New.
3914 (memory_xfer_partial): If reading from a traceframe, fallback to
3915 reading unavailable read-only memory from read-only regions of
3917 * tracepoint.c (disconnect_tracing): Adjust.
3918 (set_current_traceframe): New, factored out from
3919 set_traceframe_number.
3920 (set_traceframe_number): Reimplement to only change the traceframe
3921 number on the GDB side.
3922 (do_restore_current_traceframe_cleanup): Adjust.
3923 (make_cleanup_restore_traceframe_number): New.
3924 (cur_traceframe_number): New global.
3925 (tfile_open): Set cur_traceframe_number to no traceframe.
3926 (set_tfile_traceframe): New function.
3927 (tfile_trace_find): If looking up a traceframe using any method
3928 other than by number, make sure the current tfile traceframe
3929 matches gdb's current traceframe. Update the current tfile
3930 traceframe if the lookup succeeded.
3931 (tfile_fetch_registers, tfile_xfer_partial)
3932 (tfile_get_trace_state_variable_value): Make sure the remote
3933 traceframe matches gdb's current traceframe.
3934 * remote.c (remote_traceframe_number): New global.
3935 (remote_open_1): Set it to -1.
3936 (set_remote_traceframe): New function.
3937 (remote_fetch_registers, remote_store_registers)
3938 (remote_xfer_memory, remote_xfer_partial)
3939 (remote_get_trace_state_variable_value): Make sure the remote
3940 traceframe matches gdb's current traceframe.
3941 (remote_trace_find): If looking up a traceframe using any method
3942 other than by number, make sure the current remote traceframe
3943 matches gdb's current traceframe. Update the current remote
3944 traceframe if the lookup succeeded.
3945 * infrun.c (fetch_inferior_event): Adjust.
3946 * tracepoint.h (set_current_traceframe): Declare.
3947 (get_traceframe_number, set_traceframe_number): Add describing
3950 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3952 Mark pieces of values as unavailable if the corresponding memory
3955 * valops.c: Include tracepoint.h.
3956 (value_fetch_lazy): Use read_value_memory.
3957 (read_value_memory): New.
3958 * value.h (read_value_memory): Declare.
3959 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
3960 * exec.c (section_table_available_memory): New function.
3961 * exec.h (section_table_available_memory): Declare.
3963 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3965 * Makefile.in (SFILES): Add memrange.c.
3966 (HFILES_NO_SRCDIR): Add memrange.h.
3967 (COMMON_OBS): Add memrange.o.
3968 * memrange.c: New file.
3969 * memrange.h: New file.
3970 * tracepoint.c: Include memrange.h.
3971 (struct mem_range): Delete.
3972 (mem_range_s): Delete.
3973 (traceframe_available_memory): New function.
3974 * tracepoint.h (traceframe_available_memory): Declare.
3976 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3978 * target.h (struct traceframe_info): Forward declare.
3979 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
3980 (struct target_ops) <to_traceframe_info>: New field.
3981 (target_traceframe_info): New.
3982 * target.c (update_current_target): Inherit and default
3984 * remote.c (PACKET_qXfer_traceframe_info): New.
3985 (remote_protocol_features): Register qXfer:traceframe-info:read.
3986 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
3987 (remote_traceframe_info): New.
3988 (init_remote_ops): Install it.
3989 (_initialize_remote): Install "set/show remote traceframe-info"
3991 * tracepoint.h (parse_traceframe_info): Declare.
3992 * tracepoint.c (struct mem_range): New.
3993 (mem_range_s): New typedef.
3994 (struct traceframe_info): New.
3995 (traceframe_info): New global.
3996 (free_traceframe_info): New function.
3997 (clear_traceframe_info): New function.
3998 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
4000 (build_traceframe_info): New function.
4001 (tfile_traceframe_info): New function.
4002 (init_tfile_ops): Install tfile_traceframe_info.
4003 (traceframe_info_start_memory, free_result): New functions.
4004 (memory_attributes, traceframe_info_elements): New globals.
4005 (parse_traceframe_info, get_traceframe_info): New functions.
4006 * features/traceframe-info.dtd: New file.
4007 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
4009 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4011 Base support for <unavailable> value contents.
4013 * value.h (value_bytes_available): Declare.
4014 (mark_value_bytes_unavailable): Declare.
4015 * value.c (struct range): New struct.
4016 (range_s): New typedef.
4017 (ranges_overlap): New function.
4018 (range_lessthan): New function.
4019 (ranges_contain_p): New function.
4020 (struct value) <unavailable>: New field.
4021 (value_bytes_available): New function.
4022 (mark_value_bytes_unavailable): New function.
4023 (require_not_optimized_out): Constify parameter.
4024 (require_available): New function.
4025 (value_contents_all, value_contents): Require all bytes be
4027 (value_free): Free `unavailable'.
4028 (value_copy): Copy `unavailable'.
4029 * valprint.h (val_print_unavailable): Declare.
4030 * valprint.c (valprint_check_validity): Rename `offset' parameter
4031 to `embedded_offset'. If printing a scalar, check whether the
4032 value chunk is available.
4033 (val_print_unavailable): New.
4034 (val_print_scalar_formatted): Check whether the value is
4036 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
4037 pretty-printing unavailable values.
4039 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4041 Fix const/volatile qualifiers of C++ types, PR c++/12328.
4042 * c-typeprint.c (c_type_print_args): Update the function comment. New
4043 variable param_type, initialize it. Remove const/volatile qualifiers
4044 for language_cplus and !show_artificial. Use param_type.
4046 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4048 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
4049 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
4050 * symtab.h (struct symtab) <next>: Comment extension.
4052 2011-02-12 Yao Qi <yao@codesourcery.com>
4054 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
4056 2011-02-11 Yao Qi <yao@codesourcery.com>
4058 * common/Makefile.in: Add copyright header.
4060 2011-02-11 Pedro Alves <pedro@codesourcery.com>
4062 * infrun.c (proceed): Move switching out and in of tfind mode from
4064 (fetch_inferior_event): ... to here.
4066 2011-02-11 Yao Qi <yao@codesourcery.com>
4068 * Makefile.in: Remove signals.o from COMMON_OBS. Link
4070 * configure.ac: Add common to sub dir.
4071 * configure: Regenerate.
4073 2011-02-11 Yao Qi <yao@codesourcery.com>
4077 * common/Makefile.in: New.
4078 * common/configure.ac: New.
4079 * common/aclocal.m4: New.
4080 * common/configure: Generate.
4082 2011-02-10 Pedro Alves <pedro@codesourcery.com>
4084 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
4085 side of the parenthesis.
4088 2010-07-13 Jakub Jelinek <jakub@redhat.com>
4089 * vec.h (VEC_block_remove): Fix comment.
4091 2011-02-08 Michael Snyder <msnyder@vmware.com>
4093 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
4095 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4097 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
4098 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
4101 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4104 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
4106 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
4107 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
4109 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4111 * dwarf2read.c (read_subroutine_type): Set special calling
4112 convention flag for functions compiled by IBM XL C for OpenCL.
4113 * ppc-sysv-tdep.c: Include "dwarf2.h"
4114 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
4116 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
4117 IBM OpenCL vector types calling convention.
4118 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
4119 (ppc_sysv_abi_broken_return_value): Likewise.
4120 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
4121 types calling convention.
4122 (ppc64_sysv_abi_return_value): Likewise.
4123 * spu-tdep.c: Include "dwarf2.h"
4124 (spu_return_value): Implement IBM OpenCL vector types calling
4127 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4129 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
4130 correct ABI for AltiVec vector arguments.
4132 2011-02-07 Pedro Alves <pedro@codesourcery.com>
4134 * valprint.c (val_print): Extend comment.
4135 * ada-valprint.c (ada_valprint): Rewrite comment deferring
4136 interface explanation to val_print.
4137 (ada_val_print_array): Adjust comment to current interface.
4138 (print_field_values): Adjust comment to current interface.
4139 * c-valprint.c (c_val_print): Rewrite comment deferring interface
4140 explanation to val_print.
4141 * f-valprint.c (f_val_print): Ditto.
4142 * jv-valprint.c (java_val_print): Ditto.
4143 * m2-valprint.c (m2_val_print): Ditto.
4144 * p-valprint.c (pascal_val_print): Ditto.
4146 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
4148 * breakpoint.c (parse_breakpoint_sals): Fix description.
4150 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
4151 Oguz Kayral <oguzkayral@gmail.com>
4153 * python/py-inferior.c (python_on_normal_stop): New function.
4154 (python_on_resume): New function.
4155 (python_inferior_exit): New function.
4156 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
4157 inferior_exit observers.
4158 * python/py-evtregistry.c: New file.
4159 * python/py-threadevent.c : New file.
4160 * python/py-event.c: New file.
4161 * python/py-evts.c: New file.
4162 * python/py-continueevent.c: New file.
4163 * python/py-bpevent.c: New file.
4164 * python/py-signalevent.c: New file.
4165 * python/py-exetiedevent.c: New file.
4166 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
4167 Move struct breakpoint_object from here...
4168 * python/python-internal.h: ... to here.
4169 * python/py-event.h: New file.
4170 * python/py-events.h: New file.
4171 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
4172 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
4173 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
4174 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
4175 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
4176 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
4177 Add build rules for all the above.
4179 2011-02-04 Tom Tromey <tromey@redhat.com>
4181 * dwarf2read.c (dwarf2_section_empty_p): New function.
4182 (dwarf2_read_section): Use dwarf2_section_empty_p.
4183 (dwarf2_section_size): New function.
4184 (dwarf2_get_section_info): Unconditionally read section.
4185 (dwarf2_read_index): Use dwarf2_section_empty_p.
4186 (partial_read_comp_unit_head): Use dwarf2_section_size.
4187 (dwarf2_symbol_mark_computed): Likewise.
4189 2011-02-04 David Daney <ddaney@caviumnetworks.com>
4191 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
4193 2011-02-04 David Daney <ddaney@caviumnetworks.com>
4195 * mips-linux-tdep.c: Include xml-syscall.h.
4196 (mips_linux_get_syscall_number): New function.
4197 (mips_linux_init_abi): Add calls to
4198 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
4199 * data-directory/Makefile.in (SYSCALLS_FILES): Add
4200 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
4201 * syscalls/mips-n32-linux.xml: New file.
4202 * syscalls/mips-n64-linux.xml: New file.
4203 * syscalls/mips-o32-linux.xml: New file.
4205 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4207 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
4208 Complain about inverted range entries.
4209 (dwarf2_record_block_ranges): Likewise.
4211 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4214 * breakpoint.c (update_watchpoint): Fix name of the
4215 update_global_location_list function.
4216 (print_one_breakpoint): Fix typo.
4217 (_initialize_breakpoint): Remove extra space in hbreak help
4219 * breakpoint.h (struct bp_location) <length>: Fix field
4222 2011-02-04 Pedro Alves <pedro@codesourcery.com>
4224 * regcache.c (registers_changed_ptid): Don't explictly always
4225 clear `current_regcache'. Only clear current_thread_ptid and
4226 current_thread_arch when PTID matches. Only reinit the frame
4227 cache if PTID matches the current inferior_ptid. Move alloca(0)
4229 (registers_changed): ... here.
4231 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
4233 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
4234 starts with __stack_chk_guard as stack guard symbol.
4236 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
4238 * disasm.c (compare_lines): Handle the end of sequence markers
4239 within the line table to better support disassembling over
4240 compilation unit boundaries.
4242 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4244 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
4245 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
4246 implementation even if no symbols are available.
4247 (thumb_analyze_prologue): Update call to skip_prologue_function.
4248 (arm_analyze_prologue): Likewise.
4250 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4252 * arm-tdep.c: Include "observer.h".
4253 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
4254 (arm_exidx_data_key): New static variable.
4255 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
4256 (struct arm_exidx_data): Likewise.
4257 (arm_exidx_data_free): New function.
4258 (arm_compare_exidx_entries): Likewise.
4259 (arm_obj_section_from_vma): Likewise.
4260 (arm_exidx_new_objfile): Likewise.
4261 (arm_find_exidx_entry): Likewise.
4262 (arm_exidx_fill_cache): Likewise.
4263 (arm_exidx_unwind_sniffer): Likewise.
4264 (arm_exidx_unwind): New global variable.
4265 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
4266 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
4267 observer. Register arm_exidx_data_key as objfile data.
4269 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4271 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
4272 due to accessing uninitialized variable. Fix indentation.
4274 2011-02-02 Pedro Alves <pedro@codesourcery.com>
4276 * c-valprint.c (c_value_print): When doing virtual base pointer
4277 adjustment, create a new value with adjusted contents rather than
4278 changing the contents of the value being printed (and getting it
4281 2011-02-02 Pedro Alves <pedro@codesourcery.com>
4283 * xml-support.c (xml_find_attribute): New.
4284 (xinclude_start_include): Use it.
4285 * xml-support.h (xml_find_attribute): Declare.
4286 * memory-map.c (memory_map_start_memory)
4287 (memory_map_start_property): Use xml_find_attribute.
4288 * osdata.c (osdata_start_osdata, osdata_start_column): Use
4290 * remote.c (start_thread): Use xml_find_attribute.
4291 * solib-target.c (library_list_start_segment)
4292 (library_list_start_section, library_list_start_library)
4293 (library_list_start_list): Use xml_find_attribute.
4294 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
4295 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
4296 (tdesc_start_field): Use xml_find_attribute.
4298 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
4300 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
4301 (BUILD_OCL_VTYPES): Update.
4303 2011-02-02 Joel Brobecker <brobecker@adacore.com>
4305 * configure.ac: Work around non-GNU sed limitation when computing
4306 python version number.
4307 * configure: Regenerate.
4309 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4311 Fix debug printing of TYPE_INSTANCE.
4312 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
4313 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
4315 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4317 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
4318 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
4319 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
4320 * ada-operator.inc: Rename the file to ...
4321 * ada-operator.def: ... here, wrap all the entries by macro OP.
4322 * expprint.c (op_name_standard): Remove all the entries. Include
4323 "std-operator.def" instead.
4324 * expression.h (enum exp_opcode): Include "std-operator.def" and
4325 "ada-operator.def". Move all the entries ...
4326 * std-operator.def: ... here, wrap all the entries by macro OP.
4328 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
4330 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
4331 * breakpoint.c (remove_jit_event_breakpoints): New function.
4332 * jit.c (jit_descriptor_addr): Delete.
4333 (registering_code): Delete.
4334 (clear_int): Delete.
4335 (jit_inferior_data): New variable.
4336 (struct jit_inferior_data): New type.
4337 (get_jit_inferior_data): New function.
4338 (jit_inferior_data_cleanup): New function.
4339 (jit_read_descriptor): Adjust.
4340 (jit_register_code): Adjust.
4341 (jit_breakpoint_re_set_internal): New function; move code here ...
4342 (jit_inferior_init): ... from here.
4343 (jit_breakpoint_re_set): Adjust.
4344 (jit_reset_inferior_data_and_breakpoints): New function.
4345 (jit_inferior_created_observer): Adjust.
4346 (jit_inferior_exit_hook): Adjust.
4347 (jit_executable_changed_observer): New function.
4348 (jit_event_handler): Adjust.
4349 (_initialize_jit): Adjust.
4351 2011-01-31 Michael Snyder <msnyder@vmware.com>
4353 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
4356 2011-01-31 Tom Tromey <tromey@redhat.com>
4359 * python/python.c (execute_gdb_command): Call
4360 prevent_dont_repeat.
4361 * top.c (suppress_dont_repeat): New global.
4362 (dont_repeat): Use it.
4363 (prevent_dont_repeat): New function.
4364 * command.h (prevent_dont_repeat): Declare.
4366 2011-01-31 Tom Tromey <tromey@redhat.com>
4368 * infcmd.c (finish_backward): Use breakpoint_set_silent.
4369 * python/py-breakpoint.c (bppy_set_silent): Use
4370 breakpoint_set_silent.
4371 (bppy_set_thread): Use breakpoint_set_thread.
4372 (bppy_set_task): Use breakpoint_set_task.
4373 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
4374 (breakpoint_set_task): Declare.
4375 (make_breakpoint_silent): Remove.
4376 * breakpoint.c (breakpoint_set_silent): New function.
4377 (breakpoint_set_thread): Likewise.
4378 (breakpoint_set_task): Likewise.
4379 (make_breakpoint_silent): Remove.
4381 2011-01-31 Tom Tromey <tromey@redhat.com>
4383 * breakpoint.h (user_breakpoint_p): Declare.
4384 * breakpoint.c (user_breakpoint_p): New function.
4385 (breakpoint_1): Use it.
4386 (save_breakpoints): Likewise.
4388 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4390 * configure.ac: Add handling of Python distribution on Windows.
4391 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
4392 sysconfig variables are not defined, then do not use them.
4393 On Windows, if LIBPL is not defined, then use prefix + '/libs'
4394 instead. On Windows, return all paths using forward-slashes
4395 rather than backslashes.
4397 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4399 * configure.ac: Remove fallback behavior for building
4400 against Python. Remove tweaking of Python include path.
4401 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
4402 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
4403 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
4404 Always restore CPPFLAGS and LIBS after linking test.
4405 * configure: Regenerated.
4406 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
4407 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
4408 * python/python-internal.h: Adjust includes of Python .h files.
4410 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4412 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
4415 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4417 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
4420 2011-01-31 Yao Qi <yao@codesourcery.com>
4422 * arm-linux-nat.c: Update calls to regcache_register_status
4423 instead of regcache_valid_p.
4424 * aix-thread.c: Likewise.
4425 * i386gnu-nat.c: Likewise.
4427 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4430 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
4431 touching TYPE_FIELD_ARTIFICIAL.
4433 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
4435 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
4438 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4440 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
4441 selected, don't try iterating over the traceframe's blocks.
4442 (tfile_has_stack): If there's no traceframe selected, then there's
4444 (tfile_has_registers): If there's no traceframe selected, then
4445 there's no registers.
4447 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4449 * target.c (memory_xfer_partial): No need to restore shadows if we
4450 haven't read anything.
4452 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4454 * mips-tdep.c (mips_print_register): Use get_frame_register_value
4455 and val_print_scalar_formatted.
4457 2011-01-27 Pedro Alves <pedro@codesourcery.com>
4459 * tracepoint.c (tfile_read): New.
4460 (tfile_open): Use it.
4461 (tfile_get_traceframe_address): Use it.
4462 (tfile_trace_find): Use it.
4463 (walk_blocks_callback_func): New typedef.
4464 (match_blocktype): New function.
4465 (traceframe_walk_blocks): New function.
4466 (traceframe_find_block_type): New function.
4467 (tfile_fetch_registers, tfile_xfer_partial)
4468 (tfile_get_trace_state_variable_value): Use
4469 traceframe_find_block_type and tfile_read.
4471 2011-01-26 Kevin Buettner <kevinb@redhat.com>
4473 * remote-mips.c: Add internationalization mark ups. Remove
4474 trailing \n from already marked up strings.
4476 2011-01-26 Tom Tromey <tromey@redhat.com>
4478 * python/py-prettyprint.c (print_string_repr): Clear
4479 'addressprint' option when calling val_print_string.
4480 (print_children): Handle Val_pretty_default. Clear 'addressprint'
4481 option when calling val_print_string.
4483 2011-01-26 Tom Tromey <tromey@redhat.com>
4485 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
4487 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
4489 (gdb_py_longest, gdb_py_ulongest): New typedefs.
4490 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
4491 (gdb_py_long_as_ulongest): New defines.
4492 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
4493 (gdb_py_int_as_long): Declare.
4494 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
4495 GDB_PY_LL_ARG, gdb_py_object_from_longest.
4496 (valpy_long): Add comment.
4497 * python/py-utils.c (get_addr_from_python): Use
4498 gdb_py_long_as_ulongest. Handle overflow properly.
4499 (gdb_py_object_from_longest): New function.
4500 (gdb_py_object_from_ulongest): Likewise.
4501 (gdb_py_int_as_long): Likewise.
4502 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
4503 * python/py-symtab.c (salpy_get_pc): Use
4504 gdb_py_long_from_ulongest.
4505 (salpy_get_line): Use PyInt_FromLong.
4506 * python/py-param.c (set_parameter_value): Use
4508 * python/py-lazy-string.c (stpy_get_address): Use
4509 gdb_py_long_from_ulongest.
4510 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
4511 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
4512 * python/py-breakpoint.c (bppy_set_thread): Use
4514 (bppy_set_task): Likewise.
4515 (bppy_set_ignore_count): Likewise.
4516 (bppy_set_hit_count): Likewise.
4517 * python/py-block.c (blpy_get_start): Use
4518 gdb_py_object_from_ulongest.
4519 (blpy_get_end): Likewise.
4520 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
4522 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
4525 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
4526 * gdb/solib.c (solib_read_symbols): Check for addr_low in
4527 equality test for objfile, initialize addr_low if needed.
4529 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4531 * tui/tui-regs.c (tui_register_format): Remove dead code.
4533 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4535 * printcmd.c (print_formatted): Use val_print_scalar_formatted
4536 instead of print_scalar_formatted.
4537 (print_scalar_formatted): Don't handle 's' format strings here,
4538 and add an assertion that we never see such format here.
4539 * valprint.h (val_print_scalar_formatted): Declare.
4540 * valprint.c (val_print_scalar_formatted): New.
4541 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
4542 instead of print_scalar_formatted.
4543 * jv-valprint.c (java_val_print): Ditto.
4544 * p-valprint.c (pascal_val_print): Ditto.
4545 * ada-valprint.c (ada_val_print_1): Ditto.
4546 * f-valprint.c (f_val_print): Ditto.
4547 * infcmd.c (registers_info): Ditto.
4548 * m2-valprint.c (m2_val_print): Ditto.
4550 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4552 * m2-valprint.c (print_unbounded_array): Pass
4553 value_contents_for_printing rather than value_contents, to
4554 m2_print_array_contents. Also pass in the value.
4556 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4558 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
4559 (save_gdb_index_command): Switch to .gdb_index version 4.
4561 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4563 * mi/mi-main.c (get_register): Use get_frame_register_value rather
4564 than frame_register, and always pass a valid value to val_print.
4566 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4568 Centralize printing "<optimized out>".
4570 * valprint.h (val_print_optimized_out): Declare.
4571 * cp-valprint.c (cp_print_value_fields): Use
4572 val_print_optimized_out.
4573 * jv-valprint.c (java_print_value_fields): Ditto.
4574 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4575 * printcmd.c (print_formatted): Ditto.
4576 * valprint.c (valprint_check_validity): Ditto.
4577 (value_check_printable): Ditto.
4578 (val_print_optimized_out): New.
4580 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4582 * infcmd.c (default_print_registers_info): Allocate values so to
4583 never pass a NULL value to val_print.
4585 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4587 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
4588 boolean. Make sure to always pass a value that matches the
4589 contents buffer to callees. Preserve `address' for following
4591 * value.c (value_contents_for_printing_const): New.
4592 (value_address): Constify value argument.
4593 * value.h (value_contents_for_printing_const): Declare.
4594 (value_address): Constify value argument.
4596 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4598 * regcache.c (struct regcache_descr): Rename
4599 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
4600 and sizeof_cooked_register_valid_p to
4601 sizeof_cooked_register_status.
4602 (init_regcache_descr): Adjust.
4603 (struct regcache): Rename register_valid_p field to
4605 (regcache_xmalloc_1, regcache_xfree, regcache_save)
4606 (do_cooked_read): Adjust.
4607 (regcache_valid_p): Rename to ...
4608 (regcache_register_status): ... this. Adjust.
4609 (regcache_invalidate): Adjust.
4610 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
4612 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
4613 as unavailable, not valid.
4614 (regcache_dump): Adjust.
4615 * regcache.h (enum register_status): New.
4616 (regcache_register_status): Declare.
4617 (regcache_invalidate): Delete declaration.
4618 * corelow.c (get_core_registers): Adjust.
4619 * tracepoint.c (tfile_fetch_registers): Adjust.
4620 * trad-frame.c (REG_VALUE): Rename to ...
4621 (TF_REG_VALUE): ... this.
4622 (REG_UNKNOWN): Rename to ...
4623 (TF_REG_UNKNOWN): ... this.
4624 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
4625 * mi/mi-main.c (register_changed_p): Adjust.
4627 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4629 * regcache.c (struct regcache_descr): Remove outdated comment.
4630 (init_regcache_descr): Remove sizeof_raw_register_valid_p
4632 (regcache_xmalloc): Rename to ...
4633 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
4634 Allocate the regcache type accordingly.
4635 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
4636 (regcache_xfree): Asser the source is also readonly. Copy sizeof
4637 cooked registers, not raw.
4638 (regcache_dup_no_passthrough): Delete.
4639 (get_thread_arch_regcache): Use regcache_xmalloc_1.
4640 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
4641 mention obsolete write_register_bytes.
4642 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
4644 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4646 Stop remote_read_bytes from handling partial reads itself.
4648 * remote-fileio.c: Include target.h.
4649 (remote_fileio_write_bytes): Delete.
4650 (remote_fileio_func_open, remote_fileio_func_write)
4651 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
4653 (remote_fileio_func_stat): Use target_read_memory and
4654 target_write_memory.
4655 (remote_fileio_func_gettimeofday): Use target_write_memory.
4656 (remote_fileio_func_system): Use target_read_memory.
4657 * remote.c (remote_write_bytes): Make it static.
4658 (remote_read_bytes): Don't handle partial reads here.
4659 * remote.h (remote_read_bytes): Delete declaration.
4661 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4663 Simplify XML parsing a bit.
4665 * xml-support.h (gdb_xml_parse_quick): Declare.
4666 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
4667 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
4669 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
4670 gdb_xml_create_parser_and_cleanup_1.
4671 (gdb_xml_parse_quick): New.
4672 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
4673 * osdata.c (osdata_parse): Ditto.
4674 * remote.c (remote_threads_info): Ditto.
4675 * solib-target.c (solib_target_parse_libraries): Ditto.
4676 * xml-syscall.c (syscall_parse_xml): Ditto.
4677 * xml-tdesc.c (tdesc_parse_xml): Ditto.
4679 2011-01-24 Kevin Buettner <kevinb@redhat.com>
4681 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
4682 with remote-mips.o added to gdb_target_obs.
4683 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
4685 2011-01-24 Pedro Alves <pedro@codesourcery.com>
4687 * ada-valprint.c (val_print_packed_array_elements): Pass the
4688 correct struct value to val_print.
4689 (ada_val_print_1): Ditto.
4691 2011-01-24 Pedro Alves <pedro@codesourcery.com>
4693 Don't lose embedded_offset in printing routines throughout.
4695 * valprint.h (val_print_array_elements): Change prototype.
4696 * valprint.c (val_print_array_elements): Add `embedded_offset'
4697 parameter, and adjust to pass it down to val_print, while passing
4698 `valaddr' or `address' unmodified. Take embedded_offset into
4699 account when checking repetitions.
4700 * c-valprint.c (c_val_print): Pass embedded_offset to
4701 val_print_array_elements instead of adjusting `valaddr' and
4703 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
4704 embedded_offset to val_print_array_elements instead of adjusting
4706 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
4707 * p-valprint.c (pascal_val_print): Pass embedded_offset to
4708 val_print_array_elements and pascal_object_print_value_fields
4709 instead of adjusting `valaddr'.
4710 (pascal_object_print_value_fields): Add `offset' parameter, and
4712 (pascal_object_print_value): Add `offset' parameter, and adjust to
4714 (pascal_object_print_static_field): Use
4715 value_contents_for_printing/value_embedded_offset, rather than
4717 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
4718 parameter, and adjust to use it. Use
4719 value_contents_for_printing/value_embedded_offset, rather than
4721 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
4722 (ada_val_print_array): Add `offset' parameter, and adjust to use
4724 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
4725 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
4726 Instead work with offsets. Use
4727 value_contents_for_printing/value_embedded_offset, rather than
4728 value_contents. Change `defer_val_int' local type to CORE_ADDR,
4729 and use value_from_pointer to extract a target pointer, rather
4730 than value_from_longest.
4731 (print_variant_part): Add `offset' parameter. Replace
4732 `outer_valaddr' parameter by a new `outer_offset' parameter.
4733 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4734 (ada_value_print): Use
4735 value_contents_for_printing/value_embedded_offset, rather than
4737 (print_record): Add `offset' parameter, and adjust to pass it
4739 (print_field_values): Add `offset' parameter. Replace
4740 `outer_valaddr' parameter by a new `outer_offset' parameter.
4741 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4742 Use value_contents_for_printing/value_embedded_offset, rather than
4744 * d-valprint.c (dynamic_array_type): Use
4745 value_contents_for_printing/value_embedded_offset, rather than
4747 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
4748 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4749 (java_print_value_fields): Take `offset' into account. Don't
4750 re-adjust `valaddr'. Instead pass down adjusted offsets.
4751 (java_val_print): Take `embedded_offset' into account. Pass it to
4752 java_print_value_fields.
4753 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
4754 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
4755 down adjusted offsets.
4756 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
4757 (f_val_print): Take `embedded_offset' into account.
4759 2011-01-21 Joel Brobecker <brobecker@adacore.com>
4761 * inflow.c: Include "gdbcmd.h".
4762 (interactive_mode): New static global, moved here from top.c.
4763 (show_interactive_mode): New function, moved here from top.c.
4764 use gdb_has_a_terminal instead of input_from_terminal_p to
4765 determine the current mode.
4766 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
4768 (_initialize_inflow): Add the "set/show interactive-mode"
4769 commands. Moved here from top.c, after having adjusted slightly
4771 * top.c (interactive_mode, show_interactive_mode): Delete, moved
4773 (input_from_terminal_p): Remove handling of "interactive-mode"
4774 setting, moved to infow.c.
4775 (init_main): Remove creation of the "set/show interactive-mode"
4776 commands, moved to inflow.c.
4778 2011-01-19 Joel Brobecker <brobecker@adacore.com>
4780 * NEWS: Add entry for native ia64-hpux support.
4782 2011-01-19 Tom Tromey <tromey@redhat.com>
4785 * thread.c (free_thread): Free 'name'.
4786 (print_thread_info): Emit thread name. Change CLI output.
4787 (thread_name_command): New function.
4788 (do_captured_thread_select): Emit newline.
4789 (_initialize_thread): Register 'thread name' command.
4790 * target.h (struct target_ops) <to_thread_name>: New field.
4791 (target_thread_name): New macro.
4792 * target.c (update_current_target): Handle to_thread_name.
4793 * python/py-infthread.c (thpy_get_name): New function.
4794 (thpy_set_name): Likewise.
4795 (thread_object_getset): Add "name".
4796 * linux-nat.c (linux_nat_thread_name): New function.
4797 (linux_nat_add_target): Set to_thread_name.
4798 * gdbthread.h (struct thread_info) <name>: New field.
4800 2011-01-18 Joel Brobecker <brobecker@adacore.com>
4802 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
4803 (ada_val_print_1): Likewise.
4805 2011-01-18 Joel Brobecker <brobecker@adacore.com>
4807 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
4808 upper limit address is not greater than the function end address
4809 when the upper limit could not be computed using the debugging
4812 2011-01-17 Tom Tromey <tromey@redhat.com>
4814 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
4816 * utils.c: Include gdb_regex.h.
4817 (do_regfree_cleanup): New function.
4818 (make_regfree_cleanup): Likewise.
4819 (get_regcomp_error): Likewise.
4820 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
4822 2011-01-17 Tom Tromey <tromey@redhat.com>
4824 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
4827 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
4829 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
4830 for internal variables.
4831 (last_was_structop): New static variable.
4832 (COMPLETE): New token.
4833 (field_exp): New rule to group all '.' suffix handling.
4834 Add mark_struct_expression calls when approriate to be able
4835 to correctly find fields for completion.
4836 (yylex): Adapt to handle field completion and set INTVAR when
4839 2011-01-14 Yao Qi <yao@codesourcery.com>
4841 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
4842 save_reggroup, restore_reggroup and all_reggroup.
4844 2011-01-14 Joel Brobecker <brobecker@adacore.com>
4846 * ada-valprint. (ada_printchar): Use the correct type length
4847 in call to ada_emit_char.
4848 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
4850 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
4852 * solib-som.h (hpux_major_release): Declare variable here.
4853 * solib-som.c: Remove <sys/utsname.h> header.
4854 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
4855 (hpux_major_release): Make global, change default value to
4856 DEFAULT_HPUX_MAJOR_RELEASE.
4857 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
4858 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
4859 Add "solib-som.h" header.
4860 (set_hpux_major_release): New function.
4861 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
4863 2011-01-14 Mike Frysinger <vapier@gentoo.org>
4865 * configure.tgt (*-*-uclinux*): Match more Linux os targets
4867 2011-01-14 Joel Brobecker <brobecker@adacore.com>
4869 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
4870 new-line at end of warning message.
4871 (ia64_hpux_store_register): Remove trailing new-line at end of
4873 * ia64-hpux-tdep.c: Rephrase comment.
4874 * solib-ia64-hpux.c (struct dld_info): Change type of field
4875 dld_flags from "long long" to ULONGEST.
4877 2011-01-14 Pedro Alves <pedro@codesourcery.com>
4879 * target.h (deprecated_child_ops): Delete declaration.
4880 * target.c (deprecated_child_ops): Delete definition.
4882 2011-01-14 Pedro Alves <pedro@codesourcery.com>
4884 * Makefile.in (hpux-thread.o): Delete rule.
4885 * configure.ac: Don't check for HPUX DCE threads support.
4886 * configure, config.in: Regenerate.
4887 * hppa-hpux-nat.c (child_suppress_run): Delete.
4888 (hppa_hpux_child_can_run): Delete.
4889 (_initialize_hppa_hpux_nat): Don't override to_can_run.
4890 * hpux-thread.c: Delete.
4892 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4894 * hpux-thread.c (hpux_pid_to_str): Delete.
4896 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4898 * ada-valprint.c (ada_emit_char): Remove strange code.
4899 Check that c is <= UCHAR_MAX before passing it to isascii.
4900 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
4902 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4904 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
4905 to the case where instream is stdin.
4907 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4909 * ia64-tdep.h (struct regcache): Forward declare.
4910 (struct ia64_infcall_ops): New struct type.
4911 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
4913 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
4914 Renames ia64_find_global_pointer.
4915 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
4916 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
4917 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
4919 (ia64_infcall_ops): New static global constant.
4920 (ia64_gdbarch_init): Set tdep->infcall_ops.
4921 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
4922 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
4923 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
4924 (ia64_hpux_dummy_code): New static global constant.
4925 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
4926 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
4927 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
4929 (ia64_hpux_infcall_ops): New static global constant.
4930 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
4931 for inferior function calls to work properly on ia64-hpux.
4933 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4935 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
4936 * ia64-tdep.h (struct frame_info): forward declaration.
4937 (struct gdbarch_tdep): Add field size_of_register_frame.
4938 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
4939 to determine the size of the register frame.
4940 (ia64_size_of_register_frame): New function.
4941 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
4942 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
4943 (IA64_HPUX_UREG_REASON): New macro.
4944 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
4946 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
4947 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
4948 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
4951 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4953 Add support for ia64-hpux.
4954 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
4955 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
4957 * configure.host: Add handling for ia64-hpux hosts. Add associated
4959 * configure.tgt: Add handling for ia64-hpux targets.
4960 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
4961 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
4962 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
4964 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4966 [ttrace] Compute thread list immediately after attach.
4967 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
4969 (inf_ttrace_attach): Use it.
4971 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4973 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
4974 if we could not determine the frame's function address. Instead,
4975 use the frame's PC, and then continue.
4977 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4979 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
4980 not already defined.
4982 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4984 * ia64-tdep.c (ia64_struct_type_p): New function.
4985 (ia64_extract_return_value): Handle integral values that are
4986 less than 8 bytes long.
4987 (ia64_push_dummy_call): Likewise.
4989 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4991 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
4992 floatformat_ia64_ext.
4993 (floatformat_ia64_ext_big): New static const.
4994 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
4996 2011-01-12 Tom Tromey <tromey@redhat.com>
4998 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
5000 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
5001 (mi_cmd_thread_list_ids): Likewise.
5002 (mi_cmd_data_list_changed_registers): Likewise.
5003 (mi_cmd_data_list_register_values): Likewise.
5004 (mi_cmd_data_write_register_values): Likewise.
5005 (mi_cmd_data_evaluate_expression): Likewise.
5006 (mi_cmd_data_read_memory): Likewise.
5007 (mi_cmd_data_read_memory_bytes): Likewise.
5008 (mi_cmd_data_write_memory): Likewise.
5009 (mi_cmd_enable_timings): Likewise.
5010 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
5011 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
5012 (mi_cmd_var_delete): Likewise.
5013 (mi_cmd_var_set_format): Likewise.
5014 (mi_cmd_var_show_format): Likewise.
5015 (mi_cmd_var_info_num_children): Likewise.
5016 (mi_cmd_var_list_children): Likewise.
5017 (mi_cmd_var_info_type): Likewise.
5018 (mi_cmd_var_info_expression): Likewise.
5019 (mi_cmd_var_show_attributes): Likewise.
5020 (mi_cmd_var_assign): Likewise.
5021 (mi_cmd_var_update): Likewise.
5022 (mi_cmd_enable_pretty_printing): Likewise.
5023 (mi_cmd_var_set_update_range): Likewise.
5024 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
5026 (mi_cmd_target_file_put): Likewise.
5027 (mi_cmd_target_file_delete): Likewise.
5028 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
5030 (mi_cmd_stack_info_depth): Likewise.
5031 (mi_cmd_stack_list_locals): Likewise.
5032 (mi_cmd_stack_list_args): Likewise.
5033 (mi_cmd_stack_select_frame): Likewise.
5034 (mi_cmd_stack_select_frame): Likewise.
5035 (mi_cmd_stack_info_frame): Likewise.
5036 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
5038 (mi_cmd_file_list_exec_source_files): Likewise.
5039 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
5040 (mi_cmd_env_cd): Likewise.
5041 (mi_cmd_env_path): Likewise.
5042 (mi_cmd_env_dir): Likewise.
5043 (mi_cmd_inferior_tty_show): Likewise.
5044 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
5045 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
5046 (mi_cmd_break_watch): Likewise.
5048 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
5050 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
5051 (ppc_linux_insert_hw_breakpoint): Likewise.
5052 (ppc_linux_remove_hw_breakpoint): Likewise.
5053 (ppc_linux_insert_watchpoint): Likewise.
5055 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
5056 Jan Kratochvil <jan.kratochvil@redhat.com>
5058 PR fortran/11104 and DWARF unbound arrays detection.
5059 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
5060 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
5061 unspecified upper bound.
5062 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
5063 variables array_size_array, tmp_type and offset_item. New variable
5064 array. Remove call to f77_get_upperbound. New variables array_type
5065 and index. Call value_subscripted_rvalue for each dimenasion. Remove
5066 the final call to deprecated_set_value_type.
5068 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5070 Make value allocations more lazy.
5071 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
5072 instead of allocate_value and set_value_lazy when possible.
5073 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
5074 instead of allocate_value and set_value_lazy.
5075 * findvar.c (value_of_register_lazy): Likewise.
5076 (read_var_value): Remove V preallocation, call just check_typedef in
5077 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
5078 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
5079 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
5080 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
5081 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
5082 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
5083 the end, remove set_value_lazy there.
5084 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
5085 instead of allocate_value and set_value_lazy when possible.
5086 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
5087 * value.c (allocate_computed_value): Use allocate_value_lazy instead
5088 of allocate_value and set_value_lazy.
5089 (value_from_contents_and_address): Use allocate_value_lazy instead of
5090 allocate_value and set_value_lazy when possible.
5092 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
5094 * disasm.c (dump_insns): Support dumping opcodes for MI.
5095 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
5096 dumping of instruction opcodes.
5098 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
5100 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
5103 2011-01-11 Tom Tromey <tromey@redhat.com>
5105 * thread.c (do_captured_thread_select): Emit newline before
5108 2011-01-11 Michael Snyder <msnyder@vmware.com>
5110 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
5111 * score-tdep.c: Ditto.
5112 * score-tdep.h: Ditto.
5113 * ser-base.c: Ditto.
5114 * ser-go32.c: Ditto.
5117 * ser-mingw.c: Ditto.
5118 * ser-pipe.c: Ditto.
5120 * ser-unix.c: Ditto.
5121 * sh64-tdep.c: Ditto.
5122 * shnbsd-nat.c: Ditto.
5126 * solib-darwin.c: Ditto.
5127 * solib-frv.c: Ditto.
5129 * solib-irix.c: Ditto.
5130 * solib-osf.c: Ditto.
5131 * solib-pa64.c: Ditto.
5132 * solib-som.c: Ditto.
5133 * solib-spu.c: Ditto.
5134 * solib-sunos.c: Ditto.
5135 * solib-svr4.c: Ditto.
5137 * sol-thread.c: Ditto.
5141 * sparc64-linux-tdep.c: Ditto.
5142 * sparc64-tdep.c: Ditto.
5143 * sparc-linux-nat.c: Ditto.
5144 * sparc-linux-tdep.c: Ditto.
5145 * sparc-sol2-nat.c: Ditto.
5146 * sparc-sol2-tdep.c: Ditto.
5147 * sparc-tdep.c: Ditto.
5148 * sparc-tdep.h: Ditto.
5149 * spu-tdep.c: Ditto.
5150 * stabsread.c: Ditto.
5151 * stabsread.h: Ditto.
5159 * target-descriptions.c: Ditto.
5160 * target-descriptions.h: Ditto.
5162 * target-memory.c: Ditto.
5163 * terminal.h: Ditto.
5166 * tracepoint.c: Ditto.
5167 * tracepoint.h: Ditto.
5168 * trad-frame.h: Ditto.
5169 * typeprint.c: Ditto.
5171 2011-01-11 Michael Snyder <msnyder@vmware.com>
5173 * ui-file.c: Comment cleanup, mostly periods and spaces.
5178 * v850-tdep.c: Ditto.
5179 * valarith.c: Ditto.
5181 * valprint.c: Ditto.
5182 * valprint.h: Ditto.
5187 * vax-tdep.c: Ditto.
5191 * windows-nat.c: Ditto.
5192 * windows-tdep.c: Ditto.
5193 * xcoffread.c: Ditto.
5194 * xcoffsolib.c: Ditto.
5195 * xml-support.c: Ditto.
5196 * xstormy16-tdep.c: Ditto.
5197 * xtensa-tdep.c: Ditto.
5198 * xtensa-tdep.h: Ditto.
5200 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5202 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
5203 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
5205 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5206 Thiago Jung Bauermann <bauerman@br.ibm.com>
5208 Implement support for PowerPC BookE ranged watchpoints.
5210 (struct breakpoint_ops) <resources_needed>: New method.
5211 Initialize to NULL in all existing breakpoint_ops instances.
5212 (struct breakpoint) <exact>: New field.
5213 (target_exact_watchpoints): Declare external global.
5214 * breakpoint.c (target_exact_watchpoints): New global flag.
5215 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
5216 b->enable_state to bp_enabled before calling
5217 hw_watchpoint_used_count.
5218 (hw_watchpoint_used_count): Iterate over all bp_locations in a
5219 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
5221 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
5222 if the watchpoint is exact.
5223 (resources_needed_watchpoint): New function.
5224 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
5225 (watch_command_1): Set b->exact if the user asked for an exact
5226 watchpoint and one can be set.
5227 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
5228 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
5229 the user asks for an exact watchpoint and one can be set. Return
5230 number of needed debug registers to watch the expression.
5231 * gdbtypes.c (is_scalar_type): New function, based on
5232 valprint.c:scalar_type_p.
5233 (is_scalar_type_recursive): New function.
5234 * gdbtypes.h (is_scalar_type_recursive): Declare.
5235 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
5236 handle regions when ranged watchpoints are available.
5237 (create_watchpoint_request): New function.
5238 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
5239 create_watchpoint_request.
5240 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
5241 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
5242 `set powerpc' and `show powerpc' commands.
5243 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5244 Mention documentation comment in the target macro.
5245 (target_region_ok_for_hw_watchpoint): Document return value.
5247 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5249 * breakpoint.c (update_watchpoint): Decide on using a software or
5250 hardware watchpoint after the bp_locations are created.
5252 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5254 Convert hardware watchpoints to use breakpoint_ops.
5255 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
5256 <insert_location>: ... this. Return int instead of void.
5257 Accept pointer to struct bp_location instead of pointer to
5258 struct breakpoint. Adapt all implementations.
5259 (breakpoint_ops) <remove>: Rename to...
5260 <remove_location>: ... this. Accept pointer to struct bp_location
5261 instead of pointer to struct breakpoint. Adapt all implementations.
5262 * breakpoint.c (insert_catchpoint): Delete function.
5263 (insert_bp_location): Call the watchpoint or catchpoint's
5264 breakpoint_ops.insert method.
5265 (remove_breakpoint_1): Call the watchpoint or catchpoint's
5266 breakpoint_ops.remove method.
5267 (insert_watchpoint, remove_watchpoint): New functions.
5268 (watchpoint_breakpoint_ops): New structure.
5269 (watch_command_1): Initialize the OPS field.
5270 * inf-child.c (inf_child_insert_fork_catchpoint)
5271 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
5272 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
5273 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
5275 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
5276 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
5277 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
5278 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
5279 * target.c (update_current_target): Change default implementation of
5280 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
5281 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
5282 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
5283 to_set_syscall_catchpoint to return_one.
5284 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
5285 (debug_to_insert_exec_catchpoint): Report return value.
5286 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
5287 (to_insert_exec_catchpoint): Change declaration to return int instead
5290 2011-01-11 Michael Snyder <msnyder@vmware.com>
5292 * arm-tdep.c: Internationalization.
5295 * fork-child.c: Ditto.
5296 * nto-procfs.c: Ditto.
5297 * ppc-sysv-tdep.c: Ditto.
5299 * remote-mips.c: Ditto.
5301 * rs6000-nat.c: Ditto.
5302 * rs6000-tdep.c: Ditto.
5306 * xml-support.c: Ditto.
5307 * mi/mi-cmd-break.c: Ditto.
5308 * mi/mi-cmd-var.c: Ditto.
5309 * mi/mi-interp.c: Ditto.
5310 * mi/mi-main.c: Ditto.
5312 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
5314 * remote-sim.c (gdbsim_store_register): Update API to
5315 sim_store_register to check more error conditions.
5317 2011-01-10 Michael Snyder <msnyder@vmware.com>
5319 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
5320 * nto-tdep.c: Ditto.
5321 * nto-tdep.h: Ditto.
5322 * objc-exp.y: Ditto.
5323 * objc-lang.c: Ditto.
5324 * objfiles.c: Ditto.
5325 * objfiles.h: Ditto.
5326 * observer.c: Ditto.
5327 * opencl-lang.c: Ditto.
5330 * parser-defs.h: Ditto.
5333 * posix-hdep.c: Ditto.
5334 * ppcbug-rom.c: Ditto.
5335 * ppc-linux-nat.c: Ditto.
5336 * ppc-linux-tdep.c: Ditto.
5337 * ppc-linux-tdep.h: Ditto.
5338 * ppcnbsd-tdep.c: Ditto.
5339 * ppcobsd-tdep.c: Ditto.
5340 * ppcobsd-tdep.h: Ditto.
5341 * ppc-sysv-tdep.c: Ditto.
5342 * ppc-tdep.h: Ditto.
5343 * printcmd.c: Ditto.
5344 * proc-abi.c: Ditto.
5345 * proc-flags.c: Ditto.
5347 * proc-utils.h: Ditto.
5348 * progspace.h: Ditto.
5349 * prologue-value.c: Ditto.
5350 * prologue-value.h: Ditto.
5351 * psympriv.h: Ditto.
5353 * p-typeprint.c: Ditto.
5354 * p-valprint.c: Ditto.
5355 * ravenscar-sparc-thread.c: Ditto.
5356 * ravenscar-thread.c: Ditto.
5357 * ravenscar-thread.h: Ditto.
5359 * regcache.c: Ditto.
5360 * regcache.h: Ditto.
5362 * remote-fileio.c: Ditto.
5363 * remote-fileio.h: Ditto.
5365 * remote-m32r-sdi.c: Ditto.
5366 * remote-mips.c: Ditto.
5367 * remote-sim.c: Ditto.
5368 * rs6000-aix-tdep.c: Ditto.
5369 * rs6000-nat.c: Ditto.
5370 * rs6000-tdep.c: Ditto.
5372 2011-01-10 Michael Snyder <msnyder@vmware.com>
5374 * charset.c (validate): Internationalization.
5375 * coffread.c (read_one_sym): Ditto.
5376 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
5377 * h8300-tdep.c (H8300_extract_return_value): Ditto.
5378 * inflow.c (new_tty): Ditto.
5379 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
5380 * m32c-tdep.c (m32c_return_value): Ditto.
5381 * mep-tdep.c (mep_store_return_value): Ditto.
5382 * score-tdep.c (score7_fetch_insn): Ditto.
5383 * ser-mingw.c (pipe_windows_open): Ditto.
5384 * sh64-tdep.c (sh64_extract_return_value): Ditto.
5385 * spu-tdep.c (spu_register_type): Ditto.
5386 * tracepoint.c (trace_find_command): Ditto.
5387 * valarith.c (value_pos): Ditto.
5389 2011-01-10 Joel Brobecker <brobecker@adacore.com>
5391 * ada-valprint.c (printstr): Minor comment reformatting.
5393 2011-01-08 Michael Snyder <msnyder@vmware.com>
5395 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
5398 2011-01-08 Michael Snyder <msnyder@vmware.com>
5400 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
5401 * hppa-hpux-tdep.c: Ditto.
5402 * hppa-linux-nat.c: Ditto.
5403 * hppa-linux-tdep.c: Ditto.
5404 * hppanbsd-tdep.c: Ditto.
5405 * hppa-tdep.c: Ditto.
5406 * hppa-tdep.h: Ditto.
5407 * hpux-thread.c: Ditto.
5408 * i386-cygwin-tdep.c: Ditto.
5409 * i386-darwin-nat.c: Ditto.
5410 * i386gnu-nat.c: Ditto.
5411 * i386-linux-nat.c: Ditto.
5412 * i386-linux-tdep.c: Ditto.
5413 * i386-nat.c: Ditto.
5414 * i386-nat.h: Ditto.
5415 * i386nbsd-tdep.c: Ditto.
5416 * i386-sol2-nat.c: Ditto.
5417 * i386-stub.c: Ditto.
5418 * i386-tdep.c: Ditto.
5419 * i386-tdep.h: Ditto.
5420 * i387-tdep.c: Ditto.
5421 * ia64-linux-nat.c: Ditto.
5422 * ia64-linux-tdep.c: Ditto.
5423 * ia64-tdep.c: Ditto.
5427 * inferior.c: Ditto.
5428 * inferior.h: Ditto.
5434 * iq2000-tdep.c: Ditto.
5435 * irix5-nat.c: Ditto.
5441 * jv-typeprint.c: Ditto.
5442 * jv-valprint.c: Ditto.
5443 * language.c: Ditto.
5444 * language.h: Ditto.
5445 * linespec.c: Ditto.
5446 * linux-fork.c: Ditto.
5447 * linux-nat.c: Ditto.
5448 * linux-thread-db.c: Ditto.
5449 * lm32-tdep.c: Ditto.
5451 2011-01-08 Michael Snyder <msnyder@vmware.com>
5453 * m2-exp.y: Comment cleanup, mostly periods and spaces.
5455 * m2-typeprint.c: Ditto.
5456 * m2-valprint.c: Ditto.
5457 * m32c-tdep.c: Ditto.
5458 * m32r-linux-nat.c: Ditto.
5459 * m32r-rom.c: Ditto.
5460 * m32r-tdep.c: Ditto.
5461 * m32r-tdep.h: Ditto.
5462 * m68hc11-tdep.c: Ditto.
5463 * m58klinux-nat.c: Ditto.
5464 * m68k-tdep.c: Ditto.
5465 * m88k-tdep.c: Ditto.
5466 * m88k-tdep.h: Ditto.
5467 * machoread.c: Ditto.
5468 * macrocmd.c: Ditto.
5469 * macroexp.c: Ditto.
5470 * macrotab.c: Ditto.
5473 * mdebugread.c: Ditto.
5474 * mdebugread.h: Ditto.
5477 * memory-map.h: Ditto.
5478 * mep-tdep.c: Ditto.
5479 * microblaze-rom.c: Ditto.
5480 * microblaze-tdep.c: Ditto.
5482 * mips-irix-tdep.c: Ditto.
5483 * mips-linux-nat.c: Ditto.
5484 * mips-linux-tdep.c: Ditto.
5485 * mips-linux-tdep.h: Ditto.
5486 * mipsnbsd-nat.c: Ditto.
5487 * mipsnbsd-tdep.c: Ditto.
5488 * mipsread.c: Ditto.
5489 * mips-tdep.c: Ditto.
5490 * mips-tdep.h: Ditto.
5491 * mn10300-linux-tdep.c: Ditto.
5492 * mn10300-tdep.c: Ditto.
5493 * mn10300-tdep.h: Ditto.
5496 * moxie-tdep.c: Ditto.
5497 * moxie-tdep.h: Ditto.
5500 2011-01-08 Mike Frysinger <vapier@gentoo.org>
5502 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
5504 2011-01-08 Robert Millan <rmh@gnu.org>
5506 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
5508 2011-01-07 Michael Snyder <msnyder@vmware.com>
5510 * charset.c (_initialize_charset): Fix typo in string.
5512 2011-01-07 Michael Snyder <msnyder@vmware.com>
5514 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
5516 * tui/tui-layout.c (tui_set_layout_for_display_command):
5517 Split line so that operator goes to beginning of line.
5518 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
5519 assignment out of if statement.
5521 2011-01-07 Michael Snyder <msnyder@vmware.com>
5523 * ada-lang.c: Comment cleanup, mostly periods and spaces.
5524 * ada-lang.h: Ditto.
5525 * ada-tasks.c: Ditto.
5526 * ada-valprint.c: Ditto.
5527 * aix-threads.c: Ditto.
5528 * alpha-linux-nat.c: Ditto.
5529 * alpha-linux-tdep.c: Ditto.
5530 * alpha-mdebug-tdep.c: Ditto.
5531 * alpha-nat.c: Ditto.
5532 * alpha-osf1-tdep.c: Ditto.
5533 * alpha-tdep.c: Ditto.
5534 * alphabsd-nat.c: Ditto.
5535 * alphabsd-tdep.c: Ditto.
5536 * amd64-darwin-tdep.c: Ditto.
5537 * amd64-linux-nat.c: Ditto.
5538 * amd64-linux-tdep.c: Ditto.
5539 * amd64-sol2-tdep.c: Ditto.
5540 * amd64-tdep.c: Ditto.
5541 * amd64-fbsd-tdep.c: Ditto.
5542 * amd64-nbsd-tdep.c: Ditto.
5543 * amd64-obsd-tdep.c: Ditto.
5544 * amd64-linux-nat.c: Ditto.
5545 * amd64-linux-tdep.c: Ditto.
5546 * arm-tdep.c: Ditto.
5547 * arm-tdep.h: Ditto.
5548 * armnbsd-nat.c: Ditto.
5549 * avr-tdep.c: Ditto.
5550 * bfin-tdep.c: Ditto.
5552 * c-typeprintc: Ditto.
5553 * c-valprint.c: Ditto.
5554 * coff-pe-read.h: Ditto.
5555 * coffreead.c: Ditto.
5556 * cris-tdep.c: Ditto.
5558 * darwin-nat-info.c: Ditto.
5559 * darwin-nat.c: Ditto.
5560 * dbug-rom.c: Ditto.
5564 * dec-thread.c: Ditto.
5566 * demangle.c: Ditto.
5567 * dicos-tdep.c: Ditto.
5568 * dictionary.c: Ditto.
5569 * dictionary.h: Ditto.
5570 * dink32-rom.c: Ditto.
5572 * doublest.c: Ditto.
5574 * dummy-frame.c: Ditto.
5575 * dwarf2-frame.c: Ditto.
5576 * dwarf2expr.c: Ditto.
5577 * dwarf2loc.c: Ditto.
5578 * dwarf2read.c: Ditto.
5582 * event-top.h: Ditto.
5583 * exceptions.c: Ditto.
5584 * exceptions.h: Ditto.
5586 * expprint.c: Ditto.
5587 * expression.h: Ditto.
5591 * f-typeprint.c: Ditto.
5592 * f-valprint.c: Ditto.
5593 * fbsd-nat.c: Ditto.
5595 * fork-child.c: Ditto.
5598 * frv-linux-tdep.c: Ditto.
5599 * frv-tdep.c: Ditto.
5601 * gdb-stabs.h: Ditto.
5602 * gdb_assert.h: Ditto.
5603 * gdb_string.h: Ditto.
5604 * gdb_thread_db.h: Ditto.
5605 * gdb_wait.h: Ditto.
5606 * gdbarch.sh: Ditto.
5608 * gdbthread.h: Ditto.
5609 * gdbtypes.c: Ditto.
5610 * gdbtypes.h: Ditto.
5613 * gnu-v2-abi.c: Ditto.
5614 * gnu-v3-abi.c: Ditto.
5615 * go32-nat.c: Ditto.
5616 * gdbarch.c: Regenerate.
5617 * gdbarch.h: Regenerate.
5619 2011-01-07 Michael Snyder <msnyder@vmware.com>
5621 * ax-gdb.c: Adjust some long output strings.
5622 * breakpoint.c: Ditto.
5627 * linux-nat.c: Ditto.
5628 * solib-pa64.c: Ditto.
5629 * solib-som.c: Ditto.
5631 2011-01-06 Tom Tromey <tromey@redhat.com>
5635 * python/python.c (GdbMethods): Add "newest_frame" method.
5636 * python/python-internal.h (gdbpy_newest_frame): Declare.
5637 * python/py-frame.c (gdbpy_newest_frame): New function.
5639 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
5641 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
5642 * jit.c (jit_debug): New variable.
5643 (show_jit_debug): New function.
5644 (struct target_buffer): Use ULONGEST.
5645 (bfd_open_from_target_memory): Likewise.
5646 (jit_register_code, jit_inferior_init): Add debug output.
5647 (_initialize_jit): Register "debug jit" command.
5649 2011-01-06 Tom Tromey <tromey@redhat.com>
5651 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
5652 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
5655 2011-01-06 Tom Tromey <tromey@redhat.com>
5657 * python/py-frame.c (frapy_block): Use get_frame_block.
5659 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5661 Do not stop on SIGPRIO signals by default
5662 * infrun.c (_initialize_infrun): Unset signal_stop and
5663 signal_print for TARGET_SIGNAL_PRIO.
5665 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5667 * ada-tasks.c: Fix style violation in comment.
5669 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5671 * linespec.c (decode_compound, find_method): Remove trailing \n
5672 at end of error string.
5673 * solib-irix.c (irix_current_sos): Likewise.
5674 * varobj.c (uninstall_variable): Likewise.
5676 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5678 * copyright.py: New script.
5679 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
5680 Launch emacs without exec'ing. Call copyright.py afterwards.
5682 2011-01-05 Michael Snyder <msnyder@vmware.com>
5684 * addrmap.c: Shorten lines of >= 80 columns.
5685 * arch-utils.c: Ditto.
5686 * arch-utils.h: Ditto.
5688 * ax-general.c: Ditto.
5690 * blockframe.c: Ditto.
5691 * breakpoint.c: Ditto.
5692 * buildsym.c: Ditto.
5694 * c-typeprint.c: Ditto.
5696 * coffread.c: Ditto.
5700 * cp-namespace.c: Ditto.
5701 * cp-support.c: Ditto.
5702 * dbug-rom.c: Ditto.
5707 * dictionary.c: Ditto.
5709 * doublest.c: Ditto.
5710 * dwarf2-frame.c: Ditto.
5711 * dwarf2expr.c: Ditto.
5712 * dwarf2loc.c: Ditto.
5713 * dwarf2read.c: Ditto.
5716 * event-loop.c: Ditto.
5717 * event-loop.h: Ditto.
5718 * exceptions.h: Ditto.
5720 * expprint.c: Ditto.
5721 * expression.h: Ditto.
5723 * f-valprint.c: Ditto.
5725 * frame-base.c: Ditto.
5726 * frame-unwind.c: Ditto.
5727 * frame-unwind.h: Ditto.
5731 * gdb-stabs.h: Ditto.
5732 * gdb_assert.h: Ditto.
5733 * gdb_dirent.h: Ditto.
5734 * gdb_obstack.h: Ditto.
5736 * gdbtypes.c: Ditto.
5737 * gdbtypes.h: Ditto.
5738 * inf-ttrace.c: Ditto.
5743 * inline-frame.h: Ditto.
5744 * language.c: Ditto.
5745 * language.h: Ditto.
5746 * libunwind-frame.c: Ditto.
5747 * libunwind-frame.h: Ditto.
5748 * linespec.c: Ditto.
5749 * linux-nat.c: Ditto.
5750 * linux-nat.h: Ditto.
5751 * linux-thread-db.c: Ditto.
5752 * machoread.c: Ditto.
5753 * macroexp.c: Ditto.
5754 * macrotab.c: Ditto.
5757 * mdebugread.c: Ditto.
5762 * objfiles.c: Ditto.
5763 * objfiles.h: Ditto.
5765 * p-typeprint.c: Ditto.
5766 * p-valprint.c: Ditto.
5768 * printcmd.c: Ditto.
5769 * proc-events.c: Ditto.
5771 * progspace.c: Ditto.
5772 * progspace.h: Ditto.
5773 * psympriv.h: Ditto.
5776 * regcache.c: Ditto.
5777 * regcache.h: Ditto.
5778 * remote-fileio.c: Ditto.
5780 * ser-mingw.c: Ditto.
5782 * ser-unix.c: Ditto.
5785 * solib-frv.c: Ditto.
5786 * solib-irix.c: Ditto.
5787 * solib-osf.c: Ditto.
5788 * solib-pa64.c: Ditto.
5789 * solib-som.c: Ditto.
5790 * solib-sunos.c: Ditto.
5791 * solib-svr4.c: Ditto.
5792 * solib-target.c: Ditto.
5796 * stabsread.c: Ditto.
5797 * stabsread.c: Ditto.
5800 * symfile-mem.c: Ditto.
5806 * target-descriptions.c: Ditto.
5807 * target-memory.c: Ditto.
5810 * terminal.h: Ditto.
5813 * tracepoint.c: Ditto.
5814 * tracepoint.h: Ditto.
5818 * user-regs.c: Ditto.
5819 * user-regs.h: Ditto.
5821 * valarith.c: Ditto.
5823 * valprint.c: Ditto.
5824 * valprint.h: Ditto.
5829 * xcoffread.c: Ditto.
5830 * xcoffsolib.c: Ditto.
5831 * xcoffsolib.h: Ditto.
5832 * xml-syscall.c: Ditto.
5833 * xml-tdesc.c: Ditto.
5835 2011-01-05 Michael Snyder <msnyder@vmware.com>
5837 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
5838 * cli/cli-decode.c: Ditto.
5839 * cli/cli-dump.c: Ditto.
5840 * cli/cli-logging.c: Ditto.
5841 * cli/cli-script.c: Ditto.
5842 * cli/cli-setshow.c: Ditto.
5843 * common/signals.c: Ditto.
5844 * mi/mi-cmd-break.c: Ditto.
5845 * mi/mi-cmd-disas.c: Ditto.
5846 * mi/mi-cmd-stack.c: Ditto.
5847 * mi/mi-cmd-var.c: Ditto.
5848 * mi/mi-cmds.c: Ditto.
5849 * mi/mi-common.h: Ditto.
5850 * mi/mi-console.c: Ditto.
5851 * mi/mi-interp.c: Ditto.
5852 * mi/mi-main.c: Ditto.
5853 * osf-share/cma_attr.c: Ditto.
5854 * osf-share/cma_deb_core.h: Ditto.
5855 * osf-share/cma_debug_client.h: Ditto.
5856 * osf-share/cma_handle.h: Ditto.
5857 * osf-share/cma_mutex.h: Ditto.
5858 * osf-share/cma_stack_int.h: Ditto.
5859 * osf-share/cma_tcb_defs.h: Ditto.
5860 * python/py-auto-load.c: Ditto.
5861 * python/py-breakpoint.c: Ditto.
5862 * python/py-cmd.c: Ditto.
5863 * python/py-frame.c: Ditto.
5864 * python/py-objfile.c: Ditto.
5865 * python/py-param.c: Ditto.
5866 * python/py-progspace.c: Ditto.
5867 * python/py-symbol.c: Ditto.
5868 * python/py-value.c: Ditto.
5869 * python/python-internal.h: Ditto.
5870 * python/python.c: Ditto.
5871 * tui/tui-data.c: Ditto.
5872 * tui/tui-disasm.c: Ditto.
5873 * tui/tui-hooks.c: Ditto.
5874 * tui/tui-io.c: Ditto.
5875 * tui/tui-layout.c: Ditto.
5876 * tui/tui-regs.c: Ditto.
5877 * tui/tui-source.c: Ditto.
5878 * tui/tui-stack.c: Ditto.
5879 * tui/tui-win.c: Ditto.
5880 * tui/tui-windata.c: Ditto.
5881 * tui/tui-winsource.c: Ditto.
5883 2011-01-05 Joel Brobecker <brobecker@adacore.com>
5885 * configure.ac, gdb.1: Copyright year update.
5887 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5889 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
5890 this_pc_in_block, morestack_msym and morestack_name. Check for
5891 "__morestack" minimal symbol there.
5893 2011-01-03 Joel Brobecker <brobecker@adacore.com>
5895 * symfile.c (find_sym_fns): Add call to dont_repeat.
5897 2011-01-01 Joel Brobecker <brobecker@adacore.com>
5899 Copyright year update in most files (performed by copyright.sh).
5901 2011-01-01 Joel Brobecker <brobecker@adacore.com>
5903 * top.c (print_gdb_version): Update copyright year in version output.
5905 For older changes see ChangeLog-2010.
5911 version-control: never