1 2011-05-13 Doug Evans <dje@google.com>
3 * ui-file.c (stdio_file_write_async_safe): Add comment.
5 2011-05-14 Hui Zhu <teawater@gmail.com>
7 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
9 2011-05-13 Doug Evans <dje@google.com>
11 Support $pdir and $sdir in libthread-db-search-path.
12 * NEWS: Mention $sdir,$pdir.
13 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
14 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
15 (try_thread_db_load_from_sdir): New function.
16 (try_thread_db_load_from_dir): New function.
17 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
18 system directories if search of libthread-db-search-path fails,
19 that is now done via $sdir.
20 (has_libpthread): New function.
21 (thread_db_load): Remove search for libthread_db in directory of
22 libpthread, that is now done via $pdir.
24 * NEWS: Mention "info auto-load-scripts".
25 * python/py-auto-load.c (struct auto_load_pspace_info): New member
26 script_not_found_warning_printed.
27 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
28 all callers updated. Initialize script_not_found_warning_printed.
29 (get_auto_load_pspace_data_for_loading): New function.
30 (maybe_add_script): New function.
31 (source_section_scripts): Simplify. Only print one warning regardless
32 of the number of auto-load scripts not found.
33 (clear_section_scripts): Clear script_not_found_warning_printed.
34 (auto_load_objfile_script): Record script in hash table.
35 (count_matching_scripts): New function.
36 (maybe_print_script): Renamed from maybe_print_section_script, all
37 callers updated. Rewrite to use ui_out_*.
38 (info_auto_load_scripts): Renamed from
39 maintenance_print_section_scripts, all callers updated.
40 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
41 renamed as "info auto-load-scripts".
43 2011-05-13 Tom Tromey <tromey@redhat.com>
45 * dwarf2expr.c (read_uleb128): Cast intermediate result.
46 (read_sleb128): Likewise.
48 2011-05-13 Tom Tromey <tromey@redhat.com>
50 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
53 2011-05-13 Doug Evans <dje@google.com>
55 * linux-nat.c (debug_linux_nat_async): Delete.
56 Replace all references to use debug_linux_nat instead.
57 (show_debug_linux_nat_async): Delete.
58 (sigchld_handler): Call ui_file_write_async_safe instead of
60 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
61 * ui-file.c (struct ui_file): New member to_write_async_safe.
62 (null_file_write_async_safe): New function.
63 (ui_file_write_async_safe): New function.
64 (set_ui_file_write_async_safe): New function.
65 (ui_file_new): Initialize to_write_async_safe.
66 (stdio_file_write_async_safe): New function.
67 (struct stdio_file): New member fd.
68 (stdio_file_new): Initialize to_write_async_safe, fd.
69 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
71 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
72 (set_ui_file_write_async_safe): Declare.
73 (ui_file_write_async_safe): Declare.
75 2011-05-13 Tom Tromey <tromey@redhat.com>
77 * utils.c (do_value_free): New function.
78 (make_cleanup_value_free): Likewise.
79 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
81 (dwarf2_loc_desc_needs_frame): Call
82 make_cleanup_value_free_to_mark.
83 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
84 * dwarf2expr.c (free_dwarf_expr_context): Don't call
86 (new_dwarf_expr_context): Don't call value_mark.
87 * dwarf2-frame.c (execute_stack_op): Call
88 make_cleanup_value_free_to_mark.
89 * defs.h (make_cleanup_value_free): Declare.
91 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
93 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
94 prepare_execute_command.
95 * top.c (prepare_execute_command): Return cleanup.
96 (execute_command): Use cleanup from prepare_execute_command.
97 * top.h (prepare_execute_command): Change prototype to return
99 * defs.h (struct value): Add opaque declaration.
100 (make_cleanup_value_free_to_mark): Add prototype.
101 * utils.c (do_value_free_to_mark): New function.
102 (make_cleanup_value_free_to_mark): Likewise.
104 2011-05-12 Tom Tromey <tromey@redhat.com>
106 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
107 cast left-hand-side to unsigned.
109 2011-05-12 Tom Tromey <tromey@redhat.com>
112 * value.h (value_from_contents): Declare.
113 * value.c (value_from_contents): New function.
114 * dwarf2read.c (dwarf_stack_op_name): Add new values.
115 (dwarf2_get_die_type): New function.
116 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
117 (allocate_piece_closure): Acquire reference to values.
118 (read_pieced_value): Update for value-based expressions.
119 (write_pieced_value): Likewise.
120 (free_pieced_value_closure): Call value_free as needed.
121 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
122 Update for value-based expressions.
123 * dwarf2loc.h (dwarf2_get_die_type): Declare.
124 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
125 <get_base_type>: New field.
126 (struct dwarf_expr_piece) <v.value>: Change type.
127 <v.regno>: New field.
128 (struct dwarf_expr_context) <mark>: New field.
129 (dwarf_expr_piece, dwarf_expr_fetch): Update.
130 (dwarf_expr_pop, dwarf_expr_push): Remove.
131 (dwarf_expr_push_address): Declare.
132 * dwarf2expr.c (dwarf_arch_cookie): New global.
133 (struct dwarf_gdbarch_types): New.
134 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
136 (dwarf_expr_push): Change type of 'value' argument. Update. Now
138 (dwarf_expr_push_address): New function.
139 (dwarf_expr_pop): Now static.
140 (dwarf_expr_fetch): Change return type.
141 (dwarf_require_integral): New function.
142 (dwarf_expr_fetch): Simplify.
144 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
146 (execute_stack_op) <sign_ext>: Remove.
147 Use values for DWARF stack.
148 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
149 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
151 (_initialize_dwarf2expr): New function.
153 (new_dwarf_expr_context): Set new field.
154 (free_dwarf_expr_context): Call value_free_to_mark.
155 * dwarf2-frame.c (no_base_type): New function.
156 (execute_stack_op): Set get_base_type field. Update.
158 2011-05-12 Tom Tromey <tromey@redhat.com>
160 * dwarf2read.c (read_common_block): Fix formatting.
162 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
164 * breakpoint.c (disable_breakpoint): Disable all locations
165 associated with a tracepoint on target if a trace experiment is
167 (disable_command): Disable a specific tracepoint location on target if
168 a trace experiment is running.
169 (do_enable_breakpoint): Enable all locations associated with a
170 tracepoint on target if a trace experiment is running.
171 (enable_command) Enable a specific tracepoint location on target if a
172 trace experiment is running.
173 * target.c (update_current_target): Add INHERIT and de_fault clauses for
174 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
175 to_disable_tracepoint.
176 * target.h: Add declaration of struct bp_location.
177 (struct target_ops): Add new functions
178 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
179 to_disable_tracepoint to target operations.
180 (target_supports_enable_disable_tracepoint): New macro.
181 (target_enable_tracepoint): New macro.
182 (target_disable_tracepoint): New macro.
183 * remote.c (struct remote_state): Add new field.
184 (remote_enable_disable_tracepoint_feature): New.
185 (remote_protocol_features): Add new entry.
186 (remote_supports_enable_disable_tracepoint): New.
187 (remote_enable_tracepoint): New.
188 (remote_disable_tracepoint): New.
189 (init_remote_ops): Add remote_enable_tracepoint,
190 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
191 to remote operations.
192 * tracepoint.c (start_tracing): Allow tracing to start without any
193 tracepoints enabled with just a warning if they can be re-enabled
195 * NEWS: Add news item for the new behaviour of the enable and disable
196 GDB commands when applied to tracepoints.
197 Add news items for the new remote packets QTEnable and QTDisable.
199 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
201 * config.in: Regenerate.
202 * configure: Regenerate.
203 * configure.ac <--with-system-readline> (for readline_echoing_p):
205 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
206 (tui_old_rl_echoing_p): ... here.
207 (tui_setup_io): Rename extern declaration readline_echoing_p to
208 _rl_echoing_p. Adjust assignments for the both renames.
210 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
212 * symtab.c (lookup_symtab): Run cleanup before returning.
214 2011-05-11 Tom Tromey <tromey@redhat.com>
216 * dwarf2read.c (handle_data_member_location): New function.
217 (dwarf2_add_field): Use it.
218 (read_common_block): Likewise.
220 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
222 Make addrs->SECTINDEX always defined.
223 * symfile.c (relative_addr_info_to_section_offsets): Check for
224 SECTINDEX -1, not for zero ADDR.
225 (addrs_section_compar): Remove checking for invalid SECTINDEX.
226 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
227 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
230 2011-05-10 Doug Evans <dje@google.com>
232 * linux-thread-db.c: Whitespace cleanup.
233 (try_thread_db_load_1): Fix comment.
235 * linux-thread-db.c (set_libthread_db_search_path): New function.
236 (_initialize_thread_db): Add setter for libthread-db-search-path.
238 2011-05-09 Doug Evans <dje@google.com>
240 * NEWS: Mention --with-iconv-bin.
241 * configure.ac: New option --with-iconv-bin.
242 * configure: Regenerate.
243 * config.in: Regenerate.
244 * defs.h (relocate_gdb_directory): Declare.
245 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
246 removed progname parameter, and exported. All callers updated.
247 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
249 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
250 adding missing call to restore_child_signals_mask.
252 2011-05-09 Pedro Alves <pedro@codesourcery.com>
254 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
256 * infrun.c (proceed, start_remote): Adjust.
257 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
258 and adjust to not handle it.
259 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
260 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
261 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
262 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
263 * windows-nat.c (do_initial_windows_stuff): Adjust.
264 * infcmd.c (attach_command): Adjust.
265 (notice_new_inferior): Adjust.
267 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
269 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
270 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
271 * spu-tdep.c (op_selb): Use correct value.
273 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
275 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
276 "parent" parameter to symbol_file_add_from_bfd call.
278 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
279 Thiago Jung Bauermann <bauerman@br.ibm.com>
281 Implement support for PowerPC BookE masked watchpoints.
282 * NEWS: Mention masked watchpoint support. Create "Changed commands"
284 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
285 method. Initialize to NULL in all existing breakpoint_ops instances.
286 (struct breakpoint) <hw_wp_mask>: New field.
287 * breakpoint.c (is_masked_watchpoint): Add prototype.
288 (update_watchpoint): Don't set b->val for masked watchpoints. Call
289 breakpoint's breakpoint_ops.works_in_software_mode if available.
290 (watchpoints_triggered): Handle the case of a hardware masked
292 (watchpoint_check): Likewise.
293 (works_in_software_mode_watchpoint): New function.
294 (insert_masked_watchpoint, remove_masked_watchpoint)
295 (resources_needed_masked_watchpoint)
296 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
297 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
298 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
300 (masked_watchpoint_breakpoint_ops): New structure.
301 (watch_command_1): Check for the existence of the `mask' parameter.
302 Set b->ops according to the type of hardware watchpoint being created.
303 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
304 (ppc_linux_remove_mask_watchpoint)
305 (ppc_linux_masked_watch_num_registers): New functions.
306 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
307 to_remove_mask_watchpoint and to_masked_watch_num_registers.
308 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
309 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
310 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
311 (target_masked_watch_num_registers): New functions.
312 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
313 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
315 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
316 (target_masked_watch_num_registers): Add prototypes.
318 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
321 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
322 (producer_is_gcc_ge_4_0): New function.
323 (process_full_comp_unit): Set also symtab->locations_valid. Move the
324 symtab->language code.
325 (var_decode_location): Set cu->has_loclist.
326 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
327 skip. Intialize force_skip from locations_valid. Move the prologue
328 skipping code into two passes.
329 * symtab.h (struct symtab): Make the primary field a bitfield. New
330 field locations_valid.
332 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
334 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
335 (classify_inner_name): Call cp_lookup_nested_type with
337 * cp-namespace.c (cp_lookup_nested_type): New variable
338 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
339 type_name_no_tag_or_error with saved_parent_type.
340 * dwarf2read.c (load_partial_dies): Read in any children of
341 DW_TAG_typedef with complaint in such case.
342 * gdbtypes.c (type_name_no_tag_or_error): New function.
343 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
344 * valops.c (destructor_name_p): New comment for parameter type. Remove
345 type const. Make dname and cp const. Call type_name_no_tag_or_error.
346 * value.h (destructor_name_p): Remove type const.
348 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
350 * symtab.c (compare_symbol_name): New function.
351 (completion_list_add_name, expand_partial_symbol_name): Call it,
352 remove the variable ncmp.
353 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
356 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
358 Demote to sw watchpoint only in update_watchpoint.
359 * breakpoint.c (update_watchpoint): Change between software and
360 hardware watchpoint for all kinds of watchpoints, not just
361 read/write ones. Determine b->exact value here instead of
362 in watch_command_1. Error out if there are not enough resources
363 for a read or access hardware watchpoint.
364 (watch_command_1): Remove logic of checking whether there are
365 enough resources available, since update_watchpoint will do that
366 work now. Don't set b->exact here. Catch exceptions thrown by
367 update_watchpoint and delete the watchpoint.
368 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
369 Use target_exact_watchpoints instead.
370 (delete_breakpoint): Notify observers only if deleted watchpoint
371 has a breakpoint number assigned to it.
373 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
375 * MAINTAINERS: Add myself as a write-after-approval maintainer.
377 2011-05-05 Jerome Guitton <guitton@adacore.com>
379 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
381 (i386_stack_tramp_frame_unwind): New static global.
382 (i386_match_pattern): New function, extracted from i386_match_insn.
383 (i386_match_insn): Use i386_match_pattern.
384 (i386_match_insn_block): New function.
385 (i386_tramp_chain_in_reg_insns)
386 (i386_tramp_chain_on_stack_insns): New static variables.
387 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
390 2011-05-04 Joseph Myers <joseph@codesourcery.com>
392 * configure.host (xscale*): Don't handle target.
393 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
396 2011-05-04 Yao Qi <yao@codesourcery.com>
398 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
400 2011-05-03 Joel Brobecker <brobecker@adacore.com>
403 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
404 | * elfread.c (elf_symtab_read): Stop memory leak.
406 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
408 * nto-tdep.c (nto_target): Replace deprecated call to
409 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
411 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
413 Fix false GCC warning.
414 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
416 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
418 * breakpoint.c (update_watchpoint): Move code to change
419 the enable state of breakpoint from here ...
420 (do_enable_breakpoint): ... to here.
422 2011-04-26 Andrew Gontarek <andrewg@cray.com>
424 * valprint.c (val_print_array_elements): Fixed poor performance
425 of printing very large arrays with repeat_count_threshold set
426 to unlimited. New comment.
428 2011-04-29 Tom Tromey <tromey@redhat.com>
430 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
431 (mi_parse): Likewise.
432 * breakpoint.c (break_range_command): Use sizeof char*, not
434 (create_breakpoint): Likewise.
435 (parse_breakpoint_sals): Likewise.
437 2011-04-29 Pedro Alves <pedro@codesourcery.com>
439 * linux-nat.c (linux_child_remove_fork_catchpoint)
440 (linux_child_remove_vfork_catchpoint)
441 (linux_child_remove_exec_catchpoint): New functions.
442 (linux_target_install_ops): Install them.
444 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
448 * varobj.c (install_default_visualizer): Do not install a
449 visualizer if the varobj is CPLUS_FAKE_CHILD.
450 (construct_visualizer): Likewise.
452 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
454 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
455 case insensitive comparison.
457 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
459 * infrun.c (proceed): Revert previous change.
460 (resume): Instead, handle the case of signal delivery while stepping
461 off a breakpoint location here, and only if software single-stepping
462 is used. Handle nested signals.
464 2011-04-28 Yao Qi <yao@codesourcery.com>
466 * arm-tdep.c (copy_unmodified): Rename to ...
467 (arm_copy_unmodified): .. this. New.
468 (copy_preload): Move common part to ...
469 (install_preload): .. this. New.
470 (arm_copy_preload): New.
471 (copy_preload_reg): Move common part to ...
472 (install_preload_reg): ... this. New.
473 (arm_copy_preload_reg): New.
474 (copy_b_bl_blx): Move common part to ...
475 (install_b_bl_blx): .. this. New.
476 (arm_copy_b_bl_blx): New.
477 (copy_bx_blx_reg): Move common part to ...
478 (install_bx_blx_reg): ... this. New.
479 (arm_copy_bx_blx_reg): New.
480 (copy_alu_reg): Move common part to ...
481 (install_alu_reg): ... this. New.
482 (arm_copy_alu_reg): New.
483 (copy_alu_shifted_reg): Move common part to ...
484 (install_alu_shifted_reg): ... this. New.
485 (copy_ldr_str_ldrb_strb): Move common part to ...
486 (install_ldr_str_ldrb_strb): ... this. New.
487 (arm_copy_ldr_str_ldrb_strb): New.
488 (copy_copro_load_store): Move some common part to ...
489 (install_copy_copro_load_store): ... this. New.
490 (arm_copy_copro_load_store): New.
492 (arm_copy_svc): Renamed from copy_svc.
493 (copy_undef): Delete.
494 (arm_copy_undef): Renamed from copy_undef.
495 (decode_ext_reg_ld_st): Delete.
496 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
497 (decode_svc_copro): Delete.
498 (arm_decode_svc_copro): Renamed from decode_svc_copro.
499 (copy_copro_load_store, copy_alu_imm): update callers.
500 (copy_extra_ld_st, copy_block_xfer): Likewise.
501 (decode_misc_memhint_neon, decode_unconditional): Likewise.
502 (decode_miscellaneous, decode_dp_misc): Likewise.
503 (decode_ld_st_word_ubyte, decode_media): Likewise.
504 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
505 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
506 (decode_unconditional, decode_miscellaneous): Likewise.
507 (decode_media, decode_b_bl_ldmstm): Likewise.
508 (arm_process_displaced_insn): Likewise..
509 (decode_misc_memhint_neon): Delete.
510 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
511 (decode_miscellaneous): Delete.
512 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
513 (decode_dp_misc): Delete.
514 (arm_decode_dp_misc): Renamed from decode_dp_misc.
515 (decode_ld_st_word_ubyte): Delete.
516 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
517 (decode_media): Delete.
518 (arm_decode_media): Renamed from decode_media.
519 (decode_b_bl_ldmstm): Delete.
520 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
521 (decode_ext_reg_ld_st): Delete.
522 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
523 (decode_unconditional): Delete.
524 (arm_decode_unconditional): Renamed from decode_unconditional.
526 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
528 Case insensitive lookups implementation.
529 * dwarf2read.c: Include ctype.h.
530 (struct mapped_index): New field version.
531 (mapped_index_string_hash): New parameter index_version. New comment
532 for it. Call tolower appropriately.
533 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
534 Choose the right index version for mapped_index_string_hash.
535 (dwarf2_read_index): Support also the index version 5. Initialize the
536 new struct mapped_index field version.
537 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
538 (find_slot): Explain the version needs. Pass INT_MAX for the new
540 (write_psymtabs_to_index): Produce version 5.
541 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
542 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
543 * psymtab.c (lookup_partial_symbol): Find the
544 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
546 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
548 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
549 (completion_list_add_name): New variable ncmp, initialize it, use it.
550 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
551 * utils.c (strcmp_iw): Support case_sensitive_off.
552 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
553 New function comment part. New variables saved_string1,
554 saved_string2 and case_pass. Add a proper second pass.
556 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
558 Replace re_comp/re_exec by regcomp/regexec.
559 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
560 (search_symbols_name_matches): Use them, use regexec.
561 (search_symbols): New variable retval_chain, adjust the use of
562 old_chain against it. Replace re_comp by regcomp. Use the new struct
563 search_symbols_data fields, use regexec instead of re_exec.
565 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
567 Format the code for the next patch.
568 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
569 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
570 New variables c1 and c2.
572 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
574 * infrun.c (proceed): Do not single-step into signal delivery
575 when stepping off a breakpoint location.
576 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
577 (insert_step_resume_breakpoint_at_caller): Likewise.
578 (insert_step_resume_breakpoint_at_sal): Likewise.
579 (insert_longjmp_resume_breakpoint): Likewise.
581 2011-04-27 Yao Qi <yao@codesourcery.com>
583 * common/linux-ptrace.h: Remove include <sys/wait.h>.
585 2011-04-27 Joel Brobecker <brobecker@adacore.com>
587 * procfs.c (procfs_pass_signals): Fix advance declaration.
589 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
591 * target.h (struct target_ops): Remove to_notice_signals;
593 (target_notice_signals): Remove.
594 (target_pass_signals): Add prototype.
595 * target.c (update_current_target): Remove to_notice_signals;
596 mention to_pass_signals.
597 (target_pass_signals): New function.
598 (debug_to_notice_signals): Remove.
599 (setup_target_debug): Do not install debug_to_notice_signals.
601 * infrun.c (signal_pass): New global.
602 (resume): Call target_pass_signals.
603 (handle_inferior_event): Report all signals while stepping over
604 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
605 are re-inserted when stepping over a signal handler.
606 (signal_cache_update): New function.
607 (signal_stop_update): Call it.
608 (signal_print_update): Likewise.
609 (signal_pass_update): Likewise.
610 (handle_command): Call signal_cache_update and target_pass_signals
611 instead of target_notice_signals.
612 (_initialize_infrun): Initialize signal_pass.
614 * linux-nat.c (pass_mask): New global.
615 (linux_nat_pass_signals): New function.
616 (linux_nat_create_inferior): Report all signals initially.
617 (linux_nat_attach): Likewise.
618 (linux_nat_resume): Use pass_mask to decide whether to directly
619 handle an inferior signal.
620 (linux_nat_wait_1): Likewise.
621 (linux_nat_add_target): Install to_pass_signals callback.
623 * nto-procfs.c (notice_signals): Remove.
624 (procfs_resume): Do not call notice_signals.
625 (procfs_notice_signals): Remove.
626 (procfs_pass_signals): New function.
627 (init_procfs_ops): Install to_pass_signals callback instead of
628 to_notice_signals callback.
629 (_initialize_procfs): Report all signals initially.
631 * procfs.c (procfs_notice_signals): Remove.
632 (procfs_pass_signals): New function.
633 (procfs_target): Install to_pass_signals callback instead of
634 to_notice_signals callback.
635 (register_gdb_signals): Remove.
636 (procfs_debug_inferior): Report all signals initially.
637 (procfs_init_inferior): Remove redundant register_gdb_signals call.
639 * remote.c (remote_pass_signals): Add numsigs and pass_signals
640 parameters; use them instead of calling signal_..._state routines.
641 (remote_notice_signals): Remove.
642 (remote_start_remote): Report all signals initially.
643 (remote_resume): Do not call remote_pass_signals.
644 (_initialize_remote): Install to_pass_signals callback instead of
645 to_notice_signals callback.
647 2011-04-27 Pedro Alves <pedro@codesourcery.com>
649 * breakpoint.c (user_settable_breakpoint): Delete.
650 (user_breakpoint_p): Remove check on user_settable_breakpoint.
651 (delete_command): Check user_breakpoint_p instead of looking at
652 the breakpoint's type.
653 (disable_command): Ditto.
654 (enable_command): Ditto.
655 (delete_trace_command): Use user_breakpoint_p instead of looking
656 at the breakpoint number directly. When checking if there are
657 user visible tracepoints, in order to know whether to ask the user
658 for confirmation, check whether the breakpoint is actually a
661 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
663 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
666 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
668 MI breakpoint notifications.
670 * annotate.c (breakpoint_changed): Adjust parameter type.
671 * breakpoint.c (set_breakpoint_condition): Adjust to change
672 in breakpoint_modified type.
673 (breakpoint_set_commands): Likewise.
674 (do_map_commands_command): Likewise.
675 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
676 changed after bumping hit count.
677 (bpstat_stop_status): Likewise.
678 (print_one_breakpoint_location): Don't wrap in tuple here.
679 (print_one_breakpoint): Always print individual locations.
680 For locations, use unnamed tuple.
681 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
683 (create_catchpoint, create_syscall_event_catchpoint): Call
684 breakpoint_created obsever.
685 (mention): Don't call breakpoint_created observer.
686 (create_breakpoint_sal): Call breakpoint_created observer.
687 (create_breakpoint, watch_command_1): Likewise.
688 (create_ada_exception_breakpoint): Likewise.
689 (delete_breakpoint): Call breakpoint_deleted breakpoint.
690 (locations_are_equal): New.
691 (update_breakpoint_locations): If locations were changed, notify.
692 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
693 Call breakpoint_modified observer.
695 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
696 (mi_cmd_break_insert): Don't set observers for modify and delete.
697 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
698 (mi_breakpoint_created, mi_breakpoint_deleted)
699 (mi_breakpoint_modified): New.
700 (mi_interpreter_init): Hook the above.
701 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
702 while -break-* commands are executing.
703 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
704 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
706 (mi_ui_out_impl): Hook in mi_redirect.
707 (mi_field_skip): True to the name, skip the field, don't output
708 a field with an empty value.
710 * python/py-breakpoint.c (gdbpy_breakpoint_created)
711 (gdbpy_breakpoint_deleted): Adjust.
712 * tui/tui-hooks.c (tui_event_create_breakpoint)
713 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
715 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
717 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
718 (procfs_remove_hw_watchpoint): Likewise.
720 2011-04-26 Michael Walle <michael@walle.cc>
722 * remote.c (remote_start_remote): Ack packet after sending the
725 2011-04-26 Yao Qi <yao@codesourcery.com>
727 * linux-nat.c: Move common macros to ...
728 Include linux-ptrace.h.
729 * common/linux-ptrace.h: ... here. New.
731 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
733 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
734 !objfile_has_partial_symbols. New comment.
735 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
736 SYM_READ_PSYMBOLS is not present. Extend the comment.
737 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
739 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
741 * defs.h (ENUM_BITFIELD): Remove.
743 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
744 Eli Zaretskii <eliz@gnu.org>
746 * NEWS: Document the new gdbserver --once option.
748 2011-04-21 Jie Zhang <jzhang918@gmail.com>
750 * MAINTAINERS: Update my email address.
752 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
754 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
755 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
756 function call if __STDC_ISO_10646__ macro is defined.
757 (intermediate_encoding): New prototype.
758 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
759 to generate compile time error for unsupported gdb_wchar_t size.
760 (ENDIAN_SUFFIX): New macro.
761 (intermediate_encoding): New function.
763 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
765 * ada-lang.c (struct add_partial_datum): Update the comment for
766 expand_partial_symbol_name.
767 (ada_add_partial_symbol_completions): Rename to ...
768 (ada_expand_partial_symbol_name): ... here, change return type, update
769 function comment, call symbol_completion_match instead of
770 symbol_completion_add.
771 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
772 and ada_expand_partial_symbol_name.
773 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
775 (dw2_map_symbol_names): Remove.
776 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
777 * psymtab.c (map_symbol_names_psymtab): Remove.
778 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
779 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
781 (psym_functions): Unlist map_symbol_names_psymtab.
782 (map_partial_symbol_names): Rename to ...
783 (expand_partial_symbol_names): ... here, change the FUN type, call
784 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
785 * psymtab.h (map_partial_symbol_names): Rename to ...
786 (expand_partial_symbol_names): ... here, change the FUN type.
787 * symfile.h (struct quick_symbol_functions): Update the description of
788 expand_symtabs_matching. Remove map_symbol_names.
789 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
790 (struct add_name_data): Update the comment for
791 expand_partial_symbol_name.
792 (add_partial_symbol_name): Rename to ...
793 (expand_partial_symbol_name): ... here. Replace
794 completion_list_add_name call by strncmp.
795 (default_make_symbol_completion_list_break_on): Use now
796 expand_partial_symbol_names and expand_partial_symbol_name.
797 * symtab.h (enum search_domain): New element ALL_DOMAIN.
799 2011-04-20 Tom Tromey <tromey@redhat.com>
801 * dwarf2read.c (save_gdb_index_command): Replace format
802 documentation with a pointer to the manual.
804 2011-04-20 Pedro Alves <pedro@codesourcery.com>
806 * regcache.c: Include remote.h.
807 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
808 (regcache_dump): Handle regcache_dump_remote.
809 (maintenance_print_remote_registers): New function.
810 (_initialize_regcache): Install "maint print remote-registers"
812 * remote.c (map_regcache_remote_table): New function, factored out
814 (init_remote_state): ... here.
815 (remote_register_number_and_offset): New.
816 * remote.h (remote_register_number_and_offset): Declare.
818 2011-04-20 Pedro Alves <pedro@codesourcery.com>
820 * regcache.c (get_thread_arch_regcache): If creating a regcache for
821 null_ptid, assume and allow a NULL address space, instead of
822 asking the target for the ptid's address space.
823 * infrun.c (ptid_is_pid): Remove assertion.
825 2011-04-19 Tom Tromey <tromey@redhat.com>
827 * windows-tdep.c (windows_xfer_shared_library):
828 * windows-nat.c (get_module_name, windows_make_so):
829 * v850-tdep.c (v850_handle_pushm):
830 * utils.c (null_cleanup, gdb_realpath):
831 * ui-out.c (get_next_header):
832 * tracepoint.c (clear_traceframe_info):
833 * symtab.c (lookup_symtab):
834 * serial.h (struct serial_ops):
835 * mipsread.c (read_alphacoff_dynamic_symtab):
836 * infcmd.c (print_return_value):
837 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
838 * f-exp.y (parse_number):
839 * exceptions.c (catch_exceptions):
840 * dummy-frame.c (dummy_frame_this_id):
841 * defs.h (struct cleanup):
842 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
843 * arm-tdep.c (arm_push_dummy_call):
844 * amd64-tdep.h (amd64_collect_xsave):
845 * amd64-tdep.c (amd64_collect_xsave):
846 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
847 * README (typing): Remove duplicate words.
848 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
849 * infrun.c (siginfo_value_read): Fix typo.
850 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
851 * top.c (source_line_number): Add comma.
853 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
855 * thread.c (any_live_thread_of_process): Prioritize threads
856 that are not executing.
857 * gdbthread.h (any_live_thread_of_process): Update comment
860 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
862 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
863 (scan_xcoff_symtab): Likewise.
865 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
867 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
870 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
871 Pedro Alves <pedro@codesourcery.com>
873 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
874 variables to simplify code and avoid == operator at end of
875 line as this is against GNU coding standards.
877 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
879 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
880 lm_name to name_lm to avoid conflict with lm_name function.
882 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
884 ARI fixes: Use only lowercase function name for static functions.
885 * nto-tdep.c (LM_ADDR): Rename to...
886 (lm_addr): New function name.
887 (nto_relocate_section_addresses): Adapt to change above.
888 * solib-sunos.c (LM_ADDR): Rename to...
889 (lm_addr): New function name.
890 (LM_NEXT): Rename to...
891 (lm_next): New function name.
892 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
893 function name changes above.
894 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
895 (lm_addr_from_link_map): New function name.
896 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
897 (has_lm_dynamic_from_link_map): New function name.
898 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
899 (lm_dynamic_from_link_map): New function name.
900 (LM_ADDR_CHECK): Rename to...
901 (lm_addr_check): New function name.
902 (LM_NEXT): Rename to...
903 (lm_next): New function name.
904 (LM_PREV): Rename to...
905 (lm_prev): New function name.
906 (LM_NAME): Rename to...
907 (lm_name): New function name.
908 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
909 (ignore_first_link_map_entry): New function name.
910 (svr4_keep_data_in_core): Adapt to function name changes above.
911 (svr4_current_sos): Likewise.
912 (enable_break): Likewise.
913 (svr4_relocate_section_addresses): Likewise.
915 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
918 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
919 sprintf. Simplify code and avoid loosing memory.
920 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
921 (call0_frame_cache): Remove && operator from end of line.
923 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
925 Fix libraries displacement if they change whether they were prelinked.
926 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
927 does not match. Comment why.
929 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
931 * corelow.c: Include wrapper.h.
932 (core_open): Call now gdb_target_find_new_threads.
933 * wrapper.c: Include target.h.
934 (gdb_target_find_new_threads): New.
935 * wrapper.h (gdb_target_find_new_threads): New declaration.
937 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
939 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
940 even if !TARGET_HAS_EXECUTION.
942 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
944 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
945 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
946 bfd_get_synthetic_symtab.
947 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
948 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
949 parameter parent, remove the call to add_separate_debug_objfile.
950 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
951 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
952 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
953 parent, new comment for it, call add_separate_debug_objfile for it.
954 (symbol_file_add_separate): Pass objfile as the parameter parent,
955 remove the call to add_separate_debug_objfile.
956 (symbol_file_add_from_bfd): New parameter parent, pass it.
957 (symbol_file_add): Pass NULL to the new parameter parent.
958 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
960 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
962 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
965 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
967 Fix Python access to inlined frames.
968 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
969 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
971 2011-04-15 Tom Tromey <tromey@redhat.com>
973 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
975 2011-04-15 Gary Benson <gbenson@redhat.com>
977 * MAINTAINERS: Add myself to write-after-approval section.
979 2011-04-14 Mike Frysinger <vapier@gentoo.org>
981 * remote-sim.c (sim_command_completer): New function.
982 (_initialize_remote_sim): Set completer to sim_command_completer.
984 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
986 * breakpoint.c (print_exception_catchpoint): Rename to ...
987 (print_it_exception_catchpoint): ... this.
988 (gnu_v3_exception_catchpoint_ops): Update with new name
989 for print_it_exception_catchpoint.
991 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
993 * MAINTAINERS: Add myself for write after approval privileges.
995 2011-04-13 Marek Polacek <mpolacek@redhat.com>
997 * MAINTAINERS: Add myself as a write-after-approval maintainer.
999 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1001 * breakpoint.c (watch_command_1): Remove colon from exp_string.
1003 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1005 * breakpoint.c (save_breakpoints): Verify whether
1006 breakpoint_ops.print_recreate is defined before calling it.
1008 2011-04-11 Gary Benson <gbenson@redhat.com>
1010 Fix failure with --enable-maintainer-mode.
1011 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
1013 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1016 * symtab.c (search_symbols): Reorder the KIND description in the
1017 function comment. Remove the unused 4th element of types, types2,
1018 types3 and types4. New gdb_assert on KIND.
1019 (symtab_symbol_info): Remove the unused 4th element of classnames.
1020 New gdb_assert on KIND.
1021 * symtab.h (enum search_domain): New warning in the enum comment.
1022 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
1025 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1027 Fix crash of gdb save-index on a STABS file.
1028 * dwarf2read.c (write_psymtabs_to_index): Return also on no
1031 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1033 Fix DW_AT_accessibility compatibility with gcc-4.6+.
1034 * dwarf2read.c: Include ctype.h.
1035 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
1037 (dwarf2_add_field): Fix new_field->accessibility by calling
1038 dwarf2_default_access_attribute. Restructure setting accessibility
1040 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
1041 is_private and is_protected by calling
1042 dwarf2_default_access_attribute.
1044 2011-04-08 Kevin Buettner <kevinb@redhat.com>
1046 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
1047 to the initialization.
1049 2011-04-08 Steve Ellcey <sje@cup.hp.com>
1051 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
1054 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
1056 Remove support for old Cygwin 1.5 versions.
1057 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
1058 function on old Cygwin version.
1059 * windows-nat.c: Remove cygwin version check and always define
1060 __USEWIDE for Cygwin compilation.
1062 2011-04-07 Yao Qi <yao@codesourcery.com>
1064 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
1066 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
1067 (arm_copy_svc): Remove parameters INSN and TO.
1068 (decode_svc_copro): Update caller.
1069 * arm-tdep.h (struct displaced_step_closure): Remove parameters
1070 from function pointer `copy_svc_os'.
1072 2011-04-07 Yao Qi <yao@codesourcery.com>
1074 * arm-tdep.c (cleanup_branch): Set a correct return address in
1075 LR for ARM and Thumb.
1077 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1080 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
1081 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
1082 in the function comment, a new note on values compatibility.
1083 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
1084 * symtab.h (SYMBOL_HASH_NEXT): New.
1086 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
1088 * ppc-linux-nat.c (check_condition): Add len output parameter.
1089 Set it based on the memory region referenced in the condition
1090 expression. Update all callers.
1092 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1094 Fix crash regression on systems featuring .gdb_index.
1095 * objfiles.c (free_objfile): Move the
1096 forget_cached_source_info_for_objfile call earlier. Comment it.
1097 Extend the comment for objfile_free_data.
1099 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1101 Fix regression of displaying the debug format.
1102 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
1105 2011-04-04 Tom Tromey <tromey@redhat.com>
1107 * cli/cli-interp.c (struct captured_execute_command_args):
1109 (do_captured_execute_command): Remove.
1110 (safe_execute_command): Use TRY_CATCH.
1111 * cli/cli-script.c (struct wrapped_read_command_file_args):
1113 (wrapped_read_command_file): Remove.
1114 (script_from_file): Use TRY_CATCH.
1115 * exceptions.c (catch_exception): Remove.
1116 * exceptions.h (catch_exception): Remove.
1117 (deprecated_throw_reason): Update comment.
1118 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
1119 argument to 'context'.
1120 (mi_execute_command): Use TRY_CATCH.
1121 * remote.c (struct start_remote_args): Remove.
1122 (remote_start_remote): Update; change arguments.
1123 (remote_open_1): Use TRY_CATCH.
1125 2011-04-04 Tom Tromey <tromey@redhat.com>
1127 * tracepoint.c (scope_info): Update.
1128 * symtab.c (decode_line_spec): Update.
1129 * python/python.c (gdbpy_decode_line): Update.
1130 * linespec.h (decode_line_1): Update.
1131 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
1132 (decode_compound, find_method, symtab_from_filename)
1133 (decode_variable): Likewise.
1134 * cli/cli-cmds.c (edit_command): Update.
1135 (list_command): Update.
1136 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
1138 (create_breakpoint): Update.
1139 (until_break_command): Update.
1140 (addr_string_to_sals): Update.
1141 (decode_line_spec_1): Update.
1143 2011-04-04 Tom Tromey <tromey@redhat.com>
1145 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
1146 (do_captured_parse_breakpoint): Remove.
1147 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
1148 Use TRY_CATCH directly.
1150 2011-04-04 Tom Tromey <tromey@redhat.com>
1152 * symtab.h (free_symtab): Remove.
1153 (forget_cached_source_info_for_objfile): Declare.
1154 * symmisc.c (free_symtab): Remove.
1155 * source.c (forget_cached_source_info_for_objfile): New function.
1156 (forget_cached_source_info): Use it.
1157 * objfiles.c (free_objfile): Simplify check before calling
1158 clear_current_source_symtab_and_line. Call
1159 forget_cached_source_info_for_objfile.
1161 2011-04-04 Tom Tromey <tromey@redhat.com>
1163 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
1164 (new_symtab): Don't set `free_code' on symtab.
1165 (new_linetable): Properly handle size==0.
1166 * symtab.h (struct symtab) <free_code, free_func>: Remove.
1167 * symmisc.c (free_symtab): Don't free the linetable. Don't call
1169 * jv-lang.c (struct jv_per_objfile_data): New.
1170 (jv_per_objfile_free): Free the data.
1171 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
1172 (get_java_class_symtab): Set the `dict' field on the
1173 jv_per_objfile_data.
1174 (free_class_block): Remove.
1175 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
1178 2011-04-04 Tom Tromey <tromey@redhat.com>
1180 * symfile.c (reread_symbols): Update.
1181 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
1183 * objfiles.c (allocate_objfile): Update.
1184 * cp-support.h (cp_check_possible_namespace_symbols): Don't
1186 * cp-namespace.c (lookup_symbol_file): Don't call
1187 lookup_possible_namespace_symbol.
1188 (initialize_namespace_symtab, get_possible_namespace_block)
1189 (free_namespace_block, cp_check_possible_namespace_symbols)
1190 (check_possible_namespace_symbols_loop)
1191 (check_one_possible_namespace_symbol)
1192 (lookup_possible_namespace_symbol): Remove.
1193 (maintenance_cplus_namespace): Replace with notice.
1194 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
1196 2011-04-04 Tom Tromey <tromey@redhat.com>
1198 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
1199 * symtab.h (struct symtab) <producer, debugformat>: Now const.
1200 * symmisc.c (free_symtab): Don't free debugformat.
1201 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
1202 (record_debugformat, record_producer): Document.
1203 * buildsym.c (end_symtab): Don't save debugformat and producer
1205 (end_symtab): Don't free debugformat and producer fields.
1206 (record_debugformat): Don't call xstrdup.
1207 (record_producer): Likewise.
1209 2011-04-04 Tom Tromey <tromey@redhat.com>
1211 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
1212 (source_line_charpos, source_charpos_line): Remove.
1214 2011-04-04 Tom Tromey <tromey@redhat.com>
1216 * symtab.h (domain_enum): Split in two...
1217 (enum search_domain): New.
1218 (search_symbols): Update.
1219 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
1220 redundant declarations.
1221 (search_symbols): Change 'kind' argument to search_domain.
1223 (print_symbol_info): Likewise.
1224 (symtab_symbol_info): Likewise.
1225 * symfile.h (struct quick_symbol_functions)
1226 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
1227 <expand_symtabs_matching>: Likewise.
1228 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
1229 (expand_symtabs_matching_via_partial): Update.
1230 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
1231 (dw2_expand_symtabs_for_function): Update.
1232 * block.h: Moved anonymous enum...
1233 * defs.h (enum block_enum): ... here. Now named.
1235 2011-04-03 Joel Brobecker <brobecker@adacore.com>
1237 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
1238 * version.in: Bump version to 7.3.50.20110403-cvs.
1240 2011-04-03 Joel Brobecker <brobecker@adacore.com>
1242 * NEWS: Create a new section for the next release branch.
1243 Rename the section of the current branch, now that it has
1246 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1248 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
1249 for "fpscr" in target description.
1251 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1253 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
1254 initialize it. Delay HASH initialization. Strip the part after open
1255 parenthesis for languages with qualifiers. Call do_cleanups.
1257 2011-04-01 Tom Tromey <tromey@redhat.com>
1259 * utils.c (report_command_stats): Don't print `-' for negative
1262 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
1264 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
1265 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
1268 2011-04-01 Joel Brobecker <brobecker@adacore.com>
1270 * breakpoint.h (bpdisp_text): Add declaration.
1271 * breakpoint.c (bpdisp_text): Make non-static.
1272 * ada-lang.c: #include "mi/mi-common.h".
1273 (print_it_exception): Rewrite to improve GDB/MI output.
1275 2011-04-01 Pedro Alves <pedro@codesourcery.com>
1277 * arm-tdep.h (struct address_space): Add forward declaration.
1279 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1281 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
1282 * arm-tdep.c (arm_override_mode): New global.
1283 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
1284 execution mode heuristics.
1285 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
1286 second single-step breakpoint if needed, using
1287 arm_insert_single_step_breakpoint.
1288 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
1289 ARM execution mode, do not call thumb_get_next_pc_raw.
1290 (arm_get_next_pc): Encode execution mode in return value. Call
1291 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
1292 (arm_insert_single_step_breakpoint): New function.
1293 (arm_software_single_step): Call it.
1294 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
1295 argument to return execution mode of sigreturn target.
1296 (arm_linux_syscall_next_pc): Use it.
1297 (arm_linux_copy_svc): Update call.
1298 (arm_linux_software_single_step): Call
1299 arm_insert_single_step_breakpoint.
1301 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1303 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
1306 2011-03-31 Tom Tromey <tromey@redhat.com>
1308 * varobj.c (update_dynamic_varobj_children): Properly handle
1309 errors from iterator.
1311 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1313 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
1314 struct linkage name twice.
1316 2011-03-31 Tom Tromey <tromey@redhat.com>
1318 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
1319 missing ">" to message.
1321 2011-03-31 Tom Tromey <tromey@redhat.com>
1323 * varobj.c (instantiate_pretty_printer): Remove duplicate
1326 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
1328 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
1329 if neither saved value nor register available (e.g. signal frame).
1331 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1333 * macroexp.c (expand): Avoid uninitialized variable
1336 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1338 * breakpoint.c (break_range_command): Fix typo in comment.
1340 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1341 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1343 Implement support for PowerPC BookE ranged breakpoints.
1344 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
1345 * breakpoint.h (struct bp_target_info) <length>: New member
1347 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
1348 instead of struct breakpoint as argument, and also add ASPACE
1349 and BP_ADDR arguments. Update all callers.
1350 (struct breakpoint_ops) <print_one_detail>: New method.
1351 (struct breakpoint) <addr_string_range_end>: New member variable.
1352 * breakpoint.c (breakpoint_location_address_match): Add function
1354 (insert_bp_location): Set bl->target_info.length.
1355 (breakpoint_here_p): Call breakpoint_location_address_match.
1356 (moribund_breakpoint_here_p): Likewise.
1357 (regular_breakpoint_inserted_here_p): Likewise.
1358 (breakpoint_thread_match): Likewise.
1359 (bpstat_stop_status): Likewise.
1360 (bpstat_check_location): Move call to
1361 breakpoint_ops.breakpoint_hit to the top.
1362 (print_one_breakpoint_location): Call
1363 breakpoint_ops.print_one_detail if available.
1364 (breakpoint_address_match_range): New function.
1365 (breakpoint_location_address_match): Likewise.
1366 (breakpoint_locations_match): Compare the length field of the
1368 (hw_breakpoint_used_count): Count resources used by all locations
1369 in a breakpoint, and use breakpoint_ops.resources_needed if
1371 (breakpoint_hit_ranged_breakpoint): New function.
1372 (resources_needed_ranged_breakpoint): Likewise.
1373 (print_it_ranged_breakpoint): Likewise.
1374 (print_one_ranged_breakpoint): Likewise.
1375 (print_one_detail_ranged_breakpoint): Likewise.
1376 (print_mention_ranged_breakpoint): Likewise.
1377 (print_recreate_ranged_breakpoint): Likewise.
1378 (ranged_breakpoint_ops): New structure.
1379 (find_breakpoint_range_end): New function.
1380 (break_range_command): Likewise.
1381 (delete_breakpoint): Free addr_string_range_end.
1382 (update_breakpoint_locations): Add SALS_END argument. Update
1383 all callers. Calculate breakpoint length if a non-zero SALS_END
1384 is given. Call breakpoint_locations_match instead of
1385 breakpoint_address_match.
1386 (reset_breakpoint): Find SaL of the end of the range if B is a
1388 (_initialize_breakpoint): Register break-range command.
1389 * defs.h (print_core_address): Add function prototype.
1390 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
1392 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
1393 (ppc_linux_remove_hw_breakpoint): Likewise.
1394 (_initialize_ppc_linux_nat): Initialize
1395 to_ranged_break_num_registers.
1396 * target.c (update_current_target): Add comment about
1397 to_ranged_break_num_registers.
1398 (target_ranged_break_num_registers): New function.
1399 * target.h (struct target_ops) <to_ranged_break_num_registers>:
1401 (target_ranged_break_num_registers): Add function prototype.
1402 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
1403 * utils.c (print_core_address): ... here.
1405 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
1407 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
1408 variable compiler warning.
1410 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
1412 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
1414 (re_set_breakpoint): ... to here ...
1415 (addr_string_to_sals): ... and here.
1417 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
1419 * Makefile.in (SFILES): Add missing C sources.
1420 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
1421 Add missing headers.
1423 2011-03-29 Mike Frysinger <vapier@gentoo.org>
1425 * .gitignore: New file.
1427 2011-03-29 Mike Frysinger <vapier@gentoo.org>
1429 * NEWS: Mention new cfi device simulation.
1431 2011-03-29 Tom Tromey <tromey@redhat.com>
1433 * dwarf2read.c (fixup_partial_die): Handle linkage name on
1434 otherwise anonymous types.
1435 (dwarf2_name): Likewise.
1436 * valops.c (value_struct_elt_for_reference): Refine artificial
1437 type logic. Call error if j==-1.
1439 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
1441 Fix false GCC warning.
1442 * infcall.c (find_function_addr): Initialize funaddr.
1444 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
1446 Fix mingw compilation with --enable-targets=all.
1447 * remote-mips.c (gdb_usleep.h): Include header.
1448 (mips_enter_debug): Use gdb_usleep instead of sleep.
1450 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1452 Support resolution of STT_GNU_IFUNC via breakpoints.
1453 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
1454 bp_gnu_ifunc_resolver_return.
1455 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
1456 the loop. Support bp_gnu_ifunc_resolver and
1457 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
1458 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
1460 (bptype_string, print_one_breakpoint_location): Support
1461 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
1462 (user_settable_breakpoint): Return true also for
1463 bp_gnu_ifunc_resolver.
1464 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
1465 bp_gnu_ifunc_resolver_return.
1466 (set_breakpoint_location_function): New parameter explicit_loc,
1467 describe it. Call find_pc_partial_function_gnu_ifunc with new
1468 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
1469 EXPLICIT_LOC is not set.
1470 (set_raw_breakpoint): Set EXPLICIT_LOC for
1471 set_breakpoint_location_function.
1472 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
1473 set_breakpoint_location_function.
1474 (mention): Support bp_gnu_ifunc_resolver and
1475 bp_gnu_ifunc_resolver_return.
1476 (add_location_to_breakpoint): Set EXPLICIT_LOC for
1477 set_breakpoint_location_function.
1478 (update_breakpoint_locations): Remove static.
1479 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
1480 bp_gnu_ifunc_resolver_return.
1481 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
1482 bp_gnu_ifunc_resolver_return.
1483 (update_breakpoint_locations): New declaration.
1484 * elfread.c: Include gdbthread.h and regcache.h.
1485 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
1487 (elf_gnu_ifunc_fns): Install them.
1488 * minsyms.c (stub_gnu_ifunc_resolver_stop)
1489 (stub_gnu_ifunc_resolver_return_stop): New functions.
1490 (stub_gnu_ifunc_fns): Install them.
1491 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
1492 and gnu_ifunc_resolver_return_stop.
1493 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
1495 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1497 STT_GNU_IFUNC reader implementation.
1498 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
1499 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
1500 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
1501 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
1502 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
1503 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
1504 (elf_gnu_ifunc_resolve_addr): New.
1505 (elf_symfile_read): Call elf_rel_plt_read.
1506 (elf_gnu_ifunc_fns): New.
1507 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
1508 Install elf_gnu_ifunc_fns.
1509 * infcall.c (find_function_return_type): New function.
1510 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
1511 * minsyms.c (stub_gnu_ifunc_resolve_addr)
1512 (stub_gnu_ifunc_resolve_name): New functions.
1513 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
1514 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
1515 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
1517 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1519 Code cleanup for later STT_GNU_IFUNC support.
1520 * infcall.c (find_function_addr): Remove variable code, use explicit
1521 dereferences for it. Move VALUE_TYPE initialization later.
1523 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1525 GDB find_pc_partial_function support for STT_GNU_IFUNC.
1526 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
1527 (clear_pc_function_cache): Clear it.
1528 (find_pc_partial_function): Rename to ...
1529 (find_pc_partial_function_gnu_ifunc): ... this function. New
1530 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
1531 (find_pc_partial_function): New wrapper for this function.
1532 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
1534 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1536 GDB internal type support for STT_GNU_IFUNC.
1537 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
1538 (elf_symtab_read): Set mst_text_gnu_ifunc for
1539 BSF_GNU_INDIRECT_FUNCTION.
1540 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
1541 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
1542 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
1543 nodebug_got_plt_symbol.
1544 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
1545 (TYPE_GNU_IFUNC): New.
1546 (struct main_type): New field flag_gnu_ifunc.
1547 (struct builtin_type): New field builtin_func_func.
1548 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
1549 nodebug_got_plt_symbol.
1550 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
1551 (in_gnu_ifunc_stub): New.
1552 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
1554 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
1555 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
1556 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
1558 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
1559 * symtab.c (search_symbols): Likewise.
1560 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
1561 and mst_slot_got_plt.
1562 (in_gnu_ifunc_stub): New declaration.
1564 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1566 Support a ring of related breakpoints.
1567 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
1568 other functions, add gdb_assert.
1569 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
1570 watchpoint_del_at_next_stop.
1571 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
1572 (bpstat_stop_status): Handle ring in related_breakpoint.
1573 (set_raw_breakpoint_without_location): Initialize ring in
1575 (delete_breakpoint): Handle ring in related_breakpoint, use
1576 watchpoint_del_at_next_stop.
1577 (map_breakpoint_numbers): Handle ring in related_breakpoint.
1579 2011-03-28 Tom Tromey <tromey@redhat.com>
1582 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
1583 with `language_minimal'.
1585 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
1587 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
1588 instead of checking for STT_ARM_TFUNC symbol type.
1590 2011-03-25 Tom Tromey <tromey@redhat.com>
1592 * linespec.c (symbol_found): Restore line-based result for
1593 non-LOC_LABEL symbols.
1595 2011-03-25 Kai Tietz <ktietz@redhat.com>
1597 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
1598 instead of strcmp for comparison.
1599 (tui_source_is_displayed): Likewise.
1600 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
1602 2011-03-24 Mark Wielaard <mjw@redhat.com>
1604 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
1606 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
1607 (find_partial_die_in_comp_unit): Likewise in comment.
1608 (read_attribute_value): Likewise.
1609 (lookup_die_type): Likewise.
1610 (dwarf_form_name): Likewise.
1611 (dump_die_shallow): Likewise.
1612 (follow_die_ref_or_sig): Likewise.
1614 2011-03-24 Tom Tromey <tromey@redhat.com>
1616 PR breakpoints/11816:
1617 * linespec.c (decode_line_1): Parse `function:label' linespecs.
1618 (decode_compound): Update.
1619 (find_function_symbol): New function.
1620 (decode_dollar): Update.
1621 (decode_label): Add 'function_symbol' parameter. Handle
1622 function-relative labels.
1623 (decode_variable): Update.
1624 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
1625 not its line. Set `special_display' and canonical name for
1628 2011-03-24 Tom Tromey <tromey@redhat.com>
1630 * linespec.h (struct linespec_result) <special_display>: New
1632 * breakpoint.h (struct breakpoint) <display_canonical>: New
1634 * breakpoint.c (print_breakpoint_location): Respect
1636 (create_breakpoint_sal): Add 'display_canonical' parameter.
1637 (create_breakpoints_sal): Update.
1638 (create_breakpoint): Update.
1640 2011-03-24 Tom Tromey <tromey@redhat.com>
1642 * symtab.c (decode_line_spec): Update.
1643 * linespec.c (build_canonical_line_spec): Change type of
1645 (decode_line_2, decode_line_1, decode_objc, decode_compound)
1646 (find_method, decode_all_digits, decode_dollar, decode_label)
1647 (symbol_found): Likewise.
1648 (init_linespec_result): New function.
1649 * breakpoint.c (struct captured_parse_breakpoint_args)
1650 <canonical_p>: New field, replaces addr_string_p.
1651 (create_breakpoints_sal): Add 'canonical' parameter, replacing
1653 (parse_breakpoint_sals): Likewise.
1654 (do_captured_parse_breakpoint): Update.
1655 (create_breakpoint): Use struct linespec_result.
1656 (until_break_command): Update.
1657 (breakpoint_re_set_one): Update.
1658 (decode_line_spec_1): Update.
1659 * linespec.h (struct linespec_result): New.
1660 (init_linespec_result): Declare.
1662 2011-03-23 Pedro Alves <pedro@codesourcery.com>
1664 * regcache.c (regcache_raw_read): If the target didn't supply a
1665 given raw register, mark it as unavailable.
1667 2011-03-23 Kai Tietz <ktietz@redhat.com>
1669 * breakpoint.c (clear_command): Use filename_cmp
1670 instead of strcmp for comparison.
1671 * buildsym.c (watch_main_source_file_lossage): Likewise.
1672 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
1673 checking just for slash.
1674 * dbxread.c (read_dbx_symtab): Use lbasename instead of
1675 strrchr and filename_cmp instead of strcmp for filenames.
1676 (add_old_header_file): Use filename_cmp
1677 instead of strcmp for comparison.
1678 * exec.c (exec_set_section_address): Likewise.
1679 * macrotab.c (macro_lookup_inclusion): Likewise.
1680 (macro_lookup_inclusion): Likewise.
1681 * elfread.c (_initialize_elfread): Likewise.
1682 (elfstab_offset_sections): Likewise.
1683 (elfstab_offset_sections): Use lbasename instead of
1685 * mdebugread.c (parse_partial_symbols): Likewise.
1686 (arse_partial_symbols): Use filename_(n)cmp instead of
1687 str(n)cmp for comparison.
1688 * minsyms.c (lookup_minimal_symbol): Likewise.
1689 * psymtab.c (read_psymtabs_with_filename): Likewise.
1690 * solib.c (solib_read_symbols): Likewise.
1691 (reload_shared_libraries_1): Likewise.
1692 * symmisc.c (maintenance_print_symbols): Likewise.
1693 * symfile.c (separate_debug_file_exists): Likewise.
1694 (reread_symbols): Likewise.
1695 (find_separate_debug_file_by_debuglink): Likewise.
1696 * remote-fileio.c (remote_fileio_func_rename): Likewise.
1697 * source.c (add_path): Likewise.
1698 * symtab.c (filename_seen): Likewise.
1699 (file_matches): Likewise.
1700 (print_symbol_info): Likewise.
1701 (maybe_add_partial_symtab_filename): Likewise.
1702 (make_source_files_completion_list): Likewise.
1703 * xml-syscall.c (init_sysinfo): Likewise.
1704 * windows-nat.c (_initialize_check_for_gdb_ini): Use
1705 IS_DIR_SEPARATOR for checking for trailing path separator.
1707 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1709 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
1710 label abort_expression.
1711 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
1712 DWARF_VALUE_OPTIMIZED_OUT.
1714 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1717 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
1718 to linkage_name. Invert its value. Update the function comment.
1719 (c_type_print_varspec_suffix): Invert it at the caller.
1720 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
1722 2011-03-22 Pedro Alves <pedro@codesourcery.com>
1724 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
1725 errors when reading the `stop_pc'.
1726 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
1729 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
1731 * NEWS: Document gdb.Write stream keyword.
1733 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1736 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1737 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
1738 (dwarf2_add_field): Fix new_field->accessibility for
1739 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
1741 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
1745 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
1746 other error classes. Do not print stack trace.
1748 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1750 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
1751 (dwarf2_add_field): Fix new_field->accessibility for
1752 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
1754 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
1756 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
1757 encountering a load via a non-SP register.
1759 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
1761 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
1762 field in returned unwinder.
1764 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1766 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
1768 2012-03-21 Joel Brobecker <brobecker@adacore.com>
1770 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
1773 2012-03-18 Pedro Alves <pedro@codesourcery.com>
1775 * frame.c (frame_unwind_register): Throw an error if unwinding the
1777 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
1778 an unwind stop reason.
1779 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
1780 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
1781 UNWIND_UNAVAILABLE>: New.
1782 * inline-frame.c (inline_frame_unwind): Install
1783 default_frame_unwind_stop_reason.
1784 * frame-unwind.c: Include "exceptions.h".
1785 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
1786 (default_frame_unwind_stop_reason): New.
1787 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
1788 (default_frame_unwind_stop_reason): Declare.
1789 (struct frame_unwind) <stop_reason>: New function pointer.
1791 * dummy-frame.c: Install default_frame_unwind_stop_reason.
1792 * dwarf2-frame.c: Include exceptions.h.
1793 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
1794 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
1795 computing the CFA. If such an error was thrown, set
1796 unavailable_retaddr.
1797 (dwarf2_frame_unwind_stop_reason): New.
1798 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
1800 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
1801 (dwarf2_signal_frame_unwind): Ditto.
1803 * amd64-tdep.c: Include "exceptions.h".
1804 (struct amd64_frame_cache): New field "base_p".
1805 (amd64_init_frame_cache): Clear it.
1806 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
1807 Avoid reading registers with functions that throw if the register
1808 is not necessary to compute the frame base.
1809 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
1810 swallowing NOT_AVAILABLE_ERROR.
1811 (amd64_frame_unwind_stop_reason): New.
1812 (amd64_frame_this_id): Don't build a frame id if the frame base
1814 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
1815 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1816 base_p if the frame base was computable.
1817 (amd64_sigtramp_frame_unwind_stop_reason): New.
1818 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
1819 frame base was unavailable.
1820 (amd64_sigtramp_frame_unwind): Install
1821 amd64_sigtramp_frame_unwind_stop_reason.
1822 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1823 base_p if the frame base was computable.
1824 (amd64_epilogue_frame_unwind_stop_reason): New.
1825 (amd64_epilogue_frame_this_id): Don't build a frame id if the
1826 frame base was unavailable.
1827 (amd64_epilogue_frame_unwind): Install
1828 amd64_epilogue_frame_unwind_stop_reason.
1829 * i386-tdep.c: Include "exceptions.h".
1830 (struct i386_frame_cache): New field "base_p".
1831 (i386_init_frame_cache): Clear it.
1832 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
1833 Avoid reading registers with functions that throw if the register
1834 is not necessary to compute the frame base.
1835 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
1836 swallowing NOT_AVAILABLE_ERROR.
1837 (i386_frame_unwind_stop_reason): New.
1838 (i386_frame_this_id): Don't build a frame id if the frame base was
1840 (i386_frame_prev_register): Handle unavailable SP.
1841 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
1842 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1843 base_p if the frame base was computable.
1844 (i386_epilogue_frame_unwind_stop_reason): New.
1845 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
1846 base was unavailable.
1847 (i386_epilogue_frame_unwind): Install
1848 i386_epilogue_frame_unwind_stop_reason.
1849 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1850 base_p if the frame base was computable.
1851 (i386_sigtramp_frame_unwind_stop_reason): New.
1852 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
1853 base was unavailable.
1854 (i386_sigtramp_frame_unwind): Install
1855 i386_sigtramp_frame_unwind_stop_reason.
1856 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
1857 type's size, not the register's.
1858 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
1860 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
1861 default_frame_unwind_stop_reason.
1862 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
1863 (alpha_heuristic_frame_unwind): Ditto.
1864 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
1865 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
1866 * avr-tdep.c (avr_frame_unwind): Ditto.
1867 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
1869 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
1870 * frv-tdep.c (frv_frame_unwind): Ditto.
1871 * h8300-tdep.c (h8300_frame_unwind): Ditto.
1872 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
1873 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
1874 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
1875 (hppa_stub_frame_unwind): Ditto.
1876 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
1877 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
1878 (ia64_libunwind_frame_unwind)
1879 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
1880 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
1881 * lm32-tdep.c (lm32_frame_unwind): Ditto.
1882 * m32c-tdep.c (m32c_unwind): Ditto.
1883 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
1884 * m32r-tdep.c (m32r_frame_unwind): Ditto.
1885 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
1886 * m68k-tdep.c (m68k_frame_unwind): Ditto.
1887 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
1888 * m88k-tdep.c (m88k_frame_unwind): Ditto.
1889 * mep-tdep.c (mep_frame_unwind): Ditto.
1890 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
1891 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
1892 (mips_stub_frame_unwind): Ditto.
1893 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
1894 * moxie-tdep.c (moxie_frame_unwind): Ditto.
1895 * mt-tdep.c (mt_frame_unwind): Ditto.
1896 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
1897 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
1898 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
1899 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
1900 (s390_sigtramp_frame_unwind): Ditto.
1901 * score-tdep.c (score_prologue_unwind): Ditto.
1902 * sh-tdep.c (sh_frame_unwind): Ditto.
1903 * sh64-tdep.c (sh64_frame_unwind): Ditto.
1904 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
1905 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
1906 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
1907 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
1908 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
1909 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
1910 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
1911 (sparc64obsd_trapframe_unwind): Ditto.
1912 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
1913 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
1914 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
1915 * v850-tdep.c (v850_frame_unwind): Ditto.
1916 * vax-tdep.c (vax_frame_unwind): Ditto.
1917 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
1918 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
1919 * xtensa-tdep.c (xtensa_unwind): Ditto.
1921 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1923 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
1924 there's always a frame. Use get_frame_pc_if_available instead of
1925 get_frame_pc, and if there's no PC available, don't look up a
1928 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1930 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
1933 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1935 * tracepoint.c (set_traceframe_context): Handle unavailable PC
1938 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1940 * frame.h (frame_unwind_caller_pc_if_available): Declare.
1941 * frame.c (frame_unwind_caller_pc_if_available): New.
1942 * stack.c (frame_info): Handle unavailable PC.
1944 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1946 * frame.c (frame_unwind_pc): Rename to ...
1947 (frame_unwind_pc_if_available): ... this. New `pc' output
1948 parameter. Change return type to int. Gracefully handle
1949 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
1950 happened, or 1 otherwise.
1951 (frame_unwind_pc): Reimplement on top of
1952 frame_unwind_pc_if_available.
1953 (get_frame_func): Rename to ...
1954 (get_frame_func_if_available): New `pc' output parameter. Change
1955 return type to int. Gracefully handle the PC not being available.
1956 (get_frame_func): Reimplement on top of
1957 get_frame_func_if_available.
1958 (select_frame): Handle the PC being unavailable.
1959 (get_prev_frame): Handle the PC being unavailable.
1960 (get_frame_pc_if_available): New.
1961 (get_frame_address_in_block_if_available): New.
1962 (find_frame_sal): Handle the frame PC not being available.
1963 * frame.h (get_frame_pc_if_available): Declare.
1964 (get_frame_address_in_block_if_available): Declare.
1965 (get_frame_func_if_available): Declare.
1966 * stack.c (print_frame_info): Handle the PC being unavailable.
1967 (find_frame_funname): Ditto.
1968 (print_frame): Handle the PC being unavailable.
1969 (get_frame_language): Ditto.
1970 * blockframe.c (get_frame_block): Ditto.
1971 * macroscope.c (default_macro_scope): Ditto.
1972 * tui/tui-stack.c (tui_show_frame_info): Ditto.
1974 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1976 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
1977 NOT_AVAILABLE_ERROR when evaluating the location expression.
1979 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1981 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
1982 returning that the register piece is unavailable/optimized out.
1983 (write_pieced_value): Handle get_frame_register_bytes returning
1984 that the register piece is unavailable/optimized out when doing a
1985 read-modify write of a bitfield.
1986 * findvar.c (value_from_register): Handle get_frame_register_bytes
1987 returning that the register piece is unavailable/optimized out.
1988 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
1989 and `unavailablep'. Throw error on bad debug info. Use
1990 frame_register instead of frame_register_read, to fill in the new
1992 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
1994 * valops.c: (value_assign): Adjust, and handle
1995 get_frame_register_bytes failing.
1996 * spu-tdep.c: Include exceptions.h.
1997 (spu_software_single_step): Adjust, and handle
1998 get_frame_register_bytes failing.
1999 (spu_get_longjmp_target): Ditto.
2000 * gdbarch.sh (register_to_value): Change to return int. New
2001 parameters `optimizedp' and `unavailablep'.
2002 * gdbarch.h, gdbarch.c: Regenerate.
2003 * i386-tdep.c (i386_register_to_value): Adjust to new
2004 gdbarch_register_to_value interface.
2005 * i387-tdep.c (i387_register_to_value): Ditto.
2006 * i387-tdep.h (i387_register_to_value): Ditto.
2007 * alpha-tdep.c (alpha_register_to_value): Ditto.
2008 * ia64-tdep.c (ia64_register_to_value): Ditto.
2009 * m68k-tdep.c (m68k_register_to_value): Ditto.
2010 * mips-tdep.c (mips_register_to_value): Ditto.
2011 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
2013 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2015 * findvar.c (value_of_register): Mark the value as unavailable, if
2016 the register is unavailable.
2017 * frame.h (frame_register_unwind): New `unavailablep' parameter.
2018 (frame_register): New `unavailablep' parameter.
2019 (frame_register_read): Update comment.
2020 * frame.c (frame_register_unwind): New `unavailablep' parameter.
2021 Set it if the register is unavailable. If the register is
2022 unavailable, clear the output buffer.
2023 (frame_register): New `unavailablep' parameter. Pass it down.
2024 (frame_unwind_register): Adjust.
2025 (put_frame_register): Adjust.
2026 (frame_register_read): Adjust. Also return false if the register
2028 (frame_register_unwind_location): Adjust.
2029 * sentinel-frame.c (sentinel_frame_prev_register): If the register
2030 is unavailable, mark the value accordingly.
2031 * stack.c (frame_info): Handle unavailable registers.
2033 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2035 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
2036 simplify, using regcache_cooked_read.
2038 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2040 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
2041 (regcache_raw_read_unsigned, regcache_raw_read_signed)
2042 (regcache_raw_read_unsigned, regcache_raw_read_part)
2043 (regcache_cooked_read, regcache_cooked_read_signed)
2044 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
2045 (regcache_cooked_read_ftype): Change return to enum
2047 * regcache.c: Include exceptions.h
2048 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
2049 (do_cooked_read): Change return to enum register_status. Always
2050 forward to regcache_cooked_read.
2051 (regcache_raw_read): Change return to enum register_status. If
2052 the register is not REG_VALID, memset the buffer. Return the
2054 (regcache_raw_read_signed): Handle non-REG_VALID registers and
2055 return the register's status.
2056 (regcache_raw_read_unsigned): Ditto.
2057 (regcache_cooked_read): Change return to enum register_status.
2058 Assert that with read-only regcaches, the register's status must
2059 be known. If the regcache is read-only, and the register is not
2060 REG_VALID, memset the buffer. Return the register's status.
2061 (regcache_cooked_read_signed): Change return to enum
2062 register_status. Handle non-REG_VALID registers and return the
2064 (regcache_cooked_read_unsigned): Change return to enum
2065 register_status. Handle non-REG_VALID registers and return the
2067 (regcache_xfer_part, regcache_raw_read_part)
2068 (regcache_cooked_read_part): Change return to enum
2069 register_status. Return the register's status.
2070 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
2072 (regcache_dump): Handle unavailable cooked registers.
2073 * frame.c (do_frame_register_read): Adjust interface to match
2074 regcache_cooked_read_ftype.
2075 * gdbarch.sh (pseudo_register_read): Change return to enum
2077 * gdbarch.h, gdbarch.c: Regenerate.
2079 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
2081 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
2082 register_status. If reading a raw register indicates the raw
2083 register is not valid, return the raw register's status,
2084 otherwise, return REG_VALID.
2085 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
2086 register_status. Handle non-REG_VALID raw registers and return
2087 the register's status.
2088 * arm-tdep.c (arm_neon_quad_read)
2089 (arm_pseudo_read): Change return to enum register_status. Handle
2090 non-REG_VALID raw registers and return the register's status.
2091 * avr-tdep.c (avr_pseudo_register_read): Ditto.
2092 * frv-tdep.c (frv_pseudo_register_read): Ditto.
2093 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
2094 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
2095 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
2097 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
2098 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
2099 (m32c_part_write, m32c_cat_read, m32c_cat_write)
2100 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
2101 (m32c_pseudo_register_read): Change return to enum
2102 register_status. Adjust.
2103 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
2104 enum register_status. Return the register's status.
2105 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
2106 register_status. Return the register's status.
2107 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
2108 * mips-tdep.c (mips_pseudo_register_read): Ditto.
2109 * mt-tdep.c (mt_pseudo_register_read): Ditto.
2110 * rs6000-tdep.c (move_ev_register_func): New typedef.
2111 (e500_move_ev_register): Use it. Change return to enum
2112 register_status. Return the register's status.
2113 (do_regcache_raw_read): New function.
2114 (do_regcache_raw_write): New function.
2115 (e500_pseudo_register_read): Change return to enum
2116 register_status. Return the register's status. Use
2117 do_regcache_raw_read.
2118 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
2119 (dfp_pseudo_register_read): Change return to enum register_status.
2120 Return the register's status.
2121 (vsx_pseudo_register_read): Ditto.
2122 (efpr_pseudo_register_read): Ditto.
2123 (rs6000_pseudo_register_read): Ditto.
2124 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
2125 register_status. Return the register's status.
2126 * sh64-tdep.c (pseudo_register_read_portions): New function.
2127 (sh64_pseudo_register_read): Change return to enum
2128 register_status. Use pseudo_register_read_portions. Return the
2130 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
2131 register_status. Return the register's status.
2132 * sh-tdep.c (pseudo_register_read_portions): New function.
2133 (sh_pseudo_register_read): Change return to enum register_status.
2134 Use pseudo_register_read_portions. Return the register's status.
2135 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
2136 enum register_status. Return the register's status.
2137 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
2138 * spu-tdep.c (spu_pseudo_register_read_spu)
2139 (spu_pseudo_register_read): Ditto.
2140 * xtensa-tdep.c (xtensa_register_read_masked)
2141 (xtensa_pseudo_register_read): Ditto.
2142 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
2144 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2146 * python/py-value.c (valpy_getitem): Fix formatting of error function
2149 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2151 ARI fixes: Add missing internationalization markups throughout
2153 * darwin-nat-info.c: Ditto.
2156 * mi/mi-main.c: Ditto.
2158 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2160 ARI fixes: Add missing internationalization markups throughout
2163 * cp-name-parser.y: Ditto.
2166 * objc-exp.y: Ditto.
2169 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2171 ARI fixes: Messages should have no trailing new lines.
2172 * darwin-nat.c (mach_check_error): Remove trailing new line from
2173 warning function call message.
2174 * record.c (bfdcore_read): Idem for error call.
2176 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2178 * common/signals.c (target_signal_from_host): Add _ markup to error
2179 function call message.
2180 (target_signal_to_host): Add _ markup and remove trailing new line
2181 from warning call message.
2182 (target_signal_from_command): Add _ markup to error function call
2185 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
2189 * python/python.c (gdbpy_write): Accept a stream argument and
2190 operate to the appropriate stream.
2191 (gdbpy_flush): Likewise.
2192 (_initialize_python): Add stream constants.
2193 (finish_python_initialization): Add GdbOutputErrorFile class.
2195 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
2197 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2199 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
2201 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
2202 to store_signed_integer. Add debug message when relocating CALL
2203 instructions. Fix formatting of debug message.
2204 * i386-tdep.c (i386_relocate_instruction): Ditto.
2206 2011-03-17 Joel Brobecker <brobecker@gnat.com>
2208 * target.h (struct target_ops): Remove to_lookup_symbol field.
2209 (target_lookup_symbol): Delete macro.
2210 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
2211 (update_current_target, setup_target_debug): Remove handling
2212 of to_lookup_symbol target_ops field.
2213 * ada-tasks.c (get_known_tasks_addr): Remove use of
2214 target_lookup_symbol.
2215 * coffread.c (coff_symtab_read): Likewise.
2216 * dbxread.c (read_dbx_symtab): Ditto.
2218 2011-03-17 Joel Brobecker <brobecker@gnat.com>
2221 * configure.ac: Add getthrds declaration check.
2222 * configure, config.in: Regenerate.
2223 * aix-thread.c (getthrds): Declare only if not already declared
2224 in procinfo.h. More declaration out of get_signaled_thread to
2227 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
2229 * python/py-symtab.c: Populate symtab_object_methods,
2231 (stpy_is_valid): New function.
2232 (salpy_is_valid): Ditto.
2233 * python/py-symbol.c: Declare symbol_object_methods. Populate.
2234 (sympy_is_valid): New function.
2235 * python/py-objfile.c: Declare objfile_object_methods. Populate.
2236 (objfpy_is_valid): New function.
2237 * python/py-inferior.c: Populate inferior_object_methods.
2238 (infpy_is_valid): New function.
2239 * python/py-infthread.c: Populate thread_object_methods.
2240 (thpy_is_valid): New function.
2241 * python/py-block.c: Declare block_object_methods. Populate. Declare
2242 block_iterator_object_methods. Populate.
2243 (blpy_is_valid): New function.
2244 (blpy_iter_is_valid): Ditto.
2246 2011-03-16 Keith Seitz <keiths@redhat.com>
2248 * linespec.c (find_methods): Canonicalize NAME before looking
2250 (name_end): New function.
2251 (keep_name_info): New function.
2252 (decode_line_1): Use keep_name_info.
2253 (decode_compound): Likewise.
2254 * cli/cli-utils.h (remove_trailing_whitespace): New function.
2255 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
2258 * linespec.c (locate_first_half): Keep overload information, too.
2259 (decode_compound): Use a string to represent break characters
2261 If P points to a break character, do not increment it.
2262 For C++ and Java, keep overload information and relevant keywords.
2263 If we cannot find a symbol, search the minimal symbols.
2266 * linespec.c (decode_compound): Rename SAVED_ARG to
2268 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
2270 Pass a valid block to lookup_symbol.
2271 (lookup_prefix_sym): Likewise.
2272 (find_method): Construct search name based on SYM_CLASS instead
2274 * psymtab.c (lookup_partial_symbol): Add language parameter.
2275 (lookup_symbol_aux_psymtabs): Likewise.
2276 Don't assume that the psymtab we found was the right one. Search
2277 for the desired symbol in the symtab to be certain.
2278 (psymtab_search_name): New function.
2279 (lookup_partial_symbol): Use psymtab_search_name.
2280 Add language parameter.
2281 (read_symtabs_for_function): Add language parameter and pass to
2282 lookup_partial_symbol.
2283 (find_symbol_file_from_partial): Likewise.
2285 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
2288 * dwarf2read.c (noop_record_line): New function.
2289 (dwarf_decode_lines): Ignore line tables for GCd functions.
2291 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
2293 Fix ARI warnings about new lines at the end of messages, which
2294 are unneeded as there is a new line added at the end of the message
2296 * darwin-nat.c (darwin_stop_inferior): Ditto.
2297 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
2298 * dfp.c (decimal_to_number): Ditto.
2299 * exec.c (print_section_info): Ditto.
2300 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
2301 * osdata.c (get_osdata): Ditto.
2302 * record.c (bfdcore_write): Ditto.
2303 * remote-mips.c (mips_readchar): Ditto.
2304 * remote.c (read_ptid): Ditto.
2305 * ser-mingw.c (ser_windows_raw): Ditto.
2306 * tracepoint.c (add_local_symbols): Ditto.
2307 * windows-nat.c (fake_create_process): Ditto.
2309 2011-03-16 Tom Tromey <tromey@redhat.com>
2311 * tracepoint.c (stop_tracing): Don't declare.
2312 * event-top.c (after_char_processing_hook): Add `(void)'.
2314 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
2316 * NEWS: Add Parameter sub-classing description.
2318 2011-03-16 Kai Tietz <ktietz@redhat.com>
2320 * MAINTAINERS: Update my e-mail address.
2322 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
2324 * MAINTAINERS: Add myself for write after approval privileges.
2326 2011-03-15 Michael Snyder <msnyder@vmware.com>
2328 * frame.c (find_frame_sal): Assert sym is not null.
2330 * dbxread.c (process_one_symbol): Assert 'name' is not null.
2332 * objc-lang.c (selectors_info): Check strchr for null result.
2334 * stabsread.c (define_symbol): Guard against bad stabstring input.
2336 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2338 Remove trailing spaces and tabulations from pascal language
2343 p-valprint.c: Ditto.
2345 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2347 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
2348 than LOW. Comment it.
2349 (read_partial_die): Call complaint for inappropriate zero LOWPC or
2350 HIGHPC not strictly higher than LOWPC.
2352 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2354 Fix formatting of function declarations returning a pointer in
2356 * varobj.c (varobj_add_child): Ditto.
2357 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
2358 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
2360 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
2362 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
2363 for the "generic" vector ABI used with GCC 4.3 and later.
2364 (ppc64_sysv_abi_return_value): Likewise.
2366 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
2368 * infcall.c (call_function_by_hand): Function return value is
2369 always a non_lval, even when using struct_return.
2371 2011-03-15 Pedro Alves <pedro@codesourcery.com>
2373 * printcmd.c (ALL_DISPLAYS_SAFE): New.
2374 (map_display_numbers): New.
2375 (do_delete_display): New.
2376 (undisplay_command): Use map_display_numbers.
2377 (do_enable_disable_display): New.
2378 (enable_disable_display_command): New function.
2379 (enable_display): Delete.
2380 (enable_display_command): New.
2381 (disable_display_command): Reimplement.
2382 (_initialize_printcmd): Adjust "enable display" command to use
2383 `enable_display_command' as callback.
2385 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2387 * NEWS: Add Python breakpoint 'stop' operation.
2389 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2391 * NEWS: Delete duplicate entry. Fix typo.
2393 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
2395 Fix ARI warning about function names in first column.
2396 Put prototype declaration on same line as return type.
2397 * objc-exp.y: Ditto.
2399 * python/py-stopevent.h: Ditto.
2400 For long function names, split parameters to
2401 allow function name on same line as return type.
2402 * solib-pa64.c: Ditto.
2405 For long function declaration, use single line.
2406 * hppa-tdep.h: Ditto.
2407 * inferior.h: Ditto.
2409 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2411 * python/python.h: Declare gdbpy_should_stop and
2412 gdbpy_breakpoint_has_py_cond.
2413 * python/python.c: Add python.h to includes. Remove python.h from
2414 HAVE_PYTHON definition
2415 (gdbpy_should_stop): New dummy function.
2416 (gdbpy_breakpoint_has_py_cond): New dummy function.
2417 * python/py-breakpoint.c (bppy_init): Rewrite to allow
2418 sub-classing capabilities.
2419 (gdbpy_should_stop): New function.
2420 (gdbpy_breakpoint_has_py_cond): New function.
2421 (local_setattro): New function.
2422 * breakpoint.c (condition_command): Add check for Python 'stop'
2424 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
2425 operation function as part of stop/continue tests.
2427 2011-03-14 Tom Tromey <tromey@redhat.com>
2430 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
2431 (needs_frame_dwarf_call): Likewise.
2433 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
2435 Fix ARI warning about functions without parameters that do not
2437 * breakpoint.c (all_tracepoints): Replace () by (void).
2438 * f-exp.y (match_string_literal): Ditto.
2440 * m2-exp.y (yylex): Ditto.
2441 * mep-tdep.c (current_me_module): Ditto.
2442 (current_options): Ditto.
2443 (current_cop_data_bus_width): Ditto.
2444 (current_cr_names): Ditto.
2445 (current_cr_is_float): Ditto.
2446 (current_ccr_names): Ditto.
2447 * objc-exp.y (yylex): Ditto.
2448 * p-exp.y (yylex): Ditto.
2449 * remote.c (send_interrupt_sequence): Ditto.
2450 * tracepoint.c (current_trace_status): Ditto.
2451 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
2452 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
2454 2011-03-11 Michael Snyder <msnyder@vmware.com>
2456 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
2457 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
2458 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
2459 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
2460 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
2462 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
2463 (delete_async_event_handler): Ditto.
2465 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
2467 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
2469 * top.c (set_verbose): Assert showcmd was found.
2471 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
2473 * xtensa-tdep.c (warning_once): Correct style issues.
2475 2011-03-11 Yao Qi <yao@codesourcery.com>
2477 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
2479 2011-03-11 Andreas Schwab <schwab@redhat.com>
2481 * common/aclocal.m4: Remove.
2483 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
2485 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
2486 (xtensa_write_register, xtensa_read_register): Likewise.
2487 (xtensa_hextochar): Removed.
2488 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
2490 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
2492 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
2493 (xtensa_call0_frame_cache_t): Update comments. New fields added.
2494 (xtensa_alloc_frame_cache): Add initialization for new fields.
2495 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
2496 (warning_once): New function.
2497 (xtensa_insn_kind): New item c0opc_and.
2498 (call0_classify_opcode): Add the case for AND instruction.
2499 (call0_track_op): Change arguments. New local variable litbase.
2500 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
2501 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
2503 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
2504 (call0_analyze_prologue): Update the comments. Change arguments.
2505 Add the variety of updates to handle extended prologues, which now can
2506 conduct dynamic stack adjustments.
2507 (call0_frame_cache): Likewise.
2508 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
2509 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
2511 2011-03-10 Michael Snyder <msnyder@vmware.com>
2513 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
2514 (cmd_qtframe): Ditto.
2515 (cmd_qtbuffer): Ditto.
2516 (cmd_bigqtbuffer): Ditto.
2518 2011-03-10 Tom Tromey <tromey@redhat.com>
2520 * tracepoint.c (trace_actions_command): Update.
2521 * thread.c (thread_apply_command): Update.
2522 * reverse.c (delete_bookmark_command): Update.
2523 (bookmarks_info): Update.
2524 * printcmd.c (undisplay_command): Update.
2525 * memattr.c (mem_enable_command): Update.
2526 (mem_disable_command): Update.
2527 (mem_delete_command): Update.
2528 * inferior.c (detach_inferior_command): Update.
2529 (kill_inferior_command): Update.
2530 (remove_inferior_command): Update.
2531 * cli/cli-utils.h (struct get_number_or_range_state): New.
2532 (init_number_or_range): Declare.
2533 (get_number_or_range): Update.
2534 * cli/cli-utils.c (init_number_or_range): New function.
2535 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
2537 (number_is_in_list): Update.
2538 * breakpoint.h (get_tracepoint_by_number): Update.
2539 * breakpoint.c (map_breakpoint_numbers): Update for change to
2540 get_number_or_range.
2541 (find_location_by_number): Use get_number, not
2542 get_number_or_range.
2543 (trace_pass_set_count): New function.
2544 (trace_pass_command): Update for change to get_number_or_range.
2546 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
2549 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
2551 * python/py-param.c (add_setshow_generic): Add set/show callback
2552 parameters. Register Python object context.
2553 (get_show_value): New function.
2554 (get_set_value): New function.
2555 (call_doc_function): New function.
2556 (get_doc_string): Move behind get_show_value/get_set_value.
2558 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
2560 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
2562 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
2564 * xtensa-tdep.c (xtensa_read_register): Add comment.
2565 (xtensa_write_register): Likewise.
2566 (xtensa_hextochar): Add comment and update to match coding conventions.
2567 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
2568 (execute_l32e, execute_s32e, execute_code): Update comments.
2569 (xtensa_exception_handler_t): Update to match coding conventions.
2570 (xtensa_insn_kind): Likewise.
2572 2011-03-09 Michael Snyder <msnyder@vmware.com>
2574 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
2576 2011-03-09 Pedro Alves <pedro@codesourcery.com>
2578 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
2580 2011-03-09 Tom Tromey <tromey@redhat.com>
2582 * thread.c (restore_selected_frame): Handle frame_level == -1.
2583 (make_cleanup_restore_current_thread): Use
2584 get_selected_frame_if_set.
2585 * frame.h (get_selected_frame_if_set): Declare.
2586 * frame.c (get_selected_frame_if_set): New function.
2588 2011-03-09 Pedro Alves <pedro@codesourcery.com>
2590 * cli/cli-cmds.c (shell_escape): Use lbasename.
2591 * coffread.c (coff_start_symtab): Constify parameter.
2592 (complete_symtab): Constify `name' parameter.
2593 (coff_symtab_read): Constify `filestring' local.
2594 (coff_getfilename): Constify return and `result' local.
2596 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
2597 * linux-fork.c (info_checkpoints_command): Use lbasename.
2598 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
2599 * minsyms.c (lookup_minimal_symbol): Use lbasename.
2600 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
2601 * procfs.c (procfs_make_note_section): Use lbasename.
2602 * tui/tui-io.c (printable_part): Constity return and parameter.
2604 (print_filename): Constify parameters, and local `s'.
2605 (tui_rl_display_match_list): Constify local `temp'.
2607 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2610 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2611 Fix DWARF-3+ DW_AT_accessibility default assumption.
2612 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
2613 cu->header.version >= 3.
2615 2011-03-09 Yao Qi <yao@codesourcery.com>
2617 * common/Makefile.in: Remove.
2618 * common/configure: Remove.
2619 * common/configure.ac: Remove.
2621 2011-03-09 Yao Qi <yao@codesourcery.com>
2624 2011-02-11 Yao Qi <yao@codesourcery.com>
2626 * common/Makefile.in: Add copyright header.
2628 2011-02-11 Yao Qi <yao@codesourcery.com>
2630 * Makefile.in: Remove signals.o from COMMON_OBS. Link
2632 * configure.ac: Add common to sub dir.
2633 * configure: Regenerate.
2635 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2637 * xtensa-tdep.c (call0_ret): New function.
2638 (xtensa_skip_prologue): Speed up analysis.
2640 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2642 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
2643 while executing MI command -data-list-changed-registers.
2645 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2647 * xtensa-tdep.c (xtensa_read_register): New function.
2648 (xtensa_write_register): New function.
2649 (xtensa_find_register_by_name): New function.
2650 (xtensa_windowed_frame_cache): Update comments in type description.
2651 (xtensa_frame_cache): Likewise.
2652 (xtensa_window_interrupt_insn): New function.
2653 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
2654 (xtensa_insn_kind): Add new instructions.
2655 (rwx_special_register): New function.
2656 (call0_classify_opcode): Add new instructions to the analysis.
2657 (a0_saved, a7_saved, a11_saved): New variables.
2658 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
2659 (execute_l32e): New function.
2660 (execute_s32e): New function.
2661 (xtensa_exception_handler_t): New type.
2662 (execute_code): New function.
2663 (xtensa_window_interrupt_frame_cache): New function to conduct frame
2664 analysis for Xtensa Window Exception handlers.
2666 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2668 * xtensa-tdep.c (TX_PS): New.
2669 (windowing_enabled): Update to count for Call0 ABI.
2670 (xtensa_hextochar): New.
2671 (xtensa_init_reggroups): Make algorithm generic.
2672 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
2674 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2676 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
2678 2011-03-08 Michael Snyder <msnyder@vmware.com>
2680 * i386-tdep.c (i386_follow_jump): Check return value of
2682 (i386_analyze_struct_return): Ditto.
2683 (i386_skip_probe): Ditto.
2684 (i386_match_insn): Ditto.
2685 (i386_skip_noop): Ditto.
2686 (i386_analyze_frame_setup): Ditto.
2687 (i386_analyze_register_saves): Ditto.
2688 (i386_skip_prologue): Ditto.
2689 (i386_skip_main_prologue): Ditto.
2691 * target.c (read_whatever_is_readable): Fix memory leak.
2693 * i386-tdep.c (i386_process_record): Document fall through.
2695 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2697 Fix DWARF-3+ DW_AT_accessibility default assumption.
2698 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
2699 cu->header.version >= 3.
2701 2011-03-08 Pedro Alves <pedro@codesourcery.com>
2703 * remote.c (remote_check_symbols): Skip if the target has no
2706 2011-03-08 Joel Brobecker <brobecker@adacore.com>
2708 * target.c (read_whatever_is_readable): Reformat comment,
2709 with a minor typo fix. Minor reformatting of the code.
2711 2011-03-08 Yao Qi <yao@codesourcery.com>
2713 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
2714 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
2715 Use cached result instead of calling displaced_in_arm_mode again.
2716 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
2717 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
2718 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
2719 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
2720 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
2721 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
2722 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
2723 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
2724 (cleanup_block_load_pc, copy_block_xfer): Likewise.
2725 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
2726 (arm_catch_kernel_helper_return): Likewise.
2727 * gdb/arm-tdep.h : Update function declarations.
2729 2011-03-07 Michael Snyder <msnyder@vmware.com>
2731 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
2733 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
2735 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
2737 * elfread.c (elf_symtab_read): Stop memory leak.
2739 * main.c (captured_main): Fix memory leak.
2741 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
2743 * ada-lang.c (compare_names): Call is_name_suffix with string1
2746 2011-03-07 Tom Tromey <tromey@redhat.com>
2748 * xcoffread.c (xcoff_sym_fns): Update.
2749 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
2750 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
2751 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
2752 (symbol_file_add_with_addrs_or_offsets): Likewise.
2753 (reread_symbols): Handle OBJF_PSYMTABS_READ.
2754 * somread.c (som_sym_fns): Update.
2755 * psymtab.h (require_partial_symbols): Declare.
2756 * psymtab.c (require_partial_symbols): New function.
2757 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
2758 (ALL_OBJFILE_PSYMTABS): Undef.
2759 (ALL_PSYMTABS): Move from psympriv.h.
2760 (lookup_partial_symtab, find_pc_sect_psymtab)
2761 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
2762 (find_last_source_symtab_from_partial)
2763 (forget_cached_source_info_partial)
2764 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
2765 (expand_partial_symbol_tables, read_psymtabs_with_filename)
2766 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
2767 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
2768 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
2769 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
2770 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
2771 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
2772 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
2774 * mipsread.c (ecoff_sym_fns): Update.
2775 * machoread.c (macho_sym_fns): Update.
2776 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
2777 (read_psyms): New function.
2778 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
2779 (elf_sym_fns_lazy_psyms): New global.
2780 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
2781 dwarf2_build_psymtabs.
2782 * dbxread.c (aout_sym_fns): Update.
2783 * coffread.c (coff_sym_fns): Update.
2785 2011-03-07 Tom Tromey <tromey@redhat.com>
2787 * infrun.c (print_exited_reason): Include inferior id and pid in
2790 2011-03-07 Tom Tromey <tromey@redhat.com>
2792 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
2794 (target_has_execution_1): Update.
2795 (target_has_execution_current): Declare.
2796 (target_has_execution): Call target_has_execution_current.
2797 (default_child_has_execution): Update.
2798 * target.c (default_child_has_execution): Add 'the_ptid'
2800 (target_has_execution_1): Likewise.
2801 (target_has_execution_current): New function.
2802 (add_target): Update.
2803 (init_dummy_target): Update.
2804 * remote-m32r-sdi.c (m32r_has_execution): New function.
2805 (init_m32r_ops): Use it.
2806 * record.c (record_core_has_execution): Now static. Add
2807 'the_ptid' parameter.
2808 * inferior.c (have_live_inferiors): Don't save current thread.
2809 Use target_has_execution_1.
2811 2011-03-07 Yao Qi <yao@codesourcery.com>
2813 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
2815 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2817 * elfread.c (elf_symtab_read): Minor reformatting.
2819 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2821 * objc-lang.c (selectors_info): Minor reformatting.
2823 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2825 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
2827 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2828 Michael Snyder <msnyder@vmware.com>
2830 * ada-valprint.c (ada_val_print_array): Move the declaration of
2831 "byte_order" and "elttype" inside the block where these variables
2832 are actually used. Remove some special handling for the case
2833 where "elttype" and "eltlen" are null. Replace by a comment
2834 and a couple of assertion checks.
2836 2011-03-05 Michael Snyder <msnyder@vmware.com>
2838 * source.c (add_path): Replace semicolon at end of block.
2839 * dwarf2expr.c (execute_stack_op): Ditto.
2841 2011-03-05 Mike Frysinger <vapier@gentoo.org>
2843 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
2844 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
2845 (bfin-*-*): Likewise.
2847 2011-03-05 Michael Snyder <msnyder@vmware.com>
2849 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
2850 * mdebugread.c (parse_symbol): Ditto.
2851 * parse.c (parse_exp_in_context): Ditto.
2852 * source.c (add_path): Ditto.
2853 * utils.c (gnu_debuglink_crc32): Ditto.
2854 * varobj.c (variable_language): Ditto.
2856 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
2858 2011-03-04 Michael Snyder <msnyder@vmware.com>
2860 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
2862 * symfile.c (simple_overlay_update): Check for null return value
2863 from lookup_minimal_symbol.
2865 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
2867 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2869 * eval.c (parse_and_eval_address_1): Remove function.
2870 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
2871 instead of parse_and_eval_address_1.
2872 * value.h (parse_and_eval_address_1): Remove prototype.
2874 2011-03-04 Michael Snyder <msnyder@vmware.com>
2876 * remote.c (putpkt_binary): Document that case stmt falls through.
2878 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2880 * breakpointc (print_it_typical): Move NULL check from here...
2881 (print_bp_stop_message): ... to here.
2883 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
2885 * breakpoint.c (enable_command): Use break instead of continue,
2886 and fill in a missing break.
2887 (disable_command): Ditto.
2889 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
2891 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
2892 (terminal_save_ours): Remove misleading comment.
2893 (inflow_inferior_data_cleanup): Free ttystate.
2894 (inflow_inferior_exit): Likewise.
2895 (copy_terminal_info): Copy ttystate.
2897 * serial.c (serial_copy_tty_state): New function.
2898 * serial.h (serial_copy_tty_state): Add prototype.
2899 (struct serial_ops): Add copy_tty_state callback.
2900 * ser-base.c (ser_base_copy_tty_state): New function.
2901 * ser-base.h (ser_base_copy_tty_state): Add prototype.
2902 * ser-go32.c (dos_copy_tty_state): New function.
2903 (dos_ops): Install copy_tty_state callback.
2904 * ser-mingw.c (_initialize_ser_windows): Likewise.
2905 * ser-pipe.c (_initialize_ser_pipe): Likewise.
2906 * ser-unix.c (hardwire_copy_tty_state): New function.
2907 (_initialize_ser_hardwire): Install it.
2909 2011-03-04 Michael Snyder <msnyder@vmware.com>
2911 * breakpoint.c (create_breakpoint): Add missing break statement.
2913 Reverting this patch:
2914 * infcall.c (call_function_by_hand): Add break statements for lint.
2916 Reverting this patch:
2917 * cli/cli-script.c (script_from_file): Add break for lint.
2919 2011-03-04 Michael Snyder <msnyder@vmware.com>
2921 * solib.c (reload_shared_libraries_1): Close memory leak.
2923 2011-03-03 Tom Tromey <tromey@redhat.com>
2926 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
2929 2011-03-03 Michael Snyder <msnyder@vmware.com>
2931 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
2932 fields of struct 'st' to zero.
2934 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
2935 sal.pspace before calling set_current_source_symtab_and_line.
2937 2011-03-03 Yao Qi <yao@codesourcery.com>
2939 * Makefile.in (configure-common): Remove. Let Makefile
2940 in dir common to rebuild itself.
2941 (common/Makefile): Likewise.
2943 2011-03-03 Joel Brobecker <brobecker@adacore.com>
2945 * utils.c (parse_escape): Add i18n markup in error message.
2947 2011-03-03 Yao Qi <yao@codesourcery.com>
2949 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
2951 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
2952 (displaced_write_reg, displaced_read_reg): Likewise.
2953 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
2954 (cleanup_block_load_pc, copy_block_xfer): Likewise.
2955 (cleanup_branch): Replace magic number 14 and 15 with
2956 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
2958 2011-03-02 Michael Snyder <msnyder@vmware.com>
2960 * maint.c (maintenance_do_deprecate): No need to check for NULL.
2962 * cli/cli-script.c (script_from_file): Add break for lint.
2964 * mdebugread.c (parse_partial_symbols): Fix indent.
2966 * target-descriptions.c (tdesc_gdb_type): No need to call
2967 xstrdup, callee saves a copy.
2969 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
2971 * infcall.c (call_function_by_hand): Add break statements for lint.
2973 * utils.c (parse_escape): Escape the escape char.
2975 * python/py-inferior.c (build_inferior_list): Error out if
2976 PyList_Append fails.
2977 (gdbpy_inferiors): Error out if build_inferior_list fails.
2979 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
2982 * record.c (record_restore): Move printf to before error return.
2984 2011-03-02 Yao Qi <yao@codesourcery.com>
2986 * arm-tdep.h (struct displaced_step_closure): Add two new fields
2987 is_thumb and insn_size.
2988 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
2989 on both ARM and Thumb mode.
2990 (arm_process_displaced_insn): Set is_thumb and insn_size.
2991 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
2992 (arm_displaced_step_fixup): Likewise.
2994 2011-03-01 Michael Snyder <msnyder@vmware.com>
2996 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
2998 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
3000 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
3002 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
3004 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
3007 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
3008 which shadows function parameter.
3010 * tracepoint.c (create_tsv_from_upload): Superfluous call
3011 to xstrdup. Callee already calls xstrdup.
3013 * linespec.c (decode_line_1): Remove unnecessary null check.
3015 * tracepoint.c (scope_info): Fix mem leak, remove underused
3018 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
3019 superfluous null check.
3021 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
3022 (value_of_builtin_frame_fp_reg): Ditto.
3024 * event-top.c (display_gdb_prompt): Remove superfluous null check.
3026 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
3029 * linespec.c (decode_line_1): Check for null before dereference.
3031 * reverse.c (record_restore): Move null-check to before pointer
3034 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
3036 * objc-lang.c (selectors_info): Add explanitory comment.
3037 (classes_info): Ditto.
3039 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
3041 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
3042 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
3043 versions of the trampoline. Handle Thumb vs. ARM addresses.
3044 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
3045 (arm_linux_init_abi): Install it.
3046 * arm-tdep.c (arm_psr_thumb_bit): Make global.
3047 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
3049 2011-02-28 Michael Snyder <msnyder@vmware.com>
3051 * ui-out.c (ui_out_field_core_addr): Make local char buffer
3052 a little bigger, to avoid possibility of an overflow.
3054 * breakpoint.c (breakpoint_adjustment_warning): Make local char
3055 buffers a little bigger, to avoid possibility of an overflow.
3057 * coffread.c (coff_getfilename): Add check to avoid overflow.
3059 * objc-lang.c (selectors_info): Add a small safety margin to
3061 (classes_info): Error out on too long REGEXP.
3063 * infrun.c (handle_inferior_event): Remove unused function call.
3065 * fork-child.c (fork_inferior): Remove ifdef'd code and
3068 * linux-thread-db.c (attach_thread): Discard unused value.
3070 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
3072 * remote.c (remote_get_noisy_reply): Discard unused value.
3073 (remote_vcont_resume): Ditto.
3074 (remote_stop_ns): Ditto.
3076 * linespec.c (decode_objc): Delete unused variable.
3078 * tui/tui-regs.c (tui_register_format): Delete unused variable.
3080 * dwarf2read.c (add_partial_symbol): Discard unused values.
3081 (read_base_type): Delete unused variable.
3083 * dbxread.c (read_dbx_symtab): Discard unused value.
3085 * eval.c (evaluate_subexp_standard): Delete unused variable,
3086 and discard unused values.
3088 * infcmd.c (_initialize_infcmd): Discard unused values.
3090 * stabsread.c (rs6000_builtin_type): Missing break statement.
3092 * dbxread.c (process_one_symbol): Discard unused value.
3094 * coffread.c (coff_end_symtab): Delete unused variable.
3096 * dwarf2read.c (dw2_get_file_names): Discard unused value.
3097 (dwarf2_add_typedef): Delete unused variable.
3098 (read_namespace): Ditto.
3099 (dwarf_decode_macros): Ditto.
3101 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
3103 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
3105 * p-valprint.c (pascal_val_print): Discard unused value.
3107 * utils.c (nquery): Call va_end before return;
3111 * proc-service.c (ps_plog): Call va_end before return.
3113 2011-02-28 Tom Tromey <tromey@redhat.com>
3115 * python/python.c (gdbpy_value_cst): New global.
3116 (_initialize_python): Initialize it.
3117 * python/python-internal.h (gdbpy_value_cst): Declare.
3118 * python/py-value.c (convert_value_from_python): Use
3121 2011-02-28 Michael Snyder <msnyder@vmware.com>
3123 * python/py-cmd.c (cmdpy_init): Fix memory leak.
3125 * breakpoint.c (catch_syscall_completer): Free malloced list.
3127 * jv-lang.c (java_primitive_type_from_name): Add missing break.
3129 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
3130 (lval_func_check_synthetic_pointer): Ditto.
3131 (lval_func_free_closure): Fix use-after-free.
3133 2011-02-28 Tom Tromey <tromey@redhat.com>
3135 * psymtab.c (expand_partial_symbol_tables): Use
3136 ALL_OBJFILE_PSYMTABS.
3138 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3140 * objc-lang.c (selectors_info): Error on too long REGEXP.
3142 2011-02-28 Michael Snyder <msnyder@vmware.com>
3144 * python/py-param.c (set_parameter_value): Add missing
3147 * linux-record.c (record_linux_system_call): Add missing
3150 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3152 * breakpoint.c (print_one_breakpoint_location): Remove unused
3153 argument PRINT_ADDRESS_BITS. Update callers.
3154 (print_one_breakpoint): Likewise.
3156 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3158 * breakpoint.c (wrap_indent_at_field): New function.
3159 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
3160 Allocate ui_stream locally instead of using STB argument.
3161 (print_one_breakpoint_location): Update call.
3162 * ui-out.c (ui_out_query_field): New function.
3163 * ui-out.h (ui_out_query_field): Add prototype.
3165 2011-02-28 Joel Brobecker <brobecker@adacore.com>
3167 From Michael Snyder <msnyder@vmware.com>
3168 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
3170 2011-02-27 Michael Snyder <msnyder@vmware.com>
3172 * objc-lang.c (selectors_info): Prevent string overrun.
3174 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
3177 * symtab.c (rbreak_command): Move variable 'file_name' to
3180 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
3181 param with a local variable of the same name.
3183 2011-02-27 Michael Snyder <msnyder@vmware.com>
3185 * value.c (value_from_history_ref): New function.
3186 * value.h (value_from_history_ref): Export.
3187 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
3188 to parse value history references.
3189 * cli/cli-utils.h (get_number_trailer): Update comment.
3191 2011-02-27 Michael Snyder <msnyder@vmware.com>
3193 * inferior.c (detach_inferior_command): Use get_number_or_range.
3194 (kill_inferior_command): Ditto.
3195 (remove_inferior_command): Ditto.
3196 (initialize_inferiors): Make command names plural.
3197 Update help strings.
3199 2011-02-27 Michael Snyder <msnyder@vmware.com>
3201 * darwin-nat-info.c: Fix comment typo.
3202 * dwarf2expr.h: Ditto.
3203 * fbsd-nat.c: Ditto.
3204 * fbsd-nat.h: Ditto.
3205 * frame-unwind.h: Ditto.
3207 * hppa-hpux-tdep.c: Ditto.
3208 * i386-linux-nat.c: Ditto.
3209 * linux-nat.c: Ditto.
3210 * nbsd-nat.c: Ditto.
3211 * nbsd-nat.h: Ditto.
3212 * ppc-linux-tdep.c: Ditto.
3215 * tui/tui-winsource.c: Ditto.
3217 2011-02-26 Michael Snyder <msnyder@vmware.com>
3219 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
3221 * maint.c (maintenance_do_deprecate): Plug a memory leak.
3223 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
3224 with a local variable of the same name.
3226 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
3227 param with a local variable of the same name.
3228 (i387_supply_xsave): Ditto.
3230 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
3231 that it does not shadow a function parameter.
3233 * i386-nat.c (i386_length_and_rw_bits): Document that case
3234 statement is meant to fall through.
3236 * expprint.c (dump_subexp_body_standard): Document that case
3237 statement is meant to fall through.
3239 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
3240 dead if statement. Condition can't be false.
3242 2011-02-25 Michael Snyder <msnyder@vmware.com>
3244 * arm-tdep.c: Fix typos in comments.
3245 * bsd-uthread.c: Ditto.
3246 * completer.c: Ditto.
3248 * cp-namespace.c: Ditto.
3249 * cp-support.c: Ditto.
3250 * cris-tdep.c: Ditto.
3252 * dwarf2read.c: Ditto.
3254 * gdbtypes.h: Ditto.
3255 * inferior.h: Ditto.
3256 * mdebugread.c: Ditto.
3257 * mips-tdep.c: Ditto.
3258 * ppc-linux-nat.c: Ditto.
3259 * ppc-linux-tdep.c: Ditto.
3260 * printcmd.c: Ditto.
3261 * sol-thread.c: Ditto.
3262 * solib-frv.c: Ditto.
3264 * sparc64-tdep.c: Ditto.
3265 * spu-tdep.c: Ditto.
3266 * stabsread.c: Ditto.
3271 * python/py-block.c: Ditto.
3272 * python/py-symbol.c: Ditto.
3273 * python/py-symtab.c: Ditto.
3274 * python/py-value.c: Ditto.
3275 * tui/tui-win.c: Ditto.
3277 2011-02-25 Michael Snyder <msnyder@vmware.com>
3279 * inferior.c (print_inferior): Accept a string instead of an int
3280 for requested_inferiors, and use get_number_or_range to parse it.
3281 (info_inferiors_command): Pass args string to print_inferior.
3282 (initialize_inferiors): Change help string for info inferiors.
3283 * inferior.h (print_inferior): Export prototype change.
3285 2011-02-25 Tom Tromey <tromey@redhat.com>
3287 * common/ax.def (invalid2): Set to 0x31.
3289 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3291 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
3293 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
3295 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
3297 2011-02-24 Michael Snyder <msnyder@vmware.com>
3299 * Makefile.in (clean): Make clean should remove generated files
3300 observer.h and observer.inc.
3302 2011-02-24 Joel Brobecker <brobecker@adacore.com>
3304 Revert the following patch (not approved yet):
3305 2011-02-21 Hui Zhu <teawater@gmail.com>
3306 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3307 * ax-gdb.c (gen_printf_expr_callback): New function.
3308 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3309 * ax-general.c (ax_memcpy): New function.
3310 (ax_print): Handle "printf".
3312 * ax.h (ax_memcpy): Forward declare.
3313 * common/ax.def (invalid2): Removed.
3314 (printf): New entry.
3315 * printcmd.c (printcmd.h): New include.
3316 (string_printf): New function.
3317 (ui_printf): Removed.
3318 (printf_command): Remove static. Call string_printf.
3319 (eval_command): Call string_printf.
3320 * printcmd.h: New file.
3321 * tracepoint.c (validate_actionline,
3322 encode_actions_1): handle printf_command.
3324 2011-02-23 Tom Tromey <tromey@redhat.com>
3326 * ax-general.c (ax_pick): Add missing newline.
3328 2011-02-23 Michael Snyder <msnyder@vmware.com>
3330 * breakpoint.c (breakpoint_1): Change first argument from an int
3331 to a char pointer, so that the function now accepts a list of
3332 breakpoints rather than just one. Use new function
3333 'number_is_in_list' to implement.
3334 (breakpoints_info): Pass char * instead of int to breakpoint_1.
3335 (watchpoints_info): Ditto.
3336 (tracepoints_info): Ditto.
3337 (maintenance_info_breakpoints): Ditto.
3338 (_initialize_breakpoint): Update help strings to reflect the fact
3339 that these functions can now take more than one argument.
3340 * cli/cli-utils.c (number_is_in_list): New function.
3341 * cli/cli-utils.h (number_is_in_list): Export.
3343 2011-02-23 Michael Snyder <msnyder@vmware.com>
3345 * memattr.c (mem_enable_command): Use get_number_or_range.
3346 (mem_disable_command): Ditto.
3347 (mem_delete_command): Ditto.
3348 (_initialize_mem): Tweak usage message to reflect multiple
3351 2011-02-22 Doug Evans <dje@google.com>
3353 Add gdb.lookup_global_symbol python function.
3355 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
3356 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
3357 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
3359 2011-02-22 Tom Tromey <tromey@redhat.com>
3361 * language.c (language_class_name_from_physname): Rename
3362 'curr_language' argument to 'lang'; use in body.
3364 2011-02-22 Michael Snyder <msnyder@vmware.com>
3366 * cli/cli-utils.c (number_is_in_list): Check for zero return.
3368 2011-02-22 Pedro Alves <pedro@codesourcery.com>
3370 * frame-unwind.h: Fix comment to mention the this frame, not the
3373 2011-02-22 Tom Tromey <tromey@redhat.com>
3375 * symfile.c (auto_solib_limit): Remove.
3376 * symfile.h (auto_solib_limit): Remove.
3378 2011-02-22 Joel Brobecker <brobecker@adacore.com>
3380 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
3382 2011-02-21 Michael Snyder <msnyder@vmware.com>
3384 * gdbthread.h (print_thread_info): Change prototype.
3385 * thread.c (print_thread_info): Accept char* instead of int for
3386 requested_threads argument. Use new function number_is_in_list
3387 to determine which threads to list.
3388 (info_threads_command): Pass char* to print_thread_info.
3389 * cli/cli-utils.c (number_is_in_list): New function.
3390 * cli/cli-utils.h (number_is_in_list): Export.
3391 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
3393 (print_one_inferior): Ditto.
3394 (mi_cmd_list_thread_groups): Ditto.
3396 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3398 * common/Makefile.in (CFLAGS): New.
3399 (COMPILE): Add $(CFLAGS).
3401 2011-02-21 Tom Tromey <tromey@redhat.com>
3403 * breakpoint.c (catch_syscall_command_1): Fix typo.
3405 2011-02-21 Tom Tromey <tromey@redhat.com>
3407 * reverse.c: Include cli-utils.h.
3408 * printcmd.c: Include cli-utils.h.
3409 (string_printf): Use skip_spaces.
3410 * cli/cli-utils.h: New file.
3411 * cli/cli-utils.c: New file.
3412 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
3413 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
3414 * breakpoint.h (get_number, get_number_or_range): Move to
3416 * breakpoint.c: Include cli-utils.h.
3417 (get_number_trailer, get_number, get_number_or_range)
3418 (ep_skip_leading_whitespace): Move to cli-utils.c.
3419 (create_breakpoint_sal, find_condition_and_thread)
3420 (decode_static_tracepoint_spec, watch_command_1)
3421 (watch_maybe_just_location, ep_parse_optional_if_clause)
3422 (catch_fork_command_1, catch_exec_command_1)
3423 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
3424 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
3425 (SUBDIR_CLI_SRCS): Add cli-utils.c.
3426 (HFILES_NO_SRCDIR): Add cli-utils.h.
3427 (cli-utils.o): New target.
3429 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3431 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
3432 before calling discard_all_inferiors.
3434 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
3436 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
3437 (struct builtin_opencl_type): Remove.
3438 (builtin_opencl_type): Change return type to "struct type **".
3439 (lookup_opencl_vector_type): Update caller.
3440 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
3441 (build_opencl_types): Install plain array of "struct type *"
3442 instead of "struct builtin_opencl_type".
3444 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3445 Ulrich Weigand <uweigand@de.ibm.com>
3447 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
3448 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
3449 (struct arm_linux_hwbp_cap): New type.
3450 (arm_linux_get_hwbp_cap): New function.
3451 (arm_linux_get_hw_breakpoint_count): Likewise.
3452 (arm_linux_get_hw_watchpoint_count): Likewise.
3453 (arm_linux_can_use_hw_breakpoint): Likewise.
3454 (arm_hwbp_type): New type.
3455 (arm_hwbp_control_t): Likewise.
3456 (struct arm_linux_hw_breakpoint): Likewise.
3457 (struct arm_linux_thread_points): Likewise.
3458 (arm_threads): New global variable.
3459 (arm_linux_find_breakpoints_by_tid): New function.
3460 (arm_hwbp_control_initialize): Likewise.
3461 (arm_hwbp_control_is_enabled): Likewise.
3462 (arm_hwbp_control_disable): Likewise.
3463 (arm_linux_hw_breakpoint_initialize): Likewise.
3464 (arm_linux_get_hwbp_type): Likewise.
3465 (arm_linux_hw_watchpoint_initialize): Likewise.
3466 (arm_linux_hw_breakpoint_equal): Likewise.
3467 (arm_linux_insert_hw_breakpoint1): Likewise.
3468 (arm_linux_remove_hw_breakpoint1): Likewise.
3469 (arm_linux_insert_hw_breakpoint): Likewise.
3470 (arm_linux_remove_hw_breakpoint): Likewise.
3471 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
3472 (arm_linux_insert_watchpoint): Likewise.
3473 (arm_linux_remove_watchpoint): Likewise.
3474 (arm_linux_stopped_data_address): Likewise.
3475 (arm_linux_stopped_by_watchpoint): Likewise.
3476 (arm_linux_watchpoint_addr_within_range): Likewise.
3477 (arm_linux_new_thread): Likewise.
3478 (arm_linux_thread_exit): Likewise.
3479 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
3480 related target callbacks. Register arm_linux_new_thread and
3481 arm_linux_thread_exit.
3482 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
3483 * arm-tdep.c (arm_pc_is_thumb): Make global.
3484 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
3486 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
3488 * breakpoint.c (update_watchpoint): Do not attempt to recreate
3489 per-frame locations while within a function epilogue.
3491 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
3493 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
3494 to GNU coding standards.
3496 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
3498 Allow use of mingw native on Windows 95 OS.
3499 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
3500 (ser_windows_close): Only call CancelIo if function exists.
3501 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
3502 to check for existence of CancelIo function in kernel32 DLL.
3504 2011-02-21 Hui Zhu <teawater@gmail.com>
3506 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3507 * ax-gdb.c (gen_printf_expr_callback): New function.
3508 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3509 * ax-general.c (ax_memcpy): New function.
3510 (ax_print): Handle "printf".
3512 * ax.h (ax_memcpy): Forward declare.
3513 * common/ax.def (invalid2): Removed.
3514 (printf): New entry.
3515 * printcmd.c (printcmd.h): New include.
3516 (string_printf): New function.
3517 (ui_printf): Removed.
3518 (printf_command): Remove static. Call string_printf.
3519 (eval_command): Call string_printf.
3520 * printcmd.h: New file.
3521 * tracepoint.c (validate_actionline,
3522 encode_actions_1): handle printf_command.
3524 2011-02-19 Michael Snyder <msnyder@vmware.com>
3526 * reverse.c (delete_one_bookmark): Argument is now bookmark
3527 id rather than pointer to bookmark struct.
3528 (delete_bookmark_command): Use get_number_or_range.
3529 (goto_bookmark_command): Parse with get_number instead of strtoul.
3530 (bookmark_1): New function. Print info for one bookmark.
3531 (bookmarks_info): Use get_number_or_range and bookmark_1.
3533 2011-02-18 Michael Snyder <msnyder@vmware.com>
3535 * thread.c (info_threads_command): Re-implement using
3536 get_number_or_range.
3537 (thread_apply_command): Ditto.
3539 2011-02-18 Tom Tromey <tromey@redhat.com>
3541 * common/ax.def: New file.
3542 * ax.h (enum agent_op): Use ax.def.
3543 * ax-general.c (aop_map): Use ax.def.
3545 2011-02-18 Tom Tromey <tromey@redhat.com>
3547 * ax-general.c (aop_map): Add pick and rot.
3548 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
3549 <DW_OP_rot>: Implement.
3550 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
3552 * ax-general.c (ax_pick): New function.
3554 2011-02-18 Tom Tromey <tromey@redhat.com>
3556 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
3558 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3559 Tom Tromey <tromey@redhat.com>
3561 * cp-support.c (make_symbol_overload_list_namespace): Do not call
3562 make_symbol_overload_list_block with NULL BLOCK.
3563 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
3565 2011-02-18 Pedro Alves <pedro@codesourcery.com>
3567 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
3568 * breakpoint.h (get_number_or_range): Declare.
3569 * printcmd.c (ALL_DISPLAYS): Declare.
3570 (delete_display): Reimplement taking a display pointer.
3571 (undisplay_command): Accept a range of displays to delete, using
3572 get_number_or_range.
3574 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3576 * c-valprint.c (c_val_print): Add embedded_offset to address
3577 for arrays of unspecified length.
3578 * p-valprint.c (pascal_val_print): Likewise.
3580 2011-02-18 Yao Qi <yao@codesourcery.com>
3582 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
3583 (arm_process_displaced_insn): .. here. Remove parameter INSN.
3584 (thumb_process_displaced_insn): New.
3585 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
3586 call to arm_process_displaced_insn.
3587 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
3589 2011-02-17 Tom Tromey <tromey@redhat.com>
3591 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
3592 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
3593 compile_dwarf_to_ax. No longer static. Call
3594 dwarf2_compile_cfa_to_ax.
3595 (locexpr_tracepoint_var_ref): Update.
3596 (loclist_tracepoint_var_ref): Update.
3597 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
3598 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
3599 argument; add 'gdbarch' and 'pc'.
3600 (dwarf2_compile_cfa_to_ax): New function.
3601 (dwarf2_frame_cache): Update.
3603 2011-02-17 Joel Brobecker <brobecker@adacore.com>
3605 * ada-lang.c (ada_type_of_array): Fix the size of the array
3606 in the case of an unconstrained packed array.
3608 2011-02-17 Yao Qi <yao@codesourcery.com>
3610 * common/Makefile.in: Add more targets for make.
3612 2011-02-16 Tom Tromey <tromey@redhat.com>
3614 * dwarf2loc.c (unimplemented): Fix typo.
3616 2011-02-16 Tom Tromey <tromey@redhat.com>
3618 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
3619 (compile_dwarf_to_ax) <default>: Use unimplemented.
3620 <DW_OP_deref>: Update.
3621 (disassemble_dwarf_expression): Update.
3622 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
3623 (decode_locdesc): Update.
3624 * dwarf2expr.h (dwarf_stack_op_name): Update.
3626 2011-02-16 Tom Tromey <tromey@redhat.com>
3628 * ax.h (struct aop_map) <name>: Now const.
3630 2011-02-16 Tom Tromey <tromey@redhat.com>
3632 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
3635 2011-02-16 Yao Qi <yao@codesourcery.com>
3637 * infrun.c (get_displaced_step_closure_by_addr): New.
3638 * inferior.h: Declare it.
3639 * arm-tdep.c: (arm_pc_is_thumb): Call
3640 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
3643 2011-02-16 Pedro Alves <pedro@codesourcery.com>
3644 Jan Kratochvil <jan.kratochvil@redhat.com>
3647 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
3649 2011-02-16 Pedro Alves <pedro@codesourcery.com>
3650 Jan Kratochvil <jan.kratochvil@redhat.com>
3652 * value.c (value_contents_copy_raw): Extend describing comment.
3653 Assert that the destination contents we're overwriting are wholly
3655 (value_contents_copy): Extend describing comment.
3657 2011-02-16 Pedro Alves <pedro@codesourcery.com>
3658 Jan Kratochvil <jan.kratochvil@redhat.com>
3660 * value.c (value_available_contents_eq): Remove redundant local
3661 variables. Fix available contents comparision.
3662 * value.h (value_available_contents_eq): Extend describing
3665 2011-02-16 Yao Qi <yao@codesourcery.com>
3667 * thread.c (info_threads_command): Add missing i18n markup and remove
3670 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
3672 * breakpoint.c (longjmp_names): New variable.
3673 (struct breakpoint_objfile_data): New type.
3674 (breakpoint_objfile_key): New variable.
3675 (msym_not_found): New variable.
3676 (msym_not_found_p): New predicate.
3677 (get_breakpoint_objfile_data): New function.
3678 (create_overlay_event_breakpoint): Check per-objfile cache for
3680 (create_longjmp_master_breakpoint): Likewise.
3681 (create_std_terminate_master_breakpoint): Likewise.
3682 (create_exception_master_breakpoint): Likewise.
3683 (_initialize_breakpoint): Register per-objfile data key.
3685 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
3687 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
3689 (create_longjmp_master_breakpoint): Loop over longjmp names.
3690 (create_std_terminate_master_breakpoint): Const-propagate parameter
3692 (update_breakpoints_after_exec): Adjust.
3693 (breakpoint_re_set): Adjust.
3695 2011-02-15 Michael Snyder <msnyder@vmware.com>
3697 * thread.c (info_threads_command): Process arg as thread id,
3698 or list of thread ids.
3699 (thread_find_command): New command.
3700 (_initialize_thread): Document argument for info threads.
3701 Document 'thread find' command.
3702 * NEWS: Document new command "thread find".
3704 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3706 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
3707 * aclocal.m4: Regenerated with aclocal-1.11.1.
3708 * common/configure: Regenerate with autoconf-2.64.
3710 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
3712 * opencl-lang.c (build_opencl_types): Set the size of the built-in
3713 bool data type to a size of one byte.
3715 2011-02-15 Pedro Alves <pedro@codesourcery.com>
3716 Jan Kratochvil <jan.kratochvil@redhat.com>
3718 * target.c (memory_xfer_live_readonly_partial): Document where to
3719 look for interface description.
3721 2011-02-15 Yao Qi <yao@codesourcery.com>
3724 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
3725 order to store PC value on stack instead of text section.
3727 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
3729 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
3730 the EFP register set size.
3731 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
3732 data from the VMX register.
3733 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
3734 and write data from/to the VMX register.
3736 2011-02-14 Michael Snyder <msnyder@vmware.com>
3738 * command.h (enum command_class): New class 'no_set_class', for
3739 "show" commands without a corresponding "set" command.
3740 * value.c (_initialize_values): Use 'no_set_class' for "show values".
3741 * copying.c (_initialize_copying): Ditto for "show copying" and
3743 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
3745 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
3746 which there is no corresponding "set" command (eg. "show copying").
3748 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3749 Jan Kratochvil <jan.kratochvil@redhat.com>
3751 * exec.c (section_table_available_memory): Change `len' parameter
3753 * exec.h (section_table_available_memory): Ditto.
3754 * value.h (read_value_memory): Rename the `offset' parameter to
3757 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3758 Jan Kratochvil <jan.kratochvil@redhat.com>
3760 * memrange.c (compare_mem_ranges): Mention sort order in
3762 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
3763 * tracepoint.c (traceframe_available_memory): Extend comment to
3764 mention what happens to RESULT when the target does not support
3767 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3768 Jan Kratochvil <jan.kratochvil@redhat.com>
3770 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
3773 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3775 * value.c (value_bits_valid, value_bits_synthetic_pointer):
3776 No longer handle NULL values.
3778 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3780 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
3781 * value.c: Include "exceptions.h".
3782 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
3784 * cp-abi.c: Include gdb_assert.h.
3785 (baseclass_offset): Add `embedded_offset' and `val' parameters.
3786 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
3788 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
3789 parameters. No longer returns -1 on error.
3790 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
3792 * cp-valprint.c: Include exceptions.h.
3793 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
3794 the baseclass_offset. Handle unavailable base classes. Use
3795 val_print_invalid_address.
3796 * p-valprint.c: Include exceptions.h.
3797 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
3798 when fetching the baseclass_offset. No longer expect
3799 baseclass_offset returning -1. Handle unavailable base classes.
3800 Use val_print_invalid_address.
3801 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
3802 `valaddr' parameter, and change its type to gdb_byte pointer. Add
3803 `embedded_offset' and `val' parameters. Adjust.
3804 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
3805 parameter, and change its type to gdb_byte pointer. Add
3806 `embedded_offset' and `val' parameters. Adjust. No longer expect
3807 baseclass_offset returning -1.
3808 (value_dynamic_cast): Use value_contents_for_printing rather than
3809 value_contents. Adjust.
3810 (search_struct_field): No longer expect baseclass_offset returning
3812 (search_struct_method): If reading memory from the target is
3813 necessary, wrap it in a new value to pass to baseclass_offset. No
3814 longer expect baseclass_offset returning -1.
3815 (find_method_list): No longer expect baseclass_offset returning
3816 -1. Use value_contents_for_printing rather than value_contents.
3817 * valprint.c (val_print_invalid_address): New function.
3818 * valprint.h (val_print_invalid_address): Declare.
3819 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
3820 and `val' parameters. No longer expect baseclass_offset returning
3822 * gnu-v2-abi.c: Include "exceptions.h".
3823 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
3824 parameters. Handle unavailable memory. Recurse through
3825 gnuv2_baseclass_offset directly, rather than through
3826 baseclass_offset. No longer returns -1 on not found, instead
3828 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
3829 `val' parameters. Adjust.
3831 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3833 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
3834 almost but not quite adjacent.
3836 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3838 * value.h (value_entirely_available): Declare.
3839 * value.c (value_entirely_available): New function.
3840 * c-valprint.c (c_value_print): Don't try fetching the pointer's
3841 real type if the pointer is unavailable.
3843 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3845 * valops.c (value_repeat): Use read_value_memory instead of
3848 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3850 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
3851 * value.c (value_contents_copy_raw, value_contents_copy): New
3853 (value_primitive_field): Use value_contents_copy_raw instead of
3855 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
3857 (value_array, value_slice): Ditto.
3858 * valarith.c (value_subscripted_rvalue): Use
3859 value_contents_copy_raw instead of memcpy.
3861 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3863 <unavailable> references.
3865 * valops.c (get_value_at): Use value_from_contents_and_address,
3866 avoiding read_memory.
3868 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3870 * c-valprint.c (c_val_print): Print a string with unavailable
3871 contents as an array.
3873 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3875 * value.h (unpack_bits_as_long): Delete declaration.
3876 (unpack_value_bits_as_long): Declare.
3877 (unpack_value_field_as_long): Declare.
3878 (value_field_bitfield): Declare.
3879 * value.c (unpack_bits_as_long): Rename to...
3880 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
3881 value parameters. Return the extracted result in a new output
3882 parameter. If the value contents are unavailable, return false,
3883 otherwise return true.
3884 (unpack_value_bits_as_long): New.
3885 (unpack_field_as_long): Rename to...
3886 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
3887 Add embedded_offset and value parameters. Return the extracted
3888 result in a new output parameter. If the value contents are
3889 unavailable, return false, otherwise return true.
3890 (unpack_value_field_as_long): New.
3891 (unpack_field_as_long_1): New.
3892 (unpack_field_as_long): Reimplement as wrapper around
3893 unpack_value_field_as_long_1.
3894 (value_field_bitfield): New function.
3895 * valops.c (value_fetch_lazy): When fetching a bitfield, use
3896 unpack_value_bits_as_long. Mark the value as unavailable, if it
3898 * jv-valprint.c (java_print_value_fields): Use
3899 value_field_bitfield.
3900 * p-valprint.c (pascal_object_print_value_fields): Use
3901 value_field_bitfield.
3902 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
3904 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3906 * value.c (get_internalvar_integer): Also return the int value of
3907 TYPE_CODE_INT INTERNALVAR_VALUE values.
3908 (set_internalvar): Don't special case TYPE_CODE_INT.
3910 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3912 * value.c (struct internalvar) <enum internalvar_kind>: Remove
3913 INTERNALVAR_POINTER.
3915 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
3916 (set_internalvar): Remove special TYPE_CODE_PTR handling.
3917 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
3919 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3921 * value.h (value_available_contents_eq): Declare.
3922 * value.c (find_first_range_overlap): New function.
3923 (value_available_contents_eq): New function.
3924 * valprint.c (val_print_array_elements): Use
3925 value_available_contents_eq.
3926 * ada-valprint.c (val_print_packed_array_elements): Use
3927 value_available_contents_eq.
3928 * jv-valprint.c (java_value_print): Use
3929 value_available_contents_eq.
3931 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3933 * target.c (target_read_live_memory): New function.
3934 (memory_xfer_live_readonly_partial): New.
3935 (memory_xfer_partial): If reading from a traceframe, fallback to
3936 reading unavailable read-only memory from read-only regions of
3938 * tracepoint.c (disconnect_tracing): Adjust.
3939 (set_current_traceframe): New, factored out from
3940 set_traceframe_number.
3941 (set_traceframe_number): Reimplement to only change the traceframe
3942 number on the GDB side.
3943 (do_restore_current_traceframe_cleanup): Adjust.
3944 (make_cleanup_restore_traceframe_number): New.
3945 (cur_traceframe_number): New global.
3946 (tfile_open): Set cur_traceframe_number to no traceframe.
3947 (set_tfile_traceframe): New function.
3948 (tfile_trace_find): If looking up a traceframe using any method
3949 other than by number, make sure the current tfile traceframe
3950 matches gdb's current traceframe. Update the current tfile
3951 traceframe if the lookup succeeded.
3952 (tfile_fetch_registers, tfile_xfer_partial)
3953 (tfile_get_trace_state_variable_value): Make sure the remote
3954 traceframe matches gdb's current traceframe.
3955 * remote.c (remote_traceframe_number): New global.
3956 (remote_open_1): Set it to -1.
3957 (set_remote_traceframe): New function.
3958 (remote_fetch_registers, remote_store_registers)
3959 (remote_xfer_memory, remote_xfer_partial)
3960 (remote_get_trace_state_variable_value): Make sure the remote
3961 traceframe matches gdb's current traceframe.
3962 (remote_trace_find): If looking up a traceframe using any method
3963 other than by number, make sure the current remote traceframe
3964 matches gdb's current traceframe. Update the current remote
3965 traceframe if the lookup succeeded.
3966 * infrun.c (fetch_inferior_event): Adjust.
3967 * tracepoint.h (set_current_traceframe): Declare.
3968 (get_traceframe_number, set_traceframe_number): Add describing
3971 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3973 Mark pieces of values as unavailable if the corresponding memory
3976 * valops.c: Include tracepoint.h.
3977 (value_fetch_lazy): Use read_value_memory.
3978 (read_value_memory): New.
3979 * value.h (read_value_memory): Declare.
3980 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
3981 * exec.c (section_table_available_memory): New function.
3982 * exec.h (section_table_available_memory): Declare.
3984 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3986 * Makefile.in (SFILES): Add memrange.c.
3987 (HFILES_NO_SRCDIR): Add memrange.h.
3988 (COMMON_OBS): Add memrange.o.
3989 * memrange.c: New file.
3990 * memrange.h: New file.
3991 * tracepoint.c: Include memrange.h.
3992 (struct mem_range): Delete.
3993 (mem_range_s): Delete.
3994 (traceframe_available_memory): New function.
3995 * tracepoint.h (traceframe_available_memory): Declare.
3997 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3999 * target.h (struct traceframe_info): Forward declare.
4000 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
4001 (struct target_ops) <to_traceframe_info>: New field.
4002 (target_traceframe_info): New.
4003 * target.c (update_current_target): Inherit and default
4005 * remote.c (PACKET_qXfer_traceframe_info): New.
4006 (remote_protocol_features): Register qXfer:traceframe-info:read.
4007 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
4008 (remote_traceframe_info): New.
4009 (init_remote_ops): Install it.
4010 (_initialize_remote): Install "set/show remote traceframe-info"
4012 * tracepoint.h (parse_traceframe_info): Declare.
4013 * tracepoint.c (struct mem_range): New.
4014 (mem_range_s): New typedef.
4015 (struct traceframe_info): New.
4016 (traceframe_info): New global.
4017 (free_traceframe_info): New function.
4018 (clear_traceframe_info): New function.
4019 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
4021 (build_traceframe_info): New function.
4022 (tfile_traceframe_info): New function.
4023 (init_tfile_ops): Install tfile_traceframe_info.
4024 (traceframe_info_start_memory, free_result): New functions.
4025 (memory_attributes, traceframe_info_elements): New globals.
4026 (parse_traceframe_info, get_traceframe_info): New functions.
4027 * features/traceframe-info.dtd: New file.
4028 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
4030 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4032 Base support for <unavailable> value contents.
4034 * value.h (value_bytes_available): Declare.
4035 (mark_value_bytes_unavailable): Declare.
4036 * value.c (struct range): New struct.
4037 (range_s): New typedef.
4038 (ranges_overlap): New function.
4039 (range_lessthan): New function.
4040 (ranges_contain_p): New function.
4041 (struct value) <unavailable>: New field.
4042 (value_bytes_available): New function.
4043 (mark_value_bytes_unavailable): New function.
4044 (require_not_optimized_out): Constify parameter.
4045 (require_available): New function.
4046 (value_contents_all, value_contents): Require all bytes be
4048 (value_free): Free `unavailable'.
4049 (value_copy): Copy `unavailable'.
4050 * valprint.h (val_print_unavailable): Declare.
4051 * valprint.c (valprint_check_validity): Rename `offset' parameter
4052 to `embedded_offset'. If printing a scalar, check whether the
4053 value chunk is available.
4054 (val_print_unavailable): New.
4055 (val_print_scalar_formatted): Check whether the value is
4057 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
4058 pretty-printing unavailable values.
4060 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4062 Fix const/volatile qualifiers of C++ types, PR c++/12328.
4063 * c-typeprint.c (c_type_print_args): Update the function comment. New
4064 variable param_type, initialize it. Remove const/volatile qualifiers
4065 for language_cplus and !show_artificial. Use param_type.
4067 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4069 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
4070 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
4071 * symtab.h (struct symtab) <next>: Comment extension.
4073 2011-02-12 Yao Qi <yao@codesourcery.com>
4075 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
4077 2011-02-11 Yao Qi <yao@codesourcery.com>
4079 * common/Makefile.in: Add copyright header.
4081 2011-02-11 Pedro Alves <pedro@codesourcery.com>
4083 * infrun.c (proceed): Move switching out and in of tfind mode from
4085 (fetch_inferior_event): ... to here.
4087 2011-02-11 Yao Qi <yao@codesourcery.com>
4089 * Makefile.in: Remove signals.o from COMMON_OBS. Link
4091 * configure.ac: Add common to sub dir.
4092 * configure: Regenerate.
4094 2011-02-11 Yao Qi <yao@codesourcery.com>
4098 * common/Makefile.in: New.
4099 * common/configure.ac: New.
4100 * common/aclocal.m4: New.
4101 * common/configure: Generate.
4103 2011-02-10 Pedro Alves <pedro@codesourcery.com>
4105 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
4106 side of the parenthesis.
4109 2010-07-13 Jakub Jelinek <jakub@redhat.com>
4110 * vec.h (VEC_block_remove): Fix comment.
4112 2011-02-08 Michael Snyder <msnyder@vmware.com>
4114 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
4116 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4118 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
4119 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
4122 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4125 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
4127 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
4128 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
4130 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4132 * dwarf2read.c (read_subroutine_type): Set special calling
4133 convention flag for functions compiled by IBM XL C for OpenCL.
4134 * ppc-sysv-tdep.c: Include "dwarf2.h"
4135 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
4137 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
4138 IBM OpenCL vector types calling convention.
4139 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
4140 (ppc_sysv_abi_broken_return_value): Likewise.
4141 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
4142 types calling convention.
4143 (ppc64_sysv_abi_return_value): Likewise.
4144 * spu-tdep.c: Include "dwarf2.h"
4145 (spu_return_value): Implement IBM OpenCL vector types calling
4148 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4150 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
4151 correct ABI for AltiVec vector arguments.
4153 2011-02-07 Pedro Alves <pedro@codesourcery.com>
4155 * valprint.c (val_print): Extend comment.
4156 * ada-valprint.c (ada_valprint): Rewrite comment deferring
4157 interface explanation to val_print.
4158 (ada_val_print_array): Adjust comment to current interface.
4159 (print_field_values): Adjust comment to current interface.
4160 * c-valprint.c (c_val_print): Rewrite comment deferring interface
4161 explanation to val_print.
4162 * f-valprint.c (f_val_print): Ditto.
4163 * jv-valprint.c (java_val_print): Ditto.
4164 * m2-valprint.c (m2_val_print): Ditto.
4165 * p-valprint.c (pascal_val_print): Ditto.
4167 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
4169 * breakpoint.c (parse_breakpoint_sals): Fix description.
4171 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
4172 Oguz Kayral <oguzkayral@gmail.com>
4174 * python/py-inferior.c (python_on_normal_stop): New function.
4175 (python_on_resume): New function.
4176 (python_inferior_exit): New function.
4177 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
4178 inferior_exit observers.
4179 * python/py-evtregistry.c: New file.
4180 * python/py-threadevent.c : New file.
4181 * python/py-event.c: New file.
4182 * python/py-evts.c: New file.
4183 * python/py-continueevent.c: New file.
4184 * python/py-bpevent.c: New file.
4185 * python/py-signalevent.c: New file.
4186 * python/py-exetiedevent.c: New file.
4187 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
4188 Move struct breakpoint_object from here...
4189 * python/python-internal.h: ... to here.
4190 * python/py-event.h: New file.
4191 * python/py-events.h: New file.
4192 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
4193 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
4194 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
4195 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
4196 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
4197 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
4198 Add build rules for all the above.
4200 2011-02-04 Tom Tromey <tromey@redhat.com>
4202 * dwarf2read.c (dwarf2_section_empty_p): New function.
4203 (dwarf2_read_section): Use dwarf2_section_empty_p.
4204 (dwarf2_section_size): New function.
4205 (dwarf2_get_section_info): Unconditionally read section.
4206 (dwarf2_read_index): Use dwarf2_section_empty_p.
4207 (partial_read_comp_unit_head): Use dwarf2_section_size.
4208 (dwarf2_symbol_mark_computed): Likewise.
4210 2011-02-04 David Daney <ddaney@caviumnetworks.com>
4212 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
4214 2011-02-04 David Daney <ddaney@caviumnetworks.com>
4216 * mips-linux-tdep.c: Include xml-syscall.h.
4217 (mips_linux_get_syscall_number): New function.
4218 (mips_linux_init_abi): Add calls to
4219 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
4220 * data-directory/Makefile.in (SYSCALLS_FILES): Add
4221 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
4222 * syscalls/mips-n32-linux.xml: New file.
4223 * syscalls/mips-n64-linux.xml: New file.
4224 * syscalls/mips-o32-linux.xml: New file.
4226 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4228 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
4229 Complain about inverted range entries.
4230 (dwarf2_record_block_ranges): Likewise.
4232 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4235 * breakpoint.c (update_watchpoint): Fix name of the
4236 update_global_location_list function.
4237 (print_one_breakpoint): Fix typo.
4238 (_initialize_breakpoint): Remove extra space in hbreak help
4240 * breakpoint.h (struct bp_location) <length>: Fix field
4243 2011-02-04 Pedro Alves <pedro@codesourcery.com>
4245 * regcache.c (registers_changed_ptid): Don't explictly always
4246 clear `current_regcache'. Only clear current_thread_ptid and
4247 current_thread_arch when PTID matches. Only reinit the frame
4248 cache if PTID matches the current inferior_ptid. Move alloca(0)
4250 (registers_changed): ... here.
4252 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
4254 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
4255 starts with __stack_chk_guard as stack guard symbol.
4257 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
4259 * disasm.c (compare_lines): Handle the end of sequence markers
4260 within the line table to better support disassembling over
4261 compilation unit boundaries.
4263 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4265 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
4266 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
4267 implementation even if no symbols are available.
4268 (thumb_analyze_prologue): Update call to skip_prologue_function.
4269 (arm_analyze_prologue): Likewise.
4271 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4273 * arm-tdep.c: Include "observer.h".
4274 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
4275 (arm_exidx_data_key): New static variable.
4276 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
4277 (struct arm_exidx_data): Likewise.
4278 (arm_exidx_data_free): New function.
4279 (arm_compare_exidx_entries): Likewise.
4280 (arm_obj_section_from_vma): Likewise.
4281 (arm_exidx_new_objfile): Likewise.
4282 (arm_find_exidx_entry): Likewise.
4283 (arm_exidx_fill_cache): Likewise.
4284 (arm_exidx_unwind_sniffer): Likewise.
4285 (arm_exidx_unwind): New global variable.
4286 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
4287 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
4288 observer. Register arm_exidx_data_key as objfile data.
4290 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4292 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
4293 due to accessing uninitialized variable. Fix indentation.
4295 2011-02-02 Pedro Alves <pedro@codesourcery.com>
4297 * c-valprint.c (c_value_print): When doing virtual base pointer
4298 adjustment, create a new value with adjusted contents rather than
4299 changing the contents of the value being printed (and getting it
4302 2011-02-02 Pedro Alves <pedro@codesourcery.com>
4304 * xml-support.c (xml_find_attribute): New.
4305 (xinclude_start_include): Use it.
4306 * xml-support.h (xml_find_attribute): Declare.
4307 * memory-map.c (memory_map_start_memory)
4308 (memory_map_start_property): Use xml_find_attribute.
4309 * osdata.c (osdata_start_osdata, osdata_start_column): Use
4311 * remote.c (start_thread): Use xml_find_attribute.
4312 * solib-target.c (library_list_start_segment)
4313 (library_list_start_section, library_list_start_library)
4314 (library_list_start_list): Use xml_find_attribute.
4315 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
4316 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
4317 (tdesc_start_field): Use xml_find_attribute.
4319 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
4321 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
4322 (BUILD_OCL_VTYPES): Update.
4324 2011-02-02 Joel Brobecker <brobecker@adacore.com>
4326 * configure.ac: Work around non-GNU sed limitation when computing
4327 python version number.
4328 * configure: Regenerate.
4330 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4332 Fix debug printing of TYPE_INSTANCE.
4333 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
4334 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
4336 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4338 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
4339 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
4340 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
4341 * ada-operator.inc: Rename the file to ...
4342 * ada-operator.def: ... here, wrap all the entries by macro OP.
4343 * expprint.c (op_name_standard): Remove all the entries. Include
4344 "std-operator.def" instead.
4345 * expression.h (enum exp_opcode): Include "std-operator.def" and
4346 "ada-operator.def". Move all the entries ...
4347 * std-operator.def: ... here, wrap all the entries by macro OP.
4349 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
4351 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
4352 * breakpoint.c (remove_jit_event_breakpoints): New function.
4353 * jit.c (jit_descriptor_addr): Delete.
4354 (registering_code): Delete.
4355 (clear_int): Delete.
4356 (jit_inferior_data): New variable.
4357 (struct jit_inferior_data): New type.
4358 (get_jit_inferior_data): New function.
4359 (jit_inferior_data_cleanup): New function.
4360 (jit_read_descriptor): Adjust.
4361 (jit_register_code): Adjust.
4362 (jit_breakpoint_re_set_internal): New function; move code here ...
4363 (jit_inferior_init): ... from here.
4364 (jit_breakpoint_re_set): Adjust.
4365 (jit_reset_inferior_data_and_breakpoints): New function.
4366 (jit_inferior_created_observer): Adjust.
4367 (jit_inferior_exit_hook): Adjust.
4368 (jit_executable_changed_observer): New function.
4369 (jit_event_handler): Adjust.
4370 (_initialize_jit): Adjust.
4372 2011-01-31 Michael Snyder <msnyder@vmware.com>
4374 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
4377 2011-01-31 Tom Tromey <tromey@redhat.com>
4380 * python/python.c (execute_gdb_command): Call
4381 prevent_dont_repeat.
4382 * top.c (suppress_dont_repeat): New global.
4383 (dont_repeat): Use it.
4384 (prevent_dont_repeat): New function.
4385 * command.h (prevent_dont_repeat): Declare.
4387 2011-01-31 Tom Tromey <tromey@redhat.com>
4389 * infcmd.c (finish_backward): Use breakpoint_set_silent.
4390 * python/py-breakpoint.c (bppy_set_silent): Use
4391 breakpoint_set_silent.
4392 (bppy_set_thread): Use breakpoint_set_thread.
4393 (bppy_set_task): Use breakpoint_set_task.
4394 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
4395 (breakpoint_set_task): Declare.
4396 (make_breakpoint_silent): Remove.
4397 * breakpoint.c (breakpoint_set_silent): New function.
4398 (breakpoint_set_thread): Likewise.
4399 (breakpoint_set_task): Likewise.
4400 (make_breakpoint_silent): Remove.
4402 2011-01-31 Tom Tromey <tromey@redhat.com>
4404 * breakpoint.h (user_breakpoint_p): Declare.
4405 * breakpoint.c (user_breakpoint_p): New function.
4406 (breakpoint_1): Use it.
4407 (save_breakpoints): Likewise.
4409 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4411 * configure.ac: Add handling of Python distribution on Windows.
4412 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
4413 sysconfig variables are not defined, then do not use them.
4414 On Windows, if LIBPL is not defined, then use prefix + '/libs'
4415 instead. On Windows, return all paths using forward-slashes
4416 rather than backslashes.
4418 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4420 * configure.ac: Remove fallback behavior for building
4421 against Python. Remove tweaking of Python include path.
4422 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
4423 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
4424 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
4425 Always restore CPPFLAGS and LIBS after linking test.
4426 * configure: Regenerated.
4427 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
4428 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
4429 * python/python-internal.h: Adjust includes of Python .h files.
4431 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4433 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
4436 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4438 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
4441 2011-01-31 Yao Qi <yao@codesourcery.com>
4443 * arm-linux-nat.c: Update calls to regcache_register_status
4444 instead of regcache_valid_p.
4445 * aix-thread.c: Likewise.
4446 * i386gnu-nat.c: Likewise.
4448 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4451 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
4452 touching TYPE_FIELD_ARTIFICIAL.
4454 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
4456 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
4459 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4461 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
4462 selected, don't try iterating over the traceframe's blocks.
4463 (tfile_has_stack): If there's no traceframe selected, then there's
4465 (tfile_has_registers): If there's no traceframe selected, then
4466 there's no registers.
4468 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4470 * target.c (memory_xfer_partial): No need to restore shadows if we
4471 haven't read anything.
4473 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4475 * mips-tdep.c (mips_print_register): Use get_frame_register_value
4476 and val_print_scalar_formatted.
4478 2011-01-27 Pedro Alves <pedro@codesourcery.com>
4480 * tracepoint.c (tfile_read): New.
4481 (tfile_open): Use it.
4482 (tfile_get_traceframe_address): Use it.
4483 (tfile_trace_find): Use it.
4484 (walk_blocks_callback_func): New typedef.
4485 (match_blocktype): New function.
4486 (traceframe_walk_blocks): New function.
4487 (traceframe_find_block_type): New function.
4488 (tfile_fetch_registers, tfile_xfer_partial)
4489 (tfile_get_trace_state_variable_value): Use
4490 traceframe_find_block_type and tfile_read.
4492 2011-01-26 Kevin Buettner <kevinb@redhat.com>
4494 * remote-mips.c: Add internationalization mark ups. Remove
4495 trailing \n from already marked up strings.
4497 2011-01-26 Tom Tromey <tromey@redhat.com>
4499 * python/py-prettyprint.c (print_string_repr): Clear
4500 'addressprint' option when calling val_print_string.
4501 (print_children): Handle Val_pretty_default. Clear 'addressprint'
4502 option when calling val_print_string.
4504 2011-01-26 Tom Tromey <tromey@redhat.com>
4506 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
4508 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
4510 (gdb_py_longest, gdb_py_ulongest): New typedefs.
4511 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
4512 (gdb_py_long_as_ulongest): New defines.
4513 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
4514 (gdb_py_int_as_long): Declare.
4515 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
4516 GDB_PY_LL_ARG, gdb_py_object_from_longest.
4517 (valpy_long): Add comment.
4518 * python/py-utils.c (get_addr_from_python): Use
4519 gdb_py_long_as_ulongest. Handle overflow properly.
4520 (gdb_py_object_from_longest): New function.
4521 (gdb_py_object_from_ulongest): Likewise.
4522 (gdb_py_int_as_long): Likewise.
4523 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
4524 * python/py-symtab.c (salpy_get_pc): Use
4525 gdb_py_long_from_ulongest.
4526 (salpy_get_line): Use PyInt_FromLong.
4527 * python/py-param.c (set_parameter_value): Use
4529 * python/py-lazy-string.c (stpy_get_address): Use
4530 gdb_py_long_from_ulongest.
4531 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
4532 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
4533 * python/py-breakpoint.c (bppy_set_thread): Use
4535 (bppy_set_task): Likewise.
4536 (bppy_set_ignore_count): Likewise.
4537 (bppy_set_hit_count): Likewise.
4538 * python/py-block.c (blpy_get_start): Use
4539 gdb_py_object_from_ulongest.
4540 (blpy_get_end): Likewise.
4541 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
4543 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
4546 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
4547 * gdb/solib.c (solib_read_symbols): Check for addr_low in
4548 equality test for objfile, initialize addr_low if needed.
4550 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4552 * tui/tui-regs.c (tui_register_format): Remove dead code.
4554 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4556 * printcmd.c (print_formatted): Use val_print_scalar_formatted
4557 instead of print_scalar_formatted.
4558 (print_scalar_formatted): Don't handle 's' format strings here,
4559 and add an assertion that we never see such format here.
4560 * valprint.h (val_print_scalar_formatted): Declare.
4561 * valprint.c (val_print_scalar_formatted): New.
4562 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
4563 instead of print_scalar_formatted.
4564 * jv-valprint.c (java_val_print): Ditto.
4565 * p-valprint.c (pascal_val_print): Ditto.
4566 * ada-valprint.c (ada_val_print_1): Ditto.
4567 * f-valprint.c (f_val_print): Ditto.
4568 * infcmd.c (registers_info): Ditto.
4569 * m2-valprint.c (m2_val_print): Ditto.
4571 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4573 * m2-valprint.c (print_unbounded_array): Pass
4574 value_contents_for_printing rather than value_contents, to
4575 m2_print_array_contents. Also pass in the value.
4577 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4579 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
4580 (save_gdb_index_command): Switch to .gdb_index version 4.
4582 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4584 * mi/mi-main.c (get_register): Use get_frame_register_value rather
4585 than frame_register, and always pass a valid value to val_print.
4587 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4589 Centralize printing "<optimized out>".
4591 * valprint.h (val_print_optimized_out): Declare.
4592 * cp-valprint.c (cp_print_value_fields): Use
4593 val_print_optimized_out.
4594 * jv-valprint.c (java_print_value_fields): Ditto.
4595 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4596 * printcmd.c (print_formatted): Ditto.
4597 * valprint.c (valprint_check_validity): Ditto.
4598 (value_check_printable): Ditto.
4599 (val_print_optimized_out): New.
4601 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4603 * infcmd.c (default_print_registers_info): Allocate values so to
4604 never pass a NULL value to val_print.
4606 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4608 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
4609 boolean. Make sure to always pass a value that matches the
4610 contents buffer to callees. Preserve `address' for following
4612 * value.c (value_contents_for_printing_const): New.
4613 (value_address): Constify value argument.
4614 * value.h (value_contents_for_printing_const): Declare.
4615 (value_address): Constify value argument.
4617 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4619 * regcache.c (struct regcache_descr): Rename
4620 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
4621 and sizeof_cooked_register_valid_p to
4622 sizeof_cooked_register_status.
4623 (init_regcache_descr): Adjust.
4624 (struct regcache): Rename register_valid_p field to
4626 (regcache_xmalloc_1, regcache_xfree, regcache_save)
4627 (do_cooked_read): Adjust.
4628 (regcache_valid_p): Rename to ...
4629 (regcache_register_status): ... this. Adjust.
4630 (regcache_invalidate): Adjust.
4631 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
4633 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
4634 as unavailable, not valid.
4635 (regcache_dump): Adjust.
4636 * regcache.h (enum register_status): New.
4637 (regcache_register_status): Declare.
4638 (regcache_invalidate): Delete declaration.
4639 * corelow.c (get_core_registers): Adjust.
4640 * tracepoint.c (tfile_fetch_registers): Adjust.
4641 * trad-frame.c (REG_VALUE): Rename to ...
4642 (TF_REG_VALUE): ... this.
4643 (REG_UNKNOWN): Rename to ...
4644 (TF_REG_UNKNOWN): ... this.
4645 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
4646 * mi/mi-main.c (register_changed_p): Adjust.
4648 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4650 * regcache.c (struct regcache_descr): Remove outdated comment.
4651 (init_regcache_descr): Remove sizeof_raw_register_valid_p
4653 (regcache_xmalloc): Rename to ...
4654 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
4655 Allocate the regcache type accordingly.
4656 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
4657 (regcache_xfree): Asser the source is also readonly. Copy sizeof
4658 cooked registers, not raw.
4659 (regcache_dup_no_passthrough): Delete.
4660 (get_thread_arch_regcache): Use regcache_xmalloc_1.
4661 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
4662 mention obsolete write_register_bytes.
4663 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
4665 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4667 Stop remote_read_bytes from handling partial reads itself.
4669 * remote-fileio.c: Include target.h.
4670 (remote_fileio_write_bytes): Delete.
4671 (remote_fileio_func_open, remote_fileio_func_write)
4672 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
4674 (remote_fileio_func_stat): Use target_read_memory and
4675 target_write_memory.
4676 (remote_fileio_func_gettimeofday): Use target_write_memory.
4677 (remote_fileio_func_system): Use target_read_memory.
4678 * remote.c (remote_write_bytes): Make it static.
4679 (remote_read_bytes): Don't handle partial reads here.
4680 * remote.h (remote_read_bytes): Delete declaration.
4682 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4684 Simplify XML parsing a bit.
4686 * xml-support.h (gdb_xml_parse_quick): Declare.
4687 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
4688 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
4690 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
4691 gdb_xml_create_parser_and_cleanup_1.
4692 (gdb_xml_parse_quick): New.
4693 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
4694 * osdata.c (osdata_parse): Ditto.
4695 * remote.c (remote_threads_info): Ditto.
4696 * solib-target.c (solib_target_parse_libraries): Ditto.
4697 * xml-syscall.c (syscall_parse_xml): Ditto.
4698 * xml-tdesc.c (tdesc_parse_xml): Ditto.
4700 2011-01-24 Kevin Buettner <kevinb@redhat.com>
4702 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
4703 with remote-mips.o added to gdb_target_obs.
4704 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
4706 2011-01-24 Pedro Alves <pedro@codesourcery.com>
4708 * ada-valprint.c (val_print_packed_array_elements): Pass the
4709 correct struct value to val_print.
4710 (ada_val_print_1): Ditto.
4712 2011-01-24 Pedro Alves <pedro@codesourcery.com>
4714 Don't lose embedded_offset in printing routines throughout.
4716 * valprint.h (val_print_array_elements): Change prototype.
4717 * valprint.c (val_print_array_elements): Add `embedded_offset'
4718 parameter, and adjust to pass it down to val_print, while passing
4719 `valaddr' or `address' unmodified. Take embedded_offset into
4720 account when checking repetitions.
4721 * c-valprint.c (c_val_print): Pass embedded_offset to
4722 val_print_array_elements instead of adjusting `valaddr' and
4724 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
4725 embedded_offset to val_print_array_elements instead of adjusting
4727 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
4728 * p-valprint.c (pascal_val_print): Pass embedded_offset to
4729 val_print_array_elements and pascal_object_print_value_fields
4730 instead of adjusting `valaddr'.
4731 (pascal_object_print_value_fields): Add `offset' parameter, and
4733 (pascal_object_print_value): Add `offset' parameter, and adjust to
4735 (pascal_object_print_static_field): Use
4736 value_contents_for_printing/value_embedded_offset, rather than
4738 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
4739 parameter, and adjust to use it. Use
4740 value_contents_for_printing/value_embedded_offset, rather than
4742 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
4743 (ada_val_print_array): Add `offset' parameter, and adjust to use
4745 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
4746 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
4747 Instead work with offsets. Use
4748 value_contents_for_printing/value_embedded_offset, rather than
4749 value_contents. Change `defer_val_int' local type to CORE_ADDR,
4750 and use value_from_pointer to extract a target pointer, rather
4751 than value_from_longest.
4752 (print_variant_part): Add `offset' parameter. Replace
4753 `outer_valaddr' parameter by a new `outer_offset' parameter.
4754 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4755 (ada_value_print): Use
4756 value_contents_for_printing/value_embedded_offset, rather than
4758 (print_record): Add `offset' parameter, and adjust to pass it
4760 (print_field_values): Add `offset' parameter. Replace
4761 `outer_valaddr' parameter by a new `outer_offset' parameter.
4762 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4763 Use value_contents_for_printing/value_embedded_offset, rather than
4765 * d-valprint.c (dynamic_array_type): Use
4766 value_contents_for_printing/value_embedded_offset, rather than
4768 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
4769 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4770 (java_print_value_fields): Take `offset' into account. Don't
4771 re-adjust `valaddr'. Instead pass down adjusted offsets.
4772 (java_val_print): Take `embedded_offset' into account. Pass it to
4773 java_print_value_fields.
4774 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
4775 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
4776 down adjusted offsets.
4777 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
4778 (f_val_print): Take `embedded_offset' into account.
4780 2011-01-21 Joel Brobecker <brobecker@adacore.com>
4782 * inflow.c: Include "gdbcmd.h".
4783 (interactive_mode): New static global, moved here from top.c.
4784 (show_interactive_mode): New function, moved here from top.c.
4785 use gdb_has_a_terminal instead of input_from_terminal_p to
4786 determine the current mode.
4787 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
4789 (_initialize_inflow): Add the "set/show interactive-mode"
4790 commands. Moved here from top.c, after having adjusted slightly
4792 * top.c (interactive_mode, show_interactive_mode): Delete, moved
4794 (input_from_terminal_p): Remove handling of "interactive-mode"
4795 setting, moved to infow.c.
4796 (init_main): Remove creation of the "set/show interactive-mode"
4797 commands, moved to inflow.c.
4799 2011-01-19 Joel Brobecker <brobecker@adacore.com>
4801 * NEWS: Add entry for native ia64-hpux support.
4803 2011-01-19 Tom Tromey <tromey@redhat.com>
4806 * thread.c (free_thread): Free 'name'.
4807 (print_thread_info): Emit thread name. Change CLI output.
4808 (thread_name_command): New function.
4809 (do_captured_thread_select): Emit newline.
4810 (_initialize_thread): Register 'thread name' command.
4811 * target.h (struct target_ops) <to_thread_name>: New field.
4812 (target_thread_name): New macro.
4813 * target.c (update_current_target): Handle to_thread_name.
4814 * python/py-infthread.c (thpy_get_name): New function.
4815 (thpy_set_name): Likewise.
4816 (thread_object_getset): Add "name".
4817 * linux-nat.c (linux_nat_thread_name): New function.
4818 (linux_nat_add_target): Set to_thread_name.
4819 * gdbthread.h (struct thread_info) <name>: New field.
4821 2011-01-18 Joel Brobecker <brobecker@adacore.com>
4823 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
4824 (ada_val_print_1): Likewise.
4826 2011-01-18 Joel Brobecker <brobecker@adacore.com>
4828 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
4829 upper limit address is not greater than the function end address
4830 when the upper limit could not be computed using the debugging
4833 2011-01-17 Tom Tromey <tromey@redhat.com>
4835 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
4837 * utils.c: Include gdb_regex.h.
4838 (do_regfree_cleanup): New function.
4839 (make_regfree_cleanup): Likewise.
4840 (get_regcomp_error): Likewise.
4841 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
4843 2011-01-17 Tom Tromey <tromey@redhat.com>
4845 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
4848 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
4850 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
4851 for internal variables.
4852 (last_was_structop): New static variable.
4853 (COMPLETE): New token.
4854 (field_exp): New rule to group all '.' suffix handling.
4855 Add mark_struct_expression calls when approriate to be able
4856 to correctly find fields for completion.
4857 (yylex): Adapt to handle field completion and set INTVAR when
4860 2011-01-14 Yao Qi <yao@codesourcery.com>
4862 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
4863 save_reggroup, restore_reggroup and all_reggroup.
4865 2011-01-14 Joel Brobecker <brobecker@adacore.com>
4867 * ada-valprint. (ada_printchar): Use the correct type length
4868 in call to ada_emit_char.
4869 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
4871 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
4873 * solib-som.h (hpux_major_release): Declare variable here.
4874 * solib-som.c: Remove <sys/utsname.h> header.
4875 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
4876 (hpux_major_release): Make global, change default value to
4877 DEFAULT_HPUX_MAJOR_RELEASE.
4878 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
4879 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
4880 Add "solib-som.h" header.
4881 (set_hpux_major_release): New function.
4882 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
4884 2011-01-14 Mike Frysinger <vapier@gentoo.org>
4886 * configure.tgt (*-*-uclinux*): Match more Linux os targets
4888 2011-01-14 Joel Brobecker <brobecker@adacore.com>
4890 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
4891 new-line at end of warning message.
4892 (ia64_hpux_store_register): Remove trailing new-line at end of
4894 * ia64-hpux-tdep.c: Rephrase comment.
4895 * solib-ia64-hpux.c (struct dld_info): Change type of field
4896 dld_flags from "long long" to ULONGEST.
4898 2011-01-14 Pedro Alves <pedro@codesourcery.com>
4900 * target.h (deprecated_child_ops): Delete declaration.
4901 * target.c (deprecated_child_ops): Delete definition.
4903 2011-01-14 Pedro Alves <pedro@codesourcery.com>
4905 * Makefile.in (hpux-thread.o): Delete rule.
4906 * configure.ac: Don't check for HPUX DCE threads support.
4907 * configure, config.in: Regenerate.
4908 * hppa-hpux-nat.c (child_suppress_run): Delete.
4909 (hppa_hpux_child_can_run): Delete.
4910 (_initialize_hppa_hpux_nat): Don't override to_can_run.
4911 * hpux-thread.c: Delete.
4913 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4915 * hpux-thread.c (hpux_pid_to_str): Delete.
4917 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4919 * ada-valprint.c (ada_emit_char): Remove strange code.
4920 Check that c is <= UCHAR_MAX before passing it to isascii.
4921 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
4923 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4925 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
4926 to the case where instream is stdin.
4928 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4930 * ia64-tdep.h (struct regcache): Forward declare.
4931 (struct ia64_infcall_ops): New struct type.
4932 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
4934 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
4935 Renames ia64_find_global_pointer.
4936 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
4937 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
4938 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
4940 (ia64_infcall_ops): New static global constant.
4941 (ia64_gdbarch_init): Set tdep->infcall_ops.
4942 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
4943 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
4944 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
4945 (ia64_hpux_dummy_code): New static global constant.
4946 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
4947 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
4948 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
4950 (ia64_hpux_infcall_ops): New static global constant.
4951 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
4952 for inferior function calls to work properly on ia64-hpux.
4954 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4956 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
4957 * ia64-tdep.h (struct frame_info): forward declaration.
4958 (struct gdbarch_tdep): Add field size_of_register_frame.
4959 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
4960 to determine the size of the register frame.
4961 (ia64_size_of_register_frame): New function.
4962 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
4963 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
4964 (IA64_HPUX_UREG_REASON): New macro.
4965 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
4967 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
4968 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
4969 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
4972 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4974 Add support for ia64-hpux.
4975 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
4976 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
4978 * configure.host: Add handling for ia64-hpux hosts. Add associated
4980 * configure.tgt: Add handling for ia64-hpux targets.
4981 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
4982 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
4983 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
4985 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4987 [ttrace] Compute thread list immediately after attach.
4988 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
4990 (inf_ttrace_attach): Use it.
4992 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4994 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
4995 if we could not determine the frame's function address. Instead,
4996 use the frame's PC, and then continue.
4998 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5000 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
5001 not already defined.
5003 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5005 * ia64-tdep.c (ia64_struct_type_p): New function.
5006 (ia64_extract_return_value): Handle integral values that are
5007 less than 8 bytes long.
5008 (ia64_push_dummy_call): Likewise.
5010 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5012 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
5013 floatformat_ia64_ext.
5014 (floatformat_ia64_ext_big): New static const.
5015 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
5017 2011-01-12 Tom Tromey <tromey@redhat.com>
5019 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
5021 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
5022 (mi_cmd_thread_list_ids): Likewise.
5023 (mi_cmd_data_list_changed_registers): Likewise.
5024 (mi_cmd_data_list_register_values): Likewise.
5025 (mi_cmd_data_write_register_values): Likewise.
5026 (mi_cmd_data_evaluate_expression): Likewise.
5027 (mi_cmd_data_read_memory): Likewise.
5028 (mi_cmd_data_read_memory_bytes): Likewise.
5029 (mi_cmd_data_write_memory): Likewise.
5030 (mi_cmd_enable_timings): Likewise.
5031 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
5032 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
5033 (mi_cmd_var_delete): Likewise.
5034 (mi_cmd_var_set_format): Likewise.
5035 (mi_cmd_var_show_format): Likewise.
5036 (mi_cmd_var_info_num_children): Likewise.
5037 (mi_cmd_var_list_children): Likewise.
5038 (mi_cmd_var_info_type): Likewise.
5039 (mi_cmd_var_info_expression): Likewise.
5040 (mi_cmd_var_show_attributes): Likewise.
5041 (mi_cmd_var_assign): Likewise.
5042 (mi_cmd_var_update): Likewise.
5043 (mi_cmd_enable_pretty_printing): Likewise.
5044 (mi_cmd_var_set_update_range): Likewise.
5045 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
5047 (mi_cmd_target_file_put): Likewise.
5048 (mi_cmd_target_file_delete): Likewise.
5049 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
5051 (mi_cmd_stack_info_depth): Likewise.
5052 (mi_cmd_stack_list_locals): Likewise.
5053 (mi_cmd_stack_list_args): Likewise.
5054 (mi_cmd_stack_select_frame): Likewise.
5055 (mi_cmd_stack_select_frame): Likewise.
5056 (mi_cmd_stack_info_frame): Likewise.
5057 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
5059 (mi_cmd_file_list_exec_source_files): Likewise.
5060 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
5061 (mi_cmd_env_cd): Likewise.
5062 (mi_cmd_env_path): Likewise.
5063 (mi_cmd_env_dir): Likewise.
5064 (mi_cmd_inferior_tty_show): Likewise.
5065 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
5066 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
5067 (mi_cmd_break_watch): Likewise.
5069 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
5071 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
5072 (ppc_linux_insert_hw_breakpoint): Likewise.
5073 (ppc_linux_remove_hw_breakpoint): Likewise.
5074 (ppc_linux_insert_watchpoint): Likewise.
5076 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
5077 Jan Kratochvil <jan.kratochvil@redhat.com>
5079 PR fortran/11104 and DWARF unbound arrays detection.
5080 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
5081 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
5082 unspecified upper bound.
5083 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
5084 variables array_size_array, tmp_type and offset_item. New variable
5085 array. Remove call to f77_get_upperbound. New variables array_type
5086 and index. Call value_subscripted_rvalue for each dimenasion. Remove
5087 the final call to deprecated_set_value_type.
5089 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5091 Make value allocations more lazy.
5092 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
5093 instead of allocate_value and set_value_lazy when possible.
5094 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
5095 instead of allocate_value and set_value_lazy.
5096 * findvar.c (value_of_register_lazy): Likewise.
5097 (read_var_value): Remove V preallocation, call just check_typedef in
5098 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
5099 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
5100 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
5101 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
5102 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
5103 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
5104 the end, remove set_value_lazy there.
5105 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
5106 instead of allocate_value and set_value_lazy when possible.
5107 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
5108 * value.c (allocate_computed_value): Use allocate_value_lazy instead
5109 of allocate_value and set_value_lazy.
5110 (value_from_contents_and_address): Use allocate_value_lazy instead of
5111 allocate_value and set_value_lazy when possible.
5113 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
5115 * disasm.c (dump_insns): Support dumping opcodes for MI.
5116 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
5117 dumping of instruction opcodes.
5119 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
5121 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
5124 2011-01-11 Tom Tromey <tromey@redhat.com>
5126 * thread.c (do_captured_thread_select): Emit newline before
5129 2011-01-11 Michael Snyder <msnyder@vmware.com>
5131 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
5132 * score-tdep.c: Ditto.
5133 * score-tdep.h: Ditto.
5134 * ser-base.c: Ditto.
5135 * ser-go32.c: Ditto.
5138 * ser-mingw.c: Ditto.
5139 * ser-pipe.c: Ditto.
5141 * ser-unix.c: Ditto.
5142 * sh64-tdep.c: Ditto.
5143 * shnbsd-nat.c: Ditto.
5147 * solib-darwin.c: Ditto.
5148 * solib-frv.c: Ditto.
5150 * solib-irix.c: Ditto.
5151 * solib-osf.c: Ditto.
5152 * solib-pa64.c: Ditto.
5153 * solib-som.c: Ditto.
5154 * solib-spu.c: Ditto.
5155 * solib-sunos.c: Ditto.
5156 * solib-svr4.c: Ditto.
5158 * sol-thread.c: Ditto.
5162 * sparc64-linux-tdep.c: Ditto.
5163 * sparc64-tdep.c: Ditto.
5164 * sparc-linux-nat.c: Ditto.
5165 * sparc-linux-tdep.c: Ditto.
5166 * sparc-sol2-nat.c: Ditto.
5167 * sparc-sol2-tdep.c: Ditto.
5168 * sparc-tdep.c: Ditto.
5169 * sparc-tdep.h: Ditto.
5170 * spu-tdep.c: Ditto.
5171 * stabsread.c: Ditto.
5172 * stabsread.h: Ditto.
5180 * target-descriptions.c: Ditto.
5181 * target-descriptions.h: Ditto.
5183 * target-memory.c: Ditto.
5184 * terminal.h: Ditto.
5187 * tracepoint.c: Ditto.
5188 * tracepoint.h: Ditto.
5189 * trad-frame.h: Ditto.
5190 * typeprint.c: Ditto.
5192 2011-01-11 Michael Snyder <msnyder@vmware.com>
5194 * ui-file.c: Comment cleanup, mostly periods and spaces.
5199 * v850-tdep.c: Ditto.
5200 * valarith.c: Ditto.
5202 * valprint.c: Ditto.
5203 * valprint.h: Ditto.
5208 * vax-tdep.c: Ditto.
5212 * windows-nat.c: Ditto.
5213 * windows-tdep.c: Ditto.
5214 * xcoffread.c: Ditto.
5215 * xcoffsolib.c: Ditto.
5216 * xml-support.c: Ditto.
5217 * xstormy16-tdep.c: Ditto.
5218 * xtensa-tdep.c: Ditto.
5219 * xtensa-tdep.h: Ditto.
5221 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5223 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
5224 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
5226 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5227 Thiago Jung Bauermann <bauerman@br.ibm.com>
5229 Implement support for PowerPC BookE ranged watchpoints.
5231 (struct breakpoint_ops) <resources_needed>: New method.
5232 Initialize to NULL in all existing breakpoint_ops instances.
5233 (struct breakpoint) <exact>: New field.
5234 (target_exact_watchpoints): Declare external global.
5235 * breakpoint.c (target_exact_watchpoints): New global flag.
5236 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
5237 b->enable_state to bp_enabled before calling
5238 hw_watchpoint_used_count.
5239 (hw_watchpoint_used_count): Iterate over all bp_locations in a
5240 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
5242 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
5243 if the watchpoint is exact.
5244 (resources_needed_watchpoint): New function.
5245 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
5246 (watch_command_1): Set b->exact if the user asked for an exact
5247 watchpoint and one can be set.
5248 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
5249 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
5250 the user asks for an exact watchpoint and one can be set. Return
5251 number of needed debug registers to watch the expression.
5252 * gdbtypes.c (is_scalar_type): New function, based on
5253 valprint.c:scalar_type_p.
5254 (is_scalar_type_recursive): New function.
5255 * gdbtypes.h (is_scalar_type_recursive): Declare.
5256 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
5257 handle regions when ranged watchpoints are available.
5258 (create_watchpoint_request): New function.
5259 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
5260 create_watchpoint_request.
5261 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
5262 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
5263 `set powerpc' and `show powerpc' commands.
5264 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5265 Mention documentation comment in the target macro.
5266 (target_region_ok_for_hw_watchpoint): Document return value.
5268 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5270 * breakpoint.c (update_watchpoint): Decide on using a software or
5271 hardware watchpoint after the bp_locations are created.
5273 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5275 Convert hardware watchpoints to use breakpoint_ops.
5276 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
5277 <insert_location>: ... this. Return int instead of void.
5278 Accept pointer to struct bp_location instead of pointer to
5279 struct breakpoint. Adapt all implementations.
5280 (breakpoint_ops) <remove>: Rename to...
5281 <remove_location>: ... this. Accept pointer to struct bp_location
5282 instead of pointer to struct breakpoint. Adapt all implementations.
5283 * breakpoint.c (insert_catchpoint): Delete function.
5284 (insert_bp_location): Call the watchpoint or catchpoint's
5285 breakpoint_ops.insert method.
5286 (remove_breakpoint_1): Call the watchpoint or catchpoint's
5287 breakpoint_ops.remove method.
5288 (insert_watchpoint, remove_watchpoint): New functions.
5289 (watchpoint_breakpoint_ops): New structure.
5290 (watch_command_1): Initialize the OPS field.
5291 * inf-child.c (inf_child_insert_fork_catchpoint)
5292 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
5293 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
5294 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
5296 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
5297 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
5298 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
5299 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
5300 * target.c (update_current_target): Change default implementation of
5301 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
5302 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
5303 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
5304 to_set_syscall_catchpoint to return_one.
5305 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
5306 (debug_to_insert_exec_catchpoint): Report return value.
5307 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
5308 (to_insert_exec_catchpoint): Change declaration to return int instead
5311 2011-01-11 Michael Snyder <msnyder@vmware.com>
5313 * arm-tdep.c: Internationalization.
5316 * fork-child.c: Ditto.
5317 * nto-procfs.c: Ditto.
5318 * ppc-sysv-tdep.c: Ditto.
5320 * remote-mips.c: Ditto.
5322 * rs6000-nat.c: Ditto.
5323 * rs6000-tdep.c: Ditto.
5327 * xml-support.c: Ditto.
5328 * mi/mi-cmd-break.c: Ditto.
5329 * mi/mi-cmd-var.c: Ditto.
5330 * mi/mi-interp.c: Ditto.
5331 * mi/mi-main.c: Ditto.
5333 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
5335 * remote-sim.c (gdbsim_store_register): Update API to
5336 sim_store_register to check more error conditions.
5338 2011-01-10 Michael Snyder <msnyder@vmware.com>
5340 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
5341 * nto-tdep.c: Ditto.
5342 * nto-tdep.h: Ditto.
5343 * objc-exp.y: Ditto.
5344 * objc-lang.c: Ditto.
5345 * objfiles.c: Ditto.
5346 * objfiles.h: Ditto.
5347 * observer.c: Ditto.
5348 * opencl-lang.c: Ditto.
5351 * parser-defs.h: Ditto.
5354 * posix-hdep.c: Ditto.
5355 * ppcbug-rom.c: Ditto.
5356 * ppc-linux-nat.c: Ditto.
5357 * ppc-linux-tdep.c: Ditto.
5358 * ppc-linux-tdep.h: Ditto.
5359 * ppcnbsd-tdep.c: Ditto.
5360 * ppcobsd-tdep.c: Ditto.
5361 * ppcobsd-tdep.h: Ditto.
5362 * ppc-sysv-tdep.c: Ditto.
5363 * ppc-tdep.h: Ditto.
5364 * printcmd.c: Ditto.
5365 * proc-abi.c: Ditto.
5366 * proc-flags.c: Ditto.
5368 * proc-utils.h: Ditto.
5369 * progspace.h: Ditto.
5370 * prologue-value.c: Ditto.
5371 * prologue-value.h: Ditto.
5372 * psympriv.h: Ditto.
5374 * p-typeprint.c: Ditto.
5375 * p-valprint.c: Ditto.
5376 * ravenscar-sparc-thread.c: Ditto.
5377 * ravenscar-thread.c: Ditto.
5378 * ravenscar-thread.h: Ditto.
5380 * regcache.c: Ditto.
5381 * regcache.h: Ditto.
5383 * remote-fileio.c: Ditto.
5384 * remote-fileio.h: Ditto.
5386 * remote-m32r-sdi.c: Ditto.
5387 * remote-mips.c: Ditto.
5388 * remote-sim.c: Ditto.
5389 * rs6000-aix-tdep.c: Ditto.
5390 * rs6000-nat.c: Ditto.
5391 * rs6000-tdep.c: Ditto.
5393 2011-01-10 Michael Snyder <msnyder@vmware.com>
5395 * charset.c (validate): Internationalization.
5396 * coffread.c (read_one_sym): Ditto.
5397 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
5398 * h8300-tdep.c (H8300_extract_return_value): Ditto.
5399 * inflow.c (new_tty): Ditto.
5400 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
5401 * m32c-tdep.c (m32c_return_value): Ditto.
5402 * mep-tdep.c (mep_store_return_value): Ditto.
5403 * score-tdep.c (score7_fetch_insn): Ditto.
5404 * ser-mingw.c (pipe_windows_open): Ditto.
5405 * sh64-tdep.c (sh64_extract_return_value): Ditto.
5406 * spu-tdep.c (spu_register_type): Ditto.
5407 * tracepoint.c (trace_find_command): Ditto.
5408 * valarith.c (value_pos): Ditto.
5410 2011-01-10 Joel Brobecker <brobecker@adacore.com>
5412 * ada-valprint.c (printstr): Minor comment reformatting.
5414 2011-01-08 Michael Snyder <msnyder@vmware.com>
5416 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
5419 2011-01-08 Michael Snyder <msnyder@vmware.com>
5421 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
5422 * hppa-hpux-tdep.c: Ditto.
5423 * hppa-linux-nat.c: Ditto.
5424 * hppa-linux-tdep.c: Ditto.
5425 * hppanbsd-tdep.c: Ditto.
5426 * hppa-tdep.c: Ditto.
5427 * hppa-tdep.h: Ditto.
5428 * hpux-thread.c: Ditto.
5429 * i386-cygwin-tdep.c: Ditto.
5430 * i386-darwin-nat.c: Ditto.
5431 * i386gnu-nat.c: Ditto.
5432 * i386-linux-nat.c: Ditto.
5433 * i386-linux-tdep.c: Ditto.
5434 * i386-nat.c: Ditto.
5435 * i386-nat.h: Ditto.
5436 * i386nbsd-tdep.c: Ditto.
5437 * i386-sol2-nat.c: Ditto.
5438 * i386-stub.c: Ditto.
5439 * i386-tdep.c: Ditto.
5440 * i386-tdep.h: Ditto.
5441 * i387-tdep.c: Ditto.
5442 * ia64-linux-nat.c: Ditto.
5443 * ia64-linux-tdep.c: Ditto.
5444 * ia64-tdep.c: Ditto.
5448 * inferior.c: Ditto.
5449 * inferior.h: Ditto.
5455 * iq2000-tdep.c: Ditto.
5456 * irix5-nat.c: Ditto.
5462 * jv-typeprint.c: Ditto.
5463 * jv-valprint.c: Ditto.
5464 * language.c: Ditto.
5465 * language.h: Ditto.
5466 * linespec.c: Ditto.
5467 * linux-fork.c: Ditto.
5468 * linux-nat.c: Ditto.
5469 * linux-thread-db.c: Ditto.
5470 * lm32-tdep.c: Ditto.
5472 2011-01-08 Michael Snyder <msnyder@vmware.com>
5474 * m2-exp.y: Comment cleanup, mostly periods and spaces.
5476 * m2-typeprint.c: Ditto.
5477 * m2-valprint.c: Ditto.
5478 * m32c-tdep.c: Ditto.
5479 * m32r-linux-nat.c: Ditto.
5480 * m32r-rom.c: Ditto.
5481 * m32r-tdep.c: Ditto.
5482 * m32r-tdep.h: Ditto.
5483 * m68hc11-tdep.c: Ditto.
5484 * m58klinux-nat.c: Ditto.
5485 * m68k-tdep.c: Ditto.
5486 * m88k-tdep.c: Ditto.
5487 * m88k-tdep.h: Ditto.
5488 * machoread.c: Ditto.
5489 * macrocmd.c: Ditto.
5490 * macroexp.c: Ditto.
5491 * macrotab.c: Ditto.
5494 * mdebugread.c: Ditto.
5495 * mdebugread.h: Ditto.
5498 * memory-map.h: Ditto.
5499 * mep-tdep.c: Ditto.
5500 * microblaze-rom.c: Ditto.
5501 * microblaze-tdep.c: Ditto.
5503 * mips-irix-tdep.c: Ditto.
5504 * mips-linux-nat.c: Ditto.
5505 * mips-linux-tdep.c: Ditto.
5506 * mips-linux-tdep.h: Ditto.
5507 * mipsnbsd-nat.c: Ditto.
5508 * mipsnbsd-tdep.c: Ditto.
5509 * mipsread.c: Ditto.
5510 * mips-tdep.c: Ditto.
5511 * mips-tdep.h: Ditto.
5512 * mn10300-linux-tdep.c: Ditto.
5513 * mn10300-tdep.c: Ditto.
5514 * mn10300-tdep.h: Ditto.
5517 * moxie-tdep.c: Ditto.
5518 * moxie-tdep.h: Ditto.
5521 2011-01-08 Mike Frysinger <vapier@gentoo.org>
5523 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
5525 2011-01-08 Robert Millan <rmh@gnu.org>
5527 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
5529 2011-01-07 Michael Snyder <msnyder@vmware.com>
5531 * charset.c (_initialize_charset): Fix typo in string.
5533 2011-01-07 Michael Snyder <msnyder@vmware.com>
5535 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
5537 * tui/tui-layout.c (tui_set_layout_for_display_command):
5538 Split line so that operator goes to beginning of line.
5539 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
5540 assignment out of if statement.
5542 2011-01-07 Michael Snyder <msnyder@vmware.com>
5544 * ada-lang.c: Comment cleanup, mostly periods and spaces.
5545 * ada-lang.h: Ditto.
5546 * ada-tasks.c: Ditto.
5547 * ada-valprint.c: Ditto.
5548 * aix-threads.c: Ditto.
5549 * alpha-linux-nat.c: Ditto.
5550 * alpha-linux-tdep.c: Ditto.
5551 * alpha-mdebug-tdep.c: Ditto.
5552 * alpha-nat.c: Ditto.
5553 * alpha-osf1-tdep.c: Ditto.
5554 * alpha-tdep.c: Ditto.
5555 * alphabsd-nat.c: Ditto.
5556 * alphabsd-tdep.c: Ditto.
5557 * amd64-darwin-tdep.c: Ditto.
5558 * amd64-linux-nat.c: Ditto.
5559 * amd64-linux-tdep.c: Ditto.
5560 * amd64-sol2-tdep.c: Ditto.
5561 * amd64-tdep.c: Ditto.
5562 * amd64-fbsd-tdep.c: Ditto.
5563 * amd64-nbsd-tdep.c: Ditto.
5564 * amd64-obsd-tdep.c: Ditto.
5565 * amd64-linux-nat.c: Ditto.
5566 * amd64-linux-tdep.c: Ditto.
5567 * arm-tdep.c: Ditto.
5568 * arm-tdep.h: Ditto.
5569 * armnbsd-nat.c: Ditto.
5570 * avr-tdep.c: Ditto.
5571 * bfin-tdep.c: Ditto.
5573 * c-typeprintc: Ditto.
5574 * c-valprint.c: Ditto.
5575 * coff-pe-read.h: Ditto.
5576 * coffreead.c: Ditto.
5577 * cris-tdep.c: Ditto.
5579 * darwin-nat-info.c: Ditto.
5580 * darwin-nat.c: Ditto.
5581 * dbug-rom.c: Ditto.
5585 * dec-thread.c: Ditto.
5587 * demangle.c: Ditto.
5588 * dicos-tdep.c: Ditto.
5589 * dictionary.c: Ditto.
5590 * dictionary.h: Ditto.
5591 * dink32-rom.c: Ditto.
5593 * doublest.c: Ditto.
5595 * dummy-frame.c: Ditto.
5596 * dwarf2-frame.c: Ditto.
5597 * dwarf2expr.c: Ditto.
5598 * dwarf2loc.c: Ditto.
5599 * dwarf2read.c: Ditto.
5603 * event-top.h: Ditto.
5604 * exceptions.c: Ditto.
5605 * exceptions.h: Ditto.
5607 * expprint.c: Ditto.
5608 * expression.h: Ditto.
5612 * f-typeprint.c: Ditto.
5613 * f-valprint.c: Ditto.
5614 * fbsd-nat.c: Ditto.
5616 * fork-child.c: Ditto.
5619 * frv-linux-tdep.c: Ditto.
5620 * frv-tdep.c: Ditto.
5622 * gdb-stabs.h: Ditto.
5623 * gdb_assert.h: Ditto.
5624 * gdb_string.h: Ditto.
5625 * gdb_thread_db.h: Ditto.
5626 * gdb_wait.h: Ditto.
5627 * gdbarch.sh: Ditto.
5629 * gdbthread.h: Ditto.
5630 * gdbtypes.c: Ditto.
5631 * gdbtypes.h: Ditto.
5634 * gnu-v2-abi.c: Ditto.
5635 * gnu-v3-abi.c: Ditto.
5636 * go32-nat.c: Ditto.
5637 * gdbarch.c: Regenerate.
5638 * gdbarch.h: Regenerate.
5640 2011-01-07 Michael Snyder <msnyder@vmware.com>
5642 * ax-gdb.c: Adjust some long output strings.
5643 * breakpoint.c: Ditto.
5648 * linux-nat.c: Ditto.
5649 * solib-pa64.c: Ditto.
5650 * solib-som.c: Ditto.
5652 2011-01-06 Tom Tromey <tromey@redhat.com>
5656 * python/python.c (GdbMethods): Add "newest_frame" method.
5657 * python/python-internal.h (gdbpy_newest_frame): Declare.
5658 * python/py-frame.c (gdbpy_newest_frame): New function.
5660 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
5662 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
5663 * jit.c (jit_debug): New variable.
5664 (show_jit_debug): New function.
5665 (struct target_buffer): Use ULONGEST.
5666 (bfd_open_from_target_memory): Likewise.
5667 (jit_register_code, jit_inferior_init): Add debug output.
5668 (_initialize_jit): Register "debug jit" command.
5670 2011-01-06 Tom Tromey <tromey@redhat.com>
5672 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
5673 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
5676 2011-01-06 Tom Tromey <tromey@redhat.com>
5678 * python/py-frame.c (frapy_block): Use get_frame_block.
5680 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5682 Do not stop on SIGPRIO signals by default
5683 * infrun.c (_initialize_infrun): Unset signal_stop and
5684 signal_print for TARGET_SIGNAL_PRIO.
5686 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5688 * ada-tasks.c: Fix style violation in comment.
5690 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5692 * linespec.c (decode_compound, find_method): Remove trailing \n
5693 at end of error string.
5694 * solib-irix.c (irix_current_sos): Likewise.
5695 * varobj.c (uninstall_variable): Likewise.
5697 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5699 * copyright.py: New script.
5700 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
5701 Launch emacs without exec'ing. Call copyright.py afterwards.
5703 2011-01-05 Michael Snyder <msnyder@vmware.com>
5705 * addrmap.c: Shorten lines of >= 80 columns.
5706 * arch-utils.c: Ditto.
5707 * arch-utils.h: Ditto.
5709 * ax-general.c: Ditto.
5711 * blockframe.c: Ditto.
5712 * breakpoint.c: Ditto.
5713 * buildsym.c: Ditto.
5715 * c-typeprint.c: Ditto.
5717 * coffread.c: Ditto.
5721 * cp-namespace.c: Ditto.
5722 * cp-support.c: Ditto.
5723 * dbug-rom.c: Ditto.
5728 * dictionary.c: Ditto.
5730 * doublest.c: Ditto.
5731 * dwarf2-frame.c: Ditto.
5732 * dwarf2expr.c: Ditto.
5733 * dwarf2loc.c: Ditto.
5734 * dwarf2read.c: Ditto.
5737 * event-loop.c: Ditto.
5738 * event-loop.h: Ditto.
5739 * exceptions.h: Ditto.
5741 * expprint.c: Ditto.
5742 * expression.h: Ditto.
5744 * f-valprint.c: Ditto.
5746 * frame-base.c: Ditto.
5747 * frame-unwind.c: Ditto.
5748 * frame-unwind.h: Ditto.
5752 * gdb-stabs.h: Ditto.
5753 * gdb_assert.h: Ditto.
5754 * gdb_dirent.h: Ditto.
5755 * gdb_obstack.h: Ditto.
5757 * gdbtypes.c: Ditto.
5758 * gdbtypes.h: Ditto.
5759 * inf-ttrace.c: Ditto.
5764 * inline-frame.h: Ditto.
5765 * language.c: Ditto.
5766 * language.h: Ditto.
5767 * libunwind-frame.c: Ditto.
5768 * libunwind-frame.h: Ditto.
5769 * linespec.c: Ditto.
5770 * linux-nat.c: Ditto.
5771 * linux-nat.h: Ditto.
5772 * linux-thread-db.c: Ditto.
5773 * machoread.c: Ditto.
5774 * macroexp.c: Ditto.
5775 * macrotab.c: Ditto.
5778 * mdebugread.c: Ditto.
5783 * objfiles.c: Ditto.
5784 * objfiles.h: Ditto.
5786 * p-typeprint.c: Ditto.
5787 * p-valprint.c: Ditto.
5789 * printcmd.c: Ditto.
5790 * proc-events.c: Ditto.
5792 * progspace.c: Ditto.
5793 * progspace.h: Ditto.
5794 * psympriv.h: Ditto.
5797 * regcache.c: Ditto.
5798 * regcache.h: Ditto.
5799 * remote-fileio.c: Ditto.
5801 * ser-mingw.c: Ditto.
5803 * ser-unix.c: Ditto.
5806 * solib-frv.c: Ditto.
5807 * solib-irix.c: Ditto.
5808 * solib-osf.c: Ditto.
5809 * solib-pa64.c: Ditto.
5810 * solib-som.c: Ditto.
5811 * solib-sunos.c: Ditto.
5812 * solib-svr4.c: Ditto.
5813 * solib-target.c: Ditto.
5817 * stabsread.c: Ditto.
5818 * stabsread.c: Ditto.
5821 * symfile-mem.c: Ditto.
5827 * target-descriptions.c: Ditto.
5828 * target-memory.c: Ditto.
5831 * terminal.h: Ditto.
5834 * tracepoint.c: Ditto.
5835 * tracepoint.h: Ditto.
5839 * user-regs.c: Ditto.
5840 * user-regs.h: Ditto.
5842 * valarith.c: Ditto.
5844 * valprint.c: Ditto.
5845 * valprint.h: Ditto.
5850 * xcoffread.c: Ditto.
5851 * xcoffsolib.c: Ditto.
5852 * xcoffsolib.h: Ditto.
5853 * xml-syscall.c: Ditto.
5854 * xml-tdesc.c: Ditto.
5856 2011-01-05 Michael Snyder <msnyder@vmware.com>
5858 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
5859 * cli/cli-decode.c: Ditto.
5860 * cli/cli-dump.c: Ditto.
5861 * cli/cli-logging.c: Ditto.
5862 * cli/cli-script.c: Ditto.
5863 * cli/cli-setshow.c: Ditto.
5864 * common/signals.c: Ditto.
5865 * mi/mi-cmd-break.c: Ditto.
5866 * mi/mi-cmd-disas.c: Ditto.
5867 * mi/mi-cmd-stack.c: Ditto.
5868 * mi/mi-cmd-var.c: Ditto.
5869 * mi/mi-cmds.c: Ditto.
5870 * mi/mi-common.h: Ditto.
5871 * mi/mi-console.c: Ditto.
5872 * mi/mi-interp.c: Ditto.
5873 * mi/mi-main.c: Ditto.
5874 * osf-share/cma_attr.c: Ditto.
5875 * osf-share/cma_deb_core.h: Ditto.
5876 * osf-share/cma_debug_client.h: Ditto.
5877 * osf-share/cma_handle.h: Ditto.
5878 * osf-share/cma_mutex.h: Ditto.
5879 * osf-share/cma_stack_int.h: Ditto.
5880 * osf-share/cma_tcb_defs.h: Ditto.
5881 * python/py-auto-load.c: Ditto.
5882 * python/py-breakpoint.c: Ditto.
5883 * python/py-cmd.c: Ditto.
5884 * python/py-frame.c: Ditto.
5885 * python/py-objfile.c: Ditto.
5886 * python/py-param.c: Ditto.
5887 * python/py-progspace.c: Ditto.
5888 * python/py-symbol.c: Ditto.
5889 * python/py-value.c: Ditto.
5890 * python/python-internal.h: Ditto.
5891 * python/python.c: Ditto.
5892 * tui/tui-data.c: Ditto.
5893 * tui/tui-disasm.c: Ditto.
5894 * tui/tui-hooks.c: Ditto.
5895 * tui/tui-io.c: Ditto.
5896 * tui/tui-layout.c: Ditto.
5897 * tui/tui-regs.c: Ditto.
5898 * tui/tui-source.c: Ditto.
5899 * tui/tui-stack.c: Ditto.
5900 * tui/tui-win.c: Ditto.
5901 * tui/tui-windata.c: Ditto.
5902 * tui/tui-winsource.c: Ditto.
5904 2011-01-05 Joel Brobecker <brobecker@adacore.com>
5906 * configure.ac, gdb.1: Copyright year update.
5908 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5910 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
5911 this_pc_in_block, morestack_msym and morestack_name. Check for
5912 "__morestack" minimal symbol there.
5914 2011-01-03 Joel Brobecker <brobecker@adacore.com>
5916 * symfile.c (find_sym_fns): Add call to dont_repeat.
5918 2011-01-01 Joel Brobecker <brobecker@adacore.com>
5920 Copyright year update in most files (performed by copyright.sh).
5922 2011-01-01 Joel Brobecker <brobecker@adacore.com>
5924 * top.c (print_gdb_version): Update copyright year in version output.
5926 For older changes see ChangeLog-2010.
5932 version-control: never