1 2011-03-10 Michael Snyder <msnyder@vmware.com>
3 * gdbserver/tracepoint.c (tracepoint_finish_step): Fix
6 * gdbserver/server.c (handle_v_run): Free alloced buffer on early
9 2011-03-10 Tom Tromey <tromey@redhat.com>
11 * tracepoint.c (trace_actions_command): Update.
12 * thread.c (thread_apply_command): Update.
13 * reverse.c (delete_bookmark_command): Update.
14 (bookmarks_info): Update.
15 * printcmd.c (undisplay_command): Update.
16 * memattr.c (mem_enable_command): Update.
17 (mem_disable_command): Update.
18 (mem_delete_command): Update.
19 * inferior.c (detach_inferior_command): Update.
20 (kill_inferior_command): Update.
21 (remove_inferior_command): Update.
22 * cli/cli-utils.h (struct get_number_or_range_state): New.
23 (init_number_or_range): Declare.
24 (get_number_or_range): Update.
25 * cli/cli-utils.c (init_number_or_range): New function.
26 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
28 (number_is_in_list): Update.
29 * breakpoint.h (get_tracepoint_by_number): Update.
30 * breakpoint.c (map_breakpoint_numbers): Update for change to
32 (find_location_by_number): Use get_number, not
34 (trace_pass_set_count): New function.
35 (trace_pass_command): Update for change to get_number_or_range.
37 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
40 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
42 * python/py-param.c (add_setshow_generic): Add set/show callback
43 parameters. Register Python object context.
44 (get_show_value): New function.
45 (get_set_value): New function.
46 (call_doc_function): New function.
47 (get_doc_string): Move behind get_show_value/get_set_value.
49 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
51 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
53 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
55 * xtensa-tdep.c (xtensa_read_register: Add comment.
56 (xtensa_write_register): Likewise.
57 (xtensa_hextochar): Add comment and update to match coding conventions.
58 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
59 (execute_l32e, execute_s32e, execute_code): Update comments.
60 (xtensa_exception_handler_t): Update to match coding conventions.
61 (xtensa_insn_kind): Likewise.
63 2011-03-09 Michael Snyder <msnyder@vmware.com>
65 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
67 2011-03-09 Pedro Alves <pedro@codesourcery.com>
69 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
71 2011-03-09 Tom Tromey <tromey@redhat.com>
73 * thread.c (restore_selected_frame): Handle frame_level == -1.
74 (make_cleanup_restore_current_thread): Use
75 get_selected_frame_if_set.
76 * frame.h (get_selected_frame_if_set): Declare.
77 * frame.c (get_selected_frame_if_set): New function.
79 2011-03-09 Pedro Alves <pedro@codesourcery.com>
81 * cli/cli-cmds.c (shell_escape): Use lbasename.
82 * coffread.c (coff_start_symtab): Constify parameter.
83 (complete_symtab): Constify `name' parameter.
84 (coff_symtab_read): Constify `filestring' local.
85 (coff_getfilename): Constify return and `result' local.
87 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
88 * linux-fork.c (info_checkpoints_command): Use lbasename.
89 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
90 * minsyms.c (lookup_minimal_symbol): Use lbasename.
91 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
92 * procfs.c (procfs_make_note_section): Use lbasename.
93 * tui/tui-io.c (printable_part): Constity return and parameter.
95 (print_filename): Constify parameters, and local `s'.
96 (tui_rl_display_match_list): Constify local `temp'.
98 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
101 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
102 Fix DWARF-3+ DW_AT_accessibility default assumption.
103 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
104 cu->header.version >= 3.
106 2011-03-09 Yao Qi <yao@codesourcery.com>
108 * common/Makefile.in: Remove.
109 * common/configure: Remove.
110 * common/configure.ac: Remove.
112 2011-03-09 Yao Qi <yao@codesourcery.com>
115 2011-02-11 Yao Qi <yao@codesourcery.com>
117 * common/Makefile.in: Add copyright header.
119 2011-02-11 Yao Qi <yao@codesourcery.com>
121 * Makefile.in: Remove signals.o from COMMON_OBS. Link
123 * configure.ac: Add common to sub dir.
124 * configure: Regenerate.
126 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
128 * xtensa-tdep.c (call0_ret): New function.
129 (xtensa_skip_prologue): Speed up analysis.
131 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
133 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
134 while executing MI command -data-list-changed-registers.
136 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
138 * xtensa-tdep.c (xtensa_read_register): New function.
139 (xtensa_write_register): New function.
140 (xtensa_find_register_by_name): New function.
141 (xtensa_windowed_frame_cache): Update comments in type description.
142 (xtensa_frame_cache): Likewise.
143 (xtensa_window_interrupt_insn): New function.
144 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
145 (xtensa_insn_kind): Add new instructions.
146 (rwx_special_register): New function.
147 (call0_classify_opcode): Add new instructions to the analysis.
148 (a0_saved, a7_saved, a11_saved): New variables.
149 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
150 (execute_l32e): New function.
151 (execute_s32e): New function.
152 (xtensa_exception_handler_t): New type.
153 (execute_code): New function.
154 (xtensa_window_interrupt_frame_cache): New function to conduct frame
155 analysis for Xtensa Window Exception handlers.
157 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
159 * xtensa-tdep.c (TX_PS): New.
160 (windowing_enabled): Update to count for Call0 ABI.
161 (xtensa_hextochar): New.
162 (xtensa_init_reggroups): Make algorithm generic.
163 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
165 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
167 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
169 2011-03-08 Michael Snyder <msnyder@vmware.com>
171 * i386-tdep.c (i386_follow_jump): Check return value of
173 (i386_analyze_struct_return): Ditto.
174 (i386_skip_probe): Ditto.
175 (i386_match_insn): Ditto.
176 (i386_skip_noop): Ditto.
177 (i386_analyze_frame_setup): Ditto.
178 (i386_analyze_register_saves): Ditto.
179 (i386_skip_prologue): Ditto.
180 (i386_skip_main_prologue): Ditto.
182 * target.c (read_whatever_is_readable): Fix memory leak.
184 * i386-tdep.c (i386_process_record): Document fall through.
186 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
188 Fix DWARF-3+ DW_AT_accessibility default assumption.
189 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
190 cu->header.version >= 3.
192 2011-03-08 Pedro Alves <pedro@codesourcery.com>
194 * remote.c (remote_check_symbols): Skip if the target has no
197 2011-03-08 Joel Brobecker <brobecker@adacore.com>
199 * target.c (read_whatever_is_readable): Reformat comment,
200 with a minor typo fix. Minor reformatting of the code.
202 2011-03-08 Yao Qi <yao@codesourcery.com>
204 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
205 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
206 Use cached result instead of calling displaced_in_arm_mode again.
207 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
208 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
209 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
210 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
211 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
212 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
213 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
214 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
215 (cleanup_block_load_pc, copy_block_xfer): Likewise.
216 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
217 (arm_catch_kernel_helper_return): Likewise.
218 * gdb/arm-tdep.h : Update function declarations.
220 2011-03-07 Michael Snyder <msnyder@vmware.com>
222 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
224 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
226 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
228 * elfread.c (elf_symtab_read): Stop memory leak.
230 * main.c (captured_main): Fix memory leak.
232 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
234 * ada-lang.c (compare_names): Call is_name_suffix with string1
237 2011-03-07 Tom Tromey <tromey@redhat.com>
239 * xcoffread.c (xcoff_sym_fns): Update.
240 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
241 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
242 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
243 (symbol_file_add_with_addrs_or_offsets): Likewise.
244 (reread_symbols): Handle OBJF_PSYMTABS_READ.
245 * somread.c (som_sym_fns): Update.
246 * psymtab.h (require_partial_symbols): Declare.
247 * psymtab.c (require_partial_symbols): New function.
248 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
249 (ALL_OBJFILE_PSYMTABS): Undef.
250 (ALL_PSYMTABS): Move from psympriv.h.
251 (lookup_partial_symtab, find_pc_sect_psymtab)
252 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
253 (find_last_source_symtab_from_partial)
254 (forget_cached_source_info_partial)
255 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
256 (expand_partial_symbol_tables, read_psymtabs_with_filename)
257 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
258 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
259 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
260 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
261 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
262 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
263 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
265 * mipsread.c (ecoff_sym_fns): Update.
266 * machoread.c (macho_sym_fns): Update.
267 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
268 (read_psyms): New function.
269 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
270 (elf_sym_fns_lazy_psyms): New global.
271 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
272 dwarf2_build_psymtabs.
273 * dbxread.c (aout_sym_fns): Update.
274 * coffread.c (coff_sym_fns): Update.
276 2011-03-07 Tom Tromey <tromey@redhat.com>
278 * infrun.c (print_exited_reason): Include inferior id and pid in
281 2011-03-07 Tom Tromey <tromey@redhat.com>
283 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
285 (target_has_execution_1): Update.
286 (target_has_execution_current): Declare.
287 (target_has_execution): Call target_has_execution_current.
288 (default_child_has_execution): Update.
289 * target.c (default_child_has_execution): Add 'the_ptid'
291 (target_has_execution_1): Likewise.
292 (target_has_execution_current): New function.
293 (add_target): Update.
294 (init_dummy_target): Update.
295 * remote-m32r-sdi.c (m32r_has_execution): New function.
296 (init_m32r_ops): Use it.
297 * record.c (record_core_has_execution): Now static. Add
298 'the_ptid' parameter.
299 * inferior.c (have_live_inferiors): Don't save current thread.
300 Use target_has_execution_1.
302 2011-03-07 Yao Qi <yao@codesourcery.com>
304 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
306 2011-03-07 Joel Brobecker <brobecker@adacore.com>
308 * elfread.c (elf_symtab_read): Minor reformatting.
310 2011-03-07 Joel Brobecker <brobecker@adacore.com>
312 * objc-lang.c (selectors_info): Minor reformatting.
314 2011-03-07 Joel Brobecker <brobecker@adacore.com>
316 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
318 2011-03-07 Joel Brobecker <brobecker@adacore.com>
319 Michael Snyder <msnyder@vmware.com>
321 * ada-valprint.c (ada_val_print_array): Move the declaration of
322 "byte_order" and "elttype" inside the block where these variables
323 are actually used. Remove some special handling for the case
324 where "elttype" and "eltlen" are null. Replace by a comment
325 and a couple of assertion checks.
327 2011-03-05 Michael Snyder <msnyder@vmware.com>
329 * source.c (add_path): Replace semicolon at end of block.
330 * dwarf2expr.c (execute_stack_op): Ditto.
332 2011-03-05 Mike Frysinger <vapier@gentoo.org>
334 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
335 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
336 (bfin-*-*): Likewise.
338 2011-03-05 Michael Snyder <msnyder@vmware.com>
340 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
341 * mdebugread.c (parse_symbol): Ditto.
342 * parse.c (parse_exp_in_context): Ditto.
343 * source.c (add_path): Ditto.
344 * utils.c (gnu_debuglink_crc32): Ditto.
345 * varobj.c (variable_language): Ditto.
347 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
349 2011-03-04 Michael Snyder <msnyder@vmware.com>
351 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
353 * symfile.c (simple_overlay_update): Check for null return value
354 from lookup_minimal_symbol.
356 * gdbserver/server.c (queue_stop_reply): Call xmalloc not malloc.
358 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
360 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
362 * eval.c (parse_and_eval_address_1): Remove function.
363 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
364 instead of parse_and_eval_address_1.
365 * value.h (parse_and_eval_address_1): Remove prototype.
367 2011-03-04 Michael Snyder <msnyder@vmware.com>
369 * remote.c (putpkt_binary): Document that case stmt falls through.
371 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
373 * breakpointc (print_it_typical): Move NULL check from here...
374 (print_bp_stop_message): ... to here.
376 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
378 * breakpoint.c (enable_command): Use break instead of continue,
379 and fill in a missing break.
380 (disable_command): Ditto.
382 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
384 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
385 (terminal_save_ours): Remove misleading comment.
386 (inflow_inferior_data_cleanup): Free ttystate.
387 (inflow_inferior_exit): Likewise.
388 (copy_terminal_info): Copy ttystate.
390 * serial.c (serial_copy_tty_state): New function.
391 * serial.h (serial_copy_tty_state): Add prototype.
392 (struct serial_ops): Add copy_tty_state callback.
393 * ser-base.c (ser_base_copy_tty_state): New function.
394 * ser-base.h (ser_base_copy_tty_state): Add prototype.
395 * ser-go32.c (dos_copy_tty_state): New function.
396 (dos_ops): Install copy_tty_state callback.
397 * ser-mingw.c (_initialize_ser_windows): Likewise.
398 * ser-pipe.c (_initialize_ser_pipe): Likewise.
399 * ser-unix.c (hardwire_copy_tty_state): New function.
400 (_initialize_ser_hardwire): Install it.
402 2011-03-04 Michael Snyder <msnyder@vmware.com>
404 * breakpoint.c (create_breakpoint): Add missing break statement.
406 Reverting this patch:
407 * infcall.c (call_function_by_hand): Add break statements for lint.
409 Reverting this patch:
410 * cli/cli-script.c (script_from_file): Add break for lint.
412 2011-03-04 Michael Snyder <msnyder@vmware.com>
414 * solib.c (reload_shared_libraries_1): Close memory leak.
416 2011-03-03 Tom Tromey <tromey@redhat.com>
419 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
422 2011-03-03 Michael Snyder <msnyder@vmware.com>
424 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
425 fields of struct 'st' to zero.
427 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
428 sal.pspace before calling set_current_source_symtab_and_line.
430 2011-03-03 Yao Qi <yao@codesourcery.com>
432 * Makefile.in (configure-common): Remove. Let Makefile
433 in dir common to rebuild itself.
434 (common/Makefile): Likewise.
436 2011-03-03 Joel Brobecker <brobecker@adacore.com>
438 * utils.c (parse_escape): Add i18n markup in error message.
440 2011-03-03 Yao Qi <yao@codesourcery.com>
442 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
444 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
445 (displaced_write_reg, displaced_read_reg): Likewise.
446 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
447 (cleanup_block_load_pc, copy_block_xfer): Likewise.
448 (cleanup_branch): Replace magic number 14 and 15 with
449 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
451 2011-03-02 Michael Snyder <msnyder@vmware.com>
453 * maint.c (maintenance_do_deprecate): No need to check for NULL.
455 * cli/cli-script.c (script_from_file): Add break for lint.
457 * mdebugread.c (parse_partial_symbols): Fix indent.
459 * gdbserver/linux-arm-low.c (arm_arch_setup): Replace malloc
462 * target-descriptions.c (tdesc_gdb_type): No need to call
463 xstrdup, callee saves a copy.
465 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
467 * infcall.c (call_function_by_hand): Add break statements for lint.
469 * utils.c (parse_escape): Escape the escape char.
471 * python/py-inferior.c (build_inferior_list): Error out if
473 (gdbpy_inferiors): Error out if build_inferior_list fails.
475 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
478 * record.c (record_restore): Move printf to before error return.
480 2011-03-02 Yao Qi <yao@codesourcery.com>
482 * arm-tdep.h (struct displaced_step_closure): Add two new fields
483 is_thumb and insn_size.
484 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
485 on both ARM and Thumb mode.
486 (arm_process_displaced_insn): Set is_thumb and insn_size.
487 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
488 (arm_displaced_step_fixup): Likewise.
490 2011-03-01 Michael Snyder <msnyder@vmware.com>
492 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
494 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
496 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
498 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
500 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
503 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
504 which shadows function parameter.
506 * tracepoint.c (create_tsv_from_upload): Superfluous call
507 to xstrdup. Callee already calls xstrdup.
509 * linespec.c (decode_line_1): Remove unnecessary null check.
511 * tracepoint.c (scope_info): Fix mem leak, remove underused
514 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
515 superfluous null check.
517 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
518 (value_of_builtin_frame_fp_reg): Ditto.
520 * event-top.c (display_gdb_prompt): Remove superfluous null check.
522 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
525 * linespec.c (decode_line_1): Check for null before dereference.
527 * reverse.c (record_restore): Move null-check to before pointer
530 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
532 * objc-lang.c (selectors_info): Add explanitory comment.
533 (classes_info): Ditto.
535 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
537 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
538 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
539 versions of the trampoline. Handle Thumb vs. ARM addresses.
540 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
541 (arm_linux_init_abi): Install it.
542 * arm-tdep.c (arm_psr_thumb_bit): Make global.
543 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
545 2011-02-28 Michael Snyder <msnyder@vmware.com>
547 * ui-out.c (ui_out_field_core_addr): Make local char buffer
548 a little bigger, to avoid possibility of an overflow.
550 * breakpoint.c (breakpoint_adjustment_warning): Make local char
551 buffers a little bigger, to avoid possibility of an overflow.
553 * coffread.c (coff_getfilename): Add check to avoid overflow.
555 * objc-lang.c (selectors_info): Add a small safety margin to
557 (classes_info): Error out on too long REGEXP.
559 * infrun.c (handle_inferior_event): Remove unused function call.
561 * fork-child.c (fork_inferior): Remove ifdef'd code and
564 * linux-thread-db.c (attach_thread): Discard unused value.
566 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
568 * remote.c (remote_get_noisy_reply): Discard unused value.
569 (remote_vcont_resume): Ditto.
570 (remote_stop_ns): Ditto.
572 * linespec.c (decode_objc): Delete unused variable.
574 * tui/tui-regs.c (tui_register_format): Delete unused variable.
576 * dwarf2read.c (add_partial_symbol): Discard unused values.
577 (read_base_type): Delete unused variable.
579 * dbxread.c (read_dbx_symtab): Discard unused value.
581 * eval.c (evaluate_subexp_standard): Delete unused variable,
582 and discard unused values.
584 * infcmd.c (_initialize_infcmd): Discard unused values.
586 * stabsread.c (rs6000_builtin_type): Missing break statement.
588 * dbxread.c (process_one_symbol): Discard unused value.
590 * coffread.c (coff_end_symtab): Delete unused variable.
592 * dwarf2read.c (dw2_get_file_names): Discard unused value.
593 (dwarf2_add_typedef): Delete unused variable.
594 (read_namespace): Ditto.
595 (dwarf_decode_macros): Ditto.
597 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
599 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
601 * p-valprint.c (pascal_val_print): Discard unused value.
603 * utils.c (nquery): Call va_end before return;
607 * proc-service.c (ps_plog): Call va_end before return.
609 2011-02-28 Tom Tromey <tromey@redhat.com>
611 * python/python.c (gdbpy_value_cst): New global.
612 (_initialize_python): Initialize it.
613 * python/python-internal.h (gdbpy_value_cst): Declare.
614 * python/py-value.c (convert_value_from_python): Use
617 2011-02-28 Michael Snyder <msnyder@vmware.com>
619 * python/py-cmd.c (cmdpy_init): Fix memory leak.
621 * breakpoint.c (catch_syscall_completer): Free malloced list.
623 * jv-lang.c (java_primitive_type_from_name): Add missing break.
625 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
626 (lval_func_check_synthetic_pointer): Ditto.
627 (lval_func_free_closure): Fix use-after-free.
629 2011-02-28 Tom Tromey <tromey@redhat.com>
631 * psymtab.c (expand_partial_symbol_tables): Use
632 ALL_OBJFILE_PSYMTABS.
634 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
636 * objc-lang.c (selectors_info): Error on too long REGEXP.
638 2011-02-28 Michael Snyder <msnyder@vmware.com>
640 * python/py-param.c (set_parameter_value): Add missing
643 * linux-record.c (record_linux_system_call): Add missing
646 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
648 * breakpoint.c (print_one_breakpoint_location): Remove unused
649 argument PRINT_ADDRESS_BITS. Update callers.
650 (print_one_breakpoint): Likewise.
652 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
654 * breakpoint.c (wrap_indent_at_field): New function.
655 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
656 Allocate ui_stream locally instead of using STB argument.
657 (print_one_breakpoint_location): Update call.
658 * ui-out.c (ui_out_query_field): New function.
659 * ui-out.h (ui_out_query_field): Add prototype.
661 2011-02-28 Joel Brobecker <brobecker@adacore.com>
663 From Michael Snyder <msnyder@vmware.com>
664 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
666 2011-02-27 Michael Snyder <msnyder@vmware.com>
668 * objc-lang.c (selectors_info): Prevent string overrun.
670 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
673 * symtab.c (rbreak_command): Move variable 'file_name' to
676 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
677 param with a local variable of the same name.
679 2011-02-27 Michael Snyder <msnyder@vmware.com>
681 * value.c (value_from_history_ref): New function.
682 * value.h (value_from_history_ref): Export.
683 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
684 to parse value history references.
685 * cli/cli-utils.h (get_number_trailer): Update comment.
687 2011-02-27 Michael Snyder <msnyder@vmware.com>
689 * inferior.c (detach_inferior_command): Use get_number_or_range.
690 (kill_inferior_command): Ditto.
691 (remove_inferior_command): Ditto.
692 (initialize_inferiors): Make command names plural.
695 2011-02-27 Michael Snyder <msnyder@vmware.com>
697 * darwin-nat-info.c: Fix comment typo.
698 * dwarf2expr.h: Ditto.
701 * frame-unwind.h: Ditto.
703 * hppa-hpux-tdep.c: Ditto.
704 * i386-linux-nat.c: Ditto.
705 * linux-nat.c: Ditto.
708 * ppc-linux-tdep.c: Ditto.
711 * tui/tui-winsource.c: Ditto.
713 2011-02-26 Michael Snyder <msnyder@vmware.com>
715 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
717 * maint.c (maintenance_do_deprecate): Plug a memory leak.
719 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
720 with a local variable of the same name.
722 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
723 param with a local variable of the same name.
724 (i387_supply_xsave): Ditto.
726 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
727 that it does not shadow a function parameter.
729 * i386-nat.c (i386_length_and_rw_bits): Document that case
730 statement is meant to fall through.
732 * expprint.c (dump_subexp_body_standard): Document that case
733 statement is meant to fall through.
735 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
736 dead if statement. Condition can't be false.
738 2011-02-25 Michael Snyder <msnyder@vmware.com>
740 * arm-tdep.c: Fix typos in comments.
741 * bsd-uthread.c: Ditto.
742 * completer.c: Ditto.
744 * cp-namespace.c: Ditto.
745 * cp-support.c: Ditto.
746 * cris-tdep.c: Ditto.
748 * dwarf2read.c: Ditto.
752 * mdebugread.c: Ditto.
753 * mips-tdep.c: Ditto.
754 * ppc-linux-nat.c: Ditto.
755 * ppc-linux-tdep.c: Ditto.
757 * sol-thread.c: Ditto.
758 * solib-frv.c: Ditto.
760 * sparc64-tdep.c: Ditto.
762 * stabsread.c: Ditto.
767 * python/py-block.c: Ditto.
768 * python/py-symbol.c: Ditto.
769 * python/py-symtab.c: Ditto.
770 * python/py-value.c: Ditto.
771 * tui/tui-win.c: Ditto.
773 2011-02-25 Michael Snyder <msnyder@vmware.com>
775 * inferior.c (print_inferior): Accept a string instead of an int
776 for requested_inferiors, and use get_number_or_range to parse it.
777 (info_inferiors_command): Pass args string to print_inferior.
778 (initialize_inferiors): Change help string for info inferiors.
779 * inferior.h (print_inferior): Export prototype change.
781 2011-02-25 Tom Tromey <tromey@redhat.com>
783 * common/ax.def (invalid2): Set to 0x31.
785 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
787 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
789 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
791 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
793 2011-02-24 Michael Snyder <msnyder@vmware.com>
795 * Makefile.in (clean): Make clean should remove generated files
796 observer.h and observer.inc.
798 2011-02-24 Joel Brobecker <brobecker@adacore.com>
800 Revert the following patch (not approved yet):
801 2011-02-21 Hui Zhu <teawater@gmail.com>
802 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
803 * ax-gdb.c (gen_printf_expr_callback): New function.
804 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
805 * ax-general.c (ax_memcpy): New function.
806 (ax_print): Handle "printf".
808 * ax.h (ax_memcpy): Forward declare.
809 * common/ax.def (invalid2): Removed.
811 * printcmd.c (printcmd.h): New include.
812 (string_printf): New function.
813 (ui_printf): Removed.
814 (printf_command): Remove static. Call string_printf.
815 (eval_command): Call string_printf.
816 * printcmd.h: New file.
817 * tracepoint.c (validate_actionline,
818 encode_actions_1): handle printf_command.
820 2011-02-23 Tom Tromey <tromey@redhat.com>
822 * ax-general.c (ax_pick): Add missing newline.
824 2011-02-23 Michael Snyder <msnyder@vmware.com>
826 * breakpoint.c (breakpoint_1): Change first argument from an int
827 to a char pointer, so that the function now accepts a list of
828 breakpoints rather than just one. Use new function
829 'number_is_in_list' to implement.
830 (breakpoints_info): Pass char * instead of int to breakpoint_1.
831 (watchpoints_info): Ditto.
832 (tracepoints_info): Ditto.
833 (maintenance_info_breakpoints): Ditto.
834 (_initialize_breakpoint): Update help strings to reflect the fact
835 that these functions can now take more than one argument.
836 * cli/cli-utils.c (number_is_in_list): New function.
837 * cli/cli-utils.h (number_is_in_list): Export.
839 2011-02-23 Michael Snyder <msnyder@vmware.com>
841 * memattr.c (mem_enable_command): Use get_number_or_range.
842 (mem_disable_command): Ditto.
843 (mem_delete_command): Ditto.
844 (_initialize_mem): Tweak usage message to reflect multiple
847 2011-02-22 Doug Evans <dje@google.com>
849 Add gdb.lookup_global_symbol python function.
851 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
852 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
853 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
855 2011-02-22 Tom Tromey <tromey@redhat.com>
857 * language.c (language_class_name_from_physname): Rename
858 'curr_language' argument to 'lang'; use in body.
860 2011-02-22 Michael Snyder <msnyder@vmware.com>
862 * cli/cli-utils.c (number_is_in_list): Check for zero return.
864 2011-02-22 Pedro Alves <pedro@codesourcery.com>
866 * frame-unwind.h: Fix comment to mention the this frame, not the
869 2011-02-22 Tom Tromey <tromey@redhat.com>
871 * symfile.c (auto_solib_limit): Remove.
872 * symfile.h (auto_solib_limit): Remove.
874 2011-02-22 Joel Brobecker <brobecker@adacore.com>
876 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
878 2011-02-21 Michael Snyder <msnyder@vmware.com>
880 * gdbthread.h (print_thread_info): Change prototype.
881 * thread.c (print_thread_info): Accept char* instead of int for
882 requested_threads argument. Use new function number_is_in_list
883 to determine which threads to list.
884 (info_threads_command): Pass char* to print_thread_info.
885 * cli/cli-utils.c (number_is_in_list): New function.
886 * cli/cli-utils.h (number_is_in_list): Export.
887 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
889 (print_one_inferior): Ditto.
890 (mi_cmd_list_thread_groups): Ditto.
892 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
894 * common/Makefile.in (CFLAGS): New.
895 (COMPILE): Add $(CFLAGS).
897 2011-02-21 Tom Tromey <tromey@redhat.com>
899 * breakpoint.c (catch_syscall_command_1): Fix typo.
901 2011-02-21 Tom Tromey <tromey@redhat.com>
903 * reverse.c: Include cli-utils.h.
904 * printcmd.c: Include cli-utils.h.
905 (string_printf): Use skip_spaces.
906 * cli/cli-utils.h: New file.
907 * cli/cli-utils.c: New file.
908 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
909 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
910 * breakpoint.h (get_number, get_number_or_range): Move to
912 * breakpoint.c: Include cli-utils.h.
913 (get_number_trailer, get_number, get_number_or_range)
914 (ep_skip_leading_whitespace): Move to cli-utils.c.
915 (create_breakpoint_sal, find_condition_and_thread)
916 (decode_static_tracepoint_spec, watch_command_1)
917 (watch_maybe_just_location, ep_parse_optional_if_clause)
918 (catch_fork_command_1, catch_exec_command_1)
919 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
920 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
921 (SUBDIR_CLI_SRCS): Add cli-utils.c.
922 (HFILES_NO_SRCDIR): Add cli-utils.h.
923 (cli-utils.o): New target.
925 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
927 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
928 before calling discard_all_inferiors.
930 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
932 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
933 (struct builtin_opencl_type): Remove.
934 (builtin_opencl_type): Change return type to "struct type **".
935 (lookup_opencl_vector_type): Update caller.
936 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
937 (build_opencl_types): Install plain array of "struct type *"
938 instead of "struct builtin_opencl_type".
940 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
941 Ulrich Weigand <uweigand@de.ibm.com>
943 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
944 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
945 (struct arm_linux_hwbp_cap): New type.
946 (arm_linux_get_hwbp_cap): New function.
947 (arm_linux_get_hw_breakpoint_count): Likewise.
948 (arm_linux_get_hw_watchpoint_count): Likewise.
949 (arm_linux_can_use_hw_breakpoint): Likewise.
950 (arm_hwbp_type): New type.
951 (arm_hwbp_control_t): Likewise.
952 (struct arm_linux_hw_breakpoint): Likewise.
953 (struct arm_linux_thread_points): Likewise.
954 (arm_threads): New global variable.
955 (arm_linux_find_breakpoints_by_tid): New function.
956 (arm_hwbp_control_initialize): Likewise.
957 (arm_hwbp_control_is_enabled): Likewise.
958 (arm_hwbp_control_disable): Likewise.
959 (arm_linux_hw_breakpoint_initialize): Likewise.
960 (arm_linux_get_hwbp_type): Likewise.
961 (arm_linux_hw_watchpoint_initialize): Likewise.
962 (arm_linux_hw_breakpoint_equal): Likewise.
963 (arm_linux_insert_hw_breakpoint1): Likewise.
964 (arm_linux_remove_hw_breakpoint1): Likewise.
965 (arm_linux_insert_hw_breakpoint): Likewise.
966 (arm_linux_remove_hw_breakpoint): Likewise.
967 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
968 (arm_linux_insert_watchpoint): Likewise.
969 (arm_linux_remove_watchpoint): Likewise.
970 (arm_linux_stopped_data_address): Likewise.
971 (arm_linux_stopped_by_watchpoint): Likewise.
972 (arm_linux_watchpoint_addr_within_range): Likewise.
973 (arm_linux_new_thread): Likewise.
974 (arm_linux_thread_exit): Likewise.
975 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
976 related target callbacks. Register arm_linux_new_thread and
977 arm_linux_thread_exit.
978 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
979 * arm-tdep.c (arm_pc_is_thumb): Make global.
980 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
982 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
984 * breakpoint.c (update_watchpoint): Do not attempt to recreate
985 per-frame locations while within a function epilogue.
987 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
989 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
990 to GNU coding standards.
992 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
994 Allow use of mingw native on Windows 95 OS.
995 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
996 (ser_windows_close): Only call CancelIo if function exists.
997 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
998 to check for existence of CancelIo function in kernel32 DLL.
1000 2011-02-21 Hui Zhu <teawater@gmail.com>
1002 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
1003 * ax-gdb.c (gen_printf_expr_callback): New function.
1004 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
1005 * ax-general.c (ax_memcpy): New function.
1006 (ax_print): Handle "printf".
1008 * ax.h (ax_memcpy): Forward declare.
1009 * common/ax.def (invalid2): Removed.
1010 (printf): New entry.
1011 * printcmd.c (printcmd.h): New include.
1012 (string_printf): New function.
1013 (ui_printf): Removed.
1014 (printf_command): Remove static. Call string_printf.
1015 (eval_command): Call string_printf.
1016 * printcmd.h: New file.
1017 * tracepoint.c (validate_actionline,
1018 encode_actions_1): handle printf_command.
1020 2011-02-19 Michael Snyder <msnyder@vmware.com>
1022 * reverse.c (delete_one_bookmark): Argument is now bookmark
1023 id rather than pointer to bookmark struct.
1024 (delete_bookmark_command): Use get_number_or_range.
1025 (goto_bookmark_command): Parse with get_number instead of strtoul.
1026 (bookmark_1): New function. Print info for one bookmark.
1027 (bookmarks_info): Use get_number_or_range and bookmark_1.
1029 2011-02-18 Michael Snyder <msnyder@vmware.com>
1031 * thread.c (info_threads_command): Re-implement using
1032 get_number_or_range.
1033 (thread_apply_command): Ditto.
1035 2011-02-18 Tom Tromey <tromey@redhat.com>
1037 * common/ax.def: New file.
1038 * ax.h (enum agent_op): Use ax.def.
1039 * ax-general.c (aop_map): Use ax.def.
1041 2011-02-18 Tom Tromey <tromey@redhat.com>
1043 * ax-general.c (aop_map): Add pick and rot.
1044 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
1045 <DW_OP_rot>: Implement.
1046 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
1048 * ax-general.c (ax_pick): New function.
1050 2011-02-18 Tom Tromey <tromey@redhat.com>
1052 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
1054 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1055 Tom Tromey <tromey@redhat.com>
1057 * cp-support.c (make_symbol_overload_list_namespace): Do not call
1058 make_symbol_overload_list_block with NULL BLOCK.
1059 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
1061 2011-02-18 Pedro Alves <pedro@codesourcery.com>
1063 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
1064 * breakpoint.h (get_number_or_range): Declare.
1065 * printcmd.c (ALL_DISPLAYS): Declare.
1066 (delete_display): Reimplement taking a display pointer.
1067 (undisplay_command): Accept a range of displays to delete, using
1068 get_number_or_range.
1070 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
1072 * c-valprint.c (c_val_print): Add embedded_offset to address
1073 for arrays of unspecified length.
1074 * p-valprint.c (pascal_val_print): Likewise.
1076 2011-02-18 Yao Qi <yao@codesourcery.com>
1078 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
1079 (arm_process_displaced_insn): .. here. Remove parameter INSN.
1080 (thumb_process_displaced_insn): New.
1081 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
1082 call to arm_process_displaced_insn.
1083 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
1085 2011-02-17 Tom Tromey <tromey@redhat.com>
1087 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
1088 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
1089 compile_dwarf_to_ax. No longer static. Call
1090 dwarf2_compile_cfa_to_ax.
1091 (locexpr_tracepoint_var_ref): Update.
1092 (loclist_tracepoint_var_ref): Update.
1093 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
1094 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
1095 argument; add 'gdbarch' and 'pc'.
1096 (dwarf2_compile_cfa_to_ax): New function.
1097 (dwarf2_frame_cache): Update.
1099 2011-02-17 Joel Brobecker <brobecker@adacore.com>
1101 * ada-lang.c (ada_type_of_array): Fix the size of the array
1102 in the case of an unconstrained packed array.
1104 2011-02-17 Yao Qi <yao@codesourcery.com>
1106 * common/Makefile.in: Add more targets for make.
1108 2011-02-16 Tom Tromey <tromey@redhat.com>
1110 * dwarf2loc.c (unimplemented): Fix typo.
1112 2011-02-16 Tom Tromey <tromey@redhat.com>
1114 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
1115 (compile_dwarf_to_ax) <default>: Use unimplemented.
1116 <DW_OP_deref>: Update.
1117 (disassemble_dwarf_expression): Update.
1118 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
1119 (decode_locdesc): Update.
1120 * dwarf2expr.h (dwarf_stack_op_name): Update.
1122 2011-02-16 Tom Tromey <tromey@redhat.com>
1124 * ax.h (struct aop_map) <name>: Now const.
1126 2011-02-16 Tom Tromey <tromey@redhat.com>
1128 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
1131 2011-02-16 Yao Qi <yao@codesourcery.com>
1133 * infrun.c (get_displaced_step_closure_by_addr): New.
1134 * inferior.h: Declare it.
1135 * arm-tdep.c: (arm_pc_is_thumb): Call
1136 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
1139 2011-02-16 Pedro Alves <pedro@codesourcery.com>
1140 Jan Kratochvil <jan.kratochvil@redhat.com>
1143 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
1145 2011-02-16 Pedro Alves <pedro@codesourcery.com>
1146 Jan Kratochvil <jan.kratochvil@redhat.com>
1148 * value.c (value_contents_copy_raw): Extend describing comment.
1149 Assert that the destination contents we're overwriting are wholly
1151 (value_contents_copy): Extend describing comment.
1153 2011-02-16 Pedro Alves <pedro@codesourcery.com>
1154 Jan Kratochvil <jan.kratochvil@redhat.com>
1156 * value.c (value_available_contents_eq): Remove redundant local
1157 variables. Fix available contents comparision.
1158 * value.h (value_available_contents_eq): Extend describing
1161 2011-02-16 Yao Qi <yao@codesourcery.com>
1163 * thread.c (info_threads_command): Add missing i18n markup and remove
1166 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
1168 * breakpoint.c (longjmp_names): New variable.
1169 (struct breakpoint_objfile_data): New type.
1170 (breakpoint_objfile_key): New variable.
1171 (msym_not_found): New variable.
1172 (msym_not_found_p): New predicate.
1173 (get_breakpoint_objfile_data): New function.
1174 (create_overlay_event_breakpoint): Check per-objfile cache for
1176 (create_longjmp_master_breakpoint): Likewise.
1177 (create_std_terminate_master_breakpoint): Likewise.
1178 (create_exception_master_breakpoint): Likewise.
1179 (_initialize_breakpoint): Register per-objfile data key.
1181 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
1183 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
1185 (create_longjmp_master_breakpoint): Loop over longjmp names.
1186 (create_std_terminate_master_breakpoint): Const-propagate parameter
1188 (update_breakpoints_after_exec): Adjust.
1189 (breakpoint_re_set): Adjust.
1191 2011-02-15 Michael Snyder <msnyder@vmware.com>
1193 * thread.c (info_threads_command): Process arg as thread id,
1194 or list of thread ids.
1195 (thread_find_command): New command.
1196 (_initialize_thread): Document argument for info threads.
1197 Document 'thread find' command.
1198 * NEWS: Document new command "thread find".
1200 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1202 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
1203 * aclocal.m4: Regenerated with aclocal-1.11.1.
1204 * common/configure: Regenerate with autoconf-2.64.
1206 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
1208 * opencl-lang.c (build_opencl_types): Set the size of the built-in
1209 bool data type to a size of one byte.
1211 2011-02-15 Pedro Alves <pedro@codesourcery.com>
1212 Jan Kratochvil <jan.kratochvil@redhat.com>
1214 * target.c (memory_xfer_live_readonly_partial): Document where to
1215 look for interface description.
1217 2011-02-15 Yao Qi <yao@codesourcery.com>
1220 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
1221 order to store PC value on stack instead of text section.
1223 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
1225 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
1226 the EFP register set size.
1227 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
1228 data from the VMX register.
1229 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
1230 and write data from/to the VMX register.
1232 2011-02-14 Michael Snyder <msnyder@vmware.com>
1234 * command.h (enum command_class): New class 'no_set_class', for
1235 "show" commands without a corresponding "set" command.
1236 * value.c (_initialize_values): Use 'no_set_class' for "show values".
1237 * copying.c (_initialize_copying): Ditto for "show copying" and
1239 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
1241 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
1242 which there is no corresponding "set" command (eg. "show copying").
1244 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1245 Jan Kratochvil <jan.kratochvil@redhat.com>
1247 * exec.c (section_table_available_memory): Change `len' parameter
1249 * exec.h (section_table_available_memory): Ditto.
1250 * value.h (read_value_memory): Rename the `offset' parameter to
1253 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1254 Jan Kratochvil <jan.kratochvil@redhat.com>
1256 * memrange.c (compare_mem_ranges): Mention sort order in
1258 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
1259 * tracepoint.c (traceframe_available_memory): Extend comment to
1260 mention what happens to RESULT when the target does not support
1263 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1264 Jan Kratochvil <jan.kratochvil@redhat.com>
1266 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
1269 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1271 * value.c (value_bits_valid, value_bits_synthetic_pointer):
1272 No longer handle NULL values.
1274 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1276 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
1277 * value.c: Include "exceptions.h".
1278 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
1280 * cp-abi.c: Include gdb_assert.h.
1281 (baseclass_offset): Add `embedded_offset' and `val' parameters.
1282 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
1284 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
1285 parameters. No longer returns -1 on error.
1286 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
1288 * cp-valprint.c: Include exceptions.h.
1289 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
1290 the baseclass_offset. Handle unavailable base classes. Use
1291 val_print_invalid_address.
1292 * p-valprint.c: Include exceptions.h.
1293 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
1294 when fetching the baseclass_offset. No longer expect
1295 baseclass_offset returning -1. Handle unavailable base classes.
1296 Use val_print_invalid_address.
1297 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
1298 `valaddr' parameter, and change its type to gdb_byte pointer. Add
1299 `embedded_offset' and `val' parameters. Adjust.
1300 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
1301 parameter, and change its type to gdb_byte pointer. Add
1302 `embedded_offset' and `val' parameters. Adjust. No longer expect
1303 baseclass_offset returning -1.
1304 (value_dynamic_cast): Use value_contents_for_printing rather than
1305 value_contents. Adjust.
1306 (search_struct_field): No longer expect baseclass_offset returning
1308 (search_struct_method): If reading memory from the target is
1309 necessary, wrap it in a new value to pass to baseclass_offset. No
1310 longer expect baseclass_offset returning -1.
1311 (find_method_list): No longer expect baseclass_offset returning
1312 -1. Use value_contents_for_printing rather than value_contents.
1313 * valprint.c (val_print_invalid_address): New function.
1314 * valprint.h (val_print_invalid_address): Declare.
1315 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
1316 and `val' parameters. No longer expect baseclass_offset returning
1318 * gnu-v2-abi.c: Include "exceptions.h".
1319 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
1320 parameters. Handle unavailable memory. Recurse through
1321 gnuv2_baseclass_offset directly, rather than through
1322 baseclass_offset. No longer returns -1 on not found, instead
1324 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
1325 `val' parameters. Adjust.
1327 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1329 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
1330 almost but not quite adjacent.
1332 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1334 * value.h (value_entirely_available): Declare.
1335 * value.c (value_entirely_available): New function.
1336 * c-valprint.c (c_value_print): Don't try fetching the pointer's
1337 real type if the pointer is unavailable.
1339 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1341 * valops.c (value_repeat): Use read_value_memory instead of
1344 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1346 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
1347 * value.c (value_contents_copy_raw, value_contents_copy): New
1349 (value_primitive_field): Use value_contents_copy_raw instead of
1351 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
1353 (value_array, value_slice): Ditto.
1354 * valarith.c (value_subscripted_rvalue): Use
1355 value_contents_copy_raw instead of memcpy.
1357 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1359 <unavailable> references.
1361 * valops.c (get_value_at): Use value_from_contents_and_address,
1362 avoiding read_memory.
1364 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1366 * c-valprint.c (c_val_print): Print a string with unavailable
1367 contents as an array.
1369 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1371 * value.h (unpack_bits_as_long): Delete declaration.
1372 (unpack_value_bits_as_long): Declare.
1373 (unpack_value_field_as_long): Declare.
1374 (value_field_bitfield): Declare.
1375 * value.c (unpack_bits_as_long): Rename to...
1376 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
1377 value parameters. Return the extracted result in a new output
1378 parameter. If the value contents are unavailable, return false,
1379 otherwise return true.
1380 (unpack_value_bits_as_long): New.
1381 (unpack_field_as_long): Rename to...
1382 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
1383 Add embedded_offset and value parameters. Return the extracted
1384 result in a new output parameter. If the value contents are
1385 unavailable, return false, otherwise return true.
1386 (unpack_value_field_as_long): New.
1387 (unpack_field_as_long_1): New.
1388 (unpack_field_as_long): Reimplement as wrapper around
1389 unpack_value_field_as_long_1.
1390 (value_field_bitfield): New function.
1391 * valops.c (value_fetch_lazy): When fetching a bitfield, use
1392 unpack_value_bits_as_long. Mark the value as unavailable, if it
1394 * jv-valprint.c (java_print_value_fields): Use
1395 value_field_bitfield.
1396 * p-valprint.c (pascal_object_print_value_fields): Use
1397 value_field_bitfield.
1398 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
1400 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1402 * value.c (get_internalvar_integer): Also return the int value of
1403 TYPE_CODE_INT INTERNALVAR_VALUE values.
1404 (set_internalvar): Don't special case TYPE_CODE_INT.
1406 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1408 * value.c (struct internalvar) <enum internalvar_kind>: Remove
1409 INTERNALVAR_POINTER.
1411 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
1412 (set_internalvar): Remove special TYPE_CODE_PTR handling.
1413 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
1415 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1417 * value.h (value_available_contents_eq): Declare.
1418 * value.c (find_first_range_overlap): New function.
1419 (value_available_contents_eq): New function.
1420 * valprint.c (val_print_array_elements): Use
1421 value_available_contents_eq.
1422 * ada-valprint.c (val_print_packed_array_elements): Use
1423 value_available_contents_eq.
1424 * jv-valprint.c (java_value_print): Use
1425 value_available_contents_eq.
1427 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1429 * target.c (target_read_live_memory): New function.
1430 (memory_xfer_live_readonly_partial): New.
1431 (memory_xfer_partial): If reading from a traceframe, fallback to
1432 reading unavailable read-only memory from read-only regions of
1434 * tracepoint.c (disconnect_tracing): Adjust.
1435 (set_current_traceframe): New, factored out from
1436 set_traceframe_number.
1437 (set_traceframe_number): Reimplement to only change the traceframe
1438 number on the GDB side.
1439 (do_restore_current_traceframe_cleanup): Adjust.
1440 (make_cleanup_restore_traceframe_number): New.
1441 (cur_traceframe_number): New global.
1442 (tfile_open): Set cur_traceframe_number to no traceframe.
1443 (set_tfile_traceframe): New function.
1444 (tfile_trace_find): If looking up a traceframe using any method
1445 other than by number, make sure the current tfile traceframe
1446 matches gdb's current traceframe. Update the current tfile
1447 traceframe if the lookup succeeded.
1448 (tfile_fetch_registers, tfile_xfer_partial)
1449 (tfile_get_trace_state_variable_value): Make sure the remote
1450 traceframe matches gdb's current traceframe.
1451 * remote.c (remote_traceframe_number): New global.
1452 (remote_open_1): Set it to -1.
1453 (set_remote_traceframe): New function.
1454 (remote_fetch_registers, remote_store_registers)
1455 (remote_xfer_memory, remote_xfer_partial)
1456 (remote_get_trace_state_variable_value): Make sure the remote
1457 traceframe matches gdb's current traceframe.
1458 (remote_trace_find): If looking up a traceframe using any method
1459 other than by number, make sure the current remote traceframe
1460 matches gdb's current traceframe. Update the current remote
1461 traceframe if the lookup succeeded.
1462 * infrun.c (fetch_inferior_event): Adjust.
1463 * tracepoint.h (set_current_traceframe): Declare.
1464 (get_traceframe_number, set_traceframe_number): Add describing
1467 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1469 Mark pieces of values as unavailable if the corresponding memory
1472 * valops.c: Include tracepoint.h.
1473 (value_fetch_lazy): Use read_value_memory.
1474 (read_value_memory): New.
1475 * value.h (read_value_memory): Declare.
1476 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
1477 * exec.c (section_table_available_memory): New function.
1478 * exec.h (section_table_available_memory): Declare.
1480 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1482 * Makefile.in (SFILES): Add memrange.c.
1483 (HFILES_NO_SRCDIR): Add memrange.h.
1484 (COMMON_OBS): Add memrange.o.
1485 * memrange.c: New file.
1486 * memrange.h: New file.
1487 * tracepoint.c: Include memrange.h.
1488 (struct mem_range): Delete.
1489 (mem_range_s): Delete.
1490 (traceframe_available_memory): New function.
1491 * tracepoint.h (traceframe_available_memory): Declare.
1493 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1495 * target.h (struct traceframe_info): Forward declare.
1496 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
1497 (struct target_ops) <to_traceframe_info>: New field.
1498 (target_traceframe_info): New.
1499 * target.c (update_current_target): Inherit and default
1501 * remote.c (PACKET_qXfer_traceframe_info): New.
1502 (remote_protocol_features): Register qXfer:traceframe-info:read.
1503 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
1504 (remote_traceframe_info): New.
1505 (init_remote_ops): Install it.
1506 (_initialize_remote): Install "set/show remote traceframe-info"
1508 * tracepoint.h (parse_traceframe_info): Declare.
1509 * tracepoint.c (struct mem_range): New.
1510 (mem_range_s): New typedef.
1511 (struct traceframe_info): New.
1512 (traceframe_info): New global.
1513 (free_traceframe_info): New function.
1514 (clear_traceframe_info): New function.
1515 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
1517 (build_traceframe_info): New function.
1518 (tfile_traceframe_info): New function.
1519 (init_tfile_ops): Install tfile_traceframe_info.
1520 (traceframe_info_start_memory, free_result): New functions.
1521 (memory_attributes, traceframe_info_elements): New globals.
1522 (parse_traceframe_info, get_traceframe_info): New functions.
1523 * features/traceframe-info.dtd: New file.
1524 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
1526 2011-02-14 Pedro Alves <pedro@codesourcery.com>
1528 Base support for <unavailable> value contents.
1530 * value.h (value_bytes_available): Declare.
1531 (mark_value_bytes_unavailable): Declare.
1532 * value.c (struct range): New struct.
1533 (range_s): New typedef.
1534 (ranges_overlap): New function.
1535 (range_lessthan): New function.
1536 (ranges_contain_p): New function.
1537 (struct value) <unavailable>: New field.
1538 (value_bytes_available): New function.
1539 (mark_value_bytes_unavailable): New function.
1540 (require_not_optimized_out): Constify parameter.
1541 (require_available): New function.
1542 (value_contents_all, value_contents): Require all bytes be
1544 (value_free): Free `unavailable'.
1545 (value_copy): Copy `unavailable'.
1546 * valprint.h (val_print_unavailable): Declare.
1547 * valprint.c (valprint_check_validity): Rename `offset' parameter
1548 to `embedded_offset'. If printing a scalar, check whether the
1549 value chunk is available.
1550 (val_print_unavailable): New.
1551 (val_print_scalar_formatted): Check whether the value is
1553 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
1554 pretty-printing unavailable values.
1556 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1558 Fix const/volatile qualifiers of C++ types, PR c++/12328.
1559 * c-typeprint.c (c_type_print_args): Update the function comment. New
1560 variable param_type, initialize it. Remove const/volatile qualifiers
1561 for language_cplus and !show_artificial. Use param_type.
1563 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1565 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
1566 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
1567 * symtab.h (struct symtab) <next>: Comment extension.
1569 2011-02-12 Yao Qi <yao@codesourcery.com>
1571 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
1573 2011-02-11 Yao Qi <yao@codesourcery.com>
1575 * common/Makefile.in: Add copyright header.
1577 2011-02-11 Pedro Alves <pedro@codesourcery.com>
1579 * infrun.c (proceed): Move switching out and in of tfind mode from
1581 (fetch_inferior_event): ... to here.
1583 2011-02-11 Yao Qi <yao@codesourcery.com>
1585 * Makefile.in: Remove signals.o from COMMON_OBS. Link
1587 * configure.ac: Add common to sub dir.
1588 * configure: Regenerate.
1590 2011-02-11 Yao Qi <yao@codesourcery.com>
1594 * common/Makefile.in: New.
1595 * common/configure.ac: New.
1596 * common/aclocal.m4: New.
1597 * common/configure: Generate.
1599 2011-02-10 Pedro Alves <pedro@codesourcery.com>
1601 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
1602 side of the parenthesis.
1605 2010-07-13 Jakub Jelinek <jakub@redhat.com>
1606 * vec.h (VEC_block_remove): Fix comment.
1608 2011-02-08 Michael Snyder <msnyder@vmware.com>
1610 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
1612 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1614 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
1615 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
1618 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1621 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
1623 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
1624 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
1626 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1628 * dwarf2read.c (read_subroutine_type): Set special calling
1629 convention flag for functions compiled by IBM XL C for OpenCL.
1630 * ppc-sysv-tdep.c: Include "dwarf2.h"
1631 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
1633 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
1634 IBM OpenCL vector types calling convention.
1635 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
1636 (ppc_sysv_abi_broken_return_value): Likewise.
1637 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
1638 types calling convention.
1639 (ppc64_sysv_abi_return_value): Likewise.
1640 * spu-tdep.c: Include "dwarf2.h"
1641 (spu_return_value): Implement IBM OpenCL vector types calling
1644 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1646 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
1647 correct ABI for AltiVec vector arguments.
1649 2011-02-07 Pedro Alves <pedro@codesourcery.com>
1651 * valprint.c (val_print): Extend comment.
1652 * ada-valprint.c (ada_valprint): Rewrite comment deferring
1653 interface explanation to val_print.
1654 (ada_val_print_array): Adjust comment to current interface.
1655 (print_field_values): Adjust comment to current interface.
1656 * c-valprint.c (c_val_print): Rewrite comment deferring interface
1657 explanation to val_print.
1658 * f-valprint.c (f_val_print): Ditto.
1659 * jv-valprint.c (java_val_print): Ditto.
1660 * m2-valprint.c (m2_val_print): Ditto.
1661 * p-valprint.c (pascal_val_print): Ditto.
1663 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
1665 * breakpoint.c (parse_breakpoint_sals): Fix description.
1667 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
1668 Oguz Kayral <oguzkayral@gmail.com>
1670 * python/py-inferior.c (python_on_normal_stop): New function.
1671 (python_on_resume): New function.
1672 (python_inferior_exit): New function.
1673 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
1674 inferior_exit observers.
1675 * python/py-evtregistry.c: New file.
1676 * python/py-threadevent.c : New file.
1677 * python/py-event.c: New file.
1678 * python/py-evts.c: New file.
1679 * python/py-continueevent.c: New file.
1680 * python/py-bpevent.c: New file.
1681 * python/py-signalevent.c: New file.
1682 * python/py-exetiedevent.c: New file.
1683 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
1684 Move struct breakpoint_object from here...
1685 * python/python-internal.h: ... to here.
1686 * python/py-event.h: New file.
1687 * python/py-events.h: New file.
1688 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
1689 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
1690 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
1691 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
1692 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
1693 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
1694 Add build rules for all the above.
1696 2011-02-04 Tom Tromey <tromey@redhat.com>
1698 * dwarf2read.c (dwarf2_section_empty_p): New function.
1699 (dwarf2_read_section): Use dwarf2_section_empty_p.
1700 (dwarf2_section_size): New function.
1701 (dwarf2_get_section_info): Unconditionally read section.
1702 (dwarf2_read_index): Use dwarf2_section_empty_p.
1703 (partial_read_comp_unit_head): Use dwarf2_section_size.
1704 (dwarf2_symbol_mark_computed): Likewise.
1706 2011-02-04 David Daney <ddaney@caviumnetworks.com>
1708 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
1710 2011-02-04 David Daney <ddaney@caviumnetworks.com>
1712 * mips-linux-tdep.c: Include xml-syscall.h.
1713 (mips_linux_get_syscall_number): New function.
1714 (mips_linux_init_abi): Add calls to
1715 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
1716 * data-directory/Makefile.in (SYSCALLS_FILES): Add
1717 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
1718 * syscalls/mips-n32-linux.xml: New file.
1719 * syscalls/mips-n64-linux.xml: New file.
1720 * syscalls/mips-o32-linux.xml: New file.
1722 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
1724 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
1725 Complain about inverted range entries.
1726 (dwarf2_record_block_ranges): Likewise.
1728 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1731 * breakpoint.c (update_watchpoint): Fix name of the
1732 update_global_location_list function.
1733 (print_one_breakpoint): Fix typo.
1734 (_initialize_breakpoint): Remove extra space in hbreak help
1736 * breakpoint.h (struct bp_location) <length>: Fix field
1739 2011-02-04 Pedro Alves <pedro@codesourcery.com>
1741 * regcache.c (registers_changed_ptid): Don't explictly always
1742 clear `current_regcache'. Only clear current_thread_ptid and
1743 current_thread_arch when PTID matches. Only reinit the frame
1744 cache if PTID matches the current inferior_ptid. Move alloca(0)
1746 (registers_changed): ... here.
1748 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
1750 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
1751 starts with __stack_chk_guard as stack guard symbol.
1753 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
1755 * disasm.c (compare_lines): Handle the end of sequence markers
1756 within the line table to better support disassembling over
1757 compilation unit boundaries.
1759 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1761 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
1762 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
1763 implementation even if no symbols are available.
1764 (thumb_analyze_prologue): Update call to skip_prologue_function.
1765 (arm_analyze_prologue): Likewise.
1767 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1769 * arm-tdep.c: Include "observer.h".
1770 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
1771 (arm_exidx_data_key): New static variable.
1772 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
1773 (struct arm_exidx_data): Likewise.
1774 (arm_exidx_data_free): New function.
1775 (arm_compare_exidx_entries): Likewise.
1776 (arm_obj_section_from_vma): Likewise.
1777 (arm_exidx_new_objfile): Likewise.
1778 (arm_find_exidx_entry): Likewise.
1779 (arm_exidx_fill_cache): Likewise.
1780 (arm_exidx_unwind_sniffer): Likewise.
1781 (arm_exidx_unwind): New global variable.
1782 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
1783 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
1784 observer. Register arm_exidx_data_key as objfile data.
1786 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1788 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
1789 due to accessing uninitialized variable. Fix indentation.
1791 2011-02-02 Pedro Alves <pedro@codesourcery.com>
1793 * c-valprint.c (c_value_print): When doing virtual base pointer
1794 adjustment, create a new value with adjusted contents rather than
1795 changing the contents of the value being printed (and getting it
1798 2011-02-02 Pedro Alves <pedro@codesourcery.com>
1800 * xml-support.c (xml_find_attribute): New.
1801 (xinclude_start_include): Use it.
1802 * xml-support.h (xml_find_attribute): Declare.
1803 * memory-map.c (memory_map_start_memory)
1804 (memory_map_start_property): Use xml_find_attribute.
1805 * osdata.c (osdata_start_osdata, osdata_start_column): Use
1807 * remote.c (start_thread): Use xml_find_attribute.
1808 * solib-target.c (library_list_start_segment)
1809 (library_list_start_section, library_list_start_library)
1810 (library_list_start_list): Use xml_find_attribute.
1811 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
1812 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
1813 (tdesc_start_field): Use xml_find_attribute.
1815 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
1817 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
1818 (BUILD_OCL_VTYPES): Update.
1820 2011-02-02 Joel Brobecker <brobecker@adacore.com>
1822 * configure.ac: Work around non-GNU sed limitation when computing
1823 python version number.
1824 * configure: Regenerate.
1826 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1828 Fix debug printing of TYPE_INSTANCE.
1829 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
1830 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
1832 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1834 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
1835 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
1836 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
1837 * ada-operator.inc: Rename the file to ...
1838 * ada-operator.def: ... here, wrap all the entries by macro OP.
1839 * expprint.c (op_name_standard): Remove all the entries. Include
1840 "std-operator.def" instead.
1841 * expression.h (enum exp_opcode): Include "std-operator.def" and
1842 "ada-operator.def". Move all the entries ...
1843 * std-operator.def: ... here, wrap all the entries by macro OP.
1845 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
1847 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
1848 * breakpoint.c (remove_jit_event_breakpoints): New function.
1849 * jit.c (jit_descriptor_addr): Delete.
1850 (registering_code): Delete.
1851 (clear_int): Delete.
1852 (jit_inferior_data): New variable.
1853 (struct jit_inferior_data): New type.
1854 (get_jit_inferior_data): New function.
1855 (jit_inferior_data_cleanup): New function.
1856 (jit_read_descriptor): Adjust.
1857 (jit_register_code): Adjust.
1858 (jit_breakpoint_re_set_internal): New function; move code here ...
1859 (jit_inferior_init): ... from here.
1860 (jit_breakpoint_re_set): Adjust.
1861 (jit_reset_inferior_data_and_breakpoints): New function.
1862 (jit_inferior_created_observer): Adjust.
1863 (jit_inferior_exit_hook): Adjust.
1864 (jit_executable_changed_observer): New function.
1865 (jit_event_handler): Adjust.
1866 (_initialize_jit): Adjust.
1868 2011-01-31 Michael Snyder <msnyder@vmware.com>
1870 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
1873 2011-01-31 Tom Tromey <tromey@redhat.com>
1876 * python/python.c (execute_gdb_command): Call
1877 prevent_dont_repeat.
1878 * top.c (suppress_dont_repeat): New global.
1879 (dont_repeat): Use it.
1880 (prevent_dont_repeat): New function.
1881 * command.h (prevent_dont_repeat): Declare.
1883 2011-01-31 Tom Tromey <tromey@redhat.com>
1885 * infcmd.c (finish_backward): Use breakpoint_set_silent.
1886 * python/py-breakpoint.c (bppy_set_silent): Use
1887 breakpoint_set_silent.
1888 (bppy_set_thread): Use breakpoint_set_thread.
1889 (bppy_set_task): Use breakpoint_set_task.
1890 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
1891 (breakpoint_set_task): Declare.
1892 (make_breakpoint_silent): Remove.
1893 * breakpoint.c (breakpoint_set_silent): New function.
1894 (breakpoint_set_thread): Likewise.
1895 (breakpoint_set_task): Likewise.
1896 (make_breakpoint_silent): Remove.
1898 2011-01-31 Tom Tromey <tromey@redhat.com>
1900 * breakpoint.h (user_breakpoint_p): Declare.
1901 * breakpoint.c (user_breakpoint_p): New function.
1902 (breakpoint_1): Use it.
1903 (save_breakpoints): Likewise.
1905 2011-01-31 Joel Brobecker <brobecker@adacore.com>
1907 * configure.ac: Add handling of Python distribution on Windows.
1908 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
1909 sysconfig variables are not defined, then do not use them.
1910 On Windows, if LIBPL is not defined, then use prefix + '/libs'
1911 instead. On Windows, return all paths using forward-slashes
1912 rather than backslashes.
1914 2011-01-31 Joel Brobecker <brobecker@adacore.com>
1916 * configure.ac: Remove fallback behavior for building
1917 against Python. Remove tweaking of Python include path.
1918 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
1919 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
1920 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
1921 Always restore CPPFLAGS and LIBS after linking test.
1922 * configure: Regenerated.
1923 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
1924 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
1925 * python/python-internal.h: Adjust includes of Python .h files.
1927 2011-01-31 Joel Brobecker <brobecker@adacore.com>
1929 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
1932 2011-01-31 Joel Brobecker <brobecker@adacore.com>
1934 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
1937 2011-01-31 Yao Qi <yao@codesourcery.com>
1939 * arm-linux-nat.c: Update calls to regcache_register_status
1940 instead of regcache_valid_p.
1941 * aix-thread.c: Likewise.
1942 * i386gnu-nat.c: Likewise.
1944 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1947 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
1948 touching TYPE_FIELD_ARTIFICIAL.
1950 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
1952 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
1955 2011-01-28 Pedro Alves <pedro@codesourcery.com>
1957 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
1958 selected, don't try iterating over the traceframe's blocks.
1959 (tfile_has_stack): If there's no traceframe selected, then there's
1961 (tfile_has_registers): If there's no traceframe selected, then
1962 there's no registers.
1964 2011-01-28 Pedro Alves <pedro@codesourcery.com>
1966 * target.c (memory_xfer_partial): No need to restore shadows if we
1967 haven't read anything.
1969 2011-01-28 Pedro Alves <pedro@codesourcery.com>
1971 * mips-tdep.c (mips_print_register): Use get_frame_register_value
1972 and val_print_scalar_formatted.
1974 2011-01-27 Pedro Alves <pedro@codesourcery.com>
1976 * tracepoint.c (tfile_read): New.
1977 (tfile_open): Use it.
1978 (tfile_get_traceframe_address): Use it.
1979 (tfile_trace_find): Use it.
1980 (walk_blocks_callback_func): New typedef.
1981 (match_blocktype): New function.
1982 (traceframe_walk_blocks): New function.
1983 (traceframe_find_block_type): New function.
1984 (tfile_fetch_registers, tfile_xfer_partial)
1985 (tfile_get_trace_state_variable_value): Use
1986 traceframe_find_block_type and tfile_read.
1988 2011-01-26 Kevin Buettner <kevinb@redhat.com>
1990 * remote-mips.c: Add internationalization mark ups. Remove
1991 trailing \n from already marked up strings.
1993 2011-01-26 Tom Tromey <tromey@redhat.com>
1995 * python/py-prettyprint.c (print_string_repr): Clear
1996 'addressprint' option when calling val_print_string.
1997 (print_children): Handle Val_pretty_default. Clear 'addressprint'
1998 option when calling val_print_string.
2000 2011-01-26 Tom Tromey <tromey@redhat.com>
2002 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
2004 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
2006 (gdb_py_longest, gdb_py_ulongest): New typedefs.
2007 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
2008 (gdb_py_long_as_ulongest): New defines.
2009 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
2010 (gdb_py_int_as_long): Declare.
2011 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
2012 GDB_PY_LL_ARG, gdb_py_object_from_longest.
2013 (valpy_long): Add comment.
2014 * python/py-utils.c (get_addr_from_python): Use
2015 gdb_py_long_as_ulongest. Handle overflow properly.
2016 (gdb_py_object_from_longest): New function.
2017 (gdb_py_object_from_ulongest): Likewise.
2018 (gdb_py_int_as_long): Likewise.
2019 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
2020 * python/py-symtab.c (salpy_get_pc): Use
2021 gdb_py_long_from_ulongest.
2022 (salpy_get_line): Use PyInt_FromLong.
2023 * python/py-param.c (set_parameter_value): Use
2025 * python/py-lazy-string.c (stpy_get_address): Use
2026 gdb_py_long_from_ulongest.
2027 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
2028 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
2029 * python/py-breakpoint.c (bppy_set_thread): Use
2031 (bppy_set_task): Likewise.
2032 (bppy_set_ignore_count): Likewise.
2033 (bppy_set_hit_count): Likewise.
2034 * python/py-block.c (blpy_get_start): Use
2035 gdb_py_object_from_ulongest.
2036 (blpy_get_end): Likewise.
2037 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
2039 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
2042 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
2043 * gdb/solib.c (solib_read_symbols): Check for addr_low in
2044 equality test for objfile, initialize addr_low if needed.
2046 2011-01-25 Pedro Alves <pedro@codesourcery.com>
2048 * tui/tui-regs.c (tui_register_format): Remove dead code.
2050 2011-01-25 Pedro Alves <pedro@codesourcery.com>
2052 * printcmd.c (print_formatted): Use val_print_scalar_formatted
2053 instead of print_scalar_formatted.
2054 (print_scalar_formatted): Don't handle 's' format strings here,
2055 and add an assertion that we never see such format here.
2056 * valprint.h (val_print_scalar_formatted): Declare.
2057 * valprint.c (val_print_scalar_formatted): New.
2058 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
2059 instead of print_scalar_formatted.
2060 * jv-valprint.c (java_val_print): Ditto.
2061 * p-valprint.c (pascal_val_print): Ditto.
2062 * ada-valprint.c (ada_val_print_1): Ditto.
2063 * f-valprint.c (f_val_print): Ditto.
2064 * infcmd.c (registers_info): Ditto.
2065 * m2-valprint.c (m2_val_print): Ditto.
2067 2011-01-25 Pedro Alves <pedro@codesourcery.com>
2069 * m2-valprint.c (print_unbounded_array): Pass
2070 value_contents_for_printing rather than value_contents, to
2071 m2_print_array_contents. Also pass in the value.
2073 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2075 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
2076 (save_gdb_index_command): Switch to .gdb_index version 4.
2078 2011-01-25 Pedro Alves <pedro@codesourcery.com>
2080 * mi/mi-main.c (get_register): Use get_frame_register_value rather
2081 than frame_register, and always pass a valid value to val_print.
2083 2011-01-25 Pedro Alves <pedro@codesourcery.com>
2085 Centralize printing "<optimized out>".
2087 * valprint.h (val_print_optimized_out): Declare.
2088 * cp-valprint.c (cp_print_value_fields): Use
2089 val_print_optimized_out.
2090 * jv-valprint.c (java_print_value_fields): Ditto.
2091 * p-valprint.c (pascal_object_print_value_fields): Ditto.
2092 * printcmd.c (print_formatted): Ditto.
2093 * valprint.c (valprint_check_validity): Ditto.
2094 (value_check_printable): Ditto.
2095 (val_print_optimized_out): New.
2097 2011-01-25 Pedro Alves <pedro@codesourcery.com>
2099 * infcmd.c (default_print_registers_info): Allocate values so to
2100 never pass a NULL value to val_print.
2102 2011-01-25 Pedro Alves <pedro@codesourcery.com>
2104 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
2105 boolean. Make sure to always pass a value that matches the
2106 contents buffer to callees. Preserve `address' for following
2108 * value.c (value_contents_for_printing_const): New.
2109 (value_address): Constify value argument.
2110 * value.h (value_contents_for_printing_const): Declare.
2111 (value_address): Constify value argument.
2113 2011-01-25 Pedro Alves <pedro@codesourcery.com>
2115 * regcache.c (struct regcache_descr): Rename
2116 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
2117 and sizeof_cooked_register_valid_p to
2118 sizeof_cooked_register_status.
2119 (init_regcache_descr): Adjust.
2120 (struct regcache): Rename register_valid_p field to
2122 (regcache_xmalloc_1, regcache_xfree, regcache_save)
2123 (do_cooked_read): Adjust.
2124 (regcache_valid_p): Rename to ...
2125 (regcache_register_status): ... this. Adjust.
2126 (regcache_invalidate): Adjust.
2127 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
2129 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
2130 as unavailable, not valid.
2131 (regcache_dump): Adjust.
2132 * regcache.h (enum register_status): New.
2133 (regcache_register_status): Declare.
2134 (regcache_invalidate): Delete declaration.
2135 * corelow.c (get_core_registers): Adjust.
2136 * tracepoint.c (tfile_fetch_registers): Adjust.
2137 * trad-frame.c (REG_VALUE): Rename to ...
2138 (TF_REG_VALUE): ... this.
2139 (REG_UNKNOWN): Rename to ...
2140 (TF_REG_UNKNOWN): ... this.
2141 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
2142 * mi/mi-main.c (register_changed_p): Adjust.
2144 2011-01-25 Pedro Alves <pedro@codesourcery.com>
2146 * regcache.c (struct regcache_descr): Remove outdated comment.
2147 (init_regcache_descr): Remove sizeof_raw_register_valid_p
2149 (regcache_xmalloc): Rename to ...
2150 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
2151 Allocate the regcache type accordingly.
2152 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
2153 (regcache_xfree): Asser the source is also readonly. Copy sizeof
2154 cooked registers, not raw.
2155 (regcache_dup_no_passthrough): Delete.
2156 (get_thread_arch_regcache): Use regcache_xmalloc_1.
2157 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
2158 mention obsolete write_register_bytes.
2159 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
2161 2011-01-25 Pedro Alves <pedro@codesourcery.com>
2163 Stop remote_read_bytes from handling partial reads itself.
2165 * remote-fileio.c: Include target.h.
2166 (remote_fileio_write_bytes): Delete.
2167 (remote_fileio_func_open, remote_fileio_func_write)
2168 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
2170 (remote_fileio_func_stat): Use target_read_memory and
2171 target_write_memory.
2172 (remote_fileio_func_gettimeofday): Use target_write_memory.
2173 (remote_fileio_func_system): Use target_read_memory.
2174 * remote.c (remote_write_bytes): Make it static.
2175 (remote_read_bytes): Don't handle partial reads here.
2176 * remote.h (remote_read_bytes): Delete declaration.
2178 2011-01-25 Pedro Alves <pedro@codesourcery.com>
2180 Simplify XML parsing a bit.
2182 * xml-support.h (gdb_xml_parse_quick): Declare.
2183 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
2184 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
2186 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
2187 gdb_xml_create_parser_and_cleanup_1.
2188 (gdb_xml_parse_quick): New.
2189 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
2190 * osdata.c (osdata_parse): Ditto.
2191 * remote.c (remote_threads_info): Ditto.
2192 * solib-target.c (solib_target_parse_libraries): Ditto.
2193 * xml-syscall.c (syscall_parse_xml): Ditto.
2194 * xml-tdesc.c (tdesc_parse_xml): Ditto.
2196 2011-01-24 Kevin Buettner <kevinb@redhat.com>
2198 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
2199 with remote-mips.o added to gdb_target_obs.
2200 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
2202 2011-01-24 Pedro Alves <pedro@codesourcery.com>
2204 * ada-valprint.c (val_print_packed_array_elements): Pass the
2205 correct struct value to val_print.
2206 (ada_val_print_1): Ditto.
2208 2011-01-24 Pedro Alves <pedro@codesourcery.com>
2210 Don't lose embedded_offset in printing routines throughout.
2212 * valprint.h (val_print_array_elements): Change prototype.
2213 * valprint.c (val_print_array_elements): Add `embedded_offset'
2214 parameter, and adjust to pass it down to val_print, while passing
2215 `valaddr' or `address' unmodified. Take embedded_offset into
2216 account when checking repetitions.
2217 * c-valprint.c (c_val_print): Pass embedded_offset to
2218 val_print_array_elements instead of adjusting `valaddr' and
2220 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
2221 embedded_offset to val_print_array_elements instead of adjusting
2223 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
2224 * p-valprint.c (pascal_val_print): Pass embedded_offset to
2225 val_print_array_elements and pascal_object_print_value_fields
2226 instead of adjusting `valaddr'.
2227 (pascal_object_print_value_fields): Add `offset' parameter, and
2229 (pascal_object_print_value): Add `offset' parameter, and adjust to
2231 (pascal_object_print_static_field): Use
2232 value_contents_for_printing/value_embedded_offset, rather than
2234 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
2235 parameter, and adjust to use it. Use
2236 value_contents_for_printing/value_embedded_offset, rather than
2238 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
2239 (ada_val_print_array): Add `offset' parameter, and adjust to use
2241 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
2242 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
2243 Instead work with offsets. Use
2244 value_contents_for_printing/value_embedded_offset, rather than
2245 value_contents. Change `defer_val_int' local type to CORE_ADDR,
2246 and use value_from_pointer to extract a target pointer, rather
2247 than value_from_longest.
2248 (print_variant_part): Add `offset' parameter. Replace
2249 `outer_valaddr' parameter by a new `outer_offset' parameter.
2250 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
2251 (ada_value_print): Use
2252 value_contents_for_printing/value_embedded_offset, rather than
2254 (print_record): Add `offset' parameter, and adjust to pass it
2256 (print_field_values): Add `offset' parameter. Replace
2257 `outer_valaddr' parameter by a new `outer_offset' parameter.
2258 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
2259 Use value_contents_for_printing/value_embedded_offset, rather than
2261 * d-valprint.c (dynamic_array_type): Use
2262 value_contents_for_printing/value_embedded_offset, rather than
2264 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
2265 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
2266 (java_print_value_fields): Take `offset' into account. Don't
2267 re-adjust `valaddr'. Instead pass down adjusted offsets.
2268 (java_val_print): Take `embedded_offset' into account. Pass it to
2269 java_print_value_fields.
2270 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
2271 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
2272 down adjusted offsets.
2273 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
2274 (f_val_print): Take `embedded_offset' into account.
2276 2011-01-21 Joel Brobecker <brobecker@adacore.com>
2278 * inflow.c: Include "gdbcmd.h".
2279 (interactive_mode): New static global, moved here from top.c.
2280 (show_interactive_mode): New function, moved here from top.c.
2281 use gdb_has_a_terminal instead of input_from_terminal_p to
2282 determine the current mode.
2283 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
2285 (_initialize_inflow): Add the "set/show interactive-mode"
2286 commands. Moved here from top.c, after having adjusted slightly
2288 * top.c (interactive_mode, show_interactive_mode): Delete, moved
2290 (input_from_terminal_p): Remove handling of "interactive-mode"
2291 setting, moved to infow.c.
2292 (init_main): Remove creation of the "set/show interactive-mode"
2293 commands, moved to inflow.c.
2295 2011-01-19 Joel Brobecker <brobecker@adacore.com>
2297 * NEWS: Add entry for native ia64-hpux support.
2299 2011-01-19 Tom Tromey <tromey@redhat.com>
2302 * thread.c (free_thread): Free 'name'.
2303 (print_thread_info): Emit thread name. Change CLI output.
2304 (thread_name_command): New function.
2305 (do_captured_thread_select): Emit newline.
2306 (_initialize_thread): Register 'thread name' command.
2307 * target.h (struct target_ops) <to_thread_name>: New field.
2308 (target_thread_name): New macro.
2309 * target.c (update_current_target): Handle to_thread_name.
2310 * python/py-infthread.c (thpy_get_name): New function.
2311 (thpy_set_name): Likewise.
2312 (thread_object_getset): Add "name".
2313 * linux-nat.c (linux_nat_thread_name): New function.
2314 (linux_nat_add_target): Set to_thread_name.
2315 * gdbthread.h (struct thread_info) <name>: New field.
2317 2011-01-18 Joel Brobecker <brobecker@adacore.com>
2319 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
2320 (ada_val_print_1): Likewise.
2322 2011-01-18 Joel Brobecker <brobecker@adacore.com>
2324 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
2325 upper limit address is not greater than the function end address
2326 when the upper limit could not be computed using the debugging
2329 2011-01-17 Tom Tromey <tromey@redhat.com>
2331 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
2333 * utils.c: Include gdb_regex.h.
2334 (do_regfree_cleanup): New function.
2335 (make_regfree_cleanup): Likewise.
2336 (get_regcomp_error): Likewise.
2337 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
2339 2011-01-17 Tom Tromey <tromey@redhat.com>
2341 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
2344 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
2346 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
2347 for internal variables.
2348 (last_was_structop): New static variable.
2349 (COMPLETE): New token.
2350 (field_exp): New rule to group all '.' suffix handling.
2351 Add mark_struct_expression calls when approriate to be able
2352 to correctly find fields for completion.
2353 (yylex): Adapt to handle field completion and set INTVAR when
2356 2011-01-14 Yao Qi <yao@codesourcery.com>
2358 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
2359 save_reggroup, restore_reggroup and all_reggroup.
2361 2011-01-14 Joel Brobecker <brobecker@adacore.com>
2363 * ada-valprint. (ada_printchar): Use the correct type length
2364 in call to ada_emit_char.
2365 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
2367 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
2369 * solib-som.h (hpux_major_release): Declare variable here.
2370 * solib-som.c: Remove <sys/utsname.h> header.
2371 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
2372 (hpux_major_release): Make global, change default value to
2373 DEFAULT_HPUX_MAJOR_RELEASE.
2374 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
2375 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
2376 Add "solib-som.h" header.
2377 (set_hpux_major_release): New function.
2378 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
2380 2011-01-14 Mike Frysinger <vapier@gentoo.org>
2382 * configure.tgt (*-*-uclinux*): Match more Linux os targets
2384 2011-01-14 Joel Brobecker <brobecker@adacore.com>
2386 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
2387 new-line at end of warning message.
2388 (ia64_hpux_store_register): Remove trailing new-line at end of
2390 * ia64-hpux-tdep.c: Rephrase comment.
2391 * solib-ia64-hpux.c (struct dld_info): Change type of field
2392 dld_flags from "long long" to ULONGEST.
2394 2011-01-14 Pedro Alves <pedro@codesourcery.com>
2396 * target.h (deprecated_child_ops): Delete declaration.
2397 * target.c (deprecated_child_ops): Delete definition.
2399 2011-01-14 Pedro Alves <pedro@codesourcery.com>
2401 * Makefile.in (hpux-thread.o): Delete rule.
2402 * configure.ac: Don't check for HPUX DCE threads support.
2403 * configure, config.in: Regenerate.
2404 * hppa-hpux-nat.c (child_suppress_run): Delete.
2405 (hppa_hpux_child_can_run): Delete.
2406 (_initialize_hppa_hpux_nat): Don't override to_can_run.
2407 * hpux-thread.c: Delete.
2409 2011-01-13 Joel Brobecker <brobecker@adacore.com>
2411 * hpux-thread.c (hpux_pid_to_str): Delete.
2413 2011-01-13 Joel Brobecker <brobecker@adacore.com>
2415 * ada-valprint.c (ada_emit_char): Remove strange code.
2416 Check that c is <= UCHAR_MAX before passing it to isascii.
2417 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
2419 2011-01-13 Joel Brobecker <brobecker@adacore.com>
2421 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
2422 to the case where instream is stdin.
2424 2011-01-13 Joel Brobecker <brobecker@adacore.com>
2426 * ia64-tdep.h (struct regcache): Forward declare.
2427 (struct ia64_infcall_ops): New struct type.
2428 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
2430 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
2431 Renames ia64_find_global_pointer.
2432 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
2433 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
2434 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
2436 (ia64_infcall_ops): New static global constant.
2437 (ia64_gdbarch_init): Set tdep->infcall_ops.
2438 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
2439 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
2440 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
2441 (ia64_hpux_dummy_code): New static global constant.
2442 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
2443 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
2444 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
2446 (ia64_hpux_infcall_ops): New static global constant.
2447 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
2448 for inferior function calls to work properly on ia64-hpux.
2450 2011-01-13 Joel Brobecker <brobecker@adacore.com>
2452 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
2453 * ia64-tdep.h (struct frame_info): forward declaration.
2454 (struct gdbarch_tdep): Add field size_of_register_frame.
2455 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
2456 to determine the size of the register frame.
2457 (ia64_size_of_register_frame): New function.
2458 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
2459 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
2460 (IA64_HPUX_UREG_REASON): New macro.
2461 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
2463 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
2464 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
2465 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
2468 2011-01-13 Joel Brobecker <brobecker@adacore.com>
2470 Add support for ia64-hpux.
2471 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
2472 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
2474 * configure.host: Add handling for ia64-hpux hosts. Add associated
2476 * configure.tgt: Add handling for ia64-hpux targets.
2477 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
2478 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
2479 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
2481 2011-01-13 Joel Brobecker <brobecker@adacore.com>
2483 [ttrace] Compute thread list immediately after attach.
2484 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
2486 (inf_ttrace_attach): Use it.
2488 2011-01-13 Joel Brobecker <brobecker@adacore.com>
2490 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
2491 if we could not determine the frame's function address. Instead,
2492 use the frame's PC, and then continue.
2494 2011-01-13 Joel Brobecker <brobecker@adacore.com>
2496 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
2497 not already defined.
2499 2011-01-13 Joel Brobecker <brobecker@adacore.com>
2501 * ia64-tdep.c (ia64_struct_type_p): New function.
2502 (ia64_extract_return_value): Handle integral values that are
2503 less than 8 bytes long.
2504 (ia64_push_dummy_call): Likewise.
2506 2011-01-13 Joel Brobecker <brobecker@adacore.com>
2508 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
2509 floatformat_ia64_ext.
2510 (floatformat_ia64_ext_big): New static const.
2511 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
2513 2011-01-12 Tom Tromey <tromey@redhat.com>
2515 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
2517 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
2518 (mi_cmd_thread_list_ids): Likewise.
2519 (mi_cmd_data_list_changed_registers): Likewise.
2520 (mi_cmd_data_list_register_values): Likewise.
2521 (mi_cmd_data_write_register_values): Likewise.
2522 (mi_cmd_data_evaluate_expression): Likewise.
2523 (mi_cmd_data_read_memory): Likewise.
2524 (mi_cmd_data_read_memory_bytes): Likewise.
2525 (mi_cmd_data_write_memory): Likewise.
2526 (mi_cmd_enable_timings): Likewise.
2527 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
2528 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
2529 (mi_cmd_var_delete): Likewise.
2530 (mi_cmd_var_set_format): Likewise.
2531 (mi_cmd_var_show_format): Likewise.
2532 (mi_cmd_var_info_num_children): Likewise.
2533 (mi_cmd_var_list_children): Likewise.
2534 (mi_cmd_var_info_type): Likewise.
2535 (mi_cmd_var_info_expression): Likewise.
2536 (mi_cmd_var_show_attributes): Likewise.
2537 (mi_cmd_var_assign): Likewise.
2538 (mi_cmd_var_update): Likewise.
2539 (mi_cmd_enable_pretty_printing): Likewise.
2540 (mi_cmd_var_set_update_range): Likewise.
2541 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
2543 (mi_cmd_target_file_put): Likewise.
2544 (mi_cmd_target_file_delete): Likewise.
2545 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
2547 (mi_cmd_stack_info_depth): Likewise.
2548 (mi_cmd_stack_list_locals): Likewise.
2549 (mi_cmd_stack_list_args): Likewise.
2550 (mi_cmd_stack_select_frame): Likewise.
2551 (mi_cmd_stack_select_frame): Likewise.
2552 (mi_cmd_stack_info_frame): Likewise.
2553 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
2555 (mi_cmd_file_list_exec_source_files): Likewise.
2556 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
2557 (mi_cmd_env_cd): Likewise.
2558 (mi_cmd_env_path): Likewise.
2559 (mi_cmd_env_dir): Likewise.
2560 (mi_cmd_inferior_tty_show): Likewise.
2561 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
2562 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
2563 (mi_cmd_break_watch): Likewise.
2565 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
2567 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
2568 (ppc_linux_insert_hw_breakpoint): Likewise.
2569 (ppc_linux_remove_hw_breakpoint): Likewise.
2570 (ppc_linux_insert_watchpoint): Likewise.
2572 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
2573 Jan Kratochvil <jan.kratochvil@redhat.com>
2575 PR fortran/11104 and DWARF unbound arrays detection.
2576 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
2577 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
2578 unspecified upper bound.
2579 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
2580 variables array_size_array, tmp_type and offset_item. New variable
2581 array. Remove call to f77_get_upperbound. New variables array_type
2582 and index. Call value_subscripted_rvalue for each dimenasion. Remove
2583 the final call to deprecated_set_value_type.
2585 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2587 Make value allocations more lazy.
2588 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
2589 instead of allocate_value and set_value_lazy when possible.
2590 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
2591 instead of allocate_value and set_value_lazy.
2592 * findvar.c (value_of_register_lazy): Likewise.
2593 (read_var_value): Remove V preallocation, call just check_typedef in
2594 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
2595 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
2596 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
2597 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
2598 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
2599 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
2600 the end, remove set_value_lazy there.
2601 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
2602 instead of allocate_value and set_value_lazy when possible.
2603 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
2604 * value.c (allocate_computed_value): Use allocate_value_lazy instead
2605 of allocate_value and set_value_lazy.
2606 (value_from_contents_and_address): Use allocate_value_lazy instead of
2607 allocate_value and set_value_lazy when possible.
2609 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
2611 * disasm.c (dump_insns): Support dumping opcodes for MI.
2612 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
2613 dumping of instruction opcodes.
2615 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
2617 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
2620 2011-01-11 Tom Tromey <tromey@redhat.com>
2622 * thread.c (do_captured_thread_select): Emit newline before
2625 2011-01-11 Michael Snyder <msnyder@vmware.com>
2627 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
2628 * score-tdep.c: Ditto.
2629 * score-tdep.h: Ditto.
2630 * ser-base.c: Ditto.
2631 * ser-go32.c: Ditto.
2634 * ser-mingw.c: Ditto.
2635 * ser-pipe.c: Ditto.
2637 * ser-unix.c: Ditto.
2638 * sh64-tdep.c: Ditto.
2639 * shnbsd-nat.c: Ditto.
2643 * solib-darwin.c: Ditto.
2644 * solib-frv.c: Ditto.
2646 * solib-irix.c: Ditto.
2647 * solib-osf.c: Ditto.
2648 * solib-pa64.c: Ditto.
2649 * solib-som.c: Ditto.
2650 * solib-spu.c: Ditto.
2651 * solib-sunos.c: Ditto.
2652 * solib-svr4.c: Ditto.
2654 * sol-thread.c: Ditto.
2658 * sparc64-linux-tdep.c: Ditto.
2659 * sparc64-tdep.c: Ditto.
2660 * sparc-linux-nat.c: Ditto.
2661 * sparc-linux-tdep.c: Ditto.
2662 * sparc-sol2-nat.c: Ditto.
2663 * sparc-sol2-tdep.c: Ditto.
2664 * sparc-tdep.c: Ditto.
2665 * sparc-tdep.h: Ditto.
2666 * spu-tdep.c: Ditto.
2667 * stabsread.c: Ditto.
2668 * stabsread.h: Ditto.
2676 * target-descriptions.c: Ditto.
2677 * target-descriptions.h: Ditto.
2679 * target-memory.c: Ditto.
2680 * terminal.h: Ditto.
2683 * tracepoint.c: Ditto.
2684 * tracepoint.h: Ditto.
2685 * trad-frame.h: Ditto.
2686 * typeprint.c: Ditto.
2688 2011-01-11 Michael Snyder <msnyder@vmware.com>
2690 * ui-file.c: Comment cleanup, mostly periods and spaces.
2695 * v850-tdep.c: Ditto.
2696 * valarith.c: Ditto.
2698 * valprint.c: Ditto.
2699 * valprint.h: Ditto.
2704 * vax-tdep.c: Ditto.
2708 * windows-nat.c: Ditto.
2709 * windows-tdep.c: Ditto.
2710 * xcoffread.c: Ditto.
2711 * xcoffsolib.c: Ditto.
2712 * xml-support.c: Ditto.
2713 * xstormy16-tdep.c: Ditto.
2714 * xtensa-tdep.c: Ditto.
2715 * xtensa-tdep.h: Ditto.
2717 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
2719 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
2720 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
2722 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2723 Thiago Jung Bauermann <bauerman@br.ibm.com>
2725 Implement support for PowerPC BookE ranged watchpoints.
2727 (struct breakpoint_ops) <resources_needed>: New method.
2728 Initialize to NULL in all existing breakpoint_ops instances.
2729 (struct breakpoint) <exact>: New field.
2730 (target_exact_watchpoints): Declare external global.
2731 * breakpoint.c (target_exact_watchpoints): New global flag.
2732 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
2733 b->enable_state to bp_enabled before calling
2734 hw_watchpoint_used_count.
2735 (hw_watchpoint_used_count): Iterate over all bp_locations in a
2736 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
2738 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
2739 if the watchpoint is exact.
2740 (resources_needed_watchpoint): New function.
2741 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
2742 (watch_command_1): Set b->exact if the user asked for an exact
2743 watchpoint and one can be set.
2744 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
2745 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
2746 the user asks for an exact watchpoint and one can be set. Return
2747 number of needed debug registers to watch the expression.
2748 * gdbtypes.c (is_scalar_type): New function, based on
2749 valprint.c:scalar_type_p.
2750 (is_scalar_type_recursive): New function.
2751 * gdbtypes.h (is_scalar_type_recursive): Declare.
2752 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
2753 handle regions when ranged watchpoints are available.
2754 (create_watchpoint_request): New function.
2755 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
2756 create_watchpoint_request.
2757 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
2758 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
2759 `set powerpc' and `show powerpc' commands.
2760 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
2761 Mention documentation comment in the target macro.
2762 (target_region_ok_for_hw_watchpoint): Document return value.
2764 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
2766 * breakpoint.c (update_watchpoint): Decide on using a software or
2767 hardware watchpoint after the bp_locations are created.
2769 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
2771 Convert hardware watchpoints to use breakpoint_ops.
2772 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
2773 <insert_location>: ... this. Return int instead of void.
2774 Accept pointer to struct bp_location instead of pointer to
2775 struct breakpoint. Adapt all implementations.
2776 (breakpoint_ops) <remove>: Rename to...
2777 <remove_location>: ... this. Accept pointer to struct bp_location
2778 instead of pointer to struct breakpoint. Adapt all implementations.
2779 * breakpoint.c (insert_catchpoint): Delete function.
2780 (insert_bp_location): Call the watchpoint or catchpoint's
2781 breakpoint_ops.insert method.
2782 (remove_breakpoint_1): Call the watchpoint or catchpoint's
2783 breakpoint_ops.remove method.
2784 (insert_watchpoint, remove_watchpoint): New functions.
2785 (watchpoint_breakpoint_ops): New structure.
2786 (watch_command_1): Initialize the OPS field.
2787 * inf-child.c (inf_child_insert_fork_catchpoint)
2788 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
2789 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
2790 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
2792 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
2793 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
2794 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
2795 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
2796 * target.c (update_current_target): Change default implementation of
2797 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
2798 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
2799 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
2800 to_set_syscall_catchpoint to return_one.
2801 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
2802 (debug_to_insert_exec_catchpoint): Report return value.
2803 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
2804 (to_insert_exec_catchpoint): Change declaration to return int instead
2807 2011-01-11 Michael Snyder <msnyder@vmware.com>
2809 * arm-tdep.c: Internationalization.
2812 * fork-child.c: Ditto.
2813 * nto-procfs.c: Ditto.
2814 * ppc-sysv-tdep.c: Ditto.
2816 * remote-mips.c: Ditto.
2818 * rs6000-nat.c: Ditto.
2819 * rs6000-tdep.c: Ditto.
2823 * xml-support.c: Ditto.
2824 * mi/mi-cmd-break.c: Ditto.
2825 * mi/mi-cmd-var.c: Ditto.
2826 * mi/mi-interp.c: Ditto.
2827 * mi/mi-main.c: Ditto.
2829 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
2831 * remote-sim.c (gdbsim_store_register): Update API to
2832 sim_store_register to check more error conditions.
2834 2011-01-10 Michael Snyder <msnyder@vmware.com>
2836 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
2837 * nto-tdep.c: Ditto.
2838 * nto-tdep.h: Ditto.
2839 * objc-exp.y: Ditto.
2840 * objc-lang.c: Ditto.
2841 * objfiles.c: Ditto.
2842 * objfiles.h: Ditto.
2843 * observer.c: Ditto.
2844 * opencl-lang.c: Ditto.
2847 * parser-defs.h: Ditto.
2850 * posix-hdep.c: Ditto.
2851 * ppcbug-rom.c: Ditto.
2852 * ppc-linux-nat.c: Ditto.
2853 * ppc-linux-tdep.c: Ditto.
2854 * ppc-linux-tdep.h: Ditto.
2855 * ppcnbsd-tdep.c: Ditto.
2856 * ppcobsd-tdep.c: Ditto.
2857 * ppcobsd-tdep.h: Ditto.
2858 * ppc-sysv-tdep.c: Ditto.
2859 * ppc-tdep.h: Ditto.
2860 * printcmd.c: Ditto.
2861 * proc-abi.c: Ditto.
2862 * proc-flags.c: Ditto.
2864 * proc-utils.h: Ditto.
2865 * progspace.h: Ditto.
2866 * prologue-value.c: Ditto.
2867 * prologue-value.h: Ditto.
2868 * psympriv.h: Ditto.
2870 * p-typeprint.c: Ditto.
2871 * p-valprint.c: Ditto.
2872 * ravenscar-sparc-thread.c: Ditto.
2873 * ravenscar-thread.c: Ditto.
2874 * ravenscar-thread.h: Ditto.
2876 * regcache.c: Ditto.
2877 * regcache.h: Ditto.
2879 * remote-fileio.c: Ditto.
2880 * remote-fileio.h: Ditto.
2882 * remote-m32r-sdi.c: Ditto.
2883 * remote-mips.c: Ditto.
2884 * remote-sim.c: Ditto.
2885 * rs6000-aix-tdep.c: Ditto.
2886 * rs6000-nat.c: Ditto.
2887 * rs6000-tdep.c: Ditto.
2889 2011-01-10 Michael Snyder <msnyder@vmware.com>
2891 * charset.c (validate): Internationalization.
2892 * coffread.c (read_one_sym): Ditto.
2893 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
2894 * h8300-tdep.c (H8300_extract_return_value): Ditto.
2895 * inflow.c (new_tty): Ditto.
2896 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
2897 * m32c-tdep.c (m32c_return_value): Ditto.
2898 * mep-tdep.c (mep_store_return_value): Ditto.
2899 * score-tdep.c (score7_fetch_insn): Ditto.
2900 * ser-mingw.c (pipe_windows_open): Ditto.
2901 * sh64-tdep.c (sh64_extract_return_value): Ditto.
2902 * spu-tdep.c (spu_register_type): Ditto.
2903 * tracepoint.c (trace_find_command): Ditto.
2904 * valarith.c (value_pos): Ditto.
2906 2011-01-10 Joel Brobecker <brobecker@adacore.com>
2908 * ada-valprint.c (printstr): Minor comment reformatting.
2910 2011-01-08 Michael Snyder <msnyder@vmware.com>
2912 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
2915 2011-01-08 Michael Snyder <msnyder@vmware.com>
2917 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
2918 * hppa-hpux-tdep.c: Ditto.
2919 * hppa-linux-nat.c: Ditto.
2920 * hppa-linux-tdep.c: Ditto.
2921 * hppanbsd-tdep.c: Ditto.
2922 * hppa-tdep.c: Ditto.
2923 * hppa-tdep.h: Ditto.
2924 * hpux-thread.c: Ditto.
2925 * i386-cygwin-tdep.c: Ditto.
2926 * i386-darwin-nat.c: Ditto.
2927 * i386gnu-nat.c: Ditto.
2928 * i386-linux-nat.c: Ditto.
2929 * i386-linux-tdep.c: Ditto.
2930 * i386-nat.c: Ditto.
2931 * i386-nat.h: Ditto.
2932 * i386nbsd-tdep.c: Ditto.
2933 * i386-sol2-nat.c: Ditto.
2934 * i386-stub.c: Ditto.
2935 * i386-tdep.c: Ditto.
2936 * i386-tdep.h: Ditto.
2937 * i387-tdep.c: Ditto.
2938 * ia64-linux-nat.c: Ditto.
2939 * ia64-linux-tdep.c: Ditto.
2940 * ia64-tdep.c: Ditto.
2944 * inferior.c: Ditto.
2945 * inferior.h: Ditto.
2951 * iq2000-tdep.c: Ditto.
2952 * irix5-nat.c: Ditto.
2958 * jv-typeprint.c: Ditto.
2959 * jv-valprint.c: Ditto.
2960 * language.c: Ditto.
2961 * language.h: Ditto.
2962 * linespec.c: Ditto.
2963 * linux-fork.c: Ditto.
2964 * linux-nat.c: Ditto.
2965 * linux-thread-db.c: Ditto.
2966 * lm32-tdep.c: Ditto.
2968 2011-01-08 Michael Snyder <msnyder@vmware.com>
2970 * m2-exp.y: Comment cleanup, mostly periods and spaces.
2972 * m2-typeprint.c: Ditto.
2973 * m2-valprint.c: Ditto.
2974 * m32c-tdep.c: Ditto.
2975 * m32r-linux-nat.c: Ditto.
2976 * m32r-rom.c: Ditto.
2977 * m32r-tdep.c: Ditto.
2978 * m32r-tdep.h: Ditto.
2979 * m68hc11-tdep.c: Ditto.
2980 * m58klinux-nat.c: Ditto.
2981 * m68k-tdep.c: Ditto.
2982 * m88k-tdep.c: Ditto.
2983 * m88k-tdep.h: Ditto.
2984 * machoread.c: Ditto.
2985 * macrocmd.c: Ditto.
2986 * macroexp.c: Ditto.
2987 * macrotab.c: Ditto.
2990 * mdebugread.c: Ditto.
2991 * mdebugread.h: Ditto.
2994 * memory-map.h: Ditto.
2995 * mep-tdep.c: Ditto.
2996 * microblaze-rom.c: Ditto.
2997 * microblaze-tdep.c: Ditto.
2999 * mips-irix-tdep.c: Ditto.
3000 * mips-linux-nat.c: Ditto.
3001 * mips-linux-tdep.c: Ditto.
3002 * mips-linux-tdep.h: Ditto.
3003 * mipsnbsd-nat.c: Ditto.
3004 * mipsnbsd-tdep.c: Ditto.
3005 * mipsread.c: Ditto.
3006 * mips-tdep.c: Ditto.
3007 * mips-tdep.h: Ditto.
3008 * mn10300-linux-tdep.c: Ditto.
3009 * mn10300-tdep.c: Ditto.
3010 * mn10300-tdep.h: Ditto.
3013 * moxie-tdep.c: Ditto.
3014 * moxie-tdep.h: Ditto.
3017 2011-01-08 Mike Frysinger <vapier@gentoo.org>
3019 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
3021 2011-01-08 Robert Millan <rmh@gnu.org>
3023 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
3025 2011-01-07 Michael Snyder <msnyder@vmware.com>
3027 * charset.c (_initialize_charset): Fix typo in string.
3029 2011-01-07 Michael Snyder <msnyder@vmware.com>
3031 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
3033 * tui/tui-layout.c (tui_set_layout_for_display_command):
3034 Split line so that operator goes to beginning of line.
3035 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
3036 assignment out of if statement.
3038 2011-01-07 Michael Snyder <msnyder@vmware.com>
3040 * ada-lang.c: Comment cleanup, mostly periods and spaces.
3041 * ada-lang.h: Ditto.
3042 * ada-tasks.c: Ditto.
3043 * ada-valprint.c: Ditto.
3044 * aix-threads.c: Ditto.
3045 * alpha-linux-nat.c: Ditto.
3046 * alpha-linux-tdep.c: Ditto.
3047 * alpha-mdebug-tdep.c: Ditto.
3048 * alpha-nat.c: Ditto.
3049 * alpha-osf1-tdep.c: Ditto.
3050 * alpha-tdep.c: Ditto.
3051 * alphabsd-nat.c: Ditto.
3052 * alphabsd-tdep.c: Ditto.
3053 * amd64-darwin-tdep.c: Ditto.
3054 * amd64-linux-nat.c: Ditto.
3055 * amd64-linux-tdep.c: Ditto.
3056 * amd64-sol2-tdep.c: Ditto.
3057 * amd64-tdep.c: Ditto.
3058 * amd64-fbsd-tdep.c: Ditto.
3059 * amd64-nbsd-tdep.c: Ditto.
3060 * amd64-obsd-tdep.c: Ditto.
3061 * amd64-linux-nat.c: Ditto.
3062 * amd64-linux-tdep.c: Ditto.
3063 * arm-tdep.c: Ditto.
3064 * arm-tdep.h: Ditto.
3065 * armnbsd-nat.c: Ditto.
3066 * avr-tdep.c: Ditto.
3067 * bfin-tdep.c: Ditto.
3069 * c-typeprintc: Ditto.
3070 * c-valprint.c: Ditto.
3071 * coff-pe-read.h: Ditto.
3072 * coffreead.c: Ditto.
3073 * cris-tdep.c: Ditto.
3075 * darwin-nat-info.c: Ditto.
3076 * darwin-nat.c: Ditto.
3077 * dbug-rom.c: Ditto.
3081 * dec-thread.c: Ditto.
3083 * demangle.c: Ditto.
3084 * dicos-tdep.c: Ditto.
3085 * dictionary.c: Ditto.
3086 * dictionary.h: Ditto.
3087 * dink32-rom.c: Ditto.
3089 * doublest.c: Ditto.
3091 * dummy-frame.c: Ditto.
3092 * dwarf2-frame.c: Ditto.
3093 * dwarf2expr.c: Ditto.
3094 * dwarf2loc.c: Ditto.
3095 * dwarf2read.c: Ditto.
3099 * event-top.h: Ditto.
3100 * exceptions.c: Ditto.
3101 * exceptions.h: Ditto.
3103 * expprint.c: Ditto.
3104 * expression.h: Ditto.
3108 * f-typeprint.c: Ditto.
3109 * f-valprint.c: Ditto.
3110 * fbsd-nat.c: Ditto.
3112 * fork-child.c: Ditto.
3115 * frv-linux-tdep.c: Ditto.
3116 * frv-tdep.c: Ditto.
3118 * gdb-stabs.h: Ditto.
3119 * gdb_assert.h: Ditto.
3120 * gdb_string.h: Ditto.
3121 * gdb_thread_db.h: Ditto.
3122 * gdb_wait.h: Ditto.
3123 * gdbarch.sh: Ditto.
3125 * gdbthread.h: Ditto.
3126 * gdbtypes.c: Ditto.
3127 * gdbtypes.h: Ditto.
3130 * gnu-v2-abi.c: Ditto.
3131 * gnu-v3-abi.c: Ditto.
3132 * go32-nat.c: Ditto.
3133 * gdbarch.c: Regenerate.
3134 * gdbarch.h: Regenerate.
3136 2011-01-07 Michael Snyder <msnyder@vmware.com>
3138 * ax-gdb.c: Adjust some long output strings.
3139 * breakpoint.c: Ditto.
3144 * linux-nat.c: Ditto.
3145 * solib-pa64.c: Ditto.
3146 * solib-som.c: Ditto.
3148 2011-01-06 Tom Tromey <tromey@redhat.com>
3152 * python/python.c (GdbMethods): Add "newest_frame" method.
3153 * python/python-internal.h (gdbpy_newest_frame): Declare.
3154 * python/py-frame.c (gdbpy_newest_frame): New function.
3156 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
3158 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
3159 * jit.c (jit_debug): New variable.
3160 (show_jit_debug): New function.
3161 (struct target_buffer): Use ULONGEST.
3162 (bfd_open_from_target_memory): Likewise.
3163 (jit_register_code, jit_inferior_init): Add debug output.
3164 (_initialize_jit): Register "debug jit" command.
3166 2011-01-06 Tom Tromey <tromey@redhat.com>
3168 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
3169 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
3172 2011-01-06 Tom Tromey <tromey@redhat.com>
3174 * python/py-frame.c (frapy_block): Use get_frame_block.
3176 2011-01-06 Joel Brobecker <brobecker@adacore.com>
3178 Do not stop on SIGPRIO signals by default
3179 * infrun.c (_initialize_infrun): Unset signal_stop and
3180 signal_print for TARGET_SIGNAL_PRIO.
3182 2011-01-06 Joel Brobecker <brobecker@adacore.com>
3184 * ada-tasks.c: Fix style violation in comment.
3186 2011-01-06 Joel Brobecker <brobecker@adacore.com>
3188 * linespec.c (decode_compound, find_method): Remove trailing \n
3189 at end of error string.
3190 * solib-irix.c (irix_current_sos): Likewise.
3191 * varobj.c (uninstall_variable): Likewise.
3193 2011-01-06 Joel Brobecker <brobecker@adacore.com>
3195 * copyright.py: New script.
3196 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
3197 Launch emacs without exec'ing. Call copyright.py afterwards.
3199 2011-01-05 Michael Snyder <msnyder@vmware.com>
3201 * addrmap.c: Shorten lines of >= 80 columns.
3202 * arch-utils.c: Ditto.
3203 * arch-utils.h: Ditto.
3205 * ax-general.c: Ditto.
3207 * blockframe.c: Ditto.
3208 * breakpoint.c: Ditto.
3209 * buildsym.c: Ditto.
3211 * c-typeprint.c: Ditto.
3213 * coffread.c: Ditto.
3217 * cp-namespace.c: Ditto.
3218 * cp-support.c: Ditto.
3219 * dbug-rom.c: Ditto.
3224 * dictionary.c: Ditto.
3226 * doublest.c: Ditto.
3227 * dwarf2-frame.c: Ditto.
3228 * dwarf2expr.c: Ditto.
3229 * dwarf2loc.c: Ditto.
3230 * dwarf2read.c: Ditto.
3233 * event-loop.c: Ditto.
3234 * event-loop.h: Ditto.
3235 * exceptions.h: Ditto.
3237 * expprint.c: Ditto.
3238 * expression.h: Ditto.
3240 * f-valprint.c: Ditto.
3242 * frame-base.c: Ditto.
3243 * frame-unwind.c: Ditto.
3244 * frame-unwind.h: Ditto.
3248 * gdb-stabs.h: Ditto.
3249 * gdb_assert.h: Ditto.
3250 * gdb_dirent.h: Ditto.
3251 * gdb_obstack.h: Ditto.
3253 * gdbtypes.c: Ditto.
3254 * gdbtypes.h: Ditto.
3255 * inf-ttrace.c: Ditto.
3260 * inline-frame.h: Ditto.
3261 * language.c: Ditto.
3262 * language.h: Ditto.
3263 * libunwind-frame.c: Ditto.
3264 * libunwind-frame.h: Ditto.
3265 * linespec.c: Ditto.
3266 * linux-nat.c: Ditto.
3267 * linux-nat.h: Ditto.
3268 * linux-thread-db.c: Ditto.
3269 * machoread.c: Ditto.
3270 * macroexp.c: Ditto.
3271 * macrotab.c: Ditto.
3274 * mdebugread.c: Ditto.
3279 * objfiles.c: Ditto.
3280 * objfiles.h: Ditto.
3282 * p-typeprint.c: Ditto.
3283 * p-valprint.c: Ditto.
3285 * printcmd.c: Ditto.
3286 * proc-events.c: Ditto.
3288 * progspace.c: Ditto.
3289 * progspace.h: Ditto.
3290 * psympriv.h: Ditto.
3293 * regcache.c: Ditto.
3294 * regcache.h: Ditto.
3295 * remote-fileio.c: Ditto.
3297 * ser-mingw.c: Ditto.
3299 * ser-unix.c: Ditto.
3302 * solib-frv.c: Ditto.
3303 * solib-irix.c: Ditto.
3304 * solib-osf.c: Ditto.
3305 * solib-pa64.c: Ditto.
3306 * solib-som.c: Ditto.
3307 * solib-sunos.c: Ditto.
3308 * solib-svr4.c: Ditto.
3309 * solib-target.c: Ditto.
3313 * stabsread.c: Ditto.
3314 * stabsread.c: Ditto.
3317 * symfile-mem.c: Ditto.
3323 * target-descriptions.c: Ditto.
3324 * target-memory.c: Ditto.
3327 * terminal.h: Ditto.
3330 * tracepoint.c: Ditto.
3331 * tracepoint.h: Ditto.
3335 * user-regs.c: Ditto.
3336 * user-regs.h: Ditto.
3338 * valarith.c: Ditto.
3340 * valprint.c: Ditto.
3341 * valprint.h: Ditto.
3346 * xcoffread.c: Ditto.
3347 * xcoffsolib.c: Ditto.
3348 * xcoffsolib.h: Ditto.
3349 * xml-syscall.c: Ditto.
3350 * xml-tdesc.c: Ditto.
3352 2011-01-05 Michael Snyder <msnyder@vmware.com>
3354 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
3355 * cli/cli-decode.c: Ditto.
3356 * cli/cli-dump.c: Ditto.
3357 * cli/cli-logging.c: Ditto.
3358 * cli/cli-script.c: Ditto.
3359 * cli/cli-setshow.c: Ditto.
3360 * common/signals.c: Ditto.
3361 * mi/mi-cmd-break.c: Ditto.
3362 * mi/mi-cmd-disas.c: Ditto.
3363 * mi/mi-cmd-stack.c: Ditto.
3364 * mi/mi-cmd-var.c: Ditto.
3365 * mi/mi-cmds.c: Ditto.
3366 * mi/mi-common.h: Ditto.
3367 * mi/mi-console.c: Ditto.
3368 * mi/mi-interp.c: Ditto.
3369 * mi/mi-main.c: Ditto.
3370 * osf-share/cma_attr.c: Ditto.
3371 * osf-share/cma_deb_core.h: Ditto.
3372 * osf-share/cma_debug_client.h: Ditto.
3373 * osf-share/cma_handle.h: Ditto.
3374 * osf-share/cma_mutex.h: Ditto.
3375 * osf-share/cma_stack_int.h: Ditto.
3376 * osf-share/cma_tcb_defs.h: Ditto.
3377 * python/py-auto-load.c: Ditto.
3378 * python/py-breakpoint.c: Ditto.
3379 * python/py-cmd.c: Ditto.
3380 * python/py-frame.c: Ditto.
3381 * python/py-objfile.c: Ditto.
3382 * python/py-param.c: Ditto.
3383 * python/py-progspace.c: Ditto.
3384 * python/py-symbol.c: Ditto.
3385 * python/py-value.c: Ditto.
3386 * python/python-internal.h: Ditto.
3387 * python/python.c: Ditto.
3388 * tui/tui-data.c: Ditto.
3389 * tui/tui-disasm.c: Ditto.
3390 * tui/tui-hooks.c: Ditto.
3391 * tui/tui-io.c: Ditto.
3392 * tui/tui-layout.c: Ditto.
3393 * tui/tui-regs.c: Ditto.
3394 * tui/tui-source.c: Ditto.
3395 * tui/tui-stack.c: Ditto.
3396 * tui/tui-win.c: Ditto.
3397 * tui/tui-windata.c: Ditto.
3398 * tui/tui-winsource.c: Ditto.
3400 2011-01-05 Joel Brobecker <brobecker@adacore.com>
3402 * configure.ac, gdb.1: Copyright year update.
3404 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3406 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
3407 this_pc_in_block, morestack_msym and morestack_name. Check for
3408 "__morestack" minimal symbol there.
3410 2011-01-03 Joel Brobecker <brobecker@adacore.com>
3412 * symfile.c (find_sym_fns): Add call to dont_repeat.
3414 2011-01-01 Joel Brobecker <brobecker@adacore.com>
3416 Copyright year update in most files (performed by copyright.sh).
3418 2011-01-01 Joel Brobecker <brobecker@adacore.com>
3420 * top.c (print_gdb_version): Update copyright year in version output.
3422 For older changes see ChangeLog-2010.
3428 version-control: never