1 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
3 * breakpoint.c (disable_breakpoint): Disable all locations
4 associated with a tracepoint on target if a trace experiment is
6 (disable_command): Disable a specific tracepoint location on target if
7 a trace experiment is running.
8 (do_enable_breakpoint): Enable all locations associated with a
9 tracepoint on target if a trace experiment is running.
10 (enable_command) Enable a specific tracepoint location on target if a
11 trace experiment is running.
12 * target.c (update_current_target): Add INHERIT and de_fault clauses for
13 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
14 to_disable_tracepoint.
15 * target.h: Add declaration of struct bp_location.
16 (struct target_ops): Add new functions
17 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
18 to_disable_tracepoint to target operations.
19 (target_supports_enable_disable_tracepoint): New macro.
20 (target_enable_tracepoint): New macro.
21 (target_disable_tracepoint): New macro.
22 * remote.c (struct remote_state): Add new field.
23 (remote_enable_disable_tracepoint_feature): New.
24 (remote_protocol_features): Add new entry.
25 (remote_supports_enable_disable_tracepoint): New.
26 (remote_enable_tracepoint): New.
27 (remote_disable_tracepoint): New.
28 (init_remote_ops): Add remote_enable_tracepoint,
29 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
31 * tracepoint.c (start_tracing): Allow tracing to start without any
32 tracepoints enabled with just a warning if they can be re-enabled
34 * NEWS: Add news item for the new behaviour of the enable and disable
35 GDB commands when applied to tracepoints.
36 Add news items for the new remote packets QTEnable and QTDisable.
38 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
40 * config.in: Regenerate.
41 * configure: Regenerate.
42 * configure.ac <--with-system-readline> (for readline_echoing_p):
44 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
45 (tui_old_rl_echoing_p): ... here.
46 (tui_setup_io): Rename extern declaration readline_echoing_p to
47 _rl_echoing_p. Adjust assignments for the both renames.
49 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
51 * symtab.c (lookup_symtab): Run cleanup before returning.
53 2011-05-11 Tom Tromey <tromey@redhat.com>
55 * dwarf2read.c (handle_data_member_location): New function.
56 (dwarf2_add_field): Use it.
57 (read_common_block): Likewise.
59 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
61 Make addrs->SECTINDEX always defined.
62 * symfile.c (relative_addr_info_to_section_offsets): Check for
63 SECTINDEX -1, not for zero ADDR.
64 (addrs_section_compar): Remove checking for invalid SECTINDEX.
65 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
66 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
69 2011-05-10 Doug Evans <dje@google.com>
71 * linux-thread-db.c: Whitespace cleanup.
72 (try_thread_db_load_1): Fix comment.
74 * linux-thread-db.c (set_libthread_db_search_path): New function.
75 (_initialize_thread_db): Add setter for libthread-db-search-path.
77 2011-05-09 Doug Evans <dje@google.com>
79 * NEWS: Mention --with-iconv-bin.
80 * configure.ac: New option --with-iconv-bin.
81 * configure: Regenerate.
82 * config.in: Regenerate.
83 * defs.h (relocate_gdb_directory): Declare.
84 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
85 removed progname parameter, and exported. All callers updated.
86 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
88 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
89 adding missing call to restore_child_signals_mask.
91 2011-05-09 Pedro Alves <pedro@codesourcery.com>
93 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
95 * infrun.c (proceed, start_remote): Adjust.
96 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
97 and adjust to not handle it.
98 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
99 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
100 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
101 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
102 * windows-nat.c (do_initial_windows_stuff): Adjust.
103 * infcmd.c (attach_command): Adjust.
104 (notice_new_inferior): Adjust.
106 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
108 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
109 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
110 * spu-tdep.c (op_selb): Use correct value.
112 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
114 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
115 "parent" parameter to symbol_file_add_from_bfd call.
117 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
118 Thiago Jung Bauermann <bauerman@br.ibm.com>
120 Implement support for PowerPC BookE masked watchpoints.
121 * NEWS: Mention masked watchpoint support. Create "Changed commands"
123 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
124 method. Initialize to NULL in all existing breakpoint_ops instances.
125 (struct breakpoint) <hw_wp_mask>: New field.
126 * breakpoint.c (is_masked_watchpoint): Add prototype.
127 (update_watchpoint): Don't set b->val for masked watchpoints. Call
128 breakpoint's breakpoint_ops.works_in_software_mode if available.
129 (watchpoints_triggered): Handle the case of a hardware masked
131 (watchpoint_check): Likewise.
132 (works_in_software_mode_watchpoint): New function.
133 (insert_masked_watchpoint, remove_masked_watchpoint)
134 (resources_needed_masked_watchpoint)
135 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
136 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
137 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
139 (masked_watchpoint_breakpoint_ops): New structure.
140 (watch_command_1): Check for the existence of the `mask' parameter.
141 Set b->ops according to the type of hardware watchpoint being created.
142 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
143 (ppc_linux_remove_mask_watchpoint)
144 (ppc_linux_masked_watch_num_registers): New functions.
145 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
146 to_remove_mask_watchpoint and to_masked_watch_num_registers.
147 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
148 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
149 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
150 (target_masked_watch_num_registers): New functions.
151 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
152 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
154 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
155 (target_masked_watch_num_registers): Add prototypes.
157 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
160 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
161 (producer_is_gcc_ge_4_0): New function.
162 (process_full_comp_unit): Set also symtab->locations_valid. Move the
163 symtab->language code.
164 (var_decode_location): Set cu->has_loclist.
165 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
166 skip. Intialize force_skip from locations_valid. Move the prologue
167 skipping code into two passes.
168 * symtab.h (struct symtab): Make the primary field a bitfield. New
169 field locations_valid.
171 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
173 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
174 (classify_inner_name): Call cp_lookup_nested_type with
176 * cp-namespace.c (cp_lookup_nested_type): New variable
177 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
178 type_name_no_tag_or_error with saved_parent_type.
179 * dwarf2read.c (load_partial_dies): Read in any children of
180 DW_TAG_typedef with complaint in such case.
181 * gdbtypes.c (type_name_no_tag_or_error): New function.
182 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
183 * valops.c (destructor_name_p): New comment for parameter type. Remove
184 type const. Make dname and cp const. Call type_name_no_tag_or_error.
185 * value.h (destructor_name_p): Remove type const.
187 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
189 * symtab.c (compare_symbol_name): New function.
190 (completion_list_add_name, expand_partial_symbol_name): Call it,
191 remove the variable ncmp.
192 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
195 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
197 Demote to sw watchpoint only in update_watchpoint.
198 * breakpoint.c (update_watchpoint): Change between software and
199 hardware watchpoint for all kinds of watchpoints, not just
200 read/write ones. Determine b->exact value here instead of
201 in watch_command_1. Error out if there are not enough resources
202 for a read or access hardware watchpoint.
203 (watch_command_1): Remove logic of checking whether there are
204 enough resources available, since update_watchpoint will do that
205 work now. Don't set b->exact here. Catch exceptions thrown by
206 update_watchpoint and delete the watchpoint.
207 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
208 Use target_exact_watchpoints instead.
209 (delete_breakpoint): Notify observers only if deleted watchpoint
210 has a breakpoint number assigned to it.
212 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
214 * MAINTAINERS: Add myself as a write-after-approval maintainer.
216 2011-05-05 Jerome Guitton <guitton@adacore.com>
218 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
220 (i386_stack_tramp_frame_unwind): New static global.
221 (i386_match_pattern): New function, extracted from i386_match_insn.
222 (i386_match_insn): Use i386_match_pattern.
223 (i386_match_insn_block): New function.
224 (i386_tramp_chain_in_reg_insns)
225 (i386_tramp_chain_on_stack_insns): New static variables.
226 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
229 2011-05-04 Joseph Myers <joseph@codesourcery.com>
231 * configure.host (xscale*): Don't handle target.
232 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
235 2011-05-04 Yao Qi <yao@codesourcery.com>
237 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
239 2011-05-03 Joel Brobecker <brobecker@adacore.com>
242 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
243 | * elfread.c (elf_symtab_read): Stop memory leak.
245 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
247 * nto-tdep.c (nto_target): Replace deprecated call to
248 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
250 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
252 Fix false GCC warning.
253 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
255 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
257 * breakpoint.c (update_watchpoint): Move code to change
258 the enable state of breakpoint from here ...
259 (do_enable_breakpoint): ... to here.
261 2011-04-26 Andrew Gontarek <andrewg@cray.com>
263 * valprint.c (val_print_array_elements): Fixed poor performance
264 of printing very large arrays with repeat_count_threshold set
265 to unlimited. New comment.
267 2011-04-29 Tom Tromey <tromey@redhat.com>
269 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
270 (mi_parse): Likewise.
271 * breakpoint.c (break_range_command): Use sizeof char*, not
273 (create_breakpoint): Likewise.
274 (parse_breakpoint_sals): Likewise.
276 2011-04-29 Pedro Alves <pedro@codesourcery.com>
278 * linux-nat.c (linux_child_remove_fork_catchpoint)
279 (linux_child_remove_vfork_catchpoint)
280 (linux_child_remove_exec_catchpoint): New functions.
281 (linux_target_install_ops): Install them.
283 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
287 * varobj.c (install_default_visualizer): Do not install a
288 visualizer if the varobj is CPLUS_FAKE_CHILD.
289 (construct_visualizer): Likewise.
291 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
293 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
294 case insensitive comparison.
296 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
298 * infrun.c (proceed): Revert previous change.
299 (resume): Instead, handle the case of signal delivery while stepping
300 off a breakpoint location here, and only if software single-stepping
301 is used. Handle nested signals.
303 2011-04-28 Yao Qi <yao@codesourcery.com>
305 * arm-tdep.c (copy_unmodified): Rename to ...
306 (arm_copy_unmodified): .. this. New.
307 (copy_preload): Move common part to ...
308 (install_preload): .. this. New.
309 (arm_copy_preload): New.
310 (copy_preload_reg): Move common part to ...
311 (install_preload_reg): ... this. New.
312 (arm_copy_preload_reg): New.
313 (copy_b_bl_blx): Move common part to ...
314 (install_b_bl_blx): .. this. New.
315 (arm_copy_b_bl_blx): New.
316 (copy_bx_blx_reg): Move common part to ...
317 (install_bx_blx_reg): ... this. New.
318 (arm_copy_bx_blx_reg): New.
319 (copy_alu_reg): Move common part to ...
320 (install_alu_reg): ... this. New.
321 (arm_copy_alu_reg): New.
322 (copy_alu_shifted_reg): Move common part to ...
323 (install_alu_shifted_reg): ... this. New.
324 (copy_ldr_str_ldrb_strb): Move common part to ...
325 (install_ldr_str_ldrb_strb): ... this. New.
326 (arm_copy_ldr_str_ldrb_strb): New.
327 (copy_copro_load_store): Move some common part to ...
328 (install_copy_copro_load_store): ... this. New.
329 (arm_copy_copro_load_store): New.
331 (arm_copy_svc): Renamed from copy_svc.
332 (copy_undef): Delete.
333 (arm_copy_undef): Renamed from copy_undef.
334 (decode_ext_reg_ld_st): Delete.
335 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
336 (decode_svc_copro): Delete.
337 (arm_decode_svc_copro): Renamed from decode_svc_copro.
338 (copy_copro_load_store, copy_alu_imm): update callers.
339 (copy_extra_ld_st, copy_block_xfer): Likewise.
340 (decode_misc_memhint_neon, decode_unconditional): Likewise.
341 (decode_miscellaneous, decode_dp_misc): Likewise.
342 (decode_ld_st_word_ubyte, decode_media): Likewise.
343 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
344 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
345 (decode_unconditional, decode_miscellaneous): Likewise.
346 (decode_media, decode_b_bl_ldmstm): Likewise.
347 (arm_process_displaced_insn): Likewise..
348 (decode_misc_memhint_neon): Delete.
349 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
350 (decode_miscellaneous): Delete.
351 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
352 (decode_dp_misc): Delete.
353 (arm_decode_dp_misc): Renamed from decode_dp_misc.
354 (decode_ld_st_word_ubyte): Delete.
355 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
356 (decode_media): Delete.
357 (arm_decode_media): Renamed from decode_media.
358 (decode_b_bl_ldmstm): Delete.
359 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
360 (decode_ext_reg_ld_st): Delete.
361 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
362 (decode_unconditional): Delete.
363 (arm_decode_unconditional): Renamed from decode_unconditional.
365 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
367 Case insensitive lookups implementation.
368 * dwarf2read.c: Include ctype.h.
369 (struct mapped_index): New field version.
370 (mapped_index_string_hash): New parameter index_version. New comment
371 for it. Call tolower appropriately.
372 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
373 Choose the right index version for mapped_index_string_hash.
374 (dwarf2_read_index): Support also the index version 5. Initialize the
375 new struct mapped_index field version.
376 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
377 (find_slot): Explain the version needs. Pass INT_MAX for the new
379 (write_psymtabs_to_index): Produce version 5.
380 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
381 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
382 * psymtab.c (lookup_partial_symbol): Find the
383 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
385 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
387 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
388 (completion_list_add_name): New variable ncmp, initialize it, use it.
389 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
390 * utils.c (strcmp_iw): Support case_sensitive_off.
391 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
392 New function comment part. New variables saved_string1,
393 saved_string2 and case_pass. Add a proper second pass.
395 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
397 Replace re_comp/re_exec by regcomp/regexec.
398 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
399 (search_symbols_name_matches): Use them, use regexec.
400 (search_symbols): New variable retval_chain, adjust the use of
401 old_chain against it. Replace re_comp by regcomp. Use the new struct
402 search_symbols_data fields, use regexec instead of re_exec.
404 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
406 Format the code for the next patch.
407 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
408 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
409 New variables c1 and c2.
411 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
413 * infrun.c (proceed): Do not single-step into signal delivery
414 when stepping off a breakpoint location.
415 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
416 (insert_step_resume_breakpoint_at_caller): Likewise.
417 (insert_step_resume_breakpoint_at_sal): Likewise.
418 (insert_longjmp_resume_breakpoint): Likewise.
420 2011-04-27 Yao Qi <yao@codesourcery.com>
422 * common/linux-ptrace.h: Remove include <sys/wait.h>.
424 2011-04-27 Joel Brobecker <brobecker@adacore.com>
426 * procfs.c (procfs_pass_signals): Fix advance declaration.
428 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
430 * target.h (struct target_ops): Remove to_notice_signals;
432 (target_notice_signals): Remove.
433 (target_pass_signals): Add prototype.
434 * target.c (update_current_target): Remove to_notice_signals;
435 mention to_pass_signals.
436 (target_pass_signals): New function.
437 (debug_to_notice_signals): Remove.
438 (setup_target_debug): Do not install debug_to_notice_signals.
440 * infrun.c (signal_pass): New global.
441 (resume): Call target_pass_signals.
442 (handle_inferior_event): Report all signals while stepping over
443 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
444 are re-inserted when stepping over a signal handler.
445 (signal_cache_update): New function.
446 (signal_stop_update): Call it.
447 (signal_print_update): Likewise.
448 (signal_pass_update): Likewise.
449 (handle_command): Call signal_cache_update and target_pass_signals
450 instead of target_notice_signals.
451 (_initialize_infrun): Initialize signal_pass.
453 * linux-nat.c (pass_mask): New global.
454 (linux_nat_pass_signals): New function.
455 (linux_nat_create_inferior): Report all signals initially.
456 (linux_nat_attach): Likewise.
457 (linux_nat_resume): Use pass_mask to decide whether to directly
458 handle an inferior signal.
459 (linux_nat_wait_1): Likewise.
460 (linux_nat_add_target): Install to_pass_signals callback.
462 * nto-procfs.c (notice_signals): Remove.
463 (procfs_resume): Do not call notice_signals.
464 (procfs_notice_signals): Remove.
465 (procfs_pass_signals): New function.
466 (init_procfs_ops): Install to_pass_signals callback instead of
467 to_notice_signals callback.
468 (_initialize_procfs): Report all signals initially.
470 * procfs.c (procfs_notice_signals): Remove.
471 (procfs_pass_signals): New function.
472 (procfs_target): Install to_pass_signals callback instead of
473 to_notice_signals callback.
474 (register_gdb_signals): Remove.
475 (procfs_debug_inferior): Report all signals initially.
476 (procfs_init_inferior): Remove redundant register_gdb_signals call.
478 * remote.c (remote_pass_signals): Add numsigs and pass_signals
479 parameters; use them instead of calling signal_..._state routines.
480 (remote_notice_signals): Remove.
481 (remote_start_remote): Report all signals initially.
482 (remote_resume): Do not call remote_pass_signals.
483 (_initialize_remote): Install to_pass_signals callback instead of
484 to_notice_signals callback.
486 2011-04-27 Pedro Alves <pedro@codesourcery.com>
488 * breakpoint.c (user_settable_breakpoint): Delete.
489 (user_breakpoint_p): Remove check on user_settable_breakpoint.
490 (delete_command): Check user_breakpoint_p instead of looking at
491 the breakpoint's type.
492 (disable_command): Ditto.
493 (enable_command): Ditto.
494 (delete_trace_command): Use user_breakpoint_p instead of looking
495 at the breakpoint number directly. When checking if there are
496 user visible tracepoints, in order to know whether to ask the user
497 for confirmation, check whether the breakpoint is actually a
500 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
502 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
505 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
507 MI breakpoint notifications.
509 * annotate.c (breakpoint_changed): Adjust parameter type.
510 * breakpoint.c (set_breakpoint_condition): Adjust to change
511 in breakpoint_modified type.
512 (breakpoint_set_commands): Likewise.
513 (do_map_commands_command): Likewise.
514 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
515 changed after bumping hit count.
516 (bpstat_stop_status): Likewise.
517 (print_one_breakpoint_location): Don't wrap in tuple here.
518 (print_one_breakpoint): Always print individual locations.
519 For locations, use unnamed tuple.
520 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
522 (create_catchpoint, create_syscall_event_catchpoint): Call
523 breakpoint_created obsever.
524 (mention): Don't call breakpoint_created observer.
525 (create_breakpoint_sal): Call breakpoint_created observer.
526 (create_breakpoint, watch_command_1): Likewise.
527 (create_ada_exception_breakpoint): Likewise.
528 (delete_breakpoint): Call breakpoint_deleted breakpoint.
529 (locations_are_equal): New.
530 (update_breakpoint_locations): If locations were changed, notify.
531 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
532 Call breakpoint_modified observer.
534 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
535 (mi_cmd_break_insert): Don't set observers for modify and delete.
536 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
537 (mi_breakpoint_created, mi_breakpoint_deleted)
538 (mi_breakpoint_modified): New.
539 (mi_interpreter_init): Hook the above.
540 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
541 while -break-* commands are executing.
542 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
543 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
545 (mi_ui_out_impl): Hook in mi_redirect.
546 (mi_field_skip): True to the name, skip the field, don't output
547 a field with an empty value.
549 * python/py-breakpoint.c (gdbpy_breakpoint_created)
550 (gdbpy_breakpoint_deleted): Adjust.
551 * tui/tui-hooks.c (tui_event_create_breakpoint)
552 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
554 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
556 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
557 (procfs_remove_hw_watchpoint): Likewise.
559 2011-04-26 Michael Walle <michael@walle.cc>
561 * remote.c (remote_start_remote): Ack packet after sending the
564 2011-04-26 Yao Qi <yao@codesourcery.com>
566 * linux-nat.c: Move common macros to ...
567 Include linux-ptrace.h.
568 * common/linux-ptrace.h: ... here. New.
570 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
572 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
573 !objfile_has_partial_symbols. New comment.
574 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
575 SYM_READ_PSYMBOLS is not present. Extend the comment.
576 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
578 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
580 * defs.h (ENUM_BITFIELD): Remove.
582 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
583 Eli Zaretskii <eliz@gnu.org>
585 * NEWS: Document the new gdbserver --once option.
587 2011-04-21 Jie Zhang <jzhang918@gmail.com>
589 * MAINTAINERS: Update my email address.
591 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
593 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
594 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
595 function call if __STDC_ISO_10646__ macro is defined.
596 (intermediate_encoding): New prototype.
597 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
598 to generate compile time error for unsupported gdb_wchar_t size.
599 (ENDIAN_SUFFIX): New macro.
600 (intermediate_encoding): New function.
602 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
604 * ada-lang.c (struct add_partial_datum): Update the comment for
605 expand_partial_symbol_name.
606 (ada_add_partial_symbol_completions): Rename to ...
607 (ada_expand_partial_symbol_name): ... here, change return type, update
608 function comment, call symbol_completion_match instead of
609 symbol_completion_add.
610 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
611 and ada_expand_partial_symbol_name.
612 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
614 (dw2_map_symbol_names): Remove.
615 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
616 * psymtab.c (map_symbol_names_psymtab): Remove.
617 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
618 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
620 (psym_functions): Unlist map_symbol_names_psymtab.
621 (map_partial_symbol_names): Rename to ...
622 (expand_partial_symbol_names): ... here, change the FUN type, call
623 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
624 * psymtab.h (map_partial_symbol_names): Rename to ...
625 (expand_partial_symbol_names): ... here, change the FUN type.
626 * symfile.h (struct quick_symbol_functions): Update the description of
627 expand_symtabs_matching. Remove map_symbol_names.
628 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
629 (struct add_name_data): Update the comment for
630 expand_partial_symbol_name.
631 (add_partial_symbol_name): Rename to ...
632 (expand_partial_symbol_name): ... here. Replace
633 completion_list_add_name call by strncmp.
634 (default_make_symbol_completion_list_break_on): Use now
635 expand_partial_symbol_names and expand_partial_symbol_name.
636 * symtab.h (enum search_domain): New element ALL_DOMAIN.
638 2011-04-20 Tom Tromey <tromey@redhat.com>
640 * dwarf2read.c (save_gdb_index_command): Replace format
641 documentation with a pointer to the manual.
643 2011-04-20 Pedro Alves <pedro@codesourcery.com>
645 * regcache.c: Include remote.h.
646 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
647 (regcache_dump): Handle regcache_dump_remote.
648 (maintenance_print_remote_registers): New function.
649 (_initialize_regcache): Install "maint print remote-registers"
651 * remote.c (map_regcache_remote_table): New function, factored out
653 (init_remote_state): ... here.
654 (remote_register_number_and_offset): New.
655 * remote.h (remote_register_number_and_offset): Declare.
657 2011-04-20 Pedro Alves <pedro@codesourcery.com>
659 * regcache.c (get_thread_arch_regcache): If creating a regcache for
660 null_ptid, assume and allow a NULL address space, instead of
661 asking the target for the ptid's address space.
662 * infrun.c (ptid_is_pid): Remove assertion.
664 2011-04-19 Tom Tromey <tromey@redhat.com>
666 * windows-tdep.c (windows_xfer_shared_library):
667 * windows-nat.c (get_module_name, windows_make_so):
668 * v850-tdep.c (v850_handle_pushm):
669 * utils.c (null_cleanup, gdb_realpath):
670 * ui-out.c (get_next_header):
671 * tracepoint.c (clear_traceframe_info):
672 * symtab.c (lookup_symtab):
673 * serial.h (struct serial_ops):
674 * mipsread.c (read_alphacoff_dynamic_symtab):
675 * infcmd.c (print_return_value):
676 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
677 * f-exp.y (parse_number):
678 * exceptions.c (catch_exceptions):
679 * dummy-frame.c (dummy_frame_this_id):
680 * defs.h (struct cleanup):
681 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
682 * arm-tdep.c (arm_push_dummy_call):
683 * amd64-tdep.h (amd64_collect_xsave):
684 * amd64-tdep.c (amd64_collect_xsave):
685 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
686 * README (typing): Remove duplicate words.
687 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
688 * infrun.c (siginfo_value_read): Fix typo.
689 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
690 * top.c (source_line_number): Add comma.
692 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
694 * thread.c (any_live_thread_of_process): Prioritize threads
695 that are not executing.
696 * gdbthread.h (any_live_thread_of_process): Update comment
699 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
701 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
702 (scan_xcoff_symtab): Likewise.
704 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
706 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
709 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
710 Pedro Alves <pedro@codesourcery.com>
712 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
713 variables to simplify code and avoid == operator at end of
714 line as this is against GNU coding standards.
716 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
718 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
719 lm_name to name_lm to avoid conflict with lm_name function.
721 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
723 ARI fixes: Use only lowercase function name for static functions.
724 * nto-tdep.c (LM_ADDR): Rename to...
725 (lm_addr): New function name.
726 (nto_relocate_section_addresses): Adapt to change above.
727 * solib-sunos.c (LM_ADDR): Rename to...
728 (lm_addr): New function name.
729 (LM_NEXT): Rename to...
730 (lm_next): New function name.
731 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
732 function name changes above.
733 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
734 (lm_addr_from_link_map): New function name.
735 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
736 (has_lm_dynamic_from_link_map): New function name.
737 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
738 (lm_dynamic_from_link_map): New function name.
739 (LM_ADDR_CHECK): Rename to...
740 (lm_addr_check): New function name.
741 (LM_NEXT): Rename to...
742 (lm_next): New function name.
743 (LM_PREV): Rename to...
744 (lm_prev): New function name.
745 (LM_NAME): Rename to...
746 (lm_name): New function name.
747 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
748 (ignore_first_link_map_entry): New function name.
749 (svr4_keep_data_in_core): Adapt to function name changes above.
750 (svr4_current_sos): Likewise.
751 (enable_break): Likewise.
752 (svr4_relocate_section_addresses): Likewise.
754 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
757 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
758 sprintf. Simplify code and avoid loosing memory.
759 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
760 (call0_frame_cache): Remove && operator from end of line.
762 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
764 Fix libraries displacement if they change whether they were prelinked.
765 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
766 does not match. Comment why.
768 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
770 * corelow.c: Include wrapper.h.
771 (core_open): Call now gdb_target_find_new_threads.
772 * wrapper.c: Include target.h.
773 (gdb_target_find_new_threads): New.
774 * wrapper.h (gdb_target_find_new_threads): New declaration.
776 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
778 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
779 even if !TARGET_HAS_EXECUTION.
781 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
783 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
784 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
785 bfd_get_synthetic_symtab.
786 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
787 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
788 parameter parent, remove the call to add_separate_debug_objfile.
789 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
790 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
791 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
792 parent, new comment for it, call add_separate_debug_objfile for it.
793 (symbol_file_add_separate): Pass objfile as the parameter parent,
794 remove the call to add_separate_debug_objfile.
795 (symbol_file_add_from_bfd): New parameter parent, pass it.
796 (symbol_file_add): Pass NULL to the new parameter parent.
797 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
799 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
801 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
804 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
806 Fix Python access to inlined frames.
807 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
808 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
810 2011-04-15 Tom Tromey <tromey@redhat.com>
812 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
814 2011-04-15 Gary Benson <gbenson@redhat.com>
816 * MAINTAINERS: Add myself to write-after-approval section.
818 2011-04-14 Mike Frysinger <vapier@gentoo.org>
820 * remote-sim.c (sim_command_completer): New function.
821 (_initialize_remote_sim): Set completer to sim_command_completer.
823 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
825 * breakpoint.c (print_exception_catchpoint): Rename to ...
826 (print_it_exception_catchpoint): ... this.
827 (gnu_v3_exception_catchpoint_ops): Update with new name
828 for print_it_exception_catchpoint.
830 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
832 * MAINTAINERS: Add myself for write after approval privileges.
834 2011-04-13 Marek Polacek <mpolacek@redhat.com>
836 * MAINTAINERS: Add myself as a write-after-approval maintainer.
838 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
840 * breakpoint.c (watch_command_1): Remove colon from exp_string.
842 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
844 * breakpoint.c (save_breakpoints): Verify whether
845 breakpoint_ops.print_recreate is defined before calling it.
847 2011-04-11 Gary Benson <gbenson@redhat.com>
849 Fix failure with --enable-maintainer-mode.
850 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
852 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
855 * symtab.c (search_symbols): Reorder the KIND description in the
856 function comment. Remove the unused 4th element of types, types2,
857 types3 and types4. New gdb_assert on KIND.
858 (symtab_symbol_info): Remove the unused 4th element of classnames.
859 New gdb_assert on KIND.
860 * symtab.h (enum search_domain): New warning in the enum comment.
861 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
864 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
866 Fix crash of gdb save-index on a STABS file.
867 * dwarf2read.c (write_psymtabs_to_index): Return also on no
870 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
872 Fix DW_AT_accessibility compatibility with gcc-4.6+.
873 * dwarf2read.c: Include ctype.h.
874 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
876 (dwarf2_add_field): Fix new_field->accessibility by calling
877 dwarf2_default_access_attribute. Restructure setting accessibility
879 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
880 is_private and is_protected by calling
881 dwarf2_default_access_attribute.
883 2011-04-08 Kevin Buettner <kevinb@redhat.com>
885 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
886 to the initialization.
888 2011-04-08 Steve Ellcey <sje@cup.hp.com>
890 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
893 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
895 Remove support for old Cygwin 1.5 versions.
896 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
897 function on old Cygwin version.
898 * windows-nat.c: Remove cygwin version check and always define
899 __USEWIDE for Cygwin compilation.
901 2011-04-07 Yao Qi <yao@codesourcery.com>
903 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
905 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
906 (arm_copy_svc): Remove parameters INSN and TO.
907 (decode_svc_copro): Update caller.
908 * arm-tdep.h (struct displaced_step_closure): Remove parameters
909 from function pointer `copy_svc_os'.
911 2011-04-07 Yao Qi <yao@codesourcery.com>
913 * arm-tdep.c (cleanup_branch): Set a correct return address in
914 LR for ARM and Thumb.
916 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
919 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
920 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
921 in the function comment, a new note on values compatibility.
922 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
923 * symtab.h (SYMBOL_HASH_NEXT): New.
925 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
927 * ppc-linux-nat.c (check_condition): Add len output parameter.
928 Set it based on the memory region referenced in the condition
929 expression. Update all callers.
931 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
933 Fix crash regression on systems featuring .gdb_index.
934 * objfiles.c (free_objfile): Move the
935 forget_cached_source_info_for_objfile call earlier. Comment it.
936 Extend the comment for objfile_free_data.
938 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
940 Fix regression of displaying the debug format.
941 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
944 2011-04-04 Tom Tromey <tromey@redhat.com>
946 * cli/cli-interp.c (struct captured_execute_command_args):
948 (do_captured_execute_command): Remove.
949 (safe_execute_command): Use TRY_CATCH.
950 * cli/cli-script.c (struct wrapped_read_command_file_args):
952 (wrapped_read_command_file): Remove.
953 (script_from_file): Use TRY_CATCH.
954 * exceptions.c (catch_exception): Remove.
955 * exceptions.h (catch_exception): Remove.
956 (deprecated_throw_reason): Update comment.
957 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
958 argument to 'context'.
959 (mi_execute_command): Use TRY_CATCH.
960 * remote.c (struct start_remote_args): Remove.
961 (remote_start_remote): Update; change arguments.
962 (remote_open_1): Use TRY_CATCH.
964 2011-04-04 Tom Tromey <tromey@redhat.com>
966 * tracepoint.c (scope_info): Update.
967 * symtab.c (decode_line_spec): Update.
968 * python/python.c (gdbpy_decode_line): Update.
969 * linespec.h (decode_line_1): Update.
970 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
971 (decode_compound, find_method, symtab_from_filename)
972 (decode_variable): Likewise.
973 * cli/cli-cmds.c (edit_command): Update.
974 (list_command): Update.
975 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
977 (create_breakpoint): Update.
978 (until_break_command): Update.
979 (addr_string_to_sals): Update.
980 (decode_line_spec_1): Update.
982 2011-04-04 Tom Tromey <tromey@redhat.com>
984 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
985 (do_captured_parse_breakpoint): Remove.
986 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
987 Use TRY_CATCH directly.
989 2011-04-04 Tom Tromey <tromey@redhat.com>
991 * symtab.h (free_symtab): Remove.
992 (forget_cached_source_info_for_objfile): Declare.
993 * symmisc.c (free_symtab): Remove.
994 * source.c (forget_cached_source_info_for_objfile): New function.
995 (forget_cached_source_info): Use it.
996 * objfiles.c (free_objfile): Simplify check before calling
997 clear_current_source_symtab_and_line. Call
998 forget_cached_source_info_for_objfile.
1000 2011-04-04 Tom Tromey <tromey@redhat.com>
1002 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
1003 (new_symtab): Don't set `free_code' on symtab.
1004 (new_linetable): Properly handle size==0.
1005 * symtab.h (struct symtab) <free_code, free_func>: Remove.
1006 * symmisc.c (free_symtab): Don't free the linetable. Don't call
1008 * jv-lang.c (struct jv_per_objfile_data): New.
1009 (jv_per_objfile_free): Free the data.
1010 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
1011 (get_java_class_symtab): Set the `dict' field on the
1012 jv_per_objfile_data.
1013 (free_class_block): Remove.
1014 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
1017 2011-04-04 Tom Tromey <tromey@redhat.com>
1019 * symfile.c (reread_symbols): Update.
1020 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
1022 * objfiles.c (allocate_objfile): Update.
1023 * cp-support.h (cp_check_possible_namespace_symbols): Don't
1025 * cp-namespace.c (lookup_symbol_file): Don't call
1026 lookup_possible_namespace_symbol.
1027 (initialize_namespace_symtab, get_possible_namespace_block)
1028 (free_namespace_block, cp_check_possible_namespace_symbols)
1029 (check_possible_namespace_symbols_loop)
1030 (check_one_possible_namespace_symbol)
1031 (lookup_possible_namespace_symbol): Remove.
1032 (maintenance_cplus_namespace): Replace with notice.
1033 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
1035 2011-04-04 Tom Tromey <tromey@redhat.com>
1037 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
1038 * symtab.h (struct symtab) <producer, debugformat>: Now const.
1039 * symmisc.c (free_symtab): Don't free debugformat.
1040 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
1041 (record_debugformat, record_producer): Document.
1042 * buildsym.c (end_symtab): Don't save debugformat and producer
1044 (end_symtab): Don't free debugformat and producer fields.
1045 (record_debugformat): Don't call xstrdup.
1046 (record_producer): Likewise.
1048 2011-04-04 Tom Tromey <tromey@redhat.com>
1050 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
1051 (source_line_charpos, source_charpos_line): Remove.
1053 2011-04-04 Tom Tromey <tromey@redhat.com>
1055 * symtab.h (domain_enum): Split in two...
1056 (enum search_domain): New.
1057 (search_symbols): Update.
1058 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
1059 redundant declarations.
1060 (search_symbols): Change 'kind' argument to search_domain.
1062 (print_symbol_info): Likewise.
1063 (symtab_symbol_info): Likewise.
1064 * symfile.h (struct quick_symbol_functions)
1065 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
1066 <expand_symtabs_matching>: Likewise.
1067 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
1068 (expand_symtabs_matching_via_partial): Update.
1069 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
1070 (dw2_expand_symtabs_for_function): Update.
1071 * block.h: Moved anonymous enum...
1072 * defs.h (enum block_enum): ... here. Now named.
1074 2011-04-03 Joel Brobecker <brobecker@adacore.com>
1076 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
1077 * version.in: Bump version to 7.3.50.20110403-cvs.
1079 2011-04-03 Joel Brobecker <brobecker@adacore.com>
1081 * NEWS: Create a new section for the next release branch.
1082 Rename the section of the current branch, now that it has
1085 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1087 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
1088 for "fpscr" in target description.
1090 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1092 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
1093 initialize it. Delay HASH initialization. Strip the part after open
1094 parenthesis for languages with qualifiers. Call do_cleanups.
1096 2011-04-01 Tom Tromey <tromey@redhat.com>
1098 * utils.c (report_command_stats): Don't print `-' for negative
1101 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
1103 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
1104 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
1107 2011-04-01 Joel Brobecker <brobecker@adacore.com>
1109 * breakpoint.h (bpdisp_text): Add declaration.
1110 * breakpoint.c (bpdisp_text): Make non-static.
1111 * ada-lang.c: #include "mi/mi-common.h".
1112 (print_it_exception): Rewrite to improve GDB/MI output.
1114 2011-04-01 Pedro Alves <pedro@codesourcery.com>
1116 * arm-tdep.h (struct address_space): Add forward declaration.
1118 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1120 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
1121 * arm-tdep.c (arm_override_mode): New global.
1122 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
1123 execution mode heuristics.
1124 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
1125 second single-step breakpoint if needed, using
1126 arm_insert_single_step_breakpoint.
1127 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
1128 ARM execution mode, do not call thumb_get_next_pc_raw.
1129 (arm_get_next_pc): Encode execution mode in return value. Call
1130 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
1131 (arm_insert_single_step_breakpoint): New function.
1132 (arm_software_single_step): Call it.
1133 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
1134 argument to return execution mode of sigreturn target.
1135 (arm_linux_syscall_next_pc): Use it.
1136 (arm_linux_copy_svc): Update call.
1137 (arm_linux_software_single_step): Call
1138 arm_insert_single_step_breakpoint.
1140 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1142 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
1145 2011-03-31 Tom Tromey <tromey@redhat.com>
1147 * varobj.c (update_dynamic_varobj_children): Properly handle
1148 errors from iterator.
1150 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1152 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
1153 struct linkage name twice.
1155 2011-03-31 Tom Tromey <tromey@redhat.com>
1157 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
1158 missing ">" to message.
1160 2011-03-31 Tom Tromey <tromey@redhat.com>
1162 * varobj.c (instantiate_pretty_printer): Remove duplicate
1165 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
1167 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
1168 if neither saved value nor register available (e.g. signal frame).
1170 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1172 * macroexp.c (expand): Avoid uninitialized variable
1175 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1177 * breakpoint.c (break_range_command): Fix typo in comment.
1179 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1180 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1182 Implement support for PowerPC BookE ranged breakpoints.
1183 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
1184 * breakpoint.h (struct bp_target_info) <length>: New member
1186 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
1187 instead of struct breakpoint as argument, and also add ASPACE
1188 and BP_ADDR arguments. Update all callers.
1189 (struct breakpoint_ops) <print_one_detail>: New method.
1190 (struct breakpoint) <addr_string_range_end>: New member variable.
1191 * breakpoint.c (breakpoint_location_address_match): Add function
1193 (insert_bp_location): Set bl->target_info.length.
1194 (breakpoint_here_p): Call breakpoint_location_address_match.
1195 (moribund_breakpoint_here_p): Likewise.
1196 (regular_breakpoint_inserted_here_p): Likewise.
1197 (breakpoint_thread_match): Likewise.
1198 (bpstat_stop_status): Likewise.
1199 (bpstat_check_location): Move call to
1200 breakpoint_ops.breakpoint_hit to the top.
1201 (print_one_breakpoint_location): Call
1202 breakpoint_ops.print_one_detail if available.
1203 (breakpoint_address_match_range): New function.
1204 (breakpoint_location_address_match): Likewise.
1205 (breakpoint_locations_match): Compare the length field of the
1207 (hw_breakpoint_used_count): Count resources used by all locations
1208 in a breakpoint, and use breakpoint_ops.resources_needed if
1210 (breakpoint_hit_ranged_breakpoint): New function.
1211 (resources_needed_ranged_breakpoint): Likewise.
1212 (print_it_ranged_breakpoint): Likewise.
1213 (print_one_ranged_breakpoint): Likewise.
1214 (print_one_detail_ranged_breakpoint): Likewise.
1215 (print_mention_ranged_breakpoint): Likewise.
1216 (print_recreate_ranged_breakpoint): Likewise.
1217 (ranged_breakpoint_ops): New structure.
1218 (find_breakpoint_range_end): New function.
1219 (break_range_command): Likewise.
1220 (delete_breakpoint): Free addr_string_range_end.
1221 (update_breakpoint_locations): Add SALS_END argument. Update
1222 all callers. Calculate breakpoint length if a non-zero SALS_END
1223 is given. Call breakpoint_locations_match instead of
1224 breakpoint_address_match.
1225 (reset_breakpoint): Find SaL of the end of the range if B is a
1227 (_initialize_breakpoint): Register break-range command.
1228 * defs.h (print_core_address): Add function prototype.
1229 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
1231 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
1232 (ppc_linux_remove_hw_breakpoint): Likewise.
1233 (_initialize_ppc_linux_nat): Initialize
1234 to_ranged_break_num_registers.
1235 * target.c (update_current_target): Add comment about
1236 to_ranged_break_num_registers.
1237 (target_ranged_break_num_registers): New function.
1238 * target.h (struct target_ops) <to_ranged_break_num_registers>:
1240 (target_ranged_break_num_registers): Add function prototype.
1241 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
1242 * utils.c (print_core_address): ... here.
1244 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
1246 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
1247 variable compiler warning.
1249 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
1251 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
1253 (re_set_breakpoint): ... to here ...
1254 (addr_string_to_sals): ... and here.
1256 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
1258 * Makefile.in (SFILES): Add missing C sources.
1259 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
1260 Add missing headers.
1262 2011-03-29 Mike Frysinger <vapier@gentoo.org>
1264 * .gitignore: New file.
1266 2011-03-29 Mike Frysinger <vapier@gentoo.org>
1268 * NEWS: Mention new cfi device simulation.
1270 2011-03-29 Tom Tromey <tromey@redhat.com>
1272 * dwarf2read.c (fixup_partial_die): Handle linkage name on
1273 otherwise anonymous types.
1274 (dwarf2_name): Likewise.
1275 * valops.c (value_struct_elt_for_reference): Refine artificial
1276 type logic. Call error if j==-1.
1278 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
1280 Fix false GCC warning.
1281 * infcall.c (find_function_addr): Initialize funaddr.
1283 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
1285 Fix mingw compilation with --enable-targets=all.
1286 * remote-mips.c (gdb_usleep.h): Include header.
1287 (mips_enter_debug): Use gdb_usleep instead of sleep.
1289 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1291 Support resolution of STT_GNU_IFUNC via breakpoints.
1292 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
1293 bp_gnu_ifunc_resolver_return.
1294 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
1295 the loop. Support bp_gnu_ifunc_resolver and
1296 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
1297 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
1299 (bptype_string, print_one_breakpoint_location): Support
1300 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
1301 (user_settable_breakpoint): Return true also for
1302 bp_gnu_ifunc_resolver.
1303 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
1304 bp_gnu_ifunc_resolver_return.
1305 (set_breakpoint_location_function): New parameter explicit_loc,
1306 describe it. Call find_pc_partial_function_gnu_ifunc with new
1307 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
1308 EXPLICIT_LOC is not set.
1309 (set_raw_breakpoint): Set EXPLICIT_LOC for
1310 set_breakpoint_location_function.
1311 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
1312 set_breakpoint_location_function.
1313 (mention): Support bp_gnu_ifunc_resolver and
1314 bp_gnu_ifunc_resolver_return.
1315 (add_location_to_breakpoint): Set EXPLICIT_LOC for
1316 set_breakpoint_location_function.
1317 (update_breakpoint_locations): Remove static.
1318 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
1319 bp_gnu_ifunc_resolver_return.
1320 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
1321 bp_gnu_ifunc_resolver_return.
1322 (update_breakpoint_locations): New declaration.
1323 * elfread.c: Include gdbthread.h and regcache.h.
1324 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
1326 (elf_gnu_ifunc_fns): Install them.
1327 * minsyms.c (stub_gnu_ifunc_resolver_stop)
1328 (stub_gnu_ifunc_resolver_return_stop): New functions.
1329 (stub_gnu_ifunc_fns): Install them.
1330 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
1331 and gnu_ifunc_resolver_return_stop.
1332 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
1334 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1336 STT_GNU_IFUNC reader implementation.
1337 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
1338 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
1339 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
1340 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
1341 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
1342 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
1343 (elf_gnu_ifunc_resolve_addr): New.
1344 (elf_symfile_read): Call elf_rel_plt_read.
1345 (elf_gnu_ifunc_fns): New.
1346 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
1347 Install elf_gnu_ifunc_fns.
1348 * infcall.c (find_function_return_type): New function.
1349 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
1350 * minsyms.c (stub_gnu_ifunc_resolve_addr)
1351 (stub_gnu_ifunc_resolve_name): New functions.
1352 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
1353 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
1354 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
1356 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1358 Code cleanup for later STT_GNU_IFUNC support.
1359 * infcall.c (find_function_addr): Remove variable code, use explicit
1360 dereferences for it. Move VALUE_TYPE initialization later.
1362 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1364 GDB find_pc_partial_function support for STT_GNU_IFUNC.
1365 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
1366 (clear_pc_function_cache): Clear it.
1367 (find_pc_partial_function): Rename to ...
1368 (find_pc_partial_function_gnu_ifunc): ... this function. New
1369 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
1370 (find_pc_partial_function): New wrapper for this function.
1371 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
1373 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1375 GDB internal type support for STT_GNU_IFUNC.
1376 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
1377 (elf_symtab_read): Set mst_text_gnu_ifunc for
1378 BSF_GNU_INDIRECT_FUNCTION.
1379 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
1380 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
1381 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
1382 nodebug_got_plt_symbol.
1383 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
1384 (TYPE_GNU_IFUNC): New.
1385 (struct main_type): New field flag_gnu_ifunc.
1386 (struct builtin_type): New field builtin_func_func.
1387 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
1388 nodebug_got_plt_symbol.
1389 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
1390 (in_gnu_ifunc_stub): New.
1391 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
1393 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
1394 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
1395 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
1397 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
1398 * symtab.c (search_symbols): Likewise.
1399 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
1400 and mst_slot_got_plt.
1401 (in_gnu_ifunc_stub): New declaration.
1403 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1405 Support a ring of related breakpoints.
1406 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
1407 other functions, add gdb_assert.
1408 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
1409 watchpoint_del_at_next_stop.
1410 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
1411 (bpstat_stop_status): Handle ring in related_breakpoint.
1412 (set_raw_breakpoint_without_location): Initialize ring in
1414 (delete_breakpoint): Handle ring in related_breakpoint, use
1415 watchpoint_del_at_next_stop.
1416 (map_breakpoint_numbers): Handle ring in related_breakpoint.
1418 2011-03-28 Tom Tromey <tromey@redhat.com>
1421 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
1422 with `language_minimal'.
1424 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
1426 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
1427 instead of checking for STT_ARM_TFUNC symbol type.
1429 2011-03-25 Tom Tromey <tromey@redhat.com>
1431 * linespec.c (symbol_found): Restore line-based result for
1432 non-LOC_LABEL symbols.
1434 2011-03-25 Kai Tietz <ktietz@redhat.com>
1436 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
1437 instead of strcmp for comparison.
1438 (tui_source_is_displayed): Likewise.
1439 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
1441 2011-03-24 Mark Wielaard <mjw@redhat.com>
1443 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
1445 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
1446 (find_partial_die_in_comp_unit): Likewise in comment.
1447 (read_attribute_value): Likewise.
1448 (lookup_die_type): Likewise.
1449 (dwarf_form_name): Likewise.
1450 (dump_die_shallow): Likewise.
1451 (follow_die_ref_or_sig): Likewise.
1453 2011-03-24 Tom Tromey <tromey@redhat.com>
1455 PR breakpoints/11816:
1456 * linespec.c (decode_line_1): Parse `function:label' linespecs.
1457 (decode_compound): Update.
1458 (find_function_symbol): New function.
1459 (decode_dollar): Update.
1460 (decode_label): Add 'function_symbol' parameter. Handle
1461 function-relative labels.
1462 (decode_variable): Update.
1463 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
1464 not its line. Set `special_display' and canonical name for
1467 2011-03-24 Tom Tromey <tromey@redhat.com>
1469 * linespec.h (struct linespec_result) <special_display>: New
1471 * breakpoint.h (struct breakpoint) <display_canonical>: New
1473 * breakpoint.c (print_breakpoint_location): Respect
1475 (create_breakpoint_sal): Add 'display_canonical' parameter.
1476 (create_breakpoints_sal): Update.
1477 (create_breakpoint): Update.
1479 2011-03-24 Tom Tromey <tromey@redhat.com>
1481 * symtab.c (decode_line_spec): Update.
1482 * linespec.c (build_canonical_line_spec): Change type of
1484 (decode_line_2, decode_line_1, decode_objc, decode_compound)
1485 (find_method, decode_all_digits, decode_dollar, decode_label)
1486 (symbol_found): Likewise.
1487 (init_linespec_result): New function.
1488 * breakpoint.c (struct captured_parse_breakpoint_args)
1489 <canonical_p>: New field, replaces addr_string_p.
1490 (create_breakpoints_sal): Add 'canonical' parameter, replacing
1492 (parse_breakpoint_sals): Likewise.
1493 (do_captured_parse_breakpoint): Update.
1494 (create_breakpoint): Use struct linespec_result.
1495 (until_break_command): Update.
1496 (breakpoint_re_set_one): Update.
1497 (decode_line_spec_1): Update.
1498 * linespec.h (struct linespec_result): New.
1499 (init_linespec_result): Declare.
1501 2011-03-23 Pedro Alves <pedro@codesourcery.com>
1503 * regcache.c (regcache_raw_read): If the target didn't supply a
1504 given raw register, mark it as unavailable.
1506 2011-03-23 Kai Tietz <ktietz@redhat.com>
1508 * breakpoint.c (clear_command): Use filename_cmp
1509 instead of strcmp for comparison.
1510 * buildsym.c (watch_main_source_file_lossage): Likewise.
1511 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
1512 checking just for slash.
1513 * dbxread.c (read_dbx_symtab): Use lbasename instead of
1514 strrchr and filename_cmp instead of strcmp for filenames.
1515 (add_old_header_file): Use filename_cmp
1516 instead of strcmp for comparison.
1517 * exec.c (exec_set_section_address): Likewise.
1518 * macrotab.c (macro_lookup_inclusion): Likewise.
1519 (macro_lookup_inclusion): Likewise.
1520 * elfread.c (_initialize_elfread): Likewise.
1521 (elfstab_offset_sections): Likewise.
1522 (elfstab_offset_sections): Use lbasename instead of
1524 * mdebugread.c (parse_partial_symbols): Likewise.
1525 (arse_partial_symbols): Use filename_(n)cmp instead of
1526 str(n)cmp for comparison.
1527 * minsyms.c (lookup_minimal_symbol): Likewise.
1528 * psymtab.c (read_psymtabs_with_filename): Likewise.
1529 * solib.c (solib_read_symbols): Likewise.
1530 (reload_shared_libraries_1): Likewise.
1531 * symmisc.c (maintenance_print_symbols): Likewise.
1532 * symfile.c (separate_debug_file_exists): Likewise.
1533 (reread_symbols): Likewise.
1534 (find_separate_debug_file_by_debuglink): Likewise.
1535 * remote-fileio.c (remote_fileio_func_rename): Likewise.
1536 * source.c (add_path): Likewise.
1537 * symtab.c (filename_seen): Likewise.
1538 (file_matches): Likewise.
1539 (print_symbol_info): Likewise.
1540 (maybe_add_partial_symtab_filename): Likewise.
1541 (make_source_files_completion_list): Likewise.
1542 * xml-syscall.c (init_sysinfo): Likewise.
1543 * windows-nat.c (_initialize_check_for_gdb_ini): Use
1544 IS_DIR_SEPARATOR for checking for trailing path separator.
1546 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1548 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
1549 label abort_expression.
1550 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
1551 DWARF_VALUE_OPTIMIZED_OUT.
1553 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1556 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
1557 to linkage_name. Invert its value. Update the function comment.
1558 (c_type_print_varspec_suffix): Invert it at the caller.
1559 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
1561 2011-03-22 Pedro Alves <pedro@codesourcery.com>
1563 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
1564 errors when reading the `stop_pc'.
1565 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
1568 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
1570 * NEWS: Document gdb.Write stream keyword.
1572 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1575 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1576 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
1577 (dwarf2_add_field): Fix new_field->accessibility for
1578 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
1580 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
1584 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
1585 other error classes. Do not print stack trace.
1587 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1589 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
1590 (dwarf2_add_field): Fix new_field->accessibility for
1591 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
1593 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
1595 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
1596 encountering a load via a non-SP register.
1598 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
1600 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
1601 field in returned unwinder.
1603 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1605 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
1607 2012-03-21 Joel Brobecker <brobecker@adacore.com>
1609 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
1612 2012-03-18 Pedro Alves <pedro@codesourcery.com>
1614 * frame.c (frame_unwind_register): Throw an error if unwinding the
1616 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
1617 an unwind stop reason.
1618 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
1619 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
1620 UNWIND_UNAVAILABLE>: New.
1621 * inline-frame.c (inline_frame_unwind): Install
1622 default_frame_unwind_stop_reason.
1623 * frame-unwind.c: Include "exceptions.h".
1624 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
1625 (default_frame_unwind_stop_reason): New.
1626 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
1627 (default_frame_unwind_stop_reason): Declare.
1628 (struct frame_unwind) <stop_reason>: New function pointer.
1630 * dummy-frame.c: Install default_frame_unwind_stop_reason.
1631 * dwarf2-frame.c: Include exceptions.h.
1632 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
1633 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
1634 computing the CFA. If such an error was thrown, set
1635 unavailable_retaddr.
1636 (dwarf2_frame_unwind_stop_reason): New.
1637 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
1639 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
1640 (dwarf2_signal_frame_unwind): Ditto.
1642 * amd64-tdep.c: Include "exceptions.h".
1643 (struct amd64_frame_cache): New field "base_p".
1644 (amd64_init_frame_cache): Clear it.
1645 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
1646 Avoid reading registers with functions that throw if the register
1647 is not necessary to compute the frame base.
1648 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
1649 swallowing NOT_AVAILABLE_ERROR.
1650 (amd64_frame_unwind_stop_reason): New.
1651 (amd64_frame_this_id): Don't build a frame id if the frame base
1653 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
1654 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1655 base_p if the frame base was computable.
1656 (amd64_sigtramp_frame_unwind_stop_reason): New.
1657 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
1658 frame base was unavailable.
1659 (amd64_sigtramp_frame_unwind): Install
1660 amd64_sigtramp_frame_unwind_stop_reason.
1661 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1662 base_p if the frame base was computable.
1663 (amd64_epilogue_frame_unwind_stop_reason): New.
1664 (amd64_epilogue_frame_this_id): Don't build a frame id if the
1665 frame base was unavailable.
1666 (amd64_epilogue_frame_unwind): Install
1667 amd64_epilogue_frame_unwind_stop_reason.
1668 * i386-tdep.c: Include "exceptions.h".
1669 (struct i386_frame_cache): New field "base_p".
1670 (i386_init_frame_cache): Clear it.
1671 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
1672 Avoid reading registers with functions that throw if the register
1673 is not necessary to compute the frame base.
1674 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
1675 swallowing NOT_AVAILABLE_ERROR.
1676 (i386_frame_unwind_stop_reason): New.
1677 (i386_frame_this_id): Don't build a frame id if the frame base was
1679 (i386_frame_prev_register): Handle unavailable SP.
1680 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
1681 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1682 base_p if the frame base was computable.
1683 (i386_epilogue_frame_unwind_stop_reason): New.
1684 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
1685 base was unavailable.
1686 (i386_epilogue_frame_unwind): Install
1687 i386_epilogue_frame_unwind_stop_reason.
1688 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1689 base_p if the frame base was computable.
1690 (i386_sigtramp_frame_unwind_stop_reason): New.
1691 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
1692 base was unavailable.
1693 (i386_sigtramp_frame_unwind): Install
1694 i386_sigtramp_frame_unwind_stop_reason.
1695 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
1696 type's size, not the register's.
1697 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
1699 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
1700 default_frame_unwind_stop_reason.
1701 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
1702 (alpha_heuristic_frame_unwind): Ditto.
1703 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
1704 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
1705 * avr-tdep.c (avr_frame_unwind): Ditto.
1706 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
1708 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
1709 * frv-tdep.c (frv_frame_unwind): Ditto.
1710 * h8300-tdep.c (h8300_frame_unwind): Ditto.
1711 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
1712 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
1713 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
1714 (hppa_stub_frame_unwind): Ditto.
1715 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
1716 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
1717 (ia64_libunwind_frame_unwind)
1718 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
1719 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
1720 * lm32-tdep.c (lm32_frame_unwind): Ditto.
1721 * m32c-tdep.c (m32c_unwind): Ditto.
1722 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
1723 * m32r-tdep.c (m32r_frame_unwind): Ditto.
1724 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
1725 * m68k-tdep.c (m68k_frame_unwind): Ditto.
1726 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
1727 * m88k-tdep.c (m88k_frame_unwind): Ditto.
1728 * mep-tdep.c (mep_frame_unwind): Ditto.
1729 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
1730 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
1731 (mips_stub_frame_unwind): Ditto.
1732 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
1733 * moxie-tdep.c (moxie_frame_unwind): Ditto.
1734 * mt-tdep.c (mt_frame_unwind): Ditto.
1735 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
1736 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
1737 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
1738 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
1739 (s390_sigtramp_frame_unwind): Ditto.
1740 * score-tdep.c (score_prologue_unwind): Ditto.
1741 * sh-tdep.c (sh_frame_unwind): Ditto.
1742 * sh64-tdep.c (sh64_frame_unwind): Ditto.
1743 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
1744 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
1745 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
1746 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
1747 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
1748 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
1749 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
1750 (sparc64obsd_trapframe_unwind): Ditto.
1751 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
1752 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
1753 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
1754 * v850-tdep.c (v850_frame_unwind): Ditto.
1755 * vax-tdep.c (vax_frame_unwind): Ditto.
1756 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
1757 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
1758 * xtensa-tdep.c (xtensa_unwind): Ditto.
1760 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1762 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
1763 there's always a frame. Use get_frame_pc_if_available instead of
1764 get_frame_pc, and if there's no PC available, don't look up a
1767 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1769 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
1772 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1774 * tracepoint.c (set_traceframe_context): Handle unavailable PC
1777 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1779 * frame.h (frame_unwind_caller_pc_if_available): Declare.
1780 * frame.c (frame_unwind_caller_pc_if_available): New.
1781 * stack.c (frame_info): Handle unavailable PC.
1783 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1785 * frame.c (frame_unwind_pc): Rename to ...
1786 (frame_unwind_pc_if_available): ... this. New `pc' output
1787 parameter. Change return type to int. Gracefully handle
1788 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
1789 happened, or 1 otherwise.
1790 (frame_unwind_pc): Reimplement on top of
1791 frame_unwind_pc_if_available.
1792 (get_frame_func): Rename to ...
1793 (get_frame_func_if_available): New `pc' output parameter. Change
1794 return type to int. Gracefully handle the PC not being available.
1795 (get_frame_func): Reimplement on top of
1796 get_frame_func_if_available.
1797 (select_frame): Handle the PC being unavailable.
1798 (get_prev_frame): Handle the PC being unavailable.
1799 (get_frame_pc_if_available): New.
1800 (get_frame_address_in_block_if_available): New.
1801 (find_frame_sal): Handle the frame PC not being available.
1802 * frame.h (get_frame_pc_if_available): Declare.
1803 (get_frame_address_in_block_if_available): Declare.
1804 (get_frame_func_if_available): Declare.
1805 * stack.c (print_frame_info): Handle the PC being unavailable.
1806 (find_frame_funname): Ditto.
1807 (print_frame): Handle the PC being unavailable.
1808 (get_frame_language): Ditto.
1809 * blockframe.c (get_frame_block): Ditto.
1810 * macroscope.c (default_macro_scope): Ditto.
1811 * tui/tui-stack.c (tui_show_frame_info): Ditto.
1813 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1815 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
1816 NOT_AVAILABLE_ERROR when evaluating the location expression.
1818 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1820 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
1821 returning that the register piece is unavailable/optimized out.
1822 (write_pieced_value): Handle get_frame_register_bytes returning
1823 that the register piece is unavailable/optimized out when doing a
1824 read-modify write of a bitfield.
1825 * findvar.c (value_from_register): Handle get_frame_register_bytes
1826 returning that the register piece is unavailable/optimized out.
1827 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
1828 and `unavailablep'. Throw error on bad debug info. Use
1829 frame_register instead of frame_register_read, to fill in the new
1831 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
1833 * valops.c: (value_assign): Adjust, and handle
1834 get_frame_register_bytes failing.
1835 * spu-tdep.c: Include exceptions.h.
1836 (spu_software_single_step): Adjust, and handle
1837 get_frame_register_bytes failing.
1838 (spu_get_longjmp_target): Ditto.
1839 * gdbarch.sh (register_to_value): Change to return int. New
1840 parameters `optimizedp' and `unavailablep'.
1841 * gdbarch.h, gdbarch.c: Regenerate.
1842 * i386-tdep.c (i386_register_to_value): Adjust to new
1843 gdbarch_register_to_value interface.
1844 * i387-tdep.c (i387_register_to_value): Ditto.
1845 * i387-tdep.h (i387_register_to_value): Ditto.
1846 * alpha-tdep.c (alpha_register_to_value): Ditto.
1847 * ia64-tdep.c (ia64_register_to_value): Ditto.
1848 * m68k-tdep.c (m68k_register_to_value): Ditto.
1849 * mips-tdep.c (mips_register_to_value): Ditto.
1850 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
1852 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1854 * findvar.c (value_of_register): Mark the value as unavailable, if
1855 the register is unavailable.
1856 * frame.h (frame_register_unwind): New `unavailablep' parameter.
1857 (frame_register): New `unavailablep' parameter.
1858 (frame_register_read): Update comment.
1859 * frame.c (frame_register_unwind): New `unavailablep' parameter.
1860 Set it if the register is unavailable. If the register is
1861 unavailable, clear the output buffer.
1862 (frame_register): New `unavailablep' parameter. Pass it down.
1863 (frame_unwind_register): Adjust.
1864 (put_frame_register): Adjust.
1865 (frame_register_read): Adjust. Also return false if the register
1867 (frame_register_unwind_location): Adjust.
1868 * sentinel-frame.c (sentinel_frame_prev_register): If the register
1869 is unavailable, mark the value accordingly.
1870 * stack.c (frame_info): Handle unavailable registers.
1872 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1874 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
1875 simplify, using regcache_cooked_read.
1877 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1879 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
1880 (regcache_raw_read_unsigned, regcache_raw_read_signed)
1881 (regcache_raw_read_unsigned, regcache_raw_read_part)
1882 (regcache_cooked_read, regcache_cooked_read_signed)
1883 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
1884 (regcache_cooked_read_ftype): Change return to enum
1886 * regcache.c: Include exceptions.h
1887 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
1888 (do_cooked_read): Change return to enum register_status. Always
1889 forward to regcache_cooked_read.
1890 (regcache_raw_read): Change return to enum register_status. If
1891 the register is not REG_VALID, memset the buffer. Return the
1893 (regcache_raw_read_signed): Handle non-REG_VALID registers and
1894 return the register's status.
1895 (regcache_raw_read_unsigned): Ditto.
1896 (regcache_cooked_read): Change return to enum register_status.
1897 Assert that with read-only regcaches, the register's status must
1898 be known. If the regcache is read-only, and the register is not
1899 REG_VALID, memset the buffer. Return the register's status.
1900 (regcache_cooked_read_signed): Change return to enum
1901 register_status. Handle non-REG_VALID registers and return the
1903 (regcache_cooked_read_unsigned): Change return to enum
1904 register_status. Handle non-REG_VALID registers and return the
1906 (regcache_xfer_part, regcache_raw_read_part)
1907 (regcache_cooked_read_part): Change return to enum
1908 register_status. Return the register's status.
1909 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
1911 (regcache_dump): Handle unavailable cooked registers.
1912 * frame.c (do_frame_register_read): Adjust interface to match
1913 regcache_cooked_read_ftype.
1914 * gdbarch.sh (pseudo_register_read): Change return to enum
1916 * gdbarch.h, gdbarch.c: Regenerate.
1918 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
1920 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
1921 register_status. If reading a raw register indicates the raw
1922 register is not valid, return the raw register's status,
1923 otherwise, return REG_VALID.
1924 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
1925 register_status. Handle non-REG_VALID raw registers and return
1926 the register's status.
1927 * arm-tdep.c (arm_neon_quad_read)
1928 (arm_pseudo_read): Change return to enum register_status. Handle
1929 non-REG_VALID raw registers and return the register's status.
1930 * avr-tdep.c (avr_pseudo_register_read): Ditto.
1931 * frv-tdep.c (frv_pseudo_register_read): Ditto.
1932 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
1933 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
1934 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
1936 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
1937 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
1938 (m32c_part_write, m32c_cat_read, m32c_cat_write)
1939 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
1940 (m32c_pseudo_register_read): Change return to enum
1941 register_status. Adjust.
1942 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
1943 enum register_status. Return the register's status.
1944 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
1945 register_status. Return the register's status.
1946 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
1947 * mips-tdep.c (mips_pseudo_register_read): Ditto.
1948 * mt-tdep.c (mt_pseudo_register_read): Ditto.
1949 * rs6000-tdep.c (move_ev_register_func): New typedef.
1950 (e500_move_ev_register): Use it. Change return to enum
1951 register_status. Return the register's status.
1952 (do_regcache_raw_read): New function.
1953 (do_regcache_raw_write): New function.
1954 (e500_pseudo_register_read): Change return to enum
1955 register_status. Return the register's status. Use
1956 do_regcache_raw_read.
1957 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
1958 (dfp_pseudo_register_read): Change return to enum register_status.
1959 Return the register's status.
1960 (vsx_pseudo_register_read): Ditto.
1961 (efpr_pseudo_register_read): Ditto.
1962 (rs6000_pseudo_register_read): Ditto.
1963 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
1964 register_status. Return the register's status.
1965 * sh64-tdep.c (pseudo_register_read_portions): New function.
1966 (sh64_pseudo_register_read): Change return to enum
1967 register_status. Use pseudo_register_read_portions. Return the
1969 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
1970 register_status. Return the register's status.
1971 * sh-tdep.c (pseudo_register_read_portions): New function.
1972 (sh_pseudo_register_read): Change return to enum register_status.
1973 Use pseudo_register_read_portions. Return the register's status.
1974 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
1975 enum register_status. Return the register's status.
1976 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
1977 * spu-tdep.c (spu_pseudo_register_read_spu)
1978 (spu_pseudo_register_read): Ditto.
1979 * xtensa-tdep.c (xtensa_register_read_masked)
1980 (xtensa_pseudo_register_read): Ditto.
1981 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
1983 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1985 * python/py-value.c (valpy_getitem): Fix formatting of error function
1988 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1990 ARI fixes: Add missing internationalization markups throughout
1992 * darwin-nat-info.c: Ditto.
1995 * mi/mi-main.c: Ditto.
1997 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1999 ARI fixes: Add missing internationalization markups throughout
2002 * cp-name-parser.y: Ditto.
2005 * objc-exp.y: Ditto.
2008 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2010 ARI fixes: Messages should have no trailing new lines.
2011 * darwin-nat.c (mach_check_error): Remove trailing new line from
2012 warning function call message.
2013 * record.c (bfdcore_read): Idem for error call.
2015 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2017 * common/signals.c (target_signal_from_host): Add _ markup to error
2018 function call message.
2019 (target_signal_to_host): Add _ markup and remove trailing new line
2020 from warning call message.
2021 (target_signal_from_command): Add _ markup to error function call
2024 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
2028 * python/python.c (gdbpy_write): Accept a stream argument and
2029 operate to the appropriate stream.
2030 (gdbpy_flush): Likewise.
2031 (_initialize_python): Add stream constants.
2032 (finish_python_initialization): Add GdbOutputErrorFile class.
2034 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
2036 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2038 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
2040 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
2041 to store_signed_integer. Add debug message when relocating CALL
2042 instructions. Fix formatting of debug message.
2043 * i386-tdep.c (i386_relocate_instruction): Ditto.
2045 2011-03-17 Joel Brobecker <brobecker@gnat.com>
2047 * target.h (struct target_ops): Remove to_lookup_symbol field.
2048 (target_lookup_symbol): Delete macro.
2049 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
2050 (update_current_target, setup_target_debug): Remove handling
2051 of to_lookup_symbol target_ops field.
2052 * ada-tasks.c (get_known_tasks_addr): Remove use of
2053 target_lookup_symbol.
2054 * coffread.c (coff_symtab_read): Likewise.
2055 * dbxread.c (read_dbx_symtab): Ditto.
2057 2011-03-17 Joel Brobecker <brobecker@gnat.com>
2060 * configure.ac: Add getthrds declaration check.
2061 * configure, config.in: Regenerate.
2062 * aix-thread.c (getthrds): Declare only if not already declared
2063 in procinfo.h. More declaration out of get_signaled_thread to
2066 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
2068 * python/py-symtab.c: Populate symtab_object_methods,
2070 (stpy_is_valid): New function.
2071 (salpy_is_valid): Ditto.
2072 * python/py-symbol.c: Declare symbol_object_methods. Populate.
2073 (sympy_is_valid): New function.
2074 * python/py-objfile.c: Declare objfile_object_methods. Populate.
2075 (objfpy_is_valid): New function.
2076 * python/py-inferior.c: Populate inferior_object_methods.
2077 (infpy_is_valid): New function.
2078 * python/py-infthread.c: Populate thread_object_methods.
2079 (thpy_is_valid): New function.
2080 * python/py-block.c: Declare block_object_methods. Populate. Declare
2081 block_iterator_object_methods. Populate.
2082 (blpy_is_valid): New function.
2083 (blpy_iter_is_valid): Ditto.
2085 2011-03-16 Keith Seitz <keiths@redhat.com>
2087 * linespec.c (find_methods): Canonicalize NAME before looking
2089 (name_end): New function.
2090 (keep_name_info): New function.
2091 (decode_line_1): Use keep_name_info.
2092 (decode_compound): Likewise.
2093 * cli/cli-utils.h (remove_trailing_whitespace): New function.
2094 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
2097 * linespec.c (locate_first_half): Keep overload information, too.
2098 (decode_compound): Use a string to represent break characters
2100 If P points to a break character, do not increment it.
2101 For C++ and Java, keep overload information and relevant keywords.
2102 If we cannot find a symbol, search the minimal symbols.
2105 * linespec.c (decode_compound): Rename SAVED_ARG to
2107 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
2109 Pass a valid block to lookup_symbol.
2110 (lookup_prefix_sym): Likewise.
2111 (find_method): Construct search name based on SYM_CLASS instead
2113 * psymtab.c (lookup_partial_symbol): Add language parameter.
2114 (lookup_symbol_aux_psymtabs): Likewise.
2115 Don't assume that the psymtab we found was the right one. Search
2116 for the desired symbol in the symtab to be certain.
2117 (psymtab_search_name): New function.
2118 (lookup_partial_symbol): Use psymtab_search_name.
2119 Add language parameter.
2120 (read_symtabs_for_function): Add language parameter and pass to
2121 lookup_partial_symbol.
2122 (find_symbol_file_from_partial): Likewise.
2124 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
2127 * dwarf2read.c (noop_record_line): New function.
2128 (dwarf_decode_lines): Ignore line tables for GCd functions.
2130 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
2132 Fix ARI warnings about new lines at the end of messages, which
2133 are unneeded as there is a new line added at the end of the message
2135 * darwin-nat.c (darwin_stop_inferior): Ditto.
2136 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
2137 * dfp.c (decimal_to_number): Ditto.
2138 * exec.c (print_section_info): Ditto.
2139 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
2140 * osdata.c (get_osdata): Ditto.
2141 * record.c (bfdcore_write): Ditto.
2142 * remote-mips.c (mips_readchar): Ditto.
2143 * remote.c (read_ptid): Ditto.
2144 * ser-mingw.c (ser_windows_raw): Ditto.
2145 * tracepoint.c (add_local_symbols): Ditto.
2146 * windows-nat.c (fake_create_process): Ditto.
2148 2011-03-16 Tom Tromey <tromey@redhat.com>
2150 * tracepoint.c (stop_tracing): Don't declare.
2151 * event-top.c (after_char_processing_hook): Add `(void)'.
2153 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
2155 * NEWS: Add Parameter sub-classing description.
2157 2011-03-16 Kai Tietz <ktietz@redhat.com>
2159 * MAINTAINERS: Update my e-mail address.
2161 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
2163 * MAINTAINERS: Add myself for write after approval privileges.
2165 2011-03-15 Michael Snyder <msnyder@vmware.com>
2167 * frame.c (find_frame_sal): Assert sym is not null.
2169 * dbxread.c (process_one_symbol): Assert 'name' is not null.
2171 * objc-lang.c (selectors_info): Check strchr for null result.
2173 * stabsread.c (define_symbol): Guard against bad stabstring input.
2175 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2177 Remove trailing spaces and tabulations from pascal language
2182 p-valprint.c: Ditto.
2184 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2186 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
2187 than LOW. Comment it.
2188 (read_partial_die): Call complaint for inappropriate zero LOWPC or
2189 HIGHPC not strictly higher than LOWPC.
2191 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2193 Fix formatting of function declarations returning a pointer in
2195 * varobj.c (varobj_add_child): Ditto.
2196 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
2197 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
2199 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
2201 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
2202 for the "generic" vector ABI used with GCC 4.3 and later.
2203 (ppc64_sysv_abi_return_value): Likewise.
2205 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
2207 * infcall.c (call_function_by_hand): Function return value is
2208 always a non_lval, even when using struct_return.
2210 2011-03-15 Pedro Alves <pedro@codesourcery.com>
2212 * printcmd.c (ALL_DISPLAYS_SAFE): New.
2213 (map_display_numbers): New.
2214 (do_delete_display): New.
2215 (undisplay_command): Use map_display_numbers.
2216 (do_enable_disable_display): New.
2217 (enable_disable_display_command): New function.
2218 (enable_display): Delete.
2219 (enable_display_command): New.
2220 (disable_display_command): Reimplement.
2221 (_initialize_printcmd): Adjust "enable display" command to use
2222 `enable_display_command' as callback.
2224 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2226 * NEWS: Add Python breakpoint 'stop' operation.
2228 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2230 * NEWS: Delete duplicate entry. Fix typo.
2232 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
2234 Fix ARI warning about function names in first column.
2235 Put prototype declaration on same line as return type.
2236 * objc-exp.y: Ditto.
2238 * python/py-stopevent.h: Ditto.
2239 For long function names, split parameters to
2240 allow function name on same line as return type.
2241 * solib-pa64.c: Ditto.
2244 For long function declaration, use single line.
2245 * hppa-tdep.h: Ditto.
2246 * inferior.h: Ditto.
2248 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2250 * python/python.h: Declare gdbpy_should_stop and
2251 gdbpy_breakpoint_has_py_cond.
2252 * python/python.c: Add python.h to includes. Remove python.h from
2253 HAVE_PYTHON definition
2254 (gdbpy_should_stop): New dummy function.
2255 (gdbpy_breakpoint_has_py_cond): New dummy function.
2256 * python/py-breakpoint.c (bppy_init): Rewrite to allow
2257 sub-classing capabilities.
2258 (gdbpy_should_stop): New function.
2259 (gdbpy_breakpoint_has_py_cond): New function.
2260 (local_setattro): New function.
2261 * breakpoint.c (condition_command): Add check for Python 'stop'
2263 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
2264 operation function as part of stop/continue tests.
2266 2011-03-14 Tom Tromey <tromey@redhat.com>
2269 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
2270 (needs_frame_dwarf_call): Likewise.
2272 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
2274 Fix ARI warning about functions without parameters that do not
2276 * breakpoint.c (all_tracepoints): Replace () by (void).
2277 * f-exp.y (match_string_literal): Ditto.
2279 * m2-exp.y (yylex): Ditto.
2280 * mep-tdep.c (current_me_module): Ditto.
2281 (current_options): Ditto.
2282 (current_cop_data_bus_width): Ditto.
2283 (current_cr_names): Ditto.
2284 (current_cr_is_float): Ditto.
2285 (current_ccr_names): Ditto.
2286 * objc-exp.y (yylex): Ditto.
2287 * p-exp.y (yylex): Ditto.
2288 * remote.c (send_interrupt_sequence): Ditto.
2289 * tracepoint.c (current_trace_status): Ditto.
2290 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
2291 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
2293 2011-03-11 Michael Snyder <msnyder@vmware.com>
2295 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
2296 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
2297 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
2298 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
2299 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
2301 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
2302 (delete_async_event_handler): Ditto.
2304 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
2306 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
2308 * top.c (set_verbose): Assert showcmd was found.
2310 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
2312 * xtensa-tdep.c (warning_once): Correct style issues.
2314 2011-03-11 Yao Qi <yao@codesourcery.com>
2316 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
2318 2011-03-11 Andreas Schwab <schwab@redhat.com>
2320 * common/aclocal.m4: Remove.
2322 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
2324 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
2325 (xtensa_write_register, xtensa_read_register): Likewise.
2326 (xtensa_hextochar): Removed.
2327 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
2329 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
2331 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
2332 (xtensa_call0_frame_cache_t): Update comments. New fields added.
2333 (xtensa_alloc_frame_cache): Add initialization for new fields.
2334 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
2335 (warning_once): New function.
2336 (xtensa_insn_kind): New item c0opc_and.
2337 (call0_classify_opcode): Add the case for AND instruction.
2338 (call0_track_op): Change arguments. New local variable litbase.
2339 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
2340 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
2342 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
2343 (call0_analyze_prologue): Update the comments. Change arguments.
2344 Add the variety of updates to handle extended prologues, which now can
2345 conduct dynamic stack adjustments.
2346 (call0_frame_cache): Likewise.
2347 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
2348 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
2350 2011-03-10 Michael Snyder <msnyder@vmware.com>
2352 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
2353 (cmd_qtframe): Ditto.
2354 (cmd_qtbuffer): Ditto.
2355 (cmd_bigqtbuffer): Ditto.
2357 2011-03-10 Tom Tromey <tromey@redhat.com>
2359 * tracepoint.c (trace_actions_command): Update.
2360 * thread.c (thread_apply_command): Update.
2361 * reverse.c (delete_bookmark_command): Update.
2362 (bookmarks_info): Update.
2363 * printcmd.c (undisplay_command): Update.
2364 * memattr.c (mem_enable_command): Update.
2365 (mem_disable_command): Update.
2366 (mem_delete_command): Update.
2367 * inferior.c (detach_inferior_command): Update.
2368 (kill_inferior_command): Update.
2369 (remove_inferior_command): Update.
2370 * cli/cli-utils.h (struct get_number_or_range_state): New.
2371 (init_number_or_range): Declare.
2372 (get_number_or_range): Update.
2373 * cli/cli-utils.c (init_number_or_range): New function.
2374 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
2376 (number_is_in_list): Update.
2377 * breakpoint.h (get_tracepoint_by_number): Update.
2378 * breakpoint.c (map_breakpoint_numbers): Update for change to
2379 get_number_or_range.
2380 (find_location_by_number): Use get_number, not
2381 get_number_or_range.
2382 (trace_pass_set_count): New function.
2383 (trace_pass_command): Update for change to get_number_or_range.
2385 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
2388 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
2390 * python/py-param.c (add_setshow_generic): Add set/show callback
2391 parameters. Register Python object context.
2392 (get_show_value): New function.
2393 (get_set_value): New function.
2394 (call_doc_function): New function.
2395 (get_doc_string): Move behind get_show_value/get_set_value.
2397 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
2399 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
2401 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
2403 * xtensa-tdep.c (xtensa_read_register): Add comment.
2404 (xtensa_write_register): Likewise.
2405 (xtensa_hextochar): Add comment and update to match coding conventions.
2406 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
2407 (execute_l32e, execute_s32e, execute_code): Update comments.
2408 (xtensa_exception_handler_t): Update to match coding conventions.
2409 (xtensa_insn_kind): Likewise.
2411 2011-03-09 Michael Snyder <msnyder@vmware.com>
2413 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
2415 2011-03-09 Pedro Alves <pedro@codesourcery.com>
2417 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
2419 2011-03-09 Tom Tromey <tromey@redhat.com>
2421 * thread.c (restore_selected_frame): Handle frame_level == -1.
2422 (make_cleanup_restore_current_thread): Use
2423 get_selected_frame_if_set.
2424 * frame.h (get_selected_frame_if_set): Declare.
2425 * frame.c (get_selected_frame_if_set): New function.
2427 2011-03-09 Pedro Alves <pedro@codesourcery.com>
2429 * cli/cli-cmds.c (shell_escape): Use lbasename.
2430 * coffread.c (coff_start_symtab): Constify parameter.
2431 (complete_symtab): Constify `name' parameter.
2432 (coff_symtab_read): Constify `filestring' local.
2433 (coff_getfilename): Constify return and `result' local.
2435 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
2436 * linux-fork.c (info_checkpoints_command): Use lbasename.
2437 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
2438 * minsyms.c (lookup_minimal_symbol): Use lbasename.
2439 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
2440 * procfs.c (procfs_make_note_section): Use lbasename.
2441 * tui/tui-io.c (printable_part): Constity return and parameter.
2443 (print_filename): Constify parameters, and local `s'.
2444 (tui_rl_display_match_list): Constify local `temp'.
2446 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2449 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2450 Fix DWARF-3+ DW_AT_accessibility default assumption.
2451 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
2452 cu->header.version >= 3.
2454 2011-03-09 Yao Qi <yao@codesourcery.com>
2456 * common/Makefile.in: Remove.
2457 * common/configure: Remove.
2458 * common/configure.ac: Remove.
2460 2011-03-09 Yao Qi <yao@codesourcery.com>
2463 2011-02-11 Yao Qi <yao@codesourcery.com>
2465 * common/Makefile.in: Add copyright header.
2467 2011-02-11 Yao Qi <yao@codesourcery.com>
2469 * Makefile.in: Remove signals.o from COMMON_OBS. Link
2471 * configure.ac: Add common to sub dir.
2472 * configure: Regenerate.
2474 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2476 * xtensa-tdep.c (call0_ret): New function.
2477 (xtensa_skip_prologue): Speed up analysis.
2479 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2481 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
2482 while executing MI command -data-list-changed-registers.
2484 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2486 * xtensa-tdep.c (xtensa_read_register): New function.
2487 (xtensa_write_register): New function.
2488 (xtensa_find_register_by_name): New function.
2489 (xtensa_windowed_frame_cache): Update comments in type description.
2490 (xtensa_frame_cache): Likewise.
2491 (xtensa_window_interrupt_insn): New function.
2492 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
2493 (xtensa_insn_kind): Add new instructions.
2494 (rwx_special_register): New function.
2495 (call0_classify_opcode): Add new instructions to the analysis.
2496 (a0_saved, a7_saved, a11_saved): New variables.
2497 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
2498 (execute_l32e): New function.
2499 (execute_s32e): New function.
2500 (xtensa_exception_handler_t): New type.
2501 (execute_code): New function.
2502 (xtensa_window_interrupt_frame_cache): New function to conduct frame
2503 analysis for Xtensa Window Exception handlers.
2505 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2507 * xtensa-tdep.c (TX_PS): New.
2508 (windowing_enabled): Update to count for Call0 ABI.
2509 (xtensa_hextochar): New.
2510 (xtensa_init_reggroups): Make algorithm generic.
2511 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
2513 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2515 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
2517 2011-03-08 Michael Snyder <msnyder@vmware.com>
2519 * i386-tdep.c (i386_follow_jump): Check return value of
2521 (i386_analyze_struct_return): Ditto.
2522 (i386_skip_probe): Ditto.
2523 (i386_match_insn): Ditto.
2524 (i386_skip_noop): Ditto.
2525 (i386_analyze_frame_setup): Ditto.
2526 (i386_analyze_register_saves): Ditto.
2527 (i386_skip_prologue): Ditto.
2528 (i386_skip_main_prologue): Ditto.
2530 * target.c (read_whatever_is_readable): Fix memory leak.
2532 * i386-tdep.c (i386_process_record): Document fall through.
2534 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2536 Fix DWARF-3+ DW_AT_accessibility default assumption.
2537 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
2538 cu->header.version >= 3.
2540 2011-03-08 Pedro Alves <pedro@codesourcery.com>
2542 * remote.c (remote_check_symbols): Skip if the target has no
2545 2011-03-08 Joel Brobecker <brobecker@adacore.com>
2547 * target.c (read_whatever_is_readable): Reformat comment,
2548 with a minor typo fix. Minor reformatting of the code.
2550 2011-03-08 Yao Qi <yao@codesourcery.com>
2552 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
2553 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
2554 Use cached result instead of calling displaced_in_arm_mode again.
2555 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
2556 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
2557 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
2558 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
2559 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
2560 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
2561 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
2562 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
2563 (cleanup_block_load_pc, copy_block_xfer): Likewise.
2564 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
2565 (arm_catch_kernel_helper_return): Likewise.
2566 * gdb/arm-tdep.h : Update function declarations.
2568 2011-03-07 Michael Snyder <msnyder@vmware.com>
2570 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
2572 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
2574 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
2576 * elfread.c (elf_symtab_read): Stop memory leak.
2578 * main.c (captured_main): Fix memory leak.
2580 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
2582 * ada-lang.c (compare_names): Call is_name_suffix with string1
2585 2011-03-07 Tom Tromey <tromey@redhat.com>
2587 * xcoffread.c (xcoff_sym_fns): Update.
2588 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
2589 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
2590 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
2591 (symbol_file_add_with_addrs_or_offsets): Likewise.
2592 (reread_symbols): Handle OBJF_PSYMTABS_READ.
2593 * somread.c (som_sym_fns): Update.
2594 * psymtab.h (require_partial_symbols): Declare.
2595 * psymtab.c (require_partial_symbols): New function.
2596 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
2597 (ALL_OBJFILE_PSYMTABS): Undef.
2598 (ALL_PSYMTABS): Move from psympriv.h.
2599 (lookup_partial_symtab, find_pc_sect_psymtab)
2600 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
2601 (find_last_source_symtab_from_partial)
2602 (forget_cached_source_info_partial)
2603 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
2604 (expand_partial_symbol_tables, read_psymtabs_with_filename)
2605 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
2606 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
2607 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
2608 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
2609 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
2610 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
2611 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
2613 * mipsread.c (ecoff_sym_fns): Update.
2614 * machoread.c (macho_sym_fns): Update.
2615 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
2616 (read_psyms): New function.
2617 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
2618 (elf_sym_fns_lazy_psyms): New global.
2619 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
2620 dwarf2_build_psymtabs.
2621 * dbxread.c (aout_sym_fns): Update.
2622 * coffread.c (coff_sym_fns): Update.
2624 2011-03-07 Tom Tromey <tromey@redhat.com>
2626 * infrun.c (print_exited_reason): Include inferior id and pid in
2629 2011-03-07 Tom Tromey <tromey@redhat.com>
2631 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
2633 (target_has_execution_1): Update.
2634 (target_has_execution_current): Declare.
2635 (target_has_execution): Call target_has_execution_current.
2636 (default_child_has_execution): Update.
2637 * target.c (default_child_has_execution): Add 'the_ptid'
2639 (target_has_execution_1): Likewise.
2640 (target_has_execution_current): New function.
2641 (add_target): Update.
2642 (init_dummy_target): Update.
2643 * remote-m32r-sdi.c (m32r_has_execution): New function.
2644 (init_m32r_ops): Use it.
2645 * record.c (record_core_has_execution): Now static. Add
2646 'the_ptid' parameter.
2647 * inferior.c (have_live_inferiors): Don't save current thread.
2648 Use target_has_execution_1.
2650 2011-03-07 Yao Qi <yao@codesourcery.com>
2652 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
2654 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2656 * elfread.c (elf_symtab_read): Minor reformatting.
2658 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2660 * objc-lang.c (selectors_info): Minor reformatting.
2662 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2664 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
2666 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2667 Michael Snyder <msnyder@vmware.com>
2669 * ada-valprint.c (ada_val_print_array): Move the declaration of
2670 "byte_order" and "elttype" inside the block where these variables
2671 are actually used. Remove some special handling for the case
2672 where "elttype" and "eltlen" are null. Replace by a comment
2673 and a couple of assertion checks.
2675 2011-03-05 Michael Snyder <msnyder@vmware.com>
2677 * source.c (add_path): Replace semicolon at end of block.
2678 * dwarf2expr.c (execute_stack_op): Ditto.
2680 2011-03-05 Mike Frysinger <vapier@gentoo.org>
2682 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
2683 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
2684 (bfin-*-*): Likewise.
2686 2011-03-05 Michael Snyder <msnyder@vmware.com>
2688 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
2689 * mdebugread.c (parse_symbol): Ditto.
2690 * parse.c (parse_exp_in_context): Ditto.
2691 * source.c (add_path): Ditto.
2692 * utils.c (gnu_debuglink_crc32): Ditto.
2693 * varobj.c (variable_language): Ditto.
2695 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
2697 2011-03-04 Michael Snyder <msnyder@vmware.com>
2699 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
2701 * symfile.c (simple_overlay_update): Check for null return value
2702 from lookup_minimal_symbol.
2704 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
2706 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2708 * eval.c (parse_and_eval_address_1): Remove function.
2709 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
2710 instead of parse_and_eval_address_1.
2711 * value.h (parse_and_eval_address_1): Remove prototype.
2713 2011-03-04 Michael Snyder <msnyder@vmware.com>
2715 * remote.c (putpkt_binary): Document that case stmt falls through.
2717 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2719 * breakpointc (print_it_typical): Move NULL check from here...
2720 (print_bp_stop_message): ... to here.
2722 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
2724 * breakpoint.c (enable_command): Use break instead of continue,
2725 and fill in a missing break.
2726 (disable_command): Ditto.
2728 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
2730 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
2731 (terminal_save_ours): Remove misleading comment.
2732 (inflow_inferior_data_cleanup): Free ttystate.
2733 (inflow_inferior_exit): Likewise.
2734 (copy_terminal_info): Copy ttystate.
2736 * serial.c (serial_copy_tty_state): New function.
2737 * serial.h (serial_copy_tty_state): Add prototype.
2738 (struct serial_ops): Add copy_tty_state callback.
2739 * ser-base.c (ser_base_copy_tty_state): New function.
2740 * ser-base.h (ser_base_copy_tty_state): Add prototype.
2741 * ser-go32.c (dos_copy_tty_state): New function.
2742 (dos_ops): Install copy_tty_state callback.
2743 * ser-mingw.c (_initialize_ser_windows): Likewise.
2744 * ser-pipe.c (_initialize_ser_pipe): Likewise.
2745 * ser-unix.c (hardwire_copy_tty_state): New function.
2746 (_initialize_ser_hardwire): Install it.
2748 2011-03-04 Michael Snyder <msnyder@vmware.com>
2750 * breakpoint.c (create_breakpoint): Add missing break statement.
2752 Reverting this patch:
2753 * infcall.c (call_function_by_hand): Add break statements for lint.
2755 Reverting this patch:
2756 * cli/cli-script.c (script_from_file): Add break for lint.
2758 2011-03-04 Michael Snyder <msnyder@vmware.com>
2760 * solib.c (reload_shared_libraries_1): Close memory leak.
2762 2011-03-03 Tom Tromey <tromey@redhat.com>
2765 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
2768 2011-03-03 Michael Snyder <msnyder@vmware.com>
2770 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
2771 fields of struct 'st' to zero.
2773 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
2774 sal.pspace before calling set_current_source_symtab_and_line.
2776 2011-03-03 Yao Qi <yao@codesourcery.com>
2778 * Makefile.in (configure-common): Remove. Let Makefile
2779 in dir common to rebuild itself.
2780 (common/Makefile): Likewise.
2782 2011-03-03 Joel Brobecker <brobecker@adacore.com>
2784 * utils.c (parse_escape): Add i18n markup in error message.
2786 2011-03-03 Yao Qi <yao@codesourcery.com>
2788 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
2790 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
2791 (displaced_write_reg, displaced_read_reg): Likewise.
2792 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
2793 (cleanup_block_load_pc, copy_block_xfer): Likewise.
2794 (cleanup_branch): Replace magic number 14 and 15 with
2795 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
2797 2011-03-02 Michael Snyder <msnyder@vmware.com>
2799 * maint.c (maintenance_do_deprecate): No need to check for NULL.
2801 * cli/cli-script.c (script_from_file): Add break for lint.
2803 * mdebugread.c (parse_partial_symbols): Fix indent.
2805 * target-descriptions.c (tdesc_gdb_type): No need to call
2806 xstrdup, callee saves a copy.
2808 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
2810 * infcall.c (call_function_by_hand): Add break statements for lint.
2812 * utils.c (parse_escape): Escape the escape char.
2814 * python/py-inferior.c (build_inferior_list): Error out if
2815 PyList_Append fails.
2816 (gdbpy_inferiors): Error out if build_inferior_list fails.
2818 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
2821 * record.c (record_restore): Move printf to before error return.
2823 2011-03-02 Yao Qi <yao@codesourcery.com>
2825 * arm-tdep.h (struct displaced_step_closure): Add two new fields
2826 is_thumb and insn_size.
2827 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
2828 on both ARM and Thumb mode.
2829 (arm_process_displaced_insn): Set is_thumb and insn_size.
2830 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
2831 (arm_displaced_step_fixup): Likewise.
2833 2011-03-01 Michael Snyder <msnyder@vmware.com>
2835 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
2837 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
2839 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
2841 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
2843 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
2846 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
2847 which shadows function parameter.
2849 * tracepoint.c (create_tsv_from_upload): Superfluous call
2850 to xstrdup. Callee already calls xstrdup.
2852 * linespec.c (decode_line_1): Remove unnecessary null check.
2854 * tracepoint.c (scope_info): Fix mem leak, remove underused
2857 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
2858 superfluous null check.
2860 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
2861 (value_of_builtin_frame_fp_reg): Ditto.
2863 * event-top.c (display_gdb_prompt): Remove superfluous null check.
2865 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
2868 * linespec.c (decode_line_1): Check for null before dereference.
2870 * reverse.c (record_restore): Move null-check to before pointer
2873 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
2875 * objc-lang.c (selectors_info): Add explanitory comment.
2876 (classes_info): Ditto.
2878 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2880 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
2881 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
2882 versions of the trampoline. Handle Thumb vs. ARM addresses.
2883 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
2884 (arm_linux_init_abi): Install it.
2885 * arm-tdep.c (arm_psr_thumb_bit): Make global.
2886 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
2888 2011-02-28 Michael Snyder <msnyder@vmware.com>
2890 * ui-out.c (ui_out_field_core_addr): Make local char buffer
2891 a little bigger, to avoid possibility of an overflow.
2893 * breakpoint.c (breakpoint_adjustment_warning): Make local char
2894 buffers a little bigger, to avoid possibility of an overflow.
2896 * coffread.c (coff_getfilename): Add check to avoid overflow.
2898 * objc-lang.c (selectors_info): Add a small safety margin to
2900 (classes_info): Error out on too long REGEXP.
2902 * infrun.c (handle_inferior_event): Remove unused function call.
2904 * fork-child.c (fork_inferior): Remove ifdef'd code and
2907 * linux-thread-db.c (attach_thread): Discard unused value.
2909 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
2911 * remote.c (remote_get_noisy_reply): Discard unused value.
2912 (remote_vcont_resume): Ditto.
2913 (remote_stop_ns): Ditto.
2915 * linespec.c (decode_objc): Delete unused variable.
2917 * tui/tui-regs.c (tui_register_format): Delete unused variable.
2919 * dwarf2read.c (add_partial_symbol): Discard unused values.
2920 (read_base_type): Delete unused variable.
2922 * dbxread.c (read_dbx_symtab): Discard unused value.
2924 * eval.c (evaluate_subexp_standard): Delete unused variable,
2925 and discard unused values.
2927 * infcmd.c (_initialize_infcmd): Discard unused values.
2929 * stabsread.c (rs6000_builtin_type): Missing break statement.
2931 * dbxread.c (process_one_symbol): Discard unused value.
2933 * coffread.c (coff_end_symtab): Delete unused variable.
2935 * dwarf2read.c (dw2_get_file_names): Discard unused value.
2936 (dwarf2_add_typedef): Delete unused variable.
2937 (read_namespace): Ditto.
2938 (dwarf_decode_macros): Ditto.
2940 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
2942 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
2944 * p-valprint.c (pascal_val_print): Discard unused value.
2946 * utils.c (nquery): Call va_end before return;
2950 * proc-service.c (ps_plog): Call va_end before return.
2952 2011-02-28 Tom Tromey <tromey@redhat.com>
2954 * python/python.c (gdbpy_value_cst): New global.
2955 (_initialize_python): Initialize it.
2956 * python/python-internal.h (gdbpy_value_cst): Declare.
2957 * python/py-value.c (convert_value_from_python): Use
2960 2011-02-28 Michael Snyder <msnyder@vmware.com>
2962 * python/py-cmd.c (cmdpy_init): Fix memory leak.
2964 * breakpoint.c (catch_syscall_completer): Free malloced list.
2966 * jv-lang.c (java_primitive_type_from_name): Add missing break.
2968 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
2969 (lval_func_check_synthetic_pointer): Ditto.
2970 (lval_func_free_closure): Fix use-after-free.
2972 2011-02-28 Tom Tromey <tromey@redhat.com>
2974 * psymtab.c (expand_partial_symbol_tables): Use
2975 ALL_OBJFILE_PSYMTABS.
2977 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2979 * objc-lang.c (selectors_info): Error on too long REGEXP.
2981 2011-02-28 Michael Snyder <msnyder@vmware.com>
2983 * python/py-param.c (set_parameter_value): Add missing
2986 * linux-record.c (record_linux_system_call): Add missing
2989 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
2991 * breakpoint.c (print_one_breakpoint_location): Remove unused
2992 argument PRINT_ADDRESS_BITS. Update callers.
2993 (print_one_breakpoint): Likewise.
2995 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
2997 * breakpoint.c (wrap_indent_at_field): New function.
2998 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
2999 Allocate ui_stream locally instead of using STB argument.
3000 (print_one_breakpoint_location): Update call.
3001 * ui-out.c (ui_out_query_field): New function.
3002 * ui-out.h (ui_out_query_field): Add prototype.
3004 2011-02-28 Joel Brobecker <brobecker@adacore.com>
3006 From Michael Snyder <msnyder@vmware.com>
3007 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
3009 2011-02-27 Michael Snyder <msnyder@vmware.com>
3011 * objc-lang.c (selectors_info): Prevent string overrun.
3013 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
3016 * symtab.c (rbreak_command): Move variable 'file_name' to
3019 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
3020 param with a local variable of the same name.
3022 2011-02-27 Michael Snyder <msnyder@vmware.com>
3024 * value.c (value_from_history_ref): New function.
3025 * value.h (value_from_history_ref): Export.
3026 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
3027 to parse value history references.
3028 * cli/cli-utils.h (get_number_trailer): Update comment.
3030 2011-02-27 Michael Snyder <msnyder@vmware.com>
3032 * inferior.c (detach_inferior_command): Use get_number_or_range.
3033 (kill_inferior_command): Ditto.
3034 (remove_inferior_command): Ditto.
3035 (initialize_inferiors): Make command names plural.
3036 Update help strings.
3038 2011-02-27 Michael Snyder <msnyder@vmware.com>
3040 * darwin-nat-info.c: Fix comment typo.
3041 * dwarf2expr.h: Ditto.
3042 * fbsd-nat.c: Ditto.
3043 * fbsd-nat.h: Ditto.
3044 * frame-unwind.h: Ditto.
3046 * hppa-hpux-tdep.c: Ditto.
3047 * i386-linux-nat.c: Ditto.
3048 * linux-nat.c: Ditto.
3049 * nbsd-nat.c: Ditto.
3050 * nbsd-nat.h: Ditto.
3051 * ppc-linux-tdep.c: Ditto.
3054 * tui/tui-winsource.c: Ditto.
3056 2011-02-26 Michael Snyder <msnyder@vmware.com>
3058 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
3060 * maint.c (maintenance_do_deprecate): Plug a memory leak.
3062 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
3063 with a local variable of the same name.
3065 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
3066 param with a local variable of the same name.
3067 (i387_supply_xsave): Ditto.
3069 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
3070 that it does not shadow a function parameter.
3072 * i386-nat.c (i386_length_and_rw_bits): Document that case
3073 statement is meant to fall through.
3075 * expprint.c (dump_subexp_body_standard): Document that case
3076 statement is meant to fall through.
3078 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
3079 dead if statement. Condition can't be false.
3081 2011-02-25 Michael Snyder <msnyder@vmware.com>
3083 * arm-tdep.c: Fix typos in comments.
3084 * bsd-uthread.c: Ditto.
3085 * completer.c: Ditto.
3087 * cp-namespace.c: Ditto.
3088 * cp-support.c: Ditto.
3089 * cris-tdep.c: Ditto.
3091 * dwarf2read.c: Ditto.
3093 * gdbtypes.h: Ditto.
3094 * inferior.h: Ditto.
3095 * mdebugread.c: Ditto.
3096 * mips-tdep.c: Ditto.
3097 * ppc-linux-nat.c: Ditto.
3098 * ppc-linux-tdep.c: Ditto.
3099 * printcmd.c: Ditto.
3100 * sol-thread.c: Ditto.
3101 * solib-frv.c: Ditto.
3103 * sparc64-tdep.c: Ditto.
3104 * spu-tdep.c: Ditto.
3105 * stabsread.c: Ditto.
3110 * python/py-block.c: Ditto.
3111 * python/py-symbol.c: Ditto.
3112 * python/py-symtab.c: Ditto.
3113 * python/py-value.c: Ditto.
3114 * tui/tui-win.c: Ditto.
3116 2011-02-25 Michael Snyder <msnyder@vmware.com>
3118 * inferior.c (print_inferior): Accept a string instead of an int
3119 for requested_inferiors, and use get_number_or_range to parse it.
3120 (info_inferiors_command): Pass args string to print_inferior.
3121 (initialize_inferiors): Change help string for info inferiors.
3122 * inferior.h (print_inferior): Export prototype change.
3124 2011-02-25 Tom Tromey <tromey@redhat.com>
3126 * common/ax.def (invalid2): Set to 0x31.
3128 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3130 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
3132 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
3134 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
3136 2011-02-24 Michael Snyder <msnyder@vmware.com>
3138 * Makefile.in (clean): Make clean should remove generated files
3139 observer.h and observer.inc.
3141 2011-02-24 Joel Brobecker <brobecker@adacore.com>
3143 Revert the following patch (not approved yet):
3144 2011-02-21 Hui Zhu <teawater@gmail.com>
3145 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3146 * ax-gdb.c (gen_printf_expr_callback): New function.
3147 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3148 * ax-general.c (ax_memcpy): New function.
3149 (ax_print): Handle "printf".
3151 * ax.h (ax_memcpy): Forward declare.
3152 * common/ax.def (invalid2): Removed.
3153 (printf): New entry.
3154 * printcmd.c (printcmd.h): New include.
3155 (string_printf): New function.
3156 (ui_printf): Removed.
3157 (printf_command): Remove static. Call string_printf.
3158 (eval_command): Call string_printf.
3159 * printcmd.h: New file.
3160 * tracepoint.c (validate_actionline,
3161 encode_actions_1): handle printf_command.
3163 2011-02-23 Tom Tromey <tromey@redhat.com>
3165 * ax-general.c (ax_pick): Add missing newline.
3167 2011-02-23 Michael Snyder <msnyder@vmware.com>
3169 * breakpoint.c (breakpoint_1): Change first argument from an int
3170 to a char pointer, so that the function now accepts a list of
3171 breakpoints rather than just one. Use new function
3172 'number_is_in_list' to implement.
3173 (breakpoints_info): Pass char * instead of int to breakpoint_1.
3174 (watchpoints_info): Ditto.
3175 (tracepoints_info): Ditto.
3176 (maintenance_info_breakpoints): Ditto.
3177 (_initialize_breakpoint): Update help strings to reflect the fact
3178 that these functions can now take more than one argument.
3179 * cli/cli-utils.c (number_is_in_list): New function.
3180 * cli/cli-utils.h (number_is_in_list): Export.
3182 2011-02-23 Michael Snyder <msnyder@vmware.com>
3184 * memattr.c (mem_enable_command): Use get_number_or_range.
3185 (mem_disable_command): Ditto.
3186 (mem_delete_command): Ditto.
3187 (_initialize_mem): Tweak usage message to reflect multiple
3190 2011-02-22 Doug Evans <dje@google.com>
3192 Add gdb.lookup_global_symbol python function.
3194 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
3195 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
3196 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
3198 2011-02-22 Tom Tromey <tromey@redhat.com>
3200 * language.c (language_class_name_from_physname): Rename
3201 'curr_language' argument to 'lang'; use in body.
3203 2011-02-22 Michael Snyder <msnyder@vmware.com>
3205 * cli/cli-utils.c (number_is_in_list): Check for zero return.
3207 2011-02-22 Pedro Alves <pedro@codesourcery.com>
3209 * frame-unwind.h: Fix comment to mention the this frame, not the
3212 2011-02-22 Tom Tromey <tromey@redhat.com>
3214 * symfile.c (auto_solib_limit): Remove.
3215 * symfile.h (auto_solib_limit): Remove.
3217 2011-02-22 Joel Brobecker <brobecker@adacore.com>
3219 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
3221 2011-02-21 Michael Snyder <msnyder@vmware.com>
3223 * gdbthread.h (print_thread_info): Change prototype.
3224 * thread.c (print_thread_info): Accept char* instead of int for
3225 requested_threads argument. Use new function number_is_in_list
3226 to determine which threads to list.
3227 (info_threads_command): Pass char* to print_thread_info.
3228 * cli/cli-utils.c (number_is_in_list): New function.
3229 * cli/cli-utils.h (number_is_in_list): Export.
3230 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
3232 (print_one_inferior): Ditto.
3233 (mi_cmd_list_thread_groups): Ditto.
3235 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3237 * common/Makefile.in (CFLAGS): New.
3238 (COMPILE): Add $(CFLAGS).
3240 2011-02-21 Tom Tromey <tromey@redhat.com>
3242 * breakpoint.c (catch_syscall_command_1): Fix typo.
3244 2011-02-21 Tom Tromey <tromey@redhat.com>
3246 * reverse.c: Include cli-utils.h.
3247 * printcmd.c: Include cli-utils.h.
3248 (string_printf): Use skip_spaces.
3249 * cli/cli-utils.h: New file.
3250 * cli/cli-utils.c: New file.
3251 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
3252 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
3253 * breakpoint.h (get_number, get_number_or_range): Move to
3255 * breakpoint.c: Include cli-utils.h.
3256 (get_number_trailer, get_number, get_number_or_range)
3257 (ep_skip_leading_whitespace): Move to cli-utils.c.
3258 (create_breakpoint_sal, find_condition_and_thread)
3259 (decode_static_tracepoint_spec, watch_command_1)
3260 (watch_maybe_just_location, ep_parse_optional_if_clause)
3261 (catch_fork_command_1, catch_exec_command_1)
3262 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
3263 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
3264 (SUBDIR_CLI_SRCS): Add cli-utils.c.
3265 (HFILES_NO_SRCDIR): Add cli-utils.h.
3266 (cli-utils.o): New target.
3268 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3270 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
3271 before calling discard_all_inferiors.
3273 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
3275 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
3276 (struct builtin_opencl_type): Remove.
3277 (builtin_opencl_type): Change return type to "struct type **".
3278 (lookup_opencl_vector_type): Update caller.
3279 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
3280 (build_opencl_types): Install plain array of "struct type *"
3281 instead of "struct builtin_opencl_type".
3283 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3284 Ulrich Weigand <uweigand@de.ibm.com>
3286 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
3287 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
3288 (struct arm_linux_hwbp_cap): New type.
3289 (arm_linux_get_hwbp_cap): New function.
3290 (arm_linux_get_hw_breakpoint_count): Likewise.
3291 (arm_linux_get_hw_watchpoint_count): Likewise.
3292 (arm_linux_can_use_hw_breakpoint): Likewise.
3293 (arm_hwbp_type): New type.
3294 (arm_hwbp_control_t): Likewise.
3295 (struct arm_linux_hw_breakpoint): Likewise.
3296 (struct arm_linux_thread_points): Likewise.
3297 (arm_threads): New global variable.
3298 (arm_linux_find_breakpoints_by_tid): New function.
3299 (arm_hwbp_control_initialize): Likewise.
3300 (arm_hwbp_control_is_enabled): Likewise.
3301 (arm_hwbp_control_disable): Likewise.
3302 (arm_linux_hw_breakpoint_initialize): Likewise.
3303 (arm_linux_get_hwbp_type): Likewise.
3304 (arm_linux_hw_watchpoint_initialize): Likewise.
3305 (arm_linux_hw_breakpoint_equal): Likewise.
3306 (arm_linux_insert_hw_breakpoint1): Likewise.
3307 (arm_linux_remove_hw_breakpoint1): Likewise.
3308 (arm_linux_insert_hw_breakpoint): Likewise.
3309 (arm_linux_remove_hw_breakpoint): Likewise.
3310 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
3311 (arm_linux_insert_watchpoint): Likewise.
3312 (arm_linux_remove_watchpoint): Likewise.
3313 (arm_linux_stopped_data_address): Likewise.
3314 (arm_linux_stopped_by_watchpoint): Likewise.
3315 (arm_linux_watchpoint_addr_within_range): Likewise.
3316 (arm_linux_new_thread): Likewise.
3317 (arm_linux_thread_exit): Likewise.
3318 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
3319 related target callbacks. Register arm_linux_new_thread and
3320 arm_linux_thread_exit.
3321 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
3322 * arm-tdep.c (arm_pc_is_thumb): Make global.
3323 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
3325 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
3327 * breakpoint.c (update_watchpoint): Do not attempt to recreate
3328 per-frame locations while within a function epilogue.
3330 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
3332 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
3333 to GNU coding standards.
3335 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
3337 Allow use of mingw native on Windows 95 OS.
3338 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
3339 (ser_windows_close): Only call CancelIo if function exists.
3340 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
3341 to check for existence of CancelIo function in kernel32 DLL.
3343 2011-02-21 Hui Zhu <teawater@gmail.com>
3345 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3346 * ax-gdb.c (gen_printf_expr_callback): New function.
3347 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3348 * ax-general.c (ax_memcpy): New function.
3349 (ax_print): Handle "printf".
3351 * ax.h (ax_memcpy): Forward declare.
3352 * common/ax.def (invalid2): Removed.
3353 (printf): New entry.
3354 * printcmd.c (printcmd.h): New include.
3355 (string_printf): New function.
3356 (ui_printf): Removed.
3357 (printf_command): Remove static. Call string_printf.
3358 (eval_command): Call string_printf.
3359 * printcmd.h: New file.
3360 * tracepoint.c (validate_actionline,
3361 encode_actions_1): handle printf_command.
3363 2011-02-19 Michael Snyder <msnyder@vmware.com>
3365 * reverse.c (delete_one_bookmark): Argument is now bookmark
3366 id rather than pointer to bookmark struct.
3367 (delete_bookmark_command): Use get_number_or_range.
3368 (goto_bookmark_command): Parse with get_number instead of strtoul.
3369 (bookmark_1): New function. Print info for one bookmark.
3370 (bookmarks_info): Use get_number_or_range and bookmark_1.
3372 2011-02-18 Michael Snyder <msnyder@vmware.com>
3374 * thread.c (info_threads_command): Re-implement using
3375 get_number_or_range.
3376 (thread_apply_command): Ditto.
3378 2011-02-18 Tom Tromey <tromey@redhat.com>
3380 * common/ax.def: New file.
3381 * ax.h (enum agent_op): Use ax.def.
3382 * ax-general.c (aop_map): Use ax.def.
3384 2011-02-18 Tom Tromey <tromey@redhat.com>
3386 * ax-general.c (aop_map): Add pick and rot.
3387 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
3388 <DW_OP_rot>: Implement.
3389 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
3391 * ax-general.c (ax_pick): New function.
3393 2011-02-18 Tom Tromey <tromey@redhat.com>
3395 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
3397 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3398 Tom Tromey <tromey@redhat.com>
3400 * cp-support.c (make_symbol_overload_list_namespace): Do not call
3401 make_symbol_overload_list_block with NULL BLOCK.
3402 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
3404 2011-02-18 Pedro Alves <pedro@codesourcery.com>
3406 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
3407 * breakpoint.h (get_number_or_range): Declare.
3408 * printcmd.c (ALL_DISPLAYS): Declare.
3409 (delete_display): Reimplement taking a display pointer.
3410 (undisplay_command): Accept a range of displays to delete, using
3411 get_number_or_range.
3413 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3415 * c-valprint.c (c_val_print): Add embedded_offset to address
3416 for arrays of unspecified length.
3417 * p-valprint.c (pascal_val_print): Likewise.
3419 2011-02-18 Yao Qi <yao@codesourcery.com>
3421 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
3422 (arm_process_displaced_insn): .. here. Remove parameter INSN.
3423 (thumb_process_displaced_insn): New.
3424 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
3425 call to arm_process_displaced_insn.
3426 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
3428 2011-02-17 Tom Tromey <tromey@redhat.com>
3430 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
3431 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
3432 compile_dwarf_to_ax. No longer static. Call
3433 dwarf2_compile_cfa_to_ax.
3434 (locexpr_tracepoint_var_ref): Update.
3435 (loclist_tracepoint_var_ref): Update.
3436 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
3437 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
3438 argument; add 'gdbarch' and 'pc'.
3439 (dwarf2_compile_cfa_to_ax): New function.
3440 (dwarf2_frame_cache): Update.
3442 2011-02-17 Joel Brobecker <brobecker@adacore.com>
3444 * ada-lang.c (ada_type_of_array): Fix the size of the array
3445 in the case of an unconstrained packed array.
3447 2011-02-17 Yao Qi <yao@codesourcery.com>
3449 * common/Makefile.in: Add more targets for make.
3451 2011-02-16 Tom Tromey <tromey@redhat.com>
3453 * dwarf2loc.c (unimplemented): Fix typo.
3455 2011-02-16 Tom Tromey <tromey@redhat.com>
3457 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
3458 (compile_dwarf_to_ax) <default>: Use unimplemented.
3459 <DW_OP_deref>: Update.
3460 (disassemble_dwarf_expression): Update.
3461 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
3462 (decode_locdesc): Update.
3463 * dwarf2expr.h (dwarf_stack_op_name): Update.
3465 2011-02-16 Tom Tromey <tromey@redhat.com>
3467 * ax.h (struct aop_map) <name>: Now const.
3469 2011-02-16 Tom Tromey <tromey@redhat.com>
3471 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
3474 2011-02-16 Yao Qi <yao@codesourcery.com>
3476 * infrun.c (get_displaced_step_closure_by_addr): New.
3477 * inferior.h: Declare it.
3478 * arm-tdep.c: (arm_pc_is_thumb): Call
3479 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
3482 2011-02-16 Pedro Alves <pedro@codesourcery.com>
3483 Jan Kratochvil <jan.kratochvil@redhat.com>
3486 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
3488 2011-02-16 Pedro Alves <pedro@codesourcery.com>
3489 Jan Kratochvil <jan.kratochvil@redhat.com>
3491 * value.c (value_contents_copy_raw): Extend describing comment.
3492 Assert that the destination contents we're overwriting are wholly
3494 (value_contents_copy): Extend describing comment.
3496 2011-02-16 Pedro Alves <pedro@codesourcery.com>
3497 Jan Kratochvil <jan.kratochvil@redhat.com>
3499 * value.c (value_available_contents_eq): Remove redundant local
3500 variables. Fix available contents comparision.
3501 * value.h (value_available_contents_eq): Extend describing
3504 2011-02-16 Yao Qi <yao@codesourcery.com>
3506 * thread.c (info_threads_command): Add missing i18n markup and remove
3509 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
3511 * breakpoint.c (longjmp_names): New variable.
3512 (struct breakpoint_objfile_data): New type.
3513 (breakpoint_objfile_key): New variable.
3514 (msym_not_found): New variable.
3515 (msym_not_found_p): New predicate.
3516 (get_breakpoint_objfile_data): New function.
3517 (create_overlay_event_breakpoint): Check per-objfile cache for
3519 (create_longjmp_master_breakpoint): Likewise.
3520 (create_std_terminate_master_breakpoint): Likewise.
3521 (create_exception_master_breakpoint): Likewise.
3522 (_initialize_breakpoint): Register per-objfile data key.
3524 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
3526 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
3528 (create_longjmp_master_breakpoint): Loop over longjmp names.
3529 (create_std_terminate_master_breakpoint): Const-propagate parameter
3531 (update_breakpoints_after_exec): Adjust.
3532 (breakpoint_re_set): Adjust.
3534 2011-02-15 Michael Snyder <msnyder@vmware.com>
3536 * thread.c (info_threads_command): Process arg as thread id,
3537 or list of thread ids.
3538 (thread_find_command): New command.
3539 (_initialize_thread): Document argument for info threads.
3540 Document 'thread find' command.
3541 * NEWS: Document new command "thread find".
3543 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3545 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
3546 * aclocal.m4: Regenerated with aclocal-1.11.1.
3547 * common/configure: Regenerate with autoconf-2.64.
3549 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
3551 * opencl-lang.c (build_opencl_types): Set the size of the built-in
3552 bool data type to a size of one byte.
3554 2011-02-15 Pedro Alves <pedro@codesourcery.com>
3555 Jan Kratochvil <jan.kratochvil@redhat.com>
3557 * target.c (memory_xfer_live_readonly_partial): Document where to
3558 look for interface description.
3560 2011-02-15 Yao Qi <yao@codesourcery.com>
3563 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
3564 order to store PC value on stack instead of text section.
3566 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
3568 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
3569 the EFP register set size.
3570 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
3571 data from the VMX register.
3572 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
3573 and write data from/to the VMX register.
3575 2011-02-14 Michael Snyder <msnyder@vmware.com>
3577 * command.h (enum command_class): New class 'no_set_class', for
3578 "show" commands without a corresponding "set" command.
3579 * value.c (_initialize_values): Use 'no_set_class' for "show values".
3580 * copying.c (_initialize_copying): Ditto for "show copying" and
3582 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
3584 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
3585 which there is no corresponding "set" command (eg. "show copying").
3587 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3588 Jan Kratochvil <jan.kratochvil@redhat.com>
3590 * exec.c (section_table_available_memory): Change `len' parameter
3592 * exec.h (section_table_available_memory): Ditto.
3593 * value.h (read_value_memory): Rename the `offset' parameter to
3596 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3597 Jan Kratochvil <jan.kratochvil@redhat.com>
3599 * memrange.c (compare_mem_ranges): Mention sort order in
3601 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
3602 * tracepoint.c (traceframe_available_memory): Extend comment to
3603 mention what happens to RESULT when the target does not support
3606 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3607 Jan Kratochvil <jan.kratochvil@redhat.com>
3609 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
3612 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3614 * value.c (value_bits_valid, value_bits_synthetic_pointer):
3615 No longer handle NULL values.
3617 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3619 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
3620 * value.c: Include "exceptions.h".
3621 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
3623 * cp-abi.c: Include gdb_assert.h.
3624 (baseclass_offset): Add `embedded_offset' and `val' parameters.
3625 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
3627 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
3628 parameters. No longer returns -1 on error.
3629 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
3631 * cp-valprint.c: Include exceptions.h.
3632 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
3633 the baseclass_offset. Handle unavailable base classes. Use
3634 val_print_invalid_address.
3635 * p-valprint.c: Include exceptions.h.
3636 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
3637 when fetching the baseclass_offset. No longer expect
3638 baseclass_offset returning -1. Handle unavailable base classes.
3639 Use val_print_invalid_address.
3640 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
3641 `valaddr' parameter, and change its type to gdb_byte pointer. Add
3642 `embedded_offset' and `val' parameters. Adjust.
3643 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
3644 parameter, and change its type to gdb_byte pointer. Add
3645 `embedded_offset' and `val' parameters. Adjust. No longer expect
3646 baseclass_offset returning -1.
3647 (value_dynamic_cast): Use value_contents_for_printing rather than
3648 value_contents. Adjust.
3649 (search_struct_field): No longer expect baseclass_offset returning
3651 (search_struct_method): If reading memory from the target is
3652 necessary, wrap it in a new value to pass to baseclass_offset. No
3653 longer expect baseclass_offset returning -1.
3654 (find_method_list): No longer expect baseclass_offset returning
3655 -1. Use value_contents_for_printing rather than value_contents.
3656 * valprint.c (val_print_invalid_address): New function.
3657 * valprint.h (val_print_invalid_address): Declare.
3658 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
3659 and `val' parameters. No longer expect baseclass_offset returning
3661 * gnu-v2-abi.c: Include "exceptions.h".
3662 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
3663 parameters. Handle unavailable memory. Recurse through
3664 gnuv2_baseclass_offset directly, rather than through
3665 baseclass_offset. No longer returns -1 on not found, instead
3667 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
3668 `val' parameters. Adjust.
3670 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3672 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
3673 almost but not quite adjacent.
3675 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3677 * value.h (value_entirely_available): Declare.
3678 * value.c (value_entirely_available): New function.
3679 * c-valprint.c (c_value_print): Don't try fetching the pointer's
3680 real type if the pointer is unavailable.
3682 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3684 * valops.c (value_repeat): Use read_value_memory instead of
3687 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3689 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
3690 * value.c (value_contents_copy_raw, value_contents_copy): New
3692 (value_primitive_field): Use value_contents_copy_raw instead of
3694 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
3696 (value_array, value_slice): Ditto.
3697 * valarith.c (value_subscripted_rvalue): Use
3698 value_contents_copy_raw instead of memcpy.
3700 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3702 <unavailable> references.
3704 * valops.c (get_value_at): Use value_from_contents_and_address,
3705 avoiding read_memory.
3707 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3709 * c-valprint.c (c_val_print): Print a string with unavailable
3710 contents as an array.
3712 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3714 * value.h (unpack_bits_as_long): Delete declaration.
3715 (unpack_value_bits_as_long): Declare.
3716 (unpack_value_field_as_long): Declare.
3717 (value_field_bitfield): Declare.
3718 * value.c (unpack_bits_as_long): Rename to...
3719 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
3720 value parameters. Return the extracted result in a new output
3721 parameter. If the value contents are unavailable, return false,
3722 otherwise return true.
3723 (unpack_value_bits_as_long): New.
3724 (unpack_field_as_long): Rename to...
3725 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
3726 Add embedded_offset and value parameters. Return the extracted
3727 result in a new output parameter. If the value contents are
3728 unavailable, return false, otherwise return true.
3729 (unpack_value_field_as_long): New.
3730 (unpack_field_as_long_1): New.
3731 (unpack_field_as_long): Reimplement as wrapper around
3732 unpack_value_field_as_long_1.
3733 (value_field_bitfield): New function.
3734 * valops.c (value_fetch_lazy): When fetching a bitfield, use
3735 unpack_value_bits_as_long. Mark the value as unavailable, if it
3737 * jv-valprint.c (java_print_value_fields): Use
3738 value_field_bitfield.
3739 * p-valprint.c (pascal_object_print_value_fields): Use
3740 value_field_bitfield.
3741 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
3743 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3745 * value.c (get_internalvar_integer): Also return the int value of
3746 TYPE_CODE_INT INTERNALVAR_VALUE values.
3747 (set_internalvar): Don't special case TYPE_CODE_INT.
3749 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3751 * value.c (struct internalvar) <enum internalvar_kind>: Remove
3752 INTERNALVAR_POINTER.
3754 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
3755 (set_internalvar): Remove special TYPE_CODE_PTR handling.
3756 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
3758 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3760 * value.h (value_available_contents_eq): Declare.
3761 * value.c (find_first_range_overlap): New function.
3762 (value_available_contents_eq): New function.
3763 * valprint.c (val_print_array_elements): Use
3764 value_available_contents_eq.
3765 * ada-valprint.c (val_print_packed_array_elements): Use
3766 value_available_contents_eq.
3767 * jv-valprint.c (java_value_print): Use
3768 value_available_contents_eq.
3770 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3772 * target.c (target_read_live_memory): New function.
3773 (memory_xfer_live_readonly_partial): New.
3774 (memory_xfer_partial): If reading from a traceframe, fallback to
3775 reading unavailable read-only memory from read-only regions of
3777 * tracepoint.c (disconnect_tracing): Adjust.
3778 (set_current_traceframe): New, factored out from
3779 set_traceframe_number.
3780 (set_traceframe_number): Reimplement to only change the traceframe
3781 number on the GDB side.
3782 (do_restore_current_traceframe_cleanup): Adjust.
3783 (make_cleanup_restore_traceframe_number): New.
3784 (cur_traceframe_number): New global.
3785 (tfile_open): Set cur_traceframe_number to no traceframe.
3786 (set_tfile_traceframe): New function.
3787 (tfile_trace_find): If looking up a traceframe using any method
3788 other than by number, make sure the current tfile traceframe
3789 matches gdb's current traceframe. Update the current tfile
3790 traceframe if the lookup succeeded.
3791 (tfile_fetch_registers, tfile_xfer_partial)
3792 (tfile_get_trace_state_variable_value): Make sure the remote
3793 traceframe matches gdb's current traceframe.
3794 * remote.c (remote_traceframe_number): New global.
3795 (remote_open_1): Set it to -1.
3796 (set_remote_traceframe): New function.
3797 (remote_fetch_registers, remote_store_registers)
3798 (remote_xfer_memory, remote_xfer_partial)
3799 (remote_get_trace_state_variable_value): Make sure the remote
3800 traceframe matches gdb's current traceframe.
3801 (remote_trace_find): If looking up a traceframe using any method
3802 other than by number, make sure the current remote traceframe
3803 matches gdb's current traceframe. Update the current remote
3804 traceframe if the lookup succeeded.
3805 * infrun.c (fetch_inferior_event): Adjust.
3806 * tracepoint.h (set_current_traceframe): Declare.
3807 (get_traceframe_number, set_traceframe_number): Add describing
3810 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3812 Mark pieces of values as unavailable if the corresponding memory
3815 * valops.c: Include tracepoint.h.
3816 (value_fetch_lazy): Use read_value_memory.
3817 (read_value_memory): New.
3818 * value.h (read_value_memory): Declare.
3819 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
3820 * exec.c (section_table_available_memory): New function.
3821 * exec.h (section_table_available_memory): Declare.
3823 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3825 * Makefile.in (SFILES): Add memrange.c.
3826 (HFILES_NO_SRCDIR): Add memrange.h.
3827 (COMMON_OBS): Add memrange.o.
3828 * memrange.c: New file.
3829 * memrange.h: New file.
3830 * tracepoint.c: Include memrange.h.
3831 (struct mem_range): Delete.
3832 (mem_range_s): Delete.
3833 (traceframe_available_memory): New function.
3834 * tracepoint.h (traceframe_available_memory): Declare.
3836 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3838 * target.h (struct traceframe_info): Forward declare.
3839 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
3840 (struct target_ops) <to_traceframe_info>: New field.
3841 (target_traceframe_info): New.
3842 * target.c (update_current_target): Inherit and default
3844 * remote.c (PACKET_qXfer_traceframe_info): New.
3845 (remote_protocol_features): Register qXfer:traceframe-info:read.
3846 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
3847 (remote_traceframe_info): New.
3848 (init_remote_ops): Install it.
3849 (_initialize_remote): Install "set/show remote traceframe-info"
3851 * tracepoint.h (parse_traceframe_info): Declare.
3852 * tracepoint.c (struct mem_range): New.
3853 (mem_range_s): New typedef.
3854 (struct traceframe_info): New.
3855 (traceframe_info): New global.
3856 (free_traceframe_info): New function.
3857 (clear_traceframe_info): New function.
3858 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
3860 (build_traceframe_info): New function.
3861 (tfile_traceframe_info): New function.
3862 (init_tfile_ops): Install tfile_traceframe_info.
3863 (traceframe_info_start_memory, free_result): New functions.
3864 (memory_attributes, traceframe_info_elements): New globals.
3865 (parse_traceframe_info, get_traceframe_info): New functions.
3866 * features/traceframe-info.dtd: New file.
3867 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
3869 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3871 Base support for <unavailable> value contents.
3873 * value.h (value_bytes_available): Declare.
3874 (mark_value_bytes_unavailable): Declare.
3875 * value.c (struct range): New struct.
3876 (range_s): New typedef.
3877 (ranges_overlap): New function.
3878 (range_lessthan): New function.
3879 (ranges_contain_p): New function.
3880 (struct value) <unavailable>: New field.
3881 (value_bytes_available): New function.
3882 (mark_value_bytes_unavailable): New function.
3883 (require_not_optimized_out): Constify parameter.
3884 (require_available): New function.
3885 (value_contents_all, value_contents): Require all bytes be
3887 (value_free): Free `unavailable'.
3888 (value_copy): Copy `unavailable'.
3889 * valprint.h (val_print_unavailable): Declare.
3890 * valprint.c (valprint_check_validity): Rename `offset' parameter
3891 to `embedded_offset'. If printing a scalar, check whether the
3892 value chunk is available.
3893 (val_print_unavailable): New.
3894 (val_print_scalar_formatted): Check whether the value is
3896 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
3897 pretty-printing unavailable values.
3899 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3901 Fix const/volatile qualifiers of C++ types, PR c++/12328.
3902 * c-typeprint.c (c_type_print_args): Update the function comment. New
3903 variable param_type, initialize it. Remove const/volatile qualifiers
3904 for language_cplus and !show_artificial. Use param_type.
3906 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3908 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
3909 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
3910 * symtab.h (struct symtab) <next>: Comment extension.
3912 2011-02-12 Yao Qi <yao@codesourcery.com>
3914 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
3916 2011-02-11 Yao Qi <yao@codesourcery.com>
3918 * common/Makefile.in: Add copyright header.
3920 2011-02-11 Pedro Alves <pedro@codesourcery.com>
3922 * infrun.c (proceed): Move switching out and in of tfind mode from
3924 (fetch_inferior_event): ... to here.
3926 2011-02-11 Yao Qi <yao@codesourcery.com>
3928 * Makefile.in: Remove signals.o from COMMON_OBS. Link
3930 * configure.ac: Add common to sub dir.
3931 * configure: Regenerate.
3933 2011-02-11 Yao Qi <yao@codesourcery.com>
3937 * common/Makefile.in: New.
3938 * common/configure.ac: New.
3939 * common/aclocal.m4: New.
3940 * common/configure: Generate.
3942 2011-02-10 Pedro Alves <pedro@codesourcery.com>
3944 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
3945 side of the parenthesis.
3948 2010-07-13 Jakub Jelinek <jakub@redhat.com>
3949 * vec.h (VEC_block_remove): Fix comment.
3951 2011-02-08 Michael Snyder <msnyder@vmware.com>
3953 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
3955 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3957 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
3958 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
3961 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3964 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
3966 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
3967 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
3969 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
3971 * dwarf2read.c (read_subroutine_type): Set special calling
3972 convention flag for functions compiled by IBM XL C for OpenCL.
3973 * ppc-sysv-tdep.c: Include "dwarf2.h"
3974 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
3976 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
3977 IBM OpenCL vector types calling convention.
3978 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
3979 (ppc_sysv_abi_broken_return_value): Likewise.
3980 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
3981 types calling convention.
3982 (ppc64_sysv_abi_return_value): Likewise.
3983 * spu-tdep.c: Include "dwarf2.h"
3984 (spu_return_value): Implement IBM OpenCL vector types calling
3987 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
3989 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
3990 correct ABI for AltiVec vector arguments.
3992 2011-02-07 Pedro Alves <pedro@codesourcery.com>
3994 * valprint.c (val_print): Extend comment.
3995 * ada-valprint.c (ada_valprint): Rewrite comment deferring
3996 interface explanation to val_print.
3997 (ada_val_print_array): Adjust comment to current interface.
3998 (print_field_values): Adjust comment to current interface.
3999 * c-valprint.c (c_val_print): Rewrite comment deferring interface
4000 explanation to val_print.
4001 * f-valprint.c (f_val_print): Ditto.
4002 * jv-valprint.c (java_val_print): Ditto.
4003 * m2-valprint.c (m2_val_print): Ditto.
4004 * p-valprint.c (pascal_val_print): Ditto.
4006 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
4008 * breakpoint.c (parse_breakpoint_sals): Fix description.
4010 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
4011 Oguz Kayral <oguzkayral@gmail.com>
4013 * python/py-inferior.c (python_on_normal_stop): New function.
4014 (python_on_resume): New function.
4015 (python_inferior_exit): New function.
4016 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
4017 inferior_exit observers.
4018 * python/py-evtregistry.c: New file.
4019 * python/py-threadevent.c : New file.
4020 * python/py-event.c: New file.
4021 * python/py-evts.c: New file.
4022 * python/py-continueevent.c: New file.
4023 * python/py-bpevent.c: New file.
4024 * python/py-signalevent.c: New file.
4025 * python/py-exetiedevent.c: New file.
4026 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
4027 Move struct breakpoint_object from here...
4028 * python/python-internal.h: ... to here.
4029 * python/py-event.h: New file.
4030 * python/py-events.h: New file.
4031 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
4032 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
4033 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
4034 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
4035 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
4036 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
4037 Add build rules for all the above.
4039 2011-02-04 Tom Tromey <tromey@redhat.com>
4041 * dwarf2read.c (dwarf2_section_empty_p): New function.
4042 (dwarf2_read_section): Use dwarf2_section_empty_p.
4043 (dwarf2_section_size): New function.
4044 (dwarf2_get_section_info): Unconditionally read section.
4045 (dwarf2_read_index): Use dwarf2_section_empty_p.
4046 (partial_read_comp_unit_head): Use dwarf2_section_size.
4047 (dwarf2_symbol_mark_computed): Likewise.
4049 2011-02-04 David Daney <ddaney@caviumnetworks.com>
4051 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
4053 2011-02-04 David Daney <ddaney@caviumnetworks.com>
4055 * mips-linux-tdep.c: Include xml-syscall.h.
4056 (mips_linux_get_syscall_number): New function.
4057 (mips_linux_init_abi): Add calls to
4058 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
4059 * data-directory/Makefile.in (SYSCALLS_FILES): Add
4060 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
4061 * syscalls/mips-n32-linux.xml: New file.
4062 * syscalls/mips-n64-linux.xml: New file.
4063 * syscalls/mips-o32-linux.xml: New file.
4065 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4067 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
4068 Complain about inverted range entries.
4069 (dwarf2_record_block_ranges): Likewise.
4071 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4074 * breakpoint.c (update_watchpoint): Fix name of the
4075 update_global_location_list function.
4076 (print_one_breakpoint): Fix typo.
4077 (_initialize_breakpoint): Remove extra space in hbreak help
4079 * breakpoint.h (struct bp_location) <length>: Fix field
4082 2011-02-04 Pedro Alves <pedro@codesourcery.com>
4084 * regcache.c (registers_changed_ptid): Don't explictly always
4085 clear `current_regcache'. Only clear current_thread_ptid and
4086 current_thread_arch when PTID matches. Only reinit the frame
4087 cache if PTID matches the current inferior_ptid. Move alloca(0)
4089 (registers_changed): ... here.
4091 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
4093 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
4094 starts with __stack_chk_guard as stack guard symbol.
4096 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
4098 * disasm.c (compare_lines): Handle the end of sequence markers
4099 within the line table to better support disassembling over
4100 compilation unit boundaries.
4102 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4104 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
4105 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
4106 implementation even if no symbols are available.
4107 (thumb_analyze_prologue): Update call to skip_prologue_function.
4108 (arm_analyze_prologue): Likewise.
4110 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4112 * arm-tdep.c: Include "observer.h".
4113 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
4114 (arm_exidx_data_key): New static variable.
4115 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
4116 (struct arm_exidx_data): Likewise.
4117 (arm_exidx_data_free): New function.
4118 (arm_compare_exidx_entries): Likewise.
4119 (arm_obj_section_from_vma): Likewise.
4120 (arm_exidx_new_objfile): Likewise.
4121 (arm_find_exidx_entry): Likewise.
4122 (arm_exidx_fill_cache): Likewise.
4123 (arm_exidx_unwind_sniffer): Likewise.
4124 (arm_exidx_unwind): New global variable.
4125 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
4126 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
4127 observer. Register arm_exidx_data_key as objfile data.
4129 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4131 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
4132 due to accessing uninitialized variable. Fix indentation.
4134 2011-02-02 Pedro Alves <pedro@codesourcery.com>
4136 * c-valprint.c (c_value_print): When doing virtual base pointer
4137 adjustment, create a new value with adjusted contents rather than
4138 changing the contents of the value being printed (and getting it
4141 2011-02-02 Pedro Alves <pedro@codesourcery.com>
4143 * xml-support.c (xml_find_attribute): New.
4144 (xinclude_start_include): Use it.
4145 * xml-support.h (xml_find_attribute): Declare.
4146 * memory-map.c (memory_map_start_memory)
4147 (memory_map_start_property): Use xml_find_attribute.
4148 * osdata.c (osdata_start_osdata, osdata_start_column): Use
4150 * remote.c (start_thread): Use xml_find_attribute.
4151 * solib-target.c (library_list_start_segment)
4152 (library_list_start_section, library_list_start_library)
4153 (library_list_start_list): Use xml_find_attribute.
4154 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
4155 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
4156 (tdesc_start_field): Use xml_find_attribute.
4158 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
4160 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
4161 (BUILD_OCL_VTYPES): Update.
4163 2011-02-02 Joel Brobecker <brobecker@adacore.com>
4165 * configure.ac: Work around non-GNU sed limitation when computing
4166 python version number.
4167 * configure: Regenerate.
4169 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4171 Fix debug printing of TYPE_INSTANCE.
4172 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
4173 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
4175 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4177 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
4178 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
4179 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
4180 * ada-operator.inc: Rename the file to ...
4181 * ada-operator.def: ... here, wrap all the entries by macro OP.
4182 * expprint.c (op_name_standard): Remove all the entries. Include
4183 "std-operator.def" instead.
4184 * expression.h (enum exp_opcode): Include "std-operator.def" and
4185 "ada-operator.def". Move all the entries ...
4186 * std-operator.def: ... here, wrap all the entries by macro OP.
4188 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
4190 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
4191 * breakpoint.c (remove_jit_event_breakpoints): New function.
4192 * jit.c (jit_descriptor_addr): Delete.
4193 (registering_code): Delete.
4194 (clear_int): Delete.
4195 (jit_inferior_data): New variable.
4196 (struct jit_inferior_data): New type.
4197 (get_jit_inferior_data): New function.
4198 (jit_inferior_data_cleanup): New function.
4199 (jit_read_descriptor): Adjust.
4200 (jit_register_code): Adjust.
4201 (jit_breakpoint_re_set_internal): New function; move code here ...
4202 (jit_inferior_init): ... from here.
4203 (jit_breakpoint_re_set): Adjust.
4204 (jit_reset_inferior_data_and_breakpoints): New function.
4205 (jit_inferior_created_observer): Adjust.
4206 (jit_inferior_exit_hook): Adjust.
4207 (jit_executable_changed_observer): New function.
4208 (jit_event_handler): Adjust.
4209 (_initialize_jit): Adjust.
4211 2011-01-31 Michael Snyder <msnyder@vmware.com>
4213 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
4216 2011-01-31 Tom Tromey <tromey@redhat.com>
4219 * python/python.c (execute_gdb_command): Call
4220 prevent_dont_repeat.
4221 * top.c (suppress_dont_repeat): New global.
4222 (dont_repeat): Use it.
4223 (prevent_dont_repeat): New function.
4224 * command.h (prevent_dont_repeat): Declare.
4226 2011-01-31 Tom Tromey <tromey@redhat.com>
4228 * infcmd.c (finish_backward): Use breakpoint_set_silent.
4229 * python/py-breakpoint.c (bppy_set_silent): Use
4230 breakpoint_set_silent.
4231 (bppy_set_thread): Use breakpoint_set_thread.
4232 (bppy_set_task): Use breakpoint_set_task.
4233 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
4234 (breakpoint_set_task): Declare.
4235 (make_breakpoint_silent): Remove.
4236 * breakpoint.c (breakpoint_set_silent): New function.
4237 (breakpoint_set_thread): Likewise.
4238 (breakpoint_set_task): Likewise.
4239 (make_breakpoint_silent): Remove.
4241 2011-01-31 Tom Tromey <tromey@redhat.com>
4243 * breakpoint.h (user_breakpoint_p): Declare.
4244 * breakpoint.c (user_breakpoint_p): New function.
4245 (breakpoint_1): Use it.
4246 (save_breakpoints): Likewise.
4248 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4250 * configure.ac: Add handling of Python distribution on Windows.
4251 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
4252 sysconfig variables are not defined, then do not use them.
4253 On Windows, if LIBPL is not defined, then use prefix + '/libs'
4254 instead. On Windows, return all paths using forward-slashes
4255 rather than backslashes.
4257 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4259 * configure.ac: Remove fallback behavior for building
4260 against Python. Remove tweaking of Python include path.
4261 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
4262 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
4263 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
4264 Always restore CPPFLAGS and LIBS after linking test.
4265 * configure: Regenerated.
4266 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
4267 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
4268 * python/python-internal.h: Adjust includes of Python .h files.
4270 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4272 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
4275 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4277 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
4280 2011-01-31 Yao Qi <yao@codesourcery.com>
4282 * arm-linux-nat.c: Update calls to regcache_register_status
4283 instead of regcache_valid_p.
4284 * aix-thread.c: Likewise.
4285 * i386gnu-nat.c: Likewise.
4287 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4290 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
4291 touching TYPE_FIELD_ARTIFICIAL.
4293 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
4295 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
4298 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4300 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
4301 selected, don't try iterating over the traceframe's blocks.
4302 (tfile_has_stack): If there's no traceframe selected, then there's
4304 (tfile_has_registers): If there's no traceframe selected, then
4305 there's no registers.
4307 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4309 * target.c (memory_xfer_partial): No need to restore shadows if we
4310 haven't read anything.
4312 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4314 * mips-tdep.c (mips_print_register): Use get_frame_register_value
4315 and val_print_scalar_formatted.
4317 2011-01-27 Pedro Alves <pedro@codesourcery.com>
4319 * tracepoint.c (tfile_read): New.
4320 (tfile_open): Use it.
4321 (tfile_get_traceframe_address): Use it.
4322 (tfile_trace_find): Use it.
4323 (walk_blocks_callback_func): New typedef.
4324 (match_blocktype): New function.
4325 (traceframe_walk_blocks): New function.
4326 (traceframe_find_block_type): New function.
4327 (tfile_fetch_registers, tfile_xfer_partial)
4328 (tfile_get_trace_state_variable_value): Use
4329 traceframe_find_block_type and tfile_read.
4331 2011-01-26 Kevin Buettner <kevinb@redhat.com>
4333 * remote-mips.c: Add internationalization mark ups. Remove
4334 trailing \n from already marked up strings.
4336 2011-01-26 Tom Tromey <tromey@redhat.com>
4338 * python/py-prettyprint.c (print_string_repr): Clear
4339 'addressprint' option when calling val_print_string.
4340 (print_children): Handle Val_pretty_default. Clear 'addressprint'
4341 option when calling val_print_string.
4343 2011-01-26 Tom Tromey <tromey@redhat.com>
4345 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
4347 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
4349 (gdb_py_longest, gdb_py_ulongest): New typedefs.
4350 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
4351 (gdb_py_long_as_ulongest): New defines.
4352 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
4353 (gdb_py_int_as_long): Declare.
4354 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
4355 GDB_PY_LL_ARG, gdb_py_object_from_longest.
4356 (valpy_long): Add comment.
4357 * python/py-utils.c (get_addr_from_python): Use
4358 gdb_py_long_as_ulongest. Handle overflow properly.
4359 (gdb_py_object_from_longest): New function.
4360 (gdb_py_object_from_ulongest): Likewise.
4361 (gdb_py_int_as_long): Likewise.
4362 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
4363 * python/py-symtab.c (salpy_get_pc): Use
4364 gdb_py_long_from_ulongest.
4365 (salpy_get_line): Use PyInt_FromLong.
4366 * python/py-param.c (set_parameter_value): Use
4368 * python/py-lazy-string.c (stpy_get_address): Use
4369 gdb_py_long_from_ulongest.
4370 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
4371 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
4372 * python/py-breakpoint.c (bppy_set_thread): Use
4374 (bppy_set_task): Likewise.
4375 (bppy_set_ignore_count): Likewise.
4376 (bppy_set_hit_count): Likewise.
4377 * python/py-block.c (blpy_get_start): Use
4378 gdb_py_object_from_ulongest.
4379 (blpy_get_end): Likewise.
4380 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
4382 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
4385 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
4386 * gdb/solib.c (solib_read_symbols): Check for addr_low in
4387 equality test for objfile, initialize addr_low if needed.
4389 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4391 * tui/tui-regs.c (tui_register_format): Remove dead code.
4393 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4395 * printcmd.c (print_formatted): Use val_print_scalar_formatted
4396 instead of print_scalar_formatted.
4397 (print_scalar_formatted): Don't handle 's' format strings here,
4398 and add an assertion that we never see such format here.
4399 * valprint.h (val_print_scalar_formatted): Declare.
4400 * valprint.c (val_print_scalar_formatted): New.
4401 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
4402 instead of print_scalar_formatted.
4403 * jv-valprint.c (java_val_print): Ditto.
4404 * p-valprint.c (pascal_val_print): Ditto.
4405 * ada-valprint.c (ada_val_print_1): Ditto.
4406 * f-valprint.c (f_val_print): Ditto.
4407 * infcmd.c (registers_info): Ditto.
4408 * m2-valprint.c (m2_val_print): Ditto.
4410 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4412 * m2-valprint.c (print_unbounded_array): Pass
4413 value_contents_for_printing rather than value_contents, to
4414 m2_print_array_contents. Also pass in the value.
4416 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4418 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
4419 (save_gdb_index_command): Switch to .gdb_index version 4.
4421 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4423 * mi/mi-main.c (get_register): Use get_frame_register_value rather
4424 than frame_register, and always pass a valid value to val_print.
4426 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4428 Centralize printing "<optimized out>".
4430 * valprint.h (val_print_optimized_out): Declare.
4431 * cp-valprint.c (cp_print_value_fields): Use
4432 val_print_optimized_out.
4433 * jv-valprint.c (java_print_value_fields): Ditto.
4434 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4435 * printcmd.c (print_formatted): Ditto.
4436 * valprint.c (valprint_check_validity): Ditto.
4437 (value_check_printable): Ditto.
4438 (val_print_optimized_out): New.
4440 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4442 * infcmd.c (default_print_registers_info): Allocate values so to
4443 never pass a NULL value to val_print.
4445 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4447 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
4448 boolean. Make sure to always pass a value that matches the
4449 contents buffer to callees. Preserve `address' for following
4451 * value.c (value_contents_for_printing_const): New.
4452 (value_address): Constify value argument.
4453 * value.h (value_contents_for_printing_const): Declare.
4454 (value_address): Constify value argument.
4456 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4458 * regcache.c (struct regcache_descr): Rename
4459 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
4460 and sizeof_cooked_register_valid_p to
4461 sizeof_cooked_register_status.
4462 (init_regcache_descr): Adjust.
4463 (struct regcache): Rename register_valid_p field to
4465 (regcache_xmalloc_1, regcache_xfree, regcache_save)
4466 (do_cooked_read): Adjust.
4467 (regcache_valid_p): Rename to ...
4468 (regcache_register_status): ... this. Adjust.
4469 (regcache_invalidate): Adjust.
4470 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
4472 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
4473 as unavailable, not valid.
4474 (regcache_dump): Adjust.
4475 * regcache.h (enum register_status): New.
4476 (regcache_register_status): Declare.
4477 (regcache_invalidate): Delete declaration.
4478 * corelow.c (get_core_registers): Adjust.
4479 * tracepoint.c (tfile_fetch_registers): Adjust.
4480 * trad-frame.c (REG_VALUE): Rename to ...
4481 (TF_REG_VALUE): ... this.
4482 (REG_UNKNOWN): Rename to ...
4483 (TF_REG_UNKNOWN): ... this.
4484 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
4485 * mi/mi-main.c (register_changed_p): Adjust.
4487 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4489 * regcache.c (struct regcache_descr): Remove outdated comment.
4490 (init_regcache_descr): Remove sizeof_raw_register_valid_p
4492 (regcache_xmalloc): Rename to ...
4493 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
4494 Allocate the regcache type accordingly.
4495 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
4496 (regcache_xfree): Asser the source is also readonly. Copy sizeof
4497 cooked registers, not raw.
4498 (regcache_dup_no_passthrough): Delete.
4499 (get_thread_arch_regcache): Use regcache_xmalloc_1.
4500 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
4501 mention obsolete write_register_bytes.
4502 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
4504 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4506 Stop remote_read_bytes from handling partial reads itself.
4508 * remote-fileio.c: Include target.h.
4509 (remote_fileio_write_bytes): Delete.
4510 (remote_fileio_func_open, remote_fileio_func_write)
4511 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
4513 (remote_fileio_func_stat): Use target_read_memory and
4514 target_write_memory.
4515 (remote_fileio_func_gettimeofday): Use target_write_memory.
4516 (remote_fileio_func_system): Use target_read_memory.
4517 * remote.c (remote_write_bytes): Make it static.
4518 (remote_read_bytes): Don't handle partial reads here.
4519 * remote.h (remote_read_bytes): Delete declaration.
4521 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4523 Simplify XML parsing a bit.
4525 * xml-support.h (gdb_xml_parse_quick): Declare.
4526 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
4527 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
4529 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
4530 gdb_xml_create_parser_and_cleanup_1.
4531 (gdb_xml_parse_quick): New.
4532 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
4533 * osdata.c (osdata_parse): Ditto.
4534 * remote.c (remote_threads_info): Ditto.
4535 * solib-target.c (solib_target_parse_libraries): Ditto.
4536 * xml-syscall.c (syscall_parse_xml): Ditto.
4537 * xml-tdesc.c (tdesc_parse_xml): Ditto.
4539 2011-01-24 Kevin Buettner <kevinb@redhat.com>
4541 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
4542 with remote-mips.o added to gdb_target_obs.
4543 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
4545 2011-01-24 Pedro Alves <pedro@codesourcery.com>
4547 * ada-valprint.c (val_print_packed_array_elements): Pass the
4548 correct struct value to val_print.
4549 (ada_val_print_1): Ditto.
4551 2011-01-24 Pedro Alves <pedro@codesourcery.com>
4553 Don't lose embedded_offset in printing routines throughout.
4555 * valprint.h (val_print_array_elements): Change prototype.
4556 * valprint.c (val_print_array_elements): Add `embedded_offset'
4557 parameter, and adjust to pass it down to val_print, while passing
4558 `valaddr' or `address' unmodified. Take embedded_offset into
4559 account when checking repetitions.
4560 * c-valprint.c (c_val_print): Pass embedded_offset to
4561 val_print_array_elements instead of adjusting `valaddr' and
4563 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
4564 embedded_offset to val_print_array_elements instead of adjusting
4566 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
4567 * p-valprint.c (pascal_val_print): Pass embedded_offset to
4568 val_print_array_elements and pascal_object_print_value_fields
4569 instead of adjusting `valaddr'.
4570 (pascal_object_print_value_fields): Add `offset' parameter, and
4572 (pascal_object_print_value): Add `offset' parameter, and adjust to
4574 (pascal_object_print_static_field): Use
4575 value_contents_for_printing/value_embedded_offset, rather than
4577 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
4578 parameter, and adjust to use it. Use
4579 value_contents_for_printing/value_embedded_offset, rather than
4581 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
4582 (ada_val_print_array): Add `offset' parameter, and adjust to use
4584 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
4585 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
4586 Instead work with offsets. Use
4587 value_contents_for_printing/value_embedded_offset, rather than
4588 value_contents. Change `defer_val_int' local type to CORE_ADDR,
4589 and use value_from_pointer to extract a target pointer, rather
4590 than value_from_longest.
4591 (print_variant_part): Add `offset' parameter. Replace
4592 `outer_valaddr' parameter by a new `outer_offset' parameter.
4593 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4594 (ada_value_print): Use
4595 value_contents_for_printing/value_embedded_offset, rather than
4597 (print_record): Add `offset' parameter, and adjust to pass it
4599 (print_field_values): Add `offset' parameter. Replace
4600 `outer_valaddr' parameter by a new `outer_offset' parameter.
4601 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4602 Use value_contents_for_printing/value_embedded_offset, rather than
4604 * d-valprint.c (dynamic_array_type): Use
4605 value_contents_for_printing/value_embedded_offset, rather than
4607 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
4608 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4609 (java_print_value_fields): Take `offset' into account. Don't
4610 re-adjust `valaddr'. Instead pass down adjusted offsets.
4611 (java_val_print): Take `embedded_offset' into account. Pass it to
4612 java_print_value_fields.
4613 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
4614 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
4615 down adjusted offsets.
4616 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
4617 (f_val_print): Take `embedded_offset' into account.
4619 2011-01-21 Joel Brobecker <brobecker@adacore.com>
4621 * inflow.c: Include "gdbcmd.h".
4622 (interactive_mode): New static global, moved here from top.c.
4623 (show_interactive_mode): New function, moved here from top.c.
4624 use gdb_has_a_terminal instead of input_from_terminal_p to
4625 determine the current mode.
4626 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
4628 (_initialize_inflow): Add the "set/show interactive-mode"
4629 commands. Moved here from top.c, after having adjusted slightly
4631 * top.c (interactive_mode, show_interactive_mode): Delete, moved
4633 (input_from_terminal_p): Remove handling of "interactive-mode"
4634 setting, moved to infow.c.
4635 (init_main): Remove creation of the "set/show interactive-mode"
4636 commands, moved to inflow.c.
4638 2011-01-19 Joel Brobecker <brobecker@adacore.com>
4640 * NEWS: Add entry for native ia64-hpux support.
4642 2011-01-19 Tom Tromey <tromey@redhat.com>
4645 * thread.c (free_thread): Free 'name'.
4646 (print_thread_info): Emit thread name. Change CLI output.
4647 (thread_name_command): New function.
4648 (do_captured_thread_select): Emit newline.
4649 (_initialize_thread): Register 'thread name' command.
4650 * target.h (struct target_ops) <to_thread_name>: New field.
4651 (target_thread_name): New macro.
4652 * target.c (update_current_target): Handle to_thread_name.
4653 * python/py-infthread.c (thpy_get_name): New function.
4654 (thpy_set_name): Likewise.
4655 (thread_object_getset): Add "name".
4656 * linux-nat.c (linux_nat_thread_name): New function.
4657 (linux_nat_add_target): Set to_thread_name.
4658 * gdbthread.h (struct thread_info) <name>: New field.
4660 2011-01-18 Joel Brobecker <brobecker@adacore.com>
4662 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
4663 (ada_val_print_1): Likewise.
4665 2011-01-18 Joel Brobecker <brobecker@adacore.com>
4667 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
4668 upper limit address is not greater than the function end address
4669 when the upper limit could not be computed using the debugging
4672 2011-01-17 Tom Tromey <tromey@redhat.com>
4674 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
4676 * utils.c: Include gdb_regex.h.
4677 (do_regfree_cleanup): New function.
4678 (make_regfree_cleanup): Likewise.
4679 (get_regcomp_error): Likewise.
4680 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
4682 2011-01-17 Tom Tromey <tromey@redhat.com>
4684 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
4687 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
4689 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
4690 for internal variables.
4691 (last_was_structop): New static variable.
4692 (COMPLETE): New token.
4693 (field_exp): New rule to group all '.' suffix handling.
4694 Add mark_struct_expression calls when approriate to be able
4695 to correctly find fields for completion.
4696 (yylex): Adapt to handle field completion and set INTVAR when
4699 2011-01-14 Yao Qi <yao@codesourcery.com>
4701 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
4702 save_reggroup, restore_reggroup and all_reggroup.
4704 2011-01-14 Joel Brobecker <brobecker@adacore.com>
4706 * ada-valprint. (ada_printchar): Use the correct type length
4707 in call to ada_emit_char.
4708 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
4710 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
4712 * solib-som.h (hpux_major_release): Declare variable here.
4713 * solib-som.c: Remove <sys/utsname.h> header.
4714 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
4715 (hpux_major_release): Make global, change default value to
4716 DEFAULT_HPUX_MAJOR_RELEASE.
4717 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
4718 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
4719 Add "solib-som.h" header.
4720 (set_hpux_major_release): New function.
4721 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
4723 2011-01-14 Mike Frysinger <vapier@gentoo.org>
4725 * configure.tgt (*-*-uclinux*): Match more Linux os targets
4727 2011-01-14 Joel Brobecker <brobecker@adacore.com>
4729 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
4730 new-line at end of warning message.
4731 (ia64_hpux_store_register): Remove trailing new-line at end of
4733 * ia64-hpux-tdep.c: Rephrase comment.
4734 * solib-ia64-hpux.c (struct dld_info): Change type of field
4735 dld_flags from "long long" to ULONGEST.
4737 2011-01-14 Pedro Alves <pedro@codesourcery.com>
4739 * target.h (deprecated_child_ops): Delete declaration.
4740 * target.c (deprecated_child_ops): Delete definition.
4742 2011-01-14 Pedro Alves <pedro@codesourcery.com>
4744 * Makefile.in (hpux-thread.o): Delete rule.
4745 * configure.ac: Don't check for HPUX DCE threads support.
4746 * configure, config.in: Regenerate.
4747 * hppa-hpux-nat.c (child_suppress_run): Delete.
4748 (hppa_hpux_child_can_run): Delete.
4749 (_initialize_hppa_hpux_nat): Don't override to_can_run.
4750 * hpux-thread.c: Delete.
4752 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4754 * hpux-thread.c (hpux_pid_to_str): Delete.
4756 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4758 * ada-valprint.c (ada_emit_char): Remove strange code.
4759 Check that c is <= UCHAR_MAX before passing it to isascii.
4760 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
4762 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4764 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
4765 to the case where instream is stdin.
4767 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4769 * ia64-tdep.h (struct regcache): Forward declare.
4770 (struct ia64_infcall_ops): New struct type.
4771 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
4773 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
4774 Renames ia64_find_global_pointer.
4775 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
4776 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
4777 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
4779 (ia64_infcall_ops): New static global constant.
4780 (ia64_gdbarch_init): Set tdep->infcall_ops.
4781 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
4782 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
4783 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
4784 (ia64_hpux_dummy_code): New static global constant.
4785 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
4786 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
4787 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
4789 (ia64_hpux_infcall_ops): New static global constant.
4790 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
4791 for inferior function calls to work properly on ia64-hpux.
4793 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4795 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
4796 * ia64-tdep.h (struct frame_info): forward declaration.
4797 (struct gdbarch_tdep): Add field size_of_register_frame.
4798 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
4799 to determine the size of the register frame.
4800 (ia64_size_of_register_frame): New function.
4801 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
4802 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
4803 (IA64_HPUX_UREG_REASON): New macro.
4804 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
4806 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
4807 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
4808 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
4811 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4813 Add support for ia64-hpux.
4814 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
4815 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
4817 * configure.host: Add handling for ia64-hpux hosts. Add associated
4819 * configure.tgt: Add handling for ia64-hpux targets.
4820 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
4821 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
4822 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
4824 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4826 [ttrace] Compute thread list immediately after attach.
4827 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
4829 (inf_ttrace_attach): Use it.
4831 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4833 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
4834 if we could not determine the frame's function address. Instead,
4835 use the frame's PC, and then continue.
4837 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4839 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
4840 not already defined.
4842 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4844 * ia64-tdep.c (ia64_struct_type_p): New function.
4845 (ia64_extract_return_value): Handle integral values that are
4846 less than 8 bytes long.
4847 (ia64_push_dummy_call): Likewise.
4849 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4851 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
4852 floatformat_ia64_ext.
4853 (floatformat_ia64_ext_big): New static const.
4854 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
4856 2011-01-12 Tom Tromey <tromey@redhat.com>
4858 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
4860 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
4861 (mi_cmd_thread_list_ids): Likewise.
4862 (mi_cmd_data_list_changed_registers): Likewise.
4863 (mi_cmd_data_list_register_values): Likewise.
4864 (mi_cmd_data_write_register_values): Likewise.
4865 (mi_cmd_data_evaluate_expression): Likewise.
4866 (mi_cmd_data_read_memory): Likewise.
4867 (mi_cmd_data_read_memory_bytes): Likewise.
4868 (mi_cmd_data_write_memory): Likewise.
4869 (mi_cmd_enable_timings): Likewise.
4870 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
4871 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
4872 (mi_cmd_var_delete): Likewise.
4873 (mi_cmd_var_set_format): Likewise.
4874 (mi_cmd_var_show_format): Likewise.
4875 (mi_cmd_var_info_num_children): Likewise.
4876 (mi_cmd_var_list_children): Likewise.
4877 (mi_cmd_var_info_type): Likewise.
4878 (mi_cmd_var_info_expression): Likewise.
4879 (mi_cmd_var_show_attributes): Likewise.
4880 (mi_cmd_var_assign): Likewise.
4881 (mi_cmd_var_update): Likewise.
4882 (mi_cmd_enable_pretty_printing): Likewise.
4883 (mi_cmd_var_set_update_range): Likewise.
4884 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
4886 (mi_cmd_target_file_put): Likewise.
4887 (mi_cmd_target_file_delete): Likewise.
4888 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
4890 (mi_cmd_stack_info_depth): Likewise.
4891 (mi_cmd_stack_list_locals): Likewise.
4892 (mi_cmd_stack_list_args): Likewise.
4893 (mi_cmd_stack_select_frame): Likewise.
4894 (mi_cmd_stack_select_frame): Likewise.
4895 (mi_cmd_stack_info_frame): Likewise.
4896 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
4898 (mi_cmd_file_list_exec_source_files): Likewise.
4899 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
4900 (mi_cmd_env_cd): Likewise.
4901 (mi_cmd_env_path): Likewise.
4902 (mi_cmd_env_dir): Likewise.
4903 (mi_cmd_inferior_tty_show): Likewise.
4904 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
4905 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
4906 (mi_cmd_break_watch): Likewise.
4908 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
4910 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
4911 (ppc_linux_insert_hw_breakpoint): Likewise.
4912 (ppc_linux_remove_hw_breakpoint): Likewise.
4913 (ppc_linux_insert_watchpoint): Likewise.
4915 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
4916 Jan Kratochvil <jan.kratochvil@redhat.com>
4918 PR fortran/11104 and DWARF unbound arrays detection.
4919 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
4920 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
4921 unspecified upper bound.
4922 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
4923 variables array_size_array, tmp_type and offset_item. New variable
4924 array. Remove call to f77_get_upperbound. New variables array_type
4925 and index. Call value_subscripted_rvalue for each dimenasion. Remove
4926 the final call to deprecated_set_value_type.
4928 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4930 Make value allocations more lazy.
4931 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
4932 instead of allocate_value and set_value_lazy when possible.
4933 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
4934 instead of allocate_value and set_value_lazy.
4935 * findvar.c (value_of_register_lazy): Likewise.
4936 (read_var_value): Remove V preallocation, call just check_typedef in
4937 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
4938 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
4939 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
4940 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
4941 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
4942 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
4943 the end, remove set_value_lazy there.
4944 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
4945 instead of allocate_value and set_value_lazy when possible.
4946 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
4947 * value.c (allocate_computed_value): Use allocate_value_lazy instead
4948 of allocate_value and set_value_lazy.
4949 (value_from_contents_and_address): Use allocate_value_lazy instead of
4950 allocate_value and set_value_lazy when possible.
4952 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
4954 * disasm.c (dump_insns): Support dumping opcodes for MI.
4955 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
4956 dumping of instruction opcodes.
4958 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
4960 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
4963 2011-01-11 Tom Tromey <tromey@redhat.com>
4965 * thread.c (do_captured_thread_select): Emit newline before
4968 2011-01-11 Michael Snyder <msnyder@vmware.com>
4970 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
4971 * score-tdep.c: Ditto.
4972 * score-tdep.h: Ditto.
4973 * ser-base.c: Ditto.
4974 * ser-go32.c: Ditto.
4977 * ser-mingw.c: Ditto.
4978 * ser-pipe.c: Ditto.
4980 * ser-unix.c: Ditto.
4981 * sh64-tdep.c: Ditto.
4982 * shnbsd-nat.c: Ditto.
4986 * solib-darwin.c: Ditto.
4987 * solib-frv.c: Ditto.
4989 * solib-irix.c: Ditto.
4990 * solib-osf.c: Ditto.
4991 * solib-pa64.c: Ditto.
4992 * solib-som.c: Ditto.
4993 * solib-spu.c: Ditto.
4994 * solib-sunos.c: Ditto.
4995 * solib-svr4.c: Ditto.
4997 * sol-thread.c: Ditto.
5001 * sparc64-linux-tdep.c: Ditto.
5002 * sparc64-tdep.c: Ditto.
5003 * sparc-linux-nat.c: Ditto.
5004 * sparc-linux-tdep.c: Ditto.
5005 * sparc-sol2-nat.c: Ditto.
5006 * sparc-sol2-tdep.c: Ditto.
5007 * sparc-tdep.c: Ditto.
5008 * sparc-tdep.h: Ditto.
5009 * spu-tdep.c: Ditto.
5010 * stabsread.c: Ditto.
5011 * stabsread.h: Ditto.
5019 * target-descriptions.c: Ditto.
5020 * target-descriptions.h: Ditto.
5022 * target-memory.c: Ditto.
5023 * terminal.h: Ditto.
5026 * tracepoint.c: Ditto.
5027 * tracepoint.h: Ditto.
5028 * trad-frame.h: Ditto.
5029 * typeprint.c: Ditto.
5031 2011-01-11 Michael Snyder <msnyder@vmware.com>
5033 * ui-file.c: Comment cleanup, mostly periods and spaces.
5038 * v850-tdep.c: Ditto.
5039 * valarith.c: Ditto.
5041 * valprint.c: Ditto.
5042 * valprint.h: Ditto.
5047 * vax-tdep.c: Ditto.
5051 * windows-nat.c: Ditto.
5052 * windows-tdep.c: Ditto.
5053 * xcoffread.c: Ditto.
5054 * xcoffsolib.c: Ditto.
5055 * xml-support.c: Ditto.
5056 * xstormy16-tdep.c: Ditto.
5057 * xtensa-tdep.c: Ditto.
5058 * xtensa-tdep.h: Ditto.
5060 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5062 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
5063 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
5065 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5066 Thiago Jung Bauermann <bauerman@br.ibm.com>
5068 Implement support for PowerPC BookE ranged watchpoints.
5070 (struct breakpoint_ops) <resources_needed>: New method.
5071 Initialize to NULL in all existing breakpoint_ops instances.
5072 (struct breakpoint) <exact>: New field.
5073 (target_exact_watchpoints): Declare external global.
5074 * breakpoint.c (target_exact_watchpoints): New global flag.
5075 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
5076 b->enable_state to bp_enabled before calling
5077 hw_watchpoint_used_count.
5078 (hw_watchpoint_used_count): Iterate over all bp_locations in a
5079 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
5081 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
5082 if the watchpoint is exact.
5083 (resources_needed_watchpoint): New function.
5084 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
5085 (watch_command_1): Set b->exact if the user asked for an exact
5086 watchpoint and one can be set.
5087 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
5088 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
5089 the user asks for an exact watchpoint and one can be set. Return
5090 number of needed debug registers to watch the expression.
5091 * gdbtypes.c (is_scalar_type): New function, based on
5092 valprint.c:scalar_type_p.
5093 (is_scalar_type_recursive): New function.
5094 * gdbtypes.h (is_scalar_type_recursive): Declare.
5095 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
5096 handle regions when ranged watchpoints are available.
5097 (create_watchpoint_request): New function.
5098 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
5099 create_watchpoint_request.
5100 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
5101 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
5102 `set powerpc' and `show powerpc' commands.
5103 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5104 Mention documentation comment in the target macro.
5105 (target_region_ok_for_hw_watchpoint): Document return value.
5107 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5109 * breakpoint.c (update_watchpoint): Decide on using a software or
5110 hardware watchpoint after the bp_locations are created.
5112 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5114 Convert hardware watchpoints to use breakpoint_ops.
5115 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
5116 <insert_location>: ... this. Return int instead of void.
5117 Accept pointer to struct bp_location instead of pointer to
5118 struct breakpoint. Adapt all implementations.
5119 (breakpoint_ops) <remove>: Rename to...
5120 <remove_location>: ... this. Accept pointer to struct bp_location
5121 instead of pointer to struct breakpoint. Adapt all implementations.
5122 * breakpoint.c (insert_catchpoint): Delete function.
5123 (insert_bp_location): Call the watchpoint or catchpoint's
5124 breakpoint_ops.insert method.
5125 (remove_breakpoint_1): Call the watchpoint or catchpoint's
5126 breakpoint_ops.remove method.
5127 (insert_watchpoint, remove_watchpoint): New functions.
5128 (watchpoint_breakpoint_ops): New structure.
5129 (watch_command_1): Initialize the OPS field.
5130 * inf-child.c (inf_child_insert_fork_catchpoint)
5131 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
5132 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
5133 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
5135 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
5136 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
5137 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
5138 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
5139 * target.c (update_current_target): Change default implementation of
5140 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
5141 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
5142 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
5143 to_set_syscall_catchpoint to return_one.
5144 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
5145 (debug_to_insert_exec_catchpoint): Report return value.
5146 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
5147 (to_insert_exec_catchpoint): Change declaration to return int instead
5150 2011-01-11 Michael Snyder <msnyder@vmware.com>
5152 * arm-tdep.c: Internationalization.
5155 * fork-child.c: Ditto.
5156 * nto-procfs.c: Ditto.
5157 * ppc-sysv-tdep.c: Ditto.
5159 * remote-mips.c: Ditto.
5161 * rs6000-nat.c: Ditto.
5162 * rs6000-tdep.c: Ditto.
5166 * xml-support.c: Ditto.
5167 * mi/mi-cmd-break.c: Ditto.
5168 * mi/mi-cmd-var.c: Ditto.
5169 * mi/mi-interp.c: Ditto.
5170 * mi/mi-main.c: Ditto.
5172 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
5174 * remote-sim.c (gdbsim_store_register): Update API to
5175 sim_store_register to check more error conditions.
5177 2011-01-10 Michael Snyder <msnyder@vmware.com>
5179 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
5180 * nto-tdep.c: Ditto.
5181 * nto-tdep.h: Ditto.
5182 * objc-exp.y: Ditto.
5183 * objc-lang.c: Ditto.
5184 * objfiles.c: Ditto.
5185 * objfiles.h: Ditto.
5186 * observer.c: Ditto.
5187 * opencl-lang.c: Ditto.
5190 * parser-defs.h: Ditto.
5193 * posix-hdep.c: Ditto.
5194 * ppcbug-rom.c: Ditto.
5195 * ppc-linux-nat.c: Ditto.
5196 * ppc-linux-tdep.c: Ditto.
5197 * ppc-linux-tdep.h: Ditto.
5198 * ppcnbsd-tdep.c: Ditto.
5199 * ppcobsd-tdep.c: Ditto.
5200 * ppcobsd-tdep.h: Ditto.
5201 * ppc-sysv-tdep.c: Ditto.
5202 * ppc-tdep.h: Ditto.
5203 * printcmd.c: Ditto.
5204 * proc-abi.c: Ditto.
5205 * proc-flags.c: Ditto.
5207 * proc-utils.h: Ditto.
5208 * progspace.h: Ditto.
5209 * prologue-value.c: Ditto.
5210 * prologue-value.h: Ditto.
5211 * psympriv.h: Ditto.
5213 * p-typeprint.c: Ditto.
5214 * p-valprint.c: Ditto.
5215 * ravenscar-sparc-thread.c: Ditto.
5216 * ravenscar-thread.c: Ditto.
5217 * ravenscar-thread.h: Ditto.
5219 * regcache.c: Ditto.
5220 * regcache.h: Ditto.
5222 * remote-fileio.c: Ditto.
5223 * remote-fileio.h: Ditto.
5225 * remote-m32r-sdi.c: Ditto.
5226 * remote-mips.c: Ditto.
5227 * remote-sim.c: Ditto.
5228 * rs6000-aix-tdep.c: Ditto.
5229 * rs6000-nat.c: Ditto.
5230 * rs6000-tdep.c: Ditto.
5232 2011-01-10 Michael Snyder <msnyder@vmware.com>
5234 * charset.c (validate): Internationalization.
5235 * coffread.c (read_one_sym): Ditto.
5236 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
5237 * h8300-tdep.c (H8300_extract_return_value): Ditto.
5238 * inflow.c (new_tty): Ditto.
5239 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
5240 * m32c-tdep.c (m32c_return_value): Ditto.
5241 * mep-tdep.c (mep_store_return_value): Ditto.
5242 * score-tdep.c (score7_fetch_insn): Ditto.
5243 * ser-mingw.c (pipe_windows_open): Ditto.
5244 * sh64-tdep.c (sh64_extract_return_value): Ditto.
5245 * spu-tdep.c (spu_register_type): Ditto.
5246 * tracepoint.c (trace_find_command): Ditto.
5247 * valarith.c (value_pos): Ditto.
5249 2011-01-10 Joel Brobecker <brobecker@adacore.com>
5251 * ada-valprint.c (printstr): Minor comment reformatting.
5253 2011-01-08 Michael Snyder <msnyder@vmware.com>
5255 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
5258 2011-01-08 Michael Snyder <msnyder@vmware.com>
5260 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
5261 * hppa-hpux-tdep.c: Ditto.
5262 * hppa-linux-nat.c: Ditto.
5263 * hppa-linux-tdep.c: Ditto.
5264 * hppanbsd-tdep.c: Ditto.
5265 * hppa-tdep.c: Ditto.
5266 * hppa-tdep.h: Ditto.
5267 * hpux-thread.c: Ditto.
5268 * i386-cygwin-tdep.c: Ditto.
5269 * i386-darwin-nat.c: Ditto.
5270 * i386gnu-nat.c: Ditto.
5271 * i386-linux-nat.c: Ditto.
5272 * i386-linux-tdep.c: Ditto.
5273 * i386-nat.c: Ditto.
5274 * i386-nat.h: Ditto.
5275 * i386nbsd-tdep.c: Ditto.
5276 * i386-sol2-nat.c: Ditto.
5277 * i386-stub.c: Ditto.
5278 * i386-tdep.c: Ditto.
5279 * i386-tdep.h: Ditto.
5280 * i387-tdep.c: Ditto.
5281 * ia64-linux-nat.c: Ditto.
5282 * ia64-linux-tdep.c: Ditto.
5283 * ia64-tdep.c: Ditto.
5287 * inferior.c: Ditto.
5288 * inferior.h: Ditto.
5294 * iq2000-tdep.c: Ditto.
5295 * irix5-nat.c: Ditto.
5301 * jv-typeprint.c: Ditto.
5302 * jv-valprint.c: Ditto.
5303 * language.c: Ditto.
5304 * language.h: Ditto.
5305 * linespec.c: Ditto.
5306 * linux-fork.c: Ditto.
5307 * linux-nat.c: Ditto.
5308 * linux-thread-db.c: Ditto.
5309 * lm32-tdep.c: Ditto.
5311 2011-01-08 Michael Snyder <msnyder@vmware.com>
5313 * m2-exp.y: Comment cleanup, mostly periods and spaces.
5315 * m2-typeprint.c: Ditto.
5316 * m2-valprint.c: Ditto.
5317 * m32c-tdep.c: Ditto.
5318 * m32r-linux-nat.c: Ditto.
5319 * m32r-rom.c: Ditto.
5320 * m32r-tdep.c: Ditto.
5321 * m32r-tdep.h: Ditto.
5322 * m68hc11-tdep.c: Ditto.
5323 * m58klinux-nat.c: Ditto.
5324 * m68k-tdep.c: Ditto.
5325 * m88k-tdep.c: Ditto.
5326 * m88k-tdep.h: Ditto.
5327 * machoread.c: Ditto.
5328 * macrocmd.c: Ditto.
5329 * macroexp.c: Ditto.
5330 * macrotab.c: Ditto.
5333 * mdebugread.c: Ditto.
5334 * mdebugread.h: Ditto.
5337 * memory-map.h: Ditto.
5338 * mep-tdep.c: Ditto.
5339 * microblaze-rom.c: Ditto.
5340 * microblaze-tdep.c: Ditto.
5342 * mips-irix-tdep.c: Ditto.
5343 * mips-linux-nat.c: Ditto.
5344 * mips-linux-tdep.c: Ditto.
5345 * mips-linux-tdep.h: Ditto.
5346 * mipsnbsd-nat.c: Ditto.
5347 * mipsnbsd-tdep.c: Ditto.
5348 * mipsread.c: Ditto.
5349 * mips-tdep.c: Ditto.
5350 * mips-tdep.h: Ditto.
5351 * mn10300-linux-tdep.c: Ditto.
5352 * mn10300-tdep.c: Ditto.
5353 * mn10300-tdep.h: Ditto.
5356 * moxie-tdep.c: Ditto.
5357 * moxie-tdep.h: Ditto.
5360 2011-01-08 Mike Frysinger <vapier@gentoo.org>
5362 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
5364 2011-01-08 Robert Millan <rmh@gnu.org>
5366 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
5368 2011-01-07 Michael Snyder <msnyder@vmware.com>
5370 * charset.c (_initialize_charset): Fix typo in string.
5372 2011-01-07 Michael Snyder <msnyder@vmware.com>
5374 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
5376 * tui/tui-layout.c (tui_set_layout_for_display_command):
5377 Split line so that operator goes to beginning of line.
5378 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
5379 assignment out of if statement.
5381 2011-01-07 Michael Snyder <msnyder@vmware.com>
5383 * ada-lang.c: Comment cleanup, mostly periods and spaces.
5384 * ada-lang.h: Ditto.
5385 * ada-tasks.c: Ditto.
5386 * ada-valprint.c: Ditto.
5387 * aix-threads.c: Ditto.
5388 * alpha-linux-nat.c: Ditto.
5389 * alpha-linux-tdep.c: Ditto.
5390 * alpha-mdebug-tdep.c: Ditto.
5391 * alpha-nat.c: Ditto.
5392 * alpha-osf1-tdep.c: Ditto.
5393 * alpha-tdep.c: Ditto.
5394 * alphabsd-nat.c: Ditto.
5395 * alphabsd-tdep.c: Ditto.
5396 * amd64-darwin-tdep.c: Ditto.
5397 * amd64-linux-nat.c: Ditto.
5398 * amd64-linux-tdep.c: Ditto.
5399 * amd64-sol2-tdep.c: Ditto.
5400 * amd64-tdep.c: Ditto.
5401 * amd64-fbsd-tdep.c: Ditto.
5402 * amd64-nbsd-tdep.c: Ditto.
5403 * amd64-obsd-tdep.c: Ditto.
5404 * amd64-linux-nat.c: Ditto.
5405 * amd64-linux-tdep.c: Ditto.
5406 * arm-tdep.c: Ditto.
5407 * arm-tdep.h: Ditto.
5408 * armnbsd-nat.c: Ditto.
5409 * avr-tdep.c: Ditto.
5410 * bfin-tdep.c: Ditto.
5412 * c-typeprintc: Ditto.
5413 * c-valprint.c: Ditto.
5414 * coff-pe-read.h: Ditto.
5415 * coffreead.c: Ditto.
5416 * cris-tdep.c: Ditto.
5418 * darwin-nat-info.c: Ditto.
5419 * darwin-nat.c: Ditto.
5420 * dbug-rom.c: Ditto.
5424 * dec-thread.c: Ditto.
5426 * demangle.c: Ditto.
5427 * dicos-tdep.c: Ditto.
5428 * dictionary.c: Ditto.
5429 * dictionary.h: Ditto.
5430 * dink32-rom.c: Ditto.
5432 * doublest.c: Ditto.
5434 * dummy-frame.c: Ditto.
5435 * dwarf2-frame.c: Ditto.
5436 * dwarf2expr.c: Ditto.
5437 * dwarf2loc.c: Ditto.
5438 * dwarf2read.c: Ditto.
5442 * event-top.h: Ditto.
5443 * exceptions.c: Ditto.
5444 * exceptions.h: Ditto.
5446 * expprint.c: Ditto.
5447 * expression.h: Ditto.
5451 * f-typeprint.c: Ditto.
5452 * f-valprint.c: Ditto.
5453 * fbsd-nat.c: Ditto.
5455 * fork-child.c: Ditto.
5458 * frv-linux-tdep.c: Ditto.
5459 * frv-tdep.c: Ditto.
5461 * gdb-stabs.h: Ditto.
5462 * gdb_assert.h: Ditto.
5463 * gdb_string.h: Ditto.
5464 * gdb_thread_db.h: Ditto.
5465 * gdb_wait.h: Ditto.
5466 * gdbarch.sh: Ditto.
5468 * gdbthread.h: Ditto.
5469 * gdbtypes.c: Ditto.
5470 * gdbtypes.h: Ditto.
5473 * gnu-v2-abi.c: Ditto.
5474 * gnu-v3-abi.c: Ditto.
5475 * go32-nat.c: Ditto.
5476 * gdbarch.c: Regenerate.
5477 * gdbarch.h: Regenerate.
5479 2011-01-07 Michael Snyder <msnyder@vmware.com>
5481 * ax-gdb.c: Adjust some long output strings.
5482 * breakpoint.c: Ditto.
5487 * linux-nat.c: Ditto.
5488 * solib-pa64.c: Ditto.
5489 * solib-som.c: Ditto.
5491 2011-01-06 Tom Tromey <tromey@redhat.com>
5495 * python/python.c (GdbMethods): Add "newest_frame" method.
5496 * python/python-internal.h (gdbpy_newest_frame): Declare.
5497 * python/py-frame.c (gdbpy_newest_frame): New function.
5499 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
5501 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
5502 * jit.c (jit_debug): New variable.
5503 (show_jit_debug): New function.
5504 (struct target_buffer): Use ULONGEST.
5505 (bfd_open_from_target_memory): Likewise.
5506 (jit_register_code, jit_inferior_init): Add debug output.
5507 (_initialize_jit): Register "debug jit" command.
5509 2011-01-06 Tom Tromey <tromey@redhat.com>
5511 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
5512 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
5515 2011-01-06 Tom Tromey <tromey@redhat.com>
5517 * python/py-frame.c (frapy_block): Use get_frame_block.
5519 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5521 Do not stop on SIGPRIO signals by default
5522 * infrun.c (_initialize_infrun): Unset signal_stop and
5523 signal_print for TARGET_SIGNAL_PRIO.
5525 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5527 * ada-tasks.c: Fix style violation in comment.
5529 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5531 * linespec.c (decode_compound, find_method): Remove trailing \n
5532 at end of error string.
5533 * solib-irix.c (irix_current_sos): Likewise.
5534 * varobj.c (uninstall_variable): Likewise.
5536 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5538 * copyright.py: New script.
5539 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
5540 Launch emacs without exec'ing. Call copyright.py afterwards.
5542 2011-01-05 Michael Snyder <msnyder@vmware.com>
5544 * addrmap.c: Shorten lines of >= 80 columns.
5545 * arch-utils.c: Ditto.
5546 * arch-utils.h: Ditto.
5548 * ax-general.c: Ditto.
5550 * blockframe.c: Ditto.
5551 * breakpoint.c: Ditto.
5552 * buildsym.c: Ditto.
5554 * c-typeprint.c: Ditto.
5556 * coffread.c: Ditto.
5560 * cp-namespace.c: Ditto.
5561 * cp-support.c: Ditto.
5562 * dbug-rom.c: Ditto.
5567 * dictionary.c: Ditto.
5569 * doublest.c: Ditto.
5570 * dwarf2-frame.c: Ditto.
5571 * dwarf2expr.c: Ditto.
5572 * dwarf2loc.c: Ditto.
5573 * dwarf2read.c: Ditto.
5576 * event-loop.c: Ditto.
5577 * event-loop.h: Ditto.
5578 * exceptions.h: Ditto.
5580 * expprint.c: Ditto.
5581 * expression.h: Ditto.
5583 * f-valprint.c: Ditto.
5585 * frame-base.c: Ditto.
5586 * frame-unwind.c: Ditto.
5587 * frame-unwind.h: Ditto.
5591 * gdb-stabs.h: Ditto.
5592 * gdb_assert.h: Ditto.
5593 * gdb_dirent.h: Ditto.
5594 * gdb_obstack.h: Ditto.
5596 * gdbtypes.c: Ditto.
5597 * gdbtypes.h: Ditto.
5598 * inf-ttrace.c: Ditto.
5603 * inline-frame.h: Ditto.
5604 * language.c: Ditto.
5605 * language.h: Ditto.
5606 * libunwind-frame.c: Ditto.
5607 * libunwind-frame.h: Ditto.
5608 * linespec.c: Ditto.
5609 * linux-nat.c: Ditto.
5610 * linux-nat.h: Ditto.
5611 * linux-thread-db.c: Ditto.
5612 * machoread.c: Ditto.
5613 * macroexp.c: Ditto.
5614 * macrotab.c: Ditto.
5617 * mdebugread.c: Ditto.
5622 * objfiles.c: Ditto.
5623 * objfiles.h: Ditto.
5625 * p-typeprint.c: Ditto.
5626 * p-valprint.c: Ditto.
5628 * printcmd.c: Ditto.
5629 * proc-events.c: Ditto.
5631 * progspace.c: Ditto.
5632 * progspace.h: Ditto.
5633 * psympriv.h: Ditto.
5636 * regcache.c: Ditto.
5637 * regcache.h: Ditto.
5638 * remote-fileio.c: Ditto.
5640 * ser-mingw.c: Ditto.
5642 * ser-unix.c: Ditto.
5645 * solib-frv.c: Ditto.
5646 * solib-irix.c: Ditto.
5647 * solib-osf.c: Ditto.
5648 * solib-pa64.c: Ditto.
5649 * solib-som.c: Ditto.
5650 * solib-sunos.c: Ditto.
5651 * solib-svr4.c: Ditto.
5652 * solib-target.c: Ditto.
5656 * stabsread.c: Ditto.
5657 * stabsread.c: Ditto.
5660 * symfile-mem.c: Ditto.
5666 * target-descriptions.c: Ditto.
5667 * target-memory.c: Ditto.
5670 * terminal.h: Ditto.
5673 * tracepoint.c: Ditto.
5674 * tracepoint.h: Ditto.
5678 * user-regs.c: Ditto.
5679 * user-regs.h: Ditto.
5681 * valarith.c: Ditto.
5683 * valprint.c: Ditto.
5684 * valprint.h: Ditto.
5689 * xcoffread.c: Ditto.
5690 * xcoffsolib.c: Ditto.
5691 * xcoffsolib.h: Ditto.
5692 * xml-syscall.c: Ditto.
5693 * xml-tdesc.c: Ditto.
5695 2011-01-05 Michael Snyder <msnyder@vmware.com>
5697 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
5698 * cli/cli-decode.c: Ditto.
5699 * cli/cli-dump.c: Ditto.
5700 * cli/cli-logging.c: Ditto.
5701 * cli/cli-script.c: Ditto.
5702 * cli/cli-setshow.c: Ditto.
5703 * common/signals.c: Ditto.
5704 * mi/mi-cmd-break.c: Ditto.
5705 * mi/mi-cmd-disas.c: Ditto.
5706 * mi/mi-cmd-stack.c: Ditto.
5707 * mi/mi-cmd-var.c: Ditto.
5708 * mi/mi-cmds.c: Ditto.
5709 * mi/mi-common.h: Ditto.
5710 * mi/mi-console.c: Ditto.
5711 * mi/mi-interp.c: Ditto.
5712 * mi/mi-main.c: Ditto.
5713 * osf-share/cma_attr.c: Ditto.
5714 * osf-share/cma_deb_core.h: Ditto.
5715 * osf-share/cma_debug_client.h: Ditto.
5716 * osf-share/cma_handle.h: Ditto.
5717 * osf-share/cma_mutex.h: Ditto.
5718 * osf-share/cma_stack_int.h: Ditto.
5719 * osf-share/cma_tcb_defs.h: Ditto.
5720 * python/py-auto-load.c: Ditto.
5721 * python/py-breakpoint.c: Ditto.
5722 * python/py-cmd.c: Ditto.
5723 * python/py-frame.c: Ditto.
5724 * python/py-objfile.c: Ditto.
5725 * python/py-param.c: Ditto.
5726 * python/py-progspace.c: Ditto.
5727 * python/py-symbol.c: Ditto.
5728 * python/py-value.c: Ditto.
5729 * python/python-internal.h: Ditto.
5730 * python/python.c: Ditto.
5731 * tui/tui-data.c: Ditto.
5732 * tui/tui-disasm.c: Ditto.
5733 * tui/tui-hooks.c: Ditto.
5734 * tui/tui-io.c: Ditto.
5735 * tui/tui-layout.c: Ditto.
5736 * tui/tui-regs.c: Ditto.
5737 * tui/tui-source.c: Ditto.
5738 * tui/tui-stack.c: Ditto.
5739 * tui/tui-win.c: Ditto.
5740 * tui/tui-windata.c: Ditto.
5741 * tui/tui-winsource.c: Ditto.
5743 2011-01-05 Joel Brobecker <brobecker@adacore.com>
5745 * configure.ac, gdb.1: Copyright year update.
5747 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5749 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
5750 this_pc_in_block, morestack_msym and morestack_name. Check for
5751 "__morestack" minimal symbol there.
5753 2011-01-03 Joel Brobecker <brobecker@adacore.com>
5755 * symfile.c (find_sym_fns): Add call to dont_repeat.
5757 2011-01-01 Joel Brobecker <brobecker@adacore.com>
5759 Copyright year update in most files (performed by copyright.sh).
5761 2011-01-01 Joel Brobecker <brobecker@adacore.com>
5763 * top.c (print_gdb_version): Update copyright year in version output.
5765 For older changes see ChangeLog-2010.
5771 version-control: never