1 2011-08-05 Eli Zaretskii <eliz@gnu.org>
3 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
4 initialization of the tp_new member to the corresponding
5 gdbpy_initialize_* function.
6 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
7 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
8 * python/py-function.c (gdbpy_initialize_functions): Likewise.
9 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
10 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
12 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
15 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
16 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
17 references to current_uiout.
19 2011-08-04 Pedro Alves <pedro@codesourcery.com>
21 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
22 (start_event_loop): Use TRY_CATCH instead of catch_errors.
23 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
24 * top.c (gdb_readline_wrapper): Adjust.
25 * tui/tui-interp.c (tui_command_loop):
26 (_initialize_tui_interp): Don't install it.
28 2011-08-04 Pedro Alves <pedro@codesourcery.com>
30 * ui-out.h (uiout): Rename to ...
31 (current_uiout): ... this.
32 * ui-out.c (uiout): Rename to ...
33 (current_uiout): ... this.
34 * ada-lang.c (print_it_exception, print_one_exception)
35 (print_mention_exception): Adjust.
36 * breakpoint.c (watchpoint_check): Adjust.
37 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
38 (default_collect_info, watchpoints_info, print_one_catch_fork)
39 (print_one_catch_vfork, print_one_catch_syscall)
40 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
41 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
42 (print_it_watchpoint, print_mention_watchpoint)
43 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
44 (print_it_exception_catchpoint, print_one_exception_catchpoint)
45 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
46 (bkpt_print_mention, momentary_bkpt_print_it)
47 (tracepoint_print_mention, update_static_tracepoint)
48 (tracepoints_info, save_breakpoints): Adjust.
49 * cli-out.c (field_separator): Adjust.
50 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
51 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
52 * frame.c (get_current_frame): Adjust.
53 * infcmd.c (run_command_1, print_return_value): Adjust.
54 * inferior.c (inferior_command, info_inferiors_command): Adjust.
55 * infrun.c (print_end_stepping_range_reason): Adjust.
56 (print_signal_exited_reason, print_exited_reason): Adjust.
57 (print_signal_received_reason, print_no_history_reason): Adjust.
58 * interps.c (interp_set): Adjust.
59 * osdata.c (info_osdata_command): Adjust.
60 * progspace.c (maintenance_info_program_spaces_command): Adjust.
61 * remote-fileio.c (remote_fileio_request): Adjust.
62 * remote.c (show_remote_cmd): Adjust.
63 * solib.c (info_sharedlibrary_command): Adjust.
64 * source.c (print_source_lines_base): Adjust.
65 * stack.c (print_stack_frame): Adjust.
66 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
67 * symfile-mem.c (add_vsyscall_page): Adjust.
68 * symfile.c (load_progress, generic_load)
69 (print_transfer_performance): Adjust.
70 * thread.c (info_threads_command, restore_selected_frame)
71 (thread_command): Adjust.
72 * top.c (make_cleanup_restore_ui_file): Adjust.
73 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
74 (print_one_static_tracepoint_marker): Adjust.
75 * cli/cli-cmds.c (print_disassembly): Adjust.
76 * cli/cli-decode.c (print_doc_line): Adjust.
77 * cli/cli-interp.c (safe_execute_command): Adjust.
78 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
79 (handle_redirections): Adjust.
80 * cli/cli-script.c (show_user_1): Adjust.
81 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
82 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
83 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
84 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
85 (mi_cmd_env_dir): Adjust.
86 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
87 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
88 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
89 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
90 (list_args_or_locals): Adjust.
91 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
92 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
93 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
94 (mi_cmd_var_list_children, mi_cmd_var_info_type)
95 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
96 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
97 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
98 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
99 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
100 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
101 (list_available_thread_groups, mi_cmd_list_thread_groups)
102 (mi_cmd_data_list_register_names)
103 (mi_cmd_data_list_changed_registers)
104 (mi_cmd_data_list_register_values, get_register)
105 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
106 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
107 (mi_cmd_list_target_features, mi_cmd_add_inferior)
108 (mi_execute_command, mi_load_progress): Adjust.
109 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
110 * python/py-auto-load.c (print_script, info_auto_load_scripts):
112 * python/py-breakpoint.c (bppy_get_commands): Adjust.
113 * tui/tui-interp.c (tui_command_loop): Adjust.
114 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
116 2011-08-04 Pedro Alves <pedro@codesourcery.com>
118 * exceptions.c (struct catcher): Remove saved_uiout field.
119 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
120 no longer save/resvore the global ui_out builder.
121 (catch_exceptions_with_msg): Save/override/restore the global
122 ui_out builder manually instead of relying on TRY_CATCH to do it.
123 (catch_errors): Save/restore the global ui_out builder manually
124 instead of relying on TRY_CATCH to do it.
125 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
128 * cli/cli-interp.c (safe_execute_command): Save/override/restore
129 the global ui_out builder manually instead of relying on TRY_CATCH
132 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
134 * breakpoint.c (update_global_location_list): Ensure
135 invariant 'first loc marked not duplicated and inserted,
136 following locs marked duplicated/not inserted' is respected
137 for multiple locations at the same address.
138 (unduplicated_should_be_inserted) New function.
139 (swap_insertion) New function.
141 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
143 * stack.c (print_frame_arguments_choices): Comment typo fix.
145 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
148 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
149 * breakpoint.c (insert_bp_location): Remove disabled_breaks
150 argument. Update callers.
152 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
155 * doublest.c (convert_doublest_to_floatformat): Pass correct
156 mantissa length to put_field.
158 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
160 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
161 exception_print code path.
162 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
163 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
164 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
166 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
169 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
170 Remove, merge them into ...
171 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
172 variable args and its initialization.
173 (struct print_args_args, print_args_stub): Remove, merge them into
175 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
177 (do_gdb_disassembly): ... here. Remove variable args and its
179 (print_frame): Remove variable args and its initialization, new
180 variable gdbarch and numargs (from print_args_stub), inline here
181 print_args_stub with a TRY_CATCH.
182 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
184 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
185 New variable e, remove variable btargs and its initialization.
187 2011-08-01 Tristan Gingold <gingold@adacore.com>
189 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
191 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
193 * breakpoint.c (insert_bp_location): Document return value.
194 (insert_breakpoint_locations): Fix documentation.
195 (remove_breakpoints): Add documentation.
197 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
199 * breakpoint.c (insert_bp_location): Remove disabled_breaks
200 argument. Update callers.
202 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
204 * stack.c (print_frame_info): Comment typo fix.
206 2011-07-29 Sterling Augustine <saugustine@google.com>
208 * MAINTAINERS (Write After Approval): Add myself to the list.
210 2011-07-29 Tom Tromey <tromey@redhat.com>
212 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
213 (library_list_start_segment): Update.
214 (library_list_start_section): Update.
216 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
218 * varobj.c (value_get_print_value): Move hint check later into the
219 function. Comment function. Free thevalue before reusing it.
221 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
222 Pedro Alves <pedro@codesourcery.com>
224 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
226 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
227 Assert the result kind.
228 * value.h (value_one): Remove parameter lv.
230 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
232 Fix crash on lval_computed values.
233 * valops.c (value_zero): Use not_lval for lval_computed.
235 2011-07-27 Tom Tromey <tromey@redhat.com>
237 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
238 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
240 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
242 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
243 "ptype" by their typedefs difference.
245 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
247 * dwarf2expr.c (ctx_no_read_reg): New function.
248 * dwarf2expr.h (ctx_no_read_reg): New declaration.
249 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
250 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
251 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
253 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
255 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
256 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
258 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
259 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
260 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
261 (ctx_no_get_base_type): Move the functions here.
262 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
263 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
264 (ctx_no_get_base_type): New declarations.
266 2011-07-27 Tom Tromey <tromey@redhat.com>
268 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
270 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
271 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
273 2011-07-26 Sterling Augustine <saugustine@google.com>
275 * cli/cli-dump.c (dump_binary_file): Change parameter type to
277 (dump_bfd_file): Likewise.
279 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
281 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
282 (remote_hw_watchpoint_length_limit): New variable.
283 (_initialize_remote) add set,show cmds for this new variable.
284 * gdb.texinfo: document these new commands.
285 * NEWS: Mention these new commands.
287 2011-07-26 Pedro Alves <pedro@codesourcery.com>
289 * breakpoint.c (works_in_software_mode_watchpoint): Also return
290 true for software watchpoints.
292 2011-07-26 Joel Brobecker <brobecker@adacore.com>
296 2011-07-26 Tom Tromey <tromey@redhat.com>
298 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
299 * dwarf2read.c (read_indirect_string_at_offset): New function.
300 (read_indirect_string): Use it.
301 (dwarf_decode_macro_bytes): New function, taken from
302 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
303 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
304 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
306 (struct dwarf2_per_objfile) <macro>: New field.
307 (dwarf2_elf_names): Add .debug_macro.
308 (dwarf2_macros_too_long_complaint): Add 'section' argument.
309 (dwarf2_locate_sections): Handle new section.
310 (read_file_scope): Handle DW_AT_GNU_macros.
311 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
313 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
315 * NEWS: Mention dcache configuration.
316 * dcache.c (dcache_set_list, dcache_show_list): New variables.
317 (dcache_size, dcache_line_size): New variables.
318 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
319 (struct dcache_block): Make it expandable.
320 (struct dcache_struct): New field.
321 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
322 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
323 (dcache_poke_byte, dcache_print_line): Adjust.
324 (set_dcache_size, set_dcache_line_size): New functions.
325 (set_dcache_command, show_dcache_command): New functions.
326 (_initialize_dcache): Add new commands.
328 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
330 * progspace.h (struct program_space): Add solib_add_generation.
331 * infcmd.c (post_create_inferior): Only call solib_add if not
333 * solib.c (solib_add): Increment solib_add_generation.
335 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
337 Fix implicit pointer offsets.
338 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
341 2011-07-25 Tom Tromey <tromey@redhat.com>
343 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
345 (ada_exception_sal): Make 'ops' const.
346 (ada_decode_exception_location): Likewise.
347 (ada_decode_assert_location): Likewise.
348 (catch_assert_command): Update.
349 (catch_ada_exception_command): Update.
350 (create_ada_exception_catchpoint): Make 'ops' const.
351 * breakpoint.c (set_raw_breakpoint_without_location)
352 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
354 (create_internal_breakpoint): Update.
355 (init_raw_breakpoint_without_location): Make 'ops' const.
356 (init_raw_breakpoint, init_catchpoint)
357 (create_fork_vfork_event_catchpoint)
358 (create_syscall_event_catchpoint, init_breakpoint_sal)
359 (create_breakpoint_sal, create_breakpoints_sal)
360 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
361 * breakpoint.h (struct breakpoint) <ops>: Now const.
362 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
365 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
367 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
369 2011-07-25 Pedro Alves <pedro@codesourcery.com>
371 * breakpoint.h (print_recreate_thread): Declare.
372 (struct breakpoint): Move step_count, pass_count,
373 number_on_target, static_trace_marker_id,
374 static_trace_marker_id_idx ...
375 (struct tracepoint): ... to this new struct.
376 (get_tracepoint, get_tracepoint_by_number_on_target)
377 (get_tracepoint_by_number): Change return type to struct
379 * breakpoint.c (is_tracepoint_type): New, factored out from
381 (is_tracepoint): Adjust.
382 (print_one_breakpoint_location): Cast to struct tracepoint as
383 necessary, and adjust.
384 (print_recreate_catch_fork, print_recreate_catch_vfork)
385 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
386 print_recreate_thread.
387 (init_breakpoint_sal): New, factored out from
388 create_breakpoint_sal.
389 (create_breakpoint_sal): Reimplement.
390 (create_breakpoint): Allocate a struct tracecepoint if the caller
391 wanted a tracepoint. Use init_breakpoint_sal and
393 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
394 (print_recreate_masked_watchpoint)
395 (print_recreate_exception_catchpoint): Call print_recreate_thread.
396 (tracepoint_print_one_detail): Adjust.
397 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
398 Dump the pass count here.
399 (update_static_tracepoint): Adjust.
400 (addr_string_to_sals): Adjust.
401 (create_tracepoint_from_upload): Adjust. Change return type to
402 struct tracepoint pointer.
403 (trace_pass_set_count): Change parameter type to struct tracepoint
405 (trace_pass_command): Adjust.
406 (get_tracepoint, get_tracepoint_by_number_on_target)
407 (get_tracepoint_by_number): Change return type to struct
408 tracepoint pointer, and adjust.
409 (print_recreate_thread): New, factored out from save_breakpoints.
410 (save_breakpoints): Don't print thread and task and passcount
412 * remote.c (remote_download_tracepoint): Adjust.
413 * tracepoint.c (trace_actions_command, validate_actionline)
414 (start_tracing, tfind_1, trace_find_tracepoint_command)
415 (trace_dump_command): Adjust.
416 (find_matching_tracepoint): Change return type to struct
417 tracepoint pointer, and adjust.
418 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
419 (tfile_trace_find, tfile_fetch_registers): Adjust.
420 * tracepoint.h (create_tracepoint_from_upload): Change return type
421 to struct tracepoint pointer.
422 * ada-lang.c (print_recreate_exception): Call
423 print_recreate_thread.
424 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
426 2011-07-25 Pedro Alves <pedro@codesourcery.com>
428 * breakpoint.h (struct breakpoint): Move ops as first field. Move
429 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
430 cond_exp_valid_block, val, val_valid, watchpoint_frame,
431 watchpoint_thread, watchpoint_triggered ...
432 (struct watchpoint): ... to this new struct.
433 (is_watchpoint): Declare.
434 (install_breakpoint): Add new `internal' parameter.
435 * breakpoint.c (is_watchpoint): Delete declaration.
436 (set_breakpoint_condition): Handle watchpoints.
437 (is_watchpoint): Make public.
438 (watchpoint_in_thread_scope): Change parameter type to struct
440 (watchpoint_del_at_next_stop): Change parameter type to struct
441 watchpoint. Remove assertion. Adjust.
442 (update_watchpoint): Ditto.
443 (insert_breakpoints, breakpoint_init_inferior)
444 (watchpoints_triggered, watchpoint_check)
445 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
446 (bpstat_stop_status, print_one_breakpoint_location)
447 (print_one_breakpoint_location, watchpoint_locations_match): Cast
448 to struct watchpoint as necessary, and adjust.
449 (install_breakpoint): Add `internal' argument. If true, don't
450 mention the new breakpoint. Use set_breakpoint_number.
451 (create_fork_vfork_event_catchpoint)
452 (create_syscall_event_catchpoint): Adjust.
453 (dtor_watchpoint): New.
454 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
455 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
456 (print_it_watchpoint, print_mention_watchpoint)
457 (print_recreate_watchpoint, insert_masked_watchpoint)
458 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
459 (print_one_detail_masked_watchpoint)
460 (print_mention_masked_watchpoint)
461 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
462 necessary, and adjust.
463 (watch_command_1): Allocate and initialize a struct watchpoint
464 instead of a struct breakpoint. Use install_breakpoint.
465 (catch_exec_command_1): Adjust.
466 (base_breakpoint_dtor): Delete accesses to watchpoint specific
468 (delete_breakpoint, enable_breakpoint_disp)
469 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
470 as necessary, and adjust.
471 (initialize_breakpoint_ops): Install dtor_watchpoint as
472 watchpoints' dtor method.
473 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
474 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
475 to struct watchpoint as necessary, and adjust.
477 2011-07-25 Pedro Alves <pedro@codesourcery.com>
479 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
480 the the base class ops table.
481 (catch_exception_breakpoint_ops)
482 (catch_exception_unhandled_breakpoint_ops)
483 (catch_assert_breakpoint_ops): Don't statically initialize.
484 (initialize_ada_catchpoint_ops): New.
485 (_initialize_ada_language): Call it.
486 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
487 (bkpt_breakpoint_ops): Forward declare.
488 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
489 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
490 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
491 (masked_watchpoint_breakpoint_ops)
492 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
493 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
494 base class ops table.
495 (null_re_set, null_check_status, null_works_in_software_mode)
496 (null_resources_needed, null_print_one_detail): Delete.
497 (bkpt_dtor): Rename to ...
498 (base_breakpoint_dtor): ... this. Make static.
499 (bkpt_allocate_location): Rename to ...
500 (base_breakpoint_allocate_location): ... this. Make static.
501 (base_breakpoint_re_set): New.
502 (internal_error_pure_virtual_called): New.
503 (base_breakpoint_insert_location, base_breakpoint_remove_location)
504 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
505 (base_breakpoint_works_in_software_mode)
506 (base_breakpoint_resources_needed, base_breakpoint_print_it)
507 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
508 (base_breakpoint_print_recreate): New functions.
509 (base_breakpoint_ops): New global.
510 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
511 (bkpt_breakpoint_hit): Make static.
512 (bkpt_check_status): Delete.
513 (bkpt_resources_needed): Make static.
514 (bkpt_works_in_software_mode): Delete.
515 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
517 (bkpt_breakpoint_ops, internal_breakpoint_ops)
518 (momentary_breakpoint_ops): Don't statically initialize.
519 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
521 (tracepoint_insert_location, tracepoint_remove_location)
522 (tracepoint_check_status, tracepoint_works_in_software_mode)
523 (tracepoint_print_it): Delete.
524 (tracepoint_breakpoint_ops): Don't statically initialize.
525 (initialize_breakpoint_ops): New.
526 (_initialize_breakpoint): Call it.
527 * breakpoint.h (null_re_set, null_works_in_software_mode)
528 (null_resources_needed, null_check_status, null_print_one_detail):
529 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
530 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
531 (bkpt_check_status, bkpt_resources_needed)
532 (bkpt_works_in_software_mode, bkpt_print_it)
533 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
535 (initialize_breakpoint_ops): Declare.
537 2011-07-25 Pedro Alves <pedro@codesourcery.com>
539 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
540 (momentary_bkpt_print_it): Simplify.
542 2011-07-25 Pedro Alves <pedro@codesourcery.com>
544 Split internal, momentary and user breakpoints breakpoint_ops
547 * breakpoint.c (internal_breakpoint_ops)
548 (momentary_breakpoint_ops): Forward declare.
549 (create_internal_breakpoint): Add new breakpoint_ops parameter.
550 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
551 (create_overlay_event_breakpoint)
552 (create_std_terminate_master_breakpoint)
553 (create_exception_master_breakpoint): Create breakpoints with
554 internal_breakpoint_ops vtable.
555 (set_longjmp_breakpoint): Create momentary breakpoints with
556 momentary_breakpoint_ops vtable, using
557 momentary_breakpoint_from_master.
558 (create_thread_event_breakpoint, create_jit_event_breakpoint)
559 (create_solib_event_breakpoint): Create breakpoints with
560 internal_breakpoint_ops vtable.
561 (set_momentary_breakpoint): Create breakpoints with
562 momentary_breakpoint_ops vtable.
563 (momentary_breakpoint_from_master): New, factored out from
564 clone_momentary_breakpoint.
565 (clone_momentary_breakpoint): Adjust.
566 (watch_command_1): Create scope breakpoints with
567 momentary_breakpoint_ops vtable.
568 (bkpt_re_set): Remove handling of internal and momentary
570 (bkpt_print_mention, bkpt_print_recreate): New.
571 (bkpt_breakpoint_ops): Adjust.
572 (internal_bkpt_re_set, internal_bkpt_check_status)
573 (internal_bkpt_print_it, internal_bkpt_print_mention)
574 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
575 (momentary_bkpt_re_set, momentary_bkpt_check_status)
576 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
577 (momentary_bkpt_print_recreate): New.
578 (momentary_breakpoint_ops): New.
580 2011-07-25 Pedro Alves <pedro@codesourcery.com>
582 Implement most breakpoint_ops methods for all breakpoint types,
583 and move the default handlings to the proper callbacks.
585 * breakpoint.c (update_watchpoint): Always call the breakpoint's
586 works_in_software_mode method.
587 (insert_bp_location): Go through breakpoint_ops->insert_location
588 for software and hardware watchpoints.
589 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
591 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
592 for software and hardware watchpoints.
593 (print_it_typical): Delete.
594 (print_bp_stop_message): Always call the breakpoint_ops->print_it
596 (watchpoint_check): Adjust comment.
597 (bpstat_check_location): Simply always call the breakpoint's
598 breakpoint_hit method.
599 (bpstat_stop_status): Always call the breakpoint's check_status
600 method. Remove special cases for watchpoints and internal event
601 breakpoints from here (moved to the check_status implementations).
602 (print_one_breakpoint_location): Assume b->ops is never NULL.
603 Remove static tracepoint marker id printing from here (moved to
604 the print_one_detail callback implementation of tracepoints).
605 (init_bp_location): Assert OPS is never NULL.
606 (allocate_bp_location): Always call the breakpoint's
607 allocate_location method, and remove the default code from here.
608 (free_bp_location): Always call the location's dtor method, and
609 remove the default code from here.
610 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
611 (set_raw_breakpoint_without_location): Add new breakpoint_ops
612 parameter. Pass it down.
613 (set_raw_breakpoint): Ditto.
614 (print_it_catch_fork): Adjust to take a bpstat as argument.
615 (catch_fork_breakpoint_ops): Install methods.
616 (print_it_catch_vfork): Adjust to take a bpstat as argument.
617 (catch_vfork_breakpoint_ops): Install methods.
618 (dtor_catch_syscall): Call the base dtor.
619 (print_it_catch_syscall): Adjust to take a bpstat as argument.
620 (catch_syscall_breakpoint_ops): Install methods.
621 (dtor_catch_exec): Call the base dtor.
622 (print_it_catch_exec): Adjust to take a bpstat as argument.
623 (catch_exec_breakpoint_ops): Install methods.
624 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
625 the breakpoint's resources_needed method, and remove the default
627 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
629 (clone_momentary_breakpoint): Clone the original's ops.
630 (mention): Always call the breakpoint's print_mention method, and
631 remove the default code from here.
632 (create_breakpoint_sal): Adjust to pass the ops to
633 set_raw_breakpoint rather than setting it manually.
634 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
635 ops to set_raw_breakpoint_without_location rather than setting it
637 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
638 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
639 (ranged_breakpoint_ops): Install methods.
640 (break_range_command): Adjust to pass the ops to
641 set_raw_breakpoint rather than setting it manually.
642 (re_set_watchpoint, breakpoint_hit_watchpoint)
643 (check_status_watchpoint, resources_needed_watchpoint)
644 (works_in_software_mode_watchpoint, print_it_watchpoint)
645 (print_mention_watchpoint, print_recreate_watchpoint): New
647 (watchpoint_breakpoint_ops): Install new methods.
648 (print_it_masked_watchpoint): New function.
649 (masked_watchpoint_breakpoint_ops): Install new methods.
650 (watch_command_1): Adjust to pass the right breakpoint_ops to
651 set_raw_breakpoint_without_location rather than setting it
652 manually later. Record the current pspace.
653 (print_it_exception_catchpoint): Adjust to take a bpstat as
655 (gnu_v3_exception_catchpoint_ops): Install new methods.
656 (say_where): New function.
657 (null_re_set, null_check_status, null_works_in_software_mode)
658 (null_resources_needed, null_print_one_detail, bp_location_dtor):
660 (bp_location_ops): New global.
661 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
662 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
663 (bkpt_check_status, bkpt_resources_needed)
664 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
665 (bkpt_print_recreate): New functions.
666 (bkpt_breakpoint_ops): New global.
667 (tracepoint_re_set, tracepoint_insert_location)
668 (tracepoint_remove_location, tracepoint_breakpoint_hit)
669 (tracepoint_check_status, tracepoint_works_in_software_mode)
670 (tracepoint_print_it, tracepoint_print_one_detail)
671 (tracepoint_print_mention, tracepoint_print_recreate): New
673 (tracepoint_breakpoint_ops): New global.
674 (delete_breakpoint): Always call the breakpoint's dtor method, and
675 remove the default handling from here.
676 (breakpoint_re_set_default): Make static.
677 (breakpoint_re_set_one): Always call the breakpoints re_set
678 method, and remove the default handling from here.
679 (trace_command, ftrace_command, strace_command)
680 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
681 to create_breakpoint.
682 (save_breakpoints): Always call the breakpoint's print_recreate
683 method, and remove the default handling from here.
685 * ada-lang.c (dtor_exception): Call the base dtor.
686 (re_set_exception): Call the base method.
687 (print_it_exception, print_it_catch_exception): Adjust to take a
689 (catch_exception_breakpoint_ops): Install methods.
690 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
692 (catch_exception_unhandled_breakpoint_ops): Install methods.
693 (print_it_catch_assert): Adjust to take a bpstat as argument.
694 (catch_assert_breakpoint_ops): Install methods.
696 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
697 to take a bpstat as argument.
698 (enum print_stop_action): Add describing comments to each enum
700 (breakpoint_re_set_default): Delete declaration.
701 (null_re_set, null_works_in_software_mode, null_resources_needed)
702 (null_check_status, null_print_one_detail): Declare.
703 (bkpt_breakpoint_ops): Declare.
704 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
705 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
706 (bkpt_check_status, bkpt_resources_needed)
707 (bkpt_works_in_software_mode, bkpt_print_it)
708 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
711 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
713 * python/py-breakpoint.c (bppy_init): Ditto.
715 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
717 * MAINTAINERS (Write After Approval): Add myself to the list.
719 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
721 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
723 2011-07-22 Pedro Alves <pedro@codesourcery.com>
725 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
726 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
727 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
729 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
730 (struct i386_debug_reg_state): New.
731 (i386_init_dregs): New.
733 (i386_cleanup_dregs): Use i386_init_dregs.
734 (i386_show_dr): Add state parameter and adjust.
735 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
737 (i386_remove_aligned_watchpoint): Likewise.
738 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
739 (i386_update_inferior_debug_regs): New.
740 (i386_insert_watchpoint): Work on a local mirror of the debug
741 registers, and only update the inferior on success.
742 (i386_remove_watchpoint): Ditto.
743 (i386_region_ok_for_watchpoint): Adjust.
744 (i386_stopped_data_address): Adjust.
745 (i386_insert_hw_breakpoint): Adjust.
746 (i386_remove_hw_breakpoint): Adjust.
748 2011-07-22 Tom Tromey <tromey@redhat.com>
750 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
751 from amd64_pseudo_register_read. Change arguments. Call
752 mark_value_bytes_unavailable when needed.
753 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
754 set_gdbarch_pseudo_register_read.
755 * sentinel-frame.c (sentinel_frame_prev_register): Use
756 regcache_cooked_read_value.
757 * regcache.h (regcache_cooked_read_value): Declare.
758 * regcache.c (regcache_cooked_read_value): New function.
759 (regcache_cooked_read): Call
760 gdbarch_pseudo_register_read_value if available.
761 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
762 (i386_pseudo_register_read): Remove.
763 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
764 i386_pseudo_register_read. Change arguments. Call
765 mark_value_bytes_unavailable when needed.
766 (i386_pseudo_register_read_value): New function.
767 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
768 not set_gdbarch_pseudo_register_read.
769 * gdbarch.sh (pseudo_register_read_value): New method.
770 * gdbarch.c, gdbarch.h: Rebuild.
771 * findvar.c (value_from_register): Call get_frame_register_value.
773 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
775 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
777 (display_gdb_prompt): Likewise.
778 (change_annotation_level): Likewise.
779 (push_prompt): Likewise.
780 (pop_prompt): Likewise.
781 (handle_stop_sig): Use get_prompt with a level.
782 * top.c (command_loop): Use get_prompt with a level.
783 (set_async_annotation_level): Use set_prompt with a level.
784 (get_prefix): New function.
788 (get_prompt): Accept a level argument.
789 (set_prompt): Accept a level argument. Free old prompts. Set
790 new_async_prompt if level is 0.
791 (init_main): Use set_prompt with a level. Do not set
793 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
794 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
795 Modify set_prompt, get_prompt to account for levels.
796 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
798 * python/python.c (before_prompt_hook): Use set_prompt.
800 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
802 * defs.h: Add guard against inclusion in gdbserver.
803 (struct ptid, ptid_t): Move to common/ptid.h.
804 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
805 xsnprintf, internal_error): Move to common/common-utils.h.
807 * gdb_assert.h: Move into common/ sub-directory.
808 * gdb_locale.h: Ditto.
809 * gdb_dirent.h: Ditto.
810 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
811 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
812 Move into common/ptid.h.
813 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
814 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
815 Change nomem to malloc_failure.
816 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
817 * utils.c (nomem): Rename to malloc_failure.
818 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
819 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
820 (gdb_buildargv): Change nomem to malloc_failure.
821 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
822 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
823 ptid_is_pid): Move into common/ptid.c.
824 (initialize_infrun): Delete initialization of null_ptid and
826 * linux-nat.c (linux_nat_xfer_osdata): Defer to
827 linux_common_xfer_osdata.
828 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
829 common/ptid.c and common/buffer.c.
830 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
831 common/ptid.h, common/buffer.h and common/linux-osdata.h.
832 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
833 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
835 * common/gdb_assert.h: New.
836 * common/gdb_dirent.h: New.
837 * common/gdb_locale.h: New.
838 * common/buffer.c: New.
839 * common/buffer.h: New.
840 * common/ptid.c: New.
841 * common/ptid.h: New.
842 * common/xml-utils.c: New.
843 * common/xml-utils.h: New.
844 * common/common-utils.c: New.
845 * common/common-utils.h: New.
846 * common/linux-osdata.c: New.
847 * common/linux-osdata.h: New.
848 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
849 * config/arm/linux.mh (NATDEPFILES): Ditto.
850 * config/i386/linux.mh (NATDEPFILES): Ditto.
851 * config/i386/linux64.mh (NATDEPFILES): Ditto.
852 * config/ia64/linux.mh (NATDEPFILES): Ditto.
853 * config/m32r/linux.mh (NATDEPFILES): Ditto.
854 * config/m68k/linux.mh (NATDEPFILES): Ditto.
855 * config/mips/linux.mh (NATDEPFILES): Ditto.
856 * config/pa/linux.mh (NATDEPFILES): Ditto.
857 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
858 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
859 * config/s390/s390.mh (NATDEPFILES): Ditto.
860 * config/sparc/linux.mh (NATDEPFILES): Ditto.
861 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
862 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
864 2011-07-21 Matt Rice <ratmice@gmail.com>
866 * NEWS: Add info macros and info definitions commands.
868 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
870 * NEWS: Document Python prompt substitution hook.
872 2011-07-18 Matt Rice <ratmice@gmail.com>
875 * macrotab.h (macro_callback_fn): Add new arguments to callback.
876 * macrotab.c (foreach_macro): Ditto.
877 (foreach_macro_in_scope): Ditto.
878 * macrocmd.c (print_macro_callback): New function.
879 (info_macro_command): Move some code to print_macro_definition.
880 (print_macro_definition): New function.
881 (print_one_macro): Add new arguments to callback.
882 (info_definitions_command): New function.
883 (info_macros_command): Ditto.
884 (_initialize_macrocmd): Add info macros and info definitions commands.
885 * symtab.c (add_macro_name): Add new arguments to callback.
887 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
888 Tom Tromey <tromey@redhat.com>
890 * top.c (set_prompt): Rewrite to free previous prompt, free
891 asynch_new_prompt and set both on new prompts.
892 * event-top.c (display_gdb_prompt): Add prompt substitution
894 * python/python.c (before_prompt_hook): New function.
896 2011-07-20 Matt Rice <ratmice@gmail.com>
898 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
899 arguments to store_unsigned_integer.
901 2011-07-20 Tom Tromey <tromey@redhat.com>
903 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
904 in some declaration-only cases.
906 2011-07-18 Tom Tromey <tromey@redhat.com>
909 * dwarf2read.c (dwarf2_section_info_def): New typedef.
910 (struct dwarf2_per_objfile) <types>: Change to a VEC.
911 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
912 <debug_type_section>: New field.
913 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
914 (load_cu): Use appropriate section.
915 (create_signatured_type_table_from_index): Add 'section'
917 (dwarf2_read_index): Only allow a single .debug_types section.
918 (dw2_get_file_names): Use appropriate section.
919 (read_type_comp_unit_head): Add 'section' argument.
920 (create_debug_types_hash_table): Loop over all .debug_types
922 (init_cu_die_reader): Use appropriate section.
923 (process_psymtab_comp_unit, load_partial_comp_unit)
924 (load_full_comp_unit, read_die_and_children, find_partial_die)
925 (lookup_die_type, determine_prefix, follow_die_offset): Update.
926 (lookup_signatured_type_at_offset): Add 'section' argument.
927 (read_signatured_type_at_offset): Add 'sect' argument.
928 (read_signatured_type): Use appropriate section.
929 (set_die_type, get_die_type_at_offset): Update.
930 (dwarf2_per_objfile_free): Free all .debug_types sections, and
932 (write_psymtabs_to_index): Don't allow index with more than one
933 .debug_types section.
935 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
937 Fix crash if referenced CU is aged out.
938 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
940 (indirect_pieced_value): New variable back_to, use to for xfree of
942 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
944 * dwarf2read.c (dwarf2_find_base_address): New prototype.
945 (load_cu): New function from ...
946 (dw2_do_instantiate_symtab): ... the code here ...
947 (process_full_comp_unit): ... and here.
948 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
951 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
953 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
956 2011-07-19 Gary Benson <gbenson@redhat.com>
958 * infrun.c (struct execution_control_state): New member
960 (clear_stop_func, fill_in_stop_func): New functions.
961 (handle_inferior_event): Call clear_stop_func rather than
962 manipulating the execution control state directly.
963 Call fill_in_stop_func lazily as required rather than
964 directly calling find_pc_partial_function in all cases.
966 2011-07-18 Tom Tromey <tromey@redhat.com>
968 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
969 checking for variable-sized array.
971 2011-07-18 Jean-Charles Delay <delay@adacore.com>
973 * varobj.h (varobj_languages): Add vlang_ada definition to the list
974 of supported languages.
975 * varobj.c: Add top definitions and basic implementation of the
976 following callbacks: ada_number_of_children, ada_name_of_variable,
977 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
978 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
979 (languages): Register Ada-specific callbacks.
980 (variable_language): Add the Ada case in the language setter switch.
982 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
984 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
986 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
989 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
990 (execute_stack_op): Use dwarf2_frame_ctx_funcs
991 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
992 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
993 get_frame_cfa, get_tls_address and dwarf_call via funcs.
994 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
995 (struct dwarf_expr_context_funcs): New, move here methods from ...
996 (struct dwarf_expr_context): ... here. New fields funcs.
997 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
998 (dwarf_expr_ctx_funcs): New.
999 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
1000 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
1001 (needs_frame_ctx_funcs): New.
1002 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
1004 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1006 * MAINTAINERS (Write After Approval): Add myself to the list.
1008 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1010 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
1011 that CIE pointer of an FDE really points to a CIE .
1013 2011-07-15 Hui Zhu <teawater@gmail.com>
1015 * remote.c (remote_get_trace_status): Add comments.
1017 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1019 Code cleanup - constify struct lval_funcs.
1020 * dwarf2loc.c (pieced_value_funcs): Make it const.
1021 * infrun.c (siginfo_value_funcs): Likewise.
1022 * opencl-lang.c (opencl_value_funcs): Likewise.
1023 * valops.c (value_assign, value_ind): Make the funcs variable const.
1024 * value.c (struct value): Make location.computed.funcs target const.
1025 Rearrange the comments.
1026 (allocate_computed_value): Make the funcs parameter target const.
1027 (value_computed_funcs): Return the funcs target const.
1028 (value_free, value_copy, set_value_component_location): Make the funcs
1030 * value.h (allocate_computed_value): Make the funcs parameter target
1032 (value_computed_funcs): Return the funcs target const.
1033 * windows-tdep.c (tlb_value_funcs): Make it const.
1035 2011-07-14 Hui Zhu <teawater@gmail.com>
1037 * remote.c (remote_get_trace_status): Initialize p.
1039 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1042 * remote.c (remote_get_trace_status): New variable ex. Put
1043 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
1045 2011-07-13 Tom Tromey <tromey@redhat.com>
1047 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
1048 value_from_contents for final conversion.
1050 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1053 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
1054 Indent prototypes so they do not get into tags.
1056 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1058 Code cleanup making also optimized out values lazy.
1059 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
1060 allocate_optimized_out_value. Twice.
1061 (loclist_read_variable) Use allocate_optimized_out_value. Once.
1062 * findvar.c (read_var_value): Likewise.
1063 * value.c (allocate_optimized_out_value): New function.
1064 * value.h (allocate_optimized_out_value): New declaration.
1066 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1068 Fix occasional crash of CTRL-C during DWARF read in.
1069 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
1071 2011-07-11 Tom Tromey <tromey@redhat.com>
1073 * regcache.c (struct regcache_descr): Fix typo.
1074 * i387-tdep.c (i387_supply_xsave): Fix typo.
1076 2011-07-11 Tom Tromey <tromey@redhat.com>
1078 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
1079 (read_file_scope, read_type_unit_scope): Use it.
1081 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1083 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
1086 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1089 * python/python.c: Set gdbpy_should_print_stack default to off.
1090 (set_python): Deprecate maint set python print-stack to
1092 (_initialize_python): Deprecate maint set/show python print-stack.
1093 Add new prefix command, python. Add new setting, print-backtrace.
1094 * NEWS: Document set python print-stack. Document default change.
1096 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1098 * python/py-inferior.c (infpy_dealloc): New function.
1099 (inferior_to_inferior_object): Return a new object, or a
1100 new reference to the existing object.
1101 (find_thread_object): Cleanup references to inferior.
1102 (delete_thread_object): Ditto.
1103 * python/py-infthread.c (create_thread_object): Do not increment
1104 inferior reference count.
1106 2011-07-08 Tom Tromey <tromey@redhat.com>
1108 * dwarf2loc.c (locexpr_regname): New function.
1109 (locexpr_describe_location_piece): Use it.
1110 (disassemble_dwarf_expression): Add per_cu argument. Use
1112 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
1113 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1115 (locexpr_describe_location_1): Add per_cu argument.
1116 (locexpr_describe_location): Update.
1117 (loclist_describe_location): Update.
1119 2011-07-08 Tom Tromey <tromey@redhat.com>
1121 * dwarf2expr.c (execute_stack_op): Add QUIT.
1123 2011-07-07 Hui Zhu <teawater@gmail.com>
1126 2011-07-06 Hui Zhu <teawater@gmail.com>
1127 * remote.c (remote_start_remote): Add TRY_CATCH for
1128 remote_get_trace_status.
1129 * tracepoint.c (disconnect_tracing): Ditto.
1131 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
1133 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
1134 variables as signed, not unsigned.
1136 2011-07-06 Joel Brobecker <brobecker@adacore.com>
1138 * jit.c (jit_inferior_init): Reformat forward declaration.
1140 2011-07-06 Matt Rice <ratmice@gmail.com>
1142 * MAINTAINERS (Write After Approval): Add myself to the list.
1144 2011-07-06 Hui Zhu <teawater@gmail.com>
1146 * remote.c (remote_start_remote): Add TRY_CATCH for
1147 remote_get_trace_status.
1148 * tracepoint.c (disconnect_tracing): Ditto.
1150 2011-07-05 Tom Tromey <tromey@redhat.com>
1152 * symtab.c (operator_chars): Now static.
1153 * linespec.c (operator_chars): Don't declare.
1155 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1157 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
1159 2011-07-05 Tom Tromey <tromey@redhat.com>
1161 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
1162 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
1163 (TYPE_CPLUS_REALLY_JAVA): New macro.
1164 * dwarf2read.c (process_structure_scope): Set
1165 TYPE_CPLUS_REALLY_JAVA.
1167 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1169 * ada-lang.c: Fix typos.
1170 * amd64-tdep.c: Likewise.
1171 * breakpoint.c: Likewise.
1172 * cli/cli-decode.c: Likewise.
1173 * findcmd.c: Likewise.
1174 * inline-frame.c: Likewise.
1175 * mi/mi-main.c: Likewise.
1176 * minsyms.c: Likewise.
1177 * monitor.c: Likewise.
1178 * monitor.h: Likewise.
1179 * prologue-value.c: Likewise.
1180 * reverse.c: Likewise.
1181 * s390-tdep.c: Likewise.
1183 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
1185 * jit.c (jit_inferior_init): Forward declare.
1186 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
1188 2011-07-04 Joel Brobecker <brobecker@adacore.com>
1190 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
1192 2011-07-04 Tristan Gingold <gingold@adacore.com>
1194 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
1195 (tcb_fieldno): Add activation_link field.
1196 (get_known_tasks_addr): Moved and rewritten.
1197 (get_tcb_types_info): Set activation_link field.
1198 (read_known_tasks_array): Add parameter. Rewritten.
1199 (read_known_tasks_list): New function.
1200 (read_known_tasks): New function.
1201 (ada_build_task_list): Call read_known_tasks instead of
1202 read_known_tasks_array.
1203 * ravenscar-thread.c: Add first_task_name constant.
1204 (has_ravenscar_runtime): Check for task list too.
1206 2011-07-04 Tristan Gingold <gingold@adacore.com>
1208 * ada-tasks.c: Renames fieldno to actb_fieldno.
1209 (ada_get_task_number): Indentation.
1210 (get_tcb_types_info): Remove all parameters. Write directly
1212 (ptid_from_atcb_common): Adjust.
1213 (read_atcb): Adjust.
1215 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1217 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
1219 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1221 * ui-out.c (ui_out_field_core_addr): Mention that the function
1222 description is in the header file.
1223 * ui-out.h (ui_out_field_core_addr): Document function.
1225 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1227 * ui-out.c (ui_out_get_field_separator): Remove unused function.
1228 * ui-out.h (ui_out_get_field_separator): Remove prototype.
1230 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1232 * symtab.c (expand_line_sal): Remove empty line.
1234 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
1236 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
1237 same way as ELFOSABI_NONE.
1238 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
1240 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1242 * breakpoint.c: Fix typos in comments.
1243 * linespec.c: Likewise.
1244 * symtab.c: Likewise.
1246 2011-07-04 Joel Brobecker <brobecker@adacore.com>
1248 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
1249 section in separate object files.
1251 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1253 Fix false GCC warning.
1254 * linespec.c (decode_line_1): Initialize values.
1256 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1258 * linespec.c (find_method): Accept the function type automatically only
1259 if it was specified with parameter types.
1261 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1263 Stop on first linespec terminator instead of eating what we can.
1264 * linespec.c (is_linespec_boundary): New function.
1265 (name_end): Remove function.
1266 (keep_name_info): New parameter on_boundary, replace the body.
1267 (decode_line_1): Provide the parameter to keep_name_info.
1268 (decode_compound): Likewise. Drop the trailing java return type
1271 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1273 Fall back linespec to minimal symbols.
1274 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
1275 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
1276 (find_method, symbol_found): Change error to cplusplus_error.
1278 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1280 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
1282 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1283 Tom Tromey <tromey@redhat.com>
1285 * dwarf2read.c (check_physname): New variable.
1286 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
1287 (show_check_physname): New function.
1288 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
1290 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1292 * machoread.c (macho_symfile_read): Delete OBE comment.
1294 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1296 * machoread.c (struct macho_oso_data): Delete.
1297 (current_oso): Delete.
1298 (macho_relocate_common_syms): New function, mostly extracted
1300 (macho_add_oso_symfile): Call macho_relocate_common_syms.
1301 Remove code that sets and unset current_oso.
1302 (macho_symfile_relocate): Delete handling of common symbols,
1303 now moved to macho_relocate_common_syms.
1305 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1307 * darwin-nat.c (darwin_ptrace): Add documentation.
1308 Set errno to zero before calling ptrace. If ptrace returns
1309 -1 and errno is zero, then change then return zero.
1310 (darwin_kill_inferior): Issue a warning instead of triggering
1311 a failed assertion when the PT_KILL ptrace operations returned
1314 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1316 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
1317 only when inf->private->no_ptrace.
1319 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1321 * ada-lang.c (print_it_exception): Print temporary catchpoints
1322 as "Temporary catchpoint".
1323 (print_mention_exception): Likewise.
1325 2011-07-01 Tom Tromey <tromey@redhat.com>
1327 * jv-lang.c (java_language_defn): Use java_printchar,
1329 (java_get_encoding): New function.
1330 (java_emit_char): Use generic_emit_char.
1331 (java_printchar): New function.
1332 (java_printstr): Likewise.
1334 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1336 * ada-typeprint.c (print_record_type): If unable to decode
1337 the name of the parent type, use the encoded name.
1339 2011-07-01 Jean-Charles Delay <delay@adacore.com>
1341 * ada-typeprint.c (ada_print_type): Fix both PAD type and
1342 pointer to constrained packed array type output.
1343 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
1344 packed array output.
1346 2011-07-01 Jean-Charles Delay <delay@adacore.com>
1348 * ada-typeprint.c (print_array_type): removed if condition on show
1349 being negative for bounds printing.
1351 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1353 * ada-lang.c (ada_identical_enum_types_p): New function.
1354 (symbols_are_identical_enums): New function.
1355 (remove_extra_symbols): Do nothing if NSYMS < 2.
1356 Use symbols_are_identical_enums.
1358 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1360 * ada-valprint.c (ada_value_print): Handle typedefs.
1362 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1364 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
1366 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
1368 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
1369 (decode_constrained_packed_array): Likewise.
1370 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
1372 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1374 * ada-exp.y (convert_char_literal): Handle typedef types.
1376 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1378 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
1380 2011-06-30 Tom Tromey <tromey@redhat.com>
1382 * varobj.c (varobj_create): Call do_cleanups on early exit path.
1383 * valops.c (find_overload_match): Call do_cleanups on early exit
1385 * solib.c (solib_find): Call do_cleanups on early exit path.
1387 2011-06-30 Tom Tromey <tromey@redhat.com>
1389 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
1390 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
1391 return paths. Defer final do_cleanups until last return.
1392 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
1395 2011-06-30 Tom Tromey <tromey@redhat.com>
1397 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
1399 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
1401 * MAINTAINERS (Write After Approval): Add myself to the list.
1403 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1405 Disable epilogue unwinders on recent GCCs.
1406 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
1407 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
1408 * dwarf2read.c (process_full_comp_unit): Initialize
1409 EPILOGUE_UNWIND_VALID.
1410 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
1411 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
1412 * symtab.h (struct symtab): New field epilogue_unwind_valid.
1414 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1416 Code cleanup - reformatting.
1417 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
1418 (producer_is_gcc_ge_4): ... here, change the return value.
1419 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
1422 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1424 Fix non-only rename list for Fortran modules import.
1425 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
1426 cp_add_using_directive caller.
1427 (cp_add_using_directive): New parameter excludes, describe it. New
1428 variables ix and param. Compare if also excludes match. Allocate NEW
1429 with variable size, initialize EXCLUDES there.
1430 (cp_lookup_symbol_imports): New variable excludep, test
1431 current->EXCLUDES with it.
1432 * cp-support.h: Include vec.h.
1433 (struct using_direct): New field excludes, describe it.
1434 (DEF_VEC_P (const_char_ptr)): New.
1435 (cp_add_using_directive): New parameter excludes.
1436 * defs.h (const_char_ptr): New typedef.
1437 * dwarf2read.c (read_import_statement): New variables child_die,
1438 excludes and cleanups, read in excludes.
1439 (read_namespace): Adjust the cp_add_using_directive caller.
1441 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1444 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
1445 negative comparisons.
1447 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
1449 * mi/mi-main.c (mi_cmd_list_features): Emit
1450 breakpoint-notifications.
1452 2011-06-29 Tom Tromey <tromey@redhat.com>
1455 * valprint.h (generic_emit_char, generic_printstr): Declare.
1456 * valprint.c (wchar_printable, append_string_as_wide)
1457 (print_wchar): Move from c-lang.c.
1458 (generic_emit_char): New function; mostly taken from c_emit_char.
1459 (generic_printstr): New function; mostly taken from c_printstr.
1460 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
1461 represented as arrays.
1462 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
1464 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
1465 identically to TYPE_CODE_INT.
1466 * f-lang.c (f_get_encoding): New function.
1467 (f_emit_char): Use generic_emit_char.
1468 (f_printchar): Replace comment.
1469 (f_printstr): Use generic_printstr.
1470 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
1471 "character" types specially.
1472 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
1474 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
1476 (c_emit_char): Call generic_emit_char.
1477 (c_printstr): Call generic_printstr.
1479 2011-06-29 Gary Benson <gbenson@redhat.com>
1481 * breakpoint.c (bpstat_what): Removed duplicated case.
1483 2011-06-28 Tom Tromey <tromey@redhat.com>
1485 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
1487 2011-06-27 Tom Tromey <tromey@redhat.com>
1489 * valops.c (find_overload_match): Call do_cleanups before early
1491 * top.c (execute_command): Call do_cleanups before early return.
1492 (command_loop): Likewise.
1493 * stack.c (backtrace_command): Make a null cleanup early. Don't
1494 conditionally call do_cleanups.
1495 * python/py-value.c (TRY_CATCH): Move cleanup handling into
1497 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
1498 so cleanups are always run.
1499 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
1500 * findcmd.c (parse_find_args): Call do_cleanups on early return
1502 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
1503 Don't conditionally call do_cleanups.
1504 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
1507 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1509 * MAINTAINERS (Write After Approval): Use default email address.
1511 2011-06-27 Joel Brobecker <brobecker@adacore.com>
1513 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
1515 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1517 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
1518 saved_regs_mask and copied_regs_mask fields.
1519 (sparc_record_save_insn): New prototype.
1520 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
1521 (sparc_record_save_insn): New function.
1522 (sparc_analyze_prologue): Add head comment. Recognize store insns
1523 of call-saved registers. Use OFFSET consistently. Recognize flat
1524 frames and cache their settings.
1525 (sparc32_skip_prologue): Handle flat frames.
1526 (sparc_frame_cache): Add frame_offset to the base address.
1527 (sparc32_frame_cache): Adjust to new frame description.
1528 (sparc32_frame_prev_register): Likewise.
1529 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
1530 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1531 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1532 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
1533 frame by calling sparc_record_save_insn.
1534 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
1535 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
1536 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
1538 2011-06-27 Tristan Gingold <gingold@adacore.com>
1540 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
1541 field by map_addr and map_len.
1542 (dwarf2_read_section): Adjust for the new bfd_mmap api.
1543 (munmap_section_buffer): Likewise.
1545 2011-06-24 Tom Tromey <tromey@redhat.com>
1547 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
1548 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
1549 * python/python.c (gdbpy_parameter): Make 'arg' const.
1550 (execute_gdb_command): Likewise.
1551 (gdbpy_decode_line): Likewise. Copy it.
1552 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
1553 (gdbpy_write): Make 'arg' const.
1554 * python/py-type.c (typy_lookup_typename): Make 'type_name'
1556 (gdbpy_lookup_type): Likewise.
1557 * python/py-prettyprint.c (print_children): Make 'name' const.
1558 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
1559 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
1561 * python/py-function.c (fnpy_init): Make 'name' const.
1562 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
1563 (gdbpy_string_to_argv): Make 'input' const.
1564 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
1566 * gdbtypes.h (lookup_typename): Update.
1567 * gdbtypes.c (lookup_typename): Make 'name' const.
1568 (lookup_struct): Likewise.
1569 (lookup_union): Likewise.
1570 (lookup_enum): Likewise.
1572 2011-06-24 Tom Tromey <tromey@redhat.com>
1574 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
1575 gdb_thread_db.h. Move all common/ entries to be together.
1576 (TAGS): Don't depend on DEPFILES.
1578 2011-06-23 Yao Qi <yao@codesourcery.com>
1580 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
1581 * remote.c (remote_start_remote): ... here.
1582 * monitor.c (monitor_open): ... here.
1584 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
1586 * gdbtypes.c (append_composite_type_field_aligned): Fix
1587 calculation of bit position based on alignment.
1589 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1591 * breakpoint.c (bpstat_stop_status): Call the check_status
1592 breakpoint_ops method.
1593 (print_one_breakpoint_location): Also print the condition for Ada
1594 exception catchpoints.
1595 (allocate_bp_location): New, factored out from
1596 allocate_bp_location.
1597 (allocate_bp_location): Adjust. Call the owner breakpoint's
1598 allocate_location method, if there is one.
1599 (free_bp_location): Call the locations's dtor method, if there is
1601 (init_raw_breakpoint_without_location): New breakpoint_ops
1603 (set_raw_breakpoint_without_location): Adjust.
1604 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
1605 (set_raw_breakpoint): Adjust.
1606 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
1607 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
1608 re_set and check_status methods.
1609 (init_catchpoint): Don't memset, initialize thread, addr_string
1610 and enable_state. Pass the ops down to init_raw_breakpoint.
1611 (install_catchpoint): Rename to ...
1612 (install_breakpoint): ... this, and make extern.
1613 (create_fork_vfork_event_catchpoint): Adjust.
1614 (catch_exec_breakpoint_ops): Install NULL allocate_location,
1615 re_set and check_status methods.
1616 (create_syscall_event_catchpoint): Adjust.
1617 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
1618 (masked_watchpoint_breakpoint_ops): Install NULL
1619 allocate_location, re_set and check_status methods.
1620 (catch_exec_command_1): Adjust.
1621 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
1622 re_set and check_status methods.
1623 (create_ada_exception_breakpoint): Rename to ...
1624 (init_ada_exception_breakpoint): ... this. Add a struct
1625 breakpoint parameter, and delete the exp_string, cond_string and
1626 cond parameters. Use init_raw_breakpoint, and don't install or
1627 mention the breakpoint yet. Don't clear breakpoint fields that
1628 init_raw_breakpoint already clears.
1629 (re_set_breakpoint): Delete, split into ...
1630 (breakpoint_re_set_default, prepare_re_set_context): ... these new
1632 (breakpoint_re_set_one): Call the breakpoint's
1633 breakpoint_ops->re_set implementation, if there's one. Adjust.
1634 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
1635 (struct bp_location_ops): New type.
1636 (struct bp_location): New field `ops'.
1637 (struct breakpoint_ops): New `allocate_location', `re_set' and
1638 `check_status' fields. Make `breakpoint_hit''s description match
1640 (init_bp_location): Declare.
1641 (breakpoint_re_set_default): Declare.
1642 (create_ada_exception_breakpoint): Rename to ...
1643 (init_ada_exception_breakpoint): ... this. Add a struct
1644 breakpoint parameter, and delete the exp_string, cond_string and
1646 (install_breakpoint): Declare.
1647 * ada-lang.c: Include exceptions.h.
1648 <Ada exceptions description>: Update.
1649 (struct ada_catchpoint_location): New type.
1650 (ada_catchpoint_location_dtor): New function.
1651 (ada_catchpoint_location_ops): New global.
1652 (ada_catchpoint): New type.
1653 (create_excep_cond_exprs): New function.
1654 (dtor_exception, allocate_location_exception, re_set_exception)
1655 (should_stop_exception, check_status_exception): New functions.
1656 (print_one_exception, print_mention_exception)
1657 (print_recreate_exception): Adjust.
1658 (dtor_catch_exception, allocate_location_catch_exception)
1659 (re_set_catch_exception, check_status_catch_exception): New
1661 (catch_exception_breakpoint_ops): Install them.
1662 (dtor_catch_exception_unhandled)
1663 (allocate_location_catch_exception_unhandled)
1664 (re_set_catch_exception_unhandled)
1665 (check_status_catch_exception_unhandled): New functions.
1666 (catch_exception_unhandled_breakpoint_ops): Install them.
1667 (dtor_catch_assert, allocate_location_catch_assert)
1668 (re_set_catch_assert, check_status_catch_assert): New functions.
1669 (catch_assert_breakpoint_ops): Install them.
1670 (ada_exception_catchpoint_p): Delete.
1671 (catch_ada_exception_command_split)
1672 (ada_exception_catchpoint_cond_string): Rename exp_string
1673 parameter to excep_string. Adjust.
1674 (ada_parse_catchpoint_condition): Delete.
1675 (ada_exception_sal): Rename the exp_string parameter to
1676 excep_string. Delete the cond_string and cond parameters.
1678 (ada_decode_exception_location): Rename the exp_string parameter
1679 to excep_string. Delete the cond_string and cond parameters.
1681 (create_ada_exception_catchpoint): New function.
1682 (catch_ada_exception_command, ada_decode_assert_location)
1683 (catch_assert_command): Adjust.
1684 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
1686 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1688 * ada-lang.c: Include arch-utils.h.
1689 (ada_decode_exception_location): Make static.
1690 (catch_ada_exception_command): Moved here from breakpoint.c.
1691 (ada_decode_assert_location): Make static.
1692 (catch_assert_command): Moved here from breakpoint.c.
1693 (_initialize_ada_lang): Install the exception and assert
1694 catchpoint commands here.
1695 * ada-lang.h (ada_decode_exception_location)
1696 (ada_decode_assert_location): Delete declarations.
1697 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
1699 (create_ada_exception_breakpoint): Make extern.
1700 (catch_ada_exception_command, catch_assert_command): Moved to
1702 (add_catch_command): Make extern.
1703 (_initilize_breakpoint): Don't install the exception and assert
1704 catchpoint commands here.
1705 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
1707 (add_catch_command, create_ada_exception_breakpoint): Declare.
1709 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1711 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
1712 the breakpoint to the breakpoint chain here.
1713 (set_raw_breakpoint_without_location): Add the breakpoint to the
1714 breakpoint chain here.
1715 (init_raw_breakpoint): Adjust comments.
1716 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
1718 (init_catchpoint): Don't set the catchpoint's breakpoint number
1720 (install_catchpoint): New function.
1721 (create_fork_vfork_event_catchpoint)
1722 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
1723 use install_catchpoint.
1725 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1727 * breakpoint.c (create_catchpoint_without_mention)
1728 (create_catchpoint): Delete.
1730 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1732 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
1733 * breakpoint.c (init_raw_breakpoint_without_location): Remove
1734 reference to exec_pathname.
1735 (struct exec_catchpoint): New type.
1736 (dtor_catch_exec): New function.
1737 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
1738 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
1739 (catch_exec_command_1): Adjust to use init_catchpoint.
1740 (delete_breakpoint): Remove reference to exec_pathname.
1742 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1744 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
1745 (struct breakpoint): Delete field `syscalls_to_be_caught'.
1746 * breakpoint.c (init_raw_breakpoint_without_location): Remove
1747 reference to syscalls_to_be_caught.
1748 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
1750 (struct syscall_catchpoint): New type.
1751 (dtor_catch_syscall): New function.
1752 (insert_catch_syscall, remove_catch_syscall)
1753 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
1754 (print_recreate_catch_syscall): Adjust.
1755 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
1756 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
1757 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
1758 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
1759 (masked_watchpoint_breakpoint_ops)
1760 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
1761 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
1762 there is one. Remove references to syscalls_to_be_caught.
1763 (catching_syscall_number): Adjust.
1764 * ada-lang.c (catch_exception_breakpoint_ops)
1765 (catch_exception_unhandled_breakpoint_ops)
1766 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
1768 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1770 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
1772 * breakpoint.c (init_raw_breakpoint_without_location): Remove
1773 reference to forked_inferior_pid.
1774 (struct fork_catchpoint): New type.
1775 (breakpoint_hit_catch_fork, print_it_catch_fork)
1776 (print_one_catch_fork, breakpoint_hit_catch_vfork)
1777 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
1778 (create_fork_vfork_event_catchpoint): Adjust to use
1781 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1783 * breakpoint.c (add_to_breakpoint_chain)
1784 (init_raw_breakpoint_without_location): New functions, factored
1786 (set_raw_breakpoint_without_location): ... this one.
1787 (init_raw_breakpoint): New function, factored out from
1788 set_raw_breakpoint and adjusted to use
1789 init_raw_breakpoint_without_location.
1790 (set_raw_breakpoint): Adjust.
1791 (init_catchpoint): New function, factored out from
1792 create_catchpoint_without_mention and adjusted to use
1793 init_raw_breakpoint.
1794 (create_catchpoint_without_mention): Adjust.
1796 2011-06-22 Tom Tromey <tromey@redhat.com>
1798 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
1799 argument of 0 specially.
1801 2011-06-22 Yao Qi <yao@codesourcery.com>
1803 * infrun.c (handle_inferior_event): Remove write-only local variable
1804 `sw_single_step_trap_p'.
1806 2011-06-20 Tom Tromey <tromey@redhat.com>
1808 * symtab.c (lookup_language_this): End loop if block is NULL.
1810 2011-06-17 Tom Tromey <tromey@redhat.com>
1812 * valops.c (value_of_this): Use lookup_language_this.
1813 * symtab.h (lookup_language_this): Declare.
1814 * symtab.c (lookup_language_this): New function.
1815 (lookup_symbol_aux): Use lookup_language_this.
1816 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
1818 2011-06-17 Tom Tromey <tromey@redhat.com>
1820 * value.h (value_of_this): Update.
1821 (value_of_local): Remove.
1822 * valops.c (value_of_this): Rename from value_of_local. Change
1824 * p-exp.y (exp): Update.
1825 (variable): Likewise.
1826 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
1828 2011-06-17 Tom Tromey <tromey@redhat.com>
1830 * valops.c (value_of_local): Complain if NAME is NULL.
1831 * std-operator.def (OP_OBJC_SELF): Remove.
1832 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
1833 * objc-exp.y (name_not_typename): Use OP_THIS.
1834 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
1836 <OP_OBJC_SELF>: Remove.
1837 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
1839 2011-06-16 Tristan Gingold <gingold@adacore.com>
1841 * python/py-events.h (gdb_py_events): Make it extern.
1842 * python/py-evtregistry.c (gdb_py_events): Declare.
1844 2011-06-16 Hui Zhu <teawater@gmail.com>
1846 * remote.c (remote_trace_set_readonly_regions): Add check for
1847 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
1850 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
1852 * arm-linux-tdep.c: Include "auxv.h".
1854 (ARM_LINUX_SIZEOF_VFP): Define.
1855 (arm_linux_supply_vfp): New function.
1856 (arm_linux_collect_vfp): Likewise.
1857 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
1858 (arm_linux_fpa_regset_sections): New variable.
1859 (arm_linux_vfp_regset_sections): Likewise.
1860 (arm_linux_core_read_description): New function.
1861 (arm_linux_init_abi): Install arm_linux_core_read_description and
1862 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
1863 appropriate for the architecture.
1864 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
1865 (tdesc_arm_with_m): Declare.
1866 (tdesc_arm_with_iwmmxt): Likewise.
1867 (tdesc_arm_with_vfpv2): Likewise.
1868 (tdesc_arm_with_vfpv3): Likewise.
1869 (tdesc_arm_with_neon): Likewise.
1870 * arm-linux-nat.c: Move features/*.c includes ...
1871 * arm-tdep.c: ... here.
1872 * arm-linux-nat.c (arm_linux_read_description): Move initializing
1873 target description data structures ...
1874 * arm-tdep.c (_initialize_arm_tdep): ... here.
1875 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
1876 HWCAP_VFPv3D16): Move definitions ...
1877 * arm-linux-tdep.h: ... here.
1879 2011-06-15 Hui Zhu <teawater@gmail.com>
1881 * remote.c (remote_trace_set_readonly_regions): Add a check for
1884 2011-06-14 Tom Tromey <tromey@redhat.com>
1886 * coffread.c (coffread_objfile): Rename from current_objfile.
1887 * dbxread.c (dbxread_objfile): Rename from current_objfile.
1888 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
1890 2011-06-14 Tom Tromey <tromey@redhat.com>
1892 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
1893 (class_symtab): Remove.
1894 (jv_dynamics_progspace_key): New global.
1895 (jv_per_objfile_free): Reset program space data. Update assert.
1896 Don't clear globals.
1897 (get_dynamics_objfile): Use and set program space data.
1898 (get_java_class_symtab): Use get_dynamics_objfile.
1899 (add_class_symbol): Likewise.
1900 (java_link_class_type): Likewise.
1901 (java_object_type, jv_clear_object_type, set_java_object_type):
1903 (get_java_object_type): Update. Don't cache result.
1904 (is_object_type): Don't call set_java_object_type.
1905 (_initialize_java_language): Don't set jv_type_objfile_data_key;
1906 initialize jv_dynamics_progspace_key.
1908 2011-06-14 Tom Tromey <tromey@redhat.com>
1910 * symtab.h (current_objfile): Don't declare.
1911 * objfiles.h (current_objfile): Don't declare.
1912 * objfiles.c (current_objfile): Remove.
1913 * mdebugread.c (current_objfile): New file-scope global.
1914 * dbxread.c (current_objfile): New file-scope global.
1915 * coffread.c (current_objfile): New file-scope global.
1917 2011-06-13 Pedro Alves <pedro@codesourcery.com>
1919 * top.h (line): Rename to ...
1920 (saved_command_line): ... this.
1921 (linesize): Rename to ...
1922 (saved_command_line_size): ... this.
1923 * top.c (line): Rename to ...
1924 (saved_command_line): ... this.
1925 (linesize): Rename to ...
1926 (saved_command_line_size): ... this.
1927 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
1928 * event-top.c (command_line_handler): Adjust.
1929 * main.c (captured_main): Adjust.
1931 2011-06-12 Mark Kettenis <kettenis@gnu.org>
1933 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
1934 get_frame_func instead of get_frame_pc to determine the code
1935 address used to construct the frame ID.
1936 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
1937 (i386_epilogue_frame_this_id): Likewise.
1938 (i386_epilogue_frame_prev_register): New function.
1939 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
1940 (i386_stack_tramp_frame_sniffer): Fix coding style.
1941 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
1942 (i386_gdbarch_init): Fix comments.
1944 2011-06-12 Mark Kettenis <kettenis@gnu.org>
1946 * i386-tdep.c (i386_match_insn_block): Use length of the proper
1947 instruction when walking back through the instruction stream.
1949 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1951 * symtab.c (output_partial_symbol_filename): Exchange the filename and
1952 fullname parameters order.
1954 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1957 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
1959 * psymtab.c (map_symbol_filenames_psymtab)
1960 (map_partial_symbol_filenames): Likewise.
1961 * psymtab.h: Include symfile.h.
1962 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
1963 * symfile.h (symbol_filename_ftype): New.
1964 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
1965 map_symbol_filenames, clarify more the naming in comment.
1967 2011-06-07 Doug Evans <dje@google.com>
1969 * cc-with-index.sh: Fix typos in comment.
1970 Look for ../../gdb, for fullname.exp.
1972 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1973 Pedro Alves <pedro@codesourcery.com>
1975 * cli/cli-cmds.c (shell_escape): Use waitpid.
1976 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
1978 2011-06-07 Tristan Gingold <gingold@adacore.com>
1980 * xcoffread.c (dwarf2_xcoff_names): New variable.
1981 (aix_process_linenos): Add a guard.
1982 (xcoff_symfile_finish): Free dwarf2.
1983 (xcoff_initial_scan): Add dwarf2 support.
1985 2011-06-06 Pedro Alves <pedro@codesourcery.com>
1987 * infcall.c (run_inferior_call): Don't mask async. Instead force
1988 a synchronous wait, if the target can async.
1990 * target.h (struct target_ops): Delete to_async_mask.
1991 (target_async_mask): Delete.
1992 * target.c (update_current_target): Delete references to to_async_mask.
1993 * linux-nat.c (linux_nat_async_mask_value): Delete.
1994 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
1995 to linux_nat_async_mask_value.
1996 (linux_nat_async_mask): Delete.
1997 (linux_nat_async, linux_nat_close): Remove references to
1998 linux_nat_async_mask_value.
1999 * record.c (record_async_mask_value): Delete.
2000 (record_async): Remove references to record_async_mask_value.
2001 (record_async_mask): Delete.
2002 (record_can_async_p, record_is_async_p): Remove references to
2003 record_async_mask_value.
2004 (init_record_ops, init_record_core_ops): Remove references to
2006 * remote.c (remote_async_mask_value): Delete.
2007 (init_remote_ops): Remove reference to remote_async_mask.
2008 (remote_can_async_p, remote_is_async_p): Remove references to
2009 remote_async_mask_value.
2010 (remote_async): Remove references to remote_async_mask_value.
2011 (remote_async_mask): Delete.
2013 * infrun.c (fetch_inferior_event): Don't claim registers changed
2014 if the current thread is already not executing.
2016 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
2018 From Stephen Kitt <steve@sk2.org>
2019 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
2020 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
2022 2011-06-03 Joel Brobecker <brobecker@adacore.com>
2024 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
2025 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
2027 2011-06-03 Tom Tromey <tromey@redhat.com>
2029 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
2031 * python/py-exitedevent.c (create_exited_event_object): Change
2032 type of 'exit_code'. Optionally add exit_code attribute.
2033 (emit_exited_event): Change type of 'exit_code'.
2034 * python/py-event.h (emit_exited_event): Update.
2035 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
2036 * infrun.c (handle_inferior_event): Set exit code fields on
2038 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
2040 * inferior.c (exit_inferior_1): Initialize new fields.
2042 2011-06-03 Tom Tromey <tromey@redhat.com>
2044 * dwarf2expr.c (get_signed_type): New function.
2045 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
2047 2011-06-02 Keith Seitz <keiths@redhat.com>
2049 * objc-lang.c (find_methods): Increment objfile_csym earlier.
2051 2011-06-02 Pedro Alves <pedro@codesourcery.com>
2053 * top.h (simplified_command_loop): Delete declaration.
2055 2011-06-01 Mike Frysinger <vapier@gentoo.org>
2057 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
2058 gdb_sysroot to the "len" variable. Append both to "arg_buf".
2060 2011-06-01 Yao Qi <yao@codesourcery.com>
2062 * objfiles.h (obj_section_addr): Update reference to objfile from
2064 (obj_section_endaddr): Likewise.
2066 2011-06-01 Daniel Jacobowitz <drow@false.org>
2068 * MAINTAINERS: Update my email address and affiliation. Also
2069 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
2071 2010-05-31 Keith Seitz <keiths@redhat.com>
2074 * linespec.c (get_search_block): New function.
2075 (find_methods): Add FILE_SYMTATB parameter and use it and
2076 get_search_block to pass an appropriate block to
2077 lookup_symbol_in_namespace.
2078 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
2079 Check if *ARGPTR starts with a filename first.
2080 If it does, call locate_first_half again to locate the next
2081 "first half" of the linespec.
2082 Pass FILE_SYMTATB to decode_objc and decode_compound.
2083 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
2084 (locate_first_half): Stop on the first colon seen.
2085 (decode_compound): Add FILE_SYMTAB parameter.
2086 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
2087 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
2088 get_search_block with lookup_symbol.
2089 (find_method): Add FILE_SYMTAB parameter and pass it to
2091 (decode_objc): Use get_search_block.
2093 2010-05-31 Keith Seitz <keiths@redhat.com>
2096 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
2097 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
2098 and CP_ANONYMOUS_NAMESPACE_LEN.
2099 (cp_is_anonymous): Likewise.
2100 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
2101 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
2102 * dwarf2read.c (namespace_name): Likewise.
2103 (fixup_partial_die): Likewise.
2104 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
2105 seen in the input, keep it.
2107 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2109 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
2110 * inf-loop.h (inferior_event_handler_wrapper): Delete.
2111 * inf-loop.c (inferior_event_handler_wrapper): Delete.
2112 (inferior_event_handler): Don't handle INF_QUIT_REQ.
2113 * remote.c (_initialize_remote): Register
2114 async_remote_interrupt_twice directly as
2115 sigint_remote_twice_token event.
2117 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2119 * target.h (enum inferior_event_type): Delete INF_ERROR.
2120 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
2122 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2124 * interps.c (interp_set): Don't cancel continuations.
2126 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2128 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
2130 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2132 * continuations.h (continuation_ftype): Add `err' parameter.
2133 Document parameters.
2134 (do_all_continuations, do_all_continuations_thread)
2135 (do_all_intermediate_continuations)
2136 (do_all_intermediate_continuations_thread)
2137 (do_all_inferior_continuations): Add `err' parameter.
2138 * continuations.c (do_my_continuations_1, do_my_continuations)
2139 (do_all_inferior_continuations, do_all_continuations_ptid)
2140 (do_all_continuations_thread_callback)
2141 (do_all_continuations_thread, do_all_continuations)
2142 (do_all_intermediate_continuations_thread_callback)
2143 (do_all_intermediate_continuations_thread)
2144 (do_all_intermediate_continuations): Add `err' parameter, and pass
2145 it down all the way to the continuations proper.
2146 * inf-loop.c (inferior_event_handler): If fetching an inferior
2147 event throws an error, don't pop the target, and still call the
2148 continuations, but with `err' set. Adjust all other continuation
2150 * breakpoint.c (until_break_command_continuation): Add `err'
2152 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
2153 issue another step if `err' is set.
2154 (struct until_next_continuation_args): New.
2155 (until_next_continuation): Add `err' parameter. Adjust.
2156 (until_next_command): Adjust.
2157 (struct finish_command_continuation_args): Add `thread' field.
2158 (finish_command_continuation): Add `err' parameter. Handle it.
2159 (finish_forward): Adjust.
2160 (attach_command_continuation): Add `err' parameter. Handle it.
2161 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
2162 cancel the continuations.
2163 * interps.c (interp_set): Adjust to cancel the continuations.
2164 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
2165 continuations rather than discarding.
2166 (free_thread): Don't clear thread inferior resources here.
2167 (delete_thread_1): Do it here instead. And do it before removing
2168 the thread from the threads list. Tag the thread as exited before
2169 clearing thread inferior resources.
2171 2011-05-30 Joel Brobecker <brobecker@adacore.com>
2173 * infcall.c (call_function_by_hand): Rephrase error message.
2175 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2177 * defs.h (struct thread_info, struct inferior): Delete forward
2179 * breakpoint.h (struct thread_info): New forward declaration.
2180 * observer.sh (struct inferior): New forward declaration.
2181 * python/python-internal.h (struct inferior): New forward
2184 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2186 * defs.h (struct continuation, continuation_ftype)
2187 (continuation_free_arg_ftype, add_continuation)
2188 (do_all_continuations, do_all_continuations_thread)
2189 (discard_all_continuations, discard_all_continuations_thread)
2190 (add_intermediate_continuation, do_all_intermediate_continuations)
2191 (do_all_intermediate_continuations_thread)
2192 (discard_all_intermediate_continuations)
2193 (discard_all_intermediate_continuations_thread)
2194 (add_inferior_continuation, do_all_inferior_continuations)
2195 (discard_all_inferior_continuations): Move to ...
2196 * continuations.h: ... this new file.
2197 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
2198 infcmd.c, inferior.c, infrun.c, interps.c: Include
2201 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2202 Doug Evans <dje@google.com>
2204 Fix PR 10970, PR 12702.
2205 * linux-nat.c (linux_lwp_is_zombie): New function.
2206 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
2207 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
2209 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2211 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
2213 (add_continuation, add_intermediate_continuation)
2214 (add_inferior_continuation): Use them.
2215 * continuations.c (struct continuation): Use them.
2216 (make_continuation_ftype): Delete.
2217 (make_continuation, add_inferior_continuation, add_continuation)
2218 (add_intermediate_continuation): Use continuation_ftype and
2219 continuation_free_arg_ftype. Rename parameters to shorter names.
2221 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2223 * continuations.c (make_continuation): Make it return void.
2224 (do_my_continuations): Rename to ...
2225 (do_my_continuations_1): ... this. Remove old_chain parameter and
2227 (do_my_continuations): New.
2228 (discard_my_continuations): Rename to ...
2229 (discard_my_continuations_1): ... this. Remove old_chain
2230 parameter and adjust.
2231 (discard_my_continuations): New.
2232 (add_inferior_continuation): Simplify.
2233 (do_all_inferior_continuations): Reimplement on top
2234 do_my_continuations.
2235 (discard_all_inferior_continuations): Simplify.
2236 (add_continuation): Simplify.
2237 (do_all_continuations_ptid): Simplify.
2238 (discard_all_continuations_thread_callback): Simplify.
2239 (add_intermediate_continuation): Simplify.
2240 (discard_all_intermediate_continuations_thread_callback):
2243 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2245 * utils.c (struct continuation, add_continuation)
2246 (add_inferior_continuation)
2247 (do_all_inferior_continuations, discard_all_inferior_continuations)
2248 (restore_thread_cleanup, do_all_continuations_ptid)
2249 (do_all_continuations_thread_callback)
2250 (do_all_continuations_thread, do_all_continuations)
2251 (discard_all_continuations_thread_callback)
2252 (discard_all_continuations_thread, discard_all_continuations)
2253 (add_intermediate_continuation)
2254 (do_all_intermediate_continuations_thread_callback)
2255 (do_all_intermediate_continuations_thread)
2256 (do_all_intermediate_continuations)
2257 (discard_all_intermediate_continuations_thread_callback)
2258 (discard_all_intermediate_continuations_thread)
2259 (discard_all_intermediate_continuations): Move to ...
2260 * continuations.c: ... this new file, and adjust to no longer
2261 implement continuations on top of cleanups.
2262 * Makefile.in (SFILES): Add continuations.c.
2263 (COMMON_OBS): Add continuations.o.
2265 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2267 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
2268 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
2269 Internal error on invalid values.
2270 * reverse.c: Don't handle EXEC_ERROR.
2271 * mi/mi-main.c: Don't handle EXEC_ERROR.
2273 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2275 * record.c: Include event-loop.h, inf-loop.h.
2276 (record_beneath_to_async): New global.
2277 (tmp_to_async): New global.
2278 (record_async_inferior_event_token): New global.
2279 (record_open_1): Don't error out if async is enabled.
2280 (record_open): Handle to_async. Create an async event source in
2282 (record_close): Delete the async event source.
2283 (record_resumed): New global.
2284 (record_execution_dir): New global.
2285 (record_resume, record_core_resume): Set them. Register the
2286 target on the event loop.
2287 (record_wait): Rename to ...
2288 (record_wait_1): ... this. Add more debug output. Handle
2289 TARGET_WNOHANG, and the target beneath returning
2290 TARGET_WAITKIND_IGNORE.
2291 (record_wait): Reimplement on top of record_wait_1.
2292 (record_async_mask_value): New global.
2293 (record_async, record_async_mask, record_can_async_p)
2294 (record_is_async_p, record_execution_direction): New functions.
2295 (init_record_ops, init_record_core_ops): Install new methods.
2296 * infrun.c (fetch_inferior_event): Temporarily switch the global
2297 execution direction to the direction the target was going.
2298 (execution_direction): Change type to int.
2299 * target.c (default_execution_direction): New function.
2300 (update_current_target): Inherit and de_fault
2301 to_execution_direction.
2302 * target.h (struct target_ops) <to_execution_direction>: New
2304 (target_execution_direction): New macro.
2305 * inferior.h (execution_direction): Change type to int.
2307 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2309 * infcall.c (call_function_by_hand): Don't allow calling functions
2310 in reverse execution mode.
2312 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2314 * infcmd.c (finish_command): Allow async finish in reverse.
2316 2011-05-26 Yao Qi <yao@codesourcery.com>
2318 * gdb_thread_db.h: Delete. Move to ...
2319 * common/gdb_thread_db.h: ... here.
2321 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2323 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
2324 function's entry point instead of a manually managed momentary
2325 breakpoint, and only ever issue one proceed call.
2326 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
2327 doing a reverse-finish, switch to stepi mode, to do another step.
2328 (insert_step_resume_breakpoint_at_sal): Make public.
2329 (normal_stop): No need to save function value return registers if
2331 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
2333 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2335 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
2336 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
2337 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
2339 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
2340 step-resume breakpoints.
2341 (print_it_typical): Handle bp_hp_step_resume.
2342 (bpstat_what): Ditto.
2343 (bptype_string): Ditto.
2344 (print_one_breakpoint_location): Ditto.
2345 (allocate_bp_location): Ditto.
2347 (breakpoint_re_set_one): Ditto.
2348 * infrun.c (handle_inferior_event): Adjust. Split
2349 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
2350 BPSTAT_WHAT_HP_STEP_RESUME.
2351 (insert_step_resume_breakpoint_at_sal): Rename to ...
2352 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
2353 parameter. Handle it.
2354 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
2355 insert_step_resume_breakpoint_at_sal_1.
2356 (insert_step_resume_breakpoint_at_frame): Rename to ...
2357 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
2358 set a high-priority step-resume breakpoint.
2359 (insert_step_resume_breakpoint_at_frame): Adjust comment.
2360 (insert_step_resume_breakpoint_at_caller): Ditto.
2362 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2364 * breakpoint.c (iterate_over_related_breakpoints): New.
2365 (do_map_delete_breakpoint): New.
2366 (delete_command): Pass do_map_delete_breakpoint to
2367 map_breakpoint_numbers.
2368 (do_disable_breakpoint): New.
2369 (do_map_disable_breakpoint): Iterate over the breakpoint's related
2371 (do_enable_breakpoint): Rename to ...
2372 (enable_breakpoint_disp): ... this.
2373 (enable_breakpoint): Adjust.
2374 (do_enable_breakpoint): New.
2375 (enable_once_breakpoint): Delete.
2376 (do_map_enable_breakpoint): New.
2377 (do_map_enable_once_breakpoint): New.
2378 (enable_once_command, enable_delete_command)
2379 (delete_trace_command): Iterate over the breakpoint's related
2382 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2384 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
2385 for ALPHA_ZERO_REGNUM.
2386 (alpha_supply_int_regs): Explicitly supply zero as the value for
2387 ALPHA_ZERO_REGNUM in the register cache.
2388 * alpha-nat.c (fetch_osf_core_registers): Ditto.
2390 2011-05-26 Yao Qi <yao@codesourcery.com>
2392 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
2394 2011-05-26 Tristan Gingold <gingold@adacore.com>
2396 * symfile.h (struct dwarf2_section_names): New type.
2397 (struct dwarf2_debug_sections): New type.
2398 (dwarf2_has_info): Add parameter.
2399 * dwarf2read.c (dwarf2_elf_names): New variable.
2400 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
2401 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
2402 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
2403 (dwarf2_has_info): Add names parameter. Pass names
2404 to dwarf2_locate_sections.
2405 (section_is_p): Rewrite using the names parameter.
2406 (dwarf2_locate_sections): Use section names from the names parameter.
2407 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
2408 * elfread.c (read_psyms): Ditto.
2409 * machoread.c (macho_symfile_read): Ditto.
2411 2011-05-25 Andreas Schwab <schwab@redhat.com>
2414 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
2416 2011-05-24 Keith Seitz <keiths@redhat.com>
2419 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
2420 (decode_compound): Unconditionally call keep_name_info.
2422 2011-05-24 Pedro Alves <pedro@codesourcery.com>
2424 * breakpoint.c (watchpoint_check): If the watchpoint went out of
2425 scope, clear its command list.
2426 (map_breakpoint_numbers): Don't walk the related breakpoints list
2429 2011-05-24 Tom Tromey <tromey@redhat.com>
2431 * MAINTAINERS: Move Jim Blandy to past maintainers.
2433 2011-05-24 Tristan Gingold <gingold@adacore.com>
2435 * symfile.h (enum dwarf2_section_enum): New type.
2436 (dwarf2_get_section_info): New prototype.
2437 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
2438 section_name by sect. Use a switch to select the info.
2439 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
2440 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
2442 2011-05-24 Pedro Alves <pedro@codesourcery.com>
2444 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
2445 shared library event breakpoint if there's no execution.
2447 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
2449 * breakpont.c (remove_hw_watchpoints): Remove unused function.
2450 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
2452 2011-05-23 Tom Tromey <tromey@redhat.com>
2454 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
2457 2011-05-23 Doug Evans <dje@google.com>
2459 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
2460 entry for RuntimeError to doc string.
2462 2011-05-23 Jerome Guitton <guitton@adacore.com>
2464 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
2465 sequence for probing loops.
2467 2011-05-23 Pedro Alves <pedro@codesourcery.com>
2469 * infrun.c (user_visible_resume_ptid): Fix typos in describing
2472 2011-05-21 Mark Kettenis <kettenis@gnu.org>
2474 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
2475 zero as the value for %g0 in the register cache.
2476 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
2477 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
2479 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2481 * infrun.c (proceed): Set previous_inferior_ptid here.
2482 (init_wait_for_inferior): Initialize previous_inferior_ptid from
2483 inferior_ptid, not null_ptid.
2484 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
2485 (fetch_inferior_event): Nor here.
2487 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2489 * inf-loop.c (inferior_event_handler): Only output a message if
2492 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
2494 * MAINTAINERS: Update my e-mail address.
2496 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2498 * infrun.c (proceed): Switch the inferior event loop to
2499 INF_EXEC_COMPLETE if the target refused to resume from a
2502 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2504 * infcmd.c: Include "inf-loop.h".
2505 (step_once): When stepping into an inline subroutine, pretend the
2506 target has run. If the target can async, switch the inferior
2507 event loop to INF_EXEC_COMPLETE.
2508 * inferior.h (user_visible_resume_ptid): Declare.
2509 * infrun.c (user_visible_resume_ptid): New function, factored out
2512 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
2513 that the current thread is running. Merge async and sync
2516 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2518 * infcmd.c (step_1): Simplify synchronous case.
2520 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2522 * tracepoint.c: Include exceptions.h.
2523 (TFILE_PID): Move higher in file.
2524 (tfile_open): Delay pushing the tfile target until we're assured
2525 the tfile header is present in the file. Wrap reading the initial
2526 newline-terminated lines in TRY_CATCH. Pop the target if the
2527 initial setup failed. Add the tfile's thread immediately
2528 aftwards, before any non-essential setup. Don't skip
2529 post_create_inferior if there are no traceframes present in the
2531 (tfile_close): Remove redundant check for null before xfree call.
2532 (tfile_thread_alive): New function.
2533 (init_tfile_ops): Register it as to_thread_alive callback.
2535 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2537 * tracepoint.c (tfile_open): Delete #if 0'd code.
2539 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2541 Fix -readnow for -gdwarf-4 unused type units.
2542 * dwarf2read.c (struct signatured_type): Remove the field offset.
2543 (create_signatured_type_table_from_index): Remove its initialization.
2544 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
2545 instead. Add a complaint call.
2546 (process_psymtab_comp_unit): Change assignment to gdb_assert.
2547 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
2548 (lookup_signatured_type_at_offset, read_signatured_type)
2549 (write_one_signatured_type): Update the field for per_cu.
2551 2011-05-19 Tom Tromey <tromey@redhat.com>
2553 * python/py-inferior.c (python_inferior_exit): Use
2555 (python_on_resume): Likewise.
2557 2011-05-19 Matt Rice <ratmice@gmail.com>
2559 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
2561 2011-05-19 Hui Zhu <teawater@gmail.com>
2563 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
2565 2011-05-19 Hui Zhu <teawater@gmail.com>
2567 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
2569 2011-05-18 Tom Tromey <tromey@redhat.com>
2571 * dwarf2read.c (dwarf2_add_field): Constify.
2572 * value.c (value_static_field): Constify.
2573 * gdbtypes.h (struct main_type) <field.field_location.physname>:
2575 * ax-gdb.c (gen_static_field): Constify
2577 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2579 * linux-nat.c (kill_callback): Use SIGKILL first.
2581 2011-05-18 Joel Brobecker <brobecker@adacore.com>
2583 * ada-lang.c (print_it_exception): Avoid use of sprintf.
2585 2011-05-18 Tom Tromey <tromey@redhat.com>
2587 * value.c (value_fn_field): Constify.
2588 * symtab.c (gdb_mangle_name): Constify.
2589 * stabsread.c (update_method_name_from_physname): Make 'physname'
2591 * p-typeprint.c (pascal_type_print_method_args): Make arguments
2592 const. Use explicit fputc_filtered loop.
2593 (pascal_type_print_base): Constify.
2594 * p-lang.h (pascal_type_print_method_args): Update.
2595 * linespec.c (add_matching_methods): Constify.
2596 (add_constructors): Likewise.
2597 * jv-typeprint.c (java_type_print_base): Constify.
2598 * gdbtypes.h (struct cplus_struct_type)
2599 <fn_fieldlist.fn_field.physname>: Now const.
2600 * dwarf2read.c (compute_delayed_physnames): Constify.
2601 (dwarf2_add_member_fn): Likewise.
2602 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
2604 2011-05-18 Pedro Alves <pedro@codesourcery.com>
2606 * infrun.c (resume): Mention which is the current thread, and its
2607 current PC in debug output.
2608 (prepare_to_proceed): Mention the thread switching in debug
2611 2011-05-18 Tom Tromey <tromey@redhat.com>
2613 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
2614 path check. Use xmalloc and cleanups.
2615 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
2617 2011-05-17 Tom Tromey <tromey@redhat.com>
2619 * cp-valprint.c (cp_print_value_fields): Catch errors from
2622 2011-05-17 Tom Tromey <tromey@redhat.com>
2624 * dwarf2read.c (dwarf2_get_die_type): Call
2625 get_die_type_at_offset.
2626 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
2627 get_base_type function.
2629 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
2631 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
2634 2011-05-16 Doug Evans <dje@google.com>
2636 * python/py-auto-load.c (source_section_scripts): Mention objfile
2639 2011-05-15 Doug Evans <dje@google.com>
2641 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
2642 (try_thread_db_load_from_pdir): Call it. If unable to find
2643 libthread_db in directory of libpthread, see if we're looking at
2644 the separate-debug-info copy.
2646 * python/py-autoload.c (print_script): Print "Missing" instead of
2647 "No" for missing scripts.
2648 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
2650 2011-05-13 Doug Evans <dje@google.com>
2652 * ui-file.c (stdio_file_write_async_safe): Add comment.
2654 2011-05-14 Hui Zhu <teawater@gmail.com>
2656 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
2658 2011-05-13 Doug Evans <dje@google.com>
2660 Support $pdir and $sdir in libthread-db-search-path.
2661 * NEWS: Mention $sdir,$pdir.
2662 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
2663 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
2664 (try_thread_db_load_from_sdir): New function.
2665 (try_thread_db_load_from_dir): New function.
2666 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
2667 system directories if search of libthread-db-search-path fails,
2668 that is now done via $sdir.
2669 (has_libpthread): New function.
2670 (thread_db_load): Remove search for libthread_db in directory of
2671 libpthread, that is now done via $pdir.
2673 * NEWS: Mention "info auto-load-scripts".
2674 * python/py-auto-load.c (struct auto_load_pspace_info): New member
2675 script_not_found_warning_printed.
2676 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
2677 all callers updated. Initialize script_not_found_warning_printed.
2678 (get_auto_load_pspace_data_for_loading): New function.
2679 (maybe_add_script): New function.
2680 (source_section_scripts): Simplify. Only print one warning regardless
2681 of the number of auto-load scripts not found.
2682 (clear_section_scripts): Clear script_not_found_warning_printed.
2683 (auto_load_objfile_script): Record script in hash table.
2684 (count_matching_scripts): New function.
2685 (maybe_print_script): Renamed from maybe_print_section_script, all
2686 callers updated. Rewrite to use ui_out_*.
2687 (info_auto_load_scripts): Renamed from
2688 maintenance_print_section_scripts, all callers updated.
2689 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
2690 renamed as "info auto-load-scripts".
2692 2011-05-13 Tom Tromey <tromey@redhat.com>
2694 * dwarf2expr.c (read_uleb128): Cast intermediate result.
2695 (read_sleb128): Likewise.
2697 2011-05-13 Tom Tromey <tromey@redhat.com>
2699 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
2702 2011-05-13 Doug Evans <dje@google.com>
2704 * linux-nat.c (debug_linux_nat_async): Delete.
2705 Replace all references to use debug_linux_nat instead.
2706 (show_debug_linux_nat_async): Delete.
2707 (sigchld_handler): Call ui_file_write_async_safe instead of
2709 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
2710 * ui-file.c (struct ui_file): New member to_write_async_safe.
2711 (null_file_write_async_safe): New function.
2712 (ui_file_write_async_safe): New function.
2713 (set_ui_file_write_async_safe): New function.
2714 (ui_file_new): Initialize to_write_async_safe.
2715 (stdio_file_write_async_safe): New function.
2716 (struct stdio_file): New member fd.
2717 (stdio_file_new): Initialize to_write_async_safe, fd.
2718 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
2720 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
2721 (set_ui_file_write_async_safe): Declare.
2722 (ui_file_write_async_safe): Declare.
2724 2011-05-13 Tom Tromey <tromey@redhat.com>
2726 * utils.c (do_value_free): New function.
2727 (make_cleanup_value_free): Likewise.
2728 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
2730 (dwarf2_loc_desc_needs_frame): Call
2731 make_cleanup_value_free_to_mark.
2732 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
2733 * dwarf2expr.c (free_dwarf_expr_context): Don't call
2735 (new_dwarf_expr_context): Don't call value_mark.
2736 * dwarf2-frame.c (execute_stack_op): Call
2737 make_cleanup_value_free_to_mark.
2738 * defs.h (make_cleanup_value_free): Declare.
2740 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2742 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
2743 prepare_execute_command.
2744 * top.c (prepare_execute_command): Return cleanup.
2745 (execute_command): Use cleanup from prepare_execute_command.
2746 * top.h (prepare_execute_command): Change prototype to return
2748 * defs.h (struct value): Add opaque declaration.
2749 (make_cleanup_value_free_to_mark): Add prototype.
2750 * utils.c (do_value_free_to_mark): New function.
2751 (make_cleanup_value_free_to_mark): Likewise.
2753 2011-05-12 Tom Tromey <tromey@redhat.com>
2755 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
2756 cast left-hand-side to unsigned.
2758 2011-05-12 Tom Tromey <tromey@redhat.com>
2761 * value.h (value_from_contents): Declare.
2762 * value.c (value_from_contents): New function.
2763 * dwarf2read.c (dwarf_stack_op_name): Add new values.
2764 (dwarf2_get_die_type): New function.
2765 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
2766 (allocate_piece_closure): Acquire reference to values.
2767 (read_pieced_value): Update for value-based expressions.
2768 (write_pieced_value): Likewise.
2769 (free_pieced_value_closure): Call value_free as needed.
2770 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
2771 Update for value-based expressions.
2772 * dwarf2loc.h (dwarf2_get_die_type): Declare.
2773 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
2774 <get_base_type>: New field.
2775 (struct dwarf_expr_piece) <v.value>: Change type.
2776 <v.regno>: New field.
2777 (struct dwarf_expr_context) <mark>: New field.
2778 (dwarf_expr_piece, dwarf_expr_fetch): Update.
2779 (dwarf_expr_pop, dwarf_expr_push): Remove.
2780 (dwarf_expr_push_address): Declare.
2781 * dwarf2expr.c (dwarf_arch_cookie): New global.
2782 (struct dwarf_gdbarch_types): New.
2783 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
2785 (dwarf_expr_push): Change type of 'value' argument. Update. Now
2787 (dwarf_expr_push_address): New function.
2788 (dwarf_expr_pop): Now static.
2789 (dwarf_expr_fetch): Change return type.
2790 (dwarf_require_integral): New function.
2791 (dwarf_expr_fetch): Simplify.
2792 (add_piece): Update.
2793 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
2795 (execute_stack_op) <sign_ext>: Remove.
2796 Use values for DWARF stack.
2797 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
2798 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
2800 (_initialize_dwarf2expr): New function.
2801 (add_piece): Update.
2802 (new_dwarf_expr_context): Set new field.
2803 (free_dwarf_expr_context): Call value_free_to_mark.
2804 * dwarf2-frame.c (no_base_type): New function.
2805 (execute_stack_op): Set get_base_type field. Update.
2807 2011-05-12 Tom Tromey <tromey@redhat.com>
2809 * dwarf2read.c (read_common_block): Fix formatting.
2811 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
2813 * breakpoint.c (disable_breakpoint): Disable all locations
2814 associated with a tracepoint on target if a trace experiment is
2816 (disable_command): Disable a specific tracepoint location on target if
2817 a trace experiment is running.
2818 (do_enable_breakpoint): Enable all locations associated with a
2819 tracepoint on target if a trace experiment is running.
2820 (enable_command) Enable a specific tracepoint location on target if a
2821 trace experiment is running.
2822 * target.c (update_current_target): Add INHERIT and de_fault clauses for
2823 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
2824 to_disable_tracepoint.
2825 * target.h: Add declaration of struct bp_location.
2826 (struct target_ops): Add new functions
2827 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
2828 to_disable_tracepoint to target operations.
2829 (target_supports_enable_disable_tracepoint): New macro.
2830 (target_enable_tracepoint): New macro.
2831 (target_disable_tracepoint): New macro.
2832 * remote.c (struct remote_state): Add new field.
2833 (remote_enable_disable_tracepoint_feature): New.
2834 (remote_protocol_features): Add new entry.
2835 (remote_supports_enable_disable_tracepoint): New.
2836 (remote_enable_tracepoint): New.
2837 (remote_disable_tracepoint): New.
2838 (init_remote_ops): Add remote_enable_tracepoint,
2839 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
2840 to remote operations.
2841 * tracepoint.c (start_tracing): Allow tracing to start without any
2842 tracepoints enabled with just a warning if they can be re-enabled
2844 * NEWS: Add news item for the new behaviour of the enable and disable
2845 GDB commands when applied to tracepoints.
2846 Add news items for the new remote packets QTEnable and QTDisable.
2848 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2850 * config.in: Regenerate.
2851 * configure: Regenerate.
2852 * configure.ac <--with-system-readline> (for readline_echoing_p):
2854 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
2855 (tui_old_rl_echoing_p): ... here.
2856 (tui_setup_io): Rename extern declaration readline_echoing_p to
2857 _rl_echoing_p. Adjust assignments for the both renames.
2859 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
2861 * symtab.c (lookup_symtab): Run cleanup before returning.
2863 2011-05-11 Tom Tromey <tromey@redhat.com>
2865 * dwarf2read.c (handle_data_member_location): New function.
2866 (dwarf2_add_field): Use it.
2867 (read_common_block): Likewise.
2869 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2871 Make addrs->SECTINDEX always defined.
2872 * symfile.c (relative_addr_info_to_section_offsets): Check for
2873 SECTINDEX -1, not for zero ADDR.
2874 (addrs_section_compar): Remove checking for invalid SECTINDEX.
2875 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
2876 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
2879 2011-05-10 Doug Evans <dje@google.com>
2881 * linux-thread-db.c: Whitespace cleanup.
2882 (try_thread_db_load_1): Fix comment.
2884 * linux-thread-db.c (set_libthread_db_search_path): New function.
2885 (_initialize_thread_db): Add setter for libthread-db-search-path.
2887 2011-05-09 Doug Evans <dje@google.com>
2889 * NEWS: Mention --with-iconv-bin.
2890 * configure.ac: New option --with-iconv-bin.
2891 * configure: Regenerate.
2892 * config.in: Regenerate.
2893 * defs.h (relocate_gdb_directory): Declare.
2894 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
2895 removed progname parameter, and exported. All callers updated.
2896 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
2898 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
2899 adding missing call to restore_child_signals_mask.
2901 2011-05-09 Pedro Alves <pedro@codesourcery.com>
2903 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
2905 * infrun.c (proceed, start_remote): Adjust.
2906 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
2907 and adjust to not handle it.
2908 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
2909 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
2910 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
2911 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
2912 * windows-nat.c (do_initial_windows_stuff): Adjust.
2913 * infcmd.c (attach_command): Adjust.
2914 (notice_new_inferior): Adjust.
2916 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2918 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
2919 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
2920 * spu-tdep.c (op_selb): Use correct value.
2922 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2924 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
2925 "parent" parameter to symbol_file_add_from_bfd call.
2927 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2928 Thiago Jung Bauermann <bauerman@br.ibm.com>
2930 Implement support for PowerPC BookE masked watchpoints.
2931 * NEWS: Mention masked watchpoint support. Create "Changed commands"
2933 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
2934 method. Initialize to NULL in all existing breakpoint_ops instances.
2935 (struct breakpoint) <hw_wp_mask>: New field.
2936 * breakpoint.c (is_masked_watchpoint): Add prototype.
2937 (update_watchpoint): Don't set b->val for masked watchpoints. Call
2938 breakpoint's breakpoint_ops.works_in_software_mode if available.
2939 (watchpoints_triggered): Handle the case of a hardware masked
2941 (watchpoint_check): Likewise.
2942 (works_in_software_mode_watchpoint): New function.
2943 (insert_masked_watchpoint, remove_masked_watchpoint)
2944 (resources_needed_masked_watchpoint)
2945 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
2946 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
2947 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
2949 (masked_watchpoint_breakpoint_ops): New structure.
2950 (watch_command_1): Check for the existence of the `mask' parameter.
2951 Set b->ops according to the type of hardware watchpoint being created.
2952 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
2953 (ppc_linux_remove_mask_watchpoint)
2954 (ppc_linux_masked_watch_num_registers): New functions.
2955 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
2956 to_remove_mask_watchpoint and to_masked_watch_num_registers.
2957 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
2958 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
2959 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
2960 (target_masked_watch_num_registers): New functions.
2961 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
2962 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
2964 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
2965 (target_masked_watch_num_registers): Add prototypes.
2967 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2970 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
2971 (producer_is_gcc_ge_4_0): New function.
2972 (process_full_comp_unit): Set also symtab->locations_valid. Move the
2973 symtab->language code.
2974 (var_decode_location): Set cu->has_loclist.
2975 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
2976 skip. Intialize force_skip from locations_valid. Move the prologue
2977 skipping code into two passes.
2978 * symtab.h (struct symtab): Make the primary field a bitfield. New
2979 field locations_valid.
2981 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2983 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
2984 (classify_inner_name): Call cp_lookup_nested_type with
2986 * cp-namespace.c (cp_lookup_nested_type): New variable
2987 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
2988 type_name_no_tag_or_error with saved_parent_type.
2989 * dwarf2read.c (load_partial_dies): Read in any children of
2990 DW_TAG_typedef with complaint in such case.
2991 * gdbtypes.c (type_name_no_tag_or_error): New function.
2992 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
2993 * valops.c (destructor_name_p): New comment for parameter type. Remove
2994 type const. Make dname and cp const. Call type_name_no_tag_or_error.
2995 * value.h (destructor_name_p): Remove type const.
2997 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2999 * symtab.c (compare_symbol_name): New function.
3000 (completion_list_add_name, expand_partial_symbol_name): Call it,
3001 remove the variable ncmp.
3002 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
3005 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3007 Demote to sw watchpoint only in update_watchpoint.
3008 * breakpoint.c (update_watchpoint): Change between software and
3009 hardware watchpoint for all kinds of watchpoints, not just
3010 read/write ones. Determine b->exact value here instead of
3011 in watch_command_1. Error out if there are not enough resources
3012 for a read or access hardware watchpoint.
3013 (watch_command_1): Remove logic of checking whether there are
3014 enough resources available, since update_watchpoint will do that
3015 work now. Don't set b->exact here. Catch exceptions thrown by
3016 update_watchpoint and delete the watchpoint.
3017 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
3018 Use target_exact_watchpoints instead.
3019 (delete_breakpoint): Notify observers only if deleted watchpoint
3020 has a breakpoint number assigned to it.
3022 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
3024 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3026 2011-05-05 Jerome Guitton <guitton@adacore.com>
3028 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
3030 (i386_stack_tramp_frame_unwind): New static global.
3031 (i386_match_pattern): New function, extracted from i386_match_insn.
3032 (i386_match_insn): Use i386_match_pattern.
3033 (i386_match_insn_block): New function.
3034 (i386_tramp_chain_in_reg_insns)
3035 (i386_tramp_chain_on_stack_insns): New static variables.
3036 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
3039 2011-05-04 Joseph Myers <joseph@codesourcery.com>
3041 * configure.host (xscale*): Don't handle target.
3042 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
3045 2011-05-04 Yao Qi <yao@codesourcery.com>
3047 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
3049 2011-05-03 Joel Brobecker <brobecker@adacore.com>
3052 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
3053 | * elfread.c (elf_symtab_read): Stop memory leak.
3055 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
3057 * nto-tdep.c (nto_target): Replace deprecated call to
3058 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
3060 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3062 Fix false GCC warning.
3063 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
3065 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
3067 * breakpoint.c (update_watchpoint): Move code to change
3068 the enable state of breakpoint from here ...
3069 (do_enable_breakpoint): ... to here.
3071 2011-04-26 Andrew Gontarek <andrewg@cray.com>
3073 * valprint.c (val_print_array_elements): Fixed poor performance
3074 of printing very large arrays with repeat_count_threshold set
3075 to unlimited. New comment.
3077 2011-04-29 Tom Tromey <tromey@redhat.com>
3079 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
3080 (mi_parse): Likewise.
3081 * breakpoint.c (break_range_command): Use sizeof char*, not
3083 (create_breakpoint): Likewise.
3084 (parse_breakpoint_sals): Likewise.
3086 2011-04-29 Pedro Alves <pedro@codesourcery.com>
3088 * linux-nat.c (linux_child_remove_fork_catchpoint)
3089 (linux_child_remove_vfork_catchpoint)
3090 (linux_child_remove_exec_catchpoint): New functions.
3091 (linux_target_install_ops): Install them.
3093 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
3097 * varobj.c (install_default_visualizer): Do not install a
3098 visualizer if the varobj is CPLUS_FAKE_CHILD.
3099 (construct_visualizer): Likewise.
3101 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3103 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
3104 case insensitive comparison.
3106 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
3108 * infrun.c (proceed): Revert previous change.
3109 (resume): Instead, handle the case of signal delivery while stepping
3110 off a breakpoint location here, and only if software single-stepping
3111 is used. Handle nested signals.
3113 2011-04-28 Yao Qi <yao@codesourcery.com>
3115 * arm-tdep.c (copy_unmodified): Rename to ...
3116 (arm_copy_unmodified): .. this. New.
3117 (copy_preload): Move common part to ...
3118 (install_preload): .. this. New.
3119 (arm_copy_preload): New.
3120 (copy_preload_reg): Move common part to ...
3121 (install_preload_reg): ... this. New.
3122 (arm_copy_preload_reg): New.
3123 (copy_b_bl_blx): Move common part to ...
3124 (install_b_bl_blx): .. this. New.
3125 (arm_copy_b_bl_blx): New.
3126 (copy_bx_blx_reg): Move common part to ...
3127 (install_bx_blx_reg): ... this. New.
3128 (arm_copy_bx_blx_reg): New.
3129 (copy_alu_reg): Move common part to ...
3130 (install_alu_reg): ... this. New.
3131 (arm_copy_alu_reg): New.
3132 (copy_alu_shifted_reg): Move common part to ...
3133 (install_alu_shifted_reg): ... this. New.
3134 (copy_ldr_str_ldrb_strb): Move common part to ...
3135 (install_ldr_str_ldrb_strb): ... this. New.
3136 (arm_copy_ldr_str_ldrb_strb): New.
3137 (copy_copro_load_store): Move some common part to ...
3138 (install_copy_copro_load_store): ... this. New.
3139 (arm_copy_copro_load_store): New.
3141 (arm_copy_svc): Renamed from copy_svc.
3142 (copy_undef): Delete.
3143 (arm_copy_undef): Renamed from copy_undef.
3144 (decode_ext_reg_ld_st): Delete.
3145 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3146 (decode_svc_copro): Delete.
3147 (arm_decode_svc_copro): Renamed from decode_svc_copro.
3148 (copy_copro_load_store, copy_alu_imm): update callers.
3149 (copy_extra_ld_st, copy_block_xfer): Likewise.
3150 (decode_misc_memhint_neon, decode_unconditional): Likewise.
3151 (decode_miscellaneous, decode_dp_misc): Likewise.
3152 (decode_ld_st_word_ubyte, decode_media): Likewise.
3153 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
3154 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
3155 (decode_unconditional, decode_miscellaneous): Likewise.
3156 (decode_media, decode_b_bl_ldmstm): Likewise.
3157 (arm_process_displaced_insn): Likewise..
3158 (decode_misc_memhint_neon): Delete.
3159 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
3160 (decode_miscellaneous): Delete.
3161 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
3162 (decode_dp_misc): Delete.
3163 (arm_decode_dp_misc): Renamed from decode_dp_misc.
3164 (decode_ld_st_word_ubyte): Delete.
3165 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
3166 (decode_media): Delete.
3167 (arm_decode_media): Renamed from decode_media.
3168 (decode_b_bl_ldmstm): Delete.
3169 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
3170 (decode_ext_reg_ld_st): Delete.
3171 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3172 (decode_unconditional): Delete.
3173 (arm_decode_unconditional): Renamed from decode_unconditional.
3175 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3177 Case insensitive lookups implementation.
3178 * dwarf2read.c: Include ctype.h.
3179 (struct mapped_index): New field version.
3180 (mapped_index_string_hash): New parameter index_version. New comment
3181 for it. Call tolower appropriately.
3182 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
3183 Choose the right index version for mapped_index_string_hash.
3184 (dwarf2_read_index): Support also the index version 5. Initialize the
3185 new struct mapped_index field version.
3186 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
3187 (find_slot): Explain the version needs. Pass INT_MAX for the new
3189 (write_psymtabs_to_index): Produce version 5.
3190 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
3191 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
3192 * psymtab.c (lookup_partial_symbol): Find the
3193 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
3195 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
3197 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
3198 (completion_list_add_name): New variable ncmp, initialize it, use it.
3199 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
3200 * utils.c (strcmp_iw): Support case_sensitive_off.
3201 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
3202 New function comment part. New variables saved_string1,
3203 saved_string2 and case_pass. Add a proper second pass.
3205 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3207 Replace re_comp/re_exec by regcomp/regexec.
3208 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
3209 (search_symbols_name_matches): Use them, use regexec.
3210 (search_symbols): New variable retval_chain, adjust the use of
3211 old_chain against it. Replace re_comp by regcomp. Use the new struct
3212 search_symbols_data fields, use regexec instead of re_exec.
3214 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3216 Format the code for the next patch.
3217 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
3218 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
3219 New variables c1 and c2.
3221 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
3223 * infrun.c (proceed): Do not single-step into signal delivery
3224 when stepping off a breakpoint location.
3225 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
3226 (insert_step_resume_breakpoint_at_caller): Likewise.
3227 (insert_step_resume_breakpoint_at_sal): Likewise.
3228 (insert_longjmp_resume_breakpoint): Likewise.
3230 2011-04-27 Yao Qi <yao@codesourcery.com>
3232 * common/linux-ptrace.h: Remove include <sys/wait.h>.
3234 2011-04-27 Joel Brobecker <brobecker@adacore.com>
3236 * procfs.c (procfs_pass_signals): Fix advance declaration.
3238 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
3240 * target.h (struct target_ops): Remove to_notice_signals;
3241 add to_pass_signals.
3242 (target_notice_signals): Remove.
3243 (target_pass_signals): Add prototype.
3244 * target.c (update_current_target): Remove to_notice_signals;
3245 mention to_pass_signals.
3246 (target_pass_signals): New function.
3247 (debug_to_notice_signals): Remove.
3248 (setup_target_debug): Do not install debug_to_notice_signals.
3250 * infrun.c (signal_pass): New global.
3251 (resume): Call target_pass_signals.
3252 (handle_inferior_event): Report all signals while stepping over
3253 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
3254 are re-inserted when stepping over a signal handler.
3255 (signal_cache_update): New function.
3256 (signal_stop_update): Call it.
3257 (signal_print_update): Likewise.
3258 (signal_pass_update): Likewise.
3259 (handle_command): Call signal_cache_update and target_pass_signals
3260 instead of target_notice_signals.
3261 (_initialize_infrun): Initialize signal_pass.
3263 * linux-nat.c (pass_mask): New global.
3264 (linux_nat_pass_signals): New function.
3265 (linux_nat_create_inferior): Report all signals initially.
3266 (linux_nat_attach): Likewise.
3267 (linux_nat_resume): Use pass_mask to decide whether to directly
3268 handle an inferior signal.
3269 (linux_nat_wait_1): Likewise.
3270 (linux_nat_add_target): Install to_pass_signals callback.
3272 * nto-procfs.c (notice_signals): Remove.
3273 (procfs_resume): Do not call notice_signals.
3274 (procfs_notice_signals): Remove.
3275 (procfs_pass_signals): New function.
3276 (init_procfs_ops): Install to_pass_signals callback instead of
3277 to_notice_signals callback.
3278 (_initialize_procfs): Report all signals initially.
3280 * procfs.c (procfs_notice_signals): Remove.
3281 (procfs_pass_signals): New function.
3282 (procfs_target): Install to_pass_signals callback instead of
3283 to_notice_signals callback.
3284 (register_gdb_signals): Remove.
3285 (procfs_debug_inferior): Report all signals initially.
3286 (procfs_init_inferior): Remove redundant register_gdb_signals call.
3288 * remote.c (remote_pass_signals): Add numsigs and pass_signals
3289 parameters; use them instead of calling signal_..._state routines.
3290 (remote_notice_signals): Remove.
3291 (remote_start_remote): Report all signals initially.
3292 (remote_resume): Do not call remote_pass_signals.
3293 (_initialize_remote): Install to_pass_signals callback instead of
3294 to_notice_signals callback.
3296 2011-04-27 Pedro Alves <pedro@codesourcery.com>
3298 * breakpoint.c (user_settable_breakpoint): Delete.
3299 (user_breakpoint_p): Remove check on user_settable_breakpoint.
3300 (delete_command): Check user_breakpoint_p instead of looking at
3301 the breakpoint's type.
3302 (disable_command): Ditto.
3303 (enable_command): Ditto.
3304 (delete_trace_command): Use user_breakpoint_p instead of looking
3305 at the breakpoint number directly. When checking if there are
3306 user visible tracepoints, in order to know whether to ask the user
3307 for confirmation, check whether the breakpoint is actually a
3310 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
3312 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
3315 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
3317 MI breakpoint notifications.
3319 * annotate.c (breakpoint_changed): Adjust parameter type.
3320 * breakpoint.c (set_breakpoint_condition): Adjust to change
3321 in breakpoint_modified type.
3322 (breakpoint_set_commands): Likewise.
3323 (do_map_commands_command): Likewise.
3324 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
3325 changed after bumping hit count.
3326 (bpstat_stop_status): Likewise.
3327 (print_one_breakpoint_location): Don't wrap in tuple here.
3328 (print_one_breakpoint): Always print individual locations.
3329 For locations, use unnamed tuple.
3330 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
3332 (create_catchpoint, create_syscall_event_catchpoint): Call
3333 breakpoint_created obsever.
3334 (mention): Don't call breakpoint_created observer.
3335 (create_breakpoint_sal): Call breakpoint_created observer.
3336 (create_breakpoint, watch_command_1): Likewise.
3337 (create_ada_exception_breakpoint): Likewise.
3338 (delete_breakpoint): Call breakpoint_deleted breakpoint.
3339 (locations_are_equal): New.
3340 (update_breakpoint_locations): If locations were changed, notify.
3341 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
3342 Call breakpoint_modified observer.
3344 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3345 (mi_cmd_break_insert): Don't set observers for modify and delete.
3346 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
3347 (mi_breakpoint_created, mi_breakpoint_deleted)
3348 (mi_breakpoint_modified): New.
3349 (mi_interpreter_init): Hook the above.
3350 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
3351 while -break-* commands are executing.
3352 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
3353 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
3355 (mi_ui_out_impl): Hook in mi_redirect.
3356 (mi_field_skip): True to the name, skip the field, don't output
3357 a field with an empty value.
3359 * python/py-breakpoint.c (gdbpy_breakpoint_created)
3360 (gdbpy_breakpoint_deleted): Adjust.
3361 * tui/tui-hooks.c (tui_event_create_breakpoint)
3362 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
3364 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
3366 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
3367 (procfs_remove_hw_watchpoint): Likewise.
3369 2011-04-26 Michael Walle <michael@walle.cc>
3371 * remote.c (remote_start_remote): Ack packet after sending the
3374 2011-04-26 Yao Qi <yao@codesourcery.com>
3376 * linux-nat.c: Move common macros to ...
3377 Include linux-ptrace.h.
3378 * common/linux-ptrace.h: ... here. New.
3380 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3382 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
3383 !objfile_has_partial_symbols. New comment.
3384 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
3385 SYM_READ_PSYMBOLS is not present. Extend the comment.
3386 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
3388 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3390 * defs.h (ENUM_BITFIELD): Remove.
3392 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3393 Eli Zaretskii <eliz@gnu.org>
3395 * NEWS: Document the new gdbserver --once option.
3397 2011-04-21 Jie Zhang <jzhang918@gmail.com>
3399 * MAINTAINERS: Update my email address.
3401 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
3403 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
3404 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
3405 function call if __STDC_ISO_10646__ macro is defined.
3406 (intermediate_encoding): New prototype.
3407 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
3408 to generate compile time error for unsupported gdb_wchar_t size.
3409 (ENDIAN_SUFFIX): New macro.
3410 (intermediate_encoding): New function.
3412 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3414 * ada-lang.c (struct add_partial_datum): Update the comment for
3415 expand_partial_symbol_name.
3416 (ada_add_partial_symbol_completions): Rename to ...
3417 (ada_expand_partial_symbol_name): ... here, change return type, update
3418 function comment, call symbol_completion_match instead of
3419 symbol_completion_add.
3420 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
3421 and ada_expand_partial_symbol_name.
3422 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
3424 (dw2_map_symbol_names): Remove.
3425 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
3426 * psymtab.c (map_symbol_names_psymtab): Remove.
3427 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
3428 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
3430 (psym_functions): Unlist map_symbol_names_psymtab.
3431 (map_partial_symbol_names): Rename to ...
3432 (expand_partial_symbol_names): ... here, change the FUN type, call
3433 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
3434 * psymtab.h (map_partial_symbol_names): Rename to ...
3435 (expand_partial_symbol_names): ... here, change the FUN type.
3436 * symfile.h (struct quick_symbol_functions): Update the description of
3437 expand_symtabs_matching. Remove map_symbol_names.
3438 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
3439 (struct add_name_data): Update the comment for
3440 expand_partial_symbol_name.
3441 (add_partial_symbol_name): Rename to ...
3442 (expand_partial_symbol_name): ... here. Replace
3443 completion_list_add_name call by strncmp.
3444 (default_make_symbol_completion_list_break_on): Use now
3445 expand_partial_symbol_names and expand_partial_symbol_name.
3446 * symtab.h (enum search_domain): New element ALL_DOMAIN.
3448 2011-04-20 Tom Tromey <tromey@redhat.com>
3450 * dwarf2read.c (save_gdb_index_command): Replace format
3451 documentation with a pointer to the manual.
3453 2011-04-20 Pedro Alves <pedro@codesourcery.com>
3455 * regcache.c: Include remote.h.
3456 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
3457 (regcache_dump): Handle regcache_dump_remote.
3458 (maintenance_print_remote_registers): New function.
3459 (_initialize_regcache): Install "maint print remote-registers"
3461 * remote.c (map_regcache_remote_table): New function, factored out
3463 (init_remote_state): ... here.
3464 (remote_register_number_and_offset): New.
3465 * remote.h (remote_register_number_and_offset): Declare.
3467 2011-04-20 Pedro Alves <pedro@codesourcery.com>
3469 * regcache.c (get_thread_arch_regcache): If creating a regcache for
3470 null_ptid, assume and allow a NULL address space, instead of
3471 asking the target for the ptid's address space.
3472 * infrun.c (ptid_is_pid): Remove assertion.
3474 2011-04-19 Tom Tromey <tromey@redhat.com>
3476 * windows-tdep.c (windows_xfer_shared_library):
3477 * windows-nat.c (get_module_name, windows_make_so):
3478 * v850-tdep.c (v850_handle_pushm):
3479 * utils.c (null_cleanup, gdb_realpath):
3480 * ui-out.c (get_next_header):
3481 * tracepoint.c (clear_traceframe_info):
3482 * symtab.c (lookup_symtab):
3483 * serial.h (struct serial_ops):
3484 * mipsread.c (read_alphacoff_dynamic_symtab):
3485 * infcmd.c (print_return_value):
3486 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
3487 * f-exp.y (parse_number):
3488 * exceptions.c (catch_exceptions):
3489 * dummy-frame.c (dummy_frame_this_id):
3490 * defs.h (struct cleanup):
3491 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
3492 * arm-tdep.c (arm_push_dummy_call):
3493 * amd64-tdep.h (amd64_collect_xsave):
3494 * amd64-tdep.c (amd64_collect_xsave):
3495 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
3496 * README (typing): Remove duplicate words.
3497 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
3498 * infrun.c (siginfo_value_read): Fix typo.
3499 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
3500 * top.c (source_line_number): Add comma.
3502 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
3504 * thread.c (any_live_thread_of_process): Prioritize threads
3505 that are not executing.
3506 * gdbthread.h (any_live_thread_of_process): Update comment
3507 as per above change.
3509 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
3511 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
3512 (scan_xcoff_symtab): Likewise.
3514 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3516 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
3519 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3520 Pedro Alves <pedro@codesourcery.com>
3522 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
3523 variables to simplify code and avoid == operator at end of
3524 line as this is against GNU coding standards.
3526 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3528 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
3529 lm_name to name_lm to avoid conflict with lm_name function.
3531 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3533 ARI fixes: Use only lowercase function name for static functions.
3534 * nto-tdep.c (LM_ADDR): Rename to...
3535 (lm_addr): New function name.
3536 (nto_relocate_section_addresses): Adapt to change above.
3537 * solib-sunos.c (LM_ADDR): Rename to...
3538 (lm_addr): New function name.
3539 (LM_NEXT): Rename to...
3540 (lm_next): New function name.
3541 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
3542 function name changes above.
3543 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
3544 (lm_addr_from_link_map): New function name.
3545 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
3546 (has_lm_dynamic_from_link_map): New function name.
3547 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
3548 (lm_dynamic_from_link_map): New function name.
3549 (LM_ADDR_CHECK): Rename to...
3550 (lm_addr_check): New function name.
3551 (LM_NEXT): Rename to...
3552 (lm_next): New function name.
3553 (LM_PREV): Rename to...
3554 (lm_prev): New function name.
3555 (LM_NAME): Rename to...
3556 (lm_name): New function name.
3557 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
3558 (ignore_first_link_map_entry): New function name.
3559 (svr4_keep_data_in_core): Adapt to function name changes above.
3560 (svr4_current_sos): Likewise.
3561 (enable_break): Likewise.
3562 (svr4_relocate_section_addresses): Likewise.
3564 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3567 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
3568 sprintf. Simplify code and avoid loosing memory.
3569 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
3570 (call0_frame_cache): Remove && operator from end of line.
3572 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3574 Fix libraries displacement if they change whether they were prelinked.
3575 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
3576 does not match. Comment why.
3578 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3580 * corelow.c: Include wrapper.h.
3581 (core_open): Call now gdb_target_find_new_threads.
3582 * wrapper.c: Include target.h.
3583 (gdb_target_find_new_threads): New.
3584 * wrapper.h (gdb_target_find_new_threads): New declaration.
3586 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3588 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
3589 even if !TARGET_HAS_EXECUTION.
3591 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3593 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
3594 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
3595 bfd_get_synthetic_symtab.
3596 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
3597 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
3598 parameter parent, remove the call to add_separate_debug_objfile.
3599 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
3600 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3601 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
3602 parent, new comment for it, call add_separate_debug_objfile for it.
3603 (symbol_file_add_separate): Pass objfile as the parameter parent,
3604 remove the call to add_separate_debug_objfile.
3605 (symbol_file_add_from_bfd): New parameter parent, pass it.
3606 (symbol_file_add): Pass NULL to the new parameter parent.
3607 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
3609 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3611 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
3614 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3616 Fix Python access to inlined frames.
3617 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
3618 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
3620 2011-04-15 Tom Tromey <tromey@redhat.com>
3622 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
3624 2011-04-15 Gary Benson <gbenson@redhat.com>
3626 * MAINTAINERS: Add myself to write-after-approval section.
3628 2011-04-14 Mike Frysinger <vapier@gentoo.org>
3630 * remote-sim.c (sim_command_completer): New function.
3631 (_initialize_remote_sim): Set completer to sim_command_completer.
3633 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3635 * breakpoint.c (print_exception_catchpoint): Rename to ...
3636 (print_it_exception_catchpoint): ... this.
3637 (gnu_v3_exception_catchpoint_ops): Update with new name
3638 for print_it_exception_catchpoint.
3640 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
3642 * MAINTAINERS: Add myself for write after approval privileges.
3644 2011-04-13 Marek Polacek <mpolacek@redhat.com>
3646 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3648 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3650 * breakpoint.c (watch_command_1): Remove colon from exp_string.
3652 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3654 * breakpoint.c (save_breakpoints): Verify whether
3655 breakpoint_ops.print_recreate is defined before calling it.
3657 2011-04-11 Gary Benson <gbenson@redhat.com>
3659 Fix failure with --enable-maintainer-mode.
3660 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
3662 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3665 * symtab.c (search_symbols): Reorder the KIND description in the
3666 function comment. Remove the unused 4th element of types, types2,
3667 types3 and types4. New gdb_assert on KIND.
3668 (symtab_symbol_info): Remove the unused 4th element of classnames.
3669 New gdb_assert on KIND.
3670 * symtab.h (enum search_domain): New warning in the enum comment.
3671 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
3674 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3676 Fix crash of gdb save-index on a STABS file.
3677 * dwarf2read.c (write_psymtabs_to_index): Return also on no
3680 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3682 Fix DW_AT_accessibility compatibility with gcc-4.6+.
3683 * dwarf2read.c: Include ctype.h.
3684 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
3686 (dwarf2_add_field): Fix new_field->accessibility by calling
3687 dwarf2_default_access_attribute. Restructure setting accessibility
3689 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
3690 is_private and is_protected by calling
3691 dwarf2_default_access_attribute.
3693 2011-04-08 Kevin Buettner <kevinb@redhat.com>
3695 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
3696 to the initialization.
3698 2011-04-08 Steve Ellcey <sje@cup.hp.com>
3700 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
3703 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
3705 Remove support for old Cygwin 1.5 versions.
3706 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
3707 function on old Cygwin version.
3708 * windows-nat.c: Remove cygwin version check and always define
3709 __USEWIDE for Cygwin compilation.
3711 2011-04-07 Yao Qi <yao@codesourcery.com>
3713 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
3715 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
3716 (arm_copy_svc): Remove parameters INSN and TO.
3717 (decode_svc_copro): Update caller.
3718 * arm-tdep.h (struct displaced_step_closure): Remove parameters
3719 from function pointer `copy_svc_os'.
3721 2011-04-07 Yao Qi <yao@codesourcery.com>
3723 * arm-tdep.c (cleanup_branch): Set a correct return address in
3724 LR for ARM and Thumb.
3726 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3729 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
3730 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
3731 in the function comment, a new note on values compatibility.
3732 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
3733 * symtab.h (SYMBOL_HASH_NEXT): New.
3735 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
3737 * ppc-linux-nat.c (check_condition): Add len output parameter.
3738 Set it based on the memory region referenced in the condition
3739 expression. Update all callers.
3741 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3743 Fix crash regression on systems featuring .gdb_index.
3744 * objfiles.c (free_objfile): Move the
3745 forget_cached_source_info_for_objfile call earlier. Comment it.
3746 Extend the comment for objfile_free_data.
3748 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3750 Fix regression of displaying the debug format.
3751 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
3754 2011-04-04 Tom Tromey <tromey@redhat.com>
3756 * cli/cli-interp.c (struct captured_execute_command_args):
3758 (do_captured_execute_command): Remove.
3759 (safe_execute_command): Use TRY_CATCH.
3760 * cli/cli-script.c (struct wrapped_read_command_file_args):
3762 (wrapped_read_command_file): Remove.
3763 (script_from_file): Use TRY_CATCH.
3764 * exceptions.c (catch_exception): Remove.
3765 * exceptions.h (catch_exception): Remove.
3766 (deprecated_throw_reason): Update comment.
3767 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
3768 argument to 'context'.
3769 (mi_execute_command): Use TRY_CATCH.
3770 * remote.c (struct start_remote_args): Remove.
3771 (remote_start_remote): Update; change arguments.
3772 (remote_open_1): Use TRY_CATCH.
3774 2011-04-04 Tom Tromey <tromey@redhat.com>
3776 * tracepoint.c (scope_info): Update.
3777 * symtab.c (decode_line_spec): Update.
3778 * python/python.c (gdbpy_decode_line): Update.
3779 * linespec.h (decode_line_1): Update.
3780 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
3781 (decode_compound, find_method, symtab_from_filename)
3782 (decode_variable): Likewise.
3783 * cli/cli-cmds.c (edit_command): Update.
3784 (list_command): Update.
3785 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
3787 (create_breakpoint): Update.
3788 (until_break_command): Update.
3789 (addr_string_to_sals): Update.
3790 (decode_line_spec_1): Update.
3792 2011-04-04 Tom Tromey <tromey@redhat.com>
3794 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
3795 (do_captured_parse_breakpoint): Remove.
3796 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
3797 Use TRY_CATCH directly.
3799 2011-04-04 Tom Tromey <tromey@redhat.com>
3801 * symtab.h (free_symtab): Remove.
3802 (forget_cached_source_info_for_objfile): Declare.
3803 * symmisc.c (free_symtab): Remove.
3804 * source.c (forget_cached_source_info_for_objfile): New function.
3805 (forget_cached_source_info): Use it.
3806 * objfiles.c (free_objfile): Simplify check before calling
3807 clear_current_source_symtab_and_line. Call
3808 forget_cached_source_info_for_objfile.
3810 2011-04-04 Tom Tromey <tromey@redhat.com>
3812 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
3813 (new_symtab): Don't set `free_code' on symtab.
3814 (new_linetable): Properly handle size==0.
3815 * symtab.h (struct symtab) <free_code, free_func>: Remove.
3816 * symmisc.c (free_symtab): Don't free the linetable. Don't call
3818 * jv-lang.c (struct jv_per_objfile_data): New.
3819 (jv_per_objfile_free): Free the data.
3820 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
3821 (get_java_class_symtab): Set the `dict' field on the
3822 jv_per_objfile_data.
3823 (free_class_block): Remove.
3824 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
3827 2011-04-04 Tom Tromey <tromey@redhat.com>
3829 * symfile.c (reread_symbols): Update.
3830 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
3832 * objfiles.c (allocate_objfile): Update.
3833 * cp-support.h (cp_check_possible_namespace_symbols): Don't
3835 * cp-namespace.c (lookup_symbol_file): Don't call
3836 lookup_possible_namespace_symbol.
3837 (initialize_namespace_symtab, get_possible_namespace_block)
3838 (free_namespace_block, cp_check_possible_namespace_symbols)
3839 (check_possible_namespace_symbols_loop)
3840 (check_one_possible_namespace_symbol)
3841 (lookup_possible_namespace_symbol): Remove.
3842 (maintenance_cplus_namespace): Replace with notice.
3843 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
3845 2011-04-04 Tom Tromey <tromey@redhat.com>
3847 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
3848 * symtab.h (struct symtab) <producer, debugformat>: Now const.
3849 * symmisc.c (free_symtab): Don't free debugformat.
3850 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
3851 (record_debugformat, record_producer): Document.
3852 * buildsym.c (end_symtab): Don't save debugformat and producer
3854 (end_symtab): Don't free debugformat and producer fields.
3855 (record_debugformat): Don't call xstrdup.
3856 (record_producer): Likewise.
3858 2011-04-04 Tom Tromey <tromey@redhat.com>
3860 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
3861 (source_line_charpos, source_charpos_line): Remove.
3863 2011-04-04 Tom Tromey <tromey@redhat.com>
3865 * symtab.h (domain_enum): Split in two...
3866 (enum search_domain): New.
3867 (search_symbols): Update.
3868 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
3869 redundant declarations.
3870 (search_symbols): Change 'kind' argument to search_domain.
3872 (print_symbol_info): Likewise.
3873 (symtab_symbol_info): Likewise.
3874 * symfile.h (struct quick_symbol_functions)
3875 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
3876 <expand_symtabs_matching>: Likewise.
3877 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
3878 (expand_symtabs_matching_via_partial): Update.
3879 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
3880 (dw2_expand_symtabs_for_function): Update.
3881 * block.h: Moved anonymous enum...
3882 * defs.h (enum block_enum): ... here. Now named.
3884 2011-04-03 Joel Brobecker <brobecker@adacore.com>
3886 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
3887 * version.in: Bump version to 7.3.50.20110403-cvs.
3889 2011-04-03 Joel Brobecker <brobecker@adacore.com>
3891 * NEWS: Create a new section for the next release branch.
3892 Rename the section of the current branch, now that it has
3895 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
3897 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
3898 for "fpscr" in target description.
3900 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3902 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
3903 initialize it. Delay HASH initialization. Strip the part after open
3904 parenthesis for languages with qualifiers. Call do_cleanups.
3906 2011-04-01 Tom Tromey <tromey@redhat.com>
3908 * utils.c (report_command_stats): Don't print `-' for negative
3911 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
3913 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
3914 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
3917 2011-04-01 Joel Brobecker <brobecker@adacore.com>
3919 * breakpoint.h (bpdisp_text): Add declaration.
3920 * breakpoint.c (bpdisp_text): Make non-static.
3921 * ada-lang.c: #include "mi/mi-common.h".
3922 (print_it_exception): Rewrite to improve GDB/MI output.
3924 2011-04-01 Pedro Alves <pedro@codesourcery.com>
3926 * arm-tdep.h (struct address_space): Add forward declaration.
3928 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
3930 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
3931 * arm-tdep.c (arm_override_mode): New global.
3932 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
3933 execution mode heuristics.
3934 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
3935 second single-step breakpoint if needed, using
3936 arm_insert_single_step_breakpoint.
3937 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
3938 ARM execution mode, do not call thumb_get_next_pc_raw.
3939 (arm_get_next_pc): Encode execution mode in return value. Call
3940 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
3941 (arm_insert_single_step_breakpoint): New function.
3942 (arm_software_single_step): Call it.
3943 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
3944 argument to return execution mode of sigreturn target.
3945 (arm_linux_syscall_next_pc): Use it.
3946 (arm_linux_copy_svc): Update call.
3947 (arm_linux_software_single_step): Call
3948 arm_insert_single_step_breakpoint.
3950 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3952 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
3955 2011-03-31 Tom Tromey <tromey@redhat.com>
3957 * varobj.c (update_dynamic_varobj_children): Properly handle
3958 errors from iterator.
3960 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3962 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
3963 struct linkage name twice.
3965 2011-03-31 Tom Tromey <tromey@redhat.com>
3967 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
3968 missing ">" to message.
3970 2011-03-31 Tom Tromey <tromey@redhat.com>
3972 * varobj.c (instantiate_pretty_printer): Remove duplicate
3975 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
3977 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
3978 if neither saved value nor register available (e.g. signal frame).
3980 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3982 * macroexp.c (expand): Avoid uninitialized variable
3985 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3987 * breakpoint.c (break_range_command): Fix typo in comment.
3989 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3990 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3992 Implement support for PowerPC BookE ranged breakpoints.
3993 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
3994 * breakpoint.h (struct bp_target_info) <length>: New member
3996 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
3997 instead of struct breakpoint as argument, and also add ASPACE
3998 and BP_ADDR arguments. Update all callers.
3999 (struct breakpoint_ops) <print_one_detail>: New method.
4000 (struct breakpoint) <addr_string_range_end>: New member variable.
4001 * breakpoint.c (breakpoint_location_address_match): Add function
4003 (insert_bp_location): Set bl->target_info.length.
4004 (breakpoint_here_p): Call breakpoint_location_address_match.
4005 (moribund_breakpoint_here_p): Likewise.
4006 (regular_breakpoint_inserted_here_p): Likewise.
4007 (breakpoint_thread_match): Likewise.
4008 (bpstat_stop_status): Likewise.
4009 (bpstat_check_location): Move call to
4010 breakpoint_ops.breakpoint_hit to the top.
4011 (print_one_breakpoint_location): Call
4012 breakpoint_ops.print_one_detail if available.
4013 (breakpoint_address_match_range): New function.
4014 (breakpoint_location_address_match): Likewise.
4015 (breakpoint_locations_match): Compare the length field of the
4017 (hw_breakpoint_used_count): Count resources used by all locations
4018 in a breakpoint, and use breakpoint_ops.resources_needed if
4020 (breakpoint_hit_ranged_breakpoint): New function.
4021 (resources_needed_ranged_breakpoint): Likewise.
4022 (print_it_ranged_breakpoint): Likewise.
4023 (print_one_ranged_breakpoint): Likewise.
4024 (print_one_detail_ranged_breakpoint): Likewise.
4025 (print_mention_ranged_breakpoint): Likewise.
4026 (print_recreate_ranged_breakpoint): Likewise.
4027 (ranged_breakpoint_ops): New structure.
4028 (find_breakpoint_range_end): New function.
4029 (break_range_command): Likewise.
4030 (delete_breakpoint): Free addr_string_range_end.
4031 (update_breakpoint_locations): Add SALS_END argument. Update
4032 all callers. Calculate breakpoint length if a non-zero SALS_END
4033 is given. Call breakpoint_locations_match instead of
4034 breakpoint_address_match.
4035 (reset_breakpoint): Find SaL of the end of the range if B is a
4037 (_initialize_breakpoint): Register break-range command.
4038 * defs.h (print_core_address): Add function prototype.
4039 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
4041 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
4042 (ppc_linux_remove_hw_breakpoint): Likewise.
4043 (_initialize_ppc_linux_nat): Initialize
4044 to_ranged_break_num_registers.
4045 * target.c (update_current_target): Add comment about
4046 to_ranged_break_num_registers.
4047 (target_ranged_break_num_registers): New function.
4048 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4050 (target_ranged_break_num_registers): Add function prototype.
4051 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
4052 * utils.c (print_core_address): ... here.
4054 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
4056 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
4057 variable compiler warning.
4059 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
4061 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
4063 (re_set_breakpoint): ... to here ...
4064 (addr_string_to_sals): ... and here.
4066 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4068 * Makefile.in (SFILES): Add missing C sources.
4069 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
4070 Add missing headers.
4072 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4074 * .gitignore: New file.
4076 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4078 * NEWS: Mention new cfi device simulation.
4080 2011-03-29 Tom Tromey <tromey@redhat.com>
4082 * dwarf2read.c (fixup_partial_die): Handle linkage name on
4083 otherwise anonymous types.
4084 (dwarf2_name): Likewise.
4085 * valops.c (value_struct_elt_for_reference): Refine artificial
4086 type logic. Call error if j==-1.
4088 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
4090 Fix false GCC warning.
4091 * infcall.c (find_function_addr): Initialize funaddr.
4093 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4095 Fix mingw compilation with --enable-targets=all.
4096 * remote-mips.c (gdb_usleep.h): Include header.
4097 (mips_enter_debug): Use gdb_usleep instead of sleep.
4099 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4101 Support resolution of STT_GNU_IFUNC via breakpoints.
4102 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
4103 bp_gnu_ifunc_resolver_return.
4104 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
4105 the loop. Support bp_gnu_ifunc_resolver and
4106 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
4107 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
4109 (bptype_string, print_one_breakpoint_location): Support
4110 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
4111 (user_settable_breakpoint): Return true also for
4112 bp_gnu_ifunc_resolver.
4113 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
4114 bp_gnu_ifunc_resolver_return.
4115 (set_breakpoint_location_function): New parameter explicit_loc,
4116 describe it. Call find_pc_partial_function_gnu_ifunc with new
4117 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
4118 EXPLICIT_LOC is not set.
4119 (set_raw_breakpoint): Set EXPLICIT_LOC for
4120 set_breakpoint_location_function.
4121 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
4122 set_breakpoint_location_function.
4123 (mention): Support bp_gnu_ifunc_resolver and
4124 bp_gnu_ifunc_resolver_return.
4125 (add_location_to_breakpoint): Set EXPLICIT_LOC for
4126 set_breakpoint_location_function.
4127 (update_breakpoint_locations): Remove static.
4128 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
4129 bp_gnu_ifunc_resolver_return.
4130 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
4131 bp_gnu_ifunc_resolver_return.
4132 (update_breakpoint_locations): New declaration.
4133 * elfread.c: Include gdbthread.h and regcache.h.
4134 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
4136 (elf_gnu_ifunc_fns): Install them.
4137 * minsyms.c (stub_gnu_ifunc_resolver_stop)
4138 (stub_gnu_ifunc_resolver_return_stop): New functions.
4139 (stub_gnu_ifunc_fns): Install them.
4140 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
4141 and gnu_ifunc_resolver_return_stop.
4142 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
4144 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4146 STT_GNU_IFUNC reader implementation.
4147 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
4148 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
4149 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
4150 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
4151 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
4152 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
4153 (elf_gnu_ifunc_resolve_addr): New.
4154 (elf_symfile_read): Call elf_rel_plt_read.
4155 (elf_gnu_ifunc_fns): New.
4156 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
4157 Install elf_gnu_ifunc_fns.
4158 * infcall.c (find_function_return_type): New function.
4159 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
4160 * minsyms.c (stub_gnu_ifunc_resolve_addr)
4161 (stub_gnu_ifunc_resolve_name): New functions.
4162 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
4163 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
4164 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
4166 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4168 Code cleanup for later STT_GNU_IFUNC support.
4169 * infcall.c (find_function_addr): Remove variable code, use explicit
4170 dereferences for it. Move VALUE_TYPE initialization later.
4172 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4174 GDB find_pc_partial_function support for STT_GNU_IFUNC.
4175 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
4176 (clear_pc_function_cache): Clear it.
4177 (find_pc_partial_function): Rename to ...
4178 (find_pc_partial_function_gnu_ifunc): ... this function. New
4179 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
4180 (find_pc_partial_function): New wrapper for this function.
4181 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
4183 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4185 GDB internal type support for STT_GNU_IFUNC.
4186 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
4187 (elf_symtab_read): Set mst_text_gnu_ifunc for
4188 BSF_GNU_INDIRECT_FUNCTION.
4189 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
4190 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
4191 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
4192 nodebug_got_plt_symbol.
4193 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
4194 (TYPE_GNU_IFUNC): New.
4195 (struct main_type): New field flag_gnu_ifunc.
4196 (struct builtin_type): New field builtin_func_func.
4197 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
4198 nodebug_got_plt_symbol.
4199 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
4200 (in_gnu_ifunc_stub): New.
4201 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
4203 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
4204 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
4205 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
4207 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
4208 * symtab.c (search_symbols): Likewise.
4209 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
4210 and mst_slot_got_plt.
4211 (in_gnu_ifunc_stub): New declaration.
4213 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4215 Support a ring of related breakpoints.
4216 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
4217 other functions, add gdb_assert.
4218 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
4219 watchpoint_del_at_next_stop.
4220 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
4221 (bpstat_stop_status): Handle ring in related_breakpoint.
4222 (set_raw_breakpoint_without_location): Initialize ring in
4224 (delete_breakpoint): Handle ring in related_breakpoint, use
4225 watchpoint_del_at_next_stop.
4226 (map_breakpoint_numbers): Handle ring in related_breakpoint.
4228 2011-03-28 Tom Tromey <tromey@redhat.com>
4231 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
4232 with `language_minimal'.
4234 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
4236 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
4237 instead of checking for STT_ARM_TFUNC symbol type.
4239 2011-03-25 Tom Tromey <tromey@redhat.com>
4241 * linespec.c (symbol_found): Restore line-based result for
4242 non-LOC_LABEL symbols.
4244 2011-03-25 Kai Tietz <ktietz@redhat.com>
4246 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
4247 instead of strcmp for comparison.
4248 (tui_source_is_displayed): Likewise.
4249 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
4251 2011-03-24 Mark Wielaard <mjw@redhat.com>
4253 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
4255 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
4256 (find_partial_die_in_comp_unit): Likewise in comment.
4257 (read_attribute_value): Likewise.
4258 (lookup_die_type): Likewise.
4259 (dwarf_form_name): Likewise.
4260 (dump_die_shallow): Likewise.
4261 (follow_die_ref_or_sig): Likewise.
4263 2011-03-24 Tom Tromey <tromey@redhat.com>
4265 PR breakpoints/11816:
4266 * linespec.c (decode_line_1): Parse `function:label' linespecs.
4267 (decode_compound): Update.
4268 (find_function_symbol): New function.
4269 (decode_dollar): Update.
4270 (decode_label): Add 'function_symbol' parameter. Handle
4271 function-relative labels.
4272 (decode_variable): Update.
4273 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
4274 not its line. Set `special_display' and canonical name for
4277 2011-03-24 Tom Tromey <tromey@redhat.com>
4279 * linespec.h (struct linespec_result) <special_display>: New
4281 * breakpoint.h (struct breakpoint) <display_canonical>: New
4283 * breakpoint.c (print_breakpoint_location): Respect
4285 (create_breakpoint_sal): Add 'display_canonical' parameter.
4286 (create_breakpoints_sal): Update.
4287 (create_breakpoint): Update.
4289 2011-03-24 Tom Tromey <tromey@redhat.com>
4291 * symtab.c (decode_line_spec): Update.
4292 * linespec.c (build_canonical_line_spec): Change type of
4294 (decode_line_2, decode_line_1, decode_objc, decode_compound)
4295 (find_method, decode_all_digits, decode_dollar, decode_label)
4296 (symbol_found): Likewise.
4297 (init_linespec_result): New function.
4298 * breakpoint.c (struct captured_parse_breakpoint_args)
4299 <canonical_p>: New field, replaces addr_string_p.
4300 (create_breakpoints_sal): Add 'canonical' parameter, replacing
4302 (parse_breakpoint_sals): Likewise.
4303 (do_captured_parse_breakpoint): Update.
4304 (create_breakpoint): Use struct linespec_result.
4305 (until_break_command): Update.
4306 (breakpoint_re_set_one): Update.
4307 (decode_line_spec_1): Update.
4308 * linespec.h (struct linespec_result): New.
4309 (init_linespec_result): Declare.
4311 2011-03-23 Pedro Alves <pedro@codesourcery.com>
4313 * regcache.c (regcache_raw_read): If the target didn't supply a
4314 given raw register, mark it as unavailable.
4316 2011-03-23 Kai Tietz <ktietz@redhat.com>
4318 * breakpoint.c (clear_command): Use filename_cmp
4319 instead of strcmp for comparison.
4320 * buildsym.c (watch_main_source_file_lossage): Likewise.
4321 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
4322 checking just for slash.
4323 * dbxread.c (read_dbx_symtab): Use lbasename instead of
4324 strrchr and filename_cmp instead of strcmp for filenames.
4325 (add_old_header_file): Use filename_cmp
4326 instead of strcmp for comparison.
4327 * exec.c (exec_set_section_address): Likewise.
4328 * macrotab.c (macro_lookup_inclusion): Likewise.
4329 (macro_lookup_inclusion): Likewise.
4330 * elfread.c (_initialize_elfread): Likewise.
4331 (elfstab_offset_sections): Likewise.
4332 (elfstab_offset_sections): Use lbasename instead of
4334 * mdebugread.c (parse_partial_symbols): Likewise.
4335 (arse_partial_symbols): Use filename_(n)cmp instead of
4336 str(n)cmp for comparison.
4337 * minsyms.c (lookup_minimal_symbol): Likewise.
4338 * psymtab.c (read_psymtabs_with_filename): Likewise.
4339 * solib.c (solib_read_symbols): Likewise.
4340 (reload_shared_libraries_1): Likewise.
4341 * symmisc.c (maintenance_print_symbols): Likewise.
4342 * symfile.c (separate_debug_file_exists): Likewise.
4343 (reread_symbols): Likewise.
4344 (find_separate_debug_file_by_debuglink): Likewise.
4345 * remote-fileio.c (remote_fileio_func_rename): Likewise.
4346 * source.c (add_path): Likewise.
4347 * symtab.c (filename_seen): Likewise.
4348 (file_matches): Likewise.
4349 (print_symbol_info): Likewise.
4350 (maybe_add_partial_symtab_filename): Likewise.
4351 (make_source_files_completion_list): Likewise.
4352 * xml-syscall.c (init_sysinfo): Likewise.
4353 * windows-nat.c (_initialize_check_for_gdb_ini): Use
4354 IS_DIR_SEPARATOR for checking for trailing path separator.
4356 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4358 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
4359 label abort_expression.
4360 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
4361 DWARF_VALUE_OPTIMIZED_OUT.
4363 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4366 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
4367 to linkage_name. Invert its value. Update the function comment.
4368 (c_type_print_varspec_suffix): Invert it at the caller.
4369 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
4371 2011-03-22 Pedro Alves <pedro@codesourcery.com>
4373 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
4374 errors when reading the `stop_pc'.
4375 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
4378 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
4380 * NEWS: Document gdb.Write stream keyword.
4382 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4385 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4386 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
4387 (dwarf2_add_field): Fix new_field->accessibility for
4388 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
4390 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
4394 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
4395 other error classes. Do not print stack trace.
4397 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4399 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
4400 (dwarf2_add_field): Fix new_field->accessibility for
4401 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
4403 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
4405 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
4406 encountering a load via a non-SP register.
4408 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
4410 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
4411 field in returned unwinder.
4413 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4415 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
4417 2012-03-21 Joel Brobecker <brobecker@adacore.com>
4419 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
4422 2012-03-18 Pedro Alves <pedro@codesourcery.com>
4424 * frame.c (frame_unwind_register): Throw an error if unwinding the
4426 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
4427 an unwind stop reason.
4428 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
4429 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
4430 UNWIND_UNAVAILABLE>: New.
4431 * inline-frame.c (inline_frame_unwind): Install
4432 default_frame_unwind_stop_reason.
4433 * frame-unwind.c: Include "exceptions.h".
4434 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
4435 (default_frame_unwind_stop_reason): New.
4436 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
4437 (default_frame_unwind_stop_reason): Declare.
4438 (struct frame_unwind) <stop_reason>: New function pointer.
4440 * dummy-frame.c: Install default_frame_unwind_stop_reason.
4441 * dwarf2-frame.c: Include exceptions.h.
4442 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
4443 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
4444 computing the CFA. If such an error was thrown, set
4445 unavailable_retaddr.
4446 (dwarf2_frame_unwind_stop_reason): New.
4447 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
4449 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
4450 (dwarf2_signal_frame_unwind): Ditto.
4452 * amd64-tdep.c: Include "exceptions.h".
4453 (struct amd64_frame_cache): New field "base_p".
4454 (amd64_init_frame_cache): Clear it.
4455 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
4456 Avoid reading registers with functions that throw if the register
4457 is not necessary to compute the frame base.
4458 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
4459 swallowing NOT_AVAILABLE_ERROR.
4460 (amd64_frame_unwind_stop_reason): New.
4461 (amd64_frame_this_id): Don't build a frame id if the frame base
4463 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
4464 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4465 base_p if the frame base was computable.
4466 (amd64_sigtramp_frame_unwind_stop_reason): New.
4467 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
4468 frame base was unavailable.
4469 (amd64_sigtramp_frame_unwind): Install
4470 amd64_sigtramp_frame_unwind_stop_reason.
4471 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4472 base_p if the frame base was computable.
4473 (amd64_epilogue_frame_unwind_stop_reason): New.
4474 (amd64_epilogue_frame_this_id): Don't build a frame id if the
4475 frame base was unavailable.
4476 (amd64_epilogue_frame_unwind): Install
4477 amd64_epilogue_frame_unwind_stop_reason.
4478 * i386-tdep.c: Include "exceptions.h".
4479 (struct i386_frame_cache): New field "base_p".
4480 (i386_init_frame_cache): Clear it.
4481 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
4482 Avoid reading registers with functions that throw if the register
4483 is not necessary to compute the frame base.
4484 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
4485 swallowing NOT_AVAILABLE_ERROR.
4486 (i386_frame_unwind_stop_reason): New.
4487 (i386_frame_this_id): Don't build a frame id if the frame base was
4489 (i386_frame_prev_register): Handle unavailable SP.
4490 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
4491 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4492 base_p if the frame base was computable.
4493 (i386_epilogue_frame_unwind_stop_reason): New.
4494 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
4495 base was unavailable.
4496 (i386_epilogue_frame_unwind): Install
4497 i386_epilogue_frame_unwind_stop_reason.
4498 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4499 base_p if the frame base was computable.
4500 (i386_sigtramp_frame_unwind_stop_reason): New.
4501 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
4502 base was unavailable.
4503 (i386_sigtramp_frame_unwind): Install
4504 i386_sigtramp_frame_unwind_stop_reason.
4505 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
4506 type's size, not the register's.
4507 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
4509 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
4510 default_frame_unwind_stop_reason.
4511 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
4512 (alpha_heuristic_frame_unwind): Ditto.
4513 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
4514 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
4515 * avr-tdep.c (avr_frame_unwind): Ditto.
4516 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
4518 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
4519 * frv-tdep.c (frv_frame_unwind): Ditto.
4520 * h8300-tdep.c (h8300_frame_unwind): Ditto.
4521 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
4522 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
4523 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
4524 (hppa_stub_frame_unwind): Ditto.
4525 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
4526 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
4527 (ia64_libunwind_frame_unwind)
4528 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
4529 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
4530 * lm32-tdep.c (lm32_frame_unwind): Ditto.
4531 * m32c-tdep.c (m32c_unwind): Ditto.
4532 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
4533 * m32r-tdep.c (m32r_frame_unwind): Ditto.
4534 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
4535 * m68k-tdep.c (m68k_frame_unwind): Ditto.
4536 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
4537 * m88k-tdep.c (m88k_frame_unwind): Ditto.
4538 * mep-tdep.c (mep_frame_unwind): Ditto.
4539 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
4540 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
4541 (mips_stub_frame_unwind): Ditto.
4542 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
4543 * moxie-tdep.c (moxie_frame_unwind): Ditto.
4544 * mt-tdep.c (mt_frame_unwind): Ditto.
4545 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
4546 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
4547 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
4548 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
4549 (s390_sigtramp_frame_unwind): Ditto.
4550 * score-tdep.c (score_prologue_unwind): Ditto.
4551 * sh-tdep.c (sh_frame_unwind): Ditto.
4552 * sh64-tdep.c (sh64_frame_unwind): Ditto.
4553 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
4554 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
4555 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
4556 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
4557 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
4558 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
4559 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
4560 (sparc64obsd_trapframe_unwind): Ditto.
4561 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
4562 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
4563 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
4564 * v850-tdep.c (v850_frame_unwind): Ditto.
4565 * vax-tdep.c (vax_frame_unwind): Ditto.
4566 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
4567 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
4568 * xtensa-tdep.c (xtensa_unwind): Ditto.
4570 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4572 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
4573 there's always a frame. Use get_frame_pc_if_available instead of
4574 get_frame_pc, and if there's no PC available, don't look up a
4577 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4579 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
4582 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4584 * tracepoint.c (set_traceframe_context): Handle unavailable PC
4587 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4589 * frame.h (frame_unwind_caller_pc_if_available): Declare.
4590 * frame.c (frame_unwind_caller_pc_if_available): New.
4591 * stack.c (frame_info): Handle unavailable PC.
4593 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4595 * frame.c (frame_unwind_pc): Rename to ...
4596 (frame_unwind_pc_if_available): ... this. New `pc' output
4597 parameter. Change return type to int. Gracefully handle
4598 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
4599 happened, or 1 otherwise.
4600 (frame_unwind_pc): Reimplement on top of
4601 frame_unwind_pc_if_available.
4602 (get_frame_func): Rename to ...
4603 (get_frame_func_if_available): New `pc' output parameter. Change
4604 return type to int. Gracefully handle the PC not being available.
4605 (get_frame_func): Reimplement on top of
4606 get_frame_func_if_available.
4607 (select_frame): Handle the PC being unavailable.
4608 (get_prev_frame): Handle the PC being unavailable.
4609 (get_frame_pc_if_available): New.
4610 (get_frame_address_in_block_if_available): New.
4611 (find_frame_sal): Handle the frame PC not being available.
4612 * frame.h (get_frame_pc_if_available): Declare.
4613 (get_frame_address_in_block_if_available): Declare.
4614 (get_frame_func_if_available): Declare.
4615 * stack.c (print_frame_info): Handle the PC being unavailable.
4616 (find_frame_funname): Ditto.
4617 (print_frame): Handle the PC being unavailable.
4618 (get_frame_language): Ditto.
4619 * blockframe.c (get_frame_block): Ditto.
4620 * macroscope.c (default_macro_scope): Ditto.
4621 * tui/tui-stack.c (tui_show_frame_info): Ditto.
4623 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4625 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
4626 NOT_AVAILABLE_ERROR when evaluating the location expression.
4628 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4630 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
4631 returning that the register piece is unavailable/optimized out.
4632 (write_pieced_value): Handle get_frame_register_bytes returning
4633 that the register piece is unavailable/optimized out when doing a
4634 read-modify write of a bitfield.
4635 * findvar.c (value_from_register): Handle get_frame_register_bytes
4636 returning that the register piece is unavailable/optimized out.
4637 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
4638 and `unavailablep'. Throw error on bad debug info. Use
4639 frame_register instead of frame_register_read, to fill in the new
4641 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
4643 * valops.c: (value_assign): Adjust, and handle
4644 get_frame_register_bytes failing.
4645 * spu-tdep.c: Include exceptions.h.
4646 (spu_software_single_step): Adjust, and handle
4647 get_frame_register_bytes failing.
4648 (spu_get_longjmp_target): Ditto.
4649 * gdbarch.sh (register_to_value): Change to return int. New
4650 parameters `optimizedp' and `unavailablep'.
4651 * gdbarch.h, gdbarch.c: Regenerate.
4652 * i386-tdep.c (i386_register_to_value): Adjust to new
4653 gdbarch_register_to_value interface.
4654 * i387-tdep.c (i387_register_to_value): Ditto.
4655 * i387-tdep.h (i387_register_to_value): Ditto.
4656 * alpha-tdep.c (alpha_register_to_value): Ditto.
4657 * ia64-tdep.c (ia64_register_to_value): Ditto.
4658 * m68k-tdep.c (m68k_register_to_value): Ditto.
4659 * mips-tdep.c (mips_register_to_value): Ditto.
4660 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
4662 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4664 * findvar.c (value_of_register): Mark the value as unavailable, if
4665 the register is unavailable.
4666 * frame.h (frame_register_unwind): New `unavailablep' parameter.
4667 (frame_register): New `unavailablep' parameter.
4668 (frame_register_read): Update comment.
4669 * frame.c (frame_register_unwind): New `unavailablep' parameter.
4670 Set it if the register is unavailable. If the register is
4671 unavailable, clear the output buffer.
4672 (frame_register): New `unavailablep' parameter. Pass it down.
4673 (frame_unwind_register): Adjust.
4674 (put_frame_register): Adjust.
4675 (frame_register_read): Adjust. Also return false if the register
4677 (frame_register_unwind_location): Adjust.
4678 * sentinel-frame.c (sentinel_frame_prev_register): If the register
4679 is unavailable, mark the value accordingly.
4680 * stack.c (frame_info): Handle unavailable registers.
4682 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4684 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
4685 simplify, using regcache_cooked_read.
4687 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4689 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
4690 (regcache_raw_read_unsigned, regcache_raw_read_signed)
4691 (regcache_raw_read_unsigned, regcache_raw_read_part)
4692 (regcache_cooked_read, regcache_cooked_read_signed)
4693 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
4694 (regcache_cooked_read_ftype): Change return to enum
4696 * regcache.c: Include exceptions.h
4697 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
4698 (do_cooked_read): Change return to enum register_status. Always
4699 forward to regcache_cooked_read.
4700 (regcache_raw_read): Change return to enum register_status. If
4701 the register is not REG_VALID, memset the buffer. Return the
4703 (regcache_raw_read_signed): Handle non-REG_VALID registers and
4704 return the register's status.
4705 (regcache_raw_read_unsigned): Ditto.
4706 (regcache_cooked_read): Change return to enum register_status.
4707 Assert that with read-only regcaches, the register's status must
4708 be known. If the regcache is read-only, and the register is not
4709 REG_VALID, memset the buffer. Return the register's status.
4710 (regcache_cooked_read_signed): Change return to enum
4711 register_status. Handle non-REG_VALID registers and return the
4713 (regcache_cooked_read_unsigned): Change return to enum
4714 register_status. Handle non-REG_VALID registers and return the
4716 (regcache_xfer_part, regcache_raw_read_part)
4717 (regcache_cooked_read_part): Change return to enum
4718 register_status. Return the register's status.
4719 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
4721 (regcache_dump): Handle unavailable cooked registers.
4722 * frame.c (do_frame_register_read): Adjust interface to match
4723 regcache_cooked_read_ftype.
4724 * gdbarch.sh (pseudo_register_read): Change return to enum
4726 * gdbarch.h, gdbarch.c: Regenerate.
4728 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
4730 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
4731 register_status. If reading a raw register indicates the raw
4732 register is not valid, return the raw register's status,
4733 otherwise, return REG_VALID.
4734 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
4735 register_status. Handle non-REG_VALID raw registers and return
4736 the register's status.
4737 * arm-tdep.c (arm_neon_quad_read)
4738 (arm_pseudo_read): Change return to enum register_status. Handle
4739 non-REG_VALID raw registers and return the register's status.
4740 * avr-tdep.c (avr_pseudo_register_read): Ditto.
4741 * frv-tdep.c (frv_pseudo_register_read): Ditto.
4742 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
4743 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
4744 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
4746 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
4747 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
4748 (m32c_part_write, m32c_cat_read, m32c_cat_write)
4749 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
4750 (m32c_pseudo_register_read): Change return to enum
4751 register_status. Adjust.
4752 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
4753 enum register_status. Return the register's status.
4754 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
4755 register_status. Return the register's status.
4756 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
4757 * mips-tdep.c (mips_pseudo_register_read): Ditto.
4758 * mt-tdep.c (mt_pseudo_register_read): Ditto.
4759 * rs6000-tdep.c (move_ev_register_func): New typedef.
4760 (e500_move_ev_register): Use it. Change return to enum
4761 register_status. Return the register's status.
4762 (do_regcache_raw_read): New function.
4763 (do_regcache_raw_write): New function.
4764 (e500_pseudo_register_read): Change return to enum
4765 register_status. Return the register's status. Use
4766 do_regcache_raw_read.
4767 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
4768 (dfp_pseudo_register_read): Change return to enum register_status.
4769 Return the register's status.
4770 (vsx_pseudo_register_read): Ditto.
4771 (efpr_pseudo_register_read): Ditto.
4772 (rs6000_pseudo_register_read): Ditto.
4773 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
4774 register_status. Return the register's status.
4775 * sh64-tdep.c (pseudo_register_read_portions): New function.
4776 (sh64_pseudo_register_read): Change return to enum
4777 register_status. Use pseudo_register_read_portions. Return the
4779 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
4780 register_status. Return the register's status.
4781 * sh-tdep.c (pseudo_register_read_portions): New function.
4782 (sh_pseudo_register_read): Change return to enum register_status.
4783 Use pseudo_register_read_portions. Return the register's status.
4784 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
4785 enum register_status. Return the register's status.
4786 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
4787 * spu-tdep.c (spu_pseudo_register_read_spu)
4788 (spu_pseudo_register_read): Ditto.
4789 * xtensa-tdep.c (xtensa_register_read_masked)
4790 (xtensa_pseudo_register_read): Ditto.
4791 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
4793 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4795 * python/py-value.c (valpy_getitem): Fix formatting of error function
4798 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4800 ARI fixes: Add missing internationalization markups throughout
4802 * darwin-nat-info.c: Ditto.
4805 * mi/mi-main.c: Ditto.
4807 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4809 ARI fixes: Add missing internationalization markups throughout
4812 * cp-name-parser.y: Ditto.
4815 * objc-exp.y: Ditto.
4818 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4820 ARI fixes: Messages should have no trailing new lines.
4821 * darwin-nat.c (mach_check_error): Remove trailing new line from
4822 warning function call message.
4823 * record.c (bfdcore_read): Idem for error call.
4825 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4827 * common/signals.c (target_signal_from_host): Add _ markup to error
4828 function call message.
4829 (target_signal_to_host): Add _ markup and remove trailing new line
4830 from warning call message.
4831 (target_signal_from_command): Add _ markup to error function call
4834 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
4838 * python/python.c (gdbpy_write): Accept a stream argument and
4839 operate to the appropriate stream.
4840 (gdbpy_flush): Likewise.
4841 (_initialize_python): Add stream constants.
4842 (finish_python_initialization): Add GdbOutputErrorFile class.
4844 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
4846 * MAINTAINERS: Add myself as a write-after-approval maintainer.
4848 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
4850 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
4851 to store_signed_integer. Add debug message when relocating CALL
4852 instructions. Fix formatting of debug message.
4853 * i386-tdep.c (i386_relocate_instruction): Ditto.
4855 2011-03-17 Joel Brobecker <brobecker@gnat.com>
4857 * target.h (struct target_ops): Remove to_lookup_symbol field.
4858 (target_lookup_symbol): Delete macro.
4859 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
4860 (update_current_target, setup_target_debug): Remove handling
4861 of to_lookup_symbol target_ops field.
4862 * ada-tasks.c (get_known_tasks_addr): Remove use of
4863 target_lookup_symbol.
4864 * coffread.c (coff_symtab_read): Likewise.
4865 * dbxread.c (read_dbx_symtab): Ditto.
4867 2011-03-17 Joel Brobecker <brobecker@gnat.com>
4870 * configure.ac: Add getthrds declaration check.
4871 * configure, config.in: Regenerate.
4872 * aix-thread.c (getthrds): Declare only if not already declared
4873 in procinfo.h. More declaration out of get_signaled_thread to
4876 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
4878 * python/py-symtab.c: Populate symtab_object_methods,
4880 (stpy_is_valid): New function.
4881 (salpy_is_valid): Ditto.
4882 * python/py-symbol.c: Declare symbol_object_methods. Populate.
4883 (sympy_is_valid): New function.
4884 * python/py-objfile.c: Declare objfile_object_methods. Populate.
4885 (objfpy_is_valid): New function.
4886 * python/py-inferior.c: Populate inferior_object_methods.
4887 (infpy_is_valid): New function.
4888 * python/py-infthread.c: Populate thread_object_methods.
4889 (thpy_is_valid): New function.
4890 * python/py-block.c: Declare block_object_methods. Populate. Declare
4891 block_iterator_object_methods. Populate.
4892 (blpy_is_valid): New function.
4893 (blpy_iter_is_valid): Ditto.
4895 2011-03-16 Keith Seitz <keiths@redhat.com>
4897 * linespec.c (find_methods): Canonicalize NAME before looking
4899 (name_end): New function.
4900 (keep_name_info): New function.
4901 (decode_line_1): Use keep_name_info.
4902 (decode_compound): Likewise.
4903 * cli/cli-utils.h (remove_trailing_whitespace): New function.
4904 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
4907 * linespec.c (locate_first_half): Keep overload information, too.
4908 (decode_compound): Use a string to represent break characters
4910 If P points to a break character, do not increment it.
4911 For C++ and Java, keep overload information and relevant keywords.
4912 If we cannot find a symbol, search the minimal symbols.
4915 * linespec.c (decode_compound): Rename SAVED_ARG to
4917 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
4919 Pass a valid block to lookup_symbol.
4920 (lookup_prefix_sym): Likewise.
4921 (find_method): Construct search name based on SYM_CLASS instead
4923 * psymtab.c (lookup_partial_symbol): Add language parameter.
4924 (lookup_symbol_aux_psymtabs): Likewise.
4925 Don't assume that the psymtab we found was the right one. Search
4926 for the desired symbol in the symtab to be certain.
4927 (psymtab_search_name): New function.
4928 (lookup_partial_symbol): Use psymtab_search_name.
4929 Add language parameter.
4930 (read_symtabs_for_function): Add language parameter and pass to
4931 lookup_partial_symbol.
4932 (find_symbol_file_from_partial): Likewise.
4934 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
4937 * dwarf2read.c (noop_record_line): New function.
4938 (dwarf_decode_lines): Ignore line tables for GCd functions.
4940 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
4942 Fix ARI warnings about new lines at the end of messages, which
4943 are unneeded as there is a new line added at the end of the message
4945 * darwin-nat.c (darwin_stop_inferior): Ditto.
4946 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
4947 * dfp.c (decimal_to_number): Ditto.
4948 * exec.c (print_section_info): Ditto.
4949 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
4950 * osdata.c (get_osdata): Ditto.
4951 * record.c (bfdcore_write): Ditto.
4952 * remote-mips.c (mips_readchar): Ditto.
4953 * remote.c (read_ptid): Ditto.
4954 * ser-mingw.c (ser_windows_raw): Ditto.
4955 * tracepoint.c (add_local_symbols): Ditto.
4956 * windows-nat.c (fake_create_process): Ditto.
4958 2011-03-16 Tom Tromey <tromey@redhat.com>
4960 * tracepoint.c (stop_tracing): Don't declare.
4961 * event-top.c (after_char_processing_hook): Add `(void)'.
4963 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
4965 * NEWS: Add Parameter sub-classing description.
4967 2011-03-16 Kai Tietz <ktietz@redhat.com>
4969 * MAINTAINERS: Update my e-mail address.
4971 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
4973 * MAINTAINERS: Add myself for write after approval privileges.
4975 2011-03-15 Michael Snyder <msnyder@vmware.com>
4977 * frame.c (find_frame_sal): Assert sym is not null.
4979 * dbxread.c (process_one_symbol): Assert 'name' is not null.
4981 * objc-lang.c (selectors_info): Check strchr for null result.
4983 * stabsread.c (define_symbol): Guard against bad stabstring input.
4985 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
4987 Remove trailing spaces and tabulations from pascal language
4992 p-valprint.c: Ditto.
4994 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4996 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
4997 than LOW. Comment it.
4998 (read_partial_die): Call complaint for inappropriate zero LOWPC or
4999 HIGHPC not strictly higher than LOWPC.
5001 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5003 Fix formatting of function declarations returning a pointer in
5005 * varobj.c (varobj_add_child): Ditto.
5006 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
5007 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
5009 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5011 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
5012 for the "generic" vector ABI used with GCC 4.3 and later.
5013 (ppc64_sysv_abi_return_value): Likewise.
5015 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5017 * infcall.c (call_function_by_hand): Function return value is
5018 always a non_lval, even when using struct_return.
5020 2011-03-15 Pedro Alves <pedro@codesourcery.com>
5022 * printcmd.c (ALL_DISPLAYS_SAFE): New.
5023 (map_display_numbers): New.
5024 (do_delete_display): New.
5025 (undisplay_command): Use map_display_numbers.
5026 (do_enable_disable_display): New.
5027 (enable_disable_display_command): New function.
5028 (enable_display): Delete.
5029 (enable_display_command): New.
5030 (disable_display_command): Reimplement.
5031 (_initialize_printcmd): Adjust "enable display" command to use
5032 `enable_display_command' as callback.
5034 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5036 * NEWS: Add Python breakpoint 'stop' operation.
5038 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5040 * NEWS: Delete duplicate entry. Fix typo.
5042 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5044 Fix ARI warning about function names in first column.
5045 Put prototype declaration on same line as return type.
5046 * objc-exp.y: Ditto.
5048 * python/py-stopevent.h: Ditto.
5049 For long function names, split parameters to
5050 allow function name on same line as return type.
5051 * solib-pa64.c: Ditto.
5054 For long function declaration, use single line.
5055 * hppa-tdep.h: Ditto.
5056 * inferior.h: Ditto.
5058 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5060 * python/python.h: Declare gdbpy_should_stop and
5061 gdbpy_breakpoint_has_py_cond.
5062 * python/python.c: Add python.h to includes. Remove python.h from
5063 HAVE_PYTHON definition
5064 (gdbpy_should_stop): New dummy function.
5065 (gdbpy_breakpoint_has_py_cond): New dummy function.
5066 * python/py-breakpoint.c (bppy_init): Rewrite to allow
5067 sub-classing capabilities.
5068 (gdbpy_should_stop): New function.
5069 (gdbpy_breakpoint_has_py_cond): New function.
5070 (local_setattro): New function.
5071 * breakpoint.c (condition_command): Add check for Python 'stop'
5073 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
5074 operation function as part of stop/continue tests.
5076 2011-03-14 Tom Tromey <tromey@redhat.com>
5079 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
5080 (needs_frame_dwarf_call): Likewise.
5082 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5084 Fix ARI warning about functions without parameters that do not
5086 * breakpoint.c (all_tracepoints): Replace () by (void).
5087 * f-exp.y (match_string_literal): Ditto.
5089 * m2-exp.y (yylex): Ditto.
5090 * mep-tdep.c (current_me_module): Ditto.
5091 (current_options): Ditto.
5092 (current_cop_data_bus_width): Ditto.
5093 (current_cr_names): Ditto.
5094 (current_cr_is_float): Ditto.
5095 (current_ccr_names): Ditto.
5096 * objc-exp.y (yylex): Ditto.
5097 * p-exp.y (yylex): Ditto.
5098 * remote.c (send_interrupt_sequence): Ditto.
5099 * tracepoint.c (current_trace_status): Ditto.
5100 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
5101 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
5103 2011-03-11 Michael Snyder <msnyder@vmware.com>
5105 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
5106 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
5107 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
5108 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
5109 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
5111 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
5112 (delete_async_event_handler): Ditto.
5114 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
5116 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
5118 * top.c (set_verbose): Assert showcmd was found.
5120 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
5122 * xtensa-tdep.c (warning_once): Correct style issues.
5124 2011-03-11 Yao Qi <yao@codesourcery.com>
5126 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
5128 2011-03-11 Andreas Schwab <schwab@redhat.com>
5130 * common/aclocal.m4: Remove.
5132 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5134 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
5135 (xtensa_write_register, xtensa_read_register): Likewise.
5136 (xtensa_hextochar): Removed.
5137 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
5139 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5141 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
5142 (xtensa_call0_frame_cache_t): Update comments. New fields added.
5143 (xtensa_alloc_frame_cache): Add initialization for new fields.
5144 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
5145 (warning_once): New function.
5146 (xtensa_insn_kind): New item c0opc_and.
5147 (call0_classify_opcode): Add the case for AND instruction.
5148 (call0_track_op): Change arguments. New local variable litbase.
5149 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
5150 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
5152 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
5153 (call0_analyze_prologue): Update the comments. Change arguments.
5154 Add the variety of updates to handle extended prologues, which now can
5155 conduct dynamic stack adjustments.
5156 (call0_frame_cache): Likewise.
5157 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
5158 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
5160 2011-03-10 Michael Snyder <msnyder@vmware.com>
5162 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
5163 (cmd_qtframe): Ditto.
5164 (cmd_qtbuffer): Ditto.
5165 (cmd_bigqtbuffer): Ditto.
5167 2011-03-10 Tom Tromey <tromey@redhat.com>
5169 * tracepoint.c (trace_actions_command): Update.
5170 * thread.c (thread_apply_command): Update.
5171 * reverse.c (delete_bookmark_command): Update.
5172 (bookmarks_info): Update.
5173 * printcmd.c (undisplay_command): Update.
5174 * memattr.c (mem_enable_command): Update.
5175 (mem_disable_command): Update.
5176 (mem_delete_command): Update.
5177 * inferior.c (detach_inferior_command): Update.
5178 (kill_inferior_command): Update.
5179 (remove_inferior_command): Update.
5180 * cli/cli-utils.h (struct get_number_or_range_state): New.
5181 (init_number_or_range): Declare.
5182 (get_number_or_range): Update.
5183 * cli/cli-utils.c (init_number_or_range): New function.
5184 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
5186 (number_is_in_list): Update.
5187 * breakpoint.h (get_tracepoint_by_number): Update.
5188 * breakpoint.c (map_breakpoint_numbers): Update for change to
5189 get_number_or_range.
5190 (find_location_by_number): Use get_number, not
5191 get_number_or_range.
5192 (trace_pass_set_count): New function.
5193 (trace_pass_command): Update for change to get_number_or_range.
5195 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
5198 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
5200 * python/py-param.c (add_setshow_generic): Add set/show callback
5201 parameters. Register Python object context.
5202 (get_show_value): New function.
5203 (get_set_value): New function.
5204 (call_doc_function): New function.
5205 (get_doc_string): Move behind get_show_value/get_set_value.
5207 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
5209 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
5211 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
5213 * xtensa-tdep.c (xtensa_read_register): Add comment.
5214 (xtensa_write_register): Likewise.
5215 (xtensa_hextochar): Add comment and update to match coding conventions.
5216 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
5217 (execute_l32e, execute_s32e, execute_code): Update comments.
5218 (xtensa_exception_handler_t): Update to match coding conventions.
5219 (xtensa_insn_kind): Likewise.
5221 2011-03-09 Michael Snyder <msnyder@vmware.com>
5223 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
5225 2011-03-09 Pedro Alves <pedro@codesourcery.com>
5227 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
5229 2011-03-09 Tom Tromey <tromey@redhat.com>
5231 * thread.c (restore_selected_frame): Handle frame_level == -1.
5232 (make_cleanup_restore_current_thread): Use
5233 get_selected_frame_if_set.
5234 * frame.h (get_selected_frame_if_set): Declare.
5235 * frame.c (get_selected_frame_if_set): New function.
5237 2011-03-09 Pedro Alves <pedro@codesourcery.com>
5239 * cli/cli-cmds.c (shell_escape): Use lbasename.
5240 * coffread.c (coff_start_symtab): Constify parameter.
5241 (complete_symtab): Constify `name' parameter.
5242 (coff_symtab_read): Constify `filestring' local.
5243 (coff_getfilename): Constify return and `result' local.
5245 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
5246 * linux-fork.c (info_checkpoints_command): Use lbasename.
5247 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
5248 * minsyms.c (lookup_minimal_symbol): Use lbasename.
5249 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
5250 * procfs.c (procfs_make_note_section): Use lbasename.
5251 * tui/tui-io.c (printable_part): Constity return and parameter.
5253 (print_filename): Constify parameters, and local `s'.
5254 (tui_rl_display_match_list): Constify local `temp'.
5256 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5259 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5260 Fix DWARF-3+ DW_AT_accessibility default assumption.
5261 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
5262 cu->header.version >= 3.
5264 2011-03-09 Yao Qi <yao@codesourcery.com>
5266 * common/Makefile.in: Remove.
5267 * common/configure: Remove.
5268 * common/configure.ac: Remove.
5270 2011-03-09 Yao Qi <yao@codesourcery.com>
5273 2011-02-11 Yao Qi <yao@codesourcery.com>
5275 * common/Makefile.in: Add copyright header.
5277 2011-02-11 Yao Qi <yao@codesourcery.com>
5279 * Makefile.in: Remove signals.o from COMMON_OBS. Link
5281 * configure.ac: Add common to sub dir.
5282 * configure: Regenerate.
5284 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5286 * xtensa-tdep.c (call0_ret): New function.
5287 (xtensa_skip_prologue): Speed up analysis.
5289 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5291 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
5292 while executing MI command -data-list-changed-registers.
5294 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5296 * xtensa-tdep.c (xtensa_read_register): New function.
5297 (xtensa_write_register): New function.
5298 (xtensa_find_register_by_name): New function.
5299 (xtensa_windowed_frame_cache): Update comments in type description.
5300 (xtensa_frame_cache): Likewise.
5301 (xtensa_window_interrupt_insn): New function.
5302 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
5303 (xtensa_insn_kind): Add new instructions.
5304 (rwx_special_register): New function.
5305 (call0_classify_opcode): Add new instructions to the analysis.
5306 (a0_saved, a7_saved, a11_saved): New variables.
5307 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
5308 (execute_l32e): New function.
5309 (execute_s32e): New function.
5310 (xtensa_exception_handler_t): New type.
5311 (execute_code): New function.
5312 (xtensa_window_interrupt_frame_cache): New function to conduct frame
5313 analysis for Xtensa Window Exception handlers.
5315 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5317 * xtensa-tdep.c (TX_PS): New.
5318 (windowing_enabled): Update to count for Call0 ABI.
5319 (xtensa_hextochar): New.
5320 (xtensa_init_reggroups): Make algorithm generic.
5321 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
5323 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5325 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
5327 2011-03-08 Michael Snyder <msnyder@vmware.com>
5329 * i386-tdep.c (i386_follow_jump): Check return value of
5331 (i386_analyze_struct_return): Ditto.
5332 (i386_skip_probe): Ditto.
5333 (i386_match_insn): Ditto.
5334 (i386_skip_noop): Ditto.
5335 (i386_analyze_frame_setup): Ditto.
5336 (i386_analyze_register_saves): Ditto.
5337 (i386_skip_prologue): Ditto.
5338 (i386_skip_main_prologue): Ditto.
5340 * target.c (read_whatever_is_readable): Fix memory leak.
5342 * i386-tdep.c (i386_process_record): Document fall through.
5344 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5346 Fix DWARF-3+ DW_AT_accessibility default assumption.
5347 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
5348 cu->header.version >= 3.
5350 2011-03-08 Pedro Alves <pedro@codesourcery.com>
5352 * remote.c (remote_check_symbols): Skip if the target has no
5355 2011-03-08 Joel Brobecker <brobecker@adacore.com>
5357 * target.c (read_whatever_is_readable): Reformat comment,
5358 with a minor typo fix. Minor reformatting of the code.
5360 2011-03-08 Yao Qi <yao@codesourcery.com>
5362 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
5363 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
5364 Use cached result instead of calling displaced_in_arm_mode again.
5365 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
5366 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
5367 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
5368 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
5369 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
5370 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
5371 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
5372 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
5373 (cleanup_block_load_pc, copy_block_xfer): Likewise.
5374 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
5375 (arm_catch_kernel_helper_return): Likewise.
5376 * gdb/arm-tdep.h : Update function declarations.
5378 2011-03-07 Michael Snyder <msnyder@vmware.com>
5380 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
5382 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
5384 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
5386 * elfread.c (elf_symtab_read): Stop memory leak.
5388 * main.c (captured_main): Fix memory leak.
5390 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
5392 * ada-lang.c (compare_names): Call is_name_suffix with string1
5395 2011-03-07 Tom Tromey <tromey@redhat.com>
5397 * xcoffread.c (xcoff_sym_fns): Update.
5398 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
5399 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
5400 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
5401 (symbol_file_add_with_addrs_or_offsets): Likewise.
5402 (reread_symbols): Handle OBJF_PSYMTABS_READ.
5403 * somread.c (som_sym_fns): Update.
5404 * psymtab.h (require_partial_symbols): Declare.
5405 * psymtab.c (require_partial_symbols): New function.
5406 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
5407 (ALL_OBJFILE_PSYMTABS): Undef.
5408 (ALL_PSYMTABS): Move from psympriv.h.
5409 (lookup_partial_symtab, find_pc_sect_psymtab)
5410 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
5411 (find_last_source_symtab_from_partial)
5412 (forget_cached_source_info_partial)
5413 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
5414 (expand_partial_symbol_tables, read_psymtabs_with_filename)
5415 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
5416 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
5417 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
5418 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
5419 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
5420 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
5421 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
5423 * mipsread.c (ecoff_sym_fns): Update.
5424 * machoread.c (macho_sym_fns): Update.
5425 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
5426 (read_psyms): New function.
5427 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
5428 (elf_sym_fns_lazy_psyms): New global.
5429 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
5430 dwarf2_build_psymtabs.
5431 * dbxread.c (aout_sym_fns): Update.
5432 * coffread.c (coff_sym_fns): Update.
5434 2011-03-07 Tom Tromey <tromey@redhat.com>
5436 * infrun.c (print_exited_reason): Include inferior id and pid in
5439 2011-03-07 Tom Tromey <tromey@redhat.com>
5441 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
5443 (target_has_execution_1): Update.
5444 (target_has_execution_current): Declare.
5445 (target_has_execution): Call target_has_execution_current.
5446 (default_child_has_execution): Update.
5447 * target.c (default_child_has_execution): Add 'the_ptid'
5449 (target_has_execution_1): Likewise.
5450 (target_has_execution_current): New function.
5451 (add_target): Update.
5452 (init_dummy_target): Update.
5453 * remote-m32r-sdi.c (m32r_has_execution): New function.
5454 (init_m32r_ops): Use it.
5455 * record.c (record_core_has_execution): Now static. Add
5456 'the_ptid' parameter.
5457 * inferior.c (have_live_inferiors): Don't save current thread.
5458 Use target_has_execution_1.
5460 2011-03-07 Yao Qi <yao@codesourcery.com>
5462 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
5464 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5466 * elfread.c (elf_symtab_read): Minor reformatting.
5468 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5470 * objc-lang.c (selectors_info): Minor reformatting.
5472 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5474 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
5476 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5477 Michael Snyder <msnyder@vmware.com>
5479 * ada-valprint.c (ada_val_print_array): Move the declaration of
5480 "byte_order" and "elttype" inside the block where these variables
5481 are actually used. Remove some special handling for the case
5482 where "elttype" and "eltlen" are null. Replace by a comment
5483 and a couple of assertion checks.
5485 2011-03-05 Michael Snyder <msnyder@vmware.com>
5487 * source.c (add_path): Replace semicolon at end of block.
5488 * dwarf2expr.c (execute_stack_op): Ditto.
5490 2011-03-05 Mike Frysinger <vapier@gentoo.org>
5492 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
5493 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
5494 (bfin-*-*): Likewise.
5496 2011-03-05 Michael Snyder <msnyder@vmware.com>
5498 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
5499 * mdebugread.c (parse_symbol): Ditto.
5500 * parse.c (parse_exp_in_context): Ditto.
5501 * source.c (add_path): Ditto.
5502 * utils.c (gnu_debuglink_crc32): Ditto.
5503 * varobj.c (variable_language): Ditto.
5505 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
5507 2011-03-04 Michael Snyder <msnyder@vmware.com>
5509 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
5511 * symfile.c (simple_overlay_update): Check for null return value
5512 from lookup_minimal_symbol.
5514 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
5516 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5518 * eval.c (parse_and_eval_address_1): Remove function.
5519 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
5520 instead of parse_and_eval_address_1.
5521 * value.h (parse_and_eval_address_1): Remove prototype.
5523 2011-03-04 Michael Snyder <msnyder@vmware.com>
5525 * remote.c (putpkt_binary): Document that case stmt falls through.
5527 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5529 * breakpointc (print_it_typical): Move NULL check from here...
5530 (print_bp_stop_message): ... to here.
5532 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
5534 * breakpoint.c (enable_command): Use break instead of continue,
5535 and fill in a missing break.
5536 (disable_command): Ditto.
5538 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
5540 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
5541 (terminal_save_ours): Remove misleading comment.
5542 (inflow_inferior_data_cleanup): Free ttystate.
5543 (inflow_inferior_exit): Likewise.
5544 (copy_terminal_info): Copy ttystate.
5546 * serial.c (serial_copy_tty_state): New function.
5547 * serial.h (serial_copy_tty_state): Add prototype.
5548 (struct serial_ops): Add copy_tty_state callback.
5549 * ser-base.c (ser_base_copy_tty_state): New function.
5550 * ser-base.h (ser_base_copy_tty_state): Add prototype.
5551 * ser-go32.c (dos_copy_tty_state): New function.
5552 (dos_ops): Install copy_tty_state callback.
5553 * ser-mingw.c (_initialize_ser_windows): Likewise.
5554 * ser-pipe.c (_initialize_ser_pipe): Likewise.
5555 * ser-unix.c (hardwire_copy_tty_state): New function.
5556 (_initialize_ser_hardwire): Install it.
5558 2011-03-04 Michael Snyder <msnyder@vmware.com>
5560 * breakpoint.c (create_breakpoint): Add missing break statement.
5562 Reverting this patch:
5563 * infcall.c (call_function_by_hand): Add break statements for lint.
5565 Reverting this patch:
5566 * cli/cli-script.c (script_from_file): Add break for lint.
5568 2011-03-04 Michael Snyder <msnyder@vmware.com>
5570 * solib.c (reload_shared_libraries_1): Close memory leak.
5572 2011-03-03 Tom Tromey <tromey@redhat.com>
5575 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
5578 2011-03-03 Michael Snyder <msnyder@vmware.com>
5580 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
5581 fields of struct 'st' to zero.
5583 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
5584 sal.pspace before calling set_current_source_symtab_and_line.
5586 2011-03-03 Yao Qi <yao@codesourcery.com>
5588 * Makefile.in (configure-common): Remove. Let Makefile
5589 in dir common to rebuild itself.
5590 (common/Makefile): Likewise.
5592 2011-03-03 Joel Brobecker <brobecker@adacore.com>
5594 * utils.c (parse_escape): Add i18n markup in error message.
5596 2011-03-03 Yao Qi <yao@codesourcery.com>
5598 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
5600 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
5601 (displaced_write_reg, displaced_read_reg): Likewise.
5602 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
5603 (cleanup_block_load_pc, copy_block_xfer): Likewise.
5604 (cleanup_branch): Replace magic number 14 and 15 with
5605 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
5607 2011-03-02 Michael Snyder <msnyder@vmware.com>
5609 * maint.c (maintenance_do_deprecate): No need to check for NULL.
5611 * cli/cli-script.c (script_from_file): Add break for lint.
5613 * mdebugread.c (parse_partial_symbols): Fix indent.
5615 * target-descriptions.c (tdesc_gdb_type): No need to call
5616 xstrdup, callee saves a copy.
5618 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
5620 * infcall.c (call_function_by_hand): Add break statements for lint.
5622 * utils.c (parse_escape): Escape the escape char.
5624 * python/py-inferior.c (build_inferior_list): Error out if
5625 PyList_Append fails.
5626 (gdbpy_inferiors): Error out if build_inferior_list fails.
5628 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
5631 * record.c (record_restore): Move printf to before error return.
5633 2011-03-02 Yao Qi <yao@codesourcery.com>
5635 * arm-tdep.h (struct displaced_step_closure): Add two new fields
5636 is_thumb and insn_size.
5637 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
5638 on both ARM and Thumb mode.
5639 (arm_process_displaced_insn): Set is_thumb and insn_size.
5640 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
5641 (arm_displaced_step_fixup): Likewise.
5643 2011-03-01 Michael Snyder <msnyder@vmware.com>
5645 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
5647 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
5649 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
5651 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
5653 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
5656 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
5657 which shadows function parameter.
5659 * tracepoint.c (create_tsv_from_upload): Superfluous call
5660 to xstrdup. Callee already calls xstrdup.
5662 * linespec.c (decode_line_1): Remove unnecessary null check.
5664 * tracepoint.c (scope_info): Fix mem leak, remove underused
5667 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
5668 superfluous null check.
5670 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
5671 (value_of_builtin_frame_fp_reg): Ditto.
5673 * event-top.c (display_gdb_prompt): Remove superfluous null check.
5675 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
5678 * linespec.c (decode_line_1): Check for null before dereference.
5680 * reverse.c (record_restore): Move null-check to before pointer
5683 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
5685 * objc-lang.c (selectors_info): Add explanitory comment.
5686 (classes_info): Ditto.
5688 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
5690 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
5691 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
5692 versions of the trampoline. Handle Thumb vs. ARM addresses.
5693 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
5694 (arm_linux_init_abi): Install it.
5695 * arm-tdep.c (arm_psr_thumb_bit): Make global.
5696 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
5698 2011-02-28 Michael Snyder <msnyder@vmware.com>
5700 * ui-out.c (ui_out_field_core_addr): Make local char buffer
5701 a little bigger, to avoid possibility of an overflow.
5703 * breakpoint.c (breakpoint_adjustment_warning): Make local char
5704 buffers a little bigger, to avoid possibility of an overflow.
5706 * coffread.c (coff_getfilename): Add check to avoid overflow.
5708 * objc-lang.c (selectors_info): Add a small safety margin to
5710 (classes_info): Error out on too long REGEXP.
5712 * infrun.c (handle_inferior_event): Remove unused function call.
5714 * fork-child.c (fork_inferior): Remove ifdef'd code and
5717 * linux-thread-db.c (attach_thread): Discard unused value.
5719 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
5721 * remote.c (remote_get_noisy_reply): Discard unused value.
5722 (remote_vcont_resume): Ditto.
5723 (remote_stop_ns): Ditto.
5725 * linespec.c (decode_objc): Delete unused variable.
5727 * tui/tui-regs.c (tui_register_format): Delete unused variable.
5729 * dwarf2read.c (add_partial_symbol): Discard unused values.
5730 (read_base_type): Delete unused variable.
5732 * dbxread.c (read_dbx_symtab): Discard unused value.
5734 * eval.c (evaluate_subexp_standard): Delete unused variable,
5735 and discard unused values.
5737 * infcmd.c (_initialize_infcmd): Discard unused values.
5739 * stabsread.c (rs6000_builtin_type): Missing break statement.
5741 * dbxread.c (process_one_symbol): Discard unused value.
5743 * coffread.c (coff_end_symtab): Delete unused variable.
5745 * dwarf2read.c (dw2_get_file_names): Discard unused value.
5746 (dwarf2_add_typedef): Delete unused variable.
5747 (read_namespace): Ditto.
5748 (dwarf_decode_macros): Ditto.
5750 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
5752 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
5754 * p-valprint.c (pascal_val_print): Discard unused value.
5756 * utils.c (nquery): Call va_end before return;
5760 * proc-service.c (ps_plog): Call va_end before return.
5762 2011-02-28 Tom Tromey <tromey@redhat.com>
5764 * python/python.c (gdbpy_value_cst): New global.
5765 (_initialize_python): Initialize it.
5766 * python/python-internal.h (gdbpy_value_cst): Declare.
5767 * python/py-value.c (convert_value_from_python): Use
5770 2011-02-28 Michael Snyder <msnyder@vmware.com>
5772 * python/py-cmd.c (cmdpy_init): Fix memory leak.
5774 * breakpoint.c (catch_syscall_completer): Free malloced list.
5776 * jv-lang.c (java_primitive_type_from_name): Add missing break.
5778 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
5779 (lval_func_check_synthetic_pointer): Ditto.
5780 (lval_func_free_closure): Fix use-after-free.
5782 2011-02-28 Tom Tromey <tromey@redhat.com>
5784 * psymtab.c (expand_partial_symbol_tables): Use
5785 ALL_OBJFILE_PSYMTABS.
5787 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5789 * objc-lang.c (selectors_info): Error on too long REGEXP.
5791 2011-02-28 Michael Snyder <msnyder@vmware.com>
5793 * python/py-param.c (set_parameter_value): Add missing
5796 * linux-record.c (record_linux_system_call): Add missing
5799 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
5801 * breakpoint.c (print_one_breakpoint_location): Remove unused
5802 argument PRINT_ADDRESS_BITS. Update callers.
5803 (print_one_breakpoint): Likewise.
5805 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
5807 * breakpoint.c (wrap_indent_at_field): New function.
5808 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
5809 Allocate ui_stream locally instead of using STB argument.
5810 (print_one_breakpoint_location): Update call.
5811 * ui-out.c (ui_out_query_field): New function.
5812 * ui-out.h (ui_out_query_field): Add prototype.
5814 2011-02-28 Joel Brobecker <brobecker@adacore.com>
5816 From Michael Snyder <msnyder@vmware.com>
5817 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
5819 2011-02-27 Michael Snyder <msnyder@vmware.com>
5821 * objc-lang.c (selectors_info): Prevent string overrun.
5823 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
5826 * symtab.c (rbreak_command): Move variable 'file_name' to
5829 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
5830 param with a local variable of the same name.
5832 2011-02-27 Michael Snyder <msnyder@vmware.com>
5834 * value.c (value_from_history_ref): New function.
5835 * value.h (value_from_history_ref): Export.
5836 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
5837 to parse value history references.
5838 * cli/cli-utils.h (get_number_trailer): Update comment.
5840 2011-02-27 Michael Snyder <msnyder@vmware.com>
5842 * inferior.c (detach_inferior_command): Use get_number_or_range.
5843 (kill_inferior_command): Ditto.
5844 (remove_inferior_command): Ditto.
5845 (initialize_inferiors): Make command names plural.
5846 Update help strings.
5848 2011-02-27 Michael Snyder <msnyder@vmware.com>
5850 * darwin-nat-info.c: Fix comment typo.
5851 * dwarf2expr.h: Ditto.
5852 * fbsd-nat.c: Ditto.
5853 * fbsd-nat.h: Ditto.
5854 * frame-unwind.h: Ditto.
5856 * hppa-hpux-tdep.c: Ditto.
5857 * i386-linux-nat.c: Ditto.
5858 * linux-nat.c: Ditto.
5859 * nbsd-nat.c: Ditto.
5860 * nbsd-nat.h: Ditto.
5861 * ppc-linux-tdep.c: Ditto.
5864 * tui/tui-winsource.c: Ditto.
5866 2011-02-26 Michael Snyder <msnyder@vmware.com>
5868 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
5870 * maint.c (maintenance_do_deprecate): Plug a memory leak.
5872 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
5873 with a local variable of the same name.
5875 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
5876 param with a local variable of the same name.
5877 (i387_supply_xsave): Ditto.
5879 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
5880 that it does not shadow a function parameter.
5882 * i386-nat.c (i386_length_and_rw_bits): Document that case
5883 statement is meant to fall through.
5885 * expprint.c (dump_subexp_body_standard): Document that case
5886 statement is meant to fall through.
5888 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
5889 dead if statement. Condition can't be false.
5891 2011-02-25 Michael Snyder <msnyder@vmware.com>
5893 * arm-tdep.c: Fix typos in comments.
5894 * bsd-uthread.c: Ditto.
5895 * completer.c: Ditto.
5897 * cp-namespace.c: Ditto.
5898 * cp-support.c: Ditto.
5899 * cris-tdep.c: Ditto.
5901 * dwarf2read.c: Ditto.
5903 * gdbtypes.h: Ditto.
5904 * inferior.h: Ditto.
5905 * mdebugread.c: Ditto.
5906 * mips-tdep.c: Ditto.
5907 * ppc-linux-nat.c: Ditto.
5908 * ppc-linux-tdep.c: Ditto.
5909 * printcmd.c: Ditto.
5910 * sol-thread.c: Ditto.
5911 * solib-frv.c: Ditto.
5913 * sparc64-tdep.c: Ditto.
5914 * spu-tdep.c: Ditto.
5915 * stabsread.c: Ditto.
5920 * python/py-block.c: Ditto.
5921 * python/py-symbol.c: Ditto.
5922 * python/py-symtab.c: Ditto.
5923 * python/py-value.c: Ditto.
5924 * tui/tui-win.c: Ditto.
5926 2011-02-25 Michael Snyder <msnyder@vmware.com>
5928 * inferior.c (print_inferior): Accept a string instead of an int
5929 for requested_inferiors, and use get_number_or_range to parse it.
5930 (info_inferiors_command): Pass args string to print_inferior.
5931 (initialize_inferiors): Change help string for info inferiors.
5932 * inferior.h (print_inferior): Export prototype change.
5934 2011-02-25 Tom Tromey <tromey@redhat.com>
5936 * common/ax.def (invalid2): Set to 0x31.
5938 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5940 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
5942 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
5944 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
5946 2011-02-24 Michael Snyder <msnyder@vmware.com>
5948 * Makefile.in (clean): Make clean should remove generated files
5949 observer.h and observer.inc.
5951 2011-02-24 Joel Brobecker <brobecker@adacore.com>
5953 Revert the following patch (not approved yet):
5954 2011-02-21 Hui Zhu <teawater@gmail.com>
5955 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
5956 * ax-gdb.c (gen_printf_expr_callback): New function.
5957 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
5958 * ax-general.c (ax_memcpy): New function.
5959 (ax_print): Handle "printf".
5961 * ax.h (ax_memcpy): Forward declare.
5962 * common/ax.def (invalid2): Removed.
5963 (printf): New entry.
5964 * printcmd.c (printcmd.h): New include.
5965 (string_printf): New function.
5966 (ui_printf): Removed.
5967 (printf_command): Remove static. Call string_printf.
5968 (eval_command): Call string_printf.
5969 * printcmd.h: New file.
5970 * tracepoint.c (validate_actionline,
5971 encode_actions_1): handle printf_command.
5973 2011-02-23 Tom Tromey <tromey@redhat.com>
5975 * ax-general.c (ax_pick): Add missing newline.
5977 2011-02-23 Michael Snyder <msnyder@vmware.com>
5979 * breakpoint.c (breakpoint_1): Change first argument from an int
5980 to a char pointer, so that the function now accepts a list of
5981 breakpoints rather than just one. Use new function
5982 'number_is_in_list' to implement.
5983 (breakpoints_info): Pass char * instead of int to breakpoint_1.
5984 (watchpoints_info): Ditto.
5985 (tracepoints_info): Ditto.
5986 (maintenance_info_breakpoints): Ditto.
5987 (_initialize_breakpoint): Update help strings to reflect the fact
5988 that these functions can now take more than one argument.
5989 * cli/cli-utils.c (number_is_in_list): New function.
5990 * cli/cli-utils.h (number_is_in_list): Export.
5992 2011-02-23 Michael Snyder <msnyder@vmware.com>
5994 * memattr.c (mem_enable_command): Use get_number_or_range.
5995 (mem_disable_command): Ditto.
5996 (mem_delete_command): Ditto.
5997 (_initialize_mem): Tweak usage message to reflect multiple
6000 2011-02-22 Doug Evans <dje@google.com>
6002 Add gdb.lookup_global_symbol python function.
6004 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
6005 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
6006 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
6008 2011-02-22 Tom Tromey <tromey@redhat.com>
6010 * language.c (language_class_name_from_physname): Rename
6011 'curr_language' argument to 'lang'; use in body.
6013 2011-02-22 Michael Snyder <msnyder@vmware.com>
6015 * cli/cli-utils.c (number_is_in_list): Check for zero return.
6017 2011-02-22 Pedro Alves <pedro@codesourcery.com>
6019 * frame-unwind.h: Fix comment to mention the this frame, not the
6022 2011-02-22 Tom Tromey <tromey@redhat.com>
6024 * symfile.c (auto_solib_limit): Remove.
6025 * symfile.h (auto_solib_limit): Remove.
6027 2011-02-22 Joel Brobecker <brobecker@adacore.com>
6029 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
6031 2011-02-21 Michael Snyder <msnyder@vmware.com>
6033 * gdbthread.h (print_thread_info): Change prototype.
6034 * thread.c (print_thread_info): Accept char* instead of int for
6035 requested_threads argument. Use new function number_is_in_list
6036 to determine which threads to list.
6037 (info_threads_command): Pass char* to print_thread_info.
6038 * cli/cli-utils.c (number_is_in_list): New function.
6039 * cli/cli-utils.h (number_is_in_list): Export.
6040 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
6042 (print_one_inferior): Ditto.
6043 (mi_cmd_list_thread_groups): Ditto.
6045 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6047 * common/Makefile.in (CFLAGS): New.
6048 (COMPILE): Add $(CFLAGS).
6050 2011-02-21 Tom Tromey <tromey@redhat.com>
6052 * breakpoint.c (catch_syscall_command_1): Fix typo.
6054 2011-02-21 Tom Tromey <tromey@redhat.com>
6056 * reverse.c: Include cli-utils.h.
6057 * printcmd.c: Include cli-utils.h.
6058 (string_printf): Use skip_spaces.
6059 * cli/cli-utils.h: New file.
6060 * cli/cli-utils.c: New file.
6061 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
6062 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
6063 * breakpoint.h (get_number, get_number_or_range): Move to
6065 * breakpoint.c: Include cli-utils.h.
6066 (get_number_trailer, get_number, get_number_or_range)
6067 (ep_skip_leading_whitespace): Move to cli-utils.c.
6068 (create_breakpoint_sal, find_condition_and_thread)
6069 (decode_static_tracepoint_spec, watch_command_1)
6070 (watch_maybe_just_location, ep_parse_optional_if_clause)
6071 (catch_fork_command_1, catch_exec_command_1)
6072 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
6073 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
6074 (SUBDIR_CLI_SRCS): Add cli-utils.c.
6075 (HFILES_NO_SRCDIR): Add cli-utils.h.
6076 (cli-utils.o): New target.
6078 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6080 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
6081 before calling discard_all_inferiors.
6083 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6085 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
6086 (struct builtin_opencl_type): Remove.
6087 (builtin_opencl_type): Change return type to "struct type **".
6088 (lookup_opencl_vector_type): Update caller.
6089 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
6090 (build_opencl_types): Install plain array of "struct type *"
6091 instead of "struct builtin_opencl_type".
6093 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6094 Ulrich Weigand <uweigand@de.ibm.com>
6096 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
6097 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
6098 (struct arm_linux_hwbp_cap): New type.
6099 (arm_linux_get_hwbp_cap): New function.
6100 (arm_linux_get_hw_breakpoint_count): Likewise.
6101 (arm_linux_get_hw_watchpoint_count): Likewise.
6102 (arm_linux_can_use_hw_breakpoint): Likewise.
6103 (arm_hwbp_type): New type.
6104 (arm_hwbp_control_t): Likewise.
6105 (struct arm_linux_hw_breakpoint): Likewise.
6106 (struct arm_linux_thread_points): Likewise.
6107 (arm_threads): New global variable.
6108 (arm_linux_find_breakpoints_by_tid): New function.
6109 (arm_hwbp_control_initialize): Likewise.
6110 (arm_hwbp_control_is_enabled): Likewise.
6111 (arm_hwbp_control_disable): Likewise.
6112 (arm_linux_hw_breakpoint_initialize): Likewise.
6113 (arm_linux_get_hwbp_type): Likewise.
6114 (arm_linux_hw_watchpoint_initialize): Likewise.
6115 (arm_linux_hw_breakpoint_equal): Likewise.
6116 (arm_linux_insert_hw_breakpoint1): Likewise.
6117 (arm_linux_remove_hw_breakpoint1): Likewise.
6118 (arm_linux_insert_hw_breakpoint): Likewise.
6119 (arm_linux_remove_hw_breakpoint): Likewise.
6120 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
6121 (arm_linux_insert_watchpoint): Likewise.
6122 (arm_linux_remove_watchpoint): Likewise.
6123 (arm_linux_stopped_data_address): Likewise.
6124 (arm_linux_stopped_by_watchpoint): Likewise.
6125 (arm_linux_watchpoint_addr_within_range): Likewise.
6126 (arm_linux_new_thread): Likewise.
6127 (arm_linux_thread_exit): Likewise.
6128 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
6129 related target callbacks. Register arm_linux_new_thread and
6130 arm_linux_thread_exit.
6131 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
6132 * arm-tdep.c (arm_pc_is_thumb): Make global.
6133 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
6135 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6137 * breakpoint.c (update_watchpoint): Do not attempt to recreate
6138 per-frame locations while within a function epilogue.
6140 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6142 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
6143 to GNU coding standards.
6145 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6147 Allow use of mingw native on Windows 95 OS.
6148 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
6149 (ser_windows_close): Only call CancelIo if function exists.
6150 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
6151 to check for existence of CancelIo function in kernel32 DLL.
6153 2011-02-21 Hui Zhu <teawater@gmail.com>
6155 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6156 * ax-gdb.c (gen_printf_expr_callback): New function.
6157 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6158 * ax-general.c (ax_memcpy): New function.
6159 (ax_print): Handle "printf".
6161 * ax.h (ax_memcpy): Forward declare.
6162 * common/ax.def (invalid2): Removed.
6163 (printf): New entry.
6164 * printcmd.c (printcmd.h): New include.
6165 (string_printf): New function.
6166 (ui_printf): Removed.
6167 (printf_command): Remove static. Call string_printf.
6168 (eval_command): Call string_printf.
6169 * printcmd.h: New file.
6170 * tracepoint.c (validate_actionline,
6171 encode_actions_1): handle printf_command.
6173 2011-02-19 Michael Snyder <msnyder@vmware.com>
6175 * reverse.c (delete_one_bookmark): Argument is now bookmark
6176 id rather than pointer to bookmark struct.
6177 (delete_bookmark_command): Use get_number_or_range.
6178 (goto_bookmark_command): Parse with get_number instead of strtoul.
6179 (bookmark_1): New function. Print info for one bookmark.
6180 (bookmarks_info): Use get_number_or_range and bookmark_1.
6182 2011-02-18 Michael Snyder <msnyder@vmware.com>
6184 * thread.c (info_threads_command): Re-implement using
6185 get_number_or_range.
6186 (thread_apply_command): Ditto.
6188 2011-02-18 Tom Tromey <tromey@redhat.com>
6190 * common/ax.def: New file.
6191 * ax.h (enum agent_op): Use ax.def.
6192 * ax-general.c (aop_map): Use ax.def.
6194 2011-02-18 Tom Tromey <tromey@redhat.com>
6196 * ax-general.c (aop_map): Add pick and rot.
6197 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
6198 <DW_OP_rot>: Implement.
6199 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
6201 * ax-general.c (ax_pick): New function.
6203 2011-02-18 Tom Tromey <tromey@redhat.com>
6205 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
6207 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6208 Tom Tromey <tromey@redhat.com>
6210 * cp-support.c (make_symbol_overload_list_namespace): Do not call
6211 make_symbol_overload_list_block with NULL BLOCK.
6212 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
6214 2011-02-18 Pedro Alves <pedro@codesourcery.com>
6216 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
6217 * breakpoint.h (get_number_or_range): Declare.
6218 * printcmd.c (ALL_DISPLAYS): Declare.
6219 (delete_display): Reimplement taking a display pointer.
6220 (undisplay_command): Accept a range of displays to delete, using
6221 get_number_or_range.
6223 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6225 * c-valprint.c (c_val_print): Add embedded_offset to address
6226 for arrays of unspecified length.
6227 * p-valprint.c (pascal_val_print): Likewise.
6229 2011-02-18 Yao Qi <yao@codesourcery.com>
6231 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
6232 (arm_process_displaced_insn): .. here. Remove parameter INSN.
6233 (thumb_process_displaced_insn): New.
6234 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
6235 call to arm_process_displaced_insn.
6236 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
6238 2011-02-17 Tom Tromey <tromey@redhat.com>
6240 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
6241 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
6242 compile_dwarf_to_ax. No longer static. Call
6243 dwarf2_compile_cfa_to_ax.
6244 (locexpr_tracepoint_var_ref): Update.
6245 (loclist_tracepoint_var_ref): Update.
6246 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
6247 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
6248 argument; add 'gdbarch' and 'pc'.
6249 (dwarf2_compile_cfa_to_ax): New function.
6250 (dwarf2_frame_cache): Update.
6252 2011-02-17 Joel Brobecker <brobecker@adacore.com>
6254 * ada-lang.c (ada_type_of_array): Fix the size of the array
6255 in the case of an unconstrained packed array.
6257 2011-02-17 Yao Qi <yao@codesourcery.com>
6259 * common/Makefile.in: Add more targets for make.
6261 2011-02-16 Tom Tromey <tromey@redhat.com>
6263 * dwarf2loc.c (unimplemented): Fix typo.
6265 2011-02-16 Tom Tromey <tromey@redhat.com>
6267 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
6268 (compile_dwarf_to_ax) <default>: Use unimplemented.
6269 <DW_OP_deref>: Update.
6270 (disassemble_dwarf_expression): Update.
6271 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
6272 (decode_locdesc): Update.
6273 * dwarf2expr.h (dwarf_stack_op_name): Update.
6275 2011-02-16 Tom Tromey <tromey@redhat.com>
6277 * ax.h (struct aop_map) <name>: Now const.
6279 2011-02-16 Tom Tromey <tromey@redhat.com>
6281 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
6284 2011-02-16 Yao Qi <yao@codesourcery.com>
6286 * infrun.c (get_displaced_step_closure_by_addr): New.
6287 * inferior.h: Declare it.
6288 * arm-tdep.c: (arm_pc_is_thumb): Call
6289 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
6292 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6293 Jan Kratochvil <jan.kratochvil@redhat.com>
6296 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
6298 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6299 Jan Kratochvil <jan.kratochvil@redhat.com>
6301 * value.c (value_contents_copy_raw): Extend describing comment.
6302 Assert that the destination contents we're overwriting are wholly
6304 (value_contents_copy): Extend describing comment.
6306 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6307 Jan Kratochvil <jan.kratochvil@redhat.com>
6309 * value.c (value_available_contents_eq): Remove redundant local
6310 variables. Fix available contents comparision.
6311 * value.h (value_available_contents_eq): Extend describing
6314 2011-02-16 Yao Qi <yao@codesourcery.com>
6316 * thread.c (info_threads_command): Add missing i18n markup and remove
6319 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
6321 * breakpoint.c (longjmp_names): New variable.
6322 (struct breakpoint_objfile_data): New type.
6323 (breakpoint_objfile_key): New variable.
6324 (msym_not_found): New variable.
6325 (msym_not_found_p): New predicate.
6326 (get_breakpoint_objfile_data): New function.
6327 (create_overlay_event_breakpoint): Check per-objfile cache for
6329 (create_longjmp_master_breakpoint): Likewise.
6330 (create_std_terminate_master_breakpoint): Likewise.
6331 (create_exception_master_breakpoint): Likewise.
6332 (_initialize_breakpoint): Register per-objfile data key.
6334 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
6336 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
6338 (create_longjmp_master_breakpoint): Loop over longjmp names.
6339 (create_std_terminate_master_breakpoint): Const-propagate parameter
6341 (update_breakpoints_after_exec): Adjust.
6342 (breakpoint_re_set): Adjust.
6344 2011-02-15 Michael Snyder <msnyder@vmware.com>
6346 * thread.c (info_threads_command): Process arg as thread id,
6347 or list of thread ids.
6348 (thread_find_command): New command.
6349 (_initialize_thread): Document argument for info threads.
6350 Document 'thread find' command.
6351 * NEWS: Document new command "thread find".
6353 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6355 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
6356 * aclocal.m4: Regenerated with aclocal-1.11.1.
6357 * common/configure: Regenerate with autoconf-2.64.
6359 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
6361 * opencl-lang.c (build_opencl_types): Set the size of the built-in
6362 bool data type to a size of one byte.
6364 2011-02-15 Pedro Alves <pedro@codesourcery.com>
6365 Jan Kratochvil <jan.kratochvil@redhat.com>
6367 * target.c (memory_xfer_live_readonly_partial): Document where to
6368 look for interface description.
6370 2011-02-15 Yao Qi <yao@codesourcery.com>
6373 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
6374 order to store PC value on stack instead of text section.
6376 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
6378 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
6379 the EFP register set size.
6380 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
6381 data from the VMX register.
6382 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
6383 and write data from/to the VMX register.
6385 2011-02-14 Michael Snyder <msnyder@vmware.com>
6387 * command.h (enum command_class): New class 'no_set_class', for
6388 "show" commands without a corresponding "set" command.
6389 * value.c (_initialize_values): Use 'no_set_class' for "show values".
6390 * copying.c (_initialize_copying): Ditto for "show copying" and
6392 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
6394 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
6395 which there is no corresponding "set" command (eg. "show copying").
6397 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6398 Jan Kratochvil <jan.kratochvil@redhat.com>
6400 * exec.c (section_table_available_memory): Change `len' parameter
6402 * exec.h (section_table_available_memory): Ditto.
6403 * value.h (read_value_memory): Rename the `offset' parameter to
6406 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6407 Jan Kratochvil <jan.kratochvil@redhat.com>
6409 * memrange.c (compare_mem_ranges): Mention sort order in
6411 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
6412 * tracepoint.c (traceframe_available_memory): Extend comment to
6413 mention what happens to RESULT when the target does not support
6416 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6417 Jan Kratochvil <jan.kratochvil@redhat.com>
6419 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
6422 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6424 * value.c (value_bits_valid, value_bits_synthetic_pointer):
6425 No longer handle NULL values.
6427 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6429 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
6430 * value.c: Include "exceptions.h".
6431 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
6433 * cp-abi.c: Include gdb_assert.h.
6434 (baseclass_offset): Add `embedded_offset' and `val' parameters.
6435 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
6437 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
6438 parameters. No longer returns -1 on error.
6439 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
6441 * cp-valprint.c: Include exceptions.h.
6442 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
6443 the baseclass_offset. Handle unavailable base classes. Use
6444 val_print_invalid_address.
6445 * p-valprint.c: Include exceptions.h.
6446 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
6447 when fetching the baseclass_offset. No longer expect
6448 baseclass_offset returning -1. Handle unavailable base classes.
6449 Use val_print_invalid_address.
6450 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
6451 `valaddr' parameter, and change its type to gdb_byte pointer. Add
6452 `embedded_offset' and `val' parameters. Adjust.
6453 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
6454 parameter, and change its type to gdb_byte pointer. Add
6455 `embedded_offset' and `val' parameters. Adjust. No longer expect
6456 baseclass_offset returning -1.
6457 (value_dynamic_cast): Use value_contents_for_printing rather than
6458 value_contents. Adjust.
6459 (search_struct_field): No longer expect baseclass_offset returning
6461 (search_struct_method): If reading memory from the target is
6462 necessary, wrap it in a new value to pass to baseclass_offset. No
6463 longer expect baseclass_offset returning -1.
6464 (find_method_list): No longer expect baseclass_offset returning
6465 -1. Use value_contents_for_printing rather than value_contents.
6466 * valprint.c (val_print_invalid_address): New function.
6467 * valprint.h (val_print_invalid_address): Declare.
6468 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
6469 and `val' parameters. No longer expect baseclass_offset returning
6471 * gnu-v2-abi.c: Include "exceptions.h".
6472 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
6473 parameters. Handle unavailable memory. Recurse through
6474 gnuv2_baseclass_offset directly, rather than through
6475 baseclass_offset. No longer returns -1 on not found, instead
6477 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
6478 `val' parameters. Adjust.
6480 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6482 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
6483 almost but not quite adjacent.
6485 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6487 * value.h (value_entirely_available): Declare.
6488 * value.c (value_entirely_available): New function.
6489 * c-valprint.c (c_value_print): Don't try fetching the pointer's
6490 real type if the pointer is unavailable.
6492 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6494 * valops.c (value_repeat): Use read_value_memory instead of
6497 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6499 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
6500 * value.c (value_contents_copy_raw, value_contents_copy): New
6502 (value_primitive_field): Use value_contents_copy_raw instead of
6504 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
6506 (value_array, value_slice): Ditto.
6507 * valarith.c (value_subscripted_rvalue): Use
6508 value_contents_copy_raw instead of memcpy.
6510 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6512 <unavailable> references.
6514 * valops.c (get_value_at): Use value_from_contents_and_address,
6515 avoiding read_memory.
6517 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6519 * c-valprint.c (c_val_print): Print a string with unavailable
6520 contents as an array.
6522 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6524 * value.h (unpack_bits_as_long): Delete declaration.
6525 (unpack_value_bits_as_long): Declare.
6526 (unpack_value_field_as_long): Declare.
6527 (value_field_bitfield): Declare.
6528 * value.c (unpack_bits_as_long): Rename to...
6529 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
6530 value parameters. Return the extracted result in a new output
6531 parameter. If the value contents are unavailable, return false,
6532 otherwise return true.
6533 (unpack_value_bits_as_long): New.
6534 (unpack_field_as_long): Rename to...
6535 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
6536 Add embedded_offset and value parameters. Return the extracted
6537 result in a new output parameter. If the value contents are
6538 unavailable, return false, otherwise return true.
6539 (unpack_value_field_as_long): New.
6540 (unpack_field_as_long_1): New.
6541 (unpack_field_as_long): Reimplement as wrapper around
6542 unpack_value_field_as_long_1.
6543 (value_field_bitfield): New function.
6544 * valops.c (value_fetch_lazy): When fetching a bitfield, use
6545 unpack_value_bits_as_long. Mark the value as unavailable, if it
6547 * jv-valprint.c (java_print_value_fields): Use
6548 value_field_bitfield.
6549 * p-valprint.c (pascal_object_print_value_fields): Use
6550 value_field_bitfield.
6551 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
6553 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6555 * value.c (get_internalvar_integer): Also return the int value of
6556 TYPE_CODE_INT INTERNALVAR_VALUE values.
6557 (set_internalvar): Don't special case TYPE_CODE_INT.
6559 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6561 * value.c (struct internalvar) <enum internalvar_kind>: Remove
6562 INTERNALVAR_POINTER.
6564 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
6565 (set_internalvar): Remove special TYPE_CODE_PTR handling.
6566 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
6568 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6570 * value.h (value_available_contents_eq): Declare.
6571 * value.c (find_first_range_overlap): New function.
6572 (value_available_contents_eq): New function.
6573 * valprint.c (val_print_array_elements): Use
6574 value_available_contents_eq.
6575 * ada-valprint.c (val_print_packed_array_elements): Use
6576 value_available_contents_eq.
6577 * jv-valprint.c (java_value_print): Use
6578 value_available_contents_eq.
6580 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6582 * target.c (target_read_live_memory): New function.
6583 (memory_xfer_live_readonly_partial): New.
6584 (memory_xfer_partial): If reading from a traceframe, fallback to
6585 reading unavailable read-only memory from read-only regions of
6587 * tracepoint.c (disconnect_tracing): Adjust.
6588 (set_current_traceframe): New, factored out from
6589 set_traceframe_number.
6590 (set_traceframe_number): Reimplement to only change the traceframe
6591 number on the GDB side.
6592 (do_restore_current_traceframe_cleanup): Adjust.
6593 (make_cleanup_restore_traceframe_number): New.
6594 (cur_traceframe_number): New global.
6595 (tfile_open): Set cur_traceframe_number to no traceframe.
6596 (set_tfile_traceframe): New function.
6597 (tfile_trace_find): If looking up a traceframe using any method
6598 other than by number, make sure the current tfile traceframe
6599 matches gdb's current traceframe. Update the current tfile
6600 traceframe if the lookup succeeded.
6601 (tfile_fetch_registers, tfile_xfer_partial)
6602 (tfile_get_trace_state_variable_value): Make sure the remote
6603 traceframe matches gdb's current traceframe.
6604 * remote.c (remote_traceframe_number): New global.
6605 (remote_open_1): Set it to -1.
6606 (set_remote_traceframe): New function.
6607 (remote_fetch_registers, remote_store_registers)
6608 (remote_xfer_memory, remote_xfer_partial)
6609 (remote_get_trace_state_variable_value): Make sure the remote
6610 traceframe matches gdb's current traceframe.
6611 (remote_trace_find): If looking up a traceframe using any method
6612 other than by number, make sure the current remote traceframe
6613 matches gdb's current traceframe. Update the current remote
6614 traceframe if the lookup succeeded.
6615 * infrun.c (fetch_inferior_event): Adjust.
6616 * tracepoint.h (set_current_traceframe): Declare.
6617 (get_traceframe_number, set_traceframe_number): Add describing
6620 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6622 Mark pieces of values as unavailable if the corresponding memory
6625 * valops.c: Include tracepoint.h.
6626 (value_fetch_lazy): Use read_value_memory.
6627 (read_value_memory): New.
6628 * value.h (read_value_memory): Declare.
6629 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
6630 * exec.c (section_table_available_memory): New function.
6631 * exec.h (section_table_available_memory): Declare.
6633 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6635 * Makefile.in (SFILES): Add memrange.c.
6636 (HFILES_NO_SRCDIR): Add memrange.h.
6637 (COMMON_OBS): Add memrange.o.
6638 * memrange.c: New file.
6639 * memrange.h: New file.
6640 * tracepoint.c: Include memrange.h.
6641 (struct mem_range): Delete.
6642 (mem_range_s): Delete.
6643 (traceframe_available_memory): New function.
6644 * tracepoint.h (traceframe_available_memory): Declare.
6646 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6648 * target.h (struct traceframe_info): Forward declare.
6649 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
6650 (struct target_ops) <to_traceframe_info>: New field.
6651 (target_traceframe_info): New.
6652 * target.c (update_current_target): Inherit and default
6654 * remote.c (PACKET_qXfer_traceframe_info): New.
6655 (remote_protocol_features): Register qXfer:traceframe-info:read.
6656 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
6657 (remote_traceframe_info): New.
6658 (init_remote_ops): Install it.
6659 (_initialize_remote): Install "set/show remote traceframe-info"
6661 * tracepoint.h (parse_traceframe_info): Declare.
6662 * tracepoint.c (struct mem_range): New.
6663 (mem_range_s): New typedef.
6664 (struct traceframe_info): New.
6665 (traceframe_info): New global.
6666 (free_traceframe_info): New function.
6667 (clear_traceframe_info): New function.
6668 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
6670 (build_traceframe_info): New function.
6671 (tfile_traceframe_info): New function.
6672 (init_tfile_ops): Install tfile_traceframe_info.
6673 (traceframe_info_start_memory, free_result): New functions.
6674 (memory_attributes, traceframe_info_elements): New globals.
6675 (parse_traceframe_info, get_traceframe_info): New functions.
6676 * features/traceframe-info.dtd: New file.
6677 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
6679 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6681 Base support for <unavailable> value contents.
6683 * value.h (value_bytes_available): Declare.
6684 (mark_value_bytes_unavailable): Declare.
6685 * value.c (struct range): New struct.
6686 (range_s): New typedef.
6687 (ranges_overlap): New function.
6688 (range_lessthan): New function.
6689 (ranges_contain_p): New function.
6690 (struct value) <unavailable>: New field.
6691 (value_bytes_available): New function.
6692 (mark_value_bytes_unavailable): New function.
6693 (require_not_optimized_out): Constify parameter.
6694 (require_available): New function.
6695 (value_contents_all, value_contents): Require all bytes be
6697 (value_free): Free `unavailable'.
6698 (value_copy): Copy `unavailable'.
6699 * valprint.h (val_print_unavailable): Declare.
6700 * valprint.c (valprint_check_validity): Rename `offset' parameter
6701 to `embedded_offset'. If printing a scalar, check whether the
6702 value chunk is available.
6703 (val_print_unavailable): New.
6704 (val_print_scalar_formatted): Check whether the value is
6706 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
6707 pretty-printing unavailable values.
6709 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6711 Fix const/volatile qualifiers of C++ types, PR c++/12328.
6712 * c-typeprint.c (c_type_print_args): Update the function comment. New
6713 variable param_type, initialize it. Remove const/volatile qualifiers
6714 for language_cplus and !show_artificial. Use param_type.
6716 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6718 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
6719 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
6720 * symtab.h (struct symtab) <next>: Comment extension.
6722 2011-02-12 Yao Qi <yao@codesourcery.com>
6724 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
6726 2011-02-11 Yao Qi <yao@codesourcery.com>
6728 * common/Makefile.in: Add copyright header.
6730 2011-02-11 Pedro Alves <pedro@codesourcery.com>
6732 * infrun.c (proceed): Move switching out and in of tfind mode from
6734 (fetch_inferior_event): ... to here.
6736 2011-02-11 Yao Qi <yao@codesourcery.com>
6738 * Makefile.in: Remove signals.o from COMMON_OBS. Link
6740 * configure.ac: Add common to sub dir.
6741 * configure: Regenerate.
6743 2011-02-11 Yao Qi <yao@codesourcery.com>
6747 * common/Makefile.in: New.
6748 * common/configure.ac: New.
6749 * common/aclocal.m4: New.
6750 * common/configure: Generate.
6752 2011-02-10 Pedro Alves <pedro@codesourcery.com>
6754 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
6755 side of the parenthesis.
6758 2010-07-13 Jakub Jelinek <jakub@redhat.com>
6759 * vec.h (VEC_block_remove): Fix comment.
6761 2011-02-08 Michael Snyder <msnyder@vmware.com>
6763 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
6765 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6767 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
6768 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
6771 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6774 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
6776 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
6777 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
6779 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
6781 * dwarf2read.c (read_subroutine_type): Set special calling
6782 convention flag for functions compiled by IBM XL C for OpenCL.
6783 * ppc-sysv-tdep.c: Include "dwarf2.h"
6784 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
6786 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
6787 IBM OpenCL vector types calling convention.
6788 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
6789 (ppc_sysv_abi_broken_return_value): Likewise.
6790 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
6791 types calling convention.
6792 (ppc64_sysv_abi_return_value): Likewise.
6793 * spu-tdep.c: Include "dwarf2.h"
6794 (spu_return_value): Implement IBM OpenCL vector types calling
6797 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
6799 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
6800 correct ABI for AltiVec vector arguments.
6802 2011-02-07 Pedro Alves <pedro@codesourcery.com>
6804 * valprint.c (val_print): Extend comment.
6805 * ada-valprint.c (ada_valprint): Rewrite comment deferring
6806 interface explanation to val_print.
6807 (ada_val_print_array): Adjust comment to current interface.
6808 (print_field_values): Adjust comment to current interface.
6809 * c-valprint.c (c_val_print): Rewrite comment deferring interface
6810 explanation to val_print.
6811 * f-valprint.c (f_val_print): Ditto.
6812 * jv-valprint.c (java_val_print): Ditto.
6813 * m2-valprint.c (m2_val_print): Ditto.
6814 * p-valprint.c (pascal_val_print): Ditto.
6816 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
6818 * breakpoint.c (parse_breakpoint_sals): Fix description.
6820 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
6821 Oguz Kayral <oguzkayral@gmail.com>
6823 * python/py-inferior.c (python_on_normal_stop): New function.
6824 (python_on_resume): New function.
6825 (python_inferior_exit): New function.
6826 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
6827 inferior_exit observers.
6828 * python/py-evtregistry.c: New file.
6829 * python/py-threadevent.c : New file.
6830 * python/py-event.c: New file.
6831 * python/py-evts.c: New file.
6832 * python/py-continueevent.c: New file.
6833 * python/py-bpevent.c: New file.
6834 * python/py-signalevent.c: New file.
6835 * python/py-exetiedevent.c: New file.
6836 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
6837 Move struct breakpoint_object from here...
6838 * python/python-internal.h: ... to here.
6839 * python/py-event.h: New file.
6840 * python/py-events.h: New file.
6841 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
6842 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
6843 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
6844 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
6845 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
6846 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
6847 Add build rules for all the above.
6849 2011-02-04 Tom Tromey <tromey@redhat.com>
6851 * dwarf2read.c (dwarf2_section_empty_p): New function.
6852 (dwarf2_read_section): Use dwarf2_section_empty_p.
6853 (dwarf2_section_size): New function.
6854 (dwarf2_get_section_info): Unconditionally read section.
6855 (dwarf2_read_index): Use dwarf2_section_empty_p.
6856 (partial_read_comp_unit_head): Use dwarf2_section_size.
6857 (dwarf2_symbol_mark_computed): Likewise.
6859 2011-02-04 David Daney <ddaney@caviumnetworks.com>
6861 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
6863 2011-02-04 David Daney <ddaney@caviumnetworks.com>
6865 * mips-linux-tdep.c: Include xml-syscall.h.
6866 (mips_linux_get_syscall_number): New function.
6867 (mips_linux_init_abi): Add calls to
6868 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
6869 * data-directory/Makefile.in (SYSCALLS_FILES): Add
6870 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
6871 * syscalls/mips-n32-linux.xml: New file.
6872 * syscalls/mips-n64-linux.xml: New file.
6873 * syscalls/mips-o32-linux.xml: New file.
6875 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
6877 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
6878 Complain about inverted range entries.
6879 (dwarf2_record_block_ranges): Likewise.
6881 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6884 * breakpoint.c (update_watchpoint): Fix name of the
6885 update_global_location_list function.
6886 (print_one_breakpoint): Fix typo.
6887 (_initialize_breakpoint): Remove extra space in hbreak help
6889 * breakpoint.h (struct bp_location) <length>: Fix field
6892 2011-02-04 Pedro Alves <pedro@codesourcery.com>
6894 * regcache.c (registers_changed_ptid): Don't explictly always
6895 clear `current_regcache'. Only clear current_thread_ptid and
6896 current_thread_arch when PTID matches. Only reinit the frame
6897 cache if PTID matches the current inferior_ptid. Move alloca(0)
6899 (registers_changed): ... here.
6901 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
6903 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
6904 starts with __stack_chk_guard as stack guard symbol.
6906 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
6908 * disasm.c (compare_lines): Handle the end of sequence markers
6909 within the line table to better support disassembling over
6910 compilation unit boundaries.
6912 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
6914 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
6915 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
6916 implementation even if no symbols are available.
6917 (thumb_analyze_prologue): Update call to skip_prologue_function.
6918 (arm_analyze_prologue): Likewise.
6920 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
6922 * arm-tdep.c: Include "observer.h".
6923 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
6924 (arm_exidx_data_key): New static variable.
6925 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
6926 (struct arm_exidx_data): Likewise.
6927 (arm_exidx_data_free): New function.
6928 (arm_compare_exidx_entries): Likewise.
6929 (arm_obj_section_from_vma): Likewise.
6930 (arm_exidx_new_objfile): Likewise.
6931 (arm_find_exidx_entry): Likewise.
6932 (arm_exidx_fill_cache): Likewise.
6933 (arm_exidx_unwind_sniffer): Likewise.
6934 (arm_exidx_unwind): New global variable.
6935 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
6936 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
6937 observer. Register arm_exidx_data_key as objfile data.
6939 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
6941 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
6942 due to accessing uninitialized variable. Fix indentation.
6944 2011-02-02 Pedro Alves <pedro@codesourcery.com>
6946 * c-valprint.c (c_value_print): When doing virtual base pointer
6947 adjustment, create a new value with adjusted contents rather than
6948 changing the contents of the value being printed (and getting it
6951 2011-02-02 Pedro Alves <pedro@codesourcery.com>
6953 * xml-support.c (xml_find_attribute): New.
6954 (xinclude_start_include): Use it.
6955 * xml-support.h (xml_find_attribute): Declare.
6956 * memory-map.c (memory_map_start_memory)
6957 (memory_map_start_property): Use xml_find_attribute.
6958 * osdata.c (osdata_start_osdata, osdata_start_column): Use
6960 * remote.c (start_thread): Use xml_find_attribute.
6961 * solib-target.c (library_list_start_segment)
6962 (library_list_start_section, library_list_start_library)
6963 (library_list_start_list): Use xml_find_attribute.
6964 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
6965 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
6966 (tdesc_start_field): Use xml_find_attribute.
6968 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
6970 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
6971 (BUILD_OCL_VTYPES): Update.
6973 2011-02-02 Joel Brobecker <brobecker@adacore.com>
6975 * configure.ac: Work around non-GNU sed limitation when computing
6976 python version number.
6977 * configure: Regenerate.
6979 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6981 Fix debug printing of TYPE_INSTANCE.
6982 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
6983 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
6985 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6987 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
6988 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
6989 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
6990 * ada-operator.inc: Rename the file to ...
6991 * ada-operator.def: ... here, wrap all the entries by macro OP.
6992 * expprint.c (op_name_standard): Remove all the entries. Include
6993 "std-operator.def" instead.
6994 * expression.h (enum exp_opcode): Include "std-operator.def" and
6995 "ada-operator.def". Move all the entries ...
6996 * std-operator.def: ... here, wrap all the entries by macro OP.
6998 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7000 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
7001 * breakpoint.c (remove_jit_event_breakpoints): New function.
7002 * jit.c (jit_descriptor_addr): Delete.
7003 (registering_code): Delete.
7004 (clear_int): Delete.
7005 (jit_inferior_data): New variable.
7006 (struct jit_inferior_data): New type.
7007 (get_jit_inferior_data): New function.
7008 (jit_inferior_data_cleanup): New function.
7009 (jit_read_descriptor): Adjust.
7010 (jit_register_code): Adjust.
7011 (jit_breakpoint_re_set_internal): New function; move code here ...
7012 (jit_inferior_init): ... from here.
7013 (jit_breakpoint_re_set): Adjust.
7014 (jit_reset_inferior_data_and_breakpoints): New function.
7015 (jit_inferior_created_observer): Adjust.
7016 (jit_inferior_exit_hook): Adjust.
7017 (jit_executable_changed_observer): New function.
7018 (jit_event_handler): Adjust.
7019 (_initialize_jit): Adjust.
7021 2011-01-31 Michael Snyder <msnyder@vmware.com>
7023 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
7026 2011-01-31 Tom Tromey <tromey@redhat.com>
7029 * python/python.c (execute_gdb_command): Call
7030 prevent_dont_repeat.
7031 * top.c (suppress_dont_repeat): New global.
7032 (dont_repeat): Use it.
7033 (prevent_dont_repeat): New function.
7034 * command.h (prevent_dont_repeat): Declare.
7036 2011-01-31 Tom Tromey <tromey@redhat.com>
7038 * infcmd.c (finish_backward): Use breakpoint_set_silent.
7039 * python/py-breakpoint.c (bppy_set_silent): Use
7040 breakpoint_set_silent.
7041 (bppy_set_thread): Use breakpoint_set_thread.
7042 (bppy_set_task): Use breakpoint_set_task.
7043 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
7044 (breakpoint_set_task): Declare.
7045 (make_breakpoint_silent): Remove.
7046 * breakpoint.c (breakpoint_set_silent): New function.
7047 (breakpoint_set_thread): Likewise.
7048 (breakpoint_set_task): Likewise.
7049 (make_breakpoint_silent): Remove.
7051 2011-01-31 Tom Tromey <tromey@redhat.com>
7053 * breakpoint.h (user_breakpoint_p): Declare.
7054 * breakpoint.c (user_breakpoint_p): New function.
7055 (breakpoint_1): Use it.
7056 (save_breakpoints): Likewise.
7058 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7060 * configure.ac: Add handling of Python distribution on Windows.
7061 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
7062 sysconfig variables are not defined, then do not use them.
7063 On Windows, if LIBPL is not defined, then use prefix + '/libs'
7064 instead. On Windows, return all paths using forward-slashes
7065 rather than backslashes.
7067 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7069 * configure.ac: Remove fallback behavior for building
7070 against Python. Remove tweaking of Python include path.
7071 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
7072 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
7073 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
7074 Always restore CPPFLAGS and LIBS after linking test.
7075 * configure: Regenerated.
7076 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
7077 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
7078 * python/python-internal.h: Adjust includes of Python .h files.
7080 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7082 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
7085 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7087 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
7090 2011-01-31 Yao Qi <yao@codesourcery.com>
7092 * arm-linux-nat.c: Update calls to regcache_register_status
7093 instead of regcache_valid_p.
7094 * aix-thread.c: Likewise.
7095 * i386gnu-nat.c: Likewise.
7097 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7100 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
7101 touching TYPE_FIELD_ARTIFICIAL.
7103 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
7105 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
7108 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7110 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
7111 selected, don't try iterating over the traceframe's blocks.
7112 (tfile_has_stack): If there's no traceframe selected, then there's
7114 (tfile_has_registers): If there's no traceframe selected, then
7115 there's no registers.
7117 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7119 * target.c (memory_xfer_partial): No need to restore shadows if we
7120 haven't read anything.
7122 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7124 * mips-tdep.c (mips_print_register): Use get_frame_register_value
7125 and val_print_scalar_formatted.
7127 2011-01-27 Pedro Alves <pedro@codesourcery.com>
7129 * tracepoint.c (tfile_read): New.
7130 (tfile_open): Use it.
7131 (tfile_get_traceframe_address): Use it.
7132 (tfile_trace_find): Use it.
7133 (walk_blocks_callback_func): New typedef.
7134 (match_blocktype): New function.
7135 (traceframe_walk_blocks): New function.
7136 (traceframe_find_block_type): New function.
7137 (tfile_fetch_registers, tfile_xfer_partial)
7138 (tfile_get_trace_state_variable_value): Use
7139 traceframe_find_block_type and tfile_read.
7141 2011-01-26 Kevin Buettner <kevinb@redhat.com>
7143 * remote-mips.c: Add internationalization mark ups. Remove
7144 trailing \n from already marked up strings.
7146 2011-01-26 Tom Tromey <tromey@redhat.com>
7148 * python/py-prettyprint.c (print_string_repr): Clear
7149 'addressprint' option when calling val_print_string.
7150 (print_children): Handle Val_pretty_default. Clear 'addressprint'
7151 option when calling val_print_string.
7153 2011-01-26 Tom Tromey <tromey@redhat.com>
7155 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
7157 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
7159 (gdb_py_longest, gdb_py_ulongest): New typedefs.
7160 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
7161 (gdb_py_long_as_ulongest): New defines.
7162 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
7163 (gdb_py_int_as_long): Declare.
7164 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
7165 GDB_PY_LL_ARG, gdb_py_object_from_longest.
7166 (valpy_long): Add comment.
7167 * python/py-utils.c (get_addr_from_python): Use
7168 gdb_py_long_as_ulongest. Handle overflow properly.
7169 (gdb_py_object_from_longest): New function.
7170 (gdb_py_object_from_ulongest): Likewise.
7171 (gdb_py_int_as_long): Likewise.
7172 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
7173 * python/py-symtab.c (salpy_get_pc): Use
7174 gdb_py_long_from_ulongest.
7175 (salpy_get_line): Use PyInt_FromLong.
7176 * python/py-param.c (set_parameter_value): Use
7178 * python/py-lazy-string.c (stpy_get_address): Use
7179 gdb_py_long_from_ulongest.
7180 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
7181 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
7182 * python/py-breakpoint.c (bppy_set_thread): Use
7184 (bppy_set_task): Likewise.
7185 (bppy_set_ignore_count): Likewise.
7186 (bppy_set_hit_count): Likewise.
7187 * python/py-block.c (blpy_get_start): Use
7188 gdb_py_object_from_ulongest.
7189 (blpy_get_end): Likewise.
7190 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
7192 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
7195 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
7196 * gdb/solib.c (solib_read_symbols): Check for addr_low in
7197 equality test for objfile, initialize addr_low if needed.
7199 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7201 * tui/tui-regs.c (tui_register_format): Remove dead code.
7203 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7205 * printcmd.c (print_formatted): Use val_print_scalar_formatted
7206 instead of print_scalar_formatted.
7207 (print_scalar_formatted): Don't handle 's' format strings here,
7208 and add an assertion that we never see such format here.
7209 * valprint.h (val_print_scalar_formatted): Declare.
7210 * valprint.c (val_print_scalar_formatted): New.
7211 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
7212 instead of print_scalar_formatted.
7213 * jv-valprint.c (java_val_print): Ditto.
7214 * p-valprint.c (pascal_val_print): Ditto.
7215 * ada-valprint.c (ada_val_print_1): Ditto.
7216 * f-valprint.c (f_val_print): Ditto.
7217 * infcmd.c (registers_info): Ditto.
7218 * m2-valprint.c (m2_val_print): Ditto.
7220 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7222 * m2-valprint.c (print_unbounded_array): Pass
7223 value_contents_for_printing rather than value_contents, to
7224 m2_print_array_contents. Also pass in the value.
7226 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7228 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
7229 (save_gdb_index_command): Switch to .gdb_index version 4.
7231 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7233 * mi/mi-main.c (get_register): Use get_frame_register_value rather
7234 than frame_register, and always pass a valid value to val_print.
7236 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7238 Centralize printing "<optimized out>".
7240 * valprint.h (val_print_optimized_out): Declare.
7241 * cp-valprint.c (cp_print_value_fields): Use
7242 val_print_optimized_out.
7243 * jv-valprint.c (java_print_value_fields): Ditto.
7244 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7245 * printcmd.c (print_formatted): Ditto.
7246 * valprint.c (valprint_check_validity): Ditto.
7247 (value_check_printable): Ditto.
7248 (val_print_optimized_out): New.
7250 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7252 * infcmd.c (default_print_registers_info): Allocate values so to
7253 never pass a NULL value to val_print.
7255 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7257 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
7258 boolean. Make sure to always pass a value that matches the
7259 contents buffer to callees. Preserve `address' for following
7261 * value.c (value_contents_for_printing_const): New.
7262 (value_address): Constify value argument.
7263 * value.h (value_contents_for_printing_const): Declare.
7264 (value_address): Constify value argument.
7266 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7268 * regcache.c (struct regcache_descr): Rename
7269 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
7270 and sizeof_cooked_register_valid_p to
7271 sizeof_cooked_register_status.
7272 (init_regcache_descr): Adjust.
7273 (struct regcache): Rename register_valid_p field to
7275 (regcache_xmalloc_1, regcache_xfree, regcache_save)
7276 (do_cooked_read): Adjust.
7277 (regcache_valid_p): Rename to ...
7278 (regcache_register_status): ... this. Adjust.
7279 (regcache_invalidate): Adjust.
7280 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
7282 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
7283 as unavailable, not valid.
7284 (regcache_dump): Adjust.
7285 * regcache.h (enum register_status): New.
7286 (regcache_register_status): Declare.
7287 (regcache_invalidate): Delete declaration.
7288 * corelow.c (get_core_registers): Adjust.
7289 * tracepoint.c (tfile_fetch_registers): Adjust.
7290 * trad-frame.c (REG_VALUE): Rename to ...
7291 (TF_REG_VALUE): ... this.
7292 (REG_UNKNOWN): Rename to ...
7293 (TF_REG_UNKNOWN): ... this.
7294 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
7295 * mi/mi-main.c (register_changed_p): Adjust.
7297 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7299 * regcache.c (struct regcache_descr): Remove outdated comment.
7300 (init_regcache_descr): Remove sizeof_raw_register_valid_p
7302 (regcache_xmalloc): Rename to ...
7303 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
7304 Allocate the regcache type accordingly.
7305 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
7306 (regcache_xfree): Asser the source is also readonly. Copy sizeof
7307 cooked registers, not raw.
7308 (regcache_dup_no_passthrough): Delete.
7309 (get_thread_arch_regcache): Use regcache_xmalloc_1.
7310 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
7311 mention obsolete write_register_bytes.
7312 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
7314 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7316 Stop remote_read_bytes from handling partial reads itself.
7318 * remote-fileio.c: Include target.h.
7319 (remote_fileio_write_bytes): Delete.
7320 (remote_fileio_func_open, remote_fileio_func_write)
7321 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
7323 (remote_fileio_func_stat): Use target_read_memory and
7324 target_write_memory.
7325 (remote_fileio_func_gettimeofday): Use target_write_memory.
7326 (remote_fileio_func_system): Use target_read_memory.
7327 * remote.c (remote_write_bytes): Make it static.
7328 (remote_read_bytes): Don't handle partial reads here.
7329 * remote.h (remote_read_bytes): Delete declaration.
7331 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7333 Simplify XML parsing a bit.
7335 * xml-support.h (gdb_xml_parse_quick): Declare.
7336 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
7337 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
7339 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
7340 gdb_xml_create_parser_and_cleanup_1.
7341 (gdb_xml_parse_quick): New.
7342 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
7343 * osdata.c (osdata_parse): Ditto.
7344 * remote.c (remote_threads_info): Ditto.
7345 * solib-target.c (solib_target_parse_libraries): Ditto.
7346 * xml-syscall.c (syscall_parse_xml): Ditto.
7347 * xml-tdesc.c (tdesc_parse_xml): Ditto.
7349 2011-01-24 Kevin Buettner <kevinb@redhat.com>
7351 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
7352 with remote-mips.o added to gdb_target_obs.
7353 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
7355 2011-01-24 Pedro Alves <pedro@codesourcery.com>
7357 * ada-valprint.c (val_print_packed_array_elements): Pass the
7358 correct struct value to val_print.
7359 (ada_val_print_1): Ditto.
7361 2011-01-24 Pedro Alves <pedro@codesourcery.com>
7363 Don't lose embedded_offset in printing routines throughout.
7365 * valprint.h (val_print_array_elements): Change prototype.
7366 * valprint.c (val_print_array_elements): Add `embedded_offset'
7367 parameter, and adjust to pass it down to val_print, while passing
7368 `valaddr' or `address' unmodified. Take embedded_offset into
7369 account when checking repetitions.
7370 * c-valprint.c (c_val_print): Pass embedded_offset to
7371 val_print_array_elements instead of adjusting `valaddr' and
7373 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
7374 embedded_offset to val_print_array_elements instead of adjusting
7376 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
7377 * p-valprint.c (pascal_val_print): Pass embedded_offset to
7378 val_print_array_elements and pascal_object_print_value_fields
7379 instead of adjusting `valaddr'.
7380 (pascal_object_print_value_fields): Add `offset' parameter, and
7382 (pascal_object_print_value): Add `offset' parameter, and adjust to
7384 (pascal_object_print_static_field): Use
7385 value_contents_for_printing/value_embedded_offset, rather than
7387 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
7388 parameter, and adjust to use it. Use
7389 value_contents_for_printing/value_embedded_offset, rather than
7391 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
7392 (ada_val_print_array): Add `offset' parameter, and adjust to use
7394 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
7395 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
7396 Instead work with offsets. Use
7397 value_contents_for_printing/value_embedded_offset, rather than
7398 value_contents. Change `defer_val_int' local type to CORE_ADDR,
7399 and use value_from_pointer to extract a target pointer, rather
7400 than value_from_longest.
7401 (print_variant_part): Add `offset' parameter. Replace
7402 `outer_valaddr' parameter by a new `outer_offset' parameter.
7403 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7404 (ada_value_print): Use
7405 value_contents_for_printing/value_embedded_offset, rather than
7407 (print_record): Add `offset' parameter, and adjust to pass it
7409 (print_field_values): Add `offset' parameter. Replace
7410 `outer_valaddr' parameter by a new `outer_offset' parameter.
7411 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7412 Use value_contents_for_printing/value_embedded_offset, rather than
7414 * d-valprint.c (dynamic_array_type): Use
7415 value_contents_for_printing/value_embedded_offset, rather than
7417 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
7418 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7419 (java_print_value_fields): Take `offset' into account. Don't
7420 re-adjust `valaddr'. Instead pass down adjusted offsets.
7421 (java_val_print): Take `embedded_offset' into account. Pass it to
7422 java_print_value_fields.
7423 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
7424 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
7425 down adjusted offsets.
7426 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
7427 (f_val_print): Take `embedded_offset' into account.
7429 2011-01-21 Joel Brobecker <brobecker@adacore.com>
7431 * inflow.c: Include "gdbcmd.h".
7432 (interactive_mode): New static global, moved here from top.c.
7433 (show_interactive_mode): New function, moved here from top.c.
7434 use gdb_has_a_terminal instead of input_from_terminal_p to
7435 determine the current mode.
7436 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
7438 (_initialize_inflow): Add the "set/show interactive-mode"
7439 commands. Moved here from top.c, after having adjusted slightly
7441 * top.c (interactive_mode, show_interactive_mode): Delete, moved
7443 (input_from_terminal_p): Remove handling of "interactive-mode"
7444 setting, moved to infow.c.
7445 (init_main): Remove creation of the "set/show interactive-mode"
7446 commands, moved to inflow.c.
7448 2011-01-19 Joel Brobecker <brobecker@adacore.com>
7450 * NEWS: Add entry for native ia64-hpux support.
7452 2011-01-19 Tom Tromey <tromey@redhat.com>
7455 * thread.c (free_thread): Free 'name'.
7456 (print_thread_info): Emit thread name. Change CLI output.
7457 (thread_name_command): New function.
7458 (do_captured_thread_select): Emit newline.
7459 (_initialize_thread): Register 'thread name' command.
7460 * target.h (struct target_ops) <to_thread_name>: New field.
7461 (target_thread_name): New macro.
7462 * target.c (update_current_target): Handle to_thread_name.
7463 * python/py-infthread.c (thpy_get_name): New function.
7464 (thpy_set_name): Likewise.
7465 (thread_object_getset): Add "name".
7466 * linux-nat.c (linux_nat_thread_name): New function.
7467 (linux_nat_add_target): Set to_thread_name.
7468 * gdbthread.h (struct thread_info) <name>: New field.
7470 2011-01-18 Joel Brobecker <brobecker@adacore.com>
7472 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
7473 (ada_val_print_1): Likewise.
7475 2011-01-18 Joel Brobecker <brobecker@adacore.com>
7477 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
7478 upper limit address is not greater than the function end address
7479 when the upper limit could not be computed using the debugging
7482 2011-01-17 Tom Tromey <tromey@redhat.com>
7484 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
7486 * utils.c: Include gdb_regex.h.
7487 (do_regfree_cleanup): New function.
7488 (make_regfree_cleanup): Likewise.
7489 (get_regcomp_error): Likewise.
7490 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
7492 2011-01-17 Tom Tromey <tromey@redhat.com>
7494 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
7497 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
7499 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
7500 for internal variables.
7501 (last_was_structop): New static variable.
7502 (COMPLETE): New token.
7503 (field_exp): New rule to group all '.' suffix handling.
7504 Add mark_struct_expression calls when approriate to be able
7505 to correctly find fields for completion.
7506 (yylex): Adapt to handle field completion and set INTVAR when
7509 2011-01-14 Yao Qi <yao@codesourcery.com>
7511 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
7512 save_reggroup, restore_reggroup and all_reggroup.
7514 2011-01-14 Joel Brobecker <brobecker@adacore.com>
7516 * ada-valprint. (ada_printchar): Use the correct type length
7517 in call to ada_emit_char.
7518 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
7520 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
7522 * solib-som.h (hpux_major_release): Declare variable here.
7523 * solib-som.c: Remove <sys/utsname.h> header.
7524 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
7525 (hpux_major_release): Make global, change default value to
7526 DEFAULT_HPUX_MAJOR_RELEASE.
7527 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7528 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
7529 Add "solib-som.h" header.
7530 (set_hpux_major_release): New function.
7531 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
7533 2011-01-14 Mike Frysinger <vapier@gentoo.org>
7535 * configure.tgt (*-*-uclinux*): Match more Linux os targets
7537 2011-01-14 Joel Brobecker <brobecker@adacore.com>
7539 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
7540 new-line at end of warning message.
7541 (ia64_hpux_store_register): Remove trailing new-line at end of
7543 * ia64-hpux-tdep.c: Rephrase comment.
7544 * solib-ia64-hpux.c (struct dld_info): Change type of field
7545 dld_flags from "long long" to ULONGEST.
7547 2011-01-14 Pedro Alves <pedro@codesourcery.com>
7549 * target.h (deprecated_child_ops): Delete declaration.
7550 * target.c (deprecated_child_ops): Delete definition.
7552 2011-01-14 Pedro Alves <pedro@codesourcery.com>
7554 * Makefile.in (hpux-thread.o): Delete rule.
7555 * configure.ac: Don't check for HPUX DCE threads support.
7556 * configure, config.in: Regenerate.
7557 * hppa-hpux-nat.c (child_suppress_run): Delete.
7558 (hppa_hpux_child_can_run): Delete.
7559 (_initialize_hppa_hpux_nat): Don't override to_can_run.
7560 * hpux-thread.c: Delete.
7562 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7564 * hpux-thread.c (hpux_pid_to_str): Delete.
7566 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7568 * ada-valprint.c (ada_emit_char): Remove strange code.
7569 Check that c is <= UCHAR_MAX before passing it to isascii.
7570 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
7572 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7574 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
7575 to the case where instream is stdin.
7577 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7579 * ia64-tdep.h (struct regcache): Forward declare.
7580 (struct ia64_infcall_ops): New struct type.
7581 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
7583 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
7584 Renames ia64_find_global_pointer.
7585 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
7586 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
7587 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
7589 (ia64_infcall_ops): New static global constant.
7590 (ia64_gdbarch_init): Set tdep->infcall_ops.
7591 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
7592 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
7593 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
7594 (ia64_hpux_dummy_code): New static global constant.
7595 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
7596 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
7597 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
7599 (ia64_hpux_infcall_ops): New static global constant.
7600 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
7601 for inferior function calls to work properly on ia64-hpux.
7603 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7605 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
7606 * ia64-tdep.h (struct frame_info): forward declaration.
7607 (struct gdbarch_tdep): Add field size_of_register_frame.
7608 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
7609 to determine the size of the register frame.
7610 (ia64_size_of_register_frame): New function.
7611 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
7612 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
7613 (IA64_HPUX_UREG_REASON): New macro.
7614 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
7616 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
7617 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
7618 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
7621 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7623 Add support for ia64-hpux.
7624 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
7625 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
7627 * configure.host: Add handling for ia64-hpux hosts. Add associated
7629 * configure.tgt: Add handling for ia64-hpux targets.
7630 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
7631 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
7632 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
7634 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7636 [ttrace] Compute thread list immediately after attach.
7637 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
7639 (inf_ttrace_attach): Use it.
7641 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7643 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
7644 if we could not determine the frame's function address. Instead,
7645 use the frame's PC, and then continue.
7647 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7649 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
7650 not already defined.
7652 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7654 * ia64-tdep.c (ia64_struct_type_p): New function.
7655 (ia64_extract_return_value): Handle integral values that are
7656 less than 8 bytes long.
7657 (ia64_push_dummy_call): Likewise.
7659 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7661 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
7662 floatformat_ia64_ext.
7663 (floatformat_ia64_ext_big): New static const.
7664 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
7666 2011-01-12 Tom Tromey <tromey@redhat.com>
7668 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
7670 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
7671 (mi_cmd_thread_list_ids): Likewise.
7672 (mi_cmd_data_list_changed_registers): Likewise.
7673 (mi_cmd_data_list_register_values): Likewise.
7674 (mi_cmd_data_write_register_values): Likewise.
7675 (mi_cmd_data_evaluate_expression): Likewise.
7676 (mi_cmd_data_read_memory): Likewise.
7677 (mi_cmd_data_read_memory_bytes): Likewise.
7678 (mi_cmd_data_write_memory): Likewise.
7679 (mi_cmd_enable_timings): Likewise.
7680 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
7681 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
7682 (mi_cmd_var_delete): Likewise.
7683 (mi_cmd_var_set_format): Likewise.
7684 (mi_cmd_var_show_format): Likewise.
7685 (mi_cmd_var_info_num_children): Likewise.
7686 (mi_cmd_var_list_children): Likewise.
7687 (mi_cmd_var_info_type): Likewise.
7688 (mi_cmd_var_info_expression): Likewise.
7689 (mi_cmd_var_show_attributes): Likewise.
7690 (mi_cmd_var_assign): Likewise.
7691 (mi_cmd_var_update): Likewise.
7692 (mi_cmd_enable_pretty_printing): Likewise.
7693 (mi_cmd_var_set_update_range): Likewise.
7694 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
7696 (mi_cmd_target_file_put): Likewise.
7697 (mi_cmd_target_file_delete): Likewise.
7698 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
7700 (mi_cmd_stack_info_depth): Likewise.
7701 (mi_cmd_stack_list_locals): Likewise.
7702 (mi_cmd_stack_list_args): Likewise.
7703 (mi_cmd_stack_select_frame): Likewise.
7704 (mi_cmd_stack_select_frame): Likewise.
7705 (mi_cmd_stack_info_frame): Likewise.
7706 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
7708 (mi_cmd_file_list_exec_source_files): Likewise.
7709 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
7710 (mi_cmd_env_cd): Likewise.
7711 (mi_cmd_env_path): Likewise.
7712 (mi_cmd_env_dir): Likewise.
7713 (mi_cmd_inferior_tty_show): Likewise.
7714 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
7715 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
7716 (mi_cmd_break_watch): Likewise.
7718 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
7720 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
7721 (ppc_linux_insert_hw_breakpoint): Likewise.
7722 (ppc_linux_remove_hw_breakpoint): Likewise.
7723 (ppc_linux_insert_watchpoint): Likewise.
7725 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
7726 Jan Kratochvil <jan.kratochvil@redhat.com>
7728 PR fortran/11104 and DWARF unbound arrays detection.
7729 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
7730 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
7731 unspecified upper bound.
7732 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
7733 variables array_size_array, tmp_type and offset_item. New variable
7734 array. Remove call to f77_get_upperbound. New variables array_type
7735 and index. Call value_subscripted_rvalue for each dimenasion. Remove
7736 the final call to deprecated_set_value_type.
7738 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7740 Make value allocations more lazy.
7741 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
7742 instead of allocate_value and set_value_lazy when possible.
7743 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
7744 instead of allocate_value and set_value_lazy.
7745 * findvar.c (value_of_register_lazy): Likewise.
7746 (read_var_value): Remove V preallocation, call just check_typedef in
7747 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
7748 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
7749 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
7750 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
7751 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
7752 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
7753 the end, remove set_value_lazy there.
7754 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
7755 instead of allocate_value and set_value_lazy when possible.
7756 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
7757 * value.c (allocate_computed_value): Use allocate_value_lazy instead
7758 of allocate_value and set_value_lazy.
7759 (value_from_contents_and_address): Use allocate_value_lazy instead of
7760 allocate_value and set_value_lazy when possible.
7762 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
7764 * disasm.c (dump_insns): Support dumping opcodes for MI.
7765 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
7766 dumping of instruction opcodes.
7768 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
7770 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
7773 2011-01-11 Tom Tromey <tromey@redhat.com>
7775 * thread.c (do_captured_thread_select): Emit newline before
7778 2011-01-11 Michael Snyder <msnyder@vmware.com>
7780 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
7781 * score-tdep.c: Ditto.
7782 * score-tdep.h: Ditto.
7783 * ser-base.c: Ditto.
7784 * ser-go32.c: Ditto.
7787 * ser-mingw.c: Ditto.
7788 * ser-pipe.c: Ditto.
7790 * ser-unix.c: Ditto.
7791 * sh64-tdep.c: Ditto.
7792 * shnbsd-nat.c: Ditto.
7796 * solib-darwin.c: Ditto.
7797 * solib-frv.c: Ditto.
7799 * solib-irix.c: Ditto.
7800 * solib-osf.c: Ditto.
7801 * solib-pa64.c: Ditto.
7802 * solib-som.c: Ditto.
7803 * solib-spu.c: Ditto.
7804 * solib-sunos.c: Ditto.
7805 * solib-svr4.c: Ditto.
7807 * sol-thread.c: Ditto.
7811 * sparc64-linux-tdep.c: Ditto.
7812 * sparc64-tdep.c: Ditto.
7813 * sparc-linux-nat.c: Ditto.
7814 * sparc-linux-tdep.c: Ditto.
7815 * sparc-sol2-nat.c: Ditto.
7816 * sparc-sol2-tdep.c: Ditto.
7817 * sparc-tdep.c: Ditto.
7818 * sparc-tdep.h: Ditto.
7819 * spu-tdep.c: Ditto.
7820 * stabsread.c: Ditto.
7821 * stabsread.h: Ditto.
7829 * target-descriptions.c: Ditto.
7830 * target-descriptions.h: Ditto.
7832 * target-memory.c: Ditto.
7833 * terminal.h: Ditto.
7836 * tracepoint.c: Ditto.
7837 * tracepoint.h: Ditto.
7838 * trad-frame.h: Ditto.
7839 * typeprint.c: Ditto.
7841 2011-01-11 Michael Snyder <msnyder@vmware.com>
7843 * ui-file.c: Comment cleanup, mostly periods and spaces.
7848 * v850-tdep.c: Ditto.
7849 * valarith.c: Ditto.
7851 * valprint.c: Ditto.
7852 * valprint.h: Ditto.
7857 * vax-tdep.c: Ditto.
7861 * windows-nat.c: Ditto.
7862 * windows-tdep.c: Ditto.
7863 * xcoffread.c: Ditto.
7864 * xcoffsolib.c: Ditto.
7865 * xml-support.c: Ditto.
7866 * xstormy16-tdep.c: Ditto.
7867 * xtensa-tdep.c: Ditto.
7868 * xtensa-tdep.h: Ditto.
7870 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
7872 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
7873 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
7875 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7876 Thiago Jung Bauermann <bauerman@br.ibm.com>
7878 Implement support for PowerPC BookE ranged watchpoints.
7880 (struct breakpoint_ops) <resources_needed>: New method.
7881 Initialize to NULL in all existing breakpoint_ops instances.
7882 (struct breakpoint) <exact>: New field.
7883 (target_exact_watchpoints): Declare external global.
7884 * breakpoint.c (target_exact_watchpoints): New global flag.
7885 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
7886 b->enable_state to bp_enabled before calling
7887 hw_watchpoint_used_count.
7888 (hw_watchpoint_used_count): Iterate over all bp_locations in a
7889 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
7891 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
7892 if the watchpoint is exact.
7893 (resources_needed_watchpoint): New function.
7894 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
7895 (watch_command_1): Set b->exact if the user asked for an exact
7896 watchpoint and one can be set.
7897 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
7898 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
7899 the user asks for an exact watchpoint and one can be set. Return
7900 number of needed debug registers to watch the expression.
7901 * gdbtypes.c (is_scalar_type): New function, based on
7902 valprint.c:scalar_type_p.
7903 (is_scalar_type_recursive): New function.
7904 * gdbtypes.h (is_scalar_type_recursive): Declare.
7905 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
7906 handle regions when ranged watchpoints are available.
7907 (create_watchpoint_request): New function.
7908 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
7909 create_watchpoint_request.
7910 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
7911 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
7912 `set powerpc' and `show powerpc' commands.
7913 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7914 Mention documentation comment in the target macro.
7915 (target_region_ok_for_hw_watchpoint): Document return value.
7917 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
7919 * breakpoint.c (update_watchpoint): Decide on using a software or
7920 hardware watchpoint after the bp_locations are created.
7922 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
7924 Convert hardware watchpoints to use breakpoint_ops.
7925 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
7926 <insert_location>: ... this. Return int instead of void.
7927 Accept pointer to struct bp_location instead of pointer to
7928 struct breakpoint. Adapt all implementations.
7929 (breakpoint_ops) <remove>: Rename to...
7930 <remove_location>: ... this. Accept pointer to struct bp_location
7931 instead of pointer to struct breakpoint. Adapt all implementations.
7932 * breakpoint.c (insert_catchpoint): Delete function.
7933 (insert_bp_location): Call the watchpoint or catchpoint's
7934 breakpoint_ops.insert method.
7935 (remove_breakpoint_1): Call the watchpoint or catchpoint's
7936 breakpoint_ops.remove method.
7937 (insert_watchpoint, remove_watchpoint): New functions.
7938 (watchpoint_breakpoint_ops): New structure.
7939 (watch_command_1): Initialize the OPS field.
7940 * inf-child.c (inf_child_insert_fork_catchpoint)
7941 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
7942 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
7943 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
7945 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
7946 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
7947 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
7948 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
7949 * target.c (update_current_target): Change default implementation of
7950 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
7951 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
7952 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
7953 to_set_syscall_catchpoint to return_one.
7954 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
7955 (debug_to_insert_exec_catchpoint): Report return value.
7956 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
7957 (to_insert_exec_catchpoint): Change declaration to return int instead
7960 2011-01-11 Michael Snyder <msnyder@vmware.com>
7962 * arm-tdep.c: Internationalization.
7965 * fork-child.c: Ditto.
7966 * nto-procfs.c: Ditto.
7967 * ppc-sysv-tdep.c: Ditto.
7969 * remote-mips.c: Ditto.
7971 * rs6000-nat.c: Ditto.
7972 * rs6000-tdep.c: Ditto.
7976 * xml-support.c: Ditto.
7977 * mi/mi-cmd-break.c: Ditto.
7978 * mi/mi-cmd-var.c: Ditto.
7979 * mi/mi-interp.c: Ditto.
7980 * mi/mi-main.c: Ditto.
7982 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
7984 * remote-sim.c (gdbsim_store_register): Update API to
7985 sim_store_register to check more error conditions.
7987 2011-01-10 Michael Snyder <msnyder@vmware.com>
7989 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
7990 * nto-tdep.c: Ditto.
7991 * nto-tdep.h: Ditto.
7992 * objc-exp.y: Ditto.
7993 * objc-lang.c: Ditto.
7994 * objfiles.c: Ditto.
7995 * objfiles.h: Ditto.
7996 * observer.c: Ditto.
7997 * opencl-lang.c: Ditto.
8000 * parser-defs.h: Ditto.
8003 * posix-hdep.c: Ditto.
8004 * ppcbug-rom.c: Ditto.
8005 * ppc-linux-nat.c: Ditto.
8006 * ppc-linux-tdep.c: Ditto.
8007 * ppc-linux-tdep.h: Ditto.
8008 * ppcnbsd-tdep.c: Ditto.
8009 * ppcobsd-tdep.c: Ditto.
8010 * ppcobsd-tdep.h: Ditto.
8011 * ppc-sysv-tdep.c: Ditto.
8012 * ppc-tdep.h: Ditto.
8013 * printcmd.c: Ditto.
8014 * proc-abi.c: Ditto.
8015 * proc-flags.c: Ditto.
8017 * proc-utils.h: Ditto.
8018 * progspace.h: Ditto.
8019 * prologue-value.c: Ditto.
8020 * prologue-value.h: Ditto.
8021 * psympriv.h: Ditto.
8023 * p-typeprint.c: Ditto.
8024 * p-valprint.c: Ditto.
8025 * ravenscar-sparc-thread.c: Ditto.
8026 * ravenscar-thread.c: Ditto.
8027 * ravenscar-thread.h: Ditto.
8029 * regcache.c: Ditto.
8030 * regcache.h: Ditto.
8032 * remote-fileio.c: Ditto.
8033 * remote-fileio.h: Ditto.
8035 * remote-m32r-sdi.c: Ditto.
8036 * remote-mips.c: Ditto.
8037 * remote-sim.c: Ditto.
8038 * rs6000-aix-tdep.c: Ditto.
8039 * rs6000-nat.c: Ditto.
8040 * rs6000-tdep.c: Ditto.
8042 2011-01-10 Michael Snyder <msnyder@vmware.com>
8044 * charset.c (validate): Internationalization.
8045 * coffread.c (read_one_sym): Ditto.
8046 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
8047 * h8300-tdep.c (H8300_extract_return_value): Ditto.
8048 * inflow.c (new_tty): Ditto.
8049 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
8050 * m32c-tdep.c (m32c_return_value): Ditto.
8051 * mep-tdep.c (mep_store_return_value): Ditto.
8052 * score-tdep.c (score7_fetch_insn): Ditto.
8053 * ser-mingw.c (pipe_windows_open): Ditto.
8054 * sh64-tdep.c (sh64_extract_return_value): Ditto.
8055 * spu-tdep.c (spu_register_type): Ditto.
8056 * tracepoint.c (trace_find_command): Ditto.
8057 * valarith.c (value_pos): Ditto.
8059 2011-01-10 Joel Brobecker <brobecker@adacore.com>
8061 * ada-valprint.c (printstr): Minor comment reformatting.
8063 2011-01-08 Michael Snyder <msnyder@vmware.com>
8065 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
8068 2011-01-08 Michael Snyder <msnyder@vmware.com>
8070 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
8071 * hppa-hpux-tdep.c: Ditto.
8072 * hppa-linux-nat.c: Ditto.
8073 * hppa-linux-tdep.c: Ditto.
8074 * hppanbsd-tdep.c: Ditto.
8075 * hppa-tdep.c: Ditto.
8076 * hppa-tdep.h: Ditto.
8077 * hpux-thread.c: Ditto.
8078 * i386-cygwin-tdep.c: Ditto.
8079 * i386-darwin-nat.c: Ditto.
8080 * i386gnu-nat.c: Ditto.
8081 * i386-linux-nat.c: Ditto.
8082 * i386-linux-tdep.c: Ditto.
8083 * i386-nat.c: Ditto.
8084 * i386-nat.h: Ditto.
8085 * i386nbsd-tdep.c: Ditto.
8086 * i386-sol2-nat.c: Ditto.
8087 * i386-stub.c: Ditto.
8088 * i386-tdep.c: Ditto.
8089 * i386-tdep.h: Ditto.
8090 * i387-tdep.c: Ditto.
8091 * ia64-linux-nat.c: Ditto.
8092 * ia64-linux-tdep.c: Ditto.
8093 * ia64-tdep.c: Ditto.
8097 * inferior.c: Ditto.
8098 * inferior.h: Ditto.
8104 * iq2000-tdep.c: Ditto.
8105 * irix5-nat.c: Ditto.
8111 * jv-typeprint.c: Ditto.
8112 * jv-valprint.c: Ditto.
8113 * language.c: Ditto.
8114 * language.h: Ditto.
8115 * linespec.c: Ditto.
8116 * linux-fork.c: Ditto.
8117 * linux-nat.c: Ditto.
8118 * linux-thread-db.c: Ditto.
8119 * lm32-tdep.c: Ditto.
8121 2011-01-08 Michael Snyder <msnyder@vmware.com>
8123 * m2-exp.y: Comment cleanup, mostly periods and spaces.
8125 * m2-typeprint.c: Ditto.
8126 * m2-valprint.c: Ditto.
8127 * m32c-tdep.c: Ditto.
8128 * m32r-linux-nat.c: Ditto.
8129 * m32r-rom.c: Ditto.
8130 * m32r-tdep.c: Ditto.
8131 * m32r-tdep.h: Ditto.
8132 * m68hc11-tdep.c: Ditto.
8133 * m58klinux-nat.c: Ditto.
8134 * m68k-tdep.c: Ditto.
8135 * m88k-tdep.c: Ditto.
8136 * m88k-tdep.h: Ditto.
8137 * machoread.c: Ditto.
8138 * macrocmd.c: Ditto.
8139 * macroexp.c: Ditto.
8140 * macrotab.c: Ditto.
8143 * mdebugread.c: Ditto.
8144 * mdebugread.h: Ditto.
8147 * memory-map.h: Ditto.
8148 * mep-tdep.c: Ditto.
8149 * microblaze-rom.c: Ditto.
8150 * microblaze-tdep.c: Ditto.
8152 * mips-irix-tdep.c: Ditto.
8153 * mips-linux-nat.c: Ditto.
8154 * mips-linux-tdep.c: Ditto.
8155 * mips-linux-tdep.h: Ditto.
8156 * mipsnbsd-nat.c: Ditto.
8157 * mipsnbsd-tdep.c: Ditto.
8158 * mipsread.c: Ditto.
8159 * mips-tdep.c: Ditto.
8160 * mips-tdep.h: Ditto.
8161 * mn10300-linux-tdep.c: Ditto.
8162 * mn10300-tdep.c: Ditto.
8163 * mn10300-tdep.h: Ditto.
8166 * moxie-tdep.c: Ditto.
8167 * moxie-tdep.h: Ditto.
8170 2011-01-08 Mike Frysinger <vapier@gentoo.org>
8172 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
8174 2011-01-08 Robert Millan <rmh@gnu.org>
8176 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
8178 2011-01-07 Michael Snyder <msnyder@vmware.com>
8180 * charset.c (_initialize_charset): Fix typo in string.
8182 2011-01-07 Michael Snyder <msnyder@vmware.com>
8184 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
8186 * tui/tui-layout.c (tui_set_layout_for_display_command):
8187 Split line so that operator goes to beginning of line.
8188 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
8189 assignment out of if statement.
8191 2011-01-07 Michael Snyder <msnyder@vmware.com>
8193 * ada-lang.c: Comment cleanup, mostly periods and spaces.
8194 * ada-lang.h: Ditto.
8195 * ada-tasks.c: Ditto.
8196 * ada-valprint.c: Ditto.
8197 * aix-threads.c: Ditto.
8198 * alpha-linux-nat.c: Ditto.
8199 * alpha-linux-tdep.c: Ditto.
8200 * alpha-mdebug-tdep.c: Ditto.
8201 * alpha-nat.c: Ditto.
8202 * alpha-osf1-tdep.c: Ditto.
8203 * alpha-tdep.c: Ditto.
8204 * alphabsd-nat.c: Ditto.
8205 * alphabsd-tdep.c: Ditto.
8206 * amd64-darwin-tdep.c: Ditto.
8207 * amd64-linux-nat.c: Ditto.
8208 * amd64-linux-tdep.c: Ditto.
8209 * amd64-sol2-tdep.c: Ditto.
8210 * amd64-tdep.c: Ditto.
8211 * amd64-fbsd-tdep.c: Ditto.
8212 * amd64-nbsd-tdep.c: Ditto.
8213 * amd64-obsd-tdep.c: Ditto.
8214 * amd64-linux-nat.c: Ditto.
8215 * amd64-linux-tdep.c: Ditto.
8216 * arm-tdep.c: Ditto.
8217 * arm-tdep.h: Ditto.
8218 * armnbsd-nat.c: Ditto.
8219 * avr-tdep.c: Ditto.
8220 * bfin-tdep.c: Ditto.
8222 * c-typeprintc: Ditto.
8223 * c-valprint.c: Ditto.
8224 * coff-pe-read.h: Ditto.
8225 * coffreead.c: Ditto.
8226 * cris-tdep.c: Ditto.
8228 * darwin-nat-info.c: Ditto.
8229 * darwin-nat.c: Ditto.
8230 * dbug-rom.c: Ditto.
8234 * dec-thread.c: Ditto.
8236 * demangle.c: Ditto.
8237 * dicos-tdep.c: Ditto.
8238 * dictionary.c: Ditto.
8239 * dictionary.h: Ditto.
8240 * dink32-rom.c: Ditto.
8242 * doublest.c: Ditto.
8244 * dummy-frame.c: Ditto.
8245 * dwarf2-frame.c: Ditto.
8246 * dwarf2expr.c: Ditto.
8247 * dwarf2loc.c: Ditto.
8248 * dwarf2read.c: Ditto.
8252 * event-top.h: Ditto.
8253 * exceptions.c: Ditto.
8254 * exceptions.h: Ditto.
8256 * expprint.c: Ditto.
8257 * expression.h: Ditto.
8261 * f-typeprint.c: Ditto.
8262 * f-valprint.c: Ditto.
8263 * fbsd-nat.c: Ditto.
8265 * fork-child.c: Ditto.
8268 * frv-linux-tdep.c: Ditto.
8269 * frv-tdep.c: Ditto.
8271 * gdb-stabs.h: Ditto.
8272 * gdb_assert.h: Ditto.
8273 * gdb_string.h: Ditto.
8274 * gdb_thread_db.h: Ditto.
8275 * gdb_wait.h: Ditto.
8276 * gdbarch.sh: Ditto.
8278 * gdbthread.h: Ditto.
8279 * gdbtypes.c: Ditto.
8280 * gdbtypes.h: Ditto.
8283 * gnu-v2-abi.c: Ditto.
8284 * gnu-v3-abi.c: Ditto.
8285 * go32-nat.c: Ditto.
8286 * gdbarch.c: Regenerate.
8287 * gdbarch.h: Regenerate.
8289 2011-01-07 Michael Snyder <msnyder@vmware.com>
8291 * ax-gdb.c: Adjust some long output strings.
8292 * breakpoint.c: Ditto.
8297 * linux-nat.c: Ditto.
8298 * solib-pa64.c: Ditto.
8299 * solib-som.c: Ditto.
8301 2011-01-06 Tom Tromey <tromey@redhat.com>
8305 * python/python.c (GdbMethods): Add "newest_frame" method.
8306 * python/python-internal.h (gdbpy_newest_frame): Declare.
8307 * python/py-frame.c (gdbpy_newest_frame): New function.
8309 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
8311 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
8312 * jit.c (jit_debug): New variable.
8313 (show_jit_debug): New function.
8314 (struct target_buffer): Use ULONGEST.
8315 (bfd_open_from_target_memory): Likewise.
8316 (jit_register_code, jit_inferior_init): Add debug output.
8317 (_initialize_jit): Register "debug jit" command.
8319 2011-01-06 Tom Tromey <tromey@redhat.com>
8321 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
8322 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
8325 2011-01-06 Tom Tromey <tromey@redhat.com>
8327 * python/py-frame.c (frapy_block): Use get_frame_block.
8329 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8331 Do not stop on SIGPRIO signals by default
8332 * infrun.c (_initialize_infrun): Unset signal_stop and
8333 signal_print for TARGET_SIGNAL_PRIO.
8335 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8337 * ada-tasks.c: Fix style violation in comment.
8339 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8341 * linespec.c (decode_compound, find_method): Remove trailing \n
8342 at end of error string.
8343 * solib-irix.c (irix_current_sos): Likewise.
8344 * varobj.c (uninstall_variable): Likewise.
8346 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8348 * copyright.py: New script.
8349 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
8350 Launch emacs without exec'ing. Call copyright.py afterwards.
8352 2011-01-05 Michael Snyder <msnyder@vmware.com>
8354 * addrmap.c: Shorten lines of >= 80 columns.
8355 * arch-utils.c: Ditto.
8356 * arch-utils.h: Ditto.
8358 * ax-general.c: Ditto.
8360 * blockframe.c: Ditto.
8361 * breakpoint.c: Ditto.
8362 * buildsym.c: Ditto.
8364 * c-typeprint.c: Ditto.
8366 * coffread.c: Ditto.
8370 * cp-namespace.c: Ditto.
8371 * cp-support.c: Ditto.
8372 * dbug-rom.c: Ditto.
8377 * dictionary.c: Ditto.
8379 * doublest.c: Ditto.
8380 * dwarf2-frame.c: Ditto.
8381 * dwarf2expr.c: Ditto.
8382 * dwarf2loc.c: Ditto.
8383 * dwarf2read.c: Ditto.
8386 * event-loop.c: Ditto.
8387 * event-loop.h: Ditto.
8388 * exceptions.h: Ditto.
8390 * expprint.c: Ditto.
8391 * expression.h: Ditto.
8393 * f-valprint.c: Ditto.
8395 * frame-base.c: Ditto.
8396 * frame-unwind.c: Ditto.
8397 * frame-unwind.h: Ditto.
8401 * gdb-stabs.h: Ditto.
8402 * gdb_assert.h: Ditto.
8403 * gdb_dirent.h: Ditto.
8404 * gdb_obstack.h: Ditto.
8406 * gdbtypes.c: Ditto.
8407 * gdbtypes.h: Ditto.
8408 * inf-ttrace.c: Ditto.
8413 * inline-frame.h: Ditto.
8414 * language.c: Ditto.
8415 * language.h: Ditto.
8416 * libunwind-frame.c: Ditto.
8417 * libunwind-frame.h: Ditto.
8418 * linespec.c: Ditto.
8419 * linux-nat.c: Ditto.
8420 * linux-nat.h: Ditto.
8421 * linux-thread-db.c: Ditto.
8422 * machoread.c: Ditto.
8423 * macroexp.c: Ditto.
8424 * macrotab.c: Ditto.
8427 * mdebugread.c: Ditto.
8432 * objfiles.c: Ditto.
8433 * objfiles.h: Ditto.
8435 * p-typeprint.c: Ditto.
8436 * p-valprint.c: Ditto.
8438 * printcmd.c: Ditto.
8439 * proc-events.c: Ditto.
8441 * progspace.c: Ditto.
8442 * progspace.h: Ditto.
8443 * psympriv.h: Ditto.
8446 * regcache.c: Ditto.
8447 * regcache.h: Ditto.
8448 * remote-fileio.c: Ditto.
8450 * ser-mingw.c: Ditto.
8452 * ser-unix.c: Ditto.
8455 * solib-frv.c: Ditto.
8456 * solib-irix.c: Ditto.
8457 * solib-osf.c: Ditto.
8458 * solib-pa64.c: Ditto.
8459 * solib-som.c: Ditto.
8460 * solib-sunos.c: Ditto.
8461 * solib-svr4.c: Ditto.
8462 * solib-target.c: Ditto.
8466 * stabsread.c: Ditto.
8467 * stabsread.c: Ditto.
8470 * symfile-mem.c: Ditto.
8476 * target-descriptions.c: Ditto.
8477 * target-memory.c: Ditto.
8480 * terminal.h: Ditto.
8483 * tracepoint.c: Ditto.
8484 * tracepoint.h: Ditto.
8488 * user-regs.c: Ditto.
8489 * user-regs.h: Ditto.
8491 * valarith.c: Ditto.
8493 * valprint.c: Ditto.
8494 * valprint.h: Ditto.
8499 * xcoffread.c: Ditto.
8500 * xcoffsolib.c: Ditto.
8501 * xcoffsolib.h: Ditto.
8502 * xml-syscall.c: Ditto.
8503 * xml-tdesc.c: Ditto.
8505 2011-01-05 Michael Snyder <msnyder@vmware.com>
8507 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
8508 * cli/cli-decode.c: Ditto.
8509 * cli/cli-dump.c: Ditto.
8510 * cli/cli-logging.c: Ditto.
8511 * cli/cli-script.c: Ditto.
8512 * cli/cli-setshow.c: Ditto.
8513 * common/signals.c: Ditto.
8514 * mi/mi-cmd-break.c: Ditto.
8515 * mi/mi-cmd-disas.c: Ditto.
8516 * mi/mi-cmd-stack.c: Ditto.
8517 * mi/mi-cmd-var.c: Ditto.
8518 * mi/mi-cmds.c: Ditto.
8519 * mi/mi-common.h: Ditto.
8520 * mi/mi-console.c: Ditto.
8521 * mi/mi-interp.c: Ditto.
8522 * mi/mi-main.c: Ditto.
8523 * osf-share/cma_attr.c: Ditto.
8524 * osf-share/cma_deb_core.h: Ditto.
8525 * osf-share/cma_debug_client.h: Ditto.
8526 * osf-share/cma_handle.h: Ditto.
8527 * osf-share/cma_mutex.h: Ditto.
8528 * osf-share/cma_stack_int.h: Ditto.
8529 * osf-share/cma_tcb_defs.h: Ditto.
8530 * python/py-auto-load.c: Ditto.
8531 * python/py-breakpoint.c: Ditto.
8532 * python/py-cmd.c: Ditto.
8533 * python/py-frame.c: Ditto.
8534 * python/py-objfile.c: Ditto.
8535 * python/py-param.c: Ditto.
8536 * python/py-progspace.c: Ditto.
8537 * python/py-symbol.c: Ditto.
8538 * python/py-value.c: Ditto.
8539 * python/python-internal.h: Ditto.
8540 * python/python.c: Ditto.
8541 * tui/tui-data.c: Ditto.
8542 * tui/tui-disasm.c: Ditto.
8543 * tui/tui-hooks.c: Ditto.
8544 * tui/tui-io.c: Ditto.
8545 * tui/tui-layout.c: Ditto.
8546 * tui/tui-regs.c: Ditto.
8547 * tui/tui-source.c: Ditto.
8548 * tui/tui-stack.c: Ditto.
8549 * tui/tui-win.c: Ditto.
8550 * tui/tui-windata.c: Ditto.
8551 * tui/tui-winsource.c: Ditto.
8553 2011-01-05 Joel Brobecker <brobecker@adacore.com>
8555 * configure.ac, gdb.1: Copyright year update.
8557 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8559 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
8560 this_pc_in_block, morestack_msym and morestack_name. Check for
8561 "__morestack" minimal symbol there.
8563 2011-01-03 Joel Brobecker <brobecker@adacore.com>
8565 * symfile.c (find_sym_fns): Add call to dont_repeat.
8567 2011-01-01 Joel Brobecker <brobecker@adacore.com>
8569 Copyright year update in most files (performed by copyright.sh).
8571 2011-01-01 Joel Brobecker <brobecker@adacore.com>
8573 * top.c (print_gdb_version): Update copyright year in version output.
8575 For older changes see ChangeLog-2010.
8581 version-control: never