1 2011-05-17 Tom Tromey <tromey@redhat.com>
3 * dwarf2read.c (dwarf2_get_die_type): Call
4 get_die_type_at_offset.
5 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6 get_base_type function.
8 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
10 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
13 2011-05-16 Doug Evans <dje@google.com>
15 * python/py-auto-load.c (source_section_scripts): Mention objfile
18 2011-05-15 Doug Evans <dje@google.com>
20 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
21 (try_thread_db_load_from_pdir): Call it. If unable to find
22 libthread_db in directory of libpthread, see if we're looking at
23 the separate-debug-info copy.
25 * python/py-autoload.c (print_script): Print "Missing" instead of
26 "No" for missing scripts.
27 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
29 2011-05-13 Doug Evans <dje@google.com>
31 * ui-file.c (stdio_file_write_async_safe): Add comment.
33 2011-05-14 Hui Zhu <teawater@gmail.com>
35 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
37 2011-05-13 Doug Evans <dje@google.com>
39 Support $pdir and $sdir in libthread-db-search-path.
40 * NEWS: Mention $sdir,$pdir.
41 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
42 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
43 (try_thread_db_load_from_sdir): New function.
44 (try_thread_db_load_from_dir): New function.
45 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
46 system directories if search of libthread-db-search-path fails,
47 that is now done via $sdir.
48 (has_libpthread): New function.
49 (thread_db_load): Remove search for libthread_db in directory of
50 libpthread, that is now done via $pdir.
52 * NEWS: Mention "info auto-load-scripts".
53 * python/py-auto-load.c (struct auto_load_pspace_info): New member
54 script_not_found_warning_printed.
55 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
56 all callers updated. Initialize script_not_found_warning_printed.
57 (get_auto_load_pspace_data_for_loading): New function.
58 (maybe_add_script): New function.
59 (source_section_scripts): Simplify. Only print one warning regardless
60 of the number of auto-load scripts not found.
61 (clear_section_scripts): Clear script_not_found_warning_printed.
62 (auto_load_objfile_script): Record script in hash table.
63 (count_matching_scripts): New function.
64 (maybe_print_script): Renamed from maybe_print_section_script, all
65 callers updated. Rewrite to use ui_out_*.
66 (info_auto_load_scripts): Renamed from
67 maintenance_print_section_scripts, all callers updated.
68 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
69 renamed as "info auto-load-scripts".
71 2011-05-13 Tom Tromey <tromey@redhat.com>
73 * dwarf2expr.c (read_uleb128): Cast intermediate result.
74 (read_sleb128): Likewise.
76 2011-05-13 Tom Tromey <tromey@redhat.com>
78 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
81 2011-05-13 Doug Evans <dje@google.com>
83 * linux-nat.c (debug_linux_nat_async): Delete.
84 Replace all references to use debug_linux_nat instead.
85 (show_debug_linux_nat_async): Delete.
86 (sigchld_handler): Call ui_file_write_async_safe instead of
88 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
89 * ui-file.c (struct ui_file): New member to_write_async_safe.
90 (null_file_write_async_safe): New function.
91 (ui_file_write_async_safe): New function.
92 (set_ui_file_write_async_safe): New function.
93 (ui_file_new): Initialize to_write_async_safe.
94 (stdio_file_write_async_safe): New function.
95 (struct stdio_file): New member fd.
96 (stdio_file_new): Initialize to_write_async_safe, fd.
97 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
99 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
100 (set_ui_file_write_async_safe): Declare.
101 (ui_file_write_async_safe): Declare.
103 2011-05-13 Tom Tromey <tromey@redhat.com>
105 * utils.c (do_value_free): New function.
106 (make_cleanup_value_free): Likewise.
107 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
109 (dwarf2_loc_desc_needs_frame): Call
110 make_cleanup_value_free_to_mark.
111 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
112 * dwarf2expr.c (free_dwarf_expr_context): Don't call
114 (new_dwarf_expr_context): Don't call value_mark.
115 * dwarf2-frame.c (execute_stack_op): Call
116 make_cleanup_value_free_to_mark.
117 * defs.h (make_cleanup_value_free): Declare.
119 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
121 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
122 prepare_execute_command.
123 * top.c (prepare_execute_command): Return cleanup.
124 (execute_command): Use cleanup from prepare_execute_command.
125 * top.h (prepare_execute_command): Change prototype to return
127 * defs.h (struct value): Add opaque declaration.
128 (make_cleanup_value_free_to_mark): Add prototype.
129 * utils.c (do_value_free_to_mark): New function.
130 (make_cleanup_value_free_to_mark): Likewise.
132 2011-05-12 Tom Tromey <tromey@redhat.com>
134 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
135 cast left-hand-side to unsigned.
137 2011-05-12 Tom Tromey <tromey@redhat.com>
140 * value.h (value_from_contents): Declare.
141 * value.c (value_from_contents): New function.
142 * dwarf2read.c (dwarf_stack_op_name): Add new values.
143 (dwarf2_get_die_type): New function.
144 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
145 (allocate_piece_closure): Acquire reference to values.
146 (read_pieced_value): Update for value-based expressions.
147 (write_pieced_value): Likewise.
148 (free_pieced_value_closure): Call value_free as needed.
149 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
150 Update for value-based expressions.
151 * dwarf2loc.h (dwarf2_get_die_type): Declare.
152 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
153 <get_base_type>: New field.
154 (struct dwarf_expr_piece) <v.value>: Change type.
155 <v.regno>: New field.
156 (struct dwarf_expr_context) <mark>: New field.
157 (dwarf_expr_piece, dwarf_expr_fetch): Update.
158 (dwarf_expr_pop, dwarf_expr_push): Remove.
159 (dwarf_expr_push_address): Declare.
160 * dwarf2expr.c (dwarf_arch_cookie): New global.
161 (struct dwarf_gdbarch_types): New.
162 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
164 (dwarf_expr_push): Change type of 'value' argument. Update. Now
166 (dwarf_expr_push_address): New function.
167 (dwarf_expr_pop): Now static.
168 (dwarf_expr_fetch): Change return type.
169 (dwarf_require_integral): New function.
170 (dwarf_expr_fetch): Simplify.
172 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
174 (execute_stack_op) <sign_ext>: Remove.
175 Use values for DWARF stack.
176 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
177 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
179 (_initialize_dwarf2expr): New function.
181 (new_dwarf_expr_context): Set new field.
182 (free_dwarf_expr_context): Call value_free_to_mark.
183 * dwarf2-frame.c (no_base_type): New function.
184 (execute_stack_op): Set get_base_type field. Update.
186 2011-05-12 Tom Tromey <tromey@redhat.com>
188 * dwarf2read.c (read_common_block): Fix formatting.
190 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
192 * breakpoint.c (disable_breakpoint): Disable all locations
193 associated with a tracepoint on target if a trace experiment is
195 (disable_command): Disable a specific tracepoint location on target if
196 a trace experiment is running.
197 (do_enable_breakpoint): Enable all locations associated with a
198 tracepoint on target if a trace experiment is running.
199 (enable_command) Enable a specific tracepoint location on target if a
200 trace experiment is running.
201 * target.c (update_current_target): Add INHERIT and de_fault clauses for
202 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
203 to_disable_tracepoint.
204 * target.h: Add declaration of struct bp_location.
205 (struct target_ops): Add new functions
206 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
207 to_disable_tracepoint to target operations.
208 (target_supports_enable_disable_tracepoint): New macro.
209 (target_enable_tracepoint): New macro.
210 (target_disable_tracepoint): New macro.
211 * remote.c (struct remote_state): Add new field.
212 (remote_enable_disable_tracepoint_feature): New.
213 (remote_protocol_features): Add new entry.
214 (remote_supports_enable_disable_tracepoint): New.
215 (remote_enable_tracepoint): New.
216 (remote_disable_tracepoint): New.
217 (init_remote_ops): Add remote_enable_tracepoint,
218 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
219 to remote operations.
220 * tracepoint.c (start_tracing): Allow tracing to start without any
221 tracepoints enabled with just a warning if they can be re-enabled
223 * NEWS: Add news item for the new behaviour of the enable and disable
224 GDB commands when applied to tracepoints.
225 Add news items for the new remote packets QTEnable and QTDisable.
227 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
229 * config.in: Regenerate.
230 * configure: Regenerate.
231 * configure.ac <--with-system-readline> (for readline_echoing_p):
233 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
234 (tui_old_rl_echoing_p): ... here.
235 (tui_setup_io): Rename extern declaration readline_echoing_p to
236 _rl_echoing_p. Adjust assignments for the both renames.
238 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
240 * symtab.c (lookup_symtab): Run cleanup before returning.
242 2011-05-11 Tom Tromey <tromey@redhat.com>
244 * dwarf2read.c (handle_data_member_location): New function.
245 (dwarf2_add_field): Use it.
246 (read_common_block): Likewise.
248 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
250 Make addrs->SECTINDEX always defined.
251 * symfile.c (relative_addr_info_to_section_offsets): Check for
252 SECTINDEX -1, not for zero ADDR.
253 (addrs_section_compar): Remove checking for invalid SECTINDEX.
254 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
255 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
258 2011-05-10 Doug Evans <dje@google.com>
260 * linux-thread-db.c: Whitespace cleanup.
261 (try_thread_db_load_1): Fix comment.
263 * linux-thread-db.c (set_libthread_db_search_path): New function.
264 (_initialize_thread_db): Add setter for libthread-db-search-path.
266 2011-05-09 Doug Evans <dje@google.com>
268 * NEWS: Mention --with-iconv-bin.
269 * configure.ac: New option --with-iconv-bin.
270 * configure: Regenerate.
271 * config.in: Regenerate.
272 * defs.h (relocate_gdb_directory): Declare.
273 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
274 removed progname parameter, and exported. All callers updated.
275 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
277 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
278 adding missing call to restore_child_signals_mask.
280 2011-05-09 Pedro Alves <pedro@codesourcery.com>
282 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
284 * infrun.c (proceed, start_remote): Adjust.
285 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
286 and adjust to not handle it.
287 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
288 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
289 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
290 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
291 * windows-nat.c (do_initial_windows_stuff): Adjust.
292 * infcmd.c (attach_command): Adjust.
293 (notice_new_inferior): Adjust.
295 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
297 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
298 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
299 * spu-tdep.c (op_selb): Use correct value.
301 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
303 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
304 "parent" parameter to symbol_file_add_from_bfd call.
306 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
307 Thiago Jung Bauermann <bauerman@br.ibm.com>
309 Implement support for PowerPC BookE masked watchpoints.
310 * NEWS: Mention masked watchpoint support. Create "Changed commands"
312 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
313 method. Initialize to NULL in all existing breakpoint_ops instances.
314 (struct breakpoint) <hw_wp_mask>: New field.
315 * breakpoint.c (is_masked_watchpoint): Add prototype.
316 (update_watchpoint): Don't set b->val for masked watchpoints. Call
317 breakpoint's breakpoint_ops.works_in_software_mode if available.
318 (watchpoints_triggered): Handle the case of a hardware masked
320 (watchpoint_check): Likewise.
321 (works_in_software_mode_watchpoint): New function.
322 (insert_masked_watchpoint, remove_masked_watchpoint)
323 (resources_needed_masked_watchpoint)
324 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
325 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
326 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
328 (masked_watchpoint_breakpoint_ops): New structure.
329 (watch_command_1): Check for the existence of the `mask' parameter.
330 Set b->ops according to the type of hardware watchpoint being created.
331 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
332 (ppc_linux_remove_mask_watchpoint)
333 (ppc_linux_masked_watch_num_registers): New functions.
334 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
335 to_remove_mask_watchpoint and to_masked_watch_num_registers.
336 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
337 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
338 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
339 (target_masked_watch_num_registers): New functions.
340 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
341 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
343 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
344 (target_masked_watch_num_registers): Add prototypes.
346 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
349 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
350 (producer_is_gcc_ge_4_0): New function.
351 (process_full_comp_unit): Set also symtab->locations_valid. Move the
352 symtab->language code.
353 (var_decode_location): Set cu->has_loclist.
354 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
355 skip. Intialize force_skip from locations_valid. Move the prologue
356 skipping code into two passes.
357 * symtab.h (struct symtab): Make the primary field a bitfield. New
358 field locations_valid.
360 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
362 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
363 (classify_inner_name): Call cp_lookup_nested_type with
365 * cp-namespace.c (cp_lookup_nested_type): New variable
366 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
367 type_name_no_tag_or_error with saved_parent_type.
368 * dwarf2read.c (load_partial_dies): Read in any children of
369 DW_TAG_typedef with complaint in such case.
370 * gdbtypes.c (type_name_no_tag_or_error): New function.
371 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
372 * valops.c (destructor_name_p): New comment for parameter type. Remove
373 type const. Make dname and cp const. Call type_name_no_tag_or_error.
374 * value.h (destructor_name_p): Remove type const.
376 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
378 * symtab.c (compare_symbol_name): New function.
379 (completion_list_add_name, expand_partial_symbol_name): Call it,
380 remove the variable ncmp.
381 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
384 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
386 Demote to sw watchpoint only in update_watchpoint.
387 * breakpoint.c (update_watchpoint): Change between software and
388 hardware watchpoint for all kinds of watchpoints, not just
389 read/write ones. Determine b->exact value here instead of
390 in watch_command_1. Error out if there are not enough resources
391 for a read or access hardware watchpoint.
392 (watch_command_1): Remove logic of checking whether there are
393 enough resources available, since update_watchpoint will do that
394 work now. Don't set b->exact here. Catch exceptions thrown by
395 update_watchpoint and delete the watchpoint.
396 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
397 Use target_exact_watchpoints instead.
398 (delete_breakpoint): Notify observers only if deleted watchpoint
399 has a breakpoint number assigned to it.
401 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
403 * MAINTAINERS: Add myself as a write-after-approval maintainer.
405 2011-05-05 Jerome Guitton <guitton@adacore.com>
407 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
409 (i386_stack_tramp_frame_unwind): New static global.
410 (i386_match_pattern): New function, extracted from i386_match_insn.
411 (i386_match_insn): Use i386_match_pattern.
412 (i386_match_insn_block): New function.
413 (i386_tramp_chain_in_reg_insns)
414 (i386_tramp_chain_on_stack_insns): New static variables.
415 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
418 2011-05-04 Joseph Myers <joseph@codesourcery.com>
420 * configure.host (xscale*): Don't handle target.
421 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
424 2011-05-04 Yao Qi <yao@codesourcery.com>
426 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
428 2011-05-03 Joel Brobecker <brobecker@adacore.com>
431 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
432 | * elfread.c (elf_symtab_read): Stop memory leak.
434 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
436 * nto-tdep.c (nto_target): Replace deprecated call to
437 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
439 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
441 Fix false GCC warning.
442 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
444 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
446 * breakpoint.c (update_watchpoint): Move code to change
447 the enable state of breakpoint from here ...
448 (do_enable_breakpoint): ... to here.
450 2011-04-26 Andrew Gontarek <andrewg@cray.com>
452 * valprint.c (val_print_array_elements): Fixed poor performance
453 of printing very large arrays with repeat_count_threshold set
454 to unlimited. New comment.
456 2011-04-29 Tom Tromey <tromey@redhat.com>
458 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
459 (mi_parse): Likewise.
460 * breakpoint.c (break_range_command): Use sizeof char*, not
462 (create_breakpoint): Likewise.
463 (parse_breakpoint_sals): Likewise.
465 2011-04-29 Pedro Alves <pedro@codesourcery.com>
467 * linux-nat.c (linux_child_remove_fork_catchpoint)
468 (linux_child_remove_vfork_catchpoint)
469 (linux_child_remove_exec_catchpoint): New functions.
470 (linux_target_install_ops): Install them.
472 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
476 * varobj.c (install_default_visualizer): Do not install a
477 visualizer if the varobj is CPLUS_FAKE_CHILD.
478 (construct_visualizer): Likewise.
480 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
482 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
483 case insensitive comparison.
485 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
487 * infrun.c (proceed): Revert previous change.
488 (resume): Instead, handle the case of signal delivery while stepping
489 off a breakpoint location here, and only if software single-stepping
490 is used. Handle nested signals.
492 2011-04-28 Yao Qi <yao@codesourcery.com>
494 * arm-tdep.c (copy_unmodified): Rename to ...
495 (arm_copy_unmodified): .. this. New.
496 (copy_preload): Move common part to ...
497 (install_preload): .. this. New.
498 (arm_copy_preload): New.
499 (copy_preload_reg): Move common part to ...
500 (install_preload_reg): ... this. New.
501 (arm_copy_preload_reg): New.
502 (copy_b_bl_blx): Move common part to ...
503 (install_b_bl_blx): .. this. New.
504 (arm_copy_b_bl_blx): New.
505 (copy_bx_blx_reg): Move common part to ...
506 (install_bx_blx_reg): ... this. New.
507 (arm_copy_bx_blx_reg): New.
508 (copy_alu_reg): Move common part to ...
509 (install_alu_reg): ... this. New.
510 (arm_copy_alu_reg): New.
511 (copy_alu_shifted_reg): Move common part to ...
512 (install_alu_shifted_reg): ... this. New.
513 (copy_ldr_str_ldrb_strb): Move common part to ...
514 (install_ldr_str_ldrb_strb): ... this. New.
515 (arm_copy_ldr_str_ldrb_strb): New.
516 (copy_copro_load_store): Move some common part to ...
517 (install_copy_copro_load_store): ... this. New.
518 (arm_copy_copro_load_store): New.
520 (arm_copy_svc): Renamed from copy_svc.
521 (copy_undef): Delete.
522 (arm_copy_undef): Renamed from copy_undef.
523 (decode_ext_reg_ld_st): Delete.
524 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
525 (decode_svc_copro): Delete.
526 (arm_decode_svc_copro): Renamed from decode_svc_copro.
527 (copy_copro_load_store, copy_alu_imm): update callers.
528 (copy_extra_ld_st, copy_block_xfer): Likewise.
529 (decode_misc_memhint_neon, decode_unconditional): Likewise.
530 (decode_miscellaneous, decode_dp_misc): Likewise.
531 (decode_ld_st_word_ubyte, decode_media): Likewise.
532 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
533 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
534 (decode_unconditional, decode_miscellaneous): Likewise.
535 (decode_media, decode_b_bl_ldmstm): Likewise.
536 (arm_process_displaced_insn): Likewise..
537 (decode_misc_memhint_neon): Delete.
538 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
539 (decode_miscellaneous): Delete.
540 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
541 (decode_dp_misc): Delete.
542 (arm_decode_dp_misc): Renamed from decode_dp_misc.
543 (decode_ld_st_word_ubyte): Delete.
544 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
545 (decode_media): Delete.
546 (arm_decode_media): Renamed from decode_media.
547 (decode_b_bl_ldmstm): Delete.
548 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
549 (decode_ext_reg_ld_st): Delete.
550 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
551 (decode_unconditional): Delete.
552 (arm_decode_unconditional): Renamed from decode_unconditional.
554 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
556 Case insensitive lookups implementation.
557 * dwarf2read.c: Include ctype.h.
558 (struct mapped_index): New field version.
559 (mapped_index_string_hash): New parameter index_version. New comment
560 for it. Call tolower appropriately.
561 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
562 Choose the right index version for mapped_index_string_hash.
563 (dwarf2_read_index): Support also the index version 5. Initialize the
564 new struct mapped_index field version.
565 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
566 (find_slot): Explain the version needs. Pass INT_MAX for the new
568 (write_psymtabs_to_index): Produce version 5.
569 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
570 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
571 * psymtab.c (lookup_partial_symbol): Find the
572 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
574 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
576 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
577 (completion_list_add_name): New variable ncmp, initialize it, use it.
578 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
579 * utils.c (strcmp_iw): Support case_sensitive_off.
580 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
581 New function comment part. New variables saved_string1,
582 saved_string2 and case_pass. Add a proper second pass.
584 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
586 Replace re_comp/re_exec by regcomp/regexec.
587 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
588 (search_symbols_name_matches): Use them, use regexec.
589 (search_symbols): New variable retval_chain, adjust the use of
590 old_chain against it. Replace re_comp by regcomp. Use the new struct
591 search_symbols_data fields, use regexec instead of re_exec.
593 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
595 Format the code for the next patch.
596 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
597 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
598 New variables c1 and c2.
600 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
602 * infrun.c (proceed): Do not single-step into signal delivery
603 when stepping off a breakpoint location.
604 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
605 (insert_step_resume_breakpoint_at_caller): Likewise.
606 (insert_step_resume_breakpoint_at_sal): Likewise.
607 (insert_longjmp_resume_breakpoint): Likewise.
609 2011-04-27 Yao Qi <yao@codesourcery.com>
611 * common/linux-ptrace.h: Remove include <sys/wait.h>.
613 2011-04-27 Joel Brobecker <brobecker@adacore.com>
615 * procfs.c (procfs_pass_signals): Fix advance declaration.
617 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
619 * target.h (struct target_ops): Remove to_notice_signals;
621 (target_notice_signals): Remove.
622 (target_pass_signals): Add prototype.
623 * target.c (update_current_target): Remove to_notice_signals;
624 mention to_pass_signals.
625 (target_pass_signals): New function.
626 (debug_to_notice_signals): Remove.
627 (setup_target_debug): Do not install debug_to_notice_signals.
629 * infrun.c (signal_pass): New global.
630 (resume): Call target_pass_signals.
631 (handle_inferior_event): Report all signals while stepping over
632 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
633 are re-inserted when stepping over a signal handler.
634 (signal_cache_update): New function.
635 (signal_stop_update): Call it.
636 (signal_print_update): Likewise.
637 (signal_pass_update): Likewise.
638 (handle_command): Call signal_cache_update and target_pass_signals
639 instead of target_notice_signals.
640 (_initialize_infrun): Initialize signal_pass.
642 * linux-nat.c (pass_mask): New global.
643 (linux_nat_pass_signals): New function.
644 (linux_nat_create_inferior): Report all signals initially.
645 (linux_nat_attach): Likewise.
646 (linux_nat_resume): Use pass_mask to decide whether to directly
647 handle an inferior signal.
648 (linux_nat_wait_1): Likewise.
649 (linux_nat_add_target): Install to_pass_signals callback.
651 * nto-procfs.c (notice_signals): Remove.
652 (procfs_resume): Do not call notice_signals.
653 (procfs_notice_signals): Remove.
654 (procfs_pass_signals): New function.
655 (init_procfs_ops): Install to_pass_signals callback instead of
656 to_notice_signals callback.
657 (_initialize_procfs): Report all signals initially.
659 * procfs.c (procfs_notice_signals): Remove.
660 (procfs_pass_signals): New function.
661 (procfs_target): Install to_pass_signals callback instead of
662 to_notice_signals callback.
663 (register_gdb_signals): Remove.
664 (procfs_debug_inferior): Report all signals initially.
665 (procfs_init_inferior): Remove redundant register_gdb_signals call.
667 * remote.c (remote_pass_signals): Add numsigs and pass_signals
668 parameters; use them instead of calling signal_..._state routines.
669 (remote_notice_signals): Remove.
670 (remote_start_remote): Report all signals initially.
671 (remote_resume): Do not call remote_pass_signals.
672 (_initialize_remote): Install to_pass_signals callback instead of
673 to_notice_signals callback.
675 2011-04-27 Pedro Alves <pedro@codesourcery.com>
677 * breakpoint.c (user_settable_breakpoint): Delete.
678 (user_breakpoint_p): Remove check on user_settable_breakpoint.
679 (delete_command): Check user_breakpoint_p instead of looking at
680 the breakpoint's type.
681 (disable_command): Ditto.
682 (enable_command): Ditto.
683 (delete_trace_command): Use user_breakpoint_p instead of looking
684 at the breakpoint number directly. When checking if there are
685 user visible tracepoints, in order to know whether to ask the user
686 for confirmation, check whether the breakpoint is actually a
689 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
691 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
694 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
696 MI breakpoint notifications.
698 * annotate.c (breakpoint_changed): Adjust parameter type.
699 * breakpoint.c (set_breakpoint_condition): Adjust to change
700 in breakpoint_modified type.
701 (breakpoint_set_commands): Likewise.
702 (do_map_commands_command): Likewise.
703 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
704 changed after bumping hit count.
705 (bpstat_stop_status): Likewise.
706 (print_one_breakpoint_location): Don't wrap in tuple here.
707 (print_one_breakpoint): Always print individual locations.
708 For locations, use unnamed tuple.
709 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
711 (create_catchpoint, create_syscall_event_catchpoint): Call
712 breakpoint_created obsever.
713 (mention): Don't call breakpoint_created observer.
714 (create_breakpoint_sal): Call breakpoint_created observer.
715 (create_breakpoint, watch_command_1): Likewise.
716 (create_ada_exception_breakpoint): Likewise.
717 (delete_breakpoint): Call breakpoint_deleted breakpoint.
718 (locations_are_equal): New.
719 (update_breakpoint_locations): If locations were changed, notify.
720 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
721 Call breakpoint_modified observer.
723 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
724 (mi_cmd_break_insert): Don't set observers for modify and delete.
725 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
726 (mi_breakpoint_created, mi_breakpoint_deleted)
727 (mi_breakpoint_modified): New.
728 (mi_interpreter_init): Hook the above.
729 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
730 while -break-* commands are executing.
731 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
732 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
734 (mi_ui_out_impl): Hook in mi_redirect.
735 (mi_field_skip): True to the name, skip the field, don't output
736 a field with an empty value.
738 * python/py-breakpoint.c (gdbpy_breakpoint_created)
739 (gdbpy_breakpoint_deleted): Adjust.
740 * tui/tui-hooks.c (tui_event_create_breakpoint)
741 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
743 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
745 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
746 (procfs_remove_hw_watchpoint): Likewise.
748 2011-04-26 Michael Walle <michael@walle.cc>
750 * remote.c (remote_start_remote): Ack packet after sending the
753 2011-04-26 Yao Qi <yao@codesourcery.com>
755 * linux-nat.c: Move common macros to ...
756 Include linux-ptrace.h.
757 * common/linux-ptrace.h: ... here. New.
759 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
761 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
762 !objfile_has_partial_symbols. New comment.
763 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
764 SYM_READ_PSYMBOLS is not present. Extend the comment.
765 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
767 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
769 * defs.h (ENUM_BITFIELD): Remove.
771 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
772 Eli Zaretskii <eliz@gnu.org>
774 * NEWS: Document the new gdbserver --once option.
776 2011-04-21 Jie Zhang <jzhang918@gmail.com>
778 * MAINTAINERS: Update my email address.
780 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
782 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
783 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
784 function call if __STDC_ISO_10646__ macro is defined.
785 (intermediate_encoding): New prototype.
786 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
787 to generate compile time error for unsupported gdb_wchar_t size.
788 (ENDIAN_SUFFIX): New macro.
789 (intermediate_encoding): New function.
791 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
793 * ada-lang.c (struct add_partial_datum): Update the comment for
794 expand_partial_symbol_name.
795 (ada_add_partial_symbol_completions): Rename to ...
796 (ada_expand_partial_symbol_name): ... here, change return type, update
797 function comment, call symbol_completion_match instead of
798 symbol_completion_add.
799 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
800 and ada_expand_partial_symbol_name.
801 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
803 (dw2_map_symbol_names): Remove.
804 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
805 * psymtab.c (map_symbol_names_psymtab): Remove.
806 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
807 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
809 (psym_functions): Unlist map_symbol_names_psymtab.
810 (map_partial_symbol_names): Rename to ...
811 (expand_partial_symbol_names): ... here, change the FUN type, call
812 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
813 * psymtab.h (map_partial_symbol_names): Rename to ...
814 (expand_partial_symbol_names): ... here, change the FUN type.
815 * symfile.h (struct quick_symbol_functions): Update the description of
816 expand_symtabs_matching. Remove map_symbol_names.
817 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
818 (struct add_name_data): Update the comment for
819 expand_partial_symbol_name.
820 (add_partial_symbol_name): Rename to ...
821 (expand_partial_symbol_name): ... here. Replace
822 completion_list_add_name call by strncmp.
823 (default_make_symbol_completion_list_break_on): Use now
824 expand_partial_symbol_names and expand_partial_symbol_name.
825 * symtab.h (enum search_domain): New element ALL_DOMAIN.
827 2011-04-20 Tom Tromey <tromey@redhat.com>
829 * dwarf2read.c (save_gdb_index_command): Replace format
830 documentation with a pointer to the manual.
832 2011-04-20 Pedro Alves <pedro@codesourcery.com>
834 * regcache.c: Include remote.h.
835 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
836 (regcache_dump): Handle regcache_dump_remote.
837 (maintenance_print_remote_registers): New function.
838 (_initialize_regcache): Install "maint print remote-registers"
840 * remote.c (map_regcache_remote_table): New function, factored out
842 (init_remote_state): ... here.
843 (remote_register_number_and_offset): New.
844 * remote.h (remote_register_number_and_offset): Declare.
846 2011-04-20 Pedro Alves <pedro@codesourcery.com>
848 * regcache.c (get_thread_arch_regcache): If creating a regcache for
849 null_ptid, assume and allow a NULL address space, instead of
850 asking the target for the ptid's address space.
851 * infrun.c (ptid_is_pid): Remove assertion.
853 2011-04-19 Tom Tromey <tromey@redhat.com>
855 * windows-tdep.c (windows_xfer_shared_library):
856 * windows-nat.c (get_module_name, windows_make_so):
857 * v850-tdep.c (v850_handle_pushm):
858 * utils.c (null_cleanup, gdb_realpath):
859 * ui-out.c (get_next_header):
860 * tracepoint.c (clear_traceframe_info):
861 * symtab.c (lookup_symtab):
862 * serial.h (struct serial_ops):
863 * mipsread.c (read_alphacoff_dynamic_symtab):
864 * infcmd.c (print_return_value):
865 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
866 * f-exp.y (parse_number):
867 * exceptions.c (catch_exceptions):
868 * dummy-frame.c (dummy_frame_this_id):
869 * defs.h (struct cleanup):
870 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
871 * arm-tdep.c (arm_push_dummy_call):
872 * amd64-tdep.h (amd64_collect_xsave):
873 * amd64-tdep.c (amd64_collect_xsave):
874 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
875 * README (typing): Remove duplicate words.
876 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
877 * infrun.c (siginfo_value_read): Fix typo.
878 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
879 * top.c (source_line_number): Add comma.
881 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
883 * thread.c (any_live_thread_of_process): Prioritize threads
884 that are not executing.
885 * gdbthread.h (any_live_thread_of_process): Update comment
888 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
890 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
891 (scan_xcoff_symtab): Likewise.
893 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
895 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
898 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
899 Pedro Alves <pedro@codesourcery.com>
901 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
902 variables to simplify code and avoid == operator at end of
903 line as this is against GNU coding standards.
905 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
907 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
908 lm_name to name_lm to avoid conflict with lm_name function.
910 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
912 ARI fixes: Use only lowercase function name for static functions.
913 * nto-tdep.c (LM_ADDR): Rename to...
914 (lm_addr): New function name.
915 (nto_relocate_section_addresses): Adapt to change above.
916 * solib-sunos.c (LM_ADDR): Rename to...
917 (lm_addr): New function name.
918 (LM_NEXT): Rename to...
919 (lm_next): New function name.
920 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
921 function name changes above.
922 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
923 (lm_addr_from_link_map): New function name.
924 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
925 (has_lm_dynamic_from_link_map): New function name.
926 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
927 (lm_dynamic_from_link_map): New function name.
928 (LM_ADDR_CHECK): Rename to...
929 (lm_addr_check): New function name.
930 (LM_NEXT): Rename to...
931 (lm_next): New function name.
932 (LM_PREV): Rename to...
933 (lm_prev): New function name.
934 (LM_NAME): Rename to...
935 (lm_name): New function name.
936 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
937 (ignore_first_link_map_entry): New function name.
938 (svr4_keep_data_in_core): Adapt to function name changes above.
939 (svr4_current_sos): Likewise.
940 (enable_break): Likewise.
941 (svr4_relocate_section_addresses): Likewise.
943 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
946 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
947 sprintf. Simplify code and avoid loosing memory.
948 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
949 (call0_frame_cache): Remove && operator from end of line.
951 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
953 Fix libraries displacement if they change whether they were prelinked.
954 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
955 does not match. Comment why.
957 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
959 * corelow.c: Include wrapper.h.
960 (core_open): Call now gdb_target_find_new_threads.
961 * wrapper.c: Include target.h.
962 (gdb_target_find_new_threads): New.
963 * wrapper.h (gdb_target_find_new_threads): New declaration.
965 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
967 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
968 even if !TARGET_HAS_EXECUTION.
970 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
972 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
973 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
974 bfd_get_synthetic_symtab.
975 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
976 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
977 parameter parent, remove the call to add_separate_debug_objfile.
978 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
979 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
980 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
981 parent, new comment for it, call add_separate_debug_objfile for it.
982 (symbol_file_add_separate): Pass objfile as the parameter parent,
983 remove the call to add_separate_debug_objfile.
984 (symbol_file_add_from_bfd): New parameter parent, pass it.
985 (symbol_file_add): Pass NULL to the new parameter parent.
986 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
988 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
990 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
993 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
995 Fix Python access to inlined frames.
996 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
997 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
999 2011-04-15 Tom Tromey <tromey@redhat.com>
1001 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
1003 2011-04-15 Gary Benson <gbenson@redhat.com>
1005 * MAINTAINERS: Add myself to write-after-approval section.
1007 2011-04-14 Mike Frysinger <vapier@gentoo.org>
1009 * remote-sim.c (sim_command_completer): New function.
1010 (_initialize_remote_sim): Set completer to sim_command_completer.
1012 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1014 * breakpoint.c (print_exception_catchpoint): Rename to ...
1015 (print_it_exception_catchpoint): ... this.
1016 (gnu_v3_exception_catchpoint_ops): Update with new name
1017 for print_it_exception_catchpoint.
1019 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
1021 * MAINTAINERS: Add myself for write after approval privileges.
1023 2011-04-13 Marek Polacek <mpolacek@redhat.com>
1025 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1027 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1029 * breakpoint.c (watch_command_1): Remove colon from exp_string.
1031 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1033 * breakpoint.c (save_breakpoints): Verify whether
1034 breakpoint_ops.print_recreate is defined before calling it.
1036 2011-04-11 Gary Benson <gbenson@redhat.com>
1038 Fix failure with --enable-maintainer-mode.
1039 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
1041 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1044 * symtab.c (search_symbols): Reorder the KIND description in the
1045 function comment. Remove the unused 4th element of types, types2,
1046 types3 and types4. New gdb_assert on KIND.
1047 (symtab_symbol_info): Remove the unused 4th element of classnames.
1048 New gdb_assert on KIND.
1049 * symtab.h (enum search_domain): New warning in the enum comment.
1050 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
1053 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1055 Fix crash of gdb save-index on a STABS file.
1056 * dwarf2read.c (write_psymtabs_to_index): Return also on no
1059 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1061 Fix DW_AT_accessibility compatibility with gcc-4.6+.
1062 * dwarf2read.c: Include ctype.h.
1063 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
1065 (dwarf2_add_field): Fix new_field->accessibility by calling
1066 dwarf2_default_access_attribute. Restructure setting accessibility
1068 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
1069 is_private and is_protected by calling
1070 dwarf2_default_access_attribute.
1072 2011-04-08 Kevin Buettner <kevinb@redhat.com>
1074 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
1075 to the initialization.
1077 2011-04-08 Steve Ellcey <sje@cup.hp.com>
1079 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
1082 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
1084 Remove support for old Cygwin 1.5 versions.
1085 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
1086 function on old Cygwin version.
1087 * windows-nat.c: Remove cygwin version check and always define
1088 __USEWIDE for Cygwin compilation.
1090 2011-04-07 Yao Qi <yao@codesourcery.com>
1092 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
1094 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
1095 (arm_copy_svc): Remove parameters INSN and TO.
1096 (decode_svc_copro): Update caller.
1097 * arm-tdep.h (struct displaced_step_closure): Remove parameters
1098 from function pointer `copy_svc_os'.
1100 2011-04-07 Yao Qi <yao@codesourcery.com>
1102 * arm-tdep.c (cleanup_branch): Set a correct return address in
1103 LR for ARM and Thumb.
1105 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1108 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
1109 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
1110 in the function comment, a new note on values compatibility.
1111 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
1112 * symtab.h (SYMBOL_HASH_NEXT): New.
1114 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
1116 * ppc-linux-nat.c (check_condition): Add len output parameter.
1117 Set it based on the memory region referenced in the condition
1118 expression. Update all callers.
1120 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1122 Fix crash regression on systems featuring .gdb_index.
1123 * objfiles.c (free_objfile): Move the
1124 forget_cached_source_info_for_objfile call earlier. Comment it.
1125 Extend the comment for objfile_free_data.
1127 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1129 Fix regression of displaying the debug format.
1130 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
1133 2011-04-04 Tom Tromey <tromey@redhat.com>
1135 * cli/cli-interp.c (struct captured_execute_command_args):
1137 (do_captured_execute_command): Remove.
1138 (safe_execute_command): Use TRY_CATCH.
1139 * cli/cli-script.c (struct wrapped_read_command_file_args):
1141 (wrapped_read_command_file): Remove.
1142 (script_from_file): Use TRY_CATCH.
1143 * exceptions.c (catch_exception): Remove.
1144 * exceptions.h (catch_exception): Remove.
1145 (deprecated_throw_reason): Update comment.
1146 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
1147 argument to 'context'.
1148 (mi_execute_command): Use TRY_CATCH.
1149 * remote.c (struct start_remote_args): Remove.
1150 (remote_start_remote): Update; change arguments.
1151 (remote_open_1): Use TRY_CATCH.
1153 2011-04-04 Tom Tromey <tromey@redhat.com>
1155 * tracepoint.c (scope_info): Update.
1156 * symtab.c (decode_line_spec): Update.
1157 * python/python.c (gdbpy_decode_line): Update.
1158 * linespec.h (decode_line_1): Update.
1159 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
1160 (decode_compound, find_method, symtab_from_filename)
1161 (decode_variable): Likewise.
1162 * cli/cli-cmds.c (edit_command): Update.
1163 (list_command): Update.
1164 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
1166 (create_breakpoint): Update.
1167 (until_break_command): Update.
1168 (addr_string_to_sals): Update.
1169 (decode_line_spec_1): Update.
1171 2011-04-04 Tom Tromey <tromey@redhat.com>
1173 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
1174 (do_captured_parse_breakpoint): Remove.
1175 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
1176 Use TRY_CATCH directly.
1178 2011-04-04 Tom Tromey <tromey@redhat.com>
1180 * symtab.h (free_symtab): Remove.
1181 (forget_cached_source_info_for_objfile): Declare.
1182 * symmisc.c (free_symtab): Remove.
1183 * source.c (forget_cached_source_info_for_objfile): New function.
1184 (forget_cached_source_info): Use it.
1185 * objfiles.c (free_objfile): Simplify check before calling
1186 clear_current_source_symtab_and_line. Call
1187 forget_cached_source_info_for_objfile.
1189 2011-04-04 Tom Tromey <tromey@redhat.com>
1191 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
1192 (new_symtab): Don't set `free_code' on symtab.
1193 (new_linetable): Properly handle size==0.
1194 * symtab.h (struct symtab) <free_code, free_func>: Remove.
1195 * symmisc.c (free_symtab): Don't free the linetable. Don't call
1197 * jv-lang.c (struct jv_per_objfile_data): New.
1198 (jv_per_objfile_free): Free the data.
1199 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
1200 (get_java_class_symtab): Set the `dict' field on the
1201 jv_per_objfile_data.
1202 (free_class_block): Remove.
1203 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
1206 2011-04-04 Tom Tromey <tromey@redhat.com>
1208 * symfile.c (reread_symbols): Update.
1209 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
1211 * objfiles.c (allocate_objfile): Update.
1212 * cp-support.h (cp_check_possible_namespace_symbols): Don't
1214 * cp-namespace.c (lookup_symbol_file): Don't call
1215 lookup_possible_namespace_symbol.
1216 (initialize_namespace_symtab, get_possible_namespace_block)
1217 (free_namespace_block, cp_check_possible_namespace_symbols)
1218 (check_possible_namespace_symbols_loop)
1219 (check_one_possible_namespace_symbol)
1220 (lookup_possible_namespace_symbol): Remove.
1221 (maintenance_cplus_namespace): Replace with notice.
1222 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
1224 2011-04-04 Tom Tromey <tromey@redhat.com>
1226 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
1227 * symtab.h (struct symtab) <producer, debugformat>: Now const.
1228 * symmisc.c (free_symtab): Don't free debugformat.
1229 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
1230 (record_debugformat, record_producer): Document.
1231 * buildsym.c (end_symtab): Don't save debugformat and producer
1233 (end_symtab): Don't free debugformat and producer fields.
1234 (record_debugformat): Don't call xstrdup.
1235 (record_producer): Likewise.
1237 2011-04-04 Tom Tromey <tromey@redhat.com>
1239 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
1240 (source_line_charpos, source_charpos_line): Remove.
1242 2011-04-04 Tom Tromey <tromey@redhat.com>
1244 * symtab.h (domain_enum): Split in two...
1245 (enum search_domain): New.
1246 (search_symbols): Update.
1247 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
1248 redundant declarations.
1249 (search_symbols): Change 'kind' argument to search_domain.
1251 (print_symbol_info): Likewise.
1252 (symtab_symbol_info): Likewise.
1253 * symfile.h (struct quick_symbol_functions)
1254 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
1255 <expand_symtabs_matching>: Likewise.
1256 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
1257 (expand_symtabs_matching_via_partial): Update.
1258 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
1259 (dw2_expand_symtabs_for_function): Update.
1260 * block.h: Moved anonymous enum...
1261 * defs.h (enum block_enum): ... here. Now named.
1263 2011-04-03 Joel Brobecker <brobecker@adacore.com>
1265 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
1266 * version.in: Bump version to 7.3.50.20110403-cvs.
1268 2011-04-03 Joel Brobecker <brobecker@adacore.com>
1270 * NEWS: Create a new section for the next release branch.
1271 Rename the section of the current branch, now that it has
1274 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1276 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
1277 for "fpscr" in target description.
1279 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1281 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
1282 initialize it. Delay HASH initialization. Strip the part after open
1283 parenthesis for languages with qualifiers. Call do_cleanups.
1285 2011-04-01 Tom Tromey <tromey@redhat.com>
1287 * utils.c (report_command_stats): Don't print `-' for negative
1290 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
1292 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
1293 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
1296 2011-04-01 Joel Brobecker <brobecker@adacore.com>
1298 * breakpoint.h (bpdisp_text): Add declaration.
1299 * breakpoint.c (bpdisp_text): Make non-static.
1300 * ada-lang.c: #include "mi/mi-common.h".
1301 (print_it_exception): Rewrite to improve GDB/MI output.
1303 2011-04-01 Pedro Alves <pedro@codesourcery.com>
1305 * arm-tdep.h (struct address_space): Add forward declaration.
1307 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1309 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
1310 * arm-tdep.c (arm_override_mode): New global.
1311 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
1312 execution mode heuristics.
1313 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
1314 second single-step breakpoint if needed, using
1315 arm_insert_single_step_breakpoint.
1316 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
1317 ARM execution mode, do not call thumb_get_next_pc_raw.
1318 (arm_get_next_pc): Encode execution mode in return value. Call
1319 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
1320 (arm_insert_single_step_breakpoint): New function.
1321 (arm_software_single_step): Call it.
1322 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
1323 argument to return execution mode of sigreturn target.
1324 (arm_linux_syscall_next_pc): Use it.
1325 (arm_linux_copy_svc): Update call.
1326 (arm_linux_software_single_step): Call
1327 arm_insert_single_step_breakpoint.
1329 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1331 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
1334 2011-03-31 Tom Tromey <tromey@redhat.com>
1336 * varobj.c (update_dynamic_varobj_children): Properly handle
1337 errors from iterator.
1339 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1341 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
1342 struct linkage name twice.
1344 2011-03-31 Tom Tromey <tromey@redhat.com>
1346 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
1347 missing ">" to message.
1349 2011-03-31 Tom Tromey <tromey@redhat.com>
1351 * varobj.c (instantiate_pretty_printer): Remove duplicate
1354 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
1356 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
1357 if neither saved value nor register available (e.g. signal frame).
1359 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1361 * macroexp.c (expand): Avoid uninitialized variable
1364 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1366 * breakpoint.c (break_range_command): Fix typo in comment.
1368 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1369 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1371 Implement support for PowerPC BookE ranged breakpoints.
1372 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
1373 * breakpoint.h (struct bp_target_info) <length>: New member
1375 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
1376 instead of struct breakpoint as argument, and also add ASPACE
1377 and BP_ADDR arguments. Update all callers.
1378 (struct breakpoint_ops) <print_one_detail>: New method.
1379 (struct breakpoint) <addr_string_range_end>: New member variable.
1380 * breakpoint.c (breakpoint_location_address_match): Add function
1382 (insert_bp_location): Set bl->target_info.length.
1383 (breakpoint_here_p): Call breakpoint_location_address_match.
1384 (moribund_breakpoint_here_p): Likewise.
1385 (regular_breakpoint_inserted_here_p): Likewise.
1386 (breakpoint_thread_match): Likewise.
1387 (bpstat_stop_status): Likewise.
1388 (bpstat_check_location): Move call to
1389 breakpoint_ops.breakpoint_hit to the top.
1390 (print_one_breakpoint_location): Call
1391 breakpoint_ops.print_one_detail if available.
1392 (breakpoint_address_match_range): New function.
1393 (breakpoint_location_address_match): Likewise.
1394 (breakpoint_locations_match): Compare the length field of the
1396 (hw_breakpoint_used_count): Count resources used by all locations
1397 in a breakpoint, and use breakpoint_ops.resources_needed if
1399 (breakpoint_hit_ranged_breakpoint): New function.
1400 (resources_needed_ranged_breakpoint): Likewise.
1401 (print_it_ranged_breakpoint): Likewise.
1402 (print_one_ranged_breakpoint): Likewise.
1403 (print_one_detail_ranged_breakpoint): Likewise.
1404 (print_mention_ranged_breakpoint): Likewise.
1405 (print_recreate_ranged_breakpoint): Likewise.
1406 (ranged_breakpoint_ops): New structure.
1407 (find_breakpoint_range_end): New function.
1408 (break_range_command): Likewise.
1409 (delete_breakpoint): Free addr_string_range_end.
1410 (update_breakpoint_locations): Add SALS_END argument. Update
1411 all callers. Calculate breakpoint length if a non-zero SALS_END
1412 is given. Call breakpoint_locations_match instead of
1413 breakpoint_address_match.
1414 (reset_breakpoint): Find SaL of the end of the range if B is a
1416 (_initialize_breakpoint): Register break-range command.
1417 * defs.h (print_core_address): Add function prototype.
1418 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
1420 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
1421 (ppc_linux_remove_hw_breakpoint): Likewise.
1422 (_initialize_ppc_linux_nat): Initialize
1423 to_ranged_break_num_registers.
1424 * target.c (update_current_target): Add comment about
1425 to_ranged_break_num_registers.
1426 (target_ranged_break_num_registers): New function.
1427 * target.h (struct target_ops) <to_ranged_break_num_registers>:
1429 (target_ranged_break_num_registers): Add function prototype.
1430 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
1431 * utils.c (print_core_address): ... here.
1433 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
1435 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
1436 variable compiler warning.
1438 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
1440 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
1442 (re_set_breakpoint): ... to here ...
1443 (addr_string_to_sals): ... and here.
1445 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
1447 * Makefile.in (SFILES): Add missing C sources.
1448 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
1449 Add missing headers.
1451 2011-03-29 Mike Frysinger <vapier@gentoo.org>
1453 * .gitignore: New file.
1455 2011-03-29 Mike Frysinger <vapier@gentoo.org>
1457 * NEWS: Mention new cfi device simulation.
1459 2011-03-29 Tom Tromey <tromey@redhat.com>
1461 * dwarf2read.c (fixup_partial_die): Handle linkage name on
1462 otherwise anonymous types.
1463 (dwarf2_name): Likewise.
1464 * valops.c (value_struct_elt_for_reference): Refine artificial
1465 type logic. Call error if j==-1.
1467 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
1469 Fix false GCC warning.
1470 * infcall.c (find_function_addr): Initialize funaddr.
1472 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
1474 Fix mingw compilation with --enable-targets=all.
1475 * remote-mips.c (gdb_usleep.h): Include header.
1476 (mips_enter_debug): Use gdb_usleep instead of sleep.
1478 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1480 Support resolution of STT_GNU_IFUNC via breakpoints.
1481 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
1482 bp_gnu_ifunc_resolver_return.
1483 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
1484 the loop. Support bp_gnu_ifunc_resolver and
1485 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
1486 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
1488 (bptype_string, print_one_breakpoint_location): Support
1489 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
1490 (user_settable_breakpoint): Return true also for
1491 bp_gnu_ifunc_resolver.
1492 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
1493 bp_gnu_ifunc_resolver_return.
1494 (set_breakpoint_location_function): New parameter explicit_loc,
1495 describe it. Call find_pc_partial_function_gnu_ifunc with new
1496 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
1497 EXPLICIT_LOC is not set.
1498 (set_raw_breakpoint): Set EXPLICIT_LOC for
1499 set_breakpoint_location_function.
1500 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
1501 set_breakpoint_location_function.
1502 (mention): Support bp_gnu_ifunc_resolver and
1503 bp_gnu_ifunc_resolver_return.
1504 (add_location_to_breakpoint): Set EXPLICIT_LOC for
1505 set_breakpoint_location_function.
1506 (update_breakpoint_locations): Remove static.
1507 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
1508 bp_gnu_ifunc_resolver_return.
1509 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
1510 bp_gnu_ifunc_resolver_return.
1511 (update_breakpoint_locations): New declaration.
1512 * elfread.c: Include gdbthread.h and regcache.h.
1513 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
1515 (elf_gnu_ifunc_fns): Install them.
1516 * minsyms.c (stub_gnu_ifunc_resolver_stop)
1517 (stub_gnu_ifunc_resolver_return_stop): New functions.
1518 (stub_gnu_ifunc_fns): Install them.
1519 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
1520 and gnu_ifunc_resolver_return_stop.
1521 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
1523 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1525 STT_GNU_IFUNC reader implementation.
1526 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
1527 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
1528 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
1529 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
1530 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
1531 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
1532 (elf_gnu_ifunc_resolve_addr): New.
1533 (elf_symfile_read): Call elf_rel_plt_read.
1534 (elf_gnu_ifunc_fns): New.
1535 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
1536 Install elf_gnu_ifunc_fns.
1537 * infcall.c (find_function_return_type): New function.
1538 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
1539 * minsyms.c (stub_gnu_ifunc_resolve_addr)
1540 (stub_gnu_ifunc_resolve_name): New functions.
1541 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
1542 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
1543 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
1545 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1547 Code cleanup for later STT_GNU_IFUNC support.
1548 * infcall.c (find_function_addr): Remove variable code, use explicit
1549 dereferences for it. Move VALUE_TYPE initialization later.
1551 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1553 GDB find_pc_partial_function support for STT_GNU_IFUNC.
1554 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
1555 (clear_pc_function_cache): Clear it.
1556 (find_pc_partial_function): Rename to ...
1557 (find_pc_partial_function_gnu_ifunc): ... this function. New
1558 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
1559 (find_pc_partial_function): New wrapper for this function.
1560 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
1562 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1564 GDB internal type support for STT_GNU_IFUNC.
1565 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
1566 (elf_symtab_read): Set mst_text_gnu_ifunc for
1567 BSF_GNU_INDIRECT_FUNCTION.
1568 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
1569 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
1570 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
1571 nodebug_got_plt_symbol.
1572 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
1573 (TYPE_GNU_IFUNC): New.
1574 (struct main_type): New field flag_gnu_ifunc.
1575 (struct builtin_type): New field builtin_func_func.
1576 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
1577 nodebug_got_plt_symbol.
1578 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
1579 (in_gnu_ifunc_stub): New.
1580 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
1582 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
1583 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
1584 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
1586 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
1587 * symtab.c (search_symbols): Likewise.
1588 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
1589 and mst_slot_got_plt.
1590 (in_gnu_ifunc_stub): New declaration.
1592 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1594 Support a ring of related breakpoints.
1595 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
1596 other functions, add gdb_assert.
1597 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
1598 watchpoint_del_at_next_stop.
1599 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
1600 (bpstat_stop_status): Handle ring in related_breakpoint.
1601 (set_raw_breakpoint_without_location): Initialize ring in
1603 (delete_breakpoint): Handle ring in related_breakpoint, use
1604 watchpoint_del_at_next_stop.
1605 (map_breakpoint_numbers): Handle ring in related_breakpoint.
1607 2011-03-28 Tom Tromey <tromey@redhat.com>
1610 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
1611 with `language_minimal'.
1613 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
1615 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
1616 instead of checking for STT_ARM_TFUNC symbol type.
1618 2011-03-25 Tom Tromey <tromey@redhat.com>
1620 * linespec.c (symbol_found): Restore line-based result for
1621 non-LOC_LABEL symbols.
1623 2011-03-25 Kai Tietz <ktietz@redhat.com>
1625 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
1626 instead of strcmp for comparison.
1627 (tui_source_is_displayed): Likewise.
1628 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
1630 2011-03-24 Mark Wielaard <mjw@redhat.com>
1632 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
1634 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
1635 (find_partial_die_in_comp_unit): Likewise in comment.
1636 (read_attribute_value): Likewise.
1637 (lookup_die_type): Likewise.
1638 (dwarf_form_name): Likewise.
1639 (dump_die_shallow): Likewise.
1640 (follow_die_ref_or_sig): Likewise.
1642 2011-03-24 Tom Tromey <tromey@redhat.com>
1644 PR breakpoints/11816:
1645 * linespec.c (decode_line_1): Parse `function:label' linespecs.
1646 (decode_compound): Update.
1647 (find_function_symbol): New function.
1648 (decode_dollar): Update.
1649 (decode_label): Add 'function_symbol' parameter. Handle
1650 function-relative labels.
1651 (decode_variable): Update.
1652 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
1653 not its line. Set `special_display' and canonical name for
1656 2011-03-24 Tom Tromey <tromey@redhat.com>
1658 * linespec.h (struct linespec_result) <special_display>: New
1660 * breakpoint.h (struct breakpoint) <display_canonical>: New
1662 * breakpoint.c (print_breakpoint_location): Respect
1664 (create_breakpoint_sal): Add 'display_canonical' parameter.
1665 (create_breakpoints_sal): Update.
1666 (create_breakpoint): Update.
1668 2011-03-24 Tom Tromey <tromey@redhat.com>
1670 * symtab.c (decode_line_spec): Update.
1671 * linespec.c (build_canonical_line_spec): Change type of
1673 (decode_line_2, decode_line_1, decode_objc, decode_compound)
1674 (find_method, decode_all_digits, decode_dollar, decode_label)
1675 (symbol_found): Likewise.
1676 (init_linespec_result): New function.
1677 * breakpoint.c (struct captured_parse_breakpoint_args)
1678 <canonical_p>: New field, replaces addr_string_p.
1679 (create_breakpoints_sal): Add 'canonical' parameter, replacing
1681 (parse_breakpoint_sals): Likewise.
1682 (do_captured_parse_breakpoint): Update.
1683 (create_breakpoint): Use struct linespec_result.
1684 (until_break_command): Update.
1685 (breakpoint_re_set_one): Update.
1686 (decode_line_spec_1): Update.
1687 * linespec.h (struct linespec_result): New.
1688 (init_linespec_result): Declare.
1690 2011-03-23 Pedro Alves <pedro@codesourcery.com>
1692 * regcache.c (regcache_raw_read): If the target didn't supply a
1693 given raw register, mark it as unavailable.
1695 2011-03-23 Kai Tietz <ktietz@redhat.com>
1697 * breakpoint.c (clear_command): Use filename_cmp
1698 instead of strcmp for comparison.
1699 * buildsym.c (watch_main_source_file_lossage): Likewise.
1700 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
1701 checking just for slash.
1702 * dbxread.c (read_dbx_symtab): Use lbasename instead of
1703 strrchr and filename_cmp instead of strcmp for filenames.
1704 (add_old_header_file): Use filename_cmp
1705 instead of strcmp for comparison.
1706 * exec.c (exec_set_section_address): Likewise.
1707 * macrotab.c (macro_lookup_inclusion): Likewise.
1708 (macro_lookup_inclusion): Likewise.
1709 * elfread.c (_initialize_elfread): Likewise.
1710 (elfstab_offset_sections): Likewise.
1711 (elfstab_offset_sections): Use lbasename instead of
1713 * mdebugread.c (parse_partial_symbols): Likewise.
1714 (arse_partial_symbols): Use filename_(n)cmp instead of
1715 str(n)cmp for comparison.
1716 * minsyms.c (lookup_minimal_symbol): Likewise.
1717 * psymtab.c (read_psymtabs_with_filename): Likewise.
1718 * solib.c (solib_read_symbols): Likewise.
1719 (reload_shared_libraries_1): Likewise.
1720 * symmisc.c (maintenance_print_symbols): Likewise.
1721 * symfile.c (separate_debug_file_exists): Likewise.
1722 (reread_symbols): Likewise.
1723 (find_separate_debug_file_by_debuglink): Likewise.
1724 * remote-fileio.c (remote_fileio_func_rename): Likewise.
1725 * source.c (add_path): Likewise.
1726 * symtab.c (filename_seen): Likewise.
1727 (file_matches): Likewise.
1728 (print_symbol_info): Likewise.
1729 (maybe_add_partial_symtab_filename): Likewise.
1730 (make_source_files_completion_list): Likewise.
1731 * xml-syscall.c (init_sysinfo): Likewise.
1732 * windows-nat.c (_initialize_check_for_gdb_ini): Use
1733 IS_DIR_SEPARATOR for checking for trailing path separator.
1735 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1737 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
1738 label abort_expression.
1739 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
1740 DWARF_VALUE_OPTIMIZED_OUT.
1742 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1745 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
1746 to linkage_name. Invert its value. Update the function comment.
1747 (c_type_print_varspec_suffix): Invert it at the caller.
1748 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
1750 2011-03-22 Pedro Alves <pedro@codesourcery.com>
1752 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
1753 errors when reading the `stop_pc'.
1754 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
1757 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
1759 * NEWS: Document gdb.Write stream keyword.
1761 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1764 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1765 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
1766 (dwarf2_add_field): Fix new_field->accessibility for
1767 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
1769 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
1773 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
1774 other error classes. Do not print stack trace.
1776 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1778 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
1779 (dwarf2_add_field): Fix new_field->accessibility for
1780 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
1782 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
1784 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
1785 encountering a load via a non-SP register.
1787 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
1789 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
1790 field in returned unwinder.
1792 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1794 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
1796 2012-03-21 Joel Brobecker <brobecker@adacore.com>
1798 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
1801 2012-03-18 Pedro Alves <pedro@codesourcery.com>
1803 * frame.c (frame_unwind_register): Throw an error if unwinding the
1805 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
1806 an unwind stop reason.
1807 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
1808 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
1809 UNWIND_UNAVAILABLE>: New.
1810 * inline-frame.c (inline_frame_unwind): Install
1811 default_frame_unwind_stop_reason.
1812 * frame-unwind.c: Include "exceptions.h".
1813 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
1814 (default_frame_unwind_stop_reason): New.
1815 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
1816 (default_frame_unwind_stop_reason): Declare.
1817 (struct frame_unwind) <stop_reason>: New function pointer.
1819 * dummy-frame.c: Install default_frame_unwind_stop_reason.
1820 * dwarf2-frame.c: Include exceptions.h.
1821 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
1822 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
1823 computing the CFA. If such an error was thrown, set
1824 unavailable_retaddr.
1825 (dwarf2_frame_unwind_stop_reason): New.
1826 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
1828 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
1829 (dwarf2_signal_frame_unwind): Ditto.
1831 * amd64-tdep.c: Include "exceptions.h".
1832 (struct amd64_frame_cache): New field "base_p".
1833 (amd64_init_frame_cache): Clear it.
1834 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
1835 Avoid reading registers with functions that throw if the register
1836 is not necessary to compute the frame base.
1837 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
1838 swallowing NOT_AVAILABLE_ERROR.
1839 (amd64_frame_unwind_stop_reason): New.
1840 (amd64_frame_this_id): Don't build a frame id if the frame base
1842 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
1843 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1844 base_p if the frame base was computable.
1845 (amd64_sigtramp_frame_unwind_stop_reason): New.
1846 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
1847 frame base was unavailable.
1848 (amd64_sigtramp_frame_unwind): Install
1849 amd64_sigtramp_frame_unwind_stop_reason.
1850 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1851 base_p if the frame base was computable.
1852 (amd64_epilogue_frame_unwind_stop_reason): New.
1853 (amd64_epilogue_frame_this_id): Don't build a frame id if the
1854 frame base was unavailable.
1855 (amd64_epilogue_frame_unwind): Install
1856 amd64_epilogue_frame_unwind_stop_reason.
1857 * i386-tdep.c: Include "exceptions.h".
1858 (struct i386_frame_cache): New field "base_p".
1859 (i386_init_frame_cache): Clear it.
1860 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
1861 Avoid reading registers with functions that throw if the register
1862 is not necessary to compute the frame base.
1863 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
1864 swallowing NOT_AVAILABLE_ERROR.
1865 (i386_frame_unwind_stop_reason): New.
1866 (i386_frame_this_id): Don't build a frame id if the frame base was
1868 (i386_frame_prev_register): Handle unavailable SP.
1869 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
1870 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1871 base_p if the frame base was computable.
1872 (i386_epilogue_frame_unwind_stop_reason): New.
1873 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
1874 base was unavailable.
1875 (i386_epilogue_frame_unwind): Install
1876 i386_epilogue_frame_unwind_stop_reason.
1877 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1878 base_p if the frame base was computable.
1879 (i386_sigtramp_frame_unwind_stop_reason): New.
1880 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
1881 base was unavailable.
1882 (i386_sigtramp_frame_unwind): Install
1883 i386_sigtramp_frame_unwind_stop_reason.
1884 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
1885 type's size, not the register's.
1886 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
1888 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
1889 default_frame_unwind_stop_reason.
1890 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
1891 (alpha_heuristic_frame_unwind): Ditto.
1892 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
1893 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
1894 * avr-tdep.c (avr_frame_unwind): Ditto.
1895 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
1897 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
1898 * frv-tdep.c (frv_frame_unwind): Ditto.
1899 * h8300-tdep.c (h8300_frame_unwind): Ditto.
1900 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
1901 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
1902 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
1903 (hppa_stub_frame_unwind): Ditto.
1904 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
1905 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
1906 (ia64_libunwind_frame_unwind)
1907 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
1908 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
1909 * lm32-tdep.c (lm32_frame_unwind): Ditto.
1910 * m32c-tdep.c (m32c_unwind): Ditto.
1911 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
1912 * m32r-tdep.c (m32r_frame_unwind): Ditto.
1913 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
1914 * m68k-tdep.c (m68k_frame_unwind): Ditto.
1915 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
1916 * m88k-tdep.c (m88k_frame_unwind): Ditto.
1917 * mep-tdep.c (mep_frame_unwind): Ditto.
1918 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
1919 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
1920 (mips_stub_frame_unwind): Ditto.
1921 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
1922 * moxie-tdep.c (moxie_frame_unwind): Ditto.
1923 * mt-tdep.c (mt_frame_unwind): Ditto.
1924 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
1925 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
1926 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
1927 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
1928 (s390_sigtramp_frame_unwind): Ditto.
1929 * score-tdep.c (score_prologue_unwind): Ditto.
1930 * sh-tdep.c (sh_frame_unwind): Ditto.
1931 * sh64-tdep.c (sh64_frame_unwind): Ditto.
1932 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
1933 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
1934 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
1935 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
1936 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
1937 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
1938 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
1939 (sparc64obsd_trapframe_unwind): Ditto.
1940 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
1941 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
1942 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
1943 * v850-tdep.c (v850_frame_unwind): Ditto.
1944 * vax-tdep.c (vax_frame_unwind): Ditto.
1945 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
1946 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
1947 * xtensa-tdep.c (xtensa_unwind): Ditto.
1949 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1951 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
1952 there's always a frame. Use get_frame_pc_if_available instead of
1953 get_frame_pc, and if there's no PC available, don't look up a
1956 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1958 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
1961 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1963 * tracepoint.c (set_traceframe_context): Handle unavailable PC
1966 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1968 * frame.h (frame_unwind_caller_pc_if_available): Declare.
1969 * frame.c (frame_unwind_caller_pc_if_available): New.
1970 * stack.c (frame_info): Handle unavailable PC.
1972 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1974 * frame.c (frame_unwind_pc): Rename to ...
1975 (frame_unwind_pc_if_available): ... this. New `pc' output
1976 parameter. Change return type to int. Gracefully handle
1977 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
1978 happened, or 1 otherwise.
1979 (frame_unwind_pc): Reimplement on top of
1980 frame_unwind_pc_if_available.
1981 (get_frame_func): Rename to ...
1982 (get_frame_func_if_available): New `pc' output parameter. Change
1983 return type to int. Gracefully handle the PC not being available.
1984 (get_frame_func): Reimplement on top of
1985 get_frame_func_if_available.
1986 (select_frame): Handle the PC being unavailable.
1987 (get_prev_frame): Handle the PC being unavailable.
1988 (get_frame_pc_if_available): New.
1989 (get_frame_address_in_block_if_available): New.
1990 (find_frame_sal): Handle the frame PC not being available.
1991 * frame.h (get_frame_pc_if_available): Declare.
1992 (get_frame_address_in_block_if_available): Declare.
1993 (get_frame_func_if_available): Declare.
1994 * stack.c (print_frame_info): Handle the PC being unavailable.
1995 (find_frame_funname): Ditto.
1996 (print_frame): Handle the PC being unavailable.
1997 (get_frame_language): Ditto.
1998 * blockframe.c (get_frame_block): Ditto.
1999 * macroscope.c (default_macro_scope): Ditto.
2000 * tui/tui-stack.c (tui_show_frame_info): Ditto.
2002 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2004 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
2005 NOT_AVAILABLE_ERROR when evaluating the location expression.
2007 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2009 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
2010 returning that the register piece is unavailable/optimized out.
2011 (write_pieced_value): Handle get_frame_register_bytes returning
2012 that the register piece is unavailable/optimized out when doing a
2013 read-modify write of a bitfield.
2014 * findvar.c (value_from_register): Handle get_frame_register_bytes
2015 returning that the register piece is unavailable/optimized out.
2016 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
2017 and `unavailablep'. Throw error on bad debug info. Use
2018 frame_register instead of frame_register_read, to fill in the new
2020 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
2022 * valops.c: (value_assign): Adjust, and handle
2023 get_frame_register_bytes failing.
2024 * spu-tdep.c: Include exceptions.h.
2025 (spu_software_single_step): Adjust, and handle
2026 get_frame_register_bytes failing.
2027 (spu_get_longjmp_target): Ditto.
2028 * gdbarch.sh (register_to_value): Change to return int. New
2029 parameters `optimizedp' and `unavailablep'.
2030 * gdbarch.h, gdbarch.c: Regenerate.
2031 * i386-tdep.c (i386_register_to_value): Adjust to new
2032 gdbarch_register_to_value interface.
2033 * i387-tdep.c (i387_register_to_value): Ditto.
2034 * i387-tdep.h (i387_register_to_value): Ditto.
2035 * alpha-tdep.c (alpha_register_to_value): Ditto.
2036 * ia64-tdep.c (ia64_register_to_value): Ditto.
2037 * m68k-tdep.c (m68k_register_to_value): Ditto.
2038 * mips-tdep.c (mips_register_to_value): Ditto.
2039 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
2041 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2043 * findvar.c (value_of_register): Mark the value as unavailable, if
2044 the register is unavailable.
2045 * frame.h (frame_register_unwind): New `unavailablep' parameter.
2046 (frame_register): New `unavailablep' parameter.
2047 (frame_register_read): Update comment.
2048 * frame.c (frame_register_unwind): New `unavailablep' parameter.
2049 Set it if the register is unavailable. If the register is
2050 unavailable, clear the output buffer.
2051 (frame_register): New `unavailablep' parameter. Pass it down.
2052 (frame_unwind_register): Adjust.
2053 (put_frame_register): Adjust.
2054 (frame_register_read): Adjust. Also return false if the register
2056 (frame_register_unwind_location): Adjust.
2057 * sentinel-frame.c (sentinel_frame_prev_register): If the register
2058 is unavailable, mark the value accordingly.
2059 * stack.c (frame_info): Handle unavailable registers.
2061 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2063 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
2064 simplify, using regcache_cooked_read.
2066 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2068 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
2069 (regcache_raw_read_unsigned, regcache_raw_read_signed)
2070 (regcache_raw_read_unsigned, regcache_raw_read_part)
2071 (regcache_cooked_read, regcache_cooked_read_signed)
2072 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
2073 (regcache_cooked_read_ftype): Change return to enum
2075 * regcache.c: Include exceptions.h
2076 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
2077 (do_cooked_read): Change return to enum register_status. Always
2078 forward to regcache_cooked_read.
2079 (regcache_raw_read): Change return to enum register_status. If
2080 the register is not REG_VALID, memset the buffer. Return the
2082 (regcache_raw_read_signed): Handle non-REG_VALID registers and
2083 return the register's status.
2084 (regcache_raw_read_unsigned): Ditto.
2085 (regcache_cooked_read): Change return to enum register_status.
2086 Assert that with read-only regcaches, the register's status must
2087 be known. If the regcache is read-only, and the register is not
2088 REG_VALID, memset the buffer. Return the register's status.
2089 (regcache_cooked_read_signed): Change return to enum
2090 register_status. Handle non-REG_VALID registers and return the
2092 (regcache_cooked_read_unsigned): Change return to enum
2093 register_status. Handle non-REG_VALID registers and return the
2095 (regcache_xfer_part, regcache_raw_read_part)
2096 (regcache_cooked_read_part): Change return to enum
2097 register_status. Return the register's status.
2098 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
2100 (regcache_dump): Handle unavailable cooked registers.
2101 * frame.c (do_frame_register_read): Adjust interface to match
2102 regcache_cooked_read_ftype.
2103 * gdbarch.sh (pseudo_register_read): Change return to enum
2105 * gdbarch.h, gdbarch.c: Regenerate.
2107 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
2109 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
2110 register_status. If reading a raw register indicates the raw
2111 register is not valid, return the raw register's status,
2112 otherwise, return REG_VALID.
2113 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
2114 register_status. Handle non-REG_VALID raw registers and return
2115 the register's status.
2116 * arm-tdep.c (arm_neon_quad_read)
2117 (arm_pseudo_read): Change return to enum register_status. Handle
2118 non-REG_VALID raw registers and return the register's status.
2119 * avr-tdep.c (avr_pseudo_register_read): Ditto.
2120 * frv-tdep.c (frv_pseudo_register_read): Ditto.
2121 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
2122 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
2123 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
2125 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
2126 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
2127 (m32c_part_write, m32c_cat_read, m32c_cat_write)
2128 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
2129 (m32c_pseudo_register_read): Change return to enum
2130 register_status. Adjust.
2131 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
2132 enum register_status. Return the register's status.
2133 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
2134 register_status. Return the register's status.
2135 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
2136 * mips-tdep.c (mips_pseudo_register_read): Ditto.
2137 * mt-tdep.c (mt_pseudo_register_read): Ditto.
2138 * rs6000-tdep.c (move_ev_register_func): New typedef.
2139 (e500_move_ev_register): Use it. Change return to enum
2140 register_status. Return the register's status.
2141 (do_regcache_raw_read): New function.
2142 (do_regcache_raw_write): New function.
2143 (e500_pseudo_register_read): Change return to enum
2144 register_status. Return the register's status. Use
2145 do_regcache_raw_read.
2146 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
2147 (dfp_pseudo_register_read): Change return to enum register_status.
2148 Return the register's status.
2149 (vsx_pseudo_register_read): Ditto.
2150 (efpr_pseudo_register_read): Ditto.
2151 (rs6000_pseudo_register_read): Ditto.
2152 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
2153 register_status. Return the register's status.
2154 * sh64-tdep.c (pseudo_register_read_portions): New function.
2155 (sh64_pseudo_register_read): Change return to enum
2156 register_status. Use pseudo_register_read_portions. Return the
2158 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
2159 register_status. Return the register's status.
2160 * sh-tdep.c (pseudo_register_read_portions): New function.
2161 (sh_pseudo_register_read): Change return to enum register_status.
2162 Use pseudo_register_read_portions. Return the register's status.
2163 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
2164 enum register_status. Return the register's status.
2165 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
2166 * spu-tdep.c (spu_pseudo_register_read_spu)
2167 (spu_pseudo_register_read): Ditto.
2168 * xtensa-tdep.c (xtensa_register_read_masked)
2169 (xtensa_pseudo_register_read): Ditto.
2170 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
2172 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2174 * python/py-value.c (valpy_getitem): Fix formatting of error function
2177 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2179 ARI fixes: Add missing internationalization markups throughout
2181 * darwin-nat-info.c: Ditto.
2184 * mi/mi-main.c: Ditto.
2186 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2188 ARI fixes: Add missing internationalization markups throughout
2191 * cp-name-parser.y: Ditto.
2194 * objc-exp.y: Ditto.
2197 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2199 ARI fixes: Messages should have no trailing new lines.
2200 * darwin-nat.c (mach_check_error): Remove trailing new line from
2201 warning function call message.
2202 * record.c (bfdcore_read): Idem for error call.
2204 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2206 * common/signals.c (target_signal_from_host): Add _ markup to error
2207 function call message.
2208 (target_signal_to_host): Add _ markup and remove trailing new line
2209 from warning call message.
2210 (target_signal_from_command): Add _ markup to error function call
2213 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
2217 * python/python.c (gdbpy_write): Accept a stream argument and
2218 operate to the appropriate stream.
2219 (gdbpy_flush): Likewise.
2220 (_initialize_python): Add stream constants.
2221 (finish_python_initialization): Add GdbOutputErrorFile class.
2223 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
2225 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2227 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
2229 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
2230 to store_signed_integer. Add debug message when relocating CALL
2231 instructions. Fix formatting of debug message.
2232 * i386-tdep.c (i386_relocate_instruction): Ditto.
2234 2011-03-17 Joel Brobecker <brobecker@gnat.com>
2236 * target.h (struct target_ops): Remove to_lookup_symbol field.
2237 (target_lookup_symbol): Delete macro.
2238 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
2239 (update_current_target, setup_target_debug): Remove handling
2240 of to_lookup_symbol target_ops field.
2241 * ada-tasks.c (get_known_tasks_addr): Remove use of
2242 target_lookup_symbol.
2243 * coffread.c (coff_symtab_read): Likewise.
2244 * dbxread.c (read_dbx_symtab): Ditto.
2246 2011-03-17 Joel Brobecker <brobecker@gnat.com>
2249 * configure.ac: Add getthrds declaration check.
2250 * configure, config.in: Regenerate.
2251 * aix-thread.c (getthrds): Declare only if not already declared
2252 in procinfo.h. More declaration out of get_signaled_thread to
2255 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
2257 * python/py-symtab.c: Populate symtab_object_methods,
2259 (stpy_is_valid): New function.
2260 (salpy_is_valid): Ditto.
2261 * python/py-symbol.c: Declare symbol_object_methods. Populate.
2262 (sympy_is_valid): New function.
2263 * python/py-objfile.c: Declare objfile_object_methods. Populate.
2264 (objfpy_is_valid): New function.
2265 * python/py-inferior.c: Populate inferior_object_methods.
2266 (infpy_is_valid): New function.
2267 * python/py-infthread.c: Populate thread_object_methods.
2268 (thpy_is_valid): New function.
2269 * python/py-block.c: Declare block_object_methods. Populate. Declare
2270 block_iterator_object_methods. Populate.
2271 (blpy_is_valid): New function.
2272 (blpy_iter_is_valid): Ditto.
2274 2011-03-16 Keith Seitz <keiths@redhat.com>
2276 * linespec.c (find_methods): Canonicalize NAME before looking
2278 (name_end): New function.
2279 (keep_name_info): New function.
2280 (decode_line_1): Use keep_name_info.
2281 (decode_compound): Likewise.
2282 * cli/cli-utils.h (remove_trailing_whitespace): New function.
2283 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
2286 * linespec.c (locate_first_half): Keep overload information, too.
2287 (decode_compound): Use a string to represent break characters
2289 If P points to a break character, do not increment it.
2290 For C++ and Java, keep overload information and relevant keywords.
2291 If we cannot find a symbol, search the minimal symbols.
2294 * linespec.c (decode_compound): Rename SAVED_ARG to
2296 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
2298 Pass a valid block to lookup_symbol.
2299 (lookup_prefix_sym): Likewise.
2300 (find_method): Construct search name based on SYM_CLASS instead
2302 * psymtab.c (lookup_partial_symbol): Add language parameter.
2303 (lookup_symbol_aux_psymtabs): Likewise.
2304 Don't assume that the psymtab we found was the right one. Search
2305 for the desired symbol in the symtab to be certain.
2306 (psymtab_search_name): New function.
2307 (lookup_partial_symbol): Use psymtab_search_name.
2308 Add language parameter.
2309 (read_symtabs_for_function): Add language parameter and pass to
2310 lookup_partial_symbol.
2311 (find_symbol_file_from_partial): Likewise.
2313 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
2316 * dwarf2read.c (noop_record_line): New function.
2317 (dwarf_decode_lines): Ignore line tables for GCd functions.
2319 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
2321 Fix ARI warnings about new lines at the end of messages, which
2322 are unneeded as there is a new line added at the end of the message
2324 * darwin-nat.c (darwin_stop_inferior): Ditto.
2325 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
2326 * dfp.c (decimal_to_number): Ditto.
2327 * exec.c (print_section_info): Ditto.
2328 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
2329 * osdata.c (get_osdata): Ditto.
2330 * record.c (bfdcore_write): Ditto.
2331 * remote-mips.c (mips_readchar): Ditto.
2332 * remote.c (read_ptid): Ditto.
2333 * ser-mingw.c (ser_windows_raw): Ditto.
2334 * tracepoint.c (add_local_symbols): Ditto.
2335 * windows-nat.c (fake_create_process): Ditto.
2337 2011-03-16 Tom Tromey <tromey@redhat.com>
2339 * tracepoint.c (stop_tracing): Don't declare.
2340 * event-top.c (after_char_processing_hook): Add `(void)'.
2342 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
2344 * NEWS: Add Parameter sub-classing description.
2346 2011-03-16 Kai Tietz <ktietz@redhat.com>
2348 * MAINTAINERS: Update my e-mail address.
2350 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
2352 * MAINTAINERS: Add myself for write after approval privileges.
2354 2011-03-15 Michael Snyder <msnyder@vmware.com>
2356 * frame.c (find_frame_sal): Assert sym is not null.
2358 * dbxread.c (process_one_symbol): Assert 'name' is not null.
2360 * objc-lang.c (selectors_info): Check strchr for null result.
2362 * stabsread.c (define_symbol): Guard against bad stabstring input.
2364 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2366 Remove trailing spaces and tabulations from pascal language
2371 p-valprint.c: Ditto.
2373 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2375 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
2376 than LOW. Comment it.
2377 (read_partial_die): Call complaint for inappropriate zero LOWPC or
2378 HIGHPC not strictly higher than LOWPC.
2380 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2382 Fix formatting of function declarations returning a pointer in
2384 * varobj.c (varobj_add_child): Ditto.
2385 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
2386 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
2388 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
2390 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
2391 for the "generic" vector ABI used with GCC 4.3 and later.
2392 (ppc64_sysv_abi_return_value): Likewise.
2394 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
2396 * infcall.c (call_function_by_hand): Function return value is
2397 always a non_lval, even when using struct_return.
2399 2011-03-15 Pedro Alves <pedro@codesourcery.com>
2401 * printcmd.c (ALL_DISPLAYS_SAFE): New.
2402 (map_display_numbers): New.
2403 (do_delete_display): New.
2404 (undisplay_command): Use map_display_numbers.
2405 (do_enable_disable_display): New.
2406 (enable_disable_display_command): New function.
2407 (enable_display): Delete.
2408 (enable_display_command): New.
2409 (disable_display_command): Reimplement.
2410 (_initialize_printcmd): Adjust "enable display" command to use
2411 `enable_display_command' as callback.
2413 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2415 * NEWS: Add Python breakpoint 'stop' operation.
2417 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2419 * NEWS: Delete duplicate entry. Fix typo.
2421 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
2423 Fix ARI warning about function names in first column.
2424 Put prototype declaration on same line as return type.
2425 * objc-exp.y: Ditto.
2427 * python/py-stopevent.h: Ditto.
2428 For long function names, split parameters to
2429 allow function name on same line as return type.
2430 * solib-pa64.c: Ditto.
2433 For long function declaration, use single line.
2434 * hppa-tdep.h: Ditto.
2435 * inferior.h: Ditto.
2437 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2439 * python/python.h: Declare gdbpy_should_stop and
2440 gdbpy_breakpoint_has_py_cond.
2441 * python/python.c: Add python.h to includes. Remove python.h from
2442 HAVE_PYTHON definition
2443 (gdbpy_should_stop): New dummy function.
2444 (gdbpy_breakpoint_has_py_cond): New dummy function.
2445 * python/py-breakpoint.c (bppy_init): Rewrite to allow
2446 sub-classing capabilities.
2447 (gdbpy_should_stop): New function.
2448 (gdbpy_breakpoint_has_py_cond): New function.
2449 (local_setattro): New function.
2450 * breakpoint.c (condition_command): Add check for Python 'stop'
2452 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
2453 operation function as part of stop/continue tests.
2455 2011-03-14 Tom Tromey <tromey@redhat.com>
2458 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
2459 (needs_frame_dwarf_call): Likewise.
2461 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
2463 Fix ARI warning about functions without parameters that do not
2465 * breakpoint.c (all_tracepoints): Replace () by (void).
2466 * f-exp.y (match_string_literal): Ditto.
2468 * m2-exp.y (yylex): Ditto.
2469 * mep-tdep.c (current_me_module): Ditto.
2470 (current_options): Ditto.
2471 (current_cop_data_bus_width): Ditto.
2472 (current_cr_names): Ditto.
2473 (current_cr_is_float): Ditto.
2474 (current_ccr_names): Ditto.
2475 * objc-exp.y (yylex): Ditto.
2476 * p-exp.y (yylex): Ditto.
2477 * remote.c (send_interrupt_sequence): Ditto.
2478 * tracepoint.c (current_trace_status): Ditto.
2479 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
2480 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
2482 2011-03-11 Michael Snyder <msnyder@vmware.com>
2484 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
2485 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
2486 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
2487 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
2488 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
2490 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
2491 (delete_async_event_handler): Ditto.
2493 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
2495 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
2497 * top.c (set_verbose): Assert showcmd was found.
2499 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
2501 * xtensa-tdep.c (warning_once): Correct style issues.
2503 2011-03-11 Yao Qi <yao@codesourcery.com>
2505 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
2507 2011-03-11 Andreas Schwab <schwab@redhat.com>
2509 * common/aclocal.m4: Remove.
2511 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
2513 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
2514 (xtensa_write_register, xtensa_read_register): Likewise.
2515 (xtensa_hextochar): Removed.
2516 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
2518 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
2520 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
2521 (xtensa_call0_frame_cache_t): Update comments. New fields added.
2522 (xtensa_alloc_frame_cache): Add initialization for new fields.
2523 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
2524 (warning_once): New function.
2525 (xtensa_insn_kind): New item c0opc_and.
2526 (call0_classify_opcode): Add the case for AND instruction.
2527 (call0_track_op): Change arguments. New local variable litbase.
2528 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
2529 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
2531 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
2532 (call0_analyze_prologue): Update the comments. Change arguments.
2533 Add the variety of updates to handle extended prologues, which now can
2534 conduct dynamic stack adjustments.
2535 (call0_frame_cache): Likewise.
2536 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
2537 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
2539 2011-03-10 Michael Snyder <msnyder@vmware.com>
2541 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
2542 (cmd_qtframe): Ditto.
2543 (cmd_qtbuffer): Ditto.
2544 (cmd_bigqtbuffer): Ditto.
2546 2011-03-10 Tom Tromey <tromey@redhat.com>
2548 * tracepoint.c (trace_actions_command): Update.
2549 * thread.c (thread_apply_command): Update.
2550 * reverse.c (delete_bookmark_command): Update.
2551 (bookmarks_info): Update.
2552 * printcmd.c (undisplay_command): Update.
2553 * memattr.c (mem_enable_command): Update.
2554 (mem_disable_command): Update.
2555 (mem_delete_command): Update.
2556 * inferior.c (detach_inferior_command): Update.
2557 (kill_inferior_command): Update.
2558 (remove_inferior_command): Update.
2559 * cli/cli-utils.h (struct get_number_or_range_state): New.
2560 (init_number_or_range): Declare.
2561 (get_number_or_range): Update.
2562 * cli/cli-utils.c (init_number_or_range): New function.
2563 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
2565 (number_is_in_list): Update.
2566 * breakpoint.h (get_tracepoint_by_number): Update.
2567 * breakpoint.c (map_breakpoint_numbers): Update for change to
2568 get_number_or_range.
2569 (find_location_by_number): Use get_number, not
2570 get_number_or_range.
2571 (trace_pass_set_count): New function.
2572 (trace_pass_command): Update for change to get_number_or_range.
2574 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
2577 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
2579 * python/py-param.c (add_setshow_generic): Add set/show callback
2580 parameters. Register Python object context.
2581 (get_show_value): New function.
2582 (get_set_value): New function.
2583 (call_doc_function): New function.
2584 (get_doc_string): Move behind get_show_value/get_set_value.
2586 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
2588 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
2590 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
2592 * xtensa-tdep.c (xtensa_read_register): Add comment.
2593 (xtensa_write_register): Likewise.
2594 (xtensa_hextochar): Add comment and update to match coding conventions.
2595 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
2596 (execute_l32e, execute_s32e, execute_code): Update comments.
2597 (xtensa_exception_handler_t): Update to match coding conventions.
2598 (xtensa_insn_kind): Likewise.
2600 2011-03-09 Michael Snyder <msnyder@vmware.com>
2602 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
2604 2011-03-09 Pedro Alves <pedro@codesourcery.com>
2606 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
2608 2011-03-09 Tom Tromey <tromey@redhat.com>
2610 * thread.c (restore_selected_frame): Handle frame_level == -1.
2611 (make_cleanup_restore_current_thread): Use
2612 get_selected_frame_if_set.
2613 * frame.h (get_selected_frame_if_set): Declare.
2614 * frame.c (get_selected_frame_if_set): New function.
2616 2011-03-09 Pedro Alves <pedro@codesourcery.com>
2618 * cli/cli-cmds.c (shell_escape): Use lbasename.
2619 * coffread.c (coff_start_symtab): Constify parameter.
2620 (complete_symtab): Constify `name' parameter.
2621 (coff_symtab_read): Constify `filestring' local.
2622 (coff_getfilename): Constify return and `result' local.
2624 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
2625 * linux-fork.c (info_checkpoints_command): Use lbasename.
2626 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
2627 * minsyms.c (lookup_minimal_symbol): Use lbasename.
2628 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
2629 * procfs.c (procfs_make_note_section): Use lbasename.
2630 * tui/tui-io.c (printable_part): Constity return and parameter.
2632 (print_filename): Constify parameters, and local `s'.
2633 (tui_rl_display_match_list): Constify local `temp'.
2635 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2638 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2639 Fix DWARF-3+ DW_AT_accessibility default assumption.
2640 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
2641 cu->header.version >= 3.
2643 2011-03-09 Yao Qi <yao@codesourcery.com>
2645 * common/Makefile.in: Remove.
2646 * common/configure: Remove.
2647 * common/configure.ac: Remove.
2649 2011-03-09 Yao Qi <yao@codesourcery.com>
2652 2011-02-11 Yao Qi <yao@codesourcery.com>
2654 * common/Makefile.in: Add copyright header.
2656 2011-02-11 Yao Qi <yao@codesourcery.com>
2658 * Makefile.in: Remove signals.o from COMMON_OBS. Link
2660 * configure.ac: Add common to sub dir.
2661 * configure: Regenerate.
2663 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2665 * xtensa-tdep.c (call0_ret): New function.
2666 (xtensa_skip_prologue): Speed up analysis.
2668 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2670 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
2671 while executing MI command -data-list-changed-registers.
2673 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2675 * xtensa-tdep.c (xtensa_read_register): New function.
2676 (xtensa_write_register): New function.
2677 (xtensa_find_register_by_name): New function.
2678 (xtensa_windowed_frame_cache): Update comments in type description.
2679 (xtensa_frame_cache): Likewise.
2680 (xtensa_window_interrupt_insn): New function.
2681 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
2682 (xtensa_insn_kind): Add new instructions.
2683 (rwx_special_register): New function.
2684 (call0_classify_opcode): Add new instructions to the analysis.
2685 (a0_saved, a7_saved, a11_saved): New variables.
2686 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
2687 (execute_l32e): New function.
2688 (execute_s32e): New function.
2689 (xtensa_exception_handler_t): New type.
2690 (execute_code): New function.
2691 (xtensa_window_interrupt_frame_cache): New function to conduct frame
2692 analysis for Xtensa Window Exception handlers.
2694 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2696 * xtensa-tdep.c (TX_PS): New.
2697 (windowing_enabled): Update to count for Call0 ABI.
2698 (xtensa_hextochar): New.
2699 (xtensa_init_reggroups): Make algorithm generic.
2700 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
2702 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2704 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
2706 2011-03-08 Michael Snyder <msnyder@vmware.com>
2708 * i386-tdep.c (i386_follow_jump): Check return value of
2710 (i386_analyze_struct_return): Ditto.
2711 (i386_skip_probe): Ditto.
2712 (i386_match_insn): Ditto.
2713 (i386_skip_noop): Ditto.
2714 (i386_analyze_frame_setup): Ditto.
2715 (i386_analyze_register_saves): Ditto.
2716 (i386_skip_prologue): Ditto.
2717 (i386_skip_main_prologue): Ditto.
2719 * target.c (read_whatever_is_readable): Fix memory leak.
2721 * i386-tdep.c (i386_process_record): Document fall through.
2723 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2725 Fix DWARF-3+ DW_AT_accessibility default assumption.
2726 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
2727 cu->header.version >= 3.
2729 2011-03-08 Pedro Alves <pedro@codesourcery.com>
2731 * remote.c (remote_check_symbols): Skip if the target has no
2734 2011-03-08 Joel Brobecker <brobecker@adacore.com>
2736 * target.c (read_whatever_is_readable): Reformat comment,
2737 with a minor typo fix. Minor reformatting of the code.
2739 2011-03-08 Yao Qi <yao@codesourcery.com>
2741 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
2742 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
2743 Use cached result instead of calling displaced_in_arm_mode again.
2744 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
2745 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
2746 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
2747 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
2748 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
2749 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
2750 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
2751 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
2752 (cleanup_block_load_pc, copy_block_xfer): Likewise.
2753 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
2754 (arm_catch_kernel_helper_return): Likewise.
2755 * gdb/arm-tdep.h : Update function declarations.
2757 2011-03-07 Michael Snyder <msnyder@vmware.com>
2759 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
2761 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
2763 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
2765 * elfread.c (elf_symtab_read): Stop memory leak.
2767 * main.c (captured_main): Fix memory leak.
2769 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
2771 * ada-lang.c (compare_names): Call is_name_suffix with string1
2774 2011-03-07 Tom Tromey <tromey@redhat.com>
2776 * xcoffread.c (xcoff_sym_fns): Update.
2777 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
2778 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
2779 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
2780 (symbol_file_add_with_addrs_or_offsets): Likewise.
2781 (reread_symbols): Handle OBJF_PSYMTABS_READ.
2782 * somread.c (som_sym_fns): Update.
2783 * psymtab.h (require_partial_symbols): Declare.
2784 * psymtab.c (require_partial_symbols): New function.
2785 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
2786 (ALL_OBJFILE_PSYMTABS): Undef.
2787 (ALL_PSYMTABS): Move from psympriv.h.
2788 (lookup_partial_symtab, find_pc_sect_psymtab)
2789 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
2790 (find_last_source_symtab_from_partial)
2791 (forget_cached_source_info_partial)
2792 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
2793 (expand_partial_symbol_tables, read_psymtabs_with_filename)
2794 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
2795 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
2796 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
2797 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
2798 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
2799 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
2800 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
2802 * mipsread.c (ecoff_sym_fns): Update.
2803 * machoread.c (macho_sym_fns): Update.
2804 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
2805 (read_psyms): New function.
2806 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
2807 (elf_sym_fns_lazy_psyms): New global.
2808 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
2809 dwarf2_build_psymtabs.
2810 * dbxread.c (aout_sym_fns): Update.
2811 * coffread.c (coff_sym_fns): Update.
2813 2011-03-07 Tom Tromey <tromey@redhat.com>
2815 * infrun.c (print_exited_reason): Include inferior id and pid in
2818 2011-03-07 Tom Tromey <tromey@redhat.com>
2820 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
2822 (target_has_execution_1): Update.
2823 (target_has_execution_current): Declare.
2824 (target_has_execution): Call target_has_execution_current.
2825 (default_child_has_execution): Update.
2826 * target.c (default_child_has_execution): Add 'the_ptid'
2828 (target_has_execution_1): Likewise.
2829 (target_has_execution_current): New function.
2830 (add_target): Update.
2831 (init_dummy_target): Update.
2832 * remote-m32r-sdi.c (m32r_has_execution): New function.
2833 (init_m32r_ops): Use it.
2834 * record.c (record_core_has_execution): Now static. Add
2835 'the_ptid' parameter.
2836 * inferior.c (have_live_inferiors): Don't save current thread.
2837 Use target_has_execution_1.
2839 2011-03-07 Yao Qi <yao@codesourcery.com>
2841 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
2843 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2845 * elfread.c (elf_symtab_read): Minor reformatting.
2847 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2849 * objc-lang.c (selectors_info): Minor reformatting.
2851 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2853 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
2855 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2856 Michael Snyder <msnyder@vmware.com>
2858 * ada-valprint.c (ada_val_print_array): Move the declaration of
2859 "byte_order" and "elttype" inside the block where these variables
2860 are actually used. Remove some special handling for the case
2861 where "elttype" and "eltlen" are null. Replace by a comment
2862 and a couple of assertion checks.
2864 2011-03-05 Michael Snyder <msnyder@vmware.com>
2866 * source.c (add_path): Replace semicolon at end of block.
2867 * dwarf2expr.c (execute_stack_op): Ditto.
2869 2011-03-05 Mike Frysinger <vapier@gentoo.org>
2871 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
2872 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
2873 (bfin-*-*): Likewise.
2875 2011-03-05 Michael Snyder <msnyder@vmware.com>
2877 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
2878 * mdebugread.c (parse_symbol): Ditto.
2879 * parse.c (parse_exp_in_context): Ditto.
2880 * source.c (add_path): Ditto.
2881 * utils.c (gnu_debuglink_crc32): Ditto.
2882 * varobj.c (variable_language): Ditto.
2884 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
2886 2011-03-04 Michael Snyder <msnyder@vmware.com>
2888 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
2890 * symfile.c (simple_overlay_update): Check for null return value
2891 from lookup_minimal_symbol.
2893 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
2895 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2897 * eval.c (parse_and_eval_address_1): Remove function.
2898 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
2899 instead of parse_and_eval_address_1.
2900 * value.h (parse_and_eval_address_1): Remove prototype.
2902 2011-03-04 Michael Snyder <msnyder@vmware.com>
2904 * remote.c (putpkt_binary): Document that case stmt falls through.
2906 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2908 * breakpointc (print_it_typical): Move NULL check from here...
2909 (print_bp_stop_message): ... to here.
2911 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
2913 * breakpoint.c (enable_command): Use break instead of continue,
2914 and fill in a missing break.
2915 (disable_command): Ditto.
2917 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
2919 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
2920 (terminal_save_ours): Remove misleading comment.
2921 (inflow_inferior_data_cleanup): Free ttystate.
2922 (inflow_inferior_exit): Likewise.
2923 (copy_terminal_info): Copy ttystate.
2925 * serial.c (serial_copy_tty_state): New function.
2926 * serial.h (serial_copy_tty_state): Add prototype.
2927 (struct serial_ops): Add copy_tty_state callback.
2928 * ser-base.c (ser_base_copy_tty_state): New function.
2929 * ser-base.h (ser_base_copy_tty_state): Add prototype.
2930 * ser-go32.c (dos_copy_tty_state): New function.
2931 (dos_ops): Install copy_tty_state callback.
2932 * ser-mingw.c (_initialize_ser_windows): Likewise.
2933 * ser-pipe.c (_initialize_ser_pipe): Likewise.
2934 * ser-unix.c (hardwire_copy_tty_state): New function.
2935 (_initialize_ser_hardwire): Install it.
2937 2011-03-04 Michael Snyder <msnyder@vmware.com>
2939 * breakpoint.c (create_breakpoint): Add missing break statement.
2941 Reverting this patch:
2942 * infcall.c (call_function_by_hand): Add break statements for lint.
2944 Reverting this patch:
2945 * cli/cli-script.c (script_from_file): Add break for lint.
2947 2011-03-04 Michael Snyder <msnyder@vmware.com>
2949 * solib.c (reload_shared_libraries_1): Close memory leak.
2951 2011-03-03 Tom Tromey <tromey@redhat.com>
2954 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
2957 2011-03-03 Michael Snyder <msnyder@vmware.com>
2959 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
2960 fields of struct 'st' to zero.
2962 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
2963 sal.pspace before calling set_current_source_symtab_and_line.
2965 2011-03-03 Yao Qi <yao@codesourcery.com>
2967 * Makefile.in (configure-common): Remove. Let Makefile
2968 in dir common to rebuild itself.
2969 (common/Makefile): Likewise.
2971 2011-03-03 Joel Brobecker <brobecker@adacore.com>
2973 * utils.c (parse_escape): Add i18n markup in error message.
2975 2011-03-03 Yao Qi <yao@codesourcery.com>
2977 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
2979 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
2980 (displaced_write_reg, displaced_read_reg): Likewise.
2981 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
2982 (cleanup_block_load_pc, copy_block_xfer): Likewise.
2983 (cleanup_branch): Replace magic number 14 and 15 with
2984 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
2986 2011-03-02 Michael Snyder <msnyder@vmware.com>
2988 * maint.c (maintenance_do_deprecate): No need to check for NULL.
2990 * cli/cli-script.c (script_from_file): Add break for lint.
2992 * mdebugread.c (parse_partial_symbols): Fix indent.
2994 * target-descriptions.c (tdesc_gdb_type): No need to call
2995 xstrdup, callee saves a copy.
2997 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
2999 * infcall.c (call_function_by_hand): Add break statements for lint.
3001 * utils.c (parse_escape): Escape the escape char.
3003 * python/py-inferior.c (build_inferior_list): Error out if
3004 PyList_Append fails.
3005 (gdbpy_inferiors): Error out if build_inferior_list fails.
3007 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
3010 * record.c (record_restore): Move printf to before error return.
3012 2011-03-02 Yao Qi <yao@codesourcery.com>
3014 * arm-tdep.h (struct displaced_step_closure): Add two new fields
3015 is_thumb and insn_size.
3016 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
3017 on both ARM and Thumb mode.
3018 (arm_process_displaced_insn): Set is_thumb and insn_size.
3019 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
3020 (arm_displaced_step_fixup): Likewise.
3022 2011-03-01 Michael Snyder <msnyder@vmware.com>
3024 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
3026 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
3028 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
3030 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
3032 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
3035 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
3036 which shadows function parameter.
3038 * tracepoint.c (create_tsv_from_upload): Superfluous call
3039 to xstrdup. Callee already calls xstrdup.
3041 * linespec.c (decode_line_1): Remove unnecessary null check.
3043 * tracepoint.c (scope_info): Fix mem leak, remove underused
3046 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
3047 superfluous null check.
3049 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
3050 (value_of_builtin_frame_fp_reg): Ditto.
3052 * event-top.c (display_gdb_prompt): Remove superfluous null check.
3054 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
3057 * linespec.c (decode_line_1): Check for null before dereference.
3059 * reverse.c (record_restore): Move null-check to before pointer
3062 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
3064 * objc-lang.c (selectors_info): Add explanitory comment.
3065 (classes_info): Ditto.
3067 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
3069 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
3070 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
3071 versions of the trampoline. Handle Thumb vs. ARM addresses.
3072 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
3073 (arm_linux_init_abi): Install it.
3074 * arm-tdep.c (arm_psr_thumb_bit): Make global.
3075 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
3077 2011-02-28 Michael Snyder <msnyder@vmware.com>
3079 * ui-out.c (ui_out_field_core_addr): Make local char buffer
3080 a little bigger, to avoid possibility of an overflow.
3082 * breakpoint.c (breakpoint_adjustment_warning): Make local char
3083 buffers a little bigger, to avoid possibility of an overflow.
3085 * coffread.c (coff_getfilename): Add check to avoid overflow.
3087 * objc-lang.c (selectors_info): Add a small safety margin to
3089 (classes_info): Error out on too long REGEXP.
3091 * infrun.c (handle_inferior_event): Remove unused function call.
3093 * fork-child.c (fork_inferior): Remove ifdef'd code and
3096 * linux-thread-db.c (attach_thread): Discard unused value.
3098 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
3100 * remote.c (remote_get_noisy_reply): Discard unused value.
3101 (remote_vcont_resume): Ditto.
3102 (remote_stop_ns): Ditto.
3104 * linespec.c (decode_objc): Delete unused variable.
3106 * tui/tui-regs.c (tui_register_format): Delete unused variable.
3108 * dwarf2read.c (add_partial_symbol): Discard unused values.
3109 (read_base_type): Delete unused variable.
3111 * dbxread.c (read_dbx_symtab): Discard unused value.
3113 * eval.c (evaluate_subexp_standard): Delete unused variable,
3114 and discard unused values.
3116 * infcmd.c (_initialize_infcmd): Discard unused values.
3118 * stabsread.c (rs6000_builtin_type): Missing break statement.
3120 * dbxread.c (process_one_symbol): Discard unused value.
3122 * coffread.c (coff_end_symtab): Delete unused variable.
3124 * dwarf2read.c (dw2_get_file_names): Discard unused value.
3125 (dwarf2_add_typedef): Delete unused variable.
3126 (read_namespace): Ditto.
3127 (dwarf_decode_macros): Ditto.
3129 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
3131 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
3133 * p-valprint.c (pascal_val_print): Discard unused value.
3135 * utils.c (nquery): Call va_end before return;
3139 * proc-service.c (ps_plog): Call va_end before return.
3141 2011-02-28 Tom Tromey <tromey@redhat.com>
3143 * python/python.c (gdbpy_value_cst): New global.
3144 (_initialize_python): Initialize it.
3145 * python/python-internal.h (gdbpy_value_cst): Declare.
3146 * python/py-value.c (convert_value_from_python): Use
3149 2011-02-28 Michael Snyder <msnyder@vmware.com>
3151 * python/py-cmd.c (cmdpy_init): Fix memory leak.
3153 * breakpoint.c (catch_syscall_completer): Free malloced list.
3155 * jv-lang.c (java_primitive_type_from_name): Add missing break.
3157 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
3158 (lval_func_check_synthetic_pointer): Ditto.
3159 (lval_func_free_closure): Fix use-after-free.
3161 2011-02-28 Tom Tromey <tromey@redhat.com>
3163 * psymtab.c (expand_partial_symbol_tables): Use
3164 ALL_OBJFILE_PSYMTABS.
3166 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3168 * objc-lang.c (selectors_info): Error on too long REGEXP.
3170 2011-02-28 Michael Snyder <msnyder@vmware.com>
3172 * python/py-param.c (set_parameter_value): Add missing
3175 * linux-record.c (record_linux_system_call): Add missing
3178 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3180 * breakpoint.c (print_one_breakpoint_location): Remove unused
3181 argument PRINT_ADDRESS_BITS. Update callers.
3182 (print_one_breakpoint): Likewise.
3184 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3186 * breakpoint.c (wrap_indent_at_field): New function.
3187 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
3188 Allocate ui_stream locally instead of using STB argument.
3189 (print_one_breakpoint_location): Update call.
3190 * ui-out.c (ui_out_query_field): New function.
3191 * ui-out.h (ui_out_query_field): Add prototype.
3193 2011-02-28 Joel Brobecker <brobecker@adacore.com>
3195 From Michael Snyder <msnyder@vmware.com>
3196 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
3198 2011-02-27 Michael Snyder <msnyder@vmware.com>
3200 * objc-lang.c (selectors_info): Prevent string overrun.
3202 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
3205 * symtab.c (rbreak_command): Move variable 'file_name' to
3208 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
3209 param with a local variable of the same name.
3211 2011-02-27 Michael Snyder <msnyder@vmware.com>
3213 * value.c (value_from_history_ref): New function.
3214 * value.h (value_from_history_ref): Export.
3215 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
3216 to parse value history references.
3217 * cli/cli-utils.h (get_number_trailer): Update comment.
3219 2011-02-27 Michael Snyder <msnyder@vmware.com>
3221 * inferior.c (detach_inferior_command): Use get_number_or_range.
3222 (kill_inferior_command): Ditto.
3223 (remove_inferior_command): Ditto.
3224 (initialize_inferiors): Make command names plural.
3225 Update help strings.
3227 2011-02-27 Michael Snyder <msnyder@vmware.com>
3229 * darwin-nat-info.c: Fix comment typo.
3230 * dwarf2expr.h: Ditto.
3231 * fbsd-nat.c: Ditto.
3232 * fbsd-nat.h: Ditto.
3233 * frame-unwind.h: Ditto.
3235 * hppa-hpux-tdep.c: Ditto.
3236 * i386-linux-nat.c: Ditto.
3237 * linux-nat.c: Ditto.
3238 * nbsd-nat.c: Ditto.
3239 * nbsd-nat.h: Ditto.
3240 * ppc-linux-tdep.c: Ditto.
3243 * tui/tui-winsource.c: Ditto.
3245 2011-02-26 Michael Snyder <msnyder@vmware.com>
3247 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
3249 * maint.c (maintenance_do_deprecate): Plug a memory leak.
3251 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
3252 with a local variable of the same name.
3254 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
3255 param with a local variable of the same name.
3256 (i387_supply_xsave): Ditto.
3258 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
3259 that it does not shadow a function parameter.
3261 * i386-nat.c (i386_length_and_rw_bits): Document that case
3262 statement is meant to fall through.
3264 * expprint.c (dump_subexp_body_standard): Document that case
3265 statement is meant to fall through.
3267 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
3268 dead if statement. Condition can't be false.
3270 2011-02-25 Michael Snyder <msnyder@vmware.com>
3272 * arm-tdep.c: Fix typos in comments.
3273 * bsd-uthread.c: Ditto.
3274 * completer.c: Ditto.
3276 * cp-namespace.c: Ditto.
3277 * cp-support.c: Ditto.
3278 * cris-tdep.c: Ditto.
3280 * dwarf2read.c: Ditto.
3282 * gdbtypes.h: Ditto.
3283 * inferior.h: Ditto.
3284 * mdebugread.c: Ditto.
3285 * mips-tdep.c: Ditto.
3286 * ppc-linux-nat.c: Ditto.
3287 * ppc-linux-tdep.c: Ditto.
3288 * printcmd.c: Ditto.
3289 * sol-thread.c: Ditto.
3290 * solib-frv.c: Ditto.
3292 * sparc64-tdep.c: Ditto.
3293 * spu-tdep.c: Ditto.
3294 * stabsread.c: Ditto.
3299 * python/py-block.c: Ditto.
3300 * python/py-symbol.c: Ditto.
3301 * python/py-symtab.c: Ditto.
3302 * python/py-value.c: Ditto.
3303 * tui/tui-win.c: Ditto.
3305 2011-02-25 Michael Snyder <msnyder@vmware.com>
3307 * inferior.c (print_inferior): Accept a string instead of an int
3308 for requested_inferiors, and use get_number_or_range to parse it.
3309 (info_inferiors_command): Pass args string to print_inferior.
3310 (initialize_inferiors): Change help string for info inferiors.
3311 * inferior.h (print_inferior): Export prototype change.
3313 2011-02-25 Tom Tromey <tromey@redhat.com>
3315 * common/ax.def (invalid2): Set to 0x31.
3317 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3319 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
3321 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
3323 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
3325 2011-02-24 Michael Snyder <msnyder@vmware.com>
3327 * Makefile.in (clean): Make clean should remove generated files
3328 observer.h and observer.inc.
3330 2011-02-24 Joel Brobecker <brobecker@adacore.com>
3332 Revert the following patch (not approved yet):
3333 2011-02-21 Hui Zhu <teawater@gmail.com>
3334 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3335 * ax-gdb.c (gen_printf_expr_callback): New function.
3336 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3337 * ax-general.c (ax_memcpy): New function.
3338 (ax_print): Handle "printf".
3340 * ax.h (ax_memcpy): Forward declare.
3341 * common/ax.def (invalid2): Removed.
3342 (printf): New entry.
3343 * printcmd.c (printcmd.h): New include.
3344 (string_printf): New function.
3345 (ui_printf): Removed.
3346 (printf_command): Remove static. Call string_printf.
3347 (eval_command): Call string_printf.
3348 * printcmd.h: New file.
3349 * tracepoint.c (validate_actionline,
3350 encode_actions_1): handle printf_command.
3352 2011-02-23 Tom Tromey <tromey@redhat.com>
3354 * ax-general.c (ax_pick): Add missing newline.
3356 2011-02-23 Michael Snyder <msnyder@vmware.com>
3358 * breakpoint.c (breakpoint_1): Change first argument from an int
3359 to a char pointer, so that the function now accepts a list of
3360 breakpoints rather than just one. Use new function
3361 'number_is_in_list' to implement.
3362 (breakpoints_info): Pass char * instead of int to breakpoint_1.
3363 (watchpoints_info): Ditto.
3364 (tracepoints_info): Ditto.
3365 (maintenance_info_breakpoints): Ditto.
3366 (_initialize_breakpoint): Update help strings to reflect the fact
3367 that these functions can now take more than one argument.
3368 * cli/cli-utils.c (number_is_in_list): New function.
3369 * cli/cli-utils.h (number_is_in_list): Export.
3371 2011-02-23 Michael Snyder <msnyder@vmware.com>
3373 * memattr.c (mem_enable_command): Use get_number_or_range.
3374 (mem_disable_command): Ditto.
3375 (mem_delete_command): Ditto.
3376 (_initialize_mem): Tweak usage message to reflect multiple
3379 2011-02-22 Doug Evans <dje@google.com>
3381 Add gdb.lookup_global_symbol python function.
3383 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
3384 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
3385 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
3387 2011-02-22 Tom Tromey <tromey@redhat.com>
3389 * language.c (language_class_name_from_physname): Rename
3390 'curr_language' argument to 'lang'; use in body.
3392 2011-02-22 Michael Snyder <msnyder@vmware.com>
3394 * cli/cli-utils.c (number_is_in_list): Check for zero return.
3396 2011-02-22 Pedro Alves <pedro@codesourcery.com>
3398 * frame-unwind.h: Fix comment to mention the this frame, not the
3401 2011-02-22 Tom Tromey <tromey@redhat.com>
3403 * symfile.c (auto_solib_limit): Remove.
3404 * symfile.h (auto_solib_limit): Remove.
3406 2011-02-22 Joel Brobecker <brobecker@adacore.com>
3408 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
3410 2011-02-21 Michael Snyder <msnyder@vmware.com>
3412 * gdbthread.h (print_thread_info): Change prototype.
3413 * thread.c (print_thread_info): Accept char* instead of int for
3414 requested_threads argument. Use new function number_is_in_list
3415 to determine which threads to list.
3416 (info_threads_command): Pass char* to print_thread_info.
3417 * cli/cli-utils.c (number_is_in_list): New function.
3418 * cli/cli-utils.h (number_is_in_list): Export.
3419 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
3421 (print_one_inferior): Ditto.
3422 (mi_cmd_list_thread_groups): Ditto.
3424 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3426 * common/Makefile.in (CFLAGS): New.
3427 (COMPILE): Add $(CFLAGS).
3429 2011-02-21 Tom Tromey <tromey@redhat.com>
3431 * breakpoint.c (catch_syscall_command_1): Fix typo.
3433 2011-02-21 Tom Tromey <tromey@redhat.com>
3435 * reverse.c: Include cli-utils.h.
3436 * printcmd.c: Include cli-utils.h.
3437 (string_printf): Use skip_spaces.
3438 * cli/cli-utils.h: New file.
3439 * cli/cli-utils.c: New file.
3440 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
3441 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
3442 * breakpoint.h (get_number, get_number_or_range): Move to
3444 * breakpoint.c: Include cli-utils.h.
3445 (get_number_trailer, get_number, get_number_or_range)
3446 (ep_skip_leading_whitespace): Move to cli-utils.c.
3447 (create_breakpoint_sal, find_condition_and_thread)
3448 (decode_static_tracepoint_spec, watch_command_1)
3449 (watch_maybe_just_location, ep_parse_optional_if_clause)
3450 (catch_fork_command_1, catch_exec_command_1)
3451 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
3452 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
3453 (SUBDIR_CLI_SRCS): Add cli-utils.c.
3454 (HFILES_NO_SRCDIR): Add cli-utils.h.
3455 (cli-utils.o): New target.
3457 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3459 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
3460 before calling discard_all_inferiors.
3462 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
3464 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
3465 (struct builtin_opencl_type): Remove.
3466 (builtin_opencl_type): Change return type to "struct type **".
3467 (lookup_opencl_vector_type): Update caller.
3468 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
3469 (build_opencl_types): Install plain array of "struct type *"
3470 instead of "struct builtin_opencl_type".
3472 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3473 Ulrich Weigand <uweigand@de.ibm.com>
3475 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
3476 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
3477 (struct arm_linux_hwbp_cap): New type.
3478 (arm_linux_get_hwbp_cap): New function.
3479 (arm_linux_get_hw_breakpoint_count): Likewise.
3480 (arm_linux_get_hw_watchpoint_count): Likewise.
3481 (arm_linux_can_use_hw_breakpoint): Likewise.
3482 (arm_hwbp_type): New type.
3483 (arm_hwbp_control_t): Likewise.
3484 (struct arm_linux_hw_breakpoint): Likewise.
3485 (struct arm_linux_thread_points): Likewise.
3486 (arm_threads): New global variable.
3487 (arm_linux_find_breakpoints_by_tid): New function.
3488 (arm_hwbp_control_initialize): Likewise.
3489 (arm_hwbp_control_is_enabled): Likewise.
3490 (arm_hwbp_control_disable): Likewise.
3491 (arm_linux_hw_breakpoint_initialize): Likewise.
3492 (arm_linux_get_hwbp_type): Likewise.
3493 (arm_linux_hw_watchpoint_initialize): Likewise.
3494 (arm_linux_hw_breakpoint_equal): Likewise.
3495 (arm_linux_insert_hw_breakpoint1): Likewise.
3496 (arm_linux_remove_hw_breakpoint1): Likewise.
3497 (arm_linux_insert_hw_breakpoint): Likewise.
3498 (arm_linux_remove_hw_breakpoint): Likewise.
3499 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
3500 (arm_linux_insert_watchpoint): Likewise.
3501 (arm_linux_remove_watchpoint): Likewise.
3502 (arm_linux_stopped_data_address): Likewise.
3503 (arm_linux_stopped_by_watchpoint): Likewise.
3504 (arm_linux_watchpoint_addr_within_range): Likewise.
3505 (arm_linux_new_thread): Likewise.
3506 (arm_linux_thread_exit): Likewise.
3507 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
3508 related target callbacks. Register arm_linux_new_thread and
3509 arm_linux_thread_exit.
3510 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
3511 * arm-tdep.c (arm_pc_is_thumb): Make global.
3512 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
3514 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
3516 * breakpoint.c (update_watchpoint): Do not attempt to recreate
3517 per-frame locations while within a function epilogue.
3519 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
3521 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
3522 to GNU coding standards.
3524 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
3526 Allow use of mingw native on Windows 95 OS.
3527 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
3528 (ser_windows_close): Only call CancelIo if function exists.
3529 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
3530 to check for existence of CancelIo function in kernel32 DLL.
3532 2011-02-21 Hui Zhu <teawater@gmail.com>
3534 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3535 * ax-gdb.c (gen_printf_expr_callback): New function.
3536 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3537 * ax-general.c (ax_memcpy): New function.
3538 (ax_print): Handle "printf".
3540 * ax.h (ax_memcpy): Forward declare.
3541 * common/ax.def (invalid2): Removed.
3542 (printf): New entry.
3543 * printcmd.c (printcmd.h): New include.
3544 (string_printf): New function.
3545 (ui_printf): Removed.
3546 (printf_command): Remove static. Call string_printf.
3547 (eval_command): Call string_printf.
3548 * printcmd.h: New file.
3549 * tracepoint.c (validate_actionline,
3550 encode_actions_1): handle printf_command.
3552 2011-02-19 Michael Snyder <msnyder@vmware.com>
3554 * reverse.c (delete_one_bookmark): Argument is now bookmark
3555 id rather than pointer to bookmark struct.
3556 (delete_bookmark_command): Use get_number_or_range.
3557 (goto_bookmark_command): Parse with get_number instead of strtoul.
3558 (bookmark_1): New function. Print info for one bookmark.
3559 (bookmarks_info): Use get_number_or_range and bookmark_1.
3561 2011-02-18 Michael Snyder <msnyder@vmware.com>
3563 * thread.c (info_threads_command): Re-implement using
3564 get_number_or_range.
3565 (thread_apply_command): Ditto.
3567 2011-02-18 Tom Tromey <tromey@redhat.com>
3569 * common/ax.def: New file.
3570 * ax.h (enum agent_op): Use ax.def.
3571 * ax-general.c (aop_map): Use ax.def.
3573 2011-02-18 Tom Tromey <tromey@redhat.com>
3575 * ax-general.c (aop_map): Add pick and rot.
3576 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
3577 <DW_OP_rot>: Implement.
3578 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
3580 * ax-general.c (ax_pick): New function.
3582 2011-02-18 Tom Tromey <tromey@redhat.com>
3584 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
3586 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3587 Tom Tromey <tromey@redhat.com>
3589 * cp-support.c (make_symbol_overload_list_namespace): Do not call
3590 make_symbol_overload_list_block with NULL BLOCK.
3591 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
3593 2011-02-18 Pedro Alves <pedro@codesourcery.com>
3595 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
3596 * breakpoint.h (get_number_or_range): Declare.
3597 * printcmd.c (ALL_DISPLAYS): Declare.
3598 (delete_display): Reimplement taking a display pointer.
3599 (undisplay_command): Accept a range of displays to delete, using
3600 get_number_or_range.
3602 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3604 * c-valprint.c (c_val_print): Add embedded_offset to address
3605 for arrays of unspecified length.
3606 * p-valprint.c (pascal_val_print): Likewise.
3608 2011-02-18 Yao Qi <yao@codesourcery.com>
3610 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
3611 (arm_process_displaced_insn): .. here. Remove parameter INSN.
3612 (thumb_process_displaced_insn): New.
3613 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
3614 call to arm_process_displaced_insn.
3615 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
3617 2011-02-17 Tom Tromey <tromey@redhat.com>
3619 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
3620 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
3621 compile_dwarf_to_ax. No longer static. Call
3622 dwarf2_compile_cfa_to_ax.
3623 (locexpr_tracepoint_var_ref): Update.
3624 (loclist_tracepoint_var_ref): Update.
3625 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
3626 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
3627 argument; add 'gdbarch' and 'pc'.
3628 (dwarf2_compile_cfa_to_ax): New function.
3629 (dwarf2_frame_cache): Update.
3631 2011-02-17 Joel Brobecker <brobecker@adacore.com>
3633 * ada-lang.c (ada_type_of_array): Fix the size of the array
3634 in the case of an unconstrained packed array.
3636 2011-02-17 Yao Qi <yao@codesourcery.com>
3638 * common/Makefile.in: Add more targets for make.
3640 2011-02-16 Tom Tromey <tromey@redhat.com>
3642 * dwarf2loc.c (unimplemented): Fix typo.
3644 2011-02-16 Tom Tromey <tromey@redhat.com>
3646 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
3647 (compile_dwarf_to_ax) <default>: Use unimplemented.
3648 <DW_OP_deref>: Update.
3649 (disassemble_dwarf_expression): Update.
3650 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
3651 (decode_locdesc): Update.
3652 * dwarf2expr.h (dwarf_stack_op_name): Update.
3654 2011-02-16 Tom Tromey <tromey@redhat.com>
3656 * ax.h (struct aop_map) <name>: Now const.
3658 2011-02-16 Tom Tromey <tromey@redhat.com>
3660 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
3663 2011-02-16 Yao Qi <yao@codesourcery.com>
3665 * infrun.c (get_displaced_step_closure_by_addr): New.
3666 * inferior.h: Declare it.
3667 * arm-tdep.c: (arm_pc_is_thumb): Call
3668 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
3671 2011-02-16 Pedro Alves <pedro@codesourcery.com>
3672 Jan Kratochvil <jan.kratochvil@redhat.com>
3675 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
3677 2011-02-16 Pedro Alves <pedro@codesourcery.com>
3678 Jan Kratochvil <jan.kratochvil@redhat.com>
3680 * value.c (value_contents_copy_raw): Extend describing comment.
3681 Assert that the destination contents we're overwriting are wholly
3683 (value_contents_copy): Extend describing comment.
3685 2011-02-16 Pedro Alves <pedro@codesourcery.com>
3686 Jan Kratochvil <jan.kratochvil@redhat.com>
3688 * value.c (value_available_contents_eq): Remove redundant local
3689 variables. Fix available contents comparision.
3690 * value.h (value_available_contents_eq): Extend describing
3693 2011-02-16 Yao Qi <yao@codesourcery.com>
3695 * thread.c (info_threads_command): Add missing i18n markup and remove
3698 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
3700 * breakpoint.c (longjmp_names): New variable.
3701 (struct breakpoint_objfile_data): New type.
3702 (breakpoint_objfile_key): New variable.
3703 (msym_not_found): New variable.
3704 (msym_not_found_p): New predicate.
3705 (get_breakpoint_objfile_data): New function.
3706 (create_overlay_event_breakpoint): Check per-objfile cache for
3708 (create_longjmp_master_breakpoint): Likewise.
3709 (create_std_terminate_master_breakpoint): Likewise.
3710 (create_exception_master_breakpoint): Likewise.
3711 (_initialize_breakpoint): Register per-objfile data key.
3713 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
3715 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
3717 (create_longjmp_master_breakpoint): Loop over longjmp names.
3718 (create_std_terminate_master_breakpoint): Const-propagate parameter
3720 (update_breakpoints_after_exec): Adjust.
3721 (breakpoint_re_set): Adjust.
3723 2011-02-15 Michael Snyder <msnyder@vmware.com>
3725 * thread.c (info_threads_command): Process arg as thread id,
3726 or list of thread ids.
3727 (thread_find_command): New command.
3728 (_initialize_thread): Document argument for info threads.
3729 Document 'thread find' command.
3730 * NEWS: Document new command "thread find".
3732 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3734 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
3735 * aclocal.m4: Regenerated with aclocal-1.11.1.
3736 * common/configure: Regenerate with autoconf-2.64.
3738 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
3740 * opencl-lang.c (build_opencl_types): Set the size of the built-in
3741 bool data type to a size of one byte.
3743 2011-02-15 Pedro Alves <pedro@codesourcery.com>
3744 Jan Kratochvil <jan.kratochvil@redhat.com>
3746 * target.c (memory_xfer_live_readonly_partial): Document where to
3747 look for interface description.
3749 2011-02-15 Yao Qi <yao@codesourcery.com>
3752 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
3753 order to store PC value on stack instead of text section.
3755 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
3757 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
3758 the EFP register set size.
3759 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
3760 data from the VMX register.
3761 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
3762 and write data from/to the VMX register.
3764 2011-02-14 Michael Snyder <msnyder@vmware.com>
3766 * command.h (enum command_class): New class 'no_set_class', for
3767 "show" commands without a corresponding "set" command.
3768 * value.c (_initialize_values): Use 'no_set_class' for "show values".
3769 * copying.c (_initialize_copying): Ditto for "show copying" and
3771 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
3773 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
3774 which there is no corresponding "set" command (eg. "show copying").
3776 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3777 Jan Kratochvil <jan.kratochvil@redhat.com>
3779 * exec.c (section_table_available_memory): Change `len' parameter
3781 * exec.h (section_table_available_memory): Ditto.
3782 * value.h (read_value_memory): Rename the `offset' parameter to
3785 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3786 Jan Kratochvil <jan.kratochvil@redhat.com>
3788 * memrange.c (compare_mem_ranges): Mention sort order in
3790 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
3791 * tracepoint.c (traceframe_available_memory): Extend comment to
3792 mention what happens to RESULT when the target does not support
3795 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3796 Jan Kratochvil <jan.kratochvil@redhat.com>
3798 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
3801 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3803 * value.c (value_bits_valid, value_bits_synthetic_pointer):
3804 No longer handle NULL values.
3806 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3808 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
3809 * value.c: Include "exceptions.h".
3810 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
3812 * cp-abi.c: Include gdb_assert.h.
3813 (baseclass_offset): Add `embedded_offset' and `val' parameters.
3814 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
3816 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
3817 parameters. No longer returns -1 on error.
3818 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
3820 * cp-valprint.c: Include exceptions.h.
3821 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
3822 the baseclass_offset. Handle unavailable base classes. Use
3823 val_print_invalid_address.
3824 * p-valprint.c: Include exceptions.h.
3825 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
3826 when fetching the baseclass_offset. No longer expect
3827 baseclass_offset returning -1. Handle unavailable base classes.
3828 Use val_print_invalid_address.
3829 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
3830 `valaddr' parameter, and change its type to gdb_byte pointer. Add
3831 `embedded_offset' and `val' parameters. Adjust.
3832 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
3833 parameter, and change its type to gdb_byte pointer. Add
3834 `embedded_offset' and `val' parameters. Adjust. No longer expect
3835 baseclass_offset returning -1.
3836 (value_dynamic_cast): Use value_contents_for_printing rather than
3837 value_contents. Adjust.
3838 (search_struct_field): No longer expect baseclass_offset returning
3840 (search_struct_method): If reading memory from the target is
3841 necessary, wrap it in a new value to pass to baseclass_offset. No
3842 longer expect baseclass_offset returning -1.
3843 (find_method_list): No longer expect baseclass_offset returning
3844 -1. Use value_contents_for_printing rather than value_contents.
3845 * valprint.c (val_print_invalid_address): New function.
3846 * valprint.h (val_print_invalid_address): Declare.
3847 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
3848 and `val' parameters. No longer expect baseclass_offset returning
3850 * gnu-v2-abi.c: Include "exceptions.h".
3851 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
3852 parameters. Handle unavailable memory. Recurse through
3853 gnuv2_baseclass_offset directly, rather than through
3854 baseclass_offset. No longer returns -1 on not found, instead
3856 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
3857 `val' parameters. Adjust.
3859 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3861 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
3862 almost but not quite adjacent.
3864 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3866 * value.h (value_entirely_available): Declare.
3867 * value.c (value_entirely_available): New function.
3868 * c-valprint.c (c_value_print): Don't try fetching the pointer's
3869 real type if the pointer is unavailable.
3871 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3873 * valops.c (value_repeat): Use read_value_memory instead of
3876 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3878 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
3879 * value.c (value_contents_copy_raw, value_contents_copy): New
3881 (value_primitive_field): Use value_contents_copy_raw instead of
3883 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
3885 (value_array, value_slice): Ditto.
3886 * valarith.c (value_subscripted_rvalue): Use
3887 value_contents_copy_raw instead of memcpy.
3889 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3891 <unavailable> references.
3893 * valops.c (get_value_at): Use value_from_contents_and_address,
3894 avoiding read_memory.
3896 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3898 * c-valprint.c (c_val_print): Print a string with unavailable
3899 contents as an array.
3901 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3903 * value.h (unpack_bits_as_long): Delete declaration.
3904 (unpack_value_bits_as_long): Declare.
3905 (unpack_value_field_as_long): Declare.
3906 (value_field_bitfield): Declare.
3907 * value.c (unpack_bits_as_long): Rename to...
3908 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
3909 value parameters. Return the extracted result in a new output
3910 parameter. If the value contents are unavailable, return false,
3911 otherwise return true.
3912 (unpack_value_bits_as_long): New.
3913 (unpack_field_as_long): Rename to...
3914 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
3915 Add embedded_offset and value parameters. Return the extracted
3916 result in a new output parameter. If the value contents are
3917 unavailable, return false, otherwise return true.
3918 (unpack_value_field_as_long): New.
3919 (unpack_field_as_long_1): New.
3920 (unpack_field_as_long): Reimplement as wrapper around
3921 unpack_value_field_as_long_1.
3922 (value_field_bitfield): New function.
3923 * valops.c (value_fetch_lazy): When fetching a bitfield, use
3924 unpack_value_bits_as_long. Mark the value as unavailable, if it
3926 * jv-valprint.c (java_print_value_fields): Use
3927 value_field_bitfield.
3928 * p-valprint.c (pascal_object_print_value_fields): Use
3929 value_field_bitfield.
3930 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
3932 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3934 * value.c (get_internalvar_integer): Also return the int value of
3935 TYPE_CODE_INT INTERNALVAR_VALUE values.
3936 (set_internalvar): Don't special case TYPE_CODE_INT.
3938 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3940 * value.c (struct internalvar) <enum internalvar_kind>: Remove
3941 INTERNALVAR_POINTER.
3943 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
3944 (set_internalvar): Remove special TYPE_CODE_PTR handling.
3945 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
3947 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3949 * value.h (value_available_contents_eq): Declare.
3950 * value.c (find_first_range_overlap): New function.
3951 (value_available_contents_eq): New function.
3952 * valprint.c (val_print_array_elements): Use
3953 value_available_contents_eq.
3954 * ada-valprint.c (val_print_packed_array_elements): Use
3955 value_available_contents_eq.
3956 * jv-valprint.c (java_value_print): Use
3957 value_available_contents_eq.
3959 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3961 * target.c (target_read_live_memory): New function.
3962 (memory_xfer_live_readonly_partial): New.
3963 (memory_xfer_partial): If reading from a traceframe, fallback to
3964 reading unavailable read-only memory from read-only regions of
3966 * tracepoint.c (disconnect_tracing): Adjust.
3967 (set_current_traceframe): New, factored out from
3968 set_traceframe_number.
3969 (set_traceframe_number): Reimplement to only change the traceframe
3970 number on the GDB side.
3971 (do_restore_current_traceframe_cleanup): Adjust.
3972 (make_cleanup_restore_traceframe_number): New.
3973 (cur_traceframe_number): New global.
3974 (tfile_open): Set cur_traceframe_number to no traceframe.
3975 (set_tfile_traceframe): New function.
3976 (tfile_trace_find): If looking up a traceframe using any method
3977 other than by number, make sure the current tfile traceframe
3978 matches gdb's current traceframe. Update the current tfile
3979 traceframe if the lookup succeeded.
3980 (tfile_fetch_registers, tfile_xfer_partial)
3981 (tfile_get_trace_state_variable_value): Make sure the remote
3982 traceframe matches gdb's current traceframe.
3983 * remote.c (remote_traceframe_number): New global.
3984 (remote_open_1): Set it to -1.
3985 (set_remote_traceframe): New function.
3986 (remote_fetch_registers, remote_store_registers)
3987 (remote_xfer_memory, remote_xfer_partial)
3988 (remote_get_trace_state_variable_value): Make sure the remote
3989 traceframe matches gdb's current traceframe.
3990 (remote_trace_find): If looking up a traceframe using any method
3991 other than by number, make sure the current remote traceframe
3992 matches gdb's current traceframe. Update the current remote
3993 traceframe if the lookup succeeded.
3994 * infrun.c (fetch_inferior_event): Adjust.
3995 * tracepoint.h (set_current_traceframe): Declare.
3996 (get_traceframe_number, set_traceframe_number): Add describing
3999 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4001 Mark pieces of values as unavailable if the corresponding memory
4004 * valops.c: Include tracepoint.h.
4005 (value_fetch_lazy): Use read_value_memory.
4006 (read_value_memory): New.
4007 * value.h (read_value_memory): Declare.
4008 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
4009 * exec.c (section_table_available_memory): New function.
4010 * exec.h (section_table_available_memory): Declare.
4012 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4014 * Makefile.in (SFILES): Add memrange.c.
4015 (HFILES_NO_SRCDIR): Add memrange.h.
4016 (COMMON_OBS): Add memrange.o.
4017 * memrange.c: New file.
4018 * memrange.h: New file.
4019 * tracepoint.c: Include memrange.h.
4020 (struct mem_range): Delete.
4021 (mem_range_s): Delete.
4022 (traceframe_available_memory): New function.
4023 * tracepoint.h (traceframe_available_memory): Declare.
4025 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4027 * target.h (struct traceframe_info): Forward declare.
4028 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
4029 (struct target_ops) <to_traceframe_info>: New field.
4030 (target_traceframe_info): New.
4031 * target.c (update_current_target): Inherit and default
4033 * remote.c (PACKET_qXfer_traceframe_info): New.
4034 (remote_protocol_features): Register qXfer:traceframe-info:read.
4035 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
4036 (remote_traceframe_info): New.
4037 (init_remote_ops): Install it.
4038 (_initialize_remote): Install "set/show remote traceframe-info"
4040 * tracepoint.h (parse_traceframe_info): Declare.
4041 * tracepoint.c (struct mem_range): New.
4042 (mem_range_s): New typedef.
4043 (struct traceframe_info): New.
4044 (traceframe_info): New global.
4045 (free_traceframe_info): New function.
4046 (clear_traceframe_info): New function.
4047 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
4049 (build_traceframe_info): New function.
4050 (tfile_traceframe_info): New function.
4051 (init_tfile_ops): Install tfile_traceframe_info.
4052 (traceframe_info_start_memory, free_result): New functions.
4053 (memory_attributes, traceframe_info_elements): New globals.
4054 (parse_traceframe_info, get_traceframe_info): New functions.
4055 * features/traceframe-info.dtd: New file.
4056 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
4058 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4060 Base support for <unavailable> value contents.
4062 * value.h (value_bytes_available): Declare.
4063 (mark_value_bytes_unavailable): Declare.
4064 * value.c (struct range): New struct.
4065 (range_s): New typedef.
4066 (ranges_overlap): New function.
4067 (range_lessthan): New function.
4068 (ranges_contain_p): New function.
4069 (struct value) <unavailable>: New field.
4070 (value_bytes_available): New function.
4071 (mark_value_bytes_unavailable): New function.
4072 (require_not_optimized_out): Constify parameter.
4073 (require_available): New function.
4074 (value_contents_all, value_contents): Require all bytes be
4076 (value_free): Free `unavailable'.
4077 (value_copy): Copy `unavailable'.
4078 * valprint.h (val_print_unavailable): Declare.
4079 * valprint.c (valprint_check_validity): Rename `offset' parameter
4080 to `embedded_offset'. If printing a scalar, check whether the
4081 value chunk is available.
4082 (val_print_unavailable): New.
4083 (val_print_scalar_formatted): Check whether the value is
4085 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
4086 pretty-printing unavailable values.
4088 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4090 Fix const/volatile qualifiers of C++ types, PR c++/12328.
4091 * c-typeprint.c (c_type_print_args): Update the function comment. New
4092 variable param_type, initialize it. Remove const/volatile qualifiers
4093 for language_cplus and !show_artificial. Use param_type.
4095 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4097 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
4098 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
4099 * symtab.h (struct symtab) <next>: Comment extension.
4101 2011-02-12 Yao Qi <yao@codesourcery.com>
4103 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
4105 2011-02-11 Yao Qi <yao@codesourcery.com>
4107 * common/Makefile.in: Add copyright header.
4109 2011-02-11 Pedro Alves <pedro@codesourcery.com>
4111 * infrun.c (proceed): Move switching out and in of tfind mode from
4113 (fetch_inferior_event): ... to here.
4115 2011-02-11 Yao Qi <yao@codesourcery.com>
4117 * Makefile.in: Remove signals.o from COMMON_OBS. Link
4119 * configure.ac: Add common to sub dir.
4120 * configure: Regenerate.
4122 2011-02-11 Yao Qi <yao@codesourcery.com>
4126 * common/Makefile.in: New.
4127 * common/configure.ac: New.
4128 * common/aclocal.m4: New.
4129 * common/configure: Generate.
4131 2011-02-10 Pedro Alves <pedro@codesourcery.com>
4133 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
4134 side of the parenthesis.
4137 2010-07-13 Jakub Jelinek <jakub@redhat.com>
4138 * vec.h (VEC_block_remove): Fix comment.
4140 2011-02-08 Michael Snyder <msnyder@vmware.com>
4142 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
4144 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4146 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
4147 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
4150 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4153 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
4155 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
4156 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
4158 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4160 * dwarf2read.c (read_subroutine_type): Set special calling
4161 convention flag for functions compiled by IBM XL C for OpenCL.
4162 * ppc-sysv-tdep.c: Include "dwarf2.h"
4163 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
4165 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
4166 IBM OpenCL vector types calling convention.
4167 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
4168 (ppc_sysv_abi_broken_return_value): Likewise.
4169 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
4170 types calling convention.
4171 (ppc64_sysv_abi_return_value): Likewise.
4172 * spu-tdep.c: Include "dwarf2.h"
4173 (spu_return_value): Implement IBM OpenCL vector types calling
4176 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4178 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
4179 correct ABI for AltiVec vector arguments.
4181 2011-02-07 Pedro Alves <pedro@codesourcery.com>
4183 * valprint.c (val_print): Extend comment.
4184 * ada-valprint.c (ada_valprint): Rewrite comment deferring
4185 interface explanation to val_print.
4186 (ada_val_print_array): Adjust comment to current interface.
4187 (print_field_values): Adjust comment to current interface.
4188 * c-valprint.c (c_val_print): Rewrite comment deferring interface
4189 explanation to val_print.
4190 * f-valprint.c (f_val_print): Ditto.
4191 * jv-valprint.c (java_val_print): Ditto.
4192 * m2-valprint.c (m2_val_print): Ditto.
4193 * p-valprint.c (pascal_val_print): Ditto.
4195 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
4197 * breakpoint.c (parse_breakpoint_sals): Fix description.
4199 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
4200 Oguz Kayral <oguzkayral@gmail.com>
4202 * python/py-inferior.c (python_on_normal_stop): New function.
4203 (python_on_resume): New function.
4204 (python_inferior_exit): New function.
4205 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
4206 inferior_exit observers.
4207 * python/py-evtregistry.c: New file.
4208 * python/py-threadevent.c : New file.
4209 * python/py-event.c: New file.
4210 * python/py-evts.c: New file.
4211 * python/py-continueevent.c: New file.
4212 * python/py-bpevent.c: New file.
4213 * python/py-signalevent.c: New file.
4214 * python/py-exetiedevent.c: New file.
4215 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
4216 Move struct breakpoint_object from here...
4217 * python/python-internal.h: ... to here.
4218 * python/py-event.h: New file.
4219 * python/py-events.h: New file.
4220 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
4221 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
4222 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
4223 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
4224 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
4225 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
4226 Add build rules for all the above.
4228 2011-02-04 Tom Tromey <tromey@redhat.com>
4230 * dwarf2read.c (dwarf2_section_empty_p): New function.
4231 (dwarf2_read_section): Use dwarf2_section_empty_p.
4232 (dwarf2_section_size): New function.
4233 (dwarf2_get_section_info): Unconditionally read section.
4234 (dwarf2_read_index): Use dwarf2_section_empty_p.
4235 (partial_read_comp_unit_head): Use dwarf2_section_size.
4236 (dwarf2_symbol_mark_computed): Likewise.
4238 2011-02-04 David Daney <ddaney@caviumnetworks.com>
4240 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
4242 2011-02-04 David Daney <ddaney@caviumnetworks.com>
4244 * mips-linux-tdep.c: Include xml-syscall.h.
4245 (mips_linux_get_syscall_number): New function.
4246 (mips_linux_init_abi): Add calls to
4247 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
4248 * data-directory/Makefile.in (SYSCALLS_FILES): Add
4249 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
4250 * syscalls/mips-n32-linux.xml: New file.
4251 * syscalls/mips-n64-linux.xml: New file.
4252 * syscalls/mips-o32-linux.xml: New file.
4254 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4256 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
4257 Complain about inverted range entries.
4258 (dwarf2_record_block_ranges): Likewise.
4260 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4263 * breakpoint.c (update_watchpoint): Fix name of the
4264 update_global_location_list function.
4265 (print_one_breakpoint): Fix typo.
4266 (_initialize_breakpoint): Remove extra space in hbreak help
4268 * breakpoint.h (struct bp_location) <length>: Fix field
4271 2011-02-04 Pedro Alves <pedro@codesourcery.com>
4273 * regcache.c (registers_changed_ptid): Don't explictly always
4274 clear `current_regcache'. Only clear current_thread_ptid and
4275 current_thread_arch when PTID matches. Only reinit the frame
4276 cache if PTID matches the current inferior_ptid. Move alloca(0)
4278 (registers_changed): ... here.
4280 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
4282 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
4283 starts with __stack_chk_guard as stack guard symbol.
4285 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
4287 * disasm.c (compare_lines): Handle the end of sequence markers
4288 within the line table to better support disassembling over
4289 compilation unit boundaries.
4291 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4293 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
4294 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
4295 implementation even if no symbols are available.
4296 (thumb_analyze_prologue): Update call to skip_prologue_function.
4297 (arm_analyze_prologue): Likewise.
4299 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4301 * arm-tdep.c: Include "observer.h".
4302 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
4303 (arm_exidx_data_key): New static variable.
4304 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
4305 (struct arm_exidx_data): Likewise.
4306 (arm_exidx_data_free): New function.
4307 (arm_compare_exidx_entries): Likewise.
4308 (arm_obj_section_from_vma): Likewise.
4309 (arm_exidx_new_objfile): Likewise.
4310 (arm_find_exidx_entry): Likewise.
4311 (arm_exidx_fill_cache): Likewise.
4312 (arm_exidx_unwind_sniffer): Likewise.
4313 (arm_exidx_unwind): New global variable.
4314 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
4315 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
4316 observer. Register arm_exidx_data_key as objfile data.
4318 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4320 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
4321 due to accessing uninitialized variable. Fix indentation.
4323 2011-02-02 Pedro Alves <pedro@codesourcery.com>
4325 * c-valprint.c (c_value_print): When doing virtual base pointer
4326 adjustment, create a new value with adjusted contents rather than
4327 changing the contents of the value being printed (and getting it
4330 2011-02-02 Pedro Alves <pedro@codesourcery.com>
4332 * xml-support.c (xml_find_attribute): New.
4333 (xinclude_start_include): Use it.
4334 * xml-support.h (xml_find_attribute): Declare.
4335 * memory-map.c (memory_map_start_memory)
4336 (memory_map_start_property): Use xml_find_attribute.
4337 * osdata.c (osdata_start_osdata, osdata_start_column): Use
4339 * remote.c (start_thread): Use xml_find_attribute.
4340 * solib-target.c (library_list_start_segment)
4341 (library_list_start_section, library_list_start_library)
4342 (library_list_start_list): Use xml_find_attribute.
4343 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
4344 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
4345 (tdesc_start_field): Use xml_find_attribute.
4347 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
4349 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
4350 (BUILD_OCL_VTYPES): Update.
4352 2011-02-02 Joel Brobecker <brobecker@adacore.com>
4354 * configure.ac: Work around non-GNU sed limitation when computing
4355 python version number.
4356 * configure: Regenerate.
4358 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4360 Fix debug printing of TYPE_INSTANCE.
4361 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
4362 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
4364 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4366 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
4367 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
4368 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
4369 * ada-operator.inc: Rename the file to ...
4370 * ada-operator.def: ... here, wrap all the entries by macro OP.
4371 * expprint.c (op_name_standard): Remove all the entries. Include
4372 "std-operator.def" instead.
4373 * expression.h (enum exp_opcode): Include "std-operator.def" and
4374 "ada-operator.def". Move all the entries ...
4375 * std-operator.def: ... here, wrap all the entries by macro OP.
4377 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
4379 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
4380 * breakpoint.c (remove_jit_event_breakpoints): New function.
4381 * jit.c (jit_descriptor_addr): Delete.
4382 (registering_code): Delete.
4383 (clear_int): Delete.
4384 (jit_inferior_data): New variable.
4385 (struct jit_inferior_data): New type.
4386 (get_jit_inferior_data): New function.
4387 (jit_inferior_data_cleanup): New function.
4388 (jit_read_descriptor): Adjust.
4389 (jit_register_code): Adjust.
4390 (jit_breakpoint_re_set_internal): New function; move code here ...
4391 (jit_inferior_init): ... from here.
4392 (jit_breakpoint_re_set): Adjust.
4393 (jit_reset_inferior_data_and_breakpoints): New function.
4394 (jit_inferior_created_observer): Adjust.
4395 (jit_inferior_exit_hook): Adjust.
4396 (jit_executable_changed_observer): New function.
4397 (jit_event_handler): Adjust.
4398 (_initialize_jit): Adjust.
4400 2011-01-31 Michael Snyder <msnyder@vmware.com>
4402 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
4405 2011-01-31 Tom Tromey <tromey@redhat.com>
4408 * python/python.c (execute_gdb_command): Call
4409 prevent_dont_repeat.
4410 * top.c (suppress_dont_repeat): New global.
4411 (dont_repeat): Use it.
4412 (prevent_dont_repeat): New function.
4413 * command.h (prevent_dont_repeat): Declare.
4415 2011-01-31 Tom Tromey <tromey@redhat.com>
4417 * infcmd.c (finish_backward): Use breakpoint_set_silent.
4418 * python/py-breakpoint.c (bppy_set_silent): Use
4419 breakpoint_set_silent.
4420 (bppy_set_thread): Use breakpoint_set_thread.
4421 (bppy_set_task): Use breakpoint_set_task.
4422 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
4423 (breakpoint_set_task): Declare.
4424 (make_breakpoint_silent): Remove.
4425 * breakpoint.c (breakpoint_set_silent): New function.
4426 (breakpoint_set_thread): Likewise.
4427 (breakpoint_set_task): Likewise.
4428 (make_breakpoint_silent): Remove.
4430 2011-01-31 Tom Tromey <tromey@redhat.com>
4432 * breakpoint.h (user_breakpoint_p): Declare.
4433 * breakpoint.c (user_breakpoint_p): New function.
4434 (breakpoint_1): Use it.
4435 (save_breakpoints): Likewise.
4437 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4439 * configure.ac: Add handling of Python distribution on Windows.
4440 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
4441 sysconfig variables are not defined, then do not use them.
4442 On Windows, if LIBPL is not defined, then use prefix + '/libs'
4443 instead. On Windows, return all paths using forward-slashes
4444 rather than backslashes.
4446 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4448 * configure.ac: Remove fallback behavior for building
4449 against Python. Remove tweaking of Python include path.
4450 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
4451 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
4452 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
4453 Always restore CPPFLAGS and LIBS after linking test.
4454 * configure: Regenerated.
4455 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
4456 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
4457 * python/python-internal.h: Adjust includes of Python .h files.
4459 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4461 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
4464 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4466 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
4469 2011-01-31 Yao Qi <yao@codesourcery.com>
4471 * arm-linux-nat.c: Update calls to regcache_register_status
4472 instead of regcache_valid_p.
4473 * aix-thread.c: Likewise.
4474 * i386gnu-nat.c: Likewise.
4476 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4479 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
4480 touching TYPE_FIELD_ARTIFICIAL.
4482 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
4484 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
4487 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4489 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
4490 selected, don't try iterating over the traceframe's blocks.
4491 (tfile_has_stack): If there's no traceframe selected, then there's
4493 (tfile_has_registers): If there's no traceframe selected, then
4494 there's no registers.
4496 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4498 * target.c (memory_xfer_partial): No need to restore shadows if we
4499 haven't read anything.
4501 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4503 * mips-tdep.c (mips_print_register): Use get_frame_register_value
4504 and val_print_scalar_formatted.
4506 2011-01-27 Pedro Alves <pedro@codesourcery.com>
4508 * tracepoint.c (tfile_read): New.
4509 (tfile_open): Use it.
4510 (tfile_get_traceframe_address): Use it.
4511 (tfile_trace_find): Use it.
4512 (walk_blocks_callback_func): New typedef.
4513 (match_blocktype): New function.
4514 (traceframe_walk_blocks): New function.
4515 (traceframe_find_block_type): New function.
4516 (tfile_fetch_registers, tfile_xfer_partial)
4517 (tfile_get_trace_state_variable_value): Use
4518 traceframe_find_block_type and tfile_read.
4520 2011-01-26 Kevin Buettner <kevinb@redhat.com>
4522 * remote-mips.c: Add internationalization mark ups. Remove
4523 trailing \n from already marked up strings.
4525 2011-01-26 Tom Tromey <tromey@redhat.com>
4527 * python/py-prettyprint.c (print_string_repr): Clear
4528 'addressprint' option when calling val_print_string.
4529 (print_children): Handle Val_pretty_default. Clear 'addressprint'
4530 option when calling val_print_string.
4532 2011-01-26 Tom Tromey <tromey@redhat.com>
4534 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
4536 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
4538 (gdb_py_longest, gdb_py_ulongest): New typedefs.
4539 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
4540 (gdb_py_long_as_ulongest): New defines.
4541 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
4542 (gdb_py_int_as_long): Declare.
4543 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
4544 GDB_PY_LL_ARG, gdb_py_object_from_longest.
4545 (valpy_long): Add comment.
4546 * python/py-utils.c (get_addr_from_python): Use
4547 gdb_py_long_as_ulongest. Handle overflow properly.
4548 (gdb_py_object_from_longest): New function.
4549 (gdb_py_object_from_ulongest): Likewise.
4550 (gdb_py_int_as_long): Likewise.
4551 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
4552 * python/py-symtab.c (salpy_get_pc): Use
4553 gdb_py_long_from_ulongest.
4554 (salpy_get_line): Use PyInt_FromLong.
4555 * python/py-param.c (set_parameter_value): Use
4557 * python/py-lazy-string.c (stpy_get_address): Use
4558 gdb_py_long_from_ulongest.
4559 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
4560 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
4561 * python/py-breakpoint.c (bppy_set_thread): Use
4563 (bppy_set_task): Likewise.
4564 (bppy_set_ignore_count): Likewise.
4565 (bppy_set_hit_count): Likewise.
4566 * python/py-block.c (blpy_get_start): Use
4567 gdb_py_object_from_ulongest.
4568 (blpy_get_end): Likewise.
4569 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
4571 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
4574 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
4575 * gdb/solib.c (solib_read_symbols): Check for addr_low in
4576 equality test for objfile, initialize addr_low if needed.
4578 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4580 * tui/tui-regs.c (tui_register_format): Remove dead code.
4582 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4584 * printcmd.c (print_formatted): Use val_print_scalar_formatted
4585 instead of print_scalar_formatted.
4586 (print_scalar_formatted): Don't handle 's' format strings here,
4587 and add an assertion that we never see such format here.
4588 * valprint.h (val_print_scalar_formatted): Declare.
4589 * valprint.c (val_print_scalar_formatted): New.
4590 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
4591 instead of print_scalar_formatted.
4592 * jv-valprint.c (java_val_print): Ditto.
4593 * p-valprint.c (pascal_val_print): Ditto.
4594 * ada-valprint.c (ada_val_print_1): Ditto.
4595 * f-valprint.c (f_val_print): Ditto.
4596 * infcmd.c (registers_info): Ditto.
4597 * m2-valprint.c (m2_val_print): Ditto.
4599 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4601 * m2-valprint.c (print_unbounded_array): Pass
4602 value_contents_for_printing rather than value_contents, to
4603 m2_print_array_contents. Also pass in the value.
4605 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4607 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
4608 (save_gdb_index_command): Switch to .gdb_index version 4.
4610 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4612 * mi/mi-main.c (get_register): Use get_frame_register_value rather
4613 than frame_register, and always pass a valid value to val_print.
4615 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4617 Centralize printing "<optimized out>".
4619 * valprint.h (val_print_optimized_out): Declare.
4620 * cp-valprint.c (cp_print_value_fields): Use
4621 val_print_optimized_out.
4622 * jv-valprint.c (java_print_value_fields): Ditto.
4623 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4624 * printcmd.c (print_formatted): Ditto.
4625 * valprint.c (valprint_check_validity): Ditto.
4626 (value_check_printable): Ditto.
4627 (val_print_optimized_out): New.
4629 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4631 * infcmd.c (default_print_registers_info): Allocate values so to
4632 never pass a NULL value to val_print.
4634 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4636 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
4637 boolean. Make sure to always pass a value that matches the
4638 contents buffer to callees. Preserve `address' for following
4640 * value.c (value_contents_for_printing_const): New.
4641 (value_address): Constify value argument.
4642 * value.h (value_contents_for_printing_const): Declare.
4643 (value_address): Constify value argument.
4645 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4647 * regcache.c (struct regcache_descr): Rename
4648 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
4649 and sizeof_cooked_register_valid_p to
4650 sizeof_cooked_register_status.
4651 (init_regcache_descr): Adjust.
4652 (struct regcache): Rename register_valid_p field to
4654 (regcache_xmalloc_1, regcache_xfree, regcache_save)
4655 (do_cooked_read): Adjust.
4656 (regcache_valid_p): Rename to ...
4657 (regcache_register_status): ... this. Adjust.
4658 (regcache_invalidate): Adjust.
4659 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
4661 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
4662 as unavailable, not valid.
4663 (regcache_dump): Adjust.
4664 * regcache.h (enum register_status): New.
4665 (regcache_register_status): Declare.
4666 (regcache_invalidate): Delete declaration.
4667 * corelow.c (get_core_registers): Adjust.
4668 * tracepoint.c (tfile_fetch_registers): Adjust.
4669 * trad-frame.c (REG_VALUE): Rename to ...
4670 (TF_REG_VALUE): ... this.
4671 (REG_UNKNOWN): Rename to ...
4672 (TF_REG_UNKNOWN): ... this.
4673 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
4674 * mi/mi-main.c (register_changed_p): Adjust.
4676 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4678 * regcache.c (struct regcache_descr): Remove outdated comment.
4679 (init_regcache_descr): Remove sizeof_raw_register_valid_p
4681 (regcache_xmalloc): Rename to ...
4682 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
4683 Allocate the regcache type accordingly.
4684 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
4685 (regcache_xfree): Asser the source is also readonly. Copy sizeof
4686 cooked registers, not raw.
4687 (regcache_dup_no_passthrough): Delete.
4688 (get_thread_arch_regcache): Use regcache_xmalloc_1.
4689 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
4690 mention obsolete write_register_bytes.
4691 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
4693 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4695 Stop remote_read_bytes from handling partial reads itself.
4697 * remote-fileio.c: Include target.h.
4698 (remote_fileio_write_bytes): Delete.
4699 (remote_fileio_func_open, remote_fileio_func_write)
4700 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
4702 (remote_fileio_func_stat): Use target_read_memory and
4703 target_write_memory.
4704 (remote_fileio_func_gettimeofday): Use target_write_memory.
4705 (remote_fileio_func_system): Use target_read_memory.
4706 * remote.c (remote_write_bytes): Make it static.
4707 (remote_read_bytes): Don't handle partial reads here.
4708 * remote.h (remote_read_bytes): Delete declaration.
4710 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4712 Simplify XML parsing a bit.
4714 * xml-support.h (gdb_xml_parse_quick): Declare.
4715 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
4716 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
4718 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
4719 gdb_xml_create_parser_and_cleanup_1.
4720 (gdb_xml_parse_quick): New.
4721 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
4722 * osdata.c (osdata_parse): Ditto.
4723 * remote.c (remote_threads_info): Ditto.
4724 * solib-target.c (solib_target_parse_libraries): Ditto.
4725 * xml-syscall.c (syscall_parse_xml): Ditto.
4726 * xml-tdesc.c (tdesc_parse_xml): Ditto.
4728 2011-01-24 Kevin Buettner <kevinb@redhat.com>
4730 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
4731 with remote-mips.o added to gdb_target_obs.
4732 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
4734 2011-01-24 Pedro Alves <pedro@codesourcery.com>
4736 * ada-valprint.c (val_print_packed_array_elements): Pass the
4737 correct struct value to val_print.
4738 (ada_val_print_1): Ditto.
4740 2011-01-24 Pedro Alves <pedro@codesourcery.com>
4742 Don't lose embedded_offset in printing routines throughout.
4744 * valprint.h (val_print_array_elements): Change prototype.
4745 * valprint.c (val_print_array_elements): Add `embedded_offset'
4746 parameter, and adjust to pass it down to val_print, while passing
4747 `valaddr' or `address' unmodified. Take embedded_offset into
4748 account when checking repetitions.
4749 * c-valprint.c (c_val_print): Pass embedded_offset to
4750 val_print_array_elements instead of adjusting `valaddr' and
4752 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
4753 embedded_offset to val_print_array_elements instead of adjusting
4755 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
4756 * p-valprint.c (pascal_val_print): Pass embedded_offset to
4757 val_print_array_elements and pascal_object_print_value_fields
4758 instead of adjusting `valaddr'.
4759 (pascal_object_print_value_fields): Add `offset' parameter, and
4761 (pascal_object_print_value): Add `offset' parameter, and adjust to
4763 (pascal_object_print_static_field): Use
4764 value_contents_for_printing/value_embedded_offset, rather than
4766 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
4767 parameter, and adjust to use it. Use
4768 value_contents_for_printing/value_embedded_offset, rather than
4770 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
4771 (ada_val_print_array): Add `offset' parameter, and adjust to use
4773 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
4774 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
4775 Instead work with offsets. Use
4776 value_contents_for_printing/value_embedded_offset, rather than
4777 value_contents. Change `defer_val_int' local type to CORE_ADDR,
4778 and use value_from_pointer to extract a target pointer, rather
4779 than value_from_longest.
4780 (print_variant_part): Add `offset' parameter. Replace
4781 `outer_valaddr' parameter by a new `outer_offset' parameter.
4782 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4783 (ada_value_print): Use
4784 value_contents_for_printing/value_embedded_offset, rather than
4786 (print_record): Add `offset' parameter, and adjust to pass it
4788 (print_field_values): Add `offset' parameter. Replace
4789 `outer_valaddr' parameter by a new `outer_offset' parameter.
4790 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4791 Use value_contents_for_printing/value_embedded_offset, rather than
4793 * d-valprint.c (dynamic_array_type): Use
4794 value_contents_for_printing/value_embedded_offset, rather than
4796 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
4797 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4798 (java_print_value_fields): Take `offset' into account. Don't
4799 re-adjust `valaddr'. Instead pass down adjusted offsets.
4800 (java_val_print): Take `embedded_offset' into account. Pass it to
4801 java_print_value_fields.
4802 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
4803 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
4804 down adjusted offsets.
4805 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
4806 (f_val_print): Take `embedded_offset' into account.
4808 2011-01-21 Joel Brobecker <brobecker@adacore.com>
4810 * inflow.c: Include "gdbcmd.h".
4811 (interactive_mode): New static global, moved here from top.c.
4812 (show_interactive_mode): New function, moved here from top.c.
4813 use gdb_has_a_terminal instead of input_from_terminal_p to
4814 determine the current mode.
4815 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
4817 (_initialize_inflow): Add the "set/show interactive-mode"
4818 commands. Moved here from top.c, after having adjusted slightly
4820 * top.c (interactive_mode, show_interactive_mode): Delete, moved
4822 (input_from_terminal_p): Remove handling of "interactive-mode"
4823 setting, moved to infow.c.
4824 (init_main): Remove creation of the "set/show interactive-mode"
4825 commands, moved to inflow.c.
4827 2011-01-19 Joel Brobecker <brobecker@adacore.com>
4829 * NEWS: Add entry for native ia64-hpux support.
4831 2011-01-19 Tom Tromey <tromey@redhat.com>
4834 * thread.c (free_thread): Free 'name'.
4835 (print_thread_info): Emit thread name. Change CLI output.
4836 (thread_name_command): New function.
4837 (do_captured_thread_select): Emit newline.
4838 (_initialize_thread): Register 'thread name' command.
4839 * target.h (struct target_ops) <to_thread_name>: New field.
4840 (target_thread_name): New macro.
4841 * target.c (update_current_target): Handle to_thread_name.
4842 * python/py-infthread.c (thpy_get_name): New function.
4843 (thpy_set_name): Likewise.
4844 (thread_object_getset): Add "name".
4845 * linux-nat.c (linux_nat_thread_name): New function.
4846 (linux_nat_add_target): Set to_thread_name.
4847 * gdbthread.h (struct thread_info) <name>: New field.
4849 2011-01-18 Joel Brobecker <brobecker@adacore.com>
4851 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
4852 (ada_val_print_1): Likewise.
4854 2011-01-18 Joel Brobecker <brobecker@adacore.com>
4856 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
4857 upper limit address is not greater than the function end address
4858 when the upper limit could not be computed using the debugging
4861 2011-01-17 Tom Tromey <tromey@redhat.com>
4863 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
4865 * utils.c: Include gdb_regex.h.
4866 (do_regfree_cleanup): New function.
4867 (make_regfree_cleanup): Likewise.
4868 (get_regcomp_error): Likewise.
4869 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
4871 2011-01-17 Tom Tromey <tromey@redhat.com>
4873 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
4876 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
4878 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
4879 for internal variables.
4880 (last_was_structop): New static variable.
4881 (COMPLETE): New token.
4882 (field_exp): New rule to group all '.' suffix handling.
4883 Add mark_struct_expression calls when approriate to be able
4884 to correctly find fields for completion.
4885 (yylex): Adapt to handle field completion and set INTVAR when
4888 2011-01-14 Yao Qi <yao@codesourcery.com>
4890 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
4891 save_reggroup, restore_reggroup and all_reggroup.
4893 2011-01-14 Joel Brobecker <brobecker@adacore.com>
4895 * ada-valprint. (ada_printchar): Use the correct type length
4896 in call to ada_emit_char.
4897 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
4899 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
4901 * solib-som.h (hpux_major_release): Declare variable here.
4902 * solib-som.c: Remove <sys/utsname.h> header.
4903 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
4904 (hpux_major_release): Make global, change default value to
4905 DEFAULT_HPUX_MAJOR_RELEASE.
4906 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
4907 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
4908 Add "solib-som.h" header.
4909 (set_hpux_major_release): New function.
4910 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
4912 2011-01-14 Mike Frysinger <vapier@gentoo.org>
4914 * configure.tgt (*-*-uclinux*): Match more Linux os targets
4916 2011-01-14 Joel Brobecker <brobecker@adacore.com>
4918 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
4919 new-line at end of warning message.
4920 (ia64_hpux_store_register): Remove trailing new-line at end of
4922 * ia64-hpux-tdep.c: Rephrase comment.
4923 * solib-ia64-hpux.c (struct dld_info): Change type of field
4924 dld_flags from "long long" to ULONGEST.
4926 2011-01-14 Pedro Alves <pedro@codesourcery.com>
4928 * target.h (deprecated_child_ops): Delete declaration.
4929 * target.c (deprecated_child_ops): Delete definition.
4931 2011-01-14 Pedro Alves <pedro@codesourcery.com>
4933 * Makefile.in (hpux-thread.o): Delete rule.
4934 * configure.ac: Don't check for HPUX DCE threads support.
4935 * configure, config.in: Regenerate.
4936 * hppa-hpux-nat.c (child_suppress_run): Delete.
4937 (hppa_hpux_child_can_run): Delete.
4938 (_initialize_hppa_hpux_nat): Don't override to_can_run.
4939 * hpux-thread.c: Delete.
4941 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4943 * hpux-thread.c (hpux_pid_to_str): Delete.
4945 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4947 * ada-valprint.c (ada_emit_char): Remove strange code.
4948 Check that c is <= UCHAR_MAX before passing it to isascii.
4949 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
4951 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4953 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
4954 to the case where instream is stdin.
4956 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4958 * ia64-tdep.h (struct regcache): Forward declare.
4959 (struct ia64_infcall_ops): New struct type.
4960 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
4962 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
4963 Renames ia64_find_global_pointer.
4964 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
4965 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
4966 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
4968 (ia64_infcall_ops): New static global constant.
4969 (ia64_gdbarch_init): Set tdep->infcall_ops.
4970 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
4971 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
4972 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
4973 (ia64_hpux_dummy_code): New static global constant.
4974 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
4975 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
4976 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
4978 (ia64_hpux_infcall_ops): New static global constant.
4979 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
4980 for inferior function calls to work properly on ia64-hpux.
4982 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4984 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
4985 * ia64-tdep.h (struct frame_info): forward declaration.
4986 (struct gdbarch_tdep): Add field size_of_register_frame.
4987 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
4988 to determine the size of the register frame.
4989 (ia64_size_of_register_frame): New function.
4990 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
4991 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
4992 (IA64_HPUX_UREG_REASON): New macro.
4993 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
4995 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
4996 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
4997 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
5000 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5002 Add support for ia64-hpux.
5003 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
5004 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
5006 * configure.host: Add handling for ia64-hpux hosts. Add associated
5008 * configure.tgt: Add handling for ia64-hpux targets.
5009 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
5010 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
5011 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
5013 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5015 [ttrace] Compute thread list immediately after attach.
5016 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
5018 (inf_ttrace_attach): Use it.
5020 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5022 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
5023 if we could not determine the frame's function address. Instead,
5024 use the frame's PC, and then continue.
5026 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5028 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
5029 not already defined.
5031 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5033 * ia64-tdep.c (ia64_struct_type_p): New function.
5034 (ia64_extract_return_value): Handle integral values that are
5035 less than 8 bytes long.
5036 (ia64_push_dummy_call): Likewise.
5038 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5040 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
5041 floatformat_ia64_ext.
5042 (floatformat_ia64_ext_big): New static const.
5043 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
5045 2011-01-12 Tom Tromey <tromey@redhat.com>
5047 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
5049 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
5050 (mi_cmd_thread_list_ids): Likewise.
5051 (mi_cmd_data_list_changed_registers): Likewise.
5052 (mi_cmd_data_list_register_values): Likewise.
5053 (mi_cmd_data_write_register_values): Likewise.
5054 (mi_cmd_data_evaluate_expression): Likewise.
5055 (mi_cmd_data_read_memory): Likewise.
5056 (mi_cmd_data_read_memory_bytes): Likewise.
5057 (mi_cmd_data_write_memory): Likewise.
5058 (mi_cmd_enable_timings): Likewise.
5059 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
5060 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
5061 (mi_cmd_var_delete): Likewise.
5062 (mi_cmd_var_set_format): Likewise.
5063 (mi_cmd_var_show_format): Likewise.
5064 (mi_cmd_var_info_num_children): Likewise.
5065 (mi_cmd_var_list_children): Likewise.
5066 (mi_cmd_var_info_type): Likewise.
5067 (mi_cmd_var_info_expression): Likewise.
5068 (mi_cmd_var_show_attributes): Likewise.
5069 (mi_cmd_var_assign): Likewise.
5070 (mi_cmd_var_update): Likewise.
5071 (mi_cmd_enable_pretty_printing): Likewise.
5072 (mi_cmd_var_set_update_range): Likewise.
5073 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
5075 (mi_cmd_target_file_put): Likewise.
5076 (mi_cmd_target_file_delete): Likewise.
5077 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
5079 (mi_cmd_stack_info_depth): Likewise.
5080 (mi_cmd_stack_list_locals): Likewise.
5081 (mi_cmd_stack_list_args): Likewise.
5082 (mi_cmd_stack_select_frame): Likewise.
5083 (mi_cmd_stack_select_frame): Likewise.
5084 (mi_cmd_stack_info_frame): Likewise.
5085 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
5087 (mi_cmd_file_list_exec_source_files): Likewise.
5088 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
5089 (mi_cmd_env_cd): Likewise.
5090 (mi_cmd_env_path): Likewise.
5091 (mi_cmd_env_dir): Likewise.
5092 (mi_cmd_inferior_tty_show): Likewise.
5093 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
5094 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
5095 (mi_cmd_break_watch): Likewise.
5097 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
5099 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
5100 (ppc_linux_insert_hw_breakpoint): Likewise.
5101 (ppc_linux_remove_hw_breakpoint): Likewise.
5102 (ppc_linux_insert_watchpoint): Likewise.
5104 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
5105 Jan Kratochvil <jan.kratochvil@redhat.com>
5107 PR fortran/11104 and DWARF unbound arrays detection.
5108 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
5109 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
5110 unspecified upper bound.
5111 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
5112 variables array_size_array, tmp_type and offset_item. New variable
5113 array. Remove call to f77_get_upperbound. New variables array_type
5114 and index. Call value_subscripted_rvalue for each dimenasion. Remove
5115 the final call to deprecated_set_value_type.
5117 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5119 Make value allocations more lazy.
5120 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
5121 instead of allocate_value and set_value_lazy when possible.
5122 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
5123 instead of allocate_value and set_value_lazy.
5124 * findvar.c (value_of_register_lazy): Likewise.
5125 (read_var_value): Remove V preallocation, call just check_typedef in
5126 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
5127 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
5128 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
5129 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
5130 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
5131 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
5132 the end, remove set_value_lazy there.
5133 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
5134 instead of allocate_value and set_value_lazy when possible.
5135 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
5136 * value.c (allocate_computed_value): Use allocate_value_lazy instead
5137 of allocate_value and set_value_lazy.
5138 (value_from_contents_and_address): Use allocate_value_lazy instead of
5139 allocate_value and set_value_lazy when possible.
5141 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
5143 * disasm.c (dump_insns): Support dumping opcodes for MI.
5144 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
5145 dumping of instruction opcodes.
5147 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
5149 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
5152 2011-01-11 Tom Tromey <tromey@redhat.com>
5154 * thread.c (do_captured_thread_select): Emit newline before
5157 2011-01-11 Michael Snyder <msnyder@vmware.com>
5159 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
5160 * score-tdep.c: Ditto.
5161 * score-tdep.h: Ditto.
5162 * ser-base.c: Ditto.
5163 * ser-go32.c: Ditto.
5166 * ser-mingw.c: Ditto.
5167 * ser-pipe.c: Ditto.
5169 * ser-unix.c: Ditto.
5170 * sh64-tdep.c: Ditto.
5171 * shnbsd-nat.c: Ditto.
5175 * solib-darwin.c: Ditto.
5176 * solib-frv.c: Ditto.
5178 * solib-irix.c: Ditto.
5179 * solib-osf.c: Ditto.
5180 * solib-pa64.c: Ditto.
5181 * solib-som.c: Ditto.
5182 * solib-spu.c: Ditto.
5183 * solib-sunos.c: Ditto.
5184 * solib-svr4.c: Ditto.
5186 * sol-thread.c: Ditto.
5190 * sparc64-linux-tdep.c: Ditto.
5191 * sparc64-tdep.c: Ditto.
5192 * sparc-linux-nat.c: Ditto.
5193 * sparc-linux-tdep.c: Ditto.
5194 * sparc-sol2-nat.c: Ditto.
5195 * sparc-sol2-tdep.c: Ditto.
5196 * sparc-tdep.c: Ditto.
5197 * sparc-tdep.h: Ditto.
5198 * spu-tdep.c: Ditto.
5199 * stabsread.c: Ditto.
5200 * stabsread.h: Ditto.
5208 * target-descriptions.c: Ditto.
5209 * target-descriptions.h: Ditto.
5211 * target-memory.c: Ditto.
5212 * terminal.h: Ditto.
5215 * tracepoint.c: Ditto.
5216 * tracepoint.h: Ditto.
5217 * trad-frame.h: Ditto.
5218 * typeprint.c: Ditto.
5220 2011-01-11 Michael Snyder <msnyder@vmware.com>
5222 * ui-file.c: Comment cleanup, mostly periods and spaces.
5227 * v850-tdep.c: Ditto.
5228 * valarith.c: Ditto.
5230 * valprint.c: Ditto.
5231 * valprint.h: Ditto.
5236 * vax-tdep.c: Ditto.
5240 * windows-nat.c: Ditto.
5241 * windows-tdep.c: Ditto.
5242 * xcoffread.c: Ditto.
5243 * xcoffsolib.c: Ditto.
5244 * xml-support.c: Ditto.
5245 * xstormy16-tdep.c: Ditto.
5246 * xtensa-tdep.c: Ditto.
5247 * xtensa-tdep.h: Ditto.
5249 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5251 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
5252 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
5254 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5255 Thiago Jung Bauermann <bauerman@br.ibm.com>
5257 Implement support for PowerPC BookE ranged watchpoints.
5259 (struct breakpoint_ops) <resources_needed>: New method.
5260 Initialize to NULL in all existing breakpoint_ops instances.
5261 (struct breakpoint) <exact>: New field.
5262 (target_exact_watchpoints): Declare external global.
5263 * breakpoint.c (target_exact_watchpoints): New global flag.
5264 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
5265 b->enable_state to bp_enabled before calling
5266 hw_watchpoint_used_count.
5267 (hw_watchpoint_used_count): Iterate over all bp_locations in a
5268 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
5270 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
5271 if the watchpoint is exact.
5272 (resources_needed_watchpoint): New function.
5273 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
5274 (watch_command_1): Set b->exact if the user asked for an exact
5275 watchpoint and one can be set.
5276 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
5277 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
5278 the user asks for an exact watchpoint and one can be set. Return
5279 number of needed debug registers to watch the expression.
5280 * gdbtypes.c (is_scalar_type): New function, based on
5281 valprint.c:scalar_type_p.
5282 (is_scalar_type_recursive): New function.
5283 * gdbtypes.h (is_scalar_type_recursive): Declare.
5284 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
5285 handle regions when ranged watchpoints are available.
5286 (create_watchpoint_request): New function.
5287 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
5288 create_watchpoint_request.
5289 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
5290 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
5291 `set powerpc' and `show powerpc' commands.
5292 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5293 Mention documentation comment in the target macro.
5294 (target_region_ok_for_hw_watchpoint): Document return value.
5296 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5298 * breakpoint.c (update_watchpoint): Decide on using a software or
5299 hardware watchpoint after the bp_locations are created.
5301 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5303 Convert hardware watchpoints to use breakpoint_ops.
5304 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
5305 <insert_location>: ... this. Return int instead of void.
5306 Accept pointer to struct bp_location instead of pointer to
5307 struct breakpoint. Adapt all implementations.
5308 (breakpoint_ops) <remove>: Rename to...
5309 <remove_location>: ... this. Accept pointer to struct bp_location
5310 instead of pointer to struct breakpoint. Adapt all implementations.
5311 * breakpoint.c (insert_catchpoint): Delete function.
5312 (insert_bp_location): Call the watchpoint or catchpoint's
5313 breakpoint_ops.insert method.
5314 (remove_breakpoint_1): Call the watchpoint or catchpoint's
5315 breakpoint_ops.remove method.
5316 (insert_watchpoint, remove_watchpoint): New functions.
5317 (watchpoint_breakpoint_ops): New structure.
5318 (watch_command_1): Initialize the OPS field.
5319 * inf-child.c (inf_child_insert_fork_catchpoint)
5320 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
5321 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
5322 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
5324 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
5325 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
5326 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
5327 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
5328 * target.c (update_current_target): Change default implementation of
5329 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
5330 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
5331 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
5332 to_set_syscall_catchpoint to return_one.
5333 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
5334 (debug_to_insert_exec_catchpoint): Report return value.
5335 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
5336 (to_insert_exec_catchpoint): Change declaration to return int instead
5339 2011-01-11 Michael Snyder <msnyder@vmware.com>
5341 * arm-tdep.c: Internationalization.
5344 * fork-child.c: Ditto.
5345 * nto-procfs.c: Ditto.
5346 * ppc-sysv-tdep.c: Ditto.
5348 * remote-mips.c: Ditto.
5350 * rs6000-nat.c: Ditto.
5351 * rs6000-tdep.c: Ditto.
5355 * xml-support.c: Ditto.
5356 * mi/mi-cmd-break.c: Ditto.
5357 * mi/mi-cmd-var.c: Ditto.
5358 * mi/mi-interp.c: Ditto.
5359 * mi/mi-main.c: Ditto.
5361 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
5363 * remote-sim.c (gdbsim_store_register): Update API to
5364 sim_store_register to check more error conditions.
5366 2011-01-10 Michael Snyder <msnyder@vmware.com>
5368 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
5369 * nto-tdep.c: Ditto.
5370 * nto-tdep.h: Ditto.
5371 * objc-exp.y: Ditto.
5372 * objc-lang.c: Ditto.
5373 * objfiles.c: Ditto.
5374 * objfiles.h: Ditto.
5375 * observer.c: Ditto.
5376 * opencl-lang.c: Ditto.
5379 * parser-defs.h: Ditto.
5382 * posix-hdep.c: Ditto.
5383 * ppcbug-rom.c: Ditto.
5384 * ppc-linux-nat.c: Ditto.
5385 * ppc-linux-tdep.c: Ditto.
5386 * ppc-linux-tdep.h: Ditto.
5387 * ppcnbsd-tdep.c: Ditto.
5388 * ppcobsd-tdep.c: Ditto.
5389 * ppcobsd-tdep.h: Ditto.
5390 * ppc-sysv-tdep.c: Ditto.
5391 * ppc-tdep.h: Ditto.
5392 * printcmd.c: Ditto.
5393 * proc-abi.c: Ditto.
5394 * proc-flags.c: Ditto.
5396 * proc-utils.h: Ditto.
5397 * progspace.h: Ditto.
5398 * prologue-value.c: Ditto.
5399 * prologue-value.h: Ditto.
5400 * psympriv.h: Ditto.
5402 * p-typeprint.c: Ditto.
5403 * p-valprint.c: Ditto.
5404 * ravenscar-sparc-thread.c: Ditto.
5405 * ravenscar-thread.c: Ditto.
5406 * ravenscar-thread.h: Ditto.
5408 * regcache.c: Ditto.
5409 * regcache.h: Ditto.
5411 * remote-fileio.c: Ditto.
5412 * remote-fileio.h: Ditto.
5414 * remote-m32r-sdi.c: Ditto.
5415 * remote-mips.c: Ditto.
5416 * remote-sim.c: Ditto.
5417 * rs6000-aix-tdep.c: Ditto.
5418 * rs6000-nat.c: Ditto.
5419 * rs6000-tdep.c: Ditto.
5421 2011-01-10 Michael Snyder <msnyder@vmware.com>
5423 * charset.c (validate): Internationalization.
5424 * coffread.c (read_one_sym): Ditto.
5425 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
5426 * h8300-tdep.c (H8300_extract_return_value): Ditto.
5427 * inflow.c (new_tty): Ditto.
5428 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
5429 * m32c-tdep.c (m32c_return_value): Ditto.
5430 * mep-tdep.c (mep_store_return_value): Ditto.
5431 * score-tdep.c (score7_fetch_insn): Ditto.
5432 * ser-mingw.c (pipe_windows_open): Ditto.
5433 * sh64-tdep.c (sh64_extract_return_value): Ditto.
5434 * spu-tdep.c (spu_register_type): Ditto.
5435 * tracepoint.c (trace_find_command): Ditto.
5436 * valarith.c (value_pos): Ditto.
5438 2011-01-10 Joel Brobecker <brobecker@adacore.com>
5440 * ada-valprint.c (printstr): Minor comment reformatting.
5442 2011-01-08 Michael Snyder <msnyder@vmware.com>
5444 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
5447 2011-01-08 Michael Snyder <msnyder@vmware.com>
5449 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
5450 * hppa-hpux-tdep.c: Ditto.
5451 * hppa-linux-nat.c: Ditto.
5452 * hppa-linux-tdep.c: Ditto.
5453 * hppanbsd-tdep.c: Ditto.
5454 * hppa-tdep.c: Ditto.
5455 * hppa-tdep.h: Ditto.
5456 * hpux-thread.c: Ditto.
5457 * i386-cygwin-tdep.c: Ditto.
5458 * i386-darwin-nat.c: Ditto.
5459 * i386gnu-nat.c: Ditto.
5460 * i386-linux-nat.c: Ditto.
5461 * i386-linux-tdep.c: Ditto.
5462 * i386-nat.c: Ditto.
5463 * i386-nat.h: Ditto.
5464 * i386nbsd-tdep.c: Ditto.
5465 * i386-sol2-nat.c: Ditto.
5466 * i386-stub.c: Ditto.
5467 * i386-tdep.c: Ditto.
5468 * i386-tdep.h: Ditto.
5469 * i387-tdep.c: Ditto.
5470 * ia64-linux-nat.c: Ditto.
5471 * ia64-linux-tdep.c: Ditto.
5472 * ia64-tdep.c: Ditto.
5476 * inferior.c: Ditto.
5477 * inferior.h: Ditto.
5483 * iq2000-tdep.c: Ditto.
5484 * irix5-nat.c: Ditto.
5490 * jv-typeprint.c: Ditto.
5491 * jv-valprint.c: Ditto.
5492 * language.c: Ditto.
5493 * language.h: Ditto.
5494 * linespec.c: Ditto.
5495 * linux-fork.c: Ditto.
5496 * linux-nat.c: Ditto.
5497 * linux-thread-db.c: Ditto.
5498 * lm32-tdep.c: Ditto.
5500 2011-01-08 Michael Snyder <msnyder@vmware.com>
5502 * m2-exp.y: Comment cleanup, mostly periods and spaces.
5504 * m2-typeprint.c: Ditto.
5505 * m2-valprint.c: Ditto.
5506 * m32c-tdep.c: Ditto.
5507 * m32r-linux-nat.c: Ditto.
5508 * m32r-rom.c: Ditto.
5509 * m32r-tdep.c: Ditto.
5510 * m32r-tdep.h: Ditto.
5511 * m68hc11-tdep.c: Ditto.
5512 * m58klinux-nat.c: Ditto.
5513 * m68k-tdep.c: Ditto.
5514 * m88k-tdep.c: Ditto.
5515 * m88k-tdep.h: Ditto.
5516 * machoread.c: Ditto.
5517 * macrocmd.c: Ditto.
5518 * macroexp.c: Ditto.
5519 * macrotab.c: Ditto.
5522 * mdebugread.c: Ditto.
5523 * mdebugread.h: Ditto.
5526 * memory-map.h: Ditto.
5527 * mep-tdep.c: Ditto.
5528 * microblaze-rom.c: Ditto.
5529 * microblaze-tdep.c: Ditto.
5531 * mips-irix-tdep.c: Ditto.
5532 * mips-linux-nat.c: Ditto.
5533 * mips-linux-tdep.c: Ditto.
5534 * mips-linux-tdep.h: Ditto.
5535 * mipsnbsd-nat.c: Ditto.
5536 * mipsnbsd-tdep.c: Ditto.
5537 * mipsread.c: Ditto.
5538 * mips-tdep.c: Ditto.
5539 * mips-tdep.h: Ditto.
5540 * mn10300-linux-tdep.c: Ditto.
5541 * mn10300-tdep.c: Ditto.
5542 * mn10300-tdep.h: Ditto.
5545 * moxie-tdep.c: Ditto.
5546 * moxie-tdep.h: Ditto.
5549 2011-01-08 Mike Frysinger <vapier@gentoo.org>
5551 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
5553 2011-01-08 Robert Millan <rmh@gnu.org>
5555 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
5557 2011-01-07 Michael Snyder <msnyder@vmware.com>
5559 * charset.c (_initialize_charset): Fix typo in string.
5561 2011-01-07 Michael Snyder <msnyder@vmware.com>
5563 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
5565 * tui/tui-layout.c (tui_set_layout_for_display_command):
5566 Split line so that operator goes to beginning of line.
5567 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
5568 assignment out of if statement.
5570 2011-01-07 Michael Snyder <msnyder@vmware.com>
5572 * ada-lang.c: Comment cleanup, mostly periods and spaces.
5573 * ada-lang.h: Ditto.
5574 * ada-tasks.c: Ditto.
5575 * ada-valprint.c: Ditto.
5576 * aix-threads.c: Ditto.
5577 * alpha-linux-nat.c: Ditto.
5578 * alpha-linux-tdep.c: Ditto.
5579 * alpha-mdebug-tdep.c: Ditto.
5580 * alpha-nat.c: Ditto.
5581 * alpha-osf1-tdep.c: Ditto.
5582 * alpha-tdep.c: Ditto.
5583 * alphabsd-nat.c: Ditto.
5584 * alphabsd-tdep.c: Ditto.
5585 * amd64-darwin-tdep.c: Ditto.
5586 * amd64-linux-nat.c: Ditto.
5587 * amd64-linux-tdep.c: Ditto.
5588 * amd64-sol2-tdep.c: Ditto.
5589 * amd64-tdep.c: Ditto.
5590 * amd64-fbsd-tdep.c: Ditto.
5591 * amd64-nbsd-tdep.c: Ditto.
5592 * amd64-obsd-tdep.c: Ditto.
5593 * amd64-linux-nat.c: Ditto.
5594 * amd64-linux-tdep.c: Ditto.
5595 * arm-tdep.c: Ditto.
5596 * arm-tdep.h: Ditto.
5597 * armnbsd-nat.c: Ditto.
5598 * avr-tdep.c: Ditto.
5599 * bfin-tdep.c: Ditto.
5601 * c-typeprintc: Ditto.
5602 * c-valprint.c: Ditto.
5603 * coff-pe-read.h: Ditto.
5604 * coffreead.c: Ditto.
5605 * cris-tdep.c: Ditto.
5607 * darwin-nat-info.c: Ditto.
5608 * darwin-nat.c: Ditto.
5609 * dbug-rom.c: Ditto.
5613 * dec-thread.c: Ditto.
5615 * demangle.c: Ditto.
5616 * dicos-tdep.c: Ditto.
5617 * dictionary.c: Ditto.
5618 * dictionary.h: Ditto.
5619 * dink32-rom.c: Ditto.
5621 * doublest.c: Ditto.
5623 * dummy-frame.c: Ditto.
5624 * dwarf2-frame.c: Ditto.
5625 * dwarf2expr.c: Ditto.
5626 * dwarf2loc.c: Ditto.
5627 * dwarf2read.c: Ditto.
5631 * event-top.h: Ditto.
5632 * exceptions.c: Ditto.
5633 * exceptions.h: Ditto.
5635 * expprint.c: Ditto.
5636 * expression.h: Ditto.
5640 * f-typeprint.c: Ditto.
5641 * f-valprint.c: Ditto.
5642 * fbsd-nat.c: Ditto.
5644 * fork-child.c: Ditto.
5647 * frv-linux-tdep.c: Ditto.
5648 * frv-tdep.c: Ditto.
5650 * gdb-stabs.h: Ditto.
5651 * gdb_assert.h: Ditto.
5652 * gdb_string.h: Ditto.
5653 * gdb_thread_db.h: Ditto.
5654 * gdb_wait.h: Ditto.
5655 * gdbarch.sh: Ditto.
5657 * gdbthread.h: Ditto.
5658 * gdbtypes.c: Ditto.
5659 * gdbtypes.h: Ditto.
5662 * gnu-v2-abi.c: Ditto.
5663 * gnu-v3-abi.c: Ditto.
5664 * go32-nat.c: Ditto.
5665 * gdbarch.c: Regenerate.
5666 * gdbarch.h: Regenerate.
5668 2011-01-07 Michael Snyder <msnyder@vmware.com>
5670 * ax-gdb.c: Adjust some long output strings.
5671 * breakpoint.c: Ditto.
5676 * linux-nat.c: Ditto.
5677 * solib-pa64.c: Ditto.
5678 * solib-som.c: Ditto.
5680 2011-01-06 Tom Tromey <tromey@redhat.com>
5684 * python/python.c (GdbMethods): Add "newest_frame" method.
5685 * python/python-internal.h (gdbpy_newest_frame): Declare.
5686 * python/py-frame.c (gdbpy_newest_frame): New function.
5688 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
5690 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
5691 * jit.c (jit_debug): New variable.
5692 (show_jit_debug): New function.
5693 (struct target_buffer): Use ULONGEST.
5694 (bfd_open_from_target_memory): Likewise.
5695 (jit_register_code, jit_inferior_init): Add debug output.
5696 (_initialize_jit): Register "debug jit" command.
5698 2011-01-06 Tom Tromey <tromey@redhat.com>
5700 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
5701 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
5704 2011-01-06 Tom Tromey <tromey@redhat.com>
5706 * python/py-frame.c (frapy_block): Use get_frame_block.
5708 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5710 Do not stop on SIGPRIO signals by default
5711 * infrun.c (_initialize_infrun): Unset signal_stop and
5712 signal_print for TARGET_SIGNAL_PRIO.
5714 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5716 * ada-tasks.c: Fix style violation in comment.
5718 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5720 * linespec.c (decode_compound, find_method): Remove trailing \n
5721 at end of error string.
5722 * solib-irix.c (irix_current_sos): Likewise.
5723 * varobj.c (uninstall_variable): Likewise.
5725 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5727 * copyright.py: New script.
5728 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
5729 Launch emacs without exec'ing. Call copyright.py afterwards.
5731 2011-01-05 Michael Snyder <msnyder@vmware.com>
5733 * addrmap.c: Shorten lines of >= 80 columns.
5734 * arch-utils.c: Ditto.
5735 * arch-utils.h: Ditto.
5737 * ax-general.c: Ditto.
5739 * blockframe.c: Ditto.
5740 * breakpoint.c: Ditto.
5741 * buildsym.c: Ditto.
5743 * c-typeprint.c: Ditto.
5745 * coffread.c: Ditto.
5749 * cp-namespace.c: Ditto.
5750 * cp-support.c: Ditto.
5751 * dbug-rom.c: Ditto.
5756 * dictionary.c: Ditto.
5758 * doublest.c: Ditto.
5759 * dwarf2-frame.c: Ditto.
5760 * dwarf2expr.c: Ditto.
5761 * dwarf2loc.c: Ditto.
5762 * dwarf2read.c: Ditto.
5765 * event-loop.c: Ditto.
5766 * event-loop.h: Ditto.
5767 * exceptions.h: Ditto.
5769 * expprint.c: Ditto.
5770 * expression.h: Ditto.
5772 * f-valprint.c: Ditto.
5774 * frame-base.c: Ditto.
5775 * frame-unwind.c: Ditto.
5776 * frame-unwind.h: Ditto.
5780 * gdb-stabs.h: Ditto.
5781 * gdb_assert.h: Ditto.
5782 * gdb_dirent.h: Ditto.
5783 * gdb_obstack.h: Ditto.
5785 * gdbtypes.c: Ditto.
5786 * gdbtypes.h: Ditto.
5787 * inf-ttrace.c: Ditto.
5792 * inline-frame.h: Ditto.
5793 * language.c: Ditto.
5794 * language.h: Ditto.
5795 * libunwind-frame.c: Ditto.
5796 * libunwind-frame.h: Ditto.
5797 * linespec.c: Ditto.
5798 * linux-nat.c: Ditto.
5799 * linux-nat.h: Ditto.
5800 * linux-thread-db.c: Ditto.
5801 * machoread.c: Ditto.
5802 * macroexp.c: Ditto.
5803 * macrotab.c: Ditto.
5806 * mdebugread.c: Ditto.
5811 * objfiles.c: Ditto.
5812 * objfiles.h: Ditto.
5814 * p-typeprint.c: Ditto.
5815 * p-valprint.c: Ditto.
5817 * printcmd.c: Ditto.
5818 * proc-events.c: Ditto.
5820 * progspace.c: Ditto.
5821 * progspace.h: Ditto.
5822 * psympriv.h: Ditto.
5825 * regcache.c: Ditto.
5826 * regcache.h: Ditto.
5827 * remote-fileio.c: Ditto.
5829 * ser-mingw.c: Ditto.
5831 * ser-unix.c: Ditto.
5834 * solib-frv.c: Ditto.
5835 * solib-irix.c: Ditto.
5836 * solib-osf.c: Ditto.
5837 * solib-pa64.c: Ditto.
5838 * solib-som.c: Ditto.
5839 * solib-sunos.c: Ditto.
5840 * solib-svr4.c: Ditto.
5841 * solib-target.c: Ditto.
5845 * stabsread.c: Ditto.
5846 * stabsread.c: Ditto.
5849 * symfile-mem.c: Ditto.
5855 * target-descriptions.c: Ditto.
5856 * target-memory.c: Ditto.
5859 * terminal.h: Ditto.
5862 * tracepoint.c: Ditto.
5863 * tracepoint.h: Ditto.
5867 * user-regs.c: Ditto.
5868 * user-regs.h: Ditto.
5870 * valarith.c: Ditto.
5872 * valprint.c: Ditto.
5873 * valprint.h: Ditto.
5878 * xcoffread.c: Ditto.
5879 * xcoffsolib.c: Ditto.
5880 * xcoffsolib.h: Ditto.
5881 * xml-syscall.c: Ditto.
5882 * xml-tdesc.c: Ditto.
5884 2011-01-05 Michael Snyder <msnyder@vmware.com>
5886 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
5887 * cli/cli-decode.c: Ditto.
5888 * cli/cli-dump.c: Ditto.
5889 * cli/cli-logging.c: Ditto.
5890 * cli/cli-script.c: Ditto.
5891 * cli/cli-setshow.c: Ditto.
5892 * common/signals.c: Ditto.
5893 * mi/mi-cmd-break.c: Ditto.
5894 * mi/mi-cmd-disas.c: Ditto.
5895 * mi/mi-cmd-stack.c: Ditto.
5896 * mi/mi-cmd-var.c: Ditto.
5897 * mi/mi-cmds.c: Ditto.
5898 * mi/mi-common.h: Ditto.
5899 * mi/mi-console.c: Ditto.
5900 * mi/mi-interp.c: Ditto.
5901 * mi/mi-main.c: Ditto.
5902 * osf-share/cma_attr.c: Ditto.
5903 * osf-share/cma_deb_core.h: Ditto.
5904 * osf-share/cma_debug_client.h: Ditto.
5905 * osf-share/cma_handle.h: Ditto.
5906 * osf-share/cma_mutex.h: Ditto.
5907 * osf-share/cma_stack_int.h: Ditto.
5908 * osf-share/cma_tcb_defs.h: Ditto.
5909 * python/py-auto-load.c: Ditto.
5910 * python/py-breakpoint.c: Ditto.
5911 * python/py-cmd.c: Ditto.
5912 * python/py-frame.c: Ditto.
5913 * python/py-objfile.c: Ditto.
5914 * python/py-param.c: Ditto.
5915 * python/py-progspace.c: Ditto.
5916 * python/py-symbol.c: Ditto.
5917 * python/py-value.c: Ditto.
5918 * python/python-internal.h: Ditto.
5919 * python/python.c: Ditto.
5920 * tui/tui-data.c: Ditto.
5921 * tui/tui-disasm.c: Ditto.
5922 * tui/tui-hooks.c: Ditto.
5923 * tui/tui-io.c: Ditto.
5924 * tui/tui-layout.c: Ditto.
5925 * tui/tui-regs.c: Ditto.
5926 * tui/tui-source.c: Ditto.
5927 * tui/tui-stack.c: Ditto.
5928 * tui/tui-win.c: Ditto.
5929 * tui/tui-windata.c: Ditto.
5930 * tui/tui-winsource.c: Ditto.
5932 2011-01-05 Joel Brobecker <brobecker@adacore.com>
5934 * configure.ac, gdb.1: Copyright year update.
5936 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5938 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
5939 this_pc_in_block, morestack_msym and morestack_name. Check for
5940 "__morestack" minimal symbol there.
5942 2011-01-03 Joel Brobecker <brobecker@adacore.com>
5944 * symfile.c (find_sym_fns): Add call to dont_repeat.
5946 2011-01-01 Joel Brobecker <brobecker@adacore.com>
5948 Copyright year update in most files (performed by copyright.sh).
5950 2011-01-01 Joel Brobecker <brobecker@adacore.com>
5952 * top.c (print_gdb_version): Update copyright year in version output.
5954 For older changes see ChangeLog-2010.
5960 version-control: never